terratest 1.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/README.md +78 -0
- package/dist/action/136.index.js +990 -0
- package/dist/action/360.index.js +92 -0
- package/dist/action/443.index.js +724 -0
- package/dist/action/449.index.js +13 -0
- package/dist/action/566.index.js +385 -0
- package/dist/action/605.index.js +241 -0
- package/dist/action/762.index.js +583 -0
- package/dist/action/869.index.js +529 -0
- package/dist/action/956.index.js +117 -0
- package/dist/action/998.index.js +894 -0
- package/dist/action/index.js +18 -0
- package/dist/cli/136.index.js +990 -0
- package/dist/cli/360.index.js +92 -0
- package/dist/cli/443.index.js +724 -0
- package/dist/cli/449.index.js +13 -0
- package/dist/cli/566.index.js +385 -0
- package/dist/cli/605.index.js +241 -0
- package/dist/cli/762.index.js +583 -0
- package/dist/cli/869.index.js +529 -0
- package/dist/cli/956.index.js +117 -0
- package/dist/cli/998.index.js +894 -0
- package/dist/cli/index.js +17 -0
- package/package.json +36 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
(()=>{var __webpack_modules__={56863:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AwsCrc32=void 0;var i=o(61860);var a=o(95667);var d=o(62110);var m=function(){function AwsCrc32(){this.crc32=new d.Crc32}AwsCrc32.prototype.update=function(e){if((0,a.isEmptyData)(e))return;this.crc32.update((0,a.convertToBuffer)(e))};AwsCrc32.prototype.digest=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return[2,(0,a.numToUint8)(this.crc32.digest())]}))}))};AwsCrc32.prototype.reset=function(){this.crc32=new d.Crc32};return AwsCrc32}();t.AwsCrc32=m},62110:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AwsCrc32=t.Crc32=t.crc32=void 0;var i=o(61860);var a=o(95667);function crc32(e){return(new d).update(e).digest()}t.crc32=crc32;var d=function(){function Crc32(){this.checksum=4294967295}Crc32.prototype.update=function(e){var t,o;try{for(var a=i.__values(e),d=a.next();!d.done;d=a.next()){var m=d.value;this.checksum=this.checksum>>>8^f[(this.checksum^m)&255]}}catch(e){t={error:e}}finally{try{if(d&&!d.done&&(o=a.return))o.call(a)}finally{if(t)throw t.error}}return this};Crc32.prototype.digest=function(){return(this.checksum^4294967295)>>>0};return Crc32}();t.Crc32=d;var m=[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];var f=(0,a.uint32ArrayFrom)(m);var h=o(56863);Object.defineProperty(t,"AwsCrc32",{enumerable:true,get:function(){return h.AwsCrc32}})},95405:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AwsCrc32c=void 0;var i=o(61860);var a=o(95667);var d=o(91491);var m=function(){function AwsCrc32c(){this.crc32c=new d.Crc32c}AwsCrc32c.prototype.update=function(e){if((0,a.isEmptyData)(e))return;this.crc32c.update((0,a.convertToBuffer)(e))};AwsCrc32c.prototype.digest=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return[2,(0,a.numToUint8)(this.crc32c.digest())]}))}))};AwsCrc32c.prototype.reset=function(){this.crc32c=new d.Crc32c};return AwsCrc32c}();t.AwsCrc32c=m},91491:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AwsCrc32c=t.Crc32c=t.crc32c=void 0;var i=o(61860);var a=o(95667);function crc32c(e){return(new d).update(e).digest()}t.crc32c=crc32c;var d=function(){function Crc32c(){this.checksum=4294967295}Crc32c.prototype.update=function(e){var t,o;try{for(var a=i.__values(e),d=a.next();!d.done;d=a.next()){var m=d.value;this.checksum=this.checksum>>>8^f[(this.checksum^m)&255]}}catch(e){t={error:e}}finally{try{if(d&&!d.done&&(o=a.return))o.call(a)}finally{if(t)throw t.error}}return this};Crc32c.prototype.digest=function(){return(this.checksum^4294967295)>>>0};return Crc32c}();t.Crc32c=d;var m=[0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697];var f=(0,a.uint32ArrayFrom)(m);var h=o(95405);Object.defineProperty(t,"AwsCrc32c",{enumerable:true,get:function(){return h.AwsCrc32c}})},45675:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.convertToBuffer=void 0;var i=o(71577);var a=typeof Buffer!=="undefined"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:i.fromUtf8;function convertToBuffer(e){if(e instanceof Uint8Array)return e;if(typeof e==="string"){return a(e)}if(ArrayBuffer.isView(e)){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)}return new Uint8Array(e)}t.convertToBuffer=convertToBuffer},95667:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var i=o(45675);Object.defineProperty(t,"convertToBuffer",{enumerable:true,get:function(){return i.convertToBuffer}});var a=o(14658);Object.defineProperty(t,"isEmptyData",{enumerable:true,get:function(){return a.isEmptyData}});var d=o(35436);Object.defineProperty(t,"numToUint8",{enumerable:true,get:function(){return d.numToUint8}});var m=o(50673);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:true,get:function(){return m.uint32ArrayFrom}})},14658:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEmptyData=void 0;function isEmptyData(e){if(typeof e==="string"){return e.length===0}return e.byteLength===0}t.isEmptyData=isEmptyData},35436:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.numToUint8=void 0;function numToUint8(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}t.numToUint8=numToUint8},50673:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uint32ArrayFrom=void 0;function uint32ArrayFrom(e){if(!Uint32Array.from){var t=new Uint32Array(e.length);var o=0;while(o<e.length){t[o]=e[o];o+=1}return t}return Uint32Array.from(e)}t.uint32ArrayFrom=uint32ArrayFrom},43434:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveHttpAuthSchemeConfig=t.defaultDynamoDBHttpAuthSchemeProvider=t.defaultDynamoDBHttpAuthSchemeParametersProvider=void 0;const i=o(97523);const a=o(92658);const defaultDynamoDBHttpAuthSchemeParametersProvider=async(e,t,o)=>({operation:(0,a.getSmithyContext)(t).operation,region:await(0,a.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});t.defaultDynamoDBHttpAuthSchemeParametersProvider=defaultDynamoDBHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"dynamodb",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}const defaultDynamoDBHttpAuthSchemeProvider=e=>{const t=[];switch(e.operation){default:{t.push(createAwsAuthSigv4HttpAuthOption(e))}}return t};t.defaultDynamoDBHttpAuthSchemeProvider=defaultDynamoDBHttpAuthSchemeProvider;const resolveHttpAuthSchemeConfig=e=>{const t=(0,i.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,a.normalizeProvider)(e.authSchemePreference??[])})};t.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},24385:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bdd=void 0;const i=o(62085);const a="ref",d="argv";const m=-1,f=true,h=false,P="isSet",_="booleanEquals",L="PartitionResult",U="stringEquals",j="getAttr",H="https://dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",V="aws.parseArn",k=e=>"ParsedArn_ssa_"+e+"",K="service",W="dynamodb",X="isValidHostLabel",Q="accountId",Y="FirstArn",q=e=>"https://{ParsedArn_ssa_"+e+"#accountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}",s=e=>"https://{ParsedArn_ssa_"+e+"#accountId}.ddb.{Region}.{PartitionResult#dnsSuffix}",J={[a]:"Endpoint"},Z={[a]:"Region"},ee={[a]:L},te={[a]:"AccountIdEndpointMode"},ne={fn:j,[d]:[ee,"name"]},re={fn:j,[d]:[{[a]:"ParsedArn_ssa_2"},"region"]},oe={[a]:"ParsedArn_ssa_2"},ie={[a]:"ResourceArnList"},se={fn:j,[d]:[{[a]:"ParsedArn_ssa_1"},"region"]},ae={[a]:"ParsedArn_ssa_1"},ce={[a]:"AccountId"},le={},ue={metricValues:["O"]},de=[Z],pe=[{[a]:"ResourceArn"}];const me={conditions:[[P,de],[P,[J]],[_,[{[a]:"UseFIPS"},f]],["aws.partition",de,L],[U,[Z,"local"]],[_,[{fn:j,[d]:[ee,"supportsFIPS"]},f]],[_,[{[a]:"UseDualStack"},f]],[_,[{fn:j,[d]:[ee,"supportsDualStack"]},f]],[U,[H,J]],[P,[te]],[U,[ne,"aws"]],[U,[te,"disabled"]],[P,pe],[V,pe,k(2)],[U,[re,Z]],[U,[{fn:j,[d]:[oe,K]},W]],[X,[{fn:j,[d]:[oe,Q]},h]],[X,[re,h]],[P,[ie]],[j,[ie,"[0]"],Y],[V,[{[a]:Y}],k(1)],[U,[se,Z]],[U,[{fn:j,[d]:[ae,K]},W]],[X,[{fn:j,[d]:[ae,Q]},h]],[X,[se,h]],[P,[ce]],[U,[te,"required"]],[X,[ce,h]],[U,[ne,"aws-us-gov"]]],results:[[m],[m,"Invalid Configuration: FIPS and custom endpoint are not supported"],[m,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[m,"Endpoint override is not supported for dual-stack endpoints. Please enable dual-stack functionality by enabling the configuration. For more details, see: https://docs.aws.amazon.com/sdkref/latest/guide/feature-endpoints.html"],["{Endpoint}",le],[m,"Invalid Configuration: FIPS and local endpoint are not supported"],[m,"Invalid Configuration: Dualstack and local endpoint are not supported"],["http://localhost:8000",{authSchemes:[{name:"sigv4",signingName:W,signingRegion:"us-east-1"}]}],[m,"Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported"],["https://dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",le],[m,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://dynamodb.{Region}.{PartitionResult#dnsSuffix}",le],["https://dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}",le],[m,"FIPS is enabled but this partition does not support FIPS"],[q(2),ue],[q(1),ue],["https://{AccountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}",ue],[m,"Credentials-sourced account ID parameter is invalid"],[m,"AccountIdEndpointMode is required but no AccountID was provided or able to be loaded"],[m,"Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition"],[H,le],[m,"DualStack is enabled but this partition does not support DualStack"],[s(2),ue],[s(1),ue],["https://{AccountId}.ddb.{Region}.{PartitionResult#dnsSuffix}",ue],[m,"Invalid Configuration: Missing Region"]]};const fe=2;const he=1e8;const ge=new Int32Array([-1,1,-1,0,5,3,1,4,he+25,2,he+1,65,1,63,6,2,52,7,3,8,he+25,4,51,9,6,30,10,9,11,he+11,10,13,12,26,he+19,he+11,11,29,14,12,15,20,13,16,20,14,17,20,15,18,20,16,19,20,17,he+22,20,18,21,27,19,22,27,20,23,27,21,24,27,22,25,27,23,26,27,24,he+23,27,25,28,29,27,he+24,he+17,26,he+18,he+11,7,31,he+21,9,32,he+20,10,34,33,26,he+19,he+20,11,50,35,12,36,41,13,37,41,14,38,41,15,39,41,16,40,41,17,he+14,41,18,42,48,19,43,48,20,44,48,21,45,48,22,46,48,23,47,48,24,he+15,48,25,49,50,27,he+16,he+17,26,he+18,he+20,6,he+6,he+7,3,53,he+25,4,he+5,54,5,56,55,6,he+10,he+13,6,60,57,9,58,59,26,he+8,59,28,he+11,he+12,7,61,he+10,9,62,he+9,26,he+8,he+9,2,he+1,64,3,66,65,6,he+2,he+4,6,he+2,67,8,he+3,he+4]);t.bdd=i.BinaryDecisionDiagram.from(ge,fe,me.conditions,me.results)},1588:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const i=o(5152);const a=o(62085);const d=o(24385);const m=new a.EndpointCache({size:50,params:["AccountId","AccountIdEndpointMode","Endpoint","Region","ResourceArn","ResourceArnList","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(e,t={})=>m.get(e,(()=>(0,a.decideEndpoint)(d.bdd,{endpointParams:e,logger:t.logger})));t.defaultEndpointResolver=defaultEndpointResolver;a.customEndpointFunctions.aws=i.awsEndpointFunctions},64305:(e,t,o)=>{"use strict";var i=o(59950);var a=o(5152);var d=o(3688);var m=o(90402);var f=o(92658);var h=o(47291);var P=o(62085);var _=o(93422);var L=o(23609);var U=o(26890);var j=o(43434);var H=o(93801);var V=o(20507);var K=o(98461);var W=o(18894);const resolveClientEndpointParameters=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"dynamodb"});const X={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},AccountId:{type:"builtInParams",name:"accountId"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"},AccountIdEndpointMode:{type:"builtInParams",name:"accountIdEndpointMode"}};class DescribeEndpointsCommand extends(f.Command.classBuilder().ep(X).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","DescribeEndpoints",{}).n("DynamoDBClient","DescribeEndpointsCommand").sc(H.DescribeEndpoints$).build()){}const getHttpAuthExtensionConfiguration=e=>{const t=e.httpAuthSchemes;let o=e.httpAuthSchemeProvider;let i=e.credentials;return{setHttpAuthScheme(e){const o=t.findIndex((t=>t.schemeId===e.schemeId));if(o===-1){t.push(e)}else{t.splice(o,1,e)}},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){o=e},httpAuthSchemeProvider(){return o},setCredentials(e){i=e},credentials(){return i}}};const resolveHttpAuthRuntimeConfig=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});const resolveRuntimeExtensions=(e,t)=>{const o=Object.assign(a.getAwsRegionExtensionConfiguration(e),f.getDefaultExtensionConfiguration(e),_.getHttpHandlerExtensionConfiguration(e),getHttpAuthExtensionConfiguration(e));t.forEach((e=>e.configure(o)));return Object.assign(e,a.resolveAwsRegionExtensionConfiguration(o),f.resolveDefaultRuntimeConfig(o),_.resolveHttpHandlerRuntimeConfig(o),resolveHttpAuthRuntimeConfig(o))};class DynamoDBClient extends f.Client{config;constructor(...[e]){const t=V.getRuntimeConfig(e||{});super(t);this.initConfig=t;const o=resolveClientEndpointParameters(t);const f=i.resolveAccountIdEndpointModeConfig(o);const H=a.resolveUserAgentConfig(f);const K=L.resolveRetryConfig(H);const W=h.resolveRegionConfig(K);const X=a.resolveHostHeaderConfig(W);const Q=P.resolveEndpointConfig(X);const Y=j.resolveHttpAuthSchemeConfig(Q);const J=d.resolveEndpointDiscoveryConfig(Y,{endpointDiscoveryCommandCtor:DescribeEndpointsCommand});const Z=resolveRuntimeExtensions(J,e?.extensions||[]);this.config=Z;this.middlewareStack.use(U.getSchemaSerdePlugin(this.config));this.middlewareStack.use(a.getUserAgentPlugin(this.config));this.middlewareStack.use(L.getRetryPlugin(this.config));this.middlewareStack.use(_.getContentLengthPlugin(this.config));this.middlewareStack.use(a.getHostHeaderPlugin(this.config));this.middlewareStack.use(a.getLoggerPlugin(this.config));this.middlewareStack.use(a.getRecursionDetectionPlugin(this.config));this.middlewareStack.use(m.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:j.defaultDynamoDBHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new m.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})}));this.middlewareStack.use(m.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class BatchExecuteStatementCommand extends(f.Command.classBuilder().ep(X).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","BatchExecuteStatement",{}).n("DynamoDBClient","BatchExecuteStatementCommand").sc(H.BatchExecuteStatement$).build()){}class BatchGetItemCommand extends(f.Command.classBuilder().ep({...X,ResourceArnList:{type:"operationContextParams",get:e=>Object.keys(e?.RequestItems??{})}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","BatchGetItem",{}).n("DynamoDBClient","BatchGetItemCommand").sc(H.BatchGetItem$).build()){}class BatchWriteItemCommand extends(f.Command.classBuilder().ep({...X,ResourceArnList:{type:"operationContextParams",get:e=>Object.keys(e?.RequestItems??{})}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","BatchWriteItem",{}).n("DynamoDBClient","BatchWriteItemCommand").sc(H.BatchWriteItem$).build()){}class CreateBackupCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","CreateBackup",{}).n("DynamoDBClient","CreateBackupCommand").sc(H.CreateBackup$).build()){}class CreateGlobalTableCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"GlobalTableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","CreateGlobalTable",{}).n("DynamoDBClient","CreateGlobalTableCommand").sc(H.CreateGlobalTable$).build()){}class CreateTableCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","CreateTable",{}).n("DynamoDBClient","CreateTableCommand").sc(H.CreateTable$).build()){}class DeleteBackupCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"BackupArn"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","DeleteBackup",{}).n("DynamoDBClient","DeleteBackupCommand").sc(H.DeleteBackup$).build()){}class DeleteItemCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","DeleteItem",{}).n("DynamoDBClient","DeleteItemCommand").sc(H.DeleteItem$).build()){}class DeleteResourcePolicyCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"ResourceArn"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","DeleteResourcePolicy",{}).n("DynamoDBClient","DeleteResourcePolicyCommand").sc(H.DeleteResourcePolicy$).build()){}class DeleteTableCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","DeleteTable",{}).n("DynamoDBClient","DeleteTableCommand").sc(H.DeleteTable$).build()){}class DescribeBackupCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"BackupArn"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","DescribeBackup",{}).n("DynamoDBClient","DescribeBackupCommand").sc(H.DescribeBackup$).build()){}class DescribeContinuousBackupsCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","DescribeContinuousBackups",{}).n("DynamoDBClient","DescribeContinuousBackupsCommand").sc(H.DescribeContinuousBackups$).build()){}class DescribeContributorInsightsCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","DescribeContributorInsights",{}).n("DynamoDBClient","DescribeContributorInsightsCommand").sc(H.DescribeContributorInsights$).build()){}class DescribeExportCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"ExportArn"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","DescribeExport",{}).n("DynamoDBClient","DescribeExportCommand").sc(H.DescribeExport$).build()){}class DescribeGlobalTableCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"GlobalTableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","DescribeGlobalTable",{}).n("DynamoDBClient","DescribeGlobalTableCommand").sc(H.DescribeGlobalTable$).build()){}class DescribeGlobalTableSettingsCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"GlobalTableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","DescribeGlobalTableSettings",{}).n("DynamoDBClient","DescribeGlobalTableSettingsCommand").sc(H.DescribeGlobalTableSettings$).build()){}class DescribeImportCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"ImportArn"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","DescribeImport",{}).n("DynamoDBClient","DescribeImportCommand").sc(H.DescribeImport$).build()){}class DescribeKinesisStreamingDestinationCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","DescribeKinesisStreamingDestination",{}).n("DynamoDBClient","DescribeKinesisStreamingDestinationCommand").sc(H.DescribeKinesisStreamingDestination$).build()){}class DescribeLimitsCommand extends(f.Command.classBuilder().ep(X).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","DescribeLimits",{}).n("DynamoDBClient","DescribeLimitsCommand").sc(H.DescribeLimits$).build()){}class DescribeTableCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","DescribeTable",{}).n("DynamoDBClient","DescribeTableCommand").sc(H.DescribeTable$).build()){}class DescribeTableReplicaAutoScalingCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","DescribeTableReplicaAutoScaling",{}).n("DynamoDBClient","DescribeTableReplicaAutoScalingCommand").sc(H.DescribeTableReplicaAutoScaling$).build()){}class DescribeTimeToLiveCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","DescribeTimeToLive",{}).n("DynamoDBClient","DescribeTimeToLiveCommand").sc(H.DescribeTimeToLive$).build()){}class DisableKinesisStreamingDestinationCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","DisableKinesisStreamingDestination",{}).n("DynamoDBClient","DisableKinesisStreamingDestinationCommand").sc(H.DisableKinesisStreamingDestination$).build()){}class EnableKinesisStreamingDestinationCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","EnableKinesisStreamingDestination",{}).n("DynamoDBClient","EnableKinesisStreamingDestinationCommand").sc(H.EnableKinesisStreamingDestination$).build()){}class ExecuteStatementCommand extends(f.Command.classBuilder().ep(X).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","ExecuteStatement",{}).n("DynamoDBClient","ExecuteStatementCommand").sc(H.ExecuteStatement$).build()){}class ExecuteTransactionCommand extends(f.Command.classBuilder().ep(X).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","ExecuteTransaction",{}).n("DynamoDBClient","ExecuteTransactionCommand").sc(H.ExecuteTransaction$).build()){}class ExportTableToPointInTimeCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableArn"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","ExportTableToPointInTime",{}).n("DynamoDBClient","ExportTableToPointInTimeCommand").sc(H.ExportTableToPointInTime$).build()){}class GetItemCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","GetItem",{}).n("DynamoDBClient","GetItemCommand").sc(H.GetItem$).build()){}class GetResourcePolicyCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"ResourceArn"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","GetResourcePolicy",{}).n("DynamoDBClient","GetResourcePolicyCommand").sc(H.GetResourcePolicy$).build()){}class ImportTableCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"operationContextParams",get:e=>e?.TableCreationParameters?.TableName}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","ImportTable",{}).n("DynamoDBClient","ImportTableCommand").sc(H.ImportTable$).build()){}class ListBackupsCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","ListBackups",{}).n("DynamoDBClient","ListBackupsCommand").sc(H.ListBackups$).build()){}class ListContributorInsightsCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","ListContributorInsights",{}).n("DynamoDBClient","ListContributorInsightsCommand").sc(H.ListContributorInsights$).build()){}class ListExportsCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableArn"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","ListExports",{}).n("DynamoDBClient","ListExportsCommand").sc(H.ListExports$).build()){}class ListGlobalTablesCommand extends(f.Command.classBuilder().ep(X).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","ListGlobalTables",{}).n("DynamoDBClient","ListGlobalTablesCommand").sc(H.ListGlobalTables$).build()){}class ListImportsCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableArn"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","ListImports",{}).n("DynamoDBClient","ListImportsCommand").sc(H.ListImports$).build()){}class ListTablesCommand extends(f.Command.classBuilder().ep(X).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","ListTables",{}).n("DynamoDBClient","ListTablesCommand").sc(H.ListTables$).build()){}class ListTagsOfResourceCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"ResourceArn"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","ListTagsOfResource",{}).n("DynamoDBClient","ListTagsOfResourceCommand").sc(H.ListTagsOfResource$).build()){}class PutItemCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","PutItem",{}).n("DynamoDBClient","PutItemCommand").sc(H.PutItem$).build()){}class PutResourcePolicyCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"ResourceArn"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","PutResourcePolicy",{}).n("DynamoDBClient","PutResourcePolicyCommand").sc(H.PutResourcePolicy$).build()){}class QueryCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","Query",{}).n("DynamoDBClient","QueryCommand").sc(H.Query$).build()){}class RestoreTableFromBackupCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TargetTableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","RestoreTableFromBackup",{}).n("DynamoDBClient","RestoreTableFromBackupCommand").sc(H.RestoreTableFromBackup$).build()){}class RestoreTableToPointInTimeCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TargetTableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","RestoreTableToPointInTime",{}).n("DynamoDBClient","RestoreTableToPointInTimeCommand").sc(H.RestoreTableToPointInTime$).build()){}class ScanCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","Scan",{}).n("DynamoDBClient","ScanCommand").sc(H.Scan$).build()){}class TagResourceCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"ResourceArn"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","TagResource",{}).n("DynamoDBClient","TagResourceCommand").sc(H.TagResource$).build()){}class TransactGetItemsCommand extends(f.Command.classBuilder().ep({...X,ResourceArnList:{type:"operationContextParams",get:e=>e?.TransactItems?.map((e=>e?.Get?.TableName))}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","TransactGetItems",{}).n("DynamoDBClient","TransactGetItemsCommand").sc(H.TransactGetItems$).build()){}class TransactWriteItemsCommand extends(f.Command.classBuilder().ep({...X,ResourceArnList:{type:"operationContextParams",get:e=>e?.TransactItems?.map((e=>[e?.ConditionCheck?.TableName,e?.Put?.TableName,e?.Delete?.TableName,e?.Update?.TableName].filter((e=>e)))).flat()}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","TransactWriteItems",{}).n("DynamoDBClient","TransactWriteItemsCommand").sc(H.TransactWriteItems$).build()){}class UntagResourceCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"ResourceArn"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","UntagResource",{}).n("DynamoDBClient","UntagResourceCommand").sc(H.UntagResource$).build()){}class UpdateContinuousBackupsCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","UpdateContinuousBackups",{}).n("DynamoDBClient","UpdateContinuousBackupsCommand").sc(H.UpdateContinuousBackups$).build()){}class UpdateContributorInsightsCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","UpdateContributorInsights",{}).n("DynamoDBClient","UpdateContributorInsightsCommand").sc(H.UpdateContributorInsights$).build()){}class UpdateGlobalTableCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"GlobalTableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","UpdateGlobalTable",{}).n("DynamoDBClient","UpdateGlobalTableCommand").sc(H.UpdateGlobalTable$).build()){}class UpdateGlobalTableSettingsCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"GlobalTableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","UpdateGlobalTableSettings",{}).n("DynamoDBClient","UpdateGlobalTableSettingsCommand").sc(H.UpdateGlobalTableSettings$).build()){}class UpdateItemCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","UpdateItem",{}).n("DynamoDBClient","UpdateItemCommand").sc(H.UpdateItem$).build()){}class UpdateKinesisStreamingDestinationCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","UpdateKinesisStreamingDestination",{}).n("DynamoDBClient","UpdateKinesisStreamingDestinationCommand").sc(H.UpdateKinesisStreamingDestination$).build()){}class UpdateTableCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","UpdateTable",{}).n("DynamoDBClient","UpdateTableCommand").sc(H.UpdateTable$).build()){}class UpdateTableReplicaAutoScalingCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","UpdateTableReplicaAutoScaling",{}).n("DynamoDBClient","UpdateTableReplicaAutoScalingCommand").sc(H.UpdateTableReplicaAutoScaling$).build()){}class UpdateTimeToLiveCommand extends(f.Command.classBuilder().ep({...X,ResourceArn:{type:"contextParams",name:"TableName"}}).m((function(e,t,o,i){return[P.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("DynamoDB_20120810","UpdateTimeToLive",{}).n("DynamoDBClient","UpdateTimeToLiveCommand").sc(H.UpdateTimeToLive$).build()){}const Q=m.createPaginator(DynamoDBClient,ListContributorInsightsCommand,"NextToken","NextToken","MaxResults");const Y=m.createPaginator(DynamoDBClient,ListExportsCommand,"NextToken","NextToken","MaxResults");const J=m.createPaginator(DynamoDBClient,ListImportsCommand,"NextToken","NextToken","PageSize");const Z=m.createPaginator(DynamoDBClient,ListTablesCommand,"ExclusiveStartTableName","LastEvaluatedTableName","Limit");const ee=m.createPaginator(DynamoDBClient,QueryCommand,"ExclusiveStartKey","LastEvaluatedKey","Limit");const te=m.createPaginator(DynamoDBClient,ScanCommand,"ExclusiveStartKey","LastEvaluatedKey","Limit");const checkState$5=async(e,t)=>{let o;try{let i=await e.send(new DescribeContributorInsightsCommand(t));o=i;try{const returnComparator=()=>i.ContributorInsightsStatus;if(returnComparator()==="ENABLED"){return{state:f.WaiterState.SUCCESS,reason:o}}}catch(e){}try{const returnComparator=()=>i.ContributorInsightsStatus;if(returnComparator()==="FAILED"){return{state:f.WaiterState.FAILURE,reason:o}}}catch(e){}}catch(e){o=e}return{state:f.WaiterState.RETRY,reason:o}};const waitForContributorInsightsEnabled=async(e,t)=>{const o={minDelay:20,maxDelay:120};return f.createWaiter({...o,...e},t,checkState$5)};const waitUntilContributorInsightsEnabled=async(e,t)=>{const o={minDelay:20,maxDelay:120};const i=await f.createWaiter({...o,...e},t,checkState$5);return f.checkExceptions(i)};const checkState$4=async(e,t)=>{let o;try{let i=await e.send(new DescribeExportCommand(t));o=i;try{const returnComparator=()=>i.ExportDescription.ExportStatus;if(returnComparator()==="COMPLETED"){return{state:f.WaiterState.SUCCESS,reason:o}}}catch(e){}try{const returnComparator=()=>i.ExportDescription.ExportStatus;if(returnComparator()==="FAILED"){return{state:f.WaiterState.FAILURE,reason:o}}}catch(e){}}catch(e){o=e}return{state:f.WaiterState.RETRY,reason:o}};const waitForExportCompleted=async(e,t)=>{const o={minDelay:20,maxDelay:120};return f.createWaiter({...o,...e},t,checkState$4)};const waitUntilExportCompleted=async(e,t)=>{const o={minDelay:20,maxDelay:120};const i=await f.createWaiter({...o,...e},t,checkState$4);return f.checkExceptions(i)};const checkState$3=async(e,t)=>{let o;try{let i=await e.send(new DescribeImportCommand(t));o=i;try{const returnComparator=()=>i.ImportTableDescription.ImportStatus;if(returnComparator()==="COMPLETED"){return{state:f.WaiterState.SUCCESS,reason:o}}}catch(e){}try{const returnComparator=()=>i.ImportTableDescription.ImportStatus;if(returnComparator()==="FAILED"){return{state:f.WaiterState.FAILURE,reason:o}}}catch(e){}try{const returnComparator=()=>i.ImportTableDescription.ImportStatus;if(returnComparator()==="CANCELLED"){return{state:f.WaiterState.FAILURE,reason:o}}}catch(e){}}catch(e){o=e}return{state:f.WaiterState.RETRY,reason:o}};const waitForImportCompleted=async(e,t)=>{const o={minDelay:20,maxDelay:120};return f.createWaiter({...o,...e},t,checkState$3)};const waitUntilImportCompleted=async(e,t)=>{const o={minDelay:20,maxDelay:120};const i=await f.createWaiter({...o,...e},t,checkState$3);return f.checkExceptions(i)};const checkState$2=async(e,t)=>{let o;try{let i=await e.send(new DescribeKinesisStreamingDestinationCommand(t));o=i;try{const returnComparator=()=>{let e=[].concat(...i.KinesisDataStreamDestinations);let t=e.map((e=>e.DestinationStatus));return t};for(let e of returnComparator()){if(e=="ACTIVE"){return{state:f.WaiterState.SUCCESS,reason:o}}}}catch(e){}try{const returnComparator=()=>{let e=i.KinesisDataStreamDestinations.filter((e=>(e.DestinationStatus=="DISABLED"||e.DestinationStatus=="ENABLE_FAILED")&&(e.DestinationStatus=="ENABLE_FAILED"||e.DestinationStatus=="DISABLED")));return i.KinesisDataStreamDestinations.length>0&&e.length==i.KinesisDataStreamDestinations.length};if(returnComparator()==true){return{state:f.WaiterState.FAILURE,reason:o}}}catch(e){}}catch(e){o=e}return{state:f.WaiterState.RETRY,reason:o}};const waitForKinesisStreamingDestinationActive=async(e,t)=>{const o={minDelay:20,maxDelay:120};return f.createWaiter({...o,...e},t,checkState$2)};const waitUntilKinesisStreamingDestinationActive=async(e,t)=>{const o={minDelay:20,maxDelay:120};const i=await f.createWaiter({...o,...e},t,checkState$2);return f.checkExceptions(i)};const checkState$1=async(e,t)=>{let o;try{let i=await e.send(new DescribeTableCommand(t));o=i;try{const returnComparator=()=>i.Table.TableStatus;if(returnComparator()==="ACTIVE"){return{state:f.WaiterState.SUCCESS,reason:o}}}catch(e){}}catch(e){o=e;if(e.name==="ResourceNotFoundException"){return{state:f.WaiterState.RETRY,reason:o}}}return{state:f.WaiterState.RETRY,reason:o}};const waitForTableExists=async(e,t)=>{const o={minDelay:20,maxDelay:120};return f.createWaiter({...o,...e},t,checkState$1)};const waitUntilTableExists=async(e,t)=>{const o={minDelay:20,maxDelay:120};const i=await f.createWaiter({...o,...e},t,checkState$1);return f.checkExceptions(i)};const checkState=async(e,t)=>{let o;try{let i=await e.send(new DescribeTableCommand(t));o=i}catch(e){o=e;if(e.name==="ResourceNotFoundException"){return{state:f.WaiterState.SUCCESS,reason:o}}}return{state:f.WaiterState.RETRY,reason:o}};const waitForTableNotExists=async(e,t)=>{const o={minDelay:20,maxDelay:120};return f.createWaiter({...o,...e},t,checkState)};const waitUntilTableNotExists=async(e,t)=>{const o={minDelay:20,maxDelay:120};const i=await f.createWaiter({...o,...e},t,checkState);return f.checkExceptions(i)};const ne={BatchExecuteStatementCommand:BatchExecuteStatementCommand,BatchGetItemCommand:BatchGetItemCommand,BatchWriteItemCommand:BatchWriteItemCommand,CreateBackupCommand:CreateBackupCommand,CreateGlobalTableCommand:CreateGlobalTableCommand,CreateTableCommand:CreateTableCommand,DeleteBackupCommand:DeleteBackupCommand,DeleteItemCommand:DeleteItemCommand,DeleteResourcePolicyCommand:DeleteResourcePolicyCommand,DeleteTableCommand:DeleteTableCommand,DescribeBackupCommand:DescribeBackupCommand,DescribeContinuousBackupsCommand:DescribeContinuousBackupsCommand,DescribeContributorInsightsCommand:DescribeContributorInsightsCommand,DescribeEndpointsCommand:DescribeEndpointsCommand,DescribeExportCommand:DescribeExportCommand,DescribeGlobalTableCommand:DescribeGlobalTableCommand,DescribeGlobalTableSettingsCommand:DescribeGlobalTableSettingsCommand,DescribeImportCommand:DescribeImportCommand,DescribeKinesisStreamingDestinationCommand:DescribeKinesisStreamingDestinationCommand,DescribeLimitsCommand:DescribeLimitsCommand,DescribeTableCommand:DescribeTableCommand,DescribeTableReplicaAutoScalingCommand:DescribeTableReplicaAutoScalingCommand,DescribeTimeToLiveCommand:DescribeTimeToLiveCommand,DisableKinesisStreamingDestinationCommand:DisableKinesisStreamingDestinationCommand,EnableKinesisStreamingDestinationCommand:EnableKinesisStreamingDestinationCommand,ExecuteStatementCommand:ExecuteStatementCommand,ExecuteTransactionCommand:ExecuteTransactionCommand,ExportTableToPointInTimeCommand:ExportTableToPointInTimeCommand,GetItemCommand:GetItemCommand,GetResourcePolicyCommand:GetResourcePolicyCommand,ImportTableCommand:ImportTableCommand,ListBackupsCommand:ListBackupsCommand,ListContributorInsightsCommand:ListContributorInsightsCommand,ListExportsCommand:ListExportsCommand,ListGlobalTablesCommand:ListGlobalTablesCommand,ListImportsCommand:ListImportsCommand,ListTablesCommand:ListTablesCommand,ListTagsOfResourceCommand:ListTagsOfResourceCommand,PutItemCommand:PutItemCommand,PutResourcePolicyCommand:PutResourcePolicyCommand,QueryCommand:QueryCommand,RestoreTableFromBackupCommand:RestoreTableFromBackupCommand,RestoreTableToPointInTimeCommand:RestoreTableToPointInTimeCommand,ScanCommand:ScanCommand,TagResourceCommand:TagResourceCommand,TransactGetItemsCommand:TransactGetItemsCommand,TransactWriteItemsCommand:TransactWriteItemsCommand,UntagResourceCommand:UntagResourceCommand,UpdateContinuousBackupsCommand:UpdateContinuousBackupsCommand,UpdateContributorInsightsCommand:UpdateContributorInsightsCommand,UpdateGlobalTableCommand:UpdateGlobalTableCommand,UpdateGlobalTableSettingsCommand:UpdateGlobalTableSettingsCommand,UpdateItemCommand:UpdateItemCommand,UpdateKinesisStreamingDestinationCommand:UpdateKinesisStreamingDestinationCommand,UpdateTableCommand:UpdateTableCommand,UpdateTableReplicaAutoScalingCommand:UpdateTableReplicaAutoScalingCommand,UpdateTimeToLiveCommand:UpdateTimeToLiveCommand};const re={paginateListContributorInsights:Q,paginateListExports:Y,paginateListImports:J,paginateListTables:Z,paginateQuery:ee,paginateScan:te};const oe={waitUntilContributorInsightsEnabled:waitUntilContributorInsightsEnabled,waitUntilExportCompleted:waitUntilExportCompleted,waitUntilImportCompleted:waitUntilImportCompleted,waitUntilKinesisStreamingDestinationActive:waitUntilKinesisStreamingDestinationActive,waitUntilTableExists:waitUntilTableExists,waitUntilTableNotExists:waitUntilTableNotExists};class DynamoDB extends DynamoDBClient{}f.createAggregatedClient(ne,DynamoDB,{paginators:re,waiters:oe});const ie={MICROSECOND:"MICROSECOND",MILLISECOND:"MILLISECOND"};const se={ADD:"ADD",DELETE:"DELETE",PUT:"PUT"};const ae={B:"B",N:"N",S:"S"};const ce={AVAILABLE:"AVAILABLE",CREATING:"CREATING",DELETED:"DELETED"};const le={AWS_BACKUP:"AWS_BACKUP",SYSTEM:"SYSTEM",USER:"USER"};const ue={PAY_PER_REQUEST:"PAY_PER_REQUEST",PROVISIONED:"PROVISIONED"};const de={HASH:"HASH",RANGE:"RANGE"};const pe={ALL:"ALL",INCLUDE:"INCLUDE",KEYS_ONLY:"KEYS_ONLY"};const me={AES256:"AES256",KMS:"KMS"};const fe={DISABLED:"DISABLED",DISABLING:"DISABLING",ENABLED:"ENABLED",ENABLING:"ENABLING",UPDATING:"UPDATING"};const he={KEYS_ONLY:"KEYS_ONLY",NEW_AND_OLD_IMAGES:"NEW_AND_OLD_IMAGES",NEW_IMAGE:"NEW_IMAGE",OLD_IMAGE:"OLD_IMAGE"};const ge={DISABLED:"DISABLED",DISABLING:"DISABLING",ENABLED:"ENABLED",ENABLING:"ENABLING"};const ye={ALL:"ALL",AWS_BACKUP:"AWS_BACKUP",SYSTEM:"SYSTEM",USER:"USER"};const be={INDEXES:"INDEXES",NONE:"NONE",TOTAL:"TOTAL"};const Se={ALL_OLD:"ALL_OLD",NONE:"NONE"};const Ce={AccessDenied:"AccessDenied",ConditionalCheckFailed:"ConditionalCheckFailed",DuplicateItem:"DuplicateItem",InternalServerError:"InternalServerError",ItemCollectionSizeLimitExceeded:"ItemCollectionSizeLimitExceeded",ProvisionedThroughputExceeded:"ProvisionedThroughputExceeded",RequestLimitExceeded:"RequestLimitExceeded",ResourceNotFound:"ResourceNotFound",ThrottlingError:"ThrottlingError",TransactionConflict:"TransactionConflict",ValidationError:"ValidationError"};const Ee={NONE:"NONE",SIZE:"SIZE"};const xe={BEGINS_WITH:"BEGINS_WITH",BETWEEN:"BETWEEN",CONTAINS:"CONTAINS",EQ:"EQ",GE:"GE",GT:"GT",IN:"IN",LE:"LE",LT:"LT",NE:"NE",NOT_CONTAINS:"NOT_CONTAINS",NOT_NULL:"NOT_NULL",NULL:"NULL"};const Pe={AND:"AND",OR:"OR"};const ve={DISABLED:"DISABLED",ENABLED:"ENABLED"};const Te={DISABLED:"DISABLED",ENABLED:"ENABLED"};const Re={DISABLE:"DISABLE",ENABLE:"ENABLE"};const we={ACCESSED_AND_THROTTLED_KEYS:"ACCESSED_AND_THROTTLED_KEYS",THROTTLED_KEYS:"THROTTLED_KEYS"};const Ne={DISABLED:"DISABLED",DISABLING:"DISABLING",ENABLED:"ENABLED",ENABLING:"ENABLING",FAILED:"FAILED"};const Oe={ACTIVE:"ACTIVE",CREATING:"CREATING",DELETING:"DELETING",UPDATING:"UPDATING"};const ke={ACTIVE:"ACTIVE",CREATING:"CREATING",DELETING:"DELETING",UPDATING:"UPDATING"};const Ae={DISABLED:"DISABLED",ENABLED:"ENABLED",ENABLED_WITH_OVERRIDES:"ENABLED_WITH_OVERRIDES"};const Ie={ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED",ARCHIVING:"ARCHIVING",CREATING:"CREATING",CREATION_FAILED:"CREATION_FAILED",DELETING:"DELETING",INACCESSIBLE_ENCRYPTION_CREDENTIALS:"INACCESSIBLE_ENCRYPTION_CREDENTIALS",REGION_DISABLED:"REGION_DISABLED",REPLICATION_NOT_AUTHORIZED:"REPLICATION_NOT_AUTHORIZED",UPDATING:"UPDATING"};const _e={STANDARD:"STANDARD",STANDARD_INFREQUENT_ACCESS:"STANDARD_INFREQUENT_ACCESS"};const Be={ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED",ARCHIVING:"ARCHIVING",CREATING:"CREATING",DELETING:"DELETING",INACCESSIBLE_ENCRYPTION_CREDENTIALS:"INACCESSIBLE_ENCRYPTION_CREDENTIALS",REPLICATION_NOT_AUTHORIZED:"REPLICATION_NOT_AUTHORIZED",UPDATING:"UPDATING"};const De={ACTIVE:"ACTIVE",CREATING:"CREATING",DELETING:"DELETING"};const Le={EVENTUAL:"EVENTUAL",STRONG:"STRONG"};const $e={ALL_NEW:"ALL_NEW",ALL_OLD:"ALL_OLD",NONE:"NONE",UPDATED_NEW:"UPDATED_NEW",UPDATED_OLD:"UPDATED_OLD"};const Me={DYNAMODB_JSON:"DYNAMODB_JSON",ION:"ION"};const Ue={COMPLETED:"COMPLETED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};const je={FULL_EXPORT:"FULL_EXPORT",INCREMENTAL_EXPORT:"INCREMENTAL_EXPORT"};const ze={NEW_AND_OLD_IMAGES:"NEW_AND_OLD_IMAGES",NEW_IMAGE:"NEW_IMAGE"};const qe={AES256:"AES256",KMS:"KMS"};const He={CANCELLED:"CANCELLED",CANCELLING:"CANCELLING",COMPLETED:"COMPLETED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};const Fe={GZIP:"GZIP",NONE:"NONE",ZSTD:"ZSTD"};const Ge={CSV:"CSV",DYNAMODB_JSON:"DYNAMODB_JSON",ION:"ION"};const Ve={ACTIVE:"ACTIVE",DISABLED:"DISABLED",DISABLING:"DISABLING",ENABLE_FAILED:"ENABLE_FAILED",ENABLING:"ENABLING",UPDATING:"UPDATING"};const Ke={ALL_ATTRIBUTES:"ALL_ATTRIBUTES",ALL_PROJECTED_ATTRIBUTES:"ALL_PROJECTED_ATTRIBUTES",COUNT:"COUNT",SPECIFIC_ATTRIBUTES:"SPECIFIC_ATTRIBUTES"};t.$Command=f.Command;t.__Client=f.Client;t.DynamoDBServiceException=W.DynamoDBServiceException;t.ApproximateCreationDateTimePrecision=ie;t.AttributeAction=se;t.BackupStatus=ce;t.BackupType=le;t.BackupTypeFilter=ye;t.BatchExecuteStatementCommand=BatchExecuteStatementCommand;t.BatchGetItemCommand=BatchGetItemCommand;t.BatchStatementErrorCodeEnum=Ce;t.BatchWriteItemCommand=BatchWriteItemCommand;t.BillingMode=ue;t.ComparisonOperator=xe;t.ConditionalOperator=Pe;t.ContinuousBackupsStatus=ve;t.ContributorInsightsAction=Re;t.ContributorInsightsMode=we;t.ContributorInsightsStatus=Ne;t.CreateBackupCommand=CreateBackupCommand;t.CreateGlobalTableCommand=CreateGlobalTableCommand;t.CreateTableCommand=CreateTableCommand;t.DeleteBackupCommand=DeleteBackupCommand;t.DeleteItemCommand=DeleteItemCommand;t.DeleteResourcePolicyCommand=DeleteResourcePolicyCommand;t.DeleteTableCommand=DeleteTableCommand;t.DescribeBackupCommand=DescribeBackupCommand;t.DescribeContinuousBackupsCommand=DescribeContinuousBackupsCommand;t.DescribeContributorInsightsCommand=DescribeContributorInsightsCommand;t.DescribeEndpointsCommand=DescribeEndpointsCommand;t.DescribeExportCommand=DescribeExportCommand;t.DescribeGlobalTableCommand=DescribeGlobalTableCommand;t.DescribeGlobalTableSettingsCommand=DescribeGlobalTableSettingsCommand;t.DescribeImportCommand=DescribeImportCommand;t.DescribeKinesisStreamingDestinationCommand=DescribeKinesisStreamingDestinationCommand;t.DescribeLimitsCommand=DescribeLimitsCommand;t.DescribeTableCommand=DescribeTableCommand;t.DescribeTableReplicaAutoScalingCommand=DescribeTableReplicaAutoScalingCommand;t.DescribeTimeToLiveCommand=DescribeTimeToLiveCommand;t.DestinationStatus=Ve;t.DisableKinesisStreamingDestinationCommand=DisableKinesisStreamingDestinationCommand;t.DynamoDB=DynamoDB;t.DynamoDBClient=DynamoDBClient;t.EnableKinesisStreamingDestinationCommand=EnableKinesisStreamingDestinationCommand;t.ExecuteStatementCommand=ExecuteStatementCommand;t.ExecuteTransactionCommand=ExecuteTransactionCommand;t.ExportFormat=Me;t.ExportStatus=Ue;t.ExportTableToPointInTimeCommand=ExportTableToPointInTimeCommand;t.ExportType=je;t.ExportViewType=ze;t.GetItemCommand=GetItemCommand;t.GetResourcePolicyCommand=GetResourcePolicyCommand;t.GlobalTableSettingsReplicationMode=Ae;t.GlobalTableStatus=Oe;t.ImportStatus=He;t.ImportTableCommand=ImportTableCommand;t.IndexStatus=ke;t.InputCompressionType=Fe;t.InputFormat=Ge;t.KeyType=de;t.ListBackupsCommand=ListBackupsCommand;t.ListContributorInsightsCommand=ListContributorInsightsCommand;t.ListExportsCommand=ListExportsCommand;t.ListGlobalTablesCommand=ListGlobalTablesCommand;t.ListImportsCommand=ListImportsCommand;t.ListTablesCommand=ListTablesCommand;t.ListTagsOfResourceCommand=ListTagsOfResourceCommand;t.MultiRegionConsistency=Le;t.PointInTimeRecoveryStatus=Te;t.ProjectionType=pe;t.PutItemCommand=PutItemCommand;t.PutResourcePolicyCommand=PutResourcePolicyCommand;t.QueryCommand=QueryCommand;t.ReplicaStatus=Ie;t.RestoreTableFromBackupCommand=RestoreTableFromBackupCommand;t.RestoreTableToPointInTimeCommand=RestoreTableToPointInTimeCommand;t.ReturnConsumedCapacity=be;t.ReturnItemCollectionMetrics=Ee;t.ReturnValue=$e;t.ReturnValuesOnConditionCheckFailure=Se;t.S3SseAlgorithm=qe;t.SSEStatus=fe;t.SSEType=me;t.ScalarAttributeType=ae;t.ScanCommand=ScanCommand;t.Select=Ke;t.StreamViewType=he;t.TableClass=_e;t.TableStatus=Be;t.TagResourceCommand=TagResourceCommand;t.TimeToLiveStatus=ge;t.TransactGetItemsCommand=TransactGetItemsCommand;t.TransactWriteItemsCommand=TransactWriteItemsCommand;t.UntagResourceCommand=UntagResourceCommand;t.UpdateContinuousBackupsCommand=UpdateContinuousBackupsCommand;t.UpdateContributorInsightsCommand=UpdateContributorInsightsCommand;t.UpdateGlobalTableCommand=UpdateGlobalTableCommand;t.UpdateGlobalTableSettingsCommand=UpdateGlobalTableSettingsCommand;t.UpdateItemCommand=UpdateItemCommand;t.UpdateKinesisStreamingDestinationCommand=UpdateKinesisStreamingDestinationCommand;t.UpdateTableCommand=UpdateTableCommand;t.UpdateTableReplicaAutoScalingCommand=UpdateTableReplicaAutoScalingCommand;t.UpdateTimeToLiveCommand=UpdateTimeToLiveCommand;t.WitnessStatus=De;t.paginateListContributorInsights=Q;t.paginateListExports=Y;t.paginateListImports=J;t.paginateListTables=Z;t.paginateQuery=ee;t.paginateScan=te;t.waitForContributorInsightsEnabled=waitForContributorInsightsEnabled;t.waitForExportCompleted=waitForExportCompleted;t.waitForImportCompleted=waitForImportCompleted;t.waitForKinesisStreamingDestinationActive=waitForKinesisStreamingDestinationActive;t.waitForTableExists=waitForTableExists;t.waitForTableNotExists=waitForTableNotExists;t.waitUntilContributorInsightsEnabled=waitUntilContributorInsightsEnabled;t.waitUntilExportCompleted=waitUntilExportCompleted;t.waitUntilImportCompleted=waitUntilImportCompleted;t.waitUntilKinesisStreamingDestinationActive=waitUntilKinesisStreamingDestinationActive;t.waitUntilTableExists=waitUntilTableExists;t.waitUntilTableNotExists=waitUntilTableNotExists;Object.prototype.hasOwnProperty.call(H,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:H["__proto__"]});Object.keys(H).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=H[e]}));Object.prototype.hasOwnProperty.call(K,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:K["__proto__"]});Object.keys(K).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=K[e]}))},18894:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DynamoDBServiceException=t.__ServiceException=void 0;const i=o(92658);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return i.ServiceException}});class DynamoDBServiceException extends i.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,DynamoDBServiceException.prototype)}}t.DynamoDBServiceException=DynamoDBServiceException},98461:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TransactionCanceledException=t.ConditionalCheckFailedException=t.IndexNotFoundException=t.ReplicaNotFoundException=t.ReplicaAlreadyExistsException=t.InvalidRestoreTimeException=t.TableAlreadyExistsException=t.ImportConflictException=t.PointInTimeRecoveryUnavailableException=t.InvalidExportTimeException=t.ExportConflictException=t.TransactionInProgressException=t.IdempotentParameterMismatchException=t.DuplicateItemException=t.ImportNotFoundException=t.GlobalTableNotFoundException=t.ExportNotFoundException=t.PolicyNotFoundException=t.TransactionConflictException=t.ResourceInUseException=t.GlobalTableAlreadyExistsException=t.TableNotFoundException=t.TableInUseException=t.LimitExceededException=t.ContinuousBackupsUnavailableException=t.ReplicatedWriteConflictException=t.ItemCollectionSizeLimitExceededException=t.ResourceNotFoundException=t.ProvisionedThroughputExceededException=t.InvalidEndpointException=t.ThrottlingException=t.RequestLimitExceeded=t.InternalServerError=t.BackupNotFoundException=t.BackupInUseException=void 0;const i=o(18894);class BackupInUseException extends i.DynamoDBServiceException{name="BackupInUseException";$fault="client";constructor(e){super({name:"BackupInUseException",$fault:"client",...e});Object.setPrototypeOf(this,BackupInUseException.prototype)}}t.BackupInUseException=BackupInUseException;class BackupNotFoundException extends i.DynamoDBServiceException{name="BackupNotFoundException";$fault="client";constructor(e){super({name:"BackupNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,BackupNotFoundException.prototype)}}t.BackupNotFoundException=BackupNotFoundException;class InternalServerError extends i.DynamoDBServiceException{name="InternalServerError";$fault="server";constructor(e){super({name:"InternalServerError",$fault:"server",...e});Object.setPrototypeOf(this,InternalServerError.prototype)}}t.InternalServerError=InternalServerError;class RequestLimitExceeded extends i.DynamoDBServiceException{name="RequestLimitExceeded";$fault="client";ThrottlingReasons;constructor(e){super({name:"RequestLimitExceeded",$fault:"client",...e});Object.setPrototypeOf(this,RequestLimitExceeded.prototype);this.ThrottlingReasons=e.ThrottlingReasons}}t.RequestLimitExceeded=RequestLimitExceeded;class ThrottlingException extends i.DynamoDBServiceException{name="ThrottlingException";$fault="client";throttlingReasons;constructor(e){super({name:"ThrottlingException",$fault:"client",...e});Object.setPrototypeOf(this,ThrottlingException.prototype);this.throttlingReasons=e.throttlingReasons}}t.ThrottlingException=ThrottlingException;class InvalidEndpointException extends i.DynamoDBServiceException{name="InvalidEndpointException";$fault="client";Message;constructor(e){super({name:"InvalidEndpointException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidEndpointException.prototype);this.Message=e.Message}}t.InvalidEndpointException=InvalidEndpointException;class ProvisionedThroughputExceededException extends i.DynamoDBServiceException{name="ProvisionedThroughputExceededException";$fault="client";ThrottlingReasons;constructor(e){super({name:"ProvisionedThroughputExceededException",$fault:"client",...e});Object.setPrototypeOf(this,ProvisionedThroughputExceededException.prototype);this.ThrottlingReasons=e.ThrottlingReasons}}t.ProvisionedThroughputExceededException=ProvisionedThroughputExceededException;class ResourceNotFoundException extends i.DynamoDBServiceException{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceNotFoundException.prototype)}}t.ResourceNotFoundException=ResourceNotFoundException;class ItemCollectionSizeLimitExceededException extends i.DynamoDBServiceException{name="ItemCollectionSizeLimitExceededException";$fault="client";constructor(e){super({name:"ItemCollectionSizeLimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,ItemCollectionSizeLimitExceededException.prototype)}}t.ItemCollectionSizeLimitExceededException=ItemCollectionSizeLimitExceededException;class ReplicatedWriteConflictException extends i.DynamoDBServiceException{name="ReplicatedWriteConflictException";$fault="client";$retryable={};constructor(e){super({name:"ReplicatedWriteConflictException",$fault:"client",...e});Object.setPrototypeOf(this,ReplicatedWriteConflictException.prototype)}}t.ReplicatedWriteConflictException=ReplicatedWriteConflictException;class ContinuousBackupsUnavailableException extends i.DynamoDBServiceException{name="ContinuousBackupsUnavailableException";$fault="client";constructor(e){super({name:"ContinuousBackupsUnavailableException",$fault:"client",...e});Object.setPrototypeOf(this,ContinuousBackupsUnavailableException.prototype)}}t.ContinuousBackupsUnavailableException=ContinuousBackupsUnavailableException;class LimitExceededException extends i.DynamoDBServiceException{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,LimitExceededException.prototype)}}t.LimitExceededException=LimitExceededException;class TableInUseException extends i.DynamoDBServiceException{name="TableInUseException";$fault="client";constructor(e){super({name:"TableInUseException",$fault:"client",...e});Object.setPrototypeOf(this,TableInUseException.prototype)}}t.TableInUseException=TableInUseException;class TableNotFoundException extends i.DynamoDBServiceException{name="TableNotFoundException";$fault="client";constructor(e){super({name:"TableNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,TableNotFoundException.prototype)}}t.TableNotFoundException=TableNotFoundException;class GlobalTableAlreadyExistsException extends i.DynamoDBServiceException{name="GlobalTableAlreadyExistsException";$fault="client";constructor(e){super({name:"GlobalTableAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,GlobalTableAlreadyExistsException.prototype)}}t.GlobalTableAlreadyExistsException=GlobalTableAlreadyExistsException;class ResourceInUseException extends i.DynamoDBServiceException{name="ResourceInUseException";$fault="client";constructor(e){super({name:"ResourceInUseException",$fault:"client",...e});Object.setPrototypeOf(this,ResourceInUseException.prototype)}}t.ResourceInUseException=ResourceInUseException;class TransactionConflictException extends i.DynamoDBServiceException{name="TransactionConflictException";$fault="client";constructor(e){super({name:"TransactionConflictException",$fault:"client",...e});Object.setPrototypeOf(this,TransactionConflictException.prototype)}}t.TransactionConflictException=TransactionConflictException;class PolicyNotFoundException extends i.DynamoDBServiceException{name="PolicyNotFoundException";$fault="client";constructor(e){super({name:"PolicyNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,PolicyNotFoundException.prototype)}}t.PolicyNotFoundException=PolicyNotFoundException;class ExportNotFoundException extends i.DynamoDBServiceException{name="ExportNotFoundException";$fault="client";constructor(e){super({name:"ExportNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ExportNotFoundException.prototype)}}t.ExportNotFoundException=ExportNotFoundException;class GlobalTableNotFoundException extends i.DynamoDBServiceException{name="GlobalTableNotFoundException";$fault="client";constructor(e){super({name:"GlobalTableNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,GlobalTableNotFoundException.prototype)}}t.GlobalTableNotFoundException=GlobalTableNotFoundException;class ImportNotFoundException extends i.DynamoDBServiceException{name="ImportNotFoundException";$fault="client";constructor(e){super({name:"ImportNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ImportNotFoundException.prototype)}}t.ImportNotFoundException=ImportNotFoundException;class DuplicateItemException extends i.DynamoDBServiceException{name="DuplicateItemException";$fault="client";constructor(e){super({name:"DuplicateItemException",$fault:"client",...e});Object.setPrototypeOf(this,DuplicateItemException.prototype)}}t.DuplicateItemException=DuplicateItemException;class IdempotentParameterMismatchException extends i.DynamoDBServiceException{name="IdempotentParameterMismatchException";$fault="client";Message;constructor(e){super({name:"IdempotentParameterMismatchException",$fault:"client",...e});Object.setPrototypeOf(this,IdempotentParameterMismatchException.prototype);this.Message=e.Message}}t.IdempotentParameterMismatchException=IdempotentParameterMismatchException;class TransactionInProgressException extends i.DynamoDBServiceException{name="TransactionInProgressException";$fault="client";Message;constructor(e){super({name:"TransactionInProgressException",$fault:"client",...e});Object.setPrototypeOf(this,TransactionInProgressException.prototype);this.Message=e.Message}}t.TransactionInProgressException=TransactionInProgressException;class ExportConflictException extends i.DynamoDBServiceException{name="ExportConflictException";$fault="client";constructor(e){super({name:"ExportConflictException",$fault:"client",...e});Object.setPrototypeOf(this,ExportConflictException.prototype)}}t.ExportConflictException=ExportConflictException;class InvalidExportTimeException extends i.DynamoDBServiceException{name="InvalidExportTimeException";$fault="client";constructor(e){super({name:"InvalidExportTimeException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidExportTimeException.prototype)}}t.InvalidExportTimeException=InvalidExportTimeException;class PointInTimeRecoveryUnavailableException extends i.DynamoDBServiceException{name="PointInTimeRecoveryUnavailableException";$fault="client";constructor(e){super({name:"PointInTimeRecoveryUnavailableException",$fault:"client",...e});Object.setPrototypeOf(this,PointInTimeRecoveryUnavailableException.prototype)}}t.PointInTimeRecoveryUnavailableException=PointInTimeRecoveryUnavailableException;class ImportConflictException extends i.DynamoDBServiceException{name="ImportConflictException";$fault="client";constructor(e){super({name:"ImportConflictException",$fault:"client",...e});Object.setPrototypeOf(this,ImportConflictException.prototype)}}t.ImportConflictException=ImportConflictException;class TableAlreadyExistsException extends i.DynamoDBServiceException{name="TableAlreadyExistsException";$fault="client";constructor(e){super({name:"TableAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,TableAlreadyExistsException.prototype)}}t.TableAlreadyExistsException=TableAlreadyExistsException;class InvalidRestoreTimeException extends i.DynamoDBServiceException{name="InvalidRestoreTimeException";$fault="client";constructor(e){super({name:"InvalidRestoreTimeException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidRestoreTimeException.prototype)}}t.InvalidRestoreTimeException=InvalidRestoreTimeException;class ReplicaAlreadyExistsException extends i.DynamoDBServiceException{name="ReplicaAlreadyExistsException";$fault="client";constructor(e){super({name:"ReplicaAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ReplicaAlreadyExistsException.prototype)}}t.ReplicaAlreadyExistsException=ReplicaAlreadyExistsException;class ReplicaNotFoundException extends i.DynamoDBServiceException{name="ReplicaNotFoundException";$fault="client";constructor(e){super({name:"ReplicaNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ReplicaNotFoundException.prototype)}}t.ReplicaNotFoundException=ReplicaNotFoundException;class IndexNotFoundException extends i.DynamoDBServiceException{name="IndexNotFoundException";$fault="client";constructor(e){super({name:"IndexNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,IndexNotFoundException.prototype)}}t.IndexNotFoundException=IndexNotFoundException;class ConditionalCheckFailedException extends i.DynamoDBServiceException{name="ConditionalCheckFailedException";$fault="client";Item;constructor(e){super({name:"ConditionalCheckFailedException",$fault:"client",...e});Object.setPrototypeOf(this,ConditionalCheckFailedException.prototype);this.Item=e.Item}}t.ConditionalCheckFailedException=ConditionalCheckFailedException;class TransactionCanceledException extends i.DynamoDBServiceException{name="TransactionCanceledException";$fault="client";Message;CancellationReasons;constructor(e){super({name:"TransactionCanceledException",$fault:"client",...e});Object.setPrototypeOf(this,TransactionCanceledException.prototype);this.Message=e.Message;this.CancellationReasons=e.CancellationReasons}}t.TransactionCanceledException=TransactionCanceledException},20507:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const i=o(61860);const a=i.__importDefault(o(87859));const d=o(59950);const m=o(5152);const f=o(97523);const h=o(5861);const P=o(3688);const _=o(92658);const L=o(47291);const U=o(23609);const j=o(92430);const H=o(61279);const V=o(78459);const getRuntimeConfig=e=>{(0,_.emitWarningIfUnsupportedVersion)(process.version);const t=(0,L.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(_.loadConfigsForDefaultMode);const o=(0,V.getRuntimeConfig)(e);(0,m.emitWarningIfUnsupportedVersion)(process.version);const i={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:t,accountIdEndpointMode:e?.accountIdEndpointMode??(0,L.loadConfig)(d.NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS,i),authSchemePreference:e?.authSchemePreference??(0,L.loadConfig)(f.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,i),bodyLengthChecker:e?.bodyLengthChecker??j.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??h.defaultProvider,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,m.createDefaultUserAgentProvider)({serviceId:o.serviceId,clientVersion:a.default.version}),endpointDiscoveryEnabledProvider:e?.endpointDiscoveryEnabledProvider??(0,L.loadConfig)(P.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS,i),maxAttempts:e?.maxAttempts??(0,L.loadConfig)(U.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,L.loadConfig)(L.NODE_REGION_CONFIG_OPTIONS,{...L.NODE_REGION_CONFIG_FILE_OPTIONS,...i}),requestHandler:H.NodeHttpHandler.create(e?.requestHandler??defaultConfigProvider),retryMode:e?.retryMode??(0,L.loadConfig)({...U.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||U.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??j.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??H.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,L.loadConfig)(L.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,i),useFipsEndpoint:e?.useFipsEndpoint??(0,L.loadConfig)(L.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,i),userAgentAppId:e?.userAgentAppId??(0,L.loadConfig)(m.NODE_APP_ID_CONFIG_OPTIONS,i)}};t.getRuntimeConfig=getRuntimeConfig},78459:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const i=o(97523);const a=o(37288);const d=o(2808);const m=o(92658);const f=o(93422);const h=o(23609);const P=o(92430);const _=o(43434);const L=o(1588);const U=o(93801);const getRuntimeConfig=e=>({apiVersion:"2012-08-10",base64Decoder:e?.base64Decoder??P.fromBase64,base64Encoder:e?.base64Encoder??P.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??L.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??_.defaultDynamoDBHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new i.AwsSdkSigV4Signer}],logger:e?.logger??new m.NoOpLogger,protocol:e?.protocol??a.AwsJson1_0Protocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.dynamodb",errorTypeRegistries:U.errorTypeRegistries,xmlNamespace:"http://dynamodb.amazonaws.com/doc/2012-08-10/",version:"2012-08-10",serviceTarget:"DynamoDB_20120810",jsonCodec:new d.DynamoDBJsonCodec},retryStrategy:e?.retryStrategy??(e?.maxAttempts==null&&e?.retryMode==null&&h.Retry.v2026?new h.StandardRetryStrategy({maxAttempts:4,baseDelay:25}):undefined),serviceId:e?.serviceId??"DynamoDB",urlParser:e?.urlParser??f.parseUrl,utf8Decoder:e?.utf8Decoder??P.fromUtf8,utf8Encoder:e?.utf8Encoder??P.toUtf8});t.getRuntimeConfig=getRuntimeConfig},93801:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchExecuteStatementInput$=t.BackupSummary$=t.BackupDetails$=t.BackupDescription$=t.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate$=t.AutoScalingTargetTrackingScalingPolicyConfigurationDescription$=t.AutoScalingSettingsUpdate$=t.AutoScalingSettingsDescription$=t.AutoScalingPolicyUpdate$=t.AutoScalingPolicyDescription$=t.AttributeValueUpdate$=t.AttributeDefinition$=t.ArchivalSummary$=t.errorTypeRegistries=t.TransactionInProgressException$=t.TransactionConflictException$=t.TransactionCanceledException$=t.ThrottlingException$=t.TableNotFoundException$=t.TableInUseException$=t.TableAlreadyExistsException$=t.ResourceNotFoundException$=t.ResourceInUseException$=t.RequestLimitExceeded$=t.ReplicatedWriteConflictException$=t.ReplicaNotFoundException$=t.ReplicaAlreadyExistsException$=t.ProvisionedThroughputExceededException$=t.PolicyNotFoundException$=t.PointInTimeRecoveryUnavailableException$=t.LimitExceededException$=t.ItemCollectionSizeLimitExceededException$=t.InvalidRestoreTimeException$=t.InvalidExportTimeException$=t.InvalidEndpointException$=t.InternalServerError$=t.IndexNotFoundException$=t.ImportNotFoundException$=t.ImportConflictException$=t.IdempotentParameterMismatchException$=t.GlobalTableNotFoundException$=t.GlobalTableAlreadyExistsException$=t.ExportNotFoundException$=t.ExportConflictException$=t.DuplicateItemException$=t.ContinuousBackupsUnavailableException$=t.ConditionalCheckFailedException$=t.BackupNotFoundException$=t.BackupInUseException$=t.DynamoDBServiceException$=void 0;t.DescribeExportInput$=t.DescribeEndpointsResponse$=t.DescribeEndpointsRequest$=t.DescribeContributorInsightsOutput$=t.DescribeContributorInsightsInput$=t.DescribeContinuousBackupsOutput$=t.DescribeContinuousBackupsInput$=t.DescribeBackupOutput$=t.DescribeBackupInput$=t.DeleteTableOutput$=t.DeleteTableInput$=t.DeleteResourcePolicyOutput$=t.DeleteResourcePolicyInput$=t.DeleteRequest$=t.DeleteReplicationGroupMemberAction$=t.DeleteReplicaAction$=t.DeleteItemOutput$=t.DeleteItemInput$=t.DeleteGlobalTableWitnessGroupMemberAction$=t.DeleteGlobalSecondaryIndexAction$=t.DeleteBackupOutput$=t.DeleteBackupInput$=t.Delete$=t.CsvOptions$=t.CreateTableOutput$=t.CreateTableInput$=t.CreateReplicationGroupMemberAction$=t.CreateReplicaAction$=t.CreateGlobalTableWitnessGroupMemberAction$=t.CreateGlobalTableOutput$=t.CreateGlobalTableInput$=t.CreateGlobalSecondaryIndexAction$=t.CreateBackupOutput$=t.CreateBackupInput$=t.ContributorInsightsSummary$=t.ContinuousBackupsDescription$=t.ConsumedCapacity$=t.ConditionCheck$=t.Condition$=t.Capacity$=t.CancellationReason$=t.BillingModeSummary$=t.BatchWriteItemOutput$=t.BatchWriteItemInput$=t.BatchStatementResponse$=t.BatchStatementRequest$=t.BatchStatementError$=t.BatchGetItemOutput$=t.BatchGetItemInput$=t.BatchExecuteStatementOutput$=void 0;t.IncrementalExportSpecification$=t.ImportTableOutput$=t.ImportTableInput$=t.ImportTableDescription$=t.ImportSummary$=t.GlobalTableWitnessGroupUpdate$=t.GlobalTableWitnessDescription$=t.GlobalTableGlobalSecondaryIndexSettingsUpdate$=t.GlobalTableDescription$=t.GlobalTable$=t.GlobalSecondaryIndexWarmThroughputDescription$=t.GlobalSecondaryIndexUpdate$=t.GlobalSecondaryIndexInfo$=t.GlobalSecondaryIndexDescription$=t.GlobalSecondaryIndexAutoScalingUpdate$=t.GlobalSecondaryIndex$=t.GetResourcePolicyOutput$=t.GetResourcePolicyInput$=t.GetItemOutput$=t.GetItemInput$=t.Get$=t.FailureException$=t.ExportTableToPointInTimeOutput$=t.ExportTableToPointInTimeInput$=t.ExportSummary$=t.ExportDescription$=t.ExpectedAttributeValue$=t.ExecuteTransactionOutput$=t.ExecuteTransactionInput$=t.ExecuteStatementOutput$=t.ExecuteStatementInput$=t.Endpoint$=t.EnableKinesisStreamingConfiguration$=t.DescribeTimeToLiveOutput$=t.DescribeTimeToLiveInput$=t.DescribeTableReplicaAutoScalingOutput$=t.DescribeTableReplicaAutoScalingInput$=t.DescribeTableOutput$=t.DescribeTableInput$=t.DescribeLimitsOutput$=t.DescribeLimitsInput$=t.DescribeKinesisStreamingDestinationOutput$=t.DescribeKinesisStreamingDestinationInput$=t.DescribeImportOutput$=t.DescribeImportInput$=t.DescribeGlobalTableSettingsOutput$=t.DescribeGlobalTableSettingsInput$=t.DescribeGlobalTableOutput$=t.DescribeGlobalTableInput$=t.DescribeExportOutput$=void 0;t.ReplicaGlobalSecondaryIndexDescription$=t.ReplicaGlobalSecondaryIndexAutoScalingUpdate$=t.ReplicaGlobalSecondaryIndexAutoScalingDescription$=t.ReplicaGlobalSecondaryIndex$=t.ReplicaDescription$=t.ReplicaAutoScalingUpdate$=t.ReplicaAutoScalingDescription$=t.Replica$=t.QueryOutput$=t.QueryInput$=t.PutResourcePolicyOutput$=t.PutResourcePolicyInput$=t.PutRequest$=t.PutItemOutput$=t.PutItemInput$=t.Put$=t.ProvisionedThroughputOverride$=t.ProvisionedThroughputDescription$=t.ProvisionedThroughput$=t.Projection$=t.PointInTimeRecoverySpecification$=t.PointInTimeRecoveryDescription$=t.ParameterizedStatement$=t.OnDemandThroughputOverride$=t.OnDemandThroughput$=t.LocalSecondaryIndexInfo$=t.LocalSecondaryIndexDescription$=t.LocalSecondaryIndex$=t.ListTagsOfResourceOutput$=t.ListTagsOfResourceInput$=t.ListTablesOutput$=t.ListTablesInput$=t.ListImportsOutput$=t.ListImportsInput$=t.ListGlobalTablesOutput$=t.ListGlobalTablesInput$=t.ListExportsOutput$=t.ListExportsInput$=t.ListContributorInsightsOutput$=t.ListContributorInsightsInput$=t.ListBackupsOutput$=t.ListBackupsInput$=t.KinesisStreamingDestinationOutput$=t.KinesisStreamingDestinationInput$=t.KinesisDataStreamDestination$=t.KeySchemaElement$=t.KeysAndAttributes$=t.ItemResponse$=t.ItemCollectionMetrics$=t.InputFormatOptions$=void 0;t.UpdateKinesisStreamingDestinationInput$=t.UpdateKinesisStreamingConfiguration$=t.UpdateItemOutput$=t.UpdateItemInput$=t.UpdateGlobalTableSettingsOutput$=t.UpdateGlobalTableSettingsInput$=t.UpdateGlobalTableOutput$=t.UpdateGlobalTableInput$=t.UpdateGlobalSecondaryIndexAction$=t.UpdateContributorInsightsOutput$=t.UpdateContributorInsightsInput$=t.UpdateContinuousBackupsOutput$=t.UpdateContinuousBackupsInput$=t.Update$=t.UntagResourceInput$=t.TransactWriteItemsOutput$=t.TransactWriteItemsInput$=t.TransactWriteItem$=t.TransactGetItemsOutput$=t.TransactGetItemsInput$=t.TransactGetItem$=t.TimeToLiveSpecification$=t.TimeToLiveDescription$=t.ThrottlingReason$=t.TagResourceInput$=t.Tag$=t.TableWarmThroughputDescription$=t.TableDescription$=t.TableCreationParameters$=t.TableClassSummary$=t.TableAutoScalingDescription$=t.StreamSpecification$=t.SSESpecification$=t.SSEDescription$=t.SourceTableFeatureDetails$=t.SourceTableDetails$=t.ScanOutput$=t.ScanInput$=t.S3BucketSource$=t.RestoreTableToPointInTimeOutput$=t.RestoreTableToPointInTimeInput$=t.RestoreTableFromBackupOutput$=t.RestoreTableFromBackupInput$=t.RestoreSummary$=t.ReplicaUpdate$=t.ReplicationGroupUpdate$=t.ReplicaSettingsUpdate$=t.ReplicaSettingsDescription$=t.ReplicaGlobalSecondaryIndexSettingsUpdate$=t.ReplicaGlobalSecondaryIndexSettingsDescription$=void 0;t.PutItem$=t.ListTagsOfResource$=t.ListTables$=t.ListImports$=t.ListGlobalTables$=t.ListExports$=t.ListContributorInsights$=t.ListBackups$=t.ImportTable$=t.GetResourcePolicy$=t.GetItem$=t.ExportTableToPointInTime$=t.ExecuteTransaction$=t.ExecuteStatement$=t.EnableKinesisStreamingDestination$=t.DisableKinesisStreamingDestination$=t.DescribeTimeToLive$=t.DescribeTableReplicaAutoScaling$=t.DescribeTable$=t.DescribeLimits$=t.DescribeKinesisStreamingDestination$=t.DescribeImport$=t.DescribeGlobalTableSettings$=t.DescribeGlobalTable$=t.DescribeExport$=t.DescribeEndpoints$=t.DescribeContributorInsights$=t.DescribeContinuousBackups$=t.DescribeBackup$=t.DeleteTable$=t.DeleteResourcePolicy$=t.DeleteItem$=t.DeleteBackup$=t.CreateTable$=t.CreateGlobalTable$=t.CreateBackup$=t.BatchWriteItem$=t.BatchGetItem$=t.BatchExecuteStatement$=t.AttributeValue$=t.WriteRequest$=t.WarmThroughput$=t.UpdateTimeToLiveOutput$=t.UpdateTimeToLiveInput$=t.UpdateTableReplicaAutoScalingOutput$=t.UpdateTableReplicaAutoScalingInput$=t.UpdateTableOutput$=t.UpdateTableInput$=t.UpdateReplicationGroupMemberAction$=t.UpdateKinesisStreamingDestinationOutput$=void 0;t.UpdateTimeToLive$=t.UpdateTableReplicaAutoScaling$=t.UpdateTable$=t.UpdateKinesisStreamingDestination$=t.UpdateItem$=t.UpdateGlobalTableSettings$=t.UpdateGlobalTable$=t.UpdateContributorInsights$=t.UpdateContinuousBackups$=t.UntagResource$=t.TransactWriteItems$=t.TransactGetItems$=t.TagResource$=t.Scan$=t.RestoreTableToPointInTime$=t.RestoreTableFromBackup$=t.Query$=t.PutResourcePolicy$=void 0;const i="Action";const a="ArchivalBackupArn";const d="ApproximateCreationDateTimePrecision";const m="AttributeDefinition";const f="ArchivalDateTime";const h="AttributeDefinitions";const P="AttributeMap";const _="AccountMaxReadCapacityUnits";const L="AccountMaxWriteCapacityUnits";const U="AttributeName";const j="ArchivalReason";const H="ArchivalSummary";const V="AutoScalingDisabled";const K="AutoScalingPolicyDescription";const W="AutoScalingPolicyDescriptionList";const X="AutoScalingPolicyUpdate";const Q="AutoScalingRoleArn";const Y="AutoScalingSettingsDescription";const J="AutoScalingSettingsUpdate";const Z="AutoScalingTargetTrackingScalingPolicyConfigurationDescription";const ee="AutoScalingTargetTrackingScalingPolicyConfigurationUpdate";const te="AttributeType";const ne="AttributesToGet";const re="AttributeUpdates";const oe="AttributeValue";const ie="AttributeValueList";const se="AttributeValueUpdate";const ae="Address";const ce="Attributes";const le="Backfilling";const ue="BackupArn";const de="BackupCreationDateTime";const pe="BackupDescription";const me="BackupDetails";const fe="BackupExpiryDateTime";const he="BatchExecuteStatement";const ge="BatchExecuteStatementInput";const ye="BatchExecuteStatementOutput";const be="BatchGetItem";const Se="BatchGetItemInput";const Ce="BatchGetItemOutput";const Ee="BatchGetResponseMap";const xe="BatchGetRequestMap";const Pe="BackupInUseException";const ve="BillingMode";const Te="BillingModeOverride";const Re="BillingModeSummary";const we="BackupName";const Ne="BackupNotFoundException";const Oe="BOOL";const ke="BackupStatus";const Ae="BackupSizeBytes";const Ie="BilledSizeBytes";const _e="BatchStatementError";const Be="BatchStatementRequest";const De="BatchStatementResponse";const Le="BS";const $e="BackupSummary";const Me="BackupSummaries";const Ue="BackupType";const je="BatchWriteItem";const ze="BatchWriteItemInput";const qe="BatchWriteItemOutput";const He="BatchWriteItemRequestMap";const Fe="B";const Ge="Code";const Ve="CreateBackup";const Ke="ContinuousBackupsDescription";const We="CreateBackupInput";const Xe="CreateBackupOutput";const Qe="ContinuousBackupsStatus";const Ye="ContinuousBackupsUnavailableException";const Je="ConsumedCapacity";const Ze="ConditionalCheckFailedException";const ot="ConsumedCapacityMultiple";const yt="ConditionCheck";const Rt="CreationDateTime";const zt="ConditionExpression";const qt="CreateGlobalSecondaryIndexAction";const Ht="CreateGlobalTable";const Kt="CreateGlobalTableInput";const Xt="CreateGlobalTableOutput";const Qt="CreateGlobalTableWitnessGroupMemberAction";const Yt="ContributorInsightsAction";const Jt="ContributorInsightsMode";const Zt="ContributorInsightsRuleList";const en="ContributorInsightsSummary";const tn="ContributorInsightsStatus";const nn="ContributorInsightsSummaries";const rn="ComparisonOperator";const on="ConditionalOperator";const sn="CsvOptions";const an="CachePeriodInMinutes";const cn="CancellationReasons";const ln="CreateReplicaAction";const un="CreateReplicationGroupMemberAction";const dn="CancellationReasonList";const pn="ConfirmRemoveSelfResourceAccess";const mn="ClientRequestToken";const hn="CancellationReason";const gn="ConsistentRead";const yn="ClientToken";const bn="CreateTableInput";const Sn="CreateTableOutput";const Cn="CreateTable";const En="CapacityUnits";const xn="CloudWatchLogGroupArn";const Pn="Capacity";const vn="Condition";const Tn="Count";const Rn="Create";const wn="Csv";const Nn="Delimiter";const On="DeleteBackup";const kn="DeleteBackupInput";const An="DescribeBackupInput";const In="DeleteBackupOutput";const _n="DescribeBackupOutput";const Bn="DescribeBackup";const Dn="DescribeContinuousBackups";const Ln="DescribeContinuousBackupsInput";const $n="DescribeContinuousBackupsOutput";const Mn="DescribeContributorInsights";const Un="DescribeContributorInsightsInput";const jn="DescribeContributorInsightsOutput";const zn="DescribeEndpoints";const qn="DescribeExportInput";const Hn="DescribeExportOutput";const Fn="DescribeEndpointsRequest";const Gn="DescribeEndpointsResponse";const Vn="DescribeExport";const Kn="DeleteGlobalSecondaryIndexAction";const Wn="DescribeGlobalTable";const Xn="DescribeGlobalTableInput";const Qn="DescribeGlobalTableOutput";const Yn="DescribeGlobalTableSettings";const Jn="DescribeGlobalTableSettingsInput";const Zn="DescribeGlobalTableSettingsOutput";const er="DeleteGlobalTableWitnessGroupMemberAction";const tr="DeleteItem";const nr="DuplicateItemException";const rr="DeleteItemInput";const or="DescribeImportInput";const ir="DeleteItemOutput";const sr="DescribeImportOutput";const ar="DescribeImport";const cr="DescribeKinesisStreamingDestination";const lr="DescribeKinesisStreamingDestinationInput";const ur="DescribeKinesisStreamingDestinationOutput";const dr="DisableKinesisStreamingDestination";const pr="DescribeLimits";const mr="DescribeLimitsInput";const fr="DescribeLimitsOutput";const hr="DeletionProtectionEnabled";const gr="DeleteRequest";const yr="DeleteReplicaAction";const br="DeleteReplicationGroupMemberAction";const Sr="DeleteResourcePolicy";const Cr="DeleteResourcePolicyInput";const Er="DeleteResourcePolicyOutput";const xr="DestinationStatus";const Pr="DestinationStatusDescription";const vr="DisableScaleIn";const Tr="DeleteTable";const Rr="DeleteTableInput";const wr="DescribeTableInput";const Nr="DeleteTableOutput";const Or="DescribeTableOutput";const kr="DescribeTableReplicaAutoScaling";const Ar="DescribeTableReplicaAutoScalingInput";const Ir="DescribeTableReplicaAutoScalingOutput";const _r="DescribeTimeToLive";const Br="DescribeTimeToLiveInput";const Dr="DescribeTimeToLiveOutput";const Lr="DescribeTable";const $r="Delete";const Mr="Error";const Ur="ExportArn";const jr="ExpectedAttributeMap";const zr="ExpressionAttributeNames";const qr="ExpressionAttributeValues";const Hr="ExpressionAttributeValueMap";const Fr="ExpectedAttributeValue";const Gr="ErrorCount";const Vr="ExportConflictException";const Kr="ExportDescription";const Wr="ExceptionDescription";const Xr="ExportFormat";const Qr="ExportFromTime";const Yr="EnableKinesisStreamingConfiguration";const Jr="EnableKinesisStreamingDestination";const Zr="ExportManifest";const eo="ExceptionName";const to="ExportNotFoundException";const no="EarliestRestorableDateTime";const ro="ExpectedRevisionId";const oo="ExportStatus";const io="ExclusiveStartBackupArn";const so="ExclusiveStartGlobalTableName";const ao="ExecuteStatementInput";const co="ExclusiveStartKey";const lo="ExecuteStatementOutput";const uo="ExclusiveStartTableName";const po="ExportSummary";const mo="ExecuteStatement";const fo="ExportSummaries";const ho="EndTime";const go="ExecuteTransactionInput";const yo="ExecuteTransactionOutput";const bo="ExportToTime";const So="ExportTableToPointInTime";const Co="ExportTableToPointInTimeInput";const Eo="ExportTableToPointInTimeOutput";const xo="ExportTime";const Po="ExecuteTransaction";const vo="ExportType";const To="ExportViewType";const Ro="Endpoints";const wo="Enabled";const No="Endpoint";const Oo="Expected";const ko="Exists";const Ao="FailureCode";const Io="FilterConditionMap";const _o="FailureException";const Bo="FilterExpression";const Do="FailureMessage";const Lo="Get";const $o="GetItem";const Mo="GetItemInput";const Uo="GetItemOutput";const jo="GetResourcePolicy";const zo="GetResourcePolicyInput";const qo="GetResourcePolicyOutput";const Ho="GlobalSecondaryIndexes";const Fo="GlobalSecondaryIndexAutoScalingUpdate";const Go="GlobalSecondaryIndexAutoScalingUpdateList";const Vo="GlobalSecondaryIndexDescription";const Ko="GlobalSecondaryIndexDescriptionList";const Wo="GlobalSecondaryIndexInfo";const Xo="GlobalSecondaryIndexList";const Qo="GlobalSecondaryIndexOverride";const Yo="GlobalSecondaryIndexUpdate";const Jo="GlobalSecondaryIndexUpdateList";const Zo="GlobalSecondaryIndexUpdates";const ei="GlobalSecondaryIndexWarmThroughputDescription";const ti="GlobalSecondaryIndex";const ni="GlobalTable";const ri="GlobalTableArn";const oi="GlobalTableAlreadyExistsException";const si="GlobalTableBillingMode";const ai="GlobalTableDescription";const ci="GlobalTableGlobalSecondaryIndexSettingsUpdate";const li="GlobalTableGlobalSecondaryIndexSettingsUpdateList";const ui="GlobalTableList";const di="GlobalTableName";const pi="GlobalTableNotFoundException";const mi="GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate";const fi="GlobalTableProvisionedWriteCapacityUnits";const hi="GlobalTableStatus";const gi="GlobalTableSourceArn";const yi="GlobalTableSettingsReplicationMode";const bi="GlobalTableVersion";const Si="GlobalTableWitnesses";const Ei="GlobalTableWitnessDescription";const xi="GlobalTableWitnessDescriptionList";const Pi="GlobalTableWitnessGroupUpdate";const vi="GlobalTableWitnessGroupUpdateList";const Ti="GlobalTableWitnessUpdates";const Ri="GlobalTables";const wi="HeaderList";const Ni="Item";const Oi="ImportArn";const ki="IndexArn";const Ai="ItemCount";const Ii="ImportConflictException";const _i="ItemCollectionKey";const Bi="ItemCollectionKeyAttributeMap";const Di="ItemCollectionMetrics";const Li="ItemCollectionMetricsMultiple";const $i="ItemCollectionMetricsPerTable";const Mi="ItemCollectionSizeLimitExceededException";const Ui="InputCompressionType";const ji="InaccessibleEncryptionDateTime";const zi="InvalidEndpointException";const qi="IncrementalExportSpecification";const Hi="InvalidExportTimeException";const Fi="InputFormat";const Gi="InputFormatOptions";const Vi="ImportedItemCount";const Ki="ItemList";const Wi="IndexName";const Xi="ImportNotFoundException";const Qi="IndexNotFoundException";const Yi="IdempotentParameterMismatchException";const Ji="ItemResponse";const Zi="ItemResponseList";const es="InvalidRestoreTimeException";const ts="IndexStatus";const ns="IndexSizeBytes";const rs="InternalServerError";const os="ImportSummaryList";const is="ImportSummary";const ss="ImportStatus";const as="ImportTable";const cs="ImportTableDescription";const ls="ImportTableInput";const us="ImportTableOutput";const ds="Items";const ps="Key";const ms="KeysAndAttributes";const fs="KeyConditions";const hs="KeyConditionExpression";const gs="KinesisDataStreamDestinations";const ys="KinesisDataStreamDestination";const bs="KeyList";const Ss="KMSMasterKeyArn";const Cs="KMSMasterKeyId";const Es="KeySchema";const xs="KinesisStreamingDestinationInput";const Ps="KinesisStreamingDestinationOutput";const vs="KeySchemaElement";const Ts="KeyType";const Rs="Keys";const ws="Limit";const Ns="ListAttributeValue";const Os="ListBackups";const ks="ListBackupsInput";const As="ListBackupsOutput";const Is="ListContributorInsights";const _s="ListContributorInsightsInput";const Bs="ListContributorInsightsOutput";const Ds="LastDecreaseDateTime";const Ls="ListExports";const $s="LastEvaluatedBackupArn";const Ms="LimitExceededException";const Us="LastEvaluatedGlobalTableName";const js="ListExportsInput";const zs="LastEvaluatedKey";const qs="ListExportsOutput";const Hs="LastEvaluatedTableName";const Fs="ListGlobalTables";const Gs="ListGlobalTablesInput";const Vs="ListGlobalTablesOutput";const Ks="ListImports";const Ws="LastIncreaseDateTime";const Xs="ListImportsInput";const Qs="ListImportsOutput";const Ys="LatestRestorableDateTime";const Js="LatestStreamArn";const Zs="LocalSecondaryIndexes";const ea="LocalSecondaryIndexDescription";const ta="LocalSecondaryIndexDescriptionList";const na="LocalSecondaryIndexInfo";const ra="LocalSecondaryIndexList";const oa="LocalSecondaryIndexOverride";const ia="LocalSecondaryIndex";const sa="LatestStreamLabel";const aa="ListTables";const ca="ListTablesInput";const la="ListTablesOutput";const ua="ListTagsOfResource";const da="ListTagsOfResourceInput";const pa="ListTagsOfResourceOutput";const ma="LastUpdateDateTime";const fa="LastUpdateToPayPerRequestDateTime";const ha="L";const ga="Message";const ya="MapAttributeValue";const ba="MaxResults";const Sa="MultiRegionConsistency";const Ca="MaxReadRequestUnits";const Ea="MinimumUnits";const xa="MaximumUnits";const Pa="MaxWriteRequestUnits";const va="M";const Ta="N";const Ra="NonKeyAttributes";const wa="NumberOfDecreasesToday";const Na="NS";const Oa="NextToken";const ka="NULL";const Aa="OnDemandThroughput";const Ia="OnDemandThroughputOverride";const _a="Parameters";const Ba="ProjectionExpression";const Da="PutItem";const La="ProcessedItemCount";const $a="PutItemInput";const Ma="PutItemInputAttributeMap";const Ua="PutItemOutput";const ja="PointInTimeRecoveryDescription";const za="PointInTimeRecoveryEnabled";const qa="PointInTimeRecoveryStatus";const Ha="PointInTimeRecoverySpecification";const Fa="PointInTimeRecoveryUnavailableException";const Ga="PolicyName";const Va="PolicyNotFoundException";const Ka="PartiQLBatchRequest";const Wa="PartiQLBatchResponse";const Xa="PutRequest";const Qa="ProvisionedReadCapacityAutoScalingSettings";const Ya="ProvisionedReadCapacityAutoScalingSettingsUpdate";const Ja="ProvisionedReadCapacityAutoScalingUpdate";const Za="ProvisionedReadCapacityUnits";const ec="PutResourcePolicy";const tc="PutResourcePolicyInput";const nc="PutResourcePolicyOutput";const rc="PageSize";const oc="ProcessedSizeBytes";const ic="PreparedStatementParameters";const sc="ParameterizedStatement";const ac="ParameterizedStatements";const cc="ProvisionedThroughput";const lc="ProvisionedThroughputDescription";const uc="ProvisionedThroughputExceededException";const dc="ProvisionedThroughputOverride";const pc="ProjectionType";const mc="ProvisionedWriteCapacityAutoScalingSettings";const fc="ProvisionedWriteCapacityAutoScalingSettingsUpdate";const hc="ProvisionedWriteCapacityAutoScalingUpdate";const gc="ProvisionedWriteCapacityUnits";const yc="Policy";const bc="Projection";const Sc="Put";const Cc="Query";const Ec="QueryFilter";const xc="QueryInput";const Pc="QueryOutput";const vc="Responses";const Tc="ResourceArn";const Rc="ReplicaAlreadyExistsException";const wc="ReplicaAutoScalingDescription";const Nc="ReplicaAutoScalingDescriptionList";const Oc="ReplicaAutoScalingUpdate";const kc="ReplicaAutoScalingUpdateList";const Ac="ReplicaArn";const Ic="ReplicaBillingModeSummary";const _c="ReturnConsumedCapacity";const Bc="ReadCapacityUnits";const Dc="ReplicaDescription";const Lc="ReplicaDescriptionList";const $c="RestoreDateTime";const Mc="ReplicationGroup";const Uc="ReplicaGlobalSecondaryIndex";const jc="ReplicaGlobalSecondaryIndexAutoScalingDescription";const zc="ReplicaGlobalSecondaryIndexAutoScalingDescriptionList";const qc="ReplicaGlobalSecondaryIndexAutoScalingUpdate";const Hc="ReplicaGlobalSecondaryIndexAutoScalingUpdateList";const Fc="ReplicaGlobalSecondaryIndexDescription";const Gc="ReplicaGlobalSecondaryIndexDescriptionList";const Vc="ReplicaGlobalSecondaryIndexList";const Kc="ReplicaGlobalSecondaryIndexSettings";const Wc="ReplicaGlobalSecondaryIndexSettingsDescription";const Xc="ReplicaGlobalSecondaryIndexSettingsDescriptionList";const Qc="ReplicaGlobalSecondaryIndexSettingsUpdate";const Yc="ReplicaGlobalSecondaryIndexSettingsUpdateList";const Jc="ReplicaGlobalSecondaryIndexUpdates";const Zc="ReplicationGroupUpdate";const el="ReplicationGroupUpdateList";const tl="RequestItems";const nl="ReturnItemCollectionMetrics";const rl="ReplicaInaccessibleDateTime";const ol="RestoreInProgress";const il="ResourceInUseException";const sl="RevisionId";const al="ReplicaList";const cl="RequestLimitExceeded";const ll="RegionName";const ul="ReplicaNotFoundException";const dl="ResourceNotFoundException";const pl="ResourcePolicy";const ml="RecoveryPeriodInDays";const fl="ReplicaProvisionedReadCapacityAutoScalingSettings";const hl="ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate";const gl="ReplicaProvisionedReadCapacityAutoScalingUpdate";const yl="ReplicaProvisionedReadCapacityUnits";const bl="ReplicaProvisionedWriteCapacityAutoScalingSettings";const Sl="ReplicaProvisionedWriteCapacityUnits";const Cl="ReplicaSettings";const El="ReplicaStatusDescription";const xl="ReplicaSettingsDescriptionList";const Pl="ReplicaSettingsDescription";const vl="ReplicaStatusPercentProgress";const Tl="ReplicaSettingsUpdate";const Rl="ReplicaSettingsUpdateList";const wl="ReplicaStatus";const Nl="RestoreSummary";const Ol="ReplicaTableClass";const kl="ReplicaTableClassSummary";const Al="RestoreTableFromBackup";const Il="RestoreTableFromBackupInput";const _l="RestoreTableFromBackupOutput";const Bl="RestoreTableToPointInTime";const Dl="RestoreTableToPointInTimeInput";const Ll="RestoreTableToPointInTimeOutput";const $l="ReplicaUpdate";const Ml="ReplicaUpdateList";const Ul="ReadUnitsPerSecond";const jl="ReplicaUpdates";const zl="ReturnValues";const ql="ReturnValuesOnConditionCheckFailure";const Hl="ReplicatedWriteConflictException";const Fl="Replica";const Gl="Replicas";const Vl="Statements";const Kl="StreamArn";const Wl="S3Bucket";const Xl="SourceBackupArn";const Ql="S3BucketOwner";const Yl="S3BucketSource";const Jl="ScannedCount";const Zl="StreamDescription";const eu="StreamEnabled";const tu="SizeEstimateRangeGB";const nu="ScanFilter";const ru="ScanInput";const ou="ScaleInCooldown";const iu="SecondaryIndexesCapacityMap";const su="ScanIndexForward";const au="S3KeyPrefix";const cu="ScanOutput";const lu="ScaleOutCooldown";const uu="ScalingPolicies";const du="ScalingPolicyUpdate";const pu="S3Prefix";const mu="StreamSpecification";const fu="S3SseAlgorithm";const hu="SSEDescription";const gu="SSESpecification";const yu="SSESpecificationOverride";const bu="SSEType";const Su="S3SseKmsKeyId";const Cu="SS";const Eu="StartTime";const xu="SourceTableArn";const Pu="SourceTableDetails";const vu="SourceTableFeatureDetails";const Tu="SourceTableName";const Ru="StreamViewType";const wu="S";const Nu="Scan";const Ou="Select";const ku="Segment";const Au="Statement";const Iu="Status";const _u="Table";const Bu="TableArn";const Du="TableAlreadyExistsException";const Lu="TableAutoScalingDescription";const $u="TableClass";const Mu="TableCreationDateTime";const Uu="TransactionCanceledException";const ju="TransactionConflictException";const zu="TableClassOverride";const qu="TableCreationParameters";const Hu="TableClassSummary";const Fu="TableDescription";const Gu="ThrottlingException";const Vu="TransactGetItem";const Ku="TransactGetItemsInput";const Wu="TransactGetItemList";const Xu="TransactGetItemsOutput";const Qu="TransactGetItems";const Yu="TableId";const Ju="TransactionInProgressException";const Zu="TableInUseException";const ed="TransactItems";const td="TagKeys";const nd="TagList";const rd="TableMaxReadCapacityUnits";const od="TableMaxWriteCapacityUnits";const id="TableName";const sd="TableNotFoundException";const ad="TableNames";const cd="ThrottlingReasons";const ld="TagResourceInput";const ud="ThrottlingReasonList";const dd="TimeRangeLowerBound";const pd="TimeRangeUpperBound";const md="TagResource";const fd="ThrottlingReason";const hd="TransactStatements";const gd="TableSizeBytes";const yd="TableStatus";const bd="TotalSegments";const Sd="TimeToLiveDescription";const Cd="TimeToLiveStatus";const Ed="TimeToLiveSpecification";const xd="TargetTableName";const Pd="TargetTrackingScalingPolicyConfiguration";const vd="TargetValue";const Td="TransactWriteItem";const Rd="TransactWriteItemsInput";const wd="TransactWriteItemList";const Nd="TransactWriteItemsOutput";const Od="TransactWriteItems";const kd="TableWarmThroughputDescription";const Ad="Tags";const Id="Tag";const _d="Update";const Bd="UpdateContinuousBackups";const Dd="UpdateContinuousBackupsInput";const Ld="UpdateContinuousBackupsOutput";const $d="UpdateContributorInsights";const Md="UpdateContributorInsightsInput";const Ud="UpdateContributorInsightsOutput";const jd="UpdateExpression";const zd="UpdateGlobalSecondaryIndexAction";const qd="UpdateGlobalTable";const Hd="UpdateGlobalTableInput";const Fd="UpdateGlobalTableOutput";const Gd="UpdateGlobalTableSettings";const Vd="UpdateGlobalTableSettingsInput";const Kd="UpdateGlobalTableSettingsOutput";const Wd="UnprocessedItems";const Xd="UpdateItemInput";const Qd="UpdateItemOutput";const Yd="UpdateItem";const Jd="UnprocessedKeys";const Zd="UpdateKinesisStreamingConfiguration";const ep="UpdateKinesisStreamingDestination";const tp="UpdateKinesisStreamingDestinationInput";const np="UpdateKinesisStreamingDestinationOutput";const rp="UseLatestRestorableTime";const ip="UntagResource";const sp="UpdateReplicationGroupMemberAction";const ap="UntagResourceInput";const cp="UpdateTable";const lp="UpdateTableInput";const up="UpdateTableOutput";const dp="UpdateTableReplicaAutoScaling";const pp="UpdateTableReplicaAutoScalingInput";const mp="UpdateTableReplicaAutoScalingOutput";const fp="UpdateTimeToLive";const hp="UpdateTimeToLiveInput";const gp="UpdateTimeToLiveOutput";const yp="Value";const bp="WriteCapacityUnits";const Sp="WriteRequest";const Cp="WriteRequests";const Ep="WitnessStatus";const xp="WarmThroughput";const Pp="WriteUnitsPerSecond";const vp="awsQueryError";const Tp="client";const Rp="error";const wp="httpError";const Np="httpHeader";const Op="message";const kp="reason";const Ap="resource";const Ip="smithy.ts.sdk.synthetic.com.amazonaws.dynamodb";const _p="server";const Bp="throttlingReasons";const Dp="x-amz-confirm-remove-self-resource-access";const Lp="com.amazonaws.dynamodb";const $p=o(26890);const Mp=o(18894);const Up=o(98461);const jp=$p.TypeRegistry.for(Ip);t.DynamoDBServiceException$=[-3,Ip,"DynamoDBServiceException",0,[],[]];jp.registerError(t.DynamoDBServiceException$,Mp.DynamoDBServiceException);const zp=$p.TypeRegistry.for(Lp);t.BackupInUseException$=[-3,Lp,Pe,{[Rp]:Tp},[Op],[0]];zp.registerError(t.BackupInUseException$,Up.BackupInUseException);t.BackupNotFoundException$=[-3,Lp,Ne,{[Rp]:Tp},[Op],[0]];zp.registerError(t.BackupNotFoundException$,Up.BackupNotFoundException);t.ConditionalCheckFailedException$=[-3,Lp,Ze,{[Rp]:Tp},[Op,Ni],[0,()=>Ym]];zp.registerError(t.ConditionalCheckFailedException$,Up.ConditionalCheckFailedException);t.ContinuousBackupsUnavailableException$=[-3,Lp,Ye,{[Rp]:Tp},[Op],[0]];zp.registerError(t.ContinuousBackupsUnavailableException$,Up.ContinuousBackupsUnavailableException);t.DuplicateItemException$=[-3,Lp,nr,{[Rp]:Tp},[Op],[0]];zp.registerError(t.DuplicateItemException$,Up.DuplicateItemException);t.ExportConflictException$=[-3,Lp,Vr,{[Rp]:Tp},[Op],[0]];zp.registerError(t.ExportConflictException$,Up.ExportConflictException);t.ExportNotFoundException$=[-3,Lp,to,{[Rp]:Tp},[Op],[0]];zp.registerError(t.ExportNotFoundException$,Up.ExportNotFoundException);t.GlobalTableAlreadyExistsException$=[-3,Lp,oi,{[Rp]:Tp},[Op],[0]];zp.registerError(t.GlobalTableAlreadyExistsException$,Up.GlobalTableAlreadyExistsException);t.GlobalTableNotFoundException$=[-3,Lp,pi,{[Rp]:Tp},[Op],[0]];zp.registerError(t.GlobalTableNotFoundException$,Up.GlobalTableNotFoundException);t.IdempotentParameterMismatchException$=[-3,Lp,Yi,{[Rp]:Tp},[ga],[0]];zp.registerError(t.IdempotentParameterMismatchException$,Up.IdempotentParameterMismatchException);t.ImportConflictException$=[-3,Lp,Ii,{[Rp]:Tp},[Op],[0]];zp.registerError(t.ImportConflictException$,Up.ImportConflictException);t.ImportNotFoundException$=[-3,Lp,Xi,{[Rp]:Tp},[Op],[0]];zp.registerError(t.ImportNotFoundException$,Up.ImportNotFoundException);t.IndexNotFoundException$=[-3,Lp,Qi,{[Rp]:Tp},[Op],[0]];zp.registerError(t.IndexNotFoundException$,Up.IndexNotFoundException);t.InternalServerError$=[-3,Lp,rs,{[Rp]:_p},[Op],[0]];zp.registerError(t.InternalServerError$,Up.InternalServerError);t.InvalidEndpointException$=[-3,Lp,zi,{[Rp]:Tp,[wp]:421},[ga],[0]];zp.registerError(t.InvalidEndpointException$,Up.InvalidEndpointException);t.InvalidExportTimeException$=[-3,Lp,Hi,{[Rp]:Tp},[Op],[0]];zp.registerError(t.InvalidExportTimeException$,Up.InvalidExportTimeException);t.InvalidRestoreTimeException$=[-3,Lp,es,{[Rp]:Tp},[Op],[0]];zp.registerError(t.InvalidRestoreTimeException$,Up.InvalidRestoreTimeException);t.ItemCollectionSizeLimitExceededException$=[-3,Lp,Mi,{[Rp]:Tp},[Op],[0]];zp.registerError(t.ItemCollectionSizeLimitExceededException$,Up.ItemCollectionSizeLimitExceededException);t.LimitExceededException$=[-3,Lp,Ms,{[Rp]:Tp},[Op],[0]];zp.registerError(t.LimitExceededException$,Up.LimitExceededException);t.PointInTimeRecoveryUnavailableException$=[-3,Lp,Fa,{[Rp]:Tp},[Op],[0]];zp.registerError(t.PointInTimeRecoveryUnavailableException$,Up.PointInTimeRecoveryUnavailableException);t.PolicyNotFoundException$=[-3,Lp,Va,{[Rp]:Tp},[Op],[0]];zp.registerError(t.PolicyNotFoundException$,Up.PolicyNotFoundException);t.ProvisionedThroughputExceededException$=[-3,Lp,uc,{[Rp]:Tp},[Op,cd],[0,()=>Km]];zp.registerError(t.ProvisionedThroughputExceededException$,Up.ProvisionedThroughputExceededException);t.ReplicaAlreadyExistsException$=[-3,Lp,Rc,{[Rp]:Tp},[Op],[0]];zp.registerError(t.ReplicaAlreadyExistsException$,Up.ReplicaAlreadyExistsException);t.ReplicaNotFoundException$=[-3,Lp,ul,{[Rp]:Tp},[Op],[0]];zp.registerError(t.ReplicaNotFoundException$,Up.ReplicaNotFoundException);t.ReplicatedWriteConflictException$=[-3,Lp,Hl,{[Rp]:Tp},[Op],[0]];zp.registerError(t.ReplicatedWriteConflictException$,Up.ReplicatedWriteConflictException);t.RequestLimitExceeded$=[-3,Lp,cl,{[Rp]:Tp},[Op,cd],[0,()=>Km]];zp.registerError(t.RequestLimitExceeded$,Up.RequestLimitExceeded);t.ResourceInUseException$=[-3,Lp,il,{[Rp]:Tp},[Op],[0]];zp.registerError(t.ResourceInUseException$,Up.ResourceInUseException);t.ResourceNotFoundException$=[-3,Lp,dl,{[Rp]:Tp},[Op],[0]];zp.registerError(t.ResourceNotFoundException$,Up.ResourceNotFoundException);t.TableAlreadyExistsException$=[-3,Lp,Du,{[Rp]:Tp},[Op],[0]];zp.registerError(t.TableAlreadyExistsException$,Up.TableAlreadyExistsException);t.TableInUseException$=[-3,Lp,Zu,{[Rp]:Tp},[Op],[0]];zp.registerError(t.TableInUseException$,Up.TableInUseException);t.TableNotFoundException$=[-3,Lp,sd,{[Rp]:Tp},[Op],[0]];zp.registerError(t.TableNotFoundException$,Up.TableNotFoundException);t.ThrottlingException$=[-3,Lp,Gu,{[vp]:[`Throttling`,400],[Rp]:Tp,[wp]:400},[Op,Bp],[0,()=>Km]];zp.registerError(t.ThrottlingException$,Up.ThrottlingException);t.TransactionCanceledException$=[-3,Lp,Uu,{[Rp]:Tp},[ga,cn],[0,()=>Xp]];zp.registerError(t.TransactionCanceledException$,Up.TransactionCanceledException);t.TransactionConflictException$=[-3,Lp,ju,{[Rp]:Tp},[Op],[0]];zp.registerError(t.TransactionConflictException$,Up.TransactionConflictException);t.TransactionInProgressException$=[-3,Lp,Ju,{[Rp]:Tp},[ga],[0]];zp.registerError(t.TransactionInProgressException$,Up.TransactionInProgressException);t.errorTypeRegistries=[jp,zp];t.ArchivalSummary$=[3,Lp,H,0,[f,j,a],[4,0,0]];t.AttributeDefinition$=[3,Lp,m,0,[U,te],[0,0],2];t.AttributeValueUpdate$=[3,Lp,se,0,[yp,i],[()=>t.AttributeValue$,0]];t.AutoScalingPolicyDescription$=[3,Lp,K,0,[Ga,Pd],[0,()=>t.AutoScalingTargetTrackingScalingPolicyConfigurationDescription$]];t.AutoScalingPolicyUpdate$=[3,Lp,X,0,[Pd,Ga],[()=>t.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate$,0],1];t.AutoScalingSettingsDescription$=[3,Lp,Y,0,[Ea,xa,V,Q,uu],[1,1,2,0,()=>Vp]];t.AutoScalingSettingsUpdate$=[3,Lp,J,0,[Ea,xa,V,Q,du],[1,1,2,0,()=>t.AutoScalingPolicyUpdate$]];t.AutoScalingTargetTrackingScalingPolicyConfigurationDescription$=[3,Lp,Z,0,[vd,vr,ou,lu],[1,2,1,1],1];t.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate$=[3,Lp,ee,0,[vd,vr,ou,lu],[1,2,1,1],1];t.BackupDescription$=[3,Lp,pe,0,[me,Pu,vu],[()=>t.BackupDetails$,()=>t.SourceTableDetails$,()=>t.SourceTableFeatureDetails$]];t.BackupDetails$=[3,Lp,me,0,[ue,we,ke,Ue,de,Ae,fe],[0,0,0,0,4,1,4],5];t.BackupSummary$=[3,Lp,$e,0,[id,Yu,Bu,ue,we,de,fe,ke,Ue,Ae],[0,0,0,0,0,4,4,0,0,1]];t.BatchExecuteStatementInput$=[3,Lp,ge,0,[Vl,_c],[()=>Rm,0],1];t.BatchExecuteStatementOutput$=[3,Lp,ye,0,[vc,Je],[()=>wm,()=>Qp]];t.BatchGetItemInput$=[3,Lp,Se,0,[tl,_c],[()=>Zm,0],1];t.BatchGetItemOutput$=[3,Lp,Ce,0,[vc,Jd,Je],[()=>ef,()=>Zm,()=>Qp]];t.BatchStatementError$=[3,Lp,_e,0,[Ge,ga,Ni],[0,0,()=>Ym]];t.BatchStatementRequest$=[3,Lp,Be,0,[Au,_a,gn,ql],[0,()=>Nm,2,0],1];t.BatchStatementResponse$=[3,Lp,De,0,[Mr,id,Ni],[()=>t.BatchStatementError$,0,()=>Ym]];t.BatchWriteItemInput$=[3,Lp,ze,0,[tl,_c,nl],[()=>tf,0,0],1];t.BatchWriteItemOutput$=[3,Lp,qe,0,[Wd,Di,Je],[()=>tf,()=>cf,()=>Qp]];t.BillingModeSummary$=[3,Lp,Re,0,[ve,fa],[0,4]];t.CancellationReason$=[3,Lp,hn,0,[Ni,Ge,ga],[()=>Ym,0,0]];t.Capacity$=[3,Lp,Pn,0,[Bc,bp,En],[1,1,1]];t.Condition$=[3,Lp,vn,0,[rn,ie],[0,()=>Gp],1];t.ConditionCheck$=[3,Lp,yt,0,[ps,id,zt,zr,qr,ql],[()=>lf,0,0,128|0,()=>of,0],3];t.ConsumedCapacity$=[3,Lp,Je,0,[id,En,Bc,bp,_u,Zs,Ho],[0,1,1,1,()=>t.Capacity$,()=>mf,()=>mf]];t.ContinuousBackupsDescription$=[3,Lp,Ke,0,[Qe,ja],[0,()=>t.PointInTimeRecoveryDescription$],1];t.ContributorInsightsSummary$=[3,Lp,en,0,[id,Wi,tn,Jt],[0,0,0,0]];t.CreateBackupInput$=[3,Lp,We,0,[id,we],[0,0],2];t.CreateBackupOutput$=[3,Lp,Xe,0,[me],[()=>t.BackupDetails$]];t.CreateGlobalSecondaryIndexAction$=[3,Lp,qt,0,[Wi,Es,bc,cc,Aa,xp],[0,()=>ym,()=>t.Projection$,()=>t.ProvisionedThroughput$,()=>t.OnDemandThroughput$,()=>t.WarmThroughput$],3];t.CreateGlobalTableInput$=[3,Lp,Kt,0,[di,Mc],[0,()=>Mm],2];t.CreateGlobalTableOutput$=[3,Lp,Xt,0,[ai],[()=>t.GlobalTableDescription$]];t.CreateGlobalTableWitnessGroupMemberAction$=[3,Lp,Qt,0,[ll],[0],1];t.CreateReplicaAction$=[3,Lp,ln,0,[ll],[0],1];t.CreateReplicationGroupMemberAction$=[3,Lp,un,0,[ll,Cs,dc,Ia,Ho,zu],[0,0,()=>t.ProvisionedThroughputOverride$,()=>t.OnDemandThroughputOverride$,()=>Dm,0],1];t.CreateTableInput$=[3,Lp,bn,0,[id,h,Es,Zs,Ho,ve,cc,mu,gu,Ad,$u,hr,xp,pl,Aa,gi,yi],[0,()=>Hp,()=>ym,()=>xm,()=>im,0,()=>t.ProvisionedThroughput$,()=>t.StreamSpecification$,()=>t.SSESpecification$,()=>Vm,0,2,()=>t.WarmThroughput$,0,()=>t.OnDemandThroughput$,0,0],1];t.CreateTableOutput$=[3,Lp,Sn,0,[Fu],[()=>t.TableDescription$]];t.CsvOptions$=[3,Lp,sn,0,[Nn,wi],[0,64|0]];t.Delete$=[3,Lp,$r,0,[ps,id,zt,zr,qr,ql],[()=>lf,0,0,128|0,()=>of,0],2];t.DeleteBackupInput$=[3,Lp,kn,0,[ue],[0],1];t.DeleteBackupOutput$=[3,Lp,In,0,[pe],[()=>t.BackupDescription$]];t.DeleteGlobalSecondaryIndexAction$=[3,Lp,Kn,0,[Wi],[0],1];t.DeleteGlobalTableWitnessGroupMemberAction$=[3,Lp,er,0,[ll],[0],1];t.DeleteItemInput$=[3,Lp,rr,0,[id,ps,Oo,on,zl,_c,nl,zt,zr,qr,ql],[0,()=>lf,()=>nf,0,0,0,0,0,128|0,()=>of,0],2];t.DeleteItemOutput$=[3,Lp,ir,0,[ce,Je,Di],[()=>Ym,()=>t.ConsumedCapacity$,()=>t.ItemCollectionMetrics$]];t.DeleteReplicaAction$=[3,Lp,yr,0,[ll],[0],1];t.DeleteReplicationGroupMemberAction$=[3,Lp,br,0,[ll],[0],1];t.DeleteRequest$=[3,Lp,gr,0,[ps],[()=>lf],1];t.DeleteResourcePolicyInput$=[3,Lp,Cr,0,[Tc,ro],[0,0],1];t.DeleteResourcePolicyOutput$=[3,Lp,Er,0,[sl],[0]];t.DeleteTableInput$=[3,Lp,Rr,0,[id],[0],1];t.DeleteTableOutput$=[3,Lp,Nr,0,[Fu],[()=>t.TableDescription$]];t.DescribeBackupInput$=[3,Lp,An,0,[ue],[0],1];t.DescribeBackupOutput$=[3,Lp,_n,0,[pe],[()=>t.BackupDescription$]];t.DescribeContinuousBackupsInput$=[3,Lp,Ln,0,[id],[0],1];t.DescribeContinuousBackupsOutput$=[3,Lp,$n,0,[Ke],[()=>t.ContinuousBackupsDescription$]];t.DescribeContributorInsightsInput$=[3,Lp,Un,0,[id,Wi],[0,0],1];t.DescribeContributorInsightsOutput$=[3,Lp,jn,0,[id,Wi,Zt,tn,ma,_o,Jt],[0,0,64|0,0,4,()=>t.FailureException$,0]];t.DescribeEndpointsRequest$=[3,Lp,Fn,0,[],[]];t.DescribeEndpointsResponse$=[3,Lp,Gn,0,[Ro],[()=>em],1];t.DescribeExportInput$=[3,Lp,qn,0,[Ur],[0],1];t.DescribeExportOutput$=[3,Lp,Hn,0,[Kr],[()=>t.ExportDescription$]];t.DescribeGlobalTableInput$=[3,Lp,Xn,0,[di],[0],1];t.DescribeGlobalTableOutput$=[3,Lp,Qn,0,[ai],[()=>t.GlobalTableDescription$]];t.DescribeGlobalTableSettingsInput$=[3,Lp,Jn,0,[di],[0],1];t.DescribeGlobalTableSettingsOutput$=[3,Lp,Zn,0,[di,Cl],[0,()=>Um]];t.DescribeImportInput$=[3,Lp,or,0,[Oi],[0],1];t.DescribeImportOutput$=[3,Lp,sr,0,[cs],[()=>t.ImportTableDescription$],1];t.DescribeKinesisStreamingDestinationInput$=[3,Lp,lr,0,[id],[0],1];t.DescribeKinesisStreamingDestinationOutput$=[3,Lp,ur,0,[id,gs],[0,()=>bm]];t.DescribeLimitsInput$=[3,Lp,mr,0,[],[]];t.DescribeLimitsOutput$=[3,Lp,fr,0,[_,L,rd,od],[1,1,1,1]];t.DescribeTableInput$=[3,Lp,wr,0,[id],[0],1];t.DescribeTableOutput$=[3,Lp,Or,0,[_u],[()=>t.TableDescription$]];t.DescribeTableReplicaAutoScalingInput$=[3,Lp,Ar,0,[id],[0],1];t.DescribeTableReplicaAutoScalingOutput$=[3,Lp,Ir,0,[Lu],[()=>t.TableAutoScalingDescription$]];t.DescribeTimeToLiveInput$=[3,Lp,Br,0,[id],[0],1];t.DescribeTimeToLiveOutput$=[3,Lp,Dr,0,[Sd],[()=>t.TimeToLiveDescription$]];t.EnableKinesisStreamingConfiguration$=[3,Lp,Yr,0,[d],[0]];t.Endpoint$=[3,Lp,No,0,[ae,an],[0,1],2];t.ExecuteStatementInput$=[3,Lp,ao,0,[Au,_a,gn,Oa,_c,ws,ql],[0,()=>Nm,2,0,0,1,0],1];t.ExecuteStatementOutput$=[3,Lp,lo,0,[ds,Oa,Je,zs],[()=>fm,0,()=>t.ConsumedCapacity$,()=>lf]];t.ExecuteTransactionInput$=[3,Lp,go,0,[hd,mn,_c],[()=>Tm,[0,4],0],1];t.ExecuteTransactionOutput$=[3,Lp,yo,0,[vc,Je],[()=>hm,()=>Qp]];t.ExpectedAttributeValue$=[3,Lp,Fr,0,[yp,ko,rn,ie],[()=>t.AttributeValue$,2,0,()=>Gp]];t.ExportDescription$=[3,Lp,Kr,0,[Ur,oo,Eu,ho,Zr,Bu,Yu,xo,yn,Wl,Ql,pu,fu,Su,Ao,Do,Xr,Ie,Ai,vo,qi],[0,0,4,4,0,0,0,4,0,0,0,0,0,0,0,0,0,1,1,0,()=>t.IncrementalExportSpecification$]];t.ExportSummary$=[3,Lp,po,0,[Ur,oo,vo],[0,0,0]];t.ExportTableToPointInTimeInput$=[3,Lp,Co,0,[Bu,Wl,xo,yn,Ql,pu,fu,Su,Xr,vo,qi],[0,0,4,[0,4],0,0,0,0,0,0,()=>t.IncrementalExportSpecification$],2];t.ExportTableToPointInTimeOutput$=[3,Lp,Eo,0,[Kr],[()=>t.ExportDescription$]];t.FailureException$=[3,Lp,_o,0,[eo,Wr],[0,0]];t.Get$=[3,Lp,Lo,0,[ps,id,Ba,zr],[()=>lf,0,0,128|0],2];t.GetItemInput$=[3,Lp,Mo,0,[id,ps,ne,gn,_c,Ba,zr],[0,()=>lf,64|0,2,0,0,128|0],2];t.GetItemOutput$=[3,Lp,Uo,0,[Ni,Je],[()=>Ym,()=>t.ConsumedCapacity$]];t.GetResourcePolicyInput$=[3,Lp,zo,0,[Tc],[0],1];t.GetResourcePolicyOutput$=[3,Lp,qo,0,[yc,sl],[0,0]];t.GlobalSecondaryIndex$=[3,Lp,ti,0,[Wi,Es,bc,cc,Aa,xp],[0,()=>ym,()=>t.Projection$,()=>t.ProvisionedThroughput$,()=>t.OnDemandThroughput$,()=>t.WarmThroughput$],3];t.GlobalSecondaryIndexAutoScalingUpdate$=[3,Lp,Fo,0,[Wi,hc],[0,()=>t.AutoScalingSettingsUpdate$]];t.GlobalSecondaryIndexDescription$=[3,Lp,Vo,0,[Wi,Es,bc,ts,le,cc,ns,Ai,ki,Aa,xp],[0,()=>ym,()=>t.Projection$,0,2,()=>t.ProvisionedThroughputDescription$,1,1,0,()=>t.OnDemandThroughput$,()=>t.GlobalSecondaryIndexWarmThroughputDescription$]];t.GlobalSecondaryIndexInfo$=[3,Lp,Wo,0,[Wi,Es,bc,cc,Aa],[0,()=>ym,()=>t.Projection$,()=>t.ProvisionedThroughput$,()=>t.OnDemandThroughput$]];t.GlobalSecondaryIndexUpdate$=[3,Lp,Yo,0,[_d,Rn,$r],[()=>t.UpdateGlobalSecondaryIndexAction$,()=>t.CreateGlobalSecondaryIndexAction$,()=>t.DeleteGlobalSecondaryIndexAction$]];t.GlobalSecondaryIndexWarmThroughputDescription$=[3,Lp,ei,0,[Ul,Pp,Iu],[1,1,0]];t.GlobalTable$=[3,Lp,ni,0,[di,Mc],[0,()=>Mm]];t.GlobalTableDescription$=[3,Lp,ai,0,[Mc,ri,Rt,hi,di],[()=>Am,0,4,0,0]];t.GlobalTableGlobalSecondaryIndexSettingsUpdate$=[3,Lp,ci,0,[Wi,gc,fc],[0,1,()=>t.AutoScalingSettingsUpdate$],1];t.GlobalTableWitnessDescription$=[3,Lp,Ei,0,[ll,Ep],[0,0]];t.GlobalTableWitnessGroupUpdate$=[3,Lp,Pi,0,[Rn,$r],[()=>t.CreateGlobalTableWitnessGroupMemberAction$,()=>t.DeleteGlobalTableWitnessGroupMemberAction$]];t.ImportSummary$=[3,Lp,is,0,[Oi,ss,Bu,Yl,xn,Fi,Eu,ho],[0,0,0,()=>t.S3BucketSource$,0,0,4,4]];t.ImportTableDescription$=[3,Lp,cs,0,[Oi,ss,Bu,Yu,yn,Yl,Gr,xn,Fi,Gi,Ui,qu,Eu,ho,oc,La,Vi,Ao,Do],[0,0,0,0,0,()=>t.S3BucketSource$,1,0,0,()=>t.InputFormatOptions$,0,()=>t.TableCreationParameters$,4,4,1,1,1,0,0]];t.ImportTableInput$=[3,Lp,ls,0,[Yl,Fi,qu,yn,Gi,Ui],[()=>t.S3BucketSource$,0,()=>t.TableCreationParameters$,[0,4],()=>t.InputFormatOptions$,0],3];t.ImportTableOutput$=[3,Lp,us,0,[cs],[()=>t.ImportTableDescription$],1];t.IncrementalExportSpecification$=[3,Lp,qi,0,[Qr,bo,To],[4,4,0]];t.InputFormatOptions$=[3,Lp,Gi,0,[wn],[()=>t.CsvOptions$]];t.ItemCollectionMetrics$=[3,Lp,Di,0,[_i,tu],[()=>af,64|1]];t.ItemResponse$=[3,Lp,Ji,0,[Ni],[()=>Ym]];t.KeysAndAttributes$=[3,Lp,ms,0,[Rs,ne,gn,Ba,zr],[()=>gm,64|0,2,0,128|0],1];t.KeySchemaElement$=[3,Lp,vs,0,[U,Ts],[0,0],2];t.KinesisDataStreamDestination$=[3,Lp,ys,0,[Kl,xr,Pr,d],[0,0,0,0]];t.KinesisStreamingDestinationInput$=[3,Lp,xs,0,[id,Kl,Yr],[0,0,()=>t.EnableKinesisStreamingConfiguration$],2];t.KinesisStreamingDestinationOutput$=[3,Lp,Ps,0,[id,Kl,xr,Yr],[0,0,0,()=>t.EnableKinesisStreamingConfiguration$]];t.ListBackupsInput$=[3,Lp,ks,0,[id,ws,dd,pd,io,Ue],[0,1,4,4,0,0]];t.ListBackupsOutput$=[3,Lp,As,0,[Me,$s],[()=>Kp,0]];t.ListContributorInsightsInput$=[3,Lp,_s,0,[id,Oa,ba],[0,0,1]];t.ListContributorInsightsOutput$=[3,Lp,Bs,0,[nn,Oa],[()=>Jp,0]];t.ListExportsInput$=[3,Lp,js,0,[Bu,ba,Oa],[0,1,0]];t.ListExportsOutput$=[3,Lp,qs,0,[fo,Oa],[()=>tm,0]];t.ListGlobalTablesInput$=[3,Lp,Gs,0,[so,ws,ll],[0,1,0]];t.ListGlobalTablesOutput$=[3,Lp,Vs,0,[Ri,Us],[()=>cm,0]];t.ListImportsInput$=[3,Lp,Xs,0,[Bu,rc,Oa],[0,1,0]];t.ListImportsOutput$=[3,Lp,Qs,0,[os,Oa],[()=>dm,0]];t.ListTablesInput$=[3,Lp,ca,0,[uo,ws],[0,1]];t.ListTablesOutput$=[3,Lp,la,0,[ad,Hs],[64|0,0]];t.ListTagsOfResourceInput$=[3,Lp,da,0,[Tc,Oa],[0,0],1];t.ListTagsOfResourceOutput$=[3,Lp,pa,0,[Ad,Oa],[()=>Vm,0]];t.LocalSecondaryIndex$=[3,Lp,ia,0,[Wi,Es,bc],[0,()=>ym,()=>t.Projection$],3];t.LocalSecondaryIndexDescription$=[3,Lp,ea,0,[Wi,Es,bc,ns,Ai,ki],[0,()=>ym,()=>t.Projection$,1,1,0]];t.LocalSecondaryIndexInfo$=[3,Lp,na,0,[Wi,Es,bc],[0,()=>ym,()=>t.Projection$]];t.OnDemandThroughput$=[3,Lp,Aa,0,[Ca,Pa],[1,1]];t.OnDemandThroughputOverride$=[3,Lp,Ia,0,[Ca],[1]];t.ParameterizedStatement$=[3,Lp,sc,0,[Au,_a,ql],[0,()=>Nm,0],1];t.PointInTimeRecoveryDescription$=[3,Lp,ja,0,[qa,ml,no,Ys],[0,1,4,4]];t.PointInTimeRecoverySpecification$=[3,Lp,Ha,0,[za,ml],[2,1],1];t.Projection$=[3,Lp,bc,0,[pc,Ra],[0,64|0]];t.ProvisionedThroughput$=[3,Lp,cc,0,[Bc,bp],[1,1],2];t.ProvisionedThroughputDescription$=[3,Lp,lc,0,[Ws,Ds,wa,Bc,bp],[4,4,1,1,1]];t.ProvisionedThroughputOverride$=[3,Lp,dc,0,[Bc],[1]];t.Put$=[3,Lp,Sc,0,[Ni,id,zt,zr,qr,ql],[()=>pf,0,0,128|0,()=>of,0],2];t.PutItemInput$=[3,Lp,$a,0,[id,Ni,Oo,zl,_c,nl,on,zt,zr,qr,ql],[0,()=>pf,()=>nf,0,0,0,0,0,128|0,()=>of,0],2];t.PutItemOutput$=[3,Lp,Ua,0,[ce,Je,Di],[()=>Ym,()=>t.ConsumedCapacity$,()=>t.ItemCollectionMetrics$]];t.PutRequest$=[3,Lp,Xa,0,[Ni],[()=>pf],1];t.PutResourcePolicyInput$=[3,Lp,tc,0,[Tc,yc,ro,pn],[0,0,0,[2,{[Np]:Dp}]],2];t.PutResourcePolicyOutput$=[3,Lp,nc,0,[sl],[0]];t.QueryInput$=[3,Lp,xc,0,[id,Wi,Ou,ne,ws,gn,fs,Ec,on,su,co,_c,Ba,Bo,hs,zr,qr],[0,0,0,64|0,1,2,()=>uf,()=>sf,0,2,()=>lf,0,0,0,0,128|0,()=>of],1];t.QueryOutput$=[3,Lp,Pc,0,[ds,Tn,Jl,zs,Je],[()=>fm,1,1,()=>lf,()=>t.ConsumedCapacity$]];t.Replica$=[3,Lp,Fl,0,[ll],[0]];t.ReplicaAutoScalingDescription$=[3,Lp,wc,0,[ll,Ho,fl,bl,wl],[0,()=>Im,()=>t.AutoScalingSettingsDescription$,()=>t.AutoScalingSettingsDescription$,0]];t.ReplicaAutoScalingUpdate$=[3,Lp,Oc,0,[ll,Jc,gl],[0,()=>_m,()=>t.AutoScalingSettingsUpdate$],1];t.ReplicaDescription$=[3,Lp,Dc,0,[ll,wl,Ac,El,vl,Cs,dc,Ia,xp,Ho,rl,kl,yi],[0,0,0,0,0,0,()=>t.ProvisionedThroughputOverride$,()=>t.OnDemandThroughputOverride$,()=>t.TableWarmThroughputDescription$,()=>Bm,4,()=>t.TableClassSummary$,0]];t.ReplicaGlobalSecondaryIndex$=[3,Lp,Uc,0,[Wi,dc,Ia],[0,()=>t.ProvisionedThroughputOverride$,()=>t.OnDemandThroughputOverride$],1];t.ReplicaGlobalSecondaryIndexAutoScalingDescription$=[3,Lp,jc,0,[Wi,ts,Qa,mc],[0,0,()=>t.AutoScalingSettingsDescription$,()=>t.AutoScalingSettingsDescription$]];t.ReplicaGlobalSecondaryIndexAutoScalingUpdate$=[3,Lp,qc,0,[Wi,Ja],[0,()=>t.AutoScalingSettingsUpdate$]];t.ReplicaGlobalSecondaryIndexDescription$=[3,Lp,Fc,0,[Wi,dc,Ia,xp],[0,()=>t.ProvisionedThroughputOverride$,()=>t.OnDemandThroughputOverride$,()=>t.GlobalSecondaryIndexWarmThroughputDescription$]];t.ReplicaGlobalSecondaryIndexSettingsDescription$=[3,Lp,Wc,0,[Wi,ts,Za,Qa,gc,mc],[0,0,1,()=>t.AutoScalingSettingsDescription$,1,()=>t.AutoScalingSettingsDescription$],1];t.ReplicaGlobalSecondaryIndexSettingsUpdate$=[3,Lp,Qc,0,[Wi,Za,Ya],[0,1,()=>t.AutoScalingSettingsUpdate$],1];t.ReplicaSettingsDescription$=[3,Lp,Pl,0,[ll,wl,Ic,yl,fl,Sl,bl,Kc,kl],[0,0,()=>t.BillingModeSummary$,1,()=>t.AutoScalingSettingsDescription$,1,()=>t.AutoScalingSettingsDescription$,()=>Lm,()=>t.TableClassSummary$],1];t.ReplicaSettingsUpdate$=[3,Lp,Tl,0,[ll,yl,hl,Qc,Ol],[0,1,()=>t.AutoScalingSettingsUpdate$,()=>$m,0],1];t.ReplicationGroupUpdate$=[3,Lp,Zc,0,[Rn,_d,$r],[()=>t.CreateReplicationGroupMemberAction$,()=>t.UpdateReplicationGroupMemberAction$,()=>t.DeleteReplicationGroupMemberAction$]];t.ReplicaUpdate$=[3,Lp,$l,0,[Rn,$r],[()=>t.CreateReplicaAction$,()=>t.DeleteReplicaAction$]];t.RestoreSummary$=[3,Lp,Nl,0,[$c,ol,Xl,xu],[4,2,0,0],2];t.RestoreTableFromBackupInput$=[3,Lp,Il,0,[xd,ue,Te,Qo,oa,dc,Ia,yu],[0,0,0,()=>im,()=>xm,()=>t.ProvisionedThroughput$,()=>t.OnDemandThroughput$,()=>t.SSESpecification$],2];t.RestoreTableFromBackupOutput$=[3,Lp,_l,0,[Fu],[()=>t.TableDescription$]];t.RestoreTableToPointInTimeInput$=[3,Lp,Dl,0,[xd,xu,Tu,rp,$c,Te,Qo,oa,dc,Ia,yu],[0,0,0,2,4,0,()=>im,()=>xm,()=>t.ProvisionedThroughput$,()=>t.OnDemandThroughput$,()=>t.SSESpecification$],1];t.RestoreTableToPointInTimeOutput$=[3,Lp,Ll,0,[Fu],[()=>t.TableDescription$]];t.S3BucketSource$=[3,Lp,Yl,0,[Wl,Ql,au],[0,0,0],1];t.ScanInput$=[3,Lp,ru,0,[id,Wi,ne,ws,Ou,nu,on,co,_c,bd,ku,Ba,Bo,zr,qr,gn],[0,0,64|0,1,0,()=>sf,0,()=>lf,0,1,1,0,0,128|0,()=>of,2],1];t.ScanOutput$=[3,Lp,cu,0,[ds,Tn,Jl,zs,Je],[()=>fm,1,1,()=>lf,()=>t.ConsumedCapacity$]];t.SourceTableDetails$=[3,Lp,Pu,0,[id,Yu,Es,Mu,cc,Bu,gd,Aa,Ai,ve],[0,0,()=>ym,4,()=>t.ProvisionedThroughput$,0,1,()=>t.OnDemandThroughput$,1,0],5];t.SourceTableFeatureDetails$=[3,Lp,vu,0,[Zs,Ho,Zl,Sd,hu],[()=>Em,()=>om,()=>t.StreamSpecification$,()=>t.TimeToLiveDescription$,()=>t.SSEDescription$]];t.SSEDescription$=[3,Lp,hu,0,[Iu,bu,Ss,ji],[0,0,0,4]];t.SSESpecification$=[3,Lp,gu,0,[wo,bu,Cs],[2,0,0]];t.StreamSpecification$=[3,Lp,mu,0,[eu,Ru],[2,0],1];t.TableAutoScalingDescription$=[3,Lp,Lu,0,[id,yd,Gl],[0,0,()=>Om]];t.TableClassSummary$=[3,Lp,Hu,0,[$u,ma],[0,4]];t.TableCreationParameters$=[3,Lp,qu,0,[id,h,Es,ve,cc,Aa,gu,Ho],[0,()=>Hp,()=>ym,0,()=>t.ProvisionedThroughput$,()=>t.OnDemandThroughput$,()=>t.SSESpecification$,()=>im],3];t.TableDescription$=[3,Lp,Fu,0,[h,id,Es,yd,Rt,cc,gd,Ai,Bu,Yu,Re,Zs,Ho,mu,sa,Js,bi,Gl,Si,yi,Nl,hu,H,Hu,hr,Aa,xp,Sa],[()=>Hp,0,()=>ym,0,4,()=>t.ProvisionedThroughputDescription$,1,1,0,0,()=>t.BillingModeSummary$,()=>Cm,()=>rm,()=>t.StreamSpecification$,0,0,0,()=>Am,()=>lm,0,()=>t.RestoreSummary$,()=>t.SSEDescription$,()=>t.ArchivalSummary$,()=>t.TableClassSummary$,2,()=>t.OnDemandThroughput$,()=>t.TableWarmThroughputDescription$,0]];t.TableWarmThroughputDescription$=[3,Lp,kd,0,[Ul,Pp,Iu],[1,1,0]];t.Tag$=[3,Lp,Id,0,[ps,yp],[0,0],2];t.TagResourceInput$=[3,Lp,ld,0,[Tc,Ad],[0,()=>Vm],2];t.ThrottlingReason$=[3,Lp,fd,0,[kp,Ap],[0,0]];t.TimeToLiveDescription$=[3,Lp,Sd,0,[Cd,U],[0,0]];t.TimeToLiveSpecification$=[3,Lp,Ed,0,[wo,U],[2,0],2];t.TransactGetItem$=[3,Lp,Vu,0,[Lo],[()=>t.Get$],1];t.TransactGetItemsInput$=[3,Lp,Ku,0,[ed,_c],[()=>Wm,0],1];t.TransactGetItemsOutput$=[3,Lp,Xu,0,[Je,vc],[()=>Qp,()=>hm]];t.TransactWriteItem$=[3,Lp,Td,0,[yt,Sc,$r,_d],[()=>t.ConditionCheck$,()=>t.Put$,()=>t.Delete$,()=>t.Update$]];t.TransactWriteItemsInput$=[3,Lp,Rd,0,[ed,_c,nl,mn],[()=>Xm,0,0,[0,4]],1];t.TransactWriteItemsOutput$=[3,Lp,Nd,0,[Je,Di],[()=>Qp,()=>cf]];t.UntagResourceInput$=[3,Lp,ap,0,[Tc,td],[0,64|0],2];t.Update$=[3,Lp,_d,0,[ps,jd,id,zt,zr,qr,ql],[()=>lf,0,0,0,128|0,()=>of,0],3];t.UpdateContinuousBackupsInput$=[3,Lp,Dd,0,[id,Ha],[0,()=>t.PointInTimeRecoverySpecification$],2];t.UpdateContinuousBackupsOutput$=[3,Lp,Ld,0,[Ke],[()=>t.ContinuousBackupsDescription$]];t.UpdateContributorInsightsInput$=[3,Lp,Md,0,[id,Yt,Wi,Jt],[0,0,0,0],2];t.UpdateContributorInsightsOutput$=[3,Lp,Ud,0,[id,Wi,tn,Jt],[0,0,0,0]];t.UpdateGlobalSecondaryIndexAction$=[3,Lp,zd,0,[Wi,cc,Aa,xp],[0,()=>t.ProvisionedThroughput$,()=>t.OnDemandThroughput$,()=>t.WarmThroughput$],1];t.UpdateGlobalTableInput$=[3,Lp,Hd,0,[di,jl],[0,()=>qm],2];t.UpdateGlobalTableOutput$=[3,Lp,Fd,0,[ai],[()=>t.GlobalTableDescription$]];t.UpdateGlobalTableSettingsInput$=[3,Lp,Vd,0,[di,si,fi,mi,ci,Tl],[0,0,1,()=>t.AutoScalingSettingsUpdate$,()=>am,()=>jm],1];t.UpdateGlobalTableSettingsOutput$=[3,Lp,Kd,0,[di,Cl],[0,()=>Um]];t.UpdateItemInput$=[3,Lp,Xd,0,[id,ps,re,Oo,on,zl,_c,nl,jd,zt,zr,qr,ql],[0,()=>lf,()=>Jm,()=>nf,0,0,0,0,0,0,128|0,()=>of,0],2];t.UpdateItemOutput$=[3,Lp,Qd,0,[ce,Je,Di],[()=>Ym,()=>t.ConsumedCapacity$,()=>t.ItemCollectionMetrics$]];t.UpdateKinesisStreamingConfiguration$=[3,Lp,Zd,0,[d],[0]];t.UpdateKinesisStreamingDestinationInput$=[3,Lp,tp,0,[id,Kl,Zd],[0,0,()=>t.UpdateKinesisStreamingConfiguration$],2];t.UpdateKinesisStreamingDestinationOutput$=[3,Lp,np,0,[id,Kl,xr,Zd],[0,0,0,()=>t.UpdateKinesisStreamingConfiguration$]];t.UpdateReplicationGroupMemberAction$=[3,Lp,sp,0,[ll,Cs,dc,Ia,Ho,zu],[0,0,()=>t.ProvisionedThroughputOverride$,()=>t.OnDemandThroughputOverride$,()=>Dm,0],1];t.UpdateTableInput$=[3,Lp,lp,0,[id,h,ve,cc,Zo,mu,gu,jl,$u,hr,Sa,Ti,Aa,xp,yi],[0,()=>Hp,0,()=>t.ProvisionedThroughput$,()=>sm,()=>t.StreamSpecification$,()=>t.SSESpecification$,()=>zm,0,2,0,()=>um,()=>t.OnDemandThroughput$,()=>t.WarmThroughput$,0],1];t.UpdateTableOutput$=[3,Lp,up,0,[Fu],[()=>t.TableDescription$]];t.UpdateTableReplicaAutoScalingInput$=[3,Lp,pp,0,[id,Zo,hc,jl],[0,()=>nm,()=>t.AutoScalingSettingsUpdate$,()=>km],1];t.UpdateTableReplicaAutoScalingOutput$=[3,Lp,mp,0,[Lu],[()=>t.TableAutoScalingDescription$]];t.UpdateTimeToLiveInput$=[3,Lp,hp,0,[id,Ed],[0,()=>t.TimeToLiveSpecification$],2];t.UpdateTimeToLiveOutput$=[3,Lp,gp,0,[Ed],[()=>t.TimeToLiveSpecification$]];t.WarmThroughput$=[3,Lp,xp,0,[Ul,Pp],[1,1]];t.WriteRequest$=[3,Lp,Sp,0,[Xa,gr],[()=>t.PutRequest$,()=>t.DeleteRequest$]];var qp="unit";var Hp=[1,Lp,h,0,()=>t.AttributeDefinition$];var Fp=null&&64|0;var Gp=[1,Lp,ie,0,()=>t.AttributeValue$];var Vp=[1,Lp,W,0,()=>t.AutoScalingPolicyDescription$];var Kp=[1,Lp,Me,0,()=>t.BackupSummary$];var Wp=null&&64|21;var Xp=[1,Lp,dn,0,()=>t.CancellationReason$];var Qp=[1,Lp,ot,0,()=>t.ConsumedCapacity$];var Yp=null&&64|0;var Jp=[1,Lp,nn,0,()=>t.ContributorInsightsSummary$];var Zp=null&&64|0;var em=[1,Lp,Ro,0,()=>t.Endpoint$];var tm=[1,Lp,fo,0,()=>t.ExportSummary$];var nm=[1,Lp,Go,0,()=>t.GlobalSecondaryIndexAutoScalingUpdate$];var rm=[1,Lp,Ko,0,()=>t.GlobalSecondaryIndexDescription$];var om=[1,Lp,Ho,0,()=>t.GlobalSecondaryIndexInfo$];var im=[1,Lp,Xo,0,()=>t.GlobalSecondaryIndex$];var sm=[1,Lp,Jo,0,()=>t.GlobalSecondaryIndexUpdate$];var am=[1,Lp,li,0,()=>t.GlobalTableGlobalSecondaryIndexSettingsUpdate$];var cm=[1,Lp,ui,0,()=>t.GlobalTable$];var lm=[1,Lp,xi,0,()=>t.GlobalTableWitnessDescription$];var um=[1,Lp,vi,0,()=>t.GlobalTableWitnessGroupUpdate$];var dm=[1,Lp,os,0,()=>t.ImportSummary$];var pm=[1,Lp,Li,0,()=>t.ItemCollectionMetrics$];var mm=null&&64|1;var fm=[1,Lp,Ki,0,()=>Ym];var hm=[1,Lp,Zi,0,()=>t.ItemResponse$];var gm=[1,Lp,bs,0,()=>lf];var ym=[1,Lp,Es,0,()=>t.KeySchemaElement$];var bm=[1,Lp,gs,0,()=>t.KinesisDataStreamDestination$];var Sm=[1,Lp,Ns,0,()=>t.AttributeValue$];var Cm=[1,Lp,ta,0,()=>t.LocalSecondaryIndexDescription$];var Em=[1,Lp,Zs,0,()=>t.LocalSecondaryIndexInfo$];var xm=[1,Lp,ra,0,()=>t.LocalSecondaryIndex$];var Pm=null&&64|0;var vm=null&&64|0;var Tm=[1,Lp,ac,0,()=>t.ParameterizedStatement$];var Rm=[1,Lp,Ka,0,()=>t.BatchStatementRequest$];var wm=[1,Lp,Wa,0,()=>t.BatchStatementResponse$];var Nm=[1,Lp,ic,0,()=>t.AttributeValue$];var Om=[1,Lp,Nc,0,()=>t.ReplicaAutoScalingDescription$];var km=[1,Lp,kc,0,()=>t.ReplicaAutoScalingUpdate$];var Am=[1,Lp,Lc,0,()=>t.ReplicaDescription$];var Im=[1,Lp,zc,0,()=>t.ReplicaGlobalSecondaryIndexAutoScalingDescription$];var _m=[1,Lp,Hc,0,()=>t.ReplicaGlobalSecondaryIndexAutoScalingUpdate$];var Bm=[1,Lp,Gc,0,()=>t.ReplicaGlobalSecondaryIndexDescription$];var Dm=[1,Lp,Vc,0,()=>t.ReplicaGlobalSecondaryIndex$];var Lm=[1,Lp,Xc,0,()=>t.ReplicaGlobalSecondaryIndexSettingsDescription$];var $m=[1,Lp,Yc,0,()=>t.ReplicaGlobalSecondaryIndexSettingsUpdate$];var Mm=[1,Lp,al,0,()=>t.Replica$];var Um=[1,Lp,xl,0,()=>t.ReplicaSettingsDescription$];var jm=[1,Lp,Rl,0,()=>t.ReplicaSettingsUpdate$];var zm=[1,Lp,el,0,()=>t.ReplicationGroupUpdate$];var qm=[1,Lp,Ml,0,()=>t.ReplicaUpdate$];var Hm=null&&64|0;var Fm=null&&64|0;var Gm=null&&64|0;var Vm=[1,Lp,nd,0,()=>t.Tag$];var Km=[1,Lp,ud,0,()=>t.ThrottlingReason$];var Wm=[1,Lp,Wu,0,()=>t.TransactGetItem$];var Xm=[1,Lp,wd,0,()=>t.TransactWriteItem$];var Qm=[1,Lp,Cp,0,()=>t.WriteRequest$];var Ym=[2,Lp,P,0,0,()=>t.AttributeValue$];var Jm=[2,Lp,re,0,0,()=>t.AttributeValueUpdate$];var Zm=[2,Lp,xe,0,0,()=>t.KeysAndAttributes$];var ef=[2,Lp,Ee,0,0,()=>fm];var tf=[2,Lp,He,0,0,()=>Qm];var nf=[2,Lp,jr,0,0,()=>t.ExpectedAttributeValue$];var rf=null&&128|0;var of=[2,Lp,Hr,0,0,()=>t.AttributeValue$];var sf=[2,Lp,Io,0,0,()=>t.Condition$];var af=[2,Lp,Bi,0,0,()=>t.AttributeValue$];var cf=[2,Lp,$i,0,0,()=>pm];var lf=[2,Lp,ps,0,0,()=>t.AttributeValue$];var uf=[2,Lp,fs,0,0,()=>t.Condition$];var df=[2,Lp,ya,0,0,()=>t.AttributeValue$];var pf=[2,Lp,Ma,0,0,()=>t.AttributeValue$];var mf=[2,Lp,iu,0,0,()=>t.Capacity$];t.AttributeValue$=[4,Lp,oe,0,[wu,Ta,Fe,Cu,Na,Le,va,ha,ka,Oe],[0,0,21,64|0,64|0,64|21,()=>df,()=>Sm,2,2]];t.BatchExecuteStatement$=[9,Lp,he,0,()=>t.BatchExecuteStatementInput$,()=>t.BatchExecuteStatementOutput$];t.BatchGetItem$=[9,Lp,be,0,()=>t.BatchGetItemInput$,()=>t.BatchGetItemOutput$];t.BatchWriteItem$=[9,Lp,je,0,()=>t.BatchWriteItemInput$,()=>t.BatchWriteItemOutput$];t.CreateBackup$=[9,Lp,Ve,0,()=>t.CreateBackupInput$,()=>t.CreateBackupOutput$];t.CreateGlobalTable$=[9,Lp,Ht,0,()=>t.CreateGlobalTableInput$,()=>t.CreateGlobalTableOutput$];t.CreateTable$=[9,Lp,Cn,0,()=>t.CreateTableInput$,()=>t.CreateTableOutput$];t.DeleteBackup$=[9,Lp,On,0,()=>t.DeleteBackupInput$,()=>t.DeleteBackupOutput$];t.DeleteItem$=[9,Lp,tr,0,()=>t.DeleteItemInput$,()=>t.DeleteItemOutput$];t.DeleteResourcePolicy$=[9,Lp,Sr,0,()=>t.DeleteResourcePolicyInput$,()=>t.DeleteResourcePolicyOutput$];t.DeleteTable$=[9,Lp,Tr,0,()=>t.DeleteTableInput$,()=>t.DeleteTableOutput$];t.DescribeBackup$=[9,Lp,Bn,0,()=>t.DescribeBackupInput$,()=>t.DescribeBackupOutput$];t.DescribeContinuousBackups$=[9,Lp,Dn,0,()=>t.DescribeContinuousBackupsInput$,()=>t.DescribeContinuousBackupsOutput$];t.DescribeContributorInsights$=[9,Lp,Mn,0,()=>t.DescribeContributorInsightsInput$,()=>t.DescribeContributorInsightsOutput$];t.DescribeEndpoints$=[9,Lp,zn,0,()=>t.DescribeEndpointsRequest$,()=>t.DescribeEndpointsResponse$];t.DescribeExport$=[9,Lp,Vn,0,()=>t.DescribeExportInput$,()=>t.DescribeExportOutput$];t.DescribeGlobalTable$=[9,Lp,Wn,0,()=>t.DescribeGlobalTableInput$,()=>t.DescribeGlobalTableOutput$];t.DescribeGlobalTableSettings$=[9,Lp,Yn,0,()=>t.DescribeGlobalTableSettingsInput$,()=>t.DescribeGlobalTableSettingsOutput$];t.DescribeImport$=[9,Lp,ar,0,()=>t.DescribeImportInput$,()=>t.DescribeImportOutput$];t.DescribeKinesisStreamingDestination$=[9,Lp,cr,0,()=>t.DescribeKinesisStreamingDestinationInput$,()=>t.DescribeKinesisStreamingDestinationOutput$];t.DescribeLimits$=[9,Lp,pr,0,()=>t.DescribeLimitsInput$,()=>t.DescribeLimitsOutput$];t.DescribeTable$=[9,Lp,Lr,0,()=>t.DescribeTableInput$,()=>t.DescribeTableOutput$];t.DescribeTableReplicaAutoScaling$=[9,Lp,kr,0,()=>t.DescribeTableReplicaAutoScalingInput$,()=>t.DescribeTableReplicaAutoScalingOutput$];t.DescribeTimeToLive$=[9,Lp,_r,0,()=>t.DescribeTimeToLiveInput$,()=>t.DescribeTimeToLiveOutput$];t.DisableKinesisStreamingDestination$=[9,Lp,dr,0,()=>t.KinesisStreamingDestinationInput$,()=>t.KinesisStreamingDestinationOutput$];t.EnableKinesisStreamingDestination$=[9,Lp,Jr,0,()=>t.KinesisStreamingDestinationInput$,()=>t.KinesisStreamingDestinationOutput$];t.ExecuteStatement$=[9,Lp,mo,0,()=>t.ExecuteStatementInput$,()=>t.ExecuteStatementOutput$];t.ExecuteTransaction$=[9,Lp,Po,0,()=>t.ExecuteTransactionInput$,()=>t.ExecuteTransactionOutput$];t.ExportTableToPointInTime$=[9,Lp,So,0,()=>t.ExportTableToPointInTimeInput$,()=>t.ExportTableToPointInTimeOutput$];t.GetItem$=[9,Lp,$o,0,()=>t.GetItemInput$,()=>t.GetItemOutput$];t.GetResourcePolicy$=[9,Lp,jo,0,()=>t.GetResourcePolicyInput$,()=>t.GetResourcePolicyOutput$];t.ImportTable$=[9,Lp,as,0,()=>t.ImportTableInput$,()=>t.ImportTableOutput$];t.ListBackups$=[9,Lp,Os,0,()=>t.ListBackupsInput$,()=>t.ListBackupsOutput$];t.ListContributorInsights$=[9,Lp,Is,0,()=>t.ListContributorInsightsInput$,()=>t.ListContributorInsightsOutput$];t.ListExports$=[9,Lp,Ls,0,()=>t.ListExportsInput$,()=>t.ListExportsOutput$];t.ListGlobalTables$=[9,Lp,Fs,0,()=>t.ListGlobalTablesInput$,()=>t.ListGlobalTablesOutput$];t.ListImports$=[9,Lp,Ks,0,()=>t.ListImportsInput$,()=>t.ListImportsOutput$];t.ListTables$=[9,Lp,aa,0,()=>t.ListTablesInput$,()=>t.ListTablesOutput$];t.ListTagsOfResource$=[9,Lp,ua,0,()=>t.ListTagsOfResourceInput$,()=>t.ListTagsOfResourceOutput$];t.PutItem$=[9,Lp,Da,0,()=>t.PutItemInput$,()=>t.PutItemOutput$];t.PutResourcePolicy$=[9,Lp,ec,0,()=>t.PutResourcePolicyInput$,()=>t.PutResourcePolicyOutput$];t.Query$=[9,Lp,Cc,0,()=>t.QueryInput$,()=>t.QueryOutput$];t.RestoreTableFromBackup$=[9,Lp,Al,0,()=>t.RestoreTableFromBackupInput$,()=>t.RestoreTableFromBackupOutput$];t.RestoreTableToPointInTime$=[9,Lp,Bl,0,()=>t.RestoreTableToPointInTimeInput$,()=>t.RestoreTableToPointInTimeOutput$];t.Scan$=[9,Lp,Nu,0,()=>t.ScanInput$,()=>t.ScanOutput$];t.TagResource$=[9,Lp,md,0,()=>t.TagResourceInput$,()=>qp];t.TransactGetItems$=[9,Lp,Qu,0,()=>t.TransactGetItemsInput$,()=>t.TransactGetItemsOutput$];t.TransactWriteItems$=[9,Lp,Od,0,()=>t.TransactWriteItemsInput$,()=>t.TransactWriteItemsOutput$];t.UntagResource$=[9,Lp,ip,0,()=>t.UntagResourceInput$,()=>qp];t.UpdateContinuousBackups$=[9,Lp,Bd,0,()=>t.UpdateContinuousBackupsInput$,()=>t.UpdateContinuousBackupsOutput$];t.UpdateContributorInsights$=[9,Lp,$d,0,()=>t.UpdateContributorInsightsInput$,()=>t.UpdateContributorInsightsOutput$];t.UpdateGlobalTable$=[9,Lp,qd,0,()=>t.UpdateGlobalTableInput$,()=>t.UpdateGlobalTableOutput$];t.UpdateGlobalTableSettings$=[9,Lp,Gd,0,()=>t.UpdateGlobalTableSettingsInput$,()=>t.UpdateGlobalTableSettingsOutput$];t.UpdateItem$=[9,Lp,Yd,0,()=>t.UpdateItemInput$,()=>t.UpdateItemOutput$];t.UpdateKinesisStreamingDestination$=[9,Lp,ep,0,()=>t.UpdateKinesisStreamingDestinationInput$,()=>t.UpdateKinesisStreamingDestinationOutput$];t.UpdateTable$=[9,Lp,cp,0,()=>t.UpdateTableInput$,()=>t.UpdateTableOutput$];t.UpdateTableReplicaAutoScaling$=[9,Lp,dp,0,()=>t.UpdateTableReplicaAutoScalingInput$,()=>t.UpdateTableReplicaAutoScalingOutput$];t.UpdateTimeToLive$=[9,Lp,fp,0,()=>t.UpdateTimeToLiveInput$,()=>t.UpdateTimeToLiveOutput$]},7168:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveHttpAuthSchemeConfig=t.defaultS3HttpAuthSchemeProvider=t.defaultS3HttpAuthSchemeParametersProvider=void 0;const i=o(97523);const a=o(5785);const d=o(92658);const m=o(62085);const f=o(57526);const createEndpointRuleSetHttpAuthSchemeParametersProvider=e=>async(t,o,i)=>{if(!i){throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`")}const a=await e(t,o,i);const f=(0,d.getSmithyContext)(o)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!f){throw new Error(`getEndpointParameterInstructions() is not defined on '${o.commandName}'`)}const h=await(0,m.resolveParams)(i,{getEndpointParameterInstructions:f},t);return Object.assign(a,h)};const _defaultS3HttpAuthSchemeParametersProvider=async(e,t,o)=>({operation:(0,d.getSmithyContext)(t).operation,region:await(0,d.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});t.defaultS3HttpAuthSchemeParametersProvider=createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultS3HttpAuthSchemeParametersProvider);function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function createAwsAuthSigv4aHttpAuthOption(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}const createEndpointRuleSetHttpAuthSchemeProvider=(e,t,o)=>{const endpointRuleSetHttpAuthSchemeProvider=i=>{const d=e(i);const m=d.properties?.authSchemes;if(!m){return t(i)}const f=[];for(const e of m){const{name:t,properties:d={},...h}=e;const P=t.toLowerCase();if(t!==P){console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${P}'`)}let _;if(P==="sigv4a"){_="aws.auth#sigv4a";const e=m.find((e=>{const t=e.name.toLowerCase();return t!=="sigv4a"&&t.startsWith("sigv4")}));if(a.SignatureV4MultiRegion.sigv4aDependency()==="none"&&e){continue}}else if(P.startsWith("sigv4")){_="aws.auth#sigv4"}else{throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${P}'`)}const L=o[_];if(!L){throw new Error(`Could not find HttpAuthOption create function for '${_}'`)}const U=L(i);U.schemeId=_;U.signingProperties={...U.signingProperties||{},...h,...d};f.push(U)}return f};return endpointRuleSetHttpAuthSchemeProvider};const _defaultS3HttpAuthSchemeProvider=e=>{const t=[];switch(e.operation){default:{t.push(createAwsAuthSigv4HttpAuthOption(e));t.push(createAwsAuthSigv4aHttpAuthOption(e))}}return t};t.defaultS3HttpAuthSchemeProvider=createEndpointRuleSetHttpAuthSchemeProvider(f.defaultEndpointResolver,_defaultS3HttpAuthSchemeProvider,{"aws.auth#sigv4":createAwsAuthSigv4HttpAuthOption,"aws.auth#sigv4a":createAwsAuthSigv4aHttpAuthOption});const resolveHttpAuthSchemeConfig=e=>{const t=(0,i.resolveAwsSdkSigV4Config)(e);const o=(0,i.resolveAwsSdkSigV4AConfig)(t);return Object.assign(o,{authSchemePreference:(0,d.normalizeProvider)(e.authSchemePreference??[])})};t.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},66363:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bdd=void 0;const i=o(62085);const a="ref",d="argv",m="backend",f="authSchemes",h="disableDoubleEncoding",P="signingName",_="signingRegion",L="signingRegionSet";const U=-1,j=true,H=false,V="isSet",K="booleanEquals",W="stringEquals",X="coalesce",Q="substring",Y="",J="aws.partition",Z="partitionResult",ee="accessPointSuffix",te="regionPrefix",n=e=>"outpostId_ssa_"+e+Y,ne="hardwareType",re="ite",oe="isValidHostLabel",ie="sigv4",se="aws.isVirtualHostableS3Bucket",ae="url",ce="getAttr",le="bucketArn",ue="--",de="arnType",pe="accesspoint",A=e=>"accessPointName_ssa_"+e+Y,me="s3-object-lambda",fe="s3-outposts",he="bucketPartition",ge="us-east-1",ye="outpostType",be="name",Se="s3",Ce="{url#scheme}://{Bucket}.{url#authority}{url#path}",Ee="{url#scheme}://{url#authority}{url#path}",xe="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",Pe="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",ve="https://{Bucket}.s3.{partitionResult#dnsSuffix}",N=e=>"{url#scheme}://{accessPointName_ssa_"+e+"}-{bucketArn#accountId}.{url#authority}{url#path}",O=e=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+e+"}`",Te="sigv4a",Re="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",we="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Ne="https://s3.{partitionResult#dnsSuffix}",Oe={[a]:"UseFIPS"},ke={[a]:"UseDualStack"},Ae={[a]:"Bucket"},Ie={fn:ce,[d]:[{[a]:Z},be]},_e={[a]:ae},Be={[a]:"Region"},De={[a]:le},Le={[a]:de},$e={[a]:"accessPointName_ssa_1"},Me={fn:ce,[d]:[De,"region"]},Ue={[a]:ne},je={fn:ce,[d]:[De,"service"]},ze={fn:ce,[d]:[De,"accountId"]},qe={[m]:"S3Express",[f]:[{[h]:true,[be]:"{_s3e_auth}",[P]:"s3express",[_]:"{Region}"}]},He={[m]:"S3Express",[f]:[{[h]:true,[be]:ie,[P]:"s3express",[_]:"{Region}"}]},Fe={[f]:[{[h]:true,[be]:Te,[P]:fe,[L]:["*"]},{[h]:true,[be]:ie,[P]:fe,[_]:"{Region}"}]},Ge={[f]:[{[h]:true,[be]:ie,[P]:Se,[_]:ge}]},Ve={[f]:[{[h]:true,[be]:ie,[P]:Se,[_]:"{Region}"}]},Ke={[f]:[{[h]:true,[be]:ie,[P]:me,[_]:"{bucketArn#region}"}]},We={[f]:[{[h]:true,[be]:ie,[P]:Se,[_]:"{bucketArn#region}"}]},Xe={[f]:[{[h]:true,[be]:Te,[P]:fe,[L]:["*"]},{[h]:true,[be]:ie,[P]:fe,[_]:"{bucketArn#region}"}]},Qe={[f]:[{[h]:true,[be]:ie,[P]:me,[_]:"{Region}"}]},Ye=[Be],Je=[{[a]:"Endpoint"}],Ze=[Ae],ot=[Ae,0,7,true],yt=[De,"resourceId[1]"],Rt=["*"];const zt={conditions:[[V,Ye],[K,[{[a]:"Accelerate"},j]],[K,[Oe,j]],[K,[ke,j]],[V,Je],[V,Ze],[W,[{fn:X,[d]:[{fn:Q,[d]:[Ae,0,6,j]},Y]},"--x-s3"]],[W,[{fn:X,[d]:[{fn:Q,[d]:ot},Y]},"--xa-s3"]],[J,Ye,Z],[Q,ot,ee],[W,[{[a]:ee},"--op-s3"]],[Q,[Ae,8,12,j],te],[Q,[Ae,32,49,j],n(2)],[Q,[Ae,49,50,j],ne],[K,[{[a]:"ForcePathStyle"},j]],[W,[Ie,"aws-cn"]],[re,[ke,".dualstack",Y],"_s3e_ds"],[oe,[{[a]:n(2)},H]],[re,[Oe,"-fips",Y],"_s3e_fips"],[re,[{fn:X,[d]:[{[a]:"DisableS3ExpressSessionAuth"},H]},ie,"sigv4-s3express"],"_s3e_auth"],[se,[Ae,H]],["parseURL",Je,ae],[K,[{fn:X,[d]:[{[a]:"UseS3ExpressControlEndpoint"},H]},j]],[se,[Ae,j]],[W,[{fn:ce,[d]:[_e,"scheme"]},"http"]],[oe,[Be,H]],["aws.parseArn",Ze,le],[ce,[{fn:"split",[d]:[Ae,ue,0]},"[-2]"],"s3expressAvailabilityZoneId"],[W,[{fn:X,[d]:[{fn:Q,[d]:[Ae,0,4,H]},Y]},"arn:"]],[W,[{fn:X,[d]:[{fn:Q,[d]:[Ae,16,18,j]},Y]},ue]],[K,[{fn:ce,[d]:[_e,"isIp"]},j]],[W,[{fn:X,[d]:[{fn:Q,[d]:[Ae,21,23,j]},Y]},ue]],[W,[{fn:X,[d]:[{fn:Q,[d]:[Ae,27,29,j]},Y]},ue]],[W,[{[a]:te},"beta"]],["uriEncode",Ze,"uri_encoded_bucket"],[oe,[Be,j]],[K,[{fn:X,[d]:[{[a]:"UseObjectLambdaEndpoint"},H]},j]],[ce,[De,"resourceId[0]"],de],[W,[Le,Y]],[W,[Le,pe]],[ce,yt,A(1)],[W,[$e,Y]],[W,[Me,Y]],[W,[{fn:X,[d]:[{fn:Q,[d]:[Ae,14,16,j]},Y]},ue]],[W,[Ue,"e"]],[W,[Ue,"o"]],[W,[Be,"aws-global"]],[W,[{fn:X,[d]:[{fn:Q,[d]:[Ae,19,21,j]},Y]},ue]],[W,[je,me]],[K,[{fn:X,[d]:[{[a]:"DisableAccessPoints"},H]},j]],[W,[je,fe]],[J,[Me],he],[oe,[$e,j]],[W,[{fn:X,[d]:[{fn:Q,[d]:[Ae,26,28,j]},Y]},ue]],[W,[{fn:X,[d]:[{fn:Q,[d]:[Ae,15,17,j]},Y]},ue]],[ce,[De,"resourceId[4]"]],[W,[{fn:X,[d]:[{fn:Q,[d]:[Ae,20,22,j]},Y]},ue]],[K,[{[a]:"UseGlobalEndpoint"},j]],[W,[Be,ge]],[ce,yt,n(1)],[K,[{fn:X,[d]:[{[a]:"UseArnRegion"},j]},j]],[oe,[{[a]:n(1)},H]],[ce,[De,"resourceId[2]"],ye],[W,[Be,Me]],[W,[{fn:ce,[d]:[{[a]:he},be]},Ie]],[K,[{[a]:"DisableMultiRegionAccessPoints"},j]],[oe,[Me,j]],[W,[{fn:ce,[d]:[De,"partition"]},Ie]],[W,[ze,Y]],[W,[je,Se]],[oe,[ze,H]],[ce,[De,"resourceId[3]"],A(2)],[oe,[$e,H]],[W,[{[a]:ye},pe]],[oe,[{[a]:A(2)},H]]],results:[[U],[U,"Accelerate cannot be used with FIPS"],[U,"Cannot set dual-stack in combination with a custom endpoint."],[U,"A custom endpoint cannot be combined with FIPS"],[U,"A custom endpoint cannot be combined with S3 Accelerate"],[U,"Partition does not support FIPS"],[U,"S3Express does not support S3 Accelerate."],["{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",qe],[Ce,qe],[U,"S3Express bucket name is not a valid virtual hostable name."],["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",He],["https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}",qe],[U,"Unrecognized S3Express bucket name format."],[Ee,qe],["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}",He],[U,"Expected a endpoint to be specified but no endpoint was found"],["https://{Bucket}.ec2.{url#authority}",Fe],["https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}",Fe],["https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}",Fe],["https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}",Fe],[U,'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"'],[U,"Invalid Outposts Bucket alias - it must be a valid bucket name."],[U,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[U,"Custom endpoint `{Endpoint}` was not a valid URI"],[U,"S3 Accelerate cannot be used in this region"],["https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",Ge],["https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",Ve],["https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",Ge],["https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",Ve],["https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",Ge],["https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",Ve],["https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",Ge],["https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",Ve],[xe,Ge],[Ce,Ge],[xe,Ve],[Ce,Ve],[Pe,Ge],[Pe,Ve],[ve,Ge],[ve,Ve],["https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",Ve],[U,"Invalid region: region was not a valid DNS name."],[U,"S3 Object Lambda does not support Dual-stack"],[U,"S3 Object Lambda does not support S3 Accelerate"],[U,"Access points are not supported for this operation"],[U,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[U,"Invalid ARN: Missing account id"],[N(1),Ke],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",Ke],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",Ke],[U,O(1)],[U,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[U,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[U,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[U,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[U,"Invalid ARN: bucket ARN is missing a region"],[U,"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided"],[U,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[U,"Access Points do not support S3 Accelerate"],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",We],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",We],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",We],[N(1),We],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",We],[U,"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}"],[U,"S3 MRAP does not support dual-stack"],[U,"S3 MRAP does not support FIPS"],[U,"S3 MRAP does not support S3 Accelerate"],[U,"Invalid configuration: Multi-Region Access Point ARNs are disabled."],["https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}",{[f]:[{[h]:j,name:Te,[P]:Se,[L]:Rt}]}],[U,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[U,"Invalid Access Point Name"],[U,"S3 Outposts does not support Dual-stack"],[U,"S3 Outposts does not support FIPS"],[U,"S3 Outposts does not support S3 Accelerate"],[U,"Invalid Arn: Outpost Access Point ARN contains sub resources"],["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}",Xe],["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",Xe],[U,O(2)],[U,"Expected an outpost type `accesspoint`, found {outpostType}"],[U,"Invalid ARN: expected an access point name"],[U,"Invalid ARN: Expected a 4-component resource"],[U,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[U,"Invalid ARN: The Outpost Id was not set"],[U,"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})"],[U,"Invalid ARN: No ARN type specified"],[U,"Invalid ARN: `{Bucket}` was not a valid ARN"],[U,"Path-style addressing cannot be used with ARN buckets"],["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Ge],["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Ve],["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Ge],["https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Ve],["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Ge],["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Ve],[Re,Ge],[Re,Ve],[we,Ge],[we,Ve],["https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Ve],[U,"Path-style addressing cannot be used with S3 Accelerate"],[Ee,Qe],["https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",Qe],["https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",Qe],["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",Ge],["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",Ve],["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",Ge],["https://s3-fips.{Region}.{partitionResult#dnsSuffix}",Ve],["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",Ge],["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",Ve],[Ee,Ge],[Ee,Ve],[Ne,Ge],[Ne,Ve],["https://s3.{Region}.{partitionResult#dnsSuffix}",Ve],[U,"A region must be set when sending requests to S3."]]};const qt=2;const Ht=1e8;const Kt=new Int32Array([-1,1,-1,0,3,Ht+115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,Ht+115,16,10,13,18,11,13,19,12,13,22,Ht+14,13,35,14,Ht+42,36,Ht+103,435,6,271,16,7,270,17,8,19,18,14,501,106,9,20,24,10,21,24,11,22,24,12,23,24,13,547,24,14,77,25,20,73,26,26,27,78,37,28,Ht+86,38,Ht+86,29,39,47,30,48,Ht+58,31,50,32,Ht+85,51,33,136,55,Ht+76,34,59,35,Ht+84,60,39,36,61,37,Ht+83,62,38,146,63,41,Ht+46,61,40,Ht+83,62,41,150,64,42,Ht+54,66,43,Ht+53,70,44,Ht+52,71,45,Ht+81,73,46,Ht+80,74,Ht+78,Ht+79,40,48,Ht+57,41,Ht+57,49,42,185,50,48,62,51,49,Ht+45,52,51,53,526,60,56,54,62,Ht+55,55,63,57,Ht+46,62,Ht+55,57,64,58,Ht+54,66,59,Ht+53,69,60,Ht+65,70,61,Ht+52,72,Ht+64,Ht+51,49,Ht+45,63,51,64,526,60,67,65,62,Ht+55,66,63,68,Ht+46,62,Ht+55,68,64,69,Ht+54,66,70,Ht+53,68,Ht+47,71,70,72,Ht+52,72,Ht+50,Ht+51,25,74,Ht+42,46,Ht+39,75,57,76,Ht+41,58,Ht+40,Ht+41,26,Ht+88,78,28,Ht+87,79,34,82,80,35,81,545,36,Ht+103,Ht+115,46,Ht+97,83,57,84,Ht+99,58,Ht+98,Ht+99,5,101,86,8,87,Ht+115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,Ht+14,95,35,96,Ht+42,36,Ht+103,Ht+42,22,Ht+13,98,35,99,Ht+42,36,Ht+101,100,46,Ht+110,Ht+111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,Ht+23,26,107,502,37,108,Ht+86,38,Ht+86,109,39,112,110,48,Ht+58,111,50,136,Ht+85,40,113,Ht+57,41,Ht+57,114,42,115,500,48,Ht+56,116,52,117,Ht+72,65,Ht+69,Ht+72,21,501,Ht+23,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,Ht+23,23,128,129,24,189,129,26,130,197,37,131,Ht+86,38,Ht+86,132,39,159,133,48,Ht+58,134,50,135,Ht+85,51,141,136,55,Ht+76,137,59,138,Ht+84,60,Ht+83,139,61,140,Ht+83,63,Ht+83,Ht+46,55,Ht+76,142,59,143,Ht+84,60,148,144,61,145,Ht+83,62,147,146,63,150,Ht+46,63,153,Ht+46,61,149,Ht+83,62,153,150,64,151,Ht+54,66,152,Ht+53,70,Ht+82,Ht+52,64,154,Ht+54,66,155,Ht+53,70,156,Ht+52,71,157,Ht+81,73,158,Ht+80,74,Ht+77,Ht+79,40,160,Ht+57,41,Ht+57,161,42,185,162,48,174,163,49,Ht+45,164,51,165,526,60,168,166,62,Ht+55,167,63,169,Ht+46,62,Ht+55,169,64,170,Ht+54,66,171,Ht+53,69,172,Ht+65,70,173,Ht+52,72,Ht+63,Ht+51,49,Ht+45,175,51,176,526,60,179,177,62,Ht+55,178,63,180,Ht+46,62,Ht+55,180,64,181,Ht+54,66,182,Ht+53,68,Ht+47,183,70,184,Ht+52,72,Ht+48,Ht+51,48,Ht+56,186,52,187,Ht+72,65,Ht+69,188,67,Ht+70,Ht+71,25,Ht+36,Ht+42,21,191,Ht+23,25,192,Ht+42,30,194,193,46,Ht+34,Ht+36,46,Ht+33,Ht+35,21,196,Ht+23,26,Ht+88,197,28,Ht+87,198,34,201,199,35,200,545,36,Ht+101,Ht+115,46,Ht+95,Ht+96,17,203,Ht+22,20,204,Ht+21,21,205,550,33,206,550,44,Ht+16,207,45,Ht+18,Ht+20,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,Ht+9,20,217,227,21,231,Ht+9,16,219,220,18,223,220,19,221,224,20,222,227,21,231,Ht+12,19,226,224,20,225,Ht+9,21,Ht+9,Ht+12,20,230,227,21,228,Ht+9,30,229,Ht+9,34,Ht+7,Ht+9,21,231,415,30,232,Ht+8,34,Ht+7,Ht+8,4,Ht+2,234,5,235,480,6,271,236,7,270,237,8,238,491,9,239,243,10,240,243,11,241,243,12,242,243,13,547,243,14,266,244,20,264,245,26,246,267,37,247,Ht+86,38,Ht+86,248,39,249,518,40,250,Ht+57,41,Ht+57,251,42,538,252,48,Ht+43,253,49,Ht+45,254,51,255,526,60,258,256,62,Ht+55,257,63,259,Ht+46,62,Ht+55,259,64,260,Ht+54,66,261,Ht+53,69,262,Ht+65,70,263,Ht+52,72,Ht+62,Ht+51,25,265,Ht+42,46,Ht+31,Ht+32,26,Ht+88,267,28,Ht+87,268,34,269,544,46,Ht+93,Ht+94,8,397,Ht+9,8,407,Ht+9,3,346,273,4,Ht+3,274,5,284,275,8,276,Ht+115,15,Ht+5,277,16,278,281,18,279,281,19,280,281,22,Ht+14,281,35,282,Ht+42,36,Ht+102,283,46,Ht+106,Ht+107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,Ht+86,38,Ht+86,291,39,292,307,40,293,Ht+57,41,Ht+57,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,Ht+5,302,20,337,303,26,304,341,37,305,Ht+86,38,Ht+86,306,39,309,307,48,Ht+58,308,50,Ht+74,Ht+85,40,310,Ht+57,41,Ht+57,311,42,335,312,48,324,313,49,Ht+45,314,51,315,526,60,318,316,62,Ht+55,317,63,319,Ht+46,62,Ht+55,319,64,320,Ht+54,66,321,Ht+53,69,322,Ht+65,70,323,Ht+52,72,Ht+61,Ht+51,49,Ht+45,325,51,326,526,60,329,327,62,Ht+55,328,63,330,Ht+46,62,Ht+55,330,64,331,Ht+54,66,332,Ht+53,68,Ht+47,333,70,334,Ht+52,72,Ht+49,Ht+51,48,Ht+56,336,52,Ht+67,Ht+72,25,338,Ht+42,46,Ht+27,Ht+28,15,Ht+5,340,26,Ht+88,341,28,Ht+87,342,34,345,343,35,344,545,36,Ht+102,Ht+115,46,Ht+91,Ht+92,4,Ht+2,347,5,357,348,8,349,Ht+115,15,Ht+5,350,16,351,354,18,352,354,19,353,354,22,Ht+14,354,35,355,Ht+42,36,Ht+43,356,46,Ht+104,Ht+105,6,405,358,7,395,359,8,360,491,9,361,365,10,362,365,11,363,365,12,364,365,13,394,365,14,389,366,15,Ht+5,367,20,387,368,26,369,391,37,370,Ht+86,38,Ht+86,371,39,372,518,40,373,Ht+57,41,Ht+57,374,42,538,375,48,Ht+43,376,49,Ht+45,377,51,378,526,60,381,379,62,Ht+55,380,63,382,Ht+46,62,Ht+55,382,64,383,Ht+54,66,384,Ht+53,69,385,Ht+65,70,386,Ht+52,72,Ht+60,Ht+51,25,388,Ht+42,46,Ht+25,Ht+26,15,Ht+5,390,26,Ht+88,391,28,Ht+87,392,34,393,544,46,Ht+89,Ht+90,15,Ht+5,547,8,396,Ht+9,15,Ht+5,397,16,398,410,18,399,410,19,400,410,20,401,Ht+9,27,402,Ht+12,29,Ht+11,403,31,Ht+11,404,32,Ht+11,422,8,406,Ht+9,15,Ht+5,407,16,408,410,18,409,410,19,411,410,20,Ht+12,Ht+9,20,414,412,22,413,Ht+9,34,Ht+10,Ht+9,22,416,415,27,419,Ht+12,27,418,417,34,Ht+10,Ht+12,34,Ht+10,419,43,Ht+11,420,47,Ht+11,421,53,Ht+11,422,54,Ht+11,423,56,Ht+11,Ht+12,2,Ht+1,425,3,478,426,4,Ht+4,427,5,438,428,8,429,Ht+115,16,430,433,18,431,433,19,432,433,22,Ht+14,433,35,434,Ht+42,36,Ht+44,435,46,Ht+112,436,57,437,Ht+114,58,Ht+113,Ht+114,6,Ht+6,439,7,Ht+6,440,8,450,441,14,501,442,26,443,502,37,444,Ht+86,38,Ht+86,445,39,446,465,40,447,Ht+57,41,Ht+57,448,42,471,449,48,Ht+44,500,9,451,455,10,452,455,11,453,455,12,454,455,13,547,455,14,473,456,15,460,457,20,458,461,25,459,Ht+42,46,Ht+37,Ht+38,20,540,461,26,462,474,37,463,Ht+86,38,Ht+86,464,39,467,465,48,Ht+58,466,50,Ht+75,Ht+85,40,468,Ht+57,41,Ht+57,469,42,471,470,48,Ht+44,524,48,Ht+44,472,52,Ht+68,Ht+72,26,Ht+88,474,28,Ht+87,475,34,Ht+100,476,35,477,545,36,Ht+44,Ht+115,4,Ht+2,479,5,488,480,8,481,Ht+115,16,482,485,18,483,485,19,484,485,22,Ht+14,485,35,486,Ht+42,36,Ht+43,487,46,Ht+108,Ht+109,6,Ht+6,489,7,Ht+6,490,8,503,491,14,501,492,26,493,502,37,494,Ht+86,38,Ht+86,495,39,496,518,40,497,Ht+57,41,Ht+57,498,42,538,499,48,Ht+43,500,49,Ht+45,526,26,Ht+88,502,28,Ht+87,Ht+115,9,504,508,10,505,508,11,506,508,12,507,508,13,547,508,14,541,509,15,513,510,20,511,514,25,512,Ht+42,46,Ht+29,Ht+30,20,540,514,26,515,542,37,516,Ht+86,38,Ht+86,517,39,520,518,48,Ht+58,519,50,Ht+73,Ht+85,40,521,Ht+57,41,Ht+57,522,42,538,523,48,Ht+43,524,49,Ht+45,525,51,529,526,60,Ht+55,527,62,Ht+55,528,63,Ht+55,Ht+46,60,532,530,62,Ht+55,531,63,533,Ht+46,62,Ht+55,533,64,534,Ht+54,66,535,Ht+53,69,536,Ht+65,70,537,Ht+52,72,Ht+59,Ht+51,48,Ht+43,539,52,Ht+66,Ht+72,25,Ht+24,Ht+42,26,Ht+88,542,28,Ht+87,543,34,Ht+100,544,35,546,545,36,Ht+42,Ht+115,36,Ht+43,Ht+115,17,548,Ht+22,20,549,Ht+21,33,552,550,44,Ht+17,551,45,Ht+19,Ht+20,44,Ht+15,553,45,Ht+15,Ht+20]);t.bdd=i.BinaryDecisionDiagram.from(Kt,qt,zt.conditions,zt.results)},57526:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const i=o(5152);const a=o(62085);const d=o(66363);const m=new a.EndpointCache({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]});const defaultEndpointResolver=(e,t={})=>m.get(e,(()=>(0,a.decideEndpoint)(d.bdd,{endpointParams:e,logger:t.logger})));t.defaultEndpointResolver=defaultEndpointResolver;a.customEndpointFunctions.aws=i.awsEndpointFunctions},53711:(e,t,o)=>{"use strict";var i=o(5152);var a=o(84745);var d=o(29836);var m=o(77445);var f=o(90402);var h=o(92658);var P=o(47291);var _=o(62085);var L=o(56579);var U=o(93422);var j=o(23609);var H=o(26890);var V=o(7168);var K=o(20091);var W=o(35745);var X=o(35568);var Q=o(23209);var Y=o(80631);var J=o(98354);const resolveClientEndpointParameters=e=>Object.assign(e,{useFipsEndpoint:e.useFipsEndpoint??false,useDualstackEndpoint:e.useDualstackEndpoint??false,forcePathStyle:e.forcePathStyle??false,useAccelerateEndpoint:e.useAccelerateEndpoint??false,useGlobalEndpoint:e.useGlobalEndpoint??false,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??false,defaultSigningName:"s3",clientContextParams:e.clientContextParams??{}});const Z={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},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"}};class CreateSessionCommand extends(h.Command.classBuilder().ep({...Z,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","CreateSession",{}).n("S3Client","CreateSessionCommand").sc(K.CreateSession$).build()){}const getHttpAuthExtensionConfiguration=e=>{const t=e.httpAuthSchemes;let o=e.httpAuthSchemeProvider;let i=e.credentials;return{setHttpAuthScheme(e){const o=t.findIndex((t=>t.schemeId===e.schemeId));if(o===-1){t.push(e)}else{t.splice(o,1,e)}},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){o=e},httpAuthSchemeProvider(){return o},setCredentials(e){i=e},credentials(){return i}}};const resolveHttpAuthRuntimeConfig=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});const resolveRuntimeExtensions=(e,t)=>{const o=Object.assign(i.getAwsRegionExtensionConfiguration(e),h.getDefaultExtensionConfiguration(e),U.getHttpHandlerExtensionConfiguration(e),getHttpAuthExtensionConfiguration(e));t.forEach((e=>e.configure(o)));return Object.assign(e,i.resolveAwsRegionExtensionConfiguration(o),h.resolveDefaultRuntimeConfig(o),U.resolveHttpHandlerRuntimeConfig(o),resolveHttpAuthRuntimeConfig(o))};class S3Client extends h.Client{config;constructor(...[e]){const t=W.getRuntimeConfig(e||{});super(t);this.initConfig=t;const o=resolveClientEndpointParameters(t);const h=i.resolveUserAgentConfig(o);const K=d.resolveFlexibleChecksumsConfig(h);const X=j.resolveRetryConfig(K);const Q=P.resolveRegionConfig(X);const Y=i.resolveHostHeaderConfig(Q);const J=_.resolveEndpointConfig(Y);const Z=L.resolveEventStreamSerdeConfig(J);const ee=V.resolveHttpAuthSchemeConfig(Z);const te=m.resolveS3Config(ee,{session:[()=>this,CreateSessionCommand]});const ne=resolveRuntimeExtensions(te,e?.extensions||[]);this.config=ne;this.middlewareStack.use(H.getSchemaSerdePlugin(this.config));this.middlewareStack.use(i.getUserAgentPlugin(this.config));this.middlewareStack.use(j.getRetryPlugin(this.config));this.middlewareStack.use(U.getContentLengthPlugin(this.config));this.middlewareStack.use(i.getHostHeaderPlugin(this.config));this.middlewareStack.use(i.getLoggerPlugin(this.config));this.middlewareStack.use(i.getRecursionDetectionPlugin(this.config));this.middlewareStack.use(f.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:V.defaultS3HttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new f.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})}));this.middlewareStack.use(f.getHttpSigningPlugin(this.config));this.middlewareStack.use(m.getValidateBucketNamePlugin(this.config));this.middlewareStack.use(a.getAddExpectContinuePlugin(this.config));this.middlewareStack.use(m.getRegionRedirectMiddlewarePlugin(this.config));this.middlewareStack.use(m.getS3ExpressPlugin(this.config));this.middlewareStack.use(m.getS3ExpressHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class AbortMultipartUploadCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","AbortMultipartUpload",{}).n("S3Client","AbortMultipartUploadCommand").sc(K.AbortMultipartUpload$).build()){}class CompleteMultipartUploadCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o),X.getSsecPlugin(o)]})).s("AmazonS3","CompleteMultipartUpload",{}).n("S3Client","CompleteMultipartUploadCommand").sc(K.CompleteMultipartUpload$).build()){}class CopyObjectCommand extends(h.Command.classBuilder().ep({...Z,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"},CopySource:{type:"contextParams",name:"CopySource"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o),X.getSsecPlugin(o)]})).s("AmazonS3","CopyObject",{}).n("S3Client","CopyObjectCommand").sc(K.CopyObject$).build()){}class CreateBucketCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},DisableAccessPoints:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o),Q.getLocationConstraintPlugin(o)]})).s("AmazonS3","CreateBucket",{}).n("S3Client","CreateBucketCommand").sc(K.CreateBucket$).build()){}class CreateBucketMetadataConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true})]})).s("AmazonS3","CreateBucketMetadataConfiguration",{}).n("S3Client","CreateBucketMetadataConfigurationCommand").sc(K.CreateBucketMetadataConfiguration$).build()){}class CreateBucketMetadataTableConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true})]})).s("AmazonS3","CreateBucketMetadataTableConfiguration",{}).n("S3Client","CreateBucketMetadataTableConfigurationCommand").sc(K.CreateBucketMetadataTableConfiguration$).build()){}class CreateMultipartUploadCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o),X.getSsecPlugin(o)]})).s("AmazonS3","CreateMultipartUpload",{}).n("S3Client","CreateMultipartUploadCommand").sc(K.CreateMultipartUpload$).build()){}class DeleteBucketAnalyticsConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","DeleteBucketAnalyticsConfiguration",{}).n("S3Client","DeleteBucketAnalyticsConfigurationCommand").sc(K.DeleteBucketAnalyticsConfiguration$).build()){}class DeleteBucketCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","DeleteBucket",{}).n("S3Client","DeleteBucketCommand").sc(K.DeleteBucket$).build()){}class DeleteBucketCorsCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","DeleteBucketCors",{}).n("S3Client","DeleteBucketCorsCommand").sc(K.DeleteBucketCors$).build()){}class DeleteBucketEncryptionCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","DeleteBucketEncryption",{}).n("S3Client","DeleteBucketEncryptionCommand").sc(K.DeleteBucketEncryption$).build()){}class DeleteBucketIntelligentTieringConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","DeleteBucketIntelligentTieringConfiguration",{}).n("S3Client","DeleteBucketIntelligentTieringConfigurationCommand").sc(K.DeleteBucketIntelligentTieringConfiguration$).build()){}class DeleteBucketInventoryConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","DeleteBucketInventoryConfiguration",{}).n("S3Client","DeleteBucketInventoryConfigurationCommand").sc(K.DeleteBucketInventoryConfiguration$).build()){}class DeleteBucketLifecycleCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","DeleteBucketLifecycle",{}).n("S3Client","DeleteBucketLifecycleCommand").sc(K.DeleteBucketLifecycle$).build()){}class DeleteBucketMetadataConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","DeleteBucketMetadataConfiguration",{}).n("S3Client","DeleteBucketMetadataConfigurationCommand").sc(K.DeleteBucketMetadataConfiguration$).build()){}class DeleteBucketMetadataTableConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","DeleteBucketMetadataTableConfiguration",{}).n("S3Client","DeleteBucketMetadataTableConfigurationCommand").sc(K.DeleteBucketMetadataTableConfiguration$).build()){}class DeleteBucketMetricsConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","DeleteBucketMetricsConfiguration",{}).n("S3Client","DeleteBucketMetricsConfigurationCommand").sc(K.DeleteBucketMetricsConfiguration$).build()){}class DeleteBucketOwnershipControlsCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","DeleteBucketOwnershipControls",{}).n("S3Client","DeleteBucketOwnershipControlsCommand").sc(K.DeleteBucketOwnershipControls$).build()){}class DeleteBucketPolicyCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","DeleteBucketPolicy",{}).n("S3Client","DeleteBucketPolicyCommand").sc(K.DeleteBucketPolicy$).build()){}class DeleteBucketReplicationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","DeleteBucketReplication",{}).n("S3Client","DeleteBucketReplicationCommand").sc(K.DeleteBucketReplication$).build()){}class DeleteBucketTaggingCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","DeleteBucketTagging",{}).n("S3Client","DeleteBucketTaggingCommand").sc(K.DeleteBucketTagging$).build()){}class DeleteBucketWebsiteCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","DeleteBucketWebsite",{}).n("S3Client","DeleteBucketWebsiteCommand").sc(K.DeleteBucketWebsite$).build()){}class DeleteObjectCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","DeleteObject",{}).n("S3Client","DeleteObjectCommand").sc(K.DeleteObject$).build()){}class DeleteObjectsCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true}),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","DeleteObjects",{}).n("S3Client","DeleteObjectsCommand").sc(K.DeleteObjects$).build()){}class DeleteObjectTaggingCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","DeleteObjectTagging",{}).n("S3Client","DeleteObjectTaggingCommand").sc(K.DeleteObjectTagging$).build()){}class DeletePublicAccessBlockCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","DeletePublicAccessBlock",{}).n("S3Client","DeletePublicAccessBlockCommand").sc(K.DeletePublicAccessBlock$).build()){}class GetBucketAbacCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketAbac",{}).n("S3Client","GetBucketAbacCommand").sc(K.GetBucketAbac$).build()){}class GetBucketAccelerateConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketAccelerateConfiguration",{}).n("S3Client","GetBucketAccelerateConfigurationCommand").sc(K.GetBucketAccelerateConfiguration$).build()){}class GetBucketAclCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketAcl",{}).n("S3Client","GetBucketAclCommand").sc(K.GetBucketAcl$).build()){}class GetBucketAnalyticsConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketAnalyticsConfiguration",{}).n("S3Client","GetBucketAnalyticsConfigurationCommand").sc(K.GetBucketAnalyticsConfiguration$).build()){}class GetBucketCorsCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketCors",{}).n("S3Client","GetBucketCorsCommand").sc(K.GetBucketCors$).build()){}class GetBucketEncryptionCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketEncryption",{}).n("S3Client","GetBucketEncryptionCommand").sc(K.GetBucketEncryption$).build()){}class GetBucketIntelligentTieringConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketIntelligentTieringConfiguration",{}).n("S3Client","GetBucketIntelligentTieringConfigurationCommand").sc(K.GetBucketIntelligentTieringConfiguration$).build()){}class GetBucketInventoryConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketInventoryConfiguration",{}).n("S3Client","GetBucketInventoryConfigurationCommand").sc(K.GetBucketInventoryConfiguration$).build()){}class GetBucketLifecycleConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketLifecycleConfiguration",{}).n("S3Client","GetBucketLifecycleConfigurationCommand").sc(K.GetBucketLifecycleConfiguration$).build()){}class GetBucketLocationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketLocation",{}).n("S3Client","GetBucketLocationCommand").sc(K.GetBucketLocation$).build()){}class GetBucketLoggingCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketLogging",{}).n("S3Client","GetBucketLoggingCommand").sc(K.GetBucketLogging$).build()){}class GetBucketMetadataConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketMetadataConfiguration",{}).n("S3Client","GetBucketMetadataConfigurationCommand").sc(K.GetBucketMetadataConfiguration$).build()){}class GetBucketMetadataTableConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketMetadataTableConfiguration",{}).n("S3Client","GetBucketMetadataTableConfigurationCommand").sc(K.GetBucketMetadataTableConfiguration$).build()){}class GetBucketMetricsConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketMetricsConfiguration",{}).n("S3Client","GetBucketMetricsConfigurationCommand").sc(K.GetBucketMetricsConfiguration$).build()){}class GetBucketNotificationConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketNotificationConfiguration",{}).n("S3Client","GetBucketNotificationConfigurationCommand").sc(K.GetBucketNotificationConfiguration$).build()){}class GetBucketOwnershipControlsCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketOwnershipControls",{}).n("S3Client","GetBucketOwnershipControlsCommand").sc(K.GetBucketOwnershipControls$).build()){}class GetBucketPolicyCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","GetBucketPolicy",{}).n("S3Client","GetBucketPolicyCommand").sc(K.GetBucketPolicy$).build()){}class GetBucketPolicyStatusCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketPolicyStatus",{}).n("S3Client","GetBucketPolicyStatusCommand").sc(K.GetBucketPolicyStatus$).build()){}class GetBucketReplicationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketReplication",{}).n("S3Client","GetBucketReplicationCommand").sc(K.GetBucketReplication$).build()){}class GetBucketRequestPaymentCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketRequestPayment",{}).n("S3Client","GetBucketRequestPaymentCommand").sc(K.GetBucketRequestPayment$).build()){}class GetBucketTaggingCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketTagging",{}).n("S3Client","GetBucketTaggingCommand").sc(K.GetBucketTagging$).build()){}class GetBucketVersioningCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketVersioning",{}).n("S3Client","GetBucketVersioningCommand").sc(K.GetBucketVersioning$).build()){}class GetBucketWebsiteCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetBucketWebsite",{}).n("S3Client","GetBucketWebsiteCommand").sc(K.GetBucketWebsite$).build()){}class GetObjectAclCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetObjectAcl",{}).n("S3Client","GetObjectAclCommand").sc(K.GetObjectAcl$).build()){}class GetObjectAttributesCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o),X.getSsecPlugin(o)]})).s("AmazonS3","GetObjectAttributes",{}).n("S3Client","GetObjectAttributesCommand").sc(K.GetObjectAttributes$).build()){}class GetObjectCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestChecksumRequired:false,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1","SHA512","MD5","XXHASH64","XXHASH3","XXHASH128"]}),X.getSsecPlugin(o),m.getS3ExpiresMiddlewarePlugin(o)]})).s("AmazonS3","GetObject",{}).n("S3Client","GetObjectCommand").sc(K.GetObject$).build()){}class GetObjectLegalHoldCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetObjectLegalHold",{}).n("S3Client","GetObjectLegalHoldCommand").sc(K.GetObjectLegalHold$).build()){}class GetObjectLockConfigurationCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetObjectLockConfiguration",{}).n("S3Client","GetObjectLockConfigurationCommand").sc(K.GetObjectLockConfiguration$).build()){}class GetObjectRetentionCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetObjectRetention",{}).n("S3Client","GetObjectRetentionCommand").sc(K.GetObjectRetention$).build()){}class GetObjectTaggingCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetObjectTagging",{}).n("S3Client","GetObjectTaggingCommand").sc(K.GetObjectTagging$).build()){}class GetObjectTorrentCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","GetObjectTorrent",{}).n("S3Client","GetObjectTorrentCommand").sc(K.GetObjectTorrent$).build()){}class GetPublicAccessBlockCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","GetPublicAccessBlock",{}).n("S3Client","GetPublicAccessBlockCommand").sc(K.GetPublicAccessBlock$).build()){}class HeadBucketCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","HeadBucket",{}).n("S3Client","HeadBucketCommand").sc(K.HeadBucket$).build()){}class HeadObjectCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o),X.getSsecPlugin(o),m.getS3ExpiresMiddlewarePlugin(o)]})).s("AmazonS3","HeadObject",{}).n("S3Client","HeadObjectCommand").sc(K.HeadObject$).build()){}class ListBucketAnalyticsConfigurationsCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","ListBucketAnalyticsConfigurations",{}).n("S3Client","ListBucketAnalyticsConfigurationsCommand").sc(K.ListBucketAnalyticsConfigurations$).build()){}class ListBucketIntelligentTieringConfigurationsCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","ListBucketIntelligentTieringConfigurations",{}).n("S3Client","ListBucketIntelligentTieringConfigurationsCommand").sc(K.ListBucketIntelligentTieringConfigurations$).build()){}class ListBucketInventoryConfigurationsCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","ListBucketInventoryConfigurations",{}).n("S3Client","ListBucketInventoryConfigurationsCommand").sc(K.ListBucketInventoryConfigurations$).build()){}class ListBucketMetricsConfigurationsCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","ListBucketMetricsConfigurations",{}).n("S3Client","ListBucketMetricsConfigurationsCommand").sc(K.ListBucketMetricsConfigurations$).build()){}class ListBucketsCommand extends(h.Command.classBuilder().ep(Z).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","ListBuckets",{}).n("S3Client","ListBucketsCommand").sc(K.ListBuckets$).build()){}class ListDirectoryBucketsCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","ListDirectoryBuckets",{}).n("S3Client","ListDirectoryBucketsCommand").sc(K.ListDirectoryBuckets$).build()){}class ListMultipartUploadsCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","ListMultipartUploads",{}).n("S3Client","ListMultipartUploadsCommand").sc(K.ListMultipartUploads$).build()){}class ListObjectsCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","ListObjects",{}).n("S3Client","ListObjectsCommand").sc(K.ListObjects$).build()){}class ListObjectsV2Command extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","ListObjectsV2",{}).n("S3Client","ListObjectsV2Command").sc(K.ListObjectsV2$).build()){}class ListObjectVersionsCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","ListObjectVersions",{}).n("S3Client","ListObjectVersionsCommand").sc(K.ListObjectVersions$).build()){}class ListPartsCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o),X.getSsecPlugin(o)]})).s("AmazonS3","ListParts",{}).n("S3Client","ListPartsCommand").sc(K.ListParts$).build()){}class PutBucketAbacCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:false})]})).s("AmazonS3","PutBucketAbac",{}).n("S3Client","PutBucketAbacCommand").sc(K.PutBucketAbac$).build()){}class PutBucketAccelerateConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:false})]})).s("AmazonS3","PutBucketAccelerateConfiguration",{}).n("S3Client","PutBucketAccelerateConfigurationCommand").sc(K.PutBucketAccelerateConfiguration$).build()){}class PutBucketAclCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true})]})).s("AmazonS3","PutBucketAcl",{}).n("S3Client","PutBucketAclCommand").sc(K.PutBucketAcl$).build()){}class PutBucketAnalyticsConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","PutBucketAnalyticsConfiguration",{}).n("S3Client","PutBucketAnalyticsConfigurationCommand").sc(K.PutBucketAnalyticsConfiguration$).build()){}class PutBucketCorsCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true})]})).s("AmazonS3","PutBucketCors",{}).n("S3Client","PutBucketCorsCommand").sc(K.PutBucketCors$).build()){}class PutBucketEncryptionCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true})]})).s("AmazonS3","PutBucketEncryption",{}).n("S3Client","PutBucketEncryptionCommand").sc(K.PutBucketEncryption$).build()){}class PutBucketIntelligentTieringConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","PutBucketIntelligentTieringConfiguration",{}).n("S3Client","PutBucketIntelligentTieringConfigurationCommand").sc(K.PutBucketIntelligentTieringConfiguration$).build()){}class PutBucketInventoryConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","PutBucketInventoryConfiguration",{}).n("S3Client","PutBucketInventoryConfigurationCommand").sc(K.PutBucketInventoryConfiguration$).build()){}class PutBucketLifecycleConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true}),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","PutBucketLifecycleConfiguration",{}).n("S3Client","PutBucketLifecycleConfigurationCommand").sc(K.PutBucketLifecycleConfiguration$).build()){}class PutBucketLoggingCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true})]})).s("AmazonS3","PutBucketLogging",{}).n("S3Client","PutBucketLoggingCommand").sc(K.PutBucketLogging$).build()){}class PutBucketMetricsConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","PutBucketMetricsConfiguration",{}).n("S3Client","PutBucketMetricsConfigurationCommand").sc(K.PutBucketMetricsConfiguration$).build()){}class PutBucketNotificationConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","PutBucketNotificationConfiguration",{}).n("S3Client","PutBucketNotificationConfigurationCommand").sc(K.PutBucketNotificationConfiguration$).build()){}class PutBucketOwnershipControlsCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true})]})).s("AmazonS3","PutBucketOwnershipControls",{}).n("S3Client","PutBucketOwnershipControlsCommand").sc(K.PutBucketOwnershipControls$).build()){}class PutBucketPolicyCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true})]})).s("AmazonS3","PutBucketPolicy",{}).n("S3Client","PutBucketPolicyCommand").sc(K.PutBucketPolicy$).build()){}class PutBucketReplicationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true})]})).s("AmazonS3","PutBucketReplication",{}).n("S3Client","PutBucketReplicationCommand").sc(K.PutBucketReplication$).build()){}class PutBucketRequestPaymentCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true})]})).s("AmazonS3","PutBucketRequestPayment",{}).n("S3Client","PutBucketRequestPaymentCommand").sc(K.PutBucketRequestPayment$).build()){}class PutBucketTaggingCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true})]})).s("AmazonS3","PutBucketTagging",{}).n("S3Client","PutBucketTaggingCommand").sc(K.PutBucketTagging$).build()){}class PutBucketVersioningCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true})]})).s("AmazonS3","PutBucketVersioning",{}).n("S3Client","PutBucketVersioningCommand").sc(K.PutBucketVersioning$).build()){}class PutBucketWebsiteCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true})]})).s("AmazonS3","PutBucketWebsite",{}).n("S3Client","PutBucketWebsiteCommand").sc(K.PutBucketWebsite$).build()){}class PutObjectAclCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true}),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","PutObjectAcl",{}).n("S3Client","PutObjectAclCommand").sc(K.PutObjectAcl$).build()){}class PutObjectCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:false}),m.getCheckContentLengthHeaderPlugin(o),m.getThrow200ExceptionsPlugin(o),X.getSsecPlugin(o)]})).s("AmazonS3","PutObject",{}).n("S3Client","PutObjectCommand").sc(K.PutObject$).build()){}class PutObjectLegalHoldCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true}),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","PutObjectLegalHold",{}).n("S3Client","PutObjectLegalHoldCommand").sc(K.PutObjectLegalHold$).build()){}class PutObjectLockConfigurationCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true}),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","PutObjectLockConfiguration",{}).n("S3Client","PutObjectLockConfigurationCommand").sc(K.PutObjectLockConfiguration$).build()){}class PutObjectRetentionCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true}),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","PutObjectRetention",{}).n("S3Client","PutObjectRetentionCommand").sc(K.PutObjectRetention$).build()){}class PutObjectTaggingCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true}),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","PutObjectTagging",{}).n("S3Client","PutObjectTaggingCommand").sc(K.PutObjectTagging$).build()){}class PutPublicAccessBlockCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true})]})).s("AmazonS3","PutPublicAccessBlock",{}).n("S3Client","PutPublicAccessBlockCommand").sc(K.PutPublicAccessBlock$).build()){}class RenameObjectCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","RenameObject",{}).n("S3Client","RenameObjectCommand").sc(K.RenameObject$).build()){}class RestoreObjectCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:false}),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","RestoreObject",{}).n("S3Client","RestoreObjectCommand").sc(K.RestoreObject$).build()){}class SelectObjectContentCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),X.getSsecPlugin(o)]})).s("AmazonS3","SelectObjectContent",{eventStream:{output:true}}).n("S3Client","SelectObjectContentCommand").sc(K.SelectObjectContent$).build()){}class UpdateBucketMetadataInventoryTableConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true})]})).s("AmazonS3","UpdateBucketMetadataInventoryTableConfiguration",{}).n("S3Client","UpdateBucketMetadataInventoryTableConfigurationCommand").sc(K.UpdateBucketMetadataInventoryTableConfiguration$).build()){}class UpdateBucketMetadataJournalTableConfigurationCommand extends(h.Command.classBuilder().ep({...Z,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true})]})).s("AmazonS3","UpdateBucketMetadataJournalTableConfiguration",{}).n("S3Client","UpdateBucketMetadataJournalTableConfigurationCommand").sc(K.UpdateBucketMetadataJournalTableConfiguration$).build()){}class UpdateObjectEncryptionCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:true}),m.getThrow200ExceptionsPlugin(o)]})).s("AmazonS3","UpdateObjectEncryption",{}).n("S3Client","UpdateObjectEncryptionCommand").sc(K.UpdateObjectEncryption$).build()){}class UploadPartCommand extends(h.Command.classBuilder().ep({...Z,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),d.getFlexibleChecksumsPlugin(o,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:false}),m.getThrow200ExceptionsPlugin(o),X.getSsecPlugin(o)]})).s("AmazonS3","UploadPart",{}).n("S3Client","UploadPartCommand").sc(K.UploadPart$).build()){}class UploadPartCopyCommand extends(h.Command.classBuilder().ep({...Z,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:true},Bucket:{type:"contextParams",name:"Bucket"}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions()),m.getThrow200ExceptionsPlugin(o),X.getSsecPlugin(o)]})).s("AmazonS3","UploadPartCopy",{}).n("S3Client","UploadPartCopyCommand").sc(K.UploadPartCopy$).build()){}class WriteGetObjectResponseCommand extends(h.Command.classBuilder().ep({...Z,UseObjectLambdaEndpoint:{type:"staticContextParams",value:true}}).m((function(e,t,o,i){return[_.getEndpointPlugin(o,e.getEndpointParameterInstructions())]})).s("AmazonS3","WriteGetObjectResponse",{}).n("S3Client","WriteGetObjectResponseCommand").sc(K.WriteGetObjectResponse$).build()){}const ee=f.createPaginator(S3Client,ListBucketsCommand,"ContinuationToken","ContinuationToken","MaxBuckets");const te=f.createPaginator(S3Client,ListDirectoryBucketsCommand,"ContinuationToken","ContinuationToken","MaxDirectoryBuckets");const ne=f.createPaginator(S3Client,ListObjectsV2Command,"ContinuationToken","NextContinuationToken","MaxKeys");const re=f.createPaginator(S3Client,ListPartsCommand,"PartNumberMarker","NextPartNumberMarker","MaxParts");const checkState$3=async(e,t)=>{let o;try{let i=await e.send(new HeadBucketCommand(t));o=i;return{state:h.WaiterState.SUCCESS,reason:o}}catch(e){o=e;if(e.name==="NotFound"){return{state:h.WaiterState.RETRY,reason:o}}}return{state:h.WaiterState.RETRY,reason:o}};const waitForBucketExists=async(e,t)=>{const o={minDelay:5,maxDelay:120};return h.createWaiter({...o,...e},t,checkState$3)};const waitUntilBucketExists=async(e,t)=>{const o={minDelay:5,maxDelay:120};const i=await h.createWaiter({...o,...e},t,checkState$3);return h.checkExceptions(i)};const checkState$2=async(e,t)=>{let o;try{let i=await e.send(new HeadBucketCommand(t));o=i}catch(e){o=e;if(e.name==="NotFound"){return{state:h.WaiterState.SUCCESS,reason:o}}}return{state:h.WaiterState.RETRY,reason:o}};const waitForBucketNotExists=async(e,t)=>{const o={minDelay:5,maxDelay:120};return h.createWaiter({...o,...e},t,checkState$2)};const waitUntilBucketNotExists=async(e,t)=>{const o={minDelay:5,maxDelay:120};const i=await h.createWaiter({...o,...e},t,checkState$2);return h.checkExceptions(i)};const checkState$1=async(e,t)=>{let o;try{let i=await e.send(new HeadObjectCommand(t));o=i;return{state:h.WaiterState.SUCCESS,reason:o}}catch(e){o=e;if(e.name==="NotFound"){return{state:h.WaiterState.RETRY,reason:o}}}return{state:h.WaiterState.RETRY,reason:o}};const waitForObjectExists=async(e,t)=>{const o={minDelay:5,maxDelay:120};return h.createWaiter({...o,...e},t,checkState$1)};const waitUntilObjectExists=async(e,t)=>{const o={minDelay:5,maxDelay:120};const i=await h.createWaiter({...o,...e},t,checkState$1);return h.checkExceptions(i)};const checkState=async(e,t)=>{let o;try{let i=await e.send(new HeadObjectCommand(t));o=i}catch(e){o=e;if(e.name==="NotFound"){return{state:h.WaiterState.SUCCESS,reason:o}}}return{state:h.WaiterState.RETRY,reason:o}};const waitForObjectNotExists=async(e,t)=>{const o={minDelay:5,maxDelay:120};return h.createWaiter({...o,...e},t,checkState)};const waitUntilObjectNotExists=async(e,t)=>{const o={minDelay:5,maxDelay:120};const i=await h.createWaiter({...o,...e},t,checkState);return h.checkExceptions(i)};const oe={AbortMultipartUploadCommand:AbortMultipartUploadCommand,CompleteMultipartUploadCommand:CompleteMultipartUploadCommand,CopyObjectCommand:CopyObjectCommand,CreateBucketCommand:CreateBucketCommand,CreateBucketMetadataConfigurationCommand:CreateBucketMetadataConfigurationCommand,CreateBucketMetadataTableConfigurationCommand:CreateBucketMetadataTableConfigurationCommand,CreateMultipartUploadCommand:CreateMultipartUploadCommand,CreateSessionCommand:CreateSessionCommand,DeleteBucketCommand:DeleteBucketCommand,DeleteBucketAnalyticsConfigurationCommand:DeleteBucketAnalyticsConfigurationCommand,DeleteBucketCorsCommand:DeleteBucketCorsCommand,DeleteBucketEncryptionCommand:DeleteBucketEncryptionCommand,DeleteBucketIntelligentTieringConfigurationCommand:DeleteBucketIntelligentTieringConfigurationCommand,DeleteBucketInventoryConfigurationCommand:DeleteBucketInventoryConfigurationCommand,DeleteBucketLifecycleCommand:DeleteBucketLifecycleCommand,DeleteBucketMetadataConfigurationCommand:DeleteBucketMetadataConfigurationCommand,DeleteBucketMetadataTableConfigurationCommand:DeleteBucketMetadataTableConfigurationCommand,DeleteBucketMetricsConfigurationCommand:DeleteBucketMetricsConfigurationCommand,DeleteBucketOwnershipControlsCommand:DeleteBucketOwnershipControlsCommand,DeleteBucketPolicyCommand:DeleteBucketPolicyCommand,DeleteBucketReplicationCommand:DeleteBucketReplicationCommand,DeleteBucketTaggingCommand:DeleteBucketTaggingCommand,DeleteBucketWebsiteCommand:DeleteBucketWebsiteCommand,DeleteObjectCommand:DeleteObjectCommand,DeleteObjectsCommand:DeleteObjectsCommand,DeleteObjectTaggingCommand:DeleteObjectTaggingCommand,DeletePublicAccessBlockCommand:DeletePublicAccessBlockCommand,GetBucketAbacCommand:GetBucketAbacCommand,GetBucketAccelerateConfigurationCommand:GetBucketAccelerateConfigurationCommand,GetBucketAclCommand:GetBucketAclCommand,GetBucketAnalyticsConfigurationCommand:GetBucketAnalyticsConfigurationCommand,GetBucketCorsCommand:GetBucketCorsCommand,GetBucketEncryptionCommand:GetBucketEncryptionCommand,GetBucketIntelligentTieringConfigurationCommand:GetBucketIntelligentTieringConfigurationCommand,GetBucketInventoryConfigurationCommand:GetBucketInventoryConfigurationCommand,GetBucketLifecycleConfigurationCommand:GetBucketLifecycleConfigurationCommand,GetBucketLocationCommand:GetBucketLocationCommand,GetBucketLoggingCommand:GetBucketLoggingCommand,GetBucketMetadataConfigurationCommand:GetBucketMetadataConfigurationCommand,GetBucketMetadataTableConfigurationCommand:GetBucketMetadataTableConfigurationCommand,GetBucketMetricsConfigurationCommand:GetBucketMetricsConfigurationCommand,GetBucketNotificationConfigurationCommand:GetBucketNotificationConfigurationCommand,GetBucketOwnershipControlsCommand:GetBucketOwnershipControlsCommand,GetBucketPolicyCommand:GetBucketPolicyCommand,GetBucketPolicyStatusCommand:GetBucketPolicyStatusCommand,GetBucketReplicationCommand:GetBucketReplicationCommand,GetBucketRequestPaymentCommand:GetBucketRequestPaymentCommand,GetBucketTaggingCommand:GetBucketTaggingCommand,GetBucketVersioningCommand:GetBucketVersioningCommand,GetBucketWebsiteCommand:GetBucketWebsiteCommand,GetObjectCommand:GetObjectCommand,GetObjectAclCommand:GetObjectAclCommand,GetObjectAttributesCommand:GetObjectAttributesCommand,GetObjectLegalHoldCommand:GetObjectLegalHoldCommand,GetObjectLockConfigurationCommand:GetObjectLockConfigurationCommand,GetObjectRetentionCommand:GetObjectRetentionCommand,GetObjectTaggingCommand:GetObjectTaggingCommand,GetObjectTorrentCommand:GetObjectTorrentCommand,GetPublicAccessBlockCommand:GetPublicAccessBlockCommand,HeadBucketCommand:HeadBucketCommand,HeadObjectCommand:HeadObjectCommand,ListBucketAnalyticsConfigurationsCommand:ListBucketAnalyticsConfigurationsCommand,ListBucketIntelligentTieringConfigurationsCommand:ListBucketIntelligentTieringConfigurationsCommand,ListBucketInventoryConfigurationsCommand:ListBucketInventoryConfigurationsCommand,ListBucketMetricsConfigurationsCommand:ListBucketMetricsConfigurationsCommand,ListBucketsCommand:ListBucketsCommand,ListDirectoryBucketsCommand:ListDirectoryBucketsCommand,ListMultipartUploadsCommand:ListMultipartUploadsCommand,ListObjectsCommand:ListObjectsCommand,ListObjectsV2Command:ListObjectsV2Command,ListObjectVersionsCommand:ListObjectVersionsCommand,ListPartsCommand:ListPartsCommand,PutBucketAbacCommand:PutBucketAbacCommand,PutBucketAccelerateConfigurationCommand:PutBucketAccelerateConfigurationCommand,PutBucketAclCommand:PutBucketAclCommand,PutBucketAnalyticsConfigurationCommand:PutBucketAnalyticsConfigurationCommand,PutBucketCorsCommand:PutBucketCorsCommand,PutBucketEncryptionCommand:PutBucketEncryptionCommand,PutBucketIntelligentTieringConfigurationCommand:PutBucketIntelligentTieringConfigurationCommand,PutBucketInventoryConfigurationCommand:PutBucketInventoryConfigurationCommand,PutBucketLifecycleConfigurationCommand:PutBucketLifecycleConfigurationCommand,PutBucketLoggingCommand:PutBucketLoggingCommand,PutBucketMetricsConfigurationCommand:PutBucketMetricsConfigurationCommand,PutBucketNotificationConfigurationCommand:PutBucketNotificationConfigurationCommand,PutBucketOwnershipControlsCommand:PutBucketOwnershipControlsCommand,PutBucketPolicyCommand:PutBucketPolicyCommand,PutBucketReplicationCommand:PutBucketReplicationCommand,PutBucketRequestPaymentCommand:PutBucketRequestPaymentCommand,PutBucketTaggingCommand:PutBucketTaggingCommand,PutBucketVersioningCommand:PutBucketVersioningCommand,PutBucketWebsiteCommand:PutBucketWebsiteCommand,PutObjectCommand:PutObjectCommand,PutObjectAclCommand:PutObjectAclCommand,PutObjectLegalHoldCommand:PutObjectLegalHoldCommand,PutObjectLockConfigurationCommand:PutObjectLockConfigurationCommand,PutObjectRetentionCommand:PutObjectRetentionCommand,PutObjectTaggingCommand:PutObjectTaggingCommand,PutPublicAccessBlockCommand:PutPublicAccessBlockCommand,RenameObjectCommand:RenameObjectCommand,RestoreObjectCommand:RestoreObjectCommand,SelectObjectContentCommand:SelectObjectContentCommand,UpdateBucketMetadataInventoryTableConfigurationCommand:UpdateBucketMetadataInventoryTableConfigurationCommand,UpdateBucketMetadataJournalTableConfigurationCommand:UpdateBucketMetadataJournalTableConfigurationCommand,UpdateObjectEncryptionCommand:UpdateObjectEncryptionCommand,UploadPartCommand:UploadPartCommand,UploadPartCopyCommand:UploadPartCopyCommand,WriteGetObjectResponseCommand:WriteGetObjectResponseCommand};const ie={paginateListBuckets:ee,paginateListDirectoryBuckets:te,paginateListObjectsV2:ne,paginateListParts:re};const se={waitUntilBucketExists:waitUntilBucketExists,waitUntilBucketNotExists:waitUntilBucketNotExists,waitUntilObjectExists:waitUntilObjectExists,waitUntilObjectNotExists:waitUntilObjectNotExists};class S3 extends S3Client{}h.createAggregatedClient(oe,S3,{paginators:ie,waiters:se});const ae={Disabled:"Disabled",Enabled:"Enabled"};const ce={requester:"requester"};const le={requester:"requester"};const ue={Enabled:"Enabled",Suspended:"Suspended"};const de={AmazonCustomerByEmail:"AmazonCustomerByEmail",CanonicalUser:"CanonicalUser",Group:"Group"};const pe={FULL_CONTROL:"FULL_CONTROL",READ:"READ",READ_ACP:"READ_ACP",WRITE:"WRITE",WRITE_ACP:"WRITE_ACP"};const me={Destination:"Destination"};const fe={COMPOSITE:"COMPOSITE",FULL_OBJECT:"FULL_OBJECT"};const he={AES256:"AES256",aws_fsx:"aws:fsx",aws_kms:"aws:kms",aws_kms_dsse:"aws:kms:dsse"};const ge={authenticated_read:"authenticated-read",aws_exec_read:"aws-exec-read",bucket_owner_full_control:"bucket-owner-full-control",bucket_owner_read:"bucket-owner-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"};const ye={CRC32:"CRC32",CRC32C:"CRC32C",CRC64NVME:"CRC64NVME",MD5:"MD5",SHA1:"SHA1",SHA256:"SHA256",SHA512:"SHA512",XXHASH128:"XXHASH128",XXHASH3:"XXHASH3",XXHASH64:"XXHASH64"};const be={COPY:"COPY",REPLACE:"REPLACE"};const Se={OFF:"OFF",ON:"ON"};const Ce={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"};const Ee={DEEP_ARCHIVE:"DEEP_ARCHIVE",EXPRESS_ONEZONE:"EXPRESS_ONEZONE",FSX_ONTAP:"FSX_ONTAP",FSX_OPENZFS:"FSX_OPENZFS",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"};const xe={COPY:"COPY",REPLACE:"REPLACE"};const Pe={authenticated_read:"authenticated-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"};const ve={ACCOUNT_REGIONAL:"account-regional",GLOBAL:"global"};const Te={SingleAvailabilityZone:"SingleAvailabilityZone",SingleLocalZone:"SingleLocalZone"};const Re={Directory:"Directory"};const we={AvailabilityZone:"AvailabilityZone",LocalZone:"LocalZone"};const Ne={EU:"EU",af_south_1:"af-south-1",ap_east_1:"ap-east-1",ap_east_2:"ap-east-2",ap_northeast_1:"ap-northeast-1",ap_northeast_2:"ap-northeast-2",ap_northeast_3:"ap-northeast-3",ap_south_1:"ap-south-1",ap_south_2:"ap-south-2",ap_southeast_1:"ap-southeast-1",ap_southeast_2:"ap-southeast-2",ap_southeast_3:"ap-southeast-3",ap_southeast_4:"ap-southeast-4",ap_southeast_5:"ap-southeast-5",ap_southeast_6:"ap-southeast-6",ap_southeast_7:"ap-southeast-7",ca_central_1:"ca-central-1",ca_west_1:"ca-west-1",cn_north_1:"cn-north-1",cn_northwest_1:"cn-northwest-1",eu_central_1:"eu-central-1",eu_central_2:"eu-central-2",eu_north_1:"eu-north-1",eu_south_1:"eu-south-1",eu_south_2:"eu-south-2",eu_west_1:"eu-west-1",eu_west_2:"eu-west-2",eu_west_3:"eu-west-3",il_central_1:"il-central-1",me_central_1:"me-central-1",me_south_1:"me-south-1",mx_central_1:"mx-central-1",sa_east_1:"sa-east-1",us_east_2:"us-east-2",us_gov_east_1:"us-gov-east-1",us_gov_west_1:"us-gov-west-1",us_west_1:"us-west-1",us_west_2:"us-west-2"};const Oe={BucketOwnerEnforced:"BucketOwnerEnforced",BucketOwnerPreferred:"BucketOwnerPreferred",ObjectWriter:"ObjectWriter"};const ke={DISABLED:"DISABLED",ENABLED:"ENABLED"};const Ae={AES256:"AES256",aws_kms:"aws:kms"};const Ie={DISABLED:"DISABLED",ENABLED:"ENABLED"};const _e={ReadOnly:"ReadOnly",ReadWrite:"ReadWrite"};const Be={CSV:"CSV"};const De={V_1:"V_1"};const Le={NONE:"NONE",SSE_C:"SSE-C"};const $e={Disabled:"Disabled",Enabled:"Enabled"};const Me={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"};const Ue={CSV:"CSV",ORC:"ORC",Parquet:"Parquet"};const je={All:"All",Current:"Current"};const ze={BucketKeyStatus:"BucketKeyStatus",ChecksumAlgorithm:"ChecksumAlgorithm",ETag:"ETag",EncryptionStatus:"EncryptionStatus",IntelligentTieringAccessTier:"IntelligentTieringAccessTier",IsMultipartUploaded:"IsMultipartUploaded",LastModifiedDate:"LastModifiedDate",LifecycleExpirationDate:"LifecycleExpirationDate",ObjectAccessControlList:"ObjectAccessControlList",ObjectLockLegalHoldStatus:"ObjectLockLegalHoldStatus",ObjectLockMode:"ObjectLockMode",ObjectLockRetainUntilDate:"ObjectLockRetainUntilDate",ObjectOwner:"ObjectOwner",ReplicationStatus:"ReplicationStatus",Size:"Size",StorageClass:"StorageClass"};const qe={Daily:"Daily",Weekly:"Weekly"};const He={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",STANDARD_IA:"STANDARD_IA"};const Fe={Disabled:"Disabled",Enabled:"Enabled"};const Ge={all_storage_classes_128K:"all_storage_classes_128K",varies_by_storage_class:"varies_by_storage_class"};const Ve={FULL_CONTROL:"FULL_CONTROL",READ:"READ",WRITE:"WRITE"};const Ke={DeliveryTime:"DeliveryTime",EventTime:"EventTime"};const We={aws:"aws",customer:"customer"};const Xe={s3_IntelligentTiering:"s3:IntelligentTiering",s3_LifecycleExpiration_:"s3:LifecycleExpiration:*",s3_LifecycleExpiration_Delete:"s3:LifecycleExpiration:Delete",s3_LifecycleExpiration_DeleteMarkerCreated:"s3:LifecycleExpiration:DeleteMarkerCreated",s3_LifecycleTransition:"s3:LifecycleTransition",s3_ObjectAcl_Put:"s3:ObjectAcl:Put",s3_ObjectCreated_:"s3:ObjectCreated:*",s3_ObjectCreated_CompleteMultipartUpload:"s3:ObjectCreated:CompleteMultipartUpload",s3_ObjectCreated_Copy:"s3:ObjectCreated:Copy",s3_ObjectCreated_Post:"s3:ObjectCreated:Post",s3_ObjectCreated_Put:"s3:ObjectCreated:Put",s3_ObjectRemoved_:"s3:ObjectRemoved:*",s3_ObjectRemoved_Delete:"s3:ObjectRemoved:Delete",s3_ObjectRemoved_DeleteMarkerCreated:"s3:ObjectRemoved:DeleteMarkerCreated",s3_ObjectRestore_:"s3:ObjectRestore:*",s3_ObjectRestore_Completed:"s3:ObjectRestore:Completed",s3_ObjectRestore_Delete:"s3:ObjectRestore:Delete",s3_ObjectRestore_Post:"s3:ObjectRestore:Post",s3_ObjectTagging_:"s3:ObjectTagging:*",s3_ObjectTagging_Delete:"s3:ObjectTagging:Delete",s3_ObjectTagging_Put:"s3:ObjectTagging:Put",s3_ReducedRedundancyLostObject:"s3:ReducedRedundancyLostObject",s3_Replication_:"s3:Replication:*",s3_Replication_OperationFailedReplication:"s3:Replication:OperationFailedReplication",s3_Replication_OperationMissedThreshold:"s3:Replication:OperationMissedThreshold",s3_Replication_OperationNotTracked:"s3:Replication:OperationNotTracked",s3_Replication_OperationReplicatedAfterThreshold:"s3:Replication:OperationReplicatedAfterThreshold"};const Qe={prefix:"prefix",suffix:"suffix"};const Ye={Disabled:"Disabled",Enabled:"Enabled"};const Je={Disabled:"Disabled",Enabled:"Enabled"};const Ze={Disabled:"Disabled",Enabled:"Enabled"};const ot={Disabled:"Disabled",Enabled:"Enabled"};const yt={Disabled:"Disabled",Enabled:"Enabled"};const Rt={Disabled:"Disabled",Enabled:"Enabled"};const zt={Disabled:"Disabled",Enabled:"Enabled"};const qt={BucketOwner:"BucketOwner",Requester:"Requester"};const Ht={Disabled:"Disabled",Enabled:"Enabled"};const Kt={Enabled:"Enabled",Suspended:"Suspended"};const Xt={http:"http",https:"https"};const Qt={COMPLETE:"COMPLETE",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",REPLICA:"REPLICA"};const Yt={ENABLED:"ENABLED"};const Jt={CHECKSUM:"Checksum",ETAG:"ETag",OBJECT_PARTS:"ObjectParts",OBJECT_SIZE:"ObjectSize",STORAGE_CLASS:"StorageClass"};const Zt={Enabled:"Enabled"};const en={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"};const tn={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"};const nn={url:"url"};const rn={DEEP_ARCHIVE:"DEEP_ARCHIVE",EXPRESS_ONEZONE:"EXPRESS_ONEZONE",FSX_ONTAP:"FSX_ONTAP",FSX_OPENZFS:"FSX_OPENZFS",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"};const on={RESTORE_STATUS:"RestoreStatus"};const sn={STANDARD:"STANDARD"};const an={Disabled:"Disabled",Enabled:"Enabled"};const cn={Bulk:"Bulk",Expedited:"Expedited",Standard:"Standard"};const ln={SQL:"SQL"};const un={BZIP2:"BZIP2",GZIP:"GZIP",NONE:"NONE"};const dn={IGNORE:"IGNORE",NONE:"NONE",USE:"USE"};const pn={DOCUMENT:"DOCUMENT",LINES:"LINES"};const mn={ALWAYS:"ALWAYS",ASNEEDED:"ASNEEDED"};const hn={SELECT:"SELECT"};t.$Command=h.Command;t.__Client=h.Client;t.S3ServiceException=J.S3ServiceException;t.AbortMultipartUploadCommand=AbortMultipartUploadCommand;t.AnalyticsS3ExportFileFormat=Be;t.ArchiveStatus=tn;t.BucketAbacStatus=ae;t.BucketAccelerateStatus=ue;t.BucketCannedACL=Pe;t.BucketLocationConstraint=Ne;t.BucketLogsPermission=Ve;t.BucketNamespace=ve;t.BucketType=Re;t.BucketVersioningStatus=Kt;t.ChecksumAlgorithm=ye;t.ChecksumMode=Yt;t.ChecksumType=fe;t.CompleteMultipartUploadCommand=CompleteMultipartUploadCommand;t.CompressionType=un;t.CopyObjectCommand=CopyObjectCommand;t.CreateBucketCommand=CreateBucketCommand;t.CreateBucketMetadataConfigurationCommand=CreateBucketMetadataConfigurationCommand;t.CreateBucketMetadataTableConfigurationCommand=CreateBucketMetadataTableConfigurationCommand;t.CreateMultipartUploadCommand=CreateMultipartUploadCommand;t.CreateSessionCommand=CreateSessionCommand;t.DataRedundancy=Te;t.DeleteBucketAnalyticsConfigurationCommand=DeleteBucketAnalyticsConfigurationCommand;t.DeleteBucketCommand=DeleteBucketCommand;t.DeleteBucketCorsCommand=DeleteBucketCorsCommand;t.DeleteBucketEncryptionCommand=DeleteBucketEncryptionCommand;t.DeleteBucketIntelligentTieringConfigurationCommand=DeleteBucketIntelligentTieringConfigurationCommand;t.DeleteBucketInventoryConfigurationCommand=DeleteBucketInventoryConfigurationCommand;t.DeleteBucketLifecycleCommand=DeleteBucketLifecycleCommand;t.DeleteBucketMetadataConfigurationCommand=DeleteBucketMetadataConfigurationCommand;t.DeleteBucketMetadataTableConfigurationCommand=DeleteBucketMetadataTableConfigurationCommand;t.DeleteBucketMetricsConfigurationCommand=DeleteBucketMetricsConfigurationCommand;t.DeleteBucketOwnershipControlsCommand=DeleteBucketOwnershipControlsCommand;t.DeleteBucketPolicyCommand=DeleteBucketPolicyCommand;t.DeleteBucketReplicationCommand=DeleteBucketReplicationCommand;t.DeleteBucketTaggingCommand=DeleteBucketTaggingCommand;t.DeleteBucketWebsiteCommand=DeleteBucketWebsiteCommand;t.DeleteMarkerReplicationStatus=Ye;t.DeleteObjectCommand=DeleteObjectCommand;t.DeleteObjectTaggingCommand=DeleteObjectTaggingCommand;t.DeleteObjectsCommand=DeleteObjectsCommand;t.DeletePublicAccessBlockCommand=DeletePublicAccessBlockCommand;t.EncodingType=nn;t.EncryptionType=Le;t.Event=Xe;t.ExistingObjectReplicationStatus=ot;t.ExpirationState=Ie;t.ExpirationStatus=Fe;t.ExpressionType=ln;t.FileHeaderInfo=dn;t.FilterRuleName=Qe;t.GetBucketAbacCommand=GetBucketAbacCommand;t.GetBucketAccelerateConfigurationCommand=GetBucketAccelerateConfigurationCommand;t.GetBucketAclCommand=GetBucketAclCommand;t.GetBucketAnalyticsConfigurationCommand=GetBucketAnalyticsConfigurationCommand;t.GetBucketCorsCommand=GetBucketCorsCommand;t.GetBucketEncryptionCommand=GetBucketEncryptionCommand;t.GetBucketIntelligentTieringConfigurationCommand=GetBucketIntelligentTieringConfigurationCommand;t.GetBucketInventoryConfigurationCommand=GetBucketInventoryConfigurationCommand;t.GetBucketLifecycleConfigurationCommand=GetBucketLifecycleConfigurationCommand;t.GetBucketLocationCommand=GetBucketLocationCommand;t.GetBucketLoggingCommand=GetBucketLoggingCommand;t.GetBucketMetadataConfigurationCommand=GetBucketMetadataConfigurationCommand;t.GetBucketMetadataTableConfigurationCommand=GetBucketMetadataTableConfigurationCommand;t.GetBucketMetricsConfigurationCommand=GetBucketMetricsConfigurationCommand;t.GetBucketNotificationConfigurationCommand=GetBucketNotificationConfigurationCommand;t.GetBucketOwnershipControlsCommand=GetBucketOwnershipControlsCommand;t.GetBucketPolicyCommand=GetBucketPolicyCommand;t.GetBucketPolicyStatusCommand=GetBucketPolicyStatusCommand;t.GetBucketReplicationCommand=GetBucketReplicationCommand;t.GetBucketRequestPaymentCommand=GetBucketRequestPaymentCommand;t.GetBucketTaggingCommand=GetBucketTaggingCommand;t.GetBucketVersioningCommand=GetBucketVersioningCommand;t.GetBucketWebsiteCommand=GetBucketWebsiteCommand;t.GetObjectAclCommand=GetObjectAclCommand;t.GetObjectAttributesCommand=GetObjectAttributesCommand;t.GetObjectCommand=GetObjectCommand;t.GetObjectLegalHoldCommand=GetObjectLegalHoldCommand;t.GetObjectLockConfigurationCommand=GetObjectLockConfigurationCommand;t.GetObjectRetentionCommand=GetObjectRetentionCommand;t.GetObjectTaggingCommand=GetObjectTaggingCommand;t.GetObjectTorrentCommand=GetObjectTorrentCommand;t.GetPublicAccessBlockCommand=GetPublicAccessBlockCommand;t.HeadBucketCommand=HeadBucketCommand;t.HeadObjectCommand=HeadObjectCommand;t.IntelligentTieringAccessTier=Me;t.IntelligentTieringStatus=$e;t.InventoryConfigurationState=ke;t.InventoryFormat=Ue;t.InventoryFrequency=qe;t.InventoryIncludedObjectVersions=je;t.InventoryOptionalField=ze;t.JSONType=pn;t.ListBucketAnalyticsConfigurationsCommand=ListBucketAnalyticsConfigurationsCommand;t.ListBucketIntelligentTieringConfigurationsCommand=ListBucketIntelligentTieringConfigurationsCommand;t.ListBucketInventoryConfigurationsCommand=ListBucketInventoryConfigurationsCommand;t.ListBucketMetricsConfigurationsCommand=ListBucketMetricsConfigurationsCommand;t.ListBucketsCommand=ListBucketsCommand;t.ListDirectoryBucketsCommand=ListDirectoryBucketsCommand;t.ListMultipartUploadsCommand=ListMultipartUploadsCommand;t.ListObjectVersionsCommand=ListObjectVersionsCommand;t.ListObjectsCommand=ListObjectsCommand;t.ListObjectsV2Command=ListObjectsV2Command;t.ListPartsCommand=ListPartsCommand;t.LocationType=we;t.MFADelete=an;t.MFADeleteStatus=Ht;t.MetadataDirective=be;t.MetricsStatus=Je;t.ObjectAttributes=Jt;t.ObjectCannedACL=ge;t.ObjectLockEnabled=Zt;t.ObjectLockLegalHoldStatus=Se;t.ObjectLockMode=Ce;t.ObjectLockRetentionMode=en;t.ObjectOwnership=Oe;t.ObjectStorageClass=rn;t.ObjectVersionStorageClass=sn;t.OptionalObjectAttributes=on;t.OwnerOverride=me;t.PartitionDateSource=Ke;t.Payer=qt;t.Permission=pe;t.Protocol=Xt;t.PutBucketAbacCommand=PutBucketAbacCommand;t.PutBucketAccelerateConfigurationCommand=PutBucketAccelerateConfigurationCommand;t.PutBucketAclCommand=PutBucketAclCommand;t.PutBucketAnalyticsConfigurationCommand=PutBucketAnalyticsConfigurationCommand;t.PutBucketCorsCommand=PutBucketCorsCommand;t.PutBucketEncryptionCommand=PutBucketEncryptionCommand;t.PutBucketIntelligentTieringConfigurationCommand=PutBucketIntelligentTieringConfigurationCommand;t.PutBucketInventoryConfigurationCommand=PutBucketInventoryConfigurationCommand;t.PutBucketLifecycleConfigurationCommand=PutBucketLifecycleConfigurationCommand;t.PutBucketLoggingCommand=PutBucketLoggingCommand;t.PutBucketMetricsConfigurationCommand=PutBucketMetricsConfigurationCommand;t.PutBucketNotificationConfigurationCommand=PutBucketNotificationConfigurationCommand;t.PutBucketOwnershipControlsCommand=PutBucketOwnershipControlsCommand;t.PutBucketPolicyCommand=PutBucketPolicyCommand;t.PutBucketReplicationCommand=PutBucketReplicationCommand;t.PutBucketRequestPaymentCommand=PutBucketRequestPaymentCommand;t.PutBucketTaggingCommand=PutBucketTaggingCommand;t.PutBucketVersioningCommand=PutBucketVersioningCommand;t.PutBucketWebsiteCommand=PutBucketWebsiteCommand;t.PutObjectAclCommand=PutObjectAclCommand;t.PutObjectCommand=PutObjectCommand;t.PutObjectLegalHoldCommand=PutObjectLegalHoldCommand;t.PutObjectLockConfigurationCommand=PutObjectLockConfigurationCommand;t.PutObjectRetentionCommand=PutObjectRetentionCommand;t.PutObjectTaggingCommand=PutObjectTaggingCommand;t.PutPublicAccessBlockCommand=PutPublicAccessBlockCommand;t.QuoteFields=mn;t.RenameObjectCommand=RenameObjectCommand;t.ReplicaModificationsStatus=yt;t.ReplicationRuleStatus=zt;t.ReplicationStatus=Qt;t.ReplicationTimeStatus=Ze;t.RequestCharged=ce;t.RequestPayer=le;t.RestoreObjectCommand=RestoreObjectCommand;t.RestoreRequestType=hn;t.S3=S3;t.S3Client=S3Client;t.S3TablesBucketType=We;t.SelectObjectContentCommand=SelectObjectContentCommand;t.ServerSideEncryption=he;t.SessionMode=_e;t.SseKmsEncryptedObjectsStatus=Rt;t.StorageClass=Ee;t.StorageClassAnalysisSchemaVersion=De;t.TableSseAlgorithm=Ae;t.TaggingDirective=xe;t.Tier=cn;t.TransitionDefaultMinimumObjectSize=Ge;t.TransitionStorageClass=He;t.Type=de;t.UpdateBucketMetadataInventoryTableConfigurationCommand=UpdateBucketMetadataInventoryTableConfigurationCommand;t.UpdateBucketMetadataJournalTableConfigurationCommand=UpdateBucketMetadataJournalTableConfigurationCommand;t.UpdateObjectEncryptionCommand=UpdateObjectEncryptionCommand;t.UploadPartCommand=UploadPartCommand;t.UploadPartCopyCommand=UploadPartCopyCommand;t.WriteGetObjectResponseCommand=WriteGetObjectResponseCommand;t.paginateListBuckets=ee;t.paginateListDirectoryBuckets=te;t.paginateListObjectsV2=ne;t.paginateListParts=re;t.waitForBucketExists=waitForBucketExists;t.waitForBucketNotExists=waitForBucketNotExists;t.waitForObjectExists=waitForObjectExists;t.waitForObjectNotExists=waitForObjectNotExists;t.waitUntilBucketExists=waitUntilBucketExists;t.waitUntilBucketNotExists=waitUntilBucketNotExists;t.waitUntilObjectExists=waitUntilObjectExists;t.waitUntilObjectNotExists=waitUntilObjectNotExists;Object.prototype.hasOwnProperty.call(K,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:K["__proto__"]});Object.keys(K).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=K[e]}));Object.prototype.hasOwnProperty.call(Y,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:Y["__proto__"]});Object.keys(Y).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=Y[e]}))},98354:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.S3ServiceException=t.__ServiceException=void 0;const i=o(92658);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return i.ServiceException}});class S3ServiceException extends i.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,S3ServiceException.prototype)}}t.S3ServiceException=S3ServiceException},80631:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ObjectAlreadyInActiveTierError=t.IdempotencyParameterMismatch=t.TooManyParts=t.InvalidWriteOffset=t.InvalidRequest=t.EncryptionTypeMismatch=t.NotFound=t.NoSuchKey=t.InvalidObjectState=t.NoSuchBucket=t.BucketAlreadyOwnedByYou=t.BucketAlreadyExists=t.ObjectNotInActiveTierError=t.AccessDenied=t.NoSuchUpload=void 0;const i=o(98354);class NoSuchUpload extends i.S3ServiceException{name="NoSuchUpload";$fault="client";constructor(e){super({name:"NoSuchUpload",$fault:"client",...e});Object.setPrototypeOf(this,NoSuchUpload.prototype)}}t.NoSuchUpload=NoSuchUpload;class AccessDenied extends i.S3ServiceException{name="AccessDenied";$fault="client";constructor(e){super({name:"AccessDenied",$fault:"client",...e});Object.setPrototypeOf(this,AccessDenied.prototype)}}t.AccessDenied=AccessDenied;class ObjectNotInActiveTierError extends i.S3ServiceException{name="ObjectNotInActiveTierError";$fault="client";constructor(e){super({name:"ObjectNotInActiveTierError",$fault:"client",...e});Object.setPrototypeOf(this,ObjectNotInActiveTierError.prototype)}}t.ObjectNotInActiveTierError=ObjectNotInActiveTierError;class BucketAlreadyExists extends i.S3ServiceException{name="BucketAlreadyExists";$fault="client";constructor(e){super({name:"BucketAlreadyExists",$fault:"client",...e});Object.setPrototypeOf(this,BucketAlreadyExists.prototype)}}t.BucketAlreadyExists=BucketAlreadyExists;class BucketAlreadyOwnedByYou extends i.S3ServiceException{name="BucketAlreadyOwnedByYou";$fault="client";constructor(e){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...e});Object.setPrototypeOf(this,BucketAlreadyOwnedByYou.prototype)}}t.BucketAlreadyOwnedByYou=BucketAlreadyOwnedByYou;class NoSuchBucket extends i.S3ServiceException{name="NoSuchBucket";$fault="client";constructor(e){super({name:"NoSuchBucket",$fault:"client",...e});Object.setPrototypeOf(this,NoSuchBucket.prototype)}}t.NoSuchBucket=NoSuchBucket;class InvalidObjectState extends i.S3ServiceException{name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(e){super({name:"InvalidObjectState",$fault:"client",...e});Object.setPrototypeOf(this,InvalidObjectState.prototype);this.StorageClass=e.StorageClass;this.AccessTier=e.AccessTier}}t.InvalidObjectState=InvalidObjectState;class NoSuchKey extends i.S3ServiceException{name="NoSuchKey";$fault="client";constructor(e){super({name:"NoSuchKey",$fault:"client",...e});Object.setPrototypeOf(this,NoSuchKey.prototype)}}t.NoSuchKey=NoSuchKey;class NotFound extends i.S3ServiceException{name="NotFound";$fault="client";constructor(e){super({name:"NotFound",$fault:"client",...e});Object.setPrototypeOf(this,NotFound.prototype)}}t.NotFound=NotFound;class EncryptionTypeMismatch extends i.S3ServiceException{name="EncryptionTypeMismatch";$fault="client";constructor(e){super({name:"EncryptionTypeMismatch",$fault:"client",...e});Object.setPrototypeOf(this,EncryptionTypeMismatch.prototype)}}t.EncryptionTypeMismatch=EncryptionTypeMismatch;class InvalidRequest extends i.S3ServiceException{name="InvalidRequest";$fault="client";constructor(e){super({name:"InvalidRequest",$fault:"client",...e});Object.setPrototypeOf(this,InvalidRequest.prototype)}}t.InvalidRequest=InvalidRequest;class InvalidWriteOffset extends i.S3ServiceException{name="InvalidWriteOffset";$fault="client";constructor(e){super({name:"InvalidWriteOffset",$fault:"client",...e});Object.setPrototypeOf(this,InvalidWriteOffset.prototype)}}t.InvalidWriteOffset=InvalidWriteOffset;class TooManyParts extends i.S3ServiceException{name="TooManyParts";$fault="client";constructor(e){super({name:"TooManyParts",$fault:"client",...e});Object.setPrototypeOf(this,TooManyParts.prototype)}}t.TooManyParts=TooManyParts;class IdempotencyParameterMismatch extends i.S3ServiceException{name="IdempotencyParameterMismatch";$fault="client";constructor(e){super({name:"IdempotencyParameterMismatch",$fault:"client",...e});Object.setPrototypeOf(this,IdempotencyParameterMismatch.prototype)}}t.IdempotencyParameterMismatch=IdempotencyParameterMismatch;class ObjectAlreadyInActiveTierError extends i.S3ServiceException{name="ObjectAlreadyInActiveTierError";$fault="client";constructor(e){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...e});Object.setPrototypeOf(this,ObjectAlreadyInActiveTierError.prototype)}}t.ObjectAlreadyInActiveTierError=ObjectAlreadyInActiveTierError},35745:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const i=o(61860);const a=i.__importDefault(o(27413));const d=o(5152);const m=o(97523);const f=o(5861);const h=o(26518);const P=o(29836);const _=o(77445);const L=o(99542);const U=o(92658);const j=o(47291);const H=o(56579);const V=o(23609);const K=o(92430);const W=o(61279);const X=o(74070);const getRuntimeConfig=e=>{(0,U.emitWarningIfUnsupportedVersion)(process.version);const t=(0,j.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(U.loadConfigsForDefaultMode);const o=(0,X.getRuntimeConfig)(e);(0,d.emitWarningIfUnsupportedVersion)(process.version);const i={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,j.loadConfig)(m.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,i),bodyLengthChecker:e?.bodyLengthChecker??K.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??f.defaultProvider,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,d.createDefaultUserAgentProvider)({serviceId:o.serviceId,clientVersion:a.default.version}),disableS3ExpressSessionAuth:e?.disableS3ExpressSessionAuth??(0,j.loadConfig)(_.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS,i),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??H.eventStreamSerdeProvider,maxAttempts:e?.maxAttempts??(0,j.loadConfig)(V.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),md5:e?.md5??K.Hash.bind(null,"md5"),region:e?.region??(0,j.loadConfig)(j.NODE_REGION_CONFIG_OPTIONS,{...j.NODE_REGION_CONFIG_FILE_OPTIONS,...i}),requestChecksumCalculation:e?.requestChecksumCalculation??(0,j.loadConfig)(P.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS,i),requestHandler:W.NodeHttpHandler.create(e?.requestHandler??defaultConfigProvider),responseChecksumValidation:e?.responseChecksumValidation??(0,j.loadConfig)(P.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS,i),retryMode:e?.retryMode??(0,j.loadConfig)({...V.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||V.DEFAULT_RETRY_MODE},e),sha1:e?.sha1??K.Hash.bind(null,"sha1"),sha256:e?.sha256??K.Hash.bind(null,"sha256"),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??(0,j.loadConfig)(m.NODE_SIGV4A_CONFIG_OPTIONS,i),streamCollector:e?.streamCollector??W.streamCollector,streamHasher:e?.streamHasher??L.readableStreamHasher,useArnRegion:e?.useArnRegion??(0,j.loadConfig)(h.NODE_USE_ARN_REGION_CONFIG_OPTIONS,i),useDualstackEndpoint:e?.useDualstackEndpoint??(0,j.loadConfig)(j.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,i),useFipsEndpoint:e?.useFipsEndpoint??(0,j.loadConfig)(j.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,i),userAgentAppId:e?.userAgentAppId??(0,j.loadConfig)(d.NODE_APP_ID_CONFIG_OPTIONS,i)}};t.getRuntimeConfig=getRuntimeConfig},74070:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const i=o(97523);const a=o(77445);const d=o(5785);const m=o(92658);const f=o(93422);const h=o(92430);const P=o(7168);const _=o(57526);const L=o(20091);const getRuntimeConfig=e=>({apiVersion:"2006-03-01",base64Decoder:e?.base64Decoder??h.fromBase64,base64Encoder:e?.base64Encoder??h.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??_.defaultEndpointResolver,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??h.getAwsChunkedEncodingStream,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??P.defaultS3HttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new i.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4a"),signer:new i.AwsSdkSigV4ASigner}],logger:e?.logger??new m.NoOpLogger,protocol:e?.protocol??a.S3RestXmlProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.s3",errorTypeRegistries:L.errorTypeRegistries,xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:e?.sdkStreamMixin??h.sdkStreamMixin,serviceId:e?.serviceId??"S3",signerConstructor:e?.signerConstructor??d.SignatureV4MultiRegion,signingEscapePath:e?.signingEscapePath??false,urlParser:e?.urlParser??f.parseUrl,useArnRegion:e?.useArnRegion??undefined,utf8Decoder:e?.utf8Decoder??h.fromUtf8,utf8Encoder:e?.utf8Encoder??h.toUtf8});t.getRuntimeConfig=getRuntimeConfig},20091:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreateBucketMetadataTableConfigurationRequest$=t.CreateBucketMetadataConfigurationRequest$=t.CreateBucketConfiguration$=t.CORSRule$=t.CORSConfiguration$=t.CopyPartResult$=t.CopyObjectResult$=t.CopyObjectRequest$=t.CopyObjectOutput$=t.ContinuationEvent$=t.Condition$=t.CompleteMultipartUploadRequest$=t.CompleteMultipartUploadOutput$=t.CompletedPart$=t.CompletedMultipartUpload$=t.CommonPrefix$=t.Checksum$=t.BucketLoggingStatus$=t.BucketLifecycleConfiguration$=t.BucketInfo$=t.Bucket$=t.BlockedEncryptionTypes$=t.AnalyticsS3BucketDestination$=t.AnalyticsExportDestination$=t.AnalyticsConfiguration$=t.AnalyticsAndOperator$=t.AccessControlTranslation$=t.AccessControlPolicy$=t.AccelerateConfiguration$=t.AbortMultipartUploadRequest$=t.AbortMultipartUploadOutput$=t.AbortIncompleteMultipartUpload$=t.AbacStatus$=t.errorTypeRegistries=t.TooManyParts$=t.ObjectNotInActiveTierError$=t.ObjectAlreadyInActiveTierError$=t.NotFound$=t.NoSuchUpload$=t.NoSuchKey$=t.NoSuchBucket$=t.InvalidWriteOffset$=t.InvalidRequest$=t.InvalidObjectState$=t.IdempotencyParameterMismatch$=t.EncryptionTypeMismatch$=t.BucketAlreadyOwnedByYou$=t.BucketAlreadyExists$=t.AccessDenied$=t.S3ServiceException$=void 0;t.GetBucketAccelerateConfigurationRequest$=t.GetBucketAccelerateConfigurationOutput$=t.GetBucketAbacRequest$=t.GetBucketAbacOutput$=t.FilterRule$=t.ExistingObjectReplication$=t.EventBridgeConfiguration$=t.ErrorDocument$=t.ErrorDetails$=t._Error$=t.EndEvent$=t.EncryptionConfiguration$=t.Encryption$=t.DestinationResult$=t.Destination$=t.DeletePublicAccessBlockRequest$=t.DeleteObjectTaggingRequest$=t.DeleteObjectTaggingOutput$=t.DeleteObjectsRequest$=t.DeleteObjectsOutput$=t.DeleteObjectRequest$=t.DeleteObjectOutput$=t.DeleteMarkerReplication$=t.DeleteMarkerEntry$=t.DeletedObject$=t.DeleteBucketWebsiteRequest$=t.DeleteBucketTaggingRequest$=t.DeleteBucketRequest$=t.DeleteBucketReplicationRequest$=t.DeleteBucketPolicyRequest$=t.DeleteBucketOwnershipControlsRequest$=t.DeleteBucketMetricsConfigurationRequest$=t.DeleteBucketMetadataTableConfigurationRequest$=t.DeleteBucketMetadataConfigurationRequest$=t.DeleteBucketLifecycleRequest$=t.DeleteBucketInventoryConfigurationRequest$=t.DeleteBucketIntelligentTieringConfigurationRequest$=t.DeleteBucketEncryptionRequest$=t.DeleteBucketCorsRequest$=t.DeleteBucketAnalyticsConfigurationRequest$=t.Delete$=t.DefaultRetention$=t.CSVOutput$=t.CSVInput$=t.CreateSessionRequest$=t.CreateSessionOutput$=t.CreateMultipartUploadRequest$=t.CreateMultipartUploadOutput$=t.CreateBucketRequest$=t.CreateBucketOutput$=void 0;t.GetObjectLegalHoldRequest$=t.GetObjectLegalHoldOutput$=t.GetObjectAttributesRequest$=t.GetObjectAttributesParts$=t.GetObjectAttributesOutput$=t.GetObjectAclRequest$=t.GetObjectAclOutput$=t.GetBucketWebsiteRequest$=t.GetBucketWebsiteOutput$=t.GetBucketVersioningRequest$=t.GetBucketVersioningOutput$=t.GetBucketTaggingRequest$=t.GetBucketTaggingOutput$=t.GetBucketRequestPaymentRequest$=t.GetBucketRequestPaymentOutput$=t.GetBucketReplicationRequest$=t.GetBucketReplicationOutput$=t.GetBucketPolicyStatusRequest$=t.GetBucketPolicyStatusOutput$=t.GetBucketPolicyRequest$=t.GetBucketPolicyOutput$=t.GetBucketOwnershipControlsRequest$=t.GetBucketOwnershipControlsOutput$=t.GetBucketNotificationConfigurationRequest$=t.GetBucketMetricsConfigurationRequest$=t.GetBucketMetricsConfigurationOutput$=t.GetBucketMetadataTableConfigurationResult$=t.GetBucketMetadataTableConfigurationRequest$=t.GetBucketMetadataTableConfigurationOutput$=t.GetBucketMetadataConfigurationResult$=t.GetBucketMetadataConfigurationRequest$=t.GetBucketMetadataConfigurationOutput$=t.GetBucketLoggingRequest$=t.GetBucketLoggingOutput$=t.GetBucketLocationRequest$=t.GetBucketLocationOutput$=t.GetBucketLifecycleConfigurationRequest$=t.GetBucketLifecycleConfigurationOutput$=t.GetBucketInventoryConfigurationRequest$=t.GetBucketInventoryConfigurationOutput$=t.GetBucketIntelligentTieringConfigurationRequest$=t.GetBucketIntelligentTieringConfigurationOutput$=t.GetBucketEncryptionRequest$=t.GetBucketEncryptionOutput$=t.GetBucketCorsRequest$=t.GetBucketCorsOutput$=t.GetBucketAnalyticsConfigurationRequest$=t.GetBucketAnalyticsConfigurationOutput$=t.GetBucketAclRequest$=t.GetBucketAclOutput$=void 0;t.ListBucketInventoryConfigurationsRequest$=t.ListBucketInventoryConfigurationsOutput$=t.ListBucketIntelligentTieringConfigurationsRequest$=t.ListBucketIntelligentTieringConfigurationsOutput$=t.ListBucketAnalyticsConfigurationsRequest$=t.ListBucketAnalyticsConfigurationsOutput$=t.LifecycleRuleFilter$=t.LifecycleRuleAndOperator$=t.LifecycleRule$=t.LifecycleExpiration$=t.LambdaFunctionConfiguration$=t.JSONOutput$=t.JSONInput$=t.JournalTableConfigurationUpdates$=t.JournalTableConfigurationResult$=t.JournalTableConfiguration$=t.InventoryTableConfigurationUpdates$=t.InventoryTableConfigurationResult$=t.InventoryTableConfiguration$=t.InventorySchedule$=t.InventoryS3BucketDestination$=t.InventoryFilter$=t.InventoryEncryption$=t.InventoryDestination$=t.InventoryConfiguration$=t.IntelligentTieringFilter$=t.IntelligentTieringConfiguration$=t.IntelligentTieringAndOperator$=t.InputSerialization$=t.Initiator$=t.IndexDocument$=t.HeadObjectRequest$=t.HeadObjectOutput$=t.HeadBucketRequest$=t.HeadBucketOutput$=t.Grantee$=t.Grant$=t.GlacierJobParameters$=t.GetPublicAccessBlockRequest$=t.GetPublicAccessBlockOutput$=t.GetObjectTorrentRequest$=t.GetObjectTorrentOutput$=t.GetObjectTaggingRequest$=t.GetObjectTaggingOutput$=t.GetObjectRetentionRequest$=t.GetObjectRetentionOutput$=t.GetObjectRequest$=t.GetObjectOutput$=t.GetObjectLockConfigurationRequest$=t.GetObjectLockConfigurationOutput$=void 0;t.Progress$=t.PolicyStatus$=t.PartitionedPrefix$=t.Part$=t.ParquetInput$=t.OwnershipControlsRule$=t.OwnershipControls$=t.Owner$=t.OutputSerialization$=t.OutputLocation$=t.ObjectVersion$=t.ObjectPart$=t.ObjectLockRule$=t.ObjectLockRetention$=t.ObjectLockLegalHold$=t.ObjectLockConfiguration$=t.ObjectIdentifier$=t._Object$=t.NotificationConfigurationFilter$=t.NotificationConfiguration$=t.NoncurrentVersionTransition$=t.NoncurrentVersionExpiration$=t.MultipartUpload$=t.MetricsConfiguration$=t.MetricsAndOperator$=t.Metrics$=t.MetadataTableEncryptionConfiguration$=t.MetadataTableConfigurationResult$=t.MetadataTableConfiguration$=t.MetadataEntry$=t.MetadataConfigurationResult$=t.MetadataConfiguration$=t.LoggingEnabled$=t.LocationInfo$=t.ListPartsRequest$=t.ListPartsOutput$=t.ListObjectVersionsRequest$=t.ListObjectVersionsOutput$=t.ListObjectsV2Request$=t.ListObjectsV2Output$=t.ListObjectsRequest$=t.ListObjectsOutput$=t.ListMultipartUploadsRequest$=t.ListMultipartUploadsOutput$=t.ListDirectoryBucketsRequest$=t.ListDirectoryBucketsOutput$=t.ListBucketsRequest$=t.ListBucketsOutput$=t.ListBucketMetricsConfigurationsRequest$=t.ListBucketMetricsConfigurationsOutput$=void 0;t.RequestPaymentConfiguration$=t.ReplicationTimeValue$=t.ReplicationTime$=t.ReplicationRuleFilter$=t.ReplicationRuleAndOperator$=t.ReplicationRule$=t.ReplicationConfiguration$=t.ReplicaModifications$=t.RenameObjectRequest$=t.RenameObjectOutput$=t.RedirectAllRequestsTo$=t.Redirect$=t.RecordsEvent$=t.RecordExpiration$=t.QueueConfiguration$=t.PutPublicAccessBlockRequest$=t.PutObjectTaggingRequest$=t.PutObjectTaggingOutput$=t.PutObjectRetentionRequest$=t.PutObjectRetentionOutput$=t.PutObjectRequest$=t.PutObjectOutput$=t.PutObjectLockConfigurationRequest$=t.PutObjectLockConfigurationOutput$=t.PutObjectLegalHoldRequest$=t.PutObjectLegalHoldOutput$=t.PutObjectAclRequest$=t.PutObjectAclOutput$=t.PutBucketWebsiteRequest$=t.PutBucketVersioningRequest$=t.PutBucketTaggingRequest$=t.PutBucketRequestPaymentRequest$=t.PutBucketReplicationRequest$=t.PutBucketPolicyRequest$=t.PutBucketOwnershipControlsRequest$=t.PutBucketNotificationConfigurationRequest$=t.PutBucketMetricsConfigurationRequest$=t.PutBucketLoggingRequest$=t.PutBucketLifecycleConfigurationRequest$=t.PutBucketLifecycleConfigurationOutput$=t.PutBucketInventoryConfigurationRequest$=t.PutBucketIntelligentTieringConfigurationRequest$=t.PutBucketEncryptionRequest$=t.PutBucketCorsRequest$=t.PutBucketAnalyticsConfigurationRequest$=t.PutBucketAclRequest$=t.PutBucketAccelerateConfigurationRequest$=t.PutBucketAbacRequest$=t.PublicAccessBlockConfiguration$=t.ProgressEvent$=void 0;t.SelectObjectContentEventStream$=t.ObjectEncryption$=t.MetricsFilter$=t.AnalyticsFilter$=t.WriteGetObjectResponseRequest$=t.WebsiteConfiguration$=t.VersioningConfiguration$=t.UploadPartRequest$=t.UploadPartOutput$=t.UploadPartCopyRequest$=t.UploadPartCopyOutput$=t.UpdateObjectEncryptionResponse$=t.UpdateObjectEncryptionRequest$=t.UpdateBucketMetadataJournalTableConfigurationRequest$=t.UpdateBucketMetadataInventoryTableConfigurationRequest$=t.Transition$=t.TopicConfiguration$=t.Tiering$=t.TargetObjectKeyFormat$=t.TargetGrant$=t.Tagging$=t.Tag$=t.StorageClassAnalysisDataExport$=t.StorageClassAnalysis$=t.StatsEvent$=t.Stats$=t.SSES3$=t.SSEKMSEncryption$=t.SseKmsEncryptedObjects$=t.SSEKMS$=t.SourceSelectionCriteria$=t.SimplePrefix$=t.SessionCredentials$=t.ServerSideEncryptionRule$=t.ServerSideEncryptionConfiguration$=t.ServerSideEncryptionByDefault$=t.SelectParameters$=t.SelectObjectContentRequest$=t.SelectObjectContentOutput$=t.ScanRange$=t.S3TablesDestinationResult$=t.S3TablesDestination$=t.S3Location$=t.S3KeyFilter$=t.RoutingRule$=t.RestoreStatus$=t.RestoreRequest$=t.RestoreObjectRequest$=t.RestoreObjectOutput$=t.RequestProgress$=void 0;t.GetBucketWebsite$=t.GetBucketVersioning$=t.GetBucketTagging$=t.GetBucketRequestPayment$=t.GetBucketReplication$=t.GetBucketPolicyStatus$=t.GetBucketPolicy$=t.GetBucketOwnershipControls$=t.GetBucketNotificationConfiguration$=t.GetBucketMetricsConfiguration$=t.GetBucketMetadataTableConfiguration$=t.GetBucketMetadataConfiguration$=t.GetBucketLogging$=t.GetBucketLocation$=t.GetBucketLifecycleConfiguration$=t.GetBucketInventoryConfiguration$=t.GetBucketIntelligentTieringConfiguration$=t.GetBucketEncryption$=t.GetBucketCors$=t.GetBucketAnalyticsConfiguration$=t.GetBucketAcl$=t.GetBucketAccelerateConfiguration$=t.GetBucketAbac$=t.DeletePublicAccessBlock$=t.DeleteObjectTagging$=t.DeleteObjects$=t.DeleteObject$=t.DeleteBucketWebsite$=t.DeleteBucketTagging$=t.DeleteBucketReplication$=t.DeleteBucketPolicy$=t.DeleteBucketOwnershipControls$=t.DeleteBucketMetricsConfiguration$=t.DeleteBucketMetadataTableConfiguration$=t.DeleteBucketMetadataConfiguration$=t.DeleteBucketLifecycle$=t.DeleteBucketInventoryConfiguration$=t.DeleteBucketIntelligentTieringConfiguration$=t.DeleteBucketEncryption$=t.DeleteBucketCors$=t.DeleteBucketAnalyticsConfiguration$=t.DeleteBucket$=t.CreateSession$=t.CreateMultipartUpload$=t.CreateBucketMetadataTableConfiguration$=t.CreateBucketMetadataConfiguration$=t.CreateBucket$=t.CopyObject$=t.CompleteMultipartUpload$=t.AbortMultipartUpload$=void 0;t.RestoreObject$=t.RenameObject$=t.PutPublicAccessBlock$=t.PutObjectTagging$=t.PutObjectRetention$=t.PutObjectLockConfiguration$=t.PutObjectLegalHold$=t.PutObjectAcl$=t.PutObject$=t.PutBucketWebsite$=t.PutBucketVersioning$=t.PutBucketTagging$=t.PutBucketRequestPayment$=t.PutBucketReplication$=t.PutBucketPolicy$=t.PutBucketOwnershipControls$=t.PutBucketNotificationConfiguration$=t.PutBucketMetricsConfiguration$=t.PutBucketLogging$=t.PutBucketLifecycleConfiguration$=t.PutBucketInventoryConfiguration$=t.PutBucketIntelligentTieringConfiguration$=t.PutBucketEncryption$=t.PutBucketCors$=t.PutBucketAnalyticsConfiguration$=t.PutBucketAcl$=t.PutBucketAccelerateConfiguration$=t.PutBucketAbac$=t.ListParts$=t.ListObjectVersions$=t.ListObjectsV2$=t.ListObjects$=t.ListMultipartUploads$=t.ListDirectoryBuckets$=t.ListBuckets$=t.ListBucketMetricsConfigurations$=t.ListBucketInventoryConfigurations$=t.ListBucketIntelligentTieringConfigurations$=t.ListBucketAnalyticsConfigurations$=t.HeadObject$=t.HeadBucket$=t.GetPublicAccessBlock$=t.GetObjectTorrent$=t.GetObjectTagging$=t.GetObjectRetention$=t.GetObjectLockConfiguration$=t.GetObjectLegalHold$=t.GetObjectAttributes$=t.GetObjectAcl$=t.GetObject$=void 0;t.WriteGetObjectResponse$=t.UploadPartCopy$=t.UploadPart$=t.UpdateObjectEncryption$=t.UpdateBucketMetadataJournalTableConfiguration$=t.UpdateBucketMetadataInventoryTableConfiguration$=t.SelectObjectContent$=void 0;const i="Account";const a="AnalyticsAndOperator";const d="AccelerateConfiguration";const m="AccessControlList";const f="ACL";const h="AnalyticsConfigurationList";const P="AccessControlPolicy";const _="AccessControlTranslation";const L="AnalyticsConfiguration";const U="AccessDenied";const j="AbortDate";const H="AnalyticsExportDestination";const V="AnalyticsFilter";const K="AllowedHeaders";const W="AllowedHeader";const X="AccountId";const Q="AbortIncompleteMultipartUpload";const Y="AccessKeyId";const J="AllowedMethods";const Z="AbortMultipartUpload";const ee="AbortMultipartUploadOutput";const te="AbortMultipartUploadRequest";const ne="AllowedMethod";const re="AllowedOrigins";const oe="AllowedOrigin";const ie="AccessPointAlias";const se="AccessPointArn";const ae="AllowQuotedRecordDelimiter";const ce="AcceptRanges";const le="AbortRuleId";const ue="AbacStatus";const de="AnalyticsS3BucketDestination";const pe="ApplyServerSideEncryptionByDefault";const me="ArchiveStatus";const fe="AccessTier";const he="And";const ge="Bucket";const ye="BucketArn";const be="BucketAlreadyExists";const Se="BucketAccountId";const Ce="BucketAlreadyOwnedByYou";const Ee="BlockedEncryptionTypes";const xe="BypassGovernanceRetention";const Pe="BucketInfo";const ve="BucketKeyEnabled";const Te="BucketLifecycleConfiguration";const Re="BucketLocationName";const we="BucketLoggingStatus";const Ne="BucketLocationType";const Oe="BucketNamespace";const ke="BucketName";const Ae="BytesProcessed";const Ie="BlockPublicAcls";const _e="BlockPublicPolicy";const Be="BucketRegion";const De="BytesReturned";const Le="BytesScanned";const $e="Body";const Me="Buckets";const Ue="Checksum";const je="ChecksumAlgorithm";const ze="CannedACL";const qe="CreateBucket";const He="CreateBucketConfiguration";const Fe="CreateBucketMetadataConfiguration";const Ge="CreateBucketMetadataConfigurationRequest";const Ve="CreateBucketMetadataTableConfiguration";const Ke="CreateBucketMetadataTableConfigurationRequest";const We="CreateBucketOutput";const Xe="CreateBucketRequest";const Qe="CacheControl";const Ye="ChecksumCRC32";const Je="ChecksumCRC32C";const Ze="ChecksumCRC64NVME";const ot="Cache-Control";const yt="CreationDate";const Rt="Content-Disposition";const zt="ContentDisposition";const qt="ContinuationEvent";const Ht="Content-Encoding";const Kt="ContentEncoding";const Xt="CloudFunction";const Qt="CloudFunctionConfiguration";const Yt="ContentLanguage";const Jt="Content-Language";const Zt="Content-Length";const en="ContentLength";const tn="Content-MD5";const nn="ChecksumMD5";const rn="ContentMD5";const on="CompletedMultipartUpload";const sn="CompleteMultipartUploadOutput";const an="CreateMultipartUploadOutput";const cn="CompleteMultipartUploadResult";const ln="CompleteMultipartUploadRequest";const un="CreateMultipartUploadRequest";const dn="CompleteMultipartUpload";const pn="CreateMultipartUpload";const mn="ChecksumMode";const hn="CopyObject";const gn="CopyObjectOutput";const yn="CopyObjectResult";const bn="CORSConfiguration";const Sn="CORSRules";const Cn="CORSRule";const En="CopyObjectRequest";const xn="CommonPrefix";const Pn="CommonPrefixList";const vn="CompletedPartList";const Tn="CopyPartResult";const Rn="CompletedPart";const wn="CommonPrefixes";const Nn="ContentRange";const On="ConfirmRemoveSelfBucketAccess";const kn="Content-Range";const An="CopySource";const In="ChecksumSHA1";const _n="ChecksumSHA256";const Bn="ChecksumSHA512";const Dn="CopySourceIfMatch";const Ln="CopySourceIfModifiedSince";const $n="CopySourceIfNoneMatch";const Mn="CopySourceIfUnmodifiedSince";const Un="CreateSessionOutput";const jn="CreateSessionResult";const zn="CopySourceRange";const qn="CreateSessionRequest";const Hn="CopySourceSSECustomerAlgorithm";const Fn="CopySourceSSECustomerKey";const Gn="CopySourceSSECustomerKeyMD5";const Vn="CSV";const Kn="CopySourceVersionId";const Wn="CSVInput";const Xn="CSVOutput";const Qn="ConfigurationState";const Yn="CreateSession";const Jn="ChecksumType";const Zn="Content-Type";const er="ClientToken";const tr="ContentType";const nr="CompressionType";const rr="ContinuationToken";const or="ChecksumXXHASH64";const ir="ChecksumXXHASH3";const sr="ChecksumXXHASH128";const ar="Condition";const cr="Code";const lr="Comments";const ur="Contents";const dr="Cont";const pr="Credentials";const mr="Days";const fr="DaysAfterInitiation";const hr="DeleteBucket";const gr="DeleteBucketAnalyticsConfiguration";const yr="DeleteBucketAnalyticsConfigurationRequest";const br="DeleteBucketCors";const Sr="DeleteBucketCorsRequest";const Cr="DeleteBucketEncryption";const Er="DeleteBucketEncryptionRequest";const xr="DeleteBucketInventoryConfiguration";const Pr="DeleteBucketInventoryConfigurationRequest";const vr="DeleteBucketIntelligentTieringConfiguration";const Tr="DeleteBucketIntelligentTieringConfigurationRequest";const Rr="DeleteBucketLifecycle";const wr="DeleteBucketLifecycleRequest";const Nr="DeleteBucketMetadataConfiguration";const Or="DeleteBucketMetadataConfigurationRequest";const kr="DeleteBucketMetricsConfigurationRequest";const Ar="DeleteBucketMetricsConfiguration";const Ir="DeleteBucketMetadataTableConfiguration";const _r="DeleteBucketMetadataTableConfigurationRequest";const Br="DeleteBucketOwnershipControls";const Dr="DeleteBucketOwnershipControlsRequest";const Lr="DeleteBucketPolicy";const $r="DeleteBucketPolicyRequest";const Mr="DeleteBucketRequest";const Ur="DeleteBucketReplicationRequest";const jr="DeleteBucketReplication";const zr="DeleteBucketTagging";const qr="DeleteBucketTaggingRequest";const Hr="DeleteBucketWebsite";const Fr="DeleteBucketWebsiteRequest";const Gr="DataExport";const Vr="DestinationIfMatch";const Kr="DestinationIfModifiedSince";const Wr="DestinationIfNoneMatch";const Xr="DestinationIfUnmodifiedSince";const Qr="DeleteMarker";const Yr="DeleteMarkerEntry";const Jr="DeleteMarkerReplication";const Zr="DeleteMarkerVersionId";const eo="DeleteMarkers";const to="DisplayName";const no="DeletedObject";const ro="DeleteObjectOutput";const oo="DeleteObjectsOutput";const io="DeleteObjectRequest";const so="DeleteObjectsRequest";const ao="DeleteObjectTagging";const co="DeleteObjectTaggingOutput";const lo="DeleteObjectTaggingRequest";const uo="DeletedObjects";const po="DeleteObject";const mo="DeleteObjects";const fo="DeletePublicAccessBlock";const ho="DeletePublicAccessBlockRequest";const go="DataRedundancy";const yo="DefaultRetention";const bo="DeleteResult";const So="DestinationResult";const Co="Date";const Eo="Delete";const xo="Deleted";const Po="Delimiter";const vo="Destination";const To="Description";const Ro="Details";const wo="Expiration";const No="EmailAddress";const Oo="EventBridgeConfiguration";const ko="ExpectedBucketOwner";const Ao="EncryptionConfiguration";const Io="ErrorCode";const _o="ErrorDetails";const Bo="ErrorDocument";const Do="EndEvent";const Lo="ExposeHeaders";const $o="ExposeHeader";const Mo="ErrorMessage";const Uo="ExpiredObjectDeleteMarker";const jo="ExistingObjectReplication";const zo="ExpiresString";const qo="ExpectedSourceBucketOwner";const Ho="EncryptionType";const Fo="EncryptionTypeList";const Go="EncryptionTypeMismatch";const Vo="ETag";const Ko="EncodingType";const Wo="EventThreshold";const Xo="ExpressionType";const Qo="Encryption";const Yo="Enabled";const Jo="End";const Zo="Errors";const ei="Error";const ti="Events";const ni="Event";const ri="Expires";const oi="Expression";const si="Filter";const ai="FieldDelimiter";const ci="FileHeaderInfo";const li="FetchOwner";const ui="FilterRule";const di="FilterRuleList";const pi="FilterRules";const mi="Field";const fi="Format";const hi="Frequency";const gi="Grants";const yi="GetBucketAbac";const bi="GetBucketAccelerateConfiguration";const Si="GetBucketAccelerateConfigurationOutput";const Ei="GetBucketAnalyticsConfigurationOutput";const xi="GetBucketAccelerateConfigurationRequest";const Pi="GetBucketAnalyticsConfigurationRequest";const vi="GetBucketAnalyticsConfiguration";const Ti="GetBucketAbacOutput";const Ri="GetBucketAclOutput";const wi="GetBucketAbacRequest";const Ni="GetBucketAclRequest";const Oi="GetBucketAcl";const ki="GetBucketCors";const Ai="GetBucketCorsOutput";const Ii="GetBucketCorsRequest";const _i="GetBucketEncryption";const Bi="GetBucketEncryptionOutput";const Di="GetBucketEncryptionRequest";const Li="GetBucketInventoryConfiguration";const $i="GetBucketInventoryConfigurationOutput";const Mi="GetBucketInventoryConfigurationRequest";const Ui="GetBucketIntelligentTieringConfiguration";const ji="GetBucketIntelligentTieringConfigurationOutput";const zi="GetBucketIntelligentTieringConfigurationRequest";const qi="GetBucketLocation";const Hi="GetBucketLifecycleConfiguration";const Fi="GetBucketLifecycleConfigurationOutput";const Gi="GetBucketLifecycleConfigurationRequest";const Vi="GetBucketLocationOutput";const Ki="GetBucketLoggingOutput";const Wi="GetBucketLocationRequest";const Xi="GetBucketLoggingRequest";const Qi="GetBucketLogging";const Yi="GetBucketMetadataConfiguration";const Ji="GetBucketMetadataConfigurationOutput";const Zi="GetBucketMetricsConfigurationOutput";const es="GetBucketMetadataConfigurationResult";const ts="GetBucketMetadataConfigurationRequest";const ns="GetBucketMetricsConfigurationRequest";const rs="GetBucketMetricsConfiguration";const os="GetBucketMetadataTableConfiguration";const is="GetBucketMetadataTableConfigurationOutput";const ss="GetBucketMetadataTableConfigurationResult";const as="GetBucketMetadataTableConfigurationRequest";const cs="GetBucketNotificationConfiguration";const ls="GetBucketNotificationConfigurationRequest";const us="GetBucketOwnershipControls";const ds="GetBucketOwnershipControlsOutput";const ps="GetBucketOwnershipControlsRequest";const ms="GetBucketPolicy";const fs="GetBucketPolicyOutput";const hs="GetBucketPolicyRequest";const gs="GetBucketPolicyStatus";const ys="GetBucketPolicyStatusOutput";const bs="GetBucketPolicyStatusRequest";const Ss="GetBucketReplication";const Cs="GetBucketReplicationOutput";const Es="GetBucketRequestPayment";const xs="GetBucketRequestPaymentOutput";const Ps="GetBucketRequestPaymentRequest";const vs="GetBucketReplicationRequest";const Ts="GetBucketTagging";const Rs="GetBucketTaggingOutput";const ws="GetBucketTaggingRequest";const Ns="GetBucketVersioning";const Os="GetBucketVersioningOutput";const ks="GetBucketVersioningRequest";const As="GetBucketWebsite";const Is="GetBucketWebsiteOutput";const _s="GetBucketWebsiteRequest";const Bs="GrantFullControl";const Ds="GlacierJobParameters";const Ls="GetObject";const $s="GetObjectAcl";const Ms="GetObjectAclOutput";const Us="GetObjectAttributesOutput";const js="GetObjectAttributesParts";const zs="GetObjectAclRequest";const qs="GetObjectAttributesResponse";const Hs="GetObjectAttributesRequest";const Fs="GetObjectAttributes";const Gs="GetObjectLockConfiguration";const Vs="GetObjectLockConfigurationOutput";const Ks="GetObjectLockConfigurationRequest";const Ws="GetObjectLegalHold";const Xs="GetObjectLegalHoldOutput";const Qs="GetObjectLegalHoldRequest";const Ys="GetObjectOutput";const Js="GetObjectRequest";const Zs="GetObjectRetentionOutput";const ea="GetObjectRetentionRequest";const ta="GetObjectRetention";const na="GetObjectTagging";const ra="GetObjectTaggingOutput";const oa="GetObjectTorrentOutput";const ia="GetObjectTaggingRequest";const sa="GetObjectTorrentRequest";const aa="GetObjectTorrent";const ca="GetPublicAccessBlock";const la="GetPublicAccessBlockOutput";const ua="GetPublicAccessBlockRequest";const da="GrantRead";const pa="GrantReadACP";const ma="GrantWrite";const fa="GrantWriteACP";const ha="Grant";const ga="Grantee";const ya="HeadBucket";const ba="HeadBucketOutput";const Sa="HeadBucketRequest";const Ca="HttpErrorCodeReturnedEquals";const Ea="HostName";const xa="HeadObject";const Pa="HeadObjectOutput";const va="HeadObjectRequest";const Ta="HttpRedirectCode";const Ra="Id";const wa="InventoryConfiguration";const Na="InventoryConfigurationList";const Oa="ID";const ka="IndexDocument";const Aa="InventoryDestination";const Ia="IsEnabled";const _a="InventoryEncryption";const Ba="InventoryFilter";const Da="IsLatest";const La="IfMatch";const $a="IfMatchInitiatedTime";const Ma="IfMatchLastModifiedTime";const Ua="IfMatchSize";const ja="If-Modified-Since";const za="IfModifiedSince";const qa="InitiateMultipartUploadResult";const Ha="If-Match";const Fa="IfNoneMatch";const Ga="If-None-Match";const Va="InventoryOptionalFields";const Ka="InvalidObjectState";const Wa="IncludedObjectVersions";const Xa="IsPublic";const Qa="IgnorePublicAcls";const Ya="IdempotencyParameterMismatch";const Ja="InvalidRequest";const Za="IsRestoreInProgress";const ec="InputSerialization";const tc="InventoryS3BucketDestination";const nc="InventorySchedule";const rc="IsTruncated";const oc="IntelligentTieringAndOperator";const ic="IntelligentTieringConfiguration";const sc="IntelligentTieringConfigurationList";const ac="InventoryTableConfigurationResult";const cc="InventoryTableConfigurationUpdates";const lc="InventoryTableConfiguration";const uc="IntelligentTieringFilter";const dc="IfUnmodifiedSince";const pc="If-Unmodified-Since";const mc="InvalidWriteOffset";const fc="Initiator";const hc="Initiated";const gc="JSON";const yc="JSONInput";const bc="JSONOutput";const Sc="JournalTableConfiguration";const Cc="JournalTableConfigurationResult";const Ec="JournalTableConfigurationUpdates";const xc="Key";const Pc="KeyCount";const vc="KeyId";const Tc="KmsKeyArn";const Rc="KeyMarker";const wc="KMSContext";const Nc="KMSKeyArn";const Oc="KMSKeyId";const kc="KMSMasterKeyID";const Ac="KeyPrefixEquals";const Ic="Location";const _c="ListAllMyBucketsResult";const Bc="ListAllMyDirectoryBucketsResult";const Dc="ListBuckets";const Lc="ListBucketAnalyticsConfigurations";const $c="ListBucketAnalyticsConfigurationsOutput";const Mc="ListBucketAnalyticsConfigurationResult";const Uc="ListBucketAnalyticsConfigurationsRequest";const jc="ListBucketInventoryConfigurations";const zc="ListBucketInventoryConfigurationsOutput";const qc="ListBucketInventoryConfigurationsRequest";const Hc="ListBucketIntelligentTieringConfigurations";const Fc="ListBucketIntelligentTieringConfigurationsOutput";const Gc="ListBucketIntelligentTieringConfigurationsRequest";const Vc="ListBucketMetricsConfigurations";const Kc="ListBucketMetricsConfigurationsOutput";const Wc="ListBucketMetricsConfigurationsRequest";const Xc="ListBucketsOutput";const Qc="ListBucketsRequest";const Yc="ListBucketResult";const Jc="LocationConstraint";const Zc="LifecycleConfiguration";const el="ListDirectoryBuckets";const tl="ListDirectoryBucketsOutput";const nl="ListDirectoryBucketsRequest";const rl="LoggingEnabled";const ol="LifecycleExpiration";const il="LambdaFunctionArn";const sl="LambdaFunctionConfiguration";const al="LambdaFunctionConfigurationList";const cl="LambdaFunctionConfigurations";const ll="LegalHold";const ul="LocationInfo";const dl="ListInventoryConfigurationsResult";const pl="LastModified";const ml="ListMetricsConfigurationsResult";const fl="LastModifiedTime";const hl="ListMultipartUploads";const gl="ListMultipartUploadsOutput";const yl="ListMultipartUploadsResult";const bl="ListMultipartUploadsRequest";const Sl="Last-Modified";const Cl="ListObjects";const El="ListObjectsOutput";const xl="ListObjectsRequest";const Pl="ListObjectsV2";const vl="ListObjectsV2Output";const Tl="ListObjectVersionsOutput";const Rl="ListObjectsV2Request";const wl="ListObjectVersionsRequest";const Nl="ListObjectVersions";const Ol="ListParts";const kl="ListPartsOutput";const Al="ListPartsResult";const Il="ListPartsRequest";const _l="LifecycleRule";const Bl="LifecycleRuleAndOperator";const Dl="LifecycleRuleFilter";const Ll="LifecycleRules";const $l="ListVersionsResult";const Ml="Metadata";const Ul="MetricsAndOperator";const jl="MaxAgeSeconds";const zl="MaxBuckets";const ql="MetadataConfiguration";const Hl="MetricsConfigurationList";const Fl="MetadataConfigurationResult";const Gl="MetricsConfiguration";const Vl="MetadataDirective";const Kl="MaxDirectoryBuckets";const Wl="MfaDelete";const Xl="MetadataEntry";const Ql="MetricsFilter";const Yl="MFA";const Jl="MFADelete";const Zl="MaxKeys";const eu="MissingMeta";const tu="MpuObjectSize";const nu="MaxParts";const ru="MetadataTableConfiguration";const ou="MetadataTableConfigurationResult";const iu="MetadataTableEncryptionConfiguration";const su="MultipartUpload";const au="MultipartUploadList";const cu="MaxUploads";const lu="Marker";const uu="Metrics";const du="Message";const pu="Minutes";const mu="Mode";const fu="Name";const hu="NotificationConfiguration";const gu="NotificationConfigurationFilter";const yu="NextContinuationToken";const bu="NoncurrentDays";const Su="NonEmptyKmsKeyArnString";const Cu="NotFound";const Eu="NextKeyMarker";const xu="NextMarker";const Pu="NewerNoncurrentVersions";const vu="NextPartNumberMarker";const Tu="NoSuchBucket";const Ru="NoSuchKey";const wu="NoSuchUpload";const Nu="NextUploadIdMarker";const Ou="NoncurrentVersionExpiration";const ku="NextVersionIdMarker";const Au="NoncurrentVersionTransitions";const Iu="NoncurrentVersionTransitionList";const _u="NoncurrentVersionTransition";const Bu="Owner";const Du="ObjectAttributes";const Lu="ObjectAlreadyInActiveTierError";const $u="OwnershipControls";const Mu="OwnershipControlsRule";const Uu="OwnershipControlsRules";const ju="ObjectEncryption";const zu="OptionalFields";const qu="ObjectIdentifier";const Hu="ObjectIdentifierList";const Fu="OutputLocation";const Gu="ObjectLockConfiguration";const Vu="ObjectLockEnabled";const Ku="ObjectLockEnabledForBucket";const Wu="ObjectLockLegalHold";const Xu="ObjectLockLegalHoldStatus";const Qu="ObjectLockMode";const Yu="ObjectLockRetention";const Ju="ObjectLockRetainUntilDate";const Zu="ObjectLockRule";const ed="ObjectList";const td="ObjectNotInActiveTierError";const nd="ObjectOwnership";const rd="OptionalObjectAttributes";const od="ObjectParts";const id="ObjectPart";const sd="ObjectSize";const ad="ObjectSizeGreaterThan";const cd="ObjectSizeLessThan";const ld="OutputSchemaVersion";const ud="OutputSerialization";const dd="ObjectVersion";const pd="ObjectVersionList";const md="Objects";const fd="Object";const hd="Prefix";const gd="PublicAccessBlockConfiguration";const yd="PutBucketAbac";const bd="PutBucketAccelerateConfiguration";const Sd="PutBucketAccelerateConfigurationRequest";const Cd="PutBucketAnalyticsConfigurationRequest";const Ed="PutBucketAnalyticsConfiguration";const xd="PutBucketAbacRequest";const Pd="PutBucketAclRequest";const vd="PutBucketAcl";const Td="PutBucketCors";const Rd="PutBucketCorsRequest";const wd="PutBucketEncryption";const Nd="PutBucketEncryptionRequest";const Od="PutBucketInventoryConfiguration";const kd="PutBucketInventoryConfigurationRequest";const Ad="PutBucketIntelligentTieringConfiguration";const Id="PutBucketIntelligentTieringConfigurationRequest";const _d="PutBucketLogging";const Bd="PutBucketLifecycleConfiguration";const Dd="PutBucketLifecycleConfigurationOutput";const Ld="PutBucketLifecycleConfigurationRequest";const $d="PutBucketLoggingRequest";const Md="PutBucketMetricsConfiguration";const Ud="PutBucketMetricsConfigurationRequest";const jd="PutBucketNotificationConfiguration";const zd="PutBucketNotificationConfigurationRequest";const qd="PutBucketOwnershipControls";const Hd="PutBucketOwnershipControlsRequest";const Fd="PutBucketPolicy";const Gd="PutBucketPolicyRequest";const Vd="PutBucketReplication";const Kd="PutBucketRequestPayment";const Wd="PutBucketRequestPaymentRequest";const Xd="PutBucketReplicationRequest";const Qd="PutBucketTagging";const Yd="PutBucketTaggingRequest";const Jd="PutBucketVersioning";const Zd="PutBucketVersioningRequest";const ep="PutBucketWebsite";const tp="PutBucketWebsiteRequest";const np="PartsCount";const rp="PartitionDateSource";const ip="ProgressEvent";const sp="ParquetInput";const ap="PartsList";const cp="PartNumber";const lp="PartNumberMarker";const up="PutObject";const dp="PutObjectAcl";const pp="PutObjectAclOutput";const mp="PutObjectAclRequest";const fp="PutObjectLockConfiguration";const hp="PutObjectLockConfigurationOutput";const gp="PutObjectLockConfigurationRequest";const yp="PutObjectLegalHold";const bp="PutObjectLegalHoldOutput";const Sp="PutObjectLegalHoldRequest";const Cp="PutObjectOutput";const Ep="PutObjectRequest";const xp="PutObjectRetentionOutput";const Pp="PutObjectRetentionRequest";const vp="PutObjectRetention";const Tp="PutObjectTagging";const Rp="PutObjectTaggingOutput";const wp="PutObjectTaggingRequest";const Np="PartitionedPrefix";const Op="PutPublicAccessBlock";const kp="PutPublicAccessBlockRequest";const Ap="PolicyStatus";const Ip="Parts";const _p="Part";const Bp="Parquet";const Dp="Payer";const Lp="Payload";const $p="Permission";const Mp="Policy";const Up="Progress";const jp="Priority";const zp="Protocol";const qp="Quiet";const Hp="QueueArn";const Fp="QuoteCharacter";const Gp="QueueConfigurationList";const Vp="QueueConfigurations";const Kp="QueueConfiguration";const Wp="QuoteEscapeCharacter";const Xp="QuoteFields";const Qp="Queue";const Yp="Rules";const Jp="RedirectAllRequestsTo";const Zp="RequestCharged";const em="ResponseCacheControl";const tm="ResponseContentDisposition";const nm="ResponseContentEncoding";const rm="ResponseContentLanguage";const om="ResponseContentType";const im="ReplicationConfiguration";const sm="RecordDelimiter";const am="ResponseExpires";const cm="RestoreExpiryDate";const lm="RecordExpiration";const um="RecordsEvent";const dm="ReplicaKmsKeyID";const pm="ReplaceKeyPrefixWith";const mm="ReplaceKeyWith";const fm="ReplicaModifications";const hm="RenameObject";const gm="RenameObjectOutput";const ym="RestoreObjectOutput";const bm="RestoreOutputPath";const Sm="RenameObjectRequest";const Cm="RestoreObjectRequest";const Em="RestoreObject";const xm="RequestPayer";const Pm="RestrictPublicBuckets";const vm="RequestPaymentConfiguration";const Tm="RequestProgress";const Rm="RoutingRules";const wm="ReplicationRuleAndOperator";const Nm="ReplicationRuleFilter";const Om="ReplicationRule";const km="ReplicationRules";const Am="RequestRoute";const Im="RestoreRequest";const _m="RoutingRule";const Bm="ReplicationStatus";const Dm="RestoreStatus";const Lm="RenameSource";const $m="ReplicationTime";const Mm="ReplicationTimeValue";const Um="RequestToken";const jm="RetainUntilDate";const zm="Range";const qm="Restore";const Hm="Records";const Fm="Redirect";const Gm="Retention";const Vm="Role";const Km="Rule";const Wm="Status";const Xm="StartAfter";const Qm="SecretAccessKey";const Ym="SseAlgorithm";const Jm="StreamingBlob";const Zm="S3BucketDestination";const ef="StorageClass";const tf="StorageClassAnalysis";const nf="StorageClassAnalysisDataExport";const rf="SessionCredentialValue";const of="SessionCredentials";const sf="StatusCode";const af="SkipDestinationValidation";const cf="StatsEvent";const lf="SourceIfMatch";const uf="SourceIfModifiedSince";const df="SourceIfNoneMatch";const pf="SourceIfUnmodifiedSince";const mf="SSE-KMS";const hf="SseKmsEncryptedObjects";const gf="S3KeyFilter";const yf="S3Key";const bf="S3Location";const Sf="SessionMode";const Cf="SelectObjectContent";const Ef="SelectObjectContentEventStream";const xf="SelectObjectContentOutput";const Pf="SelectObjectContentRequest";const vf="SelectParameters";const Tf="SimplePrefix";const Rf="ScanRange";const wf="SSE-S3";const Nf="SourceSelectionCriteria";const Of="ServerSideEncryption";const kf="SSEAlgorithm";const Af="ServerSideEncryptionByDefault";const If="ServerSideEncryptionConfiguration";const _f="SSECustomerAlgorithm";const Bf="SSECustomerKey";const Df="SSECustomerKeyMD5";const Lf="SSEKMS";const $f="SSEKMSEncryption";const Mf="SSEKMSEncryptionContext";const Uf="SSEKMSKeyId";const jf="ServerSideEncryptionRule";const zf="ServerSideEncryptionRules";const qf="SSES3";const Hf="SessionToken";const Ff="S3TablesDestination";const Gf="S3TablesDestinationResult";const Vf="S3";const Kf="Schedule";const Wf="Size";const Xf="Start";const Qf="Stats";const Yf="Suffix";const Jf="Tags";const Zf="TableArn";const eh="TopicArn";const th="TargetBucket";const nh="TableBucketArn";const rh="TableBucketType";const oh="TagCount";const ih="TopicConfigurationList";const sh="TopicConfigurations";const ah="TopicConfiguration";const ch="TaggingDirective";const lh="TransitionDefaultMinimumObjectSize";const uh="TargetGrants";const dh="TargetGrant";const ph="TieringList";const mh="TransitionList";const fh="TooManyParts";const gh="TableNamespace";const yh="TableName";const bh="TargetObjectKeyFormat";const Sh="TargetPrefix";const Ch="TotalPartsCount";const Eh="TagSet";const xh="TableStatus";const Ph="Tag";const vh="Tagging";const Th="Tier";const Rh="Tierings";const wh="Tiering";const Nh="Time";const Oh="Token";const kh="Topic";const Ah="Transitions";const Ih="Transition";const _h="Type";const Bh="Uploads";const Dh="UpdateBucketMetadataInventoryTableConfiguration";const Lh="UpdateBucketMetadataInventoryTableConfigurationRequest";const $h="UpdateBucketMetadataJournalTableConfiguration";const Mh="UpdateBucketMetadataJournalTableConfigurationRequest";const Uh="UploadId";const jh="UploadIdMarker";const zh="UserMetadata";const qh="UpdateObjectEncryption";const Hh="UpdateObjectEncryptionRequest";const Fh="UpdateObjectEncryptionResponse";const Gh="UploadPart";const Vh="UploadPartCopy";const Kh="UploadPartCopyOutput";const Wh="UploadPartCopyRequest";const Xh="UploadPartOutput";const Qh="UploadPartRequest";const Yh="URI";const Jh="Upload";const Zh="Value";const eg="VersioningConfiguration";const tg="VersionId";const ng="VersionIdMarker";const rg="Versions";const og="Version";const ig="WebsiteConfiguration";const sg="WriteGetObjectResponse";const ag="WriteGetObjectResponseRequest";const cg="WriteOffsetBytes";const lg="WebsiteRedirectLocation";const ug="Years";const dg="accept-ranges";const pg="bucket-region";const mg="client";const fg="continuation-token";const hg="delimiter";const yg="error";const bg="eventPayload";const Sg="endpoint";const Cg="encoding-type";const Eg="fetch-owner";const xg="http";const Pg="httpChecksum";const vg="httpError";const Tg="httpHeader";const Rg="hostLabel";const wg="httpPayload";const Ng="httpPrefixHeaders";const Og="httpQuery";const kg="http://www.w3.org/2001/XMLSchema-instance";const Ag="id";const Ig="idempotencyToken";const _g="key-marker";const Bg="marker";const Dg="max-buckets";const Lg="max-directory-buckets";const $g="max-keys";const Mg="max-parts";const Ug="max-uploads";const jg="prefix";const zg="partNumber";const qg="part-number-marker";const Hg="response-cache-control";const Fg="response-content-disposition";const Gg="response-content-encoding";const Vg="response-content-language";const Kg="response-content-type";const Wg="response-expires";const Xg="smithy.ts.sdk.synthetic.com.amazonaws.s3";const Qg="start-after";const Yg="streaming";const Jg="uploadId";const Zg="upload-id-marker";const ey="versionId";const ty="version-id-marker";const ny="xsi";const ry="xmlAttribute";const oy="xmlFlattened";const iy="xmlName";const sy="xmlNamespace";const ay="x-amz-acl";const cy="x-amz-abort-date";const ly="x-amz-access-point-alias";const uy="x-amz-abort-rule-id";const dy="x-amz-archive-status";const py="x-amz-bucket-arn";const my="x-amz-bypass-governance-retention";const fy="x-amz-bucket-location-name";const hy="x-amz-bucket-location-type";const gy="x-amz-bucket-namespace";const yy="x-amz-bucket-object-lock-enabled";const by="x-amz-bucket-object-lock-token";const Sy="x-amz-bucket-region";const Cy="x-amz-checksum-algorithm";const Ey="x-amz-checksum-crc32";const xy="x-amz-checksum-crc32c";const Py="x-amz-checksum-crc64nvme";const vy="x-amz-checksum-md5";const Ty="x-amz-checksum-mode";const Ry="x-amz-confirm-remove-self-bucket-access";const wy="x-amz-checksum-sha1";const Ny="x-amz-checksum-sha256";const Oy="x-amz-checksum-sha512";const ky="x-amz-copy-source";const Ay="x-amz-copy-source-if-match";const Iy="x-amz-copy-source-if-modified-since";const _y="x-amz-copy-source-if-none-match";const By="x-amz-copy-source-if-unmodified-since";const Dy="x-amz-create-session-mode";const Ly="x-amz-copy-source-range";const $y="x-amz-copy-source-server-side-encryption-customer-algorithm";const My="x-amz-copy-source-server-side-encryption-customer-key";const Uy="x-amz-copy-source-server-side-encryption-customer-key-MD5";const jy="x-amz-copy-source-version-id";const zy="x-amz-checksum-type";const qy="x-amz-client-token";const Hy="x-amz-checksum-xxhash64";const Fy="x-amz-checksum-xxhash3";const Gy="x-amz-checksum-xxhash128";const Vy="x-amz-delete-marker";const Ky="x-amz-expiration";const Wy="x-amz-expected-bucket-owner";const Xy="x-amz-fwd-error-code";const Qy="x-amz-fwd-error-message";const Yy="x-amz-fwd-header-Cache-Control";const Jy="x-amz-fwd-header-Content-Disposition";const Zy="x-amz-fwd-header-Content-Encoding";const eb="x-amz-fwd-header-Content-Language";const tb="x-amz-fwd-header-Content-Range";const nb="x-amz-fwd-header-Content-Type";const rb="x-amz-fwd-header-ETag";const ob="x-amz-fwd-header-Expires";const ib="x-amz-fwd-header-Last-Modified";const sb="x-amz-fwd-header-accept-ranges";const ab="x-amz-fwd-header-x-amz-checksum-crc32";const cb="x-amz-fwd-header-x-amz-checksum-crc32c";const lb="x-amz-fwd-header-x-amz-checksum-crc64nvme";const ub="x-amz-fwd-header-x-amz-checksum-md5";const db="x-amz-fwd-header-x-amz-checksum-sha1";const pb="x-amz-fwd-header-x-amz-checksum-sha256";const mb="x-amz-fwd-header-x-amz-checksum-sha512";const fb="x-amz-fwd-header-x-amz-checksum-xxhash64";const hb="x-amz-fwd-header-x-amz-checksum-xxhash3";const gb="x-amz-fwd-header-x-amz-checksum-xxhash128";const yb="x-amz-fwd-header-x-amz-delete-marker";const bb="x-amz-fwd-header-x-amz-expiration";const Sb="x-amz-fwd-header-x-amz-missing-meta";const Cb="x-amz-fwd-header-x-amz-mp-parts-count";const Eb="x-amz-fwd-header-x-amz-object-lock-legal-hold";const xb="x-amz-fwd-header-x-amz-object-lock-mode";const Pb="x-amz-fwd-header-x-amz-object-lock-retain-until-date";const vb="x-amz-fwd-header-x-amz-restore";const Tb="x-amz-fwd-header-x-amz-request-charged";const Rb="x-amz-fwd-header-x-amz-replication-status";const wb="x-amz-fwd-header-x-amz-storage-class";const Nb="x-amz-fwd-header-x-amz-server-side-encryption";const Ob="x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id";const kb="x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled";const Ab="x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm";const Ib="x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5";const _b="x-amz-fwd-header-x-amz-tagging-count";const Bb="x-amz-fwd-header-x-amz-version-id";const Db="x-amz-fwd-status";const Lb="x-amz-grant-full-control";const $b="x-amz-grant-read";const Mb="x-amz-grant-read-acp";const Ub="x-amz-grant-write";const jb="x-amz-grant-write-acp";const zb="x-amz-if-match-initiated-time";const qb="x-amz-if-match-last-modified-time";const Hb="x-amz-if-match-size";const Fb="x-amz-meta-";const Gb="x-amz-mfa";const Vb="x-amz-metadata-directive";const Kb="x-amz-missing-meta";const Wb="x-amz-mp-object-size";const Xb="x-amz-max-parts";const Qb="x-amz-mp-parts-count";const Yb="x-amz-object-attributes";const Jb="x-amz-object-lock-legal-hold";const Zb="x-amz-object-lock-mode";const eS="x-amz-object-lock-retain-until-date";const tS="x-amz-object-ownership";const nS="x-amz-optional-object-attributes";const rS="x-amz-object-size";const oS="x-amz-part-number-marker";const iS="x-amz-restore";const sS="x-amz-request-charged";const aS="x-amz-restore-output-path";const cS="x-amz-request-payer";const lS="x-amz-request-route";const uS="x-amz-replication-status";const dS="x-amz-rename-source";const pS="x-amz-rename-source-if-match";const mS="x-amz-rename-source-if-modified-since";const fS="x-amz-rename-source-if-none-match";const hS="x-amz-rename-source-if-unmodified-since";const gS="x-amz-request-token";const yS="x-amz-storage-class";const bS="x-amz-sdk-checksum-algorithm";const SS="x-amz-skip-destination-validation";const CS="x-amz-source-expected-bucket-owner";const ES="x-amz-server-side-encryption";const xS="x-amz-server-side-encryption-aws-kms-key-id";const PS="x-amz-server-side-encryption-bucket-key-enabled";const vS="x-amz-server-side-encryption-context";const TS="x-amz-server-side-encryption-customer-algorithm";const RS="x-amz-server-side-encryption-customer-key";const wS="x-amz-server-side-encryption-customer-key-MD5";const NS="x-amz-tagging";const OS="x-amz-tagging-count";const kS="x-amz-tagging-directive";const AS="x-amz-transition-default-minimum-object-size";const IS="x-amz-version-id";const _S="x-amz-write-offset-bytes";const BS="x-amz-website-redirect-location";const DS="xsi:type";const LS="com.amazonaws.s3";const $S=o(26890);const MS=o(80631);const US=o(98354);const jS=$S.TypeRegistry.for(Xg);t.S3ServiceException$=[-3,Xg,"S3ServiceException",0,[],[]];jS.registerError(t.S3ServiceException$,US.S3ServiceException);const zS=$S.TypeRegistry.for(LS);t.AccessDenied$=[-3,LS,U,{[yg]:mg,[vg]:403},[],[]];zS.registerError(t.AccessDenied$,MS.AccessDenied);t.BucketAlreadyExists$=[-3,LS,be,{[yg]:mg,[vg]:409},[],[]];zS.registerError(t.BucketAlreadyExists$,MS.BucketAlreadyExists);t.BucketAlreadyOwnedByYou$=[-3,LS,Ce,{[yg]:mg,[vg]:409},[],[]];zS.registerError(t.BucketAlreadyOwnedByYou$,MS.BucketAlreadyOwnedByYou);t.EncryptionTypeMismatch$=[-3,LS,Go,{[yg]:mg,[vg]:400},[],[]];zS.registerError(t.EncryptionTypeMismatch$,MS.EncryptionTypeMismatch);t.IdempotencyParameterMismatch$=[-3,LS,Ya,{[yg]:mg,[vg]:400},[],[]];zS.registerError(t.IdempotencyParameterMismatch$,MS.IdempotencyParameterMismatch);t.InvalidObjectState$=[-3,LS,Ka,{[yg]:mg,[vg]:403},[ef,fe],[0,0]];zS.registerError(t.InvalidObjectState$,MS.InvalidObjectState);t.InvalidRequest$=[-3,LS,Ja,{[yg]:mg,[vg]:400},[],[]];zS.registerError(t.InvalidRequest$,MS.InvalidRequest);t.InvalidWriteOffset$=[-3,LS,mc,{[yg]:mg,[vg]:400},[],[]];zS.registerError(t.InvalidWriteOffset$,MS.InvalidWriteOffset);t.NoSuchBucket$=[-3,LS,Tu,{[yg]:mg,[vg]:404},[],[]];zS.registerError(t.NoSuchBucket$,MS.NoSuchBucket);t.NoSuchKey$=[-3,LS,Ru,{[yg]:mg,[vg]:404},[],[]];zS.registerError(t.NoSuchKey$,MS.NoSuchKey);t.NoSuchUpload$=[-3,LS,wu,{[yg]:mg,[vg]:404},[],[]];zS.registerError(t.NoSuchUpload$,MS.NoSuchUpload);t.NotFound$=[-3,LS,Cu,{[yg]:mg},[],[]];zS.registerError(t.NotFound$,MS.NotFound);t.ObjectAlreadyInActiveTierError$=[-3,LS,Lu,{[yg]:mg,[vg]:403},[],[]];zS.registerError(t.ObjectAlreadyInActiveTierError$,MS.ObjectAlreadyInActiveTierError);t.ObjectNotInActiveTierError$=[-3,LS,td,{[yg]:mg,[vg]:403},[],[]];zS.registerError(t.ObjectNotInActiveTierError$,MS.ObjectNotInActiveTierError);t.TooManyParts$=[-3,LS,fh,{[yg]:mg,[vg]:400},[],[]];zS.registerError(t.TooManyParts$,MS.TooManyParts);t.errorTypeRegistries=[jS,zS];var qS=[0,LS,Fn,8,0];var HS=[0,LS,Su,8,0];var FS=[0,LS,rf,8,0];var GS=[0,LS,Bf,8,0];var VS=[0,LS,Mf,8,0];var KS=[0,LS,Uf,8,0];var WS=[0,LS,Jm,{[Yg]:1},42];t.AbacStatus$=[3,LS,ue,0,[Wm],[0]];t.AbortIncompleteMultipartUpload$=[3,LS,Q,0,[fr],[1]];t.AbortMultipartUploadOutput$=[3,LS,ee,0,[Zp],[[0,{[Tg]:sS}]]];t.AbortMultipartUploadRequest$=[3,LS,te,0,[ge,xc,Uh,xm,ko,$a],[[0,1],[0,1],[0,{[Og]:Jg}],[0,{[Tg]:cS}],[0,{[Tg]:Wy}],[6,{[Tg]:zb}]],3];t.AccelerateConfiguration$=[3,LS,d,0,[Wm],[0]];t.AccessControlPolicy$=[3,LS,P,0,[gi,Bu],[[()=>pC,{[iy]:m}],()=>t.Owner$]];t.AccessControlTranslation$=[3,LS,_,0,[Bu],[0],1];t.AnalyticsAndOperator$=[3,LS,a,0,[hd,Jf],[0,[()=>_C,{[oy]:1,[iy]:Ph}]]];t.AnalyticsConfiguration$=[3,LS,L,0,[Ra,tf,si],[0,()=>t.StorageClassAnalysis$,[()=>t.AnalyticsFilter$,0]],2];t.AnalyticsExportDestination$=[3,LS,H,0,[Zm],[()=>t.AnalyticsS3BucketDestination$],1];t.AnalyticsS3BucketDestination$=[3,LS,de,0,[fi,ge,Se,hd],[0,0,0,0],2];t.BlockedEncryptionTypes$=[3,LS,Ee,0,[Ho],[[()=>aC,{[oy]:1}]]];t.Bucket$=[3,LS,ge,0,[fu,yt,Be,ye],[0,4,0,0]];t.BucketInfo$=[3,LS,Pe,0,[go,_h],[0,0]];t.BucketLifecycleConfiguration$=[3,LS,Te,0,[Yp],[[()=>yC,{[oy]:1,[iy]:Km}]],1];t.BucketLoggingStatus$=[3,LS,we,0,[rl],[[()=>t.LoggingEnabled$,0]]];t.Checksum$=[3,LS,Ue,0,[Ye,Je,Ze,In,_n,Bn,nn,or,ir,sr,Jn],[0,0,0,0,0,0,0,0,0,0,0]];t.CommonPrefix$=[3,LS,xn,0,[hd],[0]];t.CompletedMultipartUpload$=[3,LS,on,0,[Ip],[[()=>rC,{[oy]:1,[iy]:_p}]]];t.CompletedPart$=[3,LS,Rn,0,[Vo,Ye,Je,Ze,In,_n,Bn,nn,or,ir,sr,cp],[0,0,0,0,0,0,0,0,0,0,0,1]];t.CompleteMultipartUploadOutput$=[3,LS,sn,{[iy]:cn},[Ic,ge,xc,wo,Vo,Ye,Je,Ze,In,_n,Bn,nn,or,ir,sr,Jn,Of,tg,Uf,ve,Zp],[0,0,0,[0,{[Tg]:Ky}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[Tg]:ES}],[0,{[Tg]:IS}],[()=>KS,{[Tg]:xS}],[2,{[Tg]:PS}],[0,{[Tg]:sS}]]];t.CompleteMultipartUploadRequest$=[3,LS,ln,0,[ge,xc,Uh,su,Ye,Je,Ze,In,_n,Bn,nn,or,ir,sr,Jn,tu,xm,ko,La,Fa,_f,Bf,Df],[[0,1],[0,1],[0,{[Og]:Jg}],[()=>t.CompletedMultipartUpload$,{[wg]:1,[iy]:dn}],[0,{[Tg]:Ey}],[0,{[Tg]:xy}],[0,{[Tg]:Py}],[0,{[Tg]:wy}],[0,{[Tg]:Ny}],[0,{[Tg]:Oy}],[0,{[Tg]:vy}],[0,{[Tg]:Hy}],[0,{[Tg]:Fy}],[0,{[Tg]:Gy}],[0,{[Tg]:zy}],[1,{[Tg]:Wb}],[0,{[Tg]:cS}],[0,{[Tg]:Wy}],[0,{[Tg]:Ha}],[0,{[Tg]:Ga}],[0,{[Tg]:TS}],[()=>GS,{[Tg]:RS}],[0,{[Tg]:wS}]],3];t.Condition$=[3,LS,ar,0,[Ca,Ac],[0,0]];t.ContinuationEvent$=[3,LS,qt,0,[],[]];t.CopyObjectOutput$=[3,LS,gn,0,[yn,wo,Kn,tg,Of,_f,Df,Uf,Mf,ve,Zp],[[()=>t.CopyObjectResult$,16],[0,{[Tg]:Ky}],[0,{[Tg]:jy}],[0,{[Tg]:IS}],[0,{[Tg]:ES}],[0,{[Tg]:TS}],[0,{[Tg]:wS}],[()=>KS,{[Tg]:xS}],[()=>VS,{[Tg]:vS}],[2,{[Tg]:PS}],[0,{[Tg]:sS}]]];t.CopyObjectRequest$=[3,LS,En,0,[ge,An,xc,f,Qe,je,zt,Kt,Yt,tr,Dn,Ln,$n,Mn,ri,Bs,da,pa,fa,La,Fa,Ml,Vl,ch,Of,ef,lg,_f,Bf,Df,Uf,Mf,ve,Hn,Fn,Gn,xm,vh,Qu,Ju,Xu,ko,qo],[[0,1],[0,{[Tg]:ky}],[0,1],[0,{[Tg]:ay}],[0,{[Tg]:ot}],[0,{[Tg]:Cy}],[0,{[Tg]:Rt}],[0,{[Tg]:Ht}],[0,{[Tg]:Jt}],[0,{[Tg]:Zn}],[0,{[Tg]:Ay}],[4,{[Tg]:Iy}],[0,{[Tg]:_y}],[4,{[Tg]:By}],[4,{[Tg]:ri}],[0,{[Tg]:Lb}],[0,{[Tg]:$b}],[0,{[Tg]:Mb}],[0,{[Tg]:jb}],[0,{[Tg]:Ha}],[0,{[Tg]:Ga}],[128|0,{[Ng]:Fb}],[0,{[Tg]:Vb}],[0,{[Tg]:kS}],[0,{[Tg]:ES}],[0,{[Tg]:yS}],[0,{[Tg]:BS}],[0,{[Tg]:TS}],[()=>GS,{[Tg]:RS}],[0,{[Tg]:wS}],[()=>KS,{[Tg]:xS}],[()=>VS,{[Tg]:vS}],[2,{[Tg]:PS}],[0,{[Tg]:$y}],[()=>qS,{[Tg]:My}],[0,{[Tg]:Uy}],[0,{[Tg]:cS}],[0,{[Tg]:NS}],[0,{[Tg]:Zb}],[5,{[Tg]:eS}],[0,{[Tg]:Jb}],[0,{[Tg]:Wy}],[0,{[Tg]:CS}]],3];t.CopyObjectResult$=[3,LS,yn,0,[Vo,pl,Jn,Ye,Je,Ze,In,_n,Bn,nn,or,ir,sr],[0,4,0,0,0,0,0,0,0,0,0,0,0]];t.CopyPartResult$=[3,LS,Tn,0,[Vo,pl,Ye,Je,Ze,In,_n,Bn,nn,or,ir,sr],[0,4,0,0,0,0,0,0,0,0,0,0]];t.CORSConfiguration$=[3,LS,bn,0,[Sn],[[()=>oC,{[oy]:1,[iy]:Cn}]],1];t.CORSRule$=[3,LS,Cn,0,[J,re,Oa,K,Lo,jl],[[64|0,{[oy]:1,[iy]:ne}],[64|0,{[oy]:1,[iy]:oe}],0,[64|0,{[oy]:1,[iy]:W}],[64|0,{[oy]:1,[iy]:$o}],1],2];t.CreateBucketConfiguration$=[3,LS,He,0,[Jc,Ic,ge,Jf],[0,()=>t.LocationInfo$,()=>t.BucketInfo$,[()=>_C,0]]];t.CreateBucketMetadataConfigurationRequest$=[3,LS,Ge,0,[ge,ql,rn,je,ko],[[0,1],[()=>t.MetadataConfiguration$,{[wg]:1,[iy]:ql}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:Wy}]],2];t.CreateBucketMetadataTableConfigurationRequest$=[3,LS,Ke,0,[ge,ru,rn,je,ko],[[0,1],[()=>t.MetadataTableConfiguration$,{[wg]:1,[iy]:ru}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:Wy}]],2];t.CreateBucketOutput$=[3,LS,We,0,[Ic,ye],[[0,{[Tg]:Ic}],[0,{[Tg]:py}]]];t.CreateBucketRequest$=[3,LS,Xe,0,[ge,f,He,Bs,da,pa,ma,fa,Ku,nd,Oe],[[0,1],[0,{[Tg]:ay}],[()=>t.CreateBucketConfiguration$,{[wg]:1,[iy]:He}],[0,{[Tg]:Lb}],[0,{[Tg]:$b}],[0,{[Tg]:Mb}],[0,{[Tg]:Ub}],[0,{[Tg]:jb}],[2,{[Tg]:yy}],[0,{[Tg]:tS}],[0,{[Tg]:gy}]],1];t.CreateMultipartUploadOutput$=[3,LS,an,{[iy]:qa},[j,le,ge,xc,Uh,Of,_f,Df,Uf,Mf,ve,Zp,je,Jn],[[4,{[Tg]:cy}],[0,{[Tg]:uy}],[0,{[iy]:ge}],0,0,[0,{[Tg]:ES}],[0,{[Tg]:TS}],[0,{[Tg]:wS}],[()=>KS,{[Tg]:xS}],[()=>VS,{[Tg]:vS}],[2,{[Tg]:PS}],[0,{[Tg]:sS}],[0,{[Tg]:Cy}],[0,{[Tg]:zy}]]];t.CreateMultipartUploadRequest$=[3,LS,un,0,[ge,xc,f,Qe,zt,Kt,Yt,tr,ri,Bs,da,pa,fa,Ml,Of,ef,lg,_f,Bf,Df,Uf,Mf,ve,xm,vh,Qu,Ju,Xu,ko,je,Jn],[[0,1],[0,1],[0,{[Tg]:ay}],[0,{[Tg]:ot}],[0,{[Tg]:Rt}],[0,{[Tg]:Ht}],[0,{[Tg]:Jt}],[0,{[Tg]:Zn}],[4,{[Tg]:ri}],[0,{[Tg]:Lb}],[0,{[Tg]:$b}],[0,{[Tg]:Mb}],[0,{[Tg]:jb}],[128|0,{[Ng]:Fb}],[0,{[Tg]:ES}],[0,{[Tg]:yS}],[0,{[Tg]:BS}],[0,{[Tg]:TS}],[()=>GS,{[Tg]:RS}],[0,{[Tg]:wS}],[()=>KS,{[Tg]:xS}],[()=>VS,{[Tg]:vS}],[2,{[Tg]:PS}],[0,{[Tg]:cS}],[0,{[Tg]:NS}],[0,{[Tg]:Zb}],[5,{[Tg]:eS}],[0,{[Tg]:Jb}],[0,{[Tg]:Wy}],[0,{[Tg]:Cy}],[0,{[Tg]:zy}]],2];t.CreateSessionOutput$=[3,LS,Un,{[iy]:jn},[pr,Of,Uf,Mf,ve],[[()=>t.SessionCredentials$,{[iy]:pr}],[0,{[Tg]:ES}],[()=>KS,{[Tg]:xS}],[()=>VS,{[Tg]:vS}],[2,{[Tg]:PS}]],1];t.CreateSessionRequest$=[3,LS,qn,0,[ge,Sf,Of,Uf,Mf,ve],[[0,1],[0,{[Tg]:Dy}],[0,{[Tg]:ES}],[()=>KS,{[Tg]:xS}],[()=>VS,{[Tg]:vS}],[2,{[Tg]:PS}]],1];t.CSVInput$=[3,LS,Wn,0,[ci,lr,Wp,sm,ai,Fp,ae],[0,0,0,0,0,0,2]];t.CSVOutput$=[3,LS,Xn,0,[Xp,Wp,sm,ai,Fp],[0,0,0,0,0]];t.DefaultRetention$=[3,LS,yo,0,[mu,mr,ug],[0,1,1]];t.Delete$=[3,LS,Eo,0,[md,qp],[[()=>xC,{[oy]:1,[iy]:fd}],2],1];t.DeleteBucketAnalyticsConfigurationRequest$=[3,LS,yr,0,[ge,Ra,ko],[[0,1],[0,{[Og]:Ag}],[0,{[Tg]:Wy}]],2];t.DeleteBucketCorsRequest$=[3,LS,Sr,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.DeleteBucketEncryptionRequest$=[3,LS,Er,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.DeleteBucketIntelligentTieringConfigurationRequest$=[3,LS,Tr,0,[ge,Ra,ko],[[0,1],[0,{[Og]:Ag}],[0,{[Tg]:Wy}]],2];t.DeleteBucketInventoryConfigurationRequest$=[3,LS,Pr,0,[ge,Ra,ko],[[0,1],[0,{[Og]:Ag}],[0,{[Tg]:Wy}]],2];t.DeleteBucketLifecycleRequest$=[3,LS,wr,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.DeleteBucketMetadataConfigurationRequest$=[3,LS,Or,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.DeleteBucketMetadataTableConfigurationRequest$=[3,LS,_r,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.DeleteBucketMetricsConfigurationRequest$=[3,LS,kr,0,[ge,Ra,ko],[[0,1],[0,{[Og]:Ag}],[0,{[Tg]:Wy}]],2];t.DeleteBucketOwnershipControlsRequest$=[3,LS,Dr,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.DeleteBucketPolicyRequest$=[3,LS,$r,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.DeleteBucketReplicationRequest$=[3,LS,Ur,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.DeleteBucketRequest$=[3,LS,Mr,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.DeleteBucketTaggingRequest$=[3,LS,qr,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.DeleteBucketWebsiteRequest$=[3,LS,Fr,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.DeletedObject$=[3,LS,no,0,[xc,tg,Qr,Zr],[0,0,2,0]];t.DeleteMarkerEntry$=[3,LS,Yr,0,[Bu,xc,tg,Da,pl],[()=>t.Owner$,0,0,2,4]];t.DeleteMarkerReplication$=[3,LS,Jr,0,[Wm],[0]];t.DeleteObjectOutput$=[3,LS,ro,0,[Qr,tg,Zp],[[2,{[Tg]:Vy}],[0,{[Tg]:IS}],[0,{[Tg]:sS}]]];t.DeleteObjectRequest$=[3,LS,io,0,[ge,xc,Yl,tg,xm,xe,ko,La,Ma,Ua],[[0,1],[0,1],[0,{[Tg]:Gb}],[0,{[Og]:ey}],[0,{[Tg]:cS}],[2,{[Tg]:my}],[0,{[Tg]:Wy}],[0,{[Tg]:Ha}],[6,{[Tg]:qb}],[1,{[Tg]:Hb}]],2];t.DeleteObjectsOutput$=[3,LS,oo,{[iy]:bo},[xo,Zp,Zo],[[()=>iC,{[oy]:1}],[0,{[Tg]:sS}],[()=>cC,{[oy]:1,[iy]:ei}]]];t.DeleteObjectsRequest$=[3,LS,so,0,[ge,Eo,Yl,xm,xe,ko,je],[[0,1],[()=>t.Delete$,{[wg]:1,[iy]:Eo}],[0,{[Tg]:Gb}],[0,{[Tg]:cS}],[2,{[Tg]:my}],[0,{[Tg]:Wy}],[0,{[Tg]:bS}]],2];t.DeleteObjectTaggingOutput$=[3,LS,co,0,[tg],[[0,{[Tg]:IS}]]];t.DeleteObjectTaggingRequest$=[3,LS,lo,0,[ge,xc,tg,ko],[[0,1],[0,1],[0,{[Og]:ey}],[0,{[Tg]:Wy}]],2];t.DeletePublicAccessBlockRequest$=[3,LS,ho,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.Destination$=[3,LS,vo,0,[ge,i,ef,_,Ao,$m,uu],[0,0,0,()=>t.AccessControlTranslation$,()=>t.EncryptionConfiguration$,()=>t.ReplicationTime$,()=>t.Metrics$],1];t.DestinationResult$=[3,LS,So,0,[rh,nh,gh],[0,0,0]];t.Encryption$=[3,LS,Qo,0,[Ho,Oc,wc],[0,[()=>KS,0],0],1];t.EncryptionConfiguration$=[3,LS,Ao,0,[dm],[0]];t.EndEvent$=[3,LS,Do,0,[],[]];t._Error$=[3,LS,ei,0,[xc,tg,cr,du],[0,0,0,0]];t.ErrorDetails$=[3,LS,_o,0,[Io,Mo],[0,0]];t.ErrorDocument$=[3,LS,Bo,0,[xc],[0],1];t.EventBridgeConfiguration$=[3,LS,Oo,0,[],[]];t.ExistingObjectReplication$=[3,LS,jo,0,[Wm],[0],1];t.FilterRule$=[3,LS,ui,0,[fu,Zh],[0,0]];t.GetBucketAbacOutput$=[3,LS,Ti,0,[ue],[[()=>t.AbacStatus$,16]]];t.GetBucketAbacRequest$=[3,LS,wi,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.GetBucketAccelerateConfigurationOutput$=[3,LS,Si,{[iy]:d},[Wm,Zp],[0,[0,{[Tg]:sS}]]];t.GetBucketAccelerateConfigurationRequest$=[3,LS,xi,0,[ge,ko,xm],[[0,1],[0,{[Tg]:Wy}],[0,{[Tg]:cS}]],1];t.GetBucketAclOutput$=[3,LS,Ri,{[iy]:P},[Bu,gi],[()=>t.Owner$,[()=>pC,{[iy]:m}]]];t.GetBucketAclRequest$=[3,LS,Ni,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.GetBucketAnalyticsConfigurationOutput$=[3,LS,Ei,0,[L],[[()=>t.AnalyticsConfiguration$,16]]];t.GetBucketAnalyticsConfigurationRequest$=[3,LS,Pi,0,[ge,Ra,ko],[[0,1],[0,{[Og]:Ag}],[0,{[Tg]:Wy}]],2];t.GetBucketCorsOutput$=[3,LS,Ai,{[iy]:bn},[Sn],[[()=>oC,{[oy]:1,[iy]:Cn}]]];t.GetBucketCorsRequest$=[3,LS,Ii,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.GetBucketEncryptionOutput$=[3,LS,Bi,0,[If],[[()=>t.ServerSideEncryptionConfiguration$,16]]];t.GetBucketEncryptionRequest$=[3,LS,Di,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.GetBucketIntelligentTieringConfigurationOutput$=[3,LS,ji,0,[ic],[[()=>t.IntelligentTieringConfiguration$,16]]];t.GetBucketIntelligentTieringConfigurationRequest$=[3,LS,zi,0,[ge,Ra,ko],[[0,1],[0,{[Og]:Ag}],[0,{[Tg]:Wy}]],2];t.GetBucketInventoryConfigurationOutput$=[3,LS,$i,0,[wa],[[()=>t.InventoryConfiguration$,16]]];t.GetBucketInventoryConfigurationRequest$=[3,LS,Mi,0,[ge,Ra,ko],[[0,1],[0,{[Og]:Ag}],[0,{[Tg]:Wy}]],2];t.GetBucketLifecycleConfigurationOutput$=[3,LS,Fi,{[iy]:Zc},[Yp,lh],[[()=>yC,{[oy]:1,[iy]:Km}],[0,{[Tg]:AS}]]];t.GetBucketLifecycleConfigurationRequest$=[3,LS,Gi,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.GetBucketLocationOutput$=[3,LS,Vi,{[iy]:Jc},[Jc],[0]];t.GetBucketLocationRequest$=[3,LS,Wi,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.GetBucketLoggingOutput$=[3,LS,Ki,{[iy]:we},[rl],[[()=>t.LoggingEnabled$,0]]];t.GetBucketLoggingRequest$=[3,LS,Xi,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.GetBucketMetadataConfigurationOutput$=[3,LS,Ji,0,[es],[[()=>t.GetBucketMetadataConfigurationResult$,16]]];t.GetBucketMetadataConfigurationRequest$=[3,LS,ts,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.GetBucketMetadataConfigurationResult$=[3,LS,es,0,[Fl],[()=>t.MetadataConfigurationResult$],1];t.GetBucketMetadataTableConfigurationOutput$=[3,LS,is,0,[ss],[[()=>t.GetBucketMetadataTableConfigurationResult$,16]]];t.GetBucketMetadataTableConfigurationRequest$=[3,LS,as,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.GetBucketMetadataTableConfigurationResult$=[3,LS,ss,0,[ou,Wm,ei],[()=>t.MetadataTableConfigurationResult$,0,()=>t.ErrorDetails$],2];t.GetBucketMetricsConfigurationOutput$=[3,LS,Zi,0,[Gl],[[()=>t.MetricsConfiguration$,16]]];t.GetBucketMetricsConfigurationRequest$=[3,LS,ns,0,[ge,Ra,ko],[[0,1],[0,{[Og]:Ag}],[0,{[Tg]:Wy}]],2];t.GetBucketNotificationConfigurationRequest$=[3,LS,ls,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.GetBucketOwnershipControlsOutput$=[3,LS,ds,0,[$u],[[()=>t.OwnershipControls$,16]]];t.GetBucketOwnershipControlsRequest$=[3,LS,ps,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.GetBucketPolicyOutput$=[3,LS,fs,0,[Mp],[[0,16]]];t.GetBucketPolicyRequest$=[3,LS,hs,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.GetBucketPolicyStatusOutput$=[3,LS,ys,0,[Ap],[[()=>t.PolicyStatus$,16]]];t.GetBucketPolicyStatusRequest$=[3,LS,bs,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.GetBucketReplicationOutput$=[3,LS,Cs,0,[im],[[()=>t.ReplicationConfiguration$,16]]];t.GetBucketReplicationRequest$=[3,LS,vs,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.GetBucketRequestPaymentOutput$=[3,LS,xs,{[iy]:vm},[Dp],[0]];t.GetBucketRequestPaymentRequest$=[3,LS,Ps,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.GetBucketTaggingOutput$=[3,LS,Rs,{[iy]:vh},[Eh],[[()=>_C,0]],1];t.GetBucketTaggingRequest$=[3,LS,ws,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.GetBucketVersioningOutput$=[3,LS,Os,{[iy]:eg},[Wm,Jl],[0,[0,{[iy]:Wl}]]];t.GetBucketVersioningRequest$=[3,LS,ks,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.GetBucketWebsiteOutput$=[3,LS,Is,{[iy]:ig},[Jp,ka,Bo,Rm],[()=>t.RedirectAllRequestsTo$,()=>t.IndexDocument$,()=>t.ErrorDocument$,[()=>AC,0]]];t.GetBucketWebsiteRequest$=[3,LS,_s,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.GetObjectAclOutput$=[3,LS,Ms,{[iy]:P},[Bu,gi,Zp],[()=>t.Owner$,[()=>pC,{[iy]:m}],[0,{[Tg]:sS}]]];t.GetObjectAclRequest$=[3,LS,zs,0,[ge,xc,tg,xm,ko],[[0,1],[0,1],[0,{[Og]:ey}],[0,{[Tg]:cS}],[0,{[Tg]:Wy}]],2];t.GetObjectAttributesOutput$=[3,LS,Us,{[iy]:qs},[Qr,pl,tg,Zp,Vo,Ue,od,ef,sd],[[2,{[Tg]:Vy}],[4,{[Tg]:Sl}],[0,{[Tg]:IS}],[0,{[Tg]:sS}],0,()=>t.Checksum$,[()=>t.GetObjectAttributesParts$,0],0,1]];t.GetObjectAttributesParts$=[3,LS,js,0,[Ch,lp,vu,nu,rc,Ip],[[1,{[iy]:np}],0,0,1,2,[()=>NC,{[oy]:1,[iy]:_p}]]];t.GetObjectAttributesRequest$=[3,LS,Hs,0,[ge,xc,Du,tg,nu,lp,_f,Bf,Df,xm,ko],[[0,1],[0,1],[64|0,{[Tg]:Yb}],[0,{[Og]:ey}],[1,{[Tg]:Xb}],[0,{[Tg]:oS}],[0,{[Tg]:TS}],[()=>GS,{[Tg]:RS}],[0,{[Tg]:wS}],[0,{[Tg]:cS}],[0,{[Tg]:Wy}]],3];t.GetObjectLegalHoldOutput$=[3,LS,Xs,0,[ll],[[()=>t.ObjectLockLegalHold$,{[wg]:1,[iy]:ll}]]];t.GetObjectLegalHoldRequest$=[3,LS,Qs,0,[ge,xc,tg,xm,ko],[[0,1],[0,1],[0,{[Og]:ey}],[0,{[Tg]:cS}],[0,{[Tg]:Wy}]],2];t.GetObjectLockConfigurationOutput$=[3,LS,Vs,0,[Gu],[[()=>t.ObjectLockConfiguration$,16]]];t.GetObjectLockConfigurationRequest$=[3,LS,Ks,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.GetObjectOutput$=[3,LS,Ys,0,[$e,Qr,ce,wo,qm,pl,en,Vo,Ye,Je,Ze,In,_n,Bn,nn,or,ir,sr,Jn,eu,tg,Qe,zt,Kt,Yt,Nn,tr,ri,zo,lg,Of,Ml,_f,Df,Uf,ve,ef,Zp,Bm,np,oh,Qu,Ju,Xu],[[()=>WS,16],[2,{[Tg]:Vy}],[0,{[Tg]:dg}],[0,{[Tg]:Ky}],[0,{[Tg]:iS}],[4,{[Tg]:Sl}],[1,{[Tg]:Zt}],[0,{[Tg]:Vo}],[0,{[Tg]:Ey}],[0,{[Tg]:xy}],[0,{[Tg]:Py}],[0,{[Tg]:wy}],[0,{[Tg]:Ny}],[0,{[Tg]:Oy}],[0,{[Tg]:vy}],[0,{[Tg]:Hy}],[0,{[Tg]:Fy}],[0,{[Tg]:Gy}],[0,{[Tg]:zy}],[1,{[Tg]:Kb}],[0,{[Tg]:IS}],[0,{[Tg]:ot}],[0,{[Tg]:Rt}],[0,{[Tg]:Ht}],[0,{[Tg]:Jt}],[0,{[Tg]:kn}],[0,{[Tg]:Zn}],[4,{[Tg]:ri}],[0,{[Tg]:zo}],[0,{[Tg]:BS}],[0,{[Tg]:ES}],[128|0,{[Ng]:Fb}],[0,{[Tg]:TS}],[0,{[Tg]:wS}],[()=>KS,{[Tg]:xS}],[2,{[Tg]:PS}],[0,{[Tg]:yS}],[0,{[Tg]:sS}],[0,{[Tg]:uS}],[1,{[Tg]:Qb}],[1,{[Tg]:OS}],[0,{[Tg]:Zb}],[5,{[Tg]:eS}],[0,{[Tg]:Jb}]]];t.GetObjectRequest$=[3,LS,Js,0,[ge,xc,La,za,Fa,dc,zm,em,tm,nm,rm,om,am,tg,_f,Bf,Df,xm,cp,ko,mn],[[0,1],[0,1],[0,{[Tg]:Ha}],[4,{[Tg]:ja}],[0,{[Tg]:Ga}],[4,{[Tg]:pc}],[0,{[Tg]:zm}],[0,{[Og]:Hg}],[0,{[Og]:Fg}],[0,{[Og]:Gg}],[0,{[Og]:Vg}],[0,{[Og]:Kg}],[6,{[Og]:Wg}],[0,{[Og]:ey}],[0,{[Tg]:TS}],[()=>GS,{[Tg]:RS}],[0,{[Tg]:wS}],[0,{[Tg]:cS}],[1,{[Og]:zg}],[0,{[Tg]:Wy}],[0,{[Tg]:Ty}]],2];t.GetObjectRetentionOutput$=[3,LS,Zs,0,[Gm],[[()=>t.ObjectLockRetention$,{[wg]:1,[iy]:Gm}]]];t.GetObjectRetentionRequest$=[3,LS,ea,0,[ge,xc,tg,xm,ko],[[0,1],[0,1],[0,{[Og]:ey}],[0,{[Tg]:cS}],[0,{[Tg]:Wy}]],2];t.GetObjectTaggingOutput$=[3,LS,ra,{[iy]:vh},[Eh,tg],[[()=>_C,0],[0,{[Tg]:IS}]],1];t.GetObjectTaggingRequest$=[3,LS,ia,0,[ge,xc,tg,ko,xm],[[0,1],[0,1],[0,{[Og]:ey}],[0,{[Tg]:Wy}],[0,{[Tg]:cS}]],2];t.GetObjectTorrentOutput$=[3,LS,oa,0,[$e,Zp],[[()=>WS,16],[0,{[Tg]:sS}]]];t.GetObjectTorrentRequest$=[3,LS,sa,0,[ge,xc,xm,ko],[[0,1],[0,1],[0,{[Tg]:cS}],[0,{[Tg]:Wy}]],2];t.GetPublicAccessBlockOutput$=[3,LS,la,0,[gd],[[()=>t.PublicAccessBlockConfiguration$,16]]];t.GetPublicAccessBlockRequest$=[3,LS,ua,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.GlacierJobParameters$=[3,LS,Ds,0,[Th],[0],1];t.Grant$=[3,LS,ha,0,[ga,$p],[[()=>t.Grantee$,{[sy]:[ny,kg]}],0]];t.Grantee$=[3,LS,ga,0,[_h,to,No,Oa,Yh],[[0,{[ry]:1,[iy]:DS}],0,0,0,0],1];t.HeadBucketOutput$=[3,LS,ba,0,[ye,Ne,Re,Be,ie],[[0,{[Tg]:py}],[0,{[Tg]:hy}],[0,{[Tg]:fy}],[0,{[Tg]:Sy}],[2,{[Tg]:ly}]]];t.HeadBucketRequest$=[3,LS,Sa,0,[ge,ko],[[0,1],[0,{[Tg]:Wy}]],1];t.HeadObjectOutput$=[3,LS,Pa,0,[Qr,ce,wo,qm,me,pl,en,Ye,Je,Ze,In,_n,Bn,nn,or,ir,sr,Jn,Vo,eu,tg,Qe,zt,Kt,Yt,tr,Nn,ri,zo,lg,Of,Ml,_f,Df,Uf,ve,ef,Zp,Bm,np,oh,Qu,Ju,Xu],[[2,{[Tg]:Vy}],[0,{[Tg]:dg}],[0,{[Tg]:Ky}],[0,{[Tg]:iS}],[0,{[Tg]:dy}],[4,{[Tg]:Sl}],[1,{[Tg]:Zt}],[0,{[Tg]:Ey}],[0,{[Tg]:xy}],[0,{[Tg]:Py}],[0,{[Tg]:wy}],[0,{[Tg]:Ny}],[0,{[Tg]:Oy}],[0,{[Tg]:vy}],[0,{[Tg]:Hy}],[0,{[Tg]:Fy}],[0,{[Tg]:Gy}],[0,{[Tg]:zy}],[0,{[Tg]:Vo}],[1,{[Tg]:Kb}],[0,{[Tg]:IS}],[0,{[Tg]:ot}],[0,{[Tg]:Rt}],[0,{[Tg]:Ht}],[0,{[Tg]:Jt}],[0,{[Tg]:Zn}],[0,{[Tg]:kn}],[4,{[Tg]:ri}],[0,{[Tg]:zo}],[0,{[Tg]:BS}],[0,{[Tg]:ES}],[128|0,{[Ng]:Fb}],[0,{[Tg]:TS}],[0,{[Tg]:wS}],[()=>KS,{[Tg]:xS}],[2,{[Tg]:PS}],[0,{[Tg]:yS}],[0,{[Tg]:sS}],[0,{[Tg]:uS}],[1,{[Tg]:Qb}],[1,{[Tg]:OS}],[0,{[Tg]:Zb}],[5,{[Tg]:eS}],[0,{[Tg]:Jb}]]];t.HeadObjectRequest$=[3,LS,va,0,[ge,xc,La,za,Fa,dc,zm,em,tm,nm,rm,om,am,tg,_f,Bf,Df,xm,cp,ko,mn],[[0,1],[0,1],[0,{[Tg]:Ha}],[4,{[Tg]:ja}],[0,{[Tg]:Ga}],[4,{[Tg]:pc}],[0,{[Tg]:zm}],[0,{[Og]:Hg}],[0,{[Og]:Fg}],[0,{[Og]:Gg}],[0,{[Og]:Vg}],[0,{[Og]:Kg}],[6,{[Og]:Wg}],[0,{[Og]:ey}],[0,{[Tg]:TS}],[()=>GS,{[Tg]:RS}],[0,{[Tg]:wS}],[0,{[Tg]:cS}],[1,{[Og]:zg}],[0,{[Tg]:Wy}],[0,{[Tg]:Ty}]],2];t.IndexDocument$=[3,LS,ka,0,[Yf],[0],1];t.Initiator$=[3,LS,fc,0,[Oa,to],[0,0]];t.InputSerialization$=[3,LS,ec,0,[Vn,nr,gc,Bp],[()=>t.CSVInput$,0,()=>t.JSONInput$,()=>t.ParquetInput$]];t.IntelligentTieringAndOperator$=[3,LS,oc,0,[hd,Jf],[0,[()=>_C,{[oy]:1,[iy]:Ph}]]];t.IntelligentTieringConfiguration$=[3,LS,ic,0,[Ra,Wm,Rh,si],[0,0,[()=>DC,{[oy]:1,[iy]:wh}],[()=>t.IntelligentTieringFilter$,0]],3];t.IntelligentTieringFilter$=[3,LS,uc,0,[hd,Ph,he],[0,()=>t.Tag$,[()=>t.IntelligentTieringAndOperator$,0]]];t.InventoryConfiguration$=[3,LS,wa,0,[vo,Ia,Ra,Wa,Kf,si,zu],[[()=>t.InventoryDestination$,0],2,0,0,()=>t.InventorySchedule$,()=>t.InventoryFilter$,[()=>hC,0]],5];t.InventoryDestination$=[3,LS,Aa,0,[Zm],[[()=>t.InventoryS3BucketDestination$,0]],1];t.InventoryEncryption$=[3,LS,_a,0,[qf,Lf],[[()=>t.SSES3$,{[iy]:wf}],[()=>t.SSEKMS$,{[iy]:mf}]]];t.InventoryFilter$=[3,LS,Ba,0,[hd],[0],1];t.InventoryS3BucketDestination$=[3,LS,tc,0,[ge,fi,X,hd,Qo],[0,0,0,0,[()=>t.InventoryEncryption$,0]],2];t.InventorySchedule$=[3,LS,nc,0,[hi],[0],1];t.InventoryTableConfiguration$=[3,LS,lc,0,[Qn,Ao],[0,()=>t.MetadataTableEncryptionConfiguration$],1];t.InventoryTableConfigurationResult$=[3,LS,ac,0,[Qn,xh,ei,yh,Zf],[0,0,()=>t.ErrorDetails$,0,0],1];t.InventoryTableConfigurationUpdates$=[3,LS,cc,0,[Qn,Ao],[0,()=>t.MetadataTableEncryptionConfiguration$],1];t.JournalTableConfiguration$=[3,LS,Sc,0,[lm,Ao],[()=>t.RecordExpiration$,()=>t.MetadataTableEncryptionConfiguration$],1];t.JournalTableConfigurationResult$=[3,LS,Cc,0,[xh,yh,lm,ei,Zf],[0,0,()=>t.RecordExpiration$,()=>t.ErrorDetails$,0],3];t.JournalTableConfigurationUpdates$=[3,LS,Ec,0,[lm],[()=>t.RecordExpiration$],1];t.JSONInput$=[3,LS,yc,0,[_h],[0]];t.JSONOutput$=[3,LS,bc,0,[sm],[0]];t.LambdaFunctionConfiguration$=[3,LS,sl,0,[il,ti,Ra,si],[[0,{[iy]:Xt}],[64|0,{[oy]:1,[iy]:ni}],0,[()=>t.NotificationConfigurationFilter$,0]],2];t.LifecycleExpiration$=[3,LS,ol,0,[Co,mr,Uo],[5,1,2]];t.LifecycleRule$=[3,LS,_l,0,[Wm,wo,Oa,hd,si,Ah,Au,Ou,Q],[0,()=>t.LifecycleExpiration$,0,0,[()=>t.LifecycleRuleFilter$,0],[()=>$C,{[oy]:1,[iy]:Ih}],[()=>CC,{[oy]:1,[iy]:_u}],()=>t.NoncurrentVersionExpiration$,()=>t.AbortIncompleteMultipartUpload$],1];t.LifecycleRuleAndOperator$=[3,LS,Bl,0,[hd,Jf,ad,cd],[0,[()=>_C,{[oy]:1,[iy]:Ph}],1,1]];t.LifecycleRuleFilter$=[3,LS,Dl,0,[hd,Ph,ad,cd,he],[0,()=>t.Tag$,1,1,[()=>t.LifecycleRuleAndOperator$,0]]];t.ListBucketAnalyticsConfigurationsOutput$=[3,LS,$c,{[iy]:Mc},[rc,rr,yu,h],[2,0,0,[()=>ZS,{[oy]:1,[iy]:L}]]];t.ListBucketAnalyticsConfigurationsRequest$=[3,LS,Uc,0,[ge,rr,ko],[[0,1],[0,{[Og]:fg}],[0,{[Tg]:Wy}]],1];t.ListBucketIntelligentTieringConfigurationsOutput$=[3,LS,Fc,0,[rc,rr,yu,sc],[2,0,0,[()=>mC,{[oy]:1,[iy]:ic}]]];t.ListBucketIntelligentTieringConfigurationsRequest$=[3,LS,Gc,0,[ge,rr,ko],[[0,1],[0,{[Og]:fg}],[0,{[Tg]:Wy}]],1];t.ListBucketInventoryConfigurationsOutput$=[3,LS,zc,{[iy]:dl},[rr,Na,rc,yu],[0,[()=>fC,{[oy]:1,[iy]:wa}],2,0]];t.ListBucketInventoryConfigurationsRequest$=[3,LS,qc,0,[ge,rr,ko],[[0,1],[0,{[Og]:fg}],[0,{[Tg]:Wy}]],1];t.ListBucketMetricsConfigurationsOutput$=[3,LS,Kc,{[iy]:ml},[rc,rr,yu,Hl],[2,0,0,[()=>bC,{[oy]:1,[iy]:Gl}]]];t.ListBucketMetricsConfigurationsRequest$=[3,LS,Wc,0,[ge,rr,ko],[[0,1],[0,{[Og]:fg}],[0,{[Tg]:Wy}]],1];t.ListBucketsOutput$=[3,LS,Xc,{[iy]:_c},[Me,Bu,rr,hd],[[()=>eC,0],()=>t.Owner$,0,0]];t.ListBucketsRequest$=[3,LS,Qc,0,[zl,rr,hd,Be],[[1,{[Og]:Dg}],[0,{[Og]:fg}],[0,{[Og]:jg}],[0,{[Og]:pg}]]];t.ListDirectoryBucketsOutput$=[3,LS,tl,{[iy]:Bc},[Me,rr],[[()=>eC,0],0]];t.ListDirectoryBucketsRequest$=[3,LS,nl,0,[rr,Kl],[[0,{[Og]:fg}],[1,{[Og]:Lg}]]];t.ListMultipartUploadsOutput$=[3,LS,gl,{[iy]:yl},[ge,Rc,jh,Eu,hd,Po,Nu,cu,rc,Bh,wn,Ko,Zp],[0,0,0,0,0,0,0,1,2,[()=>SC,{[oy]:1,[iy]:Jh}],[()=>nC,{[oy]:1}],0,[0,{[Tg]:sS}]]];t.ListMultipartUploadsRequest$=[3,LS,bl,0,[ge,Po,Ko,Rc,cu,hd,jh,ko,xm],[[0,1],[0,{[Og]:hg}],[0,{[Og]:Cg}],[0,{[Og]:_g}],[1,{[Og]:Ug}],[0,{[Og]:jg}],[0,{[Og]:Zg}],[0,{[Tg]:Wy}],[0,{[Tg]:cS}]],1];t.ListObjectsOutput$=[3,LS,El,{[iy]:Yc},[rc,lu,xu,ur,fu,hd,Po,Zl,wn,Ko,Zp],[2,0,0,[()=>PC,{[oy]:1}],0,0,0,1,[()=>nC,{[oy]:1}],0,[0,{[Tg]:sS}]]];t.ListObjectsRequest$=[3,LS,xl,0,[ge,Po,Ko,lu,Zl,hd,xm,ko,rd],[[0,1],[0,{[Og]:hg}],[0,{[Og]:Cg}],[0,{[Og]:Bg}],[1,{[Og]:$g}],[0,{[Og]:jg}],[0,{[Tg]:cS}],[0,{[Tg]:Wy}],[64|0,{[Tg]:nS}]],1];t.ListObjectsV2Output$=[3,LS,vl,{[iy]:Yc},[rc,ur,fu,hd,Po,Zl,wn,Ko,Pc,rr,yu,Xm,Zp],[2,[()=>PC,{[oy]:1}],0,0,0,1,[()=>nC,{[oy]:1}],0,1,0,0,0,[0,{[Tg]:sS}]]];t.ListObjectsV2Request$=[3,LS,Rl,0,[ge,Po,Ko,Zl,hd,rr,li,Xm,xm,ko,rd],[[0,1],[0,{[Og]:hg}],[0,{[Og]:Cg}],[1,{[Og]:$g}],[0,{[Og]:jg}],[0,{[Og]:fg}],[2,{[Og]:Eg}],[0,{[Og]:Qg}],[0,{[Tg]:cS}],[0,{[Tg]:Wy}],[64|0,{[Tg]:nS}]],1];t.ListObjectVersionsOutput$=[3,LS,Tl,{[iy]:$l},[rc,Rc,ng,Eu,ku,rg,eo,fu,hd,Po,Zl,wn,Ko,Zp],[2,0,0,0,0,[()=>vC,{[oy]:1,[iy]:og}],[()=>sC,{[oy]:1,[iy]:Qr}],0,0,0,1,[()=>nC,{[oy]:1}],0,[0,{[Tg]:sS}]]];t.ListObjectVersionsRequest$=[3,LS,wl,0,[ge,Po,Ko,Rc,Zl,hd,ng,ko,xm,rd],[[0,1],[0,{[Og]:hg}],[0,{[Og]:Cg}],[0,{[Og]:_g}],[1,{[Og]:$g}],[0,{[Og]:jg}],[0,{[Og]:ty}],[0,{[Tg]:Wy}],[0,{[Tg]:cS}],[64|0,{[Tg]:nS}]],1];t.ListPartsOutput$=[3,LS,kl,{[iy]:Al},[j,le,ge,xc,Uh,lp,vu,nu,rc,Ip,fc,Bu,ef,Zp,je,Jn],[[4,{[Tg]:cy}],[0,{[Tg]:uy}],0,0,0,0,0,1,2,[()=>wC,{[oy]:1,[iy]:_p}],()=>t.Initiator$,()=>t.Owner$,0,[0,{[Tg]:sS}],0,0]];t.ListPartsRequest$=[3,LS,Il,0,[ge,xc,Uh,nu,lp,xm,ko,_f,Bf,Df],[[0,1],[0,1],[0,{[Og]:Jg}],[1,{[Og]:Mg}],[0,{[Og]:qg}],[0,{[Tg]:cS}],[0,{[Tg]:Wy}],[0,{[Tg]:TS}],[()=>GS,{[Tg]:RS}],[0,{[Tg]:wS}]],3];t.LocationInfo$=[3,LS,ul,0,[_h,fu],[0,0]];t.LoggingEnabled$=[3,LS,rl,0,[th,Sh,uh,bh],[0,0,[()=>BC,0],[()=>t.TargetObjectKeyFormat$,0]],2];t.MetadataConfiguration$=[3,LS,ql,0,[Sc,lc],[()=>t.JournalTableConfiguration$,()=>t.InventoryTableConfiguration$],1];t.MetadataConfigurationResult$=[3,LS,Fl,0,[So,Cc,ac],[()=>t.DestinationResult$,()=>t.JournalTableConfigurationResult$,()=>t.InventoryTableConfigurationResult$],1];t.MetadataEntry$=[3,LS,Xl,0,[fu,Zh],[0,0]];t.MetadataTableConfiguration$=[3,LS,ru,0,[Ff],[()=>t.S3TablesDestination$],1];t.MetadataTableConfigurationResult$=[3,LS,ou,0,[Gf],[()=>t.S3TablesDestinationResult$],1];t.MetadataTableEncryptionConfiguration$=[3,LS,iu,0,[Ym,Tc],[0,0],1];t.Metrics$=[3,LS,uu,0,[Wm,Wo],[0,()=>t.ReplicationTimeValue$],1];t.MetricsAndOperator$=[3,LS,Ul,0,[hd,Jf,se],[0,[()=>_C,{[oy]:1,[iy]:Ph}],0]];t.MetricsConfiguration$=[3,LS,Gl,0,[Ra,si],[0,[()=>t.MetricsFilter$,0]],1];t.MultipartUpload$=[3,LS,su,0,[Uh,xc,hc,ef,Bu,fc,je,Jn],[0,0,4,0,()=>t.Owner$,()=>t.Initiator$,0,0]];t.NoncurrentVersionExpiration$=[3,LS,Ou,0,[bu,Pu],[1,1]];t.NoncurrentVersionTransition$=[3,LS,_u,0,[bu,ef,Pu],[1,0,1]];t.NotificationConfiguration$=[3,LS,hu,0,[sh,Vp,cl,Oo],[[()=>LC,{[oy]:1,[iy]:ah}],[()=>OC,{[oy]:1,[iy]:Kp}],[()=>gC,{[oy]:1,[iy]:Qt}],()=>t.EventBridgeConfiguration$]];t.NotificationConfigurationFilter$=[3,LS,gu,0,[xc],[[()=>t.S3KeyFilter$,{[iy]:yf}]]];t._Object$=[3,LS,fd,0,[xc,pl,Vo,je,Jn,Wf,ef,Bu,Dm],[0,4,0,[64|0,{[oy]:1}],0,1,0,()=>t.Owner$,()=>t.RestoreStatus$]];t.ObjectIdentifier$=[3,LS,qu,0,[xc,tg,Vo,fl,Wf],[0,0,0,6,1],1];t.ObjectLockConfiguration$=[3,LS,Gu,0,[Vu,Km],[0,()=>t.ObjectLockRule$]];t.ObjectLockLegalHold$=[3,LS,Wu,0,[Wm],[0]];t.ObjectLockRetention$=[3,LS,Yu,0,[mu,jm],[0,5]];t.ObjectLockRule$=[3,LS,Zu,0,[yo],[()=>t.DefaultRetention$]];t.ObjectPart$=[3,LS,id,0,[cp,Wf,Ye,Je,Ze,In,_n,Bn,nn,or,ir,sr],[1,1,0,0,0,0,0,0,0,0,0,0]];t.ObjectVersion$=[3,LS,dd,0,[Vo,je,Jn,Wf,ef,xc,tg,Da,pl,Bu,Dm],[0,[64|0,{[oy]:1}],0,1,0,0,0,2,4,()=>t.Owner$,()=>t.RestoreStatus$]];t.OutputLocation$=[3,LS,Fu,0,[Vf],[[()=>t.S3Location$,0]]];t.OutputSerialization$=[3,LS,ud,0,[Vn,gc],[()=>t.CSVOutput$,()=>t.JSONOutput$]];t.Owner$=[3,LS,Bu,0,[to,Oa],[0,0]];t.OwnershipControls$=[3,LS,$u,0,[Yp],[[()=>RC,{[oy]:1,[iy]:Km}]],1];t.OwnershipControlsRule$=[3,LS,Mu,0,[nd],[0],1];t.ParquetInput$=[3,LS,sp,0,[],[]];t.Part$=[3,LS,_p,0,[cp,pl,Vo,Wf,Ye,Je,Ze,In,_n,Bn,nn,or,ir,sr],[1,4,0,1,0,0,0,0,0,0,0,0,0,0]];t.PartitionedPrefix$=[3,LS,Np,{[iy]:Np},[rp],[0]];t.PolicyStatus$=[3,LS,Ap,0,[Xa],[[2,{[iy]:Xa}]]];t.Progress$=[3,LS,Up,0,[Le,Ae,De],[1,1,1]];t.ProgressEvent$=[3,LS,ip,0,[Ro],[[()=>t.Progress$,{[bg]:1}]]];t.PublicAccessBlockConfiguration$=[3,LS,gd,0,[Ie,Qa,_e,Pm],[[2,{[iy]:Ie}],[2,{[iy]:Qa}],[2,{[iy]:_e}],[2,{[iy]:Pm}]]];t.PutBucketAbacRequest$=[3,LS,xd,0,[ge,ue,rn,je,ko],[[0,1],[()=>t.AbacStatus$,{[wg]:1,[iy]:ue}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:Wy}]],2];t.PutBucketAccelerateConfigurationRequest$=[3,LS,Sd,0,[ge,d,ko,je],[[0,1],[()=>t.AccelerateConfiguration$,{[wg]:1,[iy]:d}],[0,{[Tg]:Wy}],[0,{[Tg]:bS}]],2];t.PutBucketAclRequest$=[3,LS,Pd,0,[ge,f,P,rn,je,Bs,da,pa,ma,fa,ko],[[0,1],[0,{[Tg]:ay}],[()=>t.AccessControlPolicy$,{[wg]:1,[iy]:P}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:Lb}],[0,{[Tg]:$b}],[0,{[Tg]:Mb}],[0,{[Tg]:Ub}],[0,{[Tg]:jb}],[0,{[Tg]:Wy}]],1];t.PutBucketAnalyticsConfigurationRequest$=[3,LS,Cd,0,[ge,Ra,L,ko],[[0,1],[0,{[Og]:Ag}],[()=>t.AnalyticsConfiguration$,{[wg]:1,[iy]:L}],[0,{[Tg]:Wy}]],3];t.PutBucketCorsRequest$=[3,LS,Rd,0,[ge,bn,rn,je,ko],[[0,1],[()=>t.CORSConfiguration$,{[wg]:1,[iy]:bn}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:Wy}]],2];t.PutBucketEncryptionRequest$=[3,LS,Nd,0,[ge,If,rn,je,ko],[[0,1],[()=>t.ServerSideEncryptionConfiguration$,{[wg]:1,[iy]:If}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:Wy}]],2];t.PutBucketIntelligentTieringConfigurationRequest$=[3,LS,Id,0,[ge,Ra,ic,ko],[[0,1],[0,{[Og]:Ag}],[()=>t.IntelligentTieringConfiguration$,{[wg]:1,[iy]:ic}],[0,{[Tg]:Wy}]],3];t.PutBucketInventoryConfigurationRequest$=[3,LS,kd,0,[ge,Ra,wa,ko],[[0,1],[0,{[Og]:Ag}],[()=>t.InventoryConfiguration$,{[wg]:1,[iy]:wa}],[0,{[Tg]:Wy}]],3];t.PutBucketLifecycleConfigurationOutput$=[3,LS,Dd,0,[lh],[[0,{[Tg]:AS}]]];t.PutBucketLifecycleConfigurationRequest$=[3,LS,Ld,0,[ge,je,Zc,ko,lh],[[0,1],[0,{[Tg]:bS}],[()=>t.BucketLifecycleConfiguration$,{[wg]:1,[iy]:Zc}],[0,{[Tg]:Wy}],[0,{[Tg]:AS}]],1];t.PutBucketLoggingRequest$=[3,LS,$d,0,[ge,we,rn,je,ko],[[0,1],[()=>t.BucketLoggingStatus$,{[wg]:1,[iy]:we}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:Wy}]],2];t.PutBucketMetricsConfigurationRequest$=[3,LS,Ud,0,[ge,Ra,Gl,ko],[[0,1],[0,{[Og]:Ag}],[()=>t.MetricsConfiguration$,{[wg]:1,[iy]:Gl}],[0,{[Tg]:Wy}]],3];t.PutBucketNotificationConfigurationRequest$=[3,LS,zd,0,[ge,hu,ko,af],[[0,1],[()=>t.NotificationConfiguration$,{[wg]:1,[iy]:hu}],[0,{[Tg]:Wy}],[2,{[Tg]:SS}]],2];t.PutBucketOwnershipControlsRequest$=[3,LS,Hd,0,[ge,$u,rn,ko,je],[[0,1],[()=>t.OwnershipControls$,{[wg]:1,[iy]:$u}],[0,{[Tg]:tn}],[0,{[Tg]:Wy}],[0,{[Tg]:bS}]],2];t.PutBucketPolicyRequest$=[3,LS,Gd,0,[ge,Mp,rn,je,On,ko],[[0,1],[0,16],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[2,{[Tg]:Ry}],[0,{[Tg]:Wy}]],2];t.PutBucketReplicationRequest$=[3,LS,Xd,0,[ge,im,rn,je,Oh,ko],[[0,1],[()=>t.ReplicationConfiguration$,{[wg]:1,[iy]:im}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:by}],[0,{[Tg]:Wy}]],2];t.PutBucketRequestPaymentRequest$=[3,LS,Wd,0,[ge,vm,rn,je,ko],[[0,1],[()=>t.RequestPaymentConfiguration$,{[wg]:1,[iy]:vm}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:Wy}]],2];t.PutBucketTaggingRequest$=[3,LS,Yd,0,[ge,vh,rn,je,ko],[[0,1],[()=>t.Tagging$,{[wg]:1,[iy]:vh}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:Wy}]],2];t.PutBucketVersioningRequest$=[3,LS,Zd,0,[ge,eg,rn,je,Yl,ko],[[0,1],[()=>t.VersioningConfiguration$,{[wg]:1,[iy]:eg}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:Gb}],[0,{[Tg]:Wy}]],2];t.PutBucketWebsiteRequest$=[3,LS,tp,0,[ge,ig,rn,je,ko],[[0,1],[()=>t.WebsiteConfiguration$,{[wg]:1,[iy]:ig}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:Wy}]],2];t.PutObjectAclOutput$=[3,LS,pp,0,[Zp],[[0,{[Tg]:sS}]]];t.PutObjectAclRequest$=[3,LS,mp,0,[ge,xc,f,P,rn,je,Bs,da,pa,ma,fa,xm,tg,ko],[[0,1],[0,1],[0,{[Tg]:ay}],[()=>t.AccessControlPolicy$,{[wg]:1,[iy]:P}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:Lb}],[0,{[Tg]:$b}],[0,{[Tg]:Mb}],[0,{[Tg]:Ub}],[0,{[Tg]:jb}],[0,{[Tg]:cS}],[0,{[Og]:ey}],[0,{[Tg]:Wy}]],2];t.PutObjectLegalHoldOutput$=[3,LS,bp,0,[Zp],[[0,{[Tg]:sS}]]];t.PutObjectLegalHoldRequest$=[3,LS,Sp,0,[ge,xc,ll,xm,tg,rn,je,ko],[[0,1],[0,1],[()=>t.ObjectLockLegalHold$,{[wg]:1,[iy]:ll}],[0,{[Tg]:cS}],[0,{[Og]:ey}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:Wy}]],2];t.PutObjectLockConfigurationOutput$=[3,LS,hp,0,[Zp],[[0,{[Tg]:sS}]]];t.PutObjectLockConfigurationRequest$=[3,LS,gp,0,[ge,Gu,xm,Oh,rn,je,ko],[[0,1],[()=>t.ObjectLockConfiguration$,{[wg]:1,[iy]:Gu}],[0,{[Tg]:cS}],[0,{[Tg]:by}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:Wy}]],1];t.PutObjectOutput$=[3,LS,Cp,0,[wo,Vo,Ye,Je,Ze,In,_n,Bn,nn,or,ir,sr,Jn,Of,tg,_f,Df,Uf,Mf,ve,Wf,Zp],[[0,{[Tg]:Ky}],[0,{[Tg]:Vo}],[0,{[Tg]:Ey}],[0,{[Tg]:xy}],[0,{[Tg]:Py}],[0,{[Tg]:wy}],[0,{[Tg]:Ny}],[0,{[Tg]:Oy}],[0,{[Tg]:vy}],[0,{[Tg]:Hy}],[0,{[Tg]:Fy}],[0,{[Tg]:Gy}],[0,{[Tg]:zy}],[0,{[Tg]:ES}],[0,{[Tg]:IS}],[0,{[Tg]:TS}],[0,{[Tg]:wS}],[()=>KS,{[Tg]:xS}],[()=>VS,{[Tg]:vS}],[2,{[Tg]:PS}],[1,{[Tg]:rS}],[0,{[Tg]:sS}]]];t.PutObjectRequest$=[3,LS,Ep,0,[ge,xc,f,$e,Qe,zt,Kt,Yt,en,rn,tr,je,Ye,Je,Ze,In,_n,Bn,nn,or,ir,sr,ri,La,Fa,Bs,da,pa,fa,cg,Ml,Of,ef,lg,_f,Bf,Df,Uf,Mf,ve,xm,vh,Qu,Ju,Xu,ko],[[0,1],[0,1],[0,{[Tg]:ay}],[()=>WS,16],[0,{[Tg]:ot}],[0,{[Tg]:Rt}],[0,{[Tg]:Ht}],[0,{[Tg]:Jt}],[1,{[Tg]:Zt}],[0,{[Tg]:tn}],[0,{[Tg]:Zn}],[0,{[Tg]:bS}],[0,{[Tg]:Ey}],[0,{[Tg]:xy}],[0,{[Tg]:Py}],[0,{[Tg]:wy}],[0,{[Tg]:Ny}],[0,{[Tg]:Oy}],[0,{[Tg]:vy}],[0,{[Tg]:Hy}],[0,{[Tg]:Fy}],[0,{[Tg]:Gy}],[4,{[Tg]:ri}],[0,{[Tg]:Ha}],[0,{[Tg]:Ga}],[0,{[Tg]:Lb}],[0,{[Tg]:$b}],[0,{[Tg]:Mb}],[0,{[Tg]:jb}],[1,{[Tg]:_S}],[128|0,{[Ng]:Fb}],[0,{[Tg]:ES}],[0,{[Tg]:yS}],[0,{[Tg]:BS}],[0,{[Tg]:TS}],[()=>GS,{[Tg]:RS}],[0,{[Tg]:wS}],[()=>KS,{[Tg]:xS}],[()=>VS,{[Tg]:vS}],[2,{[Tg]:PS}],[0,{[Tg]:cS}],[0,{[Tg]:NS}],[0,{[Tg]:Zb}],[5,{[Tg]:eS}],[0,{[Tg]:Jb}],[0,{[Tg]:Wy}]],2];t.PutObjectRetentionOutput$=[3,LS,xp,0,[Zp],[[0,{[Tg]:sS}]]];t.PutObjectRetentionRequest$=[3,LS,Pp,0,[ge,xc,Gm,xm,tg,xe,rn,je,ko],[[0,1],[0,1],[()=>t.ObjectLockRetention$,{[wg]:1,[iy]:Gm}],[0,{[Tg]:cS}],[0,{[Og]:ey}],[2,{[Tg]:my}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:Wy}]],2];t.PutObjectTaggingOutput$=[3,LS,Rp,0,[tg],[[0,{[Tg]:IS}]]];t.PutObjectTaggingRequest$=[3,LS,wp,0,[ge,xc,vh,tg,rn,je,ko,xm],[[0,1],[0,1],[()=>t.Tagging$,{[wg]:1,[iy]:vh}],[0,{[Og]:ey}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:Wy}],[0,{[Tg]:cS}]],3];t.PutPublicAccessBlockRequest$=[3,LS,kp,0,[ge,gd,rn,je,ko],[[0,1],[()=>t.PublicAccessBlockConfiguration$,{[wg]:1,[iy]:gd}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:Wy}]],2];t.QueueConfiguration$=[3,LS,Kp,0,[Hp,ti,Ra,si],[[0,{[iy]:Qp}],[64|0,{[oy]:1,[iy]:ni}],0,[()=>t.NotificationConfigurationFilter$,0]],2];t.RecordExpiration$=[3,LS,lm,0,[wo,mr],[0,1],1];t.RecordsEvent$=[3,LS,um,0,[Lp],[[21,{[bg]:1}]]];t.Redirect$=[3,LS,Fm,0,[Ea,Ta,zp,pm,mm],[0,0,0,0,0]];t.RedirectAllRequestsTo$=[3,LS,Jp,0,[Ea,zp],[0,0],1];t.RenameObjectOutput$=[3,LS,gm,0,[],[]];t.RenameObjectRequest$=[3,LS,Sm,0,[ge,xc,Lm,Vr,Wr,Kr,Xr,lf,df,uf,pf,er],[[0,1],[0,1],[0,{[Tg]:dS}],[0,{[Tg]:Ha}],[0,{[Tg]:Ga}],[4,{[Tg]:ja}],[4,{[Tg]:pc}],[0,{[Tg]:pS}],[0,{[Tg]:fS}],[6,{[Tg]:mS}],[6,{[Tg]:hS}],[0,{[Tg]:qy,[Ig]:1}]],3];t.ReplicaModifications$=[3,LS,fm,0,[Wm],[0],1];t.ReplicationConfiguration$=[3,LS,im,0,[Vm,Yp],[0,[()=>kC,{[oy]:1,[iy]:Km}]],2];t.ReplicationRule$=[3,LS,Om,0,[Wm,vo,Oa,jp,hd,si,Nf,jo,Jr],[0,()=>t.Destination$,0,1,0,[()=>t.ReplicationRuleFilter$,0],()=>t.SourceSelectionCriteria$,()=>t.ExistingObjectReplication$,()=>t.DeleteMarkerReplication$],2];t.ReplicationRuleAndOperator$=[3,LS,wm,0,[hd,Jf],[0,[()=>_C,{[oy]:1,[iy]:Ph}]]];t.ReplicationRuleFilter$=[3,LS,Nm,0,[hd,Ph,he],[0,()=>t.Tag$,[()=>t.ReplicationRuleAndOperator$,0]]];t.ReplicationTime$=[3,LS,$m,0,[Wm,Nh],[0,()=>t.ReplicationTimeValue$],2];t.ReplicationTimeValue$=[3,LS,Mm,0,[pu],[1]];t.RequestPaymentConfiguration$=[3,LS,vm,0,[Dp],[0],1];t.RequestProgress$=[3,LS,Tm,0,[Yo],[2]];t.RestoreObjectOutput$=[3,LS,ym,0,[Zp,bm],[[0,{[Tg]:sS}],[0,{[Tg]:aS}]]];t.RestoreObjectRequest$=[3,LS,Cm,0,[ge,xc,tg,Im,xm,je,ko],[[0,1],[0,1],[0,{[Og]:ey}],[()=>t.RestoreRequest$,{[wg]:1,[iy]:Im}],[0,{[Tg]:cS}],[0,{[Tg]:bS}],[0,{[Tg]:Wy}]],2];t.RestoreRequest$=[3,LS,Im,0,[mr,Ds,_h,Th,To,vf,Fu],[1,()=>t.GlacierJobParameters$,0,0,0,()=>t.SelectParameters$,[()=>t.OutputLocation$,0]]];t.RestoreStatus$=[3,LS,Dm,0,[Za,cm],[2,4]];t.RoutingRule$=[3,LS,_m,0,[Fm,ar],[()=>t.Redirect$,()=>t.Condition$],1];t.S3KeyFilter$=[3,LS,gf,0,[pi],[[()=>dC,{[oy]:1,[iy]:ui}]]];t.S3Location$=[3,LS,bf,0,[ke,hd,Qo,ze,m,vh,zh,ef],[0,0,[()=>t.Encryption$,0],0,[()=>pC,0],[()=>t.Tagging$,0],[()=>MC,0],0],2];t.S3TablesDestination$=[3,LS,Ff,0,[nh,yh],[0,0],2];t.S3TablesDestinationResult$=[3,LS,Gf,0,[nh,yh,Zf,gh],[0,0,0,0],4];t.ScanRange$=[3,LS,Rf,0,[Xf,Jo],[1,1]];t.SelectObjectContentOutput$=[3,LS,xf,0,[Lp],[[()=>t.SelectObjectContentEventStream$,16]]];t.SelectObjectContentRequest$=[3,LS,Pf,0,[ge,xc,oi,Xo,ec,ud,_f,Bf,Df,Tm,Rf,ko],[[0,1],[0,1],0,0,()=>t.InputSerialization$,()=>t.OutputSerialization$,[0,{[Tg]:TS}],[()=>GS,{[Tg]:RS}],[0,{[Tg]:wS}],()=>t.RequestProgress$,()=>t.ScanRange$,[0,{[Tg]:Wy}]],6];t.SelectParameters$=[3,LS,vf,0,[ec,Xo,oi,ud],[()=>t.InputSerialization$,0,0,()=>t.OutputSerialization$],4];t.ServerSideEncryptionByDefault$=[3,LS,Af,0,[kf,kc],[0,[()=>KS,0]],1];t.ServerSideEncryptionConfiguration$=[3,LS,If,0,[Yp],[[()=>IC,{[oy]:1,[iy]:Km}]],1];t.ServerSideEncryptionRule$=[3,LS,jf,0,[pe,ve,Ee],[[()=>t.ServerSideEncryptionByDefault$,0],2,[()=>t.BlockedEncryptionTypes$,0]]];t.SessionCredentials$=[3,LS,of,0,[Y,Qm,Hf,wo],[[0,{[iy]:Y}],[()=>FS,{[iy]:Qm}],[()=>FS,{[iy]:Hf}],[4,{[iy]:wo}]],4];t.SimplePrefix$=[3,LS,Tf,{[iy]:Tf},[],[]];t.SourceSelectionCriteria$=[3,LS,Nf,0,[hf,fm],[()=>t.SseKmsEncryptedObjects$,()=>t.ReplicaModifications$]];t.SSEKMS$=[3,LS,Lf,{[iy]:mf},[vc],[[()=>KS,0]],1];t.SseKmsEncryptedObjects$=[3,LS,hf,0,[Wm],[0],1];t.SSEKMSEncryption$=[3,LS,$f,{[iy]:mf},[Nc,ve],[[()=>HS,0],2],1];t.SSES3$=[3,LS,qf,{[iy]:wf},[],[]];t.Stats$=[3,LS,Qf,0,[Le,Ae,De],[1,1,1]];t.StatsEvent$=[3,LS,cf,0,[Ro],[[()=>t.Stats$,{[bg]:1}]]];t.StorageClassAnalysis$=[3,LS,tf,0,[Gr],[()=>t.StorageClassAnalysisDataExport$]];t.StorageClassAnalysisDataExport$=[3,LS,nf,0,[ld,vo],[0,()=>t.AnalyticsExportDestination$],2];t.Tag$=[3,LS,Ph,0,[xc,Zh],[0,0],2];t.Tagging$=[3,LS,vh,0,[Eh],[[()=>_C,0]],1];t.TargetGrant$=[3,LS,dh,0,[ga,$p],[[()=>t.Grantee$,{[sy]:[ny,kg]}],0]];t.TargetObjectKeyFormat$=[3,LS,bh,0,[Tf,Np],[[()=>t.SimplePrefix$,{[iy]:Tf}],[()=>t.PartitionedPrefix$,{[iy]:Np}]]];t.Tiering$=[3,LS,wh,0,[mr,fe],[1,0],2];t.TopicConfiguration$=[3,LS,ah,0,[eh,ti,Ra,si],[[0,{[iy]:kh}],[64|0,{[oy]:1,[iy]:ni}],0,[()=>t.NotificationConfigurationFilter$,0]],2];t.Transition$=[3,LS,Ih,0,[Co,mr,ef],[5,1,0]];t.UpdateBucketMetadataInventoryTableConfigurationRequest$=[3,LS,Lh,0,[ge,lc,rn,je,ko],[[0,1],[()=>t.InventoryTableConfigurationUpdates$,{[wg]:1,[iy]:lc}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:Wy}]],2];t.UpdateBucketMetadataJournalTableConfigurationRequest$=[3,LS,Mh,0,[ge,Sc,rn,je,ko],[[0,1],[()=>t.JournalTableConfigurationUpdates$,{[wg]:1,[iy]:Sc}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:Wy}]],2];t.UpdateObjectEncryptionRequest$=[3,LS,Hh,0,[ge,xc,ju,tg,xm,ko,rn,je],[[0,1],[0,1],[()=>t.ObjectEncryption$,16],[0,{[Og]:ey}],[0,{[Tg]:cS}],[0,{[Tg]:Wy}],[0,{[Tg]:tn}],[0,{[Tg]:bS}]],3];t.UpdateObjectEncryptionResponse$=[3,LS,Fh,0,[Zp],[[0,{[Tg]:sS}]]];t.UploadPartCopyOutput$=[3,LS,Kh,0,[Kn,Tn,Of,_f,Df,Uf,ve,Zp],[[0,{[Tg]:jy}],[()=>t.CopyPartResult$,16],[0,{[Tg]:ES}],[0,{[Tg]:TS}],[0,{[Tg]:wS}],[()=>KS,{[Tg]:xS}],[2,{[Tg]:PS}],[0,{[Tg]:sS}]]];t.UploadPartCopyRequest$=[3,LS,Wh,0,[ge,An,xc,cp,Uh,Dn,Ln,$n,Mn,zn,_f,Bf,Df,Hn,Fn,Gn,xm,ko,qo],[[0,1],[0,{[Tg]:ky}],[0,1],[1,{[Og]:zg}],[0,{[Og]:Jg}],[0,{[Tg]:Ay}],[4,{[Tg]:Iy}],[0,{[Tg]:_y}],[4,{[Tg]:By}],[0,{[Tg]:Ly}],[0,{[Tg]:TS}],[()=>GS,{[Tg]:RS}],[0,{[Tg]:wS}],[0,{[Tg]:$y}],[()=>qS,{[Tg]:My}],[0,{[Tg]:Uy}],[0,{[Tg]:cS}],[0,{[Tg]:Wy}],[0,{[Tg]:CS}]],5];t.UploadPartOutput$=[3,LS,Xh,0,[Of,Vo,Ye,Je,Ze,In,_n,Bn,nn,or,ir,sr,_f,Df,Uf,ve,Zp],[[0,{[Tg]:ES}],[0,{[Tg]:Vo}],[0,{[Tg]:Ey}],[0,{[Tg]:xy}],[0,{[Tg]:Py}],[0,{[Tg]:wy}],[0,{[Tg]:Ny}],[0,{[Tg]:Oy}],[0,{[Tg]:vy}],[0,{[Tg]:Hy}],[0,{[Tg]:Fy}],[0,{[Tg]:Gy}],[0,{[Tg]:TS}],[0,{[Tg]:wS}],[()=>KS,{[Tg]:xS}],[2,{[Tg]:PS}],[0,{[Tg]:sS}]]];t.UploadPartRequest$=[3,LS,Qh,0,[ge,xc,cp,Uh,$e,en,rn,je,Ye,Je,Ze,In,_n,Bn,nn,or,ir,sr,_f,Bf,Df,xm,ko],[[0,1],[0,1],[1,{[Og]:zg}],[0,{[Og]:Jg}],[()=>WS,16],[1,{[Tg]:Zt}],[0,{[Tg]:tn}],[0,{[Tg]:bS}],[0,{[Tg]:Ey}],[0,{[Tg]:xy}],[0,{[Tg]:Py}],[0,{[Tg]:wy}],[0,{[Tg]:Ny}],[0,{[Tg]:Oy}],[0,{[Tg]:vy}],[0,{[Tg]:Hy}],[0,{[Tg]:Fy}],[0,{[Tg]:Gy}],[0,{[Tg]:TS}],[()=>GS,{[Tg]:RS}],[0,{[Tg]:wS}],[0,{[Tg]:cS}],[0,{[Tg]:Wy}]],4];t.VersioningConfiguration$=[3,LS,eg,0,[Jl,Wm],[[0,{[iy]:Wl}],0]];t.WebsiteConfiguration$=[3,LS,ig,0,[Bo,ka,Jp,Rm],[()=>t.ErrorDocument$,()=>t.IndexDocument$,()=>t.RedirectAllRequestsTo$,[()=>AC,0]]];t.WriteGetObjectResponseRequest$=[3,LS,ag,0,[Am,Um,$e,sf,Io,Mo,ce,Qe,zt,Kt,Yt,en,Nn,tr,Ye,Je,Ze,In,_n,Bn,nn,or,ir,sr,Qr,Vo,ri,wo,pl,eu,Ml,Qu,Xu,Ju,np,Bm,Zp,qm,Of,_f,Uf,Df,ef,oh,tg,ve],[[0,{[Rg]:1,[Tg]:lS}],[0,{[Tg]:gS}],[()=>WS,16],[1,{[Tg]:Db}],[0,{[Tg]:Xy}],[0,{[Tg]:Qy}],[0,{[Tg]:sb}],[0,{[Tg]:Yy}],[0,{[Tg]:Jy}],[0,{[Tg]:Zy}],[0,{[Tg]:eb}],[1,{[Tg]:Zt}],[0,{[Tg]:tb}],[0,{[Tg]:nb}],[0,{[Tg]:ab}],[0,{[Tg]:cb}],[0,{[Tg]:lb}],[0,{[Tg]:db}],[0,{[Tg]:pb}],[0,{[Tg]:mb}],[0,{[Tg]:ub}],[0,{[Tg]:fb}],[0,{[Tg]:hb}],[0,{[Tg]:gb}],[2,{[Tg]:yb}],[0,{[Tg]:rb}],[4,{[Tg]:ob}],[0,{[Tg]:bb}],[4,{[Tg]:ib}],[1,{[Tg]:Sb}],[128|0,{[Ng]:Fb}],[0,{[Tg]:xb}],[0,{[Tg]:Eb}],[5,{[Tg]:Pb}],[1,{[Tg]:Cb}],[0,{[Tg]:Rb}],[0,{[Tg]:Tb}],[0,{[Tg]:vb}],[0,{[Tg]:Nb}],[0,{[Tg]:Ab}],[()=>KS,{[Tg]:Ob}],[0,{[Tg]:Ib}],[0,{[Tg]:wb}],[1,{[Tg]:_b}],[0,{[Tg]:Bb}],[2,{[Tg]:kb}]],2];var XS="unit";var QS=null&&64|0;var YS=null&&64|0;var JS=null&&64|0;var ZS=[1,LS,h,0,[()=>t.AnalyticsConfiguration$,0]];var eC=[1,LS,Me,0,[()=>t.Bucket$,{[iy]:ge}]];var tC=null&&64|0;var nC=[1,LS,Pn,0,()=>t.CommonPrefix$];var rC=[1,LS,vn,0,()=>t.CompletedPart$];var oC=[1,LS,Sn,0,[()=>t.CORSRule$,0]];var iC=[1,LS,uo,0,()=>t.DeletedObject$];var sC=[1,LS,eo,0,()=>t.DeleteMarkerEntry$];var aC=[1,LS,Fo,0,[0,{[iy]:Ho}]];var cC=[1,LS,Zo,0,()=>t._Error$];var lC=null&&64|0;var uC=null&&64|0;var dC=[1,LS,di,0,()=>t.FilterRule$];var pC=[1,LS,gi,0,[()=>t.Grant$,{[iy]:ha}]];var mC=[1,LS,sc,0,[()=>t.IntelligentTieringConfiguration$,0]];var fC=[1,LS,Na,0,[()=>t.InventoryConfiguration$,0]];var hC=[1,LS,Va,0,[0,{[iy]:mi}]];var gC=[1,LS,al,0,[()=>t.LambdaFunctionConfiguration$,0]];var yC=[1,LS,Ll,0,[()=>t.LifecycleRule$,0]];var bC=[1,LS,Hl,0,[()=>t.MetricsConfiguration$,0]];var SC=[1,LS,au,0,()=>t.MultipartUpload$];var CC=[1,LS,Iu,0,()=>t.NoncurrentVersionTransition$];var EC=null&&64|0;var xC=[1,LS,Hu,0,()=>t.ObjectIdentifier$];var PC=[1,LS,ed,0,[()=>t._Object$,0]];var vC=[1,LS,pd,0,[()=>t.ObjectVersion$,0]];var TC=null&&64|0;var RC=[1,LS,Uu,0,()=>t.OwnershipControlsRule$];var wC=[1,LS,Ip,0,()=>t.Part$];var NC=[1,LS,ap,0,()=>t.ObjectPart$];var OC=[1,LS,Gp,0,[()=>t.QueueConfiguration$,0]];var kC=[1,LS,km,0,[()=>t.ReplicationRule$,0]];var AC=[1,LS,Rm,0,[()=>t.RoutingRule$,{[iy]:_m}]];var IC=[1,LS,zf,0,[()=>t.ServerSideEncryptionRule$,0]];var _C=[1,LS,Eh,0,[()=>t.Tag$,{[iy]:Ph}]];var BC=[1,LS,uh,0,[()=>t.TargetGrant$,{[iy]:ha}]];var DC=[1,LS,ph,0,()=>t.Tiering$];var LC=[1,LS,ih,0,[()=>t.TopicConfiguration$,0]];var $C=[1,LS,mh,0,()=>t.Transition$];var MC=[1,LS,zh,0,[()=>t.MetadataEntry$,{[iy]:Xl}]];var UC=null&&128|0;t.AnalyticsFilter$=[4,LS,V,0,[hd,Ph,he],[0,()=>t.Tag$,[()=>t.AnalyticsAndOperator$,0]]];t.MetricsFilter$=[4,LS,Ql,0,[hd,Ph,se,he],[0,()=>t.Tag$,0,[()=>t.MetricsAndOperator$,0]]];t.ObjectEncryption$=[4,LS,ju,0,[Lf],[[()=>t.SSEKMSEncryption$,{[iy]:mf}]]];t.SelectObjectContentEventStream$=[4,LS,Ef,{[Yg]:1},[Hm,Qf,Up,dr,Jo],[[()=>t.RecordsEvent$,0],[()=>t.StatsEvent$,0],[()=>t.ProgressEvent$,0],()=>t.ContinuationEvent$,()=>t.EndEvent$]];t.AbortMultipartUpload$=[9,LS,Z,{[xg]:["DELETE","/{Key+}?x-id=AbortMultipartUpload",204]},()=>t.AbortMultipartUploadRequest$,()=>t.AbortMultipartUploadOutput$];t.CompleteMultipartUpload$=[9,LS,dn,{[xg]:["POST","/{Key+}",200]},()=>t.CompleteMultipartUploadRequest$,()=>t.CompleteMultipartUploadOutput$];t.CopyObject$=[9,LS,hn,{[xg]:["PUT","/{Key+}?x-id=CopyObject",200]},()=>t.CopyObjectRequest$,()=>t.CopyObjectOutput$];t.CreateBucket$=[9,LS,qe,{[xg]:["PUT","/",200]},()=>t.CreateBucketRequest$,()=>t.CreateBucketOutput$];t.CreateBucketMetadataConfiguration$=[9,LS,Fe,{[Pg]:"-",[xg]:["POST","/?metadataConfiguration",200]},()=>t.CreateBucketMetadataConfigurationRequest$,()=>XS];t.CreateBucketMetadataTableConfiguration$=[9,LS,Ve,{[Pg]:"-",[xg]:["POST","/?metadataTable",200]},()=>t.CreateBucketMetadataTableConfigurationRequest$,()=>XS];t.CreateMultipartUpload$=[9,LS,pn,{[xg]:["POST","/{Key+}?uploads",200]},()=>t.CreateMultipartUploadRequest$,()=>t.CreateMultipartUploadOutput$];t.CreateSession$=[9,LS,Yn,{[xg]:["GET","/?session",200]},()=>t.CreateSessionRequest$,()=>t.CreateSessionOutput$];t.DeleteBucket$=[9,LS,hr,{[xg]:["DELETE","/",204]},()=>t.DeleteBucketRequest$,()=>XS];t.DeleteBucketAnalyticsConfiguration$=[9,LS,gr,{[xg]:["DELETE","/?analytics",204]},()=>t.DeleteBucketAnalyticsConfigurationRequest$,()=>XS];t.DeleteBucketCors$=[9,LS,br,{[xg]:["DELETE","/?cors",204]},()=>t.DeleteBucketCorsRequest$,()=>XS];t.DeleteBucketEncryption$=[9,LS,Cr,{[xg]:["DELETE","/?encryption",204]},()=>t.DeleteBucketEncryptionRequest$,()=>XS];t.DeleteBucketIntelligentTieringConfiguration$=[9,LS,vr,{[xg]:["DELETE","/?intelligent-tiering",204]},()=>t.DeleteBucketIntelligentTieringConfigurationRequest$,()=>XS];t.DeleteBucketInventoryConfiguration$=[9,LS,xr,{[xg]:["DELETE","/?inventory",204]},()=>t.DeleteBucketInventoryConfigurationRequest$,()=>XS];t.DeleteBucketLifecycle$=[9,LS,Rr,{[xg]:["DELETE","/?lifecycle",204]},()=>t.DeleteBucketLifecycleRequest$,()=>XS];t.DeleteBucketMetadataConfiguration$=[9,LS,Nr,{[xg]:["DELETE","/?metadataConfiguration",204]},()=>t.DeleteBucketMetadataConfigurationRequest$,()=>XS];t.DeleteBucketMetadataTableConfiguration$=[9,LS,Ir,{[xg]:["DELETE","/?metadataTable",204]},()=>t.DeleteBucketMetadataTableConfigurationRequest$,()=>XS];t.DeleteBucketMetricsConfiguration$=[9,LS,Ar,{[xg]:["DELETE","/?metrics",204]},()=>t.DeleteBucketMetricsConfigurationRequest$,()=>XS];t.DeleteBucketOwnershipControls$=[9,LS,Br,{[xg]:["DELETE","/?ownershipControls",204]},()=>t.DeleteBucketOwnershipControlsRequest$,()=>XS];t.DeleteBucketPolicy$=[9,LS,Lr,{[xg]:["DELETE","/?policy",204]},()=>t.DeleteBucketPolicyRequest$,()=>XS];t.DeleteBucketReplication$=[9,LS,jr,{[xg]:["DELETE","/?replication",204]},()=>t.DeleteBucketReplicationRequest$,()=>XS];t.DeleteBucketTagging$=[9,LS,zr,{[xg]:["DELETE","/?tagging",204]},()=>t.DeleteBucketTaggingRequest$,()=>XS];t.DeleteBucketWebsite$=[9,LS,Hr,{[xg]:["DELETE","/?website",204]},()=>t.DeleteBucketWebsiteRequest$,()=>XS];t.DeleteObject$=[9,LS,po,{[xg]:["DELETE","/{Key+}?x-id=DeleteObject",204]},()=>t.DeleteObjectRequest$,()=>t.DeleteObjectOutput$];t.DeleteObjects$=[9,LS,mo,{[Pg]:"-",[xg]:["POST","/?delete",200]},()=>t.DeleteObjectsRequest$,()=>t.DeleteObjectsOutput$];t.DeleteObjectTagging$=[9,LS,ao,{[xg]:["DELETE","/{Key+}?tagging",204]},()=>t.DeleteObjectTaggingRequest$,()=>t.DeleteObjectTaggingOutput$];t.DeletePublicAccessBlock$=[9,LS,fo,{[xg]:["DELETE","/?publicAccessBlock",204]},()=>t.DeletePublicAccessBlockRequest$,()=>XS];t.GetBucketAbac$=[9,LS,yi,{[xg]:["GET","/?abac",200]},()=>t.GetBucketAbacRequest$,()=>t.GetBucketAbacOutput$];t.GetBucketAccelerateConfiguration$=[9,LS,bi,{[xg]:["GET","/?accelerate",200]},()=>t.GetBucketAccelerateConfigurationRequest$,()=>t.GetBucketAccelerateConfigurationOutput$];t.GetBucketAcl$=[9,LS,Oi,{[xg]:["GET","/?acl",200]},()=>t.GetBucketAclRequest$,()=>t.GetBucketAclOutput$];t.GetBucketAnalyticsConfiguration$=[9,LS,vi,{[xg]:["GET","/?analytics&x-id=GetBucketAnalyticsConfiguration",200]},()=>t.GetBucketAnalyticsConfigurationRequest$,()=>t.GetBucketAnalyticsConfigurationOutput$];t.GetBucketCors$=[9,LS,ki,{[xg]:["GET","/?cors",200]},()=>t.GetBucketCorsRequest$,()=>t.GetBucketCorsOutput$];t.GetBucketEncryption$=[9,LS,_i,{[xg]:["GET","/?encryption",200]},()=>t.GetBucketEncryptionRequest$,()=>t.GetBucketEncryptionOutput$];t.GetBucketIntelligentTieringConfiguration$=[9,LS,Ui,{[xg]:["GET","/?intelligent-tiering&x-id=GetBucketIntelligentTieringConfiguration",200]},()=>t.GetBucketIntelligentTieringConfigurationRequest$,()=>t.GetBucketIntelligentTieringConfigurationOutput$];t.GetBucketInventoryConfiguration$=[9,LS,Li,{[xg]:["GET","/?inventory&x-id=GetBucketInventoryConfiguration",200]},()=>t.GetBucketInventoryConfigurationRequest$,()=>t.GetBucketInventoryConfigurationOutput$];t.GetBucketLifecycleConfiguration$=[9,LS,Hi,{[xg]:["GET","/?lifecycle",200]},()=>t.GetBucketLifecycleConfigurationRequest$,()=>t.GetBucketLifecycleConfigurationOutput$];t.GetBucketLocation$=[9,LS,qi,{[xg]:["GET","/?location",200]},()=>t.GetBucketLocationRequest$,()=>t.GetBucketLocationOutput$];t.GetBucketLogging$=[9,LS,Qi,{[xg]:["GET","/?logging",200]},()=>t.GetBucketLoggingRequest$,()=>t.GetBucketLoggingOutput$];t.GetBucketMetadataConfiguration$=[9,LS,Yi,{[xg]:["GET","/?metadataConfiguration",200]},()=>t.GetBucketMetadataConfigurationRequest$,()=>t.GetBucketMetadataConfigurationOutput$];t.GetBucketMetadataTableConfiguration$=[9,LS,os,{[xg]:["GET","/?metadataTable",200]},()=>t.GetBucketMetadataTableConfigurationRequest$,()=>t.GetBucketMetadataTableConfigurationOutput$];t.GetBucketMetricsConfiguration$=[9,LS,rs,{[xg]:["GET","/?metrics&x-id=GetBucketMetricsConfiguration",200]},()=>t.GetBucketMetricsConfigurationRequest$,()=>t.GetBucketMetricsConfigurationOutput$];t.GetBucketNotificationConfiguration$=[9,LS,cs,{[xg]:["GET","/?notification",200]},()=>t.GetBucketNotificationConfigurationRequest$,()=>t.NotificationConfiguration$];t.GetBucketOwnershipControls$=[9,LS,us,{[xg]:["GET","/?ownershipControls",200]},()=>t.GetBucketOwnershipControlsRequest$,()=>t.GetBucketOwnershipControlsOutput$];t.GetBucketPolicy$=[9,LS,ms,{[xg]:["GET","/?policy",200]},()=>t.GetBucketPolicyRequest$,()=>t.GetBucketPolicyOutput$];t.GetBucketPolicyStatus$=[9,LS,gs,{[xg]:["GET","/?policyStatus",200]},()=>t.GetBucketPolicyStatusRequest$,()=>t.GetBucketPolicyStatusOutput$];t.GetBucketReplication$=[9,LS,Ss,{[xg]:["GET","/?replication",200]},()=>t.GetBucketReplicationRequest$,()=>t.GetBucketReplicationOutput$];t.GetBucketRequestPayment$=[9,LS,Es,{[xg]:["GET","/?requestPayment",200]},()=>t.GetBucketRequestPaymentRequest$,()=>t.GetBucketRequestPaymentOutput$];t.GetBucketTagging$=[9,LS,Ts,{[xg]:["GET","/?tagging",200]},()=>t.GetBucketTaggingRequest$,()=>t.GetBucketTaggingOutput$];t.GetBucketVersioning$=[9,LS,Ns,{[xg]:["GET","/?versioning",200]},()=>t.GetBucketVersioningRequest$,()=>t.GetBucketVersioningOutput$];t.GetBucketWebsite$=[9,LS,As,{[xg]:["GET","/?website",200]},()=>t.GetBucketWebsiteRequest$,()=>t.GetBucketWebsiteOutput$];t.GetObject$=[9,LS,Ls,{[Pg]:"-",[xg]:["GET","/{Key+}?x-id=GetObject",200]},()=>t.GetObjectRequest$,()=>t.GetObjectOutput$];t.GetObjectAcl$=[9,LS,$s,{[xg]:["GET","/{Key+}?acl",200]},()=>t.GetObjectAclRequest$,()=>t.GetObjectAclOutput$];t.GetObjectAttributes$=[9,LS,Fs,{[xg]:["GET","/{Key+}?attributes",200]},()=>t.GetObjectAttributesRequest$,()=>t.GetObjectAttributesOutput$];t.GetObjectLegalHold$=[9,LS,Ws,{[xg]:["GET","/{Key+}?legal-hold",200]},()=>t.GetObjectLegalHoldRequest$,()=>t.GetObjectLegalHoldOutput$];t.GetObjectLockConfiguration$=[9,LS,Gs,{[xg]:["GET","/?object-lock",200]},()=>t.GetObjectLockConfigurationRequest$,()=>t.GetObjectLockConfigurationOutput$];t.GetObjectRetention$=[9,LS,ta,{[xg]:["GET","/{Key+}?retention",200]},()=>t.GetObjectRetentionRequest$,()=>t.GetObjectRetentionOutput$];t.GetObjectTagging$=[9,LS,na,{[xg]:["GET","/{Key+}?tagging",200]},()=>t.GetObjectTaggingRequest$,()=>t.GetObjectTaggingOutput$];t.GetObjectTorrent$=[9,LS,aa,{[xg]:["GET","/{Key+}?torrent",200]},()=>t.GetObjectTorrentRequest$,()=>t.GetObjectTorrentOutput$];t.GetPublicAccessBlock$=[9,LS,ca,{[xg]:["GET","/?publicAccessBlock",200]},()=>t.GetPublicAccessBlockRequest$,()=>t.GetPublicAccessBlockOutput$];t.HeadBucket$=[9,LS,ya,{[xg]:["HEAD","/",200]},()=>t.HeadBucketRequest$,()=>t.HeadBucketOutput$];t.HeadObject$=[9,LS,xa,{[xg]:["HEAD","/{Key+}",200]},()=>t.HeadObjectRequest$,()=>t.HeadObjectOutput$];t.ListBucketAnalyticsConfigurations$=[9,LS,Lc,{[xg]:["GET","/?analytics&x-id=ListBucketAnalyticsConfigurations",200]},()=>t.ListBucketAnalyticsConfigurationsRequest$,()=>t.ListBucketAnalyticsConfigurationsOutput$];t.ListBucketIntelligentTieringConfigurations$=[9,LS,Hc,{[xg]:["GET","/?intelligent-tiering&x-id=ListBucketIntelligentTieringConfigurations",200]},()=>t.ListBucketIntelligentTieringConfigurationsRequest$,()=>t.ListBucketIntelligentTieringConfigurationsOutput$];t.ListBucketInventoryConfigurations$=[9,LS,jc,{[xg]:["GET","/?inventory&x-id=ListBucketInventoryConfigurations",200]},()=>t.ListBucketInventoryConfigurationsRequest$,()=>t.ListBucketInventoryConfigurationsOutput$];t.ListBucketMetricsConfigurations$=[9,LS,Vc,{[xg]:["GET","/?metrics&x-id=ListBucketMetricsConfigurations",200]},()=>t.ListBucketMetricsConfigurationsRequest$,()=>t.ListBucketMetricsConfigurationsOutput$];t.ListBuckets$=[9,LS,Dc,{[xg]:["GET","/?x-id=ListBuckets",200]},()=>t.ListBucketsRequest$,()=>t.ListBucketsOutput$];t.ListDirectoryBuckets$=[9,LS,el,{[xg]:["GET","/?x-id=ListDirectoryBuckets",200]},()=>t.ListDirectoryBucketsRequest$,()=>t.ListDirectoryBucketsOutput$];t.ListMultipartUploads$=[9,LS,hl,{[xg]:["GET","/?uploads",200]},()=>t.ListMultipartUploadsRequest$,()=>t.ListMultipartUploadsOutput$];t.ListObjects$=[9,LS,Cl,{[xg]:["GET","/",200]},()=>t.ListObjectsRequest$,()=>t.ListObjectsOutput$];t.ListObjectsV2$=[9,LS,Pl,{[xg]:["GET","/?list-type=2",200]},()=>t.ListObjectsV2Request$,()=>t.ListObjectsV2Output$];t.ListObjectVersions$=[9,LS,Nl,{[xg]:["GET","/?versions",200]},()=>t.ListObjectVersionsRequest$,()=>t.ListObjectVersionsOutput$];t.ListParts$=[9,LS,Ol,{[xg]:["GET","/{Key+}?x-id=ListParts",200]},()=>t.ListPartsRequest$,()=>t.ListPartsOutput$];t.PutBucketAbac$=[9,LS,yd,{[Pg]:"-",[xg]:["PUT","/?abac",200]},()=>t.PutBucketAbacRequest$,()=>XS];t.PutBucketAccelerateConfiguration$=[9,LS,bd,{[Pg]:"-",[xg]:["PUT","/?accelerate",200]},()=>t.PutBucketAccelerateConfigurationRequest$,()=>XS];t.PutBucketAcl$=[9,LS,vd,{[Pg]:"-",[xg]:["PUT","/?acl",200]},()=>t.PutBucketAclRequest$,()=>XS];t.PutBucketAnalyticsConfiguration$=[9,LS,Ed,{[xg]:["PUT","/?analytics",200]},()=>t.PutBucketAnalyticsConfigurationRequest$,()=>XS];t.PutBucketCors$=[9,LS,Td,{[Pg]:"-",[xg]:["PUT","/?cors",200]},()=>t.PutBucketCorsRequest$,()=>XS];t.PutBucketEncryption$=[9,LS,wd,{[Pg]:"-",[xg]:["PUT","/?encryption",200]},()=>t.PutBucketEncryptionRequest$,()=>XS];t.PutBucketIntelligentTieringConfiguration$=[9,LS,Ad,{[xg]:["PUT","/?intelligent-tiering",200]},()=>t.PutBucketIntelligentTieringConfigurationRequest$,()=>XS];t.PutBucketInventoryConfiguration$=[9,LS,Od,{[xg]:["PUT","/?inventory",200]},()=>t.PutBucketInventoryConfigurationRequest$,()=>XS];t.PutBucketLifecycleConfiguration$=[9,LS,Bd,{[Pg]:"-",[xg]:["PUT","/?lifecycle",200]},()=>t.PutBucketLifecycleConfigurationRequest$,()=>t.PutBucketLifecycleConfigurationOutput$];t.PutBucketLogging$=[9,LS,_d,{[Pg]:"-",[xg]:["PUT","/?logging",200]},()=>t.PutBucketLoggingRequest$,()=>XS];t.PutBucketMetricsConfiguration$=[9,LS,Md,{[xg]:["PUT","/?metrics",200]},()=>t.PutBucketMetricsConfigurationRequest$,()=>XS];t.PutBucketNotificationConfiguration$=[9,LS,jd,{[xg]:["PUT","/?notification",200]},()=>t.PutBucketNotificationConfigurationRequest$,()=>XS];t.PutBucketOwnershipControls$=[9,LS,qd,{[Pg]:"-",[xg]:["PUT","/?ownershipControls",200]},()=>t.PutBucketOwnershipControlsRequest$,()=>XS];t.PutBucketPolicy$=[9,LS,Fd,{[Pg]:"-",[xg]:["PUT","/?policy",200]},()=>t.PutBucketPolicyRequest$,()=>XS];t.PutBucketReplication$=[9,LS,Vd,{[Pg]:"-",[xg]:["PUT","/?replication",200]},()=>t.PutBucketReplicationRequest$,()=>XS];t.PutBucketRequestPayment$=[9,LS,Kd,{[Pg]:"-",[xg]:["PUT","/?requestPayment",200]},()=>t.PutBucketRequestPaymentRequest$,()=>XS];t.PutBucketTagging$=[9,LS,Qd,{[Pg]:"-",[xg]:["PUT","/?tagging",200]},()=>t.PutBucketTaggingRequest$,()=>XS];t.PutBucketVersioning$=[9,LS,Jd,{[Pg]:"-",[xg]:["PUT","/?versioning",200]},()=>t.PutBucketVersioningRequest$,()=>XS];t.PutBucketWebsite$=[9,LS,ep,{[Pg]:"-",[xg]:["PUT","/?website",200]},()=>t.PutBucketWebsiteRequest$,()=>XS];t.PutObject$=[9,LS,up,{[Pg]:"-",[xg]:["PUT","/{Key+}?x-id=PutObject",200]},()=>t.PutObjectRequest$,()=>t.PutObjectOutput$];t.PutObjectAcl$=[9,LS,dp,{[Pg]:"-",[xg]:["PUT","/{Key+}?acl",200]},()=>t.PutObjectAclRequest$,()=>t.PutObjectAclOutput$];t.PutObjectLegalHold$=[9,LS,yp,{[Pg]:"-",[xg]:["PUT","/{Key+}?legal-hold",200]},()=>t.PutObjectLegalHoldRequest$,()=>t.PutObjectLegalHoldOutput$];t.PutObjectLockConfiguration$=[9,LS,fp,{[Pg]:"-",[xg]:["PUT","/?object-lock",200]},()=>t.PutObjectLockConfigurationRequest$,()=>t.PutObjectLockConfigurationOutput$];t.PutObjectRetention$=[9,LS,vp,{[Pg]:"-",[xg]:["PUT","/{Key+}?retention",200]},()=>t.PutObjectRetentionRequest$,()=>t.PutObjectRetentionOutput$];t.PutObjectTagging$=[9,LS,Tp,{[Pg]:"-",[xg]:["PUT","/{Key+}?tagging",200]},()=>t.PutObjectTaggingRequest$,()=>t.PutObjectTaggingOutput$];t.PutPublicAccessBlock$=[9,LS,Op,{[Pg]:"-",[xg]:["PUT","/?publicAccessBlock",200]},()=>t.PutPublicAccessBlockRequest$,()=>XS];t.RenameObject$=[9,LS,hm,{[xg]:["PUT","/{Key+}?renameObject",200]},()=>t.RenameObjectRequest$,()=>t.RenameObjectOutput$];t.RestoreObject$=[9,LS,Em,{[Pg]:"-",[xg]:["POST","/{Key+}?restore",200]},()=>t.RestoreObjectRequest$,()=>t.RestoreObjectOutput$];t.SelectObjectContent$=[9,LS,Cf,{[xg]:["POST","/{Key+}?select&select-type=2",200]},()=>t.SelectObjectContentRequest$,()=>t.SelectObjectContentOutput$];t.UpdateBucketMetadataInventoryTableConfiguration$=[9,LS,Dh,{[Pg]:"-",[xg]:["PUT","/?metadataInventoryTable",200]},()=>t.UpdateBucketMetadataInventoryTableConfigurationRequest$,()=>XS];t.UpdateBucketMetadataJournalTableConfiguration$=[9,LS,$h,{[Pg]:"-",[xg]:["PUT","/?metadataJournalTable",200]},()=>t.UpdateBucketMetadataJournalTableConfigurationRequest$,()=>XS];t.UpdateObjectEncryption$=[9,LS,qh,{[Pg]:"-",[xg]:["PUT","/{Key+}?encryption",200]},()=>t.UpdateObjectEncryptionRequest$,()=>t.UpdateObjectEncryptionResponse$];t.UploadPart$=[9,LS,Gh,{[Pg]:"-",[xg]:["PUT","/{Key+}?x-id=UploadPart",200]},()=>t.UploadPartRequest$,()=>t.UploadPartOutput$];t.UploadPartCopy$=[9,LS,Vh,{[xg]:["PUT","/{Key+}?x-id=UploadPartCopy",200]},()=>t.UploadPartCopyRequest$,()=>t.UploadPartCopyOutput$];t.WriteGetObjectResponse$=[9,LS,sg,{[Sg]:["{RequestRoute}."],[xg]:["POST","/WriteGetObjectResponse",200]},()=>t.WriteGetObjectResponseRequest$,()=>XS]},59950:(e,t,o)=>{"use strict";var i=o(92658);const a="preferred";const d=["disabled","preferred","required"];function validateAccountIdEndpointMode(e){return d.includes(e)}const resolveAccountIdEndpointModeConfig=e=>{const{accountIdEndpointMode:t}=e;const o=i.normalizeProvider(t??a);return Object.assign(e,{accountIdEndpointMode:async()=>{const e=await o();if(!validateAccountIdEndpointMode(e)){throw new Error(`Invalid value for accountIdEndpointMode: ${e}. Valid values are: "required", "preferred", "disabled".`)}return e}})};const m="Invalid AccountIdEndpointMode value";const _throw=e=>{throw new Error(e)};const f="AWS_ACCOUNT_ID_ENDPOINT_MODE";const h="account_id_endpoint_mode";const P={environmentVariableSelector:e=>{const t=e[f];if(t&&!validateAccountIdEndpointMode(t)){_throw(m)}return t},configFileSelector:e=>{const t=e[h];if(t&&!validateAccountIdEndpointMode(t)){_throw(m)}return t},default:a};t.ACCOUNT_ID_ENDPOINT_MODE_VALUES=d;t.CONFIG_ACCOUNT_ID_ENDPOINT_MODE=h;t.DEFAULT_ACCOUNT_ID_ENDPOINT_MODE=a;t.ENV_ACCOUNT_ID_ENDPOINT_MODE=f;t.NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS=P;t.resolveAccountIdEndpointModeConfig=resolveAccountIdEndpointModeConfig;t.validateAccountIdEndpointMode=validateAccountIdEndpointMode},5152:(e,t,o)=>{"use strict";var i=o(23609);var a=o(93422);var d=o(29320);var m=o(90402);var f=o(48161);var h=o(1708);var P=o(47291);var _=o(51455);var L=o(76760);var U=o(62085);const j={warningEmitted:false};const emitWarningIfUnsupportedVersion=e=>{if(e&&!j.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){j.warningEmitted=true;return}const t=parseInt(e.substring(1,e.indexOf(".")));const o=22;if(t<o){j.warningEmitted=true;process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)\nversions published after the first week of January 2027\nwill require node >=${o}. You are running node ${e}.\n\nTo continue receiving updates to AWS services, bug fixes,\nand security updates please upgrade to node >=${o}.\n\nMore information can be found at: https://a.co/c895JFp`)}}};const longPollMiddleware=()=>(e,t)=>async o=>{t.__retryLongPoll=true;return e(o)};const H={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:true};const getLongPollPlugin=e=>({applyToStack:e=>{e.add(longPollMiddleware(),H)}});function setCredentialFeature(e,t,o){if(!e.$source){e.$source={}}e.$source[t]=o;return e}i.Retry.v2026||=typeof process==="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function setFeature(e,t,o){if(!e.__aws_sdk_context){e.__aws_sdk_context={features:{}}}else if(!e.__aws_sdk_context.features){e.__aws_sdk_context.features={}}e.__aws_sdk_context.features[t]=o}function setTokenFeature(e,t,o){if(!e.$source){e.$source={}}e.$source[t]=o;return e}function resolveHostHeaderConfig(e){return e}const hostHeaderMiddleware=e=>t=>async o=>{if(!a.HttpRequest.isInstance(o.request))return t(o);const{request:i}=o;const{handlerProtocol:d=""}=e.requestHandler.metadata||{};if(d.indexOf("h2")>=0&&!i.headers[":authority"]){delete i.headers["host"];i.headers[":authority"]=i.hostname+(i.port?":"+i.port:"")}else if(!i.headers["host"]){let e=i.hostname;if(i.port!=null)e+=`:${i.port}`;i.headers["host"]=e}return t(o)};const V={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:true};const getHostHeaderPlugin=e=>({applyToStack:t=>{t.add(hostHeaderMiddleware(e),V)}});const loggerMiddleware=()=>(e,t)=>async o=>{try{const i=await e(o);const{clientName:a,commandName:d,logger:m,dynamoDbDocumentClientOptions:f={}}=t;const{overrideInputFilterSensitiveLog:h,overrideOutputFilterSensitiveLog:P}=f;const _=h??t.inputFilterSensitiveLog;const L=P??t.outputFilterSensitiveLog;const{$metadata:U,...j}=i.output;m?.info?.({clientName:a,commandName:d,input:_(o.input),output:L(j),metadata:U});return i}catch(e){const{clientName:i,commandName:a,logger:d,dynamoDbDocumentClientOptions:m={}}=t;const{overrideInputFilterSensitiveLog:f}=m;const h=f??t.inputFilterSensitiveLog;d?.error?.({clientName:i,commandName:a,input:h(o.input),error:e,metadata:e.$metadata});throw e}};const K={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:true};const getLoggerPlugin=e=>({applyToStack:e=>{e.add(loggerMiddleware(),K)}});const W={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:true,priority:"low"};const X="X-Amzn-Trace-Id";const Q="AWS_LAMBDA_FUNCTION_NAME";const Y="_X_AMZN_TRACE_ID";const recursionDetectionMiddleware=()=>e=>async t=>{const{request:o}=t;if(!a.HttpRequest.isInstance(o)){return e(t)}const i=Object.keys(o.headers??{}).find((e=>e.toLowerCase()===X.toLowerCase()))??X;if(o.headers.hasOwnProperty(i)){return e(t)}const m=process.env[Q];const f=process.env[Y];const h=await d.InvokeStore.getInstanceAsync();const P=h?.getXRayTraceId();const _=P??f;const nonEmptyString=e=>typeof e==="string"&&e.length>0;if(nonEmptyString(m)&&nonEmptyString(_)){o.headers[X]=_}return e({...t,request:o})};const getRecursionDetectionPlugin=e=>({applyToStack:e=>{e.add(recursionDetectionMiddleware(),W)}});const J=undefined;function isValidUserAgentAppId(e){if(e===undefined){return true}return typeof e==="string"&&e.length<=50}function resolveUserAgentConfig(e){const t=m.normalizeProvider(e.userAgentAppId??J);const{customUserAgent:o}=e;return Object.assign(e,{customUserAgent:typeof o==="string"?[[o]]:o,userAgentAppId:async()=>{const o=await t();if(!isValidUserAgentAppId(o)){const t=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;if(typeof o!=="string"){t?.warn("userAgentAppId must be a string or undefined.")}else if(o.length>50){t?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}}return o}})}const Z={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:true,supportsFIPS:true},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:true,supportsFIPS:true},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:true,supportsFIPS:true},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:true,supportsFIPS:true},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:true,supportsFIPS:true},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:true,supportsFIPS:true},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:true,supportsFIPS:true},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:true,supportsFIPS:true},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)"}}}],version:"1.1"};let ee=Z;let te="";const partition=e=>{const{partitions:t}=ee;for(const o of t){const{regions:t,outputs:i}=o;for(const[o,a]of Object.entries(t)){if(o===e){return{...i,...a}}}}for(const o of t){const{regionRegex:t,outputs:i}=o;if(new RegExp(t).test(e)){return{...i}}}const o=t.find((e=>e.id==="aws"));if(!o){throw new Error("Provided region was not found in the partition array or regex,"+" and default partition with id 'aws' doesn't exist.")}return{...o.outputs}};const setPartitionInfo=(e,t="")=>{ee=e;te=t};const useDefaultPartitionInfo=()=>{setPartitionInfo(Z,"")};const getUserAgentPrefix=()=>te;const ne=/\d{12}\.ddb/;async function checkFeatures(e,t,o){const a=o.request;if(a?.headers?.["smithy-protocol"]==="rpc-v2-cbor"){setFeature(e,"PROTOCOL_RPC_V2_CBOR","M")}if(typeof t.retryStrategy==="function"){const o=await t.retryStrategy();if(typeof o.mode==="string"){switch(o.mode){case i.RETRY_MODES.ADAPTIVE:setFeature(e,"RETRY_MODE_ADAPTIVE","F");break;case i.RETRY_MODES.STANDARD:setFeature(e,"RETRY_MODE_STANDARD","E");break}}}if(typeof t.accountIdEndpointMode==="function"){const o=e.endpointV2;if(String(o?.url?.hostname).match(ne)){setFeature(e,"ACCOUNT_ID_ENDPOINT","O")}switch(await(t.accountIdEndpointMode?.())){case"disabled":setFeature(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":setFeature(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":setFeature(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const d=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(d?.$source){const t=d;if(t.accountId){setFeature(e,"RESOLVED_ACCOUNT_ID","T")}for(const[o,i]of Object.entries(t.$source??{})){setFeature(e,o,i)}}}const re="user-agent";const oe="x-amz-user-agent";const ie=" ";const se="/";const ae=/[^!$%&'*+\-.^_`|~\w]/g;const ce=/[^!$%&'*+\-.^_`|~\w#]/g;const le="-";const ue=1024;function encodeFeatures(e){let t="";for(const o in e){const i=e[o];if(t.length+i.length+1<=ue){if(t.length){t+=","+i}else{t+=i}continue}break}return t}const userAgentMiddleware=e=>(t,o)=>async i=>{const{request:d}=i;if(!a.HttpRequest.isInstance(d)){return t(i)}const{headers:m}=d;const f=o?.userAgent?.map(escapeUserAgent)||[];const h=(await e.defaultUserAgentProvider()).map(escapeUserAgent);await checkFeatures(o,e,i);const P=o;h.push(`m/${encodeFeatures(Object.assign({},o.__smithy_context?.features,P.__aws_sdk_context?.features))}`);const _=e?.customUserAgent?.map(escapeUserAgent)||[];const L=await e.userAgentAppId();if(L){h.push(escapeUserAgent([`app`,`${L}`]))}const U=getUserAgentPrefix();const j=(U?[U]:[]).concat([...h,...f,..._]).join(ie);const H=[...h.filter((e=>e.startsWith("aws-sdk-"))),..._].join(ie);if(e.runtime!=="browser"){if(H){m[oe]=m[oe]?`${m[re]} ${H}`:H}m[re]=j}else{m[oe]=j}return t({...i,request:d})};const escapeUserAgent=e=>{const t=e[0].split(se).map((e=>e.replace(ae,le))).join(se);const o=e[1]?.replace(ce,le);const i=t.indexOf(se);const a=t.substring(0,i);let d=t.substring(i+1);if(a==="api"){d=d.toLowerCase()}return[a,d,o].filter((e=>e&&e.length>0)).reduce(((e,t,o)=>{switch(o){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}}),"")};const de={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:true};const getUserAgentPlugin=e=>({applyToStack:t=>{t.add(userAgentMiddleware(e),de)}});const getRuntimeUserAgentPair=()=>{const e=["deno","bun","llrt"];for(const t of e){if(h.versions[t]){return[`md/${t}`,h.versions[t]]}}return["md/nodejs",h.versions.node]};const getNodeModulesParentDirs=e=>{const t=process.cwd();if(!e){return[t]}const o=L.normalize(e);const i=o.split(L.sep);const a=i.indexOf("node_modules");const d=a!==-1?i.slice(0,a).join(L.sep):o;if(t===d){return[t]}return[d,t]};const pe=/^(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-]+)*)?$/;const getSanitizedTypeScriptVersion=(e="")=>{const t=e.match(pe);if(!t){return undefined}const[o,i,a,d]=[t[1],t[2],t[3],t[4]];return d?`${o}.${i}.${a}-${d}`:`${o}.${i}.${a}`};const me=["^","~",">=","<=",">","<"];const fe=["latest","beta","dev","rc","insiders","next"];const getSanitizedDevTypeScriptVersion=(e="")=>{if(fe.includes(e)){return e}const t=me.find((t=>e.startsWith(t)))??"";const o=getSanitizedTypeScriptVersion(e.slice(t.length));if(!o){return undefined}return`${t}${o}`};let he;const ge=L.join("node_modules","typescript","package.json");const getTypeScriptUserAgentPair=async()=>{if(he===null){return undefined}else if(typeof he==="string"){return["md/tsc",he]}let e=false;try{e=P.booleanSelector(process.env,"AWS_SDK_JS_TYPESCRIPT_DETECTION_DISABLED",P.SelectorType.ENV)||false}catch{}if(e){he=null;return undefined}const t=typeof __dirname!=="undefined"?__dirname:undefined;const o=getNodeModulesParentDirs(t);let i;for(const e of o){try{const t=L.join(e,"package.json");const o=await _.readFile(t,"utf-8");const{dependencies:a,devDependencies:d}=JSON.parse(o);const m=d?.typescript??a?.typescript;if(typeof m!=="string"){continue}i=m;break}catch{}}if(!i){he=null;return undefined}let a;for(const e of o){try{const t=L.join(e,ge);const o=await _.readFile(t,"utf-8");const{version:i}=JSON.parse(o);const d=getSanitizedTypeScriptVersion(i);if(typeof d!=="string"){continue}a=d;break}catch{}}if(a){he=a;return["md/tsc",he]}const d=getSanitizedDevTypeScriptVersion(i);if(typeof d!=="string"){he=null;return undefined}he=`dev_${d}`;return["md/tsc",he]};const ye={isCrtAvailable:false};const isCrtAvailable=()=>{if(ye.isCrtAvailable){return["md/crt-avail"]}return null};const createDefaultUserAgentProvider=({serviceId:e,clientVersion:t})=>{const o=getRuntimeUserAgentPair();return async i=>{const a=[["aws-sdk-js",t],["ua","2.1"],[`os/${f.platform()}`,f.release()],["lang/js"],o];const d=await getTypeScriptUserAgentPair();if(d){a.push(d)}const m=isCrtAvailable();if(m){a.push(m)}if(e){a.push([`api/${e}`,t])}if(h.env.AWS_EXECUTION_ENV){a.push([`exec-env/${h.env.AWS_EXECUTION_ENV}`])}const P=await(i?.userAgentAppId?.());const _=P?[...a,[`app/${P}`]]:[...a];return _}};const be=createDefaultUserAgentProvider;const Se="AWS_SDK_UA_APP_ID";const Ce="sdk_ua_app_id";const Ee="sdk-ua-app-id";const xe={environmentVariableSelector:e=>e[Se],configFileSelector:e=>e[Ce]??e[Ee],default:J};const createUserAgentStringParsingProvider=({serviceId:e,clientVersion:t})=>async i=>{const a=await o.e(449).then(o.t.bind(o,9449,23));const d=a.parse??a.default.parse??(()=>"");const m=typeof window!=="undefined"&&window?.navigator?.userAgent?d(window.navigator.userAgent):undefined;const f=[["aws-sdk-js",t],["ua","2.1"],[`os/${m?.os?.name||"other"}`,m?.os?.version],["lang/js"],["md/browser",`${m?.browser?.name??"unknown"}_${m?.browser?.version??"unknown"}`]];if(e){f.push([`api/${e}`,t])}const h=await(i?.userAgentAppId?.());if(h){f.push([`app/${h}`])}return f};const Pe={os(e){if(/iPhone|iPad|iPod/.test(e))return"iOS";if(/Macintosh|Mac OS X/.test(e))return"macOS";if(/Windows NT/.test(e))return"Windows";if(/Android/.test(e))return"Android";if(/Linux/.test(e))return"Linux";return undefined},browser(e){if(/EdgiOS|EdgA|Edg\//.test(e))return"Microsoft Edge";if(/Firefox\//.test(e))return"Firefox";if(/Chrome\//.test(e))return"Chrome";if(/Safari\//.test(e))return"Safari";return undefined}};const isVirtualHostableS3Bucket=(e,t=false)=>{if(t){for(const t of e.split(".")){if(!isVirtualHostableS3Bucket(t)){return false}}return true}if(!U.isValidHostLabel(e)){return false}if(e.length<3||e.length>63){return false}if(e!==e.toLowerCase()){return false}if(U.isIpAddress(e)){return false}return true};const ve=":";const Te="/";const parseArn=e=>{const t=e.split(ve);if(t.length<6)return null;const[o,i,a,d,m,...f]=t;if(o!=="arn"||i===""||a===""||f.join(ve)==="")return null;const h=f.map((e=>e.split(Te))).flat();return{partition:i,service:a,region:d,accountId:m,resourceId:h}};const Re={isVirtualHostableS3Bucket:isVirtualHostableS3Bucket,parseArn:parseArn,partition:partition};U.customEndpointFunctions.aws=Re;const resolveDefaultAwsRegionalEndpointsConfig=e=>{if(typeof e.endpointProvider!=="function"){throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.")}const{endpoint:t}=e;if(t===undefined){e.endpoint=async()=>toEndpointV1(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:undefined},{logger:e.logger}))}return e};const toEndpointV1=e=>a.parseUrl(e.url);function stsRegionDefaultResolver(e={}){return P.loadConfig({...P.NODE_REGION_CONFIG_OPTIONS,async default(){if(!we.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.")}return"us-east-1"}},{...P.NODE_REGION_CONFIG_FILE_OPTIONS,...e})}const we={silence:false};const getAwsRegionExtensionConfiguration=e=>({setRegion(t){e.region=t},region(){return e.region}});const resolveAwsRegionExtensionConfiguration=e=>({region:e.region()});t.NODE_REGION_CONFIG_FILE_OPTIONS=P.NODE_REGION_CONFIG_FILE_OPTIONS;t.NODE_REGION_CONFIG_OPTIONS=P.NODE_REGION_CONFIG_OPTIONS;t.REGION_ENV_NAME=P.REGION_ENV_NAME;t.REGION_INI_NAME=P.REGION_INI_NAME;t.resolveRegionConfig=P.resolveRegionConfig;t.EndpointError=U.EndpointError;t.isIpAddress=U.isIpAddress;t.resolveEndpoint=U.resolveEndpoint;t.DEFAULT_UA_APP_ID=J;t.NODE_APP_ID_CONFIG_OPTIONS=xe;t.UA_APP_ID_ENV_NAME=Se;t.UA_APP_ID_INI_NAME=Ce;t.awsEndpointFunctions=Re;t.createDefaultUserAgentProvider=createDefaultUserAgentProvider;t.createUserAgentStringParsingProvider=createUserAgentStringParsingProvider;t.crtAvailability=ye;t.defaultUserAgent=be;t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;t.fallback=Pe;t.getAwsRegionExtensionConfiguration=getAwsRegionExtensionConfiguration;t.getHostHeaderPlugin=getHostHeaderPlugin;t.getLoggerPlugin=getLoggerPlugin;t.getLongPollPlugin=getLongPollPlugin;t.getRecursionDetectionPlugin=getRecursionDetectionPlugin;t.getUserAgentMiddlewareOptions=de;t.getUserAgentPlugin=getUserAgentPlugin;t.getUserAgentPrefix=getUserAgentPrefix;t.hostHeaderMiddleware=hostHeaderMiddleware;t.hostHeaderMiddlewareOptions=V;t.isVirtualHostableS3Bucket=isVirtualHostableS3Bucket;t.loggerMiddleware=loggerMiddleware;t.loggerMiddlewareOptions=K;t.parseArn=parseArn;t.partition=partition;t.recursionDetectionMiddleware=recursionDetectionMiddleware;t.recursionDetectionMiddlewareOptions=W;t.resolveAwsRegionExtensionConfiguration=resolveAwsRegionExtensionConfiguration;t.resolveDefaultAwsRegionalEndpointsConfig=resolveDefaultAwsRegionalEndpointsConfig;t.resolveHostHeaderConfig=resolveHostHeaderConfig;t.resolveUserAgentConfig=resolveUserAgentConfig;t.setCredentialFeature=setCredentialFeature;t.setFeature=setFeature;t.setPartitionInfo=setPartitionInfo;t.setTokenFeature=setTokenFeature;t.state=j;t.stsRegionDefaultResolver=stsRegionDefaultResolver;t.stsRegionWarning=we;t.toEndpointV1=toEndpointV1;t.useDefaultPartitionInfo=useDefaultPartitionInfo;t.userAgentMiddleware=userAgentMiddleware},97523:(e,t,o)=>{"use strict";var i=o(93422);var a=o(90402);var d=o(47291);var m=o(5152);var f=o(75118);const getDateHeader=e=>i.HttpResponse.isInstance(e)?e.headers?.date??e.headers?.Date:undefined;const getSkewCorrectedDate=e=>new Date(Date.now()+e);const isClockSkewed=(e,t)=>Math.abs(getSkewCorrectedDate(t).getTime()-e)>=3e5;const getUpdatedSystemClockOffset=(e,t)=>{const o=Date.parse(e);if(isClockSkewed(o,t)){return o-Date.now()}return t};const throwSigningPropertyError=(e,t)=>{if(!t){throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`)}return t};const validateSigningProperties=async e=>{const t=throwSigningPropertyError("context",e.context);const o=throwSigningPropertyError("config",e.config);const i=t.endpointV2?.properties?.authSchemes?.[0];const a=throwSigningPropertyError("signer",o.signer);const d=await a(i);const m=e?.signingRegion;const f=e?.signingRegionSet;const h=e?.signingName;return{config:o,signer:d,signingRegion:m,signingRegionSet:f,signingName:h}};class AwsSdkSigV4Signer{async sign(e,t,o){if(!i.HttpRequest.isInstance(e)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const a=await validateSigningProperties(o);const{config:d,signer:m}=a;let{signingRegion:f,signingName:h}=a;const P=o.context;if(P?.authSchemes?.length??0>1){const[e,t]=P.authSchemes;if(e?.name==="sigv4a"&&t?.name==="sigv4"){f=t?.signingRegion??f;h=t?.signingName??h}}const _=await m.sign(e,{signingDate:getSkewCorrectedDate(d.systemClockOffset),signingRegion:f,signingService:h});return _}errorHandler(e){return t=>{const o=t.ServerTime??getDateHeader(t.$response);if(o){const i=throwSigningPropertyError("config",e.config);const a=i.systemClockOffset;i.systemClockOffset=getUpdatedSystemClockOffset(o,i.systemClockOffset);const d=i.systemClockOffset!==a;if(d&&t.$metadata){t.$metadata.clockSkewCorrected=true}}throw t}}successHandler(e,t){const o=getDateHeader(e);if(o){const e=throwSigningPropertyError("config",t.config);e.systemClockOffset=getUpdatedSystemClockOffset(o,e.systemClockOffset)}}}const h=AwsSdkSigV4Signer;class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer{async sign(e,t,o){if(!i.HttpRequest.isInstance(e)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const{config:a,signer:d,signingRegion:m,signingRegionSet:f,signingName:h}=await validateSigningProperties(o);const P=await(a.sigv4aSigningRegionSet?.());const _=(P??f??[m]).join(",");const L=await d.sign(e,{signingDate:getSkewCorrectedDate(a.systemClockOffset),signingRegion:_,signingService:h});return L}}const getArrayForCommaSeparatedString=e=>typeof e==="string"&&e.length>0?e.split(",").map((e=>e.trim())):[];const getBearerTokenEnvKey=e=>`AWS_BEARER_TOKEN_${e.replace(/[\s-]/g,"_").toUpperCase()}`;const P="AWS_AUTH_SCHEME_PREFERENCE";const _="auth_scheme_preference";const L={environmentVariableSelector:(e,t)=>{if(t?.signingName){const o=getBearerTokenEnvKey(t.signingName);if(o in e)return["httpBearerAuth"]}if(!(P in e))return undefined;return getArrayForCommaSeparatedString(e[P])},configFileSelector:e=>{if(!(_ in e))return undefined;return getArrayForCommaSeparatedString(e[_])},default:[]};const resolveAwsSdkSigV4AConfig=e=>{e.sigv4aSigningRegionSet=a.normalizeProvider(e.sigv4aSigningRegionSet);return e};const U={environmentVariableSelector(e){if(e.AWS_SIGV4A_SIGNING_REGION_SET){return e.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((e=>e.trim()))}throw new d.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:true})},configFileSelector(e){if(e.sigv4a_signing_region_set){return(e.sigv4a_signing_region_set??"").split(",").map((e=>e.trim()))}throw new d.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:true})},default:undefined};const resolveAwsSdkSigV4Config=e=>{let t=e.credentials;let o=!!e.credentials;let i=undefined;Object.defineProperty(e,"credentials",{set(a){if(a&&a!==t&&a!==i){o=true}t=a;const d=normalizeCredentialProvider(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider});const f=bindCallerConfig(e,d);if(o&&!f.attributed){const e=typeof t==="object"&&t!==null;i=async t=>{const o=await f(t);const i=o;if(e&&(!i.$source||Object.keys(i.$source).length===0)){return m.setCredentialFeature(i,"CREDENTIALS_CODE","e")}return i};i.memoized=f.memoized;i.configBound=f.configBound;i.attributed=true}else{i=f}},get(){return i},enumerable:true,configurable:true});e.credentials=t;const{signingEscapePath:d=true,systemClockOffset:h=e.systemClockOffset||0,sha256:P}=e;let _;if(e.signer){_=a.normalizeProvider(e.signer)}else if(e.regionInfoProvider){_=()=>a.normalizeProvider(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([t,o])=>{const{signingRegion:i,signingService:a}=t;e.signingRegion=e.signingRegion||i||o;e.signingName=e.signingName||a||e.serviceId;const m={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:P,uriEscapePath:d};const h=e.signerConstructor||f.SignatureV4;return new h(m)}))}else{_=async t=>{t=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await a.normalizeProvider(e.region)(),properties:{}},t);const o=t.signingRegion;const i=t.signingName;e.signingRegion=e.signingRegion||o;e.signingName=e.signingName||i||e.serviceId;const m={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:P,uriEscapePath:d};const h=e.signerConstructor||f.SignatureV4;return new h(m)}}const L=Object.assign(e,{systemClockOffset:h,signingEscapePath:d,signer:_});return L};const j=resolveAwsSdkSigV4Config;function normalizeCredentialProvider(e,{credentials:t,credentialDefaultProvider:o}){let i;if(t){if(!t?.memoized){i=a.memoizeIdentityProvider(t,a.isIdentityExpired,a.doesIdentityRequireRefresh)}else{i=t}}else{if(o){i=a.normalizeProvider(o(Object.assign({},e,{parentClientConfig:e})))}else{i=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")}}}i.memoized=true;return i}function bindCallerConfig(e,t){if(t.configBound){return t}const fn=async o=>t({...o,callerClientConfig:e});fn.memoized=t.memoized;fn.configBound=true;return fn}t.AWSSDKSigV4Signer=h;t.AwsSdkSigV4ASigner=AwsSdkSigV4ASigner;t.AwsSdkSigV4Signer=AwsSdkSigV4Signer;t.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=L;t.NODE_SIGV4A_CONFIG_OPTIONS=U;t.getBearerTokenEnvKey=getBearerTokenEnvKey;t.resolveAWSSDKSigV4Config=j;t.resolveAwsSdkSigV4AConfig=resolveAwsSdkSigV4AConfig;t.resolveAwsSdkSigV4Config=resolveAwsSdkSigV4Config;t.validateSigningProperties=validateSigningProperties},37288:(e,t,o)=>{"use strict";var i=o(64645);var a=o(26890);var d=o(92658);var m=o(93422);var f=o(92430);var h=o(94274);class ProtocolLib{queryCompat;errorRegistry;constructor(e=false){this.queryCompat=e}resolveRestContentType(e,t){const o=t.getMemberSchemas();const i=Object.values(o).find((e=>!!e.getMergedTraits().httpPayload));if(i){const t=i.getMergedTraits().mediaType;if(t){return t}else if(i.isStringSchema()){return"text/plain"}else if(i.isBlobSchema()){return"application/octet-stream"}else{return e}}else if(!t.isUnitSchema()){const t=Object.values(o).find((e=>{const{httpQuery:t,httpQueryParams:o,httpHeader:i,httpLabel:a,httpPrefixHeaders:d}=e.getMergedTraits();const m=d===void 0;return!t&&!o&&!i&&!a&&m}));if(t){return e}}}async getErrorSchemaOrThrowBaseException(e,t,o,i,a,d){let m=e;if(e.includes("#")){[,m]=e.split("#")}const f={$metadata:a,$fault:o.statusCode<500?"client":"server"};if(!this.errorRegistry){throw new Error("@aws-sdk/core/protocols - error handler not initialized.")}try{const t=d?.(this.errorRegistry,m)??this.errorRegistry.getSchema(e);return{errorSchema:t,errorMetadata:f}}catch(e){i.message=i.message??i.Message??"UnknownError";const t=this.errorRegistry;const o=t.getBaseException();if(o){const e=t.getErrorCtor(o)??Error;throw this.decorateServiceException(Object.assign(new e({name:m}),f),i)}const a=i;const d=a?.message??a?.Message??a?.Error?.Message??a?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(d),{name:m},f),i)}}compose(e,t,o){let i=o;if(t.includes("#")){[i]=t.split("#")}const d=a.TypeRegistry.for(i);const m=a.TypeRegistry.for("smithy.ts.sdk.synthetic."+o);e.copyFrom(d);e.copyFrom(m);this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){const o=e.Message??t.Message;const i=d.decorateServiceException(e,t);if(o){i.message=o}const a=i.Error??{};a.Type=i.Error?.Type;a.Code=i.Error?.Code;a.Message=i.Error?.message??i.Error?.Message??o;i.Error=a;const m=i.$metadata.requestId;if(m){i.RequestId=m}return i}return d.decorateServiceException(e,t)}setQueryCompatError(e,t){const o=t.headers?.["x-amzn-query-error"];if(e!==undefined&&o!=null){const[t,i]=o.split(";");const a=Object.keys(e);const d={Code:t,Type:i};e.Code=t;e.Type=i;for(let t=0;t<a.length;t++){const o=a[t];d[o==="message"?"Message":o]=e[o]}delete d.__type;e.Error=d}}queryCompatOutput(e,t){if(e.Error){t.Error=e.Error}if(e.Type){t.Type=e.Type}if(e.Code){t.Code=e.Code}}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch(o){return e.find((e=>a.NormalizedSchema.of(e).getMergedTraits().awsQueryError?.[0]===t))}}}class AwsSmithyRpcV2CborProtocol extends i.SmithyRpcV2CborProtocol{awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:t,awsQueryCompatible:o}){super({defaultNamespace:e,errorTypeRegistries:t});this.awsQueryCompatible=!!o;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,o){const i=await super.serializeRequest(e,t,o);if(this.awsQueryCompatible){i.headers["x-amzn-query-mode"]="true"}return i}async handleError(e,t,o,d,m){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(d,o)}const f=(()=>{const e=o.headers["x-amzn-query-error"];if(e&&this.awsQueryCompatible){return e.split(";")[0]}return i.loadSmithyRpcV2CborErrorCode(o,d)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,f,this.options.defaultNamespace);const{errorSchema:h,errorMetadata:P}=await this.mixin.getErrorSchemaOrThrowBaseException(f,this.options.defaultNamespace,o,d,m,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const _=a.NormalizedSchema.of(h);const L=d.message??d.Message??"UnknownError";const U=this.compositeErrorRegistry.getErrorCtor(h)??Error;const j=new U({});const H={};for(const[e,t]of _.structIterator()){if(d[e]!=null){H[e]=this.deserializer.readValue(t,d[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(d,H)}throw this.mixin.decorateServiceException(Object.assign(j,P,{$fault:_.getMergedTraits().error,message:L},H),d)}}const _toStr=e=>{if(e==null){return e}if(typeof e==="number"||typeof e==="bigint"){const t=new Error(`Received number ${e} where a string was expected.`);t.name="Warning";console.warn(t);return String(e)}if(typeof e==="boolean"){const t=new Error(`Received boolean ${e} where a string was expected.`);t.name="Warning";console.warn(t);return String(e)}return e};const _toBool=e=>{if(e==null){return e}if(typeof e==="string"){const t=e.toLowerCase();if(e!==""&&t!=="false"&&t!=="true"){const t=new Error(`Received string "${e}" where a boolean was expected.`);t.name="Warning";console.warn(t)}return e!==""&&t!=="false"}return e};const _toNum=e=>{if(e==null){return e}if(typeof e==="string"){const t=Number(e);if(t.toString()!==e){const t=new Error(`Received string "${e}" where a number was expected.`);t.name="Warning";console.warn(t);return e}return t}return e};class SerdeContextConfig{serdeContext;setSerdeContext(e){this.serdeContext=e}}class UnionSerde{from;to;keys;constructor(e,t){this.from=e;this.to=t;const o=Object.keys(this.from);const i=new Set(o);i.delete("__type");this.keys=i}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const e=this.keys.values().next().value;const t=this.from[e];this.to.$unknown=[e,t]}}}function jsonReviver(e,t,o){if(o?.source){const e=o.source;if(typeof t==="number"){if(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||e!==String(t)){const t=e.includes(".");if(t){return new f.NumericValue(e,"bigDecimal")}else{return BigInt(e)}}}}return t}const collectBodyString=(e,t)=>m.collectBody(e,t).then((e=>(t?.utf8Encoder??f.toUtf8)(e)));const parseJsonBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){try{return JSON.parse(e)}catch(t){if(t?.name==="SyntaxError"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}}return{}}));const parseJsonErrorBody=async(e,t)=>{const o=await parseJsonBody(e,t);o.message=o.message??o.Message;return o};const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const loadRestJsonErrorCode=(e,t)=>loadErrorCode(e,t,["header","code","type"]);const loadJsonRpcErrorCode=(e,t,o=false)=>loadErrorCode(e,t,o?["code","header","type"]:["type","code","header"]);const loadErrorCode=({headers:e},t,o)=>{while(o.length>0){const i=o.shift();switch(i){case"header":const o=findKey(e??{},"x-amzn-errortype");if(o!==undefined){return sanitizeErrorCode(e[o])}break;case"code":const i=findKey(t??{},"code");if(i&&t[i]!==undefined){return sanitizeErrorCode(t[i])}break;case"type":if(t?.__type!==undefined){return sanitizeErrorCode(t.__type)}break}}};class JsonShapeDeserializer extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}async read(e,t){return this._read(e,typeof t==="string"?JSON.parse(t,jsonReviver):await parseJsonBody(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){const o=t!==null&&typeof t==="object";const i=a.NormalizedSchema.of(e);if(o){if(i.isStructSchema()){const e=t;const o=i.isUnionSchema();const a={};let d=void 0;const{jsonName:m}=this.settings;if(m){d={}}let f;if(o){f=new UnionSerde(e,a)}for(const[t,h]of i.structIterator()){let i=t;if(m){i=h.getMergedTraits().jsonName??i;d[i]=t}if(o){f.mark(i)}if(e[i]!=null){a[t]=this._read(h,e[i])}}if(o){f.writeUnknown()}else if(typeof e.__type==="string"){for(const t in e){const o=e[t];const i=m?d[t]??t:t;if(!(i in a)){a[i]=o}}}return a}if(Array.isArray(t)&&i.isListSchema()){const e=i.getValueSchema();const o=[];for(const i of t){o.push(this._read(e,i))}return o}if(i.isMapSchema()){const e=i.getValueSchema();const o={};for(const i in t){o[i]=this._read(e,t[i])}return o}}if(i.isBlobSchema()&&typeof t==="string"){return f.fromBase64(t)}const d=i.getMergedTraits().mediaType;if(i.isStringSchema()&&typeof t==="string"&&d){const e=d==="application/json"||d.endsWith("+json");if(e){return f.LazyJsonString.from(t)}return t}if(i.isTimestampSchema()&&t!=null){const e=m.determineTimestampFormat(i,this.settings);switch(e){case 5:return f.parseRfc3339DateTimeWithOffset(t);case 6:return f.parseRfc7231DateTime(t);case 7:return f.parseEpochTimestamp(t);default:console.warn("Missing timestamp format, parsing value with Date constructor:",t);return new Date(t)}}if(i.isBigIntegerSchema()&&(typeof t==="number"||typeof t==="string")){return BigInt(t)}if(i.isBigDecimalSchema()&&t!=undefined){if(t instanceof f.NumericValue){return t}const e=t;if(e.type==="bigDecimal"&&"string"in e){return new f.NumericValue(e.string,e.type)}return new f.NumericValue(String(t),"bigDecimal")}if(i.isNumericSchema()&&typeof t==="string"){switch(t){case"Infinity":return Infinity;case"-Infinity":return-Infinity;case"NaN":return NaN}return t}if(i.isDocumentSchema()){if(o){const e=Array.isArray(t)?[]:{};for(const o in t){const a=t[o];if(a instanceof f.NumericValue){e[o]=a}else{e[o]=this._read(i,a)}}return e}else{return structuredClone(t)}}return t}}const P=String.fromCharCode(925);class 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.")}this.stage=1;return(e,t)=>{if(t instanceof f.NumericValue){const e=`${P+"nv"+this.counter++}_`+t.string;this.values.set(`"${e}"`,t.string);return e}if(typeof t==="bigint"){const e=t.toString();const o=`${P+"b"+this.counter++}_`+e;this.values.set(`"${o}"`,e);return o}return t}}replaceInJson(e){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.")}this.stage=2;if(this.counter===0){return e}for(const[t,o]of this.values){e=e.replace(t,o)}return e}}class JsonShapeSerializer extends SerdeContextConfig{settings;buffer;useReplacer=false;rootSchema;constructor(e){super();this.settings=e}write(e,t){this.rootSchema=a.NormalizedSchema.of(e);this.buffer=this._write(this.rootSchema,t)}flush(){const{rootSchema:e,useReplacer:t}=this;this.rootSchema=undefined;this.useReplacer=false;if(e?.isStructSchema()||e?.isDocumentSchema()){if(!t){return JSON.stringify(this.buffer)}const e=new JsonReplacer;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,t){this.write(e,t);if(typeof this.buffer==="object"){this.buffer.__type=a.NormalizedSchema.of(e).getName(true)}}_write(e,t,o){const i=t!==null&&typeof t==="object";const d=a.NormalizedSchema.of(e);if(i){if(d.isStructSchema()){const e=t;const o={};const{jsonName:i}=this.settings;let a=void 0;if(i){a={}}let m=0;for(const[t,f]of d.structIterator()){const h=this._write(f,e[t],d);if(h!==undefined){let e=t;if(i){e=f.getMergedTraits().jsonName??t;a[t]=e}o[e]=h;m++}}if(d.isUnionSchema()&&m===0){const{$unknown:t}=e;if(Array.isArray(t)){const[e,i]=t;o[e]=this._write(15,i)}}else if(typeof e.__type==="string"){for(const t in e){const d=e[t];const m=i?a[t]??t:t;if(!(m in o)){o[m]=this._write(15,d)}}}return o}if(Array.isArray(t)&&d.isListSchema()){const e=d.getValueSchema();const o=[];const i=!!d.getMergedTraits().sparse;for(const a of t){if(i||a!=null){o.push(this._write(e,a))}}return o}if(d.isMapSchema()){const e=d.getValueSchema();const o={};const i=!!d.getMergedTraits().sparse;for(const a in t){const d=t[a];if(i||d!=null){o[a]=this._write(e,d)}}return o}if(t instanceof Uint8Array&&(d.isBlobSchema()||d.isDocumentSchema())){if(d===this.rootSchema){return t}return(this.serdeContext?.base64Encoder??f.toBase64)(t)}if(t instanceof Date&&(d.isTimestampSchema()||d.isDocumentSchema())){const e=m.determineTimestampFormat(d,this.settings);switch(e){case 5:return t.toISOString().replace(".000Z","Z");case 6:return f.dateToUtcString(t);case 7:return t.getTime()/1e3;default:console.warn("Missing timestamp format, using epoch seconds",t);return t.getTime()/1e3}}if(t instanceof f.NumericValue){this.useReplacer=true}}if(t===null&&o?.isStructSchema()){return void 0}if(d.isStringSchema()){if(typeof t==="undefined"&&d.isIdempotencyToken()){return f.generateIdempotencyToken()}const e=d.getMergedTraits().mediaType;if(t!=null&&e){const o=e==="application/json"||e.endsWith("+json");if(o){return f.LazyJsonString.from(t)}}return t}if(typeof t==="number"&&d.isNumericSchema()){if(Math.abs(t)===Infinity||isNaN(t)){return String(t)}return t}if(typeof t==="string"&&d.isBlobSchema()){if(d===this.rootSchema){return t}return(this.serdeContext?.base64Encoder??f.toBase64)(t)}if(typeof t==="bigint"){this.useReplacer=true}if(d.isDocumentSchema()){if(i){const e=Array.isArray(t)?[]:{};for(const o in t){const i=t[o];if(i instanceof f.NumericValue){this.useReplacer=true;e[o]=i}else{e[o]=this._write(d,i)}}return e}else{return structuredClone(t)}}return t}}class JsonCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new JsonShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new JsonShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsJsonRpcProtocol extends m.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:o,awsQueryCompatible:i,jsonCodec:a}){super({defaultNamespace:e,errorTypeRegistries:t});this.serviceTarget=o;this.codec=a??new JsonCodec({timestampFormat:{useTrait:true,default:7},jsonName:false});this.serializer=this.codec.createSerializer();this.deserializer=this.codec.createDeserializer();this.awsQueryCompatible=!!i;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,o){const i=await super.serializeRequest(e,t,o);if(!i.path.endsWith("/")){i.path+="/"}i.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`;i.headers["x-amz-target"]=`${this.serviceTarget}.${e.name}`;if(this.awsQueryCompatible){i.headers["x-amzn-query-mode"]="true"}if(a.deref(e.input)==="unit"||!i.body){i.body="{}"}return i}getPayloadCodec(){return this.codec}async handleError(e,t,o,i,d){const{awsQueryCompatible:m}=this;if(m){this.mixin.setQueryCompatError(i,o)}const f=loadJsonRpcErrorCode(o,i,m)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,f,this.options.defaultNamespace);const{errorSchema:h,errorMetadata:P}=await this.mixin.getErrorSchemaOrThrowBaseException(f,this.options.defaultNamespace,o,i,d,m?this.mixin.findQueryCompatibleError:undefined);const _=a.NormalizedSchema.of(h);const L=i.message??i.Message??"UnknownError";const U=this.compositeErrorRegistry.getErrorCtor(h)??Error;const j=new U({});const H={};const V=this.codec.createDeserializer();for(const[e,t]of _.structIterator()){if(i[e]!=null){H[e]=V.readObject(t,i[e])}}if(m){this.mixin.queryCompatOutput(i,H)}throw this.mixin.decorateServiceException(Object.assign(j,P,{$fault:_.getMergedTraits().error,message:L},H),i)}}class AwsJson1_0Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:o,awsQueryCompatible:i,jsonCodec:a}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:o,awsQueryCompatible:i,jsonCodec:a})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class AwsJson1_1Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:o,awsQueryCompatible:i,jsonCodec:a}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:o,awsQueryCompatible:i,jsonCodec:a})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class AwsRestJsonProtocol extends m.HttpBindingProtocol{serializer;deserializer;codec;mixin=new ProtocolLib;constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t});const o={timestampFormat:{useTrait:true,default:7},httpBindings:true,jsonName:true};this.codec=new JsonCodec(o);this.serializer=new m.HttpInterceptingShapeSerializer(this.codec.createSerializer(),o);this.deserializer=new m.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),o)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e);super.setSerdeContext(e)}async serializeRequest(e,t,o){const i=await super.serializeRequest(e,t,o);const d=a.NormalizedSchema.of(e.input);if(!i.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),d);if(e){i.headers["content-type"]=e}}if(i.body==null&&i.headers["content-type"]===this.getDefaultContentType()){i.body="{}"}return i}async deserializeResponse(e,t,o){const i=await super.deserializeResponse(e,t,o);const d=a.NormalizedSchema.of(e.output);for(const[e,t]of d.structIterator()){if(t.getMemberTraits().httpPayload&&!(e in i)){i[e]=null}}return i}async handleError(e,t,o,i,d){const m=loadRestJsonErrorCode(o,i)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,m,this.options.defaultNamespace);const{errorSchema:f,errorMetadata:h}=await this.mixin.getErrorSchemaOrThrowBaseException(m,this.options.defaultNamespace,o,i,d);const P=a.NormalizedSchema.of(f);const _=i.message??i.Message??"UnknownError";const L=this.compositeErrorRegistry.getErrorCtor(f)??Error;const U=new L({});await this.deserializeHttpMessage(f,t,o,i);const j={};const H=this.codec.createDeserializer();for(const[e,t]of P.structIterator()){const o=t.getMergedTraits().jsonName??e;j[e]=H.readObject(t,i[o])}throw this.mixin.decorateServiceException(Object.assign(U,h,{$fault:P.getMergedTraits().error,message:_},j),i)}getDefaultContentType(){return"application/json"}}const awsExpectUnion=e=>{if(e==null){return undefined}if(typeof e==="object"&&"__type"in e){delete e.__type}return f.expectUnion(e)};class XmlShapeDeserializer extends SerdeContextConfig{settings;stringDeserializer;constructor(e){super();this.settings=e;this.stringDeserializer=new m.FromStringShapeDeserializer(e)}setSerdeContext(e){this.serdeContext=e;this.stringDeserializer.setSerdeContext(e)}read(e,t,o){const i=a.NormalizedSchema.of(e);const d=i.getMemberSchemas();const m=i.isStructSchema()&&i.isMemberSchema()&&!!Object.values(d).find((e=>!!e.getMemberTraits().eventPayload));if(m){const e={};const o=Object.keys(d)[0];const i=d[o];if(i.isBlobSchema()){e[o]=t}else{e[o]=this.read(d[o],t)}return e}const h=(this.serdeContext?.utf8Encoder??f.toUtf8)(t);const P=this.parseXml(h);return this.readSchema(e,o?P[o]:P)}readSchema(e,t){const o=a.NormalizedSchema.of(e);if(o.isUnitSchema()){return}const i=o.getMergedTraits();if(o.isListSchema()&&!Array.isArray(t)){return this.readSchema(o,[t])}if(t==null){return t}if(typeof t==="object"){const e=!!i.xmlFlattened;if(o.isListSchema()){const i=o.getValueSchema();const a=[];const d=i.getMergedTraits().xmlName??"member";const m=e?t:(t[0]??t)[d];if(m==null){return a}const f=Array.isArray(m)?m:[m];for(const e of f){a.push(this.readSchema(i,e))}return a}const a={};if(o.isMapSchema()){const i=o.getKeySchema();const d=o.getValueSchema();let m;if(e){m=Array.isArray(t)?t:[t]}else{m=Array.isArray(t.entry)?t.entry:[t.entry]}const f=i.getMergedTraits().xmlName??"key";const h=d.getMergedTraits().xmlName??"value";for(const e of m){const t=e[f];const o=e[h];a[t]=this.readSchema(d,o)}return a}if(o.isStructSchema()){const e=o.isUnionSchema();let i;if(e){i=new UnionSerde(t,a)}for(const[d,m]of o.structIterator()){const o=m.getMergedTraits();const f=!o.httpPayload?m.getMemberTraits().xmlName??d:o.xmlName??m.getName();if(e){i.mark(f)}if(t[f]!=null){a[d]=this.readSchema(m,t[f])}}if(e){i.writeUnknown()}return a}if(o.isDocumentSchema()){return t}throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${o.getName(true)}`)}if(o.isListSchema()){return[]}if(o.isMapSchema()||o.isStructSchema()){return{}}return this.stringDeserializer.read(o,t)}parseXml(e){if(e.length){let t;try{t=h.parseXML(e)}catch(t){if(t&&typeof t==="object"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}const o="#text";const i=Object.keys(t)[0];const a=t[i];if(a[o]){a[i]=a[o];delete a[o]}return d.getValueFromTextNode(a)}return{}}}class QueryShapeSerializer extends SerdeContextConfig{settings;buffer;constructor(e){super();this.settings=e}write(e,t,o=""){if(this.buffer===undefined){this.buffer=""}const i=a.NormalizedSchema.of(e);if(o&&!o.endsWith(".")){o+="."}if(i.isBlobSchema()){if(typeof t==="string"||t instanceof Uint8Array){this.writeKey(o);this.writeValue((this.serdeContext?.base64Encoder??f.toBase64)(t))}}else if(i.isBooleanSchema()||i.isNumericSchema()||i.isStringSchema()){if(t!=null){this.writeKey(o);this.writeValue(String(t))}else if(i.isIdempotencyToken()){this.writeKey(o);this.writeValue(f.generateIdempotencyToken())}}else if(i.isBigIntegerSchema()){if(t!=null){this.writeKey(o);this.writeValue(String(t))}}else if(i.isBigDecimalSchema()){if(t!=null){this.writeKey(o);this.writeValue(t instanceof f.NumericValue?t.string:String(t))}}else if(i.isTimestampSchema()){if(t instanceof Date){this.writeKey(o);const e=m.determineTimestampFormat(i,this.settings);switch(e){case 5:this.writeValue(t.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(f.dateToUtcString(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}}else if(i.isDocumentSchema()){if(Array.isArray(t)){this.write(64|15,t,o)}else if(t instanceof Date){this.write(4,t,o)}else if(t instanceof Uint8Array){this.write(21,t,o)}else if(t&&typeof t==="object"){this.write(128|15,t,o)}else{this.writeKey(o);this.writeValue(String(t))}}else if(i.isListSchema()){if(Array.isArray(t)){if(t.length===0){if(this.settings.serializeEmptyLists){this.writeKey(o);this.writeValue("")}}else{const e=i.getValueSchema();const a=this.settings.flattenLists||i.getMergedTraits().xmlFlattened;let d=1;for(const i of t){if(i==null){continue}const t=e.getMergedTraits();const m=this.getKey("member",t.xmlName,t.ec2QueryName);const f=a?`${o}${d}`:`${o}${m}.${d}`;this.write(e,i,f);++d}}}}else if(i.isMapSchema()){if(t&&typeof t==="object"){const e=i.getKeySchema();const a=i.getValueSchema();const d=i.getMergedTraits().xmlFlattened;let m=1;for(const i in t){const f=t[i];if(f==null){continue}const h=e.getMergedTraits();const P=this.getKey("key",h.xmlName,h.ec2QueryName);const _=d?`${o}${m}.${P}`:`${o}entry.${m}.${P}`;const L=a.getMergedTraits();const U=this.getKey("value",L.xmlName,L.ec2QueryName);const j=d?`${o}${m}.${U}`:`${o}entry.${m}.${U}`;this.write(e,i,_);this.write(a,f,j);++m}}}else if(i.isStructSchema()){if(t&&typeof t==="object"){let e=false;for(const[a,d]of i.structIterator()){if(t[a]==null&&!d.isIdempotencyToken()){continue}const i=d.getMergedTraits();const m=this.getKey(a,i.xmlName,i.ec2QueryName,"struct");const f=`${o}${m}`;this.write(d,t[a],f);e=true}if(!e&&i.isUnionSchema()){const{$unknown:e}=t;if(Array.isArray(e)){const[t,i]=e;const a=`${o}${t}`;this.write(15,i,a)}}}}else if(i.isUnitSchema());else{throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${i.getName(true)}`)}}flush(){if(this.buffer===undefined){throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.")}const e=this.buffer;delete this.buffer;return e}getKey(e,t,o,i){const{ec2:a,capitalizeKeys:d}=this.settings;if(a&&o){return o}const m=t??e;if(d&&i==="struct"){return m[0].toUpperCase()+m.slice(1)}return m}writeKey(e){if(e.endsWith(".")){e=e.slice(0,e.length-1)}this.buffer+=`&${m.extendedEncodeURIComponent(e)}=`}writeValue(e){this.buffer+=m.extendedEncodeURIComponent(e)}}class AwsQueryProtocol extends m.RpcProtocol{options;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries});this.options=e;const t={timestampFormat:{useTrait:true,default:5},httpBindings:false,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:true};this.serializer=new QueryShapeSerializer(t);this.deserializer=new XmlShapeDeserializer(t)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e);this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,t,o){const i=await super.serializeRequest(e,t,o);if(!i.path.endsWith("/")){i.path+="/"}i.headers["content-type"]="application/x-www-form-urlencoded";if(a.deref(e.input)==="unit"||!i.body){i.body=""}const d=e.name.split("#")[1]??e.name;i.body=`Action=${d}&Version=${this.options.version}`+i.body;if(i.body.endsWith("&")){i.body=i.body.slice(-1)}return i}async deserializeResponse(e,t,o){const i=this.deserializer;const d=a.NormalizedSchema.of(e.output);const f={};if(o.statusCode>=300){const a=await m.collectBody(o.body,t);if(a.byteLength>0){Object.assign(f,await i.read(15,a))}await this.handleError(e,t,o,f,this.deserializeMetadata(o))}for(const e in o.headers){const t=o.headers[e];delete o.headers[e];o.headers[e.toLowerCase()]=t}const h=e.name.split("#")[1]??e.name;const P=d.isStructSchema()&&this.useNestedResult()?h+"Result":undefined;const _=await m.collectBody(o.body,t);if(_.byteLength>0){Object.assign(f,await i.read(d,_,P))}f.$metadata=this.deserializeMetadata(o);return f}useNestedResult(){return true}async handleError(e,t,o,i,d){const m=this.loadQueryErrorCode(o,i)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,m,this.options.defaultNamespace);const f=this.loadQueryError(i)??{};const h=this.loadQueryErrorMessage(i);f.message=h;f.Error={Type:f.Type,Code:f.Code,Message:h};const{errorSchema:P,errorMetadata:_}=await this.mixin.getErrorSchemaOrThrowBaseException(m,this.options.defaultNamespace,o,f,d,this.mixin.findQueryCompatibleError);const L=a.NormalizedSchema.of(P);const U=this.compositeErrorRegistry.getErrorCtor(P)??Error;const j=new U({});const H={Type:f.Error.Type,Code:f.Error.Code,Error:f.Error};for(const[e,t]of L.structIterator()){const o=t.getMergedTraits().xmlName??e;const a=f[o]??i[o];H[e]=this.deserializer.readSchema(t,a)}throw this.mixin.decorateServiceException(Object.assign(j,_,{$fault:L.getMergedTraits().error,message:h},H),i)}loadQueryErrorCode(e,t){const o=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(o!==undefined){return o}if(e.statusCode==404){return"NotFound"}}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){const t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class AwsEc2QueryProtocol extends AwsQueryProtocol{options;constructor(e){super(e);this.options=e;const t={capitalizeKeys:true,flattenLists:true,serializeEmptyLists:false,ec2:true};Object.assign(this.serializer.settings,t)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return false}}const parseXmlBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){let t;try{t=h.parseXML(e)}catch(t){if(t&&typeof t==="object"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}const o="#text";const i=Object.keys(t)[0];const a=t[i];if(a[o]){a[i]=a[o];delete a[o]}return d.getValueFromTextNode(a)}return{}}));const parseXmlErrorBody=async(e,t)=>{const o=await parseXmlBody(e,t);if(o.Error){o.Error.message=o.Error.message??o.Error.Message}return o};const loadRestXmlErrorCode=(e,t)=>{if(t?.Error?.Code!==undefined){return t.Error.Code}if(t?.Code!==undefined){return t.Code}if(e.statusCode==404){return"NotFound"}};class XmlShapeSerializer extends SerdeContextConfig{settings;stringBuffer;byteBuffer;buffer;constructor(e){super();this.settings=e}write(e,t){const o=a.NormalizedSchema.of(e);if(o.isStringSchema()&&typeof t==="string"){this.stringBuffer=t}else if(o.isBlobSchema()){this.byteBuffer="byteLength"in t?t:(this.serdeContext?.base64Decoder??f.fromBase64)(t)}else{this.buffer=this.writeStruct(o,t,undefined);const e=o.getMergedTraits();if(e.httpPayload&&!e.xmlName){this.buffer.withName(o.getName())}}}flush(){if(this.byteBuffer!==undefined){const e=this.byteBuffer;delete this.byteBuffer;return e}if(this.stringBuffer!==undefined){const e=this.stringBuffer;delete this.stringBuffer;return e}const e=this.buffer;if(this.settings.xmlNamespace){if(!e?.attributes?.["xmlns"]){e.addAttribute("xmlns",this.settings.xmlNamespace)}}delete this.buffer;return e.toString()}writeStruct(e,t,o){const i=e.getMergedTraits();const a=e.isMemberSchema()&&!i.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():i.xmlName??e.getName();if(!a||!e.isStructSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(true)}.`)}const d=h.XmlNode.of(a);const[m,f]=this.getXmlnsAttribute(e,o);for(const[o,i]of e.structIterator()){const e=t[o];if(e!=null||i.isIdempotencyToken()){if(i.getMergedTraits().xmlAttribute){d.addAttribute(i.getMergedTraits().xmlName??o,this.writeSimple(i,e));continue}if(i.isListSchema()){this.writeList(i,e,d,f)}else if(i.isMapSchema()){this.writeMap(i,e,d,f)}else if(i.isStructSchema()){d.addChildNode(this.writeStruct(i,e,f))}else{const t=h.XmlNode.of(i.getMergedTraits().xmlName??i.getMemberName());this.writeSimpleInto(i,e,t,f);d.addChildNode(t)}}}const{$unknown:P}=t;if(P&&e.isUnionSchema()&&Array.isArray(P)&&Object.keys(t).length===1){const[e,o]=P;const i=h.XmlNode.of(e);if(typeof o!=="string"){if(t instanceof h.XmlNode||t instanceof h.XmlText){d.addChildNode(t)}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,o,i,f);d.addChildNode(i)}if(f){d.addAttribute(m,f)}return d}writeList(e,t,o,i){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(true)}`)}const a=e.getMergedTraits();const d=e.getValueSchema();const m=d.getMergedTraits();const f=!!m.sparse;const P=!!a.xmlFlattened;const[_,L]=this.getXmlnsAttribute(e,i);const writeItem=(t,o)=>{if(d.isListSchema()){this.writeList(d,Array.isArray(o)?o:[o],t,L)}else if(d.isMapSchema()){this.writeMap(d,o,t,L)}else if(d.isStructSchema()){const i=this.writeStruct(d,o,L);t.addChildNode(i.withName(P?a.xmlName??e.getMemberName():m.xmlName??"member"))}else{const i=h.XmlNode.of(P?a.xmlName??e.getMemberName():m.xmlName??"member");this.writeSimpleInto(d,o,i,L);t.addChildNode(i)}};if(P){for(const e of t){if(f||e!=null){writeItem(o,e)}}}else{const i=h.XmlNode.of(a.xmlName??e.getMemberName());if(L){i.addAttribute(_,L)}for(const e of t){if(f||e!=null){writeItem(i,e)}}o.addChildNode(i)}}writeMap(e,t,o,i,a=false){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(true)}`)}const d=e.getMergedTraits();const m=e.getKeySchema();const f=m.getMergedTraits();const P=f.xmlName??"key";const _=e.getValueSchema();const L=_.getMergedTraits();const U=L.xmlName??"value";const j=!!L.sparse;const H=!!d.xmlFlattened;const[V,K]=this.getXmlnsAttribute(e,i);const addKeyValue=(e,t,o)=>{const i=h.XmlNode.of(P,t);const[a,d]=this.getXmlnsAttribute(m,K);if(d){i.addAttribute(a,d)}e.addChildNode(i);let f=h.XmlNode.of(U);if(_.isListSchema()){this.writeList(_,o,f,K)}else if(_.isMapSchema()){this.writeMap(_,o,f,K,true)}else if(_.isStructSchema()){f=this.writeStruct(_,o,K)}else{this.writeSimpleInto(_,o,f,K)}e.addChildNode(f)};if(H){for(const i in t){const a=t[i];if(j||a!=null){const t=h.XmlNode.of(d.xmlName??e.getMemberName());addKeyValue(t,i,a);o.addChildNode(t)}}}else{let i;if(!a){i=h.XmlNode.of(d.xmlName??e.getMemberName());if(K){i.addAttribute(V,K)}o.addChildNode(i)}for(const e in t){const d=t[e];if(j||d!=null){const t=h.XmlNode.of("entry");addKeyValue(t,e,d);(a?o:i).addChildNode(t)}}}}writeSimple(e,t){if(null===t){throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.")}const o=a.NormalizedSchema.of(e);let i=null;if(t&&typeof t==="object"){if(o.isBlobSchema()){i=(this.serdeContext?.base64Encoder??f.toBase64)(t)}else if(o.isTimestampSchema()&&t instanceof Date){const e=m.determineTimestampFormat(o,this.settings);switch(e){case 5:i=t.toISOString().replace(".000Z","Z");break;case 6:i=f.dateToUtcString(t);break;case 7:i=String(t.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",t);i=f.dateToUtcString(t);break}}else if(o.isBigDecimalSchema()&&t){if(t instanceof f.NumericValue){return t.string}return String(t)}else if(o.isMapSchema()||o.isListSchema()){throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.")}else{throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${o.getName(true)}`)}}if(o.isBooleanSchema()||o.isNumericSchema()||o.isBigIntegerSchema()||o.isBigDecimalSchema()){i=String(t)}if(o.isStringSchema()){if(t===undefined&&o.isIdempotencyToken()){i=f.generateIdempotencyToken()}else{i=String(t)}}if(i===null){throw new Error(`Unhandled schema-value pair ${o.getName(true)}=${t}`)}return i}writeSimpleInto(e,t,o,i){const d=this.writeSimple(e,t);const m=a.NormalizedSchema.of(e);const f=new h.XmlText(d);const[P,_]=this.getXmlnsAttribute(m,i);if(_){o.addAttribute(P,_)}o.addChildNode(f)}getXmlnsAttribute(e,t){const o=e.getMergedTraits();const[i,a]=o.xmlNamespace??[];if(a&&a!==t){return[i?`xmlns:${i}`:"xmlns",a]}return[void 0,void 0]}}class XmlCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new XmlShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new XmlShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsRestXmlProtocol extends m.HttpBindingProtocol{codec;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super(e);const t={timestampFormat:{useTrait:true,default:5},httpBindings:true,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new XmlCodec(t);this.serializer=new m.HttpInterceptingShapeSerializer(this.codec.createSerializer(),t);this.deserializer=new m.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,t,o){const i=await super.serializeRequest(e,t,o);const d=a.NormalizedSchema.of(e.input);if(!i.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),d);if(e){i.headers["content-type"]=e}}if(typeof i.body==="string"&&i.headers["content-type"]===this.getDefaultContentType()&&!i.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(d)){i.body='<?xml version="1.0" encoding="UTF-8"?>'+i.body}return i}async deserializeResponse(e,t,o){return super.deserializeResponse(e,t,o)}async handleError(e,t,o,i,d){const m=loadRestXmlErrorCode(o,i)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,m,this.options.defaultNamespace);if(i.Error&&typeof i.Error==="object"){for(const e of Object.keys(i.Error)){i[e]=i.Error[e];if(e.toLowerCase()==="message"){i.message=i.Error[e]}}}if(i.RequestId&&!d.requestId){d.requestId=i.RequestId}const{errorSchema:f,errorMetadata:h}=await this.mixin.getErrorSchemaOrThrowBaseException(m,this.options.defaultNamespace,o,i,d);const P=a.NormalizedSchema.of(f);const _=i.Error?.message??i.Error?.Message??i.message??i.Message??"UnknownError";const L=this.compositeErrorRegistry.getErrorCtor(f)??Error;const U=new L({});await this.deserializeHttpMessage(f,t,o,i);const j={};const H=this.codec.createDeserializer();for(const[e,t]of P.structIterator()){const o=t.getMergedTraits().xmlName??e;const a=i.Error?.[o]??i[o];j[e]=H.readSchema(t,a)}throw this.mixin.decorateServiceException(Object.assign(U,h,{$fault:P.getMergedTraits().error,message:_},j),i)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(const[,t]of e.structIterator()){if(t.getMergedTraits().httpPayload){return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema())}}return false}}t.AwsEc2QueryProtocol=AwsEc2QueryProtocol;t.AwsJson1_0Protocol=AwsJson1_0Protocol;t.AwsJson1_1Protocol=AwsJson1_1Protocol;t.AwsJsonRpcProtocol=AwsJsonRpcProtocol;t.AwsQueryProtocol=AwsQueryProtocol;t.AwsRestJsonProtocol=AwsRestJsonProtocol;t.AwsRestXmlProtocol=AwsRestXmlProtocol;t.AwsSmithyRpcV2CborProtocol=AwsSmithyRpcV2CborProtocol;t.JsonCodec=JsonCodec;t.JsonShapeDeserializer=JsonShapeDeserializer;t.JsonShapeSerializer=JsonShapeSerializer;t.QueryShapeSerializer=QueryShapeSerializer;t.XmlCodec=XmlCodec;t.XmlShapeDeserializer=XmlShapeDeserializer;t.XmlShapeSerializer=XmlShapeSerializer;t._toBool=_toBool;t._toNum=_toNum;t._toStr=_toStr;t.awsExpectUnion=awsExpectUnion;t.loadJsonRpcErrorCode=loadJsonRpcErrorCode;t.loadRestJsonErrorCode=loadRestJsonErrorCode;t.loadRestXmlErrorCode=loadRestXmlErrorCode;t.parseJsonBody=parseJsonBody;t.parseJsonErrorBody=parseJsonErrorBody;t.parseXmlBody=parseXmlBody;t.parseXmlErrorBody=parseXmlErrorBody},519:(e,t,o)=>{"use strict";var i=o(93422);const validate=e=>typeof e==="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6;const parse=e=>{const t=e.split(":");if(t.length<6||t[0]!=="arn")throw new Error("Malformed ARN");const[,o,i,a,d,...m]=t;return{partition:o,service:i,region:a,accountId:d,resource:m.join(":")}};const build=e=>{const{partition:t="aws",service:o,region:i,accountId:a,resource:d}=e;if([o,i,a,d].some((e=>typeof e!=="string"))){throw new Error("Input ARN object is invalid")}return`arn:${t}:${o}:${i}:${a}:${d}`};function formatUrl(e){const{port:t,query:o}=e;let{protocol:a,path:d,hostname:m}=e;if(a&&a.slice(-1)!==":"){a+=":"}if(t){m+=`:${t}`}if(d&&d.charAt(0)!=="/"){d=`/${d}`}let f=o?i.buildQueryString(o):"";if(f&&f[0]!=="?"){f=`?${f}`}let h="";if(e.username!=null||e.password!=null){const t=e.username??"";const o=e.password??"";h=`${t}:${o}@`}let P="";if(e.fragment){P=`#${e.fragment}`}return`${a}//${h}${m}${d}${f}${P}`}t.build=build;t.formatUrl=formatUrl;t.parse=parse;t.validate=validate},57122:(e,t)=>{"use strict";const generateCRC64NVMETable=()=>{const e=8;const t=new Array(e);for(let o=0;o<e;o++){const e=new Array(512);for(let t=0;t<256;t++){let i=BigInt(t);for(let e=0;e<8*(o+1);e++){if(i&1n){i=i>>1n^0x9a6c9329ac4bc9b5n}else{i=i>>1n}}e[t*2]=Number(i>>32n&0xffffffffn);e[t*2+1]=Number(i&0xffffffffn)}t[o]=new Uint32Array(e)}return t};let o;let i,a,d,m;let f,h,P,_;const ensureTablesInitialized=()=>{if(!o){o=generateCRC64NVMETable();[i,a,d,m,f,h,P,_]=o}};class Crc64Nvme{c1=0;c2=0;constructor(){ensureTablesInitialized();this.reset()}update(e){const t=e.length;let o=0;let L=this.c1;let U=this.c2;while(o+8<=t){const t=((U^e[o++])&255)<<1;const j=((U>>>8^e[o++])&255)<<1;const H=((U>>>16^e[o++])&255)<<1;const V=((U>>>24^e[o++])&255)<<1;const K=((L^e[o++])&255)<<1;const W=((L>>>8^e[o++])&255)<<1;const X=((L>>>16^e[o++])&255)<<1;const Q=((L>>>24^e[o++])&255)<<1;L=_[t]^P[j]^h[H]^f[V]^m[K]^d[W]^a[X]^i[Q];U=_[t+1]^P[j+1]^h[H+1]^f[V+1]^m[K+1]^d[W+1]^a[X+1]^i[Q+1]}while(o<t){const t=((U^e[o])&255)<<1;U=(U>>>8|(L&255)<<24)>>>0;L=L>>>8^i[t];U^=i[t+1];o++}this.c1=L;this.c2=U}async digest(){const e=this.c1^4294967295;const t=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255])}reset(){this.c1=4294967295;this.c2=4294967295}}const L={CrtCrc64Nvme:null};t.Crc64Nvme=Crc64Nvme;t.crc64NvmeCrtContainer=L},55606:(e,t,o)=>{"use strict";var i=o(5152);var a=o(47291);const d="AWS_ACCESS_KEY_ID";const m="AWS_SECRET_ACCESS_KEY";const f="AWS_SESSION_TOKEN";const h="AWS_CREDENTIAL_EXPIRATION";const P="AWS_CREDENTIAL_SCOPE";const _="AWS_ACCOUNT_ID";const fromEnv=e=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const t=process.env[d];const o=process.env[m];const L=process.env[f];const U=process.env[h];const j=process.env[P];const H=process.env[_];if(t&&o){const e={accessKeyId:t,secretAccessKey:o,...L&&{sessionToken:L},...U&&{expiration:new Date(U)},...j&&{credentialScope:j},...H&&{accountId:H}};i.setCredentialFeature(e,"CREDENTIALS_ENV_VARS","g");return e}throw new a.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};t.ENV_ACCOUNT_ID=_;t.ENV_CREDENTIAL_SCOPE=P;t.ENV_EXPIRATION=h;t.ENV_KEY=d;t.ENV_SECRET=m;t.ENV_SESSION=f;t.fromEnv=fromEnv},5861:(e,t,o)=>{"use strict";var i=o(55606);var a=o(47291);const d="AWS_EC2_METADATA_DISABLED";const remoteProvider=async e=>{const{ENV_CMDS_FULL_URI:t,ENV_CMDS_RELATIVE_URI:i,fromContainerMetadata:m,fromInstanceMetadata:f}=await o.e(566).then(o.t.bind(o,40566,19));if(process.env[i]||process.env[t]){e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:t}=await o.e(605).then(o.t.bind(o,98605,19));return a.chain(t(e),m(e))}if(process.env[d]&&process.env[d]!=="false"){return async()=>{throw new a.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:e.logger})}}e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");return f(e)};function memoizeChain(e,t){const o=internalCreateChain(e);let i;let a;let d;const provider=async e=>{if(e?.forceRefresh){return await o(e)}if(d?.expiration){if(d?.expiration?.getTime()<Date.now()){d=undefined}}if(i){await i}else if(!d||t?.(d)){if(d){if(!a){a=o(e).then((e=>{d=e})).finally((()=>{a=undefined}))}}else{i=o(e).then((e=>{d=e})).finally((()=>{i=undefined}));return provider(e)}}return d};return provider}const internalCreateChain=e=>async t=>{let o;for(const i of e){try{return await i(t)}catch(e){o=e;if(e?.tryNextLink){continue}throw e}}throw o};let m=false;const defaultProvider=(e={})=>memoizeChain([async()=>{const t=e.profile??process.env[a.ENV_PROFILE];if(t){const t=process.env[i.ENV_KEY]&&process.env[i.ENV_SECRET];if(t){if(!m){const t=e.logger?.warn&&e.logger?.constructor?.name!=="NoOpLogger"?e.logger.warn.bind(e.logger):console.warn;t(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:\n Multiple credential sources detected: \n Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.\n This SDK will proceed with the AWS_PROFILE value.\n \n However, a future version may change this behavior to prefer the ENV static credentials.\n Please ensure that your environment only sets either the AWS_PROFILE or the\n AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.\n`);m=true}}throw new a.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:e.logger,tryNextLink:true})}e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv");return i.fromEnv(e)()},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:i,ssoAccountId:d,ssoRegion:m,ssoRoleName:f,ssoSession:h}=e;if(!i&&!d&&!m&&!f&&!h){throw new a.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:e.logger})}const{fromSSO:P}=await o.e(998).then(o.t.bind(o,60998,19));return P(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:i}=await o.e(869).then(o.t.bind(o,75869,19));return i(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:i}=await o.e(360).then(o.t.bind(o,75360,19));return i(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:i}=await o.e(956).then(o.t.bind(o,29956,23));return i(e)(t)},async()=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider");return(await remoteProvider(e))()},async()=>{throw new a.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:false,logger:e.logger})}],credentialsTreatedAsExpired);const credentialsWillNeedRefresh=e=>e?.expiration!==undefined;const credentialsTreatedAsExpired=e=>e?.expiration!==undefined&&e.expiration.getTime()-Date.now()<3e5;t.credentialsTreatedAsExpired=credentialsTreatedAsExpired;t.credentialsWillNeedRefresh=credentialsWillNeedRefresh;t.defaultProvider=defaultProvider},2808:(e,t,o)=>{"use strict";var i=o(37288);var a=o(26890);var d=o(92430);class DynamoDBJsonCodec extends i.JsonCodec{constructor(){super({timestampFormat:{useTrait:true,default:7},jsonName:false})}createSerializer(){const e=new DynamoDBJsonShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new DynamoDBJsonShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}const m="com.amazonaws.dynamodb#AttributeValue";class DynamoDBJsonShapeSerializer extends i.JsonShapeSerializer{_write(e,t,o){const i=a.NormalizedSchema.of(e);if(i.isStructSchema()&&i.getName(true)===m){if(t&&typeof t==="object"){const e=t;const a=this.copyRemoveNulls(e);const m=this.serdeContext?.base64Encoder??d.toBase64;if(e.B instanceof Uint8Array){a.B=m(e.B)}if(Array.isArray(e.BS)){a.BS=e.BS.map(m)}if(Array.isArray(e.L)){const t=[];for(const a of e.L){if(a!=null){t.push(this._write(i,a,o))}}a.L=t}if(e.M&&typeof e.M==="object"){a.M={};for(const[t,d]of Object.entries(e.M)){if(d!=null){a.M[t]=this._write(i,d,o)}}}return a}}return super._write(i,t,o)}copyRemoveNulls(e){if(typeof e!=="object"){return e}if(e===null){return{}}if(Array.isArray(e)){const t=[];for(const o of e){if(o!=null){t.push(this.copyRemoveNulls(o))}}return t}const t={};for(const[o,i]of Object.entries(e)){if(i!=null){if(["B","BS","L","M"].includes(o)){continue}t[o]=this.copyRemoveNulls(i)}}return t}}class DynamoDBJsonShapeDeserializer extends i.JsonShapeDeserializer{_read(e,t){const o=a.NormalizedSchema.of(e);if(o.isStructSchema()&&o.getName(true)===m){if(t&&typeof t==="object"){const e=t;const i=e;const a=this.serdeContext?.base64Decoder??d.fromBase64;if(typeof e.B==="string"){i.B=a(e.B)}if(Array.isArray(e.BS)){i.BS=e.BS.map(a)}if(Array.isArray(e.L)){i.L=e.L.map((e=>this._read(o,e)))}if(e.M&&typeof e.M==="object"){for(const[t,a]of Object.entries(e.M)){i.M[t]=this._read(o,a)}}return i}}return super._read(o,t)}}t.DynamoDBJsonCodec=DynamoDBJsonCodec},4431:(e,t,o)=>{"use strict";var i=o(29214);class EndpointCache{cache;constructor(e){this.cache=new i(e)}getEndpoint(e){const t=this.get(e);if(!t||t.length===0){return undefined}const o=t.map((e=>e.Address));return o[Math.floor(Math.random()*o.length)]}get(e){if(!this.has(e)){return}const t=this.cache.get(e);if(!t){return}const o=Date.now();const i=t.filter((e=>o<e.Expires));if(i.length===0){this.delete(e);return undefined}return i}set(e,t){const o=Date.now();this.cache.set(e,t.map((({Address:e,CachePeriodInMinutes:t})=>({Address:e,Expires:o+t*60*1e3}))))}delete(e){this.cache.set(e,[])}has(e){if(!this.cache.has(e)){return false}const t=this.cache.peek(e);if(!t){return false}return t.length>0}clear(){this.cache.clear()}}t.EndpointCache=EndpointCache},26518:(e,t,o)=>{"use strict";var i=o(47291);var a=o(519);var d=o(93422);const m="AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS";const f="s3_disable_multiregion_access_points";const h={environmentVariableSelector:e=>i.booleanSelector(e,m,i.SelectorType.ENV),configFileSelector:e=>i.booleanSelector(e,f,i.SelectorType.CONFIG),default:false};const P="AWS_S3_USE_ARN_REGION";const _="s3_use_arn_region";const L={environmentVariableSelector:e=>i.booleanSelector(e,P,i.SelectorType.ENV),configFileSelector:e=>i.booleanSelector(e,_,i.SelectorType.CONFIG),default:undefined};const U=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;const j=/(\d+\.){3}\d+/;const H=/\.\./;const V=/\./;const K=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./;const W=/^s3(-external-1)?\.amazonaws\.com$/;const X="amazonaws.com";const isBucketNameOptions=e=>typeof e.bucketName==="string";const isDnsCompatibleBucketName=e=>U.test(e)&&!j.test(e)&&!H.test(e);const getRegionalSuffix=e=>{const t=e.match(K);return[t[4],e.replace(new RegExp(`^${t[0]}`),"")]};const getSuffix=e=>W.test(e)?["us-east-1",X]:getRegionalSuffix(e);const getSuffixForArnEndpoint=e=>W.test(e)?[e.replace(`.${X}`,""),X]:getRegionalSuffix(e);const validateArnEndpointOptions=e=>{if(e.pathStyleEndpoint){throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN")}if(e.accelerateEndpoint){throw new Error("Accelerate endpoint is not supported when bucket is an ARN")}if(!e.tlsCompatible){throw new Error("HTTPS is required when bucket is an ARN")}};const validateService=e=>{if(e!=="s3"&&e!=="s3-outposts"&&e!=="s3-object-lambda"){throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component")}};const validateS3Service=e=>{if(e!=="s3"){throw new Error("Expect 's3' in Accesspoint ARN service component")}};const validateOutpostService=e=>{if(e!=="s3-outposts"){throw new Error("Expect 's3-posts' in Outpost ARN service component")}};const validatePartition=(e,t)=>{if(e!==t.clientPartition){throw new Error(`Partition in ARN is incompatible, got "${e}" but expected "${t.clientPartition}"`)}};const validateRegion=(e,t)=>{};const validateRegionalClient=e=>{if(["s3-external-1","aws-global"].includes(e)){throw new Error(`Client region ${e} is not regional`)}};const validateAccountId=e=>{if(!/[0-9]{12}/.exec(e)){throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")}};const validateDNSHostLabel=(e,t={tlsCompatible:true})=>{if(e.length>=64||!/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(e)||/(\d+\.){3}\d+/.test(e)||/[.-]{2}/.test(e)||t?.tlsCompatible&&V.test(e)){throw new Error(`Invalid DNS label ${e}`)}};const validateCustomEndpoint=e=>{if(e.isCustomEndpoint){if(e.dualstackEndpoint)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported with custom endpoint")}};const getArnResources=e=>{const t=e.includes(":")?":":"/";const[o,...i]=e.split(t);if(o==="accesspoint"){if(i.length!==1||i[0]===""){throw new Error(`Access Point ARN should have one resource accesspoint${t}{accesspointname}`)}return{accesspointName:i[0]}}else if(o==="outpost"){if(!i[0]||i[1]!=="accesspoint"||!i[2]||i.length!==3){throw new Error(`Outpost ARN should have resource outpost${t}{outpostId}${t}accesspoint${t}{accesspointName}`)}const[e,o,a]=i;return{outpostId:e,accesspointName:a}}else{throw new Error(`ARN resource should begin with 'accesspoint${t}' or 'outpost${t}'`)}};const validateNoDualstack=e=>{};const validateNoFIPS=e=>{if(e)throw new Error(`FIPS region is not supported with Outpost.`)};const validateMrapAlias=e=>{try{e.split(".").forEach((e=>{validateDNSHostLabel(e)}))}catch(t){throw new Error(`"${e}" is not a DNS compatible name.`)}};const bucketHostname=e=>{validateCustomEndpoint(e);return isBucketNameOptions(e)?getEndpointFromBucketName(e):getEndpointFromArn(e)};const getEndpointFromBucketName=({accelerateEndpoint:e=false,clientRegion:t,baseHostname:o,bucketName:i,dualstackEndpoint:a=false,fipsEndpoint:d=false,pathStyleEndpoint:m=false,tlsCompatible:f=true,isCustomEndpoint:h=false})=>{const[P,_]=h?[t,o]:getSuffix(o);if(m||!isDnsCompatibleBucketName(i)||f&&V.test(i)){return{bucketEndpoint:false,hostname:a?`s3.dualstack.${P}.${_}`:o}}if(e){o=`s3-accelerate${a?".dualstack":""}.${_}`}else if(a){o=`s3.dualstack.${P}.${_}`}return{bucketEndpoint:true,hostname:`${i}.${o}`}};const getEndpointFromArn=e=>{const{isCustomEndpoint:t,baseHostname:o,clientRegion:i}=e;const a=t?o:getSuffixForArnEndpoint(o)[1];const{pathStyleEndpoint:d,accelerateEndpoint:m=false,fipsEndpoint:f=false,tlsCompatible:h=true,bucketName:P,clientPartition:_="aws"}=e;validateArnEndpointOptions({pathStyleEndpoint:d,accelerateEndpoint:m,tlsCompatible:h});const{service:L,partition:U,accountId:j,region:H,resource:V}=P;validateService(L);validatePartition(U,{clientPartition:_});validateAccountId(j);const{accesspointName:K,outpostId:W}=getArnResources(V);if(L==="s3-object-lambda"){return getEndpointFromObjectLambdaArn({...e,tlsCompatible:h,bucketName:P,accesspointName:K,hostnameSuffix:a})}if(H===""){return getEndpointFromMRAPArn({...e,mrapAlias:K,hostnameSuffix:a})}if(W){return getEndpointFromOutpostArn({...e,clientRegion:i,outpostId:W,accesspointName:K,hostnameSuffix:a})}return getEndpointFromAccessPointArn({...e,clientRegion:i,accesspointName:K,hostnameSuffix:a})};const getEndpointFromObjectLambdaArn=({dualstackEndpoint:e=false,fipsEndpoint:t=false,tlsCompatible:o=true,useArnRegion:i,clientRegion:a,clientSigningRegion:d=a,accesspointName:m,bucketName:f,hostnameSuffix:h})=>{const{accountId:P,region:_,service:L}=f;validateRegionalClient(a);const U=`${m}-${P}`;validateDNSHostLabel(U,{tlsCompatible:o});const j=i?_:a;const H=i?_:d;return{bucketEndpoint:true,hostname:`${U}.${L}${t?"-fips":""}.${j}.${h}`,signingRegion:H,signingService:L}};const getEndpointFromMRAPArn=({disableMultiregionAccessPoints:e,dualstackEndpoint:t=false,isCustomEndpoint:o,mrapAlias:i,hostnameSuffix:a})=>{if(e===true){throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature.")}validateMrapAlias(i);return{bucketEndpoint:true,hostname:`${i}${o?"":`.accesspoint.s3-global`}.${a}`,signingRegion:"*"}};const getEndpointFromOutpostArn=({useArnRegion:e,clientRegion:t,clientSigningRegion:o=t,bucketName:i,outpostId:a,dualstackEndpoint:d=false,fipsEndpoint:m=false,tlsCompatible:f=true,accesspointName:h,isCustomEndpoint:P,hostnameSuffix:_})=>{validateRegionalClient(t);const L=`${h}-${i.accountId}`;validateDNSHostLabel(L,{tlsCompatible:f});const U=e?i.region:t;const j=e?i.region:o;validateOutpostService(i.service);validateDNSHostLabel(a,{tlsCompatible:f});validateNoFIPS(m);const H=`${L}.${a}`;return{bucketEndpoint:true,hostname:`${H}${P?"":`.s3-outposts.${U}`}.${_}`,signingRegion:j,signingService:"s3-outposts"}};const getEndpointFromAccessPointArn=({useArnRegion:e,clientRegion:t,clientSigningRegion:o=t,bucketName:i,dualstackEndpoint:a=false,fipsEndpoint:d=false,tlsCompatible:m=true,accesspointName:f,isCustomEndpoint:h,hostnameSuffix:P})=>{validateRegionalClient(t);const _=`${f}-${i.accountId}`;validateDNSHostLabel(_,{tlsCompatible:m});const L=e?i.region:t;const U=e?i.region:o;validateS3Service(i.service);return{bucketEndpoint:true,hostname:`${_}${h?"":`.s3-accesspoint${d?"-fips":""}${a?".dualstack":""}.${L}`}.${P}`,signingRegion:U}};const bucketEndpointMiddleware=e=>(t,o)=>async i=>{const{Bucket:m}=i.input;let f=e.bucketEndpoint;const h=i.request;if(d.HttpRequest.isInstance(h)){if(e.bucketEndpoint){h.hostname=m}else if(a.validate(m)){const t=a.parse(m);const i=await e.region();const d=await e.useDualstackEndpoint();const P=await e.useFipsEndpoint();const{partition:_,signingRegion:L=i}=await e.regionInfoProvider(i,{useDualstackEndpoint:d,useFipsEndpoint:P})||{};const U=await e.useArnRegion();const{hostname:j,bucketEndpoint:H,signingRegion:V,signingService:K}=bucketHostname({bucketName:t,baseHostname:h.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:d,fipsEndpoint:P,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:h.protocol==="https:",useArnRegion:U,clientPartition:_,clientSigningRegion:L,clientRegion:i,isCustomEndpoint:e.isCustomEndpoint,disableMultiregionAccessPoints:await e.disableMultiregionAccessPoints()});if(V&&V!==L){o["signing_region"]=V}if(K&&K!=="s3"){o["signing_service"]=K}h.hostname=j;f=H}else{const t=await e.region();const o=await e.useDualstackEndpoint();const i=await e.useFipsEndpoint();const{hostname:a,bucketEndpoint:d}=bucketHostname({bucketName:m,clientRegion:t,baseHostname:h.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:o,fipsEndpoint:i,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:h.protocol==="https:",isCustomEndpoint:e.isCustomEndpoint});h.hostname=a;f=d}if(f){h.path=h.path.replace(/^(\/)?[^\/]+/,"");if(h.path===""){h.path="/"}}}return t({...i,request:h})};const Q={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:true};const getBucketEndpointPlugin=e=>({applyToStack:t=>{t.addRelativeTo(bucketEndpointMiddleware(e),Q)}});function resolveBucketEndpointConfig(e){const{bucketEndpoint:t=false,forcePathStyle:o=false,useAccelerateEndpoint:i=false,useArnRegion:a,disableMultiregionAccessPoints:d=false}=e;return Object.assign(e,{bucketEndpoint:t,forcePathStyle:o,useAccelerateEndpoint:i,useArnRegion:typeof a==="function"?a:()=>Promise.resolve(a),disableMultiregionAccessPoints:typeof d==="function"?d:()=>Promise.resolve(d)})}t.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS=h;t.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME=m;t.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME=f;t.NODE_USE_ARN_REGION_CONFIG_OPTIONS=L;t.NODE_USE_ARN_REGION_ENV_NAME=P;t.NODE_USE_ARN_REGION_INI_NAME=_;t.bucketEndpointMiddleware=bucketEndpointMiddleware;t.bucketEndpointMiddlewareOptions=Q;t.bucketHostname=bucketHostname;t.getArnResources=getArnResources;t.getBucketEndpointPlugin=getBucketEndpointPlugin;t.getSuffixForArnEndpoint=getSuffixForArnEndpoint;t.resolveBucketEndpointConfig=resolveBucketEndpointConfig;t.validateAccountId=validateAccountId;t.validateDNSHostLabel=validateDNSHostLabel;t.validateNoDualstack=validateNoDualstack;t.validateNoFIPS=validateNoFIPS;t.validateOutpostService=validateOutpostService;t.validatePartition=validatePartition;t.validateRegion=validateRegion},3688:(e,t,o)=>{"use strict";var i=o(93422);var a=o(4431);const d=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];const m="endpoint_discovery_enabled";const isFalsy=e=>["false","0"].indexOf(e)>=0;const f={environmentVariableSelector:e=>{for(let t=0;t<d.length;t++){const o=d[t];if(o in e){const t=e[o];if(t===""){throw Error(`Environment variable ${o} can't be empty of undefined, got "${t}"`)}return!isFalsy(t)}}},configFileSelector:e=>{if(m in e){const t=e[m];if(t===undefined){throw Error(`Shared config entry ${m} can't be undefined, got "${t}"`)}return!isFalsy(t)}},default:undefined};const getCacheKey=async(e,t,o)=>{const{accessKeyId:i}=await t.credentials();const{identifiers:a}=o;return JSON.stringify({...i&&{accessKeyId:i},...a&&{commandName:e,identifiers:Object.entries(a).sort().reduce(((e,[t,o])=>({...e,[t]:o})),{})}})};const h={};const updateDiscoveredEndpointInCache=async(e,t)=>new Promise(((o,i)=>{const{endpointCache:a}=e;const{cacheKey:d,commandName:m,identifiers:f}=t;const P=a.get(d);if(P&&P.length===1&&P[0].Address===""){if(t.isDiscoveredEndpointRequired){if(!h[d])h[d]=[];h[d].push({resolve:o,reject:i})}else{o()}}else if(P&&P.length>0){o()}else{const P=[{Address:"",CachePeriodInMinutes:1}];a.set(d,P);const _=new t.endpointDiscoveryCommandCtor({Operation:m.slice(0,-7),Identifiers:f});const L=_.resolveMiddleware(t.clientStack,e,t.options);L(_).then((e=>{a.set(d,e.output.Endpoints);if(h[d]){h[d].forEach((({resolve:e})=>{e()}));delete h[d]}o()})).catch((e=>{a.delete(d);const m=Object.assign(new Error(`The operation to discover endpoint failed.`+` Please retry, or provide a custom endpoint and disable endpoint discovery to proceed.`),{reason:e});if(h[d]){h[d].forEach((({reject:e})=>{e(m)}));delete h[d]}if(t.isDiscoveredEndpointRequired){i(m)}else{a.set(d,P);o()}}))}}));const endpointDiscoveryMiddleware=(e,t)=>(o,a)=>async d=>{if(e.isCustomEndpoint){if(e.isClientEndpointDiscoveryEnabled){throw new Error(`Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.`)}return o(d)}const{endpointDiscoveryCommandCtor:m}=e;const{isDiscoveredEndpointRequired:f,identifiers:h}=t;const P=a.clientName;const _=a.commandName;const L=await e.endpointDiscoveryEnabled();const U=await getCacheKey(_,e,{identifiers:h});if(f){if(L===false){throw new Error(`Endpoint Discovery is disabled but ${_} on ${P} requires it.`+` Please check your configurations.`)}await updateDiscoveredEndpointInCache(e,{...t,commandName:_,cacheKey:U,endpointDiscoveryCommandCtor:m})}else if(L){updateDiscoveredEndpointInCache(e,{...t,commandName:_,cacheKey:U,endpointDiscoveryCommandCtor:m})}const{request:j}=d;if(U&&i.HttpRequest.isInstance(j)){const t=e.endpointCache.getEndpoint(U);if(t){j.hostname=t}}return o(d)};const P={name:"endpointDiscoveryMiddleware",step:"build",tags:["ENDPOINT_DISCOVERY"],override:true};const getEndpointDiscoveryPlugin=(e,t)=>({applyToStack:o=>{o.add(endpointDiscoveryMiddleware(e,t),P)}});const getEndpointDiscoveryRequiredPlugin=(e,t)=>({applyToStack:o=>{o.add(endpointDiscoveryMiddleware(e,{...t,isDiscoveredEndpointRequired:true}),P)}});const getEndpointDiscoveryOptionalPlugin=(e,t)=>({applyToStack:o=>{o.add(endpointDiscoveryMiddleware(e,{...t,isDiscoveredEndpointRequired:false}),P)}});const resolveEndpointDiscoveryConfig=(e,{endpointDiscoveryCommandCtor:t})=>{const{endpointCacheSize:o,endpointDiscoveryEnabled:i,endpointDiscoveryEnabledProvider:d}=e;return Object.assign(e,{endpointDiscoveryCommandCtor:t,endpointCache:new a.EndpointCache(o??1e3),endpointDiscoveryEnabled:i!==undefined?()=>Promise.resolve(i):d,isClientEndpointDiscoveryEnabled:i!==undefined})};t.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS=f;t.endpointDiscoveryMiddlewareOptions=P;t.getEndpointDiscoveryOptionalPlugin=getEndpointDiscoveryOptionalPlugin;t.getEndpointDiscoveryPlugin=getEndpointDiscoveryPlugin;t.getEndpointDiscoveryRequiredPlugin=getEndpointDiscoveryRequiredPlugin;t.resolveEndpointDiscoveryConfig=resolveEndpointDiscoveryConfig},84745:(e,t,o)=>{"use strict";var i=o(93422);function addExpectContinueMiddleware(e){return t=>async o=>{const{request:a}=o;if(e.expectContinueHeader!==false&&i.HttpRequest.isInstance(a)&&a.body&&e.runtime==="node"&&e.requestHandler?.constructor?.name!=="FetchHttpHandler"){let t=true;if(typeof e.expectContinueHeader==="number"){try{const o=Number(a.headers?.["content-length"])??e.bodyLengthChecker?.(a.body)??Infinity;t=o>=e.expectContinueHeader}catch(e){}}else{t=!!e.expectContinueHeader}if(t){a.headers.Expect="100-continue"}}return t({...o,request:a})}}const a={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:true};const getAddExpectContinuePlugin=e=>({applyToStack:t=>{t.add(addExpectContinueMiddleware(e),a)}});t.addExpectContinueMiddleware=addExpectContinueMiddleware;t.addExpectContinueMiddlewareOptions=a;t.getAddExpectContinuePlugin=getAddExpectContinuePlugin},23321:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCrc32ChecksumAlgorithmFunction=void 0;const i=o(61860);const a=o(62110);const d=o(95667);const m=i.__importStar(o(38522));class NodeCrc32{checksum=0;update(e){this.checksum=m.crc32(e,this.checksum)}async digest(){return(0,d.numToUint8)(this.checksum)}reset(){this.checksum=0}}const getCrc32ChecksumAlgorithmFunction=()=>{if(typeof m.crc32==="undefined"){return a.AwsCrc32}return NodeCrc32};t.getCrc32ChecksumAlgorithmFunction=getCrc32ChecksumAlgorithmFunction},29836:(e,t,o)=>{"use strict";var i=o(5152);var a=o(93422);var d=o(92430);var m=o(91491);var f=o(57122);var h=o(23321);var P=o(92658);const _={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"};const L=_.WHEN_SUPPORTED;const U={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"};const j=_.WHEN_SUPPORTED;t.ChecksumAlgorithm=void 0;(function(e){e["MD5"]="MD5";e["CRC32"]="CRC32";e["CRC32C"]="CRC32C";e["CRC64NVME"]="CRC64NVME";e["SHA1"]="SHA1";e["SHA256"]="SHA256"})(t.ChecksumAlgorithm||(t.ChecksumAlgorithm={}));t.ChecksumLocation=void 0;(function(e){e["HEADER"]="header";e["TRAILER"]="trailer"})(t.ChecksumLocation||(t.ChecksumLocation={}));const H=t.ChecksumAlgorithm.CRC32;var V;(function(e){e["ENV"]="env";e["CONFIG"]="shared config entry"})(V||(V={}));const stringUnionSelector=(e,t,o,i)=>{if(!(t in e))return undefined;const a=e[t].toUpperCase();if(!Object.values(o).includes(a)){throw new TypeError(`Cannot load ${i} '${t}'. Expected one of ${Object.values(o)}, got '${e[t]}'.`)}return a};const K="AWS_REQUEST_CHECKSUM_CALCULATION";const W="request_checksum_calculation";const X={environmentVariableSelector:e=>stringUnionSelector(e,K,_,V.ENV),configFileSelector:e=>stringUnionSelector(e,W,_,V.CONFIG),default:L};const Q="AWS_RESPONSE_CHECKSUM_VALIDATION";const Y="response_checksum_validation";const J={environmentVariableSelector:e=>stringUnionSelector(e,Q,U,V.ENV),configFileSelector:e=>stringUnionSelector(e,Y,U,V.CONFIG),default:j};const getChecksumAlgorithmForRequest=(e,{requestChecksumRequired:t,requestAlgorithmMember:o,requestChecksumCalculation:i})=>{if(!o){return i===_.WHEN_SUPPORTED||t?H:undefined}if(!e[o]){return undefined}const a=e[o];return a};const getChecksumLocationName=e=>e===t.ChecksumAlgorithm.MD5?"content-md5":`x-amz-checksum-${e.toLowerCase()}`;const hasHeader=(e,t)=>{const o=e.toLowerCase();for(const e of Object.keys(t)){if(o===e.toLowerCase()){return true}}return false};const hasHeaderWithPrefix=(e,t)=>{const o=e.toLowerCase();for(const e of Object.keys(t)){if(e.toLowerCase().startsWith(o)){return true}}return false};const isStreaming=e=>e!==undefined&&typeof e!=="string"&&!ArrayBuffer.isView(e)&&!d.isArrayBuffer(e);const Z=[t.ChecksumAlgorithm.CRC32,t.ChecksumAlgorithm.CRC32C,t.ChecksumAlgorithm.CRC64NVME,t.ChecksumAlgorithm.SHA1,t.ChecksumAlgorithm.SHA256];const ee=[t.ChecksumAlgorithm.SHA256,t.ChecksumAlgorithm.SHA1,t.ChecksumAlgorithm.CRC32,t.ChecksumAlgorithm.CRC32C,t.ChecksumAlgorithm.CRC64NVME];const selectChecksumAlgorithmFunction=(e,o)=>{const{checksumAlgorithms:i={}}=o;switch(e){case t.ChecksumAlgorithm.MD5:return i?.MD5??o.md5;case t.ChecksumAlgorithm.CRC32:return i?.CRC32??h.getCrc32ChecksumAlgorithmFunction();case t.ChecksumAlgorithm.CRC32C:return i?.CRC32C??m.AwsCrc32c;case t.ChecksumAlgorithm.CRC64NVME:if(typeof f.crc64NvmeCrtContainer.CrtCrc64Nvme!=="function"){return i?.CRC64NVME??f.Crc64Nvme}return i?.CRC64NVME??f.crc64NvmeCrtContainer.CrtCrc64Nvme;case t.ChecksumAlgorithm.SHA1:return i?.SHA1??o.sha1;case t.ChecksumAlgorithm.SHA256:return i?.SHA256??o.sha256;default:if(i?.[e]){return i[e]}throw new Error(`The checksum algorithm "${e}" is not supported by the client.`+` Select one of ${Z}, or provide an implementation to `+` the client constructor checksums field.`)}};const stringHasher=(e,t)=>{const o=new e;o.update(d.toUint8Array(t||""));return o.digest()};const te={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:true};const flexibleChecksumsMiddleware=(e,o)=>(m,f)=>async h=>{if(!a.HttpRequest.isInstance(h.request)){return m(h)}if(hasHeaderWithPrefix("x-amz-checksum-",h.request.headers)){return m(h)}const{request:P,input:L}=h;const{body:U,headers:j}=P;const{base64Encoder:V,streamHasher:K}=e;const{requestChecksumRequired:W,requestAlgorithmMember:X}=o;const Q=await e.requestChecksumCalculation();const Y=X?.name;const J=X?.httpHeader;if(Y&&!L[Y]){if(Q===_.WHEN_SUPPORTED||W){L[Y]=H;if(J){j[J]=H}}}const Z=getChecksumAlgorithmForRequest(L,{requestChecksumRequired:W,requestAlgorithmMember:X?.name,requestChecksumCalculation:Q});let ee=U;let te=j;if(Z){switch(Z){case t.ChecksumAlgorithm.CRC32:i.setFeature(f,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case t.ChecksumAlgorithm.CRC32C:i.setFeature(f,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case t.ChecksumAlgorithm.CRC64NVME:i.setFeature(f,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case t.ChecksumAlgorithm.SHA1:i.setFeature(f,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case t.ChecksumAlgorithm.SHA256:i.setFeature(f,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}const o=getChecksumLocationName(Z);const a=selectChecksumAlgorithmFunction(Z,e);if(isStreaming(U)){const{getAwsChunkedEncodingStream:t,bodyLengthChecker:i}=e;ee=t(typeof e.requestStreamBufferSize==="number"&&e.requestStreamBufferSize>=8*1024?d.createBufferedReadable(U,e.requestStreamBufferSize,f.logger):U,{base64Encoder:V,bodyLengthChecker:i,checksumLocationName:o,checksumAlgorithmFn:a,streamHasher:K});te={...j,"content-encoding":j["content-encoding"]?`${j["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":j["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":o};delete te["content-length"]}else if(!hasHeader(o,j)){const e=await stringHasher(a,U);te={...j,[o]:V(e)}}}try{const e=await m({...h,request:{...P,headers:te,body:ee}});return e}catch(e){if(e instanceof Error&&e.name==="InvalidChunkSizeError"){try{if(!e.message.endsWith(".")){e.message+="."}e.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch(e){}}throw e}};const ne={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:true};const flexibleChecksumsInputMiddleware=(e,t)=>(o,a)=>async d=>{const m=d.input;const{requestValidationModeMember:f}=t;const h=await e.requestChecksumCalculation();const P=await e.responseChecksumValidation();switch(h){case _.WHEN_REQUIRED:i.setFeature(a,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case _.WHEN_SUPPORTED:i.setFeature(a,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z");break}switch(P){case U.WHEN_REQUIRED:i.setFeature(a,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case U.WHEN_SUPPORTED:i.setFeature(a,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b");break}if(f&&!m[f]){if(P===U.WHEN_SUPPORTED){m[f]="ENABLED"}}return o(d)};const getChecksumAlgorithmListForResponse=(e=[])=>{const t=[];let o=ee.length;for(const i of e){const e=ee.indexOf(i);if(e!==-1){t[e]=i}else{t[o++]=i}}return t.filter(Boolean)};const isChecksumWithPartNumber=e=>{const t=e.lastIndexOf("-");if(t!==-1){const o=e.slice(t+1);if(!o.startsWith("0")){const e=parseInt(o,10);if(!isNaN(e)&&e>=1&&e<=1e4){return true}}}return false};const getChecksum=async(e,{checksumAlgorithmFn:t,base64Encoder:o})=>o(await stringHasher(t,e));const validateChecksumFromResponse=async(e,{config:o,responseAlgorithms:i,logger:a})=>{const m=getChecksumAlgorithmListForResponse(i);const{body:f,headers:h}=e;for(const i of m){const m=getChecksumLocationName(i);const P=h[m];if(P){let h;try{h=selectChecksumAlgorithmFunction(i,o)}catch(e){if(i===t.ChecksumAlgorithm.CRC64NVME){a?.warn(`Skipping ${t.ChecksumAlgorithm.CRC64NVME} checksum validation: ${e.message}`);continue}throw e}const{base64Encoder:_}=o;if(isStreaming(f)){e.body=d.createChecksumStream({expectedChecksum:P,checksumSourceLocation:m,checksum:new h,source:f,base64Encoder:_});return}const L=await getChecksum(f,{checksumAlgorithmFn:h,base64Encoder:_});if(L===P){break}throw new Error(`Checksum mismatch: expected "${L}" but received "${P}"`+` in response header "${m}".`)}}};const re={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:true};const flexibleChecksumsResponseMiddleware=(e,t)=>(o,i)=>async d=>{if(!a.HttpRequest.isInstance(d.request)){return o(d)}const m=d.input;const f=await o(d);const h=f.response;const{requestValidationModeMember:P,responseAlgorithms:_}=t;if(P&&m[P]==="ENABLED"){const{clientName:t,commandName:o}=i;const a=Object.keys(e.checksumAlgorithms??{}).filter((e=>{const t=getChecksumLocationName(e);return h.headers[t]!==undefined}));const d=getChecksumAlgorithmListForResponse([..._??[],...a]);const m=t==="S3Client"&&o==="GetObjectCommand"&&d.every((e=>{const t=getChecksumLocationName(e);const o=h.headers[t];return!o||isChecksumWithPartNumber(o)}));if(m){return f}await validateChecksumFromResponse(h,{config:e,responseAlgorithms:d,logger:i.logger})}return f};const getFlexibleChecksumsPlugin=(e,t)=>({applyToStack:o=>{o.add(flexibleChecksumsMiddleware(e,t),te);o.addRelativeTo(flexibleChecksumsInputMiddleware(e,t),ne);o.addRelativeTo(flexibleChecksumsResponseMiddleware(e,t),re)}});const resolveFlexibleChecksumsConfig=e=>{const{requestChecksumCalculation:t,responseChecksumValidation:o,requestStreamBufferSize:i}=e;return Object.assign(e,{requestChecksumCalculation:P.normalizeProvider(t??L),responseChecksumValidation:P.normalizeProvider(o??j),requestStreamBufferSize:Number(i??0),checksumAlgorithms:e.checksumAlgorithms??{}})};t.CONFIG_REQUEST_CHECKSUM_CALCULATION=W;t.CONFIG_RESPONSE_CHECKSUM_VALIDATION=Y;t.DEFAULT_CHECKSUM_ALGORITHM=H;t.DEFAULT_REQUEST_CHECKSUM_CALCULATION=L;t.DEFAULT_RESPONSE_CHECKSUM_VALIDATION=j;t.ENV_REQUEST_CHECKSUM_CALCULATION=K;t.ENV_RESPONSE_CHECKSUM_VALIDATION=Q;t.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS=X;t.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS=J;t.RequestChecksumCalculation=_;t.ResponseChecksumValidation=U;t.flexibleChecksumsMiddleware=flexibleChecksumsMiddleware;t.flexibleChecksumsMiddlewareOptions=te;t.getFlexibleChecksumsPlugin=getFlexibleChecksumsPlugin;t.resolveFlexibleChecksumsConfig=resolveFlexibleChecksumsConfig},23209:(e,t)=>{"use strict";function locationConstraintMiddleware(e){return t=>async o=>{const{CreateBucketConfiguration:i}=o.input;const a=await e.region();if(!i?.LocationConstraint&&!i?.Location){if(a!=="us-east-1"){o.input.CreateBucketConfiguration=o.input.CreateBucketConfiguration??{};o.input.CreateBucketConfiguration.LocationConstraint=a}}return t(o)}}const o={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:true};const getLocationConstraintPlugin=e=>({applyToStack:t=>{t.add(locationConstraintMiddleware(e),o)}});t.getLocationConstraintPlugin=getLocationConstraintPlugin;t.locationConstraintMiddleware=locationConstraintMiddleware;t.locationConstraintMiddlewareOptions=o},77445:(e,t,o)=>{"use strict";var i=o(92658);var a=o(93422);var d=o(92430);var m=o(32136);var f=o(519);var h=o(37288);var P=o(26890);var _=o(5785);var L=o(47291);var U=o(5152);var j=o(90402);const H="content-length";const V="x-amz-decoded-content-length";function checkContentLengthHeader(){return(e,t)=>async o=>{const{request:d}=o;if(a.HttpRequest.isInstance(d)){if(!(H in d.headers)&&!(V in d.headers)){const e=`Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`;if(typeof t?.logger?.warn==="function"&&!(t.logger instanceof i.NoOpLogger)){t.logger.warn(e)}else{console.warn(e)}}}return e({...o})}}const K={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:true};const getCheckContentLengthHeaderPlugin=e=>({applyToStack:e=>{e.add(checkContentLengthHeader(),K)}});const regionRedirectEndpointMiddleware=e=>(t,o)=>async i=>{const a=await e.region();const d=e.region;let unlock=()=>{};if(o.__s3RegionRedirect){Object.defineProperty(e,"region",{writable:false,value:async()=>o.__s3RegionRedirect});unlock=()=>Object.defineProperty(e,"region",{writable:true,value:d})}try{const d=await t(i);if(o.__s3RegionRedirect){unlock();const t=await e.region();if(a!==t){throw new Error("Region was not restored following S3 region redirect.")}}return d}catch(e){unlock();throw e}};const W={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:true,relation:"before",toMiddleware:"endpointV2Middleware"};function regionRedirectMiddleware(e){return(t,o)=>async i=>{try{return await t(i)}catch(a){if(e.followRegionRedirects){const d=a?.$metadata?.httpStatusCode;const m=o.commandName==="HeadBucketCommand";const f=a?.$response?.headers?.["x-amz-bucket-region"];if(f){if(d===301||d===400&&(a?.name==="IllegalLocationConstraintException"||m)){try{const t=f;o.logger?.debug(`Redirecting from ${await e.region()} to ${t}`);o.__s3RegionRedirect=t}catch(e){throw new Error("Region redirect failed: "+e)}return t(i)}}}throw a}}}const X={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:true};const getRegionRedirectMiddlewarePlugin=e=>({applyToStack:t=>{t.add(regionRedirectMiddleware(e),X);t.addRelativeTo(regionRedirectEndpointMiddleware(e),W)}});const s3ExpiresMiddleware=e=>(e,t)=>async o=>{const i=await e(o);const{response:m}=i;if(a.HttpResponse.isInstance(m)){if(m.headers.expires){m.headers.expiresstring=m.headers.expires;try{d.parseRfc7231DateTime(m.headers.expires)}catch(e){t.logger?.warn(`AWS SDK Warning for ${t.clientName}::${t.commandName} response parsing (${m.headers.expires}): ${e}`);delete m.headers.expires}}}return i};const Q={tags:["S3"],name:"s3ExpiresMiddleware",override:true,relation:"after",toMiddleware:"deserializerMiddleware"};const getS3ExpiresMiddlewarePlugin=e=>({applyToStack:e=>{e.addRelativeTo(s3ExpiresMiddleware(),Q)}});class S3ExpressIdentityCache{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){const t=this.data[e];if(!t){return}return t}set(e,t){this.data[e]=t;return t}delete(e){delete this.data[e]}async purgeExpired(){const e=Date.now();if(this.lastPurgeTime+S3ExpressIdentityCache.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>e){return}for(const t in this.data){const o=this.data[t];if(!o.isRefreshing){const i=await o.identity;if(i.expiration){if(i.expiration.getTime()<e){delete this.data[t]}}}}}}class S3ExpressIdentityCacheEntry{_identity;isRefreshing;accessed;constructor(e,t=false,o=Date.now()){this._identity=e;this.isRefreshing=t;this.accessed=o}get identity(){this.accessed=Date.now();return this._identity}}class S3ExpressIdentityProviderImpl{createSessionFn;cache;static REFRESH_WINDOW_MS=6e4;constructor(e,t=new S3ExpressIdentityCache){this.createSessionFn=e;this.cache=t}async getS3ExpressIdentity(e,t){const o=t.Bucket;const{cache:i}=this;const a=i.get(o);if(a){return a.identity.then((e=>{const t=(e.expiration?.getTime()??0)<Date.now();if(t){return i.set(o,new S3ExpressIdentityCacheEntry(this.getIdentity(o))).identity}const d=(e.expiration?.getTime()??0)<Date.now()+S3ExpressIdentityProviderImpl.REFRESH_WINDOW_MS;if(d&&!a.isRefreshing){a.isRefreshing=true;this.getIdentity(o).then((e=>{i.set(o,new S3ExpressIdentityCacheEntry(Promise.resolve(e)))}))}return e}))}return i.set(o,new S3ExpressIdentityCacheEntry(this.getIdentity(o))).identity}async getIdentity(e){await this.cache.purgeExpired().catch((e=>{console.warn("Error while clearing expired entries in S3ExpressIdentityCache: \n"+e)}));const t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey){throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.")}const o={accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):undefined};return o}}class SignatureV4S3Express extends _.SignatureV4SignWithCredentials{}const Y="Directory";const J="S3Express";const Z="sigv4-s3express";const ee="X-Amz-S3session-Token";const te=ee.toLowerCase();const ne="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH";const re="s3_disable_express_session_auth";const oe={environmentVariableSelector:e=>L.booleanSelector(e,ne,L.SelectorType.ENV),configFileSelector:e=>L.booleanSelector(e,re,L.SelectorType.CONFIG),default:false};const s3ExpressMiddleware=e=>(t,o)=>async i=>{if(o.endpointV2){const t=o.endpointV2;const d=t.properties?.authSchemes?.[0]?.name===Z;const m=t.properties?.backend===J||t.properties?.bucketType===Y;if(m){U.setFeature(o,"S3_EXPRESS_BUCKET","J");o.isS3ExpressBucket=true}if(d){const t=i.input.Bucket;if(t){const d=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:t});o.s3ExpressIdentity=d;if(a.HttpRequest.isInstance(i.request)&&d.sessionToken){i.request.headers[te]=d.sessionToken}}}}return t(i)};const ie={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:true};const getS3ExpressPlugin=e=>({applyToStack:t=>{t.add(s3ExpressMiddleware(e),ie)}});const signS3Express=async(e,t,o,i)=>{const a=await i.signWithCredentials(o,e,{});if(a.headers["X-Amz-Security-Token"]||a.headers["x-amz-security-token"]){throw new Error("X-Amz-Security-Token must not be set for s3-express requests.")}return a};const defaultErrorHandler=e=>e=>{throw e};const defaultSuccessHandler=(e,t)=>{};const se=j.httpSigningMiddlewareOptions;const s3ExpressHttpSigningMiddleware=e=>(t,o)=>async d=>{if(!a.HttpRequest.isInstance(d.request)){return t(d)}const m=i.getSmithyContext(o);const f=m.selectedHttpAuthScheme;if(!f){throw new Error(`No HttpAuthScheme was selected: unable to sign request`)}const{httpAuthOption:{signingProperties:h={}},identity:P,signer:_}=f;let L;if(o.s3ExpressIdentity){L=await signS3Express(o.s3ExpressIdentity,h,d.request,await e.signer())}else{L=await _.sign(d.request,P,h)}const U=await t({...d,request:L}).catch((_.errorHandler||defaultErrorHandler)(h));(_.successHandler||defaultSuccessHandler)(U.response,h);return U};const getS3ExpressHttpSigningPlugin=e=>({applyToStack:t=>{t.addRelativeTo(s3ExpressHttpSigningMiddleware(e),j.httpSigningMiddlewareOptions)}});const resolveS3Config=(e,{session:t})=>{const[o,i]=t;const{forcePathStyle:a,useAccelerateEndpoint:d,disableMultiregionAccessPoints:m,followRegionRedirects:f,s3ExpressIdentityProvider:h,bucketEndpoint:P,expectContinueHeader:_}=e;return Object.assign(e,{forcePathStyle:a??false,useAccelerateEndpoint:d??false,disableMultiregionAccessPoints:m??false,followRegionRedirects:f??false,s3ExpressIdentityProvider:h??new S3ExpressIdentityProviderImpl((async e=>o().send(new i({Bucket:e})))),bucketEndpoint:P??false,expectContinueHeader:_??2097152})};const ae={CopyObjectCommand:true,UploadPartCopyCommand:true,CompleteMultipartUploadCommand:true};const throw200ExceptionsMiddleware=e=>(t,o)=>async i=>{const d=await t(i);const{response:f}=d;if(!a.HttpResponse.isInstance(f)){return d}const{statusCode:h,body:P}=f;if(h<200||h>=300){return d}const _=await collectBody(P,e);f.body=m.toStream(_);if(_.length===0&&ae[o.commandName]){const e=new Error("S3 aborted request");e.$metadata={httpStatusCode:503};e.name="InternalError";throw e}const L=e.utf8Encoder(_.subarray(_.length-16));if(L&&L.endsWith("</Error>")){f.statusCode=503}return d};const collectBody=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return Promise.resolve(e)}return t.streamCollector(e)||Promise.resolve(new Uint8Array)};const ce={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:true};const getThrow200ExceptionsPlugin=e=>({applyToStack:t=>{t.addRelativeTo(throw200ExceptionsMiddleware(e),ce)}});function bucketEndpointMiddleware(e){return(t,o)=>async i=>{if(e.bucketEndpoint){const e=o.endpointV2;if(e){const t=i.input.Bucket;if(typeof t==="string"){try{const i=new URL(t);o.endpointV2={...e,url:i}}catch(e){const i=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${t} could not be parsed as URL.`;if(o.logger?.constructor?.name==="NoOpLogger"){console.warn(i)}else{o.logger?.warn?.(i)}throw e}}}}return t(i)}}const le={name:"bucketEndpointMiddleware",override:true,relation:"after",toMiddleware:"endpointV2Middleware"};function validateBucketNameMiddleware({bucketEndpoint:e}){return t=>async o=>{const{input:{Bucket:i}}=o;if(!e&&typeof i==="string"&&!f.validate(i)&&i.indexOf("/")>=0){const e=new Error(`Bucket name shouldn't contain '/', received '${i}'`);e.name="InvalidBucketName";throw e}return t({...o})}}const ue={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:true};const getValidateBucketNamePlugin=e=>({applyToStack:t=>{t.add(validateBucketNameMiddleware(e),ue);t.addRelativeTo(bucketEndpointMiddleware(e),le)}});class S3RestXmlProtocol extends h.AwsRestXmlProtocol{async serializeRequest(e,t,o){const i=await super.serializeRequest(e,t,o);const a=P.NormalizedSchema.of(e.input);const d=a.getSchema();let m=0;const f=d[6]??0;if(t&&typeof t==="object"){for(const[e,o]of a.structIterator()){if(++m>f){break}if(e==="Bucket"){if(!t.Bucket&&o.getMergedTraits().httpLabel){throw new Error(`No value provided for input HTTP label: Bucket.`)}break}}}return i}}t.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS=oe;t.S3ExpressIdentityCache=S3ExpressIdentityCache;t.S3ExpressIdentityCacheEntry=S3ExpressIdentityCacheEntry;t.S3ExpressIdentityProviderImpl=S3ExpressIdentityProviderImpl;t.S3RestXmlProtocol=S3RestXmlProtocol;t.SignatureV4S3Express=SignatureV4S3Express;t.checkContentLengthHeader=checkContentLengthHeader;t.checkContentLengthHeaderMiddlewareOptions=K;t.getCheckContentLengthHeaderPlugin=getCheckContentLengthHeaderPlugin;t.getRegionRedirectMiddlewarePlugin=getRegionRedirectMiddlewarePlugin;t.getS3ExpiresMiddlewarePlugin=getS3ExpiresMiddlewarePlugin;t.getS3ExpressHttpSigningPlugin=getS3ExpressHttpSigningPlugin;t.getS3ExpressPlugin=getS3ExpressPlugin;t.getThrow200ExceptionsPlugin=getThrow200ExceptionsPlugin;t.getValidateBucketNamePlugin=getValidateBucketNamePlugin;t.regionRedirectEndpointMiddleware=regionRedirectEndpointMiddleware;t.regionRedirectEndpointMiddlewareOptions=W;t.regionRedirectMiddleware=regionRedirectMiddleware;t.regionRedirectMiddlewareOptions=X;t.resolveS3Config=resolveS3Config;t.s3ExpiresMiddleware=s3ExpiresMiddleware;t.s3ExpiresMiddlewareOptions=Q;t.s3ExpressHttpSigningMiddleware=s3ExpressHttpSigningMiddleware;t.s3ExpressHttpSigningMiddlewareOptions=se;t.s3ExpressMiddleware=s3ExpressMiddleware;t.s3ExpressMiddlewareOptions=ie;t.throw200ExceptionsMiddleware=throw200ExceptionsMiddleware;t.throw200ExceptionsMiddlewareOptions=ce;t.validateBucketNameMiddleware=validateBucketNameMiddleware;t.validateBucketNameMiddlewareOptions=ue},32136:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toStream=toStream;const i=o(57075);function toStream(e){return i.Readable.from(Buffer.from(e))}},35568:(e,t)=>{"use strict";function ssecMiddleware(e){return t=>async o=>{const i={...o.input};const a=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(const t of a){const o=i[t.target];if(o){let a;if(typeof o==="string"){if(isValidBase64EncodedSSECustomerKey(o,e)){a=e.base64Decoder(o)}else{a=e.utf8Decoder(o);i[t.target]=e.base64Encoder(a)}}else{a=ArrayBuffer.isView(o)?new Uint8Array(o.buffer,o.byteOffset,o.byteLength):new Uint8Array(o);i[t.target]=e.base64Encoder(a)}const d=new e.md5;d.update(a);i[t.hash]=e.base64Encoder(await d.digest())}}return t({...o,input:i})}}const o={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:true};const getSsecPlugin=e=>({applyToStack:t=>{t.add(ssecMiddleware(e),o)}});function isValidBase64EncodedSSECustomerKey(e,t){const o=/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;if(!o.test(e))return false;try{const o=t.base64Decoder(e);return o.length===32}catch{return false}}t.getSsecPlugin=getSsecPlugin;t.isValidBase64EncodedSSECustomerKey=isValidBase64EncodedSSECustomerKey;t.ssecMiddleware=ssecMiddleware;t.ssecMiddlewareOptions=o},5785:(e,t,o)=>{"use strict";var i=o(75118);const a={CrtSignerV4:null};const d="X-Amz-S3session-Token";const m=d.toLowerCase();class SignatureV4SignWithCredentials extends i.SignatureV4{async signWithCredentials(e,t,o){const i=getCredentialsWithoutSessionToken(t);e.headers[m]=t.sessionToken;const a=this;setSingleOverride(a,i);return a.signRequest(e,o??{})}async presignWithCredentials(e,t,o){const i=getCredentialsWithoutSessionToken(t);delete e.headers[m];e.headers[d]=t.sessionToken;e.query=e.query??{};e.query[d]=t.sessionToken;const a=this;setSingleOverride(a,i);return this.presign(e,o)}}function getCredentialsWithoutSessionToken(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function setSingleOverride(e,t){const o=e.credentialProvider;e.credentialProvider=()=>{e.credentialProvider=o;return Promise.resolve(t)}}class SignatureV4MultiRegion{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof a.CrtSignerV4==="function"){return"crt"}else if(typeof i.signatureV4aContainer.SignatureV4a==="function"){return"js"}return"none"}constructor(e){this.sigv4Signer=new SignatureV4SignWithCredentials(e);this.signerOptions=e}async sign(e,t={}){if(t.signingRegion==="*"){return this.getSigv4aSigner().sign(e,t)}return this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,o={}){if(o.signingRegion==="*"){const i=this.getSigv4aSigner();const d=a.CrtSignerV4;if(d&&i instanceof d){return i.signWithCredentials(e,t,o)}else{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(e,t,o)}async presign(e,t={}){if(t.signingRegion==="*"){const o=this.getSigv4aSigner();const i=a.CrtSignerV4;if(i&&o instanceof i){return o.presign(e,t)}else{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(e,t)}async presignWithCredentials(e,t,o={}){if(o.signingRegion==="*"){throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].")}return this.sigv4Signer.presignWithCredentials(e,t,o)}getSigv4aSigner(){if(!this.sigv4aSigner){const e=a.CrtSignerV4;const t=i.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!t){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(e&&typeof e==="function"){this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1})}else if(t&&typeof t==="function"){this.sigv4aSigner=new t({...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(!t||typeof t!=="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 t({...this.signerOptions})}}return this.sigv4aSigner}}t.SignatureV4MultiRegion=SignatureV4MultiRegion;t.SignatureV4SignWithCredentials=SignatureV4SignWithCredentials;t.signatureV4CrtContainer=a},94274:(e,t,o)=>{"use strict";var i=o(43343);const a=/[&<>"]/g;const d={"&":"&","<":"<",">":">",'"':"""};function escapeAttribute(e){return e.replace(a,(e=>d[e]))}const m=/[&"'<>\r\n\u0085\u2028]/g;const f={"&":"&",'"':""","'":"'","<":"<",">":">","\r":"
","\n":"
","
":"…","\u2028":"
"};function escapeElement(e){return e.replace(m,(e=>f[e]))}class XmlText{value;constructor(e){this.value=e}toString(){return escapeElement(""+this.value)}}class XmlNode{name;children;attributes={};static of(e,t,o){const i=new XmlNode(e);if(t!==undefined){i.addChildNode(new XmlText(t))}if(o!==undefined){i.withName(o)}return i}constructor(e,t=[]){this.name=e;this.children=t}withName(e){this.name=e;return this}addAttribute(e,t){this.attributes[e]=t;return this}addChildNode(e){this.children.push(e);return this}removeAttribute(e){delete this.attributes[e];return this}n(e){this.name=e;return this}c(e){this.children.push(e);return this}a(e,t){if(t!=null){this.attributes[e]=t}return this}cc(e,t,o=t){if(e[t]!=null){const i=XmlNode.of(t,e[t]).withName(o);this.c(i)}}l(e,t,o,i){if(e[t]!=null){const e=i();e.map((e=>{e.withName(o);this.c(e)}))}}lc(e,t,o,i){if(e[t]!=null){const e=i();const t=new XmlNode(o);e.map((e=>{t.c(e)}));this.c(t)}}toString(){const e=Boolean(this.children.length);let t=`<${this.name}`;const o=this.attributes;for(const e of Object.keys(o)){const i=o[e];if(i!=null){t+=` ${e}="${escapeAttribute(""+i)}"`}}return t+=!e?"/>":`>${this.children.map((e=>e.toString())).join("")}</${this.name}>`}}t.parseXML=i.parseXML;t.XmlNode=XmlNode;t.XmlText=XmlText},7051:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EntityDecoderImpl=t.CURRENCY=t.COMMON_HTML=t.XML=void 0;t.XML={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};t.COMMON_HTML={nbsp:" ",copy:"©",reg:"®",trade:"™",mdash:"—",ndash:"–",hellip:"…",laquo:"«",raquo:"»",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",para:"¶",sect:"§",deg:"°",frac12:"½",frac14:"¼",frac34:"¾"};t.CURRENCY={cent:"¢",pound:"£",curren:"¤",yen:"¥",euro:"€",dollar:"$",fnof:"ƒ",inr:"₹",af:"؋",birr:"ብር",peso:"₱",rub:"₽",won:"₩",yuan:"¥",cedil:"¸"};const o=new Set("!?\\/[]$%{}^&*()<>|+");function validateEntityName(e){if(e[0]==="#"){throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`)}for(const t of e){if(o.has(t)){throw new Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`)}}return e}function mergeEntityMaps(...e){const t=Object.create(null);for(const o of e){if(!o){continue}for(const e of Object.keys(o)){const i=o[e];if(typeof i==="string"){t[e]=i}else if(i&&typeof i==="object"&&i.val!==undefined){const o=i.val;if(typeof o==="string"){t[e]=o}}}}return t}const i="external";const a="base";const d="all";function parseLimitTiers(e){if(!e||e===i){return new Set([i])}if(e===d){return new Set([d])}if(e===a){return new Set([a])}if(Array.isArray(e)){return new Set(e)}return new Set([i])}const m=Object.freeze({allow:0,leave:1,remove:2,throw:3});const f=new Set([9,10,13]);function parseNCRConfig(e){if(!e){return{xmlVersion:1,onLevel:m.allow,nullLevel:m.remove}}const t=e.xmlVersion===1.1?1.1:1;const o=m[e.onNCR??"allow"]??m.allow;const i=m[e.nullNCR??"remove"]??m.remove;const a=Math.max(i,m.remove);return{xmlVersion:t,onLevel:o,nullLevel:a}}const h=class EntityDecoderImpl{_limit;_maxTotalExpansions;_maxExpandedLength;_postCheck;_limitTiers;_numericAllowed;_baseMap;_externalMap;_inputMap;_totalExpansions;_expandedLength;_removeSet;_leaveSet;_ncrXmlVersion;_ncrOnLevel;_ncrNullLevel;constructor(e={}){this._limit=e.limit||{};this._maxTotalExpansions=this._limit.maxTotalExpansions||0;this._maxExpandedLength=this._limit.maxExpandedLength||0;this._postCheck=typeof e.postCheck==="function"?e.postCheck:e=>e;this._limitTiers=parseLimitTiers(this._limit.applyLimitsTo??i);this._numericAllowed=e.numericAllowed??true;this._baseMap=mergeEntityMaps(t.XML,e.namedEntities||null);this._externalMap=Object.create(null);this._inputMap=Object.create(null);this._totalExpansions=0;this._expandedLength=0;this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]);this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);const o=parseNCRConfig(e.ncr);this._ncrXmlVersion=o.xmlVersion;this._ncrOnLevel=o.onLevel;this._ncrNullLevel=o.nullLevel}setExternalEntities(e){if(e){for(const t of Object.keys(e)){validateEntityName(t)}}this._externalMap=mergeEntityMaps(e)}addExternalEntity(e,t){validateEntityName(e);if(typeof t==="string"&&t.indexOf("&")===-1){this._externalMap[e]=t}}addInputEntities(e){this._totalExpansions=0;this._expandedLength=0;this._inputMap=mergeEntityMaps(e)}reset(){this._inputMap=Object.create(null);this._totalExpansions=0;this._expandedLength=0;return this}setXmlVersion(e){this._ncrXmlVersion=e==="1.1"||e===1.1?1.1:1}decode(e){if(typeof e!=="string"||e.length===0){return e}const t=e;const o=[];const d=e.length;let m=0;let f=0;const h=this._maxTotalExpansions>0;const P=this._maxExpandedLength>0;const _=h||P;while(f<d){if(e.charCodeAt(f)!==38){f++;continue}let t=f+1;while(t<d&&e.charCodeAt(t)!==59&&t-f<=32){t++}if(t>=d||e.charCodeAt(t)!==59){f++;continue}const L=e.slice(f+1,t);if(L.length===0){f++;continue}let U;let j;if(this._removeSet.has(L)){U="";if(j===undefined){j=i}}else if(this._leaveSet.has(L)){f++;continue}else if(L.charCodeAt(0)===35){const e=this._resolveNCR(L);if(e===undefined){f++;continue}U=e;j=a}else{const e=this._resolveName(L);U=e?.value;j=e?.tier}if(U===undefined){f++;continue}if(f>m){o.push(e.slice(m,f))}o.push(U);m=t+1;f=m;if(_&&this._tierCounts(j)){if(h){this._totalExpansions++;if(this._totalExpansions>this._maxTotalExpansions){throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: `+`${this._totalExpansions} > ${this._maxTotalExpansions}`)}}if(P){const e=U.length-(L.length+2);if(e>0){this._expandedLength+=e;if(this._expandedLength>this._maxExpandedLength){throw new Error(`[EntityReplacer] Expanded content length limit exceeded: `+`${this._expandedLength} > ${this._maxExpandedLength}`)}}}}}if(m<d){o.push(e.slice(m))}const L=o.length===0?e:o.join("");return this._postCheck(L,t)}_tierCounts(e){if(this._limitTiers.has(d)){return true}return this._limitTiers.has(e)}_resolveName(e){if(e in this._inputMap){return{value:this._inputMap[e],tier:i}}if(e in this._externalMap){return{value:this._externalMap[e],tier:i}}if(e in this._baseMap){return{value:this._baseMap[e],tier:a}}return undefined}_classifyNCR(e){if(e===0){return this._ncrNullLevel}if(e>=55296&&e<=57343){return m.remove}if(this._ncrXmlVersion===1){if(e>=1&&e<=31&&!f.has(e)){return m.remove}}return-1}_applyNCRAction(e,t,o){switch(e){case m.allow:return String.fromCodePoint(o);case m.remove:return"";case m.leave:return undefined;case m.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference `+`&${t}; (U+${o.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(o)}}_resolveNCR(e){const t=e.charCodeAt(1);let o;if(t===120||t===88){o=parseInt(e.slice(2),16)}else{o=parseInt(e.slice(1),10)}if(Number.isNaN(o)||o<0||o>1114111){return undefined}const i=this._classifyNCR(o);if(!this._numericAllowed&&i<m.remove){return undefined}const a=i===-1?this._ncrOnLevel:Math.max(this._ncrOnLevel,i);return this._applyNCRAction(a,e,o)}};t.EntityDecoderImpl=h},43343:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseXML=parseXML;const i=o(50591);const a=o(7051);const d=new a.EntityDecoderImpl({namedEntities:{...a.XML,...a.COMMON_HTML,...a.CURRENCY},numericAllowed:true,limit:{maxTotalExpansions:Infinity},ncr:{xmlVersion:1.1}});const m=new i.XMLParser({attributeNamePrefix:"",processEntities:{enabled:true,maxTotalExpansions:Infinity},htmlEntities:true,entityDecoder:{setExternalEntities:e=>{d.setExternalEntities(e)},addInputEntities:e=>{d.addInputEntities(e)},reset:()=>{d.reset()},decode:e=>d.decode(e),setXmlVersion:e=>void{}},ignoreAttributes:false,ignoreDeclaration:true,parseTagValue:false,trimValues:false,tagValueProcessor:(e,t)=>t.trim()===""&&t.includes("\n")?"":undefined,maxNestedTags:Infinity});function parseXML(e){return m.parse(e,true)}},29320:(e,t,o)=>{"use strict";const i={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")};const a=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");if(!a){globalThis.awslambda=globalThis.awslambda||{}}class InvokeStoreBase{static PROTECTED_KEYS=i;isProtectedKey(e){return Object.values(i).includes(e)}getRequestId(){return this.get(i.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(i.X_RAY_TRACE_ID)}getTenantId(){return this.get(i.TENANT_ID)}}class InvokeStoreSingle extends InvokeStoreBase{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==undefined}get(e){return this.currentContext?.[e]}set(e,t){if(this.isProtectedKey(e)){throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`)}this.currentContext=this.currentContext||{};this.currentContext[e]=t}run(e,t){this.currentContext=e;return t()}}class InvokeStoreMulti extends InvokeStoreBase{als;static async create(){const e=new InvokeStoreMulti;const t=await Promise.resolve().then(o.t.bind(o,16698,23));e.als=new t.AsyncLocalStorage;return e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==undefined}get(e){return this.als.getStore()?.[e]}set(e,t){if(this.isProtectedKey(e)){throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`)}const o=this.als.getStore();if(!o){throw new Error("No context available")}o[e]=t}run(e,t){return this.als.run(e,t)}}t.InvokeStore=void 0;(function(e){let t=null;async function getInstanceAsync(e){if(!t){t=(async()=>{const t=e===true||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env;const o=t?await InvokeStoreMulti.create():new InvokeStoreSingle;if(!a&&globalThis.awslambda?.InvokeStore){return globalThis.awslambda.InvokeStore}else if(!a&&globalThis.awslambda){globalThis.awslambda.InvokeStore=o;return o}else{return o}})()}return t}e.getInstanceAsync=getInstanceAsync;e._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{t=null;if(globalThis.awslambda?.InvokeStore){delete globalThis.awslambda.InvokeStore}globalThis.awslambda={InvokeStore:undefined}}}:undefined})(t.InvokeStore||(t.InvokeStore={}));t.InvokeStoreBase=InvokeStoreBase},56084:function(e,t,o){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const a=i(o(34699));const d=o(73840);const m=o(3032);class AstBuilder{constructor(e){this.newId=e;if(!e){throw new Error("No newId")}this.reset()}reset(){this.stack=[new a.default(m.RuleType.None)];this.comments=[]}startRule(e){this.stack.push(new a.default(e))}endRule(){const e=this.stack.pop();const t=this.transformNode(e);this.currentNode().add(e.ruleType,t)}build(e){if(e.matchedType===m.TokenType.Comment){this.comments.push({location:this.getLocation(e),text:e.matchedText})}else{this.currentNode().add(e.matchedType,e)}}getResult(){return this.currentNode().getSingle(m.RuleType.GherkinDocument)}currentNode(){return this.stack[this.stack.length-1]}getLocation(e,t){return!t?e.location:{line:e.location.line,column:t}}getTags(e){const t=[];const o=e.getSingle(m.RuleType.Tags);if(!o){return t}const i=o.getTokens(m.TokenType.TagLine);for(const e of i){for(const o of e.matchedItems){t.push({location:this.getLocation(e,o.column),name:o.text,id:this.newId()})}}return t}getCells(e){return e.matchedItems.map((t=>({location:this.getLocation(e,t.column),value:t.text})))}getDescription(e){return e.getSingle(m.RuleType.Description)||""}getSteps(e){return e.getItems(m.RuleType.Step)}getTableRows(e){const t=e.getTokens(m.TokenType.TableRow).map((e=>({id:this.newId(),location:this.getLocation(e),cells:this.getCells(e)})));this.ensureCellCount(t);return t.length===0?[]:t}ensureCellCount(e){if(e.length===0){return}const t=e[0].cells.length;e.forEach((e=>{if(e.cells.length!==t){throw d.AstBuilderException.create("inconsistent cell count within the table",e.location)}}))}transformNode(e){switch(e.ruleType){case m.RuleType.Step:{const t=e.getToken(m.TokenType.StepLine);const o=e.getSingle(m.RuleType.DataTable);const i=e.getSingle(m.RuleType.DocString);const a=this.getLocation(t);const d={id:this.newId(),location:a,keyword:t.matchedKeyword,keywordType:t.matchedKeywordType,text:t.matchedText,dataTable:o,docString:i};return d}case m.RuleType.DocString:{const t=e.getTokens(m.TokenType.DocStringSeparator)[0];const o=t.matchedText.length>0?t.matchedText:undefined;const i=e.getTokens(m.TokenType.Other);const a=i.map((e=>e.matchedText)).join("\n");const d={location:this.getLocation(t),content:a,delimiter:t.matchedKeyword};if(o){d.mediaType=o}return d}case m.RuleType.DataTable:{const t=this.getTableRows(e);const o={location:t[0].location,rows:t};return o}case m.RuleType.Background:{const t=e.getToken(m.TokenType.BackgroundLine);const o=this.getDescription(e);const i=this.getSteps(e);const a={id:this.newId(),location:this.getLocation(t),keyword:t.matchedKeyword,name:t.matchedText,description:o,steps:i};return a}case m.RuleType.ScenarioDefinition:{const t=this.getTags(e);const o=e.getSingle(m.RuleType.Scenario);const i=o.getToken(m.TokenType.ScenarioLine);const a=this.getDescription(o);const d=this.getSteps(o);const f=o.getItems(m.RuleType.ExamplesDefinition);const h={id:this.newId(),tags:t,location:this.getLocation(i),keyword:i.matchedKeyword,name:i.matchedText,description:a,steps:d,examples:f};return h}case m.RuleType.ExamplesDefinition:{const t=this.getTags(e);const o=e.getSingle(m.RuleType.Examples);const i=o.getToken(m.TokenType.ExamplesLine);const a=this.getDescription(o);const d=o.getSingle(m.RuleType.ExamplesTable);const f={id:this.newId(),tags:t,location:this.getLocation(i),keyword:i.matchedKeyword,name:i.matchedText,description:a,tableHeader:d?d[0]:undefined,tableBody:d?d.slice(1):[]};return f}case m.RuleType.ExamplesTable:{return this.getTableRows(e)}case m.RuleType.Description:{let t=e.getTokens(m.TokenType.Other);let o=t.length;while(o>0&&t[o-1].line.trimmedLineText===""){o--}t=t.slice(0,o);return t.map((e=>e.matchedText)).join("\n")}case m.RuleType.Feature:{const t=e.getSingle(m.RuleType.FeatureHeader);if(!t){return null}const o=this.getTags(t);const i=t.getToken(m.TokenType.FeatureLine);if(!i){return null}const a=[];const d=e.getSingle(m.RuleType.Background);if(d){a.push({background:d})}for(const t of e.getItems(m.RuleType.ScenarioDefinition)){a.push({scenario:t})}for(const t of e.getItems(m.RuleType.Rule)){a.push({rule:t})}const f=this.getDescription(t);const h=i.matchedGherkinDialect;const P={tags:o,location:this.getLocation(i),language:h,keyword:i.matchedKeyword,name:i.matchedText,description:f,children:a};return P}case m.RuleType.Rule:{const t=e.getSingle(m.RuleType.RuleHeader);if(!t){return null}const o=t.getToken(m.TokenType.RuleLine);if(!o){return null}const i=this.getTags(t);const a=[];const d=e.getSingle(m.RuleType.Background);if(d){a.push({background:d})}for(const t of e.getItems(m.RuleType.ScenarioDefinition)){a.push({scenario:t})}const f=this.getDescription(t);const h={id:this.newId(),location:this.getLocation(o),keyword:o.matchedKeyword,name:o.matchedText,description:f,children:a,tags:i};return h}case m.RuleType.GherkinDocument:{const t=e.getSingle(m.RuleType.Feature);const o={feature:t,comments:this.comments};return o}default:return e}}}t["default"]=AstBuilder},34699:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class AstNode{constructor(e){this.ruleType=e;this.subItems=new Map}add(e,t){let o=this.subItems.get(e);if(o===undefined){o=[];this.subItems.set(e,o)}o.push(t)}getSingle(e){return(this.subItems.get(e)||[])[0]}getItems(e){return this.subItems.get(e)||[]}getToken(e){return(this.subItems.get(e)||[])[0]}getTokens(e){return this.subItems.get(e)||[]}}t["default"]=AstNode},73840:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoSuchLanguageException=t.AstBuilderException=t.CompositeParserException=t.ParserException=t.GherkinException=void 0;class GherkinException extends Error{constructor(e){super(e);const t=new.target.prototype;if(Object.setPrototypeOf){Object.setPrototypeOf(this,t)}else{this.__proto__=t}}static _create(e,t){const o=t!=null?t.column||0:-1;const i=t!=null?t.line||0:-1;const a=`(${i}:${o}): ${e}`;const d=new this(a);d.location=t;return d}}t.GherkinException=GherkinException;class ParserException extends GherkinException{static create(e,t,o){const i=new ParserException(`(${t}:${o}): ${e}`);i.location={line:t,column:o};return i}}t.ParserException=ParserException;class CompositeParserException extends GherkinException{static create(e){const t=`Parser errors:\n${e.map((e=>e.message)).join("\n")}`;const o=new CompositeParserException(t);o.errors=e;return o}}t.CompositeParserException=CompositeParserException;class AstBuilderException extends GherkinException{static create(e,t){return AstBuilderException._create(e,t)}}t.AstBuilderException=AstBuilderException;class NoSuchLanguageException extends GherkinException{static create(e,t){const o=`Language not supported: ${e}`;return NoSuchLanguageException._create(o,t)}}t.NoSuchLanguageException=NoSuchLanguageException},71112:function(e,t,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,o,i){if(i===undefined)i=o;var a=Object.getOwnPropertyDescriptor(t,o);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,i,a)}:function(e,t,o,i){if(i===undefined)i=o;e[i]=t[o]});var a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))t[t.length]=o;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o=ownKeys(e),d=0;d<o.length;d++)if(o[d]!=="default")i(t,e,o[d]);a(t,e);return t}}();var m=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const f=d(o(96088));const h=o(434);const P=m(o(32759));const _=o(73840);const L=m(o(36097));const U=o(3032);const j=L.default;const H=/^\s*#\s*language\s*:\s*([a-zA-Z\-_]+)\s*$/;function addKeywordTypeMappings(e,t,o){for(const i of t){if(!(i in e)){e[i]=[]}e[i].push(o)}}class GherkinClassicTokenMatcher{constructor(e="en"){this.defaultDialectName=e;this.reset()}changeDialect(e,t){const o=j[e];if(!o){throw _.NoSuchLanguageException.create(e,t)}this.dialectName=e;this.dialect=o;this.initializeKeywordTypes();this.initializeSortedStepKeywords()}reset(){if(this.dialectName!==this.defaultDialectName){this.changeDialect(this.defaultDialectName)}this.activeDocStringSeparator=null;this.indentToRemove=0}initializeKeywordTypes(){this.keywordTypesMap={};addKeywordTypeMappings(this.keywordTypesMap,this.dialect.given,f.StepKeywordType.CONTEXT);addKeywordTypeMappings(this.keywordTypesMap,this.dialect.when,f.StepKeywordType.ACTION);addKeywordTypeMappings(this.keywordTypesMap,this.dialect.then,f.StepKeywordType.OUTCOME);addKeywordTypeMappings(this.keywordTypesMap,[].concat(this.dialect.and).concat(this.dialect.but),f.StepKeywordType.CONJUNCTION)}initializeSortedStepKeywords(){this.sortedStepKeywords=[].concat(this.dialect.given).concat(this.dialect.when).concat(this.dialect.then).concat(this.dialect.and).concat(this.dialect.but).sort(h.compareStepKeywords)}match_TagLine(e){if(e.line.startsWith("@")){this.setTokenMatched(e,U.TokenType.TagLine,null,null,null,null,this.getTags(e.line));return true}return false}match_FeatureLine(e){return this.matchTitleLine(e,U.TokenType.FeatureLine,this.dialect.feature)}match_ScenarioLine(e){return this.matchTitleLine(e,U.TokenType.ScenarioLine,this.dialect.scenario)||this.matchTitleLine(e,U.TokenType.ScenarioLine,this.dialect.scenarioOutline)}match_BackgroundLine(e){return this.matchTitleLine(e,U.TokenType.BackgroundLine,this.dialect.background)}match_ExamplesLine(e){return this.matchTitleLine(e,U.TokenType.ExamplesLine,this.dialect.examples)}match_RuleLine(e){return this.matchTitleLine(e,U.TokenType.RuleLine,this.dialect.rule)}match_TableRow(e){if(e.line.startsWith("|")){this.setTokenMatched(e,U.TokenType.TableRow,null,null,null,null,e.line.getTableCells());return true}return false}match_Empty(e){if(e.line.isEmpty){this.setTokenMatched(e,U.TokenType.Empty,null,null,0);return true}return false}match_Comment(e){if(e.line.startsWith("#")){const t=e.line.getLineText(0);this.setTokenMatched(e,U.TokenType.Comment,t,null,0);return true}return false}match_Language(e){const t=e.line.trimmedLineText.match(H);if(t){const o=t[1];this.setTokenMatched(e,U.TokenType.Language,o);this.changeDialect(o,e.location);return true}return false}match_DocStringSeparator(e){return this.activeDocStringSeparator==null?this._match_DocStringSeparator(e,'"""',true)||this._match_DocStringSeparator(e,"```",true):this._match_DocStringSeparator(e,this.activeDocStringSeparator,false)}_match_DocStringSeparator(e,t,o){if(e.line.startsWith(t)){let i=null;if(o){i=e.line.getRestTrimmed(t.length);this.activeDocStringSeparator=t;this.indentToRemove=e.line.indent}else{this.activeDocStringSeparator=null;this.indentToRemove=0}this.setTokenMatched(e,U.TokenType.DocStringSeparator,i,t);return true}return false}match_EOF(e){if(e.isEof){this.setTokenMatched(e,U.TokenType.EOF);return true}return false}match_StepLine(e){for(const t of this.sortedStepKeywords){if(e.line.startsWith(t)){const o=e.line.getRestTrimmed(t.length);const i=this.keywordTypesMap[t];let a=i[0];if(i.length>1){a=f.StepKeywordType.UNKNOWN}this.setTokenMatched(e,U.TokenType.StepLine,o,t,null,a);return true}}return false}match_Other(e){const t=e.line.getLineText(this.indentToRemove);this.setTokenMatched(e,U.TokenType.Other,this.unescapeDocString(t),null,0);return true}getTags(e){const t=e.trimmedLineText.split(/\s#/g,2)[0];let o=e.indent+1;const i=t.split("@");const a=[];for(let t=0;t<i.length;t++){const d=i[t].trimRight();if(d.length===0){continue}if(!d.match(/^\S+$/)){throw _.ParserException.create("A tag may not contain whitespace",e.lineNumber,o)}const m={column:o,text:`@${d}`};a.push(m);o+=(0,P.default)(i[t])+1}return a}matchTitleLine(e,t,o){for(const i of o){if(e.line.startsWithTitleKeyword(i)){const o=e.line.getRestTrimmed(i.length+":".length);this.setTokenMatched(e,t,o,i);return true}}return false}setTokenMatched(e,t,o,i,a,d,m){e.matchedType=t;e.matchedText=o;e.matchedKeyword=i;e.matchedKeywordType=d;e.matchedIndent=typeof a==="number"?a:e.line==null?0:e.line.indent;e.matchedItems=m||[];e.location.column=e.matchedIndent+1;e.matchedGherkinDialect=this.dialectName}unescapeDocString(e){if(this.activeDocStringSeparator==='"""'){return e.replace('\\"\\"\\"','"""')}if(this.activeDocStringSeparator==="```"){return e.replace("\\`\\`\\`","```")}return e}}t["default"]=GherkinClassicTokenMatcher},95422:function(e,t,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,o,i){if(i===undefined)i=o;var a=Object.getOwnPropertyDescriptor(t,o);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,i,a)}:function(e,t,o,i){if(i===undefined)i=o;e[i]=t[o]});var a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))t[t.length]=o;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o=ownKeys(e),d=0;d<o.length;d++)if(o[d]!=="default")i(t,e,o[d]);a(t,e);return t}}();var m=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const f=d(o(96088));const h=o(434);const P=o(73840);const _=m(o(36097));const L=o(3032);const U=_.default;const j=/^(```[`]*)(.*)/;function addKeywordTypeMappings(e,t,o){for(const i of t){if(!(i in e)){e[i]=[]}e[i].push(o)}}class GherkinInMarkdownTokenMatcher{constructor(e="en"){this.defaultDialectName=e;this.dialect=U[e];this.nonStarStepKeywords=[].concat(this.dialect.given).concat(this.dialect.when).concat(this.dialect.then).concat(this.dialect.and).concat(this.dialect.but).filter(((e,t,o)=>e!=="* "&&o.indexOf(e)===t)).sort(h.compareStepKeywords);this.initializeKeywordTypes();this.stepRegexp=new RegExp(`${H.BULLET}(${this.nonStarStepKeywords.map(escapeRegExp).join("|")})`);const t=[].concat(this.dialect.feature).concat(this.dialect.background).concat(this.dialect.rule).concat(this.dialect.scenarioOutline).concat(this.dialect.scenario).concat(this.dialect.examples).filter(((e,t,o)=>o.indexOf(e)===t));this.headerRegexp=new RegExp(`${H.HEADER}(${t.map(escapeRegExp).join("|")})`);this.reset()}changeDialect(e,t){const o=U[e];if(!o){throw P.NoSuchLanguageException.create(e,t)}this.dialectName=e;this.dialect=o;this.initializeKeywordTypes()}initializeKeywordTypes(){this.keywordTypesMap={};addKeywordTypeMappings(this.keywordTypesMap,this.dialect.given,f.StepKeywordType.CONTEXT);addKeywordTypeMappings(this.keywordTypesMap,this.dialect.when,f.StepKeywordType.ACTION);addKeywordTypeMappings(this.keywordTypesMap,this.dialect.then,f.StepKeywordType.OUTCOME);addKeywordTypeMappings(this.keywordTypesMap,[].concat(this.dialect.and).concat(this.dialect.but),f.StepKeywordType.CONJUNCTION)}match_Language(e){if(!e)throw new Error("no token");return false}match_Empty(e){let t=false;if(e.line.isEmpty){t=true}if(!this.match_TagLine(e)&&!this.match_FeatureLine(e)&&!this.match_ScenarioLine(e)&&!this.match_BackgroundLine(e)&&!this.match_ExamplesLine(e)&&!this.match_RuleLine(e)&&!this.match_TableRow(e)&&!this.match_Comment(e)&&!this.match_Language(e)&&!this.match_DocStringSeparator(e)&&!this.match_EOF(e)&&!this.match_StepLine(e)){t=true}if(t){e.matchedType=L.TokenType.Empty}return this.setTokenMatched(e,null,t)}match_Other(e){const t=e.line.getLineText(this.indentToRemove);e.matchedType=L.TokenType.Other;e.matchedText=t;e.matchedIndent=0;return this.setTokenMatched(e,null,true)}match_Comment(e){let t=false;if(e.line.startsWith("|")){const o=e.line.getTableCells();if(this.isGfmTableSeparator(o))t=true}return this.setTokenMatched(e,null,t)}match_DocStringSeparator(e){const t=e.line.trimmedLineText.match(this.activeDocStringSeparator);const[,o,i]=t||[];let a=false;if(o){if(this.activeDocStringSeparator===j){this.activeDocStringSeparator=new RegExp(`^(${o})$`);this.indentToRemove=e.line.indent}else{this.activeDocStringSeparator=j}e.matchedKeyword=o;e.matchedType=L.TokenType.DocStringSeparator;e.matchedText=i||"";a=true}return this.setTokenMatched(e,null,a)}match_EOF(e){let t=false;if(e.isEof){e.matchedType=L.TokenType.EOF;t=true}return this.setTokenMatched(e,null,t)}match_FeatureLine(e){if(this.matchedFeatureLine){return this.setTokenMatched(e,null,false)}let t=this.matchTitleLine(H.HEADER,this.dialect.feature,":",e,L.TokenType.FeatureLine);if(!t){e.matchedType=L.TokenType.FeatureLine;e.matchedText=e.line.trimmedLineText;t=this.setTokenMatched(e,null,true)}this.matchedFeatureLine=t;return t}match_BackgroundLine(e){return this.matchTitleLine(H.HEADER,this.dialect.background,":",e,L.TokenType.BackgroundLine)}match_RuleLine(e){return this.matchTitleLine(H.HEADER,this.dialect.rule,":",e,L.TokenType.RuleLine)}match_ScenarioLine(e){return this.matchTitleLine(H.HEADER,this.dialect.scenario,":",e,L.TokenType.ScenarioLine)||this.matchTitleLine(H.HEADER,this.dialect.scenarioOutline,":",e,L.TokenType.ScenarioLine)}match_ExamplesLine(e){return this.matchTitleLine(H.HEADER,this.dialect.examples,":",e,L.TokenType.ExamplesLine)}match_StepLine(e){return this.matchTitleLine(H.BULLET,this.nonStarStepKeywords,"",e,L.TokenType.StepLine)}matchTitleLine(e,t,o,i,a){const d=new RegExp(`${e}(${t.map(escapeRegExp).join("|")})${o}(.*)`);const m=i.line.match(d);let h=i.line.indent;let P=false;if(m){i.matchedType=a;i.matchedKeyword=m[2];if(m[2]in this.keywordTypesMap){if(this.keywordTypesMap[m[2]].length>1){i.matchedKeywordType=f.StepKeywordType.UNKNOWN}else{i.matchedKeywordType=this.keywordTypesMap[m[2]][0]}}i.matchedText=m[3].trim();h+=m[1].length;P=true}return this.setTokenMatched(i,h,P)}setTokenMatched(e,t,o){e.matchedGherkinDialect=this.dialectName;e.matchedIndent=t!==null?t:e.line==null?0:e.line.indent;e.location.column=e.matchedIndent+1;return o}match_TableRow(e){if(e.line.lineText.match(/^\s\s\s?\s?\s?\|/)){const t=e.line.getTableCells();if(this.isGfmTableSeparator(t))return false;e.matchedKeyword="|";e.matchedType=L.TokenType.TableRow;e.matchedItems=t;return true}return false}isGfmTableSeparator(e){const t=e.map((e=>e.text)).filter((e=>e.match(/^:?-+:?$/)));return t.length>0}match_TagLine(e){const t=[];let o;const i=/`(@[^`]+)`/g;do{o=i.exec(e.line.trimmedLineText);if(o){t.push({column:e.line.indent+o.index+2,text:o[1]})}}while(o);if(t.length===0)return false;e.matchedType=L.TokenType.TagLine;e.matchedItems=t;return true}reset(){if(this.dialectName!==this.defaultDialectName){this.changeDialect(this.defaultDialectName)}this.activeDocStringSeparator=j}}t["default"]=GherkinInMarkdownTokenMatcher;var H;(function(e){e["BULLET"]="^(\\s*[*+-]\\s*)";e["HEADER"]="^(#{1,6}\\s)"})(H||(H={}));function escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},79855:function(e,t,o){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const a=i(o(32759));class GherkinLine{constructor(e,t){this.lineText=e;this.lineNumber=t;this.trimmedLineText=e.replace(/^\s+/g,"");this.isEmpty=this.trimmedLineText.length===0;this.indent=(0,a.default)(e)-(0,a.default)(this.trimmedLineText)}startsWith(e){return this.trimmedLineText.indexOf(e)===0}startsWithTitleKeyword(e){return this.startsWith(`${e}:`)}match(e){return this.trimmedLineText.match(e)}getLineText(e){if(e<0||e>this.indent){return this.trimmedLineText}else{return this.lineText.substring(e)}}getRestTrimmed(e){return this.trimmedLineText.substring(e).trim()}getTableCells(){const e=[];let t=0;let o=t+1;let i="";let a=true;while(t<this.trimmedLineText.length){let d=this.trimmedLineText[t];t++;if(d==="|"){if(a){a=false}else{const t=i.replace(/^[ \t\v\f\r\u0085\u00A0]*/g,"");const a=t.replace(/[ \t\v\f\r\u0085\u00A0]*$/g,"");const d=i.length-t.length;const m={column:this.indent+o+d,text:a};e.push(m)}i="";o=t+1}else if(d==="\\"){d=this.trimmedLineText[t];t+=1;if(d==="n"){i+="\n"}else{if(d!=="|"&&d!=="\\"){i+="\\"}i+=d}}else{i+=d}}return e}}t["default"]=GherkinLine;e.exports=GherkinLine},3032:function(e,t,o){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.RuleType=t.TokenType=t.Token=void 0;const a=o(73840);const d=o(34272);const m=i(o(80282));const f=i(o(79855));class Token{constructor(e,t){this.line=e;this.location=t;this.isEof=!e}getTokenValue(){return this.isEof?"EOF":this.line.getLineText(-1)}}t.Token=Token;var h;(function(e){e[e["None"]=0]="None";e[e["EOF"]=1]="EOF";e[e["Empty"]=2]="Empty";e[e["Comment"]=3]="Comment";e[e["TagLine"]=4]="TagLine";e[e["FeatureLine"]=5]="FeatureLine";e[e["RuleLine"]=6]="RuleLine";e[e["BackgroundLine"]=7]="BackgroundLine";e[e["ScenarioLine"]=8]="ScenarioLine";e[e["ExamplesLine"]=9]="ExamplesLine";e[e["StepLine"]=10]="StepLine";e[e["DocStringSeparator"]=11]="DocStringSeparator";e[e["TableRow"]=12]="TableRow";e[e["Language"]=13]="Language";e[e["Other"]=14]="Other"})(h||(t.TokenType=h={}));var P;(function(e){e[e["None"]=0]="None";e[e["_EOF"]=1]="_EOF";e[e["_Empty"]=2]="_Empty";e[e["_Comment"]=3]="_Comment";e[e["_TagLine"]=4]="_TagLine";e[e["_FeatureLine"]=5]="_FeatureLine";e[e["_RuleLine"]=6]="_RuleLine";e[e["_BackgroundLine"]=7]="_BackgroundLine";e[e["_ScenarioLine"]=8]="_ScenarioLine";e[e["_ExamplesLine"]=9]="_ExamplesLine";e[e["_StepLine"]=10]="_StepLine";e[e["_DocStringSeparator"]=11]="_DocStringSeparator";e[e["_TableRow"]=12]="_TableRow";e[e["_Language"]=13]="_Language";e[e["_Other"]=14]="_Other";e[e["GherkinDocument"]=15]="GherkinDocument";e[e["Feature"]=16]="Feature";e[e["FeatureHeader"]=17]="FeatureHeader";e[e["Rule"]=18]="Rule";e[e["RuleHeader"]=19]="RuleHeader";e[e["Background"]=20]="Background";e[e["ScenarioDefinition"]=21]="ScenarioDefinition";e[e["Scenario"]=22]="Scenario";e[e["ExamplesDefinition"]=23]="ExamplesDefinition";e[e["Examples"]=24]="Examples";e[e["ExamplesTable"]=25]="ExamplesTable";e[e["Step"]=26]="Step";e[e["StepArg"]=27]="StepArg";e[e["DataTable"]=28]="DataTable";e[e["DocString"]=29]="DocString";e[e["Tags"]=30]="Tags";e[e["DescriptionHelper"]=31]="DescriptionHelper";e[e["Description"]=32]="Description"})(P||(t.RuleType=P={}));class Parser{constructor(e,t){this.builder=e;this.tokenMatcher=t;this.stopAtFirstError=false}parse(e){const t=new m.default(e,((e,t)=>{const o=e===null||e===undefined?null:new f.default(e,t.line);return new Token(o,t)}));this.builder.reset();this.tokenMatcher.reset();this.context={tokenScanner:t,tokenQueue:[],errors:[]};this.startRule(this.context,P.GherkinDocument);let o=0;let i=null;while(true){i=this.readToken(this.context);o=this.matchToken(o,i,this.context);if(i.isEof)break}this.endRule(this.context);if(this.context.errors.length>0){throw a.CompositeParserException.create(this.context.errors)}return this.getResult()}addError(e,t){if(!e.errors.map((e=>e.message)).includes(t.message)){e.errors.push(t);if(e.errors.length>10)throw a.CompositeParserException.create(e.errors)}}startRule(e,t){this.handleAstError(e,(()=>this.builder.startRule(t)))}endRule(e){this.handleAstError(e,(()=>this.builder.endRule()))}build(e,t){this.handleAstError(e,(()=>this.builder.build(t)))}getResult(){return this.builder.getResult()}handleAstError(e,t){this.handleExternalError(e,true,t)}handleExternalError(e,t,o){if(this.stopAtFirstError)return o();try{return o()}catch(t){if(t instanceof a.CompositeParserException){t.errors.forEach((t=>this.addError(e,t)))}else if(t instanceof a.ParserException||t instanceof a.AstBuilderException||t instanceof d.UnexpectedTokenException||t instanceof a.NoSuchLanguageException){this.addError(e,t)}else{throw t}}return t}readToken(e){return e.tokenQueue.length>0?e.tokenQueue.shift():e.tokenScanner.read()}matchToken(e,t,o){switch(e){case 0:return this.matchTokenAt_0(t,o);case 1:return this.matchTokenAt_1(t,o);case 2:return this.matchTokenAt_2(t,o);case 3:return this.matchTokenAt_3(t,o);case 4:return this.matchTokenAt_4(t,o);case 5:return this.matchTokenAt_5(t,o);case 6:return this.matchTokenAt_6(t,o);case 7:return this.matchTokenAt_7(t,o);case 8:return this.matchTokenAt_8(t,o);case 9:return this.matchTokenAt_9(t,o);case 10:return this.matchTokenAt_10(t,o);case 11:return this.matchTokenAt_11(t,o);case 12:return this.matchTokenAt_12(t,o);case 13:return this.matchTokenAt_13(t,o);case 14:return this.matchTokenAt_14(t,o);case 15:return this.matchTokenAt_15(t,o);case 16:return this.matchTokenAt_16(t,o);case 17:return this.matchTokenAt_17(t,o);case 18:return this.matchTokenAt_18(t,o);case 19:return this.matchTokenAt_19(t,o);case 20:return this.matchTokenAt_20(t,o);case 21:return this.matchTokenAt_21(t,o);case 22:return this.matchTokenAt_22(t,o);case 23:return this.matchTokenAt_23(t,o);case 24:return this.matchTokenAt_24(t,o);case 25:return this.matchTokenAt_25(t,o);case 26:return this.matchTokenAt_26(t,o);case 27:return this.matchTokenAt_27(t,o);case 28:return this.matchTokenAt_28(t,o);case 29:return this.matchTokenAt_29(t,o);case 30:return this.matchTokenAt_30(t,o);case 31:return this.matchTokenAt_31(t,o);case 32:return this.matchTokenAt_32(t,o);case 33:return this.matchTokenAt_33(t,o);case 35:return this.matchTokenAt_35(t,o);case 36:return this.matchTokenAt_36(t,o);case 37:return this.matchTokenAt_37(t,o);case 38:return this.matchTokenAt_38(t,o);case 39:return this.matchTokenAt_39(t,o);case 40:return this.matchTokenAt_40(t,o);case 41:return this.matchTokenAt_41(t,o);case 42:return this.matchTokenAt_42(t,o);default:throw new Error("Unknown state: "+e)}}matchTokenAt_0(e,t){if(this.match_EOF(t,e)){this.build(t,e);return 34}if(this.match_Language(t,e)){this.startRule(t,P.Feature);this.startRule(t,P.FeatureHeader);this.build(t,e);return 1}if(this.match_TagLine(t,e)){this.startRule(t,P.Feature);this.startRule(t,P.FeatureHeader);this.startRule(t,P.Tags);this.build(t,e);return 2}if(this.match_FeatureLine(t,e)){this.startRule(t,P.Feature);this.startRule(t,P.FeatureHeader);this.build(t,e);return 3}if(this.match_Comment(t,e)){this.build(t,e);return 0}if(this.match_Empty(t,e)){this.build(t,e);return 0}const o=["#EOF","#Language","#TagLine","#FeatureLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 0}matchTokenAt_1(e,t){if(this.match_TagLine(t,e)){this.startRule(t,P.Tags);this.build(t,e);return 2}if(this.match_FeatureLine(t,e)){this.build(t,e);return 3}if(this.match_Comment(t,e)){this.build(t,e);return 1}if(this.match_Empty(t,e)){this.build(t,e);return 1}const o=["#TagLine","#FeatureLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 1}matchTokenAt_2(e,t){if(this.match_TagLine(t,e)){this.build(t,e);return 2}if(this.match_FeatureLine(t,e)){this.endRule(t);this.build(t,e);return 3}if(this.match_Comment(t,e)){this.build(t,e);return 2}if(this.match_Empty(t,e)){this.build(t,e);return 2}const o=["#TagLine","#FeatureLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 2}matchTokenAt_3(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_Empty(t,e)){this.build(t,e);return 3}if(this.match_Comment(t,e)){this.startRule(t,P.Description);this.build(t,e);return 4}if(this.match_BackgroundLine(t,e)){this.endRule(t);this.startRule(t,P.Background);this.build(t,e);return 5}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 9}}if(this.match_TagLine(t,e)){this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 10}if(this.match_RuleLine(t,e)){this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Other(t,e)){this.startRule(t,P.Description);this.build(t,e);return 4}const o=["#EOF","#Empty","#Comment","#BackgroundLine","#TagLine","#ScenarioLine","#RuleLine","#Other"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 3}matchTokenAt_4(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_Comment(t,e)){this.build(t,e);return 4}if(this.match_BackgroundLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Background);this.build(t,e);return 5}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 9}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 10}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Other(t,e)){this.build(t,e);return 4}const o=["#EOF","#Comment","#BackgroundLine","#TagLine","#ScenarioLine","#RuleLine","#Other"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 4}matchTokenAt_5(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_Empty(t,e)){this.build(t,e);return 5}if(this.match_Comment(t,e)){this.startRule(t,P.Description);this.build(t,e);return 6}if(this.match_StepLine(t,e)){this.startRule(t,P.Step);this.build(t,e);return 7}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 9}}if(this.match_TagLine(t,e)){this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 10}if(this.match_RuleLine(t,e)){this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Other(t,e)){this.startRule(t,P.Description);this.build(t,e);return 6}const o=["#EOF","#Empty","#Comment","#StepLine","#TagLine","#ScenarioLine","#RuleLine","#Other"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 5}matchTokenAt_6(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_Comment(t,e)){this.build(t,e);return 6}if(this.match_StepLine(t,e)){this.endRule(t);this.startRule(t,P.Step);this.build(t,e);return 7}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 9}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 10}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Other(t,e)){this.build(t,e);return 6}const o=["#EOF","#Comment","#StepLine","#TagLine","#ScenarioLine","#RuleLine","#Other"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 6}matchTokenAt_7(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_TableRow(t,e)){this.startRule(t,P.DataTable);this.build(t,e);return 8}if(this.match_DocStringSeparator(t,e)){this.startRule(t,P.DocString);this.build(t,e);return 41}if(this.match_StepLine(t,e)){this.endRule(t);this.startRule(t,P.Step);this.build(t,e);return 7}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 9}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 10}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Comment(t,e)){this.build(t,e);return 7}if(this.match_Empty(t,e)){this.build(t,e);return 7}const o=["#EOF","#TableRow","#DocStringSeparator","#StepLine","#TagLine","#ScenarioLine","#RuleLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 7}matchTokenAt_8(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_TableRow(t,e)){this.build(t,e);return 8}if(this.match_StepLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Step);this.build(t,e);return 7}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 9}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 10}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Comment(t,e)){this.build(t,e);return 8}if(this.match_Empty(t,e)){this.build(t,e);return 8}const o=["#EOF","#TableRow","#StepLine","#TagLine","#ScenarioLine","#RuleLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 8}matchTokenAt_9(e,t){if(this.match_TagLine(t,e)){this.build(t,e);return 9}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.startRule(t,P.Scenario);this.build(t,e);return 10}if(this.match_Comment(t,e)){this.build(t,e);return 9}if(this.match_Empty(t,e)){this.build(t,e);return 9}const o=["#TagLine","#ScenarioLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 9}matchTokenAt_10(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_Empty(t,e)){this.build(t,e);return 10}if(this.match_Comment(t,e)){this.startRule(t,P.Description);this.build(t,e);return 11}if(this.match_StepLine(t,e)){this.startRule(t,P.Step);this.build(t,e);return 12}if(this.match_TagLine(t,e)){if(this.lookahead_1(t,e)){this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Tags);this.build(t,e);return 14}}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 9}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ExamplesLine(t,e)){this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Examples);this.build(t,e);return 15}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 10}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Other(t,e)){this.startRule(t,P.Description);this.build(t,e);return 11}const o=["#EOF","#Empty","#Comment","#StepLine","#TagLine","#ExamplesLine","#ScenarioLine","#RuleLine","#Other"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 10}matchTokenAt_11(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_Comment(t,e)){this.build(t,e);return 11}if(this.match_StepLine(t,e)){this.endRule(t);this.startRule(t,P.Step);this.build(t,e);return 12}if(this.match_TagLine(t,e)){if(this.lookahead_1(t,e)){this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Tags);this.build(t,e);return 14}}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 9}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ExamplesLine(t,e)){this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Examples);this.build(t,e);return 15}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 10}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Other(t,e)){this.build(t,e);return 11}const o=["#EOF","#Comment","#StepLine","#TagLine","#ExamplesLine","#ScenarioLine","#RuleLine","#Other"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 11}matchTokenAt_12(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_TableRow(t,e)){this.startRule(t,P.DataTable);this.build(t,e);return 13}if(this.match_DocStringSeparator(t,e)){this.startRule(t,P.DocString);this.build(t,e);return 39}if(this.match_StepLine(t,e)){this.endRule(t);this.startRule(t,P.Step);this.build(t,e);return 12}if(this.match_TagLine(t,e)){if(this.lookahead_1(t,e)){this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Tags);this.build(t,e);return 14}}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 9}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ExamplesLine(t,e)){this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Examples);this.build(t,e);return 15}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 10}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Comment(t,e)){this.build(t,e);return 12}if(this.match_Empty(t,e)){this.build(t,e);return 12}const o=["#EOF","#TableRow","#DocStringSeparator","#StepLine","#TagLine","#ExamplesLine","#ScenarioLine","#RuleLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 12}matchTokenAt_13(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_TableRow(t,e)){this.build(t,e);return 13}if(this.match_StepLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Step);this.build(t,e);return 12}if(this.match_TagLine(t,e)){if(this.lookahead_1(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Tags);this.build(t,e);return 14}}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 9}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ExamplesLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Examples);this.build(t,e);return 15}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 10}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Comment(t,e)){this.build(t,e);return 13}if(this.match_Empty(t,e)){this.build(t,e);return 13}const o=["#EOF","#TableRow","#StepLine","#TagLine","#ExamplesLine","#ScenarioLine","#RuleLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 13}matchTokenAt_14(e,t){if(this.match_TagLine(t,e)){this.build(t,e);return 14}if(this.match_ExamplesLine(t,e)){this.endRule(t);this.startRule(t,P.Examples);this.build(t,e);return 15}if(this.match_Comment(t,e)){this.build(t,e);return 14}if(this.match_Empty(t,e)){this.build(t,e);return 14}const o=["#TagLine","#ExamplesLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 14}matchTokenAt_15(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_Empty(t,e)){this.build(t,e);return 15}if(this.match_Comment(t,e)){this.startRule(t,P.Description);this.build(t,e);return 16}if(this.match_TableRow(t,e)){this.startRule(t,P.ExamplesTable);this.build(t,e);return 17}if(this.match_TagLine(t,e)){if(this.lookahead_1(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Tags);this.build(t,e);return 14}}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 9}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ExamplesLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Examples);this.build(t,e);return 15}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 10}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Other(t,e)){this.startRule(t,P.Description);this.build(t,e);return 16}const o=["#EOF","#Empty","#Comment","#TableRow","#TagLine","#ExamplesLine","#ScenarioLine","#RuleLine","#Other"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 15}matchTokenAt_16(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_Comment(t,e)){this.build(t,e);return 16}if(this.match_TableRow(t,e)){this.endRule(t);this.startRule(t,P.ExamplesTable);this.build(t,e);return 17}if(this.match_TagLine(t,e)){if(this.lookahead_1(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Tags);this.build(t,e);return 14}}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 9}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ExamplesLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Examples);this.build(t,e);return 15}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 10}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Other(t,e)){this.build(t,e);return 16}const o=["#EOF","#Comment","#TableRow","#TagLine","#ExamplesLine","#ScenarioLine","#RuleLine","#Other"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 16}matchTokenAt_17(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_TableRow(t,e)){this.build(t,e);return 17}if(this.match_TagLine(t,e)){if(this.lookahead_1(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Tags);this.build(t,e);return 14}}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 9}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ExamplesLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Examples);this.build(t,e);return 15}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 10}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Comment(t,e)){this.build(t,e);return 17}if(this.match_Empty(t,e)){this.build(t,e);return 17}const o=["#EOF","#TableRow","#TagLine","#ExamplesLine","#ScenarioLine","#RuleLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 17}matchTokenAt_18(e,t){if(this.match_TagLine(t,e)){this.build(t,e);return 18}if(this.match_RuleLine(t,e)){this.endRule(t);this.build(t,e);return 19}if(this.match_Comment(t,e)){this.build(t,e);return 18}if(this.match_Empty(t,e)){this.build(t,e);return 18}const o=["#TagLine","#RuleLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 18}matchTokenAt_19(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_Empty(t,e)){this.build(t,e);return 19}if(this.match_Comment(t,e)){this.startRule(t,P.Description);this.build(t,e);return 20}if(this.match_BackgroundLine(t,e)){this.endRule(t);this.startRule(t,P.Background);this.build(t,e);return 21}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 25}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 26}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Other(t,e)){this.startRule(t,P.Description);this.build(t,e);return 20}const o=["#EOF","#Empty","#Comment","#BackgroundLine","#TagLine","#ScenarioLine","#RuleLine","#Other"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 19}matchTokenAt_20(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_Comment(t,e)){this.build(t,e);return 20}if(this.match_BackgroundLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Background);this.build(t,e);return 21}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 25}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 26}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Other(t,e)){this.build(t,e);return 20}const o=["#EOF","#Comment","#BackgroundLine","#TagLine","#ScenarioLine","#RuleLine","#Other"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 20}matchTokenAt_21(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_Empty(t,e)){this.build(t,e);return 21}if(this.match_Comment(t,e)){this.startRule(t,P.Description);this.build(t,e);return 22}if(this.match_StepLine(t,e)){this.startRule(t,P.Step);this.build(t,e);return 23}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 25}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 26}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Other(t,e)){this.startRule(t,P.Description);this.build(t,e);return 22}const o=["#EOF","#Empty","#Comment","#StepLine","#TagLine","#ScenarioLine","#RuleLine","#Other"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 21}matchTokenAt_22(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_Comment(t,e)){this.build(t,e);return 22}if(this.match_StepLine(t,e)){this.endRule(t);this.startRule(t,P.Step);this.build(t,e);return 23}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 25}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 26}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Other(t,e)){this.build(t,e);return 22}const o=["#EOF","#Comment","#StepLine","#TagLine","#ScenarioLine","#RuleLine","#Other"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 22}matchTokenAt_23(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_TableRow(t,e)){this.startRule(t,P.DataTable);this.build(t,e);return 24}if(this.match_DocStringSeparator(t,e)){this.startRule(t,P.DocString);this.build(t,e);return 37}if(this.match_StepLine(t,e)){this.endRule(t);this.startRule(t,P.Step);this.build(t,e);return 23}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 25}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 26}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Comment(t,e)){this.build(t,e);return 23}if(this.match_Empty(t,e)){this.build(t,e);return 23}const o=["#EOF","#TableRow","#DocStringSeparator","#StepLine","#TagLine","#ScenarioLine","#RuleLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 23}matchTokenAt_24(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_TableRow(t,e)){this.build(t,e);return 24}if(this.match_StepLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Step);this.build(t,e);return 23}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 25}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 26}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Comment(t,e)){this.build(t,e);return 24}if(this.match_Empty(t,e)){this.build(t,e);return 24}const o=["#EOF","#TableRow","#StepLine","#TagLine","#ScenarioLine","#RuleLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 24}matchTokenAt_25(e,t){if(this.match_TagLine(t,e)){this.build(t,e);return 25}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.startRule(t,P.Scenario);this.build(t,e);return 26}if(this.match_Comment(t,e)){this.build(t,e);return 25}if(this.match_Empty(t,e)){this.build(t,e);return 25}const o=["#TagLine","#ScenarioLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 25}matchTokenAt_26(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_Empty(t,e)){this.build(t,e);return 26}if(this.match_Comment(t,e)){this.startRule(t,P.Description);this.build(t,e);return 27}if(this.match_StepLine(t,e)){this.startRule(t,P.Step);this.build(t,e);return 28}if(this.match_TagLine(t,e)){if(this.lookahead_1(t,e)){this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Tags);this.build(t,e);return 30}}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 25}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ExamplesLine(t,e)){this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Examples);this.build(t,e);return 31}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 26}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Other(t,e)){this.startRule(t,P.Description);this.build(t,e);return 27}const o=["#EOF","#Empty","#Comment","#StepLine","#TagLine","#ExamplesLine","#ScenarioLine","#RuleLine","#Other"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 26}matchTokenAt_27(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_Comment(t,e)){this.build(t,e);return 27}if(this.match_StepLine(t,e)){this.endRule(t);this.startRule(t,P.Step);this.build(t,e);return 28}if(this.match_TagLine(t,e)){if(this.lookahead_1(t,e)){this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Tags);this.build(t,e);return 30}}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 25}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ExamplesLine(t,e)){this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Examples);this.build(t,e);return 31}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 26}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Other(t,e)){this.build(t,e);return 27}const o=["#EOF","#Comment","#StepLine","#TagLine","#ExamplesLine","#ScenarioLine","#RuleLine","#Other"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 27}matchTokenAt_28(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_TableRow(t,e)){this.startRule(t,P.DataTable);this.build(t,e);return 29}if(this.match_DocStringSeparator(t,e)){this.startRule(t,P.DocString);this.build(t,e);return 35}if(this.match_StepLine(t,e)){this.endRule(t);this.startRule(t,P.Step);this.build(t,e);return 28}if(this.match_TagLine(t,e)){if(this.lookahead_1(t,e)){this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Tags);this.build(t,e);return 30}}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 25}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ExamplesLine(t,e)){this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Examples);this.build(t,e);return 31}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 26}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Comment(t,e)){this.build(t,e);return 28}if(this.match_Empty(t,e)){this.build(t,e);return 28}const o=["#EOF","#TableRow","#DocStringSeparator","#StepLine","#TagLine","#ExamplesLine","#ScenarioLine","#RuleLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 28}matchTokenAt_29(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_TableRow(t,e)){this.build(t,e);return 29}if(this.match_StepLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Step);this.build(t,e);return 28}if(this.match_TagLine(t,e)){if(this.lookahead_1(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Tags);this.build(t,e);return 30}}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 25}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ExamplesLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Examples);this.build(t,e);return 31}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 26}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Comment(t,e)){this.build(t,e);return 29}if(this.match_Empty(t,e)){this.build(t,e);return 29}const o=["#EOF","#TableRow","#StepLine","#TagLine","#ExamplesLine","#ScenarioLine","#RuleLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 29}matchTokenAt_30(e,t){if(this.match_TagLine(t,e)){this.build(t,e);return 30}if(this.match_ExamplesLine(t,e)){this.endRule(t);this.startRule(t,P.Examples);this.build(t,e);return 31}if(this.match_Comment(t,e)){this.build(t,e);return 30}if(this.match_Empty(t,e)){this.build(t,e);return 30}const o=["#TagLine","#ExamplesLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 30}matchTokenAt_31(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_Empty(t,e)){this.build(t,e);return 31}if(this.match_Comment(t,e)){this.startRule(t,P.Description);this.build(t,e);return 32}if(this.match_TableRow(t,e)){this.startRule(t,P.ExamplesTable);this.build(t,e);return 33}if(this.match_TagLine(t,e)){if(this.lookahead_1(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Tags);this.build(t,e);return 30}}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 25}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ExamplesLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Examples);this.build(t,e);return 31}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 26}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Other(t,e)){this.startRule(t,P.Description);this.build(t,e);return 32}const o=["#EOF","#Empty","#Comment","#TableRow","#TagLine","#ExamplesLine","#ScenarioLine","#RuleLine","#Other"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 31}matchTokenAt_32(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_Comment(t,e)){this.build(t,e);return 32}if(this.match_TableRow(t,e)){this.endRule(t);this.startRule(t,P.ExamplesTable);this.build(t,e);return 33}if(this.match_TagLine(t,e)){if(this.lookahead_1(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Tags);this.build(t,e);return 30}}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 25}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ExamplesLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Examples);this.build(t,e);return 31}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 26}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Other(t,e)){this.build(t,e);return 32}const o=["#EOF","#Comment","#TableRow","#TagLine","#ExamplesLine","#ScenarioLine","#RuleLine","#Other"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 32}matchTokenAt_33(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_TableRow(t,e)){this.build(t,e);return 33}if(this.match_TagLine(t,e)){if(this.lookahead_1(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Tags);this.build(t,e);return 30}}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 25}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ExamplesLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Examples);this.build(t,e);return 31}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 26}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Comment(t,e)){this.build(t,e);return 33}if(this.match_Empty(t,e)){this.build(t,e);return 33}const o=["#EOF","#TableRow","#TagLine","#ExamplesLine","#ScenarioLine","#RuleLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 33}matchTokenAt_35(e,t){if(this.match_DocStringSeparator(t,e)){this.build(t,e);return 36}if(this.match_Other(t,e)){this.build(t,e);return 35}const o=["#DocStringSeparator","#Other"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 35}matchTokenAt_36(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_StepLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Step);this.build(t,e);return 28}if(this.match_TagLine(t,e)){if(this.lookahead_1(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Tags);this.build(t,e);return 30}}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 25}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ExamplesLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Examples);this.build(t,e);return 31}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 26}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Comment(t,e)){this.build(t,e);return 36}if(this.match_Empty(t,e)){this.build(t,e);return 36}const o=["#EOF","#StepLine","#TagLine","#ExamplesLine","#ScenarioLine","#RuleLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 36}matchTokenAt_37(e,t){if(this.match_DocStringSeparator(t,e)){this.build(t,e);return 38}if(this.match_Other(t,e)){this.build(t,e);return 37}const o=["#DocStringSeparator","#Other"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 37}matchTokenAt_38(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_StepLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Step);this.build(t,e);return 23}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 25}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 26}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Comment(t,e)){this.build(t,e);return 38}if(this.match_Empty(t,e)){this.build(t,e);return 38}const o=["#EOF","#StepLine","#TagLine","#ScenarioLine","#RuleLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 38}matchTokenAt_39(e,t){if(this.match_DocStringSeparator(t,e)){this.build(t,e);return 40}if(this.match_Other(t,e)){this.build(t,e);return 39}const o=["#DocStringSeparator","#Other"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 39}matchTokenAt_40(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_StepLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Step);this.build(t,e);return 12}if(this.match_TagLine(t,e)){if(this.lookahead_1(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Tags);this.build(t,e);return 14}}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 9}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ExamplesLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.ExamplesDefinition);this.startRule(t,P.Examples);this.build(t,e);return 15}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 10}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Comment(t,e)){this.build(t,e);return 40}if(this.match_Empty(t,e)){this.build(t,e);return 40}const o=["#EOF","#StepLine","#TagLine","#ExamplesLine","#ScenarioLine","#RuleLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 40}matchTokenAt_41(e,t){if(this.match_DocStringSeparator(t,e)){this.build(t,e);return 42}if(this.match_Other(t,e)){this.build(t,e);return 41}const o=["#DocStringSeparator","#Other"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 41}matchTokenAt_42(e,t){if(this.match_EOF(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.endRule(t);this.build(t,e);return 34}if(this.match_StepLine(t,e)){this.endRule(t);this.endRule(t);this.startRule(t,P.Step);this.build(t,e);return 7}if(this.match_TagLine(t,e)){if(this.lookahead_0(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Tags);this.build(t,e);return 9}}if(this.match_TagLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.startRule(t,P.Tags);this.build(t,e);return 18}if(this.match_ScenarioLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.ScenarioDefinition);this.startRule(t,P.Scenario);this.build(t,e);return 10}if(this.match_RuleLine(t,e)){this.endRule(t);this.endRule(t);this.endRule(t);this.startRule(t,P.Rule);this.startRule(t,P.RuleHeader);this.build(t,e);return 19}if(this.match_Comment(t,e)){this.build(t,e);return 42}if(this.match_Empty(t,e)){this.build(t,e);return 42}const o=["#EOF","#StepLine","#TagLine","#ScenarioLine","#RuleLine","#Comment","#Empty"];const i=e.isEof?d.UnexpectedEOFException.create(e,o):d.UnexpectedTokenException.create(e,o);if(this.stopAtFirstError)throw i;this.addError(t,i);return 42}match_EOF(e,t){return this.handleExternalError(e,false,(()=>this.tokenMatcher.match_EOF(t)))}match_Empty(e,t){if(t.isEof)return false;return this.handleExternalError(e,false,(()=>this.tokenMatcher.match_Empty(t)))}match_Comment(e,t){if(t.isEof)return false;return this.handleExternalError(e,false,(()=>this.tokenMatcher.match_Comment(t)))}match_TagLine(e,t){if(t.isEof)return false;return this.handleExternalError(e,false,(()=>this.tokenMatcher.match_TagLine(t)))}match_FeatureLine(e,t){if(t.isEof)return false;return this.handleExternalError(e,false,(()=>this.tokenMatcher.match_FeatureLine(t)))}match_RuleLine(e,t){if(t.isEof)return false;return this.handleExternalError(e,false,(()=>this.tokenMatcher.match_RuleLine(t)))}match_BackgroundLine(e,t){if(t.isEof)return false;return this.handleExternalError(e,false,(()=>this.tokenMatcher.match_BackgroundLine(t)))}match_ScenarioLine(e,t){if(t.isEof)return false;return this.handleExternalError(e,false,(()=>this.tokenMatcher.match_ScenarioLine(t)))}match_ExamplesLine(e,t){if(t.isEof)return false;return this.handleExternalError(e,false,(()=>this.tokenMatcher.match_ExamplesLine(t)))}match_StepLine(e,t){if(t.isEof)return false;return this.handleExternalError(e,false,(()=>this.tokenMatcher.match_StepLine(t)))}match_DocStringSeparator(e,t){if(t.isEof)return false;return this.handleExternalError(e,false,(()=>this.tokenMatcher.match_DocStringSeparator(t)))}match_TableRow(e,t){if(t.isEof)return false;return this.handleExternalError(e,false,(()=>this.tokenMatcher.match_TableRow(t)))}match_Language(e,t){if(t.isEof)return false;return this.handleExternalError(e,false,(()=>this.tokenMatcher.match_Language(t)))}match_Other(e,t){if(t.isEof)return false;return this.handleExternalError(e,false,(()=>this.tokenMatcher.match_Other(t)))}lookahead_0(e,t){let o;const i=[];let a=false;do{o=this.readToken(this.context);i.push(o);if(false||this.match_ScenarioLine(e,o)){a=true;break}}while(false||this.match_Empty(e,o)||this.match_Comment(e,o)||this.match_TagLine(e,o));e.tokenQueue=e.tokenQueue.concat(i);return a}lookahead_1(e,t){let o;const i=[];let a=false;do{o=this.readToken(this.context);i.push(o);if(false||this.match_ExamplesLine(e,o)){a=true;break}}while(false||this.match_Empty(e,o)||this.match_Comment(e,o)||this.match_TagLine(e,o));e.tokenQueue=e.tokenQueue.concat(i);return a}}t["default"]=Parser},34272:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UnexpectedEOFException=t.UnexpectedTokenException=void 0;const i=o(73840);class UnexpectedTokenException extends i.GherkinException{static create(e,t){const o=`expected: ${t.join(", ")}, got '${e.getTokenValue().trim()}'`;const i=tokenLocation(e);return UnexpectedTokenException._create(o,i)}}t.UnexpectedTokenException=UnexpectedTokenException;class UnexpectedEOFException extends i.GherkinException{static create(e,t){const o=`unexpected end of file, expected: ${t.join(", ")}`;const i=tokenLocation(e);return UnexpectedEOFException._create(o,i)}}t.UnexpectedEOFException=UnexpectedEOFException;function tokenLocation(e){var t;return((t=e.location)===null||t===void 0?void 0:t.line)&&e.line&&e.line.indent!==undefined?{line:e.location.line,column:e.line.indent+1}:e.location}},80282:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class TokenScanner{constructor(e,t){this.makeToken=t;this.lineNumber=0;this.lines=e.split(/\r?\n/);if(this.lines.length>0&&this.lines[this.lines.length-1].trim()===""){this.lines.pop()}}read(){const e=this.lines[this.lineNumber++];const t={line:this.lineNumber};return this.makeToken(e,t)}}t["default"]=TokenScanner},434:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.compareStepKeywords=compareStepKeywords;function compareStepKeywords(e,t){return t.length-e.length}},32759:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=countSymbols;const o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function countSymbols(e){return e.replace(o,"_").length}},46344:function(e,t,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,o,i){if(i===undefined)i=o;var a=Object.getOwnPropertyDescriptor(t,o);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,i,a)}:function(e,t,o,i){if(i===undefined)i=o;e[i]=t[o]});var a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))t[t.length]=o;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o=ownKeys(e),d=0;d<o.length;d++)if(o[d]!=="default")i(t,e,o[d]);a(t,e);return t}}();var m=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t["default"]=generateMessages;const f=d(o(96088));const h=m(o(56084));const P=m(o(71112));const _=m(o(95422));const L=m(o(85140));const U=m(o(3032));const j=m(o(10850));function generateMessages(e,t,o,i){let a;switch(o){case f.SourceMediaType.TEXT_X_CUCUMBER_GHERKIN_PLAIN:a=new P.default(i.defaultDialect);break;case f.SourceMediaType.TEXT_X_CUCUMBER_GHERKIN_MARKDOWN:a=new _.default(i.defaultDialect);break;default:throw new Error(`Unsupported media type: ${o}`)}const d=[];try{if(i.includeSource){d.push((0,L.default)(e,t))}if(!i.includeGherkinDocument&&!i.includePickles){return d}const o=new U.default(new h.default(i.newId),a);o.stopAtFirstError=false;const m=o.parse(e);if(i.includeGherkinDocument){d.push({gherkinDocument:{...m,uri:t}})}if(i.includePickles){const e=(0,j.default)(m,t,i.newId);for(const t of e){d.push({pickle:t})}}}catch(e){const o=e.errors||[e];for(const e of o){if(!e.location){throw e}d.push({parseError:{source:{uri:t,location:{line:e.location.line,column:e.location.column}},message:e.message}})}}return d}},40119:function(e,t,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,o,i){if(i===undefined)i=o;var a=Object.getOwnPropertyDescriptor(t,o);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,i,a)}:function(e,t,o,i){if(i===undefined)i=o;e[i]=t[o]});var a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))t[t.length]=o;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o=ownKeys(e),d=0;d<o.length;d++)if(o[d]!=="default")i(t,e,o[d]);a(t,e);return t}}();var m=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.TokenScanner=t.Parser=t.makeSourceEnvelope=t.generateMessages=t.GherkinInMarkdownTokenMatcher=t.GherkinClassicTokenMatcher=t.Errors=t.dialects=t.compile=t.AstBuilder=void 0;const f=m(o(56084));t.AstBuilder=f.default;const h=d(o(73840));t.Errors=h;const P=m(o(71112));t.GherkinClassicTokenMatcher=P.default;const _=m(o(95422));t.GherkinInMarkdownTokenMatcher=_.default;const L=m(o(46344));t.generateMessages=L.default;const U=m(o(36097));const j=m(o(85140));t.makeSourceEnvelope=j.default;const H=m(o(3032));t.Parser=H.default;const V=m(o(10850));t.compile=V.default;const K=m(o(80282));t.TokenScanner=K.default;const W=U.default;t.dialects=W},85140:function(e,t,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,o,i){if(i===undefined)i=o;var a=Object.getOwnPropertyDescriptor(t,o);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,i,a)}:function(e,t,o,i){if(i===undefined)i=o;e[i]=t[o]});var a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))t[t.length]=o;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o=ownKeys(e),d=0;d<o.length;d++)if(o[d]!=="default")i(t,e,o[d]);a(t,e);return t}}();Object.defineProperty(t,"__esModule",{value:true});t["default"]=makeSourceEnvelope;const m=d(o(96088));function makeSourceEnvelope(e,t){let o;if(t.endsWith(".feature")){o=m.SourceMediaType.TEXT_X_CUCUMBER_GHERKIN_PLAIN}else if(t.endsWith(".md")){o=m.SourceMediaType.TEXT_X_CUCUMBER_GHERKIN_MARKDOWN}if(!o)throw new Error(`The uri (${t}) must end with .feature or .md`);return{source:{data:e,uri:t,mediaType:o}}}},10850:function(e,t,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,o,i){if(i===undefined)i=o;var a=Object.getOwnPropertyDescriptor(t,o);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,i,a)}:function(e,t,o,i){if(i===undefined)i=o;e[i]=t[o]});var a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))t[t.length]=o;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o=ownKeys(e),d=0;d<o.length;d++)if(o[d]!=="default")i(t,e,o[d]);a(t,e);return t}}();Object.defineProperty(t,"__esModule",{value:true});t["default"]=compile;const m=d(o(96088));const f={[m.StepKeywordType.UNKNOWN]:m.PickleStepType.UNKNOWN,[m.StepKeywordType.CONTEXT]:m.PickleStepType.CONTEXT,[m.StepKeywordType.ACTION]:m.PickleStepType.ACTION,[m.StepKeywordType.OUTCOME]:m.PickleStepType.OUTCOME,[m.StepKeywordType.CONJUNCTION]:null};function compile(e,t,o){const i=[];if(e.feature==null){return i}const a=e.feature;const d=a.language;const m=a.tags;let f=[];a.children.forEach((e=>{if(e.background){f=[].concat(e.background.steps)}else if(e.rule){compileRule(m,f,e.rule,d,i,t,o)}else if(e.scenario.examples.length===0){compileScenario(m,f,e.scenario,d,i,t,o)}else{compileScenarioOutline(m,f,e.scenario,d,i,t,o)}}));return i}function compileRule(e,t,o,i,a,d,m){let f=[].concat(t);const h=[].concat(e).concat(o.tags);o.children.forEach((e=>{if(e.background){f=f.concat(e.background.steps)}else if(e.scenario.examples.length===0){compileScenario(h,f,e.scenario,i,a,d,m)}else{compileScenarioOutline(h,f,e.scenario,i,a,d,m)}}))}function compileScenario(e,t,o,i,a,d,f){let h=m.StepKeywordType.UNKNOWN;const P=[];if(o.steps.length!==0){t.forEach((e=>{h=e.keywordType===m.StepKeywordType.CONJUNCTION?h:e.keywordType;P.push(pickleStep(e,[],null,f,h))}))}const _=[].concat(e).concat(o.tags);o.steps.forEach((e=>{h=e.keywordType===m.StepKeywordType.CONJUNCTION?h:e.keywordType;P.push(pickleStep(e,[],null,f,h))}));const L={id:f(),uri:d,location:o.location,astNodeIds:[o.id],tags:pickleTags(_),name:o.name,language:i,steps:P};a.push(L)}function compileScenarioOutline(e,t,o,i,a,d,f){o.examples.filter((e=>e.tableHeader)).forEach((h=>{const P=h.tableHeader.cells;h.tableBody.forEach((_=>{let L=m.StepKeywordType.UNKNOWN;const U=[];if(o.steps.length!==0){t.forEach((e=>{L=e.keywordType===m.StepKeywordType.CONJUNCTION?L:e.keywordType;U.push(pickleStep(e,[],null,f,L))}))}o.steps.forEach((e=>{L=e.keywordType===m.StepKeywordType.CONJUNCTION?L:e.keywordType;const t=pickleStep(e,P,_,f,L);U.push(t)}));const j=f();const H=pickleTags([].concat(e).concat(o.tags).concat(h.tags));a.push({id:j,uri:d,location:_.location,astNodeIds:[o.id,_.id],name:interpolate(o.name,P,_.cells),language:i,steps:U,tags:H})}))}))}function createPickleArguments(e,t,o){if(e.dataTable){const i=e.dataTable;const a={rows:i.rows.map((e=>({cells:e.cells.map((e=>({value:interpolate(e.value,t,o)})))})))};return{dataTable:a}}else if(e.docString){const i=e.docString;const a={content:interpolate(i.content,t,o)};if(i.mediaType){a.mediaType=interpolate(i.mediaType,t,o)}return{docString:a}}}function interpolate(e,t,o){t.forEach(((t,i)=>{const a=o[i];const d=`<${t.value}>`;const m=d.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");const f=new RegExp(m,"g");const h=a.value.replace(/\$/g,"$$$$");e=e.replace(f,h)}));return e}function pickleStep(e,t,o,i,a){const d=[e.id];if(o){d.push(o.id)}const m=o?o.cells:[];return{id:i(),text:interpolate(e.text,t,m),type:f[a],argument:createPickleArguments(e,t,m),astNodeIds:d}}function pickleTags(e){return e.map(pickleTag)}function pickleTag(e){return{name:e.name,astNodeId:e.id}}},90402:(e,t,o)=>{"use strict";var i=o(90690);var a=o(93422);var d=o(92658);const getSmithyContext=e=>e[i.SMITHY_CONTEXT_KEY]||(e[i.SMITHY_CONTEXT_KEY]={});const resolveAuthOptions=(e,t)=>{if(!t||t.length===0){return e}const o=[];for(const i of t){for(const t of e){const e=t.schemeId.split("#")[1];if(e===i){o.push(t)}}}for(const t of e){if(!o.find((({schemeId:e})=>e===t.schemeId))){o.push(t)}}return o};function convertHttpAuthSchemesToMap(e){const t=new Map;for(const o of e){t.set(o.schemeId,o)}return t}const httpAuthSchemeMiddleware=(e,t)=>(o,i)=>async a=>{const m=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,i,a.input));const f=e.authSchemePreference?await e.authSchemePreference():[];const h=resolveAuthOptions(m,f);const P=convertHttpAuthSchemesToMap(e.httpAuthSchemes);const _=d.getSmithyContext(i);const L=[];for(const o of h){const a=P.get(o.schemeId);if(!a){L.push(`HttpAuthScheme \`${o.schemeId}\` was not enabled for this service.`);continue}const d=a.identityProvider(await t.identityProviderConfigProvider(e));if(!d){L.push(`HttpAuthScheme \`${o.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:m={},signingProperties:f={}}=o.propertiesExtractor?.(e,i)||{};o.identityProperties=Object.assign(o.identityProperties||{},m);o.signingProperties=Object.assign(o.signingProperties||{},f);_.selectedHttpAuthScheme={httpAuthOption:o,identity:await d(o.identityProperties),signer:a.signer};break}if(!_.selectedHttpAuthScheme){throw new Error(L.join("\n"))}return o(a)};const m={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:"endpointV2Middleware"};const getHttpAuthSchemeEndpointRuleSetPlugin=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:o})=>({applyToStack:i=>{i.addRelativeTo(httpAuthSchemeMiddleware(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:o}),m)}});const f={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:"serializerMiddleware"};const getHttpAuthSchemePlugin=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:o})=>({applyToStack:i=>{i.addRelativeTo(httpAuthSchemeMiddleware(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:o}),f)}});const defaultErrorHandler=e=>e=>{throw e};const defaultSuccessHandler=(e,t)=>{};const httpSigningMiddleware=e=>(e,t)=>async o=>{if(!a.HttpRequest.isInstance(o.request)){return e(o)}const i=d.getSmithyContext(t);const m=i.selectedHttpAuthScheme;if(!m){throw new Error(`No HttpAuthScheme was selected: unable to sign request`)}const{httpAuthOption:{signingProperties:f={}},identity:h,signer:P}=m;const _=await e({...o,request:await P.sign(o.request,h,f)}).catch((P.errorHandler||defaultErrorHandler)(f));(P.successHandler||defaultSuccessHandler)(_.response,f);return _};const h={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:true,relation:"after",toMiddleware:"retryMiddleware"};const getHttpSigningPlugin=e=>({applyToStack:e=>{e.addRelativeTo(httpSigningMiddleware(),h)}});const normalizeProvider=e=>{if(typeof e==="function")return e;const t=Promise.resolve(e);return()=>t};const makePagedClientRequest=async(e,t,o,i=e=>e,...a)=>{let d=new e(o);d=i(d)??d;return await t.send(d,...a)};function createPaginator(e,t,o,i,a){return async function*paginateOperation(d,m,...f){const h=m;let P=d.startingToken??h[o];let _=true;let L;while(_){h[o]=P;if(a){h[a]=h[a]??d.pageSize}if(d.client instanceof e){L=await makePagedClientRequest(t,d.client,m,d.withCommand,...f)}else{throw new Error(`Invalid client, expected instance of ${e.name}`)}yield L;const U=P;P=get(L,i);_=!!(P&&(!d.stopOnSameToken||P!==U))}return undefined}}const get=(e,t)=>{let o=e;const i=t.split(".");for(const e of i){if(!o||typeof o!=="object"){return undefined}o=o[e]}return o};function setFeature(e,t,o){if(!e.__smithy_context){e.__smithy_context={features:{}}}else if(!e.__smithy_context.features){e.__smithy_context.features={}}e.__smithy_context.features[t]=o}class DefaultIdentityProviderConfig{authSchemes=new Map;constructor(e){for(const t in e){const o=e[t];if(o!==undefined){this.authSchemes.set(t,o)}}}getIdentityProvider(e){return this.authSchemes.get(e)}}class HttpApiKeyAuthSigner{async sign(e,t,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(!t.apiKey){throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined")}const d=a.HttpRequest.clone(e);if(o.in===i.HttpApiKeyAuthLocation.QUERY){d.query[o.name]=t.apiKey}else if(o.in===i.HttpApiKeyAuthLocation.HEADER){d.headers[o.name]=o.scheme?`${o.scheme} ${t.apiKey}`:t.apiKey}else{throw new Error("request can only be signed with `apiKey` locations `query` or `header`, "+"but found: `"+o.in+"`")}return d}}class HttpBearerAuthSigner{async sign(e,t,o){const i=a.HttpRequest.clone(e);if(!t.token){throw new Error("request could not be signed with `token` since the `token` is not defined")}i.headers["Authorization"]=`Bearer ${t.token}`;return i}}class NoAuthSigner{async sign(e,t,o){return e}}const createIsIdentityExpiredFunction=e=>function isIdentityExpired(t){return doesIdentityRequireRefresh(t)&&t.expiration.getTime()-Date.now()<e};const P=3e5;const _=createIsIdentityExpiredFunction(P);const doesIdentityRequireRefresh=e=>e.expiration!==undefined;const memoizeIdentityProvider=(e,t,o)=>{if(e===undefined){return undefined}const i=typeof e!=="function"?async()=>Promise.resolve(e):e;let a;let d;let m;let f=false;const coalesceProvider=async e=>{if(!d){d=i(e)}try{a=await d;m=true;f=false}finally{d=undefined}return a};if(t===undefined){return async e=>{if(!m||e?.forceRefresh){a=await coalesceProvider(e)}return a}}return async e=>{if(!m||e?.forceRefresh){a=await coalesceProvider(e)}if(f){return a}if(!o(a)){f=true;return a}if(t(a)){await coalesceProvider(e);return a}return a}};t.requestBuilder=a.requestBuilder;t.DefaultIdentityProviderConfig=DefaultIdentityProviderConfig;t.EXPIRATION_MS=P;t.HttpApiKeyAuthSigner=HttpApiKeyAuthSigner;t.HttpBearerAuthSigner=HttpBearerAuthSigner;t.NoAuthSigner=NoAuthSigner;t.createIsIdentityExpiredFunction=createIsIdentityExpiredFunction;t.createPaginator=createPaginator;t.doesIdentityRequireRefresh=doesIdentityRequireRefresh;t.getHttpAuthSchemeEndpointRuleSetPlugin=getHttpAuthSchemeEndpointRuleSetPlugin;t.getHttpAuthSchemePlugin=getHttpAuthSchemePlugin;t.getHttpSigningPlugin=getHttpSigningPlugin;t.getSmithyContext=getSmithyContext;t.httpAuthSchemeEndpointRuleSetMiddlewareOptions=m;t.httpAuthSchemeMiddleware=httpAuthSchemeMiddleware;t.httpAuthSchemeMiddlewareOptions=f;t.httpSigningMiddleware=httpSigningMiddleware;t.httpSigningMiddlewareOptions=h;t.isIdentityExpired=_;t.memoizeIdentityProvider=memoizeIdentityProvider;t.normalizeProvider=normalizeProvider;t.setFeature=setFeature},64645:(e,t,o)=>{"use strict";var i=o(92430);var a=o(93422);var d=o(92658);var m=o(26890);const f=0;const h=1;const P=2;const _=3;const L=4;const U=5;const j=6;const H=7;const V=20;const K=21;const W=22;const X=23;const Q=24;const Y=25;const J=26;const Z=27;const ee=31;function alloc(e){return typeof Buffer!=="undefined"?Buffer.alloc(e):new Uint8Array(e)}const te=Symbol("@smithy/core/cbor::tagSymbol");function tag(e){e[te]=true;return e}const ne=typeof TextDecoder!=="undefined";const re=typeof Buffer!=="undefined";let oe=alloc(0);let ie=new DataView(oe.buffer,oe.byteOffset,oe.byteLength);const se=ne?new TextDecoder:null;let ae=0;function setPayload(e){oe=e;ie=new DataView(oe.buffer,oe.byteOffset,oe.byteLength)}function decode(e,t){if(e>=t){throw new Error("unexpected end of (decode) payload.")}const o=(oe[e]&224)>>5;const a=oe[e]&31;switch(o){case f:case h:case j:let d;let m;if(a<24){d=a;m=1}else{switch(a){case Q:case Y:case J:case Z:const o=ce[a];const i=o+1;m=i;if(t-e<i){throw new Error(`countLength ${o} greater than remaining buf len.`)}const f=e+1;if(o===1){d=oe[f]}else if(o===2){d=ie.getUint16(f)}else if(o===4){d=ie.getUint32(f)}else{d=ie.getBigUint64(f)}break;default:throw new Error(`unexpected minor value ${a}.`)}}if(o===f){ae=m;return castBigInt(d)}else if(o===h){let e;if(typeof d==="bigint"){e=BigInt(-1)-d}else{e=-1-d}ae=m;return castBigInt(e)}else{if(a===2||a===3){const o=decodeCount(e+m,t);let i=BigInt(0);const d=e+m+ae;for(let e=d;e<d+o;++e){i=i<<BigInt(8)|BigInt(oe[e])}ae=m+ae+o;return a===3?-i-BigInt(1):i}else if(a===4){const o=decode(e+m,t);const[a,d]=o;const f=d<0?-1:1;const h="0".repeat(Math.abs(a)+1)+String(BigInt(f)*BigInt(d));let P;const _=d<0?"-":"";P=a===0?h:h.slice(0,h.length+a)+"."+h.slice(a);P=P.replace(/^0+/g,"");if(P===""){P="0"}if(P[0]==="."){P="0"+P}P=_+P;ae=m+ae;return i.nv(P)}else{const o=decode(e+m,t);const i=ae;ae=m+i;return tag({tag:castBigInt(d),value:o})}}case _:case U:case L:case P:if(a===ee){switch(o){case _:return decodeUtf8StringIndefinite(e,t);case U:return decodeMapIndefinite(e,t);case L:return decodeListIndefinite(e,t);case P:return decodeUnstructuredByteStringIndefinite(e,t)}}else{switch(o){case _:return decodeUtf8String(e,t);case U:return decodeMap(e,t);case L:return decodeList(e,t);case P:return decodeUnstructuredByteString(e,t)}}default:return decodeSpecial(e,t)}}function bytesToUtf8(e,t,o){if(re&&e.constructor?.name==="Buffer"){return e.toString("utf-8",t,o)}if(se){return se.decode(e.subarray(t,o))}return i.toUtf8(e.subarray(t,o))}function demote(e){const t=Number(e);if(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.`))}return t}const ce={[Q]:1,[Y]:2,[J]:4,[Z]:8};function bytesToFloat16(e,t){const o=e>>7;const i=(e&124)>>2;const a=(e&3)<<8|t;const d=o===0?1:-1;let m;let f;if(i===0){if(a===0){return 0}else{m=Math.pow(2,1-15);f=0}}else if(i===31){if(a===0){return d*Infinity}else{return NaN}}else{m=Math.pow(2,i-15);f=1}f+=a/1024;return d*(m*f)}function decodeCount(e,t){const o=oe[e]&31;if(o<24){ae=1;return o}if(o===Q||o===Y||o===J||o===Z){const i=ce[o];ae=i+1;if(t-e<ae){throw new Error(`countLength ${i} greater than remaining buf len.`)}const a=e+1;if(i===1){return oe[a]}else if(i===2){return ie.getUint16(a)}else if(i===4){return ie.getUint32(a)}return demote(ie.getBigUint64(a))}throw new Error(`unexpected minor value ${o}.`)}function decodeUtf8String(e,t){const o=decodeCount(e,t);const i=ae;e+=i;if(t-e<o){throw new Error(`string len ${o} greater than remaining buf len.`)}const a=bytesToUtf8(oe,e,e+o);ae=i+o;return a}function decodeUtf8StringIndefinite(e,t){e+=1;const o=[];for(const i=e;e<t;){if(oe[e]===255){const t=alloc(o.length);t.set(o,0);ae=e-i+2;return bytesToUtf8(t,0,t.length)}const a=(oe[e]&224)>>5;const d=oe[e]&31;if(a!==_){throw new Error(`unexpected major type ${a} in indefinite string.`)}if(d===ee){throw new Error("nested indefinite string.")}const m=decodeUnstructuredByteString(e,t);const f=ae;e+=f;for(let e=0;e<m.length;++e){o.push(m[e])}}throw new Error("expected break marker.")}function decodeUnstructuredByteString(e,t){const o=decodeCount(e,t);const i=ae;e+=i;if(t-e<o){throw new Error(`unstructured byte string len ${o} greater than remaining buf len.`)}const a=oe.subarray(e,e+o);ae=i+o;return a}function decodeUnstructuredByteStringIndefinite(e,t){e+=1;const o=[];for(const i=e;e<t;){if(oe[e]===255){const t=alloc(o.length);t.set(o,0);ae=e-i+2;return t}const a=(oe[e]&224)>>5;const d=oe[e]&31;if(a!==P){throw new Error(`unexpected major type ${a} in indefinite string.`)}if(d===ee){throw new Error("nested indefinite string.")}const m=decodeUnstructuredByteString(e,t);const f=ae;e+=f;for(let e=0;e<m.length;++e){o.push(m[e])}}throw new Error("expected break marker.")}function decodeList(e,t){const o=decodeCount(e,t);const i=ae;e+=i;const a=e;const d=Array(o);for(let i=0;i<o;++i){const o=decode(e,t);const a=ae;d[i]=o;e+=a}ae=i+(e-a);return d}function decodeListIndefinite(e,t){e+=1;const o=[];for(const i=e;e<t;){if(oe[e]===255){ae=e-i+2;return o}const a=decode(e,t);const d=ae;e+=d;o.push(a)}throw new Error("expected break marker.")}function decodeMap(e,t){const o=decodeCount(e,t);const i=ae;e+=i;const a=e;const d={};for(let i=0;i<o;++i){if(e>=t){throw new Error("unexpected end of map payload.")}const o=(oe[e]&224)>>5;if(o!==_){throw new Error(`unexpected major type ${o} for map key at index ${e}.`)}const i=decode(e,t);e+=ae;const a=decode(e,t);e+=ae;d[i]=a}ae=i+(e-a);return d}function decodeMapIndefinite(e,t){e+=1;const o=e;const i={};for(;e<t;){if(e>=t){throw new Error("unexpected end of map payload.")}if(oe[e]===255){ae=e-o+2;return i}const a=(oe[e]&224)>>5;if(a!==_){throw new Error(`unexpected major type ${a} for map key.`)}const d=decode(e,t);e+=ae;const m=decode(e,t);e+=ae;i[d]=m}throw new Error("expected break marker.")}function decodeSpecial(e,t){const o=oe[e]&31;switch(o){case K:case V:ae=1;return o===K;case W:ae=1;return null;case X:ae=1;return null;case Y:if(t-e<3){throw new Error("incomplete float16 at end of buf.")}ae=3;return bytesToFloat16(oe[e+1],oe[e+2]);case J:if(t-e<5){throw new Error("incomplete float32 at end of buf.")}ae=5;return ie.getFloat32(e+1);case Z:if(t-e<9){throw new Error("incomplete float64 at end of buf.")}ae=9;return ie.getFloat64(e+1);default:throw new Error(`unexpected minor value ${o}.`)}}function castBigInt(e){if(typeof e==="number"){return e}const t=Number(e);if(Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER){return t}return e}const le=typeof Buffer!=="undefined";const ue=2048;let de=alloc(ue);let pe=new DataView(de.buffer,de.byteOffset,de.byteLength);let me=0;function ensureSpace(e){const t=de.byteLength-me;if(t<e){if(me<16e6){resize(Math.max(de.byteLength*4,de.byteLength+e))}else{resize(de.byteLength+e+16e6)}}}function toUint8Array(){const e=alloc(me);e.set(de.subarray(0,me),0);me=0;return e}function resize(e){const t=de;de=alloc(e);if(t){if(t.copy){t.copy(de,0,0,t.byteLength)}else{de.set(t,0)}}pe=new DataView(de.buffer,de.byteOffset,de.byteLength)}function encodeHeader(e,t){if(t<24){de[me++]=e<<5|t}else if(t<1<<8){de[me++]=e<<5|24;de[me++]=t}else if(t<1<<16){de[me++]=e<<5|Y;pe.setUint16(me,t);me+=2}else if(t<2**32){de[me++]=e<<5|J;pe.setUint32(me,t);me+=4}else{de[me++]=e<<5|Z;pe.setBigUint64(me,typeof t==="bigint"?t:BigInt(t));me+=8}}function encode(e){const t=[e];while(t.length){const e=t.pop();ensureSpace(typeof e==="string"?e.length*4:64);if(typeof e==="string"){if(le){encodeHeader(_,Buffer.byteLength(e));me+=de.write(e,me)}else{const t=i.fromUtf8(e);encodeHeader(_,t.byteLength);de.set(t,me);me+=t.byteLength}continue}else if(typeof e==="number"){if(Number.isInteger(e)){const t=e>=0;const o=t?f:h;const i=t?e:-e-1;if(i<24){de[me++]=o<<5|i}else if(i<256){de[me++]=o<<5|24;de[me++]=i}else if(i<65536){de[me++]=o<<5|Y;de[me++]=i>>8;de[me++]=i}else if(i<4294967296){de[me++]=o<<5|J;pe.setUint32(me,i);me+=4}else{de[me++]=o<<5|Z;pe.setBigUint64(me,BigInt(i));me+=8}continue}de[me++]=H<<5|Z;pe.setFloat64(me,e);me+=8;continue}else if(typeof e==="bigint"){const t=e>=0;const o=t?f:h;const i=t?e:-e-BigInt(1);const a=Number(i);if(a<24){de[me++]=o<<5|a}else if(a<256){de[me++]=o<<5|24;de[me++]=a}else if(a<65536){de[me++]=o<<5|Y;de[me++]=a>>8;de[me++]=a&255}else if(a<4294967296){de[me++]=o<<5|J;pe.setUint32(me,a);me+=4}else if(i<BigInt("18446744073709551616")){de[me++]=o<<5|Z;pe.setBigUint64(me,i);me+=8}else{const e=i.toString(2);const o=new Uint8Array(Math.ceil(e.length/8));let a=i;let d=0;while(o.byteLength-++d>=0){o[o.byteLength-d]=Number(a&BigInt(255));a>>=BigInt(8)}ensureSpace(o.byteLength*2);de[me++]=t?194:195;if(le){encodeHeader(P,Buffer.byteLength(o))}else{encodeHeader(P,o.byteLength)}de.set(o,me);me+=o.byteLength}continue}else if(e===null){de[me++]=H<<5|W;continue}else if(typeof e==="boolean"){de[me++]=H<<5|(e?K:V);continue}else if(typeof e==="undefined"){throw new Error("@smithy/core/cbor: client may not serialize undefined value.")}else if(Array.isArray(e)){for(let o=e.length-1;o>=0;--o){t.push(e[o])}encodeHeader(L,e.length);continue}else if(typeof e.byteLength==="number"){ensureSpace(e.length*2);encodeHeader(P,e.length);de.set(e,me);me+=e.byteLength;continue}else if(typeof e==="object"){if(e instanceof i.NumericValue){const o=e.string.indexOf(".");const i=o===-1?0:o-e.string.length+1;const a=BigInt(e.string.replace(".",""));de[me++]=196;t.push(a);t.push(i);encodeHeader(L,2);continue}if(e[te]){if("tag"in e&&"value"in e){t.push(e.value);encodeHeader(j,e.tag);continue}else{throw new Error("tag encountered with missing fields, need 'tag' and 'value', found: "+JSON.stringify(e))}}const o=Object.keys(e);for(let i=o.length-1;i>=0;--i){const a=o[i];t.push(e[a]);t.push(a)}encodeHeader(U,o.length);continue}throw new Error(`data type ${e?.constructor?.name??typeof e} not compatible for encoding.`)}}const fe={deserialize(e){setPayload(e);return decode(0,e.length)},serialize(e){try{encode(e);return toUint8Array()}catch(e){toUint8Array();throw e}},resizeEncodingBuffer(e){resize(e)}};const parseCborBody=(e,t)=>a.collectBody(e,t).then((async e=>{if(e.length){try{return fe.deserialize(e)}catch(o){Object.defineProperty(o,"$responseBodyText",{value:t.utf8Encoder(e)});throw o}}return{}}));const dateToTag=e=>tag({tag:1,value:e.getTime()/1e3});const parseCborErrorBody=async(e,t)=>{const o=await parseCborBody(e,t);o.message=o.message??o.Message;return o};const loadSmithyRpcV2CborErrorCode=(e,t)=>{const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}let o;for(const e in t){if(e.toLowerCase()==="code"){o=e;break}}if(o&&t[o]!==undefined){return sanitizeErrorCode(t[o])}};const checkCborResponse=e=>{if(String(e.headers["smithy-protocol"]).toLowerCase()!=="rpc-v2-cbor"){throw new Error("Malformed RPCv2 CBOR response, status: "+e.statusCode)}};const buildHttpRpcRequest=async(e,t,o,d,m)=>{const f=await e.endpoint();const{hostname:h,protocol:P="https",port:_,path:L}=f;const U={protocol:P,hostname:h,port:_,method:"POST",path:L.endsWith("/")?L.slice(0,-1)+o:L+o,headers:{...t}};if(d!==undefined){U.hostname=d}if(f.headers){for(const e in f.headers){U.headers[e]=f.headers[e]}}if(m!==undefined){U.body=m;try{U.headers["content-length"]=String(i.calculateBodyLength(m))}catch(e){}}return new a.HttpRequest(U)};class CborCodec extends a.SerdeContext{createSerializer(){const e=new CborShapeSerializer;e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new CborShapeDeserializer;e.setSerdeContext(this.serdeContext);return e}}class CborShapeSerializer extends a.SerdeContext{value;write(e,t){this.value=this.serialize(e,t)}serialize(e,t){const o=m.NormalizedSchema.of(e);if(t==null){if(o.isIdempotencyToken()){return i.generateIdempotencyToken()}return t}if(o.isBlobSchema()){if(typeof t==="string"){return(this.serdeContext?.base64Decoder??i.fromBase64)(t)}return t}if(o.isTimestampSchema()){if(typeof t==="number"||typeof t==="bigint"){return dateToTag(new Date(Number(t)/1e3|0))}return dateToTag(t)}if(typeof t==="function"||typeof t==="object"){const e=t;if(o.isListSchema()&&Array.isArray(e)){const t=!!o.getMergedTraits().sparse;const i=[];let a=0;for(const d of e){const e=this.serialize(o.getValueSchema(),d);if(e!=null||t){i[a++]=e}}return i}if(e instanceof Date){return dateToTag(e)}const i={};if(o.isMapSchema()){const t=!!o.getMergedTraits().sparse;for(const a in e){const d=this.serialize(o.getValueSchema(),e[a]);if(d!=null||t){i[a]=d}}}else if(o.isStructSchema()){for(const[t,a]of o.structIterator()){const o=this.serialize(a,e[t]);if(o!=null){i[t]=o}}const t=o.isUnionSchema();if(t&&Array.isArray(e.$unknown)){const[t,o]=e.$unknown;i[t]=o}else if(typeof e.__type==="string"){for(const t in e){if(!(t in i)){i[t]=this.serialize(15,e[t])}}}}else if(o.isDocumentSchema()){for(const t in e){i[t]=this.serialize(o.getValueSchema(),e[t])}}else if(o.isBigDecimalSchema()){return e}return i}return t}flush(){const e=fe.serialize(this.value);this.value=undefined;return e}}class CborShapeDeserializer extends a.SerdeContext{read(e,t){const o=fe.deserialize(t);return this.readValue(e,o)}readValue(e,t){const o=m.NormalizedSchema.of(e);if(o.isTimestampSchema()){if(typeof t==="number"){return i._parseEpochTimestamp(t)}if(typeof t==="object"){if(t.tag===1&&"value"in t){return i._parseEpochTimestamp(t.value)}}}if(o.isBlobSchema()){if(typeof t==="string"){return(this.serdeContext?.base64Decoder??i.fromBase64)(t)}return t}if(typeof t==="undefined"||typeof t==="boolean"||typeof t==="number"||typeof t==="string"||typeof t==="bigint"||typeof t==="symbol"){return t}else if(typeof t==="object"){if(t===null){return null}if("byteLength"in t){return t}if(t instanceof Date){return t}if(o.isDocumentSchema()){return t}if(o.isListSchema()){const e=[];const i=o.getValueSchema();for(const o of t){const t=this.readValue(i,o);e.push(t)}return e}const e={};if(o.isMapSchema()){const i=o.getValueSchema();for(const o in t){const a=this.readValue(i,t[o]);e[o]=a}}else if(o.isStructSchema()){const i=o.isUnionSchema();let a;if(i){a=new Set;for(const e in t){if(e!=="__type"){a.add(e)}}}for(const[d,m]of o.structIterator()){if(i){a.delete(d)}if(t[d]!=null){e[d]=this.readValue(m,t[d])}}if(i&&a?.size===1){let o=true;for(const t in e){o=false;break}if(o){const o=a.values().next().value;e.$unknown=[o,t[o]]}}else if(typeof t.__type==="string"){for(const o in t){if(!(o in e)){e[o]=t[o]}}}}else if(t instanceof i.NumericValue){return t}return e}else{return t}}}class SmithyRpcV2CborProtocol extends a.RpcProtocol{codec=new CborCodec;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(e,t,o){const i=await super.serializeRequest(e,t,o);Object.assign(i.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()});if(m.deref(e.input)==="unit"){delete i.body;delete i.headers["content-type"]}else{if(!i.body){this.serializer.write(15,{});i.body=this.serializer.flush()}try{i.headers["content-length"]=String(i.body.byteLength)}catch(e){}}const{service:a,operation:f}=d.getSmithyContext(o);const h=`/service/${a}/operation/${f}`;if(i.path.endsWith("/")){i.path+=h.slice(1)}else{i.path+=h}return i}async deserializeResponse(e,t,o){return super.deserializeResponse(e,t,o)}async handleError(e,t,o,i,a){const d=loadSmithyRpcV2CborErrorCode(o,i)??"Unknown";const f={$metadata:a,$fault:o.statusCode<=500?"client":"server"};let h=this.options.defaultNamespace;if(d.includes("#")){[h]=d.split("#")}const P=this.compositeErrorRegistry;const _=m.TypeRegistry.for(h);P.copyFrom(_);let L;try{L=P.getSchema(d)}catch(e){if(i.Message){i.message=i.Message}const t=m.TypeRegistry.for("smithy.ts.sdk.synthetic."+h);P.copyFrom(t);const o=P.getBaseException();if(o){const e=P.getErrorCtor(o);throw Object.assign(new e({name:d}),f,i)}throw Object.assign(new Error(d),f,i)}const U=m.NormalizedSchema.of(L);const j=P.getErrorCtor(L);const H=i.message??i.Message??"Unknown";const V=new j({});const K={};for(const[e,t]of U.structIterator()){K[e]=this.deserializer.readValue(t,i[e])}throw Object.assign(V,f,{$fault:U.getMergedTraits().error,message:H},K)}getDefaultContentType(){return"application/cbor"}}t.CborCodec=CborCodec;t.CborShapeDeserializer=CborShapeDeserializer;t.CborShapeSerializer=CborShapeSerializer;t.SmithyRpcV2CborProtocol=SmithyRpcV2CborProtocol;t.buildHttpRpcRequest=buildHttpRpcRequest;t.cbor=fe;t.checkCborResponse=checkCborResponse;t.dateToTag=dateToTag;t.loadSmithyRpcV2CborErrorCode=loadSmithyRpcV2CborErrorCode;t.parseCborBody=parseCborBody;t.parseCborErrorBody=parseCborErrorBody;t.tag=tag;t.tagSymbol=te},99542:(e,t,o)=>{"use strict";var i=o(73024);var a=o(57075);var d=o(92430);async function blobReader(e,t,o=1024*1024){const i=e.size;let a=0;while(a<i){const d=e.slice(a,Math.min(i,a+o));t(new Uint8Array(await d.arrayBuffer()));a+=d.size}}const m=async function blobHasher(e,t){const o=new e;await blobReader(t,(e=>{o.update(e)}));return o.digest()};class HashCalculator extends a.Writable{hash;constructor(e,t){super(t);this.hash=e}_write(e,t,o){try{this.hash.update(d.toUint8Array(e))}catch(e){return o(e)}o()}}const fileStreamHasher=(e,t)=>new Promise(((o,a)=>{if(!isReadStream(t)){a(new Error("Unable to calculate hash for non-file streams."));return}const d=i.createReadStream(t.path,{start:t.start,end:t.end});const m=new e;const f=new HashCalculator(m);d.pipe(f);d.on("error",(e=>{f.end();a(e)}));f.on("error",a);f.on("finish",(function(){m.digest().then(o).catch(a)}))}));const isReadStream=e=>typeof e.path==="string";const readableStreamHasher=(e,t)=>{if(t.readableFlowing!==null){throw new Error("Unable to calculate hash for flowing readable stream")}const o=new e;const i=new HashCalculator(o);t.pipe(i);return new Promise(((e,a)=>{t.on("error",(e=>{i.end();a(e)}));i.on("error",a);i.on("finish",(()=>{o.digest().then(e).catch(a)}))}))};const f=64;const h=16;const P=[1732584193,4023233417,2562383102,271733878];class Md5{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(e){if(isEmptyData(e)){return}else if(this.finished){throw new Error("Attempted to update an already finished hash.")}const t=convertToBuffer(e);let o=0;let{byteLength:i}=t;this.bytesHashed+=i;while(i>0){this.buffer.setUint8(this.bufferLength++,t[o++]);i--;if(this.bufferLength===f){this.hashBuffer();this.bufferLength=0}}}async digest(){if(!this.finished){const{buffer:e,bufferLength:t,bytesHashed:o}=this;const i=o*8;e.setUint8(this.bufferLength++,128);if(t%f>=f-8){for(let t=this.bufferLength;t<f;t++){e.setUint8(t,0)}this.hashBuffer();this.bufferLength=0}for(let t=this.bufferLength;t<f-8;t++){e.setUint8(t,0)}e.setUint32(f-8,i>>>0,true);e.setUint32(f-4,Math.floor(i/4294967296),true);this.hashBuffer();this.finished=true}const e=new DataView(new ArrayBuffer(h));for(let t=0;t<4;t++){e.setUint32(t*4,this.state[t],true)}return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}hashBuffer(){const{buffer:e,state:t}=this;let o=t[0],i=t[1],a=t[2],d=t[3];o=ff(o,i,a,d,e.getUint32(0,true),7,3614090360);d=ff(d,o,i,a,e.getUint32(4,true),12,3905402710);a=ff(a,d,o,i,e.getUint32(8,true),17,606105819);i=ff(i,a,d,o,e.getUint32(12,true),22,3250441966);o=ff(o,i,a,d,e.getUint32(16,true),7,4118548399);d=ff(d,o,i,a,e.getUint32(20,true),12,1200080426);a=ff(a,d,o,i,e.getUint32(24,true),17,2821735955);i=ff(i,a,d,o,e.getUint32(28,true),22,4249261313);o=ff(o,i,a,d,e.getUint32(32,true),7,1770035416);d=ff(d,o,i,a,e.getUint32(36,true),12,2336552879);a=ff(a,d,o,i,e.getUint32(40,true),17,4294925233);i=ff(i,a,d,o,e.getUint32(44,true),22,2304563134);o=ff(o,i,a,d,e.getUint32(48,true),7,1804603682);d=ff(d,o,i,a,e.getUint32(52,true),12,4254626195);a=ff(a,d,o,i,e.getUint32(56,true),17,2792965006);i=ff(i,a,d,o,e.getUint32(60,true),22,1236535329);o=gg(o,i,a,d,e.getUint32(4,true),5,4129170786);d=gg(d,o,i,a,e.getUint32(24,true),9,3225465664);a=gg(a,d,o,i,e.getUint32(44,true),14,643717713);i=gg(i,a,d,o,e.getUint32(0,true),20,3921069994);o=gg(o,i,a,d,e.getUint32(20,true),5,3593408605);d=gg(d,o,i,a,e.getUint32(40,true),9,38016083);a=gg(a,d,o,i,e.getUint32(60,true),14,3634488961);i=gg(i,a,d,o,e.getUint32(16,true),20,3889429448);o=gg(o,i,a,d,e.getUint32(36,true),5,568446438);d=gg(d,o,i,a,e.getUint32(56,true),9,3275163606);a=gg(a,d,o,i,e.getUint32(12,true),14,4107603335);i=gg(i,a,d,o,e.getUint32(32,true),20,1163531501);o=gg(o,i,a,d,e.getUint32(52,true),5,2850285829);d=gg(d,o,i,a,e.getUint32(8,true),9,4243563512);a=gg(a,d,o,i,e.getUint32(28,true),14,1735328473);i=gg(i,a,d,o,e.getUint32(48,true),20,2368359562);o=hh(o,i,a,d,e.getUint32(20,true),4,4294588738);d=hh(d,o,i,a,e.getUint32(32,true),11,2272392833);a=hh(a,d,o,i,e.getUint32(44,true),16,1839030562);i=hh(i,a,d,o,e.getUint32(56,true),23,4259657740);o=hh(o,i,a,d,e.getUint32(4,true),4,2763975236);d=hh(d,o,i,a,e.getUint32(16,true),11,1272893353);a=hh(a,d,o,i,e.getUint32(28,true),16,4139469664);i=hh(i,a,d,o,e.getUint32(40,true),23,3200236656);o=hh(o,i,a,d,e.getUint32(52,true),4,681279174);d=hh(d,o,i,a,e.getUint32(0,true),11,3936430074);a=hh(a,d,o,i,e.getUint32(12,true),16,3572445317);i=hh(i,a,d,o,e.getUint32(24,true),23,76029189);o=hh(o,i,a,d,e.getUint32(36,true),4,3654602809);d=hh(d,o,i,a,e.getUint32(48,true),11,3873151461);a=hh(a,d,o,i,e.getUint32(60,true),16,530742520);i=hh(i,a,d,o,e.getUint32(8,true),23,3299628645);o=ii(o,i,a,d,e.getUint32(0,true),6,4096336452);d=ii(d,o,i,a,e.getUint32(28,true),10,1126891415);a=ii(a,d,o,i,e.getUint32(56,true),15,2878612391);i=ii(i,a,d,o,e.getUint32(20,true),21,4237533241);o=ii(o,i,a,d,e.getUint32(48,true),6,1700485571);d=ii(d,o,i,a,e.getUint32(12,true),10,2399980690);a=ii(a,d,o,i,e.getUint32(40,true),15,4293915773);i=ii(i,a,d,o,e.getUint32(4,true),21,2240044497);o=ii(o,i,a,d,e.getUint32(32,true),6,1873313359);d=ii(d,o,i,a,e.getUint32(60,true),10,4264355552);a=ii(a,d,o,i,e.getUint32(24,true),15,2734768916);i=ii(i,a,d,o,e.getUint32(52,true),21,1309151649);o=ii(o,i,a,d,e.getUint32(16,true),6,4149444226);d=ii(d,o,i,a,e.getUint32(44,true),10,3174756917);a=ii(a,d,o,i,e.getUint32(8,true),15,718787259);i=ii(i,a,d,o,e.getUint32(36,true),21,3951481745);t[0]=o+t[0]&4294967295;t[1]=i+t[1]&4294967295;t[2]=a+t[2]&4294967295;t[3]=d+t[3]&4294967295}reset(){this.state=Uint32Array.from(P);this.buffer=new DataView(new ArrayBuffer(f));this.bufferLength=0;this.bytesHashed=0;this.finished=false}}function cmn(e,t,o,i,a,d){t=(t+e&4294967295)+(i+d&4294967295)&4294967295;return(t<<a|t>>>32-a)+o&4294967295}function ff(e,t,o,i,a,d,m){return cmn(t&o|~t&i,e,t,a,d,m)}function gg(e,t,o,i,a,d,m){return cmn(t&i|o&~i,e,t,a,d,m)}function hh(e,t,o,i,a,d,m){return cmn(t^o^i,e,t,a,d,m)}function ii(e,t,o,i,a,d,m){return cmn(o^(t|~i),e,t,a,d,m)}function isEmptyData(e){if(typeof e==="string"){return e.length===0}return e.byteLength===0}function convertToBuffer(e){if(typeof e==="string"){return d.fromUtf8(e)}if(ArrayBuffer.isView(e)){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)}return new Uint8Array(e)}t.Md5=Md5;t.blobHasher=m;t.blobReader=blobReader;t.fileStreamHasher=fileStreamHasher;t.readableStreamHasher=readableStreamHasher},92658:(e,t,o)=>{"use strict";var i=o(90690);var a=o(26890);const getAllAliases=(e,t)=>{const o=[];if(e){o.push(e)}if(t){for(const e of t){o.push(e)}}return o};const getMiddlewareNameWithAliases=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`;const constructStack=()=>{let e=[];let t=[];let o=false;const i=new Set;const sort=e=>e.sort(((e,t)=>d[t.step]-d[e.step]||m[t.priority||"normal"]-m[e.priority||"normal"]));const removeByName=o=>{let a=false;const filterCb=e=>{const t=getAllAliases(e.name,e.aliases);if(t.includes(o)){a=true;for(const e of t){i.delete(e)}return false}return true};e=e.filter(filterCb);t=t.filter(filterCb);return a};const removeByReference=o=>{let a=false;const filterCb=e=>{if(e.middleware===o){a=true;for(const t of getAllAliases(e.name,e.aliases)){i.delete(t)}return false}return true};e=e.filter(filterCb);t=t.filter(filterCb);return a};const cloneTo=o=>{e.forEach((e=>{o.add(e.middleware,{...e})}));t.forEach((e=>{o.addRelativeTo(e.middleware,{...e})}));o.identifyOnResolve?.(a.identifyOnResolve());return o};const expandRelativeMiddlewareList=e=>{const t=[];e.before.forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));t.push(e);e.after.reverse().forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));return t};const getMiddlewareList=(o=false)=>{const i=[];const a=[];const d={};e.forEach((e=>{const t={...e,before:[],after:[]};for(const e of getAllAliases(t.name,t.aliases)){d[e]=t}i.push(t)}));t.forEach((e=>{const t={...e,before:[],after:[]};for(const e of getAllAliases(t.name,t.aliases)){d[e]=t}a.push(t)}));a.forEach((e=>{if(e.toMiddleware){const t=d[e.toMiddleware];if(t===undefined){if(o){return}throw new Error(`${e.toMiddleware} is not found when adding `+`${getMiddlewareNameWithAliases(e.name,e.aliases)} `+`middleware ${e.relation} ${e.toMiddleware}`)}if(e.relation==="after"){t.after.push(e)}if(e.relation==="before"){t.before.push(e)}}}));const m=sort(i).map(expandRelativeMiddlewareList).reduce(((e,t)=>{e.push(...t);return e}),[]);return m};const a={add:(t,o={})=>{const{name:a,override:d,aliases:m}=o;const f={step:"initialize",priority:"normal",middleware:t,...o};const h=getAllAliases(a,m);if(h.length>0){if(h.some((e=>i.has(e)))){if(!d)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(a,m)}'`);for(const t of h){const o=e.findIndex((e=>e.name===t||e.aliases?.some((e=>e===t))));if(o===-1){continue}const i=e[o];if(i.step!==f.step||f.priority!==i.priority){throw new Error(`"${getMiddlewareNameWithAliases(i.name,i.aliases)}" middleware with `+`${i.priority} priority in ${i.step} step cannot `+`be overridden by "${getMiddlewareNameWithAliases(a,m)}" middleware with `+`${f.priority} priority in ${f.step} step.`)}e.splice(o,1)}}for(const e of h){i.add(e)}}e.push(f)},addRelativeTo:(e,o)=>{const{name:a,override:d,aliases:m}=o;const f={middleware:e,...o};const h=getAllAliases(a,m);if(h.length>0){if(h.some((e=>i.has(e)))){if(!d)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(a,m)}'`);for(const e of h){const o=t.findIndex((t=>t.name===e||t.aliases?.some((t=>t===e))));if(o===-1){continue}const i=t[o];if(i.toMiddleware!==f.toMiddleware||i.relation!==f.relation){throw new Error(`"${getMiddlewareNameWithAliases(i.name,i.aliases)}" middleware `+`${i.relation} "${i.toMiddleware}" middleware cannot be overridden `+`by "${getMiddlewareNameWithAliases(a,m)}" middleware ${f.relation} `+`"${f.toMiddleware}" middleware.`)}t.splice(o,1)}}for(const e of h){i.add(e)}}t.push(f)},clone:()=>cloneTo(constructStack()),use:e=>{e.applyToStack(a)},remove:e=>{if(typeof e==="string")return removeByName(e);else return removeByReference(e)},removeByTag:o=>{let a=false;const filterCb=e=>{const{tags:t,name:d,aliases:m}=e;if(t&&t.includes(o)){const e=getAllAliases(d,m);for(const t of e){i.delete(t)}a=true;return false}return true};e=e.filter(filterCb);t=t.filter(filterCb);return a},concat:e=>{const t=cloneTo(constructStack());t.use(e);t.identifyOnResolve(o||t.identifyOnResolve()||(e.identifyOnResolve?.()??false));return t},applyToStack:cloneTo,identify:()=>getMiddlewareList(true).map((e=>{const t=e.step??e.relation+" "+e.toMiddleware;return getMiddlewareNameWithAliases(e.name,e.aliases)+" - "+t})),identifyOnResolve(e){if(typeof e==="boolean")o=e;return o},resolve:(e,t)=>{for(const o of getMiddlewareList().map((e=>e.middleware)).reverse()){e=o(e,t)}if(o){console.log(a.identify())}return e}};return a};const d={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1};const m={high:3,normal:2,low:1};const getSmithyContext=e=>e[i.SMITHY_CONTEXT_KEY]||(e[i.SMITHY_CONTEXT_KEY]={});const normalizeProvider=e=>{if(typeof e==="function")return e;const t=Promise.resolve(e);return()=>t};const invalidFunction=e=>()=>{throw new Error(e)};const invalidProvider=e=>()=>Promise.reject(e);const getCircularReplacer=()=>{const e=new WeakSet;return(t,o)=>{if(typeof o==="object"&&o!==null){if(e.has(o)){return"[Circular]"}e.add(o)}return o}};const sleep=e=>new Promise((t=>setTimeout(t,e*1e3)));const f={minDelay:2,maxDelay:120};t.WaiterState=void 0;(function(e){e["ABORTED"]="ABORTED";e["FAILURE"]="FAILURE";e["SUCCESS"]="SUCCESS";e["RETRY"]="RETRY";e["TIMEOUT"]="TIMEOUT"})(t.WaiterState||(t.WaiterState={}));const checkExceptions=e=>{if(e.state===t.WaiterState.ABORTED){const t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"},getCircularReplacer())}`);t.name="AbortError";throw t}else if(e.state===t.WaiterState.TIMEOUT){const t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"},getCircularReplacer())}`);t.name="TimeoutError";throw t}else if(e.state!==t.WaiterState.SUCCESS){throw new Error(`${JSON.stringify(e,getCircularReplacer())}`)}return e};const runPolling=async({minDelay:e,maxDelay:o,maxWaitTime:i,abortController:a,client:d,abortSignal:m},f,h)=>{const P={};const[_,L]=[e*1e3,o*1e3];let U=0;const j=Date.now()+i*1e3;const H=Date.now()+6e4;let V=false;while(true){if(U>0){const e=exponentialBackoffWithJitter(_,L,U,j);if(a?.signal?.aborted||m?.aborted){const e="AbortController signal aborted.";P[e]|=0;P[e]+=1;return{state:t.WaiterState.ABORTED,observedResponses:P}}if(Date.now()+e>j){return{state:t.WaiterState.TIMEOUT,observedResponses:P}}await sleep(e/1e3)}const{state:e,reason:o}=await h(d,f);if(o){const e=createMessageFromResponse(o);P[e]|=0;P[e]+=1}if(e!==t.WaiterState.RETRY){return{state:e,reason:o,final:o,observedResponses:P}}U+=1;if(!V&&Date.now()>=H){checkWarn403(P,d);V=true}}};const checkWarn403=(e={},t)=>{const o=Object.keys(e);let i=0;for(const t of o){const o=e[t]|0;if(t.startsWith("403:")){i+=o}}const a=t?.config?.logger;const d=typeof a?.warn==="function"&&!a.constructor?.name?.includes?.("NoOpLogger")?a:console;if(i>=3||o[o.length-1]?.startsWith("403:")){d.warn(`@smithy/util-waiter WARN - 403 status code encountered during waiter polling.`)}};const createMessageFromResponse=e=>{const t=e?.$response?.statusCode??e?.$metadata?.httpStatusCode;if(e?.$responseBodyText){return`${t?t+": ":""}Deserialization error for body: ${e.$responseBodyText}`}if(t){if(e?.$response||e?.message){return`${t??"Unknown"}: ${e?.message}`}return`${t}: OK`}return String(e?.message??JSON.stringify(e,getCircularReplacer())??"Unknown")};const exponentialBackoffWithJitter=(e,t,o,i)=>{const a=Math.log(t/e)/Math.log(2)+1;if(o>a){return t}const d=e*2**(o-1);const m=Math.min(d,t);const f=randomInRange(e,m);if(Date.now()+f>i){const e=i-Date.now();return Math.max(0,e-500)}return f};const randomInRange=(e,t)=>e+Math.random()*(t-e);const validateWaiterOptions=e=>{if(e.maxWaitTime<=0){throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`)}else if(e.minDelay<=0){throw new Error(`WaiterConfiguration.minDelay must be greater than 0`)}else if(e.maxDelay<=0){throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`)}else if(e.maxWaitTime<=e.minDelay){throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)}else if(e.maxDelay<e.minDelay){throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)}};const abortTimeout=e=>{let o;const i=new Promise((i=>{o=()=>i({state:t.WaiterState.ABORTED});if(typeof e.addEventListener==="function"){e.addEventListener("abort",o)}else{e.onabort=o}}));return{clearListener(){if(typeof e.removeEventListener==="function"){e.removeEventListener("abort",o)}},aborted:i}};const createWaiter=async(e,t,o)=>{const i={...f,...e};validateWaiterOptions(i);const a=[runPolling(i,t,o)];const d=[];if(e.abortSignal){const{aborted:t,clearListener:o}=abortTimeout(e.abortSignal);d.push(o);a.push(t)}if(e.abortController?.signal){const{aborted:t,clearListener:o}=abortTimeout(e.abortController.signal);d.push(o);a.push(t)}return Promise.race(a).then((e=>{for(const e of d){e()}return e}))};class Client{config;middlewareStack=constructStack();initConfig;handlers;constructor(e){this.config=e;const{protocol:t,protocolSettings:o}=e;if(o){if(typeof t==="function"){e.protocol=new t(o)}}}send(e,t,o){const i=typeof t!=="function"?t:undefined;const a=typeof t==="function"?t:o;const d=i===undefined&&this.config.cacheMiddleware===true;let m;if(d){if(!this.handlers){this.handlers=new WeakMap}const t=this.handlers;if(t.has(e.constructor)){m=t.get(e.constructor)}else{m=e.resolveMiddleware(this.middlewareStack,this.config,i);t.set(e.constructor,m)}}else{delete this.handlers;m=e.resolveMiddleware(this.middlewareStack,this.config,i)}if(a){m(e).then((e=>a(null,e.output)),(e=>a(e))).catch((()=>{}))}else{return m(e).then((e=>e.output))}}destroy(){this.config?.requestHandler?.destroy?.();delete this.handlers}}const h="***SensitiveInformation***";function schemaLogFilter(e,t){if(t==null){return t}const o=a.NormalizedSchema.of(e);if(o.getMergedTraits().sensitive){return h}if(o.isListSchema()){const e=!!o.getValueSchema().getMergedTraits().sensitive;if(e){return h}}else if(o.isMapSchema()){const e=!!o.getKeySchema().getMergedTraits().sensitive||!!o.getValueSchema().getMergedTraits().sensitive;if(e){return h}}else if(o.isStructSchema()&&typeof t==="object"){const e=t;const i={};for(const[t,a]of o.structIterator()){if(e[t]!=null){i[t]=schemaLogFilter(a,e[t])}}return i}return t}class Command{middlewareStack=constructStack();schema;static classBuilder(){return new ClassBuilder}resolveMiddlewareWithContext(e,t,o,{middlewareFn:a,clientName:d,commandName:m,inputFilterSensitiveLog:f,outputFilterSensitiveLog:h,smithyContext:P,additionalContext:_,CommandCtor:L}){for(const i of a.bind(this)(L,e,t,o)){this.middlewareStack.use(i)}const U=e.concat(this.middlewareStack);const{logger:j}=t;const H={logger:j,clientName:d,commandName:m,inputFilterSensitiveLog:f,outputFilterSensitiveLog:h,[i.SMITHY_CONTEXT_KEY]:{commandInstance:this,...P},..._};const{requestHandler:V}=t;let K=o??{};if(P.eventStream){K={isEventStream:true,...K}}return U.resolve((e=>V.handle(e.request,K)),H)}}class ClassBuilder{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=undefined;_outputFilterSensitiveLog=undefined;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){this._ep=e;return this}m(e){this._middlewareFn=e;return this}s(e,t,o={}){this._smithyContext={service:e,operation:t,...o};return this}c(e={}){this._additionalContext=e;return this}n(e,t){this._clientName=e;this._commandName=t;return this}f(e=e=>e,t=e=>e){this._inputFilterSensitiveLog=e;this._outputFilterSensitiveLog=t;return this}ser(e){this._serializer=e;return this}de(e){this._deserializer=e;return this}sc(e){this._operationSchema=e;this._smithyContext.operationSchema=e;return this}build(){const e=this;let t;return t=class extends Command{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super();this.input=t??{};e._init(this);this.schema=e._operationSchema}resolveMiddleware(o,i,a){const d=e._operationSchema;const m=d?.[4]??d?.input;const f=d?.[5]??d?.output;return this.resolveMiddlewareWithContext(o,i,a,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(d?schemaLogFilter.bind(null,m):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(d?schemaLogFilter.bind(null,f):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}const P="***SensitiveInformation***";const createAggregatedClient=(e,t,o)=>{for(const[o,i]of Object.entries(e)){const methodImpl=async function(e,t,o){const a=new i(e);if(typeof t==="function"){this.send(a,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expected http options but got ${typeof t}`);this.send(a,t||{},o)}else{return this.send(a,t)}};const e=(o[0].toLowerCase()+o.slice(1)).replace(/Command$/,"");t.prototype[e]=methodImpl}const{paginators:i={},waiters:a={}}=o??{};for(const[e,o]of Object.entries(i)){if(t.prototype[e]===void 0){t.prototype[e]=function(e={},t,...i){return o({...t,client:this},e,...i)}}}for(const[e,o]of Object.entries(a)){if(t.prototype[e]===void 0){t.prototype[e]=async function(e={},t,...i){let a=t;if(typeof t==="number"){a={maxWaitTime:t}}return o({...a,client:this},e,...i)}}}};class ServiceException extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype);this.name=e.name;this.$fault=e.$fault;this.$metadata=e.$metadata}static isInstance(e){if(!e)return false;const t=e;return ServiceException.prototype.isPrototypeOf(t)||Boolean(t.$fault)&&Boolean(t.$metadata)&&(t.$fault==="client"||t.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return false;const t=e;if(this===ServiceException){return ServiceException.isInstance(e)}if(ServiceException.isInstance(e)){if(t.name&&this.name){return this.prototype.isPrototypeOf(e)||t.name===this.name}return this.prototype.isPrototypeOf(e)}return false}}const decorateServiceException=(e,t={})=>{Object.entries(t).filter((([,e])=>e!==undefined)).forEach((([t,o])=>{if(e[t]==undefined||e[t]===""){e[t]=o}}));const o=e.message||e.Message||"UnknownError";e.message=o;delete e.Message;return e};const throwDefaultError=({output:e,parsedBody:t,exceptionCtor:o,errorCode:i})=>{const a=deserializeMetadata(e);const d=a.httpStatusCode?a.httpStatusCode+"":undefined;const m=new o({name:t?.code||t?.Code||i||d||"UnknownError",$fault:"client",$metadata:a});throw decorateServiceException(m,t)};const withBaseException=e=>({output:t,parsedBody:o,errorCode:i})=>{throwDefaultError({output:t,parsedBody:o,exceptionCtor:e,errorCode:i})};const deserializeMetadata=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"]});const loadConfigsForDefaultMode=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{}}};let _=false;const emitWarningIfUnsupportedVersion=e=>{if(e&&!_&&parseInt(e.substring(1,e.indexOf(".")))<16){_=true}};const L=Object.values(i.AlgorithmId);const getChecksumConfiguration=e=>{const t=[];for(const o in i.AlgorithmId){const a=i.AlgorithmId[o];if(e[a]===undefined){continue}t.push({algorithmId:()=>a,checksumConstructor:()=>e[a]})}for(const[o,i]of Object.entries(e.checksumAlgorithms??{})){t.push({algorithmId:()=>o,checksumConstructor:()=>i})}return{addChecksumAlgorithm(o){e.checksumAlgorithms=e.checksumAlgorithms??{};const i=o.algorithmId();const a=o.checksumConstructor();if(L.includes(i)){e.checksumAlgorithms[i.toUpperCase()]=a}else{e.checksumAlgorithms[i]=a}t.push(o)},checksumAlgorithms(){return t}}};const resolveChecksumRuntimeConfig=e=>{const t={};e.checksumAlgorithms().forEach((e=>{const o=e.algorithmId();if(L.includes(o)){t[o]=e.checksumConstructor()}}));return t};const getRetryConfiguration=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}});const resolveRetryRuntimeConfig=e=>{const t={};t.retryStrategy=e.retryStrategy();return t};const getDefaultExtensionConfiguration=e=>Object.assign(getChecksumConfiguration(e),getRetryConfiguration(e));const U=getDefaultExtensionConfiguration;const resolveDefaultRuntimeConfig=e=>Object.assign(resolveChecksumRuntimeConfig(e),resolveRetryRuntimeConfig(e));const getArrayIfSingleItem=e=>Array.isArray(e)?e:[e];const getValueFromTextNode=e=>{const t="#text";for(const o in e){if(e.hasOwnProperty(o)&&e[o][t]!==undefined){e[o]=e[o][t]}else if(typeof e[o]==="object"&&e[o]!==null){e[o]=getValueFromTextNode(e[o])}}return e};const isSerializableHeaderValue=e=>e!=null;class NoOpLogger{trace(){}debug(){}info(){}warn(){}error(){}}function map(e,t,o){let i;let a;let d;if(typeof t==="undefined"&&typeof o==="undefined"){i={};d=e}else{i=e;if(typeof t==="function"){a=t;d=o;return mapWithFilter(i,a,d)}else{d=t}}for(const e of Object.keys(d)){if(!Array.isArray(d[e])){i[e]=d[e];continue}applyInstruction(i,null,d,e)}return i}const convertMap=e=>{const t={};for(const[o,i]of Object.entries(e||{})){t[o]=[,i]}return t};const take=(e,t)=>{const o={};for(const i in t){applyInstruction(o,e,t,i)}return o};const mapWithFilter=(e,t,o)=>map(e,Object.entries(o).reduce(((e,[o,i])=>{if(Array.isArray(i)){e[o]=i}else{if(typeof i==="function"){e[o]=[t,i()]}else{e[o]=[t,i]}}return e}),{}));const applyInstruction=(e,t,o,i)=>{if(t!==null){let a=o[i];if(typeof a==="function"){a=[,a]}const[d=nonNullish,m=pass,f=i]=a;if(typeof d==="function"&&d(t[f])||typeof d!=="function"&&!!d){e[i]=m(t[f])}return}let[a,d]=o[i];if(typeof d==="function"){let t;const o=a===undefined&&(t=d())!=null;const m=typeof a==="function"&&!!a(void 0)||typeof a!=="function"&&!!a;if(o){e[i]=t}else if(m){e[i]=d()}}else{const t=a===undefined&&d!=null;const o=typeof a==="function"&&!!a(d)||typeof a!=="function"&&!!a;if(t||o){e[i]=d}}};const nonNullish=e=>e!=null;const pass=e=>e;const serializeFloat=e=>{if(e!==e){return"NaN"}switch(e){case Infinity:return"Infinity";case-Infinity:return"-Infinity";default:return e}};const serializeDateTime=e=>e.toISOString().replace(".000Z","Z");const _json=e=>{if(e==null){return{}}if(Array.isArray(e)){return e.filter((e=>e!=null)).map(_json)}if(typeof e==="object"){const t={};for(const o of Object.keys(e)){if(e[o]==null){continue}t[o]=_json(e[o])}return t}return e};t.AlgorithmId=i.AlgorithmId;t.Client=Client;t.Command=Command;t.NoOpLogger=NoOpLogger;t.SENSITIVE_STRING=P;t.ServiceException=ServiceException;t._json=_json;t.checkExceptions=checkExceptions;t.constructStack=constructStack;t.convertMap=convertMap;t.createAggregatedClient=createAggregatedClient;t.createWaiter=createWaiter;t.decorateServiceException=decorateServiceException;t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;t.getArrayIfSingleItem=getArrayIfSingleItem;t.getChecksumConfiguration=getChecksumConfiguration;t.getDefaultClientConfiguration=U;t.getDefaultExtensionConfiguration=getDefaultExtensionConfiguration;t.getRetryConfiguration=getRetryConfiguration;t.getSmithyContext=getSmithyContext;t.getValueFromTextNode=getValueFromTextNode;t.invalidFunction=invalidFunction;t.invalidProvider=invalidProvider;t.isSerializableHeaderValue=isSerializableHeaderValue;t.loadConfigsForDefaultMode=loadConfigsForDefaultMode;t.map=map;t.normalizeProvider=normalizeProvider;t.resolveChecksumRuntimeConfig=resolveChecksumRuntimeConfig;t.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig;t.resolveRetryRuntimeConfig=resolveRetryRuntimeConfig;t.schemaLogFilter=schemaLogFilter;t.serializeDateTime=serializeDateTime;t.serializeFloat=serializeFloat;t.take=take;t.throwDefaultError=throwDefaultError;t.waiterServiceDefaults=f;t.withBaseException=withBaseException},47291:(e,t,o)=>{"use strict";var i=o(48161);var a=o(76760);var d=o(77598);var m=o(51455);var f=o(90690);var h=o(92658);var P=o(62085);class ProviderError extends Error{name="ProviderError";tryNextLink;constructor(e,t=true){let o;let i=true;if(typeof t==="boolean"){o=undefined;i=t}else if(t!=null&&typeof t==="object"){o=t.logger;i=t.tryNextLink??true}super(e);this.tryNextLink=i;Object.setPrototypeOf(this,ProviderError.prototype);o?.debug?.(`@smithy/property-provider ${i?"->":"(!)"} ${e}`)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}class CredentialsProviderError extends ProviderError{name="CredentialsProviderError";constructor(e,t=true){super(e,t);Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}class TokenProviderError extends ProviderError{name="TokenProviderError";constructor(e,t=true){super(e,t);Object.setPrototypeOf(this,TokenProviderError.prototype)}}const chain=(...e)=>async()=>{if(e.length===0){throw new ProviderError("No providers in chain")}let t;for(const o of e){try{const e=await o();return e}catch(e){t=e;if(e?.tryNextLink){continue}throw e}}throw t};const fromValue=e=>()=>Promise.resolve(e);const memoize=(e,t,o)=>{let i;let a;let d;let m=false;const coalesceProvider=async()=>{if(!a){a=e()}try{i=await a;d=true;m=false}finally{a=undefined}return i};if(t===undefined){return async e=>{if(!d||e?.forceRefresh){i=await coalesceProvider()}return i}}return async e=>{if(!d||e?.forceRefresh){i=await coalesceProvider()}if(m){return i}if(o&&!o(i)){m=true;return i}if(t(i)){await coalesceProvider();return i}return i}};const booleanSelector=(e,t,o)=>{if(!(t in e))return undefined;if(e[t]==="true")return true;if(e[t]==="false")return false;throw new Error(`Cannot load ${o} "${t}". Expected "true" or "false", got ${e[t]}.`)};const numberSelector=(e,t,o)=>{if(!(t in e))return undefined;const i=parseInt(e[t],10);if(Number.isNaN(i)){throw new TypeError(`Cannot load ${o} '${t}'. Expected number, got '${e[t]}'.`)}return i};t.SelectorType=void 0;(function(e){e["ENV"]="env";e["CONFIG"]="shared config entry"})(t.SelectorType||(t.SelectorType={}));const _={};const getHomeDirCacheKey=()=>{if(process&&process.geteuid){return`${process.geteuid()}`}return"DEFAULT"};const getHomeDir=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:o,HOMEDRIVE:d=`C:${a.sep}`}=process.env;if(e)return e;if(t)return t;if(o)return`${d}${o}`;const m=getHomeDirCacheKey();if(!_[m])_[m]=i.homedir();return _[m]};const L="AWS_PROFILE";const U="default";const getProfileName=e=>e.profile||process.env[L]||U;const getSSOTokenFilepath=e=>{const t=d.createHash("sha1");const o=t.update(e).digest("hex");return a.join(getHomeDir(),".aws","sso","cache",`${o}.json`)};const j={};const getSSOTokenFromFile=async e=>{if(j[e]){return j[e]}const t=getSSOTokenFilepath(e);const o=await m.readFile(t,"utf8");return JSON.parse(o)};const H=".";const getConfigData=e=>Object.entries(e).filter((([e])=>{const t=e.indexOf(H);if(t===-1){return false}return Object.values(f.IniSectionType).includes(e.substring(0,t))})).reduce(((e,[t,o])=>{const i=t.indexOf(H);const a=t.substring(0,i)===f.IniSectionType.PROFILE?t.substring(i+1):t;e[a]=o;return e}),{...e.default&&{default:e.default}});const V="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[V]||a.join(getHomeDir(),".aws","config");const K="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[K]||a.join(getHomeDir(),".aws","credentials");const W=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;const X=["__proto__","profile __proto__"];const parseIni=e=>{const t={};let o;let i;for(const a of e.split(/\r?\n/)){const e=a.split(/(^|\s)[;#]/)[0].trim();const d=e[0]==="["&&e[e.length-1]==="]";if(d){o=undefined;i=undefined;const t=e.substring(1,e.length-1);const a=W.exec(t);if(a){const[,e,,t]=a;if(Object.values(f.IniSectionType).includes(e)){o=[e,t].join(H)}}else{o=t}if(X.includes(t)){throw new Error(`Found invalid profile name "${t}"`)}}else if(o){const d=e.indexOf("=");if(![0,-1].includes(d)){const[m,f]=[e.substring(0,d).trim(),e.substring(d+1).trim()];if(f===""){i=m}else{if(i&&a.trimStart()===a){i=undefined}t[o]=t[o]||{};const e=i?[i,m].join(H):m;t[o][e]=f}}}}return t};const Q={};const Y={};const readFile=(e,t)=>{if(Y[e]!==undefined){return Y[e]}if(!Q[e]||t?.ignoreCache){Q[e]=m.readFile(e,"utf8")}return Q[e]};const swallowError$1=()=>({});const loadSharedConfigFiles=async(e={})=>{const{filepath:t=getCredentialsFilepath(),configFilepath:o=getConfigFilepath()}=e;const i=getHomeDir();const d="~/";let m=t;if(t.startsWith(d)){m=a.join(i,t.slice(2))}let f=o;if(o.startsWith(d)){f=a.join(i,o.slice(2))}const h=await Promise.all([readFile(f,{ignoreCache:e.ignoreCache}).then(parseIni).then(getConfigData).catch(swallowError$1),readFile(m,{ignoreCache:e.ignoreCache}).then(parseIni).catch(swallowError$1)]);return{configFile:h[0],credentialsFile:h[1]}};const getSsoSessionData=e=>Object.entries(e).filter((([e])=>e.startsWith(f.IniSectionType.SSO_SESSION+H))).reduce(((e,[t,o])=>({...e,[t.substring(t.indexOf(H)+1)]:o})),{});const swallowError=()=>({});const loadSsoSessionData=async(e={})=>readFile(e.configFilepath??getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError);const mergeConfigFiles=(...e)=>{const t={};for(const o of e){for(const[e,i]of Object.entries(o)){if(t[e]!==undefined){Object.assign(t[e],i)}else{t[e]=i}}}return t};const parseKnownFiles=async e=>{const t=await loadSharedConfigFiles(e);return mergeConfigFiles(t.configFile,t.credentialsFile)};const J={getFileRecord(){return Y},interceptFile(e,t){Y[e]=Promise.resolve(t)},getTokenRecord(){return j},interceptToken(e,t){j[e]=t}};function getSelectorName(e){try{const t=new Set(Array.from(e.match(/([A-Z_]){3,}/g)??[]));t.delete("CONFIG");t.delete("CONFIG_PREFIX_SEPARATOR");t.delete("ENV");return[...t].join(", ")}catch(t){return e}}const fromEnv=(e,t)=>async()=>{try{const o=e(process.env,t);if(o===undefined){throw new Error}return o}catch(o){throw new CredentialsProviderError(o.message||`Not found in ENV: ${getSelectorName(e.toString())}`,{logger:t?.logger})}};const fromSharedConfigFiles=(e,{preferredFile:t="config",...o}={})=>async()=>{const i=getProfileName(o);const{configFile:a,credentialsFile:d}=await loadSharedConfigFiles(o);const m=d[i]||{};const f=a[i]||{};const h=t==="config"?{...m,...f}:{...f,...m};try{const o=t==="config"?a:d;const i=e(h,o);if(i===undefined){throw new Error}return i}catch(t){throw new CredentialsProviderError(t.message||`Not found in config files w/ profile [${i}]: ${getSelectorName(e.toString())}`,{logger:o.logger})}};const isFunction=e=>typeof e==="function";const fromStatic=e=>isFunction(e)?async()=>await e():fromValue(e);const loadConfig=({environmentVariableSelector:e,configFileSelector:t,default:o},i={})=>{const{signingName:a,logger:d}=i;const m={signingName:a,logger:d};return memoize(chain(fromEnv(e,m),fromSharedConfigFiles(t,i),fromStatic(o)))};const Z="AWS_USE_DUALSTACK_ENDPOINT";const ee="use_dualstack_endpoint";const te=false;const ne={environmentVariableSelector:e=>booleanSelector(e,Z,t.SelectorType.ENV),configFileSelector:e=>booleanSelector(e,ee,t.SelectorType.CONFIG),default:false};const re={environmentVariableSelector:e=>booleanSelector(e,Z,t.SelectorType.ENV),configFileSelector:e=>booleanSelector(e,ee,t.SelectorType.CONFIG),default:undefined};const oe="AWS_USE_FIPS_ENDPOINT";const ie="use_fips_endpoint";const se=false;const ae={environmentVariableSelector:e=>booleanSelector(e,oe,t.SelectorType.ENV),configFileSelector:e=>booleanSelector(e,ie,t.SelectorType.CONFIG),default:false};const ce={environmentVariableSelector:e=>booleanSelector(e,oe,t.SelectorType.ENV),configFileSelector:e=>booleanSelector(e,ie,t.SelectorType.CONFIG),default:undefined};const resolveCustomEndpointsConfig=e=>{const{tls:t,endpoint:o,urlParser:i,useDualstackEndpoint:a}=e;return Object.assign(e,{tls:t??true,endpoint:h.normalizeProvider(typeof o==="string"?i(o):o),isCustomEndpoint:true,useDualstackEndpoint:h.normalizeProvider(a??false)})};const getEndpointFromRegion=async e=>{const{tls:t=true}=e;const o=await e.region();const i=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!i.test(o)){throw new Error("Invalid region in client config")}const a=await e.useDualstackEndpoint();const d=await e.useFipsEndpoint();const{hostname:m}=await e.regionInfoProvider(o,{useDualstackEndpoint:a,useFipsEndpoint:d})??{};if(!m){throw new Error("Cannot resolve hostname from client config")}return e.urlParser(`${t?"https:":"http:"}//${m}`)};const resolveEndpointsConfig=e=>{const t=h.normalizeProvider(e.useDualstackEndpoint??false);const{endpoint:o,useFipsEndpoint:i,urlParser:a,tls:d}=e;return Object.assign(e,{tls:d??true,endpoint:o?h.normalizeProvider(typeof o==="string"?a(o):o):()=>getEndpointFromRegion({...e,useDualstackEndpoint:t,useFipsEndpoint:i}),isCustomEndpoint:!!o,useDualstackEndpoint:t})};const le="AWS_REGION";const ue="region";const de={environmentVariableSelector:e=>e[le],configFileSelector:e=>e[ue],default:()=>{throw new Error("Region is missing")}};const pe={preferredFile:"credentials"};const me=new Set;const checkRegion=(e,t=P.isValidHostLabel)=>{if(!me.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{me.add(e)}};const isFipsRegion=e=>typeof e==="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));const getRealRegion=e=>isFipsRegion(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;const resolveRegionConfig=e=>{const{region:t,useFipsEndpoint:o}=e;if(!t){throw new Error("Region is missing")}return Object.assign(e,{region:async()=>{const e=typeof t==="function"?await t():t;const o=getRealRegion(e);checkRegion(o);return o},useFipsEndpoint:async()=>{const e=typeof t==="string"?t:await t();if(isFipsRegion(e)){return true}return typeof o!=="function"?Promise.resolve(!!o):o()}})};const getHostnameFromVariants=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:o})=>e.find((({tags:e})=>t===e.includes("fips")&&o===e.includes("dualstack")))?.hostname;const getResolvedHostname=(e,{regionHostname:t,partitionHostname:o})=>t?t:o?o.replace("{region}",e):undefined;const getResolvedPartition=(e,{partitionHash:t})=>Object.keys(t||{}).find((o=>t[o].regions.includes(e)))??"aws";const getResolvedSigningRegion=(e,{signingRegion:t,regionRegex:o,useFipsEndpoint:i})=>{if(t){return t}else if(i){const t=o.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\.");const i=e.match(t);if(i){return i[0].slice(1,-1)}}};const getRegionInfo=(e,{useFipsEndpoint:t=false,useDualstackEndpoint:o=false,signingService:i,regionHash:a,partitionHash:d})=>{const m=getResolvedPartition(e,{partitionHash:d});const f=e in a?e:d[m]?.endpoint??e;const h={useFipsEndpoint:t,useDualstackEndpoint:o};const P=getHostnameFromVariants(a[f]?.variants,h);const _=getHostnameFromVariants(d[m]?.variants,h);const L=getResolvedHostname(f,{regionHostname:P,partitionHostname:_});if(L===undefined){throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:f,useFipsEndpoint:t,useDualstackEndpoint:o}}`)}const U=getResolvedSigningRegion(L,{signingRegion:a[f]?.signingRegion,regionRegex:d[m].regionRegex,useFipsEndpoint:t});return{partition:m,signingService:i,hostname:L,...U&&{signingRegion:U},...a[f]?.signingService&&{signingService:a[f].signingService}}};const fe="AWS_EXECUTION_ENV";const he="AWS_REGION";const ge="AWS_DEFAULT_REGION";const ye="AWS_EC2_METADATA_DISABLED";const be=["in-region","cross-region","mobile","standard","legacy"];const Se="/latest/meta-data/placement/region";const Ce="AWS_DEFAULTS_MODE";const Ee="defaults_mode";const xe={environmentVariableSelector:e=>e[Ce],configFileSelector:e=>e[Ee],default:"legacy"};const resolveDefaultsModeConfig=({region:e=loadConfig(de),defaultsMode:t=loadConfig(xe)}={})=>memoize((async()=>{const o=typeof t==="function"?await t():t;switch(o?.toLowerCase()){case"auto":return resolveNodeDefaultsModeAuto(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(o?.toLocaleLowerCase());case undefined:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${be.join(", ")}, got ${o}`)}}));const resolveNodeDefaultsModeAuto=async e=>{if(e){const t=typeof e==="function"?await e():e;const o=await inferPhysicalRegion();if(!o){return"standard"}if(t===o){return"in-region"}else{return"cross-region"}}return"standard"};const inferPhysicalRegion=async()=>{if(process.env[fe]&&(process.env[he]||process.env[ge])){return process.env[he]??process.env[ge]}if(!process.env[ye]){try{const e=await getImdsEndpoint();return(await imdsHttpGet({hostname:e.hostname,path:Se})).toString()}catch(e){}}};const getImdsEndpoint=async()=>{const e=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(e){const t=new URL(e);return{hostname:t.hostname,path:t.pathname}}const t=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE;if(t==="IPv6"){return{hostname:"fd00:ec2::254",path:"/"}}return{hostname:"169.254.169.254",path:"/"}};const imdsHttpGet=async({hostname:e,path:t})=>{const{request:i}=await Promise.resolve().then(o.t.bind(o,37067,23));return new Promise(((o,a)=>{const d=i({method:"GET",hostname:e.replace(/^\[(.+)]$/,"$1"),path:t,timeout:1e3,signal:AbortSignal.timeout(1e3)});d.on("error",(e=>{a(e);d.destroy()}));d.on("timeout",(()=>{a(new Error("TimeoutError from instance metadata service"));d.destroy()}));d.on("response",(e=>{const{statusCode:t=400}=e;if(t<200||300<=t){a(Object.assign(new Error("Error response received from instance metadata service"),{statusCode:t}));d.destroy();return}const i=[];e.on("data",(e=>i.push(e)));e.on("end",(()=>{o(Buffer.concat(i));d.destroy()}))}));d.end()}))};t.CONFIG_PREFIX_SEPARATOR=H;t.CONFIG_USE_DUALSTACK_ENDPOINT=ee;t.CONFIG_USE_FIPS_ENDPOINT=ie;t.CredentialsProviderError=CredentialsProviderError;t.DEFAULT_PROFILE=U;t.DEFAULT_USE_DUALSTACK_ENDPOINT=te;t.DEFAULT_USE_FIPS_ENDPOINT=se;t.ENV_PROFILE=L;t.ENV_USE_DUALSTACK_ENDPOINT=Z;t.ENV_USE_FIPS_ENDPOINT=oe;t.NODE_REGION_CONFIG_FILE_OPTIONS=pe;t.NODE_REGION_CONFIG_OPTIONS=de;t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=ne;t.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=ae;t.ProviderError=ProviderError;t.REGION_ENV_NAME=le;t.REGION_INI_NAME=ue;t.TokenProviderError=TokenProviderError;t.booleanSelector=booleanSelector;t.chain=chain;t.externalDataInterceptor=J;t.fromStatic=fromStatic;t.fromValue=fromValue;t.getHomeDir=getHomeDir;t.getProfileName=getProfileName;t.getRegionInfo=getRegionInfo;t.getSSOTokenFilepath=getSSOTokenFilepath;t.getSSOTokenFromFile=getSSOTokenFromFile;t.loadConfig=loadConfig;t.loadSharedConfigFiles=loadSharedConfigFiles;t.loadSsoSessionData=loadSsoSessionData;t.memoize=memoize;t.nodeDualstackConfigSelectors=re;t.nodeFipsConfigSelectors=ce;t.numberSelector=numberSelector;t.parseKnownFiles=parseKnownFiles;t.readFile=readFile;t.resolveCustomEndpointsConfig=resolveCustomEndpointsConfig;t.resolveDefaultsModeConfig=resolveDefaultsModeConfig;t.resolveEndpointsConfig=resolveEndpointsConfig;t.resolveRegionConfig=resolveRegionConfig},62085:(e,t,o)=>{"use strict";var i=o(47291);var a=o(93422);var d=o(92658);var m=o(90690);const f="AWS_ENDPOINT_URL";const h="endpoint_url";const getEndpointUrlConfig=e=>({environmentVariableSelector:t=>{const o=e.split(" ").map((e=>e.toUpperCase()));const i=t[[f,...o].join("_")];if(i)return i;const a=t[f];if(a)return a;return undefined},configFileSelector:(t,o)=>{if(o&&t.services){const a=o[["services",t.services].join(i.CONFIG_PREFIX_SEPARATOR)];if(a){const t=e.split(" ").map((e=>e.toLowerCase()));const o=a[[t.join("_"),h].join(i.CONFIG_PREFIX_SEPARATOR)];if(o)return o}}const a=t[h];if(a)return a;return undefined},default:undefined});const getEndpointFromConfig=async e=>i.loadConfig(getEndpointUrlConfig(e??""))();const resolveParamsForS3=async e=>{const t=e?.Bucket||"";if(typeof e.Bucket==="string"){e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))}if(isArnBucketName(t)){if(e.ForcePathStyle===true){throw new Error("Path-style addressing cannot be used with ARN buckets")}}else if(!isDnsCompatibleBucketName(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3){e.ForcePathStyle=true}if(e.DisableMultiRegionAccessPoints){e.disableMultiRegionAccessPoints=true;e.DisableMRAP=true}return e};const P=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;const _=/(\d+\.){3}\d+/;const L=/\.\./;const isDnsCompatibleBucketName=e=>P.test(e)&&!_.test(e)&&!L.test(e);const isArnBucketName=e=>{const[t,o,i,,,a]=e.split(":");const d=t==="arn"&&e.split(":").length>=6;const m=Boolean(d&&o&&i&&a);if(d&&!m){throw new Error(`Invalid ARN: ${e} was an invalid ARN.`)}return m};const createConfigValueProvider=(e,t,o,i=false)=>{const configProvider=async()=>{let a;if(i){const i=o.clientContextParams;const d=i?.[e];a=d??o[e]??o[t]}else{a=o[e]??o[t]}if(typeof a==="function"){return a()}return a};if(e==="credentialScope"||t==="CredentialScope"){return async()=>{const e=typeof o.credentials==="function"?await o.credentials():o.credentials;const t=e?.credentialScope??e?.CredentialScope;return t}}if(e==="accountId"||t==="AccountId"){return async()=>{const e=typeof o.credentials==="function"?await o.credentials():o.credentials;const t=e?.accountId??e?.AccountId;return t}}if(e==="endpoint"||t==="endpoint"){return async()=>{if(o.isCustomEndpoint===false){return undefined}const e=await configProvider();if(e&&typeof e==="object"){if("url"in e){return e.url.href}if("hostname"in e){const{protocol:t,hostname:o,port:i,path:a}=e;return`${t}//${o}${i?":"+i:""}${a}`}}return e}}return configProvider};const toEndpointV1=e=>{if(typeof e==="object"){if("url"in e){const t=a.parseUrl(e.url);if(e.headers){t.headers={};for(const o in e.headers){t.headers[o.toLowerCase()]=e.headers[o].join(", ")}}return t}return e}return a.parseUrl(e)};function bindGetEndpointFromInstructions(e){return async(t,o,i,a)=>{if(!i.isCustomEndpoint){let t;if(i.serviceConfiguredEndpoint){t=await i.serviceConfiguredEndpoint()}else{t=await e(i.serviceId)}if(t){i.endpoint=()=>Promise.resolve(toEndpointV1(t));i.isCustomEndpoint=true}}const d=await resolveParams(t,o,i);if(typeof i.endpointProvider!=="function"){throw new Error("config.endpointProvider is not set.")}const m=i.endpointProvider(d,a);if(i.isCustomEndpoint&&i.endpoint){const e=await i.endpoint();if(e?.headers){m.headers??={};for(const[t,o]of Object.entries(e.headers)){m.headers[t]=Array.isArray(o)?o:[o]}}}return m}}const resolveParams=async(e,t,o)=>{const i={};const a=t?.getEndpointParameterInstructions?.()||{};for(const[t,d]of Object.entries(a)){switch(d.type){case"staticContextParams":i[t]=d.value;break;case"contextParams":i[t]=e[d.name];break;case"clientContextParams":case"builtInParams":i[t]=await createConfigValueProvider(d.name,t,o,d.type!=="builtInParams")();break;case"operationContextParams":i[t]=d.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(d))}}if(Object.keys(a).length===0){Object.assign(i,o)}if(String(o.serviceId).toLowerCase()==="s3"){await resolveParamsForS3(i)}return i};function setFeature(e,t,o){if(!e.__smithy_context){e.__smithy_context={features:{}}}else if(!e.__smithy_context.features){e.__smithy_context.features={}}e.__smithy_context.features[t]=o}function bindEndpointMiddleware(e){const t=bindGetEndpointFromInstructions(e);return({config:e,instructions:o})=>(i,a)=>async m=>{if(e.isCustomEndpoint){setFeature(a,"ENDPOINT_OVERRIDE","N")}const f=await t(m.input,{getEndpointParameterInstructions(){return o}},{...e},a);a.endpointV2=f;a.authSchemes=f.properties?.authSchemes;const h=a.authSchemes?.[0];if(h){a["signing_region"]=h.signingRegion;a["signing_service"]=h.signingName;const e=d.getSmithyContext(a);const t=e?.selectedHttpAuthScheme?.httpAuthOption;if(t){t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:h.signingRegion,signingRegion:h.signingRegion,signing_service:h.signingName,signingName:h.signingName,signingRegionSet:h.signingRegionSet},h.properties)}}return i({...m})}}const U={name:"serializerMiddleware"};const j={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:true,relation:"before",toMiddleware:U.name};function bindGetEndpointPlugin(e){const t=bindEndpointMiddleware(e);return(e,o)=>({applyToStack:i=>{i.addRelativeTo(t({config:e,instructions:o}),j)}})}function bindResolveEndpointConfig(e){return t=>{const o=t.tls??true;const{endpoint:i,useDualstackEndpoint:a,useFipsEndpoint:m}=t;const f=i!=null?async()=>toEndpointV1(await d.normalizeProvider(i)()):undefined;const h=!!i;const P=Object.assign(t,{endpoint:f,tls:o,isCustomEndpoint:h,useDualstackEndpoint:d.normalizeProvider(a??false),useFipsEndpoint:d.normalizeProvider(m??false)});let _=undefined;P.serviceConfiguredEndpoint=async()=>{if(t.serviceId&&!_){_=e(t.serviceId)}return _};return P}}class BinaryDecisionDiagram{nodes;root;conditions;results;constructor(e,t,o,i){this.nodes=e;this.root=t;this.conditions=o;this.results=i}static from(e,t,o,i){return new BinaryDecisionDiagram(e,t,o,i)}}class EndpointCache{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50;if(t){this.parameters=t}}get(e,t){const o=this.hash(e);if(o===false){return t()}if(!this.data.has(o)){if(this.data.size>this.capacity+10){const e=this.data.keys();let t=0;while(true){const{value:o,done:i}=e.next();this.data.delete(o);if(i||++t>10){break}}}this.data.set(o,t())}return this.data.get(o)}size(){return this.data.size}hash(e){let t="";const{parameters:o}=this;if(o.length===0){return false}for(const i of o){const o=String(e[i]??"");if(o.includes("|;")){return false}t+=o+"|;"}return t}}class EndpointError extends Error{constructor(e){super(e);this.name="EndpointError"}}const H="endpoints";function toDebugString(e){if(typeof e!=="object"||e==null){return e}if("ref"in e){return`$${toDebugString(e.ref)}`}if("fn"in e){return`${e.fn}(${(e.argv||[]).map(toDebugString).join(", ")})`}return JSON.stringify(e,null,2)}const V={};const booleanEquals=(e,t)=>e===t;function coalesce(...e){for(const t of e){if(t!=null){return t}}return undefined}const getAttrPathList=e=>{const t=e.split(".");const o=[];for(const i of t){const t=i.indexOf("[");if(t!==-1){if(i.indexOf("]")!==i.length-1){throw new EndpointError(`Path: '${e}' does not end with ']'`)}const a=i.slice(t+1,-1);if(Number.isNaN(parseInt(a))){throw new EndpointError(`Invalid array index: '${a}' in path: '${e}'`)}if(t!==0){o.push(i.slice(0,t))}o.push(a)}else{o.push(i)}}return o};const getAttr=(e,t)=>getAttrPathList(t).reduce(((o,i)=>{if(typeof o!=="object"){throw new EndpointError(`Index '${i}' in '${t}' not found in '${JSON.stringify(e)}'`)}else if(Array.isArray(o)){const e=parseInt(i);return o[e<0?o.length+e:e]}return o[i]}),e);const isSet=e=>e!=null;const K=new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);const isValidHostLabel=(e,t=false)=>{if(!t){return K.test(e)}const o=e.split(".");for(const e of o){if(!isValidHostLabel(e)){return false}}return true};function ite(e,t,o){return e?t:o}const not=e=>!e;const W=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}$`);const isIpAddress=e=>W.test(e)||e.startsWith("[")&&e.endsWith("]");const X={[m.EndpointURLScheme.HTTP]:80,[m.EndpointURLScheme.HTTPS]:443};const parseURL=e=>{const t=(()=>{try{if(e instanceof URL){return e}if(typeof e==="object"&&"hostname"in e){const{hostname:t,port:o,protocol:i="",path:a="",query:d={}}=e;const m=new URL(`${i}//${t}${o?`:${o}`:""}${a}`);m.search=Object.entries(d).map((([e,t])=>`${e}=${t}`)).join("&");return m}return new URL(e)}catch(e){return null}})();if(!t){console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`);return null}const o=t.href;const{host:i,hostname:a,pathname:d,protocol:f,search:h}=t;if(h){return null}const P=f.slice(0,-1);if(!Object.values(m.EndpointURLScheme).includes(P)){return null}const _=isIpAddress(a);const L=o.includes(`${i}:${X[P]}`)||typeof e==="string"&&e.includes(`${i}:${X[P]}`);const U=`${i}${L?`:${X[P]}`:``}`;return{scheme:P,authority:U,path:d,normalizedPath:d.endsWith("/")?d:`${d}/`,isIp:_}};function split(e,t,o){if(o===1){return[e]}if(e===""){return[""]}const i=e.split(t);if(o===0){return i}return i.slice(0,o-1).concat(i.slice(1).join(t))}const stringEquals=(e,t)=>e===t;const substring=(e,t,o,i)=>{if(e==null||t>=o||e.length<o||/[^\u0000-\u007f]/.test(e)){return null}if(!i){return e.substring(t,o)}return e.substring(e.length-o,e.length-t)};const uriEncode=e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`));const Q={booleanEquals:booleanEquals,coalesce:coalesce,getAttr:getAttr,isSet:isSet,isValidHostLabel:isValidHostLabel,ite:ite,not:not,parseURL:parseURL,split:split,stringEquals:stringEquals,substring:substring,uriEncode:uriEncode};const evaluateTemplate=(e,t)=>{const o=[];const{referenceRecord:i,endpointParams:a}=t;let d=0;while(d<e.length){const t=e.indexOf("{",d);if(t===-1){o.push(e.slice(d));break}o.push(e.slice(d,t));const m=e.indexOf("}",t);if(m===-1){o.push(e.slice(t));break}if(e[t+1]==="{"&&e[m+1]==="}"){o.push(e.slice(t+1,m));d=m+2}const f=e.substring(t+1,m);if(f.includes("#")){const[e,t]=f.split("#");o.push(getAttr(i[e]??a[e],t))}else{o.push(i[f]??a[f])}d=m+1}return o.join("")};const getReferenceValue=({ref:e},t)=>t.referenceRecord[e]??t.endpointParams[e];const evaluateExpression=(e,t,o)=>{if(typeof e==="string"){return evaluateTemplate(e,o)}else if(e["fn"]){return Y.callFunction(e,o)}else if(e["ref"]){return getReferenceValue(e,o)}throw new EndpointError(`'${t}': ${String(e)} is not a string, function or reference.`)};const callFunction=({fn:e,argv:t},o)=>{const i=Array(t.length);for(let e=0;e<i.length;++e){const a=t[e];if(typeof a==="boolean"||typeof a==="number"){i[e]=a}else{i[e]=Y.evaluateExpression(a,"arg",o)}}const a=e.indexOf(".");if(a!==-1){const t=V[e.slice(0,a)];const o=t?.[e.slice(a+1)];if(typeof o==="function"){return o(...i)}}const d=Q[e];if(typeof d==="function"){return d(...i)}throw new Error(`function ${e} not loaded in endpointFunctions.`)};const Y={evaluateExpression:evaluateExpression,callFunction:callFunction};const evaluateCondition=(e,t)=>{const{assign:o}=e;if(o&&o in t.referenceRecord){throw new EndpointError(`'${o}' is already defined in Reference Record.`)}const i=callFunction(e,t);t.logger?.debug?.(`${H} evaluateCondition: ${toDebugString(e)} = ${toDebugString(i)}`);const a=i===""?true:!!i;if(o!=null){return{result:a,toAssign:{name:o,value:i}}}return{result:a}};const getEndpointHeaders=(e,t)=>Object.entries(e??{}).reduce(((e,[o,i])=>{e[o]=i.map((e=>{const i=evaluateExpression(e,"Header value entry",t);if(typeof i!=="string"){throw new EndpointError(`Header '${o}' value '${i}' is not a string`)}return i}));return e}),{});const getEndpointProperties=(e,t)=>Object.entries(e).reduce(((e,[o,i])=>{e[o]=J.getEndpointProperty(i,t);return e}),{});const getEndpointProperty=(e,t)=>{if(Array.isArray(e)){return e.map((e=>getEndpointProperty(e,t)))}switch(typeof e){case"string":return evaluateTemplate(e,t);case"object":if(e===null){throw new EndpointError(`Unexpected endpoint property: ${e}`)}return J.getEndpointProperties(e,t);case"boolean":return e;default:throw new EndpointError(`Unexpected endpoint property type: ${typeof e}`)}};const J={getEndpointProperty:getEndpointProperty,getEndpointProperties:getEndpointProperties};const getEndpointUrl=(e,t)=>{const o=evaluateExpression(e,"Endpoint URL",t);if(typeof o==="string"){try{return new URL(o)}catch(e){console.error(`Failed to construct URL with ${o}`,e);throw e}}throw new EndpointError(`Endpoint URL must be a string, got ${typeof o}`)};const Z=1e8;const decideEndpoint=(e,t)=>{const{nodes:o,root:i,results:a,conditions:d}=e;let m=i;const f={};const h={referenceRecord:f,endpointParams:t.endpointParams,logger:t.logger};while(m!==1&&m!==-1&&m<Z){const e=3*(Math.abs(m)-1);const[t,i,a]=[o[e],o[e+1],o[e+2]];const[P,_,L]=d[t];const U=evaluateCondition({fn:P,assign:L,argv:_},h);if(U.toAssign){const{name:e,value:t}=U.toAssign;f[e]=t}m=m>=0===U.result?i:a}if(m>=Z){const e=a[m-Z];if(e[0]===-1){const[,t]=e;throw new EndpointError(evaluateExpression(t,"Error",h))}const[t,o,i]=e;return{url:getEndpointUrl(t,h),properties:getEndpointProperties(o,h),headers:getEndpointHeaders(i??{},h)}}throw new EndpointError(`No matching endpoint.`)};const evaluateConditions=(e=[],t)=>{const o={};const i={...t,referenceRecord:{...t.referenceRecord}};let a=false;for(const d of e){const{result:e,toAssign:m}=evaluateCondition(d,i);if(!e){return{result:e}}if(m){a=true;o[m.name]=m.value;i.referenceRecord[m.name]=m.value;t.logger?.debug?.(`${H} assign: ${m.name} := ${toDebugString(m.value)}`)}}if(a){return{result:true,referenceRecord:o}}return{result:true}};const evaluateEndpointRule=(e,t)=>{const{conditions:o,endpoint:i}=e;const{result:a,referenceRecord:d}=evaluateConditions(o,t);if(!a){return}const m=d?{...t,referenceRecord:{...t.referenceRecord,...d}}:t;const{url:f,properties:h,headers:P}=i;t.logger?.debug?.(`${H} Resolving endpoint from template: ${toDebugString(i)}`);const _={url:getEndpointUrl(f,m)};if(P!=null){_.headers=getEndpointHeaders(P,m)}if(h!=null){_.properties=getEndpointProperties(h,m)}return _};const evaluateErrorRule=(e,t)=>{const{conditions:o,error:i}=e;const{result:a,referenceRecord:d}=evaluateConditions(o,t);if(!a){return}const m=d?{...t,referenceRecord:{...t.referenceRecord,...d}}:t;throw new EndpointError(evaluateExpression(i,"Error",m))};const evaluateRules=(e,t)=>{for(const o of e){if(o.type==="endpoint"){const e=evaluateEndpointRule(o,t);if(e){return e}}else if(o.type==="error"){evaluateErrorRule(o,t)}else if(o.type==="tree"){const e=ee.evaluateTreeRule(o,t);if(e){return e}}else{throw new EndpointError(`Unknown endpoint rule: ${o}`)}}throw new EndpointError(`Rules evaluation failed`)};const evaluateTreeRule=(e,t)=>{const{conditions:o,rules:i}=e;const{result:a,referenceRecord:d}=evaluateConditions(o,t);if(!a){return}const m=d?{...t,referenceRecord:{...t.referenceRecord,...d}}:t;return ee.evaluateRules(i,m)};const ee={evaluateRules:evaluateRules,evaluateTreeRule:evaluateTreeRule};const resolveEndpoint=(e,t)=>{const{endpointParams:o,logger:i}=t;const{parameters:a,rules:d}=e;t.logger?.debug?.(`${H} Initial EndpointParams: ${toDebugString(o)}`);for(const e in a){const t=a[e];const i=o[e];if(i==null&&t.default!=null){o[e]=t.default;continue}if(t.required&&i==null){throw new EndpointError(`Missing required parameter: '${e}'`)}}const m=evaluateRules(d,{endpointParams:o,logger:i,referenceRecord:{}});t.logger?.debug?.(`${H} Resolved endpoint: ${toDebugString(m)}`);return m};const resolveEndpointRequiredConfig=e=>{const{endpoint:t}=e;if(t===undefined){e.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}}return e};const te=bindGetEndpointFromInstructions(getEndpointFromConfig);const ne=bindResolveEndpointConfig(getEndpointFromConfig);const re=bindEndpointMiddleware(getEndpointFromConfig);const oe=bindGetEndpointPlugin(getEndpointFromConfig);t.BinaryDecisionDiagram=BinaryDecisionDiagram;t.EndpointCache=EndpointCache;t.EndpointError=EndpointError;t.customEndpointFunctions=V;t.decideEndpoint=decideEndpoint;t.endpointMiddleware=re;t.endpointMiddlewareOptions=j;t.getEndpointFromInstructions=te;t.getEndpointPlugin=oe;t.isIpAddress=isIpAddress;t.isValidHostLabel=isValidHostLabel;t.middlewareEndpointToEndpointV1=toEndpointV1;t.resolveEndpoint=resolveEndpoint;t.resolveEndpointConfig=ne;t.resolveEndpointRequiredConfig=resolveEndpointRequiredConfig;t.resolveParams=resolveParams;t.toEndpointV1=toEndpointV1},56579:(e,t,o)=>{"use strict";var i=o(62110);var a=o(92430);var d=o(57075);class Int64{bytes;constructor(e){this.bytes=e;if(e.byteLength!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000){throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`)}const t=new Uint8Array(8);for(let o=7,i=Math.abs(Math.round(e));o>-1&&i>0;o--,i/=256){t[o]=i}if(e<0){negate(t)}return new Int64(t)}valueOf(){const e=this.bytes.slice(0);const t=e[0]&128;if(t){negate(e)}return parseInt(a.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function negate(e){for(let t=0;t<8;t++){e[t]^=255}for(let t=7;t>-1;t--){e[t]++;if(e[t]!==0)break}}class HeaderMarshaller{toUtf8;fromUtf8;constructor(e,t){this.toUtf8=e;this.fromUtf8=t}format(e){const t=[];for(const o of Object.keys(e)){const i=this.fromUtf8(o);t.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[o]))}const o=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let i=0;for(const e of t){o.set(e,i);i+=e.byteLength}return o}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));t.setUint8(0,3);t.setInt16(1,e.value,false);return new Uint8Array(t.buffer);case"integer":const o=new DataView(new ArrayBuffer(5));o.setUint8(0,4);o.setInt32(1,e.value,false);return new Uint8Array(o.buffer);case"long":const i=new Uint8Array(9);i[0]=5;i.set(e.value.bytes,1);return i;case"binary":const d=new DataView(new ArrayBuffer(3+e.value.byteLength));d.setUint8(0,6);d.setUint16(1,e.value.byteLength,false);const m=new Uint8Array(d.buffer);m.set(e.value,3);return m;case"string":const f=this.fromUtf8(e.value);const h=new DataView(new ArrayBuffer(3+f.byteLength));h.setUint8(0,7);h.setUint16(1,f.byteLength,false);const P=new Uint8Array(h.buffer);P.set(f,3);return P;case"timestamp":const _=new Uint8Array(9);_[0]=8;_.set(Int64.fromNumber(e.value.valueOf()).bytes,1);return _;case"uuid":if(!K.test(e.value)){throw new Error(`Invalid UUID received: ${e.value}`)}const L=new Uint8Array(17);L[0]=9;L.set(a.fromHex(e.value.replace(/\-/g,"")),1);return L}}parse(e){const t={};let o=0;while(o<e.byteLength){const i=e.getUint8(o++);const d=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+o,i));o+=i;switch(e.getUint8(o++)){case 0:t[d]={type:f,value:true};break;case 1:t[d]={type:f,value:false};break;case 2:t[d]={type:h,value:e.getInt8(o++)};break;case 3:t[d]={type:P,value:e.getInt16(o,false)};o+=2;break;case 4:t[d]={type:_,value:e.getInt32(o,false)};o+=4;break;case 5:t[d]={type:L,value:new Int64(new Uint8Array(e.buffer,e.byteOffset+o,8))};o+=8;break;case 6:const i=e.getUint16(o,false);o+=2;t[d]={type:U,value:new Uint8Array(e.buffer,e.byteOffset+o,i)};o+=i;break;case 7:const m=e.getUint16(o,false);o+=2;t[d]={type:j,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+o,m))};o+=m;break;case 8:t[d]={type:H,value:new Date(new Int64(new Uint8Array(e.buffer,e.byteOffset+o,8)).valueOf())};o+=8;break;case 9:const K=new Uint8Array(e.buffer,e.byteOffset+o,16);o+=16;t[d]={type:V,value:`${a.toHex(K.subarray(0,4))}-${a.toHex(K.subarray(4,6))}-${a.toHex(K.subarray(6,8))}-${a.toHex(K.subarray(8,10))}-${a.toHex(K.subarray(10))}`};break;default:throw new Error(`Unrecognized header type tag`)}}return t}}var m;(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"})(m||(m={}));const f="boolean";const h="byte";const P="short";const _="integer";const L="long";const U="binary";const j="string";const H="timestamp";const V="uuid";const K=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;const W=4;const X=W*2;const Q=4;const Y=X+Q*2;function splitMessage({byteLength:e,byteOffset:t,buffer:o}){if(e<Y){throw new Error("Provided message too short to accommodate event stream message overhead")}const a=new DataView(o,t,e);const d=a.getUint32(0,false);if(e!==d){throw new Error("Reported message length does not match received message length")}const m=a.getUint32(W,false);const f=a.getUint32(X,false);const h=a.getUint32(e-Q,false);const P=(new i.Crc32).update(new Uint8Array(o,t,X));if(f!==P.digest()){throw new Error(`The prelude checksum specified in the message (${f}) does not match the calculated CRC32 checksum (${P.digest()})`)}P.update(new Uint8Array(o,t+X,e-(X+Q)));if(h!==P.digest()){throw new Error(`The message checksum (${P.digest()}) did not match the expected value of ${h}`)}return{headers:new DataView(o,t+X+Q,m),body:new Uint8Array(o,t+X+Q+m,d-m-(X+Q+Q))}}class EventStreamCodec{headerMarshaller;messageBuffer;isEndOfStream;constructor(e,t){this.headerMarshaller=new HeaderMarshaller(e,t);this.messageBuffer=[];this.isEndOfStream=false}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=true}getMessage(){const e=this.messageBuffer.pop();const t=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return t}}}getAvailableMessages(){const e=this.messageBuffer;this.messageBuffer=[];const t=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return t}}}encode({headers:e,body:t}){const o=this.headerMarshaller.format(e);const a=o.byteLength+t.byteLength+16;const d=new Uint8Array(a);const m=new DataView(d.buffer,d.byteOffset,d.byteLength);const f=new i.Crc32;m.setUint32(0,a,false);m.setUint32(4,o.byteLength,false);m.setUint32(8,f.update(d.subarray(0,8)).digest(),false);d.set(o,12);d.set(t,o.byteLength+12);m.setUint32(a-4,f.update(d.subarray(8,a-4)).digest(),false);return d}decode(e){const{headers:t,body:o}=splitMessage(e);return{headers:this.headerMarshaller.parse(t),body:o}}formatHeaders(e){return this.headerMarshaller.format(e)}}class MessageDecoderStream{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.decoder.decode(e);yield t}}}class MessageEncoderStream{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=this.options.encoder.encode(e);yield t}if(this.options.includeEndFrame){yield new Uint8Array(0)}}}class SmithyMessageDecoderStream{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=await this.options.deserializer(e);if(t===undefined)continue;yield t}}}class SmithyMessageEncoderStream{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.serializer(e);yield t}}}function getChunkedStream(e){let t=0;let o=0;let i=null;let a=null;const allocateMessage=e=>{if(typeof e!=="number"){throw new Error("Attempted to allocate an event message where size was not a number: "+e)}t=e;o=4;i=new Uint8Array(e);const a=new DataView(i.buffer);a.setUint32(0,e,false)};const iterator=async function*(){const d=e[Symbol.asyncIterator]();while(true){const{value:e,done:m}=await d.next();if(m){if(!t){return}else if(t===o){yield i}else{throw new Error("Truncated event message received.")}return}const f=e.length;let h=0;while(h<f){if(!i){const t=f-h;if(!a){a=new Uint8Array(4)}const i=Math.min(4-o,t);a.set(e.slice(h,h+i),o);o+=i;h+=i;if(o<4){break}allocateMessage(new DataView(a.buffer).getUint32(0,false));a=null}const d=Math.min(t-o,f-h);i.set(e.slice(h,h+d),o);o+=d;h+=d;if(t&&t===o){yield i;i=null;t=0;o=0}}}};return{[Symbol.asyncIterator]:iterator}}function getUnmarshalledStream(e,t){const o=getMessageUnmarshaller(t.deserializer,t.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(const i of e){const e=t.eventStreamCodec.decode(i);const a=await o(e);if(a===undefined)continue;yield a}}}}function getMessageUnmarshaller(e,t){return async function(o){const{value:i}=o.headers[":message-type"];if(i==="error"){const e=new Error(o.headers[":error-message"].value||"UnknownError");e.name=o.headers[":error-code"].value;throw e}else if(i==="exception"){const i=o.headers[":exception-type"].value;const a={[i]:o};const d=await e(a);if(d.$unknown){const e=new Error(t(o.body));e.name=i;throw e}throw d[i]}else if(i==="event"){const t={[o.headers[":event-type"].value]:o};const i=await e(t);if(i.$unknown)return;return i}else{throw Error(`Unrecognizable event type: ${o.headers[":event-type"].value}`)}}}let J=class EventStreamMarshaller{eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:t}){this.eventStreamCodec=new EventStreamCodec(e,t);this.utfEncoder=e}deserialize(e,t){const o=getChunkedStream(e);return new SmithyMessageDecoderStream({messageStream:new MessageDecoderStream({inputStream:o,decoder:this.eventStreamCodec}),deserializer:getMessageUnmarshaller(t,this.utfEncoder)})}serialize(e,t){return new MessageEncoderStream({messageStream:new SmithyMessageEncoderStream({inputStream:e,serializer:t}),encoder:this.eventStreamCodec,includeEndFrame:true})}};const eventStreamSerdeProvider$1=e=>new J(e);class EventStreamMarshaller{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new J({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){const o=typeof e[Symbol.asyncIterator]==="function"?e:readableToIterable(e);return this.universalMarshaller.deserialize(o,t)}serialize(e,t){return d.Readable.from(this.universalMarshaller.serialize(e,t))}}const eventStreamSerdeProvider=e=>new EventStreamMarshaller(e);async function*readableToIterable(e){let t=false;let o=false;const i=new Array;e.on("error",(e=>{if(!t){t=true}if(e){throw e}}));e.on("data",(e=>{i.push(e)}));e.on("end",(()=>{t=true}));while(!o){const e=await new Promise((e=>setTimeout((()=>e(i.shift())),0)));if(e){yield e}o=t&&i.length===0}}const readableStreamToIterable=e=>({[Symbol.asyncIterator]:async function*(){const t=e.getReader();try{while(true){const{done:e,value:o}=await t.read();if(e)return;yield o}}finally{t.releaseLock()}}});const iterableToReadableStream=e=>{const t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(e){const{done:o,value:i}=await t.next();if(o){return e.close()}e.enqueue(i)}})};const resolveEventStreamSerdeConfig=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)});class EventStreamSerde{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:e,serializer:t,deserializer:o,serdeContext:i,defaultContentType:a}){this.marshaller=e;this.serializer=t;this.deserializer=o;this.serdeContext=i;this.defaultContentType=a}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:o}){const i=this.marshaller;const a=t.getEventStreamMember();const d=t.getMemberSchema(a);const m=this.serializer;const f=this.defaultContentType;const h=Symbol("initialRequestMarker");const P={async*[Symbol.asyncIterator](){if(o){const e={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:f}};m.write(t,o);const i=m.flush();yield{[h]:true,headers:e,body:i}}for await(const t of e){yield t}}};return i.serialize(P,(e=>{if(e[h]){return{headers:e.headers,body:e.body}}let t="";for(const o in e){if(o!=="__type"){t=o;break}}const{additionalHeaders:o,body:i,eventType:a,explicitPayloadContentType:m}=this.writeEventBody(t,d,e);const P={":event-type":{type:"string",value:a},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:m??f},...o};return{headers:P,body:i}}))}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:o}){const i=this.marshaller;const d=t.getEventStreamMember();const m=t.getMemberSchema(d);const f=m.getMemberSchemas();const h=Symbol("initialResponseMarker");const P=i.deserialize(e.body,(async e=>{let o="";for(const t in e){if(t!=="__type"){o=t;break}}const i=e[o].body;if(o==="initial-response"){const e=await this.deserializer.read(t,i);delete e[d];return{[h]:true,...e}}else if(o in f){const t=f[o];if(t.isStructSchema()){const d={};let m=false;for(const[f,h]of t.structIterator()){const{eventHeader:t,eventPayload:P}=h.getMergedTraits();m=m||Boolean(t||P);if(P){if(h.isBlobSchema()){d[f]=i}else if(h.isStringSchema()){d[f]=(this.serdeContext?.utf8Encoder??a.toUtf8)(i)}else if(h.isStructSchema()){d[f]=await this.deserializer.read(h,i)}}else if(t){const t=e[o].headers[f]?.value;if(t!=null){if(h.isNumericSchema()){if(t&&typeof t==="object"&&"bytes"in t){d[f]=BigInt(t.toString())}else{d[f]=Number(t)}}else{d[f]=t}}}}if(m){return{[o]:d}}if(i.byteLength===0){return{[o]:{}}}}return{[o]:await this.deserializer.read(t,i)}}else{return{$unknown:e}}}));const _=P[Symbol.asyncIterator]();const L=await _.next();if(L.done){return P}if(L.value?.[h]){if(!t){throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.")}for(const e in L.value){o[e]=L.value[e]}}return{async*[Symbol.asyncIterator](){if(!L?.value?.[h]){yield L.value}while(true){const{done:e,value:t}=await _.next();if(e){break}yield t}}}}writeEventBody(e,t,o){const i=this.serializer;let d=e;let m=null;let f;const h=(()=>{const o=t.getSchema();return o[4].includes(e)})();const P={};if(!h){const[t,a]=o[e];d=t;i.write(15,a)}else{const a=t.getMemberSchema(e);if(a.isStructSchema()){for(const[t,i]of a.structIterator()){const{eventHeader:a,eventPayload:d}=i.getMergedTraits();if(d){m=t}else if(a){const a=o[e][t];let d="binary";if(i.isNumericSchema()){if((-2)**31<=a&&a<=2**31-1){d="integer"}else{d="long"}}else if(i.isTimestampSchema()){d="timestamp"}else if(i.isStringSchema()){d="string"}else if(i.isBooleanSchema()){d="boolean"}if(a!=null){P[t]={type:d,value:a};delete o[e][t]}}}if(m!==null){const t=a.getMemberSchema(m);if(t.isBlobSchema()){f="application/octet-stream"}else if(t.isStringSchema()){f="text/plain"}i.write(t,o[e][m])}else{i.write(a,o[e])}}else if(a.isUnitSchema()){i.write(a,{})}else{throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}}const _=i.flush()??new Uint8Array;const L=typeof _==="string"?(this.serdeContext?.utf8Decoder??a.fromUtf8)(_):_;return{body:L,eventType:d,explicitPayloadContentType:f,additionalHeaders:P}}}t.EventStreamCodec=EventStreamCodec;t.EventStreamMarshaller=EventStreamMarshaller;t.EventStreamSerde=EventStreamSerde;t.HeaderMarshaller=HeaderMarshaller;t.Int64=Int64;t.MessageDecoderStream=MessageDecoderStream;t.MessageEncoderStream=MessageEncoderStream;t.SmithyMessageDecoderStream=SmithyMessageDecoderStream;t.SmithyMessageEncoderStream=SmithyMessageEncoderStream;t.UniversalEventStreamMarshaller=J;t.eventStreamSerdeProvider=eventStreamSerdeProvider;t.getChunkedStream=getChunkedStream;t.getMessageUnmarshaller=getMessageUnmarshaller;t.getUnmarshalledStream=getUnmarshalledStream;t.iterableToReadableStream=iterableToReadableStream;t.readableStreamToIterable=readableStreamToIterable;t.resolveEventStreamSerdeConfig=resolveEventStreamSerdeConfig;t.universalEventStreamSerdeProvider=eventStreamSerdeProvider$1},93422:(e,t,o)=>{"use strict";var i=o(92430);var a=o(26890);var d=o(90690);const collectBody=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return i.Uint8ArrayBlobAdapter.mutate(e)}if(!e){return i.Uint8ArrayBlobAdapter.mutate(new Uint8Array)}const o=t.streamCollector(e);return i.Uint8ArrayBlobAdapter.mutate(await o)};function extendedEncodeURIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}class SerdeContext{serdeContext;setSerdeContext(e){this.serdeContext=e}}class HttpRequest{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET";this.hostname=e.hostname||"localhost";this.port=e.port;this.query=e.query||{};this.headers=e.headers||{};this.body=e.body;this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:";this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/";this.username=e.username;this.password=e.password;this.fragment=e.fragment}static clone(e){const t=new HttpRequest({...e,headers:{...e.headers}});if(t.query){t.query=cloneQuery(t.query)}return t}static isInstance(e){if(!e){return false}const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t["query"]==="object"&&typeof t["headers"]==="object"}clone(){return HttpRequest.clone(this)}}function cloneQuery(e){return Object.keys(e).reduce(((t,o)=>{const i=e[o];return{...t,[o]:Array.isArray(i)?[...i]:i}}),{})}class HttpResponse{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode;this.reason=e.reason;this.headers=e.headers||{};this.body=e.body}static isInstance(e){if(!e)return false;const t=e;return typeof t.statusCode==="number"&&typeof t.headers==="object"}}class HttpProtocol extends SerdeContext{options;compositeErrorRegistry;constructor(e){super();this.options=e;this.compositeErrorRegistry=a.TypeRegistry.for(e.defaultNamespace);for(const t of e.errorTypeRegistries??[]){this.compositeErrorRegistry.copyFrom(t)}}getRequestType(){return HttpRequest}getResponseType(){return HttpResponse}setSerdeContext(e){this.serdeContext=e;this.serializer.setSerdeContext(e);this.deserializer.setSerdeContext(e);if(this.getPayloadCodec()){this.getPayloadCodec().setSerdeContext(e)}}updateServiceEndpoint(e,t){if("url"in t){e.protocol=t.url.protocol;e.hostname=t.url.hostname;e.port=t.url.port?Number(t.url.port):undefined;e.path=t.url.pathname;e.fragment=t.url.hash||void 0;e.username=t.url.username||void 0;e.password=t.url.password||void 0;if(!e.query){e.query={}}for(const[o,i]of t.url.searchParams.entries()){e.query[o]=i}if(t.headers){for(const o in t.headers){e.headers[o]=t.headers[o].join(", ")}}return e}else{e.protocol=t.protocol;e.hostname=t.hostname;e.port=t.port?Number(t.port):undefined;e.path=t.path;e.query={...t.query};if(t.headers){for(const o in t.headers){e.headers[o]=t.headers[o]}}return e}}setHostPrefix(e,t,o){if(this.serdeContext?.disableHostPrefix){return}const i=a.NormalizedSchema.of(t.input);const d=a.translateTraits(t.traits??{});if(d.endpoint){let t=d.endpoint?.[0];if(typeof t==="string"){for(const[e,a]of i.structIterator()){if(!a.getMergedTraits().hostLabel){continue}const i=o[e];if(typeof i!=="string"){throw new Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`)}t=t.replace(`{${e}}`,i)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{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"]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:o}){const i=await this.loadEventStreamCapability();return i.serializeEventStream({eventStream:e,requestSchema:t,initialRequest:o})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:o}){const i=await this.loadEventStreamCapability();return i.deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:o})}async loadEventStreamCapability(){const{EventStreamSerde:e}=await Promise.resolve().then(o.t.bind(o,56579,19));return new e({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(e,t,o,i,a){return[]}getEventStreamMarshaller(){const e=this.serdeContext;if(!e.eventStreamMarshaller){throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.")}return e.eventStreamMarshaller}}class HttpBindingProtocol extends HttpProtocol{async serializeRequest(e,t,o){const i=t&&typeof t==="object"?t:{};const d=this.serializer;const m={};const f={};const h=await o.endpoint();const P=a.NormalizedSchema.of(e?.input);const _=[];const L=[];let U=false;let j;const H=new HttpRequest({protocol:"",hostname:"",port:undefined,path:"",fragment:undefined,query:m,headers:f,body:undefined});if(h){this.updateServiceEndpoint(H,h);this.setHostPrefix(H,e,i);const t=a.translateTraits(e.traits);if(t.http){H.method=t.http[0];const[e,o]=t.http[1].split("?");if(H.path=="/"){H.path=e}else{H.path+=e}const i=new URLSearchParams(o??"");for(const[e,t]of i){m[e]=t}}}for(const[e,t]of P.structIterator()){const o=t.getMergedTraits()??{};const a=i[e];if(a==null&&!t.isIdempotencyToken()){if(o.httpLabel){if(H.path.includes(`{${e}+}`)||H.path.includes(`{${e}}`)){throw new Error(`No value provided for input HTTP label: ${e}.`)}}continue}if(o.httpPayload){const o=t.isStreaming();if(o){const o=t.isStructSchema();if(o){if(i[e]){j=await this.serializeEventStream({eventStream:i[e],requestSchema:P})}}else{j=a}}else{d.write(t,a);j=d.flush()}}else if(o.httpLabel){d.write(t,a);const o=d.flush();if(H.path.includes(`{${e}+}`)){H.path=H.path.replace(`{${e}+}`,o.split("/").map(extendedEncodeURIComponent).join("/"))}else if(H.path.includes(`{${e}}`)){H.path=H.path.replace(`{${e}}`,extendedEncodeURIComponent(o))}}else if(o.httpHeader){d.write(t,a);f[o.httpHeader.toLowerCase()]=String(d.flush())}else if(typeof o.httpPrefixHeaders==="string"){for(const e in a){const i=a[e];const m=o.httpPrefixHeaders+e;d.write([t.getValueSchema(),{httpHeader:m}],i);f[m.toLowerCase()]=d.flush()}}else if(o.httpQuery||o.httpQueryParams){this.serializeQuery(t,a,m)}else{U=true;_.push(e);L.push(t)}}if(U&&i){const[e,t]=(P.getName(true)??"#Unknown").split("#");const o=P.getSchema()[6];const a=[3,e,t,P.getMergedTraits(),_,L,undefined];if(o){a[6]=o}else{a.pop()}d.write(a,i);j=d.flush()}H.headers=f;H.query=m;H.body=j;return H}serializeQuery(e,t,o){const i=this.serializer;const a=e.getMergedTraits();if(a.httpQueryParams){for(const i in t){if(!(i in o)){const d=t[i];const m=e.getValueSchema();Object.assign(m.getMergedTraits(),{...a,httpQuery:i,httpQueryParams:undefined});this.serializeQuery(m,d,o)}}return}if(e.isListSchema()){const d=!!e.getMergedTraits().sparse;const m=[];for(const o of t){i.write([e.getValueSchema(),a],o);const t=i.flush();if(d||t!==undefined){m.push(t)}}o[a.httpQuery]=m}else{i.write([e,a],t);o[a.httpQuery]=i.flush()}}async deserializeResponse(e,t,o){const i=this.deserializer;const d=a.NormalizedSchema.of(e.output);const m={};if(o.statusCode>=300){const a=await collectBody(o.body,t);if(a.byteLength>0){Object.assign(m,await i.read(15,a))}await this.handleError(e,t,o,m,this.deserializeMetadata(o));throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const e in o.headers){const t=o.headers[e];delete o.headers[e];o.headers[e.toLowerCase()]=t}const f=await this.deserializeHttpMessage(d,t,o,m);if(f.length){const e=await collectBody(o.body,t);if(e.byteLength>0){const t=await i.read(d,e);for(const e of f){if(t[e]!=null){m[e]=t[e]}}}}else if(f.discardResponseBody){await collectBody(o.body,t)}m.$metadata=this.deserializeMetadata(o);return m}async deserializeHttpMessage(e,t,o,d,m){let f;if(d instanceof Set){f=m}else{f=d}let h=true;const P=this.deserializer;const _=a.NormalizedSchema.of(e);const L=[];for(const[e,a]of _.structIterator()){const d=a.getMemberTraits();if(d.httpPayload){h=false;const d=a.isStreaming();if(d){const t=a.isStructSchema();if(t){f[e]=await this.deserializeEventStream({response:o,responseSchema:_})}else{f[e]=i.sdkStreamMixin(o.body)}}else if(o.body){const i=await collectBody(o.body,t);if(i.byteLength>0){f[e]=await P.read(a,i)}}}else if(d.httpHeader){const t=String(d.httpHeader).toLowerCase();const m=o.headers[t];if(null!=m){if(a.isListSchema()){const o=a.getValueSchema();o.getMergedTraits().httpHeader=t;let d;if(o.isTimestampSchema()&&o.getSchema()===4){d=i.splitEvery(m,",",2)}else{d=i.splitHeader(m)}const h=[];for(const e of d){h.push(await P.read(o,e.trim()))}f[e]=h}else{f[e]=await P.read(a,m)}}}else if(d.httpPrefixHeaders!==undefined){f[e]={};for(const t in o.headers){if(t.startsWith(d.httpPrefixHeaders)){const i=o.headers[t];const m=a.getValueSchema();m.getMergedTraits().httpHeader=t;f[e][t.slice(d.httpPrefixHeaders.length)]=await P.read(m,i)}}}else if(d.httpResponseCode){f[e]=o.statusCode}else{L.push(e)}}L.discardResponseBody=h;return L}}class RpcProtocol extends HttpProtocol{async serializeRequest(e,t,o){const i=this.serializer;const d={};const m={};const f=await o.endpoint();const h=a.NormalizedSchema.of(e?.input);const P=h.getSchema();let _;const L=t&&typeof t==="object"?t:{};const U=new HttpRequest({protocol:"",hostname:"",port:undefined,path:"/",fragment:undefined,query:d,headers:m,body:undefined});if(f){this.updateServiceEndpoint(U,f);this.setHostPrefix(U,e,L)}if(L){const e=h.getEventStreamMember();if(e){if(L[e]){const t={};for(const[o,a]of h.structIterator()){if(o!==e&&L[o]){i.write(a,L[o]);t[o]=i.flush()}}_=await this.serializeEventStream({eventStream:L[e],requestSchema:h,initialRequest:t})}}else{i.write(P,L);_=i.flush()}}U.headers=Object.assign(U.headers,m);U.query=d;U.body=_;U.method="POST";return U}async deserializeResponse(e,t,o){const i=this.deserializer;const d=a.NormalizedSchema.of(e.output);const m={};if(o.statusCode>=300){const a=await collectBody(o.body,t);if(a.byteLength>0){Object.assign(m,await i.read(15,a))}await this.handleError(e,t,o,m,this.deserializeMetadata(o));throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const e in o.headers){const t=o.headers[e];delete o.headers[e];o.headers[e.toLowerCase()]=t}const f=d.getEventStreamMember();if(f){m[f]=await this.deserializeEventStream({response:o,responseSchema:d,initialResponseContainer:m})}else{const e=await collectBody(o.body,t);if(e.byteLength>0){Object.assign(m,await i.read(d,e))}}m.$metadata=this.deserializeMetadata(o);return m}}const resolvedPath=(e,t,o,i,a,d)=>{if(t!=null&&t[o]!==undefined){const t=i();if(t==null||t.length<=0){throw new Error("Empty value provided for input HTTP label: "+o+".")}e=e.replace(a,d?t.split("/").map((e=>extendedEncodeURIComponent(e))).join("/"):extendedEncodeURIComponent(t))}else{throw new Error("No value provided for input HTTP label: "+o+".")}return e};function requestBuilder(e,t){return new RequestBuilder(e,t)}class RequestBuilder{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(e,t){this.input=e;this.context=t}async build(){const{hostname:e,protocol:t="https",port:o,path:i}=await this.context.endpoint();this.path=i;for(const e of this.resolvePathStack){e(this.path)}return new HttpRequest({protocol:t,hostname:this.hostname||e,port:o,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){this.hostname=e;return this}bp(e){this.resolvePathStack.push((t=>{this.path=`${t?.endsWith("/")?t.slice(0,-1):t||""}`+e}));return this}p(e,t,o,i){this.resolvePathStack.push((a=>{this.path=resolvedPath(a,this.input,e,t,o,i)}));return this}h(e){this.headers=e;return this}q(e){this.query=e;return this}b(e){this.body=e;return this}m(e){this.method=e;return this}}function determineTimestampFormat(e,t){if(t.timestampFormat.useTrait){if(e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7)){return e.getSchema()}}const{httpLabel:o,httpPrefixHeaders:i,httpHeader:a,httpQuery:d}=e.getMergedTraits();const m=t.httpBindings?typeof i==="string"||Boolean(a)?6:Boolean(d)||Boolean(o)?5:undefined:undefined;return m??t.timestampFormat.default}class FromStringShapeDeserializer extends SerdeContext{settings;constructor(e){super();this.settings=e}read(e,t){const o=a.NormalizedSchema.of(e);if(o.isListSchema()){return i.splitHeader(t).map((e=>this.read(o.getValueSchema(),e)))}if(o.isBlobSchema()){return(this.serdeContext?.base64Decoder??i.fromBase64)(t)}if(o.isTimestampSchema()){const e=determineTimestampFormat(o,this.settings);switch(e){case 5:return i._parseRfc3339DateTimeWithOffset(t);case 6:return i._parseRfc7231DateTime(t);case 7:return i._parseEpochTimestamp(t);default:console.warn("Missing timestamp format, parsing value with Date constructor:",t);return new Date(t)}}if(o.isStringSchema()){const e=o.getMergedTraits().mediaType;let a=t;if(e){if(o.getMergedTraits().httpHeader){a=this.base64ToUtf8(a)}const t=e==="application/json"||e.endsWith("+json");if(t){a=i.LazyJsonString.from(a)}return a}}if(o.isNumericSchema()){return Number(t)}if(o.isBigIntegerSchema()){return BigInt(t)}if(o.isBigDecimalSchema()){return new i.NumericValue(t,"bigDecimal")}if(o.isBooleanSchema()){return String(t).toLowerCase()==="true"}return t}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??i.toUtf8)((this.serdeContext?.base64Decoder??i.fromBase64)(e))}}class HttpInterceptingShapeDeserializer extends SerdeContext{codecDeserializer;stringDeserializer;constructor(e,t){super();this.codecDeserializer=e;this.stringDeserializer=new FromStringShapeDeserializer(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e);this.codecDeserializer.setSerdeContext(e);this.serdeContext=e}read(e,t){const o=a.NormalizedSchema.of(e);const d=o.getMergedTraits();const m=this.serdeContext?.utf8Encoder??i.toUtf8;if(d.httpHeader||d.httpResponseCode){return this.stringDeserializer.read(o,m(t))}if(d.httpPayload){if(o.isBlobSchema()){const e=this.serdeContext?.utf8Decoder??i.fromUtf8;if(typeof t==="string"){return e(t)}return t}else if(o.isStringSchema()){if("byteLength"in t){return m(t)}return t}}return this.codecDeserializer.read(o,t)}}class ToStringShapeSerializer extends SerdeContext{settings;stringBuffer="";constructor(e){super();this.settings=e}write(e,t){const o=a.NormalizedSchema.of(e);switch(typeof t){case"object":if(t===null){this.stringBuffer="null";return}if(o.isTimestampSchema()){if(!(t instanceof Date)){throw new Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${o.getName(true)}`)}const e=determineTimestampFormat(o,this.settings);switch(e){case 5:this.stringBuffer=t.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=i.dateToUtcString(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",t);this.stringBuffer=String(t.getTime()/1e3)}return}if(o.isBlobSchema()&&"byteLength"in t){this.stringBuffer=(this.serdeContext?.base64Encoder??i.toBase64)(t);return}if(o.isListSchema()&&Array.isArray(t)){let e="";for(const a of t){this.write([o.getValueSchema(),o.getMergedTraits()],a);const t=this.flush();const d=o.getValueSchema().isTimestampSchema()?t:i.quoteHeader(t);if(e!==""){e+=", "}e+=d}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(t,null,2);break;case"string":const e=o.getMergedTraits().mediaType;let a=t;if(e){const t=e==="application/json"||e.endsWith("+json");if(t){a=i.LazyJsonString.from(a)}if(o.getMergedTraits().httpHeader){this.stringBuffer=(this.serdeContext?.base64Encoder??i.toBase64)(a.toString());return}}this.stringBuffer=t;break;default:if(o.isIdempotencyToken()){this.stringBuffer=i.generateIdempotencyToken()}else{this.stringBuffer=String(t)}}}flush(){const e=this.stringBuffer;this.stringBuffer="";return e}}class HttpInterceptingShapeSerializer{codecSerializer;stringSerializer;buffer;constructor(e,t,o=new ToStringShapeSerializer(t)){this.codecSerializer=e;this.stringSerializer=o}setSerdeContext(e){this.codecSerializer.setSerdeContext(e);this.stringSerializer.setSerdeContext(e)}write(e,t){const o=a.NormalizedSchema.of(e);const i=o.getMergedTraits();if(i.httpHeader||i.httpLabel||i.httpQuery){this.stringSerializer.write(o,t);this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(o,t)}flush(){if(this.buffer!==undefined){const e=this.buffer;this.buffer=undefined;return e}return this.codecSerializer.flush()}}class Field{name;kind;values;constructor({name:e,kind:t=d.FieldPosition.HEADER,values:o=[]}){this.name=e;this.kind=t;this.values=o}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter((t=>t!==e))}toString(){return this.values.map((e=>e.includes(",")||e.includes(" ")?`"${e}"`:e)).join(", ")}get(){return this.values}}class Fields{entries={};encoding;constructor({fields:e=[],encoding:t="utf-8"}){e.forEach(this.setField.bind(this));this.encoding=t}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter((t=>t.kind===e))}}function isValidHostname(e){const t=/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;return t.test(e)}const getHttpHandlerExtensionConfiguration=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,o){e.httpHandler?.updateHttpClientConfig(t,o)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}});const resolveHttpHandlerRuntimeConfig=e=>({httpHandler:e.httpHandler()});const m="content-length";function contentLengthMiddleware(e){return t=>async o=>{const i=o.request;if(HttpRequest.isInstance(i)){const{body:t,headers:o}=i;if(t&&Object.keys(o).map((e=>e.toLowerCase())).indexOf(m)===-1){try{const o=e(t);i.headers={...i.headers,[m]:String(o)}}catch(e){}}}return t({...o,request:i})}}const f={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:true};const getContentLengthPlugin=e=>({applyToStack:t=>{t.add(contentLengthMiddleware(e.bodyLengthChecker),f)}});const escapeUri=e=>encodeURIComponent(e).replace(/[!'()*]/g,hexEncode);const hexEncode=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;const escapeUriPath=e=>e.split("/").map(escapeUri).join("/");function buildQueryString(e){const t=[];for(let o of Object.keys(e).sort()){const i=e[o];o=escapeUri(o);if(Array.isArray(i)){for(let e=0,a=i.length;e<a;e++){t.push(`${o}=${escapeUri(i[e])}`)}}else{let e=o;if(i||typeof i==="string"){e+=`=${escapeUri(i)}`}t.push(e)}}return t.join("&")}function parseQueryString(e){const t={};e=e.replace(/^\?/,"");if(e){for(const o of e.split("&")){let[e,i=null]=o.split("=");e=decodeURIComponent(e);if(i){i=decodeURIComponent(i)}if(!(e in t)){t[e]=i}else if(Array.isArray(t[e])){t[e].push(i)}else{t[e]=[t[e],i]}}}return t}const parseUrl=e=>{if(typeof e==="string"){return parseUrl(new URL(e))}const{hostname:t,pathname:o,port:i,protocol:a,search:d}=e;let m;if(d){m=parseQueryString(d)}return{hostname:t,port:i?parseInt(i):undefined,protocol:a,path:o,query:m}};t.Field=Field;t.Fields=Fields;t.FromStringShapeDeserializer=FromStringShapeDeserializer;t.HttpBindingProtocol=HttpBindingProtocol;t.HttpInterceptingShapeDeserializer=HttpInterceptingShapeDeserializer;t.HttpInterceptingShapeSerializer=HttpInterceptingShapeSerializer;t.HttpProtocol=HttpProtocol;t.HttpRequest=HttpRequest;t.HttpResponse=HttpResponse;t.RequestBuilder=RequestBuilder;t.RpcProtocol=RpcProtocol;t.SerdeContext=SerdeContext;t.ToStringShapeSerializer=ToStringShapeSerializer;t.buildQueryString=buildQueryString;t.collectBody=collectBody;t.contentLengthMiddleware=contentLengthMiddleware;t.contentLengthMiddlewareOptions=f;t.determineTimestampFormat=determineTimestampFormat;t.escapeUri=escapeUri;t.escapeUriPath=escapeUriPath;t.extendedEncodeURIComponent=extendedEncodeURIComponent;t.getContentLengthPlugin=getContentLengthPlugin;t.getHttpHandlerExtensionConfiguration=getHttpHandlerExtensionConfiguration;t.isValidHostname=isValidHostname;t.parseQueryString=parseQueryString;t.parseUrl=parseUrl;t.requestBuilder=requestBuilder;t.resolveHttpHandlerRuntimeConfig=resolveHttpHandlerRuntimeConfig;t.resolvedPath=resolvedPath},23609:(e,t,o)=>{"use strict";var i=o(57075);var a=o(92658);var d=o(93422);var m=o(92430);const isStreamingPayload=e=>e?.body instanceof i.Readable||typeof ReadableStream!=="undefined"&&e?.body instanceof ReadableStream;const f=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];const h=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];const P=["TimeoutError","RequestTimeout","RequestTimeoutException"];const _=[500,502,503,504];const L=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];const U=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"];const isRetryableByTrait=e=>e?.$retryable!==undefined;const isClockSkewError=e=>f.includes(e.name);const isClockSkewCorrectedError=e=>e.$metadata?.clockSkewCorrected;const isBrowserNetworkError=e=>{const t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);const o=e&&e instanceof TypeError;if(!o){return false}return t.has(e.message)};const isThrottlingError=e=>e.$metadata?.httpStatusCode===429||h.includes(e.name)||e.$retryable?.throttling==true;const isTransientError=(e,t=0)=>isRetryableByTrait(e)||isClockSkewCorrectedError(e)||e.name==="InvalidSignatureException"&&e.message?.includes("Signature expired")||P.includes(e.name)||L.includes(e?.code||"")||U.includes(e?.code||"")||_.includes(e.$metadata?.httpStatusCode||0)||isBrowserNetworkError(e)||isNodeJsHttp2TransientError(e)||e.cause!==undefined&&t<=10&&isTransientError(e.cause,t+1);const isServerError=e=>{if(e.$metadata?.httpStatusCode!==undefined){const t=e.$metadata.httpStatusCode;if(500<=t&&t<=599&&!isTransientError(e)){return true}return false}return false};function isNodeJsHttp2TransientError(e){return e.code==="ERR_HTTP2_STREAM_ERROR"&&e.message.includes("NGHTTP2_REFUSED_STREAM")}const j=100;const H=20*1e3;const V=500;const K=500;const W=5;const X=10;const Q=1;const Y="amz-sdk-invocation-id";const J="amz-sdk-request";function parseRetryAfterHeader(e,t){if(!d.HttpResponse.isInstance(e)){return}for(const o of Object.keys(e.headers)){const i=o.toLowerCase();if(i==="retry-after"){const i=e.headers[o];let a=NaN;if(i.endsWith("GMT")){try{const e=m.parseRfc7231DateTime(i);a=(e.getTime()-Date.now())/1e3}catch(e){t?.trace?.("Failed to parse retry-after header");t?.trace?.(e)}}else if(i.match(/ GMT, ((\d+)|(\d+\.\d+))$/)){a=Number(i.match(/ GMT, ([\d.]+)$/)?.[1])}else if(i.match(/^((\d+)|(\d+\.\d+))$/)){a=Number(i)}else if(Date.parse(i)>=Date.now()){a=(Date.parse(i)-Date.now())/1e3}if(isNaN(a)){return}return new Date(Date.now()+a*1e3)}else if(i==="x-amz-retry-after"){const i=e.headers[o];const a=Number(i);if(isNaN(a)){t?.trace?.(`Failed to parse x-amz-retry-after=${i}`);return}return new Date(Date.now()+a)}}}function getRetryAfterHint(e,t){return parseRetryAfterHeader(e,t)}const asSdkError=e=>{if(e instanceof Error)return e;if(e instanceof Object)return Object.assign(new Error,e);if(typeof e==="string")return new Error(e);return new Error(`AWS SDK error wrapper for ${e}`)};function bindRetryMiddleware(e){return t=>(o,i)=>async f=>{let h=await t.retryStrategy();const P=await t.maxAttempts();if(isRetryStrategyV2(h)){h=h;let _=await h.acquireInitialRetryToken((i["partition_id"]??"")+(i.__retryLongPoll?":longpoll":""));let L=new Error;let U=0;let j=0;const{request:H}=f;const V=d.HttpRequest.isInstance(H);if(V){H.headers[Y]=m.v4()}while(true){try{if(V){H.headers[J]=`attempt=${U+1}; max=${P}`}const{response:e,output:t}=await o(f);h.recordSuccess(_);t.$metadata.attempts=U+1;t.$metadata.totalRetryDelay=j;return{response:e,output:t}}catch(o){const d=getRetryErrorInfo(o,t.logger);L=asSdkError(o);if(V&&e(H)){(i.logger instanceof a.NoOpLogger?console:i.logger)?.warn("An error was encountered in a non-retryable streaming request.");throw L}try{_=await h.refreshRetryTokenForRetry(_,d)}catch(e){if(typeof e.$backoff==="number"){await cooldown(e.$backoff)}if(!L.$metadata){L.$metadata={}}L.$metadata.attempts=U+1;L.$metadata.totalRetryDelay=j;throw L}U=_.getRetryCount();const m=_.getRetryDelay();j+=m;await cooldown(m)}}}else{h=h;if(h?.mode){i.userAgent=[...i.userAgent||[],["cfg/retry-mode",h.mode]]}return h.retry(o,f)}}}const cooldown=e=>new Promise((t=>setTimeout(t,e)));const isRetryStrategyV2=e=>typeof e.acquireInitialRetryToken!=="undefined"&&typeof e.refreshRetryTokenForRetry!=="undefined"&&typeof e.recordSuccess!=="undefined";const getRetryErrorInfo=(e,t)=>{const o={error:e,errorType:getRetryErrorType(e)};const i=parseRetryAfterHeader(e.$response,t);if(i){o.retryAfterHint=i}return o};const getRetryErrorType=e=>{if(isThrottlingError(e))return"THROTTLING";if(isTransientError(e))return"TRANSIENT";if(isServerError(e))return"SERVER_ERROR";return"CLIENT_ERROR"};const Z={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:true};function bindGetRetryPlugin(e){const t=bindRetryMiddleware(e);return e=>({applyToStack:o=>{o.add(t(e),Z)}})}class DefaultRateLimiter{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=false;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7;this.minCapacity=e?.minCapacity??1;this.minFillRate=e?.minFillRate??.5;this.scaleConstant=e?.scaleConstant??.4;this.smooth=e?.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(e){let t;this.updateMeasuredRate();const o=e;const i=o?.errorType==="THROTTLING"||isThrottlingError(o?.error??e);if(i){const e=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=e;this.calculateTimeWindow();this.lastThrottleTime=this.getCurrentTimeInSeconds();t=this.cubicThrottle(e);this.enableTokenBucket()}else{this.calculateTimeWindow();t=this.cubicSuccess(this.getCurrentTimeInSeconds())}const a=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(a)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(e){if(!this.enabled){return}this.refillTokenBucket();while(e>this.availableTokens){const t=(e-this.availableTokens)/this.fillRate*1e3;await new Promise((e=>DefaultRateLimiter.setTimeoutFn(e,t)));this.refillTokenBucket()}this.availableTokens=this.availableTokens-e}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}const t=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+t);this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=true}updateTokenBucketRate(e){this.refillTokenBucket();this.fillRate=Math.max(e,this.minFillRate);this.maxCapacity=Math.max(e,this.minCapacity);this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds();const t=Math.floor(e*2)/2;this.requestCount++;if(t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth));this.requestCount=0;this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}class Retry{static v2026=typeof process!=="undefined"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return Retry.v2026?50:100}static throttlingDelay(){return Retry.v2026?1e3:500}static cost(){return Retry.v2026?14:5}static throttlingCost(){return Retry.v2026?5:10}static modifiedCostType(){return Retry.v2026?"THROTTLING":"TRANSIENT"}}class DefaultRetryBackoffStrategy{x=Retry.delay();computeNextBackoffDelay(e){const t=Math.random();const o=2;const i=t*Math.min(this.x*o**e,H);return Math.floor(i)}setDelayBase(e){this.x=e}}class DefaultRetryToken{delay;count;cost;longPoll;constructor(e,t,o,i){this.delay=e;this.count=t;this.cost=o;this.longPoll=i}getRetryCount(){return this.count}getRetryDelay(){return Math.min(H,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}t.RETRY_MODES=void 0;(function(e){e["STANDARD"]="standard";e["ADAPTIVE"]="adaptive"})(t.RETRY_MODES||(t.RETRY_MODES={}));const ee=3;const te=t.RETRY_MODES.STANDARD;const ne={incompatible:1,attempts:2,capacity:3};let re=class StandardRetryStrategy{mode=t.RETRY_MODES.STANDARD;capacity=K;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(e){if(typeof e==="number"){this.maxAttemptsProvider=async()=>e}else if(typeof e==="function"){this.maxAttemptsProvider=e}else if(e&&typeof e==="object"){this.maxAttemptsProvider=async()=>e.maxAttempts;this.baseDelay=e.baseDelay;this.retryBackoffStrategy=e.backoff}this.maxAttemptsProvider??=async()=>ee;this.baseDelay??=Retry.delay();this.retryBackoffStrategy??=new DefaultRetryBackoffStrategy}async acquireInitialRetryToken(e){return new DefaultRetryToken(Retry.delay(),0,undefined,Retry.v2026&&e.includes(":longpoll"))}async refreshRetryTokenForRetry(e,t){const o=await this.getMaxAttempts();const i=this.retryCode(e,t,o);const a=i===0;const d=e.isLongPoll?.();if(a||d){const o=t.errorType;this.retryBackoffStrategy.setDelayBase(o==="THROTTLING"?Retry.throttlingDelay():this.baseDelay);const m=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount());let f=m;if(t.retryAfterHint instanceof Date){f=Math.max(m,Math.min(t.retryAfterHint.getTime()-Date.now(),m+5e3))}if(!a){throw Object.assign(new Error("No retry token available"),{$backoff:Retry.v2026&&i===ne.capacity&&d?f:0})}else{const t=this.getCapacityCost(o);this.capacity-=t;return new DefaultRetryToken(f,e.getRetryCount()+1,t,e.isLongPoll?.()??false)}}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.min(K,this.capacity+(e.getRetryCost()??Q))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){console.warn(`Max attempts provider could not resolve. Using default of ${ee}`);return ee}}retryCode(e,t,o){const i=e.getRetryCount()+1;const a=this.isRetryableError(t.errorType)?0:ne.incompatible;const d=i<o?0:ne.attempts;const m=this.capacity>=this.getCapacityCost(t.errorType)?0:ne.capacity;return a||d||m}getCapacityCost(e){return e===Retry.modifiedCostType()?Retry.throttlingCost():Retry.cost()}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}};let oe=class AdaptiveRetryStrategy{mode=t.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,t){const{rateLimiter:o}=t??{};this.rateLimiter=o??new DefaultRateLimiter;this.standardRetryStrategy=t?new re({maxAttempts:typeof e==="number"?e:3,...t}):new re(e)}async acquireInitialRetryToken(e){const t=await this.standardRetryStrategy.acquireInitialRetryToken(e);await this.rateLimiter.getSendToken();return t}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);const o=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,t);await this.rateLimiter.getSendToken();return o}recordSuccess(e){this.rateLimiter.updateClientSendingRate({});this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};class ConfiguredRetryStrategy extends re{computeNextBackoffDelay;constructor(e,t=Retry.delay()){super(typeof e==="function"?e:async()=>e);if(typeof t==="number"){this.computeNextBackoffDelay=()=>t}else{this.computeNextBackoffDelay=t}}async refreshRetryTokenForRetry(e,t){const o=await super.refreshRetryTokenForRetry(e,t);o.getRetryDelay=()=>this.computeNextBackoffDelay(o.getRetryCount());return o}}const getDefaultRetryQuota=(e,t)=>{const o=e;const i=Q;const a=W;const d=X;let m=e;const getCapacityAmount=e=>e.name==="TimeoutError"?d:a;const hasRetryTokens=e=>getCapacityAmount(e)<=m;const retrieveRetryTokens=e=>{if(!hasRetryTokens(e)){throw new Error("No retry token available")}const t=getCapacityAmount(e);m-=t;return t};const releaseRetryTokens=e=>{m+=e??i;m=Math.min(m,o)};return Object.freeze({hasRetryTokens:hasRetryTokens,retrieveRetryTokens:retrieveRetryTokens,releaseRetryTokens:releaseRetryTokens})};const defaultDelayDecider=(e,t)=>Math.floor(Math.min(H,Math.random()*2**t*e));const defaultRetryDecider=e=>{if(!e){return false}return isRetryableByTrait(e)||isClockSkewError(e)||isThrottlingError(e)||isTransientError(e)};class StandardRetryStrategy{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=t.RETRY_MODES.STANDARD;constructor(e,t){this.maxAttemptsProvider=e;this.retryDecider=t?.retryDecider??defaultRetryDecider;this.delayDecider=t?.delayDecider??defaultDelayDecider;this.retryQuota=t?.retryQuota??getDefaultRetryQuota(K)}shouldRetry(e,t,o){return t<o&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch(t){e=ee}return e}async retry(e,t,o){let i;let a=0;let f=0;const h=await this.getMaxAttempts();const{request:P}=t;if(d.HttpRequest.isInstance(P)){P.headers[Y]=m.v4()}while(true){try{if(d.HttpRequest.isInstance(P)){P.headers[J]=`attempt=${a+1}; max=${h}`}if(o?.beforeRequest){await o.beforeRequest()}const{response:m,output:_}=await e(t);if(o?.afterRequest){o.afterRequest(m)}this.retryQuota.releaseRetryTokens(i);_.$metadata.attempts=a+1;_.$metadata.totalRetryDelay=f;return{response:m,output:_}}catch(e){const t=asSdkError(e);a++;if(this.shouldRetry(t,a,h)){i=this.retryQuota.retrieveRetryTokens(t);const e=this.delayDecider(isThrottlingError(t)?V:j,a);const o=getDelayFromRetryAfterHeader(t.$response);const d=Math.max(o||0,e);f+=d;await new Promise((e=>setTimeout(e,d)));continue}if(!t.$metadata){t.$metadata={}}t.$metadata.attempts=a;t.$metadata.totalRetryDelay=f;throw t}}}}const getDelayFromRetryAfterHeader=e=>{if(!d.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!t)return;const o=e.headers[t];const i=Number(o);if(!Number.isNaN(i))return i*1e3;const a=new Date(o);return a.getTime()-Date.now()};class AdaptiveRetryStrategy extends StandardRetryStrategy{rateLimiter;constructor(e,o){const{rateLimiter:i,...a}=o??{};super(e,a);this.rateLimiter=i??new DefaultRateLimiter;this.mode=t.RETRY_MODES.ADAPTIVE}async retry(e,t){return super.retry(e,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:e=>{this.rateLimiter.updateClientSendingRate(e)}})}}const ie="AWS_MAX_ATTEMPTS";const se="max_attempts";const ae={environmentVariableSelector:e=>{const t=e[ie];if(!t)return undefined;const o=parseInt(t);if(Number.isNaN(o)){throw new Error(`Environment variable ${ie} mast be a number, got "${t}"`)}return o},configFileSelector:e=>{const t=e[se];if(!t)return undefined;const o=parseInt(t);if(Number.isNaN(o)){throw new Error(`Shared config file entry ${se} mast be a number, got "${t}"`)}return o},default:ee};const resolveRetryConfig=e=>{const{retryStrategy:o,retryMode:i}=e;const d=a.normalizeProvider(e.maxAttempts??ee);let m=o?Promise.resolve(o):undefined;const getDefault=async()=>await a.normalizeProvider(i)()===t.RETRY_MODES.ADAPTIVE?new oe(d):new re(d);return Object.assign(e,{maxAttempts:d,retryStrategy:()=>m??=getDefault()})};const ce="AWS_RETRY_MODE";const le="retry_mode";const ue={environmentVariableSelector:e=>e[ce],configFileSelector:e=>e[le],default:te};const omitRetryHeadersMiddleware=()=>e=>async t=>{const{request:o}=t;if(d.HttpRequest.isInstance(o)){delete o.headers[Y];delete o.headers[J]}return e(t)};const de={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:true};const getOmitRetryHeadersPlugin=e=>({applyToStack:e=>{e.addRelativeTo(omitRetryHeadersMiddleware(),de)}});const pe=bindRetryMiddleware(isStreamingPayload);const me=bindGetRetryPlugin(isStreamingPayload);t.AdaptiveRetryStrategy=oe;t.CONFIG_MAX_ATTEMPTS=se;t.CONFIG_RETRY_MODE=le;t.ConfiguredRetryStrategy=ConfiguredRetryStrategy;t.DEFAULT_MAX_ATTEMPTS=ee;t.DEFAULT_RETRY_DELAY_BASE=j;t.DEFAULT_RETRY_MODE=te;t.DefaultRateLimiter=DefaultRateLimiter;t.DeprecatedAdaptiveRetryStrategy=AdaptiveRetryStrategy;t.DeprecatedStandardRetryStrategy=StandardRetryStrategy;t.ENV_MAX_ATTEMPTS=ie;t.ENV_RETRY_MODE=ce;t.INITIAL_RETRY_TOKENS=K;t.INVOCATION_ID_HEADER=Y;t.MAXIMUM_RETRY_DELAY=H;t.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=ae;t.NODE_RETRY_MODE_CONFIG_OPTIONS=ue;t.NO_RETRY_INCREMENT=Q;t.REQUEST_HEADER=J;t.RETRY_COST=W;t.Retry=Retry;t.StandardRetryStrategy=re;t.THROTTLING_RETRY_DELAY_BASE=V;t.TIMEOUT_RETRY_COST=X;t.defaultDelayDecider=defaultDelayDecider;t.defaultRetryDecider=defaultRetryDecider;t.getOmitRetryHeadersPlugin=getOmitRetryHeadersPlugin;t.getRetryAfterHint=getRetryAfterHint;t.getRetryPlugin=me;t.isBrowserNetworkError=isBrowserNetworkError;t.isClockSkewCorrectedError=isClockSkewCorrectedError;t.isClockSkewError=isClockSkewError;t.isNodeJsHttp2TransientError=isNodeJsHttp2TransientError;t.isRetryableByTrait=isRetryableByTrait;t.isServerError=isServerError;t.isThrottlingError=isThrottlingError;t.isTransientError=isTransientError;t.omitRetryHeadersMiddleware=omitRetryHeadersMiddleware;t.omitRetryHeadersMiddlewareOptions=de;t.resolveRetryConfig=resolveRetryConfig;t.retryMiddleware=pe;t.retryMiddlewareOptions=Z},26890:(e,t,o)=>{"use strict";var i=o(92658);var a=o(93422);var d=o(62085);const deref=e=>{if(typeof e==="function"){return e()}return e};const operation=(e,t,o,i,a)=>({name:t,namespace:e,traits:o,input:i,output:a});const schemaDeserializationMiddleware=e=>(t,o)=>async d=>{const{response:m}=await t(d);const{operationSchema:f}=i.getSmithyContext(o);const[,h,P,_,L,U]=f??[];try{const t=await e.protocol.deserializeResponse(operation(h,P,_,L,U),{...e,...o},m);return{response:m,output:t}}catch(e){Object.defineProperty(e,"$response",{value:m,enumerable:false,writable:false,configurable:false});if(!("$metadata"in e)){const t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+="\n "+t}catch(e){if(!o.logger||o.logger?.constructor?.name==="NoOpLogger"){console.warn(t)}else{o.logger?.warn?.(t)}}if(typeof e.$responseBodyText!=="undefined"){if(e.$response){e.$response.body=e.$responseBodyText}}try{if(a.HttpResponse.isInstance(m)){const{headers:t={}}=m;const o=Object.entries(t);e.$metadata={httpStatusCode:m.statusCode,requestId:findHeader(/^x-[\w-]+-request-?id$/,o),extendedRequestId:findHeader(/^x-[\w-]+-id-2$/,o),cfId:findHeader(/^x-[\w-]+-cf-id$/,o)}}}catch(e){}}throw e}};const findHeader=(e,t)=>(t.find((([t])=>t.match(e)))||[void 0,void 0])[1];const schemaSerializationMiddleware=e=>(t,o)=>async a=>{const{operationSchema:m}=i.getSmithyContext(o);const[,f,h,P,_,L]=m??[];const U=o.endpointV2?async()=>d.toEndpointV1(o.endpointV2):e.endpoint;const j=await e.protocol.serializeRequest(operation(f,h,P,_,L),a.input,{...e,...o,endpoint:U});return t({...a,request:j})};const m={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};const f={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSchemaSerdePlugin(e){return{applyToStack:t=>{t.add(schemaSerializationMiddleware(e),f);t.add(schemaDeserializationMiddleware(e),m);e.protocol.setSerdeContext(e)}}}class Schema{name;namespace;traits;static assign(e,t){const o=Object.assign(e,t);return o}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);if(!t&&typeof e==="object"&&e!==null){const t=e;return t.symbol===this.symbol}return t}getName(){return this.namespace+"#"+this.name}}class ListSchema extends Schema{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=ListSchema.symbol}const list=(e,t,o,i)=>Schema.assign(new ListSchema,{name:t,namespace:e,traits:o,valueSchema:i});class MapSchema extends Schema{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=MapSchema.symbol}const map=(e,t,o,i,a)=>Schema.assign(new MapSchema,{name:t,namespace:e,traits:o,keySchema:i,valueSchema:a});class OperationSchema extends Schema{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=OperationSchema.symbol}const op=(e,t,o,i,a)=>Schema.assign(new OperationSchema,{name:t,namespace:e,traits:o,input:i,output:a});class StructureSchema extends Schema{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=StructureSchema.symbol}const struct=(e,t,o,i,a)=>Schema.assign(new StructureSchema,{name:t,namespace:e,traits:o,memberNames:i,memberList:a});class ErrorSchema extends StructureSchema{static symbol=Symbol.for("@smithy/err");ctor;symbol=ErrorSchema.symbol}const error=(e,t,o,i,a,d)=>Schema.assign(new ErrorSchema,{name:t,namespace:e,traits:o,memberNames:i,memberList:a,ctor:null});const h=[];function translateTraits(e){if(typeof e==="object"){return e}e=e|0;if(h[e]){return h[e]}const t={};let o=0;for(const i of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"]){if((e>>o++&1)===1){t[i]=1}}return h[e]=t}const P={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")};const _=[];const L={};class NormalizedSchema{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=NormalizedSchema.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,t){this.ref=e;this.memberName=t;const o=[];let i=e;let a=e;this._isMemberSchema=false;while(isMemberSchema(i)){o.push(i[1]);i=i[0];a=deref(i);this._isMemberSchema=true}if(o.length>0){this.memberTraits={};for(let e=o.length-1;e>=0;--e){const t=o[e];Object.assign(this.memberTraits,translateTraits(t))}}else{this.memberTraits=0}if(a instanceof NormalizedSchema){const e=this.memberTraits;Object.assign(this,a);this.memberTraits=Object.assign({},e,a.getMemberTraits(),this.getMemberTraits());this.normalizedTraits=void 0;this.memberName=t??a.memberName;return}this.schema=deref(a);if(isStaticSchema(this.schema)){this.name=`${this.schema[1]}#${this.schema[2]}`;this.traits=this.schema[3]}else{this.name=this.memberName??String(a);this.traits=0}if(this._isMemberSchema&&!t){throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`)}}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);if(!t&&typeof e==="object"&&e!==null){const t=e;return t.symbol===this.symbol}return t}static of(e){const t=typeof e==="function"||typeof e==="object"&&e!==null;if(typeof e==="number"){if(_[e]){return _[e]}}else if(typeof e==="string"){if(L[e]){return L[e]}}else if(t){if(e[P.ns]){return e[P.ns]}}const o=deref(e);if(o instanceof NormalizedSchema){return o}if(isMemberSchema(o)){const[t,i]=o;if(t instanceof NormalizedSchema){Object.assign(t.getMergedTraits(),translateTraits(i));return t}throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}const i=new NormalizedSchema(o);if(t){return e[P.ns]=i}if(typeof o==="string"){return L[o]=i}if(typeof o==="number"){return _[o]=i}return i}getSchema(){const e=this.schema;if(Array.isArray(e)&&e[0]===0){return e[4]}return e}getName(e=false){const{name:t}=this;const o=!e&&t&&t.includes("#");return o?t.split("#")[1]:t||undefined}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return typeof e==="number"?e>=64&&e<128:e[0]===1}isMapSchema(){const e=this.getSchema();return typeof e==="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){const e=this.getSchema();if(typeof e!=="object"){return false}const t=e[0];return t===3||t===-3||t===4}isUnionSchema(){const e=this.getSchema();if(typeof e!=="object"){return false}return e[0]===4}isBlobSchema(){const e=this.getSchema();return e===21||e===42}isTimestampSchema(){const e=this.getSchema();return typeof e==="number"&&e>=4&&e<=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(){const{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return translateTraits(this.memberTraits)}getOwnTraits(){return translateTraits(this.traits)}getKeySchema(){const[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t){throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`)}const o=this.getSchema();const i=e?15:o[4]??0;return member([i,0],"key")}getValueSchema(){const e=this.getSchema();const[t,o,i]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()];const a=typeof e==="number"?63&e:e&&typeof e==="object"&&(o||i)?e[3+e[0]]:t?15:void 0;if(a!=null){return member([a,0],o?"value":"member")}throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`)}getMemberSchema(e){const t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){const o=t[4].indexOf(e);const i=t[5][o];return member(isMemberSchema(i)?i:[i,0],e)}if(this.isDocumentSchema()){return member([15,0],e)}throw new Error(`@smithy/core/schema - ${this.getName(true)} has no member=${e}.`)}getMemberSchemas(){const e={};try{for(const[t,o]of this.structIterator()){e[t]=o}}catch(e){}return e}getEventStreamMember(){if(this.isStructSchema()){for(const[e,t]of this.structIterator()){if(t.isStreaming()&&t.isStructSchema()){return e}}}return""}*structIterator(){if(this.isUnitSchema()){return}if(!this.isStructSchema()){throw new Error("@smithy/core/schema - cannot iterate non-struct schema.")}const e=this.getSchema();const t=e[4].length;let o=e[P.it];if(o&&t===o.length){yield*o;return}o=Array(t);for(let i=0;i<t;++i){const t=e[4][i];const a=member([e[5][i],0],t);yield o[i]=[t,a]}e[P.it]=o}}function member(e,t){if(e instanceof NormalizedSchema){return Object.assign(e,{memberName:t,_isMemberSchema:true})}const o=NormalizedSchema;return new o(e,t)}const isMemberSchema=e=>Array.isArray(e)&&e.length===2;const isStaticSchema=e=>Array.isArray(e)&&e.length>=5;class SimpleSchema extends Schema{static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=SimpleSchema.symbol}const sim=(e,t,o,i)=>Schema.assign(new SimpleSchema,{name:t,namespace:e,traits:i,schemaRef:o});const simAdapter=(e,t,o,i)=>Schema.assign(new SimpleSchema,{name:t,namespace:e,traits:o,schemaRef:i});const U={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};class TypeRegistry{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,o=new Map){this.namespace=e;this.schemas=t;this.exceptions=o}static for(e){if(!TypeRegistry.registries.has(e)){TypeRegistry.registries.set(e,new TypeRegistry(e))}return TypeRegistry.registries.get(e)}copyFrom(e){const{schemas:t,exceptions:o}=this;for(const[o,i]of e.schemas){if(!t.has(o)){t.set(o,i)}}for(const[t,i]of e.exceptions){if(!o.has(t)){o.set(t,i)}}}register(e,t){const o=this.normalizeShapeId(e);for(const e of[this,TypeRegistry.for(o.split("#")[0])]){e.schemas.set(o,t)}}getSchema(e){const t=this.normalizeShapeId(e);if(!this.schemas.has(t)){if(!e.includes("#")){const t="#"+e;const o=[];for(const[e,i]of this.schemas.entries()){if(e.endsWith(t)){o.push(i)}}if(o.length===1){return o[0]}}throw new Error(`@smithy/core/schema - schema not found for ${t}`)}return this.schemas.get(t)}registerError(e,t){const o=e;const i=o[1];for(const e of[this,TypeRegistry.for(i)]){e.schemas.set(i+"#"+o[2],o);e.exceptions.set(o,t)}}getErrorCtor(e){const t=e;if(this.exceptions.has(t)){return this.exceptions.get(t)}const o=TypeRegistry.for(t[1]);return o.exceptions.get(t)}getBaseException(){for(const e of this.exceptions.keys()){if(Array.isArray(e)){const[,t,o]=e;const i=t+"#"+o;if(i.startsWith("smithy.ts.sdk.synthetic.")&&i.endsWith("ServiceException")){return e}}}return undefined}find(e){for(const t of this.schemas.values()){if(e(t)){return t}}return undefined}clear(){this.schemas.clear();this.exceptions.clear()}normalizeShapeId(e){if(e.includes("#")){return e}return this.namespace+"#"+e}}t.ErrorSchema=ErrorSchema;t.ListSchema=ListSchema;t.MapSchema=MapSchema;t.NormalizedSchema=NormalizedSchema;t.OperationSchema=OperationSchema;t.SCHEMA=U;t.Schema=Schema;t.SimpleSchema=SimpleSchema;t.StructureSchema=StructureSchema;t.TypeRegistry=TypeRegistry;t.deref=deref;t.deserializerMiddlewareOption=m;t.error=error;t.getSchemaSerdePlugin=getSchemaSerdePlugin;t.isStaticSchema=isStaticSchema;t.list=list;t.map=map;t.op=op;t.operation=operation;t.serializerMiddlewareOption=f;t.sim=sim;t.simAdapter=simAdapter;t.simpleSchemaCacheN=_;t.simpleSchemaCacheS=L;t.struct=struct;t.traitsCache=h;t.translateTraits=translateTraits},92430:(e,t,o)=>{"use strict";var i=o(77598);var a=o(73024);var d=o(93422);var m=o(62085);var f=o(57075);const isArrayBuffer=e=>typeof ArrayBuffer==="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";const fromArrayBuffer=(e,t=0,o=e.byteLength-t)=>{if(!isArrayBuffer(e)){throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`)}return Buffer.from(e,t,o)};const fromString=(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)};const h=/^[A-Za-z0-9+/]*={0,2}$/;const fromBase64$1=e=>{if(e.length*3%4!==0){throw new TypeError(`Incorrect padding on base64 string.`)}if(!h.exec(e)){throw new TypeError(`Invalid base64 string.`)}const t=fromString(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)};const fromUtf8$1=e=>{const t=fromString(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};const toBase64$1=e=>{let t;if(typeof e==="string"){t=fromUtf8$1(e)}else{t=e}if(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 fromArrayBuffer(t.buffer,t.byteOffset,t.byteLength).toString("base64")};function bindUint8ArrayBlobAdapter(e,t,o,i){return class Uint8ArrayBlobAdapter extends Uint8Array{static fromString(e,o="utf-8"){if(typeof e==="string"){if(o==="base64"){return Uint8ArrayBlobAdapter.mutate(i(e))}return Uint8ArrayBlobAdapter.mutate(t(e))}throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){Object.setPrototypeOf(e,Uint8ArrayBlobAdapter.prototype);return e}transformToString(t="utf-8"){if(t==="base64"){return o(this)}return e(this)}}}const toUtf8$1=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 fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("utf8")};const P=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function bindV4(e){if(typeof crypto!=="undefined"&&typeof crypto.randomUUID==="function"){return()=>crypto.randomUUID()}return()=>{const t=new Uint8Array(16);e(t);t[6]=t[6]&15|64;t[8]=t[8]&63|128;return P[t[0]]+P[t[1]]+P[t[2]]+P[t[3]]+"-"+P[t[4]]+P[t[5]]+"-"+P[t[6]]+P[t[7]]+"-"+P[t[8]]+P[t[9]]+"-"+P[t[10]]+P[t[11]]+P[t[12]]+P[t[13]]+P[t[14]]+P[t[15]]}}const copyDocumentWithTransform=(e,t,o=e=>e)=>e;const parseBoolean=e=>{switch(e){case"true":return true;case"false":return false;default:throw new Error(`Unable to parse boolean value "${e}"`)}};const expectBoolean=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="number"){if(e===0||e===1){W.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(e===0){return false}if(e===1){return true}}if(typeof e==="string"){const t=e.toLowerCase();if(t==="false"||t==="true"){W.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(t==="false"){return false}if(t==="true"){return true}}if(typeof e==="boolean"){return e}throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)};const expectNumber=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){const t=parseFloat(e);if(!Number.isNaN(t)){if(String(t)!==String(e)){W.warn(stackTraceWarning(`Expected number but observed string: ${e}`))}return t}}if(typeof e==="number"){return e}throw new TypeError(`Expected number, got ${typeof e}: ${e}`)};const _=Math.ceil(2**127*(2-2**-23));const expectFloat32=e=>{const t=expectNumber(e);if(t!==undefined&&!Number.isNaN(t)&&t!==Infinity&&t!==-Infinity){if(Math.abs(t)>_){throw new TypeError(`Expected 32-bit float, got ${e}`)}}return t};const expectLong=e=>{if(e===null||e===undefined){return undefined}if(Number.isInteger(e)&&!Number.isNaN(e)){return e}throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)};const L=expectLong;const expectInt32=e=>expectSizedInt(e,32);const expectShort=e=>expectSizedInt(e,16);const expectByte=e=>expectSizedInt(e,8);const expectSizedInt=(e,t)=>{const o=expectLong(e);if(o!==undefined&&castInt(o,t)!==o){throw new TypeError(`Expected ${t}-bit integer, got ${e}`)}return o};const castInt=(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]}};const expectNonNull=(e,t)=>{if(e===null||e===undefined){if(t){throw new TypeError(`Expected a non-null value for ${t}`)}throw new TypeError("Expected a non-null value")}return e};const expectObject=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="object"&&!Array.isArray(e)){return e}const t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)};const expectString=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){return e}if(["boolean","number","bigint"].includes(typeof e)){W.warn(stackTraceWarning(`Expected string, got ${typeof e}: ${e}`));return String(e)}throw new TypeError(`Expected string, got ${typeof e}: ${e}`)};const expectUnion=e=>{if(e===null||e===undefined){return undefined}const t=expectObject(e);const o=[];for(const e in t){if(t[e]!=null){o.push(e)}}if(o.length===0){throw new TypeError(`Unions must have exactly one non-null member. None were found.`)}if(o.length>1){throw new TypeError(`Unions must have exactly one non-null member. Keys ${o} were not null.`)}return t};const strictParseDouble=e=>{if(typeof e=="string"){return expectNumber(parseNumber(e))}return expectNumber(e)};const U=strictParseDouble;const strictParseFloat32=e=>{if(typeof e=="string"){return expectFloat32(parseNumber(e))}return expectFloat32(e)};const j=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;const parseNumber=e=>{const t=e.match(j);if(t===null||t[0].length!==e.length){throw new TypeError(`Expected real number, got implicit NaN`)}return parseFloat(e)};const limitedParseDouble=e=>{if(typeof e=="string"){return parseFloatString(e)}return expectNumber(e)};const H=limitedParseDouble;const V=limitedParseDouble;const limitedParseFloat32=e=>{if(typeof e=="string"){return parseFloatString(e)}return expectFloat32(e)};const parseFloatString=e=>{switch(e){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return-Infinity;default:throw new Error(`Unable to parse float value: ${e}`)}};const strictParseLong=e=>{if(typeof e==="string"){return expectLong(parseNumber(e))}return expectLong(e)};const K=strictParseLong;const strictParseInt32=e=>{if(typeof e==="string"){return expectInt32(parseNumber(e))}return expectInt32(e)};const strictParseShort=e=>{if(typeof e==="string"){return expectShort(parseNumber(e))}return expectShort(e)};const strictParseByte=e=>{if(typeof e==="string"){return expectByte(parseNumber(e))}return expectByte(e)};const stackTraceWarning=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n");const W={warn:console.warn};const X=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const Q=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(e){const t=e.getUTCFullYear();const o=e.getUTCMonth();const i=e.getUTCDay();const a=e.getUTCDate();const d=e.getUTCHours();const m=e.getUTCMinutes();const f=e.getUTCSeconds();const h=a<10?`0${a}`:`${a}`;const P=d<10?`0${d}`:`${d}`;const _=m<10?`0${m}`:`${m}`;const L=f<10?`0${f}`:`${f}`;return`${X[i]}, ${h} ${Q[o]} ${t} ${P}:${_}:${L} GMT`}const Y=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);const parseRfc3339DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const t=Y.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[o,i,a,d,m,f,h,P]=t;const _=strictParseShort(stripLeadingZeroes(i));const L=parseDateValue(a,"month",1,12);const U=parseDateValue(d,"day",1,31);return buildDate(_,L,U,{hours:m,minutes:f,seconds:h,fractionalMilliseconds:P})};const J=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/);const parseRfc3339DateTimeWithOffset=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const t=J.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[o,i,a,d,m,f,h,P,_]=t;const L=strictParseShort(stripLeadingZeroes(i));const U=parseDateValue(a,"month",1,12);const j=parseDateValue(d,"day",1,31);const H=buildDate(L,U,j,{hours:m,minutes:f,seconds:h,fractionalMilliseconds:P});if(_.toUpperCase()!="Z"){H.setTime(H.getTime()-parseOffsetToMilliseconds(_))}return H};const Z=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$/);const ee=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$/);const te=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})$/);const parseRfc7231DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-7231 date-times must be expressed as strings")}let t=Z.exec(e);if(t){const[e,o,i,a,d,m,f,h]=t;return buildDate(strictParseShort(stripLeadingZeroes(a)),parseMonthByShortName(i),parseDateValue(o,"day",1,31),{hours:d,minutes:m,seconds:f,fractionalMilliseconds:h})}t=ee.exec(e);if(t){const[e,o,i,a,d,m,f,h]=t;return adjustRfc850Year(buildDate(parseTwoDigitYear(a),parseMonthByShortName(i),parseDateValue(o,"day",1,31),{hours:d,minutes:m,seconds:f,fractionalMilliseconds:h}))}t=te.exec(e);if(t){const[e,o,i,a,d,m,f,h]=t;return buildDate(strictParseShort(stripLeadingZeroes(h)),parseMonthByShortName(o),parseDateValue(i.trimLeft(),"day",1,31),{hours:a,minutes:d,seconds:m,fractionalMilliseconds:f})}throw new TypeError("Invalid RFC-7231 date-time value")};const parseEpochTimestamp=e=>{if(e===null||e===undefined){return undefined}let t;if(typeof e==="number"){t=e}else if(typeof e==="string"){t=strictParseDouble(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===Infinity||t===-Infinity){throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics")}return new Date(Math.round(t*1e3))};const buildDate=(e,t,o,i)=>{const a=t-1;validateDayOfMonth(e,a,o);return new Date(Date.UTC(e,a,o,parseDateValue(i.hours,"hour",0,23),parseDateValue(i.minutes,"minute",0,59),parseDateValue(i.seconds,"seconds",0,60),parseMilliseconds(i.fractionalMilliseconds)))};const parseTwoDigitYear=e=>{const t=(new Date).getUTCFullYear();const o=Math.floor(t/100)*100+strictParseShort(stripLeadingZeroes(e));if(o<t){return o+100}return o};const ne=50*365*24*60*60*1e3;const adjustRfc850Year=e=>{if(e.getTime()-(new Date).getTime()>ne){return new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()))}return e};const parseMonthByShortName=e=>{const t=Q.indexOf(e);if(t<0){throw new TypeError(`Invalid month: ${e}`)}return t+1};const re=[31,28,31,30,31,30,31,31,30,31,30,31];const validateDayOfMonth=(e,t,o)=>{let i=re[t];if(t===1&&isLeapYear(e)){i=29}if(o>i){throw new TypeError(`Invalid day for ${Q[t]} in ${e}: ${o}`)}};const isLeapYear=e=>e%4===0&&(e%100!==0||e%400===0);const parseDateValue=(e,t,o,i)=>{const a=strictParseByte(stripLeadingZeroes(e));if(a<o||a>i){throw new TypeError(`${t} must be between ${o} and ${i}, inclusive`)}return a};const parseMilliseconds=e=>{if(e===null||e===undefined){return 0}return strictParseFloat32("0."+e)*1e3};const parseOffsetToMilliseconds=e=>{const t=e[0];let o=1;if(t=="+"){o=1}else if(t=="-"){o=-1}else{throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`)}const i=Number(e.substring(1,3));const a=Number(e.substring(4,6));return o*(i*60+a)*60*1e3};const stripLeadingZeroes=e=>{let t=0;while(t<e.length-1&&e.charAt(t)==="0"){t++}if(t===0){return e}return e.slice(t)};const oe=function LazyJsonString(e){const t=Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}});return t};oe.from=e=>{if(e&&typeof e==="object"&&(e instanceof oe||"deserializeJSON"in e)){return e}else if(typeof e==="string"||Object.getPrototypeOf(e)===String.prototype){return oe(String(e))}return oe(JSON.stringify(e))};oe.fromObject=oe.from;function quoteHeader(e){if(e.includes(",")||e.includes('"')){e=`"${e.replace(/"/g,'\\"')}"`}return e}const ie=`(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`;const se=`(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`;const ae=`(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`;const ce=`(\\d?\\d)`;const le=`(\\d{4})`;const ue=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/);const de=new RegExp(`^${ie}, ${ce} ${se} ${le} ${ae} GMT$`);const pe=new RegExp(`^${ie}, ${ce}-${se}-(\\d\\d) ${ae} GMT$`);const me=new RegExp(`^${ie} ${se} ( [1-9]|\\d\\d) ${ae} ${le}$`);const fe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const _parseEpochTimestamp=e=>{if(e==null){return void 0}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 if(typeof e==="object"&&e.tag===1){t=e.value}if(isNaN(t)||Math.abs(t)===Infinity){throw new TypeError("Epoch timestamps must be valid finite numbers.")}return new Date(Math.round(t*1e3))};const _parseRfc3339DateTimeWithOffset=e=>{if(e==null){return void 0}if(typeof e!=="string"){throw new TypeError("RFC3339 timestamps must be strings")}const t=ue.exec(e);if(!t){throw new TypeError(`Invalid RFC3339 timestamp format ${e}`)}const[,o,i,a,d,m,f,,h,P]=t;range(i,1,12);range(a,1,31);range(d,0,23);range(m,0,59);range(f,0,60);const _=new Date(Date.UTC(Number(o),Number(i)-1,Number(a),Number(d),Number(m),Number(f),Number(h)?Math.round(parseFloat(`0.${h}`)*1e3):0));_.setUTCFullYear(Number(o));if(P.toUpperCase()!="Z"){const[,e,t,o]=/([+-])(\d\d):(\d\d)/.exec(P)||[void 0,"+",0,0];const i=e==="-"?1:-1;_.setTime(_.getTime()+i*(Number(t)*60*60*1e3+Number(o)*60*1e3))}return _};const _parseRfc7231DateTime=e=>{if(e==null){return void 0}if(typeof e!=="string"){throw new TypeError("RFC7231 timestamps must be strings.")}let t;let o;let i;let a;let d;let m;let f;let h;if(h=de.exec(e)){[,t,o,i,a,d,m,f]=h}else if(h=pe.exec(e)){[,t,o,i,a,d,m,f]=h;i=(Number(i)+1900).toString()}else if(h=me.exec(e)){[,o,t,a,d,m,f,i]=h}if(i&&m){const e=Date.UTC(Number(i),fe.indexOf(o),Number(t),Number(a),Number(d),Number(m),f?Math.round(parseFloat(`0.${f}`)*1e3):0);range(t,1,31);range(a,0,23);range(d,0,59);range(m,0,60);const h=new Date(e);h.setUTCFullYear(Number(i));return h}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function range(e,t,o){const i=Number(e);if(i<t||i>o){throw new Error(`Value ${i} out of range [${t}, ${o}]`)}}function splitEvery(e,t,o){if(o<=0||!Number.isInteger(o)){throw new Error("Invalid number of delimiters ("+o+") for splitEvery.")}const i=e.split(t);if(o===1){return i}const a=[];let d="";for(let e=0;e<i.length;e++){if(d===""){d=i[e]}else{d+=t+i[e]}if((e+1)%o===0){a.push(d);d=""}}if(d!==""){a.push(d)}return a}const splitHeader=e=>{const t=e.length;const o=[];let i=false;let a=undefined;let d=0;for(let m=0;m<t;++m){const t=e[m];switch(t){case`"`:if(a!=="\\"){i=!i}break;case",":if(!i){o.push(e.slice(d,m));d=m+1}break}a=t}o.push(e.slice(d));return o.map((e=>{e=e.trim();const t=e.length;if(t<2){return e}if(e[0]===`"`&&e[t-1]===`"`){e=e.slice(1,t-1)}return e.replace(/\\"/g,'"')}))};const he=/^-?\d*(\.\d+)?$/;class NumericValue{string;type;constructor(e,t){this.string=e;this.type=t;if(!he.test(e)){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](e){if(!e||typeof e!=="object"){return false}const t=e;return NumericValue.prototype.isPrototypeOf(e)||t.type==="bigDecimal"&&he.test(t.string)}}function nv(e){return new NumericValue(String(e),"bigDecimal")}const ge={};const ye={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();if(t.length===1){t=`0${t}`}ge[e]=t;ye[t]=e}function fromHex(e){if(e.length%2!==0){throw new Error("Hex encoded strings must have an even number length")}const t=new Uint8Array(e.length/2);for(let o=0;o<e.length;o+=2){const i=e.slice(o,o+2).toLowerCase();if(i in ye){t[o/2]=ye[i]}else{throw new Error(`Cannot decode unrecognized sequence ${i} as hexadecimal`)}}return t}function toHex(e){let t="";for(let o=0;o<e.byteLength;o++){t+=ge[e[o]]}return t}const calculateBodyLength=e=>{if(!e){return 0}if(typeof e==="string"){return Buffer.byteLength(e)}else if(typeof e.byteLength==="number"){return e.byteLength}else if(typeof e.size==="number"){return e.size}else if(typeof e.start==="number"&&typeof e.end==="number"){return e.end+1-e.start}else if(e instanceof a.ReadStream){if(e.path!=null){return a.lstatSync(e.path).size}else if(typeof e.fd==="number"){return a.fstatSync(e.fd).size}}throw new Error(`Body Length computation failed for ${e}`)};const toUint8Array=e=>{if(typeof e==="string"){return fromUtf8$1(e)}if(ArrayBuffer.isView(e)){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)}return new Uint8Array(e)};const deserializerMiddleware=(e,t)=>(o,i)=>async a=>{const{response:m}=await o(a);try{const o=await t(m,e);return{response:m,output:o}}catch(e){Object.defineProperty(e,"$response",{value:m,enumerable:false,writable:false,configurable:false});if(!("$metadata"in e)){const t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+="\n "+t}catch(e){if(!i.logger||i.logger?.constructor?.name==="NoOpLogger"){console.warn(t)}else{i.logger?.warn?.(t)}}if(typeof e.$responseBodyText!=="undefined"){if(e.$response){e.$response.body=e.$responseBodyText}}try{if(d.HttpResponse.isInstance(m)){const{headers:t={}}=m;const o=Object.entries(t);e.$metadata={httpStatusCode:m.statusCode,requestId:findHeader(/^x-[\w-]+-request-?id$/,o),extendedRequestId:findHeader(/^x-[\w-]+-id-2$/,o),cfId:findHeader(/^x-[\w-]+-cf-id$/,o)}}}catch(e){}}throw e}};const findHeader=(e,t)=>(t.find((([t])=>t.match(e)))||[void 0,void 0])[1];const serializerMiddleware=(e,t)=>(o,i)=>async a=>{const d=e;const f=i.endpointV2?async()=>m.toEndpointV1(i.endpointV2):d.endpoint;if(!f){throw new Error("No valid endpoint provider available.")}const h=await t(a.input,{...e,endpoint:f});return o({...a,request:h})};const be={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};const Se={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSerdePlugin(e,t,o){return{applyToStack:i=>{i.add(deserializerMiddleware(e,o),be);i.add(serializerMiddleware(e,t),Se)}}}class Hash{algorithmIdentifier;secret;hash;constructor(e,t){this.algorithmIdentifier=e;this.secret=t;this.reset()}update(e,t){this.hash.update(toUint8Array(castSourceData(e,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?i.createHmac(this.algorithmIdentifier,castSourceData(this.secret)):i.createHash(this.algorithmIdentifier)}}function castSourceData(e,t){if(Buffer.isBuffer(e)){return e}if(typeof e==="string"){return fromString(e,t)}if(ArrayBuffer.isView(e)){return fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength)}return fromArrayBuffer(e)}let Ce=class ChecksumStream extends f.Duplex{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;pendingCallback=null;constructor({expectedChecksum:e,checksum:t,source:o,checksumSourceLocation:i,base64Encoder:a}){super();if(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=a??toBase64$1;this.expectedChecksum=e;this.checksum=t;this.checksumSourceLocation=i;this.source.pipe(this)}_read(e){if(this.pendingCallback){const e=this.pendingCallback;this.pendingCallback=null;e()}}_write(e,t,o){try{this.checksum.update(e);const t=this.push(e);if(!t){this.pendingCallback=o;return}}catch(e){return o(e)}return o()}async _final(e){try{const t=await this.checksum.digest();const o=this.base64Encoder(t);if(this.expectedChecksum!==o){return e(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${o}"`+` in response header "${this.checksumSourceLocation}".`))}}catch(t){return e(t)}this.push(null);return e()}};const isReadableStream=e=>typeof ReadableStream==="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream);const isBlob=e=>typeof Blob==="function"&&(e?.constructor?.name===Blob.name||e instanceof Blob);const fromUtf8=e=>(new TextEncoder).encode(e);const Ee=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;const xe=Object.entries(Ee).reduce(((e,[t,o])=>{e[o]=Number(t);return e}),{});const Pe=Ee.split("");const ve=6;const Te=8;const Re=63;function toBase64(e){let t;if(typeof e==="string"){t=fromUtf8(e)}else{t=e}const o=typeof t==="object"&&typeof t.length==="number";const i=typeof t==="object"&&typeof t.byteOffset==="number"&&typeof t.byteLength==="number";if(!o&&!i){throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.")}let a="";for(let e=0;e<t.length;e+=3){let o=0;let i=0;for(let a=e,d=Math.min(e+3,t.length);a<d;a++){o|=t[a]<<(d-a-1)*Te;i+=Te}const d=Math.ceil(i/ve);o<<=d*ve-i;for(let e=1;e<=d;e++){const t=(d-e)*ve;a+=Pe[(o&Re<<t)>>t]}a+="==".slice(0,4-d)}return a}const we=typeof ReadableStream==="function"?ReadableStream:function(){};class ChecksumStream extends we{}const createChecksumStream$1=({expectedChecksum:e,checksum:t,source:o,checksumSourceLocation:i,base64Encoder:a})=>{if(!isReadableStream(o)){throw new Error(`@smithy/util-stream: unsupported source type ${o?.constructor?.name??o} in ChecksumStream.`)}const d=a??toBase64;if(typeof TransformStream!=="function"){throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.")}const m=new TransformStream({start(){},async transform(e,o){t.update(e);o.enqueue(e)},async flush(o){const a=await t.digest();const m=d(a);if(e!==m){const t=new Error(`Checksum mismatch: expected "${e}" but received "${m}"`+` in response header "${i}".`);o.error(t)}else{o.terminate()}}});o.pipeThrough(m);const f=m.readable;Object.setPrototypeOf(f,ChecksumStream.prototype);return f};function createChecksumStream(e){if(typeof ReadableStream==="function"&&isReadableStream(e.source)){return createChecksumStream$1(e)}return new Ce(e)}class ByteArrayCollector{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e);this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){const e=this.byteArrays[0];this.reset();return e}const e=this.allocByteArray(this.byteLength);let t=0;for(let o=0;o<this.byteArrays.length;++o){const i=this.byteArrays[o];e.set(i,t);t+=i.byteLength}this.reset();return e}reset(){this.byteArrays=[];this.byteLength=0}}function createBufferedReadableStream(e,t,o){const i=e.getReader();let a=false;let d=0;const m=["",new ByteArrayCollector((e=>new Uint8Array(e)))];let f=-1;const pull=async e=>{const{value:h,done:P}=await i.read();const _=h;if(P){if(f!==-1){const t=flush(m,f);if(sizeOf(t)>0){e.enqueue(t)}}e.close()}else{const i=modeOf(_,false);if(f!==i){if(f>=0){e.enqueue(flush(m,f))}f=i}if(f===-1){e.enqueue(_);return}const h=sizeOf(_);d+=h;const P=sizeOf(m[f]);if(h>=t&&P===0){e.enqueue(_)}else{const i=merge(m,f,_);if(!a&&d>t*2){a=true;o?.warn(`@smithy/util-stream - stream chunk size ${h} is below threshold of ${t}, automatically buffering.`)}if(i>=t){e.enqueue(flush(m,f))}else{await pull(e)}}}};return new ReadableStream({pull:pull})}function merge(e,t,o){switch(t){case 0:e[0]+=o;return sizeOf(e[0]);case 1:case 2:e[t].push(o);return sizeOf(e[t])}}function flush(e,t){switch(t){case 0:const o=e[0];e[0]="";return o;case 1:case 2:return e[t].flush()}throw new Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function sizeOf(e){return e?.byteLength??e?.length??0}function modeOf(e,t=true){if(t&&typeof Buffer!=="undefined"&&e instanceof Buffer){return 2}if(e instanceof Uint8Array){return 1}if(typeof e==="string"){return 0}return-1}function createBufferedReadable(e,t,o){if(isReadableStream(e)){return createBufferedReadableStream(e,t,o)}const i=new f.Readable({read(){}});let a=false;let d=0;const m=["",new ByteArrayCollector((e=>new Uint8Array(e))),new ByteArrayCollector((e=>Buffer.from(new Uint8Array(e))))];let h=-1;e.on("data",(e=>{const f=modeOf(e,true);if(h!==f){if(h>=0){i.push(flush(m,h))}h=f}if(h===-1){i.push(e);return}const P=sizeOf(e);d+=P;const _=sizeOf(m[h]);if(P>=t&&_===0){i.push(e)}else{const f=merge(m,h,e);if(!a&&d>t*2){a=true;o?.warn(`@smithy/util-stream - stream chunk size ${P} is below threshold of ${t}, automatically buffering.`)}if(f>=t){i.push(flush(m,h))}}}));e.on("end",(()=>{if(h!==-1){const e=flush(m,h);if(sizeOf(e)>0){i.push(e)}}i.push(null)}));return i}const getAwsChunkedEncodingStream$1=(e,t)=>{const{base64Encoder:o,bodyLengthChecker:i,checksumAlgorithmFn:a,checksumLocationName:d,streamHasher:m}=t;const f=o!==undefined&&i!==undefined&&a!==undefined&&d!==undefined&&m!==undefined;const h=f?m(a,e):undefined;const P=e.getReader();return new ReadableStream({async pull(e){const{value:t,done:a}=await P.read();if(a){e.enqueue(`0\r\n`);if(f){const t=o(await h);e.enqueue(`${d}:${t}\r\n`);e.enqueue(`\r\n`)}e.close()}else{e.enqueue(`${(i(t)||0).toString(16)}\r\n${t}\r\n`)}}})};function getAwsChunkedEncodingStream(e,t){const o=e;const i=e;if(isReadableStream(i)){return getAwsChunkedEncodingStream$1(i,t)}const{base64Encoder:a,bodyLengthChecker:d,checksumAlgorithmFn:m,checksumLocationName:h,streamHasher:P}=t;const _=a!==undefined&&m!==undefined&&h!==undefined&&P!==undefined;const L=_?P(m,o):undefined;const U=new f.Readable({read:()=>{}});o.on("data",(e=>{const t=d(e)||0;if(t===0){return}U.push(`${t.toString(16)}\r\n`);U.push(e);U.push("\r\n")}));o.on("end",(async()=>{U.push(`0\r\n`);if(_){const e=a(await L);U.push(`${h}:${e}\r\n`);U.push(`\r\n`)}U.push(null)}));return U}async function headStream$1(e,t){let o=0;const i=[];const a=e.getReader();let d=false;while(!d){const{done:e,value:m}=await a.read();if(m){i.push(m);o+=m?.byteLength??0}if(o>=t){break}d=e}a.releaseLock();const m=new Uint8Array(Math.min(t,o));let f=0;for(const e of i){if(e.byteLength>m.byteLength-f){m.set(e.subarray(0,m.byteLength-f),f);break}else{m.set(e,f)}f+=e.length}return m}const headStream=(e,t)=>{if(isReadableStream(e)){return headStream$1(e,t)}return new Promise(((o,i)=>{const a=new Ne;a.limit=t;e.pipe(a);e.on("error",(e=>{a.end();i(e)}));a.on("error",i);a.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.buffers));o(e)}))}))};let Ne=class Collector extends f.Writable{buffers=[];limit=Infinity;bytesBuffered=0;_write(e,t,o){this.buffers.push(e);this.bytesBuffered+=e.byteLength??0;if(this.bytesBuffered>=this.limit){const e=this.bytesBuffered-this.limit;const t=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=t.subarray(0,t.byteLength-e);this.emit("finish")}o()}};const toUtf8=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)};const fromBase64=e=>{let t=e.length/4*3;if(e.slice(-2)==="=="){t-=2}else if(e.slice(-1)==="="){t--}const o=new ArrayBuffer(t);const i=new DataView(o);for(let t=0;t<e.length;t+=4){let o=0;let a=0;for(let i=t,d=t+3;i<=d;i++){if(e[i]!=="="){if(!(e[i]in xe)){throw new TypeError(`Invalid character ${e[i]} in base64 string.`)}o|=xe[e[i]]<<(d-i)*ve;a+=ve}else{o>>=ve}}const d=t/4*3;o>>=a%Te;const m=Math.floor(a/Te);for(let e=0;e<m;e++){const t=(m-e-1)*Te;i.setUint8(d+e,(o&255<<t)>>t)}}return new Uint8Array(o)};const streamCollector$1=async e=>{if(typeof Blob==="function"&&e instanceof Blob||e.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==undefined){return new Uint8Array(await e.arrayBuffer())}return collectBlob(e)}return collectStream(e)};async function collectBlob(e){const t=await readToBase64(e);const o=fromBase64(t);return new Uint8Array(o)}async function collectStream(e){const t=[];const o=e.getReader();let i=false;let a=0;while(!i){const{done:e,value:d}=await o.read();if(d){t.push(d);a+=d.length}i=e}const d=new Uint8Array(a);let m=0;for(const e of t){d.set(e,m);m+=e.length}return d}function readToBase64(e){return new Promise(((t,o)=>{const i=new FileReader;i.onloadend=()=>{if(i.readyState!==2){return o(new Error("Reader aborted too early"))}const e=i.result??"";const a=e.indexOf(",");const d=a>-1?a+1:e.length;t(e.substring(d))};i.onabort=()=>o(new Error("Read aborted"));i.onerror=()=>o(i.error);i.readAsDataURL(e)}))}const Oe="The stream has already been transformed.";const sdkStreamMixin$1=e=>{if(!isBlobInstance(e)&&!isReadableStream(e)){const t=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${t}`)}let t=false;const transformToByteArray=async()=>{if(t){throw new Error(Oe)}t=true;return await streamCollector$1(e)};const blobToWebStream=e=>{if(typeof e.stream!=="function"){throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\n"+"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 e.stream()};return Object.assign(e,{transformToByteArray:transformToByteArray,transformToString:async e=>{const t=await transformToByteArray();if(e==="base64"){return toBase64(t)}else if(e==="hex"){return toHex(t)}else if(e===undefined||e==="utf8"||e==="utf-8"){return toUtf8(t)}else if(typeof TextDecoder==="function"){return new TextDecoder(e).decode(t)}else{throw new Error("TextDecoder is not available, please make sure polyfill is provided.")}},transformToWebStream:()=>{if(t){throw new Error(Oe)}t=true;if(isBlobInstance(e)){return blobToWebStream(e)}else if(isReadableStream(e)){return e}else{throw new Error(`Cannot transform payload to web stream, got ${e}`)}}})};const isBlobInstance=e=>typeof Blob==="function"&&e instanceof Blob;class Collector extends f.Writable{bufferedBytes=[];_write(e,t,o){this.bufferedBytes.push(e);o()}}const isReadableStreamInstance=e=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function collectReadableStream(e){const t=[];const o=e.getReader();let i=false;let a=0;while(!i){const{done:e,value:d}=await o.read();if(d){t.push(d);a+=d.length}i=e}const d=new Uint8Array(a);let m=0;for(const e of t){d.set(e,m);m+=e.length}return d}const streamCollector=e=>{if(isReadableStreamInstance(e)){return collectReadableStream(e)}return new Promise(((t,o)=>{const i=new Collector;e.pipe(i);e.on("error",(e=>{i.end();o(e)}));i.on("error",o);i.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.bufferedBytes));t(e)}))}))};const ke="The stream has already been transformed.";const sdkStreamMixin=e=>{if(!(e instanceof f.Readable)){try{return sdkStreamMixin$1(e)}catch(t){const o=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${o}`)}}let t=false;const transformToByteArray=async()=>{if(t){throw new Error(ke)}t=true;return await streamCollector(e)};return Object.assign(e,{transformToByteArray:transformToByteArray,transformToString:async e=>{const t=await transformToByteArray();if(e===undefined||Buffer.isEncoding(e)){return fromArrayBuffer(t.buffer,t.byteOffset,t.byteLength).toString(e)}else{const o=new TextDecoder(e);return o.decode(t)}},transformToWebStream:()=>{if(t){throw new Error(ke)}if(e.readableFlowing!==null){throw new Error("The stream has been consumed by other callbacks.")}if(typeof f.Readable.toWeb!=="function"){throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.")}t=true;return f.Readable.toWeb(e)}})};async function splitStream$1(e){if(typeof e.stream==="function"){e=e.stream()}const t=e;return t.tee()}async function splitStream(e){if(isReadableStream(e)||isBlob(e)){return splitStream$1(e)}const t=new f.PassThrough;const o=new f.PassThrough;e.pipe(t);e.pipe(o);return[t,o]}class Uint8ArrayBlobAdapter extends(bindUint8ArrayBlobAdapter(toUtf8$1,fromUtf8$1,toBase64$1,fromBase64$1)){}const Ae=i.getRandomValues;const Ie=bindV4(Ae);const _e=Ie;t.ChecksumStream=Ce;t.Hash=Hash;t.LazyJsonString=oe;t.NumericValue=NumericValue;t.Uint8ArrayBlobAdapter=Uint8ArrayBlobAdapter;t._parseEpochTimestamp=_parseEpochTimestamp;t._parseRfc3339DateTimeWithOffset=_parseRfc3339DateTimeWithOffset;t._parseRfc7231DateTime=_parseRfc7231DateTime;t.calculateBodyLength=calculateBodyLength;t.copyDocumentWithTransform=copyDocumentWithTransform;t.createBufferedReadable=createBufferedReadable;t.createChecksumStream=createChecksumStream;t.dateToUtcString=dateToUtcString;t.deserializerMiddleware=deserializerMiddleware;t.deserializerMiddlewareOption=be;t.expectBoolean=expectBoolean;t.expectByte=expectByte;t.expectFloat32=expectFloat32;t.expectInt=L;t.expectInt32=expectInt32;t.expectLong=expectLong;t.expectNonNull=expectNonNull;t.expectNumber=expectNumber;t.expectObject=expectObject;t.expectShort=expectShort;t.expectString=expectString;t.expectUnion=expectUnion;t.fromArrayBuffer=fromArrayBuffer;t.fromBase64=fromBase64$1;t.fromHex=fromHex;t.fromString=fromString;t.fromUtf8=fromUtf8$1;t.generateIdempotencyToken=_e;t.getAwsChunkedEncodingStream=getAwsChunkedEncodingStream;t.getSerdePlugin=getSerdePlugin;t.handleFloat=H;t.headStream=headStream;t.isArrayBuffer=isArrayBuffer;t.isBlob=isBlob;t.isReadableStream=isReadableStream;t.limitedParseDouble=limitedParseDouble;t.limitedParseFloat=V;t.limitedParseFloat32=limitedParseFloat32;t.logger=W;t.nv=nv;t.parseBoolean=parseBoolean;t.parseEpochTimestamp=parseEpochTimestamp;t.parseRfc3339DateTime=parseRfc3339DateTime;t.parseRfc3339DateTimeWithOffset=parseRfc3339DateTimeWithOffset;t.parseRfc7231DateTime=parseRfc7231DateTime;t.quoteHeader=quoteHeader;t.sdkStreamMixin=sdkStreamMixin;t.serializerMiddleware=serializerMiddleware;t.serializerMiddlewareOption=Se;t.splitEvery=splitEvery;t.splitHeader=splitHeader;t.splitStream=splitStream;t.strictParseByte=strictParseByte;t.strictParseDouble=strictParseDouble;t.strictParseFloat=U;t.strictParseFloat32=strictParseFloat32;t.strictParseInt=K;t.strictParseInt32=strictParseInt32;t.strictParseLong=strictParseLong;t.strictParseShort=strictParseShort;t.toBase64=toBase64$1;t.toHex=toHex;t.toUint8Array=toUint8Array;t.toUtf8=toUtf8$1;t.v4=Ie},86130:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __name=(e,o)=>t(e,"name",{value:o,configurable:true});var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{isArrayBuffer:()=>m});e.exports=__toCommonJS(d);var m=__name((e=>typeof ArrayBuffer==="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]"),"isArrayBuffer");0&&0},61279:(e,t,o)=>{"use strict";var i=o(44708);var a=o(93422);var d=o(57075);var m=o(32467);function buildAbortError(e){const t=e&&typeof e==="object"&&"reason"in e?e.reason:undefined;if(t){if(t instanceof Error){const e=new Error("Request aborted");e.name="AbortError";e.cause=t;return e}const e=new Error(String(t));e.name="AbortError";return e}const o=new Error("Request aborted");o.name="AbortError";return o}const f=["ECONNRESET","EPIPE","ETIMEDOUT"];const getTransformedHeaders=e=>{const t={};for(const o in e){const i=e[o];t[o]=Array.isArray(i)?i.join(","):i}return t};const h={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e)};const P=1e3;const setConnectionTimeout=(e,t,o=0)=>{if(!o){return-1}const registerTimeout=i=>{const a=h.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 ${o} ms.`),{name:"TimeoutError"}))}),o-i);const doWithSocket=e=>{if(e?.connecting){e.on("connect",(()=>{h.clearTimeout(a)}))}else{h.clearTimeout(a)}};if(e.socket){doWithSocket(e.socket)}else{e.on("socket",doWithSocket)}};if(o<2e3){registerTimeout(0);return 0}return h.setTimeout(registerTimeout.bind(null,P),P)};const setRequestTimeout=(e,t,o=0,i,a)=>{if(o){return h.setTimeout((()=>{let d=`@smithy/node-http-handler - [${i?"ERROR":"WARN"}] a request has exceeded the configured ${o} ms requestTimeout.`;if(i){const o=Object.assign(new Error(d),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(o);t(o)}else{d+=` Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.`;a?.warn?.(d)}}),o)}return-1};const _=3e3;const setSocketKeepAlive=(e,{keepAlive:t,keepAliveMsecs:o},i=_)=>{if(t!==true){return-1}const registerListener=()=>{if(e.socket){e.socket.setKeepAlive(t,o||0)}else{e.on("socket",(e=>{e.setKeepAlive(t,o||0)}))}};if(i===0){registerListener();return 0}return h.setTimeout(registerListener,i)};const L=3e3;const setSocketTimeout=(e,t,o=0)=>{const registerTimeout=i=>{const a=o-i;const onTimeout=()=>{e.destroy();t(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${o} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket){e.socket.setTimeout(a,onTimeout);e.on("close",(()=>e.socket?.removeListener("timeout",onTimeout)))}else{e.setTimeout(a,onTimeout)}};if(0<o&&o<6e3){registerTimeout(0);return 0}return h.setTimeout(registerTimeout.bind(null,o===0?0:L),L)};const U=6e3;async function writeRequestBody(e,t,o=U,i=false){const a=t.headers;const d=a?a.Expect||a.expect:undefined;let m=-1;let f=true;if(!i&&d==="100-continue"){f=await Promise.race([new Promise((e=>{m=Number(h.setTimeout((()=>e(true)),Math.max(U,o)))})),new Promise((t=>{e.on("continue",(()=>{h.clearTimeout(m);t(true)}));e.on("response",(()=>{h.clearTimeout(m);t(false)}));e.on("error",(()=>{h.clearTimeout(m);t(false)}))}))])}if(f){writeBody(e,t.body)}}function writeBody(e,t){if(t instanceof d.Readable){t.pipe(e);return}if(t){const o=Buffer.isBuffer(t);const i=typeof t==="string";if(o||i){if(o&&t.byteLength===0){e.end()}else{e.end(t)}return}const a=t;if(typeof a==="object"&&a.buffer&&typeof a.byteOffset==="number"&&typeof a.byteLength==="number"){e.end(Buffer.from(a.buffer,a.byteOffset,a.byteLength));return}e.end(Buffer.from(t));return}e.end()}const j=0;let H=undefined;let V=undefined;class NodeHttpHandler{config;configProvider;socketWarningTimestamp=0;externalAgent=false;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function"){return e}return new NodeHttpHandler(e)}static checkSocketUsage(e,t,o=console){const{sockets:i,requests:a,maxSockets:d}=e;if(typeof d!=="number"||d===Infinity){return t}const m=15e3;if(Date.now()-m<t){return t}if(i&&a){for(const e in i){const t=i[e]?.length??0;const m=a[e]?.length??0;if(t>=d&&m>=2*d){o?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${t} and ${m} additional requests are enqueued.\nSee https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html\nor increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`);return Date.now()}}}return t}constructor(e){this.configProvider=new Promise(((t,o)=>{if(typeof e==="function"){e().then((e=>{t(this.resolveDefaultConfig(e))})).catch(o)}else{t(this.resolveDefaultConfig(e))}}))}destroy(){this.config?.httpAgent?.destroy();this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:o}={}){if(!this.config){this.config=await this.configProvider}const d=this.config;const m=e.protocol==="https:";if(!m&&!this.config.httpAgent){this.config.httpAgent=await this.config.httpAgentProvider()}return new Promise(((P,_)=>{let L=undefined;let U=-1;let j=-1;let K=-1;let W=-1;let X=-1;const clearTimeouts=()=>{h.clearTimeout(U);h.clearTimeout(j);h.clearTimeout(K);h.clearTimeout(W);h.clearTimeout(X)};const resolve=async e=>{await L;clearTimeouts();P(e)};const reject=async e=>{await L;clearTimeouts();_(e)};if(t?.aborted){const e=buildAbortError(t);reject(e);return}const Q=e.headers;const Y=Q?(Q.Expect??Q.expect)==="100-continue":false;let J=m?d.httpsAgent:d.httpAgent;if(Y&&!this.externalAgent){J=new(m?i.Agent:H)({keepAlive:false,maxSockets:Infinity})}U=h.setTimeout((()=>{this.socketWarningTimestamp=NodeHttpHandler.checkSocketUsage(J,this.socketWarningTimestamp,d.logger)}),d.socketAcquisitionWarningTimeout??(d.requestTimeout??2e3)+(d.connectionTimeout??1e3));const Z=e.query?a.buildQueryString(e.query):"";let ee=undefined;if(e.username!=null||e.password!=null){const t=e.username??"";const o=e.password??"";ee=`${t}:${o}`}let te=e.path;if(Z){te+=`?${Z}`}if(e.fragment){te+=`#${e.fragment}`}let ne=e.hostname??"";if(ne[0]==="["&&ne.endsWith("]")){ne=e.hostname.slice(1,-1)}else{ne=e.hostname}const re={headers:e.headers,host:ne,method:e.method,path:te,port:e.port,agent:J,auth:ee};const oe=m?i.request:V;const ie=oe(re,(e=>{const t=new a.HttpResponse({statusCode:e.statusCode||-1,reason:e.statusMessage,headers:getTransformedHeaders(e.headers),body:e});resolve({response:t})}));ie.on("error",(e=>{if(f.includes(e.code)){reject(Object.assign(e,{name:"TimeoutError"}))}else{reject(e)}}));if(t){const onAbort=()=>{ie.destroy();const e=buildAbortError(t);reject(e)};if(typeof t.addEventListener==="function"){const e=t;e.addEventListener("abort",onAbort,{once:true});ie.once("close",(()=>e.removeEventListener("abort",onAbort)))}else{t.onabort=onAbort}}const se=o??d.requestTimeout;j=setConnectionTimeout(ie,reject,d.connectionTimeout);K=setRequestTimeout(ie,reject,se,d.throwOnRequestTimeout,d.logger??console);W=setSocketTimeout(ie,reject,d.socketTimeout);const ae=re.agent;if(typeof ae==="object"&&"keepAlive"in ae){X=setSocketKeepAlive(ie,{keepAlive:ae.keepAlive,keepAliveMsecs:ae.keepAliveMsecs})}L=writeRequestBody(ie,e,se,this.externalAgent).catch((e=>{clearTimeouts();return _(e)}))}))}updateHttpClientConfig(e,t){this.config=undefined;this.configProvider=this.configProvider.then((o=>({...o,[e]:t})))}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){const{requestTimeout:t,connectionTimeout:a,socketTimeout:d,socketAcquisitionWarningTimeout:m,httpAgent:f,httpsAgent:h,throwOnRequestTimeout:P,logger:_}=e||{};const L=true;const U=50;return{connectionTimeout:a,requestTimeout:t,socketTimeout:d,socketAcquisitionWarningTimeout:m,throwOnRequestTimeout:P,httpAgentProvider:async()=>{const{Agent:e,request:t}=await Promise.resolve().then(o.t.bind(o,37067,23));V=t;H=e;if(f instanceof H||typeof f?.destroy==="function"){this.externalAgent=true;return f}return new H({keepAlive:L,maxSockets:U,...f})},httpsAgent:(()=>{if(h instanceof i.Agent||typeof h?.destroy==="function"){this.externalAgent=true;return h}return new i.Agent({keepAlive:L,maxSockets:U,...h})})(),logger:_}}}const K=new Uint16Array(1);class ClientHttp2SessionRef{id=K[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref();this.session=e}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){return}this.refs-=1;if(this.refs===0){this.session.unref()}if(this.refs<0){throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}}deref(){return this.session}close(){if(!this.session.closed){this.session.close()}}destroy(){this.refs=0;if(!this.session.destroyed){this.session.destroy()}}useCount(){return this.refs}}class NodeHttp2ConnectionPool{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((e=>new ClientHttp2SessionRef(e)))}poll(){let e=false;for(const t of this.sessions){if(t.deref().destroyed){e=true;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency){return t}}if(e){for(const e of this.sessions){if(e.deref().destroyed){this.remove(e)}}}}offerLast(e){this.sessions.push(e)}remove(e){const t=this.sessions.indexOf(e);if(t>-1){this.sessions.splice(t,1)}}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e);e.destroy()}}class NodeHttp2ConnectionManager{config;connectOptions;connectionPools=new Map;constructor(e){this.config=e;if(this.config.maxConcurrency&&this.config.maxConcurrency<=0){throw new RangeError("maxConcurrency must be greater than zero.")}}lease(e,t){const o=this.getUrlString(e);const i=this.getPool(o);if(!this.config.disableConcurrency&&!t.isEventStream){const e=i.poll();if(e){e.retain();return e}}const a=new ClientHttp2SessionRef(this.connect(o));const d=a.deref();if(this.config.maxConcurrency){d.settings({maxConcurrentStreams:this.config.maxConcurrency},(t=>{if(t){throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())}}))}const graceful=()=>{this.removeFromPoolAndClose(o,a)};const ensureDestroyed=()=>{this.removeFromPoolAndCheckedDestroy(o,a)};d.on("goaway",graceful);d.on("error",ensureDestroyed);d.on("frameError",ensureDestroyed);d.on("close",ensureDestroyed);if(t.requestTimeout){d.setTimeout(t.requestTimeout,ensureDestroyed)}i.offerLast(a);a.retain();return a}release(e,t){t.free()}createIsolatedSession(e,t){const o=this.getUrlString(e);const i=new ClientHttp2SessionRef(this.connect(o));const a=i.deref();a.settings({maxConcurrentStreams:1});const ensureDestroyed=()=>{i.destroy()};a.on("error",ensureDestroyed);a.on("frameError",ensureDestroyed);a.on("close",ensureDestroyed);if(t.requestTimeout){a.setTimeout(t.requestTimeout,ensureDestroyed)}i.retain();return i}destroy(){for(const[e,t]of this.connectionPools){for(const e of[...t]){e.destroy()}this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0){throw new RangeError("maxConcurrentStreams must be greater than zero.")}this.config.maxConcurrency=e;for(const t of this.connectionPools.values()){t.setMaxConcurrency(e)}}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){const e={};for(const[t,o]of this.connectionPools){const i=[];for(const e of o){i.push({id:e.id,active:e.useCount(),maxConcurrent:e.max,totalRequests:e.total})}e[t]={sessions:i}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t);t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t);t.destroy()}getPool(e){if(!this.connectionPools.has(e)){const t=new NodeHttp2ConnectionPool;if(this.config.maxConcurrency){t.setMaxConcurrency(this.config.maxConcurrency)}this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===undefined?m.connect(e):m.connect(e,this.connectOptions)}}class NodeHttp2Handler{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new NodeHttp2ConnectionManager({});static create(e){if(typeof e?.handle==="function"){return e}return new NodeHttp2Handler(e)}constructor(e){this.configProvider=new Promise(((t,o)=>{if(typeof e==="function"){e().then((e=>{t(e||{})})).catch(o)}else{t(e||{})}}))}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:o,isEventStream:i}={}){if(!this.config){this.config=await this.configProvider;const{disableConcurrentStreams:e,maxConcurrentStreams:t,nodeHttp2ConnectOptions:o}=this.config;this.connectionManager.setDisableConcurrentStreams(e??false);if(t){this.connectionManager.setMaxConcurrentStreams(t)}if(o){this.connectionManager.setNodeHttp2ConnectOptions(o)}}const{requestTimeout:d,disableConcurrentStreams:f}=this.config;const h=f||i;const P=o??d;return new Promise(((o,d)=>{let f=false;let _=undefined;const resolve=async e=>{await _;o(e)};const reject=async e=>{await _;d(e)};if(t?.aborted){f=true;const e=buildAbortError(t);reject(e);return}const{hostname:L,method:U,port:j,protocol:H,query:V}=e;let K="";if(e.username!=null||e.password!=null){const t=e.username??"";const o=e.password??"";K=`${t}:${o}@`}const W=`${H}//${K}${L}${j?`:${j}`:""}`;const X={destination:new URL(W)};const Q={requestTimeout:this.config?.sessionTimeout,isEventStream:i};const Y=h?this.connectionManager.createIsolatedSession(X,Q):this.connectionManager.lease(X,Q);const J=Y.deref();const rejectWithDestroy=e=>{if(h){Y.destroy()}f=true;reject(e)};const Z=V?a.buildQueryString(V):"";let ee=e.path;if(Z){ee+=`?${Z}`}if(e.fragment){ee+=`#${e.fragment}`}const te=J.request({...e.headers,[m.constants.HTTP2_HEADER_PATH]:ee,[m.constants.HTTP2_HEADER_METHOD]:U});if(P){te.setTimeout(P,(()=>{te.close();const e=new Error(`Stream timed out because of no activity for ${P} ms`);e.name="TimeoutError";rejectWithDestroy(e)}))}if(t){const onAbort=()=>{te.close();const e=buildAbortError(t);rejectWithDestroy(e)};if(typeof t.addEventListener==="function"){const e=t;e.addEventListener("abort",onAbort,{once:true});te.once("close",(()=>e.removeEventListener("abort",onAbort)))}else{t.onabort=onAbort}}te.on("frameError",((e,t,o)=>{rejectWithDestroy(new Error(`Frame type id ${e} in stream id ${o} has failed with code ${t}.`))}));te.on("error",rejectWithDestroy);te.on("aborted",(()=>{rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${te.rstCode}.`))}));te.on("response",(e=>{const t=new a.HttpResponse({statusCode:e[":status"]??-1,headers:getTransformedHeaders(e),body:te});f=true;resolve({response:t});if(h){J.close()}}));te.on("close",(()=>{if(h){Y.destroy()}else{this.connectionManager.release(X,Y)}if(!f){rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"))}}));_=writeRequestBody(te,e,P)}))}updateHttpClientConfig(e,t){this.config=undefined;this.configProvider=this.configProvider.then((o=>({...o,[e]:t})))}httpHandlerConfigs(){return this.config??{}}}class Collector extends d.Writable{bufferedBytes=[];_write(e,t,o){this.bufferedBytes.push(e);o()}}const streamCollector=e=>{if(isReadableStreamInstance(e)){return collectReadableStream(e)}return new Promise(((t,o)=>{const i=new Collector;e.pipe(i);e.on("error",(e=>{i.end();o(e)}));i.on("error",o);i.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.bufferedBytes));t(e)}))}))};const isReadableStreamInstance=e=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function collectReadableStream(e){const t=[];const o=e.getReader();let i=false;let a=0;while(!i){const{done:e,value:d}=await o.read();if(d){t.push(d);a+=d.length}i=e}const d=new Uint8Array(a);let m=0;for(const e of t){d.set(e,m);m+=e.length}return d}t.DEFAULT_REQUEST_TIMEOUT=j;t.NodeHttp2Handler=NodeHttp2Handler;t.NodeHttpHandler=NodeHttpHandler;t.streamCollector=streamCollector},75118:(e,t,o)=>{"use strict";var i=o(92430);var a=o(92658);var d=o(93422);class HeaderFormatter{format(e){const t=[];for(const o of Object.keys(e)){const a=i.fromUtf8(o);t.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[o]))}const o=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let a=0;for(const e of t){o.set(e,a);a+=e.byteLength}return o}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));t.setUint8(0,3);t.setInt16(1,e.value,false);return new Uint8Array(t.buffer);case"integer":const o=new DataView(new ArrayBuffer(5));o.setUint8(0,4);o.setInt32(1,e.value,false);return new Uint8Array(o.buffer);case"long":const a=new Uint8Array(9);a[0]=5;a.set(e.value.bytes,1);return a;case"binary":const d=new DataView(new ArrayBuffer(3+e.value.byteLength));d.setUint8(0,6);d.setUint16(1,e.value.byteLength,false);const m=new Uint8Array(d.buffer);m.set(e.value,3);return m;case"string":const h=i.fromUtf8(e.value);const P=new DataView(new ArrayBuffer(3+h.byteLength));P.setUint8(0,7);P.setUint16(1,h.byteLength,false);const _=new Uint8Array(P.buffer);_.set(h,3);return _;case"timestamp":const L=new Uint8Array(9);L[0]=8;L.set(Int64.fromNumber(e.value.valueOf()).bytes,1);return L;case"uuid":if(!f.test(e.value)){throw new Error(`Invalid UUID received: ${e.value}`)}const U=new Uint8Array(17);U[0]=9;U.set(i.fromHex(e.value.replace(/\-/g,"")),1);return U}}}var m;(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"})(m||(m={}));const f=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Int64{bytes;constructor(e){this.bytes=e;if(e.byteLength!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000){throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`)}const t=new Uint8Array(8);for(let o=7,i=Math.abs(Math.round(e));o>-1&&i>0;o--,i/=256){t[o]=i}if(e<0){negate(t)}return new Int64(t)}valueOf(){const e=this.bytes.slice(0);const t=e[0]&128;if(t){negate(e)}return parseInt(i.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function negate(e){for(let t=0;t<8;t++){e[t]^=255}for(let t=7;t>-1;t--){e[t]++;if(e[t]!==0)break}}const h="X-Amz-Algorithm";const P="X-Amz-Credential";const _="X-Amz-Date";const L="X-Amz-SignedHeaders";const U="X-Amz-Expires";const j="X-Amz-Signature";const H="X-Amz-Security-Token";const V="X-Amz-Region-Set";const K="authorization";const W=_.toLowerCase();const X="date";const Q=[K,W,X];const Y=j.toLowerCase();const J="x-amz-content-sha256";const Z=H.toLowerCase();const ee="host";const te={authorization:true,"cache-control":true,connection:true,expect:true,from:true,"keep-alive":true,"max-forwards":true,pragma:true,referer:true,te:true,trailer:true,"transfer-encoding":true,upgrade:true,"user-agent":true,"x-amzn-trace-id":true};const ne=/^proxy-/;const re=/^sec-/;const oe=[/^proxy-/i,/^sec-/i];const ie="AWS4-HMAC-SHA256";const se="AWS4-ECDSA-P256-SHA256";const ae="AWS4-HMAC-SHA256-PAYLOAD";const ce="UNSIGNED-PAYLOAD";const le=50;const ue="aws4_request";const de=60*60*24*7;const getCanonicalQuery=({query:e={}})=>{const t=[];const o={};for(const i of Object.keys(e)){if(i.toLowerCase()===Y){continue}const a=d.escapeUri(i);t.push(a);const m=e[i];if(typeof m==="string"){o[a]=`${a}=${d.escapeUri(m)}`}else if(Array.isArray(m)){o[a]=m.slice(0).reduce(((e,t)=>e.concat([`${a}=${d.escapeUri(t)}`])),[]).sort().join("&")}}return t.sort().map((e=>o[e])).filter((e=>e)).join("&")};const iso8601=e=>toDate(e).toISOString().replace(/\.\d{3}Z$/,"Z");const toDate=e=>{if(typeof e==="number"){return new Date(e*1e3)}if(typeof e==="string"){if(Number(e)){return new Date(Number(e)*1e3)}return new Date(e)}return e};class SignatureV4Base{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:o,service:i,sha256:d,uriEscapePath:m=true}){this.service=i;this.sha256=d;this.uriEscapePath=m;this.applyChecksum=typeof e==="boolean"?e:true;this.regionProvider=a.normalizeProvider(o);this.credentialProvider=a.normalizeProvider(t)}createCanonicalRequest(e,t,o){const i=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${getCanonicalQuery(e)}\n${i.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${i.join(";")}\n${o}`}async createStringToSign(e,t,o,a){const d=new this.sha256;d.update(i.toUint8Array(o));const m=await d.digest();return`${a}\n${e}\n${t}\n${i.toHex(m)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const o of e.split("/")){if(o?.length===0)continue;if(o===".")continue;if(o===".."){t.pop()}else{t.push(o)}}const o=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;const i=d.escapeUri(o);return i.replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string"){throw new Error("Resolved credential object is not valid")}}formatDate(e){const t=iso8601(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}const pe={};const me=[];const createScope=(e,t,o)=>`${e}/${t}/${o}/${ue}`;const getSigningKey=async(e,t,o,a,d)=>{const m=await hmac(e,t.secretAccessKey,t.accessKeyId);const f=`${o}:${a}:${d}:${i.toHex(m)}:${t.sessionToken}`;if(f in pe){return pe[f]}me.push(f);while(me.length>le){delete pe[me.shift()]}let h=`AWS4${t.secretAccessKey}`;for(const t of[o,a,d,ue]){h=await hmac(e,h,t)}return pe[f]=h};const clearCredentialCache=()=>{me.length=0;Object.keys(pe).forEach((e=>{delete pe[e]}))};const hmac=(e,t,o)=>{const a=new e(t);a.update(i.toUint8Array(o));return a.digest()};const getCanonicalHeaders=({headers:e},t,o)=>{const i={};for(const a of Object.keys(e).sort()){if(e[a]==undefined){continue}const d=a.toLowerCase();if(d in te||t?.has(d)||ne.test(d)||re.test(d)){if(!o||o&&!o.has(d)){continue}}i[d]=e[a].trim().replace(/\s+/g," ")}return i};const getPayloadHash=async({headers:e,body:t},o)=>{for(const t of Object.keys(e)){if(t.toLowerCase()===J){return e[t]}}if(t==undefined){return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}else if(typeof t==="string"||ArrayBuffer.isView(t)||i.isArrayBuffer(t)){const e=new o;e.update(i.toUint8Array(t));return i.toHex(await e.digest())}return ce};const hasHeader=(e,t)=>{e=e.toLowerCase();for(const o of Object.keys(t)){if(e===o.toLowerCase()){return true}}return false};const moveHeadersToQuery=(e,t={})=>{const{headers:o,query:i={}}=d.HttpRequest.clone(e);for(const e of Object.keys(o)){const a=e.toLowerCase();if(a.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(a)||t.hoistableHeaders?.has(a)){i[e]=o[e];delete o[e]}}return{...e,headers:o,query:i}};const prepareRequest=e=>{e=d.HttpRequest.clone(e);for(const t of Object.keys(e.headers)){if(Q.indexOf(t.toLowerCase())>-1){delete e.headers[t]}}return e};class SignatureV4 extends SignatureV4Base{headerFormatter=new HeaderFormatter;constructor({applyChecksum:e,credentials:t,region:o,service:i,sha256:a,uriEscapePath:d=true}){super({applyChecksum:e,credentials:t,region:o,service:i,sha256:a,uriEscapePath:d})}async presign(e,t={}){const{signingDate:o=new Date,expiresIn:i=3600,unsignableHeaders:a,unhoistableHeaders:d,signableHeaders:m,hoistableHeaders:f,signingRegion:V,signingService:K}=t;const W=await this.credentialProvider();this.validateResolvedCredentials(W);const X=V??await this.regionProvider();const{longDate:Q,shortDate:Y}=this.formatDate(o);if(i>de){return Promise.reject("Signature version 4 presigned URLs"+" must have an expiration date less than one week in"+" the future")}const J=createScope(Y,X,K??this.service);const Z=moveHeadersToQuery(prepareRequest(e),{unhoistableHeaders:d,hoistableHeaders:f});if(W.sessionToken){Z.query[H]=W.sessionToken}Z.query[h]=ie;Z.query[P]=`${W.accessKeyId}/${J}`;Z.query[_]=Q;Z.query[U]=i.toString(10);const ee=getCanonicalHeaders(Z,a,m);Z.query[L]=this.getCanonicalHeaderList(ee);Z.query[j]=await this.getSignature(Q,J,this.getSigningKey(W,X,Y,K),this.createCanonicalRequest(Z,ee,await getPayloadHash(e,this.sha256)));return Z}async sign(e,t){if(typeof e==="string"){return this.signString(e,t)}else if(e.headers&&e.payload){return this.signEvent(e,t)}else if(e.message){return this.signMessage(e,t)}else{return this.signRequest(e,t)}}async signEvent({headers:e,payload:t},{signingDate:o=new Date,priorSignature:a,signingRegion:d,signingService:m,eventStreamCredentials:f}){const h=d??await this.regionProvider();const{shortDate:P,longDate:_}=this.formatDate(o);const L=createScope(P,h,m??this.service);const U=await getPayloadHash({headers:{},body:t},this.sha256);const j=new this.sha256;j.update(e);const H=i.toHex(await j.digest());const V=[ae,_,L,a,H,U].join("\n");return this.signString(V,{signingDate:o,signingRegion:h,signingService:m,eventStreamCredentials:f})}async signMessage(e,{signingDate:t=new Date,signingRegion:o,signingService:i,eventStreamCredentials:a}){const d=this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:o,signingService:i,priorSignature:e.priorSignature,eventStreamCredentials:a});return d.then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:o,signingService:a,eventStreamCredentials:d}={}){const m=d??await this.credentialProvider();this.validateResolvedCredentials(m);const f=o??await this.regionProvider();const{shortDate:h}=this.formatDate(t);const P=new this.sha256(await this.getSigningKey(m,f,h,a));P.update(i.toUint8Array(e));return i.toHex(await P.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:o,unsignableHeaders:i,signingRegion:a,signingService:d}={}){const m=await this.credentialProvider();this.validateResolvedCredentials(m);const f=a??await this.regionProvider();const h=prepareRequest(e);const{longDate:P,shortDate:_}=this.formatDate(t);const L=createScope(_,f,d??this.service);h.headers[W]=P;if(m.sessionToken){h.headers[Z]=m.sessionToken}const U=await getPayloadHash(h,this.sha256);if(!hasHeader(J,h.headers)&&this.applyChecksum){h.headers[J]=U}const j=getCanonicalHeaders(h,i,o);const H=await this.getSignature(P,L,this.getSigningKey(m,f,_,d),this.createCanonicalRequest(h,j,U));h.headers[K]=`${ie} `+`Credential=${m.accessKeyId}/${L}, `+`SignedHeaders=${this.getCanonicalHeaderList(j)}, `+`Signature=${H}`;return h}async getSignature(e,t,o,a){const d=await this.createStringToSign(e,t,a,ie);const m=new this.sha256(await o);m.update(i.toUint8Array(d));return i.toHex(await m.digest())}getSigningKey(e,t,o,i){return getSigningKey(this.sha256,e,o,t,i||this.service)}}const fe={SignatureV4a:null};t.ALGORITHM_IDENTIFIER=ie;t.ALGORITHM_IDENTIFIER_V4A=se;t.ALGORITHM_QUERY_PARAM=h;t.ALWAYS_UNSIGNABLE_HEADERS=te;t.AMZ_DATE_HEADER=W;t.AMZ_DATE_QUERY_PARAM=_;t.AUTH_HEADER=K;t.CREDENTIAL_QUERY_PARAM=P;t.DATE_HEADER=X;t.EVENT_ALGORITHM_IDENTIFIER=ae;t.EXPIRES_QUERY_PARAM=U;t.GENERATED_HEADERS=Q;t.HOST_HEADER=ee;t.KEY_TYPE_IDENTIFIER=ue;t.MAX_CACHE_SIZE=le;t.MAX_PRESIGNED_TTL=de;t.PROXY_HEADER_PATTERN=ne;t.REGION_SET_PARAM=V;t.SEC_HEADER_PATTERN=re;t.SHA256_HEADER=J;t.SIGNATURE_HEADER=Y;t.SIGNATURE_QUERY_PARAM=j;t.SIGNED_HEADERS_QUERY_PARAM=L;t.SignatureV4=SignatureV4;t.SignatureV4Base=SignatureV4Base;t.TOKEN_HEADER=Z;t.TOKEN_QUERY_PARAM=H;t.UNSIGNABLE_PATTERNS=oe;t.UNSIGNED_PAYLOAD=ce;t.clearCredentialCache=clearCredentialCache;t.createScope=createScope;t.getCanonicalHeaders=getCanonicalHeaders;t.getCanonicalQuery=getCanonicalQuery;t.getPayloadHash=getPayloadHash;t.getSigningKey=getSigningKey;t.hasHeader=hasHeader;t.moveHeadersToQuery=moveHeadersToQuery;t.prepareRequest=prepareRequest;t.signatureV4aContainer=fe},90690:(e,t)=>{"use strict";t.HttpAuthLocation=void 0;(function(e){e["HEADER"]="header";e["QUERY"]="query"})(t.HttpAuthLocation||(t.HttpAuthLocation={}));t.HttpApiKeyAuthLocation=void 0;(function(e){e["HEADER"]="header";e["QUERY"]="query"})(t.HttpApiKeyAuthLocation||(t.HttpApiKeyAuthLocation={}));t.EndpointURLScheme=void 0;(function(e){e["HTTP"]="http";e["HTTPS"]="https"})(t.EndpointURLScheme||(t.EndpointURLScheme={}));t.AlgorithmId=void 0;(function(e){e["MD5"]="md5";e["CRC32"]="crc32";e["CRC32C"]="crc32c";e["SHA1"]="sha1";e["SHA256"]="sha256"})(t.AlgorithmId||(t.AlgorithmId={}));const getChecksumConfiguration=e=>{const o=[];if(e.sha256!==undefined){o.push({algorithmId:()=>t.AlgorithmId.SHA256,checksumConstructor:()=>e.sha256})}if(e.md5!=undefined){o.push({algorithmId:()=>t.AlgorithmId.MD5,checksumConstructor:()=>e.md5})}return{addChecksumAlgorithm(e){o.push(e)},checksumAlgorithms(){return o}}};const resolveChecksumRuntimeConfig=e=>{const t={};e.checksumAlgorithms().forEach((e=>{t[e.algorithmId()]=e.checksumConstructor()}));return t};const getDefaultClientConfiguration=e=>getChecksumConfiguration(e);const resolveDefaultRuntimeConfig=e=>resolveChecksumRuntimeConfig(e);t.FieldPosition=void 0;(function(e){e[e["HEADER"]=0]="HEADER";e[e["TRAILER"]=1]="TRAILER"})(t.FieldPosition||(t.FieldPosition={}));const o="__smithy_context";t.IniSectionType=void 0;(function(e){e["PROFILE"]="profile";e["SSO_SESSION"]="sso-session";e["SERVICES"]="services"})(t.IniSectionType||(t.IniSectionType={}));t.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"})(t.RequestHandlerProtocol||(t.RequestHandlerProtocol={}));t.SMITHY_CONTEXT_KEY=o;t.getDefaultClientConfiguration=getDefaultClientConfiguration;t.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig},44151:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __name=(e,t)=>i(e,"name",{value:t,configurable:true});var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{fromArrayBuffer:()=>_,fromString:()=>L});e.exports=__toCommonJS(f);var h=o(86130);var P=o(20181);var _=__name(((e,t=0,o=e.byteLength-t)=>{if(!(0,h.isArrayBuffer)(e)){throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`)}return P.Buffer.from(e,t,o)}),"fromArrayBuffer");var L=__name(((e,t)=>{if(typeof e!=="string"){throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`)}return t?P.Buffer.from(e,t):P.Buffer.from(e)}),"fromString");0&&0},71577:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __name=(e,t)=>i(e,"name",{value:t,configurable:true});var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{fromUtf8:()=>P,toUint8Array:()=>_,toUtf8:()=>L});e.exports=__toCommonJS(f);var h=o(44151);var P=__name((e=>{const t=(0,h.fromString)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)}),"fromUtf8");var _=__name((e=>{if(typeof e==="string"){return P(e)}if(ArrayBuffer.isView(e)){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)}return new Uint8Array(e)}),"toUint8Array");var L=__name((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,h.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8")}),"toUtf8");0&&0},15183:function(e,t,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,o,i){if(i===undefined)i=o;var a=Object.getOwnPropertyDescriptor(t,o);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,i,a)}:function(e,t,o,i){if(i===undefined)i=o;e[i]=t[o]});var a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o))i(t,e,o);a(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.req=t.json=t.toBuffer=void 0;const m=d(o(58611));const f=d(o(65692));async function toBuffer(e){let t=0;const o=[];for await(const i of e){t+=i.length;o.push(i)}return Buffer.concat(o,t)}t.toBuffer=toBuffer;async function json(e){const t=await toBuffer(e);const o=t.toString("utf8");try{return JSON.parse(o)}catch(e){const t=e;t.message+=` (input: ${o})`;throw t}}t.json=json;function req(e,t={}){const o=typeof e==="string"?e:e.href;const i=(o.startsWith("https:")?f:m).request(e,t);const a=new Promise(((e,t)=>{i.once("response",e).once("error",t).end()}));i.then=a.then.bind(a);return i}t.req=req},98894:function(e,t,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,o,i){if(i===undefined)i=o;var a=Object.getOwnPropertyDescriptor(t,o);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,i,a)}:function(e,t,o,i){if(i===undefined)i=o;e[i]=t[o]});var a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o))i(t,e,o);a(t,e);return t};var m=this&&this.__exportStar||function(e,t){for(var o in e)if(o!=="default"&&!Object.prototype.hasOwnProperty.call(t,o))i(t,e,o)};Object.defineProperty(t,"__esModule",{value:true});t.Agent=void 0;const f=d(o(69278));const h=d(o(58611));const P=o(65692);m(o(15183),t);const _=Symbol("AgentBaseInternalState");class Agent extends h.Agent{constructor(e){super(e);this[_]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:t}=new Error;if(typeof t!=="string")return false;return t.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}incrementSockets(e){if(this.maxSockets===Infinity&&this.maxTotalSockets===Infinity){return null}if(!this.sockets[e]){this.sockets[e]=[]}const t=new f.Socket({writable:false});this.sockets[e].push(t);this.totalSocketCount++;return t}decrementSockets(e,t){if(!this.sockets[e]||t===null){return}const o=this.sockets[e];const i=o.indexOf(t);if(i!==-1){o.splice(i,1);this.totalSocketCount--;if(o.length===0){delete this.sockets[e]}}}getName(e){const t=this.isSecureEndpoint(e);if(t){return P.Agent.prototype.getName.call(this,e)}return super.getName(e)}createSocket(e,t,o){const i={...t,secureEndpoint:this.isSecureEndpoint(t)};const a=this.getName(i);const d=this.incrementSockets(a);Promise.resolve().then((()=>this.connect(e,i))).then((m=>{this.decrementSockets(a,d);if(m instanceof h.Agent){try{return m.addRequest(e,i)}catch(e){return o(e)}}this[_].currentSocket=m;super.createSocket(e,t,o)}),(e=>{this.decrementSockets(a,d);o(e)}))}createConnection(){const e=this[_].currentSocket;this[_].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[_].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[_]){this[_].defaultPort=e}}get protocol(){return this[_].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[_]){this[_].protocol=e}}}t.Agent=Agent},840:e=>{const t=Symbol("arg flag");class ArgError extends Error{constructor(e,t){super(e);this.name="ArgError";this.code=t;Object.setPrototypeOf(this,ArgError.prototype)}}function arg(e,{argv:o=process.argv.slice(2),permissive:i=false,stopAtPositional:a=false}={}){if(!e){throw new ArgError("argument specification object is required","ARG_CONFIG_NO_SPEC")}const d={_:[]};const m={};const f={};for(const o of Object.keys(e)){if(!o){throw new ArgError("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY")}if(o[0]!=="-"){throw new ArgError(`argument key must start with '-' but found: '${o}'`,"ARG_CONFIG_NONOPT_KEY")}if(o.length===1){throw new ArgError(`argument key must have a name; singular '-' keys are not allowed: ${o}`,"ARG_CONFIG_NONAME_KEY")}if(typeof e[o]==="string"){m[o]=e[o];continue}let i=e[o];let a=false;if(Array.isArray(i)&&i.length===1&&typeof i[0]==="function"){const[e]=i;i=(t,o,i=[])=>{i.push(e(t,o,i[i.length-1]));return i};a=e===Boolean||e[t]===true}else if(typeof i==="function"){a=i===Boolean||i[t]===true}else{throw new ArgError(`type missing or not a function or valid array type: ${o}`,"ARG_CONFIG_VAD_TYPE")}if(o[1]!=="-"&&o.length>2){throw new ArgError(`short argument keys (with a single hyphen) must have only one character: ${o}`,"ARG_CONFIG_SHORTOPT_TOOLONG")}f[o]=[i,a]}for(let e=0,t=o.length;e<t;e++){const t=o[e];if(a&&d._.length>0){d._=d._.concat(o.slice(e));break}if(t==="--"){d._=d._.concat(o.slice(e+1));break}if(t.length>1&&t[0]==="-"){const a=t[1]==="-"||t.length===2?[t]:t.slice(1).split("").map((e=>`-${e}`));for(let t=0;t<a.length;t++){const h=a[t];const[P,_]=h[1]==="-"?h.split(/=(.*)/,2):[h,undefined];let L=P;while(L in m){L=m[L]}if(!(L in f)){if(i){d._.push(h);continue}else{throw new ArgError(`unknown or unexpected option: ${P}`,"ARG_UNKNOWN_OPTION")}}const[U,j]=f[L];if(!j&&t+1<a.length){throw new ArgError(`option requires argument (but was followed by another short argument): ${P}`,"ARG_MISSING_REQUIRED_SHORTARG")}if(j){d[L]=U(true,L,d[L])}else if(_===undefined){if(o.length<e+2||o[e+1].length>1&&o[e+1][0]==="-"&&!(o[e+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(U===Number||typeof BigInt!=="undefined"&&U===BigInt))){const e=P===L?"":` (alias for ${L})`;throw new ArgError(`option requires argument: ${P}${e}`,"ARG_MISSING_REQUIRED_LONGARG")}d[L]=U(o[e+1],L,d[L]);++e}else{d[L]=U(_,L,d[L])}}}else{d._.push(t)}}return d}arg.flag=e=>{e[t]=true;return e};arg.COUNT=arg.flag(((e,t,o)=>(o||0)+1));arg.ArgError=ArgError;e.exports=arg},15781:(e,t,o)=>{"use strict";e=o.nmd(e);const wrapAnsi16=(e,t)=>(...o)=>{const i=e(...o);return`[${i+t}m`};const wrapAnsi256=(e,t)=>(...o)=>{const i=e(...o);return`[${38+t};5;${i}m`};const wrapAnsi16m=(e,t)=>(...o)=>{const i=e(...o);return`[${38+t};2;${i[0]};${i[1]};${i[2]}m`};const ansi2ansi=e=>e;const rgb2rgb=(e,t,o)=>[e,t,o];const setLazyProperty=(e,t,o)=>{Object.defineProperty(e,t,{get:()=>{const i=o();Object.defineProperty(e,t,{value:i,enumerable:true,configurable:true});return i},enumerable:true,configurable:true})};let i;const makeDynamicStyles=(e,t,a,d)=>{if(i===undefined){i=o(94185)}const m=d?10:0;const f={};for(const[o,d]of Object.entries(i)){const i=o==="ansi16"?"ansi":o;if(o===t){f[i]=e(a,m)}else if(typeof d==="object"){f[i]=e(d[t],m)}}return f};function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright;t.bgColor.bgGray=t.bgColor.bgBlackBright;t.color.grey=t.color.blackBright;t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[o,i]of Object.entries(t)){for(const[o,a]of Object.entries(i)){t[o]={open:`[${a[0]}m`,close:`[${a[1]}m`};i[o]=t[o];e.set(a[0],a[1])}Object.defineProperty(t,o,{value:i,enumerable:false})}Object.defineProperty(t,"codes",{value:e,enumerable:false});t.color.close="[39m";t.bgColor.close="[49m";setLazyProperty(t.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(t.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(t.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(t.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},80465:(e,t,o)=>{"use strict";const i=o(15781);const{stdout:a,stderr:d}=o(21450);const{stringReplaceAll:m,stringEncaseCRLFWithFirstIndex:f}=o(78809);const{isArray:h}=Array;const P=["ansi","ansi","ansi256","ansi16m"];const _=Object.create(null);const applyOptions=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const o=a?a.level:0;e.level=t.level===undefined?o:t.level};class ChalkClass{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const t={};applyOptions(t,e);t.template=(...e)=>chalkTag(t.template,...e);Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")};t.template.Instance=ChalkClass;return t.template};function Chalk(e){return chalkFactory(e)}for(const[e,t]of Object.entries(i)){_[e]={get(){const o=createBuilder(this,createStyler(t.open,t.close,this._styler),this._isEmpty);Object.defineProperty(this,e,{value:o});return o}}}_.visible={get(){const e=createBuilder(this,this._styler,true);Object.defineProperty(this,"visible",{value:e});return e}};const L=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of L){_[e]={get(){const{level:t}=this;return function(...o){const a=createStyler(i.color[P[t]][e](...o),i.color.close,this._styler);return createBuilder(this,a,this._isEmpty)}}}}for(const e of L){const t="bg"+e[0].toUpperCase()+e.slice(1);_[t]={get(){const{level:t}=this;return function(...o){const a=createStyler(i.bgColor[P[t]][e](...o),i.bgColor.close,this._styler);return createBuilder(this,a,this._isEmpty)}}}}const U=Object.defineProperties((()=>{}),{..._,level:{enumerable:true,get(){return this._generator.level},set(e){this._generator.level=e}}});const createStyler=(e,t,o)=>{let i;let a;if(o===undefined){i=e;a=t}else{i=o.openAll+e;a=t+o.closeAll}return{open:e,close:t,openAll:i,closeAll:a,parent:o}};const createBuilder=(e,t,o)=>{const builder=(...e)=>{if(h(e[0])&&h(e[0].raw)){return applyStyle(builder,chalkTag(builder,...e))}return applyStyle(builder,e.length===1?""+e[0]:e.join(" "))};Object.setPrototypeOf(builder,U);builder._generator=e;builder._styler=t;builder._isEmpty=o;return builder};const applyStyle=(e,t)=>{if(e.level<=0||!t){return e._isEmpty?"":t}let o=e._styler;if(o===undefined){return t}const{openAll:i,closeAll:a}=o;if(t.indexOf("")!==-1){while(o!==undefined){t=m(t,o.close,o.open);o=o.parent}}const d=t.indexOf("\n");if(d!==-1){t=f(t,a,i,d)}return i+t+a};let j;const chalkTag=(e,...t)=>{const[i]=t;if(!h(i)||!h(i.raw)){return t.join(" ")}const a=t.slice(1);const d=[i.raw[0]];for(let e=1;e<i.length;e++){d.push(String(a[e-1]).replace(/[{}\\]/g,"\\$&"),String(i.raw[e]))}if(j===undefined){j=o(44670)}return j(e,d.join(""))};Object.defineProperties(Chalk.prototype,_);const H=Chalk();H.supportsColor=a;H.stderr=Chalk({level:d?d.level:0});H.stderr.supportsColor=d;e.exports=H},44670:e=>{"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const o=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const a=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;const d=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){const t=e[0]==="u";const o=e[1]==="{";if(t&&!o&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}if(t&&o){return String.fromCodePoint(parseInt(e.slice(2,-1),16))}return d.get(e)||e}function parseArguments(e,t){const o=[];const d=t.trim().split(/\s*,\s*/g);let m;for(const t of d){const d=Number(t);if(!Number.isNaN(d)){o.push(d)}else if(m=t.match(i)){o.push(m[2].replace(a,((e,t,o)=>t?unescape(t):o)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return o}function parseStyle(e){o.lastIndex=0;const t=[];let i;while((i=o.exec(e))!==null){const e=i[1];if(i[2]){const o=parseArguments(e,i[2]);t.push([e].concat(o))}else{t.push([e])}}return t}function buildStyle(e,t){const o={};for(const e of t){for(const t of e.styles){o[t[0]]=e.inverse?null:t.slice(1)}}let i=e;for(const[e,t]of Object.entries(o)){if(!Array.isArray(t)){continue}if(!(e in i)){throw new Error(`Unknown Chalk style: ${e}`)}i=t.length>0?i[e](...t):i[e]}return i}e.exports=(e,o)=>{const i=[];const a=[];let d=[];o.replace(t,((t,o,m,f,h,P)=>{if(o){d.push(unescape(o))}else if(f){const t=d.join("");d=[];a.push(i.length===0?t:buildStyle(e,i)(t));i.push({inverse:m,styles:parseStyle(f)})}else if(h){if(i.length===0){throw new Error("Found extraneous } in Chalk template literal")}a.push(buildStyle(e,i)(d.join("")));d=[];i.pop()}else{d.push(P)}}));a.push(d.join(""));if(i.length>0){const e=`Chalk template literal is missing ${i.length} closing bracket${i.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return a.join("")}},78809:e=>{"use strict";const stringReplaceAll=(e,t,o)=>{let i=e.indexOf(t);if(i===-1){return e}const a=t.length;let d=0;let m="";do{m+=e.substr(d,i-d)+t+o;d=i+a;i=e.indexOf(t,d)}while(i!==-1);m+=e.substr(d);return m};const stringEncaseCRLFWithFirstIndex=(e,t,o,i)=>{let a=0;let d="";do{const m=e[i-1]==="\r";d+=e.substr(a,(m?i-1:i)-a)+t+(m?"\r\n":"\n")+o;a=i+1;i=e.indexOf("\n",a)}while(i!==-1);d+=e.substr(a);return d};e.exports={stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex}},39552:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ClassTransformer=void 0;const i=o(95291);const a=o(82446);const d=o(81161);class ClassTransformer{instanceToPlain(e,t){const o=new i.TransformOperationExecutor(a.TransformationType.CLASS_TO_PLAIN,{...d.defaultOptions,...t});return o.transform(undefined,e,undefined,undefined,undefined,undefined)}classToPlainFromExist(e,t,o){const m=new i.TransformOperationExecutor(a.TransformationType.CLASS_TO_PLAIN,{...d.defaultOptions,...o});return m.transform(t,e,undefined,undefined,undefined,undefined)}plainToInstance(e,t,o){const m=new i.TransformOperationExecutor(a.TransformationType.PLAIN_TO_CLASS,{...d.defaultOptions,...o});return m.transform(undefined,t,e,undefined,undefined,undefined)}plainToClassFromExist(e,t,o){const m=new i.TransformOperationExecutor(a.TransformationType.PLAIN_TO_CLASS,{...d.defaultOptions,...o});return m.transform(e,t,undefined,undefined,undefined,undefined)}instanceToInstance(e,t){const o=new i.TransformOperationExecutor(a.TransformationType.CLASS_TO_CLASS,{...d.defaultOptions,...t});return o.transform(undefined,e,undefined,undefined,undefined,undefined)}classToClassFromExist(e,t,o){const m=new i.TransformOperationExecutor(a.TransformationType.CLASS_TO_CLASS,{...d.defaultOptions,...o});return m.transform(t,e,undefined,undefined,undefined,undefined)}serialize(e,t){return JSON.stringify(this.instanceToPlain(e,t))}deserialize(e,t,o){const i=JSON.parse(t);return this.plainToInstance(e,i,o)}deserializeArray(e,t,o){const i=JSON.parse(t);return this.plainToInstance(e,i,o)}}t.ClassTransformer=ClassTransformer},1665:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MetadataStorage=void 0;const i=o(82446);class MetadataStorage{constructor(){this._typeMetadatas=new Map;this._transformMetadatas=new Map;this._exposeMetadatas=new Map;this._excludeMetadatas=new Map;this._ancestorsMap=new Map}addTypeMetadata(e){if(!this._typeMetadatas.has(e.target)){this._typeMetadatas.set(e.target,new Map)}this._typeMetadatas.get(e.target).set(e.propertyName,e)}addTransformMetadata(e){if(!this._transformMetadatas.has(e.target)){this._transformMetadatas.set(e.target,new Map)}if(!this._transformMetadatas.get(e.target).has(e.propertyName)){this._transformMetadatas.get(e.target).set(e.propertyName,[])}this._transformMetadatas.get(e.target).get(e.propertyName).push(e)}addExposeMetadata(e){if(!this._exposeMetadatas.has(e.target)){this._exposeMetadatas.set(e.target,new Map)}this._exposeMetadatas.get(e.target).set(e.propertyName,e)}addExcludeMetadata(e){if(!this._excludeMetadatas.has(e.target)){this._excludeMetadatas.set(e.target,new Map)}this._excludeMetadatas.get(e.target).set(e.propertyName,e)}findTransformMetadatas(e,t,o){return this.findMetadatas(this._transformMetadatas,e,t).filter((e=>{if(!e.options)return true;if(e.options.toClassOnly===true&&e.options.toPlainOnly===true)return true;if(e.options.toClassOnly===true){return o===i.TransformationType.CLASS_TO_CLASS||o===i.TransformationType.PLAIN_TO_CLASS}if(e.options.toPlainOnly===true){return o===i.TransformationType.CLASS_TO_PLAIN}return true}))}findExcludeMetadata(e,t){return this.findMetadata(this._excludeMetadatas,e,t)}findExposeMetadata(e,t){return this.findMetadata(this._exposeMetadatas,e,t)}findExposeMetadataByCustomName(e,t){return this.getExposedMetadatas(e).find((e=>e.options&&e.options.name===t))}findTypeMetadata(e,t){return this.findMetadata(this._typeMetadatas,e,t)}getStrategy(e){const t=this._excludeMetadatas.get(e);const o=t&&t.get(undefined);const i=this._exposeMetadatas.get(e);const a=i&&i.get(undefined);if(o&&a||!o&&!a)return"none";return o?"excludeAll":"exposeAll"}getExposedMetadatas(e){return this.getMetadata(this._exposeMetadatas,e)}getExcludedMetadatas(e){return this.getMetadata(this._excludeMetadatas,e)}getExposedProperties(e,t){return this.getExposedMetadatas(e).filter((e=>{if(!e.options)return true;if(e.options.toClassOnly===true&&e.options.toPlainOnly===true)return true;if(e.options.toClassOnly===true){return t===i.TransformationType.CLASS_TO_CLASS||t===i.TransformationType.PLAIN_TO_CLASS}if(e.options.toPlainOnly===true){return t===i.TransformationType.CLASS_TO_PLAIN}return true})).map((e=>e.propertyName))}getExcludedProperties(e,t){return this.getExcludedMetadatas(e).filter((e=>{if(!e.options)return true;if(e.options.toClassOnly===true&&e.options.toPlainOnly===true)return true;if(e.options.toClassOnly===true){return t===i.TransformationType.CLASS_TO_CLASS||t===i.TransformationType.PLAIN_TO_CLASS}if(e.options.toPlainOnly===true){return t===i.TransformationType.CLASS_TO_PLAIN}return true})).map((e=>e.propertyName))}clear(){this._typeMetadatas.clear();this._exposeMetadatas.clear();this._excludeMetadatas.clear();this._ancestorsMap.clear()}getMetadata(e,t){const o=e.get(t);let i;if(o){i=Array.from(o.values()).filter((e=>e.propertyName!==undefined))}const a=[];for(const o of this.getAncestors(t)){const t=e.get(o);if(t){const e=Array.from(t.values()).filter((e=>e.propertyName!==undefined));a.push(...e)}}return a.concat(i||[])}findMetadata(e,t,o){const i=e.get(t);if(i){const e=i.get(o);if(e){return e}}for(const i of this.getAncestors(t)){const t=e.get(i);if(t){const e=t.get(o);if(e){return e}}}return undefined}findMetadatas(e,t,o){const i=e.get(t);let a;if(i){a=i.get(o)}const d=[];for(const i of this.getAncestors(t)){const t=e.get(i);if(t){if(t.has(o)){d.push(...t.get(o))}}}return d.slice().reverse().concat((a||[]).slice().reverse())}getAncestors(e){if(!e)return[];if(!this._ancestorsMap.has(e)){const t=[];for(let o=Object.getPrototypeOf(e.prototype.constructor);typeof o.prototype!=="undefined";o=Object.getPrototypeOf(o.prototype.constructor)){t.push(o)}this._ancestorsMap.set(e,t)}return this._ancestorsMap.get(e)}}t.MetadataStorage=MetadataStorage},95291:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TransformOperationExecutor=void 0;const i=o(80306);const a=o(82446);const d=o(91693);function instantiateArrayType(e){const t=new e;if(!(t instanceof Set)&&!("push"in t)){return[]}return t}class TransformOperationExecutor{constructor(e,t){this.transformationType=e;this.options=t;this.recursionStack=new Set}transform(e,t,o,m,f,h=0){if(Array.isArray(t)||t instanceof Set){const i=m&&this.transformationType===a.TransformationType.PLAIN_TO_CLASS?instantiateArrayType(m):[];t.forEach(((t,d)=>{const m=e?e[d]:undefined;if(!this.options.enableCircularCheck||!this.isCircular(t)){let e;if(typeof o!=="function"&&o&&o.options&&o.options.discriminator&&o.options.discriminator.property&&o.options.discriminator.subTypes){if(this.transformationType===a.TransformationType.PLAIN_TO_CLASS){e=o.options.discriminator.subTypes.find((e=>e.name===t[o.options.discriminator.property]));const a={newObject:i,object:t,property:undefined};const d=o.typeFunction(a);e===undefined?e=d:e=e.value;if(!o.options.keepDiscriminatorProperty)delete t[o.options.discriminator.property]}if(this.transformationType===a.TransformationType.CLASS_TO_CLASS){e=t.constructor}if(this.transformationType===a.TransformationType.CLASS_TO_PLAIN){t[o.options.discriminator.property]=o.options.discriminator.subTypes.find((e=>e.value===t.constructor)).name}}else{e=o}const d=this.transform(m,t,e,undefined,t instanceof Map,h+1);if(i instanceof Set){i.add(d)}else{i.push(d)}}else if(this.transformationType===a.TransformationType.CLASS_TO_CLASS){if(i instanceof Set){i.add(t)}else{i.push(t)}}}));return i}else if(o===String&&!f){if(t===null||t===undefined)return t;return String(t)}else if(o===Number&&!f){if(t===null||t===undefined)return t;return Number(t)}else if(o===Boolean&&!f){if(t===null||t===undefined)return t;return Boolean(t)}else if((o===Date||t instanceof Date)&&!f){if(t instanceof Date){return new Date(t.valueOf())}if(t===null||t===undefined)return t;return new Date(t)}else if(!!(0,d.getGlobal)().Buffer&&(o===Buffer||t instanceof Buffer)&&!f){if(t===null||t===undefined)return t;return Buffer.from(t)}else if((0,d.isPromise)(t)&&!f){return new Promise(((e,i)=>{t.then((t=>e(this.transform(undefined,t,o,undefined,undefined,h+1))),i)}))}else if(!f&&t!==null&&typeof t==="object"&&typeof t.then==="function"){return t}else if(typeof t==="object"&&t!==null){if(!o&&t.constructor!==Object)if(!Array.isArray(t)&&t.constructor===Array){}else{o=t.constructor}if(!o&&e)o=e.constructor;if(this.options.enableCircularCheck){this.recursionStack.add(t)}const d=this.getKeys(o,t,f);let m=e?e:{};if(!e&&(this.transformationType===a.TransformationType.PLAIN_TO_CLASS||this.transformationType===a.TransformationType.CLASS_TO_CLASS)){if(f){m=new Map}else if(o){m=new o}else{m={}}}for(const P of d){if(P==="__proto__"||P==="constructor"){continue}const d=P;let _=P,L=P;if(!this.options.ignoreDecorators&&o){if(this.transformationType===a.TransformationType.PLAIN_TO_CLASS){const e=i.defaultMetadataStorage.findExposeMetadataByCustomName(o,P);if(e){L=e.propertyName;_=e.propertyName}}else if(this.transformationType===a.TransformationType.CLASS_TO_PLAIN||this.transformationType===a.TransformationType.CLASS_TO_CLASS){const e=i.defaultMetadataStorage.findExposeMetadata(o,P);if(e&&e.options&&e.options.name){_=e.options.name}}}let U=undefined;if(this.transformationType===a.TransformationType.PLAIN_TO_CLASS){U=t[d]}else{if(t instanceof Map){U=t.get(d)}else if(t[d]instanceof Function){U=t[d]()}else{U=t[d]}}let j=undefined,H=U instanceof Map;if(o&&f){j=o}else if(o){const e=i.defaultMetadataStorage.findTypeMetadata(o,L);if(e){const o={newObject:m,object:t,property:L};const i=e.typeFunction?e.typeFunction(o):e.reflectedType;if(e.options&&e.options.discriminator&&e.options.discriminator.property&&e.options.discriminator.subTypes){if(!(t[d]instanceof Array)){if(this.transformationType===a.TransformationType.PLAIN_TO_CLASS){j=e.options.discriminator.subTypes.find((t=>{if(U&&U instanceof Object&&e.options.discriminator.property in U){return t.name===U[e.options.discriminator.property]}}));j===undefined?j=i:j=j.value;if(!e.options.keepDiscriminatorProperty){if(U&&U instanceof Object&&e.options.discriminator.property in U){delete U[e.options.discriminator.property]}}}if(this.transformationType===a.TransformationType.CLASS_TO_CLASS){j=U.constructor}if(this.transformationType===a.TransformationType.CLASS_TO_PLAIN){if(U){U[e.options.discriminator.property]=e.options.discriminator.subTypes.find((e=>e.value===U.constructor)).name}}}else{j=e}}else{j=i}H=H||e.reflectedType===Map}else if(this.options.targetMaps){this.options.targetMaps.filter((e=>e.target===o&&!!e.properties[L])).forEach((e=>j=e.properties[L]))}else if(this.options.enableImplicitConversion&&this.transformationType===a.TransformationType.PLAIN_TO_CLASS){const e=Reflect.getMetadata("design:type",o.prototype,L);if(e){j=e}}}const V=Array.isArray(t[d])?this.getReflectedType(o,L):undefined;const K=e?e[d]:undefined;if(m.constructor.prototype){const e=Object.getOwnPropertyDescriptor(m.constructor.prototype,_);if((this.transformationType===a.TransformationType.PLAIN_TO_CLASS||this.transformationType===a.TransformationType.CLASS_TO_CLASS)&&(e&&!e.set||m[_]instanceof Function))continue}if(!this.options.enableCircularCheck||!this.isCircular(U)){const e=this.transformationType===a.TransformationType.PLAIN_TO_CLASS?_:P;let i;if(this.transformationType===a.TransformationType.CLASS_TO_PLAIN){i=t[e];i=this.applyCustomTransformations(i,o,e,t,this.transformationType);i=t[e]===i?U:i;i=this.transform(K,i,j,V,H,h+1)}else{if(U===undefined&&this.options.exposeDefaultValues){i=m[_]}else{i=this.transform(K,U,j,V,H,h+1);i=this.applyCustomTransformations(i,o,e,t,this.transformationType)}}if(i!==undefined||this.options.exposeUnsetFields){if(m instanceof Map){m.set(_,i)}else{m[_]=i}}}else if(this.transformationType===a.TransformationType.CLASS_TO_CLASS){let e=U;e=this.applyCustomTransformations(e,o,P,t,this.transformationType);if(e!==undefined||this.options.exposeUnsetFields){if(m instanceof Map){m.set(_,e)}else{m[_]=e}}}}if(this.options.enableCircularCheck){this.recursionStack.delete(t)}return m}else{return t}}applyCustomTransformations(e,t,o,a,d){let m=i.defaultMetadataStorage.findTransformMetadatas(t,o,this.transformationType);if(this.options.version!==undefined){m=m.filter((e=>{if(!e.options)return true;return this.checkVersion(e.options.since,e.options.until)}))}if(this.options.groups&&this.options.groups.length){m=m.filter((e=>{if(!e.options)return true;return this.checkGroups(e.options.groups)}))}else{m=m.filter((e=>!e.options||!e.options.groups||!e.options.groups.length))}m.forEach((t=>{e=t.transformFn({value:e,key:o,obj:a,type:d,options:this.options})}));return e}isCircular(e){return this.recursionStack.has(e)}getReflectedType(e,t){if(!e)return undefined;const o=i.defaultMetadataStorage.findTypeMetadata(e,t);return o?o.reflectedType:undefined}getKeys(e,t,o){let d=i.defaultMetadataStorage.getStrategy(e);if(d==="none")d=this.options.strategy||"exposeAll";let m=[];if(d==="exposeAll"||o){if(t instanceof Map){m=Array.from(t.keys())}else{m=Object.keys(t)}}if(o){return m}if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&e){const t=i.defaultMetadataStorage.getExposedProperties(e,this.transformationType);const o=i.defaultMetadataStorage.getExcludedProperties(e,this.transformationType);m=[...t,...o]}if(!this.options.ignoreDecorators&&e){let t=i.defaultMetadataStorage.getExposedProperties(e,this.transformationType);if(this.transformationType===a.TransformationType.PLAIN_TO_CLASS){t=t.map((t=>{const o=i.defaultMetadataStorage.findExposeMetadata(e,t);if(o&&o.options&&o.options.name){return o.options.name}return t}))}if(this.options.excludeExtraneousValues){m=t}else{m=m.concat(t)}const o=i.defaultMetadataStorage.getExcludedProperties(e,this.transformationType);if(o.length>0){m=m.filter((e=>!o.includes(e)))}if(this.options.version!==undefined){m=m.filter((t=>{const o=i.defaultMetadataStorage.findExposeMetadata(e,t);if(!o||!o.options)return true;return this.checkVersion(o.options.since,o.options.until)}))}if(this.options.groups&&this.options.groups.length){m=m.filter((t=>{const o=i.defaultMetadataStorage.findExposeMetadata(e,t);if(!o||!o.options)return true;return this.checkGroups(o.options.groups)}))}else{m=m.filter((t=>{const o=i.defaultMetadataStorage.findExposeMetadata(e,t);return!o||!o.options||!o.options.groups||!o.options.groups.length}))}}if(this.options.excludePrefixes&&this.options.excludePrefixes.length){m=m.filter((e=>this.options.excludePrefixes.every((t=>e.substr(0,t.length)!==t))))}m=m.filter(((e,t,o)=>o.indexOf(e)===t));return m}checkVersion(e,t){let o=true;if(o&&e)o=this.options.version>=e;if(o&&t)o=this.options.version<t;return o}checkGroups(e){if(!e)return true;return this.options.groups.some((t=>e.includes(t)))}}t.TransformOperationExecutor=TransformOperationExecutor},81161:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultOptions=void 0;t.defaultOptions={enableCircularCheck:false,enableImplicitConversion:false,excludeExtraneousValues:false,excludePrefixes:undefined,exposeDefaultValues:false,exposeUnsetFields:true,groups:undefined,ignoreDecorators:false,strategy:undefined,targetMaps:undefined,version:undefined}},19463:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Exclude=void 0;const i=o(80306);function Exclude(e={}){return function(t,o){i.defaultMetadataStorage.addExcludeMetadata({target:t instanceof Function?t:t.constructor,propertyName:o,options:e})}}t.Exclude=Exclude},61787:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Expose=void 0;const i=o(80306);function Expose(e={}){return function(t,o){i.defaultMetadataStorage.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:o,options:e})}}t.Expose=Expose},42854:function(e,t,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,o,i){if(i===undefined)i=o;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,i){if(i===undefined)i=o;e[i]=t[o]});var a=this&&this.__exportStar||function(e,t){for(var o in e)if(o!=="default"&&!Object.prototype.hasOwnProperty.call(t,o))i(t,e,o)};Object.defineProperty(t,"__esModule",{value:true});a(o(19463),t);a(o(61787),t);a(o(49461),t);a(o(97174),t);a(o(36258),t);a(o(385),t);a(o(91715),t)},49461:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TransformInstanceToInstance=void 0;const i=o(39552);function TransformInstanceToInstance(e){return function(t,o,a){const d=new i.ClassTransformer;const m=a.value;a.value=function(...t){const o=m.apply(this,t);const i=!!o&&(typeof o==="object"||typeof o==="function")&&typeof o.then==="function";return i?o.then((t=>d.instanceToInstance(t,e))):d.instanceToInstance(o,e)}}}t.TransformInstanceToInstance=TransformInstanceToInstance},97174:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TransformInstanceToPlain=void 0;const i=o(39552);function TransformInstanceToPlain(e){return function(t,o,a){const d=new i.ClassTransformer;const m=a.value;a.value=function(...t){const o=m.apply(this,t);const i=!!o&&(typeof o==="object"||typeof o==="function")&&typeof o.then==="function";return i?o.then((t=>d.instanceToPlain(t,e))):d.instanceToPlain(o,e)}}}t.TransformInstanceToPlain=TransformInstanceToPlain},36258:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TransformPlainToInstance=void 0;const i=o(39552);function TransformPlainToInstance(e,t){return function(o,a,d){const m=new i.ClassTransformer;const f=d.value;d.value=function(...o){const i=f.apply(this,o);const a=!!i&&(typeof i==="object"||typeof i==="function")&&typeof i.then==="function";return a?i.then((o=>m.plainToInstance(e,o,t))):m.plainToInstance(e,i,t)}}}t.TransformPlainToInstance=TransformPlainToInstance},385:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Transform=void 0;const i=o(80306);function Transform(e,t={}){return function(o,a){i.defaultMetadataStorage.addTransformMetadata({target:o.constructor,propertyName:a,transformFn:e,options:t})}}t.Transform=Transform},91715:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Type=void 0;const i=o(80306);function Type(e,t={}){return function(o,a){const d=Reflect.getMetadata("design:type",o,a);i.defaultMetadataStorage.addTypeMetadata({target:o.constructor,propertyName:a,reflectedType:d,typeFunction:e,options:t})}}t.Type=Type},82446:function(e,t,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,o,i){if(i===undefined)i=o;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,i){if(i===undefined)i=o;e[i]=t[o]});var a=this&&this.__exportStar||function(e,t){for(var o in e)if(o!=="default"&&!Object.prototype.hasOwnProperty.call(t,o))i(t,e,o)};Object.defineProperty(t,"__esModule",{value:true});a(o(42435),t)},42435:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TransformationType=void 0;var o;(function(e){e[e["PLAIN_TO_CLASS"]=0]="PLAIN_TO_CLASS";e[e["CLASS_TO_PLAIN"]=1]="CLASS_TO_PLAIN";e[e["CLASS_TO_CLASS"]=2]="CLASS_TO_CLASS"})(o=t.TransformationType||(t.TransformationType={}))},40451:function(e,t,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,o,i){if(i===undefined)i=o;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,i){if(i===undefined)i=o;e[i]=t[o]});var a=this&&this.__exportStar||function(e,t){for(var o in e)if(o!=="default"&&!Object.prototype.hasOwnProperty.call(t,o))i(t,e,o)};Object.defineProperty(t,"__esModule",{value:true});t.deserializeArray=t.deserialize=t.serialize=t.classToClassFromExist=t.instanceToInstance=t.plainToClassFromExist=t.plainToInstance=t.plainToClass=t.classToPlainFromExist=t.instanceToPlain=t.classToPlain=t.ClassTransformer=void 0;const d=o(39552);var m=o(39552);Object.defineProperty(t,"ClassTransformer",{enumerable:true,get:function(){return m.ClassTransformer}});a(o(42854),t);a(o(6400),t);a(o(82446),t);const f=new d.ClassTransformer;function classToPlain(e,t){return f.instanceToPlain(e,t)}t.classToPlain=classToPlain;function instanceToPlain(e,t){return f.instanceToPlain(e,t)}t.instanceToPlain=instanceToPlain;function classToPlainFromExist(e,t,o){return f.classToPlainFromExist(e,t,o)}t.classToPlainFromExist=classToPlainFromExist;function plainToClass(e,t,o){return f.plainToInstance(e,t,o)}t.plainToClass=plainToClass;function plainToInstance(e,t,o){return f.plainToInstance(e,t,o)}t.plainToInstance=plainToInstance;function plainToClassFromExist(e,t,o){return f.plainToClassFromExist(e,t,o)}t.plainToClassFromExist=plainToClassFromExist;function instanceToInstance(e,t){return f.instanceToInstance(e,t)}t.instanceToInstance=instanceToInstance;function classToClassFromExist(e,t,o){return f.classToClassFromExist(e,t,o)}t.classToClassFromExist=classToClassFromExist;function serialize(e,t){return f.serialize(e,t)}t.serialize=serialize;function deserialize(e,t,o){return f.deserialize(e,t,o)}t.deserialize=deserialize;function deserializeArray(e,t,o){return f.deserializeArray(e,t,o)}t.deserializeArray=deserializeArray},93159:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},74196:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},60165:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},77023:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},2315:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},34597:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},73715:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},6400:function(e,t,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,o,i){if(i===undefined)i=o;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,i){if(i===undefined)i=o;e[i]=t[o]});var a=this&&this.__exportStar||function(e,t){for(var o in e)if(o!=="default"&&!Object.prototype.hasOwnProperty.call(t,o))i(t,e,o)};Object.defineProperty(t,"__esModule",{value:true});a(o(77023),t);a(o(60165),t);a(o(2315),t);a(o(34597),t);a(o(73715),t);a(o(69991),t);a(o(79995),t);a(o(61973),t);a(o(71413),t);a(o(41387),t);a(o(93159),t);a(o(74196),t);a(o(42549),t);a(o(52334),t)},69991:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},79995:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},71413:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},61973:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},41387:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},42549:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},52334:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},80306:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultMetadataStorage=void 0;const i=o(1665);t.defaultMetadataStorage=new i.MetadataStorage},59091:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getGlobal=void 0;function getGlobal(){if(typeof globalThis!=="undefined"){return globalThis}if(typeof global!=="undefined"){return global}if(typeof window!=="undefined"){return window}if(typeof self!=="undefined"){return self}}t.getGlobal=getGlobal},91693:function(e,t,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,o,i){if(i===undefined)i=o;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,i){if(i===undefined)i=o;e[i]=t[o]});var a=this&&this.__exportStar||function(e,t){for(var o in e)if(o!=="default"&&!Object.prototype.hasOwnProperty.call(t,o))i(t,e,o)};Object.defineProperty(t,"__esModule",{value:true});a(o(59091),t);a(o(40879),t)},40879:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isPromise=void 0;function isPromise(e){return e!==null&&typeof e==="object"&&typeof e.then==="function"}t.isPromise=isPromise},36872:(e,t,o)=>{const i=o(84953);const a={};for(const e of Object.keys(i)){a[i[e]]=e}const d={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=d;for(const e of Object.keys(d)){if(!("channels"in d[e])){throw new Error("missing channels property: "+e)}if(!("labels"in d[e])){throw new Error("missing channel labels property: "+e)}if(d[e].labels.length!==d[e].channels){throw new Error("channel and label counts mismatch: "+e)}const{channels:t,labels:o}=d[e];delete d[e].channels;delete d[e].labels;Object.defineProperty(d[e],"channels",{value:t});Object.defineProperty(d[e],"labels",{value:o})}d.rgb.hsl=function(e){const t=e[0]/255;const o=e[1]/255;const i=e[2]/255;const a=Math.min(t,o,i);const d=Math.max(t,o,i);const m=d-a;let f;let h;if(d===a){f=0}else if(t===d){f=(o-i)/m}else if(o===d){f=2+(i-t)/m}else if(i===d){f=4+(t-o)/m}f=Math.min(f*60,360);if(f<0){f+=360}const P=(a+d)/2;if(d===a){h=0}else if(P<=.5){h=m/(d+a)}else{h=m/(2-d-a)}return[f,h*100,P*100]};d.rgb.hsv=function(e){let t;let o;let i;let a;let d;const m=e[0]/255;const f=e[1]/255;const h=e[2]/255;const P=Math.max(m,f,h);const _=P-Math.min(m,f,h);const diffc=function(e){return(P-e)/6/_+1/2};if(_===0){a=0;d=0}else{d=_/P;t=diffc(m);o=diffc(f);i=diffc(h);if(m===P){a=i-o}else if(f===P){a=1/3+t-i}else if(h===P){a=2/3+o-t}if(a<0){a+=1}else if(a>1){a-=1}}return[a*360,d*100,P*100]};d.rgb.hwb=function(e){const t=e[0];const o=e[1];let i=e[2];const a=d.rgb.hsl(e)[0];const m=1/255*Math.min(t,Math.min(o,i));i=1-1/255*Math.max(t,Math.max(o,i));return[a,m*100,i*100]};d.rgb.cmyk=function(e){const t=e[0]/255;const o=e[1]/255;const i=e[2]/255;const a=Math.min(1-t,1-o,1-i);const d=(1-t-a)/(1-a)||0;const m=(1-o-a)/(1-a)||0;const f=(1-i-a)/(1-a)||0;return[d*100,m*100,f*100,a*100]};function comparativeDistance(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}d.rgb.keyword=function(e){const t=a[e];if(t){return t}let o=Infinity;let d;for(const t of Object.keys(i)){const a=i[t];const m=comparativeDistance(e,a);if(m<o){o=m;d=t}}return d};d.keyword.rgb=function(e){return i[e]};d.rgb.xyz=function(e){let t=e[0]/255;let o=e[1]/255;let i=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92;o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;const a=t*.4124+o*.3576+i*.1805;const d=t*.2126+o*.7152+i*.0722;const m=t*.0193+o*.1192+i*.9505;return[a*100,d*100,m*100]};d.rgb.lab=function(e){const t=d.rgb.xyz(e);let o=t[0];let i=t[1];let a=t[2];o/=95.047;i/=100;a/=108.883;o=o>.008856?o**(1/3):7.787*o+16/116;i=i>.008856?i**(1/3):7.787*i+16/116;a=a>.008856?a**(1/3):7.787*a+16/116;const m=116*i-16;const f=500*(o-i);const h=200*(i-a);return[m,f,h]};d.hsl.rgb=function(e){const t=e[0]/360;const o=e[1]/100;const i=e[2]/100;let a;let d;let m;if(o===0){m=i*255;return[m,m,m]}if(i<.5){a=i*(1+o)}else{a=i+o-i*o}const f=2*i-a;const h=[0,0,0];for(let e=0;e<3;e++){d=t+1/3*-(e-1);if(d<0){d++}if(d>1){d--}if(6*d<1){m=f+(a-f)*6*d}else if(2*d<1){m=a}else if(3*d<2){m=f+(a-f)*(2/3-d)*6}else{m=f}h[e]=m*255}return h};d.hsl.hsv=function(e){const t=e[0];let o=e[1]/100;let i=e[2]/100;let a=o;const d=Math.max(i,.01);i*=2;o*=i<=1?i:2-i;a*=d<=1?d:2-d;const m=(i+o)/2;const f=i===0?2*a/(d+a):2*o/(i+o);return[t,f*100,m*100]};d.hsv.rgb=function(e){const t=e[0]/60;const o=e[1]/100;let i=e[2]/100;const a=Math.floor(t)%6;const d=t-Math.floor(t);const m=255*i*(1-o);const f=255*i*(1-o*d);const h=255*i*(1-o*(1-d));i*=255;switch(a){case 0:return[i,h,m];case 1:return[f,i,m];case 2:return[m,i,h];case 3:return[m,f,i];case 4:return[h,m,i];case 5:return[i,m,f]}};d.hsv.hsl=function(e){const t=e[0];const o=e[1]/100;const i=e[2]/100;const a=Math.max(i,.01);let d;let m;m=(2-o)*i;const f=(2-o)*a;d=o*a;d/=f<=1?f:2-f;d=d||0;m/=2;return[t,d*100,m*100]};d.hwb.rgb=function(e){const t=e[0]/360;let o=e[1]/100;let i=e[2]/100;const a=o+i;let d;if(a>1){o/=a;i/=a}const m=Math.floor(6*t);const f=1-i;d=6*t-m;if((m&1)!==0){d=1-d}const h=o+d*(f-o);let P;let _;let L;switch(m){default:case 6:case 0:P=f;_=h;L=o;break;case 1:P=h;_=f;L=o;break;case 2:P=o;_=f;L=h;break;case 3:P=o;_=h;L=f;break;case 4:P=h;_=o;L=f;break;case 5:P=f;_=o;L=h;break}return[P*255,_*255,L*255]};d.cmyk.rgb=function(e){const t=e[0]/100;const o=e[1]/100;const i=e[2]/100;const a=e[3]/100;const d=1-Math.min(1,t*(1-a)+a);const m=1-Math.min(1,o*(1-a)+a);const f=1-Math.min(1,i*(1-a)+a);return[d*255,m*255,f*255]};d.xyz.rgb=function(e){const t=e[0]/100;const o=e[1]/100;const i=e[2]/100;let a;let d;let m;a=t*3.2406+o*-1.5372+i*-.4986;d=t*-.9689+o*1.8758+i*.0415;m=t*.0557+o*-.204+i*1.057;a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92;d=d>.0031308?1.055*d**(1/2.4)-.055:d*12.92;m=m>.0031308?1.055*m**(1/2.4)-.055:m*12.92;a=Math.min(Math.max(0,a),1);d=Math.min(Math.max(0,d),1);m=Math.min(Math.max(0,m),1);return[a*255,d*255,m*255]};d.xyz.lab=function(e){let t=e[0];let o=e[1];let i=e[2];t/=95.047;o/=100;i/=108.883;t=t>.008856?t**(1/3):7.787*t+16/116;o=o>.008856?o**(1/3):7.787*o+16/116;i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*o-16;const d=500*(t-o);const m=200*(o-i);return[a,d,m]};d.lab.xyz=function(e){const t=e[0];const o=e[1];const i=e[2];let a;let d;let m;d=(t+16)/116;a=o/500+d;m=d-i/200;const f=d**3;const h=a**3;const P=m**3;d=f>.008856?f:(d-16/116)/7.787;a=h>.008856?h:(a-16/116)/7.787;m=P>.008856?P:(m-16/116)/7.787;a*=95.047;d*=100;m*=108.883;return[a,d,m]};d.lab.lch=function(e){const t=e[0];const o=e[1];const i=e[2];let a;const d=Math.atan2(i,o);a=d*360/2/Math.PI;if(a<0){a+=360}const m=Math.sqrt(o*o+i*i);return[t,m,a]};d.lch.lab=function(e){const t=e[0];const o=e[1];const i=e[2];const a=i/360*2*Math.PI;const d=o*Math.cos(a);const m=o*Math.sin(a);return[t,d,m]};d.rgb.ansi16=function(e,t=null){const[o,i,a]=e;let m=t===null?d.rgb.hsv(e)[2]:t;m=Math.round(m/50);if(m===0){return 30}let f=30+(Math.round(a/255)<<2|Math.round(i/255)<<1|Math.round(o/255));if(m===2){f+=60}return f};d.hsv.ansi16=function(e){return d.rgb.ansi16(d.hsv.rgb(e),e[2])};d.rgb.ansi256=function(e){const t=e[0];const o=e[1];const i=e[2];if(t===o&&o===i){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}const a=16+36*Math.round(t/255*5)+6*Math.round(o/255*5)+Math.round(i/255*5);return a};d.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}const o=(~~(e>50)+1)*.5;const i=(t&1)*o*255;const a=(t>>1&1)*o*255;const d=(t>>2&1)*o*255;return[i,a,d]};d.ansi256.rgb=function(e){if(e>=232){const t=(e-232)*10+8;return[t,t,t]}e-=16;let t;const o=Math.floor(e/36)/5*255;const i=Math.floor((t=e%36)/6)/5*255;const a=t%6/5*255;return[o,i,a]};d.rgb.hex=function(e){const t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);const o=t.toString(16).toUpperCase();return"000000".substring(o.length)+o};d.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}let o=t[0];if(t[0].length===3){o=o.split("").map((e=>e+e)).join("")}const i=parseInt(o,16);const a=i>>16&255;const d=i>>8&255;const m=i&255;return[a,d,m]};d.rgb.hcg=function(e){const t=e[0]/255;const o=e[1]/255;const i=e[2]/255;const a=Math.max(Math.max(t,o),i);const d=Math.min(Math.min(t,o),i);const m=a-d;let f;let h;if(m<1){f=d/(1-m)}else{f=0}if(m<=0){h=0}else if(a===t){h=(o-i)/m%6}else if(a===o){h=2+(i-t)/m}else{h=4+(t-o)/m}h/=6;h%=1;return[h*360,m*100,f*100]};d.hsl.hcg=function(e){const t=e[1]/100;const o=e[2]/100;const i=o<.5?2*t*o:2*t*(1-o);let a=0;if(i<1){a=(o-.5*i)/(1-i)}return[e[0],i*100,a*100]};d.hsv.hcg=function(e){const t=e[1]/100;const o=e[2]/100;const i=t*o;let a=0;if(i<1){a=(o-i)/(1-i)}return[e[0],i*100,a*100]};d.hcg.rgb=function(e){const t=e[0]/360;const o=e[1]/100;const i=e[2]/100;if(o===0){return[i*255,i*255,i*255]}const a=[0,0,0];const d=t%1*6;const m=d%1;const f=1-m;let h=0;switch(Math.floor(d)){case 0:a[0]=1;a[1]=m;a[2]=0;break;case 1:a[0]=f;a[1]=1;a[2]=0;break;case 2:a[0]=0;a[1]=1;a[2]=m;break;case 3:a[0]=0;a[1]=f;a[2]=1;break;case 4:a[0]=m;a[1]=0;a[2]=1;break;default:a[0]=1;a[1]=0;a[2]=f}h=(1-o)*i;return[(o*a[0]+h)*255,(o*a[1]+h)*255,(o*a[2]+h)*255]};d.hcg.hsv=function(e){const t=e[1]/100;const o=e[2]/100;const i=t+o*(1-t);let a=0;if(i>0){a=t/i}return[e[0],a*100,i*100]};d.hcg.hsl=function(e){const t=e[1]/100;const o=e[2]/100;const i=o*(1-t)+.5*t;let a=0;if(i>0&&i<.5){a=t/(2*i)}else if(i>=.5&&i<1){a=t/(2*(1-i))}return[e[0],a*100,i*100]};d.hcg.hwb=function(e){const t=e[1]/100;const o=e[2]/100;const i=t+o*(1-t);return[e[0],(i-t)*100,(1-i)*100]};d.hwb.hcg=function(e){const t=e[1]/100;const o=e[2]/100;const i=1-o;const a=i-t;let d=0;if(a<1){d=(i-a)/(1-a)}return[e[0],a*100,d*100]};d.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};d.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};d.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};d.gray.hsl=function(e){return[0,0,e[0]]};d.gray.hsv=d.gray.hsl;d.gray.hwb=function(e){return[0,100,e[0]]};d.gray.cmyk=function(e){return[0,0,0,e[0]]};d.gray.lab=function(e){return[e[0],0,0]};d.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255;const o=(t<<16)+(t<<8)+t;const i=o.toString(16).toUpperCase();return"000000".substring(i.length)+i};d.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},94185:(e,t,o)=>{const i=o(36872);const a=o(14200);const d={};const m=Object.keys(i);function wrapRaw(e){const wrappedFn=function(...t){const o=t[0];if(o===undefined||o===null){return o}if(o.length>1){t=o}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){const wrappedFn=function(...t){const o=t[0];if(o===undefined||o===null){return o}if(o.length>1){t=o}const i=e(t);if(typeof i==="object"){for(let e=i.length,t=0;t<e;t++){i[t]=Math.round(i[t])}}return i};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}m.forEach((e=>{d[e]={};Object.defineProperty(d[e],"channels",{value:i[e].channels});Object.defineProperty(d[e],"labels",{value:i[e].labels});const t=a(e);const o=Object.keys(t);o.forEach((o=>{const i=t[o];d[e][o]=wrapRounded(i);d[e][o].raw=wrapRaw(i)}))}));e.exports=d},14200:(e,t,o)=>{const i=o(36872);function buildGraph(){const e={};const t=Object.keys(i);for(let o=t.length,i=0;i<o;i++){e[t[i]]={distance:-1,parent:null}}return e}function deriveBFS(e){const t=buildGraph();const o=[e];t[e].distance=0;while(o.length){const e=o.pop();const a=Object.keys(i[e]);for(let i=a.length,d=0;d<i;d++){const i=a[d];const m=t[i];if(m.distance===-1){m.distance=t[e].distance+1;m.parent=e;o.unshift(i)}}}return t}function link(e,t){return function(o){return t(e(o))}}function wrapConversion(e,t){const o=[t[e].parent,e];let a=i[t[e].parent][e];let d=t[e].parent;while(t[d].parent){o.unshift(t[d].parent);a=link(i[t[d].parent][d],a);d=t[d].parent}a.conversion=o;return a}e.exports=function(e){const t=deriveBFS(e);const o={};const i=Object.keys(t);for(let e=i.length,a=0;a<e;a++){const e=i[a];const d=t[e];if(d.parent===null){continue}o[e]=wrapConversion(e,t)}return o}},84953:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},6110:(e,t,o)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const o="color: "+this.color;t.splice(1,0,o,"color: inherit");let i=0;let a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}i++;if(e==="%c"){a=i}}));t.splice(a,0,o)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=o(40897)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},40897:(e,t,o)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=o(70744);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let o=0;o<e.length;o++){t=(t<<5)-t+e.charCodeAt(o);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;let o=null;let i;let a;function debug(...e){if(!debug.enabled){return}const o=debug;const i=Number(new Date);const a=i-(t||i);o.diff=a;o.prev=t;o.curr=i;t=i;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let d=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,i)=>{if(t==="%%"){return"%"}d++;const a=createDebug.formatters[i];if(typeof a==="function"){const i=e[d];t=a.call(o,i);e.splice(d,1);d--}return t}));createDebug.formatArgs.call(o,e);const m=o.log||createDebug.log;m.apply(o,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(o!==null){return o}if(i!==createDebug.namespaces){i=createDebug.namespaces;a=createDebug.enabled(e)}return a},set:e=>{o=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const o=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);o.log=this.log;return o}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];const t=(typeof e==="string"?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of t){if(e[0]==="-"){createDebug.skips.push(e.slice(1))}else{createDebug.names.push(e)}}}function matchesTemplate(e,t){let o=0;let i=0;let a=-1;let d=0;while(o<e.length){if(i<t.length&&(t[i]===e[o]||t[i]==="*")){if(t[i]==="*"){a=i;d=o;i++}else{o++;i++}}else if(a!==-1){i=a+1;d++;o=d}else{return false}}while(i<t.length&&t[i]==="*"){i++}return i===t.length}function disable(){const e=[...createDebug.names,...createDebug.skips.map((e=>"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){for(const t of createDebug.skips){if(matchesTemplate(e,t)){return false}}for(const t of createDebug.names){if(matchesTemplate(e,t)){return true}}return false}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},2830:(e,t,o)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=o(6110)}else{e.exports=o(95108)}},95108:(e,t,o)=>{const i=o(52018);const a=o(39023);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=a.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=o(21450);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const o=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let i=process.env[t];if(/^(yes|on|true|enabled)$/i.test(i)){i=true}else if(/^(no|off|false|disabled)$/i.test(i)){i=false}else if(i==="null"){i=null}else{i=Number(i)}e[o]=i;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):i.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:o,useColors:i}=this;if(i){const i=this.color;const a="[3"+(i<8?i:"8;5;"+i);const d=` ${a};1m${o} [0m`;t[0]=d+t[0].split("\n").join("\n"+d);t.push(a+"m+"+e.exports.humanize(this.diff)+"[0m")}else{t[0]=getDate()+o+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(a.formatWithOptions(t.inspectOpts,...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const o=Object.keys(t.inspectOpts);for(let i=0;i<o.length;i++){e.inspectOpts[o[i]]=t.inspectOpts[o[i]]}}e.exports=o(40897)(t);const{formatters:d}=e.exports;d.o=function(e){this.inspectOpts.colors=this.useColors;return a.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};d.O=function(e){this.inspectOpts.colors=this.useColors;return a.inspect(e,this.inspectOpts)}},83813:e=>{"use strict";e.exports=(e,t=process.argv)=>{const o=e.startsWith("-")?"":e.length===1?"-":"--";const i=t.indexOf(o+e);const a=t.indexOf("--");return i!==-1&&(a===-1||i<a)}},81970:function(e,t,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,o,i){if(i===undefined)i=o;var a=Object.getOwnPropertyDescriptor(t,o);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,i,a)}:function(e,t,o,i){if(i===undefined)i=o;e[i]=t[o]});var a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o))i(t,e,o);a(t,e);return t};var m=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HttpProxyAgent=void 0;const f=d(o(69278));const h=d(o(64756));const P=m(o(2830));const _=o(24434);const L=o(98894);const U=o(87016);const j=(0,P.default)("http-proxy-agent");class HttpProxyAgent extends L.Agent{constructor(e,t){super(t);this.proxy=typeof e==="string"?new U.URL(e):e;this.proxyHeaders=t?.headers??{};j("Creating new HttpProxyAgent instance: %o",this.proxy.href);const o=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...t?omit(t,"headers"):null,host:o,port:i}}addRequest(e,t){e._header=null;this.setRequestProps(e,t);super.addRequest(e,t)}setRequestProps(e,t){const{proxy:o}=this;const i=t.secureEndpoint?"https:":"http:";const a=e.getHeader("host")||"localhost";const d=`${i}//${a}`;const m=new U.URL(e.path,d);if(t.port!==80){m.port=String(t.port)}e.path=String(m);const f=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};if(o.username||o.password){const e=`${decodeURIComponent(o.username)}:${decodeURIComponent(o.password)}`;f["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}if(!f["Proxy-Connection"]){f["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const t of Object.keys(f)){const o=f[t];if(o){e.setHeader(t,o)}}}async connect(e,t){e._header=null;if(!e.path.includes("://")){this.setRequestProps(e,t)}let o;let i;j("Regenerating stored HTTP header string for request");e._implicitHeader();if(e.outputData&&e.outputData.length>0){j("Patching connection write() output buffer with updated header");o=e.outputData[0].data;i=o.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+o.substring(i);j("Output buffer: %o",e.outputData[0].data)}let a;if(this.proxy.protocol==="https:"){j("Creating `tls.Socket`: %o",this.connectOpts);a=h.connect(this.connectOpts)}else{j("Creating `net.Socket`: %o",this.connectOpts);a=f.connect(this.connectOpts)}await(0,_.once)(a,"connect");return a}}HttpProxyAgent.protocols=["http","https"];t.HttpProxyAgent=HttpProxyAgent;function omit(e,...t){const o={};let i;for(i in e){if(!t.includes(i)){o[i]=e[i]}}return o}},3669:function(e,t,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,o,i){if(i===undefined)i=o;var a=Object.getOwnPropertyDescriptor(t,o);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,i,a)}:function(e,t,o,i){if(i===undefined)i=o;e[i]=t[o]});var a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o))i(t,e,o);a(t,e);return t};var m=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HttpsProxyAgent=void 0;const f=d(o(69278));const h=d(o(64756));const P=m(o(42613));const _=m(o(2830));const L=o(98894);const U=o(87016);const j=o(37943);const H=(0,_.default)("https-proxy-agent");const setServernameFromNonIpHost=e=>{if(e.servername===undefined&&e.host&&!f.isIP(e.host)){return{...e,servername:e.host}}return e};class HttpsProxyAgent extends L.Agent{constructor(e,t){super(t);this.options={path:undefined};this.proxy=typeof e==="string"?new U.URL(e):e;this.proxyHeaders=t?.headers??{};H("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const o=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...t?omit(t,"headers"):null,host:o,port:i}}async connect(e,t){const{proxy:o}=this;if(!t.host){throw new TypeError('No "host" provided')}let i;if(o.protocol==="https:"){H("Creating `tls.Socket`: %o",this.connectOpts);i=h.connect(setServernameFromNonIpHost(this.connectOpts))}else{H("Creating `net.Socket`: %o",this.connectOpts);i=f.connect(this.connectOpts)}const a=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};const d=f.isIPv6(t.host)?`[${t.host}]`:t.host;let m=`CONNECT ${d}:${t.port} HTTP/1.1\r\n`;if(o.username||o.password){const e=`${decodeURIComponent(o.username)}:${decodeURIComponent(o.password)}`;a["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}a.Host=`${d}:${t.port}`;if(!a["Proxy-Connection"]){a["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const e of Object.keys(a)){m+=`${e}: ${a[e]}\r\n`}const _=(0,j.parseProxyResponse)(i);i.write(`${m}\r\n`);const{connect:L,buffered:U}=await _;e.emit("proxyConnect",L);this.emit("proxyConnect",L,e);if(L.statusCode===200){e.once("socket",resume);if(t.secureEndpoint){H("Upgrading socket connection to TLS");return h.connect({...omit(setServernameFromNonIpHost(t),"host","path","port"),socket:i})}return i}i.destroy();const V=new f.Socket({writable:false});V.readable=true;e.once("socket",(e=>{H("Replaying proxy buffer for failed request");(0,P.default)(e.listenerCount("data")>0);e.push(U);e.push(null)}));return V}}HttpsProxyAgent.protocols=["http","https"];t.HttpsProxyAgent=HttpsProxyAgent;function resume(e){e.resume()}function omit(e,...t){const o={};let i;for(i in e){if(!t.includes(i)){o[i]=e[i]}}return o}},37943:function(e,t,o){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.parseProxyResponse=void 0;const a=i(o(2830));const d=(0,a.default)("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,o)=>{let i=0;const a=[];function read(){const t=e.read();if(t)ondata(t);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("readable",read)}function onend(){cleanup();d("onend");o(new Error("Proxy connection ended before receiving CONNECT response"))}function onerror(e){cleanup();d("onerror %o",e);o(e)}function ondata(m){a.push(m);i+=m.length;const f=Buffer.concat(a,i);const h=f.indexOf("\r\n\r\n");if(h===-1){d("have not received end of HTTP headers yet...");read();return}const P=f.slice(0,h).toString("ascii").split("\r\n");const _=P.shift();if(!_){e.destroy();return o(new Error("No header received from proxy CONNECT response"))}const L=_.split(" ");const U=+L[1];const j=L.slice(2).join(" ");const H={};for(const t of P){if(!t)continue;const i=t.indexOf(":");if(i===-1){e.destroy();return o(new Error(`Invalid header from proxy CONNECT response: "${t}"`))}const a=t.slice(0,i).toLowerCase();const d=t.slice(i+1).trimStart();const m=H[a];if(typeof m==="string"){H[a]=[m,d]}else if(Array.isArray(m)){m.push(d)}else{H[a]=d}}d("got proxy server response: %o %o",_,H);cleanup();t({connect:{statusCode:U,statusText:j,headers:H},buffered:f})}e.on("error",onerror);e.on("end",onend);read()}))}t.parseProxyResponse=parseProxyResponse},29214:(e,t,o)=>{var i=o(91571),a=o(78095),d=o(54909),m=o(177);function LRUCache(e,t,o){if(arguments.length<2){o=e;e=null;t=null}this.capacity=o;if(typeof this.capacity!=="number"||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");var i=d.getPointerArray(o);this.forward=new i(o);this.backward=new i(o);this.K=typeof e==="function"?new e(o):new Array(o);this.V=typeof t==="function"?new t(o):new Array(o);this.size=0;this.head=0;this.tail=0;this.items={}}LRUCache.prototype.clear=function(){this.size=0;this.head=0;this.tail=0;this.items={}};LRUCache.prototype.splayOnTop=function(e){var t=this.head;if(this.head===e)return this;var o=this.backward[e],i=this.forward[e];if(this.tail===e){this.tail=o}else{this.backward[i]=o}this.forward[o]=i;this.backward[t]=e;this.head=e;this.forward[e]=t;return this};LRUCache.prototype.set=function(e,t){var o=this.items[e];if(typeof o!=="undefined"){this.splayOnTop(o);this.V[o]=t;return}if(this.size<this.capacity){o=this.size++}else{o=this.tail;this.tail=this.backward[o];delete this.items[this.K[o]]}this.items[e]=o;this.K[o]=e;this.V[o]=t;this.forward[o]=this.head;this.backward[this.head]=o;this.head=o};LRUCache.prototype.setpop=function(e,t){var o=null;var i=null;var a=this.items[e];if(typeof a!=="undefined"){this.splayOnTop(a);o=this.V[a];this.V[a]=t;return{evicted:false,key:e,value:o}}if(this.size<this.capacity){a=this.size++}else{a=this.tail;this.tail=this.backward[a];o=this.V[a];i=this.K[a];delete this.items[this.K[a]]}this.items[e]=a;this.K[a]=e;this.V[a]=t;this.forward[a]=this.head;this.backward[this.head]=a;this.head=a;if(i){return{evicted:true,key:i,value:o}}else{return null}};LRUCache.prototype.has=function(e){return e in this.items};LRUCache.prototype.get=function(e){var t=this.items[e];if(typeof t==="undefined")return;this.splayOnTop(t);return this.V[t]};LRUCache.prototype.peek=function(e){var t=this.items[e];if(typeof t==="undefined")return;return this.V[t]};LRUCache.prototype.forEach=function(e,t){t=arguments.length>1?t:this;var o=0,i=this.size;var a=this.head,d=this.K,m=this.V,f=this.forward;while(o<i){e.call(t,m[a],d[a],this);a=f[a];o++}};LRUCache.prototype.keys=function(){var e=0,t=this.size;var o=this.head,a=this.K,d=this.forward;return new i((function(){if(e>=t)return{done:true};var i=a[o];e++;if(e<t)o=d[o];return{done:false,value:i}}))};LRUCache.prototype.values=function(){var e=0,t=this.size;var o=this.head,a=this.V,d=this.forward;return new i((function(){if(e>=t)return{done:true};var i=a[o];e++;if(e<t)o=d[o];return{done:false,value:i}}))};LRUCache.prototype.entries=function(){var e=0,t=this.size;var o=this.head,a=this.K,d=this.V,m=this.forward;return new i((function(){if(e>=t)return{done:true};var i=a[o],f=d[o];e++;if(e<t)o=m[o];return{done:false,value:[i,f]}}))};if(typeof Symbol!=="undefined")LRUCache.prototype[Symbol.iterator]=LRUCache.prototype.entries;LRUCache.prototype.inspect=function(){var e=new Map;var t=this.entries(),o;while(o=t.next(),!o.done)e.set(o.value[0],o.value[1]);Object.defineProperty(e,"constructor",{value:LRUCache,enumerable:false});return e};if(typeof Symbol!=="undefined")LRUCache.prototype[Symbol.for("nodejs.util.inspect.custom")]=LRUCache.prototype.inspect;LRUCache.from=function(e,t,o,i){if(arguments.length<2){i=m.guessLength(e);if(typeof i!=="number")throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else if(arguments.length===2){i=t;t=null;o=null}var d=new LRUCache(t,o,i);a(e,(function(e,t){d.set(t,e)}));return d};e.exports=LRUCache},177:(e,t,o)=>{var i=o(78095);var a=o(54909);function isArrayLike(e){return Array.isArray(e)||a.isTypedArray(e)}function guessLength(e){if(typeof e.length==="number")return e.length;if(typeof e.size==="number")return e.size;return}function toArray(e){var t=guessLength(e);var o=typeof t==="number"?new Array(t):[];var a=0;i(e,(function(e){o[a++]=e}));return o}function toArrayWithIndices(e){var t=guessLength(e);var o=typeof t==="number"?a.getPointerArray(t):Array;var d=typeof t==="number"?new Array(t):[];var m=typeof t==="number"?new o(t):[];var f=0;i(e,(function(e){d[f]=e;m[f]=f++}));return[d,m]}t.isArrayLike=isArrayLike;t.guessLength=guessLength;t.toArray=toArray;t.toArrayWithIndices=toArrayWithIndices},54909:(e,t)=>{var o=Math.pow(2,8)-1,i=Math.pow(2,16)-1,a=Math.pow(2,32)-1;var d=Math.pow(2,7)-1,m=Math.pow(2,15)-1,f=Math.pow(2,31)-1;t.getPointerArray=function(e){var t=e-1;if(t<=o)return Uint8Array;if(t<=i)return Uint16Array;if(t<=a)return Uint32Array;return Float64Array};t.getSignedPointerArray=function(e){var t=e-1;if(t<=d)return Int8Array;if(t<=m)return Int16Array;if(t<=f)return Int32Array;return Float64Array};t.getNumberType=function(e){if(e===(e|0)){if(Math.sign(e)===-1){if(e<=127&&e>=-128)return Int8Array;if(e<=32767&&e>=-32768)return Int16Array;return Int32Array}else{if(e<=255)return Uint8Array;if(e<=65535)return Uint16Array;return Uint32Array}}return Float64Array};var h={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};t.getMinimalRepresentation=function(e,o){var i=null,a=0,d,m,f,P,_;for(P=0,_=e.length;P<_;P++){f=o?o(e[P]):e[P];m=t.getNumberType(f);d=h[m.name];if(d>a){a=d;i=m}}return i};t.isTypedArray=function(e){return typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView(e)};t.concat=function(){var e=0,t,o,i;for(t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;var a=new arguments[0].constructor(e);for(t=0,o=0;t<i;t++){a.set(arguments[t],o);o+=arguments[t].length}return a};t.indices=function(e){var o=t.getPointerArray(e);var i=new o(e);for(var a=0;a<e;a++)i[a]=a;return i}},70744:e=>{var t=1e3;var o=t*60;var i=o*60;var a=i*24;var d=a*7;var m=a*365.25;e.exports=function(e,t){t=t||{};var o=typeof e;if(o==="string"&&e.length>0){return parse(e)}else if(o==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!f){return}var h=parseFloat(f[1]);var P=(f[2]||"ms").toLowerCase();switch(P){case"years":case"year":case"yrs":case"yr":case"y":return h*m;case"weeks":case"week":case"w":return h*d;case"days":case"day":case"d":return h*a;case"hours":case"hour":case"hrs":case"hr":case"h":return h*i;case"minutes":case"minute":case"mins":case"min":case"m":return h*o;case"seconds":case"second":case"secs":case"sec":case"s":return h*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return undefined}}function fmtShort(e){var d=Math.abs(e);if(d>=a){return Math.round(e/a)+"d"}if(d>=i){return Math.round(e/i)+"h"}if(d>=o){return Math.round(e/o)+"m"}if(d>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var d=Math.abs(e);if(d>=a){return plural(e,d,a,"day")}if(d>=i){return plural(e,d,i,"hour")}if(d>=o){return plural(e,d,o,"minute")}if(d>=t){return plural(e,d,t,"second")}return e+" ms"}function plural(e,t,o,i){var a=t>=o*1.5;return Math.round(e/o)+" "+i+(a?"s":"")}},78095:e=>{var t=typeof ArrayBuffer!=="undefined",o=typeof Symbol!=="undefined";function forEach(e,i){var a,d,m,f,h;if(!e)throw new Error("obliterator/forEach: invalid iterable.");if(typeof i!=="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(e)||t&&ArrayBuffer.isView(e)||typeof e==="string"||e.toString()==="[object Arguments]"){for(m=0,f=e.length;m<f;m++)i(e[m],m);return}if(typeof e.forEach==="function"){e.forEach(i);return}if(o&&Symbol.iterator in e&&typeof e.next!=="function"){e=e[Symbol.iterator]()}if(typeof e.next==="function"){a=e;m=0;while(h=a.next(),h.done!==true){i(h.value,m);m++}return}for(d in e){if(e.hasOwnProperty(d)){i(e[d],d)}}return}forEach.forEachWithNullKeys=function(e,i){var a,d,m,f,h;if(!e)throw new Error("obliterator/forEachWithNullKeys: invalid iterable.");if(typeof i!=="function")throw new Error("obliterator/forEachWithNullKeys: expecting a callback.");if(Array.isArray(e)||t&&ArrayBuffer.isView(e)||typeof e==="string"||e.toString()==="[object Arguments]"){for(m=0,f=e.length;m<f;m++)i(e[m],null);return}if(e instanceof Set){e.forEach((function(e){i(e,null)}));return}if(typeof e.forEach==="function"){e.forEach(i);return}if(o&&Symbol.iterator in e&&typeof e.next!=="function"){e=e[Symbol.iterator]()}if(typeof e.next==="function"){a=e;m=0;while(h=a.next(),h.done!==true){i(h.value,null);m++}return}for(d in e){if(e.hasOwnProperty(d)){i(e[d],d)}}return};e.exports=forEach},91571:e=>{function Iterator(e){Object.defineProperty(this,"_next",{writable:false,enumerable:false,value:e});this.done=false}Iterator.prototype.next=function(){if(this.done)return{done:true};var e=this._next();if(e.done)this.done=true;return e};if(typeof Symbol!=="undefined")Iterator.prototype[Symbol.iterator]=function(){return this};Iterator.of=function(){var e=arguments,t=e.length,o=0;return new Iterator((function(){if(o>=t)return{done:true};return{done:false,value:e[o++]}}))};Iterator.empty=function(){var e=new Iterator(null);e.done=true;return e};Iterator.is=function(e){if(e instanceof Iterator)return true;return typeof e==="object"&&e!==null&&typeof e.next==="function"};e.exports=Iterator},21450:(e,t,o)=>{"use strict";const i=o(70857);const a=o(52018);const d=o(83813);const{env:m}=process;let f;if(d("no-color")||d("no-colors")||d("color=false")||d("color=never")){f=0}else if(d("color")||d("colors")||d("color=true")||d("color=always")){f=1}if("FORCE_COLOR"in m){if(m.FORCE_COLOR==="true"){f=1}else if(m.FORCE_COLOR==="false"){f=0}else{f=m.FORCE_COLOR.length===0?1:Math.min(parseInt(m.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(f===0){return 0}if(d("color=16m")||d("color=full")||d("color=truecolor")){return 3}if(d("color=256")){return 2}if(e&&!t&&f===undefined){return 0}const o=f||0;if(m.TERM==="dumb"){return o}if(process.platform==="win32"){const e=i.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in m){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in m))||m.CI_NAME==="codeship"){return 1}return o}if("TEAMCITY_VERSION"in m){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(m.TEAMCITY_VERSION)?1:0}if(m.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in m){const e=parseInt((m.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(m.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(m.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(m.TERM)){return 1}if("COLORTERM"in m){return 1}return o}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,a.isatty(1))),stderr:translateLevel(supportsColor(true,a.isatty(2)))}},61860:e=>{var t;var o;var i;var a;var d;var m;var f;var h;var P;var _;var L;var U;var j;var H;var V;var K;var W;var X;var Q;var Y;var J;var Z;var ee;var te;var ne;var re;var oe;var ie;var se;var ae;var ce;var le;(function(t){var o=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(o,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(o,createExporter(e.exports)))}else{t(createExporter(o))}function createExporter(e,t){if(e!==o){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(o,i){return e[o]=t?t(o,i):i}}})((function(e){var ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ue(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};o=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++){t=arguments[o];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};i=function(e,t){var o={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0)o[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++){if(t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a]))o[i[a]]=e[i[a]]}return o};a=function(e,t,o,i){var a=arguments.length,d=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,m;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")d=Reflect.decorate(e,t,o,i);else for(var f=e.length-1;f>=0;f--)if(m=e[f])d=(a<3?m(d):a>3?m(t,o,d):m(t,o))||d;return a>3&&d&&Object.defineProperty(t,o,d),d};d=function(e,t){return function(o,i){t(o,i,e)}};m=function(e,t,o,i,a,d){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var m=i.kind,f=m==="getter"?"get":m==="setter"?"set":"value";var h=!t&&e?i["static"]?e:e.prototype:null;var P=t||(h?Object.getOwnPropertyDescriptor(h,i.name):{});var _,L=false;for(var U=o.length-1;U>=0;U--){var j={};for(var H in i)j[H]=H==="access"?{}:i[H];for(var H in i.access)j.access[H]=i.access[H];j.addInitializer=function(e){if(L)throw new TypeError("Cannot add initializers after decoration has completed");d.push(accept(e||null))};var V=(0,o[U])(m==="accessor"?{get:P.get,set:P.set}:P[f],j);if(m==="accessor"){if(V===void 0)continue;if(V===null||typeof V!=="object")throw new TypeError("Object expected");if(_=accept(V.get))P.get=_;if(_=accept(V.set))P.set=_;if(_=accept(V.init))a.unshift(_)}else if(_=accept(V)){if(m==="field")a.unshift(_);else P[f]=_}}if(h)Object.defineProperty(h,i.name,P);L=true};f=function(e,t,o){var i=arguments.length>2;for(var a=0;a<t.length;a++){o=i?t[a].call(e,o):t[a].call(e)}return i?o:void 0};h=function(e){return typeof e==="symbol"?e:"".concat(e)};P=function(e,t,o){if(typeof t==="symbol")t=t.description?"[".concat(t.description,"]"):"";return Object.defineProperty(e,"name",{configurable:true,value:o?"".concat(o," ",t):t})};_=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};L=function(e,t,o,i){function adopt(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,a){function fulfilled(e){try{step(i.next(e))}catch(e){a(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){a(e)}}function step(e){e.done?o(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};U=function(e,t){var o={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},i,a,d,m=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return m.next=verb(0),m["throw"]=verb(1),m["return"]=verb(2),typeof Symbol==="function"&&(m[Symbol.iterator]=function(){return this}),m;function verb(e){return function(t){return step([e,t])}}function step(f){if(i)throw new TypeError("Generator is already executing.");while(m&&(m=0,f[0]&&(o=0)),o)try{if(i=1,a&&(d=f[0]&2?a["return"]:f[0]?a["throw"]||((d=a["return"])&&d.call(a),0):a.next)&&!(d=d.call(a,f[1])).done)return d;if(a=0,d)f=[f[0]&2,d.value];switch(f[0]){case 0:case 1:d=f;break;case 4:o.label++;return{value:f[1],done:false};case 5:o.label++;a=f[1];f=[0];continue;case 7:f=o.ops.pop();o.trys.pop();continue;default:if(!(d=o.trys,d=d.length>0&&d[d.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!d||f[1]>d[0]&&f[1]<d[3])){o.label=f[1];break}if(f[0]===6&&o.label<d[1]){o.label=d[1];d=f;break}if(d&&o.label<d[2]){o.label=d[2];o.ops.push(f);break}if(d[2])o.ops.pop();o.trys.pop();continue}f=t.call(e,o)}catch(e){f=[6,e];a=0}finally{i=d=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:true}}};j=function(e,t){for(var o in e)if(o!=="default"&&!Object.prototype.hasOwnProperty.call(t,o))se(t,e,o)};se=Object.create?function(e,t,o,i){if(i===undefined)i=o;var a=Object.getOwnPropertyDescriptor(t,o);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,i,a)}:function(e,t,o,i){if(i===undefined)i=o;e[i]=t[o]};H=function(e){var t=typeof Symbol==="function"&&Symbol.iterator,o=t&&e[t],i=0;if(o)return o.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&i>=e.length)e=void 0;return{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};V=function(e,t){var o=typeof Symbol==="function"&&e[Symbol.iterator];if(!o)return e;var i=o.call(e),a,d=[],m;try{while((t===void 0||t-- >0)&&!(a=i.next()).done)d.push(a.value)}catch(e){m={error:e}}finally{try{if(a&&!a.done&&(o=i["return"]))o.call(i)}finally{if(m)throw m.error}}return d};K=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(V(arguments[t]));return e};W=function(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;for(var i=Array(e),a=0,t=0;t<o;t++)for(var d=arguments[t],m=0,f=d.length;m<f;m++,a++)i[a]=d[m];return i};X=function(e,t,o){if(o||arguments.length===2)for(var i=0,a=t.length,d;i<a;i++){if(d||!(i in t)){if(!d)d=Array.prototype.slice.call(t,0,i);d[i]=t[i]}}return e.concat(d||Array.prototype.slice.call(t))};Q=function(e){return this instanceof Q?(this.v=e,this):new Q(e)};Y=function(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=o.apply(e,t||[]),a,d=[];return a=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),verb("next"),verb("throw"),verb("return",awaitReturn),a[Symbol.asyncIterator]=function(){return this},a;function awaitReturn(e){return function(t){return Promise.resolve(t).then(e,reject)}}function verb(e,t){if(i[e]){a[e]=function(t){return new Promise((function(o,i){d.push([e,t,o,i])>1||resume(e,t)}))};if(t)a[e]=t(a[e])}}function resume(e,t){try{step(i[e](t))}catch(e){settle(d[0][3],e)}}function step(e){e.value instanceof Q?Promise.resolve(e.value.v).then(fulfill,reject):settle(d[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),d.shift(),d.length)resume(d[0][0],d[0][1])}};J=function(e){var t,o;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(i,a){t[i]=e[i]?function(t){return(o=!o)?{value:Q(e[i](t)),done:false}:a?a(t):t}:a}};Z=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],o;return t?t.call(e):(e=typeof H==="function"?H(e):e[Symbol.iterator](),o={},verb("next"),verb("throw"),verb("return"),o[Symbol.asyncIterator]=function(){return this},o);function verb(t){o[t]=e[t]&&function(o){return new Promise((function(i,a){o=e[t](o),settle(i,a,o.done,o.value)}))}}function settle(e,t,o,i){Promise.resolve(i).then((function(t){e({value:t,done:o})}),t)}};ee=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var de=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))t[t.length]=o;return t};return ownKeys(e)};te=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o=ownKeys(e),i=0;i<o.length;i++)if(o[i]!=="default")se(t,e,o[i]);de(t,e);return t};ne=function(e){return e&&e.__esModule?e:{default:e}};re=function(e,t,o,i){if(o==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?i:o==="a"?i.call(e):i?i.value:t.get(e)};oe=function(e,t,o,i,a){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?a.call(e,o):a?a.value=o:t.set(e,o),o};ie=function(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)};ae=function(e,t,o){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("Object expected.");var i,a;if(o){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=t[Symbol.asyncDispose]}if(i===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=t[Symbol.dispose];if(o)a=i}if(typeof i!=="function")throw new TypeError("Object not disposable.");if(a)i=function(){try{a.call(this)}catch(e){return Promise.reject(e)}};e.stack.push({value:t,dispose:i,async:o})}else if(o){e.stack.push({async:true})}return t};var pe=typeof SuppressedError==="function"?SuppressedError:function(e,t,o){var i=new Error(o);return i.name="SuppressedError",i.error=e,i.suppressed=t,i};ce=function(e){function fail(t){e.error=e.hasError?new pe(t,e.error,"An error was suppressed during disposal."):t;e.hasError=true}var t,o=0;function next(){while(t=e.stack.pop()){try{if(!t.async&&o===1)return o=0,e.stack.push(t),Promise.resolve().then(next);if(t.dispose){var i=t.dispose.call(t.value);if(t.async)return o|=2,Promise.resolve(i).then(next,(function(e){fail(e);return next()}))}else o|=1}catch(e){fail(e)}}if(o===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return next()};le=function(e,t){if(typeof e==="string"&&/^\.\.?\//.test(e)){return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,o,i,a,d){return o?t?".jsx":".js":i&&(!a||!d)?e:i+a+"."+d.toLowerCase()+"js"}))}return e};e("__extends",t);e("__assign",o);e("__rest",i);e("__decorate",a);e("__param",d);e("__esDecorate",m);e("__runInitializers",f);e("__propKey",h);e("__setFunctionName",P);e("__metadata",_);e("__awaiter",L);e("__generator",U);e("__exportStar",j);e("__createBinding",se);e("__values",H);e("__read",V);e("__spread",K);e("__spreadArrays",W);e("__spreadArray",X);e("__await",Q);e("__asyncGenerator",Y);e("__asyncDelegator",J);e("__asyncValues",Z);e("__makeTemplateObject",ee);e("__importStar",te);e("__importDefault",ne);e("__classPrivateFieldGet",re);e("__classPrivateFieldSet",oe);e("__classPrivateFieldIn",ie);e("__addDisposableResource",ae);e("__disposeResources",ce);e("__rewriteRelativeImportExtension",le)}));0&&0},92401:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitHubAdapter=void 0;const i=o(1622);const a=o(72633);class GitHubAdapter{token;owner;repo;projectId;constructor(e){const t=new a.Credentials;let o=t.getToken("github.com")||process.env[e.tokenEnv]||process.env.GITHUB_TOKEN;if(!o&&(e.tokenEnv.startsWith("ghp_")||e.tokenEnv.startsWith("github_pat_"))){o=e.tokenEnv}if(!o){i.notify.push({type:"error",title:`GitHub token not found`,detail:[`Environment variable "${e.tokenEnv}" is not set.`],close:true})}this.token=o||"";this.owner=e.owner;this.repo=e.repository;this.projectId=e.projectId}async request(e,t,o){const i=t.startsWith("http")?t:`https://api.github.com${t}`;const a=await fetch(i,{method:e,headers:{Authorization:`Bearer ${this.token}`,Accept:"application/vnd.github.v3+json","X-GitHub-Api-Version":"2022-11-28","Content-Type":"application/json"},body:o?JSON.stringify(o):undefined});if(!a.ok){const e=await a.text();throw new Error(`GitHub API Error (${a.status}): ${e}`)}if(a.status===204){return null}return await a.json()}async graphql(e,t={}){const o=await this.request("POST","https://api.github.com/graphql",{query:e,variables:t});if(o.errors&&o.errors.length>0){throw new Error(`GraphQL Error: ${JSON.stringify(o.errors)}`)}return o.data}async createIssue(e){const t=await this.request("POST",`/repos/${this.owner}/${this.repo}/issues`,{title:e.title,body:e.body,labels:e.labels,assignees:e.assignees,milestone:e.milestone});return{id:t.id,number:t.number,title:t.title??"",state:t.state,node_id:t.node_id}}async updateIssue(e,t){const o=await this.request("PATCH",`/repos/${this.owner}/${this.repo}/issues/${e}`,{title:t.title,body:t.body,labels:t.labels,assignees:t.assignees,milestone:t.milestone});return{id:o.id,number:o.number,title:o.title??"",state:o.state,node_id:o.node_id}}async closeIssue(e){await this.request("PATCH",`/repos/${this.owner}/${this.repo}/issues/${e}`,{state:"closed"})}async getIssue(e){try{const t=await this.request("GET",`/repos/${this.owner}/${this.repo}/issues/${e}`);return{id:t.id,number:t.number,title:t.title??"",body:t.body??"",state:t.state}}catch{return null}}async listIssuesByLabel(e){const t=[];let o=1;while(true){const i=await this.request("GET",`/repos/${this.owner}/${this.repo}/issues?labels=${encodeURIComponent(e)}&state=all&per_page=100&page=${o}`);if(i.length===0)break;for(const e of i){t.push({id:e.id,number:e.number,title:e.title??"",state:e.state})}if(i.length<100)break;o++}return t}async getMilestoneByTitle(e){if(!e)return undefined;try{const t=await this.request("GET",`/repos/${this.owner}/${this.repo}/milestones?state=all&per_page=100`);const o=t.find((t=>t.title.toLowerCase()===e.toLowerCase()));return o?o.number:undefined}catch{return undefined}}async createIssueComment(e,t){const o=await this.request("POST",`/repos/${this.owner}/${this.repo}/issues/${e}/comments`,{body:t});return{id:o.id}}async updateIssueComment(e,t){await this.request("PATCH",`/repos/${this.owner}/${this.repo}/issues/comments/${e}`,{body:t})}async listIssueComments(e){const t=[];let o=1;while(true){const i=await this.request("GET",`/repos/${this.owner}/${this.repo}/issues/${e}/comments?per_page=100&page=${o}`);if(i.length===0)break;for(const e of i){t.push({id:e.id,body:e.body})}if(i.length<100)break;o++}return t}projectNodeId;projectFields;async resolveProjectMetadata(){if(this.projectNodeId&&this.projectFields)return{id:this.projectNodeId,fields:this.projectFields};if(!this.projectId)return undefined;const e=`\n id\n fields(first: 20) {\n nodes {\n ... on ProjectV2Field { id name dataType }\n ... on ProjectV2SingleSelectField { id name dataType options { id name } }\n ... on ProjectV2IterationField { id name dataType }\n }\n }\n `;try{const t=await this.graphql(`\n query($login: String!, $number: Int!) {\n user(login: $login) {\n projectV2(number: $number) {\n ${e}\n }\n }\n }\n `,{login:this.owner,number:this.projectId});if(t?.user?.projectV2?.id){this.projectNodeId=t.user.projectV2.id;this.projectFields=t.user.projectV2.fields.nodes;return{id:this.projectNodeId,fields:this.projectFields}}}catch(e){}try{const t=await this.graphql(`\n query($login: String!, $number: Int!) {\n organization(login: $login) {\n projectV2(number: $number) {\n ${e}\n }\n }\n }\n `,{login:this.owner,number:this.projectId});if(t?.organization?.projectV2?.id){this.projectNodeId=t.organization.projectV2.id;this.projectFields=t.organization.projectV2.fields.nodes;return{id:this.projectNodeId,fields:this.projectFields}}}catch(e){}return undefined}async addToProject(e){const t=await this.resolveProjectMetadata();if(!t)return undefined;try{const o=await this.graphql(`\n mutation($projectId: ID!, $contentId: ID!) {\n addProjectV2ItemById(input: {projectId: $projectId, contentId: $contentId}) {\n item { id }\n }\n }\n `,{projectId:t.id,contentId:e});return o?.addProjectV2ItemById?.item?.id}catch{return undefined}}async updateProjectItemFields(e,t){const o=await this.resolveProjectMetadata();if(!o||!o.fields)return;for(const[i,a]of Object.entries(t)){const t=o.fields.find((e=>e.name&&e.name.toLowerCase()===i.toLowerCase()));if(!t)continue;let d=undefined;if(t.dataType==="TEXT"){d={text:a}}else if(t.dataType==="SINGLE_SELECT"&&t.options){const e=a.startsWith("@")?a.substring(1):a;const o=t.options.find((t=>t.name.toLowerCase()===e.toLowerCase()));if(o){d={singleSelectOptionId:o.id}}}if(!d)continue;try{await this.graphql(`\n mutation($projectId: ID!, $itemId: ID!, $fieldId: ID!, $value: ProjectV2FieldValue!) {\n updateProjectV2ItemFieldValue(input: {\n projectId: $projectId\n itemId: $itemId\n fieldId: $fieldId\n value: $value\n }) { projectV2Item { id } }\n }\n `,{projectId:o.id,itemId:e,fieldId:t.id,value:d})}catch(e){}}}async getIssueNodeId(e){try{const t=await this.request("GET",`/repos/${this.owner}/${this.repo}/issues/${e}`);return t.node_id??null}catch{return null}}formatRemoteId(e){return`${this.repo}:${e}`}async addSubIssue(e,t){try{await this.request("POST",`/repos/${this.owner}/${this.repo}/issues/${e}/sub_issues`,{sub_issue_id:t,replace_parent:true})}catch(e){if(!e.message.includes("422")){throw e}}}}t.GitHubAdapter=GitHubAdapter},80573:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.registerResource=t.resource=void 0;const i=o(2560);const a=o(1622);const d=o(80465);class Resource{builtinTemplates={};userTemplates={};resolve(){const e=Object.values(this.builtinTemplates);const t=Object.values(this.userTemplates);return[...e,...t]}get(e){const t=this.resolve().find((t=>t.type===e));if(!t){a.notify.push({type:"error",title:`Unknown resource type: "${e}"`,detail:[`No template is registered for resource type "${e}".`,`Available types: ${this.resolve().map((e=>e.type)).join(", ")||"(none)"}`],close:true})}return t}registry(e,t="system"){if(t==="system"){this.builtinTemplates[e.type]=e}if(t==="user"){this.userTemplates[e.type]=e}}evaluate(e,t,o){const i=this.get(e);const a={};for(const e of i.fields){if(e.knownAfterApply)continue;a[e.name]=typeof e.value==="function"?e.value(t,o):e.value}return a}getSymbol(e){const t={add:(0,d.green)("+"),change:(0,d.yellow)("~"),destroy:(0,d.red)("-"),replace:(0,d.red)("-/+")}[e];return t}getSymbols(e){const t=new Set(e.map((e=>e.action)));const o={add:`${(0,d.green)("+")} create`,change:`${(0,d.yellow)("~")} update in-place`,destroy:`${(0,d.red)("-")} destroy`,replace:`${(0,d.red)("-/+")} replace`};const i=[];if(t.has("add"))i.push(o.add);if(t.has("change"))i.push(o.change);if(t.has("destroy"))i.push(o.destroy);if(t.has("replace"))i.push(o.replace);return i.map((e=>` ${e}`)).join("\n")}format(e,t){const{action:o,scenario:i,resourceType:a,identity:d}=e;const m=[];const f=this.get(a);const h=this.getSymbol(o);const pad=e=>e.padEnd(16);m.push(` ${h} resource "${a}" "${d}" {`);for(const e of f.fields){const a=typeof e.value==="function"?e.value(i,t):e.value;let d="";if(e.knownAfterApply){d="(known after apply)"}else if(typeof a==="object"&&a!==null){const e=JSON.stringify(a,null,2).split("\n");d=e.map(((e,t)=>t===0?e:` ${e}`)).join("\n")}else if(typeof a==="string"&&a.includes("\n")){const e=a.split("\n");d=`<<-EOT\n`+e.map((e=>` ${e}`)).join("\n")+`\n EOT`}else{d=`"${a}"`}if(o==="add"||o==="replace"){m.push(` ${h} ${pad(e.name)}= ${d}`)}else if(o==="change"){if(e.knownAfterApply){m.push(` ${pad(e.name)}= ${d}`)}else{m.push(` ${h} ${pad(e.name)}= ${d}`)}}else if(o==="destroy"){m.push(` ${h} ${pad(e.name)}= ${d} -> null`)}}m.push(" }");return m.join("\n")}summary(e,t=true,o){const a=[];if(e.length===0){a.push("No changes. Your test matches the configuration.");if(!t){a.push("");a.push(`${i.TITLE_APP} has compared your real test against your configuration and found no differences, so no`);a.push("changes are needed.");a.push("");a.push((0,d.green)("Apply complete! Resources: 0 added, 0 changed, 0 destroyed."))}console.log(a.join("\n"));return}a.push(`${i.TITLE_APP} used the selected providers to generate the following execution plan. Resource actions are indicated with the`);a.push("following symbols:");a.push(this.getSymbols(e));a.push("");a.push(`${i.TITLE_APP} will perform the following actions:`);a.push("");for(const t of e){const e=t.action==="add"?(0,d.bold)(`# [${t.scenario.feature?.name||"Unknown"}].${t.resourceType}.${t.identity} will be created`):t.action==="change"?(0,d.bold)(`# ${t.resourceType}.${t.identity} will be updated in-place`):t.action==="replace"?(0,d.bold)(`# ${t.resourceType}.${t.identity} must be replaced`):(0,d.bold)(`# ${t.resourceType}.${t.identity} will be destroyed`);a.push(` ${e}`);if(t.action==="destroy"){a.push(` # (because ${t.resourceType}.${t.identity} is not in configuration)`)}a.push(this.format(t,o));a.push("")}const m=e.filter((e=>e.action==="add")).length;const f=e.filter((e=>e.action==="change")).length;const h=e.filter((e=>e.action==="destroy")).length;const P=e.filter((e=>e.action==="replace")).length;a.push(`${(0,d.bold)("Plan:")} ${m+P} to add, ${f} to change, ${h+P} to destroy.`);a.push("");if(t){a.push((0,d.dim)("─".repeat(108)));a.push("");if(!o?.outPath){a.push(`Note: You didn't use the -out option to save this plan, so ${i.TITLE_APP} can't guarantee to take exactly these`);a.push(`actions if you run "${i.TITLE_CLI} apply" now.`)}}console.log(a.join("\n"))}}t.resource=new Resource;const registerResource=e=>t.resource.registry(e,"user");t.registerResource=registerResource;t.resource.registry({type:"github_testcase",fields:[{name:"title",value:e=>e.name},{name:"body",value:e=>"```gherkin\n"+e.steps.map((e=>`${e.keyword}${e.text}`)).join("\n")+"\n```"},{name:"labels",value:e=>[...new Set([...e.tags||[]].map(String).map((e=>e.startsWith("@")?e.substring(1):e)))]},{name:"assignees",value:e=>(e.custom?.fields?.assignees||"").split(",").map((e=>e.trim())).filter(Boolean)},{name:"milestone",value:e=>e.custom?.fields?.milestone||""},{name:"custom_fields",value:e=>e.custom?.fields||{}}]});t.resource.registry({type:"github_testrun",fields:[{name:"title",value:e=>e.feature?.name||""},{name:"body",value:(e,t)=>{let o=e.feature.description||"";const i=e.custom?.testcases||[];if(i.length>0&&t?.state){o+="\n\n### Test Cases\n";const e=t.state;for(const t of i){const i=t.split("::");const a=i.pop();const d=i.pop()||"";const m=d.replace(".case.feature","").replace(".feature","");const f=e.getResources("github_testcase").filter((e=>e.identity.includes(m)&&(a==="*"||e.identity.endsWith(`::${a}`))));if(f.length>0){for(const e of f){if(e?.attributes?.issueNumber){o+=`- [ ] #${e.attributes.issueNumber}\n`}else{o+=`- [ ] (known after apply) - ${e.identity}\n`}}}else{o+=`- [ ] (not found in state) - ${t}\n`}}}return o.trim()}},{name:"labels",value:e=>[...new Set([...e.tags||[]].map(String).map((e=>e.startsWith("@")?e.substring(1):e)))]},{name:"assignees",value:e=>(e.custom?.fields?.assignees||"").split(",").map((e=>e.trim())).filter(Boolean)},{name:"milestone",value:e=>e.custom?.fields?.milestone||""},{name:"custom_fields",value:e=>e.custom?.fields||{}}]});t.resource.registry({type:"github_testplan",fields:[{name:"title",value:e=>e.feature?.name||""},{name:"body",value:(e,t)=>{let o=e.feature.description||"";const i=e.custom?.testruns||[];if(i.length>0&&t?.state){o+="\n\n### Test Runs\n";const e=t.state;for(const t of i){const i=e.getResources("github_testrun").filter((e=>e.identity.endsWith(t)));if(i.length>0){for(const e of i){if(e?.attributes?.issueNumber){o+=`- [ ] #${e.attributes.issueNumber} - ${e.attributes.title}\n`}else{o+=`- [ ] (known after apply) - ${e.identity}\n`}}}else{o+=`- [ ] (not found in state) - ${t}\n`}}}return o.trim()}},{name:"labels",value:e=>[...new Set([...e.tags||[]].map(String).map((e=>e.startsWith("@")?e.substring(1):e)))]},{name:"assignees",value:e=>(e.custom?.fields?.assignees||"").split(",").map((e=>e.trim())).filter(Boolean)},{name:"milestone",value:e=>e.custom?.fields?.milestone||""},{name:"custom_fields",value:e=>e.custom?.fields||{}}]})},8314:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.applyCmd=void 0;const i=o(79896);const a=o(80465);const d=o(80573);const m=o(7066);const f=o(86999);const h=o(1622);const P=o(74483);const _=o(31821);const L=o(65301);const U=o(62978);const j=o(54472);const H=o(74297);const applyCmd=async e=>{const{dir:t=".",autoApprove:o=false,verbose:V=false,scope:K,planFile:W,lock:X=true,lockTimeout:Q="0s",input:Y=true,variables:J,statePath:Z,backupPath:ee,target:te,refresh:ne=true,refreshOnly:re=false,setStatus:oe,replaceTargets:ie,parallelism:se,compactWarnings:ae,testDirectory:ce}=e;const le=new f.Logger(V);const ue=new m.State(t,Z,ee);await ue.init();await ue.acquireLock(X,Q);try{let e;if(W){if(!(0,i.existsSync)(W)){le.error(`Failed to load "${W}" as a plan file\n\nstat ${W}: no such file or directory`)}try{const o=(0,i.readFileSync)(W,"utf-8");const a=JSON.parse(o);e={changes:a.changes||[],hasChanges:a.changes&&a.changes.length>0,state:new m.State(t)};await e.state.init()}catch(e){le.error(`Failed to load "${W}" as a plan file\n\nError parsing JSON: ${e.message}`);return}}else{if(oe&&K==="testrun"){(0,H.writeStatusToFeatureFiles)(t,K,oe)}if(ne&&!re){console.log("Acquiring state lock. This may take a few moments...");await(0,_.refreshState)({dir:t,scope:K,state:ue,logger:le,silent:false,parallelismRaw:se})}e=await(0,P.calculatePlan)({dir:t,scope:K,variables:J,statePath:Z,backupPath:ee,target:te,destroyPlan:false,refreshOnly:re,preLoadedState:ue,lock:X,lockTimeout:Q,replaceTargets:ie,compactWarnings:ae,testDirectory:ce});d.resource.summary(e.changes,false,{state:e.state});if(!e.hasChanges){return}if(!o){if(!Y){console.error("\nError: No input allowed\n\nThis command requires manual approval, but input is disabled. Use the\n-auto-approve flag to bypass approval.\n");process.exit(1)}const e=await(0,L.askApproval)();if(!e){h.notify.push({type:"error",title:"error asking for approval: interrupted",detail:[]});return}}}if(W&&!e.hasChanges){console.log("No changes found in the provided plan file.");return}const f=await(0,j.createCommandContext)({dir:t,verbose:V,lock:false});if(!f)return;const{github:de}=f;let pe=0;let me=0;let fe=0;const resolvePayloadMilestone=async e=>{if(typeof e.milestone==="string"&&e.milestone){e.milestone=await de.getMilestoneByTitle(e.milestone)}else if(!e.milestone){delete e.milestone}};const linkSubIssues=async(e,t)=>{if(e.resourceType==="github_testplan"&&e.scenario.custom?.testruns){for(const o of e.scenario.custom.testruns){const e=ue.getResources("github_testrun").filter((e=>e.identity.endsWith(o)));for(const o of e){if(o?.attributes?.issueNumber){try{const e=await de.getIssue(o.attributes.issueNumber);if(e&&e.id){await de.addSubIssue(t,e.id);console.log(` -> Linked testrun ${o.identity} as sub-issue to testplan`)}}catch(e){console.log(` -> Failed to link testrun ${o.identity} as sub-issue: ${e.message}`)}}}}}};const syncTestrunComments=async(e,t,o)=>{if(e.resourceType!=="github_testrun"||!e.scenario.custom?.groupScenarios)return{};const i=o?.testcaseCommentIds||{};const a=o?.testcaseStatuses||{};let d=1;for(const o of e.scenario.custom.groupScenarios){if(!o.rule||!o.name)continue;const e=`${o.rule.name}::${o.name}`;const m=o.custom?.fields?.status||"pending";const f=o.name;if(!i[e]||a[e]!==m){const o=`| # | Test Case | Status |\n|---|-----------|--------|\n| ${d} | ${f} | ${m} |`;if(i[e]){await de.updateIssueComment(i[e],o);console.log(` -> Updated status comment for ${e} to '${m}'`)}else{const a=await de.createIssueComment(t,o);i[e]=a.id;console.log(` -> Created status comment for ${e} as '${m}'`)}a[e]=m}d++}return{testcaseCommentIds:i,testcaseStatuses:a}};const he=se?parseInt(String(se),10)||10:10;for(let t=0;t<e.changes.length;t+=he){const o=e.changes.slice(t,t+he);await Promise.all(o.map((async e=>{try{if(e.action==="add"){const t=(0,U.formatResourceAddress)(e.resourceType,e.identity);console.log(`${t}: Creating...`);const o=Date.now();const i=d.resource.evaluate(e.resourceType,e.scenario,{state:ue});await resolvePayloadMilestone(i);const m=await de.createIssue(i);if(m.node_id){const t=await de.addToProject(m.node_id);if(t&&e.scenario?.custom?.fields){await de.updateProjectItemFields(t,e.scenario.custom.fields)}}const f=(0,U.elapsedSeconds)(o);const h=de.formatRemoteId(m.number);console.log((0,a.green)(`${t}: Creation complete after ${f}s [id=${h}]`));await linkSubIssues(e,m.number);const{testcaseCommentIds:P,testcaseStatuses:_}=await syncTestrunComments(e,m.number);ue.upsertResource({type:e.resourceType,identity:e.identity,attributes:{localHash:e.localHash,remoteId:h,issueNumber:m.number,title:i.title,body:i.body,labels:i.labels,assignees:i.assignees,milestone:i.milestone,custom_fields:i.custom_fields,...P?{testcaseCommentIds:P,testcaseStatuses:_}:{}},lastApplied:(new Date).toISOString()});await linkSubIssues(e,m.number);pe++}else if(e.action==="replace"){const t=(0,U.formatResourceAddress)(e.resourceType,e.identity);const o=e.remoteId??"";console.log(`${t}: Replacing... [id=${o}]`);const i=Date.now();if(e.issueNumber){await de.updateIssue(e.issueNumber,{state:"closed"})}const m=d.resource.evaluate(e.resourceType,e.scenario,{state:ue});await resolvePayloadMilestone(m);const f=await de.createIssue(m);if(f.node_id){const t=await de.addToProject(f.node_id);if(t&&e.scenario?.custom?.fields){await de.updateProjectItemFields(t,e.scenario.custom.fields)}}const h=(0,U.elapsedSeconds)(i);const P=de.formatRemoteId(f.number);console.log((0,a.green)(`${t}: Replacement complete after ${h}s [id=${P}]`));await linkSubIssues(e,f.number);const{testcaseCommentIds:_,testcaseStatuses:L}=await syncTestrunComments(e,f.number);ue.upsertResource({type:e.resourceType,identity:e.identity,attributes:{localHash:e.localHash,remoteId:P,issueNumber:f.number,title:m.title,body:m.body,labels:m.labels,assignees:m.assignees,milestone:m.milestone,custom_fields:m.custom_fields,..._?{testcaseCommentIds:_,testcaseStatuses:L}:{}},lastApplied:(new Date).toISOString()});fe++;pe++}else if(e.action==="change"){const t=(0,U.formatResourceAddress)(e.resourceType,e.identity);const o=e.remoteId??"";console.log(`${t}: Modifying... [id=${o}]`);const i=Date.now();const m=d.resource.evaluate(e.resourceType,e.scenario,{state:ue});await resolvePayloadMilestone(m);const f=await de.updateIssue(e.issueNumber,m);if(f.node_id){const t=await de.addToProject(f.node_id);if(t&&e.scenario?.custom?.fields){await de.updateProjectItemFields(t,e.scenario.custom.fields)}}const h=(0,U.elapsedSeconds)(i);console.log((0,a.green)(`${t}: Modifications complete after ${h}s [id=${o}]`));await linkSubIssues(e,f.number);const P=ue.getResources(e.resourceType).find((t=>t.identity===e.identity))?.attributes;const{testcaseCommentIds:_,testcaseStatuses:L}=await syncTestrunComments(e,f.number,P);ue.upsertResource({type:e.resourceType,identity:e.identity,attributes:{localHash:e.localHash,remoteId:o,issueNumber:e.issueNumber,title:m.title,body:m.body,labels:m.labels,assignees:m.assignees,milestone:m.milestone,custom_fields:m.custom_fields,..._?{testcaseCommentIds:_,testcaseStatuses:L}:{}},lastApplied:(new Date).toISOString()});me++}else if(e.action==="destroy"){const t=(0,U.formatResourceAddress)(e.resourceType,e.identity);const o=e.remoteId??"";console.log(`${t}: Destroying... [id=${o}]`);const i=Date.now();if(e.issueNumber){await de.closeIssue(e.issueNumber)}const d=(0,U.elapsedSeconds)(i);console.log((0,a.green)(`${t}: Destruction complete after ${d}s [id=${o}]`));ue.removeResource(e.identity);fe++}}catch(t){h.notify.push({type:"error",title:`${t.message}`,detail:[` with ${e.resourceType}.${e.identity}`]})}})))}console.log("");await ue.save();console.log((0,a.green)((0,a.bold)(`Apply complete! Resources: ${pe} added, ${me} changed, ${fe} destroyed.`)))}finally{await ue.releaseLock()}};t.applyCmd=applyCmd},29540:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.destroyCmd=void 0;const i=o(80465);const a=o(7066);const d=o(86999);const m=o(1622);const f=o(2560);const h=o(54472);const P=o(65301);const _=o(62978);const destroyCmd=async e=>{const{dir:t=".",verbose:o=false,scope:L,lock:U=true,lockTimeout:j="0s",input:H=true,statePath:V,backupPath:K}=e;const W=new d.Logger(o);const X=new a.State(t,V,K);await X.init();await X.acquireLock(U,j);try{const e=X.getResources(f.SCOPE_RESOURCE_MAP[L]);if(e.length===0){console.log("No resources to destroy. State is empty.");return}console.log((0,i.bold)(`\n${f.TITLE_APP} will destroy the following resources:\n`));for(const t of e){const e=t.attributes.remoteId??"";console.log(` ${(0,i.red)("-")} ${(0,_.formatResourceAddress)(t.type,t.identity)} [id=${e}]`)}console.log(`\n${(0,i.bold)("Plan:")} 0 to add, 0 to change, ${e.length} to destroy.\n`);if(!H){console.error(`\nError: No input allowed\n\n${f.TITLE_APP} requires manual approval. Use the -auto-approve flag.\n`);process.exit(1)}const a=await(0,P.askDestroyApproval)(e.length);if(!a){m.notify.push({type:"error",title:"error asking for approval: interrupted",detail:[]});return}const d=await(0,h.createCommandContext)({dir:t,verbose:o,statePath:V,backupPath:K,lock:false,silent:false});if(!d)return;let U=0;for(const t of e){try{const e=t.attributes.remoteId??"";const o=(0,_.formatResourceAddress)(t.type,t.identity);console.log(`${o}: Destroying... [id=${e}]`);const a=Date.now();if(t.attributes.issueNumber){await d.github.closeIssue(t.attributes.issueNumber)}console.log((0,i.green)(`${o}: Destruction complete after ${(0,_.elapsedSeconds)(a)}s [id=${e}]`));X.removeResource(t.identity);U++}catch(e){m.notify.push({type:"error",title:e.message,detail:[` with ${(0,_.formatResourceAddress)(t.type,t.identity)}`]})}}await X.save();console.log("");console.log((0,i.green)((0,i.bold)(`Destroy complete! Resources: ${U} destroyed.`)))}finally{await X.releaseLock()}};t.destroyCmd=destroyCmd},65083:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.diffCmd=void 0;const i=o(76982);const a=o(80465);const d=o(84489);const m=o(45392);const f=o(7066);const h=o(86999);const P=o(2560);function hashScenario(e){return(0,i.createHash)("sha256").update(JSON.stringify(e)).digest("hex")}function getStatusIcon(e){switch(e){case"synced":return(0,a.green)("✓");case"modified_locally":return(0,a.yellow)("~");case"new_local":return(0,a.cyan)("+");case"orphaned_remote":return(0,a.red)("-")}}function getStatusLabel(e){switch(e){case"synced":return"synced";case"modified_locally":return"modified locally";case"new_local":return"new (not applied)";case"orphaned_remote":return"orphaned (not in config)"}}const diffCmd=async e=>{const{dir:t=".",verbose:o=false,scope:i}=e;const _=new h.Logger(o);const L=new d.Config(t);const U=new m.Parser(t);const j=U.content();const H={identity:L.getIdentity(i),fields:L.getFields(i)};const V=U.filter(j,H,i)||[];const K=new f.State(t);await K.init();const W=P.SCOPE_RESOURCE_MAP[i];const X=K.getResources(W);const Q=new Map(X.map((e=>[e.identity,e])));const Y=[];const J=new Set;for(const e of V){const t=e.custom?.identity;if(!t)continue;const o=`${e.uri}::${t}`;J.add(o);const i=hashScenario(e);const a=Q.get(o);if(!a){Y.push({identity:o,status:"new_local",localHash:i})}else if(a.attributes.localHash!==i){Y.push({identity:o,status:"modified_locally",localHash:i,stateHash:a.attributes.localHash,remoteId:a.attributes.remoteId})}else{Y.push({identity:o,status:"synced",localHash:i,stateHash:a.attributes.localHash,remoteId:a.attributes.remoteId})}}for(const e of X){if(!J.has(e.identity)){Y.push({identity:e.identity,status:"orphaned_remote",stateHash:e.attributes.localHash,remoteId:e.attributes.remoteId})}}console.log("");console.log((0,a.bold)("Drift Detection Report"));console.log("═".repeat(60));console.log("");const Z=Y.filter((e=>e.status==="synced")).length;const ee=Y.filter((e=>e.status==="modified_locally")).length;const te=Y.filter((e=>e.status==="new_local")).length;const ne=Y.filter((e=>e.status==="orphaned_remote")).length;for(const e of Y){const t=getStatusIcon(e.status);const i=getStatusLabel(e.status);const d=e.remoteId?(0,a.dim)(` [id=${e.remoteId}]`):"";console.log(` ${t} ${(0,a.bold)(e.identity)}: ${i}${d}`);if(o&&e.status==="modified_locally"&&e.localHash&&e.stateHash){console.log(` Local: ${(0,a.dim)(e.localHash.substring(0,12))}...`);console.log(` State: ${(0,a.dim)(e.stateHash.substring(0,12))}...`)}}console.log("");console.log((0,a.bold)("Summary:"));console.log(` ${(0,a.green)("✓")} ${Z} synced`);if(ee>0)console.log(` ${(0,a.yellow)("~")} ${ee} modified locally`);if(te>0)console.log(` ${(0,a.cyan)("+")} ${te} new (not applied)`);if(ne>0)console.log(` ${(0,a.red)("-")} ${ne} orphaned (not in config)`);console.log("")};t.diffCmd=diffCmd},52353:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fmtCmd=void 0;const i=o(79896);const a=o(16928);const d=o(80465);const fmtCmd=async e=>{const{dir:t=".",check:o=false,list:a=true,write:m=true,recursive:f=false}=e;const h=findFeatureFiles(t,f);if(h.length===0){console.log("No .feature files found.");return}let P=0;for(const e of h){const t=(0,i.readFileSync)(e,"utf8");const f=formatGherkin(t);if(t!==f){P++;if(!o&&m){(0,i.writeFileSync)(e,f,"utf8")}if(a){if(o){console.log((0,d.yellow)(e))}else{console.log((0,d.green)(e))}}}}if(o){if(P>0){console.log(`\n${P} file(s) would be reformatted.`);process.exit(3)}else{console.log("All files are formatted correctly.")}}};t.fmtCmd=fmtCmd;function findFeatureFiles(e,t){try{const o=(0,i.statSync)(e);if(o.isFile()&&e.endsWith(".feature")){return[e]}if(o.isDirectory()){if(e.includes("node_modules")||e.includes(".git"))return[];const o=(0,i.readdirSync)(e,{withFileTypes:true});const d=[];for(const i of o){const o=(0,a.join)(e,i.name);if(i.isDirectory()){if(t){d.push(...findFeatureFiles(o,t))}}else if(i.name.endsWith(".feature")){d.push(o)}}return d}return[]}catch(e){return[]}}function formatGherkin(e){const t=e.split("\n");const o=[];let i=0;let a=false;let d=0;for(let e=0;e<t.length;e++){let m=t[e];if(m.trim().startsWith('"""')||m.trim().startsWith("```")){if(!a){a=true;d=6;o.push(" ".repeat(d)+m.trim())}else{a=false;o.push(" ".repeat(d)+m.trim())}continue}if(a){o.push(m);continue}let f=m.trim();if(f===""){if(o.length>0&&o[o.length-1]!==""){o.push("")}continue}if(f.startsWith("Feature:")){i=0}else if(f.startsWith("Rule:")||f.startsWith("Background:")||f.startsWith("Scenario:")||f.startsWith("Scenario Outline:")||f.startsWith("Example:")){i=2;if(o.length>0&&o[o.length-1]!==""&&!o[o.length-1].trim().startsWith("@")){o.push("")}}else if(f.startsWith("Given ")||f.startsWith("When ")||f.startsWith("Then ")||f.startsWith("And ")||f.startsWith("But ")||f.startsWith("* ")){i=4}else if(f.startsWith("Examples:")){i=4;if(o.length>0&&o[o.length-1]!==""){o.push("")}}else if(f.startsWith("|")){i=6}else if(f.startsWith("@")){let a=0;for(let o=e+1;o<t.length;o++){let e=t[o].trim();if(e===""||e.startsWith("@"))continue;if(e.startsWith("Feature:"))a=0;else if(e.startsWith("Rule:")||e.startsWith("Background:")||e.startsWith("Scenario:")||e.startsWith("Scenario Outline:"))a=2;else if(e.startsWith("Examples:"))a=4;break}i=a;if(o.length>0&&o[o.length-1]!==""){o.push("")}}else if(f.startsWith("#")){}else{if(i===0)i=2}o.push(" ".repeat(i)+f)}if(o.length>0&&o[o.length-1]!==""){o.push("")}return o.join("\n")}},23634:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.forceUnlockCmd=void 0;const i=o(80465);const a=o(7066);const d=o(2560);const forceUnlockCmd=async e=>{const{dir:t=".",lockId:m,force:f=false,statePath:h}=e;const P=new a.State(t,h);await P.init();const _=await P.forceUnlock(m);if(_.success){if(f){console.log((0,i.green)(`\n${d.TITLE_APP} state has been successfully unlocked!\n`));return}console.log(`Do you really want to force-unlock?`);console.log(` ${d.TITLE_APP} will remove the lock on the remote state.`);console.log(` This will allow local ${d.TITLE_APP} commands to modify this state, even though it`);console.log(` may be still be in use. Only 'yes' will be accepted to confirm.`);console.log("");const{createInterface:e}=o(23785);const t=e({input:process.stdin,output:process.stdout});t.question(" Enter a value: ",(async e=>{t.close();if(e.trim().toLowerCase()==="yes"){console.log((0,i.green)(`\n${d.TITLE_APP} state has been successfully unlocked!\n`));console.log(`The state has been unlocked, and ${d.TITLE_APP} commands should now be able to`);console.log(`obtain a new lock on the remote state.`)}else{console.error((0,i.red)(`\nUnlock cancelled.\n`));process.exit(1)}}))}else{if(_.currentLockId){console.error((0,i.red)(`Error: Lock ID does not match.\n\nExpected: ${m}\nActual: ${_.currentLockId}\n`))}else if(_.error){console.error((0,i.red)(`${_.error}\n`))}process.exit(1)}};t.forceUnlockCmd=forceUnlockCmd},79478:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.graphCmd=void 0;const i=o(80465);const a=o(45392);const graphCmd=async(e={})=>{const{dir:t=".",scope:o="testcase",drawCycles:d=false}=e;const m=new a.Parser(t);const f=m.content();const h=f.filter((e=>!e.uri.endsWith(".run.feature")&&!e.uri.endsWith(".plan.feature")));const P=f.filter((e=>e.uri.endsWith(".run.feature")));const _=f.filter((e=>e.uri.endsWith(".plan.feature")));const L=new Map;for(const e of _){if(!L.has(e.uri)){L.set(e.uri,{name:e.feature?.name||"Unnamed Plan",testruns:[]})}if(e.rule?.name)L.get(e.uri).testruns.push(e.rule.name)}const U=Array.from(L.values());const j=new Map;for(const e of P){if(!j.has(e.uri)){j.set(e.uri,{name:e.feature?.name||"Unnamed Run",testcases:[],identity:e.custom?.identity||e.feature?.name||"",uri:e.uri})}if(e.rule?.name)j.get(e.uri).testcases.push(e.rule.name);else if(e.name)j.get(e.uri).testcases.push(`${e.feature?.name}::${e.name}`)}const H=Array.from(j.values());if(U.length===0&&H.length===0&&h.length===0){console.log("No test configurations found.");return}console.log((0,i.bold)("\nTest Infrastructure Graph\n"));const link=e=>d?(0,i.magenta)(e):e;function findTcs(e){let t="*";let o=e;if(e.includes("::")){const i=e.split("::");t=i.pop()||"*";o=i.join("::")}return h.filter((e=>{const i=e.uri.endsWith(o)||e.uri.includes(o);const a=t==="*"||e.name===t||e.name.includes(t);return i&&a}))}if(o==="testplan"||o==="testcase"){for(const e of U){const t=e.name;console.log(`📦 ${(0,i.cyan)((0,i.bold)(t))} ${(0,i.dim)(`(testplan)`)}`);const a=e.testruns;for(let e=0;e<a.length;e++){const t=a[e];const d=e===a.length-1;const m=d?"└── ":"├── ";const f=H.find((e=>e.identity===t||e.name===t||e.name.endsWith(t)||t.endsWith(e.name)||e.uri.endsWith(t)));if(f){const e=f.name;console.log(` ${link(m)}📂 ${(0,i.green)(e)} ${(0,i.dim)(`(testrun)`)}`);if(o==="testcase"){const e=f.testcases;for(let t=0;t<e.length;t++){const o=e[t];const a=t===e.length-1;const m=d?" ":"│ ";const f=a?"└── ":"├── ";const h=findTcs(o);if(h.length>0){for(let e=0;e<h.length;e++){const t=h[e];const o=a&&e===h.length-1;const d=o?"└── ":"├── ";console.log(` ${m}${link(d)}📄 ${t.name} ${(0,i.dim)(`(testcase)`)}`)}}else{console.log(` ${m}${link(f)}📄 ${(0,i.dim)(o+" (Not found)")}`)}}}}else{console.log(` ${link(m)}📂 ${(0,i.dim)(t+" (Not found)")}`)}}console.log("")}if(o==="testcase"){const e=new Set(U.flatMap((e=>e.testruns||[])));const t=H.filter((t=>!Array.from(e).some((e=>t.identity===e||t.name===e||t.uri.endsWith(e)||e.endsWith(t.name)))));if(t.length>0){console.log((0,i.bold)("Orphaned Test Runs (Not linked to any testplan)\n"));for(const e of t){const t=e.name;console.log(`📂 ${(0,i.green)(t)} ${(0,i.dim)(`(testrun)`)}`);const o=e.testcases;for(let e=0;e<o.length;e++){const t=o[e];const i=e===o.length-1;const a=i?"└── ":"├── ";console.log(` ${link(a)}📄 ${t}`)}console.log("")}}}}else if(o==="testrun"){for(const e of H){const t=e.name;console.log(`📂 ${(0,i.green)((0,i.bold)(t))} ${(0,i.dim)(`(testrun)`)}`);const o=e.testcases;for(let e=0;e<o.length;e++){const t=o[e];const a=e===o.length-1;const d=a?"└── ":"├── ";const m=findTcs(t);if(m.length>0){for(let e=0;e<m.length;e++){const t=m[e];const o=a&&e===m.length-1;const d=o?"└── ":"├── ";console.log(` ${link(d)}📄 ${t.name} ${(0,i.dim)(`(testcase)`)}`)}}else{console.log(` ${link(d)}📄 ${(0,i.dim)(t+" (Not found)")}`)}}console.log("")}}};t.graphCmd=graphCmd},52541:function(e,t,o){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.importCmd=void 0;const a=o(84489);const d=o(7066);const m=o(92401);const f=o(45392);const h=o(80573);const P=o(80465);const _=o(74483);const L=i(o(79896));const U=o(86999);const j=o(2560);const importCmd=async e=>{const{dir:t=".",scope:o,identityArg:i,issueNumber:H,lock:V=true,lockTimeout:K="0s",statePath:W,backupPath:X}=e;const Q=new U.Logger;console.log((0,P.bold)(`Importing ${o} ${i} from issue #${H}...`));const Y=new d.State(t,W,X);await Y.init();await Y.acquireLock(V,K);try{const e=Y;const d=`${t}/${j.FILE_CONFIG}`;if(!L.default.existsSync(d)){console.error((0,P.red)(`Configuration file ${j.FILE_CONFIG} not found in directory.`));process.exit(1)}const U=JSON.parse(L.default.readFileSync(d,"utf-8"));const V=new m.GitHubAdapter(U.github);const K=parseInt(H,10);if(isNaN(K)){console.error((0,P.red)(`Invalid issue number: ${H}`));process.exit(1)}let W=i;const X=new a.Config(t);const Q={identity:X.getIdentity(o),fields:X.getFields(o)};const matchesScope=(e,t)=>{const o=j.SCOPE_CONFIG[t];return e.feature?.tags?.includes(o.tag)||e.uri.endsWith(o.ext)};const J=new f.Parser(t);const Z=J.content();const ee=Z.filter((e=>matchesScope(e,o)));let te=J.filter(ee,Q,o)||[];const ne=te.find((e=>{const t=o==="testrun"||o==="testplan"?e.custom?.identity:e.custom?.identity;if(!t)return false;return t===i||t.endsWith(i)}));if(ne){W=ne.custom?.identity||i;console.log(`Resolved short identity to full identity: ${W}`)}else{console.log((0,P.yellow)(`Warning: Could not find matching local scenario for identity: ${i}`));console.log((0,P.yellow)(`Import will proceed with the exact identity provided, but it might not map to any local file.`))}console.log(`Fetching issue #${K} from GitHub...`);const re=await V.getIssue(K);if(!re){console.error((0,P.red)(`Issue #${K} not found in GitHub repository.`));process.exit(1)}if(re.state==="closed"){console.log((0,P.yellow)(`Warning: Issue #${K} is currently closed.`))}const oe=j.SCOPE_RESOURCE_MAP[o];const ie=V.formatRemoteId(K);let se="";if(ne){se=(0,_.hashScenario)(ne)}const ae=ne?h.resource.evaluate(oe,ne,{state:Y}):null;const ce=ae;e.upsertResource({type:oe,identity:W,attributes:{title:re.title,body:re.body||"",labels:ae?ce.labels:[],assignees:ae?ce.assignees:[],milestone:ae?ce.milestone:"",custom_fields:ae?ce.custom_fields:{},remoteId:ie,issueNumber:re.number,localHash:se},lastApplied:(new Date).toISOString()});e.save();console.log((0,P.green)(`\nImport successful!`));console.log(`State updated for ${(0,P.bold)(`${oe}.${W}`)} -> Issue #${K}`);console.log(`Run 'plan' to see if any local changes need to be applied.`)}finally{await Y.save();await Y.releaseLock()}};t.importCmd=importCmd},70722:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.initCmd=void 0;const i=o(2560);const a=o(79896);const d=o(84489);const m=o(86999);const f=o(16928);const h=o(7066);const resolvePaths=e=>({configPath:(0,f.join)(e,i.FILE_CONFIG),statePath:(0,f.join)(e,i.FILE_STATE)});const ensureWorkingDirectory=(e,t)=>{if((0,a.existsSync)(e))return;(0,a.mkdirSync)(e,{recursive:true});t.info(`Created ${e} directory`)};const createConfigIfNotExists=(e,t)=>{if((0,a.existsSync)(e)){t.error([`${i.TITLE_APP} initialized in not empty directory!`,`The directory has ${i.TITLE_APP} configuration files. You may begin working`,`with ${i.TITLE_APP} immediately by creating ${i.TITLE_APP} resources.`])}const o={version:i.VERSION_CONFIG,github:{owner:"<required>",repository:"<required>"},scope:{testcase:{fields:[]},testrun:{fields:[]},testplan:{fields:[]}}};(0,a.writeFileSync)(e,JSON.stringify(o,null,2),"utf-8")};const ensureStateExists=(e,t)=>{if((0,a.existsSync)(e))return;const o={version:i.VERSION_STATE,lastSync:(new Date).toISOString(),testcase:[],testrun:[],testplan:[]};(0,a.writeFileSync)(e,JSON.stringify(o,null,2),"utf-8")};const loadValidatedConfig=e=>{const t=new d.Config(e);return t};const printInitSummary=(e,t)=>{e.info(`- Configuration: ${i.FILE_CONFIG} (v${t.getConfig().version})`);e.info(`- State backend: ready`);e.blank()};const printNextSteps=e=>{e.success(`${i.TITLE_APP} has been successfully initialized!`,{bold:true});e.blank();e.info(`You may now begin working with ${i.TITLE_APP}. Try running "${i.TITLE_CLI} plan" to see`);e.info("any changes that are required for your test management resources.");e.blank();e.info(`If you ever set or change configuration for ${i.TITLE_APP}, rerun this command to`);e.info("reinitialize your working directory.")};const initCmd=async({dir:e=".",verbose:t=false,backendConfigRaw:o,lock:a=true,lockTimeout:d="0s",reconfigure:f=false,backendEnabled:P=true,isJson:_=false}={})=>{const L=new m.Logger(t,_);const U=resolvePaths(e);ensureWorkingDirectory(e,L);createConfigIfNotExists(U.configPath,L);L.info("Initializing the backend...",{bold:true});L.info(`Initializing ${i.TITLE_APP} configuration...`,{bold:true});const j=loadValidatedConfig(e);let H=j.getBackend();if(!P){H={type:"local",config:{}}}if(!H||H.type==="local"){ensureStateExists(U.statePath,L)}else{const t=new h.State(e,undefined,undefined,!P,o);try{await t.acquireLock(a,d);await t.init();if(!t.getState().resources){await t.save()}}catch(e){L.error(`Failed to initialize remote backend: ${e.message}`)}finally{await t.releaseLock()}}printInitSummary(L,j);printNextSteps(L)};t.initCmd=initCmd},17155:function(e,t,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,o,i){if(i===undefined)i=o;var a=Object.getOwnPropertyDescriptor(t,o);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,i,a)}:function(e,t,o,i){if(i===undefined)i=o;e[i]=t[o]});var a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))t[t.length]=o;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o=ownKeys(e),d=0;d<o.length;d++)if(o[d]!=="default")i(t,e,o[d]);a(t,e);return t}}();Object.defineProperty(t,"__esModule",{value:true});t.loginCmd=void 0;const m=o(80465);const f=d(o(23785));const h=o(72633);const loginCmd=async(e={})=>{let{hostname:t="app.terraform.io"}=e;if(t==="app.terraform.io")t="github.com";console.log(`\nTerratest must now request an API token for ${(0,m.bold)(t)}.\nThis token will be stored in plain text at ~/.terratest.d/credentials.json.\n\nIf you are logging into GitHub, you can generate a Personal Access Token (classic)\nwith the 'repo' scope at: https://github.com/settings/tokens\n`);const o=f.createInterface({input:process.stdin,output:process.stdout});return new Promise((e=>{o.question(`Token for ${t}: `,(i=>{o.close();const a=i.trim();if(!a){console.log("\nToken cannot be empty. Login aborted.");process.exit(1)}const d=new h.Credentials;d.setToken(t,a);console.log(`\n${(0,m.green)("Success!")} Logged in to ${t}.`);e()}))}))};t.loginCmd=loginCmd},13834:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logoutCmd=void 0;const i=o(80465);const a=o(72633);const logoutCmd=async(e={})=>{let{hostname:t="app.terraform.io"}=e;if(t==="app.terraform.io")t="github.com";const o=new a.Credentials;const d=o.removeToken(t);if(d){console.log(`\n${(0,i.green)("Success!")} Removed credentials for ${t}.`)}else{console.log(`\n${(0,i.yellow)("Warning:")} No credentials found for ${t}.`)}};t.logoutCmd=logoutCmd},74483:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.planCmd=void 0;t.hashScenario=hashScenario;t.calculatePlan=calculatePlan;const i=o(76982);const a=o(80465);const d=o(80573);const m=o(84489);const f=o(45392);const h=o(32721);const P=o(7066);const _=o(86999);const L=o(79896);const U=o(31821);const j=o(2560);function hashScenario(e){return(0,i.createHash)("sha256").update(JSON.stringify(e)).digest("hex")}async function calculatePlan(e){const{dir:t,scope:i,variables:d,statePath:_,backupPath:L,target:U,destroyPlan:H=false,refreshOnly:V=false,preLoadedState:K,lock:W=true,lockTimeout:X="0s",replaceTargets:Q,compactWarnings:Y,testDirectory:J}=e;const Z=new m.Config(t);const ee=j.SCOPE_CONFIG[i];const te=ee.resource;const ne=J?o(16928).join(t,J):t;const re=new f.Parser(ne,d);const oe=re.content();const matchesScope=(e,t)=>{const o=j.SCOPE_CONFIG[t];return e.feature?.tags?.includes(o.tag)||e.uri.endsWith(o.ext)};let ie=oe.filter((e=>matchesScope(e,i)));const se={identity:Z.getIdentity(i),fields:Z.getFields(i)};let ae=re.filter(ie,se,i)||[];if(U){ae=ae.filter((e=>{const t=e.custom?.identity?`${e.uri}::${e.custom.identity}`:"";return t===U||t.startsWith(`${U}::`)}))}if(H){ae=[]}h.policy.scanner(ae,i,false,Y);const ce=K||new P.State(t,_,L);if(!K){await ce.init()}await ce.acquireLock(W,X);let le=ce.getResources(te);if(U){le=le.filter((e=>e.identity===U||e.identity.startsWith(`${U}::`)))}if(V){return{changes:[],state:ce,hasChanges:false}}for(const e of le){const t=e.attributes.remoteId?`[id=${e.attributes.remoteId}]`:"";console.log((0,a.bold)(`${e.type}.${e.identity}: Refreshing state... ${t}`))}console.log("");const ue=new Map(le.map((e=>[e.identity,e])));const de=new Set;const pe=[];for(const e of ae){let t;if(i==="testrun"||i==="testplan"){t=e.custom?.identity||"";if(!t)continue}else{const o=e.custom?.identity;if(!o)continue;t=`${e.uri}::${o}`}de.add(t);const o=hashScenario(e);const a=ue.get(t);const d=Q?Array.isArray(Q)?Q.includes(t):Q===t:false;if(!a){pe.push({action:"add",identity:t,resourceType:te,scenario:e,localHash:o})}else if(a.tainted||d){pe.push({action:"replace",identity:t,resourceType:te,scenario:e,remoteId:a.attributes.remoteId,issueNumber:a.attributes.issueNumber,localHash:o})}else if(a.attributes.localHash!==o){pe.push({action:"change",identity:t,resourceType:te,scenario:e,remoteId:a.attributes.remoteId,issueNumber:a.attributes.issueNumber,localHash:o})}}for(const e of le){if(!de.has(e.identity)){pe.push({action:"destroy",identity:e.identity,resourceType:te,scenario:i==="testrun"||i==="testplan"?{uri:"(state)",feature:{tags:[],keyword:"",name:e.attributes.title,description:""},location:0,keyword:"",name:e.attributes.title,description:"",steps:[],tags:Array.isArray(e.attributes.labels)?e.attributes.labels:e.attributes.labels?String(e.attributes.labels).split(","):[],custom:{identity:e.identity}}:{uri:"(state)",feature:{tags:[],keyword:"",name:"",description:""},location:0,keyword:"",name:e.attributes.title,description:"",steps:[],tags:e.attributes.labels,custom:{identity:e.identity}},remoteId:e.attributes.remoteId,issueNumber:e.attributes.issueNumber,localHash:e.attributes.localHash})}}return{changes:pe,hasChanges:pe.length>0,state:ce}}const planCmd=async e=>{const{dir:t=".",verbose:o=false,scope:i,outPath:a,lock:m=true,lockTimeout:f="0s",variables:h,isJson:H=false,detailedExitCode:V=false,statePath:K,backupPath:W,target:X,destroyPlan:Q=false,refresh:Y=true,refreshOnly:J=false,replaceTargets:Z,parallelism:ee,compactWarnings:te=false,testDirectory:ne}=e;const re=new _.Logger(o);const oe=new P.State(t,K,W);await oe.init();let ie;try{if(Y&&!Q){if(!H)console.log("Acquiring state lock. This may take a few moments...");await(0,U.refreshState)({dir:t,scope:i,state:oe,logger:re,silent:H,parallelismRaw:ee})}ie=await calculatePlan({dir:t,scope:i,variables:h,statePath:K,backupPath:W,target:X,destroyPlan:Q,refreshOnly:J,preLoadedState:oe,lock:m,lockTimeout:f,replaceTargets:Z,compactWarnings:te,testDirectory:ne});if(H){const e={terratest_version:j.VERSION_CLI,scope:i,changes:ie.changes};console.log(JSON.stringify(e,null,2))}else{d.resource.summary(ie.changes,true,{state:ie.state,outPath:a})}}finally{await oe.releaseLock()}if(a){const e={terratest_version:j.VERSION_CLI,scope:i,changes:ie.changes};try{(0,L.writeFileSync)(a,JSON.stringify(e,null,2),"utf-8");console.log(`\nSaved the plan to: ${a}\n\nTo perform exactly these actions, run the following command to apply:\n terratest apply "${a}"`)}catch(e){re.error(`Failed to write plan to ${a}: ${e.message}`)}}if(V){process.exitCode=ie.hasChanges?2:0}return ie};t.planCmd=planCmd},31821:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.refreshCmd=t.refreshState=void 0;const i=o(80465);const a=o(92401);const d=o(84489);const m=o(7066);const f=o(86999);const h=o(1622);const P=o(2560);const refreshState=async e=>{const{dir:t,scope:o,state:m,logger:f,silent:_=false,parallelismRaw:L}=e;const U=P.SCOPE_RESOURCE_MAP[o];const j=m.getResources(U);if(j.length===0){await m.save();if(!_)console.log("No resources in state to refresh.");return}const H=new d.Config(t);const V=H.getGitHub();if(!V){if(!_){h.notify.push({type:"error",title:"GitHub configuration not found",detail:[P.ERR_GITHUB_CONFIG_NOT_FOUND],close:true})}return}const K=new a.GitHubAdapter(V);let W=0;let X=0;const Q=L?parseInt(String(L),10)||10:10;for(let e=0;e<j.length;e+=Q){const t=j.slice(e,e+Q);await Promise.all(t.map((async e=>{const t=e.attributes.remoteId??"";if(!_)console.log(`${e.type}.${e.identity}: Refreshing state... ${(0,i.dim)(`[id=${t}]`)}`);try{if(!e.attributes.issueNumber){if(!_)console.log((0,i.yellow)(` ${e.identity}: No issue number — removing from state`));m.removeResource(e.identity);X++;return}const t=await K.getIssue(e.attributes.issueNumber);if(!t){if(!_)console.log((0,i.red)(` ${e.identity}: Issue #${e.attributes.issueNumber} not found — removing from state`));m.removeResource(e.identity);X++}else if(t.state==="closed"){if(!_)console.log((0,i.yellow)(` ${e.identity}: Issue #${e.attributes.issueNumber} is closed — removing from state`));m.removeResource(e.identity);X++}else{if(e.attributes.title!==t.title){f.debug(` ${e.identity}: Title changed remotely: "${e.attributes.title}" → "${t.title}"`);e.attributes.title=t.title;m.upsertResource(e)}W++}}catch(t){if(!_){h.notify.push({type:"warning",title:`Failed to refresh ${e.identity}: ${t.message}`,detail:[]})}}})))}await m.save();if(!_){console.log("");console.log((0,i.green)((0,i.bold)(`Refresh complete! ${W} resource(s) refreshed, ${X} removed.`)))}};t.refreshState=refreshState;const refreshCmd=async e=>{const{dir:o=".",verbose:i=false,scope:a,lock:d=true,lockTimeout:h="0s",statePath:P,backupPath:_,parallelismRaw:L,compactWarnings:U}=e;const j=new f.Logger(i);const H=new m.State(o,P,_);await H.init();await H.acquireLock(d,h);try{await(0,t.refreshState)({dir:o,scope:a,state:H,logger:j,silent:false,parallelismRaw:L})}finally{await H.releaseLock()}};t.refreshCmd=refreshCmd},8938:function(e,t,o){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.reportCmd=void 0;const a=o(7066);const d=o(80465);const m=i(o(79896));const reportCmd=async e=>{const{dir:t,type:o,format:i,filter:f,out:h,groupBy:P,statePath:_}=e;const L=new a.State(t,_);await L.init();const U=L.getResources("github_testcase");const j=L.getResources("github_testrun");const H=L.getResources("github_testplan");const V=new Map;for(const e of j)V.set(e.identity,e);let K=[];const W=new Set;for(const e of j){const t=e.attributes.testcaseStatuses||{};for(const[o,i]of Object.entries(t)){const t=U.find((e=>e.identity===o));if(!t)continue;W.add(o);K.push({id:o,type:"github_testcase",title:String(t.attributes.title||""),status:i||"pending",labels:Array.isArray(t.attributes.labels)?t.attributes.labels.map(String):[],assignees:Array.isArray(t.attributes.assignees)?t.attributes.assignees.map(String):[],milestone:String(t.attributes.milestone||""),testRunId:e.identity,testPlanId:"",issueNumber:Number(t.attributes.issueNumber||0),issueUrl:`https://github.com/issues/${t.attributes.issueNumber}`,custom_fields:t.attributes.custom_fields||{}})}}for(const e of U){if(!W.has(e.identity)){K.push({id:e.identity,type:"github_testcase",title:String(e.attributes.title||""),status:"unexecuted",labels:Array.isArray(e.attributes.labels)?e.attributes.labels.map(String):[],assignees:Array.isArray(e.attributes.assignees)?e.attributes.assignees.map(String):[],milestone:String(e.attributes.milestone||""),testRunId:"",testPlanId:"",issueNumber:Number(e.attributes.issueNumber||0),issueUrl:`https://github.com/issues/${e.attributes.issueNumber}`,custom_fields:e.attributes.custom_fields||{}})}}for(const e of f){const[t,o]=e.split("=");if(!t||!o)continue;K=K.filter((e=>{const i=e[t]||e.custom_fields[t];if(Array.isArray(i)){return i.includes(o)}return String(i)===o}))}let X="";if(i==="json"){X=JSON.stringify(K,null,2)}else if(i==="csv"){const e=["ID","Title","Status","Labels","Assignees","Milestone","TestRun","IssueNumber"];const t=K.map((e=>[e.id,`"${e.title.replace(/"/g,'""')}"`,e.status,`"${e.labels.join(" ")}"`,`"${e.assignees.join(" ")}"`,`"${e.milestone}"`,e.testRunId,e.issueNumber]));X=[e.join(","),...t.map((e=>e.join(",")))].join("\n")}else{X=generateMarkdownReport(o,K,P)}if(h){m.default.writeFileSync(h,X,"utf-8");console.log((0,d.green)(`Report saved to ${h}`))}else{console.log(X)}};t.reportCmd=reportCmd;const f={passed:"✅",failed:"❌",pending:"⏳",blocked:"⚠️",skipped:"⏭️",unexecuted:"❔"};function generateMarkdownReport(e,t,o="labels"){const i=[];if(e==="testcase-summary"){i.push("# Informe de Casos de Prueba");i.push("");i.push("| ID | Título | Etiquetas | Estado |");i.push("|---|---|---|---|");t.forEach((e=>{const t=f[e.status.toLowerCase()]||f.unexecuted;i.push(`| ${e.id} | ${e.title} | ${e.labels.join(", ")} | ${t} ${e.status} |`)}))}else if(e==="execution-summary"){i.push("# Informe de Ejecuciones de Pruebas");i.push("");const e=groupByField(t,"testRunId");for(const[t,o]of Object.entries(e)){i.push(`### Run: ${t||"Sin Ejecución"}`);const e=getStats(o);i.push(`- ✅ Passed: ${e.passed}`);i.push(`- ❌ Failed: ${e.failed}`);i.push(`- ⏳ Pending: ${e.pending}`);i.push("")}}else if(e==="defects"){i.push("# Informe de Defectos");i.push("");const e=t.filter((e=>["failed","blocked"].includes(e.status.toLowerCase())));if(e.length===0){i.push("🎉 No hay defectos reportados.")}else{i.push("| Run | Test Case | Título | Issue |");i.push("|---|---|---|---|");e.forEach((e=>{i.push(`| ${e.testRunId} | ${e.id} | ${e.title} | [#${e.issueNumber}](${e.issueUrl}) |`)}))}}else if(e==="traceability"){i.push("# Informe de Trazabilidad");i.push("");i.push("| Requerimiento/Etiqueta | Test Case | Estado |");i.push("|---|---|---|");const e=groupByTags(t);for(const[t,o]of Object.entries(e)){o.forEach((e=>{const o=f[e.status.toLowerCase()]||f.unexecuted;i.push(`| ${t} | ${e.id} | ${o} |`)}))}}else if(e==="coverage"){i.push("# Informe de Cobertura");i.push("");const e=groupByTags(t);i.push("| Etiqueta | Total | ✅ Passed | ❌ Failed | Cobertura % |");i.push("|---|---|---|---|---|");for(const[t,o]of Object.entries(e)){const e=getStats(o);const a=o.length;const d=a>0?Math.round(e.passed/a*100):0;i.push(`| ${t} | ${a} | ${e.passed} | ${e.failed} | ${d}% |`)}}else if(e==="two-dimensional"){i.push("# Informe Bidimensional");i.push("");const e=groupByTags(t);const o=["passed","failed","pending","blocked","skipped","unexecuted"];const a=["Etiqueta",...o.map((e=>`${f[e]} ${e}`))];i.push(`| ${a.join(" | ")} |`);i.push(`|${a.map((()=>"---")).join("|")}|`);for(const[t,a]of Object.entries(e)){const e=getStats(a);const d=[t];for(const t of o){d.push(String(e[t]||0))}i.push(`| ${d.join(" | ")} |`)}}else if(e==="raw"){i.push("# Raw Data Export");i.push("> Note: Use --format json or --format csv for structured data.")}else{i.push(`Unknown report type: ${e}`)}return i.join("\n")}function groupByField(e,t){const o={};for(const i of e){const e=String(i[t]||"");if(!o[e])o[e]=[];o[e].push(i)}return o}function groupByTags(e){const t={};for(const o of e){for(const e of o.labels){if(!t[e])t[e]=[];t[e].push(o)}if(o.labels.length===0){if(!t["untagged"])t["untagged"]=[];t["untagged"].push(o)}}return t}function getStats(e){const t={passed:0,failed:0,pending:0,blocked:0,skipped:0,unexecuted:0};for(const o of e){const e=o.status.toLowerCase();if(t[e]!==undefined){t[e]++}else{t[e]=1}}return t}},45765:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.showCmd=void 0;const i=o(80465);const a=o(7066);const d=o(86999);const m=o(2560);const showCmd=async(e={})=>{const{type:t="state",verbose:o=false,dir:f=".",statePath:h,backupPath:P}=e;const _=new d.Logger(o);if(t==="state"){const e=new a.State(f,h,P);await e.init();const t=e.getState();const o=t.resources;console.log("");console.log((0,i.bold)(`# ${m.TITLE_APP} State`));console.log(` Version: ${t.version}`);console.log(` Serial: ${t.serial}`);console.log(` Lineage: ${t.lineage}`);console.log(` Last Sync: ${t.lastSync||"(never)"}`);console.log(` Resources: ${o.length}`);console.log("");if(o.length>0){for(const e of o){const t=e.attributes.remoteId??"(unknown)";const o=e.attributes.issueNumber?(0,i.green)("synced"):(0,i.yellow)("pending");console.log(` ${(0,i.cyan)(e.type)}.${(0,i.bold)(e.identity)} [id=${t}] ${o}`);console.log(` title: ${e.attributes.title}`);console.log(` issueNumber: ${e.attributes.issueNumber??"(none)"}`);console.log(` localHash: ${(0,i.dim)(e.attributes.localHash.substring(0,12))}...`);console.log(` lastApplied: ${e.lastApplied}`);console.log("")}}}else if(t==="plan"){_.info(`Use "${m.TITLE_CLI} plan" to generate and view an execution plan.`)}else{_.error(`Unknown show type: "${t}". Use 'state' or 'plan'.`)}};t.showCmd=showCmd},61047:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stateCmd=void 0;const i=o(80465);const a=o(79896);const d=o(16928);const m=o(7066);const f=o(2560);const stateCmd=async e=>{const{dir:t=".",action:o,args:h,statePath:P,backupPath:_}=e;const L=new m.State(t,P,_);await L.init();if(o==="pull"){const e=L.getState();console.log(JSON.stringify(e,null,2));return}if(o==="push"){if(h.length!==1){console.error((0,i.red)(`Usage: ${f.TITLE_CLI} state push <path>`));process.exit(1)}const e=(0,d.resolve)(process.cwd(),h[0]);if(!(0,a.existsSync)(e)){console.error((0,i.red)(`Error: File ${e} not found.`));process.exit(1)}try{const t=(0,a.readFileSync)(e,"utf-8");const o=JSON.parse(t);await L.acquireLock(true,"0s");const d=L.getState();const m=d;m.resources=o.resources||[];m.serial+=1;await L.save();await L.releaseLock();console.log((0,i.green)(`Successfully pushed state from ${h[0]}`));return}catch(e){console.error((0,i.red)(`Error parsing or pushing state: ${e.message}`));process.exit(1)}}await L.acquireLock(true,"0s");try{const e=L.getResources();if(o==="list"){if(e.length===0){console.log("No resources found in state.")}else{for(const t of e){const e=t.tainted?"[tainted] ":"";console.log(`${e}${t.type}.${t.identity}`)}}}else if(o==="identities"){if(e.length===0){console.log("No resources found in state.")}else{for(const t of e){console.log(t.identity)}}}else if(o==="show"){if(h.length!==1){console.error((0,i.red)(`Usage: ${f.TITLE_CLI} state show <resource>`));process.exit(1)}const t=h[0];const o=t.includes(".")?t.split(".").slice(1).join("."):t;const a=e.find((e=>e.identity===o));if(!a){console.error((0,i.red)(`Error: Resource not found in state.`));process.exit(1)}console.log((0,i.bold)(`# ${a.type}.${a.identity}:`));console.log(`resource "${a.type}" "${a.identity}" {`);for(const[e,t]of Object.entries(a.attributes)){if(typeof t==="object"){console.log(` ${e} = ${JSON.stringify(t)}`)}else{console.log(` ${e} = ${JSON.stringify(t)}`)}}console.log(`}`);if(a.tainted){console.log((0,i.red)(`\nThis resource is marked as tainted.`))}}else if(o==="rm"){if(h.length===0){console.error((0,i.red)(`Usage: ${f.TITLE_CLI} state rm <resource>...`));process.exit(1)}let t=0;for(const o of h){const a=o.includes(".")?o.split(".").slice(1).join("."):o;if(e.find((e=>e.identity===a))){L.removeResource(a);console.log(`Removed ${o}`);t++}else{console.error((0,i.red)(`Error: Resource ${o} not found in state.`))}}if(t>0){await L.save();console.log((0,i.green)(`\nSuccessfully removed ${t} resource instance(s).`))}}else if(o==="mv"){if(h.length!==2){console.error((0,i.red)(`Usage: ${f.TITLE_CLI} state mv <source> <destination>`));process.exit(1)}const t=h[0];const o=h[1];const a=t.includes(".")?t.split(".").slice(1).join("."):t;const d=o.includes(".")?o.split(".").slice(1).join("."):o;const m=e.find((e=>e.identity===a));if(!m){console.error((0,i.red)(`Error: Source resource ${t} not found in state.`));process.exit(1)}L.removeResource(a);m.identity=d;if(o.includes(".")){m.type=o.split(".")[0]}L.upsertResource(m);await L.save();console.log((0,i.green)(`Move ${t} to ${o} successfully executed!`))}else{console.error((0,i.red)(`Usage: ${f.TITLE_CLI} state <identities|list|mv|pull|push|rm|show> [options] [args]`));process.exit(1)}}finally{await L.releaseLock()}};t.stateCmd=stateCmd},1510:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.taintCmd=void 0;const i=o(80465);const a=o(7066);const taintCmd=async e=>{const{dir:t=".",action:o,identityRaw:d,statePath:m,backupPath:f,allowMissing:h=false,lock:P=true,lockTimeout:_="0s"}=e;const L=new a.State(t,m,f);await L.init();await L.acquireLock(P,_);try{const e=d.replace(/^github_testcase\./,"");const t=L.getResources("github_testcase").find((t=>t.identity===e));if(!t){if(h){console.log((0,i.green)(`Resource not found in state, but allow-missing is set. Exiting successfully.`));process.exit(0)}console.error((0,i.red)(`Error: Resource not found in state.`));process.exit(1)}if(o==="taint"){if(t.tainted){console.log(`Resource instance ${d} is already tainted`)}else{t.tainted=true;L.upsertResource(t);await L.save();console.log((0,i.green)(`Resource instance ${d} has been marked as tainted.`))}}else{if(!t.tainted){console.log(`Resource instance ${d} is not tainted`)}else{delete t.tainted;L.upsertResource(t);await L.save();console.log((0,i.green)(`Resource instance ${d} has been successfully untainted.`))}}}finally{await L.releaseLock()}};t.taintCmd=taintCmd},30010:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateCmd=void 0;const i=o(79896);const a=o(16928);const d=o(84489);const m=o(45392);const f=o(32721);const h=o(86999);const validateCmd=async e=>{const{targetPath:t=".",verbose:o=false,scope:P,variables:_,isJson:L=false,testDirectory:U,noTests:j=false,query:H}=e;const V=new h.Logger(o);if(L){}else{V.info("Validating configuration...",{bold:true})}let K=t;let W=U?(0,a.join)(t,U):t;try{if((0,i.statSync)(W).isFile()){K=(0,a.dirname)(W)}}catch(e){}const X=new m.Parser(W,_);const Q=X.content();if(Q.length===0){if(L){console.log(JSON.stringify({valid:false,error_count:1,warning_count:0,diagnostics:[{severity:"error",summary:"Failed to read module directory",detail:`Module directory ${t} does not exist or cannot be read.`}]},null,2))}else{V.error(`Failed to read module directory\n\nModule directory ${W} does not exist or cannot be read.`)}return}const Y=new d.Config(K);V.debug(`Configuration loaded: v${Y.getConfig().version}`);V.debug(`Found ${Q.length} scenarios across feature files`);const J={testcase:{tag:"@testcase",ext:".case.feature"},testrun:{tag:"@testrun",ext:".run.feature"},testplan:{tag:"@testplan",ext:".plan.feature"}};const matchesScope=(e,t)=>{const o=J[t];return e.feature?.tags?.includes(o.tag)||e.uri.endsWith(o.ext)};const Z=Q.filter((e=>matchesScope(e,P)));if(Z.length===0){if(!L)V.warn(`No scenarios found for scope "${P}".`);return}if(!L)V.debug(`Found ${Z.length} scenarios matching scope "${P}"`);const ee={identity:Y.getIdentity(P),fields:Y.getFields(P)};let te=X.filter(Z,ee,P);if(H){const e=H.toLowerCase();te=te.filter((t=>t.name&&t.name.toLowerCase().includes(e)||t.custom?.identity&&t.custom.identity.toLowerCase().includes(e)||t.tags&&t.tags.some((t=>t.toLowerCase().includes(e)))||t.uri&&t.uri.toLowerCase().includes(e)));if(!L){V.info(`--- Query Results for "${H}" ---`,{bold:true});if(te.length===0){V.info(`No scenarios matched the query.`)}else{te.forEach((e=>{V.info(`- [${P}] ${e.custom?.identity||e.name} (File: ${e.uri}:${e.location})`)}))}V.blank()}}if(!j){f.policy.scanner(te,P,L)}else if(!L){V.info(`Skipping policy validation (-no-tests).`)}if(L){console.log(JSON.stringify({valid:true,error_count:0,warning_count:0,diagnostics:[]},null,2))}else{V.success("Success! The configuration is valid.",{bold:true});V.blank();V.info(` Scenarios: ${te.length}`);V.info(` Scope: ${P}`)}};t.validateCmd=validateCmd},62743:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.workspaceCmd=void 0;const i=o(80465);const a=o(86999);const d=o(7066);const m=o(2560);const workspaceCmd=async e=>{const{dir:t,verbose:o,args:f}=e;const h=new a.Logger(o);const P=new d.State(t);const _=f[0];const L=f[1];if(!_){h.error(`Usage: ${m.TITLE_CLI} workspace <subcommand> [options] [args]`);process.exit(1)}const U=P.getCurrentWorkspace();switch(_){case"show":console.log(U);break;case"list":const e=await P.listWorkspaces();for(const t of e){if(t===U){console.log((0,i.green)(`* ${t}`))}else{console.log(` ${t}`)}}break;case"new":if(!L){h.error("Expected a workspace name");process.exit(1)}const t=await P.listWorkspaces();if(t.includes(L)){h.error(`Workspace "${L}" already exists`);process.exit(1)}P.setCurrentWorkspace(L);console.log((0,i.green)(`Created and switched to workspace "${L}"!`));console.log("");console.log(`You're now on a new, empty workspace. Workspaces isolate their state,`);console.log(`so if you run "${m.TITLE_CLI} plan" ${m.TITLE_CLI} will not see any existing state`);console.log(`for this configuration.`);break;case"select":if(!L){h.error("Expected a workspace name");process.exit(1)}const o=await P.listWorkspaces();if(!o.includes(L)){h.error(`Workspace "${L}" doesn't exist.\n\nYou can create this workspace with the "new" subcommand.`);process.exit(1)}P.setCurrentWorkspace(L);console.log((0,i.green)(`Switched to workspace "${L}".`));break;case"delete":if(!L){h.error("Expected a workspace name");process.exit(1)}if(L==="default"){h.error(`Workspace "default" cannot be deleted.`);process.exit(1)}if(L===U){h.error(`Workspace "${L}" is your active workspace.\n\nYou cannot delete the currently active workspace. Please switch\nto another workspace and try again.`);process.exit(1)}const a=await P.listWorkspaces();if(!a.includes(L)){h.error(`Workspace "${L}" doesn't exist.`);process.exit(1)}const d=await P.deleteWorkspace(L);if(d){console.log((0,i.green)(`Deleted workspace "${L}"!`))}else{h.error(`Failed to delete workspace "${L}".`);process.exit(1)}break;default:h.error(`Invalid workspace subcommand: ${_}`);process.exit(1)}};t.workspaceCmd=workspaceCmd},2560:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MSG_APPROVE_ONLY_YES=t.MSG_ACQUIRING_LOCK=t.ERR_NO_INPUT_ALLOWED=t.ERR_GITHUB_CONFIG_NOT_FOUND=t.TESTCASE_STATUS_EMOJI=t.TESTCASE_STATUSES=t.SCOPE_CONFIG=t.SCOPE_EXT_MAP=t.SCOPE_TAG_MAP=t.SCOPE_RESOURCE_MAP=t.FILE_STATE=t.FILE_CONFIG=t.VERSION_STATE=t.VERSION_CONFIG=t.VERSION_CLI=t.TITLE_CLI=t.TITLE_APP=void 0;t.TITLE_APP="TerraTest";t.TITLE_CLI="terratest";t.VERSION_CLI="1.0.0-beta";t.VERSION_CONFIG="1.0";t.VERSION_STATE="1.0";t.FILE_CONFIG="terratest.json";t.FILE_STATE="terratest.state";t.SCOPE_RESOURCE_MAP={testcase:"github_testcase",testrun:"github_testrun",testplan:"github_testplan"};t.SCOPE_TAG_MAP={testcase:"@testcase",testrun:"@testrun",testplan:"@testplan"};t.SCOPE_EXT_MAP={testcase:".case.feature",testrun:".run.feature",testplan:".plan.feature"};t.SCOPE_CONFIG={testcase:{tag:t.SCOPE_TAG_MAP.testcase,ext:t.SCOPE_EXT_MAP.testcase,resource:t.SCOPE_RESOURCE_MAP.testcase},testrun:{tag:t.SCOPE_TAG_MAP.testrun,ext:t.SCOPE_EXT_MAP.testrun,resource:t.SCOPE_RESOURCE_MAP.testrun},testplan:{tag:t.SCOPE_TAG_MAP.testplan,ext:t.SCOPE_EXT_MAP.testplan,resource:t.SCOPE_RESOURCE_MAP.testplan}};t.TESTCASE_STATUSES=["pending","passed","failed","blocked","skipped","undefined"];t.TESTCASE_STATUS_EMOJI={pending:"⏳",passed:"✅",failed:"❌",blocked:"⚠️",skipped:"⏭️",undefined:"❓"};t.ERR_GITHUB_CONFIG_NOT_FOUND=`GitHub configuration not found. Add a "github" section to your ${t.FILE_CONFIG} with owner, repository, and tokenEnv.`;t.ERR_NO_INPUT_ALLOWED=`This command requires manual approval, but input is disabled. Use the -auto-approve flag to bypass approval.`;t.MSG_ACQUIRING_LOCK="Acquiring state lock. This may take a few moments...";t.MSG_APPROVE_ONLY_YES=`Only 'yes' will be accepted to approve.`},59491:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureRMBackend=void 0;const i=o(71400);const a=o(76982);const d=o(2560);class AzureRMBackend{config;workspace;containerClient;blobClient;currentLeaseId;originalKey;constructor(e,t="default"){this.config=e;this.workspace=t;const o=e.connection_string||process.env.AZURE_STORAGE_CONNECTION_STRING;if(!o){throw new Error("AzureRM backend requires AZURE_STORAGE_CONNECTION_STRING")}const a=i.BlobServiceClient.fromConnectionString(o);this.containerClient=a.getContainerClient(e.container_name);this.originalKey=e.key;if(this.workspace!=="default"){this.config.key=`env:/${this.workspace}/${this.originalKey}`}this.blobClient=this.containerClient.getBlockBlobClient(this.config.key)}async read(){try{await this.containerClient.createIfNotExists();const e=await this.blobClient.exists();if(!e){return this.emptyState()}const t=await this.blobClient.download(0);const o=await this.streamToString(t.readableStreamBody);return JSON.parse(o)}catch(e){return this.emptyState()}}async write(e){await this.containerClient.createIfNotExists();const t=JSON.stringify(e,null,2);const o={blobHTTPHeaders:{blobContentType:"application/json"}};if(this.currentLeaseId){o.conditions={leaseId:this.currentLeaseId}}await this.blobClient.upload(t,t.length,o)}async lock(e){const t=e.match(/^(\d+)s$/);const o=t?parseInt(t[1],10)*1e3:0;const i=Date.now();const d=await this.blobClient.exists();if(!d){await this.write(this.emptyState())}const m=this.blobClient.getBlobLeaseClient();while(true){try{const e=await m.acquireLease(-1);this.currentLeaseId=e.leaseId;await this.blobClient.setMetadata({lockid:(0,a.randomUUID)(),who:process.env.USER||"unknown",created:(new Date).toISOString()},{conditions:{leaseId:this.currentLeaseId}});return true}catch(e){if(e.statusCode===409||e.code==="LeaseAlreadyPresent"){if(Date.now()-i>=o){return false}await new Promise((e=>setTimeout(e,1e3)))}else{throw e}}}}async unlock(){if(!this.currentLeaseId)return true;try{const e=this.blobClient.getBlobLeaseClient(this.currentLeaseId);await e.releaseLease();this.currentLeaseId=undefined;return true}catch(e){return false}}async forceUnlock(e){try{const t=await this.blobClient.getProperties();const o=t.metadata?.lockid;if(t.leaseState==="available"){return{success:false,error:"No lock exists for the given state."}}if(o!==e){return{success:false,currentLockId:o||"unknown"}}const i=this.blobClient.getBlobLeaseClient();await i.breakLease(0);return{success:true}}catch(e){return{success:false,error:`Failed to force unlock: ${e.message}`}}}async isLocked(){try{const e=await this.blobClient.getProperties();return e.leaseState!=="available"}catch(e){return false}}emptyState(){return{version:d.VERSION_STATE,serial:0,lineage:(0,a.randomUUID)(),lastSync:"",resources:[]}}async streamToString(e){return new Promise(((t,o)=>{const i=[];e.on("data",(e=>{i.push(e.toString())}));e.on("end",(()=>{t(i.join(""))}));e.on("error",o)}))}async listWorkspaces(){const e=new Set(["default"]);try{for await(const t of this.containerClient.listBlobsFlat({prefix:"env:/"})){const o=t.name.match(/^env:\/([^\/]+)\//);if(o){e.add(o[1])}}}catch(e){}return Array.from(e)}async deleteWorkspace(e){if(e==="default")return false;try{const t=`env:/${e}/${this.originalKey}`;const o=this.containerClient.getBlockBlobClient(t);await o.deleteIfExists();return true}catch(e){return false}}}t.AzureRMBackend=AzureRMBackend},27814:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LocalBackend=void 0;const i=o(16928);const a=o(79896);const d=o(76982);const m=o(2560);class LocalBackend{dir;customStatePath;customBackupPath;workspace;constructor(e,t,o,i="default"){this.dir=e;this.customStatePath=t;this.customBackupPath=o;this.workspace=i}getWorkspaceStatePath(){if(this.customStatePath){return(0,i.resolve)(process.cwd(),this.customStatePath)}if(this.workspace!=="default"){return(0,i.resolve)(this.dir,`${m.FILE_STATE}.d`,this.workspace,m.FILE_STATE)}return(0,i.resolve)(this.dir,m.FILE_STATE)}resolvePath(){const e=this.getWorkspaceStatePath();if((0,a.existsSync)(e))return e;if(this.workspace==="default"){const e=(0,i.resolve)(process.cwd(),m.FILE_STATE);if((0,a.existsSync)(e))return e}return null}lockPath(){const e=this.resolvePath()??this.getWorkspaceStatePath();return`${e}.lock`}async read(){const e=this.resolvePath();if(!e||!(0,a.existsSync)(e)){return{version:m.VERSION_STATE,serial:0,lineage:(0,d.randomUUID)(),lastSync:"",resources:[]}}const t=await a.promises.readFile(e,"utf-8");return JSON.parse(t)}async write(e){const t=this.resolvePath()??this.getWorkspaceStatePath();const o=(0,i.resolve)(t,"..");if(!(0,a.existsSync)(o)){await a.promises.mkdir(o,{recursive:true})}const d=this.customBackupPath?(0,i.resolve)(process.cwd(),this.customBackupPath):`${t}.backup`;if((0,a.existsSync)(t)){await a.promises.copyFile(t,d)}await a.promises.writeFile(t,JSON.stringify(e,null,2),"utf-8")}async lock(e){const t=e.match(/^(\d+)s$/);const o=t?parseInt(t[1],10)*1e3:0;const i=this.lockPath();const m=Date.now();while(true){try{await a.promises.writeFile(i,JSON.stringify({id:(0,d.randomUUID)(),operation:"Operation",who:process.env.USER||"unknown",created:(new Date).toISOString()},null,2),{flag:"wx"});return true}catch(e){if(e.code==="EEXIST"){if(Date.now()-m>=o){return false}await new Promise((e=>setTimeout(e,1e3)))}else{throw e}}}}async unlock(){const e=this.lockPath();if((0,a.existsSync)(e)){try{await a.promises.unlink(e);return true}catch(e){return false}}return true}async forceUnlock(e){const t=this.lockPath();if(!(0,a.existsSync)(t)){return{success:false,error:`No lock exists for the given state. (Path checked: ${t})`}}try{const o=await a.promises.readFile(t,"utf-8");const i=JSON.parse(o);if(i.id!==e){return{success:false,currentLockId:i.id}}await a.promises.unlink(t);return{success:true}}catch(e){return{success:false,error:`The lock file could not be read or parsed.`}}}async isLocked(){return(0,a.existsSync)(this.lockPath())}async listWorkspaces(){const e=["default"];const t=(0,i.resolve)(this.dir,`${m.FILE_STATE}.d`);if((0,a.existsSync)(t)){const o=await a.promises.readdir(t,{withFileTypes:true});for(const t of o){if(t.isDirectory()){e.push(t.name)}}}return e}async deleteWorkspace(e){if(e==="default")return false;const t=(0,i.resolve)(this.dir,`${m.FILE_STATE}.d`,e);if((0,a.existsSync)(t)){await a.promises.rm(t,{recursive:true,force:true});return true}return false}}t.LocalBackend=LocalBackend},19979:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.S3Backend=void 0;const i=o(53711);const a=o(64305);const d=o(76982);const m=o(2560);class S3Backend{config;workspace;s3;dynamo;originalKey;constructor(e,t="default"){this.config=e;this.workspace=t;const o={region:e.region||process.env.AWS_REGION||"us-east-1"};this.s3=new i.S3Client(o);if(e.dynamodb_table){this.dynamo=new a.DynamoDBClient(o)}this.originalKey=e.key;if(this.workspace!=="default"){this.config.key=`env:/${this.workspace}/${this.originalKey}`}}async read(){try{const e=new i.GetObjectCommand({Bucket:this.config.bucket,Key:this.config.key});const t=await this.s3.send(e);const o=await(t.Body?.transformToString());if(!o){return this.emptyState()}return JSON.parse(o)}catch(e){if(e instanceof i.NoSuchKey||e.name==="NoSuchKey"||e.Code==="NoSuchKey"){return this.emptyState()}throw e}}async write(e){const t=new i.PutObjectCommand({Bucket:this.config.bucket,Key:this.config.key,Body:JSON.stringify(e,null,2),ContentType:"application/json"});await this.s3.send(t)}async lock(e){if(!this.dynamo||!this.config.dynamodb_table){return true}const t=e.match(/^(\d+)s$/);const o=t?parseInt(t[1],10)*1e3:0;const i=Date.now();const m=(0,d.randomUUID)();const f={LockID:{S:this.config.bucket+"/"+this.config.key},Info:{S:JSON.stringify({id:m,operation:"Operation",who:process.env.USER||"unknown",created:(new Date).toISOString()})}};while(true){try{await this.dynamo.send(new a.PutItemCommand({TableName:this.config.dynamodb_table,Item:f,ConditionExpression:"attribute_not_exists(LockID)"}));return true}catch(e){if(e instanceof a.ConditionalCheckFailedException||e.name==="ConditionalCheckFailedException"){if(Date.now()-i>=o){return false}await new Promise((e=>setTimeout(e,1e3)))}else{throw e}}}}async unlock(){if(!this.dynamo||!this.config.dynamodb_table)return true;try{await this.dynamo.send(new a.DeleteItemCommand({TableName:this.config.dynamodb_table,Key:{LockID:{S:this.config.bucket+"/"+this.config.key}}}));return true}catch(e){return false}}async forceUnlock(e){if(!this.dynamo||!this.config.dynamodb_table){return{success:false,error:"DynamoDB locking is not configured for this backend."}}try{const t=await this.dynamo.send(new a.GetItemCommand({TableName:this.config.dynamodb_table,Key:{LockID:{S:this.config.bucket+"/"+this.config.key}}}));if(!t.Item||!t.Item.Info){return{success:false,error:"No lock exists for the given state."}}const o=JSON.parse(t.Item.Info.S);if(o.id!==e){return{success:false,currentLockId:o.id}}await this.dynamo.send(new a.DeleteItemCommand({TableName:this.config.dynamodb_table,Key:{LockID:{S:this.config.bucket+"/"+this.config.key}}}));return{success:true}}catch(e){return{success:false,error:`Failed to force unlock: ${e.message}`}}}async isLocked(){if(!this.dynamo||!this.config.dynamodb_table)return false;try{const e=await this.dynamo.send(new a.GetItemCommand({TableName:this.config.dynamodb_table,Key:{LockID:{S:this.config.bucket+"/"+this.config.key}}}));return!!e.Item}catch(e){return false}}emptyState(){return{version:m.VERSION_STATE,serial:0,lineage:(0,d.randomUUID)(),lastSync:"",resources:[]}}async listWorkspaces(){const e=new Set(["default"]);try{const{ListObjectsV2Command:t}=await Promise.resolve().then(o.t.bind(o,53711,23));const i=new t({Bucket:this.config.bucket,Prefix:"env:/"});const a=await this.s3.send(i);if(a.Contents){for(const t of a.Contents){if(t.Key){const o=t.Key.match(/^env:\/([^\/]+)\//);if(o){e.add(o[1])}}}}}catch(e){}return Array.from(e)}async deleteWorkspace(e){if(e==="default")return false;try{const{DeleteObjectCommand:t}=await Promise.resolve().then(o.t.bind(o,53711,23));const i=`env:/${e}/${this.originalKey}`;const a=new t({Bucket:this.config.bucket,Key:i});await this.s3.send(a);return true}catch(e){return false}}}t.S3Backend=S3Backend},54472:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createCommandContext=createCommandContext;const i=o(92401);const a=o(84489);const d=o(7066);const m=o(86999);const f=o(1622);const h=o(2560);async function createCommandContext(e={}){const{dir:t=".",verbose:o=false,statePath:P,backupPath:_,lock:L=true,lockTimeout:U="0s",silent:j=false}=e;const H=new m.Logger(o);const V=new a.Config(t);const K=V.getGitHub();if(!K){if(!j){f.notify.push({type:"error",title:"GitHub configuration not found",detail:[h.ERR_GITHUB_CONFIG_NOT_FOUND],close:true})}return null}const W=new d.State(t,P,_);await W.init();await W.acquireLock(L,U);const X=new i.GitHubAdapter(K);return{state:W,github:X,config:V,logger:H}}},84489:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Config=void 0;const i=o(79896);const a=o(16928);const d=o(2560);const m=o(1622);class Config{dir;config={};constructor(e){this.dir=e;this.required()}resolve(){let e=(0,a.resolve)(this.dir);const t=(0,a.resolve)("/");while(e!==t){const t=(0,a.resolve)(e,d.FILE_CONFIG);if((0,i.existsSync)(t)){return t}const o=(0,a.resolve)(e,"..");if(o===e)break;e=o}const o=(0,a.resolve)(process.cwd(),d.FILE_CONFIG);return(0,i.existsSync)(o)?o:null}load(e){const t=(0,i.readFileSync)(e,"utf-8");this.config=JSON.parse(t);return this.config}getConfig(){return this.config}getGitHub(){return this.config.github}getBackend(){return this.config.backend}getIdentity(e){const t=this.config.scope?.[e]?.identity;if(e=="testcase")return t??"tc-*";if(e=="testrun")return t??"tr-*";if(e=="testplan")return t??"tp-*"}getFields(e){const t=this.config.scope?.[e]?.fields??[];return t}required(){const e=this.resolve();if(!e){m.notify.push({type:"error",title:"No configuration files",detail:["Plan requires configuration to be present. Planning without a configuration would mark everything for","destruction, which is normally not what is desired. If you would like to destroy everything, run plan with the",`-destroy option. Otherwise, create a ${d.TITLE_APP} configuration file (.json file) and try again.`],close:true})}const t=this.load(e);const o=t.version??"";if(o==null){m.notify.push({type:"error",title:`${d.FILE_CONFIG} is missing the "version" field`,detail:[`Add a "version" field to your ${d.FILE_CONFIG} file and rerun init.`],close:true})}if(o!==d.VERSION_CONFIG){m.notify.push({type:"error",title:`configuration version mismatch`,detail:[`Found version "${this.config.version}", but expected "${d.VERSION_CONFIG}".`,`Update ${d.FILE_CONFIG} to version ${d.VERSION_CONFIG} and rerun init.`],close:true})}}}t.Config=Config},72633:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Credentials=void 0;const i=o(79896);const a=o(16928);const d=o(70857);class Credentials{credsPath;constructor(){const e=(0,d.homedir)();const t=(0,a.join)(e,".terratest.d");if(!(0,i.existsSync)(t)){(0,i.mkdirSync)(t,{recursive:true})}this.credsPath=(0,a.join)(t,"credentials.json")}load(){if(!(0,i.existsSync)(this.credsPath)){return{credentials:{}}}try{const e=(0,i.readFileSync)(this.credsPath,"utf8");return JSON.parse(e)}catch{return{credentials:{}}}}save(e){(0,i.writeFileSync)(this.credsPath,JSON.stringify(e,null,2),"utf8")}getToken(e="github.com"){const t=this.load();return t.credentials?.[e]?.token}setToken(e="github.com",t){const o=this.load();if(!o.credentials)o.credentials={};o.credentials[e]={token:t};this.save(o)}removeToken(e="github.com"){const t=this.load();if(t.credentials?.[e]){delete t.credentials[e];this.save(t);return true}return false}}t.Credentials=Credentials},74297:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.writeStatusToFeatureFiles=writeStatusToFeatureFiles;const i=o(79896);const a=o(45392);function writeStatusToFeatureFiles(e,t,o){if(!o||t!=="testrun")return;const d=new Map;for(const e of o.split(",")){const[t,o]=e.split("=").map((e=>e.trim()));if(t&&o){d.set(t,o)}}if(d.size===0)return;const m=new a.Parser(e);const f=m.content();const h=new Map;for(const e of f){if(!e.rule||!e.name)continue;const t=`${e.rule.name}::${e.name}`;const o=e.name;let i=undefined;if(d.has(t))i=d.get(t);else if(d.has(o))i=d.get(o);if(i){let t=h.get(e.uri);if(!t){t=[];h.set(e.uri,t)}t.push({line:e.location,status:i})}}for(const[e,t]of h.entries()){try{const o=(0,i.readFileSync)(e,"utf-8").split("\n");const a=[];for(let e=0;e<o.length;e++){a.push(o[e]);const i=e+1;const d=t.find((e=>e.line===i));if(d){let t=-1;let i=e+1;while(i<o.length){const e=o[i].trim();if(e.startsWith("Scenario:")||e.startsWith("Rule:")||e.startsWith("Background:")){break}if(e.match(/^\*\s+status\s*=/i)){t=i;break}i++}if(t!==-1){o[t]=` * status = ${d.status}`}else{a.push(` * status = ${d.status}`)}}}(0,i.writeFileSync)(e,a.join("\n"),"utf-8");console.log(`Updated status in ${e}`)}catch(t){console.error(`Failed to update status in ${e}: ${t.message}`)}}}},45392:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Parser=void 0;const i=o(39711);const a=o(53772);const d=o(64777);const m=o(70313);class ReaderParser extends i.BaseParser{filter(e){return e}}class Parser{dir;variables;reader;constructor(e,t){this.dir=e;this.variables=t;this.reader=new ReaderParser(e,t)}content(){return this.reader.content()}filter(e,t,o){let i;switch(o){case"testcase":i=new a.TestcaseParser(this.dir,this.variables);break;case"testrun":i=new d.TestrunParser(this.dir,this.variables);break;case"testplan":i=new m.TestplanParser(this.dir,this.variables);break;default:i=new a.TestcaseParser(this.dir,this.variables)}return i.filter(e,t,o)}}t.Parser=Parser},39711:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseParser=t.FIELD_PATTERN=void 0;const i=o(40119);const a=o(28569);const d=o(79896);const m=o(16928);t.FIELD_PATTERN=/^(?:field)\s+([A-Za-z0-9_.-]+)\s*=\s*(.+)$/i;class BaseParser{dir;variables;constructor(e,t){this.dir=e;this.variables=t}find(e){try{const t=(0,d.statSync)(e);if(t.isFile()&&e.endsWith(".feature")){return[e]}if(t.isDirectory()){const t=(0,d.readdirSync)(e,{withFileTypes:true});const o=[];for(const i of t){const t=(0,m.join)(e,i.name);if(i.isDirectory()){o.push(...this.find(t))}else if(i.name.endsWith(".feature")){o.push(t)}}return o}return[]}catch(e){return[]}}format(e){const t=e.feature;const o=e.uri??"(unknown)";const toStep=e=>({keyword:e.keyword,keywordType:e.keywordType,text:e.text});const toBackground=e=>({keyword:e.keyword,name:e.name,steps:(e.steps??[]).map(toStep)});const interpolate=(e,t,o)=>t.reduce(((e,t,i)=>e.replace(new RegExp(`<${t}>`,"g"),o[i])),e);const processChildren=(e,i,a)=>{const d=[];const m=e[0]?.background?toBackground(e[0].background):i;for(const i of e){if(i.background)continue;if(i.scenario){const e=i.scenario;const f=(t?.tags??[]).map((e=>e.name));const h=[...f,...(e.tags??[]).map((e=>e.name))];const P=h.includes("@unique");const _=e.name.includes("<")||(e.steps??[]).some((e=>e.text.includes("<")))||h.some((e=>e.includes("<")));const L={tags:(t?.tags??[]).map((e=>e.name)),keyword:t?.keyword??"",name:t?.name??"",description:t?.description??""};if(P&&_&&(e.examples??[]).length>0){for(const t of e.examples){const i=(t.tableHeader?.cells??[]).map((e=>e.value));for(const f of t.tableBody??[]){const t=(f.cells??[]).map((e=>e.value));d.push({uri:o,feature:L,location:e.location.line,keyword:e.keyword,name:interpolate(e.name,i,t),description:e.description,tags:h.map((e=>interpolate(e,i,t))),steps:(e.steps??[]).map((e=>({keyword:e.keyword,keywordType:e.keywordType,text:interpolate(e.text,i,t)}))),...m?{background:JSON.parse(JSON.stringify(m))}:{},...a?{rule:a}:{}})}}}else{d.push({uri:o,feature:L,location:e.location.line,keyword:e.keyword,name:e.name,description:e.description,tags:h,steps:(e.steps??[]).map(toStep),...m?{background:JSON.parse(JSON.stringify(m))}:{},...a?{rule:a}:{}})}}if("rule"in i&&i.rule){const e=i.rule;const a={keyword:e.keyword,name:e.name,description:e.description??""};const f=processChildren(e.children??[],m,a);if(f.length===0){d.push({uri:o,feature:{keyword:t?.keyword??"",name:t?.name??"",description:t?.description??"",tags:(t?.tags??[]).map((e=>e.name))},location:e.location.line,keyword:e.keyword,name:"*",description:e.description,tags:[...(t?.tags??[]).map((e=>e.name))],steps:[],...m?{background:JSON.parse(JSON.stringify(m))}:{},rule:a})}else{d.push(...f)}}}return d};if(!t)return[];return processChildren(t.children??[])}content(){const e=this.find(this.dir);const t=[];for(const o of e){let e=(0,d.readFileSync)(o,"utf-8");if(this.variables){e=this.variables.applyToTemplate(e)}const m=new i.Parser(new i.AstBuilder(a.IdGenerator.uuid()),new i.GherkinClassicTokenMatcher);const f=m.parse(e);f.uri=o;t.push(...this.format(f))}return t}dslFields(e){const t=new Map;const o=new Map;for(const i of e){if(i.type==="keywords"){t.set(i.name.toLowerCase(),i)}if(i.type==="tags"){o.set(i.name.toLowerCase(),i)}}return{keywordFields:t,tagFields:o}}compileIdentityMatcher(e){if(!e)return null;const t=e.trim().replace(/^@/,"");if(t.includes("*")){const e=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");const o=`^${e.replace("\\*","(.+)")}$`;return{type:"wildcard",regex:new RegExp(o)}}return{type:"exact",value:t}}matchIdentity(e,t){if(t.type==="wildcard"){for(const o of e){const e=o.replace(/^@/,"");if(t.regex.test(e)){return{identityValue:o,tagToRemove:o}}}return{}}const o=e.find((e=>e.replace(/^@/,"")===t.value));if(o){return{identityValue:o,tagToRemove:o}}return{}}}t.BaseParser=BaseParser},53772:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TestcaseParser=void 0;const i=o(39711);class TestcaseParser extends i.BaseParser{filter(e,t,o){const a=t.identity;const d=t.fields||[];const{keywordFields:m,tagFields:f}=this.dslFields(d);const h=this.compileIdentityMatcher(a);for(const t of e){const e={};if(o){const e=`@${o}`;if(!t.tags)t.tags=[];if(!t.tags.includes(e)){t.tags.push(e)}}const{identityValue:a,tagToRemove:P}=h?this.matchIdentity(t.tags,h):{};t.tags=t.tags.filter((e=>e!=="@unique"));if(P){t.tags=t.tags.filter((e=>e!==P))}if(t.background){t.background.steps=t.background.steps.filter((o=>{const a=o.text.match(i.FIELD_PATTERN);if(!a)return true;const d=a[1]?.trim().toLowerCase();const f=a[2]?.trim();if(!d||f===undefined)return true;const h=m.get(d);if(!h){(t.custom??={}).policy??=[];t.custom.policy.push({type:"undeclared-field",field:d});return true}e[h.name]=f;return false}))}t.steps=t.steps.filter((o=>{const a=o.text.match(i.FIELD_PATTERN);if(!a)return true;const d=a[1]?.trim().toLowerCase();const f=a[2]?.trim();if(!d||f===undefined)return true;const h=m.get(d);if(!h){(t.custom??={}).policy??=[];t.custom.policy.push({type:"undeclared-field",field:d});return true}e[h.name]=f;return false}));const tagFilter=t=>{for(const o of f.values()){const i=Array.isArray(o.values)?o.values:typeof o.values==="string"?[o.values]:[];if(i.includes(t)){e[o.name]=t;return false}}return true};t.tags=t.tags.filter(tagFilter);if(t.feature&&t.feature.tags){t.feature.tags=t.feature.tags.filter(tagFilter)}for(const o of d){if(o.required&&!e[o.name]){(t.custom??={}).policy??=[];t.custom.policy.push({type:"required-field",field:o.name});e[o.name]=""}}t.custom={...t.custom??{},identity:a,fields:e}}return e}}t.TestcaseParser=TestcaseParser},70313:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TestplanParser=void 0;const i=o(53772);class TestplanParser extends i.TestcaseParser{filter(e,t,o){const i=super.filter(e,t,o);const a={};for(const e of i){(a[e.uri]??=[]).push(e)}return Object.entries(a).map((([e,t])=>{const o=JSON.parse(JSON.stringify(t[0]));o.custom??={};const i=t.find((e=>e.custom?.identity&&e.custom.identity.includes("::@")));if(i&&i.custom?.identity){o.custom.identity=i.custom.identity}else{o.custom.identity=e}o.custom.testruns=t.filter((e=>e.rule)).map((e=>e.rule.name));return o}))}}t.TestplanParser=TestplanParser},64777:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TestrunParser=void 0;const i=o(53772);class TestrunParser extends i.TestcaseParser{filter(e,t,o){const i=super.filter(e,t,o);const a={};for(const e of i){(a[e.uri]??=[]).push(e)}return Object.entries(a).map((([e,t])=>{const o=JSON.parse(JSON.stringify(t[0]));o.custom??={};const i=t.find((e=>e.custom?.identity&&e.custom.identity.includes("::@")));if(i&&i.custom?.identity){o.custom.identity=i.custom.identity}else{o.custom.identity=e}o.custom.testcases=t.filter((e=>e.rule&&e.name)).map((e=>`${e.rule?.name}::${e.name}`));o.custom.groupScenarios=t;return o}))}}t.TestrunParser=TestrunParser},32721:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.registerPolicy=t.policy=void 0;const i=o(86999);const a=o(1622);class Policy{builtinPolicies={};userPolicies={};resolve(e){const t=Object.values(this.builtinPolicies);const o=Object.values(this.userPolicies);return[...t,...o].filter((t=>t.scope.includes(e)))}registry(e,t="system"){if(t==="system"){this.builtinPolicies[e.id]=e}if(t==="user"){this.userPolicies[e.id]=e}}scanner(e,t,o=false,d=false){const m=[];const f=this.resolve(t);for(const o of f){try{o.action(e,m,t)}catch(e){const t=e instanceof Error?e.message:"Unknown policy execution error";m.push({id:`policy-runtime-error:${o.id}`,title:`Policy "${o.id}" failed during execution.`,detail:t,uri:"(policy-runtime)"})}}if(o){if(m.length>0){const e={valid:false,error_count:m.length,warning_count:0,diagnostics:m.map((e=>({severity:e.type??"error",summary:e.title,detail:e.detail})))};console.log(JSON.stringify(e,null,2));process.exit(1)}return}if(m.length>0){i.logger.info("Review the violations above and fix them before continuing.",{bold:true});i.logger.info(`${m.length} policy violation${m.length>1?"s":""} found:\n`,{bold:true})}let h=0;for(const e of m){const t=e.type==="warning";if(t)h++;if(t&&d)continue;let o=`on ${e.uri}`;if(e.line!==undefined)o+=` line ${e.line}`;if(e.scenario)o+=`, in scenario "${e.scenario}"`;a.notify.push({type:e.type??"error",title:e.title,detail:[e.detail,o]})}if(d&&h>0){i.logger.warn(`\n${h} warning(s) found. (Details suppressed by -compact-warnings)`)}const P=m.length-h;if(P>0){process.exit(1)}}}t.policy=new Policy;const registerPolicy=e=>t.policy.registry(e,"user");t.registerPolicy=registerPolicy;t.policy.registry({id:"undeclared-fields",scope:["testcase"],action:(e,t,o)=>{for(const o of e){for(const e of o.custom?.policy?.filter((e=>e.type==="undeclared-field"))??[]){t.push({id:"undeclared-field",type:"warning",title:`Value for undeclared field "${e.field}"`,detail:`Field "${e.field}" is not declared in the configuration. Add a "fields" entry to your config.`,uri:o.uri,scenario:o.name,line:o.location})}}}});t.policy.registry({id:"required-fields",scope:["testcase","testrun","testplan"],action:(e,t,o)=>{for(const o of e){for(const e of o.custom?.policy?.filter((e=>e.type==="required-field"))??[]){t.push({id:"required-field-missing",title:`Required field "${e.field}" is missing`,detail:`Add a step: "field ${e.field} = <value>" to the scenario.`,uri:o.uri,scenario:o.name,line:o.location})}}}});t.policy.registry({id:"required-gherkin",scope:["testcase"],action:(e,t,o)=>{const i=["scenario","scenario outline"];for(const o of e){if(!o.feature.name||o.feature.name.trim()===""){t.push({id:"feature-name-required",title:"Feature name is required",detail:"Every feature must have a name. Add a descriptive name after 'Feature'.",uri:o.uri,line:o.location})}if(!o.name||o.name.trim()===""){t.push({id:"scenario-name-required",title:"Scenario name is required",detail:"Every scenario must have a name. Add a descriptive name after 'Scenario:' or 'Scenario Outline:'.",uri:o.uri,line:o.location});continue}if(!i.includes(o.keyword.trim().toLowerCase()))continue;const e=[...o.background?.steps??[],...o.steps];const a=[];if(!e.some((e=>e.keyword.trim().toLowerCase()==="given")))a.push("Given");if(!e.some((e=>e.keyword.trim().toLowerCase()==="when")))a.push("When");if(!e.some((e=>e.keyword.trim().toLowerCase()==="then")))a.push("Then");if(a.length>0){t.push({id:"steps-required",title:`Scenario is missing required step types: ${a.join(", ")}.`,detail:"Each scenario must have at least one Given, When, and Then step.",uri:o.uri,scenario:o.name,line:o.location})}}}});t.policy.registry({id:"no-feature-tags",scope:["testcase","testrun","testplan"],action:(e,t,o)=>{const i=["@testcase","@testrun","@testplan"];const a=`@${o}`;const d=new Set;for(const m of e){const e=m.uri??"(unknown)";if(d.has(e))continue;d.add(e);const f=m.feature?.tags??[];const h=f.filter((e=>!i.includes(e.toLowerCase())));if(h.length>0){t.push({id:"no-feature-tags",title:`Feature-level tags are not allowed in ${e} scope (found: ${h.join(", ")}).`,detail:"Move any tags from Feature: to the individual Scenario level, except for @testcase, @testrun, @testplan.",uri:e})}const P=f.filter((e=>i.includes(e.toLowerCase())));for(const i of P){if(i.toLowerCase()!==a){t.push({id:"invalid-scope-tag",title:`Mismatched scope: file is tagged as ${i} but is being processed as ${a}.`,detail:`A feature file designed for ${i} cannot be executed in --scope ${o}.`,uri:e})}}}}});t.policy.registry({id:"identity-required",scope:["testcase"],action:(e,t,o)=>{for(const o of e??[]){const e=o.custom?.identity;if(!e||e.trim()===""){t.push({id:"identity-required",title:"Every scenario must have an identity tag matching the configured identity pattern.",detail:"Add the identity tag (e.g. @tc-1) to each scenario.",uri:o.uri??"(unknown)",scenario:o.name,line:o.location})}}}});t.policy.registry({id:"identity-unique",scope:["testcase"],action:(e,t,o)=>{const i=new Map;for(const t of e){const e=t.uri;const o=i.get(e);if(o){o.push(t)}else{i.set(e,[t])}}for(const[e,o]of i){const i=new Map;for(const e of o){const t=e.custom?.identity?.trim();if(!t)continue;const o={scenario:e.name,line:e.location,keyword:e.keyword||""};const a=i.get(t);if(a){a.push(o)}else{i.set(t,[o])}}for(const[o,a]of i){if(a.length<=1)continue;const i=a.every((e=>(e.keyword||"").trim()==="Scenario Outline"))&&a.every((e=>e.line===a[0].line));if(i){t.push({id:"unique-key-required",title:`Scenario Outline expanded ${a.length} rows but all share the same identity "${o}".`,detail:"Add a <key> inside the identity tag (e.g. @tc-<key>) so each expanded row has a unique identity.",uri:e,scenario:a[0].scenario,line:a[0].line});continue}for(const i of a){t.push({id:"identity-unique",title:`Duplicate identity "${o}" found in ${a.length} scenarios.`,detail:"Each scenario must have a unique identity tag.",uri:e,scenario:i.scenario,line:i.line})}}}}})},65301:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.askConfirmation=askConfirmation;t.askApproval=askApproval;t.askDestroyApproval=askDestroyApproval;const i=o(23785);const a=o(80465);const d=o(2560);async function askConfirmation(e){const t=(0,i.createInterface)({input:process.stdin,output:process.stdout});return new Promise((o=>{console.log("");for(const t of e){console.log(t)}console.log(` ${d.MSG_APPROVE_ONLY_YES}`);console.log("");t.question(" Enter a value: ",(e=>{t.close();console.log("");o(e.trim().toLowerCase()==="yes")}))}))}async function askApproval(){return askConfirmation(["Do you want to perform these actions?",` ${d.TITLE_APP} will perform the actions described above.`])}async function askDestroyApproval(e){return askConfirmation([(0,a.red)((0,a.bold)(`${d.TITLE_APP} will destroy ${e} resource(s).`))," This action cannot be undone."])}},7066:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.State=void 0;const i=o(76982);const a=o(2560);const d=o(1622);const m=o(27814);const f=o(19979);const h=o(59491);const P=o(84489);const _=o(28742);class State{dir;customStatePath;customBackupPath;state;backend;workspaceManager;constructor(e,t,o,i=false,a){this.dir=e;this.customStatePath=t;this.customBackupPath=o;const d=new P.Config(e);let L=d.getBackend();this.workspaceManager=new _.WorkspaceManager(e);const U=this.workspaceManager.getCurrentWorkspace();if(i){L={type:"local",config:{}}}else if(L&&L.type!=="local"&&a){const e=this.parseBackendOverrides(a);L.config={...L.config,...e}}if(L?.type==="s3"){this.backend=new f.S3Backend(L.config,U)}else if(L?.type==="azurerm"){this.backend=new h.AzureRMBackend(L.config,U)}else{this.backend=new m.LocalBackend(e,t,o,U)}}parseBackendOverrides(e){const t={};const o=Array.isArray(e)?e:[e];for(const e of o){const o=e.indexOf("=");if(o>0){const i=e.substring(0,o).trim();const a=e.substring(o+1).trim();t[i]=a}}return t}async init(){const e=await this.backend.read();if(!e.version){d.notify.push({type:"error",title:`${a.FILE_STATE} is missing the "version" field`,detail:[`Add a "version" field to your ${a.FILE_STATE} file and rerun init.`],close:true})}else if(e.version!==a.VERSION_STATE){d.notify.push({type:"error",title:`state version mismatch`,detail:[`Found version "${e.version}", but expected "${a.VERSION_STATE}".`,`Update ${a.FILE_STATE} to version ${a.VERSION_STATE} and rerun init.`],close:true})}this.state={version:e.version||a.VERSION_STATE,serial:e.serial??0,lineage:e.lineage??(0,i.randomUUID)(),lastSync:e.lastSync??"",resources:e.resources??[]}}async acquireLock(e,t){if(!e)return;const o=await this.backend.lock(t);if(!o){console.error(`\nError: Error acquiring the state lock.\n\nTerraTest acquires a state lock to protect the state from being written\nby multiple users at the same time. Please resolve the issue above and try\nagain. For most commands, you can disable locking with the "-lock=false"\nflag, but this is not recommended.\n`);process.exit(1)}const cleanup=async()=>{await this.releaseLock();process.exit(1)};process.on("SIGINT",cleanup);process.on("SIGTERM",cleanup)}async releaseLock(){await this.backend.unlock()}async forceUnlock(e){return this.backend.forceUnlock(e)}async save(){this.state.serial+=1;this.state.lastSync=(new Date).toISOString();await this.backend.write(this.state)}getState(){return this.state}getResources(e){if(!this.state.resources)return[];if(!e)return this.state.resources;return this.state.resources.filter((t=>t.type===e))}getCurrentWorkspace(){return this.workspaceManager.getCurrentWorkspace()}setCurrentWorkspace(e){this.workspaceManager.setCurrentWorkspace(e)}async listWorkspaces(){return this.backend.listWorkspaces()}async deleteWorkspace(e){return this.backend.deleteWorkspace(e)}findResource(e){return this.state.resources.find((t=>t.identity===e))}upsertResource(e){const t=this.state.resources.findIndex((t=>t.identity===e.identity));if(t>=0){this.state.resources[t]=e}else{this.state.resources.push(e)}}removeResource(e){this.state.resources=this.state.resources.filter((t=>t.identity!==e))}clearResources(){this.state.resources=[]}}t.State=State},62978:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.elapsedSeconds=elapsedSeconds;t.formatResourceAddress=formatResourceAddress;t.parseSetStatus=parseSetStatus;function elapsedSeconds(e){return((Date.now()-e)/1e3).toFixed(0)}function formatResourceAddress(e,t){return`${e}.${t}`}function parseSetStatus(e){const t=e.lastIndexOf("=");if(t===-1)return null;const o=e.slice(0,t);const i=e.slice(t+1).trim().toLowerCase();const a=o.indexOf("::");if(a===-1)return null;const d=o.slice(0,a).trim();const m=o.slice(a+2).trim();if(!d||!m||!i)return null;return{runIdentity:d,caseIdentity:m,status:i}}},29922:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.VariableParser=void 0;const i=o(79896);const a=o(1622);class VariableParser{vars={};constructor(e,t){this.parseVarFiles(t);this.parseVars(e)}parseVars(e){if(!e)return;const t=Array.isArray(e)?e:[e];for(const e of t){const t=e.indexOf("=");if(t===-1){a.notify.push({type:"warning",title:`Invalid variable format: ${e}`,detail:["Variables must be in the format key=value"]});continue}const o=e.substring(0,t).trim();const i=e.substring(t+1).trim();this.vars[o]=i}}parseVarFiles(e){if(!e)return;const t=Array.isArray(e)?e:[e];for(const e of t){if(!(0,i.existsSync)(e)){a.notify.push({type:"error",title:`Variable file not found: ${e}`,detail:[],close:true});process.exit(1)}try{const t=(0,i.readFileSync)(e,"utf-8");let o={};if(e.endsWith(".json")){o=JSON.parse(t)}else{const e=t.split("\n");for(const t of e){const e=t.trim();if(!e||e.startsWith("#")||e.startsWith("//"))continue;const i=e.indexOf("=");if(i!==-1){const t=e.substring(0,i).trim();let a=e.substring(i+1).trim();if(a.startsWith('"')&&a.endsWith('"')){a=a.substring(1,a.length-1)}else if(a.startsWith("'")&&a.endsWith("'")){a=a.substring(1,a.length-1)}o[t]=a}}}this.vars={...this.vars,...o}}catch(t){a.notify.push({type:"error",title:`Failed to parse variable file: ${e}`,detail:[t.message],close:true});process.exit(1)}}}getVars(){return this.vars}applyToTemplate(e){let t=e;const o=/\$\{var\.([a-zA-Z0-9_-]+)\}/g;t=t.replace(o,((e,t)=>this.vars[t]!==undefined?this.vars[t]:e));return t}}t.VariableParser=VariableParser},28742:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.WorkspaceManager=void 0;const i=o(16928);const a=o(79896);class WorkspaceManager{envPath;constructor(e){const t=(0,i.join)(e,".terratest");if(!(0,a.existsSync)(t)){(0,a.mkdirSync)(t,{recursive:true})}this.envPath=(0,i.join)(t,"environment")}getCurrentWorkspace(){if((0,a.existsSync)(this.envPath)&&(0,a.statSync)(this.envPath).isFile()){const e=(0,a.readFileSync)(this.envPath,"utf8").trim();if(e.length>0){return e}}return"default"}setCurrentWorkspace(e){(0,a.writeFileSync)(this.envPath,e,"utf8")}}t.WorkspaceManager=WorkspaceManager},41244:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HELP_REPORT=t.HELP_DIFF=t.HELP_WORKSPACE=t.HELP_VERSION=t.HELP_UNTAINT=t.HELP_TAINT=t.HELP_STATE=t.HELP_LOGOUT=t.HELP_LOGIN=t.HELP_GRAPH=t.HELP_FORCE_UNLOCK=t.HELP_FMT=t.HELP_SHOW=t.HELP_REFRESH=t.HELP_IMPORT=t.HELP_DESTROY=t.HELP_APPLY=t.HELP_VALIDATE=t.HELP_PLAN=t.HELP_INIT=t.HELP_GLOBAL=void 0;t.getCommandHelp=getCommandHelp;const i=o(2560);const a=o(80465);t.HELP_GLOBAL=`\n${(0,a.bold)("Usage:")} ${i.TITLE_CLI} [global options] <subcommand> [args]\n\nThe available commands for execution are listed below.\nThe primary workflow commands are given first, followed by\nless common or more advanced commands.\n\n${(0,a.bold)("Main commands:")}\n init Prepare working directory for other commands\n validate Check whether the configuration is valid\n plan Show changes required by current configuration\n apply Create or update resources \n destroy Destroy previously-created resources \n\n${(0,a.bold)("All other commands:")}\n diff Show drift between local configuration and state\n fmt Reformat your configuration in the standard style\n force-unlock Release a stuck lock on the current workspace\n graph Generate a Graphviz graph of the steps in an operation\n import Associate existing infrastructure with a ${i.TITLE_APP} resource\n login Obtain and save credentials for a remote host\n logout Remove locally-stored credentials for a remote host\n refresh Update the state to match remote systems\n report Generate multi-dimensional test execution reports\n show Show the current state or a saved plan\n state Advanced state management\n taint Mark a resource instance as not fully functional\n untaint Remove the 'tainted' state from a resource instance\n version Show the current ${i.TITLE_APP} version\n workspace Workspace management\n\n${(0,a.bold)("Global options (use these before the subcommand, if any):")}\n -chdir=DIR Switch to a different working directory before executing the given subcommand.\n -help Show this help output, or the help for a specified subcommand.\n -version An alias for the "version" subcommand.\n`;t.HELP_INIT=`\nUsage: ${i.TITLE_CLI} [global options] init [options]\n\n Initialize a new or existing ${i.TITLE_APP} working directory by creating\n initial files and loading any remote state.\n\n This is the first command that should be run for any new or existing\n ${i.TITLE_APP} configuration per machine. This sets up all the local data\n necessary to run ${i.TITLE_APP}.\n\n This command is always safe to run multiple times.\n\nOptions:\n\n -backend=false Disable backend initialization for this configuration\n and use what was previously initialized instead.\n\n -backend-config=path Configuration to be merged with what is in the\n configuration file's 'backend' block. This can be\n a 'key=value' format, and can be specified multiple\n times.\n\n -lock=false Don't hold a state lock during backend migration.\n This is dangerous if others might concurrently run\n commands against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -no-color If specified, output won't contain any color.\n\n -json If specified, machine readable output will be\n printed in JSON format.\n\n -reconfigure Reconfigure a backend, ignoring any saved\n configuration.\n\n -migrate-state Reconfigure a backend, and attempt to migrate any\n existing state.\n`.trim();t.HELP_PLAN=`\nUsage: ${i.TITLE_CLI} [global options] plan [options]\n\n Generates a speculative execution plan, showing what actions ${i.TITLE_APP}\n would take to apply the current configuration. This command will not\n actually perform the planned actions.\n\n You can optionally save the plan to a file, which you can then pass to\n the "apply" command to perform exactly the actions described in the plan.\n\nPlan Customization Options:\n\n The following options customize how ${i.TITLE_APP} will produce its plan. You\n can also use these options when you run "${i.TITLE_CLI} apply" without passing\n it a saved plan, in order to plan and apply in a single command.\n\n -destroy Select the "destroy" planning mode, which creates a plan\n to destroy all objects currently managed by this\n ${i.TITLE_APP} configuration instead of the usual behavior.\n\n -refresh-only Select the "refresh only" planning mode, which checks\n whether remote objects still match the outcome of the\n most recent ${i.TITLE_APP} apply but does not propose any\n actions to undo any changes made outside of ${i.TITLE_APP}.\n\n -refresh=false Skip checking for external changes to remote objects\n while creating the plan. This can potentially make\n planning faster, but at the expense of possibly planning\n against a stale record of the remote system state.\n\n -replace=resource Force replacement of a particular resource instance using\n its resource address. If the plan would've normally\n produced an update or no-op action for this instance,\n ${i.TITLE_APP} will plan to replace it instead. You can use\n this option multiple times to replace more than one object.\n\n -target=resource Limit the planning operation to only the given module,\n resource, or resource instance and all of its\n dependencies. You can use this option multiple times to\n include more than one object. This is for exceptional\n use only.\n\n -var 'foo=bar' Set a value for one of the input variables in the root\n module of the configuration. Use this option more than\n once to set more than one variable.\n\n -var-file=filename Load variable values from the given file, in addition\n to the default files ${i.TITLE_CLI}.tfvars and *.auto.tfvars.\n Use this option more than once to include more than one\n variables file.\n\nOther Options:\n\n -compact-warnings If ${i.TITLE_APP} produces any warnings that are not\n accompanied by errors, shows them in a more compact\n form that includes only the summary messages.\n\n -detailed-exitcode Return detailed exit codes when the command exits.\n This will change the meaning of exit codes to:\n 0 - Succeeded, diff is empty (no changes)\n 1 - Errored\n 2 - Succeeded, there is a diff\n\n -lock=false Don't hold a state lock during the operation. This\n is dangerous if others might concurrently run\n commands against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -no-color If specified, output won't contain any color.\n\n -out=path Write a plan file to the given path. This can be\n used as input to the "apply" command.\n\n -parallelism=n Limit the number of concurrent operations. Defaults\n to 10.\n\n -state=statefile A legacy option used for the local backend only.\n See the local backend's documentation for more\n information.\n \n -backup=path Path to backup the existing state file before\n modifying. Defaults to the "-state" path with\n ".backup" extension.\n\n -test-directory=path Set the ${i.TITLE_APP} test directory. If omitted,\n defaults to the chdir directory.\n`.trim();t.HELP_VALIDATE=`\nUsage: ${i.TITLE_CLI} [global options] validate [options]\n\n Validate the configuration files in a directory, referring only to the\n configuration and not accessing any remote services.\n\n Validate runs checks that verify whether a configuration is syntactically\n valid and internally consistent.\n\nOptions:\n\n -json Produce output in a machine-readable JSON format.\n Always disables color.\n\n -no-color If specified, output won't contain any color.\n\n -no-tests If specified, ${i.TITLE_APP} will only parse the files and\n skip policy validations.\n\n -test-directory=path Set the ${i.TITLE_APP} test directory, defaults to "tests".\n \n -query=string Filter the parsed documents to locate specific test \n scenarios across the active scope.\n`.trim();t.HELP_APPLY=`\nUsage: ${i.TITLE_CLI} [global options] apply [options] [PLAN]\n\n Creates or updates infrastructure according to ${i.TITLE_APP} configuration\n files in the current directory.\n\n By default, ${i.TITLE_APP} will generate a new plan and present it for your\n approval before taking any action. You can optionally provide a plan\n file created by a previous call to "${i.TITLE_CLI} plan", in which case\n ${i.TITLE_APP} will take the actions described in that plan without any\n confirmation prompt.\n\nOptions:\n\n -auto-approve Skip interactive approval of plan before applying.\n\n -backup=path Path to backup the existing state file before\n modifying. Defaults to the "-state" path with\n ".backup" extension. Set to "-" to disable backup.\n\n -compact-warnings If ${i.TITLE_APP} produces any warnings that are not\n accompanied by errors, show them in a more compact\n form that includes only the summary messages.\n\n -destroy Destroy ${i.TITLE_APP}-managed infrastructure.\n The command "${i.TITLE_CLI} destroy" is a convenience alias\n for this option.\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -input=true Ask for input for variables if not directly set.\n\n -no-color If specified, output won't contain any color.\n\n -parallelism=n Limit the number of parallel resource operations.\n Defaults to 10.\n\n -replace=resource ${i.TITLE_APP} will plan to replace this resource instance\n instead of doing an update or no-op action. \n\n -state=path Path to read and save state. Defaults to "terratest.tfstate".\n Legacy option for the local backend only. See the local\n backend's documentation for more information.\n\n -var 'foo=bar' Set a value for one of the input variables in the root\n module of the configuration. Use this option more than\n once to set more than one variable.\n\n -var-file=filename Load variable values from the given file, in addition\n to the default files ${i.TITLE_CLI}.tfvars and *.auto.tfvars.\n Use this option more than once to include more than one\n variables file.\n\n -test-directory=path Set the ${i.TITLE_APP} test directory. If omitted,\n defaults to the chdir directory.\n\n If you don't provide a saved plan file then this command will also accept\n all of the plan-customization options accepted by the ${i.TITLE_CLI} plan command.\n For more information on those options, run:\n ${i.TITLE_CLI} plan -help\n`.trim();t.HELP_DESTROY=`\nUsage: ${i.TITLE_CLI} [global options] destroy [options]\n\n Destroy ${i.TITLE_APP}-managed infrastructure.\n\n This command is a convenience alias for:\n ${i.TITLE_CLI} apply -destroy\n\n This command also accepts many of the plan-customization options accepted by\n the ${i.TITLE_CLI} plan command. For more information on those options, run:\n ${i.TITLE_CLI} plan -help\n`.trim();t.HELP_IMPORT=`\nUsage: ${i.TITLE_CLI} [global options] import [options] ADDR ISSUE_NUMBER\n\n Import an existing GitHub Issue into your ${i.TITLE_APP} state.\n\n This command connects to GitHub, fetches the specified ISSUE_NUMBER, and\n imports it into your local ${i.TITLE_APP} state under the given ADDR (Identity).\n This allows existing GitHub Issues to come under ${i.TITLE_APP} management\n without having to be initially created via a 'terratest apply'.\n\n ADDR: The identity of the scenario (e.g., 'test1').\n ISSUE_NUMBER: The numeric ID of the GitHub Issue to import (e.g., '123').\n\n This command will make network requests to GitHub but will not modify\n the remote issue.\n\nOptions:\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -no-color If specified, output won't contain any color.\n\n -state, and -backup Custom paths for the state and backup files.\n`.trim();t.HELP_REFRESH=`\nUsage: ${i.TITLE_CLI} [global options] refresh [options]\n\n Update the local state file by checking the real-world status of all tracked\n GitHub Issues and updating their metadata (e.g., titles, descriptions).\n\n This command will not modify your GitHub Issues, but it will modify your\n local state file to reflect any changes made on GitHub. These state changes\n might cause new actions to occur when you generate a plan or call apply next.\n\nOptions:\n\n -compact-warnings If ${i.TITLE_APP} produces any warnings that are not\n accompanied by errors, show them in a more compact form\n that includes only the summary messages.\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -no-color If specified, output won't contain any color.\n\n -parallelism=n Limit the number of concurrent operations. Defaults to 10.\n\n -state, and -backup Custom paths for the state and backup files.\n`.trim();t.HELP_SHOW=`\nUsage: ${i.TITLE_CLI} [global options] show [options] [path]\n\n Reads and outputs a ${i.TITLE_APP} state or plan file in a human-readable\n form. If no path is specified, the current state will be shown.\n\nOptions:\n\n -no-color If specified, output won't contain any color.\n -json If specified, output the ${i.TITLE_APP} plan or state in\n a machine-readable form.\n`.trim();t.HELP_FMT=`\nUsage: ${i.TITLE_CLI} [global options] fmt [options] [target...]\n\n Rewrites all ${i.TITLE_APP} scenario files to a canonical format. All\n testing files (.feature) are updated using standard Gherkin syntax\n indentation.\n\n By default, fmt scans the current directory for .feature files. If you\n provide a directory for the target argument, then fmt will scan that\n directory instead.\n\n The content must be in the Gherkin language native syntax.\n\nOptions:\n\n -list=false Don't list files whose formatting differs\n\n -write=false Don't write to source files\n\n -check Check if the input is formatted. Exit status will be 3 if\n any input is not properly formatted and zero otherwise.\n\n -no-color If specified, output won't contain any color.\n\n -recursive Also process files in subdirectories. By default, only the\n given directory (or current directory) is processed.\n`.trim();t.HELP_FORCE_UNLOCK=`\nUsage: ${i.TITLE_CLI} [global options] force-unlock LOCK_ID\n\n Manually unlock the state for the defined configuration.\n\n This will not modify your infrastructure. This command removes the lock on the\n state for the current workspace. The behavior of this lock is dependent\n on the backend being used. Local state files cannot be unlocked by another\n process.\n\nOptions:\n\n -force Don't ask for input for unlock confirmation.\n`.trim();t.HELP_GRAPH=`\nUsage: ${i.TITLE_CLI} [global options] graph [options]\n\n Produces an ASCII tree representation of the dependency graph between\n different objects in the current test configuration and state.\n\n By default the graph shows the relationships between the hierarchical\n components in your configuration: Test Plans -> Test Runs -> Test Cases.\n\nOptions:\n\n -draw-cycles Highlight the dependency links in the graph with colored\n edges to explicitly visualize the dependency between\n Plans, Runs, and Cases.\n\n -type=TYPE (deprecated) In prior versions of TerraTest, specified the\n type of operation graph to output.\n\n -module-depth=n (deprecated) In prior versions of TerraTest, specified the\n depth of modules to show in the output.\n`.trim();t.HELP_LOGIN=`\nUsage: ${i.TITLE_CLI} [global options] login [hostname]\n\n Retrieves an authentication token for the given hostname, if it supports\n automatic login, and saves it in a credentials file in your home directory.\n\n If no hostname is provided, the default hostname is app.terraform.io, to\n log in to HCP ${i.TITLE_APP}.\n\n If not overridden by credentials helper settings in the CLI configuration,\n the credentials will be written to the following local file:\n ~/.terratest.d/credentials.json\n`.trim();t.HELP_LOGOUT=`\nUsage: ${i.TITLE_CLI} [global options] logout [hostname]\n\n Removes locally-stored credentials for specified hostname.\n\n Note: the API token is only removed from local storage, not destroyed on the\n remote server, so it will remain valid until manually revoked.\n\n If no hostname is provided, the default hostname is app.terraform.io.\n`.trim();t.HELP_STATE=`\nUsage: ${i.TITLE_CLI} [global options] state <subcommand> [options] [args]\n\n This command has subcommands for advanced state management.\n\n These subcommands can be used to slice and dice the ${i.TITLE_APP} state.\n This is sometimes necessary in advanced cases. For your safety, all\n state management commands that modify the state create a timestamped\n backup of the state prior to making modifications.\n\nSubcommands:\n identities List the identities of resources in the state\n list List resources in the state\n mv Move an item in the state\n pull Pull current state and output to stdout\n push Update remote state from a local state file\n rm Remove instances from the state\n show Show a resource in the state\n`.trim();t.HELP_TAINT=`\nUsage: ${i.TITLE_CLI} [global options] taint [options] <address>\n\n ${i.TITLE_APP} uses the term "tainted" to describe a resource instance\n which may not be fully functional, either because its creation\n partially failed or because you've manually marked it as such using\n this command.\n\n This will not modify your infrastructure directly, but subsequent\n ${i.TITLE_APP} plans will include actions to destroy the remote object\n and create a new object to replace it.\n\n You can remove the "taint" state from a resource instance using\n the "${i.TITLE_CLI} untaint" command.\n\n The address is in the usual resource address syntax, such as:\n aws_instance.foo\n aws_instance.bar[1]\n module.foo.module.bar.aws_instance.baz\n\n Use your shell's quoting or escaping syntax to ensure that the\n address will reach ${i.TITLE_APP} correctly, without any special\n interpretation.\n\nOptions:\n\n -allow-missing If specified, the command will succeed (exit code 0)\n even if the resource is missing.\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -state, and -backup Custom paths for the state and backup files.\n`.trim();t.HELP_UNTAINT=`\nUsage: ${i.TITLE_CLI} [global options] untaint [options] name\n\n ${i.TITLE_APP} uses the term "tainted" to describe a resource instance\n which may not be fully functional, either because its creation\n partially failed or because you've manually marked it as such using\n the "${i.TITLE_CLI} taint" command.\n\n This command removes that state from a resource instance, causing\n ${i.TITLE_APP} to see it as fully-functional and not in need of\n replacement.\n\n This will not modify your infrastructure directly. It only avoids\n ${i.TITLE_APP} planning to replace a tainted instance in a future operation.\n\nOptions:\n\n -allow-missing If specified, the command will succeed (exit code 0)\n even if the resource is missing.\n\n -lock=false Don't hold a state lock during the operation. This is\n dangerous if others might concurrently run commands\n against the same workspace.\n\n -lock-timeout=0s Duration to retry a state lock.\n\n -state, and -backup Custom paths for the state and backup files.\n`.trim();t.HELP_VERSION=`\nUsage: ${i.TITLE_CLI} version [options]\n\n Displays the version of ${i.TITLE_APP}.\n`.trim();t.HELP_WORKSPACE=`\nUsage: ${i.TITLE_CLI} [global options] workspace\n\n new, list, show, select and delete ${i.TITLE_APP} workspaces.\n\nSubcommands:\n delete Delete a workspace\n list List Workspaces\n new Create a new workspace\n select Select a workspace\n show Show the name of the current workspace\n`.trim();t.HELP_DIFF=`\nUsage: ${i.TITLE_CLI} [global options] diff [options]\n\n Show drift between local configuration and state.\n`.trim();t.HELP_REPORT=`\nUsage: ${i.TITLE_CLI} [global options] report <type> [options]\n\n Generates multi-dimensional test reports from the local state.\n Available report types:\n testcase-summary List of all test cases and their status\n execution-summary Test runs and their pass/fail metrics\n defects List of failed/blocked tests with issue links\n traceability Mapping between requirements/tags and test runs\n coverage Percentage of passed tests grouped by tags\n two-dimensional Status distribution matrix\n raw Extract all data for custom reporting\n\nOptions:\n\n --format <md|csv|json> Output format. Default is "md" (Markdown).\n --out <path> Path to save the generated report.\n --filter <key=val> Filter data by any state attribute. Can be\n specified multiple times.\n`.trim();function getCommandHelp(e){switch(e){case"init":return t.HELP_INIT;case"validate":return t.HELP_VALIDATE;case"plan":return t.HELP_PLAN;case"apply":return t.HELP_APPLY;case"destroy":return t.HELP_DESTROY;case"import":return t.HELP_IMPORT;case"refresh":return t.HELP_REFRESH;case"diff":return t.HELP_DIFF;case"show":return t.HELP_SHOW;case"fmt":return t.HELP_FMT;case"force-unlock":return t.HELP_FORCE_UNLOCK;case"import":return t.HELP_IMPORT;case"login":return t.HELP_LOGIN;case"workspace":return t.HELP_WORKSPACE;case"report":return t.HELP_REPORT;case"logout":return t.HELP_LOGOUT;case"state":return t.HELP_STATE;case"taint":return t.HELP_TAINT;case"untaint":return t.HELP_UNTAINT;case"version":return t.HELP_VERSION;default:return null}}},79407:function(module,exports,__nccwpck_require__){"use strict";module=__nccwpck_require__.nmd(module);var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:true});exports.main=void 0;const arg_1=__importDefault(__nccwpck_require__(840));const chalk_1=__nccwpck_require__(80465);const node_process_1=__nccwpck_require__(1708);const init_1=__nccwpck_require__(70722);const plan_1=__nccwpck_require__(74483);const validate_1=__nccwpck_require__(30010);const apply_1=__nccwpck_require__(8314);const destroy_1=__nccwpck_require__(29540);const show_1=__nccwpck_require__(45765);const refresh_1=__nccwpck_require__(31821);const diff_1=__nccwpck_require__(65083);const import_1=__nccwpck_require__(52541);const force_unlock_1=__nccwpck_require__(23634);const state_1=__nccwpck_require__(61047);const taint_1=__nccwpck_require__(1510);const graph_1=__nccwpck_require__(79478);const fmt_1=__nccwpck_require__(52353);const login_1=__nccwpck_require__(17155);const logout_1=__nccwpck_require__(13834);const workspace_1=__nccwpck_require__(62743);const report_1=__nccwpck_require__(8938);const variables_1=__nccwpck_require__(29922);const notify_1=__nccwpck_require__(1622);const chalk_2=__importDefault(__nccwpck_require__(80465));const logger_1=__nccwpck_require__(86999);const const_1=__nccwpck_require__(2560);const help_1=__nccwpck_require__(41244);function compareVersions(e,t){const o=e.split(".").map((e=>Number(e)));const i=t.split(".").map((e=>Number(e)));const a=Math.max(o.length,i.length);for(let e=0;e<a;e++){const t=o[e]??0;const a=i[e]??0;if(t>a)return 1;if(t<a)return-1}return 0}function printVersion(e=false){const t=process.env.TESTSTATE_LATEST_VERSION;const o=`${node_process_1.platform}_${node_process_1.arch}`;console.log((0,chalk_1.cyan)(`${const_1.TITLE_APP} v${const_1.VERSION_CLI}`));console.log(`on ${o}`);if(e){console.log(`+ Config Version: ${const_1.VERSION_CONFIG} (${const_1.FILE_CONFIG})`);console.log(`+ State Version: ${const_1.VERSION_STATE} (${const_1.FILE_STATE})`)}if(t&&compareVersions(const_1.VERSION_CLI,t)<0){console.log("");console.log(`Your version of ${const_1.TITLE_APP} is out of date! The latest version`);console.log(`is ${t}. You can update from your release source.`)}}function printTooManyArgsForInit(){logger_1.logger.error("Too many command line arguments. Did you mean to use -chdir?")}function ensureNoPositionalArgs(e,t){if(t.length>0){logger_1.logger.error(`Too many command line arguments\n\nTo specify a working directory for the ${e}, use the global -chdir flag.`)}}function isScopeToken(e){if(!e)return false;return["testcase","testrun","testplan"].includes(e.toLowerCase())}function normalizeLongFlags(e){const t=new Set(["chdir","scope","help","verbose","version","auto-approve","out","lock","lock-timeout","input","var","var-file","no-color","json","detailed-exitcode","state","backup","target","destroy","refresh","refresh-only","force","check","list","write","diff","recursive","plan","draw-cycles","type","module-depth","allow-missing","ignore-remote-version","backend","backend-config","force-copy","from-module","get","plugin-dir","reconfigure","lockfile","test-directory","set-status","replace","compact-warnings","generate-config-out","parallelism","no-tests","query","state-out","config","taint","untaint","workspace","report","format","filter"]);return e.map((e=>{const o=e.match(/^-([a-z][a-z-]*)(=.*)?$/i);if(!o)return e;const i=o[1].toLowerCase();const a=o[2]||"";if(!t.has(i))return e;return`--${i}${a}`}))}const main=async()=>{let e;try{e=(0,arg_1.default)({"--chdir":String,"--projectId":String,"--scope":String,"--out":String,"--lock-timeout":String,"--var":[String],"--var-file":[String],"--state":String,"--backup":String,"--target":[String],"--plan":String,"--type":String,"--module-depth":String,"--backend-config":[String],"--test-directory":String,"--set-status":[String],"--replace":[String],"--parallelism":String,"--state-out":String,"--config":String,"--query":String,"--format":String,"--filter":[String],"--help":Boolean,"--verbose":Boolean,"--version":Boolean,"--auto-approve":Boolean,"--lock":Boolean,"--input":Boolean,"--no-color":Boolean,"--json":Boolean,"--detailed-exitcode":Boolean,"--destroy":Boolean,"--refresh":Boolean,"--refresh-only":Boolean,"--force":Boolean,"--check":Boolean,"--list":Boolean,"--write":Boolean,"--diff":Boolean,"--recursive":Boolean,"--draw-cycles":Boolean,"--allow-missing":Boolean,"--ignore-remote-version":Boolean,"--backend":Boolean,"--reconfigure":Boolean,"--compact-warnings":Boolean,"--no-tests":Boolean,"-C":"--chdir","-s":"--scope","-h":"--help","-v":"--verbose","-a":"--auto-approve","-o":"--out"},{argv:normalizeLongFlags(process.argv.slice(2))})}catch(e){if(e.code==="ARG_UNKNOWN_OPTION"){console.error(`[31mError: ${e.message}[0m\n`);console.log(`Usage: ${const_1.TITLE_CLI} [global options] <subcommand> [args]\nRun '${const_1.TITLE_CLI} --help' for more information.`);process.exit(1)}throw e}const t=e._.map(String);if(e["--version"]){printVersion(false);process.exit(0)}const o=e._;const i=o[0];const a=o.slice(1);if(e["--help"]||e["--help"]){if(i){const e=(0,help_1.getCommandHelp)(i);if(e){console.log(e)}else{console.log(`Unknown command: ${i}\n\n${help_1.HELP_GLOBAL}`)}}else{console.log(help_1.HELP_GLOBAL)}process.exit(0)}if(!i){console.log(help_1.HELP_GLOBAL);process.exit(0)}let d=i.toLowerCase();let m=a;let f=String((e["--scope"]??"testcase")||"testcase");const h=new variables_1.VariableParser(e["--var"],e["--var-file"]);if(e["--no-color"]){chalk_2.default.level=0}if(isScopeToken(d)&&t[1]){f=d;d=t[1].toLowerCase();m=t.slice(2)}const P=String(e["--chdir"]||".");if(!P){printTooManyArgsForInit();process.exit(1)}const _=Boolean(e["--verbose"]||e["--verbose"]);const L=f;if(d==="version"){printVersion(true);process.exit(process.exitCode||0)}if(d==="init"){if(m.length>0){printTooManyArgsForInit()}await(0,init_1.initCmd)({dir:P,verbose:_,backendConfigRaw:e["--backend-config"],lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s",reconfigure:e["--reconfigure"],backendEnabled:e["--backend"]??true,isJson:e["--json"]});process.exit(process.exitCode||0)}if(d==="validate"){const t=m.length>0?m[0]:P;if(m.length>1){logger_1.logger.error(`Too many command line arguments\n\nExpected at most one positional argument.`)}await(0,validate_1.validateCmd)({targetPath:t,verbose:_,scope:L,variables:h,isJson:e["--json"],testDirectory:e["--test-directory"],noTests:e["--no-tests"],query:e["--query"]});process.exit(process.exitCode||0)}if(d==="plan"){ensureNoPositionalArgs(d,m);await(0,plan_1.planCmd)({dir:P,verbose:_,scope:L,outPath:e["--out"],lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s",variables:h,isJson:e["--json"],detailedExitCode:e["--detailed-exitcode"],statePath:e["--state"],backupPath:e["--backup"],target:e["--target"],destroyPlan:e["--destroy"],refresh:e["--refresh"]??true,refreshOnly:e["--refresh-only"],replaceTargets:e["--replace"],parallelism:e["--parallelism"],compactWarnings:e["--compact-warnings"]??false,testDirectory:e["--test-directory"]});process.exit(process.exitCode||0)}if(d==="apply"){let t=undefined;if(m.length===1){t=m[0]}else if(m.length>1){logger_1.logger.error(`Too many command line arguments\n\nExpected at most one positional argument.`)}await(0,apply_1.applyCmd)({dir:P,autoApprove:Boolean(e["--auto-approve"]||e["--auto-approve"]),verbose:_,scope:L,planFile:t,lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s",input:e["--input"]??true,variables:h,statePath:e["--state"],backupPath:e["--backup"],target:e["--target"],refresh:e["--refresh"]??true,refreshOnly:e["--refresh-only"],setStatus:e["--set-status"],replaceTargets:e["--replace"],parallelism:e["--parallelism"],compactWarnings:e["--compact-warnings"]??false,testDirectory:e["--test-directory"]});process.exit(process.exitCode||0)}if(d==="destroy"){ensureNoPositionalArgs(d,m);await(0,destroy_1.destroyCmd)({dir:P,verbose:_,scope:L,lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s",input:e["--input"]??true,statePath:e["--state"],backupPath:e["--backup"]});process.exit(process.exitCode||0)}if(d==="show"){const t=m[0];if(!t)throw new Error('Missing required argument <type> for "show" command');await(0,show_1.showCmd)({type:t,verbose:_,dir:String(e["--chdir"]||"."),statePath:e["--state"],backupPath:e["--backup"]});process.exit(process.exitCode||0)}if(d==="refresh"){ensureNoPositionalArgs(d,m);await(0,refresh_1.refreshCmd)({dir:P,verbose:_,scope:L,lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s",statePath:e["--state"],backupPath:e["--backup"],parallelismRaw:e["--parallelism"],compactWarnings:e["--compact-warnings"]??false});process.exit(process.exitCode||0)}if(d==="diff"){ensureNoPositionalArgs(d,m);await(0,diff_1.diffCmd)({dir:P,verbose:_,scope:L});process.exit(0)}if(d==="import"){if(m.length!==2){logger_1.logger.error(`Usage: ${const_1.TITLE_CLI} import [options] ADDR ISSUE_NUMBER`);process.exit(1)}const t=m[0];const o=m[1];await(0,import_1.importCmd)({dir:P,scope:L,identityArg:t,issueNumber:o,lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s",statePath:e["--state"],backupPath:e["--backup"]});process.exit(process.exitCode||0)}if(d==="state"){if(m.length===0){console.log((0,help_1.getCommandHelp)("state"));process.exit(1)}const t=m[0];const o=m.slice(1);await(0,state_1.stateCmd)({dir:P,action:t,args:o,statePath:e["--state"],backupPath:e["--backup"]});process.exit(process.exitCode||0)}if(d==="taint"||d==="untaint"){if(m.length===0){logger_1.logger.error(`Usage: ${const_1.TITLE_CLI} ${d} [options] name`);process.exit(1)}await(0,taint_1.taintCmd)({dir:P,action:d,identityRaw:m[0],statePath:e["--state"],backupPath:e["--backup"],allowMissing:e["--allow-missing"],lock:e["--lock"]??true,lockTimeout:e["--lock-timeout"]??"0s"});process.exit(process.exitCode||0)}if(d==="workspace"){await(0,workspace_1.workspaceCmd)({dir:P,verbose:_,args:m});process.exit(process.exitCode||0)}if(d==="force-unlock"){if(m.length!==1){logger_1.logger.error(`Usage: ${const_1.TITLE_CLI} force-unlock [options] LOCK_ID`);process.exit(1)}await(0,force_unlock_1.forceUnlockCmd)({dir:P,lockId:m[0],force:e["--force"],statePath:e["--state"]});process.exit(process.exitCode||0)}if(d==="graph"){ensureNoPositionalArgs(d,m);await(0,graph_1.graphCmd)({dir:P,scope:L,drawCycles:e["--draw-cycles"]});process.exit(process.exitCode||0)}if(d==="report"){const t=m.length>0?m[0]:"raw";await(0,report_1.reportCmd)({dir:P,type:t,format:e["--format"]||"md",filter:e["--filter"]||[],out:e["--out"],statePath:e["--state"]});process.exit(0)}if(d==="fmt"){ensureNoPositionalArgs(d,m);await(0,fmt_1.fmtCmd)({dir:P,check:e["--check"],list:e["--list"]??true,write:e["--write"]??true,recursive:e["--recursive"]});process.exit(process.exitCode||0)}if(d==="login"){const e=m.length>0?m[0]:"github.com";await(0,login_1.loginCmd)({hostname:e});process.exit(process.exitCode||0)}if(d==="logout"){const e=m.length>0?m[0]:"github.com";await(0,logout_1.logoutCmd)({hostname:e});process.exit(process.exitCode||0)}console.log(help_1.HELP_GLOBAL);process.exit(1)};exports.main=main;if(require.main===require.cache[eval("__filename")]||!module.parent){main().catch((e=>{notify_1.notify.push({type:"error",title:e.name,detail:[e.message]})}))}},86999:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=t.Logger=void 0;const i=o(80465);class Logger{verbose=false;isJson=false;constructor(e=false,t=false){this.verbose=e;this.isJson=t}applyStyle(e,t){let o=e;if(t?.bold)o=(0,i.bold)(o);if(t?.dim)o=(0,i.dim)(o);return o}emitJson(e,t,o){const i={"@level":e,"@message":t,"@module":"terratest.ui","@timestamp":(new Date).toISOString(),type:"log"};if(o){i.data=o}console.log(JSON.stringify(i))}formatMessage(e){return Array.isArray(e)?e.join("\n"):e}debug(e,t){if(!this.verbose)return;const o=this.formatMessage(e);if(this.isJson){this.emitJson("debug",o,t?.data);return}const a=t?.prefix!==false;const d=a?(0,i.dim)(`[DEBUG] `):"";const m=this.applyStyle(o,t);console.log(`${d}${(0,i.gray)(m)}`);if(t?.data)console.log((0,i.gray)(JSON.stringify(t.data,null,2)))}info(e,t){const o=this.formatMessage(e);if(this.isJson){this.emitJson("info",o,t?.data);return}const a=t?.prefix===true;const d=a?(0,i.cyan)(`[INFO] `):"";const m=this.applyStyle(o,t);console.log(`${d}${m}`);if(t?.data&&this.verbose)console.log((0,i.gray)(JSON.stringify(t.data,null,2)))}success(e,t){const o=this.formatMessage(e);if(this.isJson){this.emitJson("info",o,t?.data);return}const a=t?.prefix===true;const d=a?(0,i.green)(`[✓] `):"";const m=this.applyStyle((0,i.green)(o),t);console.log(`${d}${m}`);if(t?.data&&this.verbose)console.log((0,i.gray)(JSON.stringify(t.data,null,2)))}warn(e,t){const o=this.formatMessage(e);if(this.isJson){this.emitJson("warn",o,t?.data);return}console.error((0,i.yellow)("╷"));const a=(0,i.bold)((0,i.yellow)("Warning:"));const d=this.applyStyle(o,t);console.error(`${(0,i.yellow)("│")} ${a} ${d}`);if(t?.data&&this.verbose){console.error((0,i.yellow)("│"));const e=JSON.stringify(t.data,null,2);e.split("\n").forEach((e=>console.error(`${(0,i.yellow)("│")} ${e}`)))}console.error((0,i.yellow)("╵"))}error(e,t){const o=this.formatMessage(e);if(this.isJson){this.emitJson("error",o,t?t instanceof Error?t.stack:t:undefined);process.exit(1);return}console.error((0,i.red)("╷"));const a=(0,i.bold)((0,i.red)("Error:"));const d=o.split("\n");console.error(`${(0,i.red)("│")} ${a} ${(0,i.bold)(d[0])}`);for(let e=1;e<d.length;e++){console.error(`${(0,i.red)("│")} ${d[e]}`)}if(t){console.error((0,i.red)("│"));if(t instanceof Error){console.error(`${(0,i.red)("│")} ${t.message}`);if(this.verbose&&t.stack){t.stack.split("\n").forEach((e=>console.error(`${(0,i.red)("│")} ${(0,i.dim)(e)}`)))}}else if(typeof t==="object"){const e=JSON.stringify(t,null,2);e.split("\n").forEach((e=>console.error(`${(0,i.red)("│")} ${e}`)))}else{console.error(`${(0,i.red)("│")} ${String(t)}`)}}console.error((0,i.red)("╵"));process.exit(1)}blank(){if(this.isJson)return;console.log("")}}t.Logger=Logger;t.logger=new Logger},1622:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.notify=void 0;const i=o(80465);class Notify{push(e){const t=e.type==="warning";const o=t?(0,i.bold)((0,i.yellow)("Warning:")):(0,i.bold)((0,i.red)("Error:"));const a=t?i.yellow:i.red;const d=(0,i.bold)(e.title);const m=e.close??false;console.log(a("╷"));console.log(`${a("│")} ${o} ${d}`);console.log(a("│"));if(e.detail){const t=e.detail;for(const e of t){console.log(`${a("│")} ${e}`)}}if(e.extra){const t=e.extra;for(const e of t){console.log(`${a("│")} ${e}`)}}console.log(a("╵"));if(m)process.exit(1)}refresh(e,t){const o=t?(0,i.dim)(`[id=${t}]`):"";console.log(`${(0,i.cyan)(e)}: Refreshing state... ${o}`)}}t.notify=new Notify},42613:e=>{"use strict";e.exports=require("assert")},20181:e=>{"use strict";e.exports=require("buffer")},76982:e=>{"use strict";e.exports=require("crypto")},24434:e=>{"use strict";e.exports=require("events")},79896:e=>{"use strict";e.exports=require("fs")},58611:e=>{"use strict";e.exports=require("http")},65692:e=>{"use strict";e.exports=require("https")},69278:e=>{"use strict";e.exports=require("net")},16698:e=>{"use strict";e.exports=require("node:async_hooks")},4573:e=>{"use strict";e.exports=require("node:buffer")},31421:e=>{"use strict";e.exports=require("node:child_process")},77598:e=>{"use strict";e.exports=require("node:crypto")},73024:e=>{"use strict";e.exports=require("node:fs")},51455:e=>{"use strict";e.exports=require("node:fs/promises")},37067:e=>{"use strict";e.exports=require("node:http")},32467:e=>{"use strict";e.exports=require("node:http2")},44708:e=>{"use strict";e.exports=require("node:https")},48161:e=>{"use strict";e.exports=require("node:os")},76760:e=>{"use strict";e.exports=require("node:path")},1708:e=>{"use strict";e.exports=require("node:process")},57075:e=>{"use strict";e.exports=require("node:stream")},73136:e=>{"use strict";e.exports=require("node:url")},57975:e=>{"use strict";e.exports=require("node:util")},38522:e=>{"use strict";e.exports=require("node:zlib")},70857:e=>{"use strict";e.exports=require("os")},16928:e=>{"use strict";e.exports=require("path")},23785:e=>{"use strict";e.exports=require("readline")},2203:e=>{"use strict";e.exports=require("stream")},64756:e=>{"use strict";e.exports=require("tls")},52018:e=>{"use strict";e.exports=require("tty")},87016:e=>{"use strict";e.exports=require("url")},39023:e=>{"use strict";e.exports=require("util")},59192:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}t.AbortError=AbortError},83134:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;var i=o(59192);Object.defineProperty(t,"AbortError",{enumerable:true,get:function(){return i.AbortError}})},50198:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureKeyCredential=void 0;class AzureKeyCredential{_key;get key(){return this._key}constructor(e){if(!e){throw new Error("key must be a non-empty string")}this._key=e}update(e){this._key=e}}t.AzureKeyCredential=AzureKeyCredential},41295:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureNamedKeyCredential=void 0;t.isNamedKeyCredential=isNamedKeyCredential;const i=o(87779);class AzureNamedKeyCredential{_key;_name;get key(){return this._key}get name(){return this._name}constructor(e,t){if(!e||!t){throw new TypeError("name and key must be non-empty strings")}this._name=e;this._key=t}update(e,t){if(!e||!t){throw new TypeError("newName and newKey must be non-empty strings")}this._name=e;this._key=t}}t.AzureNamedKeyCredential=AzureNamedKeyCredential;function isNamedKeyCredential(e){return(0,i.isObjectWithProperties)(e,["name","key"])&&typeof e.key==="string"&&typeof e.name==="string"}},56608:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureSASCredential=void 0;t.isSASCredential=isSASCredential;const i=o(87779);class AzureSASCredential{_signature;get signature(){return this._signature}constructor(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}update(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}}t.AzureSASCredential=AzureSASCredential;function isSASCredential(e){return(0,i.isObjectWithProperties)(e,["signature"])&&typeof e.signature==="string"}},50417:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isTokenCredential=t.isSASCredential=t.AzureSASCredential=t.isNamedKeyCredential=t.AzureNamedKeyCredential=t.isKeyCredential=t.AzureKeyCredential=void 0;var i=o(50198);Object.defineProperty(t,"AzureKeyCredential",{enumerable:true,get:function(){return i.AzureKeyCredential}});var a=o(99155);Object.defineProperty(t,"isKeyCredential",{enumerable:true,get:function(){return a.isKeyCredential}});var d=o(41295);Object.defineProperty(t,"AzureNamedKeyCredential",{enumerable:true,get:function(){return d.AzureNamedKeyCredential}});Object.defineProperty(t,"isNamedKeyCredential",{enumerable:true,get:function(){return d.isNamedKeyCredential}});var m=o(56608);Object.defineProperty(t,"AzureSASCredential",{enumerable:true,get:function(){return m.AzureSASCredential}});Object.defineProperty(t,"isSASCredential",{enumerable:true,get:function(){return m.isSASCredential}});var f=o(86881);Object.defineProperty(t,"isTokenCredential",{enumerable:true,get:function(){return f.isTokenCredential}})},99155:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isKeyCredential=isKeyCredential;const i=o(87779);function isKeyCredential(e){return(0,i.isObjectWithProperties)(e,["key"])&&typeof e.key==="string"}},86881:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isBearerToken=isBearerToken;t.isPopToken=isPopToken;t.isTokenCredential=isTokenCredential;function isBearerToken(e){return!e.tokenType||e.tokenType==="Bearer"}function isPopToken(e){return e.tokenType==="pop"}function isTokenCredential(e){const t=e;return t&&typeof t.getToken==="function"&&(t.signRequest===undefined||t.getToken.length>0)}},17698:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseCAEChallenge=parseCAEChallenge;t.authorizeRequestOnClaimChallenge=authorizeRequestOnClaimChallenge;const i=o(89994);const a=o(20741);function parseCAEChallenge(e){const t=`, ${e.trim()}`.split(", Bearer ").filter((e=>e));return t.map((e=>{const t=`${e.trim()}, `.split('", ').filter((e=>e));const o=t.map((e=>(([e,t])=>({[e]:t}))(e.trim().split('="'))));return o.reduce(((e,t)=>({...e,...t})),{})}))}async function authorizeRequestOnClaimChallenge(e){const{scopes:t,response:o}=e;const d=e.logger||i.logger;const m=o.headers.get("WWW-Authenticate");if(!m){d.info(`The WWW-Authenticate header was missing. Failed to perform the Continuous Access Evaluation authentication flow.`);return false}const f=parseCAEChallenge(m)||[];const h=f.find((e=>e.claims));if(!h){d.info(`The WWW-Authenticate header was missing the necessary "claims" to perform the Continuous Access Evaluation authentication flow.`);return false}const P=await e.getAccessToken(h.scope?[h.scope]:t,{claims:(0,a.decodeStringToString)(h.claims)});if(!P){return false}e.request.headers.set("Authorization",`${P.tokenType??"Bearer"} ${P.token}`);return true}},97454:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.authorizeRequestOnTenantChallenge=void 0;const o={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function isUuid(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const authorizeRequestOnTenantChallenge=async e=>{const t=requestToOptions(e.request);const i=getChallenge(e.response);if(i){const a=parseChallenge(i);const d=buildScopes(e,a);const m=extractTenantId(a);if(!m){return false}const f=await e.getAccessToken(d,{...t,tenantId:m});if(!f){return false}e.request.headers.set(o.HeaderConstants.AUTHORIZATION,`${f.tokenType??"Bearer"} ${f.token}`);return true}return false};t.authorizeRequestOnTenantChallenge=authorizeRequestOnTenantChallenge;function extractTenantId(e){const t=new URL(e.authorization_uri);const o=t.pathname.split("/");const i=o[1];if(i&&isUuid(i)){return i}return undefined}function buildScopes(e,t){if(!t.resource_id){return e.scopes}const i=new URL(t.resource_id);i.pathname=o.DefaultScope;let a=i.toString();if(a==="https://disk.azure.com/.default"){a="https://disk.azure.com//.default"}return[a]}function getChallenge(e){const t=e.headers.get("WWW-Authenticate");if(e.status===401&&t){return t}return}function parseChallenge(e){const t=e.slice("Bearer ".length);const o=`${t.trim()} `.split(" ").filter((e=>e));const i=o.map((e=>(([e,t])=>({[e]:t}))(e.trim().split("="))));return i.reduce(((e,t)=>({...e,...t})),{})}function requestToOptions(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}},20741:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.encodeString=encodeString;t.encodeByteArray=encodeByteArray;t.decodeString=decodeString;t.decodeStringToString=decodeStringToString;function encodeString(e){return Buffer.from(e).toString("base64")}function encodeByteArray(e){const t=e instanceof Buffer?e:Buffer.from(e.buffer);return t.toString("base64")}function decodeString(e){return Buffer.from(e,"base64")}function decodeStringToString(e){return Buffer.from(e,"base64").toString()}},90111:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializationPolicyName=void 0;t.deserializationPolicy=deserializationPolicy;const i=o(56058);const a=o(20778);const d=o(31530);const m=o(19688);const f=["application/json","text/json"];const h=["application/xml","application/atom+xml"];t.deserializationPolicyName="deserializationPolicy";function deserializationPolicy(e={}){const o=e.expectedContentTypes?.json??f;const a=e.expectedContentTypes?.xml??h;const d=e.parseXML;const m=e.serializerOptions;const P={xml:{rootName:m?.xml.rootName??"",includeRoot:m?.xml.includeRoot??false,xmlCharKey:m?.xml.xmlCharKey??i.XML_CHARKEY}};return{name:t.deserializationPolicyName,async sendRequest(e,t){const i=await t(e);return deserializeResponseBody(o,a,i,P,d)}}}function getOperationResponseMap(e){let t;const o=e.request;const i=(0,m.getOperationRequestInfo)(o);const a=i?.operationSpec;if(a){if(!i?.operationResponseGetter){t=a.responses[e.status]}else{t=i?.operationResponseGetter(a,e)}}return t}function shouldDeserializeResponse(e){const t=e.request;const o=(0,m.getOperationRequestInfo)(t);const i=o?.shouldDeserialize;let a;if(i===undefined){a=true}else if(typeof i==="boolean"){a=i}else{a=i(e)}return a}async function deserializeResponseBody(e,t,o,i,f){const h=await parse(e,t,o,i,f);if(!shouldDeserializeResponse(h)){return h}const P=(0,m.getOperationRequestInfo)(h.request);const _=P?.operationSpec;if(!_||!_.responses){return h}const L=getOperationResponseMap(h);const{error:U,shouldReturnResponse:j}=handleErrorResponse(h,_,L,i);if(U){throw U}else if(j){return h}if(L){if(L.bodyMapper){let e=h.parsedBody;if(_.isXML&&L.bodyMapper.type.name===d.MapperTypeNames.Sequence){e=typeof e==="object"?e[L.bodyMapper.xmlElementName]:[]}try{h.parsedBody=_.serializer.deserialize(L.bodyMapper,e,"operationRes.parsedBody",i)}catch(e){const t=new a.RestError(`Error ${e} occurred in deserializing the responseBody - ${h.bodyAsText}`,{statusCode:h.status,request:h.request,response:h});throw t}}else if(_.httpMethod==="HEAD"){h.parsedBody=o.status>=200&&o.status<300}if(L.headersMapper){h.parsedHeaders=_.serializer.deserialize(L.headersMapper,h.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:true})}}return h}function isOperationSpecEmpty(e){const t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]==="default"}function handleErrorResponse(e,t,o,i){const m=200<=e.status&&e.status<300;const f=isOperationSpecEmpty(t)?m:!!o;if(f){if(o){if(!o.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const h=o??t.responses.default;const P=e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText;const _=new a.RestError(P,{statusCode:e.status,request:e.request,response:e});if(!h&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message)){throw _}const L=h?.bodyMapper;const U=h?.headersMapper;try{if(e.parsedBody){const o=e.parsedBody;let a;if(L){let e=o;if(t.isXML&&L.type.name===d.MapperTypeNames.Sequence){e=[];const t=L.xmlElementName;if(typeof o==="object"&&t){e=o[t]}}a=t.serializer.deserialize(L,e,"error.response.parsedBody",i)}const m=o.error||a||o;_.code=m.code;if(m.message){_.message=m.message}if(L){_.response.parsedBody=a}}if(e.headers&&U){_.response.parsedHeaders=t.serializer.deserialize(U,e.headers.toJSON(),"operationRes.parsedHeaders")}}catch(t){_.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:_,shouldReturnResponse:false}}async function parse(e,t,o,i,d){if(!o.request.streamResponseStatusCodes?.has(o.status)&&o.bodyAsText){const m=o.bodyAsText;const f=o.headers.get("Content-Type")||"";const h=!f?[]:f.split(";").map((e=>e.toLowerCase()));try{if(h.length===0||h.some((t=>e.indexOf(t)!==-1))){o.parsedBody=JSON.parse(m);return o}else if(h.some((e=>t.indexOf(e)!==-1))){if(!d){throw new Error("Parsing XML not supported.")}const e=await d(m,i.xml);o.parsedBody=e;return o}}catch(e){const t=`Error "${e}" occurred while parsing the response body - ${o.bodyAsText}.`;const i=e.code||a.RestError.PARSE_ERROR;const d=new a.RestError(t,{code:i,statusCode:o.status,request:o.request,response:o});throw d}}return o}},26323:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCachedDefaultHttpClient=getCachedDefaultHttpClient;const i=o(20778);let a;function getCachedDefaultHttpClient(){if(!a){a=(0,i.createDefaultHttpClient)()}return a}},60160:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.authorizeRequestOnTenantChallenge=t.authorizeRequestOnClaimChallenge=t.serializationPolicyName=t.serializationPolicy=t.deserializationPolicyName=t.deserializationPolicy=t.XML_CHARKEY=t.XML_ATTRKEY=t.createClientPipeline=t.ServiceClient=t.MapperTypeNames=t.createSerializer=void 0;var i=o(31530);Object.defineProperty(t,"createSerializer",{enumerable:true,get:function(){return i.createSerializer}});Object.defineProperty(t,"MapperTypeNames",{enumerable:true,get:function(){return i.MapperTypeNames}});var a=o(89544);Object.defineProperty(t,"ServiceClient",{enumerable:true,get:function(){return a.ServiceClient}});var d=o(74136);Object.defineProperty(t,"createClientPipeline",{enumerable:true,get:function(){return d.createClientPipeline}});var m=o(56058);Object.defineProperty(t,"XML_ATTRKEY",{enumerable:true,get:function(){return m.XML_ATTRKEY}});Object.defineProperty(t,"XML_CHARKEY",{enumerable:true,get:function(){return m.XML_CHARKEY}});var f=o(90111);Object.defineProperty(t,"deserializationPolicy",{enumerable:true,get:function(){return f.deserializationPolicy}});Object.defineProperty(t,"deserializationPolicyName",{enumerable:true,get:function(){return f.deserializationPolicyName}});var h=o(56234);Object.defineProperty(t,"serializationPolicy",{enumerable:true,get:function(){return h.serializationPolicy}});Object.defineProperty(t,"serializationPolicyName",{enumerable:true,get:function(){return h.serializationPolicyName}});var P=o(17698);Object.defineProperty(t,"authorizeRequestOnClaimChallenge",{enumerable:true,get:function(){return P.authorizeRequestOnClaimChallenge}});var _=o(97454);Object.defineProperty(t,"authorizeRequestOnTenantChallenge",{enumerable:true,get:function(){return _.authorizeRequestOnTenantChallenge}})},92066:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getStreamingResponseStatusCodes=getStreamingResponseStatusCodes;t.getPathStringFromParameter=getPathStringFromParameter;const i=o(31530);function getStreamingResponseStatusCodes(e){const t=new Set;for(const o in e.responses){const a=e.responses[o];if(a.bodyMapper&&a.bodyMapper.type.name===i.MapperTypeNames.Stream){t.add(Number(o))}}return t}function getPathStringFromParameter(e){const{parameterPath:t,mapper:o}=e;let i;if(typeof t==="string"){i=t}else if(Array.isArray(t)){i=t.join(".")}else{i=o.serializedName}return i}},56058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.XML_CHARKEY=t.XML_ATTRKEY=void 0;t.XML_ATTRKEY="$";t.XML_CHARKEY="_"},89994:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const i=o(26515);t.logger=(0,i.createClientLogger)("core-client")},19688:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOperationArgumentValueFromParameter=getOperationArgumentValueFromParameter;t.getOperationRequestInfo=getOperationRequestInfo;const i=o(33345);function getOperationArgumentValueFromParameter(e,t,o){let i=t.parameterPath;const a=t.mapper;let d;if(typeof i==="string"){i=[i]}if(Array.isArray(i)){if(i.length>0){if(a.isConstant){d=a.defaultValue}else{let t=getPropertyFromParameterPath(e,i);if(!t.propertyFound&&o){t=getPropertyFromParameterPath(o,i)}let m=false;if(!t.propertyFound){m=a.required||i[0]==="options"&&i.length===2}d=m?a.defaultValue:t.propertyValue}}}else{if(a.required){d={}}for(const t in i){const m=a.type.modelProperties[t];const f=i[t];const h=getOperationArgumentValueFromParameter(e,{parameterPath:f,mapper:m},o);if(h!==undefined){if(!d){d={}}d[t]=h}}}return d}function getPropertyFromParameterPath(e,t){const o={propertyFound:false};let i=0;for(;i<t.length;++i){const o=t[i];if(e&&o in e){e=e[o]}else{break}}if(i===t.length){o.propertyValue=e;o.propertyFound=true}return o}const a=Symbol.for("@azure/core-client original request");function hasOriginalRequest(e){return a in e}function getOperationRequestInfo(e){if(hasOriginalRequest(e)){return getOperationRequestInfo(e[a])}let t=i.state.operationRequestMap.get(e);if(!t){t={};i.state.operationRequestMap.set(e,t)}return t}},74136:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createClientPipeline=createClientPipeline;const i=o(90111);const a=o(20778);const d=o(56234);function createClientPipeline(e={}){const t=(0,a.createPipelineFromOptions)(e??{});if(e.credentialOptions){t.addPolicy((0,a.bearerTokenAuthenticationPolicy)({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes}))}t.addPolicy((0,d.serializationPolicy)(e.serializationOptions),{phase:"Serialize"});t.addPolicy((0,i.deserializationPolicy)(e.deserializationOptions),{phase:"Deserialize"});return t}},56234:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializationPolicyName=void 0;t.serializationPolicy=serializationPolicy;t.serializeHeaders=serializeHeaders;t.serializeRequestBody=serializeRequestBody;const i=o(56058);const a=o(19688);const d=o(31530);const m=o(92066);t.serializationPolicyName="serializationPolicy";function serializationPolicy(e={}){const o=e.stringifyXML;return{name:t.serializationPolicyName,async sendRequest(e,t){const i=(0,a.getOperationRequestInfo)(e);const d=i?.operationSpec;const m=i?.operationArguments;if(d&&m){serializeHeaders(e,m,d);serializeRequestBody(e,m,d,o)}return t(e)}}}function serializeHeaders(e,t,o){if(o.headerParameters){for(const i of o.headerParameters){let d=(0,a.getOperationArgumentValueFromParameter)(t,i);if(d!==null&&d!==undefined||i.mapper.required){d=o.serializer.serialize(i.mapper,d,(0,m.getPathStringFromParameter)(i));const t=i.mapper.headerCollectionPrefix;if(t){for(const o of Object.keys(d)){e.headers.set(t+o,d[o])}}else{e.headers.set(i.mapper.serializedName||(0,m.getPathStringFromParameter)(i),d)}}}}const i=t.options?.requestOptions?.customHeaders;if(i){for(const t of Object.keys(i)){e.headers.set(t,i[t])}}}function serializeRequestBody(e,t,o,f=function(){throw new Error("XML serialization unsupported!")}){const h=t.options?.serializerOptions;const P={xml:{rootName:h?.xml.rootName??"",includeRoot:h?.xml.includeRoot??false,xmlCharKey:h?.xml.xmlCharKey??i.XML_CHARKEY}};const _=P.xml.xmlCharKey;if(o.requestBody&&o.requestBody.mapper){e.body=(0,a.getOperationArgumentValueFromParameter)(t,o.requestBody);const i=o.requestBody.mapper;const{required:h,serializedName:L,xmlName:U,xmlElementName:j,xmlNamespace:H,xmlNamespacePrefix:V,nullable:K}=i;const W=i.type.name;try{if(e.body!==undefined&&e.body!==null||K&&e.body===null||h){const t=(0,m.getPathStringFromParameter)(o.requestBody);e.body=o.serializer.serialize(i,e.body,t,P);const a=W===d.MapperTypeNames.Stream;if(o.isXML){const t=V?`xmlns:${V}`:"xmlns";const o=getXmlValueWithNamespace(H,t,W,e.body,P);if(W===d.MapperTypeNames.Sequence){e.body=f(prepareXMLRootList(o,j||U||L,t,H),{rootName:U||L,xmlCharKey:_})}else if(!a){e.body=f(o,{rootName:U||L,xmlCharKey:_})}}else if(W===d.MapperTypeNames.String&&(o.contentType?.match("text/plain")||o.mediaType==="text")){return}else if(!a){e.body=JSON.stringify(e.body)}}}catch(e){throw new Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(L,undefined," ")}.`)}}else if(o.formDataParameters&&o.formDataParameters.length>0){e.formData={};for(const i of o.formDataParameters){const d=(0,a.getOperationArgumentValueFromParameter)(t,i);if(d!==undefined&&d!==null){const t=i.mapper.serializedName||(0,m.getPathStringFromParameter)(i);e.formData[t]=o.serializer.serialize(i.mapper,d,(0,m.getPathStringFromParameter)(i),P)}}}}function getXmlValueWithNamespace(e,t,o,a,d){if(e&&!["Composite","Sequence","Dictionary"].includes(o)){const o={};o[d.xml.xmlCharKey]=a;o[i.XML_ATTRKEY]={[t]:e};return o}return a}function prepareXMLRootList(e,t,o,a){if(!Array.isArray(e)){e=[e]}if(!o||!a){return{[t]:e}}const d={[t]:e};d[i.XML_ATTRKEY]={[o]:a};return d}},31530:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MapperTypeNames=void 0;t.createSerializer=createSerializer;const i=o(61860);const a=i.__importStar(o(20741));const d=o(56058);const m=o(31193);class SerializerImpl{modelMappers;isXML;constructor(e={},t=false){this.modelMappers=e;this.isXML=t}validateConstraints(e,t,o){const failValidation=(e,i)=>{throw new Error(`"${o}" with value "${t}" should satisfy the constraint "${e}": ${i}.`)};if(e.constraints&&t!==undefined&&t!==null){const{ExclusiveMaximum:o,ExclusiveMinimum:i,InclusiveMaximum:a,InclusiveMinimum:d,MaxItems:m,MaxLength:f,MinItems:h,MinLength:P,MultipleOf:_,Pattern:L,UniqueItems:U}=e.constraints;if(o!==undefined&&t>=o){failValidation("ExclusiveMaximum",o)}if(i!==undefined&&t<=i){failValidation("ExclusiveMinimum",i)}if(a!==undefined&&t>a){failValidation("InclusiveMaximum",a)}if(d!==undefined&&t<d){failValidation("InclusiveMinimum",d)}if(m!==undefined&&t.length>m){failValidation("MaxItems",m)}if(f!==undefined&&t.length>f){failValidation("MaxLength",f)}if(h!==undefined&&t.length<h){failValidation("MinItems",h)}if(P!==undefined&&t.length<P){failValidation("MinLength",P)}if(_!==undefined&&t%_!==0){failValidation("MultipleOf",_)}if(L){const e=typeof L==="string"?new RegExp(L):L;if(typeof t!=="string"||t.match(e)===null){failValidation("Pattern",L)}}if(U&&t.some(((e,t,o)=>o.indexOf(e)!==t))){failValidation("UniqueItems",U)}}}serialize(e,t,o,i={xml:{}}){const a={xml:{rootName:i.xml.rootName??"",includeRoot:i.xml.includeRoot??false,xmlCharKey:i.xml.xmlCharKey??d.XML_CHARKEY}};let m={};const f=e.type.name;if(!o){o=e.serializedName}if(f.match(/^Sequence$/i)!==null){m=[]}if(e.isConstant){t=e.defaultValue}const{required:h,nullable:P}=e;if(h&&P&&t===undefined){throw new Error(`${o} cannot be undefined.`)}if(h&&!P&&(t===undefined||t===null)){throw new Error(`${o} cannot be null or undefined.`)}if(!h&&P===false&&t===null){throw new Error(`${o} cannot be null.`)}if(t===undefined||t===null){m=t}else{if(f.match(/^any$/i)!==null){m=t}else if(f.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){m=serializeBasicTypes(f,o,t)}else if(f.match(/^Enum$/i)!==null){const i=e;m=serializeEnumType(o,i.type.allowedValues,t)}else if(f.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){m=serializeDateTypes(f,t,o)}else if(f.match(/^ByteArray$/i)!==null){m=serializeByteArrayType(o,t)}else if(f.match(/^Base64Url$/i)!==null){m=serializeBase64UrlType(o,t)}else if(f.match(/^Sequence$/i)!==null){m=serializeSequenceType(this,e,t,o,Boolean(this.isXML),a)}else if(f.match(/^Dictionary$/i)!==null){m=serializeDictionaryType(this,e,t,o,Boolean(this.isXML),a)}else if(f.match(/^Composite$/i)!==null){m=serializeCompositeType(this,e,t,o,Boolean(this.isXML),a)}}return m}deserialize(e,t,o,i={xml:{}}){const m={xml:{rootName:i.xml.rootName??"",includeRoot:i.xml.includeRoot??false,xmlCharKey:i.xml.xmlCharKey??d.XML_CHARKEY},ignoreUnknownProperties:i.ignoreUnknownProperties??false};if(t===undefined||t===null){if(this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped){t=[]}if(e.defaultValue!==undefined){t=e.defaultValue}return t}let f;const h=e.type.name;if(!o){o=e.serializedName}if(h.match(/^Composite$/i)!==null){f=deserializeCompositeType(this,e,t,o,m)}else{if(this.isXML){const e=m.xml.xmlCharKey;if(t[d.XML_ATTRKEY]!==undefined&&t[e]!==undefined){t=t[e]}}if(h.match(/^Number$/i)!==null){f=parseFloat(t);if(isNaN(f)){f=t}}else if(h.match(/^Boolean$/i)!==null){if(t==="true"){f=true}else if(t==="false"){f=false}else{f=t}}else if(h.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){f=t}else if(h.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){f=new Date(t)}else if(h.match(/^UnixTime$/i)!==null){f=unixTimeToDate(t)}else if(h.match(/^ByteArray$/i)!==null){f=a.decodeString(t)}else if(h.match(/^Base64Url$/i)!==null){f=base64UrlToByteArray(t)}else if(h.match(/^Sequence$/i)!==null){f=deserializeSequenceType(this,e,t,o,m)}else if(h.match(/^Dictionary$/i)!==null){f=deserializeDictionaryType(this,e,t,o,m)}}if(e.isConstant){f=e.defaultValue}return f}}function createSerializer(e={},t=false){return new SerializerImpl(e,t)}function trimEnd(e,t){let o=e.length;while(o-1>=0&&e[o-1]===t){--o}return e.substr(0,o)}function bufferToBase64Url(e){if(!e){return undefined}if(!(e instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const t=a.encodeByteArray(e);return trimEnd(t,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(e){if(!e){return undefined}if(e&&typeof e.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}e=e.replace(/-/g,"+").replace(/_/g,"/");return a.decodeString(e)}function splitSerializeName(e){const t=[];let o="";if(e){const i=e.split(".");for(const e of i){if(e.charAt(e.length-1)==="\\"){o+=e.substr(0,e.length-1)+"."}else{o+=e;t.push(o);o=""}}}return t}function dateToUnixTime(e){if(!e){return undefined}if(typeof e.valueOf()==="string"){e=new Date(e)}return Math.floor(e.getTime()/1e3)}function unixTimeToDate(e){if(!e){return undefined}return new Date(e*1e3)}function serializeBasicTypes(e,t,o){if(o!==null&&o!==undefined){if(e.match(/^Number$/i)!==null){if(typeof o!=="number"){throw new Error(`${t} with value ${o} must be of type number.`)}}else if(e.match(/^String$/i)!==null){if(typeof o.valueOf()!=="string"){throw new Error(`${t} with value "${o}" must be of type string.`)}}else if(e.match(/^Uuid$/i)!==null){if(!(typeof o.valueOf()==="string"&&(0,m.isValidUuid)(o))){throw new Error(`${t} with value "${o}" must be of type string and a valid uuid.`)}}else if(e.match(/^Boolean$/i)!==null){if(typeof o!=="boolean"){throw new Error(`${t} with value ${o} must be of type boolean.`)}}else if(e.match(/^Stream$/i)!==null){const e=typeof o;if(e!=="string"&&typeof o.pipe!=="function"&&typeof o.tee!=="function"&&!(o instanceof ArrayBuffer)&&!ArrayBuffer.isView(o)&&!((typeof Blob==="function"||typeof Blob==="object")&&o instanceof Blob)&&e!=="function"){throw new Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}}return o}function serializeEnumType(e,t,o){if(!t){throw new Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`)}const i=t.some((e=>{if(typeof e.valueOf()==="string"){return e.toLowerCase()===o.toLowerCase()}return e===o}));if(!i){throw new Error(`${o} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`)}return o}function serializeByteArrayType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=a.encodeByteArray(t)}return t}function serializeBase64UrlType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=bufferToBase64Url(t)}return t}function serializeDateTypes(e,t,o){if(t!==undefined&&t!==null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${o} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${o} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${o} must be an instanceof Date or a string in RFC-1123 format.`)}t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${o} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}t=dateToUnixTime(t)}else if(e.match(/^TimeSpan$/i)!==null){if(!(0,m.isDuration)(t)){throw new Error(`${o} must be a string in ISO 8601 format. Instead was "${t}".`)}}}return t}function serializeSequenceType(e,t,o,i,a,m){if(!Array.isArray(o)){throw new Error(`${i} must be of type Array.`)}let f=t.type.element;if(!f||typeof f!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${i}.`)}if(f.type.name==="Composite"&&f.type.className){f=e.modelMappers[f.type.className]??f}const h=[];for(let t=0;t<o.length;t++){const P=e.serialize(f,o[t],i,m);if(a&&f.xmlNamespace){const e=f.xmlNamespacePrefix?`xmlns:${f.xmlNamespacePrefix}`:"xmlns";if(f.type.name==="Composite"){h[t]={...P};h[t][d.XML_ATTRKEY]={[e]:f.xmlNamespace}}else{h[t]={};h[t][m.xml.xmlCharKey]=P;h[t][d.XML_ATTRKEY]={[e]:f.xmlNamespace}}}else{h[t]=P}}return h}function serializeDictionaryType(e,t,o,i,a,m){if(typeof o!=="object"){throw new Error(`${i} must be of type object.`)}const f=t.type.value;if(!f||typeof f!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${i}.`)}const h={};for(const t of Object.keys(o)){const d=e.serialize(f,o[t],i,m);h[t]=getXmlObjectValue(f,d,a,m)}if(a&&t.xmlNamespace){const e=t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns";const o=h;o[d.XML_ATTRKEY]={[e]:t.xmlNamespace};return o}return h}function resolveAdditionalProperties(e,t,o){const i=t.type.additionalProperties;if(!i&&t.type.className){const i=resolveReferencedMapper(e,t,o);return i?.type.additionalProperties}return i}function resolveReferencedMapper(e,t,o){const i=t.type.className;if(!i){throw new Error(`Class name for model "${o}" is not provided in the mapper "${JSON.stringify(t,undefined,2)}".`)}return e.modelMappers[i]}function resolveModelProperties(e,t,o){let i=t.type.modelProperties;if(!i){const a=resolveReferencedMapper(e,t,o);if(!a){throw new Error(`mapper() cannot be null or undefined for model "${t.type.className}".`)}i=a?.type.modelProperties;if(!i){throw new Error(`modelProperties cannot be null or undefined in the `+`mapper "${JSON.stringify(a)}" of type "${t.type.className}" for object "${o}".`)}}return i}function serializeCompositeType(e,t,o,i,a,m){if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,o,"clientName")}if(o!==undefined&&o!==null){const f={};const h=resolveModelProperties(e,t,i);for(const P of Object.keys(h)){const _=h[P];if(_.readOnly){continue}let L;let U=f;if(e.isXML){if(_.xmlIsWrapped){L=_.xmlName}else{L=_.xmlElementName||_.xmlName}}else{const e=splitSerializeName(_.serializedName);L=e.pop();for(const t of e){const e=U[t];if((e===undefined||e===null)&&(o[P]!==undefined&&o[P]!==null||_.defaultValue!==undefined)){U[t]={}}U=U[t]}}if(U!==undefined&&U!==null){if(a&&t.xmlNamespace){const e=t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns";U[d.XML_ATTRKEY]={...U[d.XML_ATTRKEY],[e]:t.xmlNamespace}}const f=_.serializedName!==""?i+"."+_.serializedName:i;let h=o[P];const j=getPolymorphicDiscriminatorRecursively(e,t);if(j&&j.clientName===P&&(h===undefined||h===null)){h=t.serializedName}const H=e.serialize(_,h,f,m);if(H!==undefined&&L!==undefined&&L!==null){const e=getXmlObjectValue(_,H,a,m);if(a&&_.xmlIsAttribute){U[d.XML_ATTRKEY]=U[d.XML_ATTRKEY]||{};U[d.XML_ATTRKEY][L]=H}else if(a&&_.xmlIsWrapped){U[L]={[_.xmlElementName]:e}}else{U[L]=e}}}}const P=resolveAdditionalProperties(e,t,i);if(P){const t=Object.keys(h);for(const a in o){const d=t.every((e=>e!==a));if(d){f[a]=e.serialize(P,o[a],i+'["'+a+'"]',m)}}}return f}return o}function getXmlObjectValue(e,t,o,i){if(!o||!e.xmlNamespace){return t}const a=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";const m={[a]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(t[d.XML_ATTRKEY]){return t}else{const e={...t};e[d.XML_ATTRKEY]=m;return e}}const f={};f[i.xml.xmlCharKey]=t;f[d.XML_ATTRKEY]=m;return f}function isSpecialXmlProperty(e,t){return[d.XML_ATTRKEY,t.xml.xmlCharKey].includes(e)}function deserializeCompositeType(e,t,o,i,a){const m=a.xml.xmlCharKey??d.XML_CHARKEY;if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,o,"serializedName")}const f=resolveModelProperties(e,t,i);let h={};const P=[];for(const _ of Object.keys(f)){const L=f[_];const U=splitSerializeName(f[_].serializedName);P.push(U[0]);const{serializedName:j,xmlName:H,xmlElementName:V}=L;let K=i;if(j!==""&&j!==undefined){K=i+"."+j}const W=L.headerCollectionPrefix;if(W){const t={};for(const i of Object.keys(o)){if(i.startsWith(W)){t[i.substring(W.length)]=e.deserialize(L.type.value,o[i],K,a)}P.push(i)}h[_]=t}else if(e.isXML){if(L.xmlIsAttribute&&o[d.XML_ATTRKEY]){h[_]=e.deserialize(L,o[d.XML_ATTRKEY][H],K,a)}else if(L.xmlIsMsText){if(o[m]!==undefined){h[_]=o[m]}else if(typeof o==="string"){h[_]=o}}else{const t=V||H||j;if(L.xmlIsWrapped){const t=o[H];const i=t?.[V]??[];h[_]=e.deserialize(L,i,K,a);P.push(H)}else{const i=o[t];h[_]=e.deserialize(L,i,K,a);P.push(t)}}}else{let i;let d=o;let m=0;for(const e of U){if(!d)break;m++;d=d[e]}if(d===null&&m<U.length){d=undefined}i=d;const P=t.type.polymorphicDiscriminator;if(P&&_===P.clientName&&(i===undefined||i===null)){i=t.serializedName}let j;if(Array.isArray(o[_])&&f[_].serializedName===""){i=o[_];const t=e.deserialize(L,i,K,a);for(const[e,o]of Object.entries(h)){if(!Object.prototype.hasOwnProperty.call(t,e)){t[e]=o}}h=t}else if(i!==undefined||L.defaultValue!==undefined){j=e.deserialize(L,i,K,a);h[_]=j}}}const _=t.type.additionalProperties;if(_){const isAdditionalProperty=e=>{for(const t in f){const o=splitSerializeName(f[t].serializedName);if(o[0]===e){return false}}return true};for(const t in o){if(isAdditionalProperty(t)){h[t]=e.deserialize(_,o[t],i+'["'+t+'"]',a)}}}else if(o&&!a.ignoreUnknownProperties){for(const e of Object.keys(o)){if(h[e]===undefined&&!P.includes(e)&&!isSpecialXmlProperty(e,a)){h[e]=o[e]}}}return h}function deserializeDictionaryType(e,t,o,i,a){const d=t.type.value;if(!d||typeof d!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${i}`)}if(o){const t={};for(const m of Object.keys(o)){t[m]=e.deserialize(d,o[m],i,a)}return t}return o}function deserializeSequenceType(e,t,o,i,a){let d=t.type.element;if(!d||typeof d!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${i}`)}if(o){if(!Array.isArray(o)){o=[o]}if(d.type.name==="Composite"&&d.type.className){d=e.modelMappers[d.type.className]??d}const t=[];for(let m=0;m<o.length;m++){t[m]=e.deserialize(d,o[m],`${i}[${m}]`,a)}return t}return o}function getIndexDiscriminator(e,t,o){const i=[o];while(i.length){const o=i.shift();const a=t===o?t:o+"."+t;if(Object.prototype.hasOwnProperty.call(e,a)){return e[a]}else{for(const[t,a]of Object.entries(e)){if(t.startsWith(o+".")&&a.type.uberParent===o&&a.type.className){i.push(a.type.className)}}}}return undefined}function getPolymorphicMapper(e,t,o,i){const a=getPolymorphicDiscriminatorRecursively(e,t);if(a){let d=a[i];if(d){if(i==="serializedName"){d=d.replace(/\\/gi,"")}const a=o[d];const m=t.type.uberParent??t.type.className;if(typeof a==="string"&&m){const o=getIndexDiscriminator(e.modelMappers.discriminators,a,m);if(o){t=o}}}}return t}function getPolymorphicDiscriminatorRecursively(e,t){return t.type.polymorphicDiscriminator||getPolymorphicDiscriminatorSafely(e,t.type.uberParent)||getPolymorphicDiscriminatorSafely(e,t.type.className)}function getPolymorphicDiscriminatorSafely(e,t){return t&&e.modelMappers[t]&&e.modelMappers[t].type.polymorphicDiscriminator}t.MapperTypeNames={Base64Url:"Base64Url",Boolean:"Boolean",ByteArray:"ByteArray",Composite:"Composite",Date:"Date",DateTime:"DateTime",DateTimeRfc1123:"DateTimeRfc1123",Dictionary:"Dictionary",Enum:"Enum",Number:"Number",Object:"Object",Sequence:"Sequence",String:"String",Stream:"Stream",TimeSpan:"TimeSpan",UnixTime:"UnixTime"}},89544:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceClient=void 0;const i=o(20778);const a=o(74136);const d=o(31193);const m=o(26323);const f=o(19688);const h=o(61752);const P=o(92066);const _=o(89994);class ServiceClient{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){this._requestContentType=e.requestContentType;this._endpoint=e.endpoint??e.baseUri;if(e.baseUri){_.logger.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead.")}this._allowInsecureConnection=e.allowInsecureConnection;this._httpClient=e.httpClient||(0,m.getCachedDefaultHttpClient)();this.pipeline=e.pipeline||createDefaultPipeline(e);if(e.additionalPolicies?.length){for(const{policy:t,position:o}of e.additionalPolicies){const e=o==="perRetry"?"Sign":undefined;this.pipeline.addPolicy(t,{afterPhase:e})}}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){const o=t.baseUrl||this._endpoint;if(!o){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.")}const a=(0,h.getRequestUrl)(o,t,e,this);const m=(0,i.createPipelineRequest)({url:a});m.method=t.httpMethod;const _=(0,f.getOperationRequestInfo)(m);_.operationSpec=t;_.operationArguments=e;const L=t.contentType||this._requestContentType;if(L&&t.requestBody){m.headers.set("Content-Type",L)}const U=e.options;if(U){const e=U.requestOptions;if(e){if(e.timeout){m.timeout=e.timeout}if(e.onUploadProgress){m.onUploadProgress=e.onUploadProgress}if(e.onDownloadProgress){m.onDownloadProgress=e.onDownloadProgress}if(e.shouldDeserialize!==undefined){_.shouldDeserialize=e.shouldDeserialize}if(e.allowInsecureConnection){m.allowInsecureConnection=true}}if(U.abortSignal){m.abortSignal=U.abortSignal}if(U.tracingOptions){m.tracingOptions=U.tracingOptions}}if(this._allowInsecureConnection){m.allowInsecureConnection=true}if(m.streamResponseStatusCodes===undefined){m.streamResponseStatusCodes=(0,P.getStreamingResponseStatusCodes)(t)}try{const e=await this.sendRequest(m);const o=(0,d.flattenResponse)(e,t.responses[e.status]);if(U?.onResponse){U.onResponse(e,o)}return o}catch(e){if(typeof e==="object"&&e?.response){const o=e.response;const i=(0,d.flattenResponse)(o,t.responses[e.statusCode]||t.responses["default"]);e.details=i;if(U?.onResponse){U.onResponse(o,i,e)}}throw e}}}t.ServiceClient=ServiceClient;function createDefaultPipeline(e){const t=getCredentialScopes(e);const o=e.credential&&t?{credentialScopes:t,credential:e.credential}:undefined;return(0,a.createClientPipeline)({...e,credentialOptions:o})}function getCredentialScopes(e){if(e.credentialScopes){return e.credentialScopes}if(e.endpoint){return`${e.endpoint}/.default`}if(e.baseUri){return`${e.baseUri}/.default`}if(e.credential&&!e.credentialScopes){throw new Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}return undefined}},33345:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.state=void 0;t.state={operationRequestMap:new WeakMap}},61752:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRequestUrl=getRequestUrl;t.appendQueryParams=appendQueryParams;const i=o(19688);const a=o(92066);const d={CSV:",",SSV:" ",Multi:"Multi",TSV:"\t",Pipes:"|"};function getRequestUrl(e,t,o,i){const a=calculateUrlReplacements(t,o,i);let d=false;let m=replaceAll(e,a);if(t.path){let e=replaceAll(t.path,a);if(t.path==="/{nextLink}"&&e.startsWith("/")){e=e.substring(1)}if(isAbsoluteUrl(e)){m=e;d=true}else{m=appendPath(m,e)}}const{queryParams:f,sequenceParams:h}=calculateQueryParameters(t,o,i);m=appendQueryParams(m,f,h,d);return m}function replaceAll(e,t){let o=e;for(const[e,i]of t){o=o.split(e).join(i)}return o}function calculateUrlReplacements(e,t,o){const d=new Map;if(e.urlParameters?.length){for(const m of e.urlParameters){let f=(0,i.getOperationArgumentValueFromParameter)(t,m,o);const h=(0,a.getPathStringFromParameter)(m);f=e.serializer.serialize(m.mapper,f,h);if(!m.skipEncoding){f=encodeURIComponent(f)}d.set(`{${m.mapper.serializedName||h}}`,f)}}return d}function isAbsoluteUrl(e){return e.includes("://")}function appendPath(e,t){if(!t){return e}const o=new URL(e);let i=o.pathname;if(!i.endsWith("/")){i=`${i}/`}if(t.startsWith("/")){t=t.substring(1)}const a=t.indexOf("?");if(a!==-1){const e=t.substring(0,a);const d=t.substring(a+1);i=i+e;if(d){o.search=o.search?`${o.search}&${d}`:d}}else{i=i+t}o.pathname=i;return o.toString()}function calculateQueryParameters(e,t,o){const m=new Map;const f=new Set;if(e.queryParameters?.length){for(const h of e.queryParameters){if(h.mapper.type.name==="Sequence"&&h.mapper.serializedName){f.add(h.mapper.serializedName)}let P=(0,i.getOperationArgumentValueFromParameter)(t,h,o);if(P!==undefined&&P!==null||h.mapper.required){P=e.serializer.serialize(h.mapper,P,(0,a.getPathStringFromParameter)(h));const t=h.collectionFormat?d[h.collectionFormat]:"";if(Array.isArray(P)){P=P.map((e=>{if(e===null||e===undefined){return""}return e}))}if(h.collectionFormat==="Multi"&&P.length===0){continue}else if(Array.isArray(P)&&(h.collectionFormat==="SSV"||h.collectionFormat==="TSV")){P=P.join(t)}if(!h.skipEncoding){if(Array.isArray(P)){P=P.map((e=>encodeURIComponent(e)))}else{P=encodeURIComponent(P)}}if(Array.isArray(P)&&(h.collectionFormat==="CSV"||h.collectionFormat==="Pipes")){P=P.join(t)}m.set(h.mapper.serializedName||(0,a.getPathStringFromParameter)(h),P)}}}return{queryParams:m,sequenceParams:f}}function simpleParseQueryParams(e){const t=new Map;if(!e||e[0]!=="?"){return t}e=e.slice(1);const o=e.split("&");for(const e of o){const[o,i]=e.split("=",2);const a=t.get(o);if(a){if(Array.isArray(a)){a.push(i)}else{t.set(o,[a,i])}}else{t.set(o,i)}}return t}function appendQueryParams(e,t,o,i=false){if(t.size===0){return e}const a=new URL(e);const d=simpleParseQueryParams(a.search);for(const[e,a]of t){const t=d.get(e);if(Array.isArray(t)){if(Array.isArray(a)){t.push(...a);const o=new Set(t);d.set(e,Array.from(o))}else{t.push(a)}}else if(t){if(Array.isArray(a)){a.unshift(t)}else if(o.has(e)){d.set(e,[t,a])}if(!i){d.set(e,a)}}else{d.set(e,a)}}const m=[];for(const[e,t]of d){if(typeof t==="string"){m.push(`${e}=${t}`)}else if(Array.isArray(t)){for(const o of t){m.push(`${e}=${o}`)}}else{m.push(`${e}=${t}`)}}a.search=m.length?`?${m.join("&")}`:"";return a.toString()}},31193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isPrimitiveBody=isPrimitiveBody;t.isDuration=isDuration;t.isValidUuid=isValidUuid;t.flattenResponse=flattenResponse;function isPrimitiveBody(e,t){return t!=="Composite"&&t!=="Dictionary"&&(typeof e==="string"||typeof e==="number"||typeof e==="boolean"||t?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||e===undefined||e===null)}const o=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function isDuration(e){return o.test(e)}const i=/^[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}$/i;function isValidUuid(e){return i.test(e)}function handleNullableResponseAndWrappableBody(e){const t={...e.headers,...e.body};if(e.hasNullableType&&Object.getOwnPropertyNames(t).length===0){return e.shouldWrapBody?{body:null}:null}else{return e.shouldWrapBody?{...e.headers,body:e.body}:t}}function flattenResponse(e,t){const o=e.parsedHeaders;if(e.request.method==="HEAD"){return{...o,body:e.parsedBody}}const i=t&&t.bodyMapper;const a=Boolean(i?.nullable);const d=i?.type.name;if(d==="Stream"){return{...o,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody}}const m=d==="Composite"&&i.type.modelProperties||{};const f=Object.keys(m).some((e=>m[e].serializedName===""));if(d==="Sequence"||f){const t=e.parsedBody??[];for(const o of Object.keys(m)){if(m[o].serializedName){t[o]=e.parsedBody?.[o]}}if(o){for(const e of Object.keys(o)){t[e]=o[e]}}return a&&!e.parsedBody&&!o&&Object.getOwnPropertyNames(m).length===0?null:t}return handleNullableResponseAndWrappableBody({body:e.parsedBody,headers:o,hasNullableType:a,shouldWrapBody:isPrimitiveBody(e.parsedBody,d)})}},95492:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{ExtendedServiceClient:()=>ExtendedServiceClient});e.exports=__toCommonJS(f);var h=o(32639);var P=o(20778);var _=o(60160);var L=o(38153);class ExtendedServiceClient extends _.ServiceClient{constructor(e){super(e);if(e.keepAliveOptions?.enable===false&&!(0,h.pipelineContainsDisableKeepAlivePolicy)(this.pipeline)){this.pipeline.addPolicy((0,h.createDisableKeepAlivePolicy)())}if(e.redirectOptions?.handleRedirects===false){this.pipeline.removePolicy({name:P.redirectPolicyName})}}async sendOperationRequest(e,t){const o=e?.options?.onResponse;let i;function onResponse(e,t,a){i=e;if(o){o(e,t,a)}}e.options={...e.options,onResponse:onResponse};const a=await super.sendOperationRequest(e,t);if(i){Object.defineProperty(a,"_response",{value:(0,L.toCompatResponse)(i)})}return a}}0&&0},2078:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{convertHttpClient:()=>convertHttpClient});e.exports=__toCommonJS(f);var h=o(38153);var P=o(33850);function convertHttpClient(e){return{sendRequest:async t=>{const o=await e.sendRequest((0,P.toWebResourceLike)(t,{createProxy:true}));return(0,h.toPipelineResponse)(o)}}}0&&0},61584:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{ExtendedServiceClient:()=>h.ExtendedServiceClient,HttpPipelineLogLevel:()=>_.HttpPipelineLogLevel,convertHttpClient:()=>U.convertHttpClient,createRequestPolicyFactoryPolicy:()=>_.createRequestPolicyFactoryPolicy,disableKeepAlivePolicyName:()=>L.disableKeepAlivePolicyName,requestPolicyFactoryPolicyName:()=>_.requestPolicyFactoryPolicyName,toCompatResponse:()=>P.toCompatResponse,toHttpHeadersLike:()=>j.toHttpHeadersLike});e.exports=__toCommonJS(f);var h=o(95492);var P=o(38153);var _=o(3466);var L=o(32639);var U=o(2078);var j=o(33850);0&&0},32639:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{createDisableKeepAlivePolicy:()=>createDisableKeepAlivePolicy,disableKeepAlivePolicyName:()=>m,pipelineContainsDisableKeepAlivePolicy:()=>pipelineContainsDisableKeepAlivePolicy});e.exports=__toCommonJS(d);const m="DisableKeepAlivePolicy";function createDisableKeepAlivePolicy(){return{name:m,async sendRequest(e,t){e.disableKeepAlive=true;return t(e)}}}function pipelineContainsDisableKeepAlivePolicy(e){return e.getOrderedPolicies().some((e=>e.name===m))}0&&0},3466:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{HttpPipelineLogLevel:()=>_,createRequestPolicyFactoryPolicy:()=>createRequestPolicyFactoryPolicy,requestPolicyFactoryPolicyName:()=>U});e.exports=__toCommonJS(f);var h=o(33850);var P=o(38153);var _=(e=>{e[e["ERROR"]=1]="ERROR";e[e["INFO"]=3]="INFO";e[e["OFF"]=0]="OFF";e[e["WARNING"]=2]="WARNING";return e})(_||{});const L={log(e,t){},shouldLog(e){return false}};const U="RequestPolicyFactoryPolicy";function createRequestPolicyFactoryPolicy(e){const t=e.slice().reverse();return{name:U,async sendRequest(e,o){let i={async sendRequest(e){const t=await o((0,h.toPipelineRequest)(e));return(0,P.toCompatResponse)(t,{createProxy:true})}};for(const e of t){i=e.create(i,L)}const a=(0,h.toWebResourceLike)(e,{createProxy:true});const d=await i.sendRequest(a);return(0,P.toPipelineResponse)(d)}}}0&&0},38153:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{toCompatResponse:()=>toCompatResponse,toPipelineResponse:()=>toPipelineResponse});e.exports=__toCommonJS(f);var h=o(20778);var P=o(33850);const _=Symbol("Original FullOperationResponse");function toCompatResponse(e,t){let o=(0,P.toWebResourceLike)(e.request);let i=(0,P.toHttpHeadersLike)(e.headers);if(t?.createProxy){return new Proxy(e,{get(t,a,d){if(a==="headers"){return i}else if(a==="request"){return o}else if(a===_){return e}return Reflect.get(t,a,d)},set(e,t,a,d){if(t==="headers"){i=a}else if(t==="request"){o=a}return Reflect.set(e,t,a,d)}})}else{return{...e,request:o,headers:i}}}function toPipelineResponse(e){const t=e;const o=t[_];const i=(0,h.createHttpHeaders)(e.headers.toJson({preserveCase:true}));if(o){o.headers=i;return o}else{return{...e,headers:i,request:(0,P.toPipelineRequest)(e.request)}}}0&&0},33850:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{HttpHeaders:()=>HttpHeaders,toHttpHeadersLike:()=>toHttpHeadersLike,toPipelineRequest:()=>toPipelineRequest,toWebResourceLike:()=>toWebResourceLike});e.exports=__toCommonJS(f);var h=o(20778);const P=Symbol("Original PipelineRequest");const _=Symbol.for("@azure/core-client original request");function toPipelineRequest(e,t={}){const o=e;const i=o[P];const a=(0,h.createHttpHeaders)(e.headers.toJson({preserveCase:true}));if(i){i.headers=a;return i}else{const o=(0,h.createPipelineRequest)({url:e.url,method:e.method,headers:a,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});if(t.originalRequest){o[_]=t.originalRequest}return o}}function toWebResourceLike(e,t){const o=t?.originalRequest??e;const i={url:e.url,method:e.method,headers:toHttpHeadersLike(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get("x-ms-client-request-id")||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};if(t?.createProxy){return new Proxy(i,{get(t,a,d){if(a===P){return e}else if(a==="clone"){return()=>toWebResourceLike(toPipelineRequest(i,{originalRequest:o}),{createProxy:true,originalRequest:o})}return Reflect.get(t,a,d)},set(t,o,i,a){if(o==="keepAlive"){e.disableKeepAlive=!i}const d=["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"];if(typeof o==="string"&&d.includes(o)){e[o]=i}return Reflect.set(t,o,i,a)}})}else{return i}}function toHttpHeadersLike(e){return new HttpHeaders(e.toJSON({preserveCase:true}))}function getHeaderKey(e){return e.toLowerCase()}class HttpHeaders{_headersMap;constructor(e){this._headersMap={};if(e){for(const t in e){this.set(t,e[t])}}}set(e,t){this._headersMap[getHeaderKey(e)]={name:e,value:t.toString()}}get(e){const t=this._headersMap[getHeaderKey(e)];return!t?void 0:t.value}contains(e){return!!this._headersMap[getHeaderKey(e)]}remove(e){const t=this.contains(e);delete this._headersMap[getHeaderKey(e)];return t}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const e=[];for(const t in this._headersMap){e.push(this._headersMap[t])}return e}headerNames(){const e=[];const t=this.headersArray();for(let o=0;o<t.length;++o){e.push(t[o].name)}return e}headerValues(){const e=[];const t=this.headersArray();for(let o=0;o<t.length;++o){e.push(t[o].value)}return e}toJson(e={}){const t={};if(e.preserveCase){for(const e in this._headersMap){const o=this._headersMap[e];t[o.name]=o.value}}else{for(const e in this._headersMap){const o=this._headersMap[e];t[getHeaderKey(o.name)]=o.value}}return t}toString(){return JSON.stringify(this.toJson({preserveCase:true}))}clone(){const e={};for(const t in this._headersMap){const o=this._headersMap[t];e[o.name]=o.value}return new HttpHeaders(e)}}0&&0},93878:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pollHttpOperation=t.isOperationError=t.getResourceLocation=t.getOperationStatus=t.getOperationLocation=t.initHttpOperation=t.getStatusFromInitialResponse=t.getErrorFromResponse=t.parseRetryAfter=t.inferLroMode=void 0;const i=o(30736);const a=o(50480);function getOperationLocationPollingUrl(e){const{azureAsyncOperation:t,operationLocation:o}=e;return o!==null&&o!==void 0?o:t}function getLocationHeader(e){return e.headers["location"]}function getOperationLocationHeader(e){return e.headers["operation-location"]}function getAzureAsyncOperationHeader(e){return e.headers["azure-asyncoperation"]}function findResourceLocation(e){var t;const{location:o,requestMethod:i,requestPath:a,resourceLocationConfig:d}=e;switch(i){case"PUT":{return a}case"DELETE":{return undefined}case"PATCH":{return(t=getDefault())!==null&&t!==void 0?t:a}default:{return getDefault()}}function getDefault(){switch(d){case"azure-async-operation":{return undefined}case"original-uri":{return a}case"location":default:{return o}}}}function inferLroMode(e){const{rawResponse:t,requestMethod:o,requestPath:i,resourceLocationConfig:a}=e;const d=getOperationLocationHeader(t);const m=getAzureAsyncOperationHeader(t);const f=getOperationLocationPollingUrl({operationLocation:d,azureAsyncOperation:m});const h=getLocationHeader(t);const P=o===null||o===void 0?void 0:o.toLocaleUpperCase();if(f!==undefined){return{mode:"OperationLocation",operationLocation:f,resourceLocation:findResourceLocation({requestMethod:P,location:h,requestPath:i,resourceLocationConfig:a})}}else if(h!==undefined){return{mode:"ResourceLocation",operationLocation:h}}else if(P==="PUT"&&i){return{mode:"Body",operationLocation:i}}else{return undefined}}t.inferLroMode=inferLroMode;function transformStatus(e){const{status:t,statusCode:o}=e;if(typeof t!=="string"&&t!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${t}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(t===null||t===void 0?void 0:t.toLocaleLowerCase()){case undefined:return toOperationStatus(o);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:{a.logger.verbose(`LRO: unrecognized operation status: ${t}`);return t}}}function getStatus(e){var t;const{status:o}=(t=e.body)!==null&&t!==void 0?t:{};return transformStatus({status:o,statusCode:e.statusCode})}function getProvisioningState(e){var t,o;const{properties:i,provisioningState:a}=(t=e.body)!==null&&t!==void 0?t:{};const d=(o=i===null||i===void 0?void 0:i.provisioningState)!==null&&o!==void 0?o:a;return transformStatus({status:d,statusCode:e.statusCode})}function toOperationStatus(e){if(e===202){return"running"}else if(e<300){return"succeeded"}else{return"failed"}}function parseRetryAfter({rawResponse:e}){const t=e.headers["retry-after"];if(t!==undefined){const e=parseInt(t);return isNaN(e)?calculatePollingIntervalFromDate(new Date(t)):e*1e3}return undefined}t.parseRetryAfter=parseRetryAfter;function getErrorFromResponse(e){const t=accessBodyProperty(e,"error");if(!t){a.logger.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!t.code||!t.message){a.logger.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return t}t.getErrorFromResponse=getErrorFromResponse;function calculatePollingIntervalFromDate(e){const t=Math.floor((new Date).getTime());const o=e.getTime();if(t<o){return o-t}return undefined}function getStatusFromInitialResponse(e){const{response:t,state:o,operationLocation:i}=e;function helper(){var e;const i=(e=o.config.metadata)===null||e===void 0?void 0:e["mode"];switch(i){case undefined:return toOperationStatus(t.rawResponse.statusCode);case"Body":return getOperationStatus(t,o);default:return"running"}}const a=helper();return a==="running"&&i===undefined?"succeeded":a}t.getStatusFromInitialResponse=getStatusFromInitialResponse;async function initHttpOperation(e){const{stateProxy:t,resourceLocationConfig:o,processResult:a,lro:d,setErrorAsResult:m}=e;return(0,i.initOperation)({init:async()=>{const e=await d.sendInitialRequest();const t=inferLroMode({rawResponse:e.rawResponse,requestPath:d.requestPath,requestMethod:d.requestMethod,resourceLocationConfig:o});return Object.assign({response:e,operationLocation:t===null||t===void 0?void 0:t.operationLocation,resourceLocation:t===null||t===void 0?void 0:t.resourceLocation},(t===null||t===void 0?void 0:t.mode)?{metadata:{mode:t.mode}}:{})},stateProxy:t,processResult:a?({flatResponse:e},t)=>a(e,t):({flatResponse:e})=>e,getOperationStatus:getStatusFromInitialResponse,setErrorAsResult:m})}t.initHttpOperation=initHttpOperation;function getOperationLocation({rawResponse:e},t){var o;const i=(o=t.config.metadata)===null||o===void 0?void 0:o["mode"];switch(i){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(e),azureAsyncOperation:getAzureAsyncOperationHeader(e)})}case"ResourceLocation":{return getLocationHeader(e)}case"Body":default:{return undefined}}}t.getOperationLocation=getOperationLocation;function getOperationStatus({rawResponse:e},t){var o;const i=(o=t.config.metadata)===null||o===void 0?void 0:o["mode"];switch(i){case"OperationLocation":{return getStatus(e)}case"ResourceLocation":{return toOperationStatus(e.statusCode)}case"Body":{return getProvisioningState(e)}default:throw new Error(`Internal error: Unexpected operation mode: ${i}`)}}t.getOperationStatus=getOperationStatus;function accessBodyProperty({flatResponse:e,rawResponse:t},o){var i,a;return(i=e===null||e===void 0?void 0:e[o])!==null&&i!==void 0?i:(a=t.body)===null||a===void 0?void 0:a[o]}function getResourceLocation(e,t){const o=accessBodyProperty(e,"resourceLocation");if(o&&typeof o==="string"){t.config.resourceLocation=o}return t.config.resourceLocation}t.getResourceLocation=getResourceLocation;function isOperationError(e){return e.name==="RestError"}t.isOperationError=isOperationError;async function pollHttpOperation(e){const{lro:t,stateProxy:o,options:a,processResult:d,updateState:m,setDelay:f,state:h,setErrorAsResult:P}=e;return(0,i.pollOperation)({state:h,stateProxy:o,setDelay:f,processResult:d?({flatResponse:e},t)=>d(e,t):({flatResponse:e})=>e,getError:getErrorFromResponse,updateState:m,getPollingInterval:parseRetryAfter,getOperationLocation:getOperationLocation,getOperationStatus:getOperationStatus,isOperationError:isOperationError,getResourceLocation:getResourceLocation,options:a,poll:async(e,o)=>t.sendPollRequest(e,o),setErrorAsResult:P})}t.pollHttpOperation=pollHttpOperation},57421:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpPoller=void 0;const i=o(93878);const a=o(18835);async function createHttpPoller(e,t){const{resourceLocationConfig:o,intervalInMs:d,processResult:m,restoreFrom:f,updateState:h,withOperationLocation:P,resolveOnUnsuccessful:_=false}=t||{};return(0,a.buildCreatePoller)({getStatusFromInitialResponse:i.getStatusFromInitialResponse,getStatusFromPollResponse:i.getOperationStatus,isOperationError:i.isOperationError,getOperationLocation:i.getOperationLocation,getResourceLocation:i.getResourceLocation,getPollingInterval:i.parseRetryAfter,getError:i.getErrorFromResponse,resolveOnUnsuccessful:_})({init:async()=>{const t=await e.sendInitialRequest();const a=(0,i.inferLroMode)({rawResponse:t.rawResponse,requestPath:e.requestPath,requestMethod:e.requestMethod,resourceLocationConfig:o});return Object.assign({response:t,operationLocation:a===null||a===void 0?void 0:a.operationLocation,resourceLocation:a===null||a===void 0?void 0:a.resourceLocation},(a===null||a===void 0?void 0:a.mode)?{metadata:{mode:a.mode}}:{})},poll:e.sendPollRequest},{intervalInMs:d,withOperationLocation:P,restoreFrom:f,updateState:h,processResult:m?({flatResponse:e},t)=>m(e,t):({flatResponse:e})=>e})}t.createHttpPoller=createHttpPoller},91754:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpPoller=void 0;const i=o(61860);var a=o(57421);Object.defineProperty(t,"createHttpPoller",{enumerable:true,get:function(){return a.createHttpPoller}});i.__exportStar(o(55454),t);i.__exportStar(o(36272),t);i.__exportStar(o(82670),t)},55454:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LroEngine=void 0;var i=o(91607);Object.defineProperty(t,"LroEngine",{enumerable:true,get:function(){return i.LroEngine}})},91607:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LroEngine=void 0;const i=o(54267);const a=o(55044);const d=o(36272);const m=o(30736);class LroEngine extends d.Poller{constructor(e,t){const{intervalInMs:o=a.POLL_INTERVAL_IN_MS,resumeFrom:d,resolveOnUnsuccessful:f=false,isDone:h,lroResourceLocationConfig:P,processResult:_,updateState:L}=t||{};const U=d?(0,m.deserializeState)(d):{};const j=new i.GenericPollOperation(U,e,!f,P,_,L,h);super(j);this.resolveOnUnsuccessful=f;this.config={intervalInMs:o};j.setPollerConfig(this.config)}delay(){return new Promise((e=>setTimeout((()=>e()),this.config.intervalInMs)))}}t.LroEngine=LroEngine},54267:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GenericPollOperation=void 0;const i=o(93878);const a=o(50480);const createStateProxy=()=>({initState:e=>({config:e,isStarted:true}),setCanceled:e=>e.isCancelled=true,setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.isStarted=true,setSucceeded:e=>e.isCompleted=true,setFailed:()=>{},getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>!!e.isCancelled,isFailed:e=>!!e.error,isRunning:e=>!!e.isStarted,isSucceeded:e=>Boolean(e.isCompleted&&!e.isCancelled&&!e.error)});class GenericPollOperation{constructor(e,t,o,i,a,d,m){this.state=e;this.lro=t;this.setErrorAsResult=o;this.lroResourceLocationConfig=i;this.processResult=a;this.updateState=d;this.isDone=m}setPollerConfig(e){this.pollerConfig=e}async update(e){var t;const o=createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await(0,i.initHttpOperation)({lro:this.lro,stateProxy:o,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const a=this.updateState;const d=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await(0,i.pollHttpOperation)({lro:this.lro,state:this.state,stateProxy:o,processResult:this.processResult,updateState:a?(e,{rawResponse:t})=>a(e,t):undefined,isDone:d?({flatResponse:e},t)=>d(e,t):undefined,options:e,setDelay:e=>{this.pollerConfig.intervalInMs=e},setErrorAsResult:this.setErrorAsResult})}(t=e===null||e===void 0?void 0:e.fireProgress)===null||t===void 0?void 0:t.call(e,this.state);return this}async cancel(){a.logger.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}t.GenericPollOperation=GenericPollOperation},82670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},36272:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Poller=t.PollerCancelledError=t.PollerStoppedError=void 0;class PollerStoppedError extends Error{constructor(e){super(e);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}t.PollerStoppedError=PollerStoppedError;class PollerCancelledError extends Error{constructor(e){super(e);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}t.PollerCancelledError=PollerCancelledError;class Poller{constructor(e){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=e;this.promise=new Promise(((e,t)=>{this.resolve=e;this.reject=t}));this.promise.catch((()=>{}))}async startPolling(e={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(e);await this.delay()}}async pollOnce(e={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(e){for(const t of this.pollProgressCallbacks){t(e)}}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const e=new PollerCancelledError("Operation was canceled");this.reject(e);throw e}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(e={}){if(this.stopped){this.startPolling(e).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(e){this.pollProgressCallbacks.push(e);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((t=>t!==e))}}isDone(){const e=this.operation.state;return Boolean(e.isCompleted||e.isCancelled||e.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(e)}else if(e.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const e=this.operation.state;return e.result}toString(){return this.operation.toString()}}t.Poller=Poller},50480:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const i=o(26515);t.logger=(0,i.createClientLogger)("core-lro")},55044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.terminalStates=t.POLL_INTERVAL_IN_MS=void 0;t.POLL_INTERVAL_IN_MS=2e3;t.terminalStates=["succeeded","canceled","failed"]},30736:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pollOperation=t.initOperation=t.deserializeState=void 0;const i=o(50480);const a=o(55044);function deserializeState(e){try{return JSON.parse(e).state}catch(t){throw new Error(`Unable to deserialize input state: ${e}`)}}t.deserializeState=deserializeState;function setStateError(e){const{state:t,stateProxy:o,isOperationError:i}=e;return e=>{if(i(e)){o.setError(t,e);o.setFailed(t)}throw e}}function appendReadableErrorMessage(e,t){let o=e;if(o.slice(-1)!=="."){o=o+"."}return o+" "+t}function simplifyError(e){let t=e.message;let o=e.code;let i=e;while(i.innererror){i=i.innererror;o=i.code;t=appendReadableErrorMessage(t,i.message)}return{code:o,message:t}}function processOperationStatus(e){const{state:t,stateProxy:o,status:a,isDone:d,processResult:m,getError:f,response:h,setErrorAsResult:P}=e;switch(a){case"succeeded":{o.setSucceeded(t);break}case"failed":{const e=f===null||f===void 0?void 0:f(h);let a="";if(e){const{code:t,message:o}=simplifyError(e);a=`. ${t}. ${o}`}const d=`The long-running operation has failed${a}`;o.setError(t,new Error(d));o.setFailed(t);i.logger.warning(d);break}case"canceled":{o.setCanceled(t);break}}if((d===null||d===void 0?void 0:d(h,t))||d===undefined&&["succeeded","canceled"].concat(P?[]:["failed"]).includes(a)){o.setResult(t,buildResult({response:h,state:t,processResult:m}))}}function buildResult(e){const{processResult:t,response:o,state:i}=e;return t?t(o,i):o}async function initOperation(e){const{init:t,stateProxy:o,processResult:a,getOperationStatus:d,withOperationLocation:m,setErrorAsResult:f}=e;const{operationLocation:h,resourceLocation:P,metadata:_,response:L}=await t();if(h)m===null||m===void 0?void 0:m(h,false);const U={metadata:_,operationLocation:h,resourceLocation:P};i.logger.verbose(`LRO: Operation description:`,U);const j=o.initState(U);const H=d({response:L,state:j,operationLocation:h});processOperationStatus({state:j,status:H,stateProxy:o,response:L,setErrorAsResult:f,processResult:a});return j}t.initOperation=initOperation;async function pollOperationHelper(e){const{poll:t,state:o,stateProxy:d,operationLocation:m,getOperationStatus:f,getResourceLocation:h,isOperationError:P,options:_}=e;const L=await t(m,_).catch(setStateError({state:o,stateProxy:d,isOperationError:P}));const U=f(L,o);i.logger.verbose(`LRO: Status:\n\tPolling from: ${o.config.operationLocation}\n\tOperation status: ${U}\n\tPolling status: ${a.terminalStates.includes(U)?"Stopped":"Running"}`);if(U==="succeeded"){const e=h(L,o);if(e!==undefined){return{response:await t(e).catch(setStateError({state:o,stateProxy:d,isOperationError:P})),status:U}}}return{response:L,status:U}}async function pollOperation(e){const{poll:t,state:o,stateProxy:i,options:d,getOperationStatus:m,getResourceLocation:f,getOperationLocation:h,isOperationError:P,withOperationLocation:_,getPollingInterval:L,processResult:U,getError:j,updateState:H,setDelay:V,isDone:K,setErrorAsResult:W}=e;const{operationLocation:X}=o.config;if(X!==undefined){const{response:e,status:Q}=await pollOperationHelper({poll:t,getOperationStatus:m,state:o,stateProxy:i,operationLocation:X,getResourceLocation:f,isOperationError:P,options:d});processOperationStatus({status:Q,response:e,state:o,stateProxy:i,isDone:K,processResult:U,getError:j,setErrorAsResult:W});if(!a.terminalStates.includes(Q)){const t=L===null||L===void 0?void 0:L(e);if(t)V(t);const i=h===null||h===void 0?void 0:h(e,o);if(i!==undefined){const e=X!==i;o.config.operationLocation=i;_===null||_===void 0?void 0:_(i,e)}else _===null||_===void 0?void 0:_(X,false)}H===null||H===void 0?void 0:H(o,e)}}t.pollOperation=pollOperation},18835:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildCreatePoller=void 0;const i=o(30736);const a=o(55044);const d=o(87779);const createStateProxy=()=>({initState:e=>({status:"running",config:e}),setCanceled:e=>e.status="canceled",setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.status="running",setSucceeded:e=>e.status="succeeded",setFailed:e=>e.status="failed",getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>e.status==="canceled",isFailed:e=>e.status==="failed",isRunning:e=>e.status==="running",isSucceeded:e=>e.status==="succeeded"});function buildCreatePoller(e){const{getOperationLocation:t,getStatusFromInitialResponse:o,getStatusFromPollResponse:m,isOperationError:f,getResourceLocation:h,getPollingInterval:P,getError:_,resolveOnUnsuccessful:L}=e;return async({init:e,poll:U},j)=>{const{processResult:H,updateState:V,withOperationLocation:K,intervalInMs:W=a.POLL_INTERVAL_IN_MS,restoreFrom:X}=j||{};const Q=createStateProxy();const Y=K?(()=>{let e=false;return(t,o)=>{if(o)K(t);else if(!e)K(t);e=true}})():undefined;const J=X?(0,i.deserializeState)(X):await(0,i.initOperation)({init:e,stateProxy:Q,processResult:H,getOperationStatus:o,withOperationLocation:Y,setErrorAsResult:!L});let Z;const ee=new AbortController;const te=new Map;const handleProgressEvents=async()=>te.forEach((e=>e(J)));const ne="Operation was canceled";let re=W;const oe={getOperationState:()=>J,getResult:()=>J.result,isDone:()=>["succeeded","failed","canceled"].includes(J.status),isStopped:()=>Z===undefined,stopPolling:()=>{ee.abort()},toString:()=>JSON.stringify({state:J}),onProgress:e=>{const t=Symbol();te.set(t,e);return()=>te.delete(t)},pollUntilDone:e=>Z!==null&&Z!==void 0?Z:Z=(async()=>{const{abortSignal:t}=e||{};function abortListener(){ee.abort()}const o=ee.signal;if(t===null||t===void 0?void 0:t.aborted){ee.abort()}else if(!o.aborted){t===null||t===void 0?void 0:t.addEventListener("abort",abortListener,{once:true})}try{if(!oe.isDone()){await oe.poll({abortSignal:o});while(!oe.isDone()){await(0,d.delay)(re,{abortSignal:o});await oe.poll({abortSignal:o})}}}finally{t===null||t===void 0?void 0:t.removeEventListener("abort",abortListener)}if(L){return oe.getResult()}else{switch(J.status){case"succeeded":return oe.getResult();case"canceled":throw new Error(ne);case"failed":throw J.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{Z=undefined})),async poll(e){if(L){if(oe.isDone())return}else{switch(J.status){case"succeeded":return;case"canceled":throw new Error(ne);case"failed":throw J.error}}await(0,i.pollOperation)({poll:U,state:J,stateProxy:Q,getOperationLocation:t,isOperationError:f,withOperationLocation:Y,getPollingInterval:P,getOperationStatus:m,getResourceLocation:h,processResult:H,getError:_,updateState:V,options:e,setDelay:e=>{re=e},setErrorAsResult:!L});await handleProgressEvents();if(!L){switch(J.status){case"canceled":throw new Error(ne);case"failed":throw J.error}}}};return oe}}t.buildCreatePoller=buildCreatePoller},66427:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{DEFAULT_RETRY_POLICY_COUNT:()=>f,SDK_VERSION:()=>m});e.exports=__toCommonJS(d);const m="1.22.3";const f=3;0&&0},90862:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{createPipelineFromOptions:()=>createPipelineFromOptions});e.exports=__toCommonJS(f);var h=o(53253);var P=o(29590);var _=o(64087);var L=o(32799);var U=o(45807);var j=o(39295);var H=o(48170);var V=o(75497);var K=o(87779);var W=o(32815);var X=o(95686);var Q=o(18554);var Y=o(75798);var J=o(93237);var Z=o(37466);function createPipelineFromOptions(e){const t=(0,P.createEmptyPipeline)();if(K.isNodeLike){if(e.agent){t.addPolicy((0,Q.agentPolicy)(e.agent))}if(e.tlsOptions){t.addPolicy((0,Y.tlsPolicy)(e.tlsOptions))}t.addPolicy((0,W.proxyPolicy)(e.proxyOptions));t.addPolicy((0,j.decompressResponsePolicy)())}t.addPolicy((0,Z.wrapAbortSignalLikePolicy)());t.addPolicy((0,V.formDataPolicy)(),{beforePolicies:[U.multipartPolicyName]});t.addPolicy((0,L.userAgentPolicy)(e.userAgentOptions));t.addPolicy((0,X.setClientRequestIdPolicy)(e.telemetryOptions?.clientRequestIdHeaderName));t.addPolicy((0,U.multipartPolicy)(),{afterPhase:"Deserialize"});t.addPolicy((0,H.defaultRetryPolicy)(e.retryOptions),{phase:"Retry"});t.addPolicy((0,J.tracingPolicy)({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:"Retry"});if(K.isNodeLike){t.addPolicy((0,_.redirectPolicy)(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy((0,h.logPolicy)(e.loggingOptions),{afterPhase:"Sign"});return t}0&&0},7960:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{createDefaultHttpClient:()=>createDefaultHttpClient});e.exports=__toCommonJS(f);var h=o(41958);var P=o(91297);function createDefaultHttpClient(){const e=(0,h.createDefaultHttpClient)();return{async sendRequest(t){const{abortSignal:o,cleanup:i}=t.abortSignal?(0,P.wrapAbortSignalLike)(t.abortSignal):{};try{t.abortSignal=o;return await e.sendRequest(t)}finally{i?.()}}}}0&&0},192:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{createHttpHeaders:()=>createHttpHeaders});e.exports=__toCommonJS(f);var h=o(41958);function createHttpHeaders(e){return(0,h.createHttpHeaders)(e)}0&&0},20778:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{RestError:()=>j.RestError,agentPolicy:()=>le.agentPolicy,agentPolicyName:()=>le.agentPolicyName,auxiliaryAuthenticationHeaderPolicy:()=>ce.auxiliaryAuthenticationHeaderPolicy,auxiliaryAuthenticationHeaderPolicyName:()=>ce.auxiliaryAuthenticationHeaderPolicyName,bearerTokenAuthenticationPolicy:()=>se.bearerTokenAuthenticationPolicy,bearerTokenAuthenticationPolicyName:()=>se.bearerTokenAuthenticationPolicyName,createDefaultHttpClient:()=>_.createDefaultHttpClient,createEmptyPipeline:()=>h.createEmptyPipeline,createFile:()=>ue.createFile,createFileFromStream:()=>ue.createFileFromStream,createHttpHeaders:()=>L.createHttpHeaders,createPipelineFromOptions:()=>P.createPipelineFromOptions,createPipelineRequest:()=>U.createPipelineRequest,decompressResponsePolicy:()=>H.decompressResponsePolicy,decompressResponsePolicyName:()=>H.decompressResponsePolicyName,defaultRetryPolicy:()=>ne.defaultRetryPolicy,exponentialRetryPolicy:()=>V.exponentialRetryPolicy,exponentialRetryPolicyName:()=>V.exponentialRetryPolicyName,formDataPolicy:()=>ie.formDataPolicy,formDataPolicyName:()=>ie.formDataPolicyName,getDefaultProxySettings:()=>Q.getDefaultProxySettings,isRestError:()=>j.isRestError,logPolicy:()=>W.logPolicy,logPolicyName:()=>W.logPolicyName,multipartPolicy:()=>X.multipartPolicy,multipartPolicyName:()=>X.multipartPolicyName,ndJsonPolicy:()=>ae.ndJsonPolicy,ndJsonPolicyName:()=>ae.ndJsonPolicyName,proxyPolicy:()=>Q.proxyPolicy,proxyPolicyName:()=>Q.proxyPolicyName,redirectPolicy:()=>Y.redirectPolicy,redirectPolicyName:()=>Y.redirectPolicyName,retryPolicy:()=>ee.retryPolicy,setClientRequestIdPolicy:()=>K.setClientRequestIdPolicy,setClientRequestIdPolicyName:()=>K.setClientRequestIdPolicyName,systemErrorRetryPolicy:()=>J.systemErrorRetryPolicy,systemErrorRetryPolicyName:()=>J.systemErrorRetryPolicyName,throttlingRetryPolicy:()=>Z.throttlingRetryPolicy,throttlingRetryPolicyName:()=>Z.throttlingRetryPolicyName,tlsPolicy:()=>oe.tlsPolicy,tlsPolicyName:()=>oe.tlsPolicyName,tracingPolicy:()=>te.tracingPolicy,tracingPolicyName:()=>te.tracingPolicyName,userAgentPolicy:()=>re.userAgentPolicy,userAgentPolicyName:()=>re.userAgentPolicyName});e.exports=__toCommonJS(f);var h=o(29590);var P=o(90862);var _=o(7960);var L=o(192);var U=o(95709);var j=o(8666);var H=o(39295);var V=o(16708);var K=o(95686);var W=o(53253);var X=o(45807);var Q=o(32815);var Y=o(64087);var J=o(96518);var Z=o(97540);var ee=o(56085);var te=o(93237);var ne=o(48170);var re=o(32799);var oe=o(75798);var ie=o(75497);var se=o(26925);var ae=o(36827);var ce=o(42262);var le=o(18554);var ue=o(97073);0&&0},80544:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{logger:()=>P});e.exports=__toCommonJS(f);var h=o(26515);const P=(0,h.createClientLogger)("core-rest-pipeline");0&&0},29590:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{createEmptyPipeline:()=>createEmptyPipeline});e.exports=__toCommonJS(f);var h=o(41958);function createEmptyPipeline(){return(0,h.createEmptyPipeline)()}0&&0},95709:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{createPipelineRequest:()=>createPipelineRequest});e.exports=__toCommonJS(f);var h=o(41958);function createPipelineRequest(e){return(0,h.createPipelineRequest)(e)}0&&0},18554:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{agentPolicy:()=>agentPolicy,agentPolicyName:()=>P});e.exports=__toCommonJS(f);var h=o(44960);const P=h.agentPolicyName;function agentPolicy(e){return(0,h.agentPolicy)(e)}0&&0},42262:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{auxiliaryAuthenticationHeaderPolicy:()=>auxiliaryAuthenticationHeaderPolicy,auxiliaryAuthenticationHeaderPolicyName:()=>_});e.exports=__toCommonJS(f);var h=o(39202);var P=o(80544);const _="auxiliaryAuthenticationHeaderPolicy";const L="x-ms-authorization-auxiliary";async function sendAuthorizeRequest(e){const{scopes:t,getAccessToken:o,request:i}=e;const a={abortSignal:i.abortSignal,tracingOptions:i.tracingOptions};return(await o(t,a))?.token??""}function auxiliaryAuthenticationHeaderPolicy(e){const{credentials:t,scopes:o}=e;const i=e.logger||P.logger;const a=new WeakMap;return{name:_,async sendRequest(e,d){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.")}if(!t||t.length===0){i.info(`${_} header will not be set due to empty credentials.`);return d(e)}const m=[];for(const d of t){let t=a.get(d);if(!t){t=(0,h.createTokenCycler)(d);a.set(d,t)}m.push(sendAuthorizeRequest({scopes:Array.isArray(o)?o:[o],request:e,getAccessToken:t,logger:i}))}const f=(await Promise.all(m)).filter((e=>Boolean(e)));if(f.length===0){i.warning(`None of the auxiliary tokens are valid. ${L} header will not be set.`);return d(e)}e.headers.set(L,f.map((e=>`Bearer ${e}`)).join(", "));return d(e)}}}0&&0},26925:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{bearerTokenAuthenticationPolicy:()=>bearerTokenAuthenticationPolicy,bearerTokenAuthenticationPolicyName:()=>L,parseChallenges:()=>parseChallenges});e.exports=__toCommonJS(f);var h=o(39202);var P=o(80544);var _=o(8666);const L="bearerTokenAuthenticationPolicy";async function trySendRequest(e,t){try{return[await t(e),void 0]}catch(e){if((0,_.isRestError)(e)&&e.response){return[e.response,e]}else{throw e}}}async function defaultAuthorizeRequest(e){const{scopes:t,getAccessToken:o,request:i}=e;const a={abortSignal:i.abortSignal,tracingOptions:i.tracingOptions,enableCae:true};const d=await o(t,a);if(d){e.request.headers.set("Authorization",`Bearer ${d.token}`)}}function isChallengeResponse(e){return e.status===401&&e.headers.has("WWW-Authenticate")}async function authorizeRequestOnCaeChallenge(e,t){const{scopes:o}=e;const i=await e.getAccessToken(o,{enableCae:true,claims:t});if(!i){return false}e.request.headers.set("Authorization",`${i.tokenType??"Bearer"} ${i.token}`);return true}function bearerTokenAuthenticationPolicy(e){const{credential:t,scopes:o,challengeCallbacks:i}=e;const a=e.logger||P.logger;const d={authorizeRequest:i?.authorizeRequest?.bind(i)??defaultAuthorizeRequest,authorizeRequestOnChallenge:i?.authorizeRequestOnChallenge?.bind(i)};const m=t?(0,h.createTokenCycler)(t):()=>Promise.resolve(null);return{name:L,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}await d.authorizeRequest({scopes:Array.isArray(o)?o:[o],request:e,getAccessToken:m,logger:a});let i;let f;let h;[i,f]=await trySendRequest(e,t);if(isChallengeResponse(i)){let P=getCaeChallengeClaims(i.headers.get("WWW-Authenticate"));if(P){let d;try{d=atob(P)}catch(e){a.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${P}`);return i}h=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(o)?o:[o],response:i,request:e,getAccessToken:m,logger:a},d);if(h){[i,f]=await trySendRequest(e,t)}}else if(d.authorizeRequestOnChallenge){h=await d.authorizeRequestOnChallenge({scopes:Array.isArray(o)?o:[o],request:e,response:i,getAccessToken:m,logger:a});if(h){[i,f]=await trySendRequest(e,t)}if(isChallengeResponse(i)){P=getCaeChallengeClaims(i.headers.get("WWW-Authenticate"));if(P){let d;try{d=atob(P)}catch(e){a.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${P}`);return i}h=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(o)?o:[o],response:i,request:e,getAccessToken:m,logger:a},d);if(h){[i,f]=await trySendRequest(e,t)}}}}}if(f){throw f}else{return i}}}}function parseChallenges(e){const t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g;const o=/(\w+)="([^"]*)"/g;const i=[];let a;while((a=t.exec(e))!==null){const e=a[1];const t=a[2];const d={};let m;while((m=o.exec(t))!==null){d[m[1]]=m[2]}i.push({scheme:e,params:d})}return i}function getCaeChallengeClaims(e){if(!e){return}const t=parseChallenges(e);return t.find((e=>e.scheme==="Bearer"&&e.params.claims&&e.params.error==="insufficient_claims"))?.params.claims}0&&0},39295:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{decompressResponsePolicy:()=>decompressResponsePolicy,decompressResponsePolicyName:()=>P});e.exports=__toCommonJS(f);var h=o(44960);const P=h.decompressResponsePolicyName;function decompressResponsePolicy(){return(0,h.decompressResponsePolicy)()}0&&0},48170:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{defaultRetryPolicy:()=>defaultRetryPolicy,defaultRetryPolicyName:()=>P});e.exports=__toCommonJS(f);var h=o(44960);const P=h.defaultRetryPolicyName;function defaultRetryPolicy(e={}){return(0,h.defaultRetryPolicy)(e)}0&&0},16708:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{exponentialRetryPolicy:()=>exponentialRetryPolicy,exponentialRetryPolicyName:()=>P});e.exports=__toCommonJS(f);var h=o(44960);const P=h.exponentialRetryPolicyName;function exponentialRetryPolicy(e={}){return(0,h.exponentialRetryPolicy)(e)}0&&0},75497:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{formDataPolicy:()=>formDataPolicy,formDataPolicyName:()=>P});e.exports=__toCommonJS(f);var h=o(44960);const P=h.formDataPolicyName;function formDataPolicy(){return(0,h.formDataPolicy)()}0&&0},53253:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{logPolicy:()=>logPolicy,logPolicyName:()=>_});e.exports=__toCommonJS(f);var h=o(80544);var P=o(44960);const _=P.logPolicyName;function logPolicy(e={}){return(0,P.logPolicy)({logger:h.logger.info,...e})}0&&0},45807:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{multipartPolicy:()=>multipartPolicy,multipartPolicyName:()=>_});e.exports=__toCommonJS(f);var h=o(44960);var P=o(97073);const _=h.multipartPolicyName;function multipartPolicy(){const e=(0,h.multipartPolicy)();return{name:_,sendRequest:async(t,o)=>{if(t.multipartBody){for(const e of t.multipartBody.parts){if((0,P.hasRawContent)(e.body)){e.body=(0,P.getRawContent)(e.body)}}}return e.sendRequest(t,o)}}}0&&0},36827:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{ndJsonPolicy:()=>ndJsonPolicy,ndJsonPolicyName:()=>m});e.exports=__toCommonJS(d);const m="ndJsonPolicy";function ndJsonPolicy(){return{name:m,async sendRequest(e,t){if(typeof e.body==="string"&&e.body.startsWith("[")){const t=JSON.parse(e.body);if(Array.isArray(t)){e.body=t.map((e=>JSON.stringify(e)+"\n")).join("")}}return t(e)}}}0&&0},32815:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{getDefaultProxySettings:()=>getDefaultProxySettings,proxyPolicy:()=>proxyPolicy,proxyPolicyName:()=>P});e.exports=__toCommonJS(f);var h=o(44960);const P=h.proxyPolicyName;function getDefaultProxySettings(e){return(0,h.getDefaultProxySettings)(e)}function proxyPolicy(e,t){return(0,h.proxyPolicy)(e,t)}0&&0},64087:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{redirectPolicy:()=>redirectPolicy,redirectPolicyName:()=>P});e.exports=__toCommonJS(f);var h=o(44960);const P=h.redirectPolicyName;function redirectPolicy(e={}){return(0,h.redirectPolicy)(e)}0&&0},56085:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{retryPolicy:()=>retryPolicy});e.exports=__toCommonJS(f);var h=o(26515);var P=o(66427);var _=o(44960);const L=(0,h.createClientLogger)("core-rest-pipeline retryPolicy");function retryPolicy(e,t={maxRetries:P.DEFAULT_RETRY_POLICY_COUNT}){return(0,_.retryPolicy)(e,{logger:L,...t})}0&&0},95686:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{setClientRequestIdPolicy:()=>setClientRequestIdPolicy,setClientRequestIdPolicyName:()=>m});e.exports=__toCommonJS(d);const m="setClientRequestIdPolicy";function setClientRequestIdPolicy(e="x-ms-client-request-id"){return{name:m,async sendRequest(t,o){if(!t.headers.has(e)){t.headers.set(e,t.requestId)}return o(t)}}}0&&0},96518:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{systemErrorRetryPolicy:()=>systemErrorRetryPolicy,systemErrorRetryPolicyName:()=>P});e.exports=__toCommonJS(f);var h=o(44960);const P=h.systemErrorRetryPolicyName;function systemErrorRetryPolicy(e={}){return(0,h.systemErrorRetryPolicy)(e)}0&&0},97540:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{throttlingRetryPolicy:()=>throttlingRetryPolicy,throttlingRetryPolicyName:()=>P});e.exports=__toCommonJS(f);var h=o(44960);const P=h.throttlingRetryPolicyName;function throttlingRetryPolicy(e={}){return(0,h.throttlingRetryPolicy)(e)}0&&0},75798:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{tlsPolicy:()=>tlsPolicy,tlsPolicyName:()=>P});e.exports=__toCommonJS(f);var h=o(44960);const P=h.tlsPolicyName;function tlsPolicy(e){return(0,h.tlsPolicy)(e)}0&&0},93237:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{tracingPolicy:()=>tracingPolicy,tracingPolicyName:()=>V});e.exports=__toCommonJS(f);var h=o(20623);var P=o(66427);var _=o(28431);var L=o(80544);var U=o(87779);var j=o(8666);var H=o(95750);const V="tracingPolicy";function tracingPolicy(e={}){const t=(0,_.getUserAgentValue)(e.userAgentPrefix);const o=new H.Sanitizer({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});const i=tryCreateTracingClient();return{name:V,async sendRequest(e,a){if(!i){return a(e)}const d=await t;const m={"http.url":o.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":d,requestId:e.requestId};if(d){m["http.user_agent"]=d}const{span:f,tracingContext:h}=tryCreateSpan(i,e,m)??{};if(!f||!h){return a(e)}try{const t=await i.withContext(h,a,e);tryProcessResponse(f,t);return t}catch(e){tryProcessError(f,e);throw e}}}}function tryCreateTracingClient(){try{return(0,h.createTracingClient)({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:P.SDK_VERSION})}catch(e){L.logger.warning(`Error when creating the TracingClient: ${(0,U.getErrorMessage)(e)}`);return void 0}}function tryCreateSpan(e,t,o){try{const{span:i,updatedOptions:a}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:"client",spanAttributes:o});if(!i.isRecording()){i.end();return void 0}const d=e.createRequestHeaders(a.tracingOptions.tracingContext);for(const[e,o]of Object.entries(d)){t.headers.set(e,o)}return{span:i,tracingContext:a.tracingOptions.tracingContext}}catch(e){L.logger.warning(`Skipping creating a tracing span due to an error: ${(0,U.getErrorMessage)(e)}`);return void 0}}function tryProcessError(e,t){try{e.setStatus({status:"error",error:(0,U.isError)(t)?t:void 0});if((0,j.isRestError)(t)&&t.statusCode){e.setAttribute("http.status_code",t.statusCode)}e.end()}catch(e){L.logger.warning(`Skipping tracing span processing due to an error: ${(0,U.getErrorMessage)(e)}`)}}function tryProcessResponse(e,t){try{e.setAttribute("http.status_code",t.status);const o=t.headers.get("x-ms-request-id");if(o){e.setAttribute("serviceRequestId",o)}if(t.status>=400){e.setStatus({status:"error"})}e.end()}catch(e){L.logger.warning(`Skipping tracing span processing due to an error: ${(0,U.getErrorMessage)(e)}`)}}0&&0},32799:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{userAgentPolicy:()=>userAgentPolicy,userAgentPolicyName:()=>_});e.exports=__toCommonJS(f);var h=o(28431);const P=(0,h.getUserAgentHeaderName)();const _="userAgentPolicy";function userAgentPolicy(e={}){const t=(0,h.getUserAgentValue)(e.userAgentPrefix);return{name:_,async sendRequest(e,o){if(!e.headers.has(P)){e.headers.set(P,await t)}return o(e)}}}0&&0},37466:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{wrapAbortSignalLikePolicy:()=>wrapAbortSignalLikePolicy,wrapAbortSignalLikePolicyName:()=>P});e.exports=__toCommonJS(f);var h=o(91297);const P="wrapAbortSignalLikePolicy";function wrapAbortSignalLikePolicy(){return{name:P,sendRequest:async(e,t)=>{if(!e.abortSignal){return t(e)}const{abortSignal:o,cleanup:i}=(0,h.wrapAbortSignalLike)(e.abortSignal);e.abortSignal=o;try{return await t(e)}finally{i?.()}}}}0&&0},8666:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{RestError:()=>P,isRestError:()=>isRestError});e.exports=__toCommonJS(f);var h=o(41958);const P=h.RestError;function isRestError(e){return(0,h.isRestError)(e)}0&&0},97073:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{createFile:()=>createFile,createFileFromStream:()=>createFileFromStream,getRawContent:()=>getRawContent,hasRawContent:()=>hasRawContent});e.exports=__toCommonJS(f);var h=o(87779);function isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}const P={arrayBuffer:()=>{throw new Error("Not implemented")},bytes:()=>{throw new Error("Not implemented")},slice:()=>{throw new Error("Not implemented")},text:()=>{throw new Error("Not implemented")}};const _=Symbol("rawContent");function hasRawContent(e){return typeof e[_]==="function"}function getRawContent(e){if(hasRawContent(e)){return e[_]()}else{return e}}function createFileFromStream(e,t,o={}){return{...P,type:o.type??"",lastModified:o.lastModified??(new Date).getTime(),webkitRelativePath:o.webkitRelativePath??"",size:o.size??-1,name:t,stream:()=>{const t=e();if(isNodeReadableStream(t)){throw new Error("Not supported: a Node stream was provided as input to createFileFromStream.")}return t},[_]:e}}function createFile(e,t,o={}){if(h.isNodeLike){return{...P,type:o.type??"",lastModified:o.lastModified??(new Date).getTime(),webkitRelativePath:o.webkitRelativePath??"",size:e.byteLength,name:t,arrayBuffer:async()=>e.buffer,stream:()=>new Blob([toArrayBuffer(e)]).stream(),[_]:()=>e}}else{return new File([toArrayBuffer(e)],t,o)}}function toArrayBuffer(e){if("resize"in e.buffer){return e}return e.map((e=>e))}0&&0},39202:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{DEFAULT_CYCLER_OPTIONS:()=>P,createTokenCycler:()=>createTokenCycler});e.exports=__toCommonJS(f);var h=o(87779);const P={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(e,t,o){async function tryGetAccessToken(){if(Date.now()<o){try{return await e()}catch{return null}}else{const t=await e();if(t===null){throw new Error("Failed to refresh access token.")}return t}}let i=await tryGetAccessToken();while(i===null){await(0,h.delay)(t);i=await tryGetAccessToken()}return i}function createTokenCycler(e,t){let o=null;let i=null;let a;const d={...P,...t};const m={get isRefreshing(){return o!==null},get shouldRefresh(){if(m.isRefreshing){return false}if(i?.refreshAfterTimestamp&&i.refreshAfterTimestamp<Date.now()){return true}return(i?.expiresOnTimestamp??0)-d.refreshWindowInMs<Date.now()},get mustRefresh(){return i===null||i.expiresOnTimestamp-d.forcedRefreshWindowInMs<Date.now()}};function refresh(t,f){if(!m.isRefreshing){const tryGetAccessToken=()=>e.getToken(t,f);o=beginRefresh(tryGetAccessToken,d.retryIntervalInMs,i?.expiresOnTimestamp??Date.now()).then((e=>{o=null;i=e;a=f.tenantId;return i})).catch((e=>{o=null;i=null;a=void 0;throw e}))}return o}return async(e,t)=>{const o=Boolean(t.claims);const d=a!==t.tenantId;if(o){i=null}const f=d||o||m.mustRefresh;if(f){return refresh(e,t)}if(m.shouldRefresh){refresh(e,t)}return i}}0&&0},28431:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{getUserAgentHeaderName:()=>getUserAgentHeaderName,getUserAgentValue:()=>getUserAgentValue});e.exports=__toCommonJS(f);var h=o(31848);var P=o(66427);function getUserAgentString(e){const t=[];for(const[o,i]of e){const e=i?`${o}/${i}`:o;t.push(e)}return t.join(" ")}function getUserAgentHeaderName(){return(0,h.getHeaderName)()}async function getUserAgentValue(e){const t=new Map;t.set("core-rest-pipeline",P.SDK_VERSION);await(0,h.setPlatformSpecificData)(t);const o=getUserAgentString(t);const i=e?`${e} ${o}`:o;return i}0&&0},31848:(e,t,o)=>{var i=Object.create;var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var f=Object.getPrototypeOf;var h=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)a(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,i)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let f of m(t))if(!h.call(e,f)&&f!==o)a(e,f,{get:()=>t[f],enumerable:!(i=d(t,f))||i.enumerable})}return e};var __toESM=(e,t,o)=>(o=e!=null?i(f(e)):{},__copyProps(t||!e||!e.__esModule?a(o,"default",{value:e,enumerable:true}):o,e));var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var P={};__export(P,{getHeaderName:()=>getHeaderName,setPlatformSpecificData:()=>setPlatformSpecificData});e.exports=__toCommonJS(P);var _=__toESM(o(48161));var L=__toESM(o(1708));function getHeaderName(){return"User-Agent"}async function setPlatformSpecificData(e){if(L.default&&L.default.versions){const t=`${_.default.type()} ${_.default.release()}; ${_.default.arch()}`;const o=L.default.versions;if(o.bun){e.set("Bun",`${o.bun} (${t})`)}else if(o.deno){e.set("Deno",`${o.deno} (${t})`)}else if(o.node){e.set("Node",`${o.node} (${t})`)}}}0&&0},91297:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{wrapAbortSignalLike:()=>wrapAbortSignalLike});e.exports=__toCommonJS(d);function wrapAbortSignalLike(e){if(e instanceof AbortSignal){return{abortSignal:e}}if(e.aborted){return{abortSignal:AbortSignal.abort(e.reason)}}const t=new AbortController;let o=true;function cleanup(){if(o){e.removeEventListener("abort",listener);o=false}}function listener(){t.abort(e.reason);cleanup()}e.addEventListener("abort",listener);return{abortSignal:t.signal,cleanup:cleanup}}0&&0},20623:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createTracingClient=t.useInstrumenter=void 0;var i=o(48729);Object.defineProperty(t,"useInstrumenter",{enumerable:true,get:function(){return i.useInstrumenter}});var a=o(93438);Object.defineProperty(t,"createTracingClient",{enumerable:true,get:function(){return a.createTracingClient}})},48729:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultTracingSpan=createDefaultTracingSpan;t.createDefaultInstrumenter=createDefaultInstrumenter;t.useInstrumenter=useInstrumenter;t.getInstrumenter=getInstrumenter;const i=o(79186);const a=o(38914);function createDefaultTracingSpan(){return{end:()=>{},isRecording:()=>false,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function createDefaultInstrumenter(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>undefined,startSpan:(e,t)=>({span:createDefaultTracingSpan(),tracingContext:(0,i.createTracingContext)({parentContext:t.tracingContext})}),withContext(e,t,...o){return t(...o)}}}function useInstrumenter(e){a.state.instrumenterImplementation=e}function getInstrumenter(){if(!a.state.instrumenterImplementation){a.state.instrumenterImplementation=createDefaultInstrumenter()}return a.state.instrumenterImplementation}},38914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.state=void 0;t.state={instrumenterImplementation:undefined}},93438:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createTracingClient=createTracingClient;const i=o(48729);const a=o(79186);function createTracingClient(e){const{namespace:t,packageName:o,packageVersion:d}=e;function startSpan(e,m,f){const h=(0,i.getInstrumenter)().startSpan(e,{...f,packageName:o,packageVersion:d,tracingContext:m?.tracingOptions?.tracingContext});let P=h.tracingContext;const _=h.span;if(!P.getValue(a.knownContextKeys.namespace)){P=P.setValue(a.knownContextKeys.namespace,t)}_.setAttribute("az.namespace",P.getValue(a.knownContextKeys.namespace));const L=Object.assign({},m,{tracingOptions:{...m?.tracingOptions,tracingContext:P}});return{span:_,updatedOptions:L}}async function withSpan(e,t,o,i){const{span:a,updatedOptions:d}=startSpan(e,t,i);try{const e=await withContext(d.tracingOptions.tracingContext,(()=>Promise.resolve(o(d,a))));a.setStatus({status:"success"});return e}catch(e){a.setStatus({status:"error",error:e});throw e}finally{a.end()}}function withContext(e,t,...o){return(0,i.getInstrumenter)().withContext(e,t,...o)}function parseTraceparentHeader(e){return(0,i.getInstrumenter)().parseTraceparentHeader(e)}function createRequestHeaders(e){return(0,i.getInstrumenter)().createRequestHeaders(e)}return{startSpan:startSpan,withSpan:withSpan,withContext:withContext,parseTraceparentHeader:parseTraceparentHeader,createRequestHeaders:createRequestHeaders}}},79186:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TracingContextImpl=t.knownContextKeys=void 0;t.createTracingContext=createTracingContext;t.knownContextKeys={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function createTracingContext(e={}){let o=new TracingContextImpl(e.parentContext);if(e.span){o=o.setValue(t.knownContextKeys.span,e.span)}if(e.namespace){o=o.setValue(t.knownContextKeys.namespace,e.namespace)}return o}class TracingContextImpl{_contextMap;constructor(e){this._contextMap=e instanceof TracingContextImpl?new Map(e._contextMap):new Map}setValue(e,t){const o=new TracingContextImpl(this);o._contextMap.set(e,t);return o}getValue(e){return this._contextMap.get(e)}deleteValue(e){const t=new TracingContextImpl(this);t._contextMap.delete(e);return t}}t.TracingContextImpl=TracingContextImpl},95209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cancelablePromiseRace=cancelablePromiseRace;async function cancelablePromiseRace(e,t){const o=new AbortController;function abortHandler(){o.abort()}t?.abortSignal?.addEventListener("abort",abortHandler);try{return await Promise.race(e.map((e=>e({abortSignal:o.signal}))))}finally{o.abort();t?.abortSignal?.removeEventListener("abort",abortHandler)}}},63128:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createAbortablePromise=createAbortablePromise;const i=o(83134);function createAbortablePromise(e,t){const{cleanupBeforeAbort:o,abortSignal:a,abortErrorMsg:d}=t??{};return new Promise(((t,m)=>{function rejectOnAbort(){m(new i.AbortError(d??"The operation was aborted."))}function removeListeners(){a?.removeEventListener("abort",onAbort)}function onAbort(){o?.();removeListeners();rejectOnAbort()}if(a?.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();t(e)}),(e=>{removeListeners();m(e)}))}catch(e){m(e)}a?.addEventListener("abort",onAbort)}))}},90636:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.delay=delay;t.calculateRetryDelay=calculateRetryDelay;const i=o(63128);const a=o(95750);const d="The delay was aborted.";function delay(e,t){let o;const{abortSignal:a,abortErrorMsg:m}=t??{};return(0,i.createAbortablePromise)((t=>{o=setTimeout(t,e)}),{cleanupBeforeAbort:()=>clearTimeout(o),abortSignal:a,abortErrorMsg:m??d})}function calculateRetryDelay(e,t){const o=t.retryDelayInMs*Math.pow(2,e);const i=Math.min(t.maxRetryDelayInMs,o);const d=i/2+(0,a.getRandomIntegerInclusive)(0,i/2);return{retryAfterInMs:d}}},99945:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getErrorMessage=getErrorMessage;const i=o(95750);function getErrorMessage(e){if((0,i.isError)(e)){return e.message}else{let t;try{if(typeof e==="object"&&e){t=JSON.stringify(e)}else{t=String(e)}}catch(e){t="[unable to stringify input]"}return`Unknown error ${t}`}}},87779:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isWebWorker=t.isReactNative=t.isNodeRuntime=t.isNodeLike=t.isNode=t.isDeno=t.isBun=t.isBrowser=t.objectHasProperty=t.isObjectWithProperties=t.isDefined=t.getErrorMessage=t.delay=t.createAbortablePromise=t.cancelablePromiseRace=void 0;t.calculateRetryDelay=calculateRetryDelay;t.computeSha256Hash=computeSha256Hash;t.computeSha256Hmac=computeSha256Hmac;t.getRandomIntegerInclusive=getRandomIntegerInclusive;t.isError=isError;t.isObject=isObject;t.randomUUID=randomUUID;t.uint8ArrayToString=uint8ArrayToString;t.stringToUint8Array=stringToUint8Array;const i=o(61860);const a=i.__importStar(o(95750));var d=o(95209);Object.defineProperty(t,"cancelablePromiseRace",{enumerable:true,get:function(){return d.cancelablePromiseRace}});var m=o(63128);Object.defineProperty(t,"createAbortablePromise",{enumerable:true,get:function(){return m.createAbortablePromise}});var f=o(90636);Object.defineProperty(t,"delay",{enumerable:true,get:function(){return f.delay}});var h=o(99945);Object.defineProperty(t,"getErrorMessage",{enumerable:true,get:function(){return h.getErrorMessage}});var P=o(66277);Object.defineProperty(t,"isDefined",{enumerable:true,get:function(){return P.isDefined}});Object.defineProperty(t,"isObjectWithProperties",{enumerable:true,get:function(){return P.isObjectWithProperties}});Object.defineProperty(t,"objectHasProperty",{enumerable:true,get:function(){return P.objectHasProperty}});function calculateRetryDelay(e,t){return a.calculateRetryDelay(e,t)}function computeSha256Hash(e,t){return a.computeSha256Hash(e,t)}function computeSha256Hmac(e,t,o){return a.computeSha256Hmac(e,t,o)}function getRandomIntegerInclusive(e,t){return a.getRandomIntegerInclusive(e,t)}function isError(e){return a.isError(e)}function isObject(e){return a.isObject(e)}function randomUUID(){return a.randomUUID()}t.isBrowser=a.isBrowser;t.isBun=a.isBun;t.isDeno=a.isDeno;t.isNode=a.isNodeLike;t.isNodeLike=a.isNodeLike;t.isNodeRuntime=a.isNodeRuntime;t.isReactNative=a.isReactNative;t.isWebWorker=a.isWebWorker;function uint8ArrayToString(e,t){return a.uint8ArrayToString(e,t)}function stringToUint8Array(e,t){return a.stringToUint8Array(e,t)}},66277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isDefined=isDefined;t.isObjectWithProperties=isObjectWithProperties;t.objectHasProperty=objectHasProperty;function isDefined(e){return typeof e!=="undefined"&&e!==null}function isObjectWithProperties(e,t){if(!isDefined(e)||typeof e!=="object"){return false}for(const o of t){if(!objectHasProperty(e,o)){return false}}return true}function objectHasProperty(e,t){return isDefined(e)&&typeof e==="object"&&t in e}},78756:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{XML_ATTRKEY:()=>P.XML_ATTRKEY,XML_CHARKEY:()=>P.XML_CHARKEY,parseXML:()=>h.parseXML,stringifyXML:()=>h.stringifyXML});e.exports=__toCommonJS(f);var h=o(48133);var P=o(93406);0&&0},93406:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{XML_ATTRKEY:()=>m,XML_CHARKEY:()=>f});e.exports=__toCommonJS(d);const m="$";const f="_";0&&0},48133:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{parseXML:()=>parseXML,stringifyXML:()=>stringifyXML});e.exports=__toCommonJS(f);var h=o(50591);var P=o(93406);function getCommonOptions(e){return{attributesGroupName:P.XML_ATTRKEY,textNodeName:e.xmlCharKey??P.XML_CHARKEY,ignoreAttributes:false,suppressBooleanAttributes:false}}function getSerializerOptions(e={}){return{...getCommonOptions(e),attributeNamePrefix:"@_",format:true,suppressEmptyNode:true,indentBy:"",rootNodeName:e.rootName??"root",cdataPropName:e.cdataPropName??"__cdata"}}function getParserOptions(e={}){return{...getCommonOptions(e),parseAttributeValue:false,parseTagValue:false,attributeNamePrefix:"",stopNodes:e.stopNodes,processEntities:true,trimValues:false}}function stringifyXML(e,t={}){const o=getSerializerOptions(t);const i=new h.XMLBuilder(o);const a={[o.rootNodeName]:e};const d=i.build(a);return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${d}`.replace(/\n/g,"")}async function parseXML(e,t={}){if(!e){throw new Error("Document is empty")}const o=h.XMLValidator.validate(e);if(o!==true){throw o}const i=new h.XMLParser(getParserOptions(t));const a=i.parse(e);if(a["?xml"]){delete a["?xml"]}if(!t.includeRoot){for(const e of Object.keys(a)){const t=a[e];return typeof t==="object"?{...t}:t}}return a}0&&0},26515:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureLogger=void 0;t.setLogLevel=setLogLevel;t.getLogLevel=getLogLevel;t.createClientLogger=createClientLogger;const i=o(82490);const a=(0,i.createLoggerContext)({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"});t.AzureLogger=a.logger;function setLogLevel(e){a.setLogLevel(e)}function getLogLevel(){return a.getLogLevel()}function createClientLogger(e){return a.createClientLogger(e)}},48175:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},41564:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchResponseParser=void 0;const i=o(20778);const a=o(61584);const d=o(27323);const m=o(72995);const f=o(46370);const h=": ";const P=" ";const _=-1;class BatchResponseParser{batchResponse;responseBatchBoundary;perResponsePrefix;batchResponseEnding;subRequests;constructor(e,t){if(!e||!e.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!t||t.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=e;this.subRequests=t;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${d.HTTP_LINE_ENDING}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==d.HTTPURLConnection.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const e=await(0,m.getBodyAsText)(this.batchResponse);const t=e.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const o=t.length;if(o!==this.subRequests.size&&o!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const L=new Array(o);let U=0;let j=0;for(let e=0;e<o;e++){const o=t[e];const m={};m.headers=(0,a.toHttpHeadersLike)((0,i.createHttpHeaders)());const H=o.split(`${d.HTTP_LINE_ENDING}`);let V=false;let K=false;let W=false;let X=_;for(const e of H){if(!V){if(e.startsWith(d.HeaderConstants.CONTENT_ID)){X=parseInt(e.split(h)[1])}if(e.startsWith(d.HTTP_VERSION_1_1)){V=true;const t=e.split(P);m.status=parseInt(t[1]);m.statusMessage=t.slice(2).join(P)}continue}if(e.trim()===""){if(!K){K=true}continue}if(!K){if(e.indexOf(h)===-1){throw new Error(`Invalid state: find non-empty line '${e}' without HTTP header delimiter '${h}'.`)}const t=e.split(h);m.headers.set(t[0],t[1]);if(t[0]===d.HeaderConstants.X_MS_ERROR_CODE){m.errorCode=t[1];W=true}}else{if(!m.bodyAsText){m.bodyAsText=""}m.bodyAsText+=e}}if(X!==_&&Number.isInteger(X)&&X>=0&&X<this.subRequests.size&&L[X]===undefined){m._request=this.subRequests.get(X);L[X]=m}else{f.logger.error(`subResponses[${e}] is dropped as the Content-ID is not found or invalid, Content-ID: ${X}`)}if(W){j++}else{U++}}return{subResponses:L,subResponsesSucceededCount:U,subResponsesFailedCount:j}}}t.BatchResponseParser=BatchResponseParser},72995:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getBodyAsText=getBodyAsText;t.utf8ByteLength=utf8ByteLength;const i=o(53563);const a=o(27323);async function getBodyAsText(e){let t=Buffer.alloc(a.BATCH_MAX_PAYLOAD_IN_BYTES);const o=await(0,i.streamToBuffer2)(e.readableStreamBody,t);t=t.slice(0,o);return t.toString()}function utf8ByteLength(e){return Buffer.byteLength(e)}},95561:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBatch=void 0;const i=o(87779);const a=o(50417);const d=o(20778);const m=o(87779);const f=o(51382);const h=o(90372);const P=o(58913);const _=o(25984);const L=o(47764);const U=o(78756);const j=o(27323);const H=o(53952);const V=o(60160);class BlobBatch{batchRequest;batch="batch";batchType;constructor(){this.batchRequest=new InnerBatchRequest}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(e,t){await P.Mutex.lock(this.batch);try{this.batchRequest.preAddSubRequest(e);await t();this.batchRequest.postAddSubRequest(e)}finally{await P.Mutex.unlock(this.batch)}}setBatchType(e){if(!this.batchType){this.batchType=e}if(this.batchType!==e){throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}}async deleteBlob(e,t,o){let i;let d;if(typeof e==="string"&&(m.isNodeLike&&t instanceof f.StorageSharedKeyCredential||t instanceof f.AnonymousCredential||(0,a.isTokenCredential)(t))){i=e;d=t}else if(e instanceof h.BlobClient){i=e.url;d=e.credential;o=t}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!o){o={}}return H.tracingClient.withSpan("BatchDeleteRequest-addSubRequest",o,(async e=>{this.setBatchType("delete");await this.addSubRequestInternal({url:i,credential:d},(async()=>{await new h.BlobClient(i,this.batchRequest.createPipeline(d)).delete(e)}))}))}async setBlobAccessTier(e,t,o,i){let d;let P;let _;if(typeof e==="string"&&(m.isNodeLike&&t instanceof f.StorageSharedKeyCredential||t instanceof f.AnonymousCredential||(0,a.isTokenCredential)(t))){d=e;P=t;_=o}else if(e instanceof h.BlobClient){d=e.url;P=e.credential;_=t;i=o}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!i){i={}}return H.tracingClient.withSpan("BatchSetTierRequest-addSubRequest",i,(async e=>{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:d,credential:P},(async()=>{await new h.BlobClient(d,this.batchRequest.createPipeline(P)).setAccessTier(_,e)}))}))}}t.BlobBatch=BlobBatch;class InnerBatchRequest{operationCount;body;subRequests;boundary;subRequestPrefix;multipartContentType;batchRequestEnding;constructor(){this.operationCount=0;this.body="";const e=(0,i.randomUUID)();this.boundary=`batch_${e}`;this.subRequestPrefix=`--${this.boundary}${j.HTTP_LINE_ENDING}${j.HeaderConstants.CONTENT_TYPE}: application/http${j.HTTP_LINE_ENDING}${j.HeaderConstants.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(e){const t=(0,d.createEmptyPipeline)();t.addPolicy((0,V.serializationPolicy)({stringifyXML:U.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}}),{phase:"Serialize"});t.addPolicy(batchHeaderFilterPolicy());t.addPolicy(batchRequestAssemblePolicy(this),{afterPhase:"Sign"});if((0,a.isTokenCredential)(e)){t.addPolicy((0,d.bearerTokenAuthenticationPolicy)({credential:e,scopes:j.StorageOAuthScopes,challengeCallbacks:{authorizeRequestOnChallenge:V.authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(e instanceof f.StorageSharedKeyCredential){t.addPolicy((0,f.storageSharedKeyCredentialPolicy)({accountName:e.accountName,accountKey:e.accountKey}),{phase:"Sign"})}const o=new _.Pipeline([]);o._credential=e;o._corePipeline=t;return o}appendSubRequestToBody(e){this.body+=[this.subRequestPrefix,`${j.HeaderConstants.CONTENT_ID}: ${this.operationCount}`,"",`${e.method.toString()} ${(0,L.getURLPathAndQuery)(e.url)} ${j.HTTP_VERSION_1_1}${j.HTTP_LINE_ENDING}`].join(j.HTTP_LINE_ENDING);for(const[t,o]of e.headers){this.body+=`${t}: ${o}${j.HTTP_LINE_ENDING}`}this.body+=j.HTTP_LINE_ENDING}preAddSubRequest(e){if(this.operationCount>=j.BATCH_MAX_REQUEST){throw new RangeError(`Cannot exceed ${j.BATCH_MAX_REQUEST} sub requests in a single batch`)}const t=(0,L.getURLPath)(e.url);if(!t||t===""){throw new RangeError(`Invalid url for sub request: '${e.url}'`)}}postAddSubRequest(e){this.subRequests.set(this.operationCount,e);this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${j.HTTP_LINE_ENDING}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}function batchRequestAssemblePolicy(e){return{name:"batchRequestAssemblePolicy",async sendRequest(t){e.appendSubRequestToBody(t);return{request:t,status:200,headers:(0,d.createHttpHeaders)()}}}}function batchHeaderFilterPolicy(){return{name:"batchHeaderFilterPolicy",async sendRequest(e,t){let o="";for(const[t]of e.headers){if((0,L.iEqual)(t,j.HeaderConstants.X_MS_VERSION)){o=t}}if(o!==""){e.headers.delete(o)}return t(e)}}}},12094:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBatchClient=void 0;const i=o(41564);const a=o(72995);const d=o(95561);const m=o(53952);const f=o(51382);const h=o(53789);const P=o(25984);const _=o(47764);class BlobBatchClient{serviceOrContainerContext;constructor(e,t,o){let i;if((0,P.isPipelineLike)(t)){i=t}else if(!t){i=(0,P.newPipeline)(new f.AnonymousCredential,o)}else{i=(0,P.newPipeline)(t,o)}const a=new h.StorageContextClient(e,(0,P.getCoreClientOptions)(i));const d=(0,_.getURLPath)(e);if(d&&d!=="/"){this.serviceOrContainerContext=a.container}else{this.serviceOrContainerContext=a.service}}createBatch(){return new d.BlobBatch}async deleteBlobs(e,t,o){const i=new d.BlobBatch;for(const a of e){if(typeof a==="string"){await i.deleteBlob(a,t,o)}else{await i.deleteBlob(a,t)}}return this.submitBatch(i)}async setBlobsAccessTier(e,t,o,i){const a=new d.BlobBatch;for(const d of e){if(typeof d==="string"){await a.setBlobAccessTier(d,t,o,i)}else{await a.setBlobAccessTier(d,t,o)}}return this.submitBatch(a)}async submitBatch(e,t={}){if(!e||e.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}return m.tracingClient.withSpan("BlobBatchClient-submitBatch",t,(async t=>{const o=e.getHttpRequestBody();const d=(0,_.assertResponse)(await this.serviceOrContainerContext.submitBatch((0,a.utf8ByteLength)(o),e.getMultiPartContentType(),o,{...t}));const m=new i.BatchResponseParser(d,e.getSubRequests());const f=await m.parseBatchResponse();const h={_response:d._response,contentType:d.contentType,errorCode:d.errorCode,requestId:d.requestId,clientRequestId:d.clientRequestId,version:d.version,subResponses:f.subResponses,subResponsesSucceededCount:f.subResponsesSucceededCount,subResponsesFailedCount:f.subResponsesFailedCount};return h}))}}t.BlobBatchClient=BlobBatchClient},4894:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobDownloadResponse=void 0;const i=o(87779);const a=o(98684);class BlobDownloadResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return i.isNodeLike?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,o,i,d={}){this.originalResponse=e;this.blobDownloadStream=new a.RetriableReadableStream(this.originalResponse.readableStreamBody,t,o,i,d)}}t.BlobDownloadResponse=BlobDownloadResponse},23276:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobLeaseClient=void 0;const i=o(87779);const a=o(27323);const d=o(53952);const m=o(47764);class BlobLeaseClient{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){const o=e.storageClientContext;this._url=e.url;if(e.name===undefined){this._isContainer=true;this._containerOrBlobOperation=o.container}else{this._isContainer=false;this._containerOrBlobOperation=o.blob}if(!t){t=(0,i.randomUUID)()}this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==a.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==a.ETagNone||t.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-acquireLease",t,(async o=>(0,m.assertResponse)(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:o.tracingOptions}))))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==a.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==a.ETagNone||t.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-changeLease",t,(async o=>{const i=(0,m.assertResponse)(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:o.tracingOptions}));this._leaseId=e;return i}))}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==a.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==a.ETagNone||e.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-releaseLease",e,(async t=>(0,m.assertResponse)(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==a.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==a.ETagNone||e.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-renewLease",e,(async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==a.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==a.ETagNone||t.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-breakLease",t,(async o=>{const i={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:o.tracingOptions};return(0,m.assertResponse)(await this._containerOrBlobOperation.breakLease(i))}))}}t.BlobLeaseClient=BlobLeaseClient},95602:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobQueryResponse=void 0;const i=o(87779);const a=o(36426);class BlobQueryResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return undefined}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){return undefined}get readableStreamBody(){return i.isNodeLike?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e;this.blobDownloadStream=new a.BlobQuickQueryStream(this.originalResponse.readableStreamBody,t)}}t.BlobQueryResponse=BlobQueryResponse},96341:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobServiceClient=void 0;const i=o(50417);const a=o(20778);const d=o(87779);const m=o(25984);const f=o(81884);const h=o(47764);const P=o(51382);const _=o(47764);const L=o(53952);const U=o(12094);const j=o(73542);const H=o(6358);const V=o(85238);const K=o(46940);class BlobServiceClient extends j.StorageClient{serviceContext;static fromConnectionString(e,t){t=t||{};const o=(0,h.extractConnectionStringParts)(e);if(o.kind==="AccountConnString"){if(d.isNodeLike){const e=new P.StorageSharedKeyCredential(o.accountName,o.accountKey);if(!t.proxyOptions){t.proxyOptions=(0,a.getDefaultProxySettings)(o.proxyUri)}const i=(0,m.newPipeline)(e,t);return new BlobServiceClient(o.url,i)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(o.kind==="SASConnString"){const e=(0,m.newPipeline)(new P.AnonymousCredential,t);return new BlobServiceClient(o.url+"?"+o.accountSas,e)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}constructor(e,t,o){let a;if((0,m.isPipelineLike)(t)){a=t}else if(d.isNodeLike&&t instanceof P.StorageSharedKeyCredential||t instanceof P.AnonymousCredential||(0,i.isTokenCredential)(t)){a=(0,m.newPipeline)(t,o)}else{a=(0,m.newPipeline)(new P.AnonymousCredential,o)}super(e,a);this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new f.ContainerClient((0,h.appendToURLPath)(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,t={}){return L.tracingClient.withSpan("BlobServiceClient-createContainer",t,(async t=>{const o=this.getContainerClient(e);const i=await o.create(t);return{containerClient:o,containerCreateResponse:i}}))}async deleteContainer(e,t={}){return L.tracingClient.withSpan("BlobServiceClient-deleteContainer",t,(async t=>{const o=this.getContainerClient(e);return o.delete(t)}))}async undeleteContainer(e,t,o={}){return L.tracingClient.withSpan("BlobServiceClient-undeleteContainer",o,(async i=>{const a=this.getContainerClient(o.destinationContainerName||e);const d=a["storageClientContext"].container;const m=(0,_.assertResponse)(await d.restore({deletedContainerName:e,deletedContainerVersion:t,tracingOptions:i.tracingOptions}));return{containerClient:a,containerUndeleteResponse:m}}))}async getProperties(e={}){return L.tracingClient.withSpan("BlobServiceClient-getProperties",e,(async t=>(0,_.assertResponse)(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setProperties(e,t={}){return L.tracingClient.withSpan("BlobServiceClient-setProperties",t,(async o=>(0,_.assertResponse)(await this.serviceContext.setProperties(e,{abortSignal:t.abortSignal,tracingOptions:o.tracingOptions}))))}async getStatistics(e={}){return L.tracingClient.withSpan("BlobServiceClient-getStatistics",e,(async t=>(0,_.assertResponse)(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return L.tracingClient.withSpan("BlobServiceClient-getAccountInfo",e,(async t=>(0,_.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async listContainersSegment(e,t={}){return L.tracingClient.withSpan("BlobServiceClient-listContainersSegment",t,(async o=>(0,_.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:t.abortSignal,marker:e,...t,include:typeof t.include==="string"?[t.include]:t.include,tracingOptions:o.tracingOptions}))))}async findBlobsByTagsSegment(e,t,o={}){return L.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",o,(async i=>{const a=(0,_.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:o.abortSignal,where:e,marker:t,maxPageSize:o.maxPageSize,tracingOptions:i.tracingOptions}));const d={...a,_response:a._response,blobs:a.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:(0,h.toTags)(e.tags),tagValue:t}}))};return d}))}async*findBlobsByTagsSegments(e,t,o={}){let i;if(!!t||t===undefined){do{i=await this.findBlobsByTagsSegment(e,t,o);i.blobs=i.blobs||[];t=i.continuationToken;yield i}while(t)}}async*findBlobsByTagsItems(e,t={}){let o;for await(const i of this.findBlobsByTagsSegments(e,o,t)){yield*i.blobs}}findBlobsByTags(e,t={}){const o={...t};const i=this.findBlobsByTagsItems(e,o);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...o})}}async*listSegments(e,t={}){let o;if(!!e||e===undefined){do{o=await this.listContainersSegment(e,t);o.containerItems=o.containerItems||[];e=o.continuationToken;yield await o}while(e)}}async*listItems(e={}){let t;for await(const o of this.listSegments(t,e)){yield*o.containerItems}}listContainers(e={}){if(e.prefix===""){e.prefix=undefined}const t=[];if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSystem){t.push("system")}const o={...e,...t.length>0?{include:t}:{}};const i=this.listItems(o);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...o})}}async getUserDelegationKey(e,t,o={}){return L.tracingClient.withSpan("BlobServiceClient-getUserDelegationKey",o,(async i=>{const a=(0,_.assertResponse)(await this.serviceContext.getUserDelegationKey({startsOn:(0,_.truncatedISO8061Date)(e,false),expiresOn:(0,_.truncatedISO8061Date)(t,false)},{abortSignal:o.abortSignal,tracingOptions:i.tracingOptions}));const d={signedObjectId:a.signedObjectId,signedTenantId:a.signedTenantId,signedStartsOn:new Date(a.signedStartsOn),signedExpiresOn:new Date(a.signedExpiresOn),signedService:a.signedService,signedVersion:a.signedVersion,value:a.value};const m={_response:a._response,requestId:a.requestId,clientRequestId:a.clientRequestId,version:a.version,date:a.date,errorCode:a.errorCode,...d};return m}))}getBlobBatchClient(){return new U.BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(e,t=H.AccountSASPermissions.parse("r"),o="sco",i={}){if(!(this.credential instanceof P.StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}const a=(0,V.generateAccountSASQueryParameters)({permissions:t,expiresOn:e,resourceTypes:o,services:K.AccountSASServices.parse("b").toString(),...i},this.credential).toString();return(0,h.appendToURLQuery)(this.url,a)}generateSasStringToSign(e,t=H.AccountSASPermissions.parse("r"),o="sco",i={}){if(!(this.credential instanceof P.StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}return(0,V.generateAccountSASQueryParametersInternal)({permissions:t,expiresOn:e,resourceTypes:o,services:K.AccountSASServices.parse("b").toString(),...i},this.credential).stringToSign}}t.BlobServiceClient=BlobServiceClient},90372:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PageBlobClient=t.BlockBlobClient=t.AppendBlobClient=t.BlobClient=void 0;const i=o(20778);const a=o(50417);const d=o(87779);const m=o(87779);const f=o(4894);const h=o(95602);const P=o(51382);const _=o(58560);const L=o(95302);const U=o(25984);const j=o(73145);const H=o(52045);const V=o(73542);const K=o(81582);const W=o(51382);const X=o(27323);const Q=o(53952);const Y=o(47764);const J=o(53563);const Z=o(656);const ee=o(23276);class BlobClient extends V.StorageClient{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,o,m){m=m||{};let f;let h;if((0,U.isPipelineLike)(t)){h=e;f=t}else if(d.isNodeLike&&t instanceof P.StorageSharedKeyCredential||t instanceof P.AnonymousCredential||(0,a.isTokenCredential)(t)){h=e;m=o;f=(0,U.newPipeline)(t,m)}else if(!t&&typeof t!=="string"){h=e;if(o&&typeof o!=="string"){m=o}f=(0,U.newPipeline)(new P.AnonymousCredential,m)}else if(t&&typeof t==="string"&&o&&typeof o==="string"){const a=t;const _=o;const L=(0,Y.extractConnectionStringParts)(e);if(L.kind==="AccountConnString"){if(d.isNodeLike){const e=new P.StorageSharedKeyCredential(L.accountName,L.accountKey);h=(0,Y.appendToURLPath)((0,Y.appendToURLPath)(L.url,encodeURIComponent(a)),encodeURIComponent(_));if(!m.proxyOptions){m.proxyOptions=(0,i.getDefaultProxySettings)(L.proxyUri)}f=(0,U.newPipeline)(e,m)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(L.kind==="SASConnString"){h=(0,Y.appendToURLPath)((0,Y.appendToURLPath)(L.url,encodeURIComponent(a)),encodeURIComponent(_))+"?"+L.accountSas;f=(0,U.newPipeline)(new P.AnonymousCredential,m)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(h,f);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=this.storageClientContext.blob;this._snapshot=(0,Y.getURLParameter)(this.url,X.URLConstants.Parameters.SNAPSHOT);this._versionId=(0,Y.getURLParameter)(this.url,X.URLConstants.Parameters.VERSIONID)}withSnapshot(e){return new BlobClient((0,Y.setURLParameter)(this.url,X.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}withVersion(e){return new BlobClient((0,Y.setURLParameter)(this.url,X.URLConstants.Parameters.VERSIONID,e.length===0?undefined:e),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(e=0,t,o={}){o.conditions=o.conditions||{};o.conditions=o.conditions||{};(0,_.ensureCpkIfSpecified)(o.customerProvidedKey,this.isHttps);return Q.tracingClient.withSpan("BlobClient-download",o,(async i=>{const a=(0,Y.assertResponse)(await this.blobContext.download({abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},requestOptions:{onDownloadProgress:d.isNodeLike?undefined:o.onProgress},range:e===0&&!t?undefined:(0,H.rangeToString)({offset:e,count:t}),rangeGetContentMD5:o.rangeGetContentMD5,rangeGetContentCRC64:o.rangeGetContentCrc64,snapshot:o.snapshot,cpkInfo:o.customerProvidedKey,tracingOptions:i.tracingOptions}));const m={...a,_response:a._response,objectReplicationDestinationPolicyId:a.objectReplicationPolicyId,objectReplicationSourceProperties:(0,Y.parseObjectReplicationRecord)(a.objectReplicationRules)};if(!d.isNodeLike){return m}if(o.maxRetryRequests===undefined||o.maxRetryRequests<0){o.maxRetryRequests=X.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS}if(a.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!a.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new f.BlobDownloadResponse(m,(async t=>{const i={leaseAccessConditions:o.conditions,modifiedAccessConditions:{ifMatch:o.conditions.ifMatch||a.etag,ifModifiedSince:o.conditions.ifModifiedSince,ifNoneMatch:o.conditions.ifNoneMatch,ifUnmodifiedSince:o.conditions.ifUnmodifiedSince,ifTags:o.conditions?.tagConditions},range:(0,H.rangeToString)({count:e+a.contentLength-t,offset:t}),rangeGetContentMD5:o.rangeGetContentMD5,rangeGetContentCRC64:o.rangeGetContentCrc64,snapshot:o.snapshot,cpkInfo:o.customerProvidedKey};return(await this.blobContext.download({abortSignal:o.abortSignal,...i})).readableStreamBody}),e,a.contentLength,{maxRetryRequests:o.maxRetryRequests,onProgress:o.onProgress})}))}async exists(e={}){return Q.tracingClient.withSpan("BlobClient-exists",e,(async t=>{try{(0,_.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}else if(e.statusCode===409&&(e.details.errorCode===X.BlobUsesCustomerSpecifiedEncryptionMsg||e.details.errorCode===X.BlobDoesNotUseCustomerSpecifiedEncryption)){return true}throw e}}))}async getProperties(e={}){e.conditions=e.conditions||{};(0,_.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return Q.tracingClient.withSpan("BlobClient-getProperties",e,(async t=>{const o=(0,Y.assertResponse)(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...o,_response:o._response,objectReplicationDestinationPolicyId:o.objectReplicationPolicyId,objectReplicationSourceProperties:(0,Y.parseObjectReplicationRecord)(o.objectReplicationRules)}}))}async delete(e={}){e.conditions=e.conditions||{};return Q.tracingClient.withSpan("BlobClient-delete",e,(async t=>(0,Y.assertResponse)(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return Q.tracingClient.withSpan("BlobClient-deleteIfExists",e,(async e=>{try{const t=(0,Y.assertResponse)(await this.delete(e));return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="BlobNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async undelete(e={}){return Q.tracingClient.withSpan("BlobClient-undelete",e,(async t=>(0,Y.assertResponse)(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setHTTPHeaders(e,t={}){t.conditions=t.conditions||{};(0,_.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return Q.tracingClient.withSpan("BlobClient-setHTTPHeaders",t,(async o=>(0,Y.assertResponse)(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:o.tracingOptions}))))}async setMetadata(e,t={}){t.conditions=t.conditions||{};(0,_.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return Q.tracingClient.withSpan("BlobClient-setMetadata",t,(async o=>(0,Y.assertResponse)(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:o.tracingOptions}))))}async setTags(e,t={}){return Q.tracingClient.withSpan("BlobClient-setTags",t,(async o=>(0,Y.assertResponse)(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},blobModifiedAccessConditions:t.conditions,tracingOptions:o.tracingOptions,tags:(0,Y.toBlobTags)(e)}))))}async getTags(e={}){return Q.tracingClient.withSpan("BlobClient-getTags",e,(async t=>{const o=(0,Y.assertResponse)(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));const i={...o,_response:o._response,tags:(0,Y.toTags)({blobTagSet:o.blobTagSet})||{}};return i}))}getBlobLeaseClient(e){return new ee.BlobLeaseClient(this,e)}async createSnapshot(e={}){e.conditions=e.conditions||{};(0,_.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return Q.tracingClient.withSpan("BlobClient-createSnapshot",e,(async t=>(0,Y.assertResponse)(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions}))))}async beginCopyFromURL(e,t={}){const o={abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)};const i=new j.BlobBeginCopyFromUrlPoller({blobClient:o,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});await i.poll();return i}async abortCopyFromURL(e,t={}){return Q.tracingClient.withSpan("BlobClient-abortCopyFromURL",t,(async o=>(0,Y.assertResponse)(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:o.tracingOptions}))))}async syncCopyFromURL(e,t={}){t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return Q.tracingClient.withSpan("BlobClient-syncCopyFromURL",t,(async o=>(0,Y.assertResponse)(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:(0,Y.httpAuthorizationToString)(t.sourceAuthorization),tier:(0,_.toAccessTier)(t.tier),blobTagsString:(0,Y.toBlobTagsString)(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:o.tracingOptions}))))}async setAccessTier(e,t={}){return Q.tracingClient.withSpan("BlobClient-setAccessTier",t,(async o=>(0,Y.assertResponse)(await this.blobContext.setTier((0,_.toAccessTier)(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:o.tracingOptions}))))}async downloadToBuffer(e,t,o,i={}){let a;let d=0;let m=0;let f=i;if(e instanceof Buffer){a=e;d=t||0;m=typeof o==="number"?o:0}else{d=typeof e==="number"?e:0;m=typeof t==="number"?t:0;f=o||{}}let h=f.blockSize??0;if(h<0){throw new RangeError("blockSize option must be >= 0")}if(h===0){h=X.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES}if(d<0){throw new RangeError("offset option must be >= 0")}if(m&&m<=0){throw new RangeError("count option must be greater than 0")}if(!f.conditions){f.conditions={}}return Q.tracingClient.withSpan("BlobClient-downloadToBuffer",f,(async e=>{if(!m){const t=await this.getProperties({...f,tracingOptions:e.tracingOptions});m=t.contentLength-d;if(m<0){throw new RangeError(`offset ${d} shouldn't be larger than blob size ${t.contentLength}`)}}if(!a){try{a=Buffer.alloc(m)}catch(e){throw new Error(`Unable to allocate the buffer of size: ${m}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}}if(a.length<m){throw new RangeError(`The buffer's size should be equal to or larger than the request count of bytes: ${m}`)}let t=0;const o=new K.Batch(f.concurrency);for(let i=d;i<d+m;i=i+h){o.addOperation((async()=>{let o=d+m;if(i+h<o){o=i+h}const P=await this.download(i,o-i,{abortSignal:f.abortSignal,conditions:f.conditions,maxRetryRequests:f.maxRetryRequestsPerBlock,customerProvidedKey:f.customerProvidedKey,tracingOptions:e.tracingOptions});const _=P.readableStreamBody;await(0,J.streamToBuffer)(_,a,i-d,o-d);t+=o-i;if(f.onProgress){f.onProgress({loadedBytes:t})}}))}await o.do();return a}))}async downloadToFile(e,t=0,o,i={}){return Q.tracingClient.withSpan("BlobClient-downloadToFile",i,(async a=>{const d=await this.download(t,o,{...i,tracingOptions:a.tracingOptions});if(d.readableStreamBody){await(0,J.readStreamToLocalFile)(d.readableStreamBody,e)}d.blobDownloadStream=undefined;return d}))}getBlobAndContainerNamesFromUrl(){let e;let t;try{const o=new URL(this.url);if(o.host.split(".")[1]==="blob"){const i=o.pathname.match("/([^/]*)(/(.*))?");e=i[1];t=i[3]}else if((0,Y.isIpEndpointStyle)(o)){const i=o.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=i[2];t=i[4]}else{const i=o.pathname.match("/([^/]*)(/(.*))?");e=i[1];t=i[3]}e=decodeURIComponent(e);t=decodeURIComponent(t);t=t.replace(/\\/g,"/");if(!e){throw new Error("Provided containerName is invalid.")}return{blobName:t,containerName:e}}catch(e){throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(e,t={}){return Q.tracingClient.withSpan("BlobClient-startCopyFromURL",t,(async o=>{t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return(0,Y.assertResponse)(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:(0,_.toAccessTier)(t.tier),blobTagsString:(0,Y.toBlobTagsString)(t.tags),sealBlob:t.sealBlob,tracingOptions:o.tracingOptions}))}))}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof P.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const o=(0,Z.generateBlobSASQueryParameters)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t((0,Y.appendToURLQuery)(this.url,o))}))}generateSasStringToSign(e){if(!(this.credential instanceof P.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return(0,Z.generateBlobSASQueryParametersInternal)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((o=>{const i=(0,Z.generateBlobSASQueryParameters)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();o((0,Y.appendToURLQuery)(this.url,i))}))}generateUserDelegationSasStringToSign(e,t){return(0,Z.generateBlobSASQueryParametersInternal)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return Q.tracingClient.withSpan("BlobClient-deleteImmutabilityPolicy",e,(async e=>(0,Y.assertResponse)(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions}))))}async setImmutabilityPolicy(e,t={}){return Q.tracingClient.withSpan("BlobClient-setImmutabilityPolicy",t,(async t=>(0,Y.assertResponse)(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions}))))}async setLegalHold(e,t={}){return Q.tracingClient.withSpan("BlobClient-setLegalHold",t,(async t=>(0,Y.assertResponse)(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return Q.tracingClient.withSpan("BlobClient-getAccountInfo",e,(async t=>(0,Y.assertResponse)(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}}t.BlobClient=BlobClient;class AppendBlobClient extends BlobClient{appendBlobContext;constructor(e,t,o,m){let f;let h;m=m||{};if((0,U.isPipelineLike)(t)){h=e;f=t}else if(d.isNodeLike&&t instanceof P.StorageSharedKeyCredential||t instanceof P.AnonymousCredential||(0,a.isTokenCredential)(t)){h=e;m=o;f=(0,U.newPipeline)(t,m)}else if(!t&&typeof t!=="string"){h=e;f=(0,U.newPipeline)(new P.AnonymousCredential,m)}else if(t&&typeof t==="string"&&o&&typeof o==="string"){const a=t;const _=o;const L=(0,Y.extractConnectionStringParts)(e);if(L.kind==="AccountConnString"){if(d.isNodeLike){const e=new P.StorageSharedKeyCredential(L.accountName,L.accountKey);h=(0,Y.appendToURLPath)((0,Y.appendToURLPath)(L.url,encodeURIComponent(a)),encodeURIComponent(_));if(!m.proxyOptions){m.proxyOptions=(0,i.getDefaultProxySettings)(L.proxyUri)}f=(0,U.newPipeline)(e,m)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(L.kind==="SASConnString"){h=(0,Y.appendToURLPath)((0,Y.appendToURLPath)(L.url,encodeURIComponent(a)),encodeURIComponent(_))+"?"+L.accountSas;f=(0,U.newPipeline)(new P.AnonymousCredential,m)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(h,f);this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new AppendBlobClient((0,Y.setURLParameter)(this.url,X.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e={}){e.conditions=e.conditions||{};(0,_.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return Q.tracingClient.withSpan("AppendBlobClient-create",e,(async t=>(0,Y.assertResponse)(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:(0,Y.toBlobTagsString)(e.tags),tracingOptions:t.tracingOptions}))))}async createIfNotExists(e={}){const t={ifNoneMatch:X.ETagAny};return Q.tracingClient.withSpan("AppendBlobClient-createIfNotExists",e,(async e=>{try{const o=(0,Y.assertResponse)(await this.create({...e,conditions:t}));return{succeeded:true,...o,_response:o._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async seal(e={}){e.conditions=e.conditions||{};return Q.tracingClient.withSpan("AppendBlobClient-seal",e,(async t=>(0,Y.assertResponse)(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async appendBlock(e,t,o={}){o.conditions=o.conditions||{};(0,_.ensureCpkIfSpecified)(o.customerProvidedKey,this.isHttps);return Q.tracingClient.withSpan("AppendBlobClient-appendBlock",o,(async i=>(0,Y.assertResponse)(await this.appendBlobContext.appendBlock(t,e,{abortSignal:o.abortSignal,appendPositionAccessConditions:o.conditions,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},requestOptions:{onUploadProgress:o.onProgress},transactionalContentMD5:o.transactionalContentMD5,transactionalContentCrc64:o.transactionalContentCrc64,cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,tracingOptions:i.tracingOptions}))))}async appendBlockFromURL(e,t,o,i={}){i.conditions=i.conditions||{};i.sourceConditions=i.sourceConditions||{};(0,_.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps);return Q.tracingClient.withSpan("AppendBlobClient-appendBlockFromURL",i,(async a=>(0,Y.assertResponse)(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:i.abortSignal,sourceRange:(0,H.rangeToString)({offset:t,count:o}),sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,appendPositionAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:(0,Y.httpAuthorizationToString)(i.sourceAuthorization),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions}))))}}t.AppendBlobClient=AppendBlobClient;class BlockBlobClient extends BlobClient{_blobContext;blockBlobContext;constructor(e,t,o,m){let f;let h;m=m||{};if((0,U.isPipelineLike)(t)){h=e;f=t}else if(d.isNodeLike&&t instanceof P.StorageSharedKeyCredential||t instanceof P.AnonymousCredential||(0,a.isTokenCredential)(t)){h=e;m=o;f=(0,U.newPipeline)(t,m)}else if(!t&&typeof t!=="string"){h=e;if(o&&typeof o!=="string"){m=o}f=(0,U.newPipeline)(new P.AnonymousCredential,m)}else if(t&&typeof t==="string"&&o&&typeof o==="string"){const a=t;const _=o;const L=(0,Y.extractConnectionStringParts)(e);if(L.kind==="AccountConnString"){if(d.isNodeLike){const e=new P.StorageSharedKeyCredential(L.accountName,L.accountKey);h=(0,Y.appendToURLPath)((0,Y.appendToURLPath)(L.url,encodeURIComponent(a)),encodeURIComponent(_));if(!m.proxyOptions){m.proxyOptions=(0,i.getDefaultProxySettings)(L.proxyUri)}f=(0,U.newPipeline)(e,m)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(L.kind==="SASConnString"){h=(0,Y.appendToURLPath)((0,Y.appendToURLPath)(L.url,encodeURIComponent(a)),encodeURIComponent(_))+"?"+L.accountSas;f=(0,U.newPipeline)(new P.AnonymousCredential,m)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(h,f);this.blockBlobContext=this.storageClientContext.blockBlob;this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new BlockBlobClient((0,Y.setURLParameter)(this.url,X.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async query(e,t={}){(0,_.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);if(!d.isNodeLike){throw new Error("This operation currently is only supported in Node.js.")}return Q.tracingClient.withSpan("BlockBlobClient-query",t,(async o=>{const i=(0,Y.assertResponse)(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:(0,Y.toQuerySerialization)(t.inputTextConfiguration),outputSerialization:(0,Y.toQuerySerialization)(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:o.tracingOptions}));return new h.BlobQueryResponse(i,{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError})}))}async upload(e,t,o={}){o.conditions=o.conditions||{};(0,_.ensureCpkIfSpecified)(o.customerProvidedKey,this.isHttps);return Q.tracingClient.withSpan("BlockBlobClient-upload",o,(async i=>(0,Y.assertResponse)(await this.blockBlobContext.upload(t,e,{abortSignal:o.abortSignal,blobHttpHeaders:o.blobHTTPHeaders,leaseAccessConditions:o.conditions,metadata:o.metadata,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},requestOptions:{onUploadProgress:o.onProgress},cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,immutabilityPolicyExpiry:o.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:o.immutabilityPolicy?.policyMode,legalHold:o.legalHold,tier:(0,_.toAccessTier)(o.tier),blobTagsString:(0,Y.toBlobTagsString)(o.tags),tracingOptions:i.tracingOptions}))))}async syncUploadFromURL(e,t={}){t.conditions=t.conditions||{};(0,_.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return Q.tracingClient.withSpan("BlockBlobClient-syncUploadFromURL",t,(async o=>(0,Y.assertResponse)(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:(0,Y.httpAuthorizationToString)(t.sourceAuthorization),tier:(0,_.toAccessTier)(t.tier),blobTagsString:(0,Y.toBlobTagsString)(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:o.tracingOptions}))))}async stageBlock(e,t,o,i={}){(0,_.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps);return Q.tracingClient.withSpan("BlockBlobClient-stageBlock",i,(async a=>(0,Y.assertResponse)(await this.blockBlobContext.stageBlock(e,o,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,requestOptions:{onUploadProgress:i.onProgress},transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,tracingOptions:a.tracingOptions}))))}async stageBlockFromURL(e,t,o=0,i,a={}){(0,_.ensureCpkIfSpecified)(a.customerProvidedKey,this.isHttps);return Q.tracingClient.withSpan("BlockBlobClient-stageBlockFromURL",a,(async d=>(0,Y.assertResponse)(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,sourceContentMD5:a.sourceContentMD5,sourceContentCrc64:a.sourceContentCrc64,sourceRange:o===0&&!i?undefined:(0,H.rangeToString)({offset:o,count:i}),cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,copySourceAuthorization:(0,Y.httpAuthorizationToString)(a.sourceAuthorization),fileRequestIntent:a.sourceShareTokenIntent,tracingOptions:d.tracingOptions}))))}async commitBlockList(e,t={}){t.conditions=t.conditions||{};(0,_.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return Q.tracingClient.withSpan("BlockBlobClient-commitBlockList",t,(async o=>(0,Y.assertResponse)(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:(0,_.toAccessTier)(t.tier),blobTagsString:(0,Y.toBlobTagsString)(t.tags),tracingOptions:o.tracingOptions}))))}async getBlockList(e,t={}){return Q.tracingClient.withSpan("BlockBlobClient-getBlockList",t,(async o=>{const i=(0,Y.assertResponse)(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:o.tracingOptions}));if(!i.committedBlocks){i.committedBlocks=[]}if(!i.uncommittedBlocks){i.uncommittedBlocks=[]}return i}))}async uploadData(e,t={}){return Q.tracingClient.withSpan("BlockBlobClient-uploadData",t,(async t=>{if(d.isNodeLike){let o;if(e instanceof Buffer){o=e}else if(e instanceof ArrayBuffer){o=Buffer.from(e)}else{e=e;o=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}return this.uploadSeekableInternal(((e,t)=>o.slice(e,e+t)),o.byteLength,t)}else{const o=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>o.slice(e,e+t)),o.size,t)}}))}async uploadBrowserData(e,t={}){return Q.tracingClient.withSpan("BlockBlobClient-uploadBrowserData",t,(async t=>{const o=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>o.slice(e,e+t)),o.size,t)}))}async uploadSeekableInternal(e,t,o={}){let i=o.blockSize??0;if(i<0||i>X.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES){throw new RangeError(`blockSize option must be >= 0 and <= ${X.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES}`)}const a=o.maxSingleShotSize??X.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES;if(a<0||a>X.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${X.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}`)}if(i===0){if(t>X.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES*X.BLOCK_BLOB_MAX_BLOCKS){throw new RangeError(`${t} is too larger to upload to a block blob.`)}if(t>a){i=Math.ceil(t/X.BLOCK_BLOB_MAX_BLOCKS);if(i<X.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES){i=X.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES}}}if(!o.blobHTTPHeaders){o.blobHTTPHeaders={}}if(!o.conditions){o.conditions={}}return Q.tracingClient.withSpan("BlockBlobClient-uploadSeekableInternal",o,(async d=>{if(t<=a){return(0,Y.assertResponse)(await this.upload(e(0,t),t,d))}const f=Math.floor((t-1)/i)+1;if(f>X.BLOCK_BLOB_MAX_BLOCKS){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${X.BLOCK_BLOB_MAX_BLOCKS}`)}const h=[];const P=(0,m.randomUUID)();let _=0;const L=new K.Batch(o.concurrency);for(let a=0;a<f;a++){L.addOperation((async()=>{const m=(0,Y.generateBlockID)(P,a);const L=i*a;const U=a===f-1?t:L+i;const j=U-L;h.push(m);await this.stageBlock(m,e(L,j),j,{abortSignal:o.abortSignal,conditions:o.conditions,encryptionScope:o.encryptionScope,tracingOptions:d.tracingOptions});_+=j;if(o.onProgress){o.onProgress({loadedBytes:_})}}))}await L.do();return this.commitBlockList(h,d)}))}async uploadFile(e,t={}){return Q.tracingClient.withSpan("BlockBlobClient-uploadFile",t,(async o=>{const i=(await(0,J.fsStat)(e)).size;return this.uploadSeekableInternal(((t,o)=>()=>(0,J.fsCreateReadStream)(e,{autoClose:true,end:o?t+o-1:Infinity,start:t})),i,{...t,tracingOptions:o.tracingOptions})}))}async uploadStream(e,t=X.DEFAULT_BLOCK_BUFFER_SIZE_BYTES,o=5,i={}){if(!i.blobHTTPHeaders){i.blobHTTPHeaders={}}if(!i.conditions){i.conditions={}}return Q.tracingClient.withSpan("BlockBlobClient-uploadStream",i,(async a=>{let d=0;const f=(0,m.randomUUID)();let h=0;const P=[];const _=new W.BufferScheduler(e,t,o,(async(e,t)=>{const o=(0,Y.generateBlockID)(f,d);P.push(o);d++;await this.stageBlock(o,e,t,{customerProvidedKey:i.customerProvidedKey,conditions:i.conditions,encryptionScope:i.encryptionScope,tracingOptions:a.tracingOptions});h+=t;if(i.onProgress){i.onProgress({loadedBytes:h})}}),Math.ceil(o/4*3));await _.do();return(0,Y.assertResponse)(await this.commitBlockList(P,{...i,tracingOptions:a.tracingOptions}))}))}}t.BlockBlobClient=BlockBlobClient;class PageBlobClient extends BlobClient{pageBlobContext;constructor(e,t,o,m){let f;let h;m=m||{};if((0,U.isPipelineLike)(t)){h=e;f=t}else if(d.isNodeLike&&t instanceof P.StorageSharedKeyCredential||t instanceof P.AnonymousCredential||(0,a.isTokenCredential)(t)){h=e;m=o;f=(0,U.newPipeline)(t,m)}else if(!t&&typeof t!=="string"){h=e;f=(0,U.newPipeline)(new P.AnonymousCredential,m)}else if(t&&typeof t==="string"&&o&&typeof o==="string"){const a=t;const _=o;const L=(0,Y.extractConnectionStringParts)(e);if(L.kind==="AccountConnString"){if(d.isNodeLike){const e=new P.StorageSharedKeyCredential(L.accountName,L.accountKey);h=(0,Y.appendToURLPath)((0,Y.appendToURLPath)(L.url,encodeURIComponent(a)),encodeURIComponent(_));if(!m.proxyOptions){m.proxyOptions=(0,i.getDefaultProxySettings)(L.proxyUri)}f=(0,U.newPipeline)(e,m)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(L.kind==="SASConnString"){h=(0,Y.appendToURLPath)((0,Y.appendToURLPath)(L.url,encodeURIComponent(a)),encodeURIComponent(_))+"?"+L.accountSas;f=(0,U.newPipeline)(new P.AnonymousCredential,m)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(h,f);this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new PageBlobClient((0,Y.setURLParameter)(this.url,X.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e,t={}){t.conditions=t.conditions||{};(0,_.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return Q.tracingClient.withSpan("PageBlobClient-create",t,(async o=>(0,Y.assertResponse)(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:(0,_.toAccessTier)(t.tier),blobTagsString:(0,Y.toBlobTagsString)(t.tags),tracingOptions:o.tracingOptions}))))}async createIfNotExists(e,t={}){return Q.tracingClient.withSpan("PageBlobClient-createIfNotExists",t,(async o=>{try{const i={ifNoneMatch:X.ETagAny};const a=(0,Y.assertResponse)(await this.create(e,{...t,conditions:i,tracingOptions:o.tracingOptions}));return{succeeded:true,...a,_response:a._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async uploadPages(e,t,o,i={}){i.conditions=i.conditions||{};(0,_.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps);return Q.tracingClient.withSpan("PageBlobClient-uploadPages",i,(async a=>(0,Y.assertResponse)(await this.pageBlobContext.uploadPages(o,e,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},requestOptions:{onUploadProgress:i.onProgress},range:(0,H.rangeToString)({offset:t,count:o}),sequenceNumberAccessConditions:i.conditions,transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,tracingOptions:a.tracingOptions}))))}async uploadPagesFromURL(e,t,o,i,a={}){a.conditions=a.conditions||{};a.sourceConditions=a.sourceConditions||{};(0,_.ensureCpkIfSpecified)(a.customerProvidedKey,this.isHttps);return Q.tracingClient.withSpan("PageBlobClient-uploadPagesFromURL",a,(async d=>(0,Y.assertResponse)(await this.pageBlobContext.uploadPagesFromURL(e,(0,H.rangeToString)({offset:t,count:i}),0,(0,H.rangeToString)({offset:o,count:i}),{abortSignal:a.abortSignal,sourceContentMD5:a.sourceContentMD5,sourceContentCrc64:a.sourceContentCrc64,leaseAccessConditions:a.conditions,sequenceNumberAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:a.sourceConditions?.ifMatch,sourceIfModifiedSince:a.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:a.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:a.sourceConditions?.ifUnmodifiedSince},cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,copySourceAuthorization:(0,Y.httpAuthorizationToString)(a.sourceAuthorization),fileRequestIntent:a.sourceShareTokenIntent,tracingOptions:d.tracingOptions}))))}async clearPages(e=0,t,o={}){o.conditions=o.conditions||{};return Q.tracingClient.withSpan("PageBlobClient-clearPages",o,(async i=>(0,Y.assertResponse)(await this.pageBlobContext.clearPages(0,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},range:(0,H.rangeToString)({offset:e,count:t}),sequenceNumberAccessConditions:o.conditions,cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,tracingOptions:i.tracingOptions}))))}async getPageRanges(e=0,t,o={}){o.conditions=o.conditions||{};return Q.tracingClient.withSpan("PageBlobClient-getPageRanges",o,(async i=>{const a=(0,Y.assertResponse)(await this.pageBlobContext.getPageRanges({abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},range:(0,H.rangeToString)({offset:e,count:t}),tracingOptions:i.tracingOptions}));return(0,L.rangeResponseFromModel)(a)}))}async listPageRangesSegment(e=0,t,o,i={}){return Q.tracingClient.withSpan("PageBlobClient-getPageRangesSegment",i,(async a=>(0,Y.assertResponse)(await this.pageBlobContext.getPageRanges({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},range:(0,H.rangeToString)({offset:e,count:t}),marker:o,maxPageSize:i.maxPageSize,tracingOptions:a.tracingOptions}))))}async*listPageRangeItemSegments(e=0,t,o,i={}){let a;if(!!o||o===undefined){do{a=await this.listPageRangesSegment(e,t,o,i);o=a.continuationToken;yield await a}while(o)}}async*listPageRangeItems(e=0,t,o={}){let i;for await(const a of this.listPageRangeItemSegments(e,t,i,o)){yield*(0,Y.ExtractPageRangeInfoItems)(a)}}listPageRanges(e=0,t,o={}){o.conditions=o.conditions||{};const i=this.listPageRangeItems(e,t,o);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeItemSegments(e,t,i.continuationToken,{maxPageSize:i.maxPageSize,...o})}}async getPageRangesDiff(e,t,o,i={}){i.conditions=i.conditions||{};return Q.tracingClient.withSpan("PageBlobClient-getPageRangesDiff",i,(async a=>{const d=(0,Y.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},prevsnapshot:o,range:(0,H.rangeToString)({offset:e,count:t}),tracingOptions:a.tracingOptions}));return(0,L.rangeResponseFromModel)(d)}))}async listPageRangesDiffSegment(e,t,o,i,a={}){return Q.tracingClient.withSpan("PageBlobClient-getPageRangesDiffSegment",a,(async d=>(0,Y.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:a?.abortSignal,leaseAccessConditions:a?.conditions,modifiedAccessConditions:{...a?.conditions,ifTags:a?.conditions?.tagConditions},prevsnapshot:o,range:(0,H.rangeToString)({offset:e,count:t}),marker:i,maxPageSize:a?.maxPageSize,tracingOptions:d.tracingOptions}))))}async*listPageRangeDiffItemSegments(e,t,o,i,a){let d;if(!!i||i===undefined){do{d=await this.listPageRangesDiffSegment(e,t,o,i,a);i=d.continuationToken;yield await d}while(i)}}async*listPageRangeDiffItems(e,t,o,i){let a;for await(const d of this.listPageRangeDiffItemSegments(e,t,o,a,i)){yield*(0,Y.ExtractPageRangeInfoItems)(d)}}listPageRangesDiff(e,t,o,i={}){i.conditions=i.conditions||{};const a=this.listPageRangeDiffItems(e,t,o,{...i});return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(a={})=>this.listPageRangeDiffItemSegments(e,t,o,a.continuationToken,{maxPageSize:a.maxPageSize,...i})}}async getPageRangesDiffForManagedDisks(e,t,o,i={}){i.conditions=i.conditions||{};return Q.tracingClient.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",i,(async a=>{const d=(0,Y.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},prevSnapshotUrl:o,range:(0,H.rangeToString)({offset:e,count:t}),tracingOptions:a.tracingOptions}));return(0,L.rangeResponseFromModel)(d)}))}async resize(e,t={}){t.conditions=t.conditions||{};return Q.tracingClient.withSpan("PageBlobClient-resize",t,(async o=>(0,Y.assertResponse)(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:o.tracingOptions}))))}async updateSequenceNumber(e,t,o={}){o.conditions=o.conditions||{};return Q.tracingClient.withSpan("PageBlobClient-updateSequenceNumber",o,(async i=>(0,Y.assertResponse)(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:o.abortSignal,blobSequenceNumber:t,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},tracingOptions:i.tracingOptions}))))}async startCopyIncremental(e,t={}){return Q.tracingClient.withSpan("PageBlobClient-startCopyIncremental",t,(async o=>(0,Y.assertResponse)(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:o.tracingOptions}))))}}t.PageBlobClient=PageBlobClient},81884:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerClient=void 0;const i=o(20778);const a=o(87779);const d=o(50417);const m=o(51382);const f=o(25984);const h=o(73542);const P=o(53952);const _=o(47764);const L=o(656);const U=o(23276);const j=o(90372);const H=o(12094);class ContainerClient extends h.StorageClient{containerContext;_containerName;get containerName(){return this._containerName}constructor(e,t,o){let h;let P;o=o||{};if((0,f.isPipelineLike)(t)){P=e;h=t}else if(a.isNodeLike&&t instanceof m.StorageSharedKeyCredential||t instanceof m.AnonymousCredential||(0,d.isTokenCredential)(t)){P=e;h=(0,f.newPipeline)(t,o)}else if(!t&&typeof t!=="string"){P=e;h=(0,f.newPipeline)(new m.AnonymousCredential,o)}else if(t&&typeof t==="string"){const d=t;const L=(0,_.extractConnectionStringParts)(e);if(L.kind==="AccountConnString"){if(a.isNodeLike){const e=new m.StorageSharedKeyCredential(L.accountName,L.accountKey);P=(0,_.appendToURLPath)(L.url,encodeURIComponent(d));if(!o.proxyOptions){o.proxyOptions=(0,i.getDefaultProxySettings)(L.proxyUri)}h=(0,f.newPipeline)(e,o)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(L.kind==="SASConnString"){P=(0,_.appendToURLPath)(L.url,encodeURIComponent(d))+"?"+L.accountSas;h=(0,f.newPipeline)(new m.AnonymousCredential,o)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName parameter")}super(P,h);this._containerName=this.getContainerNameFromUrl();this.containerContext=this.storageClientContext.container}async create(e={}){return P.tracingClient.withSpan("ContainerClient-create",e,(async e=>(0,_.assertResponse)(await this.containerContext.create(e))))}async createIfNotExists(e={}){return P.tracingClient.withSpan("ContainerClient-createIfNotExists",e,(async e=>{try{const t=await this.create(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}else{throw e}}}))}async exists(e={}){return P.tracingClient.withSpan("ContainerClient-exists",e,(async t=>{try{await this.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}throw e}}))}getBlobClient(e){return new j.BlobClient((0,_.appendToURLPath)(this.url,(0,_.EscapePath)(e)),this.pipeline)}getAppendBlobClient(e){return new j.AppendBlobClient((0,_.appendToURLPath)(this.url,(0,_.EscapePath)(e)),this.pipeline)}getBlockBlobClient(e){return new j.BlockBlobClient((0,_.appendToURLPath)(this.url,(0,_.EscapePath)(e)),this.pipeline)}getPageBlobClient(e){return new j.PageBlobClient((0,_.appendToURLPath)(this.url,(0,_.EscapePath)(e)),this.pipeline)}async getProperties(e={}){if(!e.conditions){e.conditions={}}return P.tracingClient.withSpan("ContainerClient-getProperties",e,(async t=>(0,_.assertResponse)(await this.containerContext.getProperties({abortSignal:e.abortSignal,...e.conditions,tracingOptions:t.tracingOptions}))))}async delete(e={}){if(!e.conditions){e.conditions={}}return P.tracingClient.withSpan("ContainerClient-delete",e,(async t=>(0,_.assertResponse)(await this.containerContext.delete({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return P.tracingClient.withSpan("ContainerClient-deleteIfExists",e,(async e=>{try{const t=await this.delete(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async setMetadata(e,t={}){if(!t.conditions){t.conditions={}}if(t.conditions.ifUnmodifiedSince){throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service")}return P.tracingClient.withSpan("ContainerClient-setMetadata",t,(async o=>(0,_.assertResponse)(await this.containerContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:t.conditions,tracingOptions:o.tracingOptions}))))}async getAccessPolicy(e={}){if(!e.conditions){e.conditions={}}return P.tracingClient.withSpan("ContainerClient-getAccessPolicy",e,(async t=>{const o=(0,_.assertResponse)(await this.containerContext.getAccessPolicy({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));const i={_response:o._response,blobPublicAccess:o.blobPublicAccess,date:o.date,etag:o.etag,errorCode:o.errorCode,lastModified:o.lastModified,requestId:o.requestId,clientRequestId:o.clientRequestId,signedIdentifiers:[],version:o.version};for(const e of o){let t=undefined;if(e.accessPolicy){t={permissions:e.accessPolicy.permissions};if(e.accessPolicy.expiresOn){t.expiresOn=new Date(e.accessPolicy.expiresOn)}if(e.accessPolicy.startsOn){t.startsOn=new Date(e.accessPolicy.startsOn)}}i.signedIdentifiers.push({accessPolicy:t,id:e.id})}return i}))}async setAccessPolicy(e,t,o={}){o.conditions=o.conditions||{};return P.tracingClient.withSpan("ContainerClient-setAccessPolicy",o,(async i=>{const a=[];for(const e of t||[]){a.push({accessPolicy:{expiresOn:e.accessPolicy.expiresOn?(0,_.truncatedISO8061Date)(e.accessPolicy.expiresOn):"",permissions:e.accessPolicy.permissions,startsOn:e.accessPolicy.startsOn?(0,_.truncatedISO8061Date)(e.accessPolicy.startsOn):""},id:e.id})}return(0,_.assertResponse)(await this.containerContext.setAccessPolicy({abortSignal:o.abortSignal,access:e,containerAcl:a,leaseAccessConditions:o.conditions,modifiedAccessConditions:o.conditions,tracingOptions:i.tracingOptions}))}))}getBlobLeaseClient(e){return new U.BlobLeaseClient(this,e)}async uploadBlockBlob(e,t,o,i={}){return P.tracingClient.withSpan("ContainerClient-uploadBlockBlob",i,(async i=>{const a=this.getBlockBlobClient(e);const d=await a.upload(t,o,i);return{blockBlobClient:a,response:d}}))}async deleteBlob(e,t={}){return P.tracingClient.withSpan("ContainerClient-deleteBlob",t,(async o=>{let i=this.getBlobClient(e);if(t.versionId){i=i.withVersion(t.versionId)}return i.delete(o)}))}async listBlobFlatSegment(e,t={}){return P.tracingClient.withSpan("ContainerClient-listBlobFlatSegment",t,(async o=>{const i=(0,_.assertResponse)(await this.containerContext.listBlobFlatSegment({marker:e,...t,tracingOptions:o.tracingOptions}));const a={...i,_response:{...i._response,parsedBody:(0,_.ConvertInternalResponseOfListBlobFlat)(i._response.parsedBody)},segment:{...i.segment,blobItems:i.segment.blobItems.map((e=>{const t={...e,name:(0,_.BlobNameToString)(e.name),tags:(0,_.toTags)(e.blobTags),objectReplicationSourceProperties:(0,_.parseObjectReplicationRecord)(e.objectReplicationMetadata)};return t}))}};return a}))}async listBlobHierarchySegment(e,t,o={}){return P.tracingClient.withSpan("ContainerClient-listBlobHierarchySegment",o,(async i=>{const a=(0,_.assertResponse)(await this.containerContext.listBlobHierarchySegment(e,{marker:t,...o,tracingOptions:i.tracingOptions}));const d={...a,_response:{...a._response,parsedBody:(0,_.ConvertInternalResponseOfListBlobHierarchy)(a._response.parsedBody)},segment:{...a.segment,blobItems:a.segment.blobItems.map((e=>{const t={...e,name:(0,_.BlobNameToString)(e.name),tags:(0,_.toTags)(e.blobTags),objectReplicationSourceProperties:(0,_.parseObjectReplicationRecord)(e.objectReplicationMetadata)};return t})),blobPrefixes:a.segment.blobPrefixes?.map((e=>{const t={...e,name:(0,_.BlobNameToString)(e.name)};return t}))}};return d}))}async*listSegments(e,t={}){let o;if(!!e||e===undefined){do{o=await this.listBlobFlatSegment(e,t);e=o.continuationToken;yield await o}while(e)}}async*listItems(e={}){let t;for await(const o of this.listSegments(t,e)){yield*o.segment.blobItems}}listBlobsFlat(e={}){const t=[];if(e.includeCopy){t.push("copy")}if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSnapshots){t.push("snapshots")}if(e.includeVersions){t.push("versions")}if(e.includeUncommitedBlobs){t.push("uncommittedblobs")}if(e.includeTags){t.push("tags")}if(e.includeDeletedWithVersions){t.push("deletedwithversions")}if(e.includeImmutabilityPolicy){t.push("immutabilitypolicy")}if(e.includeLegalHold){t.push("legalhold")}if(e.prefix===""){e.prefix=undefined}const o={...e,...t.length>0?{include:t}:{}};const i=this.listItems(o);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...o})}}async*listHierarchySegments(e,t,o={}){let i;if(!!t||t===undefined){do{i=await this.listBlobHierarchySegment(e,t,o);t=i.continuationToken;yield await i}while(t)}}async*listItemsByHierarchy(e,t={}){let o;for await(const i of this.listHierarchySegments(e,o,t)){const e=i.segment;if(e.blobPrefixes){for(const t of e.blobPrefixes){yield{kind:"prefix",...t}}}for(const t of e.blobItems){yield{kind:"blob",...t}}}}listBlobsByHierarchy(e,t={}){if(e===""){throw new RangeError("delimiter should contain one or more characters")}const o=[];if(t.includeCopy){o.push("copy")}if(t.includeDeleted){o.push("deleted")}if(t.includeMetadata){o.push("metadata")}if(t.includeSnapshots){o.push("snapshots")}if(t.includeVersions){o.push("versions")}if(t.includeUncommitedBlobs){o.push("uncommittedblobs")}if(t.includeTags){o.push("tags")}if(t.includeDeletedWithVersions){o.push("deletedwithversions")}if(t.includeImmutabilityPolicy){o.push("immutabilitypolicy")}if(t.includeLegalHold){o.push("legalhold")}if(t.prefix===""){t.prefix=undefined}const i={...t,...o.length>0?{include:o}:{}};const a=this.listItemsByHierarchy(e,i);return{async next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.listHierarchySegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...i})}}async findBlobsByTagsSegment(e,t,o={}){return P.tracingClient.withSpan("ContainerClient-findBlobsByTagsSegment",o,(async i=>{const a=(0,_.assertResponse)(await this.containerContext.filterBlobs({abortSignal:o.abortSignal,where:e,marker:t,maxPageSize:o.maxPageSize,tracingOptions:i.tracingOptions}));const d={...a,_response:a._response,blobs:a.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:(0,_.toTags)(e.tags),tagValue:t}}))};return d}))}async*findBlobsByTagsSegments(e,t,o={}){let i;if(!!t||t===undefined){do{i=await this.findBlobsByTagsSegment(e,t,o);i.blobs=i.blobs||[];t=i.continuationToken;yield i}while(t)}}async*findBlobsByTagsItems(e,t={}){let o;for await(const i of this.findBlobsByTagsSegments(e,o,t)){yield*i.blobs}}findBlobsByTags(e,t={}){const o={...t};const i=this.findBlobsByTagsItems(e,o);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...o})}}async getAccountInfo(e={}){return P.tracingClient.withSpan("ContainerClient-getAccountInfo",e,(async t=>(0,_.assertResponse)(await this.containerContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}getContainerNameFromUrl(){let e;try{const t=new URL(this.url);if(t.hostname.split(".")[1]==="blob"){e=t.pathname.split("/")[1]}else if((0,_.isIpEndpointStyle)(t)){e=t.pathname.split("/")[2]}else{e=t.pathname.split("/")[1]}e=decodeURIComponent(e);if(!e){throw new Error("Provided containerName is invalid.")}return e}catch(e){throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof m.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const o=(0,L.generateBlobSASQueryParameters)({containerName:this._containerName,...e},this.credential).toString();t((0,_.appendToURLQuery)(this.url,o))}))}generateSasStringToSign(e){if(!(this.credential instanceof m.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return(0,L.generateBlobSASQueryParametersInternal)({containerName:this._containerName,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((o=>{const i=(0,L.generateBlobSASQueryParameters)({containerName:this._containerName,...e},t,this.accountName).toString();o((0,_.appendToURLQuery)(this.url,i))}))}generateUserDelegationSasStringToSign(e,t){return(0,L.generateBlobSASQueryParametersInternal)({containerName:this._containerName,...e},t,this.accountName).stringToSign}getBlobBatchClient(){return new H.BlobBatchClient(this.url,this.pipeline)}}t.ContainerClient=ContainerClient},95302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.rangeResponseFromModel=rangeResponseFromModel;function rangeResponseFromModel(e){const t=(e._response.parsedBody.pageRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));const o=(e._response.parsedBody.clearRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));return{...e,pageRange:t,clearRange:o,_response:{...e._response,parsedBody:{pageRange:t,clearRange:o}}}}},25984:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Pipeline=t.StorageOAuthScopes=void 0;t.isPipelineLike=isPipelineLike;t.newPipeline=newPipeline;t.getCoreClientOptions=getCoreClientOptions;t.getCredentialFromPipeline=getCredentialFromPipeline;const i=o(61584);const a=o(20778);const d=o(60160);const m=o(78756);const f=o(50417);const h=o(46370);const P=o(51382);const _=o(27323);Object.defineProperty(t,"StorageOAuthScopes",{enumerable:true,get:function(){return _.StorageOAuthScopes}});function isPipelineLike(e){if(!e||typeof e!=="object"){return false}const t=e;return Array.isArray(t.factories)&&typeof t.options==="object"&&typeof t.toServiceClientOptions==="function"}class Pipeline{factories;options;constructor(e,t={}){this.factories=e;this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}t.Pipeline=Pipeline;function newPipeline(e,t={}){if(!e){e=new P.AnonymousCredential}const o=new Pipeline([],t);o._credential=e;return o}function processDownlevelPipeline(e){const t=[isAnonymousCredential,isStorageSharedKeyCredential,isCoreHttpBearerTokenFactory,isStorageBrowserPolicyFactory,isStorageRetryPolicyFactory,isStorageTelemetryPolicyFactory,isCoreHttpPolicyFactory];if(e.factories.length){const o=e.factories.filter((e=>!t.some((t=>t(e)))));if(o.length){const e=o.some((e=>isInjectorPolicyFactory(e)));return{wrappedPolicies:(0,i.createRequestPolicyFactoryPolicy)(o),afterRetry:e}}}return undefined}function getCoreClientOptions(e){const{httpClient:t,...o}=e.options;let L=e._coreHttpClient;if(!L){L=t?(0,i.convertHttpClient)(t):(0,P.getCachedDefaultHttpClient)();e._coreHttpClient=L}let U=e._corePipeline;if(!U){const t=`azsdk-js-azure-storage-blob/${_.SDK_VERSION}`;const i=o.userAgentOptions&&o.userAgentOptions.userAgentPrefix?`${o.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;U=(0,d.createClientPipeline)({...o,loggingOptions:{additionalAllowedHeaderNames:_.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:_.StorageBlobLoggingAllowedQueryParameters,logger:h.logger.info},userAgentOptions:{userAgentPrefix:i},serializationOptions:{stringifyXML:m.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:m.parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}});U.removePolicy({phase:"Retry"});U.removePolicy({name:a.decompressResponsePolicyName});U.addPolicy((0,P.storageCorrectContentLengthPolicy)());U.addPolicy((0,P.storageRetryPolicy)(o.retryOptions),{phase:"Retry"});U.addPolicy((0,P.storageRequestFailureDetailsParserPolicy)());U.addPolicy((0,P.storageBrowserPolicy)());const L=processDownlevelPipeline(e);if(L){U.addPolicy(L.wrappedPolicies,L.afterRetry?{afterPhase:"Retry"}:undefined)}const j=getCredentialFromPipeline(e);if((0,f.isTokenCredential)(j)){U.addPolicy((0,a.bearerTokenAuthenticationPolicy)({credential:j,scopes:o.audience??_.StorageOAuthScopes,challengeCallbacks:{authorizeRequestOnChallenge:d.authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(j instanceof P.StorageSharedKeyCredential){U.addPolicy((0,P.storageSharedKeyCredentialPolicy)({accountName:j.accountName,accountKey:j.accountKey}),{phase:"Sign"})}e._corePipeline=U}return{...o,allowInsecureConnection:true,httpClient:L,pipeline:U}}function getCredentialFromPipeline(e){if(e._credential){return e._credential}let t=new P.AnonymousCredential;for(const o of e.factories){if((0,f.isTokenCredential)(o.credential)){t=o.credential}else if(isStorageSharedKeyCredential(o)){return o}}return t}function isStorageSharedKeyCredential(e){if(e instanceof P.StorageSharedKeyCredential){return true}return e.constructor.name==="StorageSharedKeyCredential"}function isAnonymousCredential(e){if(e instanceof P.AnonymousCredential){return true}return e.constructor.name==="AnonymousCredential"}function isCoreHttpBearerTokenFactory(e){return(0,f.isTokenCredential)(e.credential)}function isStorageBrowserPolicyFactory(e){if(e instanceof P.StorageBrowserPolicyFactory){return true}return e.constructor.name==="StorageBrowserPolicyFactory"}function isStorageRetryPolicyFactory(e){if(e instanceof P.StorageRetryPolicyFactory){return true}return e.constructor.name==="StorageRetryPolicyFactory"}function isStorageTelemetryPolicyFactory(e){return e.constructor.name==="TelemetryPolicyFactory"}function isInjectorPolicyFactory(e){return e.constructor.name==="InjectorPolicyFactory"}function isCoreHttpPolicyFactory(e){const t=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"];const o={sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})};const i={log(e,t){},shouldLog(e){return false}};const a=e.create(o,i);const d=a.constructor.name;return t.some((e=>d.startsWith(e)))}},52045:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.rangeToString=rangeToString;function rangeToString(e){if(e.offset<0){throw new RangeError(`Range.offset cannot be smaller than 0.`)}if(e.count&&e.count<=0){throw new RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`)}return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}},73542:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const i=o(53789);const a=o(25984);const d=o(47764);class StorageClient{url;accountName;pipeline;credential;storageClientContext;isHttps;constructor(e,t){this.url=(0,d.escapeURLPath)(e);this.accountName=(0,d.getAccountNameFromUrl)(e);this.pipeline=t;this.storageClientContext=new i.StorageContextClient(this.url,(0,a.getCoreClientOptions)(t));this.isHttps=(0,d.iEqual)((0,d.getURLScheme)(this.url)||"","https");this.credential=(0,a.getCredentialFromPipeline)(t);const o=this.storageClientContext;o.requestContentType=undefined}}t.StorageClient=StorageClient},53789:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageContextClient=void 0;const i=o(30247);class StorageContextClient extends i.StorageClient{async sendOperationRequest(e,t){const o={...t};if(o.path==="/{containerName}"||o.path==="/{containerName}/{blob}"){o.path=""}return super.sendOperationRequest(e,o)}}t.StorageContextClient=StorageContextClient},30247:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const i=o(61860);i.__exportStar(o(12362),t);var a=o(5313);Object.defineProperty(t,"StorageClient",{enumerable:true,get:function(){return a.StorageClient}});i.__exportStar(o(82354),t)},12362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KnownStorageErrorCode=t.KnownBlobExpiryOptions=t.KnownFileShareTokenIntent=t.KnownEncryptionAlgorithmType=void 0;var o;(function(e){e["AES256"]="AES256"})(o||(t.KnownEncryptionAlgorithmType=o={}));var i;(function(e){e["Backup"]="backup"})(i||(t.KnownFileShareTokenIntent=i={}));var a;(function(e){e["NeverExpire"]="NeverExpire";e["RelativeToCreation"]="RelativeToCreation";e["RelativeToNow"]="RelativeToNow";e["Absolute"]="Absolute"})(a||(t.KnownBlobExpiryOptions=a={}));var d;(function(e){e["AccountAlreadyExists"]="AccountAlreadyExists";e["AccountBeingCreated"]="AccountBeingCreated";e["AccountIsDisabled"]="AccountIsDisabled";e["AuthenticationFailed"]="AuthenticationFailed";e["AuthorizationFailure"]="AuthorizationFailure";e["ConditionHeadersNotSupported"]="ConditionHeadersNotSupported";e["ConditionNotMet"]="ConditionNotMet";e["EmptyMetadataKey"]="EmptyMetadataKey";e["InsufficientAccountPermissions"]="InsufficientAccountPermissions";e["InternalError"]="InternalError";e["InvalidAuthenticationInfo"]="InvalidAuthenticationInfo";e["InvalidHeaderValue"]="InvalidHeaderValue";e["InvalidHttpVerb"]="InvalidHttpVerb";e["InvalidInput"]="InvalidInput";e["InvalidMd5"]="InvalidMd5";e["InvalidMetadata"]="InvalidMetadata";e["InvalidQueryParameterValue"]="InvalidQueryParameterValue";e["InvalidRange"]="InvalidRange";e["InvalidResourceName"]="InvalidResourceName";e["InvalidUri"]="InvalidUri";e["InvalidXmlDocument"]="InvalidXmlDocument";e["InvalidXmlNodeValue"]="InvalidXmlNodeValue";e["Md5Mismatch"]="Md5Mismatch";e["MetadataTooLarge"]="MetadataTooLarge";e["MissingContentLengthHeader"]="MissingContentLengthHeader";e["MissingRequiredQueryParameter"]="MissingRequiredQueryParameter";e["MissingRequiredHeader"]="MissingRequiredHeader";e["MissingRequiredXmlNode"]="MissingRequiredXmlNode";e["MultipleConditionHeadersNotSupported"]="MultipleConditionHeadersNotSupported";e["OperationTimedOut"]="OperationTimedOut";e["OutOfRangeInput"]="OutOfRangeInput";e["OutOfRangeQueryParameterValue"]="OutOfRangeQueryParameterValue";e["RequestBodyTooLarge"]="RequestBodyTooLarge";e["ResourceTypeMismatch"]="ResourceTypeMismatch";e["RequestUrlFailedToParse"]="RequestUrlFailedToParse";e["ResourceAlreadyExists"]="ResourceAlreadyExists";e["ResourceNotFound"]="ResourceNotFound";e["ServerBusy"]="ServerBusy";e["UnsupportedHeader"]="UnsupportedHeader";e["UnsupportedXmlNode"]="UnsupportedXmlNode";e["UnsupportedQueryParameter"]="UnsupportedQueryParameter";e["UnsupportedHttpVerb"]="UnsupportedHttpVerb";e["AppendPositionConditionNotMet"]="AppendPositionConditionNotMet";e["BlobAlreadyExists"]="BlobAlreadyExists";e["BlobImmutableDueToPolicy"]="BlobImmutableDueToPolicy";e["BlobNotFound"]="BlobNotFound";e["BlobOverwritten"]="BlobOverwritten";e["BlobTierInadequateForContentLength"]="BlobTierInadequateForContentLength";e["BlobUsesCustomerSpecifiedEncryption"]="BlobUsesCustomerSpecifiedEncryption";e["BlockCountExceedsLimit"]="BlockCountExceedsLimit";e["BlockListTooLong"]="BlockListTooLong";e["CannotChangeToLowerTier"]="CannotChangeToLowerTier";e["CannotVerifyCopySource"]="CannotVerifyCopySource";e["ContainerAlreadyExists"]="ContainerAlreadyExists";e["ContainerBeingDeleted"]="ContainerBeingDeleted";e["ContainerDisabled"]="ContainerDisabled";e["ContainerNotFound"]="ContainerNotFound";e["ContentLengthLargerThanTierLimit"]="ContentLengthLargerThanTierLimit";e["CopyAcrossAccountsNotSupported"]="CopyAcrossAccountsNotSupported";e["CopyIdMismatch"]="CopyIdMismatch";e["FeatureVersionMismatch"]="FeatureVersionMismatch";e["IncrementalCopyBlobMismatch"]="IncrementalCopyBlobMismatch";e["IncrementalCopyOfEarlierVersionSnapshotNotAllowed"]="IncrementalCopyOfEarlierVersionSnapshotNotAllowed";e["IncrementalCopySourceMustBeSnapshot"]="IncrementalCopySourceMustBeSnapshot";e["InfiniteLeaseDurationRequired"]="InfiniteLeaseDurationRequired";e["InvalidBlobOrBlock"]="InvalidBlobOrBlock";e["InvalidBlobTier"]="InvalidBlobTier";e["InvalidBlobType"]="InvalidBlobType";e["InvalidBlockId"]="InvalidBlockId";e["InvalidBlockList"]="InvalidBlockList";e["InvalidOperation"]="InvalidOperation";e["InvalidPageRange"]="InvalidPageRange";e["InvalidSourceBlobType"]="InvalidSourceBlobType";e["InvalidSourceBlobUrl"]="InvalidSourceBlobUrl";e["InvalidVersionForPageBlobOperation"]="InvalidVersionForPageBlobOperation";e["LeaseAlreadyPresent"]="LeaseAlreadyPresent";e["LeaseAlreadyBroken"]="LeaseAlreadyBroken";e["LeaseIdMismatchWithBlobOperation"]="LeaseIdMismatchWithBlobOperation";e["LeaseIdMismatchWithContainerOperation"]="LeaseIdMismatchWithContainerOperation";e["LeaseIdMismatchWithLeaseOperation"]="LeaseIdMismatchWithLeaseOperation";e["LeaseIdMissing"]="LeaseIdMissing";e["LeaseIsBreakingAndCannotBeAcquired"]="LeaseIsBreakingAndCannotBeAcquired";e["LeaseIsBreakingAndCannotBeChanged"]="LeaseIsBreakingAndCannotBeChanged";e["LeaseIsBrokenAndCannotBeRenewed"]="LeaseIsBrokenAndCannotBeRenewed";e["LeaseLost"]="LeaseLost";e["LeaseNotPresentWithBlobOperation"]="LeaseNotPresentWithBlobOperation";e["LeaseNotPresentWithContainerOperation"]="LeaseNotPresentWithContainerOperation";e["LeaseNotPresentWithLeaseOperation"]="LeaseNotPresentWithLeaseOperation";e["MaxBlobSizeConditionNotMet"]="MaxBlobSizeConditionNotMet";e["NoAuthenticationInformation"]="NoAuthenticationInformation";e["NoPendingCopyOperation"]="NoPendingCopyOperation";e["OperationNotAllowedOnIncrementalCopyBlob"]="OperationNotAllowedOnIncrementalCopyBlob";e["PendingCopyOperation"]="PendingCopyOperation";e["PreviousSnapshotCannotBeNewer"]="PreviousSnapshotCannotBeNewer";e["PreviousSnapshotNotFound"]="PreviousSnapshotNotFound";e["PreviousSnapshotOperationNotSupported"]="PreviousSnapshotOperationNotSupported";e["SequenceNumberConditionNotMet"]="SequenceNumberConditionNotMet";e["SequenceNumberIncrementTooLarge"]="SequenceNumberIncrementTooLarge";e["SnapshotCountExceeded"]="SnapshotCountExceeded";e["SnapshotOperationRateExceeded"]="SnapshotOperationRateExceeded";e["SnapshotsPresent"]="SnapshotsPresent";e["SourceConditionNotMet"]="SourceConditionNotMet";e["SystemInUse"]="SystemInUse";e["TargetConditionNotMet"]="TargetConditionNotMet";e["UnauthorizedBlobOverwrite"]="UnauthorizedBlobOverwrite";e["BlobBeingRehydrated"]="BlobBeingRehydrated";e["BlobArchived"]="BlobArchived";e["BlobNotArchived"]="BlobNotArchived";e["AuthorizationSourceIPMismatch"]="AuthorizationSourceIPMismatch";e["AuthorizationProtocolMismatch"]="AuthorizationProtocolMismatch";e["AuthorizationPermissionMismatch"]="AuthorizationPermissionMismatch";e["AuthorizationServiceMismatch"]="AuthorizationServiceMismatch";e["AuthorizationResourceTypeMismatch"]="AuthorizationResourceTypeMismatch";e["BlobAccessTierNotSupportedForAccountType"]="BlobAccessTierNotSupportedForAccountType"})(d||(t.KnownStorageErrorCode=d={}))},84424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceGetUserDelegationKeyHeaders=t.ServiceListContainersSegmentExceptionHeaders=t.ServiceListContainersSegmentHeaders=t.ServiceGetStatisticsExceptionHeaders=t.ServiceGetStatisticsHeaders=t.ServiceGetPropertiesExceptionHeaders=t.ServiceGetPropertiesHeaders=t.ServiceSetPropertiesExceptionHeaders=t.ServiceSetPropertiesHeaders=t.ArrowField=t.ArrowConfiguration=t.JsonTextConfiguration=t.DelimitedTextConfiguration=t.QueryFormat=t.QuerySerialization=t.QueryRequest=t.ClearRange=t.PageRange=t.PageList=t.Block=t.BlockList=t.BlockLookupList=t.BlobPrefix=t.BlobHierarchyListSegment=t.ListBlobsHierarchySegmentResponse=t.BlobPropertiesInternal=t.BlobName=t.BlobItemInternal=t.BlobFlatListSegment=t.ListBlobsFlatSegmentResponse=t.AccessPolicy=t.SignedIdentifier=t.BlobTag=t.BlobTags=t.FilterBlobItem=t.FilterBlobSegment=t.UserDelegationKey=t.KeyInfo=t.ContainerProperties=t.ContainerItem=t.ListContainersSegmentResponse=t.GeoReplication=t.BlobServiceStatistics=t.StorageError=t.StaticWebsite=t.CorsRule=t.Metrics=t.RetentionPolicy=t.Logging=t.BlobServiceProperties=void 0;t.BlobUndeleteHeaders=t.BlobDeleteExceptionHeaders=t.BlobDeleteHeaders=t.BlobGetPropertiesExceptionHeaders=t.BlobGetPropertiesHeaders=t.BlobDownloadExceptionHeaders=t.BlobDownloadHeaders=t.ContainerGetAccountInfoExceptionHeaders=t.ContainerGetAccountInfoHeaders=t.ContainerListBlobHierarchySegmentExceptionHeaders=t.ContainerListBlobHierarchySegmentHeaders=t.ContainerListBlobFlatSegmentExceptionHeaders=t.ContainerListBlobFlatSegmentHeaders=t.ContainerChangeLeaseExceptionHeaders=t.ContainerChangeLeaseHeaders=t.ContainerBreakLeaseExceptionHeaders=t.ContainerBreakLeaseHeaders=t.ContainerRenewLeaseExceptionHeaders=t.ContainerRenewLeaseHeaders=t.ContainerReleaseLeaseExceptionHeaders=t.ContainerReleaseLeaseHeaders=t.ContainerAcquireLeaseExceptionHeaders=t.ContainerAcquireLeaseHeaders=t.ContainerFilterBlobsExceptionHeaders=t.ContainerFilterBlobsHeaders=t.ContainerSubmitBatchExceptionHeaders=t.ContainerSubmitBatchHeaders=t.ContainerRenameExceptionHeaders=t.ContainerRenameHeaders=t.ContainerRestoreExceptionHeaders=t.ContainerRestoreHeaders=t.ContainerSetAccessPolicyExceptionHeaders=t.ContainerSetAccessPolicyHeaders=t.ContainerGetAccessPolicyExceptionHeaders=t.ContainerGetAccessPolicyHeaders=t.ContainerSetMetadataExceptionHeaders=t.ContainerSetMetadataHeaders=t.ContainerDeleteExceptionHeaders=t.ContainerDeleteHeaders=t.ContainerGetPropertiesExceptionHeaders=t.ContainerGetPropertiesHeaders=t.ContainerCreateExceptionHeaders=t.ContainerCreateHeaders=t.ServiceFilterBlobsExceptionHeaders=t.ServiceFilterBlobsHeaders=t.ServiceSubmitBatchExceptionHeaders=t.ServiceSubmitBatchHeaders=t.ServiceGetAccountInfoExceptionHeaders=t.ServiceGetAccountInfoHeaders=t.ServiceGetUserDelegationKeyExceptionHeaders=void 0;t.PageBlobGetPageRangesHeaders=t.PageBlobUploadPagesFromURLExceptionHeaders=t.PageBlobUploadPagesFromURLHeaders=t.PageBlobClearPagesExceptionHeaders=t.PageBlobClearPagesHeaders=t.PageBlobUploadPagesExceptionHeaders=t.PageBlobUploadPagesHeaders=t.PageBlobCreateExceptionHeaders=t.PageBlobCreateHeaders=t.BlobSetTagsExceptionHeaders=t.BlobSetTagsHeaders=t.BlobGetTagsExceptionHeaders=t.BlobGetTagsHeaders=t.BlobQueryExceptionHeaders=t.BlobQueryHeaders=t.BlobGetAccountInfoExceptionHeaders=t.BlobGetAccountInfoHeaders=t.BlobSetTierExceptionHeaders=t.BlobSetTierHeaders=t.BlobAbortCopyFromURLExceptionHeaders=t.BlobAbortCopyFromURLHeaders=t.BlobCopyFromURLExceptionHeaders=t.BlobCopyFromURLHeaders=t.BlobStartCopyFromURLExceptionHeaders=t.BlobStartCopyFromURLHeaders=t.BlobCreateSnapshotExceptionHeaders=t.BlobCreateSnapshotHeaders=t.BlobBreakLeaseExceptionHeaders=t.BlobBreakLeaseHeaders=t.BlobChangeLeaseExceptionHeaders=t.BlobChangeLeaseHeaders=t.BlobRenewLeaseExceptionHeaders=t.BlobRenewLeaseHeaders=t.BlobReleaseLeaseExceptionHeaders=t.BlobReleaseLeaseHeaders=t.BlobAcquireLeaseExceptionHeaders=t.BlobAcquireLeaseHeaders=t.BlobSetMetadataExceptionHeaders=t.BlobSetMetadataHeaders=t.BlobSetLegalHoldExceptionHeaders=t.BlobSetLegalHoldHeaders=t.BlobDeleteImmutabilityPolicyExceptionHeaders=t.BlobDeleteImmutabilityPolicyHeaders=t.BlobSetImmutabilityPolicyExceptionHeaders=t.BlobSetImmutabilityPolicyHeaders=t.BlobSetHttpHeadersExceptionHeaders=t.BlobSetHttpHeadersHeaders=t.BlobSetExpiryExceptionHeaders=t.BlobSetExpiryHeaders=t.BlobUndeleteExceptionHeaders=void 0;t.BlockBlobGetBlockListExceptionHeaders=t.BlockBlobGetBlockListHeaders=t.BlockBlobCommitBlockListExceptionHeaders=t.BlockBlobCommitBlockListHeaders=t.BlockBlobStageBlockFromURLExceptionHeaders=t.BlockBlobStageBlockFromURLHeaders=t.BlockBlobStageBlockExceptionHeaders=t.BlockBlobStageBlockHeaders=t.BlockBlobPutBlobFromUrlExceptionHeaders=t.BlockBlobPutBlobFromUrlHeaders=t.BlockBlobUploadExceptionHeaders=t.BlockBlobUploadHeaders=t.AppendBlobSealExceptionHeaders=t.AppendBlobSealHeaders=t.AppendBlobAppendBlockFromUrlExceptionHeaders=t.AppendBlobAppendBlockFromUrlHeaders=t.AppendBlobAppendBlockExceptionHeaders=t.AppendBlobAppendBlockHeaders=t.AppendBlobCreateExceptionHeaders=t.AppendBlobCreateHeaders=t.PageBlobCopyIncrementalExceptionHeaders=t.PageBlobCopyIncrementalHeaders=t.PageBlobUpdateSequenceNumberExceptionHeaders=t.PageBlobUpdateSequenceNumberHeaders=t.PageBlobResizeExceptionHeaders=t.PageBlobResizeHeaders=t.PageBlobGetPageRangesDiffExceptionHeaders=t.PageBlobGetPageRangesDiffHeaders=t.PageBlobGetPageRangesExceptionHeaders=void 0;t.BlobServiceProperties={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:true,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}};t.Logging={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:true,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:true,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:true,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:true,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};t.RetentionPolicy={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}};t.Metrics={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};t.CorsRule={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:true,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:true,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:true,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:true,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:true,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}};t.StaticWebsite={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}};t.StorageError={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},copySourceStatusCode:{serializedName:"CopySourceStatusCode",xmlName:"CopySourceStatusCode",type:{name:"Number"}},copySourceErrorCode:{serializedName:"CopySourceErrorCode",xmlName:"CopySourceErrorCode",type:{name:"String"}},copySourceErrorMessage:{serializedName:"CopySourceErrorMessage",xmlName:"CopySourceErrorMessage",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}},authenticationErrorDetail:{serializedName:"AuthenticationErrorDetail",xmlName:"AuthenticationErrorDetail",type:{name:"String"}}}}};t.BlobServiceStatistics={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};t.GeoReplication={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:true,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:true,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}};t.ListContainersSegmentResponse={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:true,xmlName:"Containers",xmlIsWrapped:true,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.ContainerItem={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}};t.ContainerProperties={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}};t.KeyInfo={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:true,xmlName:"Expiry",type:{name:"String"}}}}};t.UserDelegationKey={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:true,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:true,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:true,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:true,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:true,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:true,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};t.FilterBlobSegment={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},where:{serializedName:"Where",required:true,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:true,xmlName:"Blobs",xmlIsWrapped:true,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.FilterBlobItem={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}};t.BlobTags={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:true,xmlName:"TagSet",xmlIsWrapped:true,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}};t.BlobTag={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:true,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};t.SignedIdentifier={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:true,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}};t.AccessPolicy={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}};t.ListBlobsFlatSegmentResponse={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.BlobFlatListSegment={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};t.BlobItemInternal={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:true,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:true,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}};t.BlobName={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:true,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:true,type:{name:"String"}}}}};t.BlobPropertiesInternal={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","rehydrate-pending-to-cold"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}};t.ListBlobsHierarchySegmentResponse={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.BlobHierarchyListSegment={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};t.BlobPrefix={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};t.BlockLookupList={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}};t.BlockList={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}};t.Block={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:true,xmlName:"Size",type:{name:"Number"}}}}};t.PageList={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.PageRange={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};t.ClearRange={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};t.QueryRequest={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:true,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:true,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}};t.QuerySerialization={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};t.QueryFormat={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}};t.DelimitedTextConfiguration={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}};t.JsonTextConfiguration={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};t.ArrowConfiguration={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:true,xmlName:"Schema",xmlIsWrapped:true,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}};t.ArrowField={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}};t.ServiceSetPropertiesHeaders={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceSetPropertiesExceptionHeaders={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetPropertiesHeaders={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetPropertiesExceptionHeaders={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetStatisticsHeaders={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetStatisticsExceptionHeaders={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceListContainersSegmentHeaders={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceListContainersSegmentExceptionHeaders={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetUserDelegationKeyHeaders={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetUserDelegationKeyExceptionHeaders={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetAccountInfoHeaders={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetAccountInfoExceptionHeaders={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceSubmitBatchHeaders={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceSubmitBatchExceptionHeaders={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceFilterBlobsHeaders={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceFilterBlobsExceptionHeaders={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerCreateHeaders={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerCreateExceptionHeaders={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetPropertiesHeaders={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetPropertiesExceptionHeaders={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerDeleteHeaders={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerDeleteExceptionHeaders={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetMetadataHeaders={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetMetadataExceptionHeaders={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetAccessPolicyHeaders={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetAccessPolicyExceptionHeaders={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetAccessPolicyHeaders={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetAccessPolicyExceptionHeaders={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRestoreHeaders={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRestoreExceptionHeaders={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRenameHeaders={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRenameExceptionHeaders={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSubmitBatchHeaders={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}};t.ContainerSubmitBatchExceptionHeaders={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerFilterBlobsHeaders={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerFilterBlobsExceptionHeaders={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerAcquireLeaseHeaders={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerAcquireLeaseExceptionHeaders={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerReleaseLeaseHeaders={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerReleaseLeaseExceptionHeaders={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRenewLeaseHeaders={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerRenewLeaseExceptionHeaders={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerBreakLeaseHeaders={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerBreakLeaseExceptionHeaders={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerChangeLeaseHeaders={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerChangeLeaseExceptionHeaders={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobFlatSegmentHeaders={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobFlatSegmentExceptionHeaders={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobHierarchySegmentHeaders={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobHierarchySegmentExceptionHeaders={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetAccountInfoHeaders={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};t.ContainerGetAccountInfoExceptionHeaders={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDownloadHeaders={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};t.BlobDownloadExceptionHeaders={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetPropertiesHeaders={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetPropertiesExceptionHeaders={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDeleteHeaders={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDeleteExceptionHeaders={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobUndeleteHeaders={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobUndeleteExceptionHeaders={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetExpiryHeaders={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobSetExpiryExceptionHeaders={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetHttpHeadersHeaders={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetHttpHeadersExceptionHeaders={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetImmutabilityPolicyHeaders={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}};t.BlobSetImmutabilityPolicyExceptionHeaders={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDeleteImmutabilityPolicyHeaders={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobDeleteImmutabilityPolicyExceptionHeaders={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetLegalHoldHeaders={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}};t.BlobSetLegalHoldExceptionHeaders={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetMetadataHeaders={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetMetadataExceptionHeaders={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobAcquireLeaseHeaders={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobAcquireLeaseExceptionHeaders={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobReleaseLeaseHeaders={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobReleaseLeaseExceptionHeaders={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobRenewLeaseHeaders={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobRenewLeaseExceptionHeaders={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobChangeLeaseHeaders={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobChangeLeaseExceptionHeaders={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobBreakLeaseHeaders={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobBreakLeaseExceptionHeaders={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCreateSnapshotHeaders={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCreateSnapshotExceptionHeaders={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobStartCopyFromURLHeaders={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobStartCopyFromURLExceptionHeaders={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};t.BlobCopyFromURLHeaders={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:true,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCopyFromURLExceptionHeaders={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};t.BlobAbortCopyFromURLHeaders={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobAbortCopyFromURLExceptionHeaders={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTierHeaders={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTierExceptionHeaders={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetAccountInfoHeaders={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};t.BlobGetAccountInfoExceptionHeaders={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobQueryHeaders={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};t.BlobQueryExceptionHeaders={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetTagsHeaders={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetTagsExceptionHeaders={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTagsHeaders={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTagsExceptionHeaders={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCreateHeaders={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCreateExceptionHeaders={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesHeaders={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesExceptionHeaders={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobClearPagesHeaders={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobClearPagesExceptionHeaders={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesFromURLHeaders={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesFromURLExceptionHeaders={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};t.PageBlobGetPageRangesHeaders={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesExceptionHeaders={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesDiffHeaders={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesDiffExceptionHeaders={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobResizeHeaders={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobResizeExceptionHeaders={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUpdateSequenceNumberHeaders={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUpdateSequenceNumberExceptionHeaders={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCopyIncrementalHeaders={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCopyIncrementalExceptionHeaders={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobCreateHeaders={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobCreateExceptionHeaders={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockHeaders={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockExceptionHeaders={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockFromUrlHeaders={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockFromUrlExceptionHeaders={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};t.AppendBlobSealHeaders={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}};t.AppendBlobSealExceptionHeaders={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobUploadHeaders={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobUploadExceptionHeaders={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobPutBlobFromUrlHeaders={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobPutBlobFromUrlExceptionHeaders={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};t.BlockBlobStageBlockHeaders={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockExceptionHeaders={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockFromURLHeaders={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockFromURLExceptionHeaders={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};t.BlockBlobCommitBlockListHeaders={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobCommitBlockListExceptionHeaders={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobGetBlockListHeaders={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobGetBlockListExceptionHeaders={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}}},6088:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.action3=t.action2=t.leaseId1=t.action1=t.proposedLeaseId=t.duration=t.action=t.comp10=t.sourceLeaseId=t.sourceContainerName=t.comp9=t.deletedContainerVersion=t.deletedContainerName=t.comp8=t.containerAcl=t.comp7=t.comp6=t.ifUnmodifiedSince=t.ifModifiedSince=t.leaseId=t.preventEncryptionScopeOverride=t.defaultEncryptionScope=t.access=t.metadata=t.restype2=t.where=t.comp5=t.multipartContentType=t.contentLength=t.comp4=t.body=t.restype1=t.comp3=t.keyInfo=t.include=t.maxPageSize=t.marker=t.prefix=t.comp2=t.comp1=t.accept1=t.requestId=t.version=t.timeoutInSeconds=t.comp=t.restype=t.url=t.accept=t.blobServiceProperties=t.contentType=void 0;t.copySourceTags=t.copySourceAuthorization=t.sourceContentMD5=t.xMsRequiresSync=t.legalHold1=t.sealBlob=t.blobTagsString=t.copySource=t.sourceIfTags=t.sourceIfNoneMatch=t.sourceIfMatch=t.sourceIfUnmodifiedSince=t.sourceIfModifiedSince=t.rehydratePriority=t.tier=t.comp14=t.encryptionScope=t.legalHold=t.comp13=t.immutabilityPolicyMode=t.immutabilityPolicyExpiry=t.comp12=t.blobContentDisposition=t.blobContentLanguage=t.blobContentEncoding=t.blobContentMD5=t.blobContentType=t.blobCacheControl=t.expiresOn=t.expiryOptions=t.comp11=t.blobDeleteType=t.deleteSnapshots=t.ifTags=t.ifNoneMatch=t.ifMatch=t.encryptionAlgorithm=t.encryptionKeySha256=t.encryptionKey=t.rangeGetContentCRC64=t.rangeGetContentMD5=t.range=t.versionId=t.snapshot=t.delimiter=t.startFrom=t.include1=t.proposedLeaseId1=t.action4=t.breakPeriod=void 0;t.listType=t.comp25=t.blocks=t.blockId=t.comp24=t.copySourceBlobProperties=t.blobType2=t.comp23=t.sourceRange1=t.appendPosition=t.maxSize=t.comp22=t.blobType1=t.comp21=t.sequenceNumberAction=t.prevSnapshotUrl=t.prevsnapshot=t.comp20=t.range1=t.sourceContentCrc64=t.sourceRange=t.sourceUrl=t.pageWrite1=t.ifSequenceNumberEqualTo=t.ifSequenceNumberLessThan=t.ifSequenceNumberLessThanOrEqualTo=t.pageWrite=t.comp19=t.accept2=t.body1=t.contentType1=t.blobSequenceNumber=t.blobContentLength=t.blobType=t.transactionalContentCrc64=t.transactionalContentMD5=t.tags=t.ifNoneMatch1=t.ifMatch1=t.ifUnmodifiedSince1=t.ifModifiedSince1=t.comp18=t.comp17=t.queryRequest=t.tier1=t.comp16=t.copyId=t.copyActionAbortConstant=t.comp15=t.fileRequestIntent=void 0;const i=o(84424);t.contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};t.blobServiceProperties={parameterPath:"blobServiceProperties",mapper:i.BlobServiceProperties};t.accept={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.url={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};t.restype={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.comp={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.timeoutInSeconds={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};t.version={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};t.requestId={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};t.accept1={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.comp1={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp2={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.prefix={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};t.marker={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};t.maxPageSize={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};t.include={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"};t.keyInfo={parameterPath:"keyInfo",mapper:i.KeyInfo};t.comp3={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.restype1={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.body={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};t.comp4={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.contentLength={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};t.multipartContentType={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};t.comp5={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.where={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};t.restype2={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.metadata={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}};t.access={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};t.defaultEncryptionScope={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};t.preventEncryptionScopeOverride={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};t.leaseId={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};t.ifModifiedSince={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};t.ifUnmodifiedSince={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};t.comp6={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp7={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.containerAcl={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};t.comp8={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.deletedContainerName={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};t.deletedContainerVersion={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};t.comp9={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.sourceContainerName={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};t.sourceLeaseId={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};t.comp10={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.action={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.duration={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};t.proposedLeaseId={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};t.action1={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.leaseId1={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};t.action2={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.action3={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.breakPeriod={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};t.action4={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.proposedLeaseId1={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};t.include1={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:"CSV"};t.startFrom={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}};t.delimiter={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};t.snapshot={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};t.versionId={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};t.range={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};t.rangeGetContentMD5={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};t.rangeGetContentCRC64={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};t.encryptionKey={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};t.encryptionKeySha256={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};t.encryptionAlgorithm={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};t.ifMatch={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};t.ifNoneMatch={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};t.ifTags={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};t.deleteSnapshots={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};t.blobDeleteType={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};t.comp11={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.expiryOptions={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};t.expiresOn={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};t.blobCacheControl={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};t.blobContentType={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};t.blobContentMD5={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};t.blobContentEncoding={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};t.blobContentLanguage={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};t.blobContentDisposition={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};t.comp12={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.immutabilityPolicyExpiry={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};t.immutabilityPolicyMode={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};t.comp13={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.legalHold={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};t.encryptionScope={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};t.comp14={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.tier={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};t.rehydratePriority={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};t.sourceIfModifiedSince={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};t.sourceIfUnmodifiedSince={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};t.sourceIfMatch={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};t.sourceIfNoneMatch={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};t.sourceIfTags={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};t.copySource={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};t.blobTagsString={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};t.sealBlob={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};t.legalHold1={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};t.xMsRequiresSync={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};t.sourceContentMD5={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};t.copySourceAuthorization={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};t.copySourceTags={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};t.fileRequestIntent={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}};t.comp15={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.copyActionAbortConstant={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};t.copyId={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};t.comp16={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.tier1={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:true,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};t.queryRequest={parameterPath:["options","queryRequest"],mapper:i.QueryRequest};t.comp17={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp18={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.ifModifiedSince1={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}};t.ifUnmodifiedSince1={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};t.ifMatch1={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}};t.ifNoneMatch1={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}};t.tags={parameterPath:["options","tags"],mapper:i.BlobTags};t.transactionalContentMD5={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};t.transactionalContentCrc64={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};t.blobType={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.blobContentLength={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};t.blobSequenceNumber={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};t.contentType1={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};t.body1={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};t.accept2={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.comp19={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.pageWrite={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};t.ifSequenceNumberLessThanOrEqualTo={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};t.ifSequenceNumberLessThan={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};t.ifSequenceNumberEqualTo={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};t.pageWrite1={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};t.sourceUrl={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};t.sourceRange={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};t.sourceContentCrc64={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};t.range1={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};t.comp20={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.prevsnapshot={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};t.prevSnapshotUrl={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};t.sequenceNumberAction={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};t.comp21={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blobType1={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.comp22={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.maxSize={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};t.appendPosition={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};t.sourceRange1={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};t.comp23={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blobType2={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.copySourceBlobProperties={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};t.comp24={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blockId={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};t.blocks={parameterPath:"blocks",mapper:i.BlockLookupList};t.comp25={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.listType={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}}},40535:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AppendBlobImpl=void 0;const i=o(61860);const a=i.__importStar(o(60160));const d=i.__importStar(o(84424));const m=i.__importStar(o(6088));class AppendBlobImpl{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},h)}appendBlock(e,t,o){return this.client.sendOperationRequest({contentLength:e,body:t,options:o},P)}appendBlockFromUrl(e,t,o){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:o},_)}seal(e){return this.client.sendOperationRequest({options:e},L)}}t.AppendBlobImpl=AppendBlobImpl;const f=a.createSerializer(d,true);const h={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobCreateExceptionHeaders}},queryParameters:[m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobCacheControl,m.blobContentType,m.blobContentMD5,m.blobContentEncoding,m.blobContentLanguage,m.blobContentDisposition,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode,m.encryptionScope,m.blobTagsString,m.legalHold1,m.blobType1],isXML:true,serializer:f};const P={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobAppendBlockHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobAppendBlockExceptionHeaders}},requestBody:m.body1,queryParameters:[m.timeoutInSeconds,m.comp22],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.contentLength,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope,m.transactionalContentMD5,m.transactionalContentCrc64,m.contentType1,m.accept2,m.maxSize,m.appendPosition],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:f};const _={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobAppendBlockFromUrlHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobAppendBlockFromUrlExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp22],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope,m.sourceIfModifiedSince,m.sourceIfUnmodifiedSince,m.sourceIfMatch,m.sourceIfNoneMatch,m.sourceContentMD5,m.copySourceAuthorization,m.fileRequestIntent,m.transactionalContentMD5,m.sourceUrl,m.sourceContentCrc64,m.maxSize,m.appendPosition,m.sourceRange1],isXML:true,serializer:f};const L={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.AppendBlobSealHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobSealExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp23],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.appendPosition],isXML:true,serializer:f}},57559:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobImpl=void 0;const i=o(61860);const a=i.__importStar(o(60160));const d=i.__importStar(o(84424));const m=i.__importStar(o(6088));class BlobImpl{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},h)}getProperties(e){return this.client.sendOperationRequest({options:e},P)}delete(e){return this.client.sendOperationRequest({options:e},_)}undelete(e){return this.client.sendOperationRequest({options:e},L)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},U)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},j)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},H)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},V)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},K)}setMetadata(e){return this.client.sendOperationRequest({options:e},W)}acquireLease(e){return this.client.sendOperationRequest({options:e},X)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Q)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Y)}changeLease(e,t,o){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:o},J)}breakLease(e){return this.client.sendOperationRequest({options:e},Z)}createSnapshot(e){return this.client.sendOperationRequest({options:e},ee)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},te)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},ne)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},re)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},oe)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},ie)}query(e){return this.client.sendOperationRequest({options:e},se)}getTags(e){return this.client.sendOperationRequest({options:e},ae)}setTags(e){return this.client.sendOperationRequest({options:e},ce)}}t.BlobImpl=BlobImpl;const f=a.createSerializer(d,true);const h={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobDownloadHeaders},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobDownloadHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDownloadExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.range,m.rangeGetContentMD5,m.rangeGetContentCRC64,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:f};const P={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:d.BlobGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetPropertiesExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:f};const _={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:d.BlobDeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDeleteExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId,m.blobDeleteType],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.ifTags,m.deleteSnapshots],isXML:true,serializer:f};const L={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobUndeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobUndeleteExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp8],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:f};const U={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetExpiryHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetExpiryExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp11],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.expiryOptions,m.expiresOn],isXML:true,serializer:f};const j={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetHttpHeadersHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetHttpHeadersExceptionHeaders}},queryParameters:[m.comp,m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobCacheControl,m.blobContentType,m.blobContentMD5,m.blobContentEncoding,m.blobContentLanguage,m.blobContentDisposition],isXML:true,serializer:f};const H={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetImmutabilityPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetImmutabilityPolicyExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId,m.comp12],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifUnmodifiedSince,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode],isXML:true,serializer:f};const V={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:d.BlobDeleteImmutabilityPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDeleteImmutabilityPolicyExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId,m.comp12],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:f};const K={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetLegalHoldHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetLegalHoldExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId,m.comp13],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.legalHold],isXML:true,serializer:f};const W={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetMetadataHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetMetadataExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp6],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope],isXML:true,serializer:f};const X={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlobAcquireLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobAcquireLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.action,m.duration,m.proposedLeaseId,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:f};const Q={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobReleaseLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobReleaseLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.action1,m.leaseId1,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:f};const Y={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobRenewLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobRenewLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.leaseId1,m.action2,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:f};const J={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobChangeLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobChangeLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.leaseId1,m.action4,m.proposedLeaseId1,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:f};const Z={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobBreakLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobBreakLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.action3,m.breakPeriod,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:f};const ee={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlobCreateSnapshotHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobCreateSnapshotExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp14],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope],isXML:true,serializer:f};const te={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobStartCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobStartCopyFromURLExceptionHeaders}},queryParameters:[m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.ifTags,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode,m.tier,m.rehydratePriority,m.sourceIfModifiedSince,m.sourceIfUnmodifiedSince,m.sourceIfMatch,m.sourceIfNoneMatch,m.sourceIfTags,m.copySource,m.blobTagsString,m.sealBlob,m.legalHold1],isXML:true,serializer:f};const ne={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobCopyFromURLExceptionHeaders}},queryParameters:[m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.ifTags,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode,m.encryptionScope,m.tier,m.sourceIfModifiedSince,m.sourceIfUnmodifiedSince,m.sourceIfMatch,m.sourceIfNoneMatch,m.copySource,m.blobTagsString,m.legalHold1,m.xMsRequiresSync,m.sourceContentMD5,m.copySourceAuthorization,m.copySourceTags,m.fileRequestIntent],isXML:true,serializer:f};const re={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:d.BlobAbortCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobAbortCopyFromURLExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp15,m.copyId],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.copyActionAbortConstant],isXML:true,serializer:f};const oe={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetTierHeaders},202:{headersMapper:d.BlobSetTierHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetTierExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId,m.comp16],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifTags,m.rehydratePriority,m.tier1],isXML:true,serializer:f};const ie={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:d.BlobGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetAccountInfoExceptionHeaders}},queryParameters:[m.comp,m.timeoutInSeconds,m.restype1],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:f};const se={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobQueryHeaders},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobQueryHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobQueryExceptionHeaders}},requestBody:m.queryRequest,queryParameters:[m.timeoutInSeconds,m.snapshot,m.comp17],urlParameters:[m.url],headerParameters:[m.contentType,m.accept,m.version,m.requestId,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const ae={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobTags,headersMapper:d.BlobGetTagsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetTagsExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.versionId,m.comp18],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifTags,m.ifModifiedSince1,m.ifUnmodifiedSince1,m.ifMatch1,m.ifNoneMatch1],isXML:true,serializer:f};const ce={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:d.BlobSetTagsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetTagsExceptionHeaders}},requestBody:m.tags,queryParameters:[m.timeoutInSeconds,m.versionId,m.comp18],urlParameters:[m.url],headerParameters:[m.contentType,m.accept,m.version,m.requestId,m.leaseId,m.ifTags,m.ifModifiedSince1,m.ifUnmodifiedSince1,m.ifMatch1,m.ifNoneMatch1,m.transactionalContentMD5,m.transactionalContentCrc64],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f}},95440:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlockBlobImpl=void 0;const i=o(61860);const a=i.__importStar(o(60160));const d=i.__importStar(o(84424));const m=i.__importStar(o(6088));class BlockBlobImpl{client;constructor(e){this.client=e}upload(e,t,o){return this.client.sendOperationRequest({contentLength:e,body:t,options:o},h)}putBlobFromUrl(e,t,o){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:o},P)}stageBlock(e,t,o,i){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:o,options:i},_)}stageBlockFromURL(e,t,o,i){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:o,options:i},L)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},U)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},j)}}t.BlockBlobImpl=BlockBlobImpl;const f=a.createSerializer(d,true);const h={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobUploadHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobUploadExceptionHeaders}},requestBody:m.body1,queryParameters:[m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.contentLength,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobCacheControl,m.blobContentType,m.blobContentMD5,m.blobContentEncoding,m.blobContentLanguage,m.blobContentDisposition,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode,m.encryptionScope,m.tier,m.blobTagsString,m.legalHold1,m.transactionalContentMD5,m.transactionalContentCrc64,m.contentType1,m.accept2,m.blobType2],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:f};const P={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobPutBlobFromUrlHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobPutBlobFromUrlExceptionHeaders}},queryParameters:[m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobCacheControl,m.blobContentType,m.blobContentMD5,m.blobContentEncoding,m.blobContentLanguage,m.blobContentDisposition,m.encryptionScope,m.tier,m.sourceIfModifiedSince,m.sourceIfUnmodifiedSince,m.sourceIfMatch,m.sourceIfNoneMatch,m.sourceIfTags,m.copySource,m.blobTagsString,m.sourceContentMD5,m.copySourceAuthorization,m.copySourceTags,m.fileRequestIntent,m.transactionalContentMD5,m.blobType2,m.copySourceBlobProperties],isXML:true,serializer:f};const _={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobStageBlockHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobStageBlockExceptionHeaders}},requestBody:m.body1,queryParameters:[m.timeoutInSeconds,m.comp24,m.blockId],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.contentLength,m.leaseId,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.encryptionScope,m.transactionalContentMD5,m.transactionalContentCrc64,m.contentType1,m.accept2],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:f};const L={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobStageBlockFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobStageBlockFromURLExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp24,m.blockId],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.leaseId,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.encryptionScope,m.sourceIfModifiedSince,m.sourceIfUnmodifiedSince,m.sourceIfMatch,m.sourceIfNoneMatch,m.sourceContentMD5,m.copySourceAuthorization,m.fileRequestIntent,m.sourceUrl,m.sourceContentCrc64,m.sourceRange1],isXML:true,serializer:f};const U={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobCommitBlockListHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobCommitBlockListExceptionHeaders}},requestBody:m.blocks,queryParameters:[m.timeoutInSeconds,m.comp25],urlParameters:[m.url],headerParameters:[m.contentType,m.accept,m.version,m.requestId,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobCacheControl,m.blobContentType,m.blobContentMD5,m.blobContentEncoding,m.blobContentLanguage,m.blobContentDisposition,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode,m.encryptionScope,m.tier,m.blobTagsString,m.legalHold1,m.transactionalContentMD5,m.transactionalContentCrc64],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const j={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.BlockList,headersMapper:d.BlockBlobGetBlockListHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobGetBlockListExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.snapshot,m.comp25,m.listType],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifTags],isXML:true,serializer:f}},14509:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerImpl=void 0;const i=o(61860);const a=i.__importStar(o(60160));const d=i.__importStar(o(84424));const m=i.__importStar(o(6088));class ContainerImpl{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},h)}getProperties(e){return this.client.sendOperationRequest({options:e},P)}delete(e){return this.client.sendOperationRequest({options:e},_)}setMetadata(e){return this.client.sendOperationRequest({options:e},L)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},U)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},j)}restore(e){return this.client.sendOperationRequest({options:e},H)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},V)}submitBatch(e,t,o,i){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:o,options:i},K)}filterBlobs(e){return this.client.sendOperationRequest({options:e},W)}acquireLease(e){return this.client.sendOperationRequest({options:e},X)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Q)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Y)}breakLease(e){return this.client.sendOperationRequest({options:e},J)}changeLease(e,t,o){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:o},Z)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},ee)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},te)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},ne)}}t.ContainerImpl=ContainerImpl;const f=a.createSerializer(d,true);const h={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerCreateExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.metadata,m.access,m.defaultEncryptionScope,m.preventEncryptionScopeOverride],isXML:true,serializer:f};const P={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:d.ContainerGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetPropertiesExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId],isXML:true,serializer:f};const _={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:d.ContainerDeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerDeleteExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince],isXML:true,serializer:f};const L={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerSetMetadataHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSetMetadataExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp6],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.metadata,m.leaseId,m.ifModifiedSince],isXML:true,serializer:f};const U={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier"},headersMapper:d.ContainerGetAccessPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetAccessPolicyExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp7],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId],isXML:true,serializer:f};const j={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerSetAccessPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSetAccessPolicyExceptionHeaders}},requestBody:m.containerAcl,queryParameters:[m.timeoutInSeconds,m.restype2,m.comp7],urlParameters:[m.url],headerParameters:[m.contentType,m.accept,m.version,m.requestId,m.access,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const H={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerRestoreHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRestoreExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp8],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.deletedContainerName,m.deletedContainerVersion],isXML:true,serializer:f};const V={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerRenameHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRenameExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp9],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.sourceContainerName,m.sourceLeaseId],isXML:true,serializer:f};const K={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.ContainerSubmitBatchHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSubmitBatchExceptionHeaders}},requestBody:m.body,queryParameters:[m.timeoutInSeconds,m.comp4,m.restype2],urlParameters:[m.url],headerParameters:[m.accept,m.version,m.requestId,m.contentLength,m.multipartContentType],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const W={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.FilterBlobSegment,headersMapper:d.ContainerFilterBlobsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerFilterBlobsExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.marker,m.maxPageSize,m.comp5,m.where,m.restype2],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:f};const X={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerAcquireLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerAcquireLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.action,m.duration,m.proposedLeaseId],isXML:true,serializer:f};const Q={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerReleaseLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerReleaseLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.action1,m.leaseId1],isXML:true,serializer:f};const Y={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerRenewLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRenewLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.leaseId1,m.action2],isXML:true,serializer:f};const J={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:d.ContainerBreakLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerBreakLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.action3,m.breakPeriod],isXML:true,serializer:f};const Z={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerChangeLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerChangeLeaseExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.restype2,m.comp10],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.leaseId1,m.action4,m.proposedLeaseId1],isXML:true,serializer:f};const ee={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.ListBlobsFlatSegmentResponse,headersMapper:d.ContainerListBlobFlatSegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerListBlobFlatSegmentExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp2,m.prefix,m.marker,m.maxPageSize,m.restype2,m.include1,m.startFrom],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:f};const te={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.ListBlobsHierarchySegmentResponse,headersMapper:d.ContainerListBlobHierarchySegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerListBlobHierarchySegmentExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp2,m.prefix,m.marker,m.maxPageSize,m.restype2,m.include1,m.startFrom,m.delimiter],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:f};const ne={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:d.ContainerGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetAccountInfoExceptionHeaders}},queryParameters:[m.comp,m.timeoutInSeconds,m.restype1],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:f}},37878:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=o(61860);i.__exportStar(o(44181),t);i.__exportStar(o(14509),t);i.__exportStar(o(57559),t);i.__exportStar(o(69156),t);i.__exportStar(o(40535),t);i.__exportStar(o(95440),t)},69156:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PageBlobImpl=void 0;const i=o(61860);const a=i.__importStar(o(60160));const d=i.__importStar(o(84424));const m=i.__importStar(o(6088));class PageBlobImpl{client;constructor(e){this.client=e}create(e,t,o){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:o},h)}uploadPages(e,t,o){return this.client.sendOperationRequest({contentLength:e,body:t,options:o},P)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},_)}uploadPagesFromURL(e,t,o,i,a){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:o,range:i,options:a},L)}getPageRanges(e){return this.client.sendOperationRequest({options:e},U)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},j)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},H)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},V)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},K)}}t.PageBlobImpl=PageBlobImpl;const f=a.createSerializer(d,true);const h={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobCreateExceptionHeaders}},queryParameters:[m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.metadata,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobCacheControl,m.blobContentType,m.blobContentMD5,m.blobContentEncoding,m.blobContentLanguage,m.blobContentDisposition,m.immutabilityPolicyExpiry,m.immutabilityPolicyMode,m.encryptionScope,m.tier,m.blobTagsString,m.legalHold1,m.blobType,m.blobContentLength,m.blobSequenceNumber],isXML:true,serializer:f};const P={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobUploadPagesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUploadPagesExceptionHeaders}},requestBody:m.body1,queryParameters:[m.timeoutInSeconds,m.comp19],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.contentLength,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.range,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope,m.transactionalContentMD5,m.transactionalContentCrc64,m.contentType1,m.accept2,m.pageWrite,m.ifSequenceNumberLessThanOrEqualTo,m.ifSequenceNumberLessThan,m.ifSequenceNumberEqualTo],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:f};const _={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobClearPagesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobClearPagesExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp19],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.range,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope,m.ifSequenceNumberLessThanOrEqualTo,m.ifSequenceNumberLessThan,m.ifSequenceNumberEqualTo,m.pageWrite1],isXML:true,serializer:f};const L={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobUploadPagesFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUploadPagesFromURLExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp19],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.contentLength,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope,m.sourceIfModifiedSince,m.sourceIfUnmodifiedSince,m.sourceIfMatch,m.sourceIfNoneMatch,m.sourceContentMD5,m.copySourceAuthorization,m.fileRequestIntent,m.pageWrite,m.ifSequenceNumberLessThanOrEqualTo,m.ifSequenceNumberLessThan,m.ifSequenceNumberEqualTo,m.sourceUrl,m.sourceRange,m.sourceContentCrc64,m.range1],isXML:true,serializer:f};const U={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.PageList,headersMapper:d.PageBlobGetPageRangesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobGetPageRangesExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.marker,m.maxPageSize,m.snapshot,m.comp20],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.range,m.ifMatch,m.ifNoneMatch,m.ifTags],isXML:true,serializer:f};const j={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.PageList,headersMapper:d.PageBlobGetPageRangesDiffHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobGetPageRangesDiffExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.marker,m.maxPageSize,m.snapshot,m.comp20,m.prevsnapshot],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.range,m.ifMatch,m.ifNoneMatch,m.ifTags,m.prevSnapshotUrl],isXML:true,serializer:f};const H={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.PageBlobResizeHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobResizeExceptionHeaders}},queryParameters:[m.comp,m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.encryptionKey,m.encryptionKeySha256,m.encryptionAlgorithm,m.ifMatch,m.ifNoneMatch,m.ifTags,m.encryptionScope,m.blobContentLength],isXML:true,serializer:f};const V={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.PageBlobUpdateSequenceNumberHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUpdateSequenceNumberExceptionHeaders}},queryParameters:[m.comp,m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.leaseId,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.ifTags,m.blobSequenceNumber,m.sequenceNumberAction],isXML:true,serializer:f};const K={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.PageBlobCopyIncrementalHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobCopyIncrementalExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp21],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1,m.ifModifiedSince,m.ifUnmodifiedSince,m.ifMatch,m.ifNoneMatch,m.ifTags,m.copySource],isXML:true,serializer:f}},44181:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceImpl=void 0;const i=o(61860);const a=i.__importStar(o(60160));const d=i.__importStar(o(84424));const m=i.__importStar(o(6088));class ServiceImpl{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},h)}getProperties(e){return this.client.sendOperationRequest({options:e},P)}getStatistics(e){return this.client.sendOperationRequest({options:e},_)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},L)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},U)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},j)}submitBatch(e,t,o,i){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:o,options:i},H)}filterBlobs(e){return this.client.sendOperationRequest({options:e},V)}}t.ServiceImpl=ServiceImpl;const f=a.createSerializer(d,true);const h={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:d.ServiceSetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceSetPropertiesExceptionHeaders}},requestBody:m.blobServiceProperties,queryParameters:[m.restype,m.comp,m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.contentType,m.accept,m.version,m.requestId],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const P={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobServiceProperties,headersMapper:d.ServiceGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetPropertiesExceptionHeaders}},queryParameters:[m.restype,m.comp,m.timeoutInSeconds],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:f};const _={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobServiceStatistics,headersMapper:d.ServiceGetStatisticsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetStatisticsExceptionHeaders}},queryParameters:[m.restype,m.timeoutInSeconds,m.comp1],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:f};const L={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.ListContainersSegmentResponse,headersMapper:d.ServiceListContainersSegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceListContainersSegmentExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.comp2,m.prefix,m.marker,m.maxPageSize,m.include],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:f};const U={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:d.UserDelegationKey,headersMapper:d.ServiceGetUserDelegationKeyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetUserDelegationKeyExceptionHeaders}},requestBody:m.keyInfo,queryParameters:[m.restype,m.timeoutInSeconds,m.comp3],urlParameters:[m.url],headerParameters:[m.contentType,m.accept,m.version,m.requestId],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const j={path:"/",httpMethod:"GET",responses:{200:{headersMapper:d.ServiceGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetAccountInfoExceptionHeaders}},queryParameters:[m.comp,m.timeoutInSeconds,m.restype1],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:f};const H={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.ServiceSubmitBatchHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceSubmitBatchExceptionHeaders}},requestBody:m.body,queryParameters:[m.timeoutInSeconds,m.comp4],urlParameters:[m.url],headerParameters:[m.accept,m.version,m.requestId,m.contentLength,m.multipartContentType],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const V={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.FilterBlobSegment,headersMapper:d.ServiceFilterBlobsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceFilterBlobsExceptionHeaders}},queryParameters:[m.timeoutInSeconds,m.marker,m.maxPageSize,m.comp5,m.where],urlParameters:[m.url],headerParameters:[m.version,m.requestId,m.accept1],isXML:true,serializer:f}},56635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},68355:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},17188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},15337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},82354:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=o(61860);i.__exportStar(o(26865),t);i.__exportStar(o(15337),t);i.__exportStar(o(68355),t);i.__exportStar(o(14400),t);i.__exportStar(o(56635),t);i.__exportStar(o(17188),t)},14400:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},26865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},5313:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const i=o(61860);const a=i.__importStar(o(61584));const d=o(37878);class StorageClient extends a.ExtendedServiceClient{url;version;constructor(e,t){if(e===undefined){throw new Error("'url' cannot be null")}if(!t){t={}}const o={requestContentType:"application/json; charset=utf-8"};const i=`azsdk-js-azure-storage-blob/12.30.0`;const a=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;const m={...o,...t,userAgentOptions:{userAgentPrefix:a},endpoint:t.endpoint??t.baseUri??"{url}"};super(m);this.url=e;this.version=t.version||"2026-02-06";this.service=new d.ServiceImpl(this);this.container=new d.ContainerImpl(this);this.blob=new d.BlobImpl(this);this.pageBlob=new d.PageBlobImpl(this);this.appendBlob=new d.AppendBlobImpl(this);this.blockBlob=new d.BlockBlobImpl(this)}service;container;blob;pageBlob;appendBlob;blockBlob}t.StorageClient=StorageClient},83627:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KnownEncryptionAlgorithmType=void 0;var o;(function(e){e["AES256"]="AES256"})(o||(t.KnownEncryptionAlgorithmType=o={}))},71400:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=t.RestError=t.StorageBrowserPolicyFactory=t.StorageBrowserPolicy=t.StorageSharedKeyCredentialPolicy=t.StorageSharedKeyCredential=t.StorageRetryPolicyFactory=t.StorageRetryPolicy=t.StorageRetryPolicyType=t.Credential=t.CredentialPolicy=t.BaseRequestPolicy=t.AnonymousCredentialPolicy=t.AnonymousCredential=t.StorageOAuthScopes=t.newPipeline=t.isPipelineLike=t.Pipeline=t.getBlobServiceAccountAudience=t.StorageBlobAudience=t.PremiumPageBlobTier=t.BlockBlobTier=t.generateBlobSASQueryParameters=t.generateAccountSASQueryParameters=void 0;const i=o(61860);const a=o(20778);Object.defineProperty(t,"RestError",{enumerable:true,get:function(){return a.RestError}});i.__exportStar(o(96341),t);i.__exportStar(o(90372),t);i.__exportStar(o(81884),t);i.__exportStar(o(23276),t);i.__exportStar(o(6358),t);i.__exportStar(o(91267),t);i.__exportStar(o(46940),t);var d=o(85238);Object.defineProperty(t,"generateAccountSASQueryParameters",{enumerable:true,get:function(){return d.generateAccountSASQueryParameters}});i.__exportStar(o(95561),t);i.__exportStar(o(12094),t);i.__exportStar(o(48175),t);i.__exportStar(o(2232),t);var m=o(656);Object.defineProperty(t,"generateBlobSASQueryParameters",{enumerable:true,get:function(){return m.generateBlobSASQueryParameters}});i.__exportStar(o(51622),t);var f=o(58560);Object.defineProperty(t,"BlockBlobTier",{enumerable:true,get:function(){return f.BlockBlobTier}});Object.defineProperty(t,"PremiumPageBlobTier",{enumerable:true,get:function(){return f.PremiumPageBlobTier}});Object.defineProperty(t,"StorageBlobAudience",{enumerable:true,get:function(){return f.StorageBlobAudience}});Object.defineProperty(t,"getBlobServiceAccountAudience",{enumerable:true,get:function(){return f.getBlobServiceAccountAudience}});var h=o(25984);Object.defineProperty(t,"Pipeline",{enumerable:true,get:function(){return h.Pipeline}});Object.defineProperty(t,"isPipelineLike",{enumerable:true,get:function(){return h.isPipelineLike}});Object.defineProperty(t,"newPipeline",{enumerable:true,get:function(){return h.newPipeline}});Object.defineProperty(t,"StorageOAuthScopes",{enumerable:true,get:function(){return h.StorageOAuthScopes}});var P=o(51382);Object.defineProperty(t,"AnonymousCredential",{enumerable:true,get:function(){return P.AnonymousCredential}});Object.defineProperty(t,"AnonymousCredentialPolicy",{enumerable:true,get:function(){return P.AnonymousCredentialPolicy}});Object.defineProperty(t,"BaseRequestPolicy",{enumerable:true,get:function(){return P.BaseRequestPolicy}});Object.defineProperty(t,"CredentialPolicy",{enumerable:true,get:function(){return P.CredentialPolicy}});Object.defineProperty(t,"Credential",{enumerable:true,get:function(){return P.Credential}});Object.defineProperty(t,"StorageRetryPolicyType",{enumerable:true,get:function(){return P.StorageRetryPolicyType}});Object.defineProperty(t,"StorageRetryPolicy",{enumerable:true,get:function(){return P.StorageRetryPolicy}});Object.defineProperty(t,"StorageRetryPolicyFactory",{enumerable:true,get:function(){return P.StorageRetryPolicyFactory}});Object.defineProperty(t,"StorageSharedKeyCredential",{enumerable:true,get:function(){return P.StorageSharedKeyCredential}});Object.defineProperty(t,"StorageSharedKeyCredentialPolicy",{enumerable:true,get:function(){return P.StorageSharedKeyCredentialPolicy}});Object.defineProperty(t,"StorageBrowserPolicy",{enumerable:true,get:function(){return P.StorageBrowserPolicy}});Object.defineProperty(t,"StorageBrowserPolicyFactory",{enumerable:true,get:function(){return P.StorageBrowserPolicyFactory}});i.__exportStar(o(26823),t);i.__exportStar(o(83627),t);var _=o(46370);Object.defineProperty(t,"logger",{enumerable:true,get:function(){return _.logger}})},11326:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AVRO_SCHEMA_KEY=t.AVRO_CODEC_KEY=t.AVRO_INIT_BYTES=t.AVRO_SYNC_MARKER_SIZE=void 0;t.AVRO_SYNC_MARKER_SIZE=16;t.AVRO_INIT_BYTES=new Uint8Array([79,98,106,1]);t.AVRO_CODEC_KEY="avro.codec";t.AVRO_SCHEMA_KEY="avro.schema"},35652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroType=t.AvroParser=void 0;class AvroParser{static async readFixedBytes(e,t,o={}){const i=await e.read(t,{abortSignal:o.abortSignal});if(i.length!==t){throw new Error("Hit stream end.")}return i}static async readByte(e,t={}){const o=await AvroParser.readFixedBytes(e,1,t);return o[0]}static async readZigZagLong(e,t={}){let o=0;let i=0;let a,d,m;do{a=await AvroParser.readByte(e,t);d=a&128;o|=(a&127)<<i;i+=7}while(d&&i<28);if(d){o=o;m=268435456;do{a=await AvroParser.readByte(e,t);o+=(a&127)*m;m*=128}while(a&128);const i=(o%2?-(o+1):o)/2;if(i<Number.MIN_SAFE_INTEGER||i>Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return i}return o>>1^-(o&1)}static async readLong(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readInt(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readNull(){return null}static async readBoolean(e,t={}){const o=await AvroParser.readByte(e,t);if(o===1){return true}else if(o===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(e,t={}){const o=await AvroParser.readFixedBytes(e,4,t);const i=new DataView(o.buffer,o.byteOffset,o.byteLength);return i.getFloat32(0,true)}static async readDouble(e,t={}){const o=await AvroParser.readFixedBytes(e,8,t);const i=new DataView(o.buffer,o.byteOffset,o.byteLength);return i.getFloat64(0,true)}static async readBytes(e,t={}){const o=await AvroParser.readLong(e,t);if(o<0){throw new Error("Bytes size was negative.")}return e.read(o,{abortSignal:t.abortSignal})}static async readString(e,t={}){const o=await AvroParser.readBytes(e,t);const i=new TextDecoder;return i.decode(o)}static async readMapPair(e,t,o={}){const i=await AvroParser.readString(e,o);const a=await t(e,o);return{key:i,value:a}}static async readMap(e,t,o={}){const readPairMethod=(e,o={})=>AvroParser.readMapPair(e,t,o);const i=await AvroParser.readArray(e,readPairMethod,o);const a={};for(const e of i){a[e.key]=e.value}return a}static async readArray(e,t,o={}){const i=[];for(let a=await AvroParser.readLong(e,o);a!==0;a=await AvroParser.readLong(e,o)){if(a<0){await AvroParser.readLong(e,o);a=-a}while(a--){const a=await t(e,o);i.push(a)}}return i}}t.AvroParser=AvroParser;var o;(function(e){e["RECORD"]="record";e["ENUM"]="enum";e["ARRAY"]="array";e["MAP"]="map";e["UNION"]="union";e["FIXED"]="fixed"})(o||(o={}));var i;(function(e){e["NULL"]="null";e["BOOLEAN"]="boolean";e["INT"]="int";e["LONG"]="long";e["FLOAT"]="float";e["DOUBLE"]="double";e["BYTES"]="bytes";e["STRING"]="string"})(i||(i={}));class AvroType{static fromSchema(e){if(typeof e==="string"){return AvroType.fromStringSchema(e)}else if(Array.isArray(e)){return AvroType.fromArraySchema(e)}else{return AvroType.fromObjectSchema(e)}}static fromStringSchema(e){switch(e){case i.NULL:case i.BOOLEAN:case i.INT:case i.LONG:case i.FLOAT:case i.DOUBLE:case i.BYTES:case i.STRING:return new AvroPrimitiveType(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new AvroUnionType(e.map(AvroType.fromSchema))}static fromObjectSchema(e){const t=e.type;try{return AvroType.fromStringSchema(t)}catch{}switch(t){case o.RECORD:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${e}`)}const i={};if(!e.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`)}for(const t of e.fields){i[t.name]=AvroType.fromSchema(t.type)}return new AvroRecordType(i,e.name);case o.ENUM:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${e}`)}return new AvroEnumType(e.symbols);case o.MAP:if(!e.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`)}return new AvroMapType(AvroType.fromSchema(e.values));case o.ARRAY:case o.FIXED:default:throw new Error(`Unexpected Avro type ${t} in ${e}`)}}}t.AvroType=AvroType;class AvroPrimitiveType extends AvroType{_primitive;constructor(e){super();this._primitive=e}read(e,t={}){switch(this._primitive){case i.NULL:return AvroParser.readNull();case i.BOOLEAN:return AvroParser.readBoolean(e,t);case i.INT:return AvroParser.readInt(e,t);case i.LONG:return AvroParser.readLong(e,t);case i.FLOAT:return AvroParser.readFloat(e,t);case i.DOUBLE:return AvroParser.readDouble(e,t);case i.BYTES:return AvroParser.readBytes(e,t);case i.STRING:return AvroParser.readString(e,t);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{_symbols;constructor(e){super();this._symbols=e}async read(e,t={}){const o=await AvroParser.readInt(e,t);return this._symbols[o]}}class AvroUnionType extends AvroType{_types;constructor(e){super();this._types=e}async read(e,t={}){const o=await AvroParser.readInt(e,t);return this._types[o].read(e,t)}}class AvroMapType extends AvroType{_itemType;constructor(e){super();this._itemType=e}read(e,t={}){const readItemMethod=(e,t)=>this._itemType.read(e,t);return AvroParser.readMap(e,readItemMethod,t)}}class AvroRecordType extends AvroType{_name;_fields;constructor(e,t){super();this._fields=e;this._name=t}async read(e,t={}){const o={};o["$schema"]=this._name;for(const i in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,i)){o[i]=await this._fields[i].read(e,t)}}return o}}},41675:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadable=void 0;class AvroReadable{}t.AvroReadable=AvroReadable},48059:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadableFromStream=void 0;const i=o(41675);const a=o(83134);const d=o(20181);const m=new a.AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends i.AvroReadable{_position;_readable;toUint8Array(e){if(typeof e==="string"){return d.Buffer.from(e)}return e}constructor(e){super();this._readable=e;this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted){throw m}if(e<0){throw new Error(`size parameter should be positive: ${e}`)}if(e===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const o=this._readable.read(e);if(o){this._position+=o.length;return this.toUint8Array(o)}else{return new Promise(((o,i)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(t.abortSignal){t.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const t=this._readable.read(e);if(t){this._position+=t.length;cleanUp();o(this.toUint8Array(t))}};const rejectCallback=()=>{cleanUp();i()};const abortHandler=()=>{cleanUp();i(m)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(t.abortSignal){t.abortSignal.addEventListener("abort",abortHandler)}}))}}}t.AvroReadableFromStream=AvroReadableFromStream},52888:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReader=void 0;const i=o(11326);const a=o(35652);const d=o(4337);class AvroReader{_dataStream;_headerStream;_syncMarker;_metadata;_itemType;_itemsRemainingInBlock;_initialBlockOffset;_blockOffset;get blockOffset(){return this._blockOffset}_objectIndex;get objectIndex(){return this._objectIndex}_initialized;constructor(e,t,o,i){this._dataStream=e;this._headerStream=t||e;this._initialized=false;this._blockOffset=o||0;this._objectIndex=i||0;this._initialBlockOffset=o||0}async initialize(e={}){const t=await a.AvroParser.readFixedBytes(this._headerStream,i.AVRO_INIT_BYTES.length,{abortSignal:e.abortSignal});if(!(0,d.arraysEqual)(t,i.AVRO_INIT_BYTES)){throw new Error("Stream is not an Avro file.")}this._metadata=await a.AvroParser.readMap(this._headerStream,a.AvroParser.readString,{abortSignal:e.abortSignal});const o=this._metadata[i.AVRO_CODEC_KEY];if(!(o===undefined||o===null||o==="null")){throw new Error("Codecs are not supported")}this._syncMarker=await a.AvroParser.readFixedBytes(this._headerStream,i.AVRO_SYNC_MARKER_SIZE,{abortSignal:e.abortSignal});const m=JSON.parse(this._metadata[i.AVRO_SCHEMA_KEY]);this._itemType=a.AvroType.fromSchema(m);if(this._blockOffset===0){this._blockOffset=this._initialBlockOffset+this._dataStream.position}this._itemsRemainingInBlock=await a.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal});await a.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal});this._initialized=true;if(this._objectIndex&&this._objectIndex>0){for(let t=0;t<this._objectIndex;t++){await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});this._itemsRemainingInBlock--}}}hasNext(){return!this._initialized||this._itemsRemainingInBlock>0}async*parseObjects(e={}){if(!this._initialized){await this.initialize(e)}while(this.hasNext()){const t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const t=await a.AvroParser.readFixedBytes(this._dataStream,i.AVRO_SYNC_MARKER_SIZE,{abortSignal:e.abortSignal});this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!(0,d.arraysEqual)(this._syncMarker,t)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=await a.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){await a.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}}yield t}}}t.AvroReader=AvroReader},96147:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadableFromStream=t.AvroReadable=t.AvroReader=void 0;var i=o(52888);Object.defineProperty(t,"AvroReader",{enumerable:true,get:function(){return i.AvroReader}});var a=o(41675);Object.defineProperty(t,"AvroReadable",{enumerable:true,get:function(){return a.AvroReadable}});var d=o(48059);Object.defineProperty(t,"AvroReadableFromStream",{enumerable:true,get:function(){return d.AvroReadableFromStream}})},4337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.arraysEqual=arraysEqual;function arraysEqual(e,t){if(e===t)return true;if(e==null||t==null)return false;if(e.length!==t.length)return false;for(let o=0;o<e.length;++o){if(e[o]!==t[o])return false}return true}},46370:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const i=o(26515);t.logger=(0,i.createClientLogger)("storage-blob")},58560:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBlobAudience=t.PremiumPageBlobTier=t.BlockBlobTier=void 0;t.toAccessTier=toAccessTier;t.ensureCpkIfSpecified=ensureCpkIfSpecified;t.getBlobServiceAccountAudience=getBlobServiceAccountAudience;const i=o(27323);var a;(function(e){e["Hot"]="Hot";e["Cool"]="Cool";e["Cold"]="Cold";e["Archive"]="Archive"})(a||(t.BlockBlobTier=a={}));var d;(function(e){e["P4"]="P4";e["P6"]="P6";e["P10"]="P10";e["P15"]="P15";e["P20"]="P20";e["P30"]="P30";e["P40"]="P40";e["P50"]="P50";e["P60"]="P60";e["P70"]="P70";e["P80"]="P80"})(d||(t.PremiumPageBlobTier=d={}));function toAccessTier(e){if(e===undefined){return undefined}return e}function ensureCpkIfSpecified(e,t){if(e&&!t){throw new RangeError("Customer-provided encryption key must be used over HTTPS.")}if(e&&!e.encryptionAlgorithm){e.encryptionAlgorithm=i.EncryptionAlgorithmAES25}}var m;(function(e){e["StorageOAuthScopes"]="https://storage.azure.com/.default";e["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(m||(t.StorageBlobAudience=m={}));function getBlobServiceAccountAudience(e){return`https://${e}.blob.core.windows.net/.default`}},73145:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBeginCopyFromUrlPoller=void 0;const i=o(87779);const a=o(91754);class BlobBeginCopyFromUrlPoller extends a.Poller{intervalInMs;constructor(e){const{blobClient:t,copySource:o,intervalInMs:i=15e3,onProgress:a,resumeFrom:d,startCopyFromURLOptions:m}=e;let f;if(d){f=JSON.parse(d).state}const h=makeBlobBeginCopyFromURLPollOperation({...f,blobClient:t,copySource:o,startCopyFromURLOptions:m});super(h);if(typeof a==="function"){this.onProgress(a)}this.intervalInMs=i}delay(){return(0,i.delay)(this.intervalInMs)}}t.BlobBeginCopyFromUrlPoller=BlobBeginCopyFromUrlPoller;const d=async function cancel(e={}){const t=this.state;const{copyId:o}=t;if(t.isCompleted){return makeBlobBeginCopyFromURLPollOperation(t)}if(!o){t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)}await t.blobClient.abortCopyFromURL(o,{abortSignal:e.abortSignal});t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)};const m=async function update(e={}){const t=this.state;const{blobClient:o,copySource:i,startCopyFromURLOptions:a}=t;if(!t.isStarted){t.isStarted=true;const e=await o.startCopyFromURL(i,a);t.copyId=e.copyId;if(e.copyStatus==="success"){t.result=e;t.isCompleted=true}}else if(!t.isCompleted){try{const o=await t.blobClient.getProperties({abortSignal:e.abortSignal});const{copyStatus:i,copyProgress:a}=o;const d=t.copyProgress;if(a){t.copyProgress=a}if(i==="pending"&&a!==d&&typeof e.fireProgress==="function"){e.fireProgress(t)}else if(i==="success"){t.result=o;t.isCompleted=true}else if(i==="failed"){t.error=new Error(`Blob copy failed with reason: "${o.copyStatusDescription||"unknown"}"`);t.isCompleted=true}}catch(e){t.error=e;t.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(t)};const f=function toString(){return JSON.stringify({state:this.state},((e,t)=>{if(e==="blobClient"){return undefined}return t}))};function makeBlobBeginCopyFromURLPollOperation(e){return{state:{...e},cancel:d,toString:f,update:m}}},6358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASPermissions=void 0;class AccountSASPermissions{static parse(e){const t=new AccountSASPermissions;for(const o of e){switch(o){case"r":t.read=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"l":t.list=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"u":t.update=true;break;case"p":t.process=true;break;case"t":t.tag=true;break;case"f":t.filter=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission character: ${o}`)}}return t}static from(e){const t=new AccountSASPermissions;if(e.read){t.read=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.filter){t.filter=true}if(e.tag){t.tag=true}if(e.list){t.list=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.update){t.update=true}if(e.process){t.process=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}read=false;write=false;delete=false;deleteVersion=false;list=false;add=false;create=false;update=false;process=false;tag=false;filter=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const e=[];if(this.read){e.push("r")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.filter){e.push("f")}if(this.tag){e.push("t")}if(this.list){e.push("l")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.update){e.push("u")}if(this.process){e.push("p")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}t.AccountSASPermissions=AccountSASPermissions},91267:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASResourceTypes=void 0;class AccountSASResourceTypes{static parse(e){const t=new AccountSASResourceTypes;for(const o of e){switch(o){case"s":t.service=true;break;case"c":t.container=true;break;case"o":t.object=true;break;default:throw new RangeError(`Invalid resource type: ${o}`)}}return t}service=false;container=false;object=false;toString(){const e=[];if(this.service){e.push("s")}if(this.container){e.push("c")}if(this.object){e.push("o")}return e.join("")}}t.AccountSASResourceTypes=AccountSASResourceTypes},46940:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASServices=void 0;class AccountSASServices{static parse(e){const t=new AccountSASServices;for(const o of e){switch(o){case"b":t.blob=true;break;case"f":t.file=true;break;case"q":t.queue=true;break;case"t":t.table=true;break;default:throw new RangeError(`Invalid service character: ${o}`)}}return t}blob=false;file=false;queue=false;table=false;toString(){const e=[];if(this.blob){e.push("b")}if(this.table){e.push("t")}if(this.queue){e.push("q")}if(this.file){e.push("f")}return e.join("")}}t.AccountSASServices=AccountSASServices},85238:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.generateAccountSASQueryParameters=generateAccountSASQueryParameters;t.generateAccountSASQueryParametersInternal=generateAccountSASQueryParametersInternal;const i=o(6358);const a=o(91267);const d=o(46940);const m=o(2977);const f=o(26823);const h=o(27323);const P=o(47764);function generateAccountSASQueryParameters(e,t){return generateAccountSASQueryParametersInternal(e,t).sasQueryParameters}function generateAccountSASQueryParametersInternal(e,t){const o=e.version?e.version:h.SERVICE_VERSION;if(e.permissions&&e.permissions.setImmutabilityPolicy&&o<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&o<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&o<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(e.permissions&&e.permissions.tag&&o<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(e.permissions&&e.permissions.filter&&o<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(e.encryptionScope&&o<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const _=i.AccountSASPermissions.parse(e.permissions.toString());const L=d.AccountSASServices.parse(e.services).toString();const U=a.AccountSASResourceTypes.parse(e.resourceTypes).toString();let j;if(o>="2020-12-06"){j=[t.accountName,_,L,U,e.startsOn?(0,P.truncatedISO8061Date)(e.startsOn,false):"",(0,P.truncatedISO8061Date)(e.expiresOn,false),e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",o,e.encryptionScope?e.encryptionScope:"",""].join("\n")}else{j=[t.accountName,_,L,U,e.startsOn?(0,P.truncatedISO8061Date)(e.startsOn,false):"",(0,P.truncatedISO8061Date)(e.expiresOn,false),e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",o,""].join("\n")}const H=t.computeHMACSHA256(j);return{sasQueryParameters:new f.SASQueryParameters(o,H,_.toString(),L,U,e.protocol,e.startsOn,e.expiresOn,e.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,e.encryptionScope),stringToSign:j}}},2232:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobSASPermissions=void 0;class BlobSASPermissions{static parse(e){const t=new BlobSASPermissions;for(const o of e){switch(o){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"t":t.tag=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission: ${o}`)}}return t}static from(e){const t=new BlobSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}read=false;add=false;create=false;write=false;delete=false;deleteVersion=false;tag=false;move=false;execute=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}t.BlobSASPermissions=BlobSASPermissions},656:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.generateBlobSASQueryParameters=generateBlobSASQueryParameters;t.generateBlobSASQueryParametersInternal=generateBlobSASQueryParametersInternal;const i=o(2232);const a=o(51622);const d=o(51382);const m=o(2977);const f=o(26823);const h=o(27323);const P=o(47764);const _=o(51382);function generateBlobSASQueryParameters(e,t,o){return generateBlobSASQueryParametersInternal(e,t,o).sasQueryParameters}function generateBlobSASQueryParametersInternal(e,t,o){const i=e.version?e.version:h.SERVICE_VERSION;const a=t instanceof d.StorageSharedKeyCredential?t:undefined;let m;if(a===undefined&&o!==undefined){m=new _.UserDelegationKeyCredential(o,t)}if(a===undefined&&m===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(i>="2020-12-06"){if(a!==undefined){return generateBlobSASQueryParameters20201206(e,a)}else{if(i>="2025-07-05"){return generateBlobSASQueryParametersUDK20250705(e,m)}else{return generateBlobSASQueryParametersUDK20201206(e,m)}}}if(i>="2018-11-09"){if(a!==undefined){return generateBlobSASQueryParameters20181109(e,a)}else{if(i>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(e,m)}else{return generateBlobSASQueryParametersUDK20181109(e,m)}}}if(i>="2015-04-05"){if(a!==undefined){return generateBlobSASQueryParameters20150405(e,a)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let o="c";if(e.blobName){o="b"}let d;if(e.permissions){if(e.blobName){d=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{d=a.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const h=[d?d:"",e.startsOn?(0,P.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,P.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const _=t.computeHMACSHA256(h);return{sasQueryParameters:new f.SASQueryParameters(e.version,_,d,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,o,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:h}}function generateBlobSASQueryParameters20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let o="c";let d=e.snapshotTime;if(e.blobName){o="b";if(e.snapshotTime){o="bs"}else if(e.versionId){o="bv";d=e.versionId}}let h;if(e.permissions){if(e.blobName){h=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{h=a.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const _=[h?h:"",e.startsOn?(0,P.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,P.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,o,d,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const L=t.computeHMACSHA256(_);return{sasQueryParameters:new f.SASQueryParameters(e.version,L,h,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,o,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:_}}function generateBlobSASQueryParameters20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let o="c";let d=e.snapshotTime;if(e.blobName){o="b";if(e.snapshotTime){o="bs"}else if(e.versionId){o="bv";d=e.versionId}}let h;if(e.permissions){if(e.blobName){h=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{h=a.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const _=[h?h:"",e.startsOn?(0,P.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,P.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,o,d,e.encryptionScope,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const L=t.computeHMACSHA256(_);return{sasQueryParameters:new f.SASQueryParameters(e.version,L,h,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,o,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,undefined,undefined,undefined,e.encryptionScope),stringToSign:_}}function generateBlobSASQueryParametersUDK20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let o="c";let d=e.snapshotTime;if(e.blobName){o="b";if(e.snapshotTime){o="bs"}else if(e.versionId){o="bv";d=e.versionId}}let h;if(e.permissions){if(e.blobName){h=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{h=a.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const _=[h?h:"",e.startsOn?(0,P.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,P.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,P.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,P.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,o,d,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const L=t.computeHMACSHA256(_);return{sasQueryParameters:new f.SASQueryParameters(e.version,L,h,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,o,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:_}}function generateBlobSASQueryParametersUDK20200210(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let o="c";let d=e.snapshotTime;if(e.blobName){o="b";if(e.snapshotTime){o="bs"}else if(e.versionId){o="bv";d=e.versionId}}let h;if(e.permissions){if(e.blobName){h=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{h=a.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const _=[h?h:"",e.startsOn?(0,P.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,P.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,P.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,P.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,o,d,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const L=t.computeHMACSHA256(_);return{sasQueryParameters:new f.SASQueryParameters(e.version,L,h,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,o,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:_}}function generateBlobSASQueryParametersUDK20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let o="c";let d=e.snapshotTime;if(e.blobName){o="b";if(e.snapshotTime){o="bs"}else if(e.versionId){o="bv";d=e.versionId}}let h;if(e.permissions){if(e.blobName){h=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{h=a.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const _=[h?h:"",e.startsOn?(0,P.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,P.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,P.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,P.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,o,d,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const L=t.computeHMACSHA256(_);return{sasQueryParameters:new f.SASQueryParameters(e.version,L,h,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,o,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:_}}function generateBlobSASQueryParametersUDK20250705(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let o="c";let d=e.snapshotTime;if(e.blobName){o="b";if(e.snapshotTime){o="bs"}else if(e.versionId){o="bv";d=e.versionId}}let h;if(e.permissions){if(e.blobName){h=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{h=a.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const _=[h?h:"",e.startsOn?(0,P.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,P.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,P.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,P.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,undefined,e.delegatedUserObjectId,e.ipRange?(0,m.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,o,d,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const L=t.computeHMACSHA256(_);return{sasQueryParameters:new f.SASQueryParameters(e.version,L,h,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,o,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope,e.delegatedUserObjectId),stringToSign:_}}function getCanonicalName(e,t,o){const i=[`/blob/${e}/${t}`];if(o){i.push(`/${o}`)}return i.join("")}function SASSignatureValuesSanityCheckAndAutofill(e){const t=e.version?e.version:h.SERVICE_VERSION;if(e.snapshotTime&&t<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(e.blobName===undefined&&e.snapshotTime){throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.")}if(e.versionId&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.")}if(e.blobName===undefined&&e.versionId){throw RangeError("Must provide 'blobName' when providing 'versionId'.")}if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.")}if(e.permissions&&e.permissions.tag&&t<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.")}if(t<"2020-02-10"&&e.permissions&&(e.permissions.move||e.permissions.execute)){throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.")}if(t<"2021-04-10"&&e.permissions&&e.permissions.filterByTags){throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.")}if(t<"2020-02-10"&&(e.preauthorizedAgentObjectId||e.correlationId)){throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.")}if(e.encryptionScope&&t<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}e.version=t;return e}},51622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerSASPermissions=void 0;class ContainerSASPermissions{static parse(e){const t=new ContainerSASPermissions;for(const o of e){switch(o){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"l":t.list=true;break;case"t":t.tag=true;break;case"x":t.deleteVersion=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;case"f":t.filterByTags=true;break;default:throw new RangeError(`Invalid permission ${o}`)}}return t}static from(e){const t=new ContainerSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.list){t.list=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}if(e.filterByTags){t.filterByTags=true}return t}read=false;add=false;create=false;write=false;delete=false;deleteVersion=false;list=false;tag=false;move=false;execute=false;setImmutabilityPolicy=false;permanentDelete=false;filterByTags=false;toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.list){e.push("l")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}if(this.filterByTags){e.push("f")}return e.join("")}}t.ContainerSASPermissions=ContainerSASPermissions},26823:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SASQueryParameters=t.SASProtocol=void 0;const i=o(2977);const a=o(47764);var d;(function(e){e["Https"]="https";e["HttpsAndHttp"]="https,http"})(d||(t.SASProtocol=d={}));class SASQueryParameters{version;protocol;startsOn;expiresOn;permissions;services;resourceTypes;identifier;delegatedUserObjectId;encryptionScope;resource;signature;cacheControl;contentDisposition;contentEncoding;contentLanguage;contentType;ipRangeInner;signedOid;signedTenantId;signedStartsOn;signedExpiresOn;signedService;signedVersion;preauthorizedAgentObjectId;correlationId;get ipRange(){if(this.ipRangeInner){return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}return undefined}constructor(e,t,o,i,a,d,m,f,h,P,_,L,U,j,H,V,K,W,X,Q,Y){this.version=e;this.signature=t;if(o!==undefined&&typeof o!=="string"){this.permissions=o.permissions;this.services=o.services;this.resourceTypes=o.resourceTypes;this.protocol=o.protocol;this.startsOn=o.startsOn;this.expiresOn=o.expiresOn;this.ipRangeInner=o.ipRange;this.identifier=o.identifier;this.delegatedUserObjectId=o.delegatedUserObjectId;this.encryptionScope=o.encryptionScope;this.resource=o.resource;this.cacheControl=o.cacheControl;this.contentDisposition=o.contentDisposition;this.contentEncoding=o.contentEncoding;this.contentLanguage=o.contentLanguage;this.contentType=o.contentType;if(o.userDelegationKey){this.signedOid=o.userDelegationKey.signedObjectId;this.signedTenantId=o.userDelegationKey.signedTenantId;this.signedStartsOn=o.userDelegationKey.signedStartsOn;this.signedExpiresOn=o.userDelegationKey.signedExpiresOn;this.signedService=o.userDelegationKey.signedService;this.signedVersion=o.userDelegationKey.signedVersion;this.preauthorizedAgentObjectId=o.preauthorizedAgentObjectId;this.correlationId=o.correlationId}}else{this.services=i;this.resourceTypes=a;this.expiresOn=f;this.permissions=o;this.protocol=d;this.startsOn=m;this.ipRangeInner=h;this.delegatedUserObjectId=Y;this.encryptionScope=Q;this.identifier=P;this.resource=_;this.cacheControl=L;this.contentDisposition=U;this.contentEncoding=j;this.contentLanguage=H;this.contentType=V;if(K){this.signedOid=K.signedObjectId;this.signedTenantId=K.signedTenantId;this.signedStartsOn=K.signedStartsOn;this.signedExpiresOn=K.signedExpiresOn;this.signedService=K.signedService;this.signedVersion=K.signedVersion;this.preauthorizedAgentObjectId=W;this.correlationId=X}}}toString(){const e=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid","sduoid"];const t=[];for(const o of e){switch(o){case"sv":this.tryAppendQueryParameter(t,o,this.version);break;case"ss":this.tryAppendQueryParameter(t,o,this.services);break;case"srt":this.tryAppendQueryParameter(t,o,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(t,o,this.protocol);break;case"st":this.tryAppendQueryParameter(t,o,this.startsOn?(0,a.truncatedISO8061Date)(this.startsOn,false):undefined);break;case"se":this.tryAppendQueryParameter(t,o,this.expiresOn?(0,a.truncatedISO8061Date)(this.expiresOn,false):undefined);break;case"sip":this.tryAppendQueryParameter(t,o,this.ipRange?(0,i.ipRangeToString)(this.ipRange):undefined);break;case"si":this.tryAppendQueryParameter(t,o,this.identifier);break;case"ses":this.tryAppendQueryParameter(t,o,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(t,o,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(t,o,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(t,o,this.signedStartsOn?(0,a.truncatedISO8061Date)(this.signedStartsOn,false):undefined);break;case"ske":this.tryAppendQueryParameter(t,o,this.signedExpiresOn?(0,a.truncatedISO8061Date)(this.signedExpiresOn,false):undefined);break;case"sks":this.tryAppendQueryParameter(t,o,this.signedService);break;case"skv":this.tryAppendQueryParameter(t,o,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(t,o,this.resource);break;case"sp":this.tryAppendQueryParameter(t,o,this.permissions);break;case"sig":this.tryAppendQueryParameter(t,o,this.signature);break;case"rscc":this.tryAppendQueryParameter(t,o,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(t,o,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(t,o,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(t,o,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(t,o,this.contentType);break;case"saoid":this.tryAppendQueryParameter(t,o,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(t,o,this.correlationId);break;case"sduoid":this.tryAppendQueryParameter(t,o,this.delegatedUserObjectId);break}}return t.join("&")}tryAppendQueryParameter(e,t,o){if(!o){return}t=encodeURIComponent(t);o=encodeURIComponent(o);if(t.length>0&&o.length>0){e.push(`${t}=${o}`)}}}t.SASQueryParameters=SASQueryParameters},2977:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ipRangeToString=ipRangeToString;function ipRangeToString(e){return e.end?`${e.start}-${e.end}`:e.start}},81582:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Batch=void 0;const i=o(24434);var a;(function(e){e[e["Good"]=0]="Good";e[e["Error"]=1]="Error"})(a||(a={}));class Batch{concurrency;actives=0;completed=0;offset=0;operations=[];state=a.Good;emitter;constructor(e=5){if(e<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=e;this.emitter=new i.EventEmitter}addOperation(e){this.operations.push((async()=>{try{this.actives++;await e();this.actives--;this.completed++;this.parallelExecute()}catch(e){this.emitter.emit("error",e)}}))}async do(){if(this.operations.length===0){return Promise.resolve()}this.parallelExecute();return new Promise(((e,t)=>{this.emitter.on("finish",e);this.emitter.on("error",(e=>{this.state=a.Error;t(e)}))}))}nextOperation(){if(this.offset<this.operations.length){return this.operations[this.offset++]}return null}parallelExecute(){if(this.state===a.Error){return}if(this.completed>=this.operations.length){this.emitter.emit("finish");return}while(this.actives<this.concurrency){const e=this.nextOperation();if(e){e()}else{return}}}}t.Batch=Batch},36426:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobQuickQueryStream=void 0;const i=o(57075);const a=o(96147);class BlobQuickQueryStream extends i.Readable{source;avroReader;avroIter;avroPaused=true;onProgress;onError;constructor(e,t={}){super();this.source=e;this.onProgress=t.onProgress;this.onError=t.onError;this.avroReader=new a.AvroReader(new a.AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((e=>{this.emit("error",e)}))}}async readInternal(){this.avroPaused=false;let e;do{e=await this.avroIter.next();if(e.done){break}const t=e.value;const o=t.$schema;if(typeof o!=="string"){throw Error("Missing schema in avro record.")}switch(o){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const e=t.data;if(e instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(e))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const e=t.bytesScanned;if(typeof e!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:e})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const e=t.totalBytes;if(typeof e!=="number"){throw Error("Invalid totalBytes in avro end record.")}this.onProgress({loadedBytes:e})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){const e=t.fatal;if(typeof e!=="boolean"){throw Error("Invalid fatal in avro error record.")}const o=t.name;if(typeof o!=="string"){throw Error("Invalid name in avro error record.")}const i=t.description;if(typeof i!=="string"){throw Error("Invalid description in avro error record.")}const a=t.position;if(typeof a!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:a,name:o,isFatal:e,description:i})}break;default:throw Error(`Unknown schema ${o} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}}t.BlobQuickQueryStream=BlobQuickQueryStream},58913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Mutex=void 0;var o;(function(e){e[e["LOCKED"]=0]="LOCKED";e[e["UNLOCKED"]=1]="UNLOCKED"})(o||(o={}));class Mutex{static async lock(e){return new Promise((t=>{if(this.keys[e]===undefined||this.keys[e]===o.UNLOCKED){this.keys[e]=o.LOCKED;t()}else{this.onUnlockEvent(e,(()=>{this.keys[e]=o.LOCKED;t()}))}}))}static async unlock(e){return new Promise((t=>{if(this.keys[e]===o.LOCKED){this.emitUnlockEvent(e)}delete this.keys[e];t()}))}static keys={};static listeners={};static onUnlockEvent(e,t){if(this.listeners[e]===undefined){this.listeners[e]=[t]}else{this.listeners[e].push(t)}}static emitUnlockEvent(e){if(this.listeners[e]!==undefined&&this.listeners[e].length>0){const t=this.listeners[e].shift();setImmediate((()=>{t.call(this)}))}}}t.Mutex=Mutex},98684:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RetriableReadableStream=void 0;const i=o(83134);const a=o(57075);class RetriableReadableStream extends a.Readable{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,o,i,a={}){super({highWaterMark:a.highWaterMark});this.getter=t;this.source=e;this.start=o;this.offset=o;this.end=o+i-1;this.maxRetryRequests=a.maxRetryRequests&&a.maxRetryRequests>=0?a.maxRetryRequests:0;this.onProgress=a.onProgress;this.options=a;this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler);this.source.on("end",this.sourceErrorOrEndHandler);this.source.on("error",this.sourceErrorOrEndHandler);this.source.on("aborted",this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler);this.source.removeListener("aborted",this.sourceAbortedHandler)}sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.sourceErrorOrEndHandler();this.source.destroy();return}this.offset+=e.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(e)){this.source.pause()}};sourceAbortedHandler=()=>{const e=new i.AbortError("The operation was aborted.");this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name==="AbortError"){this.destroy(e);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries<this.maxRetryRequests){this.retries+=1;this.getter(this.offset).then((e=>{this.source=e;this.setSourceEventHandlers();return})).catch((e=>{this.destroy(e)}))}else{this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`))}}else{this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))}};_destroy(e,t){this.removeSourceEventHandlers();this.source.destroy();t(e===null?undefined:e)}}t.RetriableReadableStream=RetriableReadableStream},27323:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PathStylePorts=t.BlobDoesNotUseCustomerSpecifiedEncryption=t.BlobUsesCustomerSpecifiedEncryptionMsg=t.StorageBlobLoggingAllowedQueryParameters=t.StorageBlobLoggingAllowedHeaderNames=t.DevelopmentConnectionString=t.EncryptionAlgorithmAES25=t.HTTP_VERSION_1_1=t.HTTP_LINE_ENDING=t.BATCH_MAX_PAYLOAD_IN_BYTES=t.BATCH_MAX_REQUEST=t.SIZE_1_MB=t.ETagAny=t.ETagNone=t.HeaderConstants=t.HTTPURLConnection=t.URLConstants=t.StorageOAuthScopes=t.REQUEST_TIMEOUT=t.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=t.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=t.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=t.BLOCK_BLOB_MAX_BLOCKS=t.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=t.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=t.SERVICE_VERSION=t.SDK_VERSION=void 0;t.SDK_VERSION="12.31.0";t.SERVICE_VERSION="2026-02-06";t.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=256*1024*1024;t.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=4e3*1024*1024;t.BLOCK_BLOB_MAX_BLOCKS=5e4;t.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=8*1024*1024;t.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=4*1024*1024;t.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=5;t.REQUEST_TIMEOUT=100*1e3;t.StorageOAuthScopes="https://storage.azure.com/.default";t.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};t.HTTPURLConnection={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};t.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};t.ETagNone="";t.ETagAny="*";t.SIZE_1_MB=1*1024*1024;t.BATCH_MAX_REQUEST=256;t.BATCH_MAX_PAYLOAD_IN_BYTES=4*t.SIZE_1_MB;t.HTTP_LINE_ENDING="\r\n";t.HTTP_VERSION_1_1="HTTP/1.1";t.EncryptionAlgorithmAES25="AES256";t.DevelopmentConnectionString=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;t.StorageBlobLoggingAllowedHeaderNames=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"];t.StorageBlobLoggingAllowedQueryParameters=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"];t.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";t.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";t.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]},53952:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tracingClient=void 0;const i=o(20623);const a=o(27323);t.tracingClient=(0,i.createTracingClient)({packageName:"@azure/storage-blob",packageVersion:a.SDK_VERSION,namespace:"Microsoft.Storage"})},47764:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeURLPath=escapeURLPath;t.getValueInConnString=getValueInConnString;t.extractConnectionStringParts=extractConnectionStringParts;t.appendToURLPath=appendToURLPath;t.setURLParameter=setURLParameter;t.getURLParameter=getURLParameter;t.setURLHost=setURLHost;t.getURLPath=getURLPath;t.getURLScheme=getURLScheme;t.getURLPathAndQuery=getURLPathAndQuery;t.getURLQueries=getURLQueries;t.appendToURLQuery=appendToURLQuery;t.truncatedISO8061Date=truncatedISO8061Date;t.base64encode=base64encode;t.base64decode=base64decode;t.generateBlockID=generateBlockID;t.delay=delay;t.padStart=padStart;t.sanitizeURL=sanitizeURL;t.sanitizeHeaders=sanitizeHeaders;t.iEqual=iEqual;t.getAccountNameFromUrl=getAccountNameFromUrl;t.isIpEndpointStyle=isIpEndpointStyle;t.toBlobTagsString=toBlobTagsString;t.toBlobTags=toBlobTags;t.toTags=toTags;t.toQuerySerialization=toQuerySerialization;t.parseObjectReplicationRecord=parseObjectReplicationRecord;t.attachCredential=attachCredential;t.httpAuthorizationToString=httpAuthorizationToString;t.BlobNameToString=BlobNameToString;t.ConvertInternalResponseOfListBlobFlat=ConvertInternalResponseOfListBlobFlat;t.ConvertInternalResponseOfListBlobHierarchy=ConvertInternalResponseOfListBlobHierarchy;t.ExtractPageRangeInfoItems=ExtractPageRangeInfoItems;t.EscapePath=EscapePath;t.assertResponse=assertResponse;const i=o(20778);const a=o(87779);const d=o(27323);function escapeURLPath(e){const t=new URL(e);let o=t.pathname;o=o||"/";o=escape(o);t.pathname=o;return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const o=e.split(";");for(const e of o){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const o=e.split(";");for(const e of o){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=getProxyUriFromDevConnString(e);e=d.DevelopmentConnectionString}let o=getValueInConnString(e,"BlobEndpoint");o=o.endsWith("/")?o.slice(0,-1):o;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let i="";let a="";let d=Buffer.from("accountKey","base64");let m="";a=getValueInConnString(e,"AccountName");d=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!o){i=getValueInConnString(e,"DefaultEndpointsProtocol");const t=i.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}m=getValueInConnString(e,"EndpointSuffix");if(!m){throw new Error("Invalid EndpointSuffix in the provided Connection String")}o=`${i}://${a}.blob.${m}`}if(!a){throw new Error("Invalid AccountName in the provided Connection String")}else if(d.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:o,accountName:a,accountKey:d,proxyUri:t}}else{let t=getValueInConnString(e,"SharedAccessSignature");let i=getValueInConnString(e,"AccountName");if(!i){i=getAccountNameFromUrl(o)}if(!o){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:o,accountName:i,accountSas:t}}}function escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const o=new URL(e);let i=o.pathname;i=i?i.endsWith("/")?`${i}${t}`:`${i}/${t}`:t;o.pathname=i;return o.toString()}function setURLParameter(e,t,o){const i=new URL(e);const a=encodeURIComponent(t);const d=o?encodeURIComponent(o):undefined;const m=i.search===""?"?":i.search;const f=[];for(const e of m.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==a){f.push(e)}}}if(d){f.push(`${a}=${d}`)}i.search=f.length?`?${f.join("&")}`:"";return i.toString()}function getURLParameter(e,t){const o=new URL(e);return o.searchParams.get(t)??undefined}function setURLHost(e,t){const o=new URL(e);o.hostname=t;return o.toString()}function getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function getURLPathAndQuery(e){const t=new URL(e);const o=t.pathname;if(!o){throw new RangeError("Invalid url without valid path.")}let i=t.search||"";i=i.trim();if(i!==""){i=i.startsWith("?")?i:`?${i}`}return`${o}${i}`}function getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let o=t.split("&");o=o.filter((e=>{const t=e.indexOf("=");const o=e.lastIndexOf("=");return t>0&&t===o&&o<e.length-1}));const i={};for(const e of o){const t=e.split("=");const o=t[0];const a=t[1];i[o]=a}return i}function appendToURLQuery(e,t){const o=new URL(e);let i=o.search;if(i){i+="&"+t}else{i=t}o.search=i;return o.toString()}function truncatedISO8061Date(e,t=true){const o=e.toISOString();return t?o.substring(0,o.length-1)+"0000"+"Z":o.substring(0,o.length-5)+"Z"}function base64encode(e){return!a.isNodeLike?btoa(e):Buffer.from(e).toString("base64")}function base64decode(e){return!a.isNodeLike?atob(e):Buffer.from(e,"base64").toString()}function generateBlockID(e,t){const o=48;const i=6;const a=o-i;if(e.length>a){e=e.slice(0,a)}const d=e+padStart(t.toString(),o-e.length,"0");return base64encode(d)}async function delay(e,t,o){return new Promise(((i,a)=>{let d;const abortHandler=()=>{if(d!==undefined){clearTimeout(d)}a(o)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}i()};d=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,o=" "){if(String.prototype.padStart){return e.padStart(t,o)}o=o||" ";if(e.length>t){return e}else{t=t-e.length;if(t>o.length){o+=o.repeat(t/o.length)}return o.slice(0,t)+e}}function sanitizeURL(e){let t=e;if(getURLParameter(t,d.URLConstants.Parameters.SIGNATURE)){t=setURLParameter(t,d.URLConstants.Parameters.SIGNATURE,"*****")}return t}function sanitizeHeaders(e){const t=(0,i.createHttpHeaders)();for(const[o,i]of e){if(o.toLowerCase()===d.HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(o,"*****")}else if(o.toLowerCase()===d.HeaderConstants.X_MS_COPY_SOURCE){t.set(o,sanitizeURL(i))}else{t.set(o,i)}}return t}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=new URL(e);let o;try{if(t.hostname.split(".")[1]==="blob"){o=t.hostname.split(".")[0]}else if(isIpEndpointStyle(t)){o=t.pathname.split("/")[1]}else{o=""}return o}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&d.PathStylePorts.includes(e.port)}function toBlobTagsString(e){if(e===undefined){return undefined}const t=[];for(const o in e){if(Object.prototype.hasOwnProperty.call(e,o)){const i=e[o];t.push(`${encodeURIComponent(o)}=${encodeURIComponent(i)}`)}}return t.join("&")}function toBlobTags(e){if(e===undefined){return undefined}const t={blobTagSet:[]};for(const o in e){if(Object.prototype.hasOwnProperty.call(e,o)){const i=e[o];t.blobTagSet.push({key:o,value:i})}}return t}function toTags(e){if(e===undefined){return undefined}const t={};for(const o of e.blobTagSet){t[o.key]=o.value}return t}function toQuerySerialization(e){if(e===undefined){return undefined}switch(e.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:e.columnSeparator||",",fieldQuote:e.fieldQuote||"",recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||"",headersPresent:e.hasHeaders||false}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:e.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function parseObjectReplicationRecord(e){if(!e){return undefined}if("policy-id"in e){return undefined}const t=[];for(const o in e){const i=o.split("_");const a="or-";if(i[0].startsWith(a)){i[0]=i[0].substring(a.length)}const d={ruleId:i[1],replicationStatus:e[o]};const m=t.findIndex((e=>e.policyId===i[0]));if(m>-1){t[m].rules.push(d)}else{t.push({policyId:i[0],rules:[d]})}}return t}function attachCredential(e,t){e.credential=t;return e}function httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function BlobNameToString(e){if(e.encoded){return decodeURIComponent(e.content)}else{return e.content}}function ConvertInternalResponseOfListBlobFlat(e){return{...e,segment:{blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function ConvertInternalResponseOfListBlobHierarchy(e){return{...e,segment:{blobPrefixes:e.segment.blobPrefixes?.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t})),blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function*ExtractPageRangeInfoItems(e){let t=[];let o=[];if(e.pageRange)t=e.pageRange;if(e.clearRange)o=e.clearRange;let i=0;let a=0;while(i<t.length&&a<o.length){if(t[i].start<o[a].start){yield{start:t[i].start,end:t[i].end,isClear:false};++i}else{yield{start:o[a].start,end:o[a].end,isClear:true};++a}}for(;i<t.length;++i){yield{start:t[i].start,end:t[i].end,isClear:false}}for(;a<o.length;++a){yield{start:o[a].start,end:o[a].end,isClear:true}}}function EscapePath(e){const t=e.split("/");for(let e=0;e<t.length;e++){t[e]=encodeURIComponent(t[e])}return t.join("/")}function assertResponse(e){if(`_response`in e){return e}throw new TypeError(`Unexpected response object ${e}`)}},53563:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fsCreateReadStream=t.fsStat=void 0;t.streamToBuffer=streamToBuffer;t.streamToBuffer2=streamToBuffer2;t.streamToBuffer3=streamToBuffer3;t.readStreamToLocalFile=readStreamToLocalFile;const i=o(61860);const a=i.__importDefault(o(73024));const d=i.__importDefault(o(57975));const m=o(27323);async function streamToBuffer(e,t,o,i,a){let d=0;const f=i-o;return new Promise(((i,h)=>{const P=setTimeout((()=>h(new Error(`The operation cannot be completed in timeout.`))),m.REQUEST_TIMEOUT);e.on("readable",(()=>{if(d>=f){clearTimeout(P);i();return}let m=e.read();if(!m){return}if(typeof m==="string"){m=Buffer.from(m,a)}const h=d+m.length>f?f-d:m.length;t.fill(m.slice(0,h),o+d,o+d+h);d+=h}));e.on("end",(()=>{clearTimeout(P);if(d<f){h(new Error(`Stream drains before getting enough data needed. Data read: ${d}, data need: ${f}`))}i()}));e.on("error",(e=>{clearTimeout(P);h(e)}))}))}async function streamToBuffer2(e,t,o){let i=0;const a=t.length;return new Promise(((d,m)=>{e.on("readable",(()=>{let d=e.read();if(!d){return}if(typeof d==="string"){d=Buffer.from(d,o)}if(i+d.length>a){m(new Error(`Stream exceeds buffer size. Buffer size: ${a}`));return}t.fill(d,i,i+d.length);i+=d.length}));e.on("end",(()=>{d(i)}));e.on("error",m)}))}async function streamToBuffer3(e,t){return new Promise(((o,i)=>{const a=[];e.on("data",(e=>{a.push(typeof e==="string"?Buffer.from(e,t):e)}));e.on("end",(()=>{o(Buffer.concat(a))}));e.on("error",i)}))}async function readStreamToLocalFile(e,t){return new Promise(((o,i)=>{const d=a.default.createWriteStream(t);e.on("error",(e=>{i(e)}));d.on("error",(e=>{i(e)}));d.on("close",o);e.pipe(d)}))}t.fsStat=d.default.promisify(a.default.stat);t.fsCreateReadStream=a.default.createReadStream},86381:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BufferScheduler=void 0;const i=o(24434);const a=o(52121);class BufferScheduler{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new i.EventEmitter;concurrency;offset=0;isStreamEnd=false;isError=false;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,o,i,a,d){if(t<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${t}`)}if(o<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${o}`)}if(a<=0){throw new RangeError(`concurrency must be larger than 0, current is ${a}`)}this.bufferSize=t;this.maxBuffers=o;this.readable=e;this.outgoingHandler=i;this.concurrency=a;this.encoding=d}async do(){return new Promise(((e,t)=>{this.readable.on("data",(e=>{e=typeof e==="string"?Buffer.from(e,this.encoding):e;this.appendUnresolvedData(e);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(e=>{this.emitter.emit("error",e)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(e=>{this.isError=true;this.readable.pause();t(e)}));this.emitter.on("checkEnd",(()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0){if(this.unresolvedLength>0&&this.unresolvedLength<this.bufferSize){const o=this.shiftBufferFromUnresolvedDataArray();this.outgoingHandler((()=>o.getReadableStream()),o.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize){return}else{e()}}}))}))}appendUnresolvedData(e){this.unresolvedDataArray.push(e);this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){if(!e){e=new a.PooledBuffer(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength)}else{e.fill(this.unresolvedDataArray,this.unresolvedLength)}this.unresolvedLength-=e.size;return e}resolveData(){while(this.unresolvedLength>=this.bufferSize){let e;if(this.incoming.length>0){e=this.incoming.shift();this.shiftBufferFromUnresolvedDataArray(e)}else{if(this.numBuffers<this.maxBuffers){e=this.shiftBufferFromUnresolvedDataArray();this.numBuffers++}else{return false}}this.outgoing.push(e);this.triggerOutgoingHandlers()}return true}async triggerOutgoingHandlers(){let e;do{if(this.executingOutgoingHandlers>=this.concurrency){return}e=this.outgoing.shift();if(e){this.triggerOutgoingHandler(e)}}while(e)}async triggerOutgoingHandler(e){const t=e.size;this.executingOutgoingHandlers++;this.offset+=t;try{await this.outgoingHandler((()=>e.getReadableStream()),t,this.offset-t)}catch(e){this.emitter.emit("error",e);return}this.executingOutgoingHandlers--;this.reuseBuffer(e);this.emitter.emit("checkEnd")}reuseBuffer(e){this.incoming.push(e);if(!this.isError&&this.resolveData()&&!this.isStreamEnd){this.readable.resume()}}}t.BufferScheduler=BufferScheduler},66093:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BuffersStream=void 0;const i=o(57075);class BuffersStream extends i.Readable{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,o){super(o);this.buffers=e;this.byteLength=t;this.byteOffsetInCurrentBuffer=0;this.bufferIndex=0;this.pushedBytesLength=0;let i=0;for(const e of this.buffers){i+=e.byteLength}if(i<this.byteLength){throw new Error("Data size shouldn't be larger than the total length of buffers.")}}_read(e){if(this.pushedBytesLength>=this.byteLength){this.push(null)}if(!e){e=this.readableHighWaterMark}const t=[];let o=0;while(o<e&&this.pushedBytesLength<this.byteLength){const i=this.byteLength-this.pushedBytesLength;const a=this.buffers[this.bufferIndex].byteLength-this.byteOffsetInCurrentBuffer;const d=Math.min(a,i);if(d>e-o){const i=this.byteOffsetInCurrentBuffer+e-o;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,i));this.pushedBytesLength+=e-o;this.byteOffsetInCurrentBuffer=i;o=e;break}else{const e=this.byteOffsetInCurrentBuffer+d;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e));if(d===a){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=e}this.pushedBytesLength+=d;o+=d}}if(t.length>1){this.push(Buffer.concat(t))}else if(t.length===1){this.push(t[0])}}}t.BuffersStream=BuffersStream},52121:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PooledBuffer=void 0;const i=o(61860);const a=o(66093);const d=i.__importDefault(o(4573));const m=d.default.constants.MAX_LENGTH;class PooledBuffer{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,o){this.capacity=e;this._size=0;const i=Math.ceil(e/m);for(let t=0;t<i;t++){let o=t===i-1?e%m:m;if(o===0){o=m}this.buffers.push(Buffer.allocUnsafe(o))}if(t){this.fill(t,o)}}fill(e,t){this._size=Math.min(this.capacity,t);let o=0,i=0,a=0,d=0,m=0;while(m<this._size){const t=e[o];const f=this.buffers[i];const h=t.copy(f,a,d);m+=h;d+=h;a+=h;if(d===t.length){o++;d=0}if(a===f.length){i++;a=0}}e.splice(0,o);if(e.length>0){e[0]=e[0].slice(d)}}getReadableStream(){return new a.BuffersStream(this.buffers,this.size)}}t.PooledBuffer=PooledBuffer},4399:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicyFactory=t.StorageBrowserPolicy=void 0;const i=o(22312);Object.defineProperty(t,"StorageBrowserPolicy",{enumerable:true,get:function(){return i.StorageBrowserPolicy}});class StorageBrowserPolicyFactory{create(e,t){return new i.StorageBrowserPolicy(e,t)}}t.StorageBrowserPolicyFactory=StorageBrowserPolicyFactory},77321:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyFactory=t.NewRetryPolicyFactory=t.StorageRetryPolicy=t.StorageRetryPolicyType=void 0;const i=o(27734);Object.defineProperty(t,"StorageRetryPolicy",{enumerable:true,get:function(){return i.StorageRetryPolicy}});Object.defineProperty(t,"NewRetryPolicyFactory",{enumerable:true,get:function(){return i.NewRetryPolicyFactory}});const a=o(38622);Object.defineProperty(t,"StorageRetryPolicyType",{enumerable:true,get:function(){return a.StorageRetryPolicyType}});class StorageRetryPolicyFactory{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new i.StorageRetryPolicy(e,t,this.retryOptions)}}t.StorageRetryPolicyFactory=StorageRetryPolicyFactory},68376:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCachedDefaultHttpClient=getCachedDefaultHttpClient;const i=o(20778);let a;function getCachedDefaultHttpClient(){if(!a){a=(0,i.createDefaultHttpClient)()}return a}},32159:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredential=void 0;const i=o(63611);const a=o(450);class AnonymousCredential extends a.Credential{create(e,t){return new i.AnonymousCredentialPolicy(e,t)}}t.AnonymousCredential=AnonymousCredential},450:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Credential=void 0;class Credential{create(e,t){throw new Error("Method should be implemented in children classes.")}}t.Credential=Credential},30849:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredential=void 0;const i=o(77598);const a=o(35369);const d=o(450);class StorageSharedKeyCredential extends d.Credential{accountName;accountKey;constructor(e,t){super();this.accountName=e;this.accountKey=Buffer.from(t,"base64")}create(e,t){return new a.StorageSharedKeyCredentialPolicy(e,t,this)}computeHMACSHA256(e){return(0,i.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}}t.StorageSharedKeyCredential=StorageSharedKeyCredential},3602:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UserDelegationKeyCredential=void 0;const i=o(77598);class UserDelegationKeyCredential{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e;this.userDelegationKey=t;this.key=Buffer.from(t.value,"base64")}computeHMACSHA256(e){return(0,i.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}}t.UserDelegationKeyCredential=UserDelegationKeyCredential},51382:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseRequestPolicy=t.getCachedDefaultHttpClient=void 0;const i=o(61860);i.__exportStar(o(86381),t);var a=o(68376);Object.defineProperty(t,"getCachedDefaultHttpClient",{enumerable:true,get:function(){return a.getCachedDefaultHttpClient}});i.__exportStar(o(81420),t);i.__exportStar(o(4399),t);i.__exportStar(o(32159),t);i.__exportStar(o(450),t);i.__exportStar(o(30849),t);i.__exportStar(o(77321),t);var d=o(40590);Object.defineProperty(t,"BaseRequestPolicy",{enumerable:true,get:function(){return d.BaseRequestPolicy}});i.__exportStar(o(63611),t);i.__exportStar(o(74238),t);i.__exportStar(o(83100),t);i.__exportStar(o(92505),t);i.__exportStar(o(78178),t);i.__exportStar(o(35369),t);i.__exportStar(o(53233),t);i.__exportStar(o(24174),t);i.__exportStar(o(3602),t)},81420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},32780:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const i=o(26515);t.logger=(0,i.createClientLogger)("storage-common")},63611:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredentialPolicy=void 0;const i=o(74238);class AnonymousCredentialPolicy extends i.CredentialPolicy{constructor(e,t){super(e,t)}}t.AnonymousCredentialPolicy=AnonymousCredentialPolicy},74238:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialPolicy=void 0;const i=o(40590);class CredentialPolicy extends i.BaseRequestPolicy{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}}t.CredentialPolicy=CredentialPolicy},40590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseRequestPolicy=void 0;class BaseRequestPolicy{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e;this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}}t.BaseRequestPolicy=BaseRequestPolicy},22312:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicy=void 0;const i=o(40590);const a=o(87779);const d=o(77925);const m=o(58218);class StorageBrowserPolicy extends i.BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){if(a.isNodeLike){return this._nextPolicy.sendRequest(e)}if(e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD"){e.url=(0,m.setURLParameter)(e.url,d.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.remove(d.HeaderConstants.COOKIE);e.headers.remove(d.HeaderConstants.CONTENT_LENGTH);return this._nextPolicy.sendRequest(e)}}t.StorageBrowserPolicy=StorageBrowserPolicy},83100:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageBrowserPolicyName=void 0;t.storageBrowserPolicy=storageBrowserPolicy;const i=o(87779);const a=o(77925);const d=o(58218);t.storageBrowserPolicyName="storageBrowserPolicy";function storageBrowserPolicy(){return{name:t.storageBrowserPolicyName,async sendRequest(e,t){if(i.isNodeLike){return t(e)}if(e.method==="GET"||e.method==="HEAD"){e.url=(0,d.setURLParameter)(e.url,a.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.delete(a.HeaderConstants.COOKIE);e.headers.delete(a.HeaderConstants.CONTENT_LENGTH);return t(e)}}}},92505:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageCorrectContentLengthPolicyName=void 0;t.storageCorrectContentLengthPolicy=storageCorrectContentLengthPolicy;const i=o(77925);t.storageCorrectContentLengthPolicyName="StorageCorrectContentLengthPolicy";function storageCorrectContentLengthPolicy(){function correctContentLength(e){if(e.body&&(typeof e.body==="string"||Buffer.isBuffer(e.body))&&e.body.length>0){e.headers.set(i.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}}return{name:t.storageCorrectContentLengthPolicyName,async sendRequest(e,t){correctContentLength(e);return t(e)}}}},24174:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageRequestFailureDetailsParserPolicyName=void 0;t.storageRequestFailureDetailsParserPolicy=storageRequestFailureDetailsParserPolicy;t.storageRequestFailureDetailsParserPolicyName="storageRequestFailureDetailsParserPolicy";function storageRequestFailureDetailsParserPolicy(){return{name:t.storageRequestFailureDetailsParserPolicyName,async sendRequest(e,t){try{const o=await t(e);return o}catch(e){if(typeof e==="object"&&e!==null&&e.response&&e.response.parsedBody){if(e.response.parsedBody.code==="InvalidHeaderValue"&&e.response.parsedBody.HeaderName==="x-ms-version"){e.message="The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.\n"}}throw e}}}}},27734:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicy=void 0;t.NewRetryPolicyFactory=NewRetryPolicyFactory;const i=o(83134);const a=o(40590);const d=o(77925);const m=o(58218);const f=o(32780);const h=o(38622);function NewRetryPolicyFactory(e){return{create:(t,o)=>new StorageRetryPolicy(t,o,e)}}const P={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:h.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const _=new i.AbortError("The operation was aborted.");class StorageRetryPolicy extends a.BaseRequestPolicy{retryOptions;constructor(e,t,o=P){super(e,t);this.retryOptions={retryPolicyType:o.retryPolicyType?o.retryPolicyType:P.retryPolicyType,maxTries:o.maxTries&&o.maxTries>=1?Math.floor(o.maxTries):P.maxTries,tryTimeoutInMs:o.tryTimeoutInMs&&o.tryTimeoutInMs>=0?o.tryTimeoutInMs:P.tryTimeoutInMs,retryDelayInMs:o.retryDelayInMs&&o.retryDelayInMs>=0?Math.min(o.retryDelayInMs,o.maxRetryDelayInMs?o.maxRetryDelayInMs:P.maxRetryDelayInMs):P.retryDelayInMs,maxRetryDelayInMs:o.maxRetryDelayInMs&&o.maxRetryDelayInMs>=0?o.maxRetryDelayInMs:P.maxRetryDelayInMs,secondaryHost:o.secondaryHost?o.secondaryHost:P.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,false,1)}async attemptSendRequest(e,t,o){const i=e.clone();const a=t||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||o%2===1;if(!a){i.url=(0,m.setURLHost)(i.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){i.url=(0,m.setURLParameter)(i.url,d.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let h;try{f.logger.info(`RetryPolicy: =====> Try=${o} ${a?"Primary":"Secondary"}`);h=await this._nextPolicy.sendRequest(i);if(!this.shouldRetry(a,o,h)){return h}t=t||!a&&h.status===404}catch(e){f.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);if(!this.shouldRetry(a,o,h,e)){throw e}}await this.delay(a,o,e.abortSignal);return this.attemptSendRequest(e,t,++o)}shouldRetry(e,t,o,i){if(t>=this.retryOptions.maxTries){f.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const a=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(const e of a){if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e){f.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}}if(o||i){const t=o?o.status:i?i.statusCode:0;if(!e&&t===404){f.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){f.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(o){if(o?.status>=400){const e=o.headers.get(d.HeaderConstants.X_MS_CopySourceErrorCode);if(e!==undefined){switch(e){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}if(i?.code==="PARSE_ERROR"&&i?.message.startsWith(`Error "Error: Unclosed root tag`)){f.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(e,t,o){let i=0;if(e){switch(this.retryOptions.retryPolicyType){case h.StorageRetryPolicyType.EXPONENTIAL:i=Math.min((Math.pow(2,t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case h.StorageRetryPolicyType.FIXED:i=this.retryOptions.retryDelayInMs;break}}else{i=Math.random()*1e3}f.logger.info(`RetryPolicy: Delay for ${i}ms`);return(0,m.delay)(i,o,_)}}t.StorageRetryPolicy=StorageRetryPolicy},38622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyType=void 0;var o;(function(e){e[e["EXPONENTIAL"]=0]="EXPONENTIAL";e[e["FIXED"]=1]="FIXED"})(o||(t.StorageRetryPolicyType=o={}))},78178:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageRetryPolicyName=void 0;t.storageRetryPolicy=storageRetryPolicy;const i=o(83134);const a=o(20778);const d=o(87779);const m=o(77321);const f=o(77925);const h=o(58218);const P=o(32780);t.storageRetryPolicyName="storageRetryPolicy";const _={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:m.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const L=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];const U=new i.AbortError("The operation was aborted.");function storageRetryPolicy(e={}){const o=e.retryPolicyType??_.retryPolicyType;const i=e.maxTries??_.maxTries;const j=e.retryDelayInMs??_.retryDelayInMs;const H=e.maxRetryDelayInMs??_.maxRetryDelayInMs;const V=e.secondaryHost??_.secondaryHost;const K=e.tryTimeoutInMs??_.tryTimeoutInMs;function shouldRetry({isPrimaryRetry:e,attempt:t,response:o,error:a}){if(t>=i){P.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${i}, no further try.`);return false}if(a){for(const e of L){if(a.name.toUpperCase().includes(e)||a.message.toUpperCase().includes(e)||a.code&&a.code.toString().toUpperCase()===e){P.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}if(a?.code==="PARSE_ERROR"&&a?.message.startsWith(`Error "Error: Unclosed root tag`)){P.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}}if(o||a){const t=o?.status??a?.statusCode??0;if(!e&&t===404){P.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){P.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(o){if(o?.status>=400){const e=o.headers.get(f.HeaderConstants.X_MS_CopySourceErrorCode);if(e!==undefined){switch(e){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}return false}function calculateDelay(e,t){let i=0;if(e){switch(o){case m.StorageRetryPolicyType.EXPONENTIAL:i=Math.min((Math.pow(2,t-1)-1)*j,H);break;case m.StorageRetryPolicyType.FIXED:i=j;break}}else{i=Math.random()*1e3}P.logger.info(`RetryPolicy: Delay for ${i}ms`);return i}return{name:t.storageRetryPolicyName,async sendRequest(e,t){if(K){e.url=(0,h.setURLParameter)(e.url,f.URLConstants.Parameters.TIMEOUT,String(Math.floor(K/1e3)))}const o=e.url;const i=V?(0,h.setURLHost)(e.url,V):undefined;let m=false;let _=1;let L=true;let j;let H;while(L){const f=m||!i||!["GET","HEAD","OPTIONS"].includes(e.method)||_%2===1;e.url=f?o:i;j=undefined;H=undefined;try{P.logger.info(`RetryPolicy: =====> Try=${_} ${f?"Primary":"Secondary"}`);j=await t(e);m=m||!f&&j.status===404}catch(e){if((0,a.isRestError)(e)){P.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);H=e}else{P.logger.error(`RetryPolicy: Caught error, message: ${(0,d.getErrorMessage)(e)}`);throw e}}L=shouldRetry({isPrimaryRetry:f,attempt:_,response:j,error:H});if(L){await(0,h.delay)(calculateDelay(f,_),e.abortSignal,U)}_++}if(j){return j}throw H??new a.RestError("RetryPolicy failed without known error.")}}}},35369:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredentialPolicy=void 0;const i=o(77925);const a=o(58218);const d=o(74238);const m=o(16576);class StorageSharedKeyCredentialPolicy extends d.CredentialPolicy{factory;constructor(e,t,o){super(e,t);this.factory=o}signRequest(e){e.headers.set(i.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(e.body&&(typeof e.body==="string"||e.body!==undefined)&&e.body.length>0){e.headers.set(i.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}const t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_ENCODING),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_LENGTH),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_MD5),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_TYPE),this.getHeaderValueToSign(e,i.HeaderConstants.DATE),this.getHeaderValueToSign(e,i.HeaderConstants.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,i.HeaderConstants.IF_MATCH),this.getHeaderValueToSign(e,i.HeaderConstants.IF_NONE_MATCH),this.getHeaderValueToSign(e,i.HeaderConstants.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,i.HeaderConstants.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e);const o=this.factory.computeHMACSHA256(t);e.headers.set(i.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${o}`);return e}getHeaderValueToSign(e,t){const o=e.headers.get(t);if(!o){return""}if(t===i.HeaderConstants.CONTENT_LENGTH&&o==="0"){return""}return o}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter((e=>e.name.toLowerCase().startsWith(i.HeaderConstants.PREFIX_FOR_STORAGE)));t.sort(((e,t)=>(0,m.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,o)=>{if(t>0&&e.name.toLowerCase()===o[t-1].name.toLowerCase()){return false}return true}));let o="";t.forEach((e=>{o+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return o}getCanonicalizedResourceString(e){const t=(0,a.getURLPath)(e.url)||"/";let o="";o+=`/${this.factory.accountName}${t}`;const i=(0,a.getURLQueries)(e.url);const d={};if(i){const e=[];for(const t in i){if(Object.prototype.hasOwnProperty.call(i,t)){const o=t.toLowerCase();d[o]=i[t];e.push(o)}}e.sort();for(const t of e){o+=`\n${t}:${decodeURIComponent(d[t])}`}}return o}}t.StorageSharedKeyCredentialPolicy=StorageSharedKeyCredentialPolicy},53233:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageSharedKeyCredentialPolicyName=void 0;t.storageSharedKeyCredentialPolicy=storageSharedKeyCredentialPolicy;const i=o(77598);const a=o(77925);const d=o(58218);const m=o(16576);t.storageSharedKeyCredentialPolicyName="storageSharedKeyCredentialPolicy";function storageSharedKeyCredentialPolicy(e){function signRequest(t){t.headers.set(a.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(t.body&&(typeof t.body==="string"||Buffer.isBuffer(t.body))&&t.body.length>0){t.headers.set(a.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(t.body))}const o=[t.method.toUpperCase(),getHeaderValueToSign(t,a.HeaderConstants.CONTENT_LANGUAGE),getHeaderValueToSign(t,a.HeaderConstants.CONTENT_ENCODING),getHeaderValueToSign(t,a.HeaderConstants.CONTENT_LENGTH),getHeaderValueToSign(t,a.HeaderConstants.CONTENT_MD5),getHeaderValueToSign(t,a.HeaderConstants.CONTENT_TYPE),getHeaderValueToSign(t,a.HeaderConstants.DATE),getHeaderValueToSign(t,a.HeaderConstants.IF_MODIFIED_SINCE),getHeaderValueToSign(t,a.HeaderConstants.IF_MATCH),getHeaderValueToSign(t,a.HeaderConstants.IF_NONE_MATCH),getHeaderValueToSign(t,a.HeaderConstants.IF_UNMODIFIED_SINCE),getHeaderValueToSign(t,a.HeaderConstants.RANGE)].join("\n")+"\n"+getCanonicalizedHeadersString(t)+getCanonicalizedResourceString(t);const d=(0,i.createHmac)("sha256",e.accountKey).update(o,"utf8").digest("base64");t.headers.set(a.HeaderConstants.AUTHORIZATION,`SharedKey ${e.accountName}:${d}`)}function getHeaderValueToSign(e,t){const o=e.headers.get(t);if(!o){return""}if(t===a.HeaderConstants.CONTENT_LENGTH&&o==="0"){return""}return o}function getCanonicalizedHeadersString(e){let t=[];for(const[o,i]of e.headers){if(o.toLowerCase().startsWith(a.HeaderConstants.PREFIX_FOR_STORAGE)){t.push({name:o,value:i})}}t.sort(((e,t)=>(0,m.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,o)=>{if(t>0&&e.name.toLowerCase()===o[t-1].name.toLowerCase()){return false}return true}));let o="";t.forEach((e=>{o+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return o}function getCanonicalizedResourceString(t){const o=(0,d.getURLPath)(t.url)||"/";let i="";i+=`/${e.accountName}${o}`;const a=(0,d.getURLQueries)(t.url);const m={};if(a){const e=[];for(const t in a){if(Object.prototype.hasOwnProperty.call(a,t)){const o=t.toLowerCase();m[o]=a[t];e.push(o)}}e.sort();for(const t of e){i+=`\n${t}:${decodeURIComponent(m[t])}`}}return i}return{name:t.storageSharedKeyCredentialPolicyName,async sendRequest(e,t){signRequest(e);return t(e)}}}},16576:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.compareHeader=compareHeader;const o=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]);const i=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);const a=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32786,0,0,0,0,0,33298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function compareHeader(e,t){if(isLessThan(e,t))return-1;return 1}function isLessThan(e,t){const d=[o,i,a];let m=0;let f=0;let h=0;while(m<d.length){if(m===d.length-1&&f!==h){return f>h}const o=f<e.length?d[m][e[f].charCodeAt(0)]:1;const i=h<t.length?d[m][t[h].charCodeAt(0)]:1;if(o===1&&i===1){f=0;h=0;++m}else if(o===i){++f;++h}else if(o===0){++f}else if(i===0){++h}else{return o<i}}return false}},77925:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PathStylePorts=t.DevelopmentConnectionString=t.HeaderConstants=t.URLConstants=t.SDK_VERSION=void 0;t.SDK_VERSION="1.0.0";t.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};t.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};t.DevelopmentConnectionString=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;t.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]},58218:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeURLPath=escapeURLPath;t.getValueInConnString=getValueInConnString;t.extractConnectionStringParts=extractConnectionStringParts;t.appendToURLPath=appendToURLPath;t.setURLParameter=setURLParameter;t.getURLParameter=getURLParameter;t.setURLHost=setURLHost;t.getURLPath=getURLPath;t.getURLScheme=getURLScheme;t.getURLPathAndQuery=getURLPathAndQuery;t.getURLQueries=getURLQueries;t.appendToURLQuery=appendToURLQuery;t.truncatedISO8061Date=truncatedISO8061Date;t.base64encode=base64encode;t.base64decode=base64decode;t.generateBlockID=generateBlockID;t.delay=delay;t.padStart=padStart;t.sanitizeURL=sanitizeURL;t.sanitizeHeaders=sanitizeHeaders;t.iEqual=iEqual;t.getAccountNameFromUrl=getAccountNameFromUrl;t.isIpEndpointStyle=isIpEndpointStyle;t.attachCredential=attachCredential;t.httpAuthorizationToString=httpAuthorizationToString;t.EscapePath=EscapePath;t.assertResponse=assertResponse;const i=o(20778);const a=o(87779);const d=o(77925);function escapeURLPath(e){const t=new URL(e);let o=t.pathname;o=o||"/";o=escape(o);t.pathname=o;return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const o=e.split(";");for(const e of o){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const o=e.split(";");for(const e of o){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=getProxyUriFromDevConnString(e);e=d.DevelopmentConnectionString}let o=getValueInConnString(e,"BlobEndpoint");o=o.endsWith("/")?o.slice(0,-1):o;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let i="";let a="";let d=Buffer.from("accountKey","base64");let m="";a=getValueInConnString(e,"AccountName");d=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!o){i=getValueInConnString(e,"DefaultEndpointsProtocol");const t=i.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}m=getValueInConnString(e,"EndpointSuffix");if(!m){throw new Error("Invalid EndpointSuffix in the provided Connection String")}o=`${i}://${a}.blob.${m}`}if(!a){throw new Error("Invalid AccountName in the provided Connection String")}else if(d.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:o,accountName:a,accountKey:d,proxyUri:t}}else{let t=getValueInConnString(e,"SharedAccessSignature");let i=getValueInConnString(e,"AccountName");if(!i){i=getAccountNameFromUrl(o)}if(!o){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:o,accountName:i,accountSas:t}}}function escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const o=new URL(e);let i=o.pathname;i=i?i.endsWith("/")?`${i}${t}`:`${i}/${t}`:t;o.pathname=i;return o.toString()}function setURLParameter(e,t,o){const i=new URL(e);const a=encodeURIComponent(t);const d=o?encodeURIComponent(o):undefined;const m=i.search===""?"?":i.search;const f=[];for(const e of m.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==a){f.push(e)}}}if(d){f.push(`${a}=${d}`)}i.search=f.length?`?${f.join("&")}`:"";return i.toString()}function getURLParameter(e,t){const o=new URL(e);return o.searchParams.get(t)??undefined}function setURLHost(e,t){const o=new URL(e);o.hostname=t;return o.toString()}function getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function getURLPathAndQuery(e){const t=new URL(e);const o=t.pathname;if(!o){throw new RangeError("Invalid url without valid path.")}let i=t.search||"";i=i.trim();if(i!==""){i=i.startsWith("?")?i:`?${i}`}return`${o}${i}`}function getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let o=t.split("&");o=o.filter((e=>{const t=e.indexOf("=");const o=e.lastIndexOf("=");return t>0&&t===o&&o<e.length-1}));const i={};for(const e of o){const t=e.split("=");const o=t[0];const a=t[1];i[o]=a}return i}function appendToURLQuery(e,t){const o=new URL(e);let i=o.search;if(i){i+="&"+t}else{i=t}o.search=i;return o.toString()}function truncatedISO8061Date(e,t=true){const o=e.toISOString();return t?o.substring(0,o.length-1)+"0000"+"Z":o.substring(0,o.length-5)+"Z"}function base64encode(e){return!a.isNodeLike?btoa(e):Buffer.from(e).toString("base64")}function base64decode(e){return!a.isNodeLike?atob(e):Buffer.from(e,"base64").toString()}function generateBlockID(e,t){const o=48;const i=6;const a=o-i;if(e.length>a){e=e.slice(0,a)}const d=e+padStart(t.toString(),o-e.length,"0");return base64encode(d)}async function delay(e,t,o){return new Promise(((i,a)=>{let d;const abortHandler=()=>{if(d!==undefined){clearTimeout(d)}a(o)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}i()};d=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,o=" "){if(String.prototype.padStart){return e.padStart(t,o)}o=o||" ";if(e.length>t){return e}else{t=t-e.length;if(t>o.length){o+=o.repeat(t/o.length)}return o.slice(0,t)+e}}function sanitizeURL(e){let t=e;if(getURLParameter(t,d.URLConstants.Parameters.SIGNATURE)){t=setURLParameter(t,d.URLConstants.Parameters.SIGNATURE,"*****")}return t}function sanitizeHeaders(e){const t=(0,i.createHttpHeaders)();for(const[o,i]of e){if(o.toLowerCase()===d.HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(o,"*****")}else if(o.toLowerCase()===d.HeaderConstants.X_MS_COPY_SOURCE){t.set(o,sanitizeURL(i))}else{t.set(o,i)}}return t}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=new URL(e);let o;try{if(t.hostname.split(".")[1]==="blob"){o=t.hostname.split(".")[0]}else if(isIpEndpointStyle(t)){o=t.pathname.split("/")[1]}else{o=""}return o}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&d.PathStylePorts.includes(e.port)}function attachCredential(e,t){e.credential=t;return e}function httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function EscapePath(e){const t=e.split("/");for(let e=0;e<t.length;e++){t[e]=encodeURIComponent(t[e])}return t.join("/")}function assertResponse(e){if(`_response`in e){return e}throw new TypeError(`Unexpected response object ${e}`)}},40406:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uuid=uuid;t.incrementing=incrementing;function uuid(){return function(){return crypto.randomUUID()}}function incrementing(){var e=0;return function(){return(e++).toString()}}},95331:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.millisecondsSinceEpochToTimestamp=millisecondsSinceEpochToTimestamp;t.millisecondsToDuration=millisecondsToDuration;t.timestampToMillisecondsSinceEpoch=timestampToMillisecondsSinceEpoch;t.durationToMilliseconds=durationToMilliseconds;t.addDurations=addDurations;var o=1e3;var i=1e6;var a=1e9;function millisecondsSinceEpochToTimestamp(e){return toSecondsAndNanos(e)}function millisecondsToDuration(e){return toSecondsAndNanos(e)}function timestampToMillisecondsSinceEpoch(e){var t=e.seconds,o=e.nanos;return toMillis(t,o)}function durationToMilliseconds(e){var t=e.seconds,o=e.nanos;return toMillis(t,o)}function addDurations(e,t){var o=+e.seconds+ +t.seconds;var i=e.nanos+t.nanos;if(i>=a){o+=1;i-=a}return{seconds:o,nanos:i}}function toSecondsAndNanos(e){var t=Math.floor(e/o);var a=Math.floor(e%o*i);return{seconds:t,nanos:a}}function toMillis(e,t){var a=+e*o;var d=t/i;return a+d}},76954:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getWorstTestStepResult=getWorstTestStepResult;var i=o(50238);var a=o(95331);function getWorstTestStepResult(e){return e.slice().sort((function(e,t){return ordinal(t.status)-ordinal(e.status)}))[0]||{status:i.TestStepResultStatus.UNKNOWN,duration:(0,a.millisecondsToDuration)(0)}}function ordinal(e){return[i.TestStepResultStatus.UNKNOWN,i.TestStepResultStatus.PASSED,i.TestStepResultStatus.SKIPPED,i.TestStepResultStatus.PENDING,i.TestStepResultStatus.UNDEFINED,i.TestStepResultStatus.AMBIGUOUS,i.TestStepResultStatus.FAILED].indexOf(e)}},96088:function(e,t,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,o,i){if(i===undefined)i=o;var a=Object.getOwnPropertyDescriptor(t,o);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,i,a)}:function(e,t,o,i){if(i===undefined)i=o;e[i]=t[o]});var a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))t[t.length]=o;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o=ownKeys(e),d=0;d<o.length;d++)if(o[d]!=="default")i(t,e,o[d]);a(t,e);return t}}();var m=this&&this.__exportStar||function(e,t){for(var o in e)if(o!=="default"&&!Object.prototype.hasOwnProperty.call(t,o))i(t,e,o)};Object.defineProperty(t,"__esModule",{value:true});t.getWorstTestStepResult=t.parseEnvelope=t.version=t.IdGenerator=t.TimeConversion=void 0;var f=d(o(95331));t.TimeConversion=f;var h=d(o(40406));t.IdGenerator=h;var P=o(19071);Object.defineProperty(t,"parseEnvelope",{enumerable:true,get:function(){return P.parseEnvelope}});var _=o(76954);Object.defineProperty(t,"getWorstTestStepResult",{enumerable:true,get:function(){return _.getWorstTestStepResult}});var L=o(17028);Object.defineProperty(t,"version",{enumerable:true,get:function(){return L.version}});m(o(50238),t)},50238:function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var a=arguments.length,d=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,m;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")d=Reflect.decorate(e,t,o,i);else for(var f=e.length-1;f>=0;f--)if(m=e[f])d=(a<3?m(d):a>3?m(t,o,d):m(t,o))||d;return a>3&&d&&Object.defineProperty(t,o,d),d};Object.defineProperty(t,"__esModule",{value:true});t.TestCaseFinished=t.TestStep=t.StepMatchArgumentsList=t.StepMatchArgument=t.Group=t.TestCase=t.Snippet=t.Suggestion=t.StepDefinitionPattern=t.StepDefinition=t.JavaStackTraceElement=t.JavaMethod=t.SourceReference=t.Source=t.PickleTag=t.PickleTableRow=t.PickleTableCell=t.PickleTable=t.PickleStepArgument=t.PickleStep=t.PickleDocString=t.Pickle=t.ParseError=t.ParameterType=t.Product=t.Git=t.Ci=t.Meta=t.Location=t.Hook=t.Tag=t.TableRow=t.TableCell=t.Step=t.Scenario=t.RuleChild=t.Rule=t.FeatureChild=t.Feature=t.Examples=t.DocString=t.DataTable=t.Comment=t.Background=t.GherkinDocument=t.ExternalAttachment=t.Exception=t.Envelope=t.Duration=t.Attachment=void 0;t.TestStepResultStatus=t.StepKeywordType=t.StepDefinitionPatternType=t.SourceMediaType=t.PickleStepType=t.HookType=t.AttachmentContentEncoding=t.UndefinedParameterType=t.Timestamp=t.TestStepStarted=t.TestStepResult=t.TestStepFinished=t.TestRunStarted=t.TestRunHookStarted=t.TestRunHookFinished=t.TestRunFinished=t.TestCaseStarted=void 0;var a=o(40451);o(80477);var d=function(){function Attachment(){this.body="";this.contentEncoding=qe.IDENTITY;this.mediaType=""}i([(0,a.Type)((function(){return be}))],Attachment.prototype,"source",void 0);i([(0,a.Type)((function(){return je}))],Attachment.prototype,"timestamp",void 0);return Attachment}();t.Attachment=d;var m=function(){function Duration(){this.seconds=0;this.nanos=0}return Duration}();t.Duration=m;var f=function(){function Envelope(){}i([(0,a.Type)((function(){return d}))],Envelope.prototype,"attachment",void 0);i([(0,a.Type)((function(){return P}))],Envelope.prototype,"externalAttachment",void 0);i([(0,a.Type)((function(){return _}))],Envelope.prototype,"gherkinDocument",void 0);i([(0,a.Type)((function(){return ne}))],Envelope.prototype,"hook",void 0);i([(0,a.Type)((function(){return oe}))],Envelope.prototype,"meta",void 0);i([(0,a.Type)((function(){return ce}))],Envelope.prototype,"parameterType",void 0);i([(0,a.Type)((function(){return le}))],Envelope.prototype,"parseError",void 0);i([(0,a.Type)((function(){return ue}))],Envelope.prototype,"pickle",void 0);i([(0,a.Type)((function(){return ve}))],Envelope.prototype,"suggestion",void 0);i([(0,a.Type)((function(){return be}))],Envelope.prototype,"source",void 0);i([(0,a.Type)((function(){return xe}))],Envelope.prototype,"stepDefinition",void 0);i([(0,a.Type)((function(){return Re}))],Envelope.prototype,"testCase",void 0);i([(0,a.Type)((function(){return Ae}))],Envelope.prototype,"testCaseFinished",void 0);i([(0,a.Type)((function(){return Ie}))],Envelope.prototype,"testCaseStarted",void 0);i([(0,a.Type)((function(){return _e}))],Envelope.prototype,"testRunFinished",void 0);i([(0,a.Type)((function(){return Le}))],Envelope.prototype,"testRunStarted",void 0);i([(0,a.Type)((function(){return $e}))],Envelope.prototype,"testStepFinished",void 0);i([(0,a.Type)((function(){return Ue}))],Envelope.prototype,"testStepStarted",void 0);i([(0,a.Type)((function(){return De}))],Envelope.prototype,"testRunHookStarted",void 0);i([(0,a.Type)((function(){return Be}))],Envelope.prototype,"testRunHookFinished",void 0);i([(0,a.Type)((function(){return ze}))],Envelope.prototype,"undefinedParameterType",void 0);return Envelope}();t.Envelope=f;var h=function(){function Exception(){this.type=""}return Exception}();t.Exception=h;var P=function(){function ExternalAttachment(){this.url="";this.mediaType=""}i([(0,a.Type)((function(){return je}))],ExternalAttachment.prototype,"timestamp",void 0);return ExternalAttachment}();t.ExternalAttachment=P;var _=function(){function GherkinDocument(){this.comments=[]}i([(0,a.Type)((function(){return K}))],GherkinDocument.prototype,"feature",void 0);i([(0,a.Type)((function(){return U}))],GherkinDocument.prototype,"comments",void 0);return GherkinDocument}();t.GherkinDocument=_;var L=function(){function Background(){this.location=new re;this.keyword="";this.name="";this.description="";this.steps=[];this.id=""}i([(0,a.Type)((function(){return re}))],Background.prototype,"location",void 0);i([(0,a.Type)((function(){return J}))],Background.prototype,"steps",void 0);return Background}();t.Background=L;var U=function(){function Comment(){this.location=new re;this.text=""}i([(0,a.Type)((function(){return re}))],Comment.prototype,"location",void 0);return Comment}();t.Comment=U;var j=function(){function DataTable(){this.location=new re;this.rows=[]}i([(0,a.Type)((function(){return re}))],DataTable.prototype,"location",void 0);i([(0,a.Type)((function(){return ee}))],DataTable.prototype,"rows",void 0);return DataTable}();t.DataTable=j;var H=function(){function DocString(){this.location=new re;this.content="";this.delimiter=""}i([(0,a.Type)((function(){return re}))],DocString.prototype,"location",void 0);return DocString}();t.DocString=H;var V=function(){function Examples(){this.location=new re;this.tags=[];this.keyword="";this.name="";this.description="";this.tableBody=[];this.id=""}i([(0,a.Type)((function(){return re}))],Examples.prototype,"location",void 0);i([(0,a.Type)((function(){return te}))],Examples.prototype,"tags",void 0);i([(0,a.Type)((function(){return ee}))],Examples.prototype,"tableHeader",void 0);i([(0,a.Type)((function(){return ee}))],Examples.prototype,"tableBody",void 0);return Examples}();t.Examples=V;var K=function(){function Feature(){this.location=new re;this.tags=[];this.language="";this.keyword="";this.name="";this.description="";this.children=[]}i([(0,a.Type)((function(){return re}))],Feature.prototype,"location",void 0);i([(0,a.Type)((function(){return te}))],Feature.prototype,"tags",void 0);i([(0,a.Type)((function(){return W}))],Feature.prototype,"children",void 0);return Feature}();t.Feature=K;var W=function(){function FeatureChild(){}i([(0,a.Type)((function(){return X}))],FeatureChild.prototype,"rule",void 0);i([(0,a.Type)((function(){return L}))],FeatureChild.prototype,"background",void 0);i([(0,a.Type)((function(){return Y}))],FeatureChild.prototype,"scenario",void 0);return FeatureChild}();t.FeatureChild=W;var X=function(){function Rule(){this.location=new re;this.tags=[];this.keyword="";this.name="";this.description="";this.children=[];this.id=""}i([(0,a.Type)((function(){return re}))],Rule.prototype,"location",void 0);i([(0,a.Type)((function(){return te}))],Rule.prototype,"tags",void 0);i([(0,a.Type)((function(){return Q}))],Rule.prototype,"children",void 0);return Rule}();t.Rule=X;var Q=function(){function RuleChild(){}i([(0,a.Type)((function(){return L}))],RuleChild.prototype,"background",void 0);i([(0,a.Type)((function(){return Y}))],RuleChild.prototype,"scenario",void 0);return RuleChild}();t.RuleChild=Q;var Y=function(){function Scenario(){this.location=new re;this.tags=[];this.keyword="";this.name="";this.description="";this.steps=[];this.examples=[];this.id=""}i([(0,a.Type)((function(){return re}))],Scenario.prototype,"location",void 0);i([(0,a.Type)((function(){return te}))],Scenario.prototype,"tags",void 0);i([(0,a.Type)((function(){return J}))],Scenario.prototype,"steps",void 0);i([(0,a.Type)((function(){return V}))],Scenario.prototype,"examples",void 0);return Scenario}();t.Scenario=Y;var J=function(){function Step(){this.location=new re;this.keyword="";this.text="";this.id=""}i([(0,a.Type)((function(){return re}))],Step.prototype,"location",void 0);i([(0,a.Type)((function(){return H}))],Step.prototype,"docString",void 0);i([(0,a.Type)((function(){return j}))],Step.prototype,"dataTable",void 0);return Step}();t.Step=J;var Z=function(){function TableCell(){this.location=new re;this.value=""}i([(0,a.Type)((function(){return re}))],TableCell.prototype,"location",void 0);return TableCell}();t.TableCell=Z;var ee=function(){function TableRow(){this.location=new re;this.cells=[];this.id=""}i([(0,a.Type)((function(){return re}))],TableRow.prototype,"location",void 0);i([(0,a.Type)((function(){return Z}))],TableRow.prototype,"cells",void 0);return TableRow}();t.TableRow=ee;var te=function(){function Tag(){this.location=new re;this.name="";this.id=""}i([(0,a.Type)((function(){return re}))],Tag.prototype,"location",void 0);return Tag}();t.Tag=te;var ne=function(){function Hook(){this.id="";this.sourceReference=new Se}i([(0,a.Type)((function(){return Se}))],Hook.prototype,"sourceReference",void 0);return Hook}();t.Hook=ne;var re=function(){function Location(){this.line=0}return Location}();t.Location=re;var oe=function(){function Meta(){this.protocolVersion="";this.implementation=new ae;this.runtime=new ae;this.os=new ae;this.cpu=new ae}i([(0,a.Type)((function(){return ae}))],Meta.prototype,"implementation",void 0);i([(0,a.Type)((function(){return ae}))],Meta.prototype,"runtime",void 0);i([(0,a.Type)((function(){return ae}))],Meta.prototype,"os",void 0);i([(0,a.Type)((function(){return ae}))],Meta.prototype,"cpu",void 0);i([(0,a.Type)((function(){return ie}))],Meta.prototype,"ci",void 0);return Meta}();t.Meta=oe;var ie=function(){function Ci(){this.name=""}i([(0,a.Type)((function(){return se}))],Ci.prototype,"git",void 0);return Ci}();t.Ci=ie;var se=function(){function Git(){this.remote="";this.revision=""}return Git}();t.Git=se;var ae=function(){function Product(){this.name=""}return Product}();t.Product=ae;var ce=function(){function ParameterType(){this.name="";this.regularExpressions=[];this.preferForRegularExpressionMatch=false;this.useForSnippets=false;this.id=""}i([(0,a.Type)((function(){return Se}))],ParameterType.prototype,"sourceReference",void 0);return ParameterType}();t.ParameterType=ce;var le=function(){function ParseError(){this.source=new Se;this.message=""}i([(0,a.Type)((function(){return Se}))],ParseError.prototype,"source",void 0);return ParseError}();t.ParseError=le;var ue=function(){function Pickle(){this.id="";this.uri="";this.name="";this.language="";this.steps=[];this.tags=[];this.astNodeIds=[]}i([(0,a.Type)((function(){return re}))],Pickle.prototype,"location",void 0);i([(0,a.Type)((function(){return pe}))],Pickle.prototype,"steps",void 0);i([(0,a.Type)((function(){return ye}))],Pickle.prototype,"tags",void 0);return Pickle}();t.Pickle=ue;var de=function(){function PickleDocString(){this.content=""}return PickleDocString}();t.PickleDocString=de;var pe=function(){function PickleStep(){this.astNodeIds=[];this.id="";this.text=""}i([(0,a.Type)((function(){return me}))],PickleStep.prototype,"argument",void 0);return PickleStep}();t.PickleStep=pe;var me=function(){function PickleStepArgument(){}i([(0,a.Type)((function(){return de}))],PickleStepArgument.prototype,"docString",void 0);i([(0,a.Type)((function(){return fe}))],PickleStepArgument.prototype,"dataTable",void 0);return PickleStepArgument}();t.PickleStepArgument=me;var fe=function(){function PickleTable(){this.rows=[]}i([(0,a.Type)((function(){return ge}))],PickleTable.prototype,"rows",void 0);return PickleTable}();t.PickleTable=fe;var he=function(){function PickleTableCell(){this.value=""}return PickleTableCell}();t.PickleTableCell=he;var ge=function(){function PickleTableRow(){this.cells=[]}i([(0,a.Type)((function(){return he}))],PickleTableRow.prototype,"cells",void 0);return PickleTableRow}();t.PickleTableRow=ge;var ye=function(){function PickleTag(){this.name="";this.astNodeId=""}return PickleTag}();t.PickleTag=ye;var be=function(){function Source(){this.uri="";this.data="";this.mediaType=Ge.TEXT_X_CUCUMBER_GHERKIN_PLAIN}return Source}();t.Source=be;var Se=function(){function SourceReference(){}i([(0,a.Type)((function(){return Ce}))],SourceReference.prototype,"javaMethod",void 0);i([(0,a.Type)((function(){return Ee}))],SourceReference.prototype,"javaStackTraceElement",void 0);i([(0,a.Type)((function(){return re}))],SourceReference.prototype,"location",void 0);return SourceReference}();t.SourceReference=Se;var Ce=function(){function JavaMethod(){this.className="";this.methodName="";this.methodParameterTypes=[]}return JavaMethod}();t.JavaMethod=Ce;var Ee=function(){function JavaStackTraceElement(){this.className="";this.fileName="";this.methodName=""}return JavaStackTraceElement}();t.JavaStackTraceElement=Ee;var xe=function(){function StepDefinition(){this.id="";this.pattern=new Pe;this.sourceReference=new Se}i([(0,a.Type)((function(){return Pe}))],StepDefinition.prototype,"pattern",void 0);i([(0,a.Type)((function(){return Se}))],StepDefinition.prototype,"sourceReference",void 0);return StepDefinition}();t.StepDefinition=xe;var Pe=function(){function StepDefinitionPattern(){this.source="";this.type=Ve.CUCUMBER_EXPRESSION}return StepDefinitionPattern}();t.StepDefinitionPattern=Pe;var ve=function(){function Suggestion(){this.id="";this.pickleStepId="";this.snippets=[]}i([(0,a.Type)((function(){return Te}))],Suggestion.prototype,"snippets",void 0);return Suggestion}();t.Suggestion=ve;var Te=function(){function Snippet(){this.language="";this.code=""}return Snippet}();t.Snippet=Te;var Re=function(){function TestCase(){this.id="";this.pickleId="";this.testSteps=[]}i([(0,a.Type)((function(){return ke}))],TestCase.prototype,"testSteps",void 0);return TestCase}();t.TestCase=Re;var we=function(){function Group(){}i([(0,a.Type)((function(){return Group}))],Group.prototype,"children",void 0);return Group}();t.Group=we;var Ne=function(){function StepMatchArgument(){this.group=new we}i([(0,a.Type)((function(){return we}))],StepMatchArgument.prototype,"group",void 0);return StepMatchArgument}();t.StepMatchArgument=Ne;var Oe=function(){function StepMatchArgumentsList(){this.stepMatchArguments=[]}i([(0,a.Type)((function(){return Ne}))],StepMatchArgumentsList.prototype,"stepMatchArguments",void 0);return StepMatchArgumentsList}();t.StepMatchArgumentsList=Oe;var ke=function(){function TestStep(){this.id=""}i([(0,a.Type)((function(){return Oe}))],TestStep.prototype,"stepMatchArgumentsLists",void 0);return TestStep}();t.TestStep=ke;var Ae=function(){function TestCaseFinished(){this.testCaseStartedId="";this.timestamp=new je;this.willBeRetried=false}i([(0,a.Type)((function(){return je}))],TestCaseFinished.prototype,"timestamp",void 0);return TestCaseFinished}();t.TestCaseFinished=Ae;var Ie=function(){function TestCaseStarted(){this.attempt=0;this.id="";this.testCaseId="";this.timestamp=new je}i([(0,a.Type)((function(){return je}))],TestCaseStarted.prototype,"timestamp",void 0);return TestCaseStarted}();t.TestCaseStarted=Ie;var _e=function(){function TestRunFinished(){this.success=false;this.timestamp=new je}i([(0,a.Type)((function(){return je}))],TestRunFinished.prototype,"timestamp",void 0);i([(0,a.Type)((function(){return h}))],TestRunFinished.prototype,"exception",void 0);return TestRunFinished}();t.TestRunFinished=_e;var Be=function(){function TestRunHookFinished(){this.testRunHookStartedId="";this.result=new Me;this.timestamp=new je}i([(0,a.Type)((function(){return Me}))],TestRunHookFinished.prototype,"result",void 0);i([(0,a.Type)((function(){return je}))],TestRunHookFinished.prototype,"timestamp",void 0);return TestRunHookFinished}();t.TestRunHookFinished=Be;var De=function(){function TestRunHookStarted(){this.id="";this.testRunStartedId="";this.hookId="";this.timestamp=new je}i([(0,a.Type)((function(){return je}))],TestRunHookStarted.prototype,"timestamp",void 0);return TestRunHookStarted}();t.TestRunHookStarted=De;var Le=function(){function TestRunStarted(){this.timestamp=new je}i([(0,a.Type)((function(){return je}))],TestRunStarted.prototype,"timestamp",void 0);return TestRunStarted}();t.TestRunStarted=Le;var $e=function(){function TestStepFinished(){this.testCaseStartedId="";this.testStepId="";this.testStepResult=new Me;this.timestamp=new je}i([(0,a.Type)((function(){return Me}))],TestStepFinished.prototype,"testStepResult",void 0);i([(0,a.Type)((function(){return je}))],TestStepFinished.prototype,"timestamp",void 0);return TestStepFinished}();t.TestStepFinished=$e;var Me=function(){function TestStepResult(){this.duration=new m;this.status=We.UNKNOWN}i([(0,a.Type)((function(){return m}))],TestStepResult.prototype,"duration",void 0);i([(0,a.Type)((function(){return h}))],TestStepResult.prototype,"exception",void 0);return TestStepResult}();t.TestStepResult=Me;var Ue=function(){function TestStepStarted(){this.testCaseStartedId="";this.testStepId="";this.timestamp=new je}i([(0,a.Type)((function(){return je}))],TestStepStarted.prototype,"timestamp",void 0);return TestStepStarted}();t.TestStepStarted=Ue;var je=function(){function Timestamp(){this.seconds=0;this.nanos=0}return Timestamp}();t.Timestamp=je;var ze=function(){function UndefinedParameterType(){this.expression="";this.name=""}return UndefinedParameterType}();t.UndefinedParameterType=ze;var qe;(function(e){e["IDENTITY"]="IDENTITY";e["BASE64"]="BASE64"})(qe||(t.AttachmentContentEncoding=qe={}));var He;(function(e){e["BEFORE_TEST_RUN"]="BEFORE_TEST_RUN";e["AFTER_TEST_RUN"]="AFTER_TEST_RUN";e["BEFORE_TEST_CASE"]="BEFORE_TEST_CASE";e["AFTER_TEST_CASE"]="AFTER_TEST_CASE";e["BEFORE_TEST_STEP"]="BEFORE_TEST_STEP";e["AFTER_TEST_STEP"]="AFTER_TEST_STEP"})(He||(t.HookType=He={}));var Fe;(function(e){e["UNKNOWN"]="Unknown";e["CONTEXT"]="Context";e["ACTION"]="Action";e["OUTCOME"]="Outcome"})(Fe||(t.PickleStepType=Fe={}));var Ge;(function(e){e["TEXT_X_CUCUMBER_GHERKIN_PLAIN"]="text/x.cucumber.gherkin+plain";e["TEXT_X_CUCUMBER_GHERKIN_MARKDOWN"]="text/x.cucumber.gherkin+markdown"})(Ge||(t.SourceMediaType=Ge={}));var Ve;(function(e){e["CUCUMBER_EXPRESSION"]="CUCUMBER_EXPRESSION";e["REGULAR_EXPRESSION"]="REGULAR_EXPRESSION"})(Ve||(t.StepDefinitionPatternType=Ve={}));var Ke;(function(e){e["UNKNOWN"]="Unknown";e["CONTEXT"]="Context";e["ACTION"]="Action";e["OUTCOME"]="Outcome";e["CONJUNCTION"]="Conjunction"})(Ke||(t.StepKeywordType=Ke={}));var We;(function(e){e["UNKNOWN"]="UNKNOWN";e["PASSED"]="PASSED";e["SKIPPED"]="SKIPPED";e["PENDING"]="PENDING";e["UNDEFINED"]="UNDEFINED";e["AMBIGUOUS"]="AMBIGUOUS";e["FAILED"]="FAILED"})(We||(t.TestStepResultStatus=We={}))},19071:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseEnvelope=parseEnvelope;var i=o(50238);var a=o(40451);function parseEnvelope(e){var t=JSON.parse(e);return(0,a.plainToClass)(i.Envelope,t)}},17028:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.version=void 0;t.version="32.2.0"},38091:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uuid=uuid;t.incrementing=incrementing;function uuid(){return function(){return crypto.randomUUID()}}function incrementing(){var e=0;return function(){return(e++).toString()}}},48024:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.millisecondsSinceEpochToTimestamp=millisecondsSinceEpochToTimestamp;t.millisecondsToDuration=millisecondsToDuration;t.timestampToMillisecondsSinceEpoch=timestampToMillisecondsSinceEpoch;t.durationToMilliseconds=durationToMilliseconds;t.addDurations=addDurations;var o=1e3;var i=1e6;var a=1e9;function millisecondsSinceEpochToTimestamp(e){return toSecondsAndNanos(e)}function millisecondsToDuration(e){return toSecondsAndNanos(e)}function timestampToMillisecondsSinceEpoch(e){var t=e.seconds,o=e.nanos;return toMillis(t,o)}function durationToMilliseconds(e){var t=e.seconds,o=e.nanos;return toMillis(t,o)}function addDurations(e,t){var o=+e.seconds+ +t.seconds;var i=e.nanos+t.nanos;if(i>=a){o+=1;i-=a}return{seconds:o,nanos:i}}function toSecondsAndNanos(e){var t=Math.floor(e/o);var a=Math.floor(e%o*i);return{seconds:t,nanos:a}}function toMillis(e,t){var a=+e*o;var d=t/i;return a+d}},36809:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getWorstTestStepResult=getWorstTestStepResult;var i=o(36849);var a=o(48024);function getWorstTestStepResult(e){return e.slice().sort((function(e,t){return ordinal(t.status)-ordinal(e.status)}))[0]||{status:i.TestStepResultStatus.UNKNOWN,duration:(0,a.millisecondsToDuration)(0)}}function ordinal(e){return[i.TestStepResultStatus.UNKNOWN,i.TestStepResultStatus.PASSED,i.TestStepResultStatus.SKIPPED,i.TestStepResultStatus.PENDING,i.TestStepResultStatus.UNDEFINED,i.TestStepResultStatus.AMBIGUOUS,i.TestStepResultStatus.FAILED].indexOf(e)}},28569:function(e,t,o){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,o,i){if(i===undefined)i=o;var a=Object.getOwnPropertyDescriptor(t,o);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,i,a)}:function(e,t,o,i){if(i===undefined)i=o;e[i]=t[o]});var a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))t[t.length]=o;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o=ownKeys(e),d=0;d<o.length;d++)if(o[d]!=="default")i(t,e,o[d]);a(t,e);return t}}();var m=this&&this.__exportStar||function(e,t){for(var o in e)if(o!=="default"&&!Object.prototype.hasOwnProperty.call(t,o))i(t,e,o)};Object.defineProperty(t,"__esModule",{value:true});t.getWorstTestStepResult=t.parseEnvelope=t.version=t.IdGenerator=t.TimeConversion=void 0;var f=d(o(48024));t.TimeConversion=f;var h=d(o(38091));t.IdGenerator=h;var P=o(49782);Object.defineProperty(t,"parseEnvelope",{enumerable:true,get:function(){return P.parseEnvelope}});var _=o(36809);Object.defineProperty(t,"getWorstTestStepResult",{enumerable:true,get:function(){return _.getWorstTestStepResult}});var L=o(32505);Object.defineProperty(t,"version",{enumerable:true,get:function(){return L.version}});m(o(36849),t)},36849:function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var a=arguments.length,d=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,m;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")d=Reflect.decorate(e,t,o,i);else for(var f=e.length-1;f>=0;f--)if(m=e[f])d=(a<3?m(d):a>3?m(t,o,d):m(t,o))||d;return a>3&&d&&Object.defineProperty(t,o,d),d};Object.defineProperty(t,"__esModule",{value:true});t.TestCaseStarted=t.TestCaseFinished=t.TestStep=t.StepMatchArgumentsList=t.StepMatchArgument=t.Group=t.TestCase=t.Snippet=t.Suggestion=t.StepDefinitionPattern=t.StepDefinition=t.JavaStackTraceElement=t.JavaMethod=t.SourceReference=t.Source=t.PickleTag=t.PickleTableRow=t.PickleTableCell=t.PickleTable=t.PickleStepArgument=t.PickleStep=t.PickleDocString=t.Pickle=t.ParseError=t.ParameterType=t.Product=t.Git=t.Ci=t.Meta=t.Location=t.Hook=t.Tag=t.TableRow=t.TableCell=t.Step=t.Scenario=t.RuleChild=t.Rule=t.FeatureChild=t.Feature=t.Examples=t.DocString=t.DataTable=t.Comment=t.Background=t.GherkinDocument=t.Exception=t.Envelope=t.Duration=t.Attachment=void 0;t.TestStepResultStatus=t.StepKeywordType=t.StepDefinitionPatternType=t.SourceMediaType=t.PickleStepType=t.HookType=t.AttachmentContentEncoding=t.UndefinedParameterType=t.Timestamp=t.TestStepStarted=t.TestStepResult=t.TestStepFinished=t.TestRunStarted=t.TestRunHookStarted=t.TestRunHookFinished=t.TestRunFinished=void 0;var a=o(40451);o(80477);var d=function(){function Attachment(){this.body="";this.contentEncoding=ze.IDENTITY;this.mediaType=""}i([(0,a.Type)((function(){return ye}))],Attachment.prototype,"source",void 0);i([(0,a.Type)((function(){return Ue}))],Attachment.prototype,"timestamp",void 0);return Attachment}();t.Attachment=d;var m=function(){function Duration(){this.seconds=0;this.nanos=0}return Duration}();t.Duration=m;var f=function(){function Envelope(){}i([(0,a.Type)((function(){return d}))],Envelope.prototype,"attachment",void 0);i([(0,a.Type)((function(){return P}))],Envelope.prototype,"gherkinDocument",void 0);i([(0,a.Type)((function(){return te}))],Envelope.prototype,"hook",void 0);i([(0,a.Type)((function(){return re}))],Envelope.prototype,"meta",void 0);i([(0,a.Type)((function(){return ae}))],Envelope.prototype,"parameterType",void 0);i([(0,a.Type)((function(){return ce}))],Envelope.prototype,"parseError",void 0);i([(0,a.Type)((function(){return le}))],Envelope.prototype,"pickle",void 0);i([(0,a.Type)((function(){return Pe}))],Envelope.prototype,"suggestion",void 0);i([(0,a.Type)((function(){return ye}))],Envelope.prototype,"source",void 0);i([(0,a.Type)((function(){return Ee}))],Envelope.prototype,"stepDefinition",void 0);i([(0,a.Type)((function(){return Te}))],Envelope.prototype,"testCase",void 0);i([(0,a.Type)((function(){return ke}))],Envelope.prototype,"testCaseFinished",void 0);i([(0,a.Type)((function(){return Ae}))],Envelope.prototype,"testCaseStarted",void 0);i([(0,a.Type)((function(){return Ie}))],Envelope.prototype,"testRunFinished",void 0);i([(0,a.Type)((function(){return De}))],Envelope.prototype,"testRunStarted",void 0);i([(0,a.Type)((function(){return Le}))],Envelope.prototype,"testStepFinished",void 0);i([(0,a.Type)((function(){return Me}))],Envelope.prototype,"testStepStarted",void 0);i([(0,a.Type)((function(){return Be}))],Envelope.prototype,"testRunHookStarted",void 0);i([(0,a.Type)((function(){return _e}))],Envelope.prototype,"testRunHookFinished",void 0);i([(0,a.Type)((function(){return je}))],Envelope.prototype,"undefinedParameterType",void 0);return Envelope}();t.Envelope=f;var h=function(){function Exception(){this.type=""}return Exception}();t.Exception=h;var P=function(){function GherkinDocument(){this.comments=[]}i([(0,a.Type)((function(){return V}))],GherkinDocument.prototype,"feature",void 0);i([(0,a.Type)((function(){return L}))],GherkinDocument.prototype,"comments",void 0);return GherkinDocument}();t.GherkinDocument=P;var _=function(){function Background(){this.location=new ne;this.keyword="";this.name="";this.description="";this.steps=[];this.id=""}i([(0,a.Type)((function(){return ne}))],Background.prototype,"location",void 0);i([(0,a.Type)((function(){return Y}))],Background.prototype,"steps",void 0);return Background}();t.Background=_;var L=function(){function Comment(){this.location=new ne;this.text=""}i([(0,a.Type)((function(){return ne}))],Comment.prototype,"location",void 0);return Comment}();t.Comment=L;var U=function(){function DataTable(){this.location=new ne;this.rows=[]}i([(0,a.Type)((function(){return ne}))],DataTable.prototype,"location",void 0);i([(0,a.Type)((function(){return Z}))],DataTable.prototype,"rows",void 0);return DataTable}();t.DataTable=U;var j=function(){function DocString(){this.location=new ne;this.content="";this.delimiter=""}i([(0,a.Type)((function(){return ne}))],DocString.prototype,"location",void 0);return DocString}();t.DocString=j;var H=function(){function Examples(){this.location=new ne;this.tags=[];this.keyword="";this.name="";this.description="";this.tableBody=[];this.id=""}i([(0,a.Type)((function(){return ne}))],Examples.prototype,"location",void 0);i([(0,a.Type)((function(){return ee}))],Examples.prototype,"tags",void 0);i([(0,a.Type)((function(){return Z}))],Examples.prototype,"tableHeader",void 0);i([(0,a.Type)((function(){return Z}))],Examples.prototype,"tableBody",void 0);return Examples}();t.Examples=H;var V=function(){function Feature(){this.location=new ne;this.tags=[];this.language="";this.keyword="";this.name="";this.description="";this.children=[]}i([(0,a.Type)((function(){return ne}))],Feature.prototype,"location",void 0);i([(0,a.Type)((function(){return ee}))],Feature.prototype,"tags",void 0);i([(0,a.Type)((function(){return K}))],Feature.prototype,"children",void 0);return Feature}();t.Feature=V;var K=function(){function FeatureChild(){}i([(0,a.Type)((function(){return W}))],FeatureChild.prototype,"rule",void 0);i([(0,a.Type)((function(){return _}))],FeatureChild.prototype,"background",void 0);i([(0,a.Type)((function(){return Q}))],FeatureChild.prototype,"scenario",void 0);return FeatureChild}();t.FeatureChild=K;var W=function(){function Rule(){this.location=new ne;this.tags=[];this.keyword="";this.name="";this.description="";this.children=[];this.id=""}i([(0,a.Type)((function(){return ne}))],Rule.prototype,"location",void 0);i([(0,a.Type)((function(){return ee}))],Rule.prototype,"tags",void 0);i([(0,a.Type)((function(){return X}))],Rule.prototype,"children",void 0);return Rule}();t.Rule=W;var X=function(){function RuleChild(){}i([(0,a.Type)((function(){return _}))],RuleChild.prototype,"background",void 0);i([(0,a.Type)((function(){return Q}))],RuleChild.prototype,"scenario",void 0);return RuleChild}();t.RuleChild=X;var Q=function(){function Scenario(){this.location=new ne;this.tags=[];this.keyword="";this.name="";this.description="";this.steps=[];this.examples=[];this.id=""}i([(0,a.Type)((function(){return ne}))],Scenario.prototype,"location",void 0);i([(0,a.Type)((function(){return ee}))],Scenario.prototype,"tags",void 0);i([(0,a.Type)((function(){return Y}))],Scenario.prototype,"steps",void 0);i([(0,a.Type)((function(){return H}))],Scenario.prototype,"examples",void 0);return Scenario}();t.Scenario=Q;var Y=function(){function Step(){this.location=new ne;this.keyword="";this.text="";this.id=""}i([(0,a.Type)((function(){return ne}))],Step.prototype,"location",void 0);i([(0,a.Type)((function(){return j}))],Step.prototype,"docString",void 0);i([(0,a.Type)((function(){return U}))],Step.prototype,"dataTable",void 0);return Step}();t.Step=Y;var J=function(){function TableCell(){this.location=new ne;this.value=""}i([(0,a.Type)((function(){return ne}))],TableCell.prototype,"location",void 0);return TableCell}();t.TableCell=J;var Z=function(){function TableRow(){this.location=new ne;this.cells=[];this.id=""}i([(0,a.Type)((function(){return ne}))],TableRow.prototype,"location",void 0);i([(0,a.Type)((function(){return J}))],TableRow.prototype,"cells",void 0);return TableRow}();t.TableRow=Z;var ee=function(){function Tag(){this.location=new ne;this.name="";this.id=""}i([(0,a.Type)((function(){return ne}))],Tag.prototype,"location",void 0);return Tag}();t.Tag=ee;var te=function(){function Hook(){this.id="";this.sourceReference=new be}i([(0,a.Type)((function(){return be}))],Hook.prototype,"sourceReference",void 0);return Hook}();t.Hook=te;var ne=function(){function Location(){this.line=0}return Location}();t.Location=ne;var re=function(){function Meta(){this.protocolVersion="";this.implementation=new se;this.runtime=new se;this.os=new se;this.cpu=new se}i([(0,a.Type)((function(){return se}))],Meta.prototype,"implementation",void 0);i([(0,a.Type)((function(){return se}))],Meta.prototype,"runtime",void 0);i([(0,a.Type)((function(){return se}))],Meta.prototype,"os",void 0);i([(0,a.Type)((function(){return se}))],Meta.prototype,"cpu",void 0);i([(0,a.Type)((function(){return oe}))],Meta.prototype,"ci",void 0);return Meta}();t.Meta=re;var oe=function(){function Ci(){this.name=""}i([(0,a.Type)((function(){return ie}))],Ci.prototype,"git",void 0);return Ci}();t.Ci=oe;var ie=function(){function Git(){this.remote="";this.revision=""}return Git}();t.Git=ie;var se=function(){function Product(){this.name=""}return Product}();t.Product=se;var ae=function(){function ParameterType(){this.name="";this.regularExpressions=[];this.preferForRegularExpressionMatch=false;this.useForSnippets=false;this.id=""}i([(0,a.Type)((function(){return be}))],ParameterType.prototype,"sourceReference",void 0);return ParameterType}();t.ParameterType=ae;var ce=function(){function ParseError(){this.source=new be;this.message=""}i([(0,a.Type)((function(){return be}))],ParseError.prototype,"source",void 0);return ParseError}();t.ParseError=ce;var le=function(){function Pickle(){this.id="";this.uri="";this.name="";this.language="";this.steps=[];this.tags=[];this.astNodeIds=[]}i([(0,a.Type)((function(){return de}))],Pickle.prototype,"steps",void 0);i([(0,a.Type)((function(){return ge}))],Pickle.prototype,"tags",void 0);return Pickle}();t.Pickle=le;var ue=function(){function PickleDocString(){this.content=""}return PickleDocString}();t.PickleDocString=ue;var de=function(){function PickleStep(){this.astNodeIds=[];this.id="";this.text=""}i([(0,a.Type)((function(){return pe}))],PickleStep.prototype,"argument",void 0);return PickleStep}();t.PickleStep=de;var pe=function(){function PickleStepArgument(){}i([(0,a.Type)((function(){return ue}))],PickleStepArgument.prototype,"docString",void 0);i([(0,a.Type)((function(){return me}))],PickleStepArgument.prototype,"dataTable",void 0);return PickleStepArgument}();t.PickleStepArgument=pe;var me=function(){function PickleTable(){this.rows=[]}i([(0,a.Type)((function(){return he}))],PickleTable.prototype,"rows",void 0);return PickleTable}();t.PickleTable=me;var fe=function(){function PickleTableCell(){this.value=""}return PickleTableCell}();t.PickleTableCell=fe;var he=function(){function PickleTableRow(){this.cells=[]}i([(0,a.Type)((function(){return fe}))],PickleTableRow.prototype,"cells",void 0);return PickleTableRow}();t.PickleTableRow=he;var ge=function(){function PickleTag(){this.name="";this.astNodeId=""}return PickleTag}();t.PickleTag=ge;var ye=function(){function Source(){this.uri="";this.data="";this.mediaType=Fe.TEXT_X_CUCUMBER_GHERKIN_PLAIN}return Source}();t.Source=ye;var be=function(){function SourceReference(){}i([(0,a.Type)((function(){return Se}))],SourceReference.prototype,"javaMethod",void 0);i([(0,a.Type)((function(){return Ce}))],SourceReference.prototype,"javaStackTraceElement",void 0);i([(0,a.Type)((function(){return ne}))],SourceReference.prototype,"location",void 0);return SourceReference}();t.SourceReference=be;var Se=function(){function JavaMethod(){this.className="";this.methodName="";this.methodParameterTypes=[]}return JavaMethod}();t.JavaMethod=Se;var Ce=function(){function JavaStackTraceElement(){this.className="";this.fileName="";this.methodName=""}return JavaStackTraceElement}();t.JavaStackTraceElement=Ce;var Ee=function(){function StepDefinition(){this.id="";this.pattern=new xe;this.sourceReference=new be}i([(0,a.Type)((function(){return xe}))],StepDefinition.prototype,"pattern",void 0);i([(0,a.Type)((function(){return be}))],StepDefinition.prototype,"sourceReference",void 0);return StepDefinition}();t.StepDefinition=Ee;var xe=function(){function StepDefinitionPattern(){this.source="";this.type=Ge.CUCUMBER_EXPRESSION}return StepDefinitionPattern}();t.StepDefinitionPattern=xe;var Pe=function(){function Suggestion(){this.id="";this.pickleStepId="";this.snippets=[]}i([(0,a.Type)((function(){return ve}))],Suggestion.prototype,"snippets",void 0);return Suggestion}();t.Suggestion=Pe;var ve=function(){function Snippet(){this.language="";this.code=""}return Snippet}();t.Snippet=ve;var Te=function(){function TestCase(){this.id="";this.pickleId="";this.testSteps=[]}i([(0,a.Type)((function(){return Oe}))],TestCase.prototype,"testSteps",void 0);return TestCase}();t.TestCase=Te;var Re=function(){function Group(){this.children=[]}i([(0,a.Type)((function(){return Group}))],Group.prototype,"children",void 0);return Group}();t.Group=Re;var we=function(){function StepMatchArgument(){this.group=new Re}i([(0,a.Type)((function(){return Re}))],StepMatchArgument.prototype,"group",void 0);return StepMatchArgument}();t.StepMatchArgument=we;var Ne=function(){function StepMatchArgumentsList(){this.stepMatchArguments=[]}i([(0,a.Type)((function(){return we}))],StepMatchArgumentsList.prototype,"stepMatchArguments",void 0);return StepMatchArgumentsList}();t.StepMatchArgumentsList=Ne;var Oe=function(){function TestStep(){this.id=""}i([(0,a.Type)((function(){return Ne}))],TestStep.prototype,"stepMatchArgumentsLists",void 0);return TestStep}();t.TestStep=Oe;var ke=function(){function TestCaseFinished(){this.testCaseStartedId="";this.timestamp=new Ue;this.willBeRetried=false}i([(0,a.Type)((function(){return Ue}))],TestCaseFinished.prototype,"timestamp",void 0);return TestCaseFinished}();t.TestCaseFinished=ke;var Ae=function(){function TestCaseStarted(){this.attempt=0;this.id="";this.testCaseId="";this.timestamp=new Ue}i([(0,a.Type)((function(){return Ue}))],TestCaseStarted.prototype,"timestamp",void 0);return TestCaseStarted}();t.TestCaseStarted=Ae;var Ie=function(){function TestRunFinished(){this.success=false;this.timestamp=new Ue}i([(0,a.Type)((function(){return Ue}))],TestRunFinished.prototype,"timestamp",void 0);i([(0,a.Type)((function(){return h}))],TestRunFinished.prototype,"exception",void 0);return TestRunFinished}();t.TestRunFinished=Ie;var _e=function(){function TestRunHookFinished(){this.testRunHookStartedId="";this.result=new $e;this.timestamp=new Ue}i([(0,a.Type)((function(){return $e}))],TestRunHookFinished.prototype,"result",void 0);i([(0,a.Type)((function(){return Ue}))],TestRunHookFinished.prototype,"timestamp",void 0);return TestRunHookFinished}();t.TestRunHookFinished=_e;var Be=function(){function TestRunHookStarted(){this.id="";this.testRunStartedId="";this.hookId="";this.timestamp=new Ue}i([(0,a.Type)((function(){return Ue}))],TestRunHookStarted.prototype,"timestamp",void 0);return TestRunHookStarted}();t.TestRunHookStarted=Be;var De=function(){function TestRunStarted(){this.timestamp=new Ue}i([(0,a.Type)((function(){return Ue}))],TestRunStarted.prototype,"timestamp",void 0);return TestRunStarted}();t.TestRunStarted=De;var Le=function(){function TestStepFinished(){this.testCaseStartedId="";this.testStepId="";this.testStepResult=new $e;this.timestamp=new Ue}i([(0,a.Type)((function(){return $e}))],TestStepFinished.prototype,"testStepResult",void 0);i([(0,a.Type)((function(){return Ue}))],TestStepFinished.prototype,"timestamp",void 0);return TestStepFinished}();t.TestStepFinished=Le;var $e=function(){function TestStepResult(){this.duration=new m;this.status=Ke.UNKNOWN}i([(0,a.Type)((function(){return m}))],TestStepResult.prototype,"duration",void 0);i([(0,a.Type)((function(){return h}))],TestStepResult.prototype,"exception",void 0);return TestStepResult}();t.TestStepResult=$e;var Me=function(){function TestStepStarted(){this.testCaseStartedId="";this.testStepId="";this.timestamp=new Ue}i([(0,a.Type)((function(){return Ue}))],TestStepStarted.prototype,"timestamp",void 0);return TestStepStarted}();t.TestStepStarted=Me;var Ue=function(){function Timestamp(){this.seconds=0;this.nanos=0}return Timestamp}();t.Timestamp=Ue;var je=function(){function UndefinedParameterType(){this.expression="";this.name=""}return UndefinedParameterType}();t.UndefinedParameterType=je;var ze;(function(e){e["IDENTITY"]="IDENTITY";e["BASE64"]="BASE64"})(ze||(t.AttachmentContentEncoding=ze={}));var qe;(function(e){e["BEFORE_TEST_RUN"]="BEFORE_TEST_RUN";e["AFTER_TEST_RUN"]="AFTER_TEST_RUN";e["BEFORE_TEST_CASE"]="BEFORE_TEST_CASE";e["AFTER_TEST_CASE"]="AFTER_TEST_CASE";e["BEFORE_TEST_STEP"]="BEFORE_TEST_STEP";e["AFTER_TEST_STEP"]="AFTER_TEST_STEP"})(qe||(t.HookType=qe={}));var He;(function(e){e["UNKNOWN"]="Unknown";e["CONTEXT"]="Context";e["ACTION"]="Action";e["OUTCOME"]="Outcome"})(He||(t.PickleStepType=He={}));var Fe;(function(e){e["TEXT_X_CUCUMBER_GHERKIN_PLAIN"]="text/x.cucumber.gherkin+plain";e["TEXT_X_CUCUMBER_GHERKIN_MARKDOWN"]="text/x.cucumber.gherkin+markdown"})(Fe||(t.SourceMediaType=Fe={}));var Ge;(function(e){e["CUCUMBER_EXPRESSION"]="CUCUMBER_EXPRESSION";e["REGULAR_EXPRESSION"]="REGULAR_EXPRESSION"})(Ge||(t.StepDefinitionPatternType=Ge={}));var Ve;(function(e){e["UNKNOWN"]="Unknown";e["CONTEXT"]="Context";e["ACTION"]="Action";e["OUTCOME"]="Outcome";e["CONJUNCTION"]="Conjunction"})(Ve||(t.StepKeywordType=Ve={}));var Ke;(function(e){e["UNKNOWN"]="UNKNOWN";e["PASSED"]="PASSED";e["SKIPPED"]="SKIPPED";e["PENDING"]="PENDING";e["UNDEFINED"]="UNDEFINED";e["AMBIGUOUS"]="AMBIGUOUS";e["FAILED"]="FAILED"})(Ke||(t.TestStepResultStatus=Ke={}))},49782:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseEnvelope=parseEnvelope;var i=o(36849);var a=o(40451);function parseEnvelope(e){var t=JSON.parse(e);return(0,a.plainToClass)(i.Envelope,t)}},32505:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.version=void 0;t.version="30.1.0"},99992:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{AbortError:()=>AbortError});e.exports=__toCommonJS(d);class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}0&&0},36227:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{isApiKeyCredential:()=>isApiKeyCredential,isBasicCredential:()=>isBasicCredential,isBearerTokenCredential:()=>isBearerTokenCredential,isOAuth2TokenCredential:()=>isOAuth2TokenCredential});e.exports=__toCommonJS(d);function isOAuth2TokenCredential(e){return"getOAuth2Token"in e}function isBearerTokenCredential(e){return"getBearerToken"in e}function isBasicCredential(e){return"username"in e&&"password"in e}function isApiKeyCredential(e){return"key"in e}0&&0},71408:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{apiVersionPolicy:()=>apiVersionPolicy,apiVersionPolicyName:()=>m});e.exports=__toCommonJS(d);const m="ApiVersionPolicy";function apiVersionPolicy(e){return{name:m,sendRequest:(t,o)=>{const i=new URL(t.url);if(!i.searchParams.get("api-version")&&e.apiVersion){t.url=`${t.url}${Array.from(i.searchParams.keys()).length>0?"&":"?"}api-version=${e.apiVersion}`}return o(t)}}}0&&0},88728:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{createDefaultPipeline:()=>createDefaultPipeline,getCachedDefaultHttpsClient:()=>getCachedDefaultHttpsClient});e.exports=__toCommonJS(f);var h=o(69468);var P=o(91810);var _=o(71408);var L=o(36227);var U=o(42095);var j=o(15756);var H=o(89709);var V=o(20219);let K;function createDefaultPipeline(e={}){const t=(0,P.createPipelineFromOptions)(e);t.addPolicy((0,_.apiVersionPolicy)(e));const{credential:o,authSchemes:i,allowInsecureConnection:a}=e;if(o){if((0,L.isApiKeyCredential)(o)){t.addPolicy((0,U.apiKeyAuthenticationPolicy)({authSchemes:i,credential:o,allowInsecureConnection:a}))}else if((0,L.isBasicCredential)(o)){t.addPolicy((0,j.basicAuthenticationPolicy)({authSchemes:i,credential:o,allowInsecureConnection:a}))}else if((0,L.isBearerTokenCredential)(o)){t.addPolicy((0,H.bearerAuthenticationPolicy)({authSchemes:i,credential:o,allowInsecureConnection:a}))}else if((0,L.isOAuth2TokenCredential)(o)){t.addPolicy((0,V.oauth2AuthenticationPolicy)({authSchemes:i,credential:o,allowInsecureConnection:a}))}}return t}function getCachedDefaultHttpsClient(){if(!K){K=(0,h.createDefaultHttpClient)()}return K}0&&0},86191:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{getClient:()=>getClient});e.exports=__toCommonJS(f);var h=o(88728);var P=o(16311);var _=o(37088);var L=o(85086);function getClient(e,t={}){const o=t.pipeline??(0,h.createDefaultPipeline)(t);if(t.additionalPolicies?.length){for(const{policy:e,position:i}of t.additionalPolicies){const t=i==="perRetry"?"Sign":void 0;o.addPolicy(e,{afterPhase:t})}}const{allowInsecureConnection:i,httpClient:a}=t;const d=t.endpoint??e;const client=(e,...t)=>{const getUrl=o=>(0,_.buildRequestUrl)(d,e,t,{allowInsecureConnection:i,...o});return{get:(e={})=>buildOperation("GET",getUrl(e),o,e,i,a),post:(e={})=>buildOperation("POST",getUrl(e),o,e,i,a),put:(e={})=>buildOperation("PUT",getUrl(e),o,e,i,a),patch:(e={})=>buildOperation("PATCH",getUrl(e),o,e,i,a),delete:(e={})=>buildOperation("DELETE",getUrl(e),o,e,i,a),head:(e={})=>buildOperation("HEAD",getUrl(e),o,e,i,a),options:(e={})=>buildOperation("OPTIONS",getUrl(e),o,e,i,a),trace:(e={})=>buildOperation("TRACE",getUrl(e),o,e,i,a)}};return{path:client,pathUnchecked:client,pipeline:o}}function buildOperation(e,t,o,i,a,d){a=i.allowInsecureConnection??a;return{then:function(m,f){return(0,P.sendRequest)(e,t,o,{...i,allowInsecureConnection:a},d).then(m,f)},async asBrowserStream(){if(L.isNodeLike){throw new Error("`asBrowserStream` is supported only in the browser environment. Use `asNodeStream` instead to obtain the response body stream. If you require a Web stream of the response in Node, consider using `Readable.toWeb` on the result of `asNodeStream`.")}else{return(0,P.sendRequest)(e,t,o,{...i,allowInsecureConnection:a,responseAsStream:true},d)}},async asNodeStream(){if(L.isNodeLike){return(0,P.sendRequest)(e,t,o,{...i,allowInsecureConnection:a,responseAsStream:true},d)}else{throw new Error("`isNodeStream` is not supported in the browser environment. Use `asBrowserStream` to obtain the response body stream.")}}}}0&&0},18240:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{buildBodyPart:()=>buildBodyPart,buildMultipartBody:()=>buildMultipartBody});e.exports=__toCommonJS(f);var h=o(9758);var P=o(4220);var _=o(82921);var L=o(48505);function getHeaderValue(e,t){if(e.headers){const o=Object.keys(e.headers).find((e=>e.toLowerCase()===t.toLowerCase()));if(o){return e.headers[o]}}return void 0}function getPartContentType(e){const t=getHeaderValue(e,"content-type");if(t){return t}if(e.contentType===null){return void 0}if(e.contentType){return e.contentType}const{body:o}=e;if(o===null||o===void 0){return void 0}if(typeof o==="string"||typeof o==="number"||typeof o==="boolean"){return"text/plain; charset=UTF-8"}if(o instanceof Blob){return o.type||"application/octet-stream"}if((0,L.isBinaryBody)(o)){return"application/octet-stream"}return"application/json"}function escapeDispositionField(e){return JSON.stringify(e)}function getContentDisposition(e){const t=getHeaderValue(e,"content-disposition");if(t){return t}if(e.dispositionType===void 0&&e.name===void 0&&e.filename===void 0){return void 0}const o=e.dispositionType??"form-data";let i=o;if(e.name){i+=`; name=${escapeDispositionField(e.name)}`}let a=void 0;if(e.filename){a=e.filename}else if(typeof File!=="undefined"&&e.body instanceof File){const t=e.body.name;if(t!==""){a=t}}if(a){i+=`; filename=${escapeDispositionField(a)}`}return i}function normalizeBody(e,t){if(e===void 0){return new Uint8Array([])}if((0,L.isBinaryBody)(e)){return e}if(typeof e==="string"||typeof e==="number"||typeof e==="boolean"){return(0,_.stringToUint8Array)(String(e),"utf-8")}if(t&&/application\/(.+\+)?json(;.+)?/i.test(String(t))){return(0,_.stringToUint8Array)(JSON.stringify(e),"utf-8")}throw new h.RestError(`Unsupported body/content-type combination: ${e}, ${t}`)}function buildBodyPart(e){const t=getPartContentType(e);const o=getContentDisposition(e);const i=(0,P.createHttpHeaders)(e.headers??{});if(t){i.set("content-type",t)}if(o){i.set("content-disposition",o)}const a=normalizeBody(e.body,t);return{headers:i,body:a}}function buildMultipartBody(e){return{parts:e.map(buildBodyPart)}}0&&0},19635:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{operationOptionsToRequestParameters:()=>operationOptionsToRequestParameters});e.exports=__toCommonJS(d);function operationOptionsToRequestParameters(e){return{allowInsecureConnection:e.requestOptions?.allowInsecureConnection,timeout:e.requestOptions?.timeout,skipUrlEncoding:e.requestOptions?.skipUrlEncoding,abortSignal:e.abortSignal,onUploadProgress:e.requestOptions?.onUploadProgress,onDownloadProgress:e.requestOptions?.onDownloadProgress,headers:{...e.requestOptions?.headers},onResponse:e.onResponse}}0&&0},97332:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{createRestError:()=>createRestError});e.exports=__toCommonJS(f);var h=o(9758);var P=o(4220);function createRestError(e,t){const o=typeof e==="string"?t:e;const i=o.body?.error??o.body;const a=typeof e==="string"?e:i?.message??`Unexpected status code: ${o.status}`;return new h.RestError(a,{statusCode:statusCodeToNumber(o.status),code:i?.code,request:o.request,response:toPipelineResponse(o)})}function toPipelineResponse(e){return{headers:(0,P.createHttpHeaders)(e.headers),request:e.request,status:statusCodeToNumber(e.status)??-1}}function statusCodeToNumber(e){const t=Number.parseInt(e);return Number.isNaN(t)?void 0:t}0&&0},16311:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{getRequestBody:()=>getRequestBody,sendRequest:()=>sendRequest});e.exports=__toCommonJS(f);var h=o(9758);var P=o(4220);var _=o(72305);var L=o(88728);var U=o(48505);var j=o(18240);async function sendRequest(e,t,o,i={},a){const d=a??(0,L.getCachedDefaultHttpsClient)();const m=buildPipelineRequest(e,t,i);try{const e=await o.sendRequest(d,m);const t=e.headers.toJSON();const a=e.readableStreamBody??e.browserStreamBody;const f=i.responseAsStream||a!==void 0?void 0:getResponseBody(e);const h=a??f;if(i?.onResponse){i.onResponse({...e,request:m,rawHeaders:t,parsedBody:f})}return{request:m,headers:t,status:`${e.status}`,body:h}}catch(e){if((0,h.isRestError)(e)&&e.response&&i.onResponse){const{response:t}=e;const o=t.headers.toJSON();i?.onResponse({...t,request:m,rawHeaders:o},e)}throw e}}function getRequestContentType(e={}){if(e.contentType){return e.contentType}const t=e.headers?.["content-type"];if(typeof t==="string"){return t}return getContentType(e.body)}function getContentType(e){if(e===void 0){return void 0}if(ArrayBuffer.isView(e)){return"application/octet-stream"}if((0,U.isBlob)(e)&&e.type){return e.type}if(typeof e==="string"){try{JSON.parse(e);return"application/json"}catch(e){return void 0}}return"application/json"}function buildPipelineRequest(e,t,o={}){const i=getRequestContentType(o);const{body:a,multipartBody:d}=getRequestBody(o.body,i);const m=(0,P.createHttpHeaders)({...o.headers?o.headers:{},accept:o.accept??o.headers?.accept??"application/json",...i&&{"content-type":i}});return(0,_.createPipelineRequest)({url:t,method:e,body:a,multipartBody:d,headers:m,allowInsecureConnection:o.allowInsecureConnection,abortSignal:o.abortSignal,onUploadProgress:o.onUploadProgress,onDownloadProgress:o.onDownloadProgress,timeout:o.timeout,enableBrowserStreams:true,streamResponseStatusCodes:o.responseAsStream?new Set([Number.POSITIVE_INFINITY]):void 0})}function getRequestBody(e,t=""){if(e===void 0){return{body:void 0}}if(typeof FormData!=="undefined"&&e instanceof FormData){return{body:e}}if((0,U.isBlob)(e)){return{body:e}}if((0,U.isReadableStream)(e)){return{body:e}}if(typeof e==="function"){return{body:e}}if(ArrayBuffer.isView(e)){return{body:e instanceof Uint8Array?e:JSON.stringify(e)}}const o=t.split(";")[0];switch(o){case"application/json":return{body:JSON.stringify(e)};case"multipart/form-data":if(Array.isArray(e)){return{multipartBody:(0,j.buildMultipartBody)(e)}}return{body:JSON.stringify(e)};case"text/plain":return{body:String(e)};default:if(typeof e==="string"){return{body:e}}return{body:JSON.stringify(e)}}}function getResponseBody(e){const t=e.headers.get("content-type")??"";const o=t.split(";")[0];const i=e.bodyAsText??"";if(o==="text/plain"){return String(i)}try{return i?JSON.parse(i):void 0}catch(t){if(o==="application/json"){throw createParseError(e,t)}return String(i)}}function createParseError(e,t){const o=`Error "${t}" occurred while parsing the response body - ${e.bodyAsText}.`;const i=t.code??h.RestError.PARSE_ERROR;return new h.RestError(o,{code:i,statusCode:e.status,request:e.request,response:e})}0&&0},37088:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{appendQueryParams:()=>appendQueryParams,buildBaseUrl:()=>buildBaseUrl,buildRequestUrl:()=>buildRequestUrl,replaceAll:()=>replaceAll});e.exports=__toCommonJS(d);function isQueryParameterWithOptions(e){if(typeof e!=="object"||e===null||!Object.hasOwn(e,"value")){return false}const t=e.value;return typeof t?.toString==="function"}function buildRequestUrl(e,t,o,i={}){if(t.startsWith("https://")||t.startsWith("http://")){return t}e=buildBaseUrl(e,i);const a=buildRoutePath(t,o,i);const d=appendQueryParams(appendPath(e,a),i);const m=new URL(d);return m.toString()}function appendPath(e,t){const o=e.indexOf("?");const i=t.indexOf("?");const a=o!==-1?[e.substring(0,o),e.substring(o+1)]:[e,""];const d=i!==-1?[t.substring(0,i),t.substring(i+1)]:[t,""];const m=[a[1],d[1].replaceAll("?","&")].filter(Boolean).join("&");const f=a[0].replace(/(^[^:]+:\/\/[^/]+)\/\/+/,"$1/");const h=d[0];let P=f;if(!f.endsWith("/")&&!h.startsWith("/")&&h!==""){P+=`/${h}`}else if(f.endsWith("/")&&h.startsWith("/")){P+=h.substring(1)}else{P+=h}if(m){P+=`?${m}`}return P}function getQueryParamValue(e,t,o,i){let a;if(o==="pipeDelimited"){a="|"}else if(o==="spaceDelimited"){a="%20"}else{a=","}let d;if(Array.isArray(i)){d=i}else if(typeof i==="object"&&i.toString===Object.prototype.toString){d=Object.entries(i).flat()}else{d=[i]}const m=d.map((o=>{if(o===null||o===void 0){return""}if(!o.toString||typeof o.toString!=="function"){throw new Error(`Query parameters must be able to be represented as string, ${e} can't`)}const i=o.toISOString!==void 0?o.toISOString():o.toString();return t?i:encodeURIComponent(i)})).join(a);return`${t?e:encodeURIComponent(e)}=${m}`}function simpleParseQueryParams(e){const t=new Map;if(!e||e[0]!=="?"){return t}e=e.slice(1);const o=e.split("&");for(const e of o){const o=e.indexOf("=");const i=o===-1?e:e.substring(0,o);const a=o===-1?"":e.substring(o+1);const d=t.get(i);if(d!==void 0){if(Array.isArray(d)){d.push(a)}else{t.set(i,[d,a])}}else{t.set(i,a)}}return t}function appendQueryParams(e,t={}){if(!t.queryParameters){return e}const o=new URL(e);const i=t.queryParameters;const a=simpleParseQueryParams(o.search);const d=[];for(const e of Object.keys(i)){const o=i[e];if(o===void 0||o===null){continue}const a=isQueryParameterWithOptions(o);const m=a?o.value:o;const f=a?o.explode??false:false;const h=a&&o.style?o.style:"form";if(f){if(Array.isArray(m)){for(const o of m){d.push(getQueryParamValue(e,t.skipUrlEncoding??false,h,o))}}else if(m!==null&&typeof m==="object"){for(const[e,o]of Object.entries(m)){d.push(getQueryParamValue(e,t.skipUrlEncoding??false,h,o))}}else{throw new Error("explode can only be set to true for objects and arrays")}}else{d.push(getQueryParamValue(e,t.skipUrlEncoding??false,h,m))}}for(const e of d){const t=e.indexOf("=");const o=e.substring(0,t);const i=e.substring(t+1);const d=a.get(o);if(d!==void 0){if(Array.isArray(d)){if(!d.includes(i)){d.push(i)}}else if(d!==i){a.set(o,[d,i])}}else{a.set(o,i)}}const m=[];for(const[e,t]of a){if(Array.isArray(t)){for(const o of t){m.push(`${e}=${o}`)}}else{m.push(`${e}=${t}`)}}o.search=m.length?`?${m.join("&")}`:"";return o.toString()}function buildBaseUrl(e,t){if(!t.pathParameters){return e}const o=t.pathParameters;for(const[i,a]of Object.entries(o)){if(a===void 0||a===null){throw new Error(`Path parameters ${i} must not be undefined or null`)}if(!a.toString||typeof a.toString!=="function"){throw new Error(`Path parameters must be able to be represented as string, ${i} can't`)}let o=a.toISOString!==void 0?a.toISOString():String(a);if(!t.skipUrlEncoding){o=encodeURIComponent(a)}e=replaceAll(e,`{${i}}`,o)??""}return e}function buildRoutePath(e,t,o={}){for(const i of t){const t=typeof i==="object"&&(i.allowReserved??false);let a=typeof i==="object"?i.value:i;if(!o.skipUrlEncoding&&!t){a=encodeURIComponent(a)}e=e.replace(/\{[\w-]+\}/,String(a))}return e}function replaceAll(e,t,o){return!e||!t?e:e.split(t).join(o||"")}0&&0},31255:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{DEFAULT_RETRY_POLICY_COUNT:()=>f,SDK_VERSION:()=>m});e.exports=__toCommonJS(d);const m="0.3.5";const f=3;0&&0},91810:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{createPipelineFromOptions:()=>createPipelineFromOptions});e.exports=__toCommonJS(f);var h=o(47129);var P=o(22338);var _=o(92187);var L=o(91691);var U=o(35035);var j=o(32462);var H=o(14197);var V=o(85086);var K=o(80067);var W=o(85366);var X=o(96690);var Q=o(27427);function createPipelineFromOptions(e){const t=(0,P.createEmptyPipeline)();if(V.isNodeLike){if(e.agent){t.addPolicy((0,W.agentPolicy)(e.agent))}if(e.tlsOptions){t.addPolicy((0,X.tlsPolicy)(e.tlsOptions))}t.addPolicy((0,K.proxyPolicy)(e.proxyOptions));t.addPolicy((0,U.decompressResponsePolicy)())}t.addPolicy((0,H.formDataPolicy)(),{beforePolicies:[Q.multipartPolicyName]});t.addPolicy((0,L.userAgentPolicy)(e.userAgentOptions));t.addPolicy((0,Q.multipartPolicy)(),{afterPhase:"Deserialize"});t.addPolicy((0,j.defaultRetryPolicy)(e.retryOptions),{phase:"Retry"});if(V.isNodeLike){t.addPolicy((0,_.redirectPolicy)(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy((0,h.logPolicy)(e.loggingOptions),{afterPhase:"Sign"});return t}0&&0},69468:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{createDefaultHttpClient:()=>createDefaultHttpClient});e.exports=__toCommonJS(f);var h=o(21167);function createDefaultHttpClient(){return(0,h.createNodeHttpClient)()}0&&0},4220:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{createHttpHeaders:()=>createHttpHeaders});e.exports=__toCommonJS(d);function normalizeName(e){return e.toLowerCase()}function*headerIterator(e){for(const t of e.values()){yield[t.name,t.value]}}class HttpHeadersImpl{_headersMap;constructor(e){this._headersMap=new Map;if(e){for(const t of Object.keys(e)){this.set(t,e[t])}}}set(e,t){this._headersMap.set(normalizeName(e),{name:e,value:String(t).trim()})}get(e){return this._headersMap.get(normalizeName(e))?.value}has(e){return this._headersMap.has(normalizeName(e))}delete(e){this._headersMap.delete(normalizeName(e))}toJSON(e={}){const t={};if(e.preserveCase){for(const e of this._headersMap.values()){t[e.name]=e.value}}else{for(const[e,o]of this._headersMap){t[e]=o.value}}return t}toString(){return JSON.stringify(this.toJSON({preserveCase:true}))}[Symbol.iterator](){return headerIterator(this._headersMap)}}function createHttpHeaders(e){return new HttpHeadersImpl(e)}0&&0},41958:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{AbortError:()=>h.AbortError,RestError:()=>j.RestError,TypeSpecRuntimeLogger:()=>P.TypeSpecRuntimeLogger,createClientLogger:()=>P.createClientLogger,createDefaultHttpClient:()=>V.createDefaultHttpClient,createEmptyPipeline:()=>U.createEmptyPipeline,createHttpHeaders:()=>_.createHttpHeaders,createPipelineRequest:()=>L.createPipelineRequest,createRestError:()=>X.createRestError,getClient:()=>K.getClient,getLogLevel:()=>P.getLogLevel,isRestError:()=>j.isRestError,operationOptionsToRequestParameters:()=>W.operationOptionsToRequestParameters,setLogLevel:()=>P.setLogLevel,stringToUint8Array:()=>H.stringToUint8Array,uint8ArrayToString:()=>H.uint8ArrayToString});e.exports=__toCommonJS(f);var h=o(99992);var P=o(18459);var _=o(4220);var L=o(72305);var U=o(22338);var j=o(9758);var H=o(82921);var V=o(69468);var K=o(86191);var W=o(19635);var X=o(97332);0&&0},3644:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{logger:()=>P});e.exports=__toCommonJS(f);var h=o(18459);const P=(0,h.createClientLogger)("ts-http-runtime");0&&0},36836:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{default:()=>V});e.exports=__toCommonJS(f);var h=o(38029);const P=typeof process!=="undefined"&&process.env&&process.env.DEBUG||void 0;let _;let L=[];let U=[];const j=[];if(P){enable(P)}const H=Object.assign((e=>createDebugger(e)),{enable:enable,enabled:enabled,disable:disable,log:h.log});function enable(e){_=e;L=[];U=[];const t=e.split(",").map((e=>e.trim()));for(const e of t){if(e.startsWith("-")){U.push(e.substring(1))}else{L.push(e)}}for(const e of j){e.enabled=enabled(e.namespace)}}function enabled(e){if(e.endsWith("*")){return true}for(const t of U){if(namespaceMatches(e,t)){return false}}for(const t of L){if(namespaceMatches(e,t)){return true}}return false}function namespaceMatches(e,t){if(t.indexOf("*")===-1){return e===t}let o=t;if(t.indexOf("**")!==-1){const e=[];let i="";for(const o of t){if(o==="*"&&i==="*"){continue}else{i=o;e.push(o)}}o=e.join("")}let i=0;let a=0;const d=o.length;const m=e.length;let f=-1;let h=-1;while(i<m&&a<d){if(o[a]==="*"){f=a;a++;if(a===d){return true}while(e[i]!==o[a]){i++;if(i===m){return false}}h=i;i++;a++;continue}else if(o[a]===e[i]){a++;i++}else if(f>=0){a=f+1;i=h+1;if(i===m){return false}while(e[i]!==o[a]){i++;if(i===m){return false}}h=i;i++;a++;continue}else{return false}}const P=i===e.length;const _=a===o.length;const L=a===o.length-1&&o[a]==="*";return P&&(_||L)}function disable(){const e=_||"";enable("");return e}function createDebugger(e){const t=Object.assign(debug,{enabled:enabled(e),destroy:destroy,log:H.log,namespace:e,extend:extend});function debug(...o){if(!t.enabled){return}if(o.length>0){o[0]=`${e} ${o[0]}`}t.log(...o)}j.push(t);return t}function destroy(){const e=j.indexOf(this);if(e>=0){j.splice(e,1);return true}return false}function extend(e){const t=createDebugger(`${this.namespace}:${e}`);t.log=this.log;return t}var V=H},82490:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{createLoggerContext:()=>h.createLoggerContext});e.exports=__toCommonJS(f);var h=o(18459);0&&0},38029:(e,t,o)=>{var i=Object.create;var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var f=Object.getPrototypeOf;var h=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)a(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,i)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let f of m(t))if(!h.call(e,f)&&f!==o)a(e,f,{get:()=>t[f],enumerable:!(i=d(t,f))||i.enumerable})}return e};var __toESM=(e,t,o)=>(o=e!=null?i(f(e)):{},__copyProps(t||!e||!e.__esModule?a(o,"default",{value:e,enumerable:true}):o,e));var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var P={};__export(P,{log:()=>log});e.exports=__toCommonJS(P);var _=o(48161);var L=__toESM(o(57975));var U=__toESM(o(1708));function log(e,...t){U.default.stderr.write(`${L.default.format(e,...t)}${_.EOL}`)}0&&0},18459:(e,t,o)=>{var i=Object.create;var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var f=Object.getPrototypeOf;var h=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)a(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,i)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let f of m(t))if(!h.call(e,f)&&f!==o)a(e,f,{get:()=>t[f],enumerable:!(i=d(t,f))||i.enumerable})}return e};var __toESM=(e,t,o)=>(o=e!=null?i(f(e)):{},__copyProps(t||!e||!e.__esModule?a(o,"default",{value:e,enumerable:true}):o,e));var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var P={};__export(P,{TypeSpecRuntimeLogger:()=>H,createClientLogger:()=>createClientLogger,createLoggerContext:()=>createLoggerContext,getLogLevel:()=>getLogLevel,setLogLevel:()=>setLogLevel});e.exports=__toCommonJS(P);var _=__toESM(o(36836));const L=["verbose","info","warning","error"];const U={verbose:400,info:300,warning:200,error:100};function patchLogMethod(e,t){t.log=(...t)=>{e.log(...t)}}function isTypeSpecRuntimeLogLevel(e){return L.includes(e)}function createLoggerContext(e){const t=new Set;const o=typeof process!=="undefined"&&process.env&&process.env[e.logLevelEnvVarName]||void 0;let i;const a=(0,_.default)(e.namespace);a.log=(...e)=>{_.default.log(...e)};function contextSetLogLevel(e){if(e&&!isTypeSpecRuntimeLogLevel(e)){throw new Error(`Unknown log level '${e}'. Acceptable values: ${L.join(",")}`)}i=e;const o=[];for(const e of t){if(shouldEnable(e)){o.push(e.namespace)}}_.default.enable(o.join(","))}if(o){if(isTypeSpecRuntimeLogLevel(o)){contextSetLogLevel(o)}else{console.error(`${e.logLevelEnvVarName} set to unknown log level '${o}'; logging is not enabled. Acceptable values: ${L.join(", ")}.`)}}function shouldEnable(e){return Boolean(i&&U[e.level]<=U[i])}function createLogger(e,o){const i=Object.assign(e.extend(o),{level:o});patchLogMethod(e,i);if(shouldEnable(i)){const e=_.default.disable();_.default.enable(e+","+i.namespace)}t.add(i);return i}function contextGetLogLevel(){return i}function contextCreateClientLogger(e){const t=a.extend(e);patchLogMethod(a,t);return{error:createLogger(t,"error"),warning:createLogger(t,"warning"),info:createLogger(t,"info"),verbose:createLogger(t,"verbose")}}return{setLogLevel:contextSetLogLevel,getLogLevel:contextGetLogLevel,createClientLogger:contextCreateClientLogger,logger:a}}const j=createLoggerContext({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"});const H=j.logger;function setLogLevel(e){j.setLogLevel(e)}function getLogLevel(){return j.getLogLevel()}function createClientLogger(e){return j.createClientLogger(e)}0&&0},21167:(e,t,o)=>{var i=Object.create;var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var f=Object.getPrototypeOf;var h=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)a(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,i)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let f of m(t))if(!h.call(e,f)&&f!==o)a(e,f,{get:()=>t[f],enumerable:!(i=d(t,f))||i.enumerable})}return e};var __toESM=(e,t,o)=>(o=e!=null?i(f(e)):{},__copyProps(t||!e||!e.__esModule?a(o,"default",{value:e,enumerable:true}):o,e));var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var P={};__export(P,{createNodeHttpClient:()=>createNodeHttpClient,getBodyLength:()=>getBodyLength});e.exports=__toCommonJS(P);var _=__toESM(o(37067));var L=__toESM(o(44708));var U=__toESM(o(38522));var j=o(57075);var H=o(99992);var V=o(4220);var K=o(9758);var W=o(3644);var X=o(7784);const Q={};function isReadableStream(e){return e&&typeof e.pipe==="function"}function isStreamComplete(e){if(e.readable===false){return Promise.resolve()}return new Promise((t=>{const handler=()=>{t();e.removeListener("close",handler);e.removeListener("end",handler);e.removeListener("error",handler)};e.on("close",handler);e.on("end",handler);e.on("error",handler)}))}function isArrayBuffer(e){return e&&typeof e.byteLength==="number"}class ReportTransform extends j.Transform{loadedBytes=0;progressCallback;_transform(e,t,o){this.push(e);this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes});o()}catch(e){o(e)}}constructor(e){super();this.progressCallback=e}}class NodeHttpClient{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){const t=new AbortController;let o;if(e.abortSignal){if(e.abortSignal.aborted){throw new H.AbortError("The operation was aborted. Request has already been canceled.")}o=e=>{if(e.type==="abort"){t.abort()}};e.abortSignal.addEventListener("abort",o)}let i;if(e.timeout>0){i=setTimeout((()=>{const o=new X.Sanitizer;W.logger.info(`request to '${o.sanitizeUrl(e.url)}' timed out. canceling...`);t.abort()}),e.timeout)}const a=e.headers.get("Accept-Encoding");const d=a?.includes("gzip")||a?.includes("deflate");let m=typeof e.body==="function"?e.body():e.body;if(m&&!e.headers.has("Content-Length")){const t=getBodyLength(m);if(t!==null){e.headers.set("Content-Length",t)}}let f;try{if(m&&e.onUploadProgress){const t=e.onUploadProgress;const o=new ReportTransform(t);o.on("error",(e=>{W.logger.error("Error in upload progress",e)}));if(isReadableStream(m)){m.pipe(o)}else{o.end(m)}m=o}const o=await this.makeRequest(e,t,m);if(i!==void 0){clearTimeout(i)}const a=getResponseHeaders(o);const h=o.statusCode??0;const P={status:h,headers:a,request:e};if(e.method==="HEAD"){o.resume();return P}f=d?getDecodedResponseStream(o,a):o;const _=e.onDownloadProgress;if(_){const e=new ReportTransform(_);e.on("error",(e=>{W.logger.error("Error in download progress",e)}));f.pipe(e);f=e}if(e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(P.status)){P.readableStreamBody=f}else{P.bodyAsText=await streamToText(f)}return P}finally{if(e.abortSignal&&o){let t=Promise.resolve();if(isReadableStream(m)){t=isStreamComplete(m)}let i=Promise.resolve();if(isReadableStream(f)){i=isStreamComplete(f)}Promise.all([t,i]).then((()=>{if(o){e.abortSignal?.removeEventListener("abort",o)}})).catch((e=>{W.logger.warning("Error when cleaning up abortListener on httpRequest",e)}))}}}makeRequest(e,t,o){const i=new URL(e.url);const a=i.protocol!=="https:";if(a&&!e.allowInsecureConnection){throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`)}const d=e.agent??this.getOrCreateAgent(e,a);const m={agent:d,hostname:i.hostname,path:`${i.pathname}${i.search}`,port:i.port,method:e.method,headers:e.headers.toJSON({preserveCase:true}),...e.requestOverrides};return new Promise(((i,d)=>{const f=a?_.default.request(m,i):L.default.request(m,i);f.once("error",(t=>{d(new K.RestError(t.message,{code:t.code??K.RestError.REQUEST_SEND_ERROR,request:e}))}));t.signal.addEventListener("abort",(()=>{const e=new H.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");f.destroy(e);d(e)}));if(o&&isReadableStream(o)){o.pipe(f)}else if(o){if(typeof o==="string"||Buffer.isBuffer(o)){f.end(o)}else if(isArrayBuffer(o)){f.end(ArrayBuffer.isView(o)?Buffer.from(o.buffer):Buffer.from(o))}else{W.logger.error("Unrecognized body type",o);d(new K.RestError("Unrecognized body type"))}}else{f.end()}}))}getOrCreateAgent(e,t){const o=e.disableKeepAlive;if(t){if(o){return _.default.globalAgent}if(!this.cachedHttpAgent){this.cachedHttpAgent=new _.default.Agent({keepAlive:true})}return this.cachedHttpAgent}else{if(o&&!e.tlsSettings){return L.default.globalAgent}const t=e.tlsSettings??Q;let i=this.cachedHttpsAgents.get(t);if(i&&i.options.keepAlive===!o){return i}W.logger.info("No cached TLS Agent exist, creating a new Agent");i=new L.default.Agent({keepAlive:!o,...t});this.cachedHttpsAgents.set(t,i);return i}}}function getResponseHeaders(e){const t=(0,V.createHttpHeaders)();for(const o of Object.keys(e.headers)){const i=e.headers[o];if(Array.isArray(i)){if(i.length>0){t.set(o,i[0])}}else if(i){t.set(o,i)}}return t}function getDecodedResponseStream(e,t){const o=t.get("Content-Encoding");if(o==="gzip"){const t=U.default.createGunzip();e.pipe(t);return t}else if(o==="deflate"){const t=U.default.createInflate();e.pipe(t);return t}return e}function streamToText(e){return new Promise(((t,o)=>{const i=[];e.on("data",(e=>{if(Buffer.isBuffer(e)){i.push(e)}else{i.push(Buffer.from(e))}}));e.on("end",(()=>{t(Buffer.concat(i).toString("utf8"))}));e.on("error",(e=>{if(e&&e?.name==="AbortError"){o(e)}else{o(new K.RestError(`Error reading response as text: ${e.message}`,{code:K.RestError.PARSE_ERROR}))}}))}))}function getBodyLength(e){if(!e){return 0}else if(Buffer.isBuffer(e)){return e.length}else if(isReadableStream(e)){return null}else if(isArrayBuffer(e)){return e.byteLength}else if(typeof e==="string"){return Buffer.from(e).length}else{return null}}function createNodeHttpClient(){return new NodeHttpClient}0&&0},22338:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{createEmptyPipeline:()=>createEmptyPipeline});e.exports=__toCommonJS(d);const m=new Set(["Deserialize","Serialize","Retry","Sign"]);class HttpPipeline{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[];this._orderedPolicies=void 0}addPolicy(e,t={}){if(t.phase&&t.afterPhase){throw new Error("Policies inside a phase cannot specify afterPhase.")}if(t.phase&&!m.has(t.phase)){throw new Error(`Invalid phase name: ${t.phase}`)}if(t.afterPhase&&!m.has(t.afterPhase)){throw new Error(`Invalid afterPhase name: ${t.afterPhase}`)}this._policies.push({policy:e,options:t});this._orderedPolicies=void 0}removePolicy(e){const t=[];this._policies=this._policies.filter((o=>{if(e.name&&o.policy.name===e.name||e.phase&&o.options.phase===e.phase){t.push(o.policy);return false}else{return true}}));this._orderedPolicies=void 0;return t}sendRequest(e,t){const o=this.getOrderedPolicies();const i=o.reduceRight(((e,t)=>o=>t.sendRequest(o,e)),(t=>e.sendRequest(t)));return i(t)}getOrderedPolicies(){if(!this._orderedPolicies){this._orderedPolicies=this.orderPolicies()}return this._orderedPolicies}clone(){return new HttpPipeline(this._policies)}static create(){return new HttpPipeline}orderPolicies(){const e=[];const t=new Map;function createPhase(e){return{name:e,policies:new Set,hasRun:false,hasAfterPolicies:false}}const o=createPhase("Serialize");const i=createPhase("None");const a=createPhase("Deserialize");const d=createPhase("Retry");const m=createPhase("Sign");const f=[o,i,a,d,m];function getPhase(e){if(e==="Retry"){return d}else if(e==="Serialize"){return o}else if(e==="Deserialize"){return a}else if(e==="Sign"){return m}else{return i}}for(const e of this._policies){const o=e.policy;const i=e.options;const a=o.name;if(t.has(a)){throw new Error("Duplicate policy names not allowed in pipeline")}const d={policy:o,dependsOn:new Set,dependants:new Set};if(i.afterPhase){d.afterPhase=getPhase(i.afterPhase);d.afterPhase.hasAfterPolicies=true}t.set(a,d);const m=getPhase(i.phase);m.policies.add(d)}for(const e of this._policies){const{policy:o,options:i}=e;const a=o.name;const d=t.get(a);if(!d){throw new Error(`Missing node for policy ${a}`)}if(i.afterPolicies){for(const e of i.afterPolicies){const o=t.get(e);if(o){d.dependsOn.add(o);o.dependants.add(d)}}}if(i.beforePolicies){for(const e of i.beforePolicies){const o=t.get(e);if(o){o.dependsOn.add(d);d.dependants.add(o)}}}}function walkPhase(o){o.hasRun=true;for(const i of o.policies){if(i.afterPhase&&(!i.afterPhase.hasRun||i.afterPhase.policies.size)){continue}if(i.dependsOn.size===0){e.push(i.policy);for(const e of i.dependants){e.dependsOn.delete(i)}t.delete(i.policy.name);o.policies.delete(i)}}}function walkPhases(){for(const e of f){walkPhase(e);if(e.policies.size>0&&e!==i){if(!i.hasRun){walkPhase(i)}return}if(e.hasAfterPolicies){walkPhase(i)}}}let h=0;while(t.size>0){h++;const t=e.length;walkPhases();if(e.length<=t&&h>1){throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}}return e}}function createEmptyPipeline(){return HttpPipeline.create()}0&&0},72305:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{createPipelineRequest:()=>createPipelineRequest});e.exports=__toCommonJS(f);var h=o(4220);var P=o(5023);class PipelineRequestImpl{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url;this.body=e.body;this.headers=e.headers??(0,h.createHttpHeaders)();this.method=e.method??"GET";this.timeout=e.timeout??0;this.multipartBody=e.multipartBody;this.formData=e.formData;this.disableKeepAlive=e.disableKeepAlive??false;this.proxySettings=e.proxySettings;this.streamResponseStatusCodes=e.streamResponseStatusCodes;this.withCredentials=e.withCredentials??false;this.abortSignal=e.abortSignal;this.onUploadProgress=e.onUploadProgress;this.onDownloadProgress=e.onDownloadProgress;this.requestId=e.requestId||(0,P.randomUUID)();this.allowInsecureConnection=e.allowInsecureConnection??false;this.enableBrowserStreams=e.enableBrowserStreams??false;this.requestOverrides=e.requestOverrides;this.authSchemes=e.authSchemes}}function createPipelineRequest(e){return new PipelineRequestImpl(e)}0&&0},85366:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{agentPolicy:()=>agentPolicy,agentPolicyName:()=>m});e.exports=__toCommonJS(d);const m="agentPolicy";function agentPolicy(e){return{name:m,sendRequest:async(t,o)=>{if(!t.agent){t.agent=e}return o(t)}}}0&&0},42095:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{apiKeyAuthenticationPolicy:()=>apiKeyAuthenticationPolicy,apiKeyAuthenticationPolicyName:()=>P});e.exports=__toCommonJS(f);var h=o(42302);const P="apiKeyAuthenticationPolicy";function apiKeyAuthenticationPolicy(e){return{name:P,async sendRequest(t,o){(0,h.ensureSecureConnection)(t,e);const i=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="apiKey"));if(!i){return o(t)}if(i.apiKeyLocation!=="header"){throw new Error(`Unsupported API key location: ${i.apiKeyLocation}`)}t.headers.set(i.name,e.credential.key);return o(t)}}}0&&0},15756:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{basicAuthenticationPolicy:()=>basicAuthenticationPolicy,basicAuthenticationPolicyName:()=>_});e.exports=__toCommonJS(f);var h=o(82921);var P=o(42302);const _="bearerAuthenticationPolicy";function basicAuthenticationPolicy(e){return{name:_,async sendRequest(t,o){(0,P.ensureSecureConnection)(t,e);const i=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="http"&&e.scheme==="basic"));if(!i){return o(t)}const{username:a,password:d}=e.credential;const m=(0,h.uint8ArrayToString)((0,h.stringToUint8Array)(`${a}:${d}`,"utf-8"),"base64");t.headers.set("Authorization",`Basic ${m}`);return o(t)}}}0&&0},89709:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{bearerAuthenticationPolicy:()=>bearerAuthenticationPolicy,bearerAuthenticationPolicyName:()=>P});e.exports=__toCommonJS(f);var h=o(42302);const P="bearerAuthenticationPolicy";function bearerAuthenticationPolicy(e){return{name:P,async sendRequest(t,o){(0,h.ensureSecureConnection)(t,e);const i=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="http"&&e.scheme==="bearer"));if(!i){return o(t)}const a=await e.credential.getBearerToken({abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${a}`);return o(t)}}}0&&0},42302:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{ensureSecureConnection:()=>ensureSecureConnection});e.exports=__toCommonJS(f);var h=o(3644);let P=false;function allowInsecureConnection(e,t){if(t.allowInsecureConnection&&e.allowInsecureConnection){const t=new URL(e.url);if(t.hostname==="localhost"||t.hostname==="127.0.0.1"){return true}}return false}function emitInsecureConnectionWarning(){const e="Sending token over insecure transport. Assume any token issued is compromised.";h.logger.warning(e);if(typeof process?.emitWarning==="function"&&!P){P=true;process.emitWarning(e)}}function ensureSecureConnection(e,t){if(!e.url.toLowerCase().startsWith("https://")){if(allowInsecureConnection(e,t)){emitInsecureConnectionWarning()}else{throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}}}0&&0},20219:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{oauth2AuthenticationPolicy:()=>oauth2AuthenticationPolicy,oauth2AuthenticationPolicyName:()=>P});e.exports=__toCommonJS(f);var h=o(42302);const P="oauth2AuthenticationPolicy";function oauth2AuthenticationPolicy(e){return{name:P,async sendRequest(t,o){(0,h.ensureSecureConnection)(t,e);const i=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="oauth2"));if(!i){return o(t)}const a=await e.credential.getOAuth2Token(i.flows,{abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${a}`);return o(t)}}}0&&0},35035:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{decompressResponsePolicy:()=>decompressResponsePolicy,decompressResponsePolicyName:()=>m});e.exports=__toCommonJS(d);const m="decompressResponsePolicy";function decompressResponsePolicy(){return{name:m,async sendRequest(e,t){if(e.method!=="HEAD"){e.headers.set("Accept-Encoding","gzip,deflate")}return t(e)}}}0&&0},32462:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{defaultRetryPolicy:()=>defaultRetryPolicy,defaultRetryPolicyName:()=>U});e.exports=__toCommonJS(f);var h=o(98102);var P=o(21112);var _=o(43345);var L=o(31255);const U="defaultRetryPolicy";function defaultRetryPolicy(e={}){return{name:U,sendRequest:(0,_.retryPolicy)([(0,P.throttlingRetryStrategy)(),(0,h.exponentialRetryStrategy)(e)],{maxRetries:e.maxRetries??L.DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}0&&0},74656:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{exponentialRetryPolicy:()=>exponentialRetryPolicy,exponentialRetryPolicyName:()=>L});e.exports=__toCommonJS(f);var h=o(98102);var P=o(43345);var _=o(31255);const L="exponentialRetryPolicy";function exponentialRetryPolicy(e={}){return(0,P.retryPolicy)([(0,h.exponentialRetryStrategy)({...e,ignoreSystemErrors:true})],{maxRetries:e.maxRetries??_.DEFAULT_RETRY_POLICY_COUNT})}0&&0},14197:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{formDataPolicy:()=>formDataPolicy,formDataPolicyName:()=>L});e.exports=__toCommonJS(f);var h=o(82921);var P=o(85086);var _=o(4220);const L="formDataPolicy";function formDataToFormDataMap(e){const t={};for(const[o,i]of e.entries()){t[o]??=[];t[o].push(i)}return t}function formDataPolicy(){return{name:L,async sendRequest(e,t){if(P.isNodeLike&&typeof FormData!=="undefined"&&e.body instanceof FormData){e.formData=formDataToFormDataMap(e.body);e.body=void 0}if(e.formData){const t=e.headers.get("Content-Type");if(t&&t.indexOf("application/x-www-form-urlencoded")!==-1){e.body=wwwFormUrlEncode(e.formData)}else{await prepareFormData(e.formData,e)}e.formData=void 0}return t(e)}}}function wwwFormUrlEncode(e){const t=new URLSearchParams;for(const[o,i]of Object.entries(e)){if(Array.isArray(i)){for(const e of i){t.append(o,e.toString())}}else{t.append(o,i.toString())}}return t.toString()}async function prepareFormData(e,t){const o=t.headers.get("Content-Type");if(o&&!o.startsWith("multipart/form-data")){return}t.headers.set("Content-Type",o??"multipart/form-data");const i=[];for(const[t,o]of Object.entries(e)){for(const e of Array.isArray(o)?o:[o]){if(typeof e==="string"){i.push({headers:(0,_.createHttpHeaders)({"Content-Disposition":`form-data; name="${t}"`}),body:(0,h.stringToUint8Array)(e,"utf-8")})}else if(e===void 0||e===null||typeof e!=="object"){throw new Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`)}else{const o=e.name||"blob";const a=(0,_.createHttpHeaders)();a.set("Content-Disposition",`form-data; name="${t}"; filename="${o}"`);a.set("Content-Type",e.type||"application/octet-stream");i.push({headers:a,body:e})}}}t.multipartBody={parts:i}}0&&0},44960:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{agentPolicy:()=>h.agentPolicy,agentPolicyName:()=>h.agentPolicyName,decompressResponsePolicy:()=>P.decompressResponsePolicy,decompressResponsePolicyName:()=>P.decompressResponsePolicyName,defaultRetryPolicy:()=>_.defaultRetryPolicy,defaultRetryPolicyName:()=>_.defaultRetryPolicyName,exponentialRetryPolicy:()=>L.exponentialRetryPolicy,exponentialRetryPolicyName:()=>L.exponentialRetryPolicyName,formDataPolicy:()=>V.formDataPolicy,formDataPolicyName:()=>V.formDataPolicyName,getDefaultProxySettings:()=>X.getDefaultProxySettings,logPolicy:()=>K.logPolicy,logPolicyName:()=>K.logPolicyName,multipartPolicy:()=>W.multipartPolicy,multipartPolicyName:()=>W.multipartPolicyName,proxyPolicy:()=>X.proxyPolicy,proxyPolicyName:()=>X.proxyPolicyName,redirectPolicy:()=>Q.redirectPolicy,redirectPolicyName:()=>Q.redirectPolicyName,retryPolicy:()=>U.retryPolicy,systemErrorRetryPolicy:()=>j.systemErrorRetryPolicy,systemErrorRetryPolicyName:()=>j.systemErrorRetryPolicyName,throttlingRetryPolicy:()=>H.throttlingRetryPolicy,throttlingRetryPolicyName:()=>H.throttlingRetryPolicyName,tlsPolicy:()=>Y.tlsPolicy,tlsPolicyName:()=>Y.tlsPolicyName,userAgentPolicy:()=>J.userAgentPolicy,userAgentPolicyName:()=>J.userAgentPolicyName});e.exports=__toCommonJS(f);var h=o(85366);var P=o(35035);var _=o(32462);var L=o(74656);var U=o(43345);var j=o(92418);var H=o(24728);var V=o(14197);var K=o(47129);var W=o(27427);var X=o(80067);var Q=o(92187);var Y=o(96690);var J=o(91691);0&&0},47129:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{logPolicy:()=>logPolicy,logPolicyName:()=>_});e.exports=__toCommonJS(f);var h=o(3644);var P=o(7784);const _="logPolicy";function logPolicy(e={}){const t=e.logger??h.logger.info;const o=new P.Sanitizer({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:_,async sendRequest(e,i){if(!t.enabled){return i(e)}t(`Request: ${o.sanitize(e)}`);const a=await i(e);t(`Response status code: ${a.status}`);t(`Headers: ${o.sanitize(a.headers)}`);return a}}}0&&0},27427:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{multipartPolicy:()=>multipartPolicy,multipartPolicyName:()=>U});e.exports=__toCommonJS(f);var h=o(82921);var P=o(48505);var _=o(5023);var L=o(20547);function generateBoundary(){return`----AzSDKFormBoundary${(0,_.randomUUID)()}`}function encodeHeaders(e){let t="";for(const[o,i]of e){t+=`${o}: ${i}\r\n`}return t}function getLength(e){if(e instanceof Uint8Array){return e.byteLength}else if((0,P.isBlob)(e)){return e.size===-1?void 0:e.size}else{return void 0}}function getTotalLength(e){let t=0;for(const o of e){const e=getLength(o);if(e===void 0){return void 0}else{t+=e}}return t}async function buildRequestBody(e,t,o){const i=[(0,h.stringToUint8Array)(`--${o}`,"utf-8"),...t.flatMap((e=>[(0,h.stringToUint8Array)("\r\n","utf-8"),(0,h.stringToUint8Array)(encodeHeaders(e.headers),"utf-8"),(0,h.stringToUint8Array)("\r\n","utf-8"),e.body,(0,h.stringToUint8Array)(`\r\n--${o}`,"utf-8")])),(0,h.stringToUint8Array)("--\r\n\r\n","utf-8")];const a=getTotalLength(i);if(a){e.headers.set("Content-Length",a)}e.body=await(0,L.concat)(i)}const U="multipartPolicy";const j=70;const H=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function assertValidBoundary(e){if(e.length>j){throw new Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`)}if(Array.from(e).some((e=>!H.has(e)))){throw new Error(`Multipart boundary "${e}" contains invalid characters`)}}function multipartPolicy(){return{name:U,async sendRequest(e,t){if(!e.multipartBody){return t(e)}if(e.body){throw new Error("multipartBody and regular body cannot be set at the same time")}let o=e.multipartBody.boundary;const i=e.headers.get("Content-Type")??"multipart/mixed";const a=i.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!a){throw new Error(`Got multipart request body, but content-type header was not multipart: ${i}`)}const[,d,m]=a;if(m&&o&&m!==o){throw new Error(`Multipart boundary was specified as ${m} in the header, but got ${o} in the request body`)}o??=m;if(o){assertValidBoundary(o)}else{o=generateBoundary()}e.headers.set("Content-Type",`${d}; boundary=${o}`);await buildRequestBody(e,e.multipartBody.parts,o);e.multipartBody=void 0;return t(e)}}}0&&0},80067:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{getDefaultProxySettings:()=>getDefaultProxySettings,globalNoProxyList:()=>K,loadNoProxy:()=>loadNoProxy,proxyPolicy:()=>proxyPolicy,proxyPolicyName:()=>V});e.exports=__toCommonJS(f);var h=o(3669);var P=o(81970);var _=o(3644);const L="HTTPS_PROXY";const U="HTTP_PROXY";const j="ALL_PROXY";const H="NO_PROXY";const V="proxyPolicy";const K=[];let W=false;const X=new Map;function getEnvironmentValue(e){if(process.env[e]){return process.env[e]}else if(process.env[e.toLowerCase()]){return process.env[e.toLowerCase()]}return void 0}function loadEnvironmentProxyValue(){if(!process){return void 0}const e=getEnvironmentValue(L);const t=getEnvironmentValue(j);const o=getEnvironmentValue(U);return e||t||o}function isBypassed(e,t,o){if(t.length===0){return false}const i=new URL(e).hostname;if(o?.has(i)){return o.get(i)}let a=false;for(const e of t){if(e[0]==="."){if(i.endsWith(e)){a=true}else{if(i.length===e.length-1&&i===e.slice(1)){a=true}}}else{if(i===e){a=true}}}o?.set(i,a);return a}function loadNoProxy(){const e=getEnvironmentValue(H);W=true;if(e){return e.split(",").map((e=>e.trim())).filter((e=>e.length))}return[]}function getDefaultProxySettings(e){if(!e){e=loadEnvironmentProxyValue();if(!e){return void 0}}const t=new URL(e);const o=t.protocol?t.protocol+"//":"";return{host:o+t.hostname,port:Number.parseInt(t.port||"80"),username:t.username,password:t.password}}function getDefaultProxySettingsInternal(){const e=loadEnvironmentProxyValue();return e?new URL(e):void 0}function getUrlFromProxySettings(e){let t;try{t=new URL(e.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}t.port=String(e.port);if(e.username){t.username=e.username}if(e.password){t.password=e.password}return t}function setProxyAgentOnRequest(e,t,o){if(e.agent){return}const i=new URL(e.url);const a=i.protocol!=="https:";if(e.tlsSettings){_.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.")}if(a){if(!t.httpProxyAgent){t.httpProxyAgent=new P.HttpProxyAgent(o)}e.agent=t.httpProxyAgent}else{if(!t.httpsProxyAgent){t.httpsProxyAgent=new h.HttpsProxyAgent(o)}e.agent=t.httpsProxyAgent}}function proxyPolicy(e,t){if(!W){K.push(...loadNoProxy())}const o=e?getUrlFromProxySettings(e):getDefaultProxySettingsInternal();const i={};return{name:V,async sendRequest(e,a){if(!e.proxySettings&&o&&!isBypassed(e.url,t?.customNoProxyList??K,t?.customNoProxyList?void 0:X)){setProxyAgentOnRequest(e,i,o)}else if(e.proxySettings){setProxyAgentOnRequest(e,i,getUrlFromProxySettings(e.proxySettings))}return a(e)}}}0&&0},92187:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{redirectPolicy:()=>redirectPolicy,redirectPolicyName:()=>P});e.exports=__toCommonJS(f);var h=o(3644);const P="redirectPolicy";const _=["GET","HEAD"];function redirectPolicy(e={}){const{maxRetries:t=20,allowCrossOriginRedirects:o=false}=e;return{name:P,async sendRequest(e,i){const a=await i(e);return handleRedirect(i,a,t,o)}}}async function handleRedirect(e,t,o,i,a=0){const{request:d,status:m,headers:f}=t;const P=f.get("location");if(P&&(m===300||m===301&&_.includes(d.method)||m===302&&_.includes(d.method)||m===303&&d.method==="POST"||m===307)&&a<o){const f=new URL(P,d.url);if(!i){const e=new URL(d.url);if(f.origin!==e.origin){h.logger.verbose(`Skipping cross-origin redirect from ${e.origin} to ${f.origin}.`);return t}}d.url=f.toString();if(m===303){d.method="GET";d.headers.delete("Content-Length");delete d.body}d.headers.delete("Authorization");const _=await e(d);return handleRedirect(e,_,o,i,a+1)}return t}0&&0},43345:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{retryPolicy:()=>retryPolicy});e.exports=__toCommonJS(f);var h=o(77566);var P=o(9758);var _=o(99992);var L=o(18459);var U=o(31255);const j=(0,L.createClientLogger)("ts-http-runtime retryPolicy");const H="retryPolicy";function retryPolicy(e,t={maxRetries:U.DEFAULT_RETRY_POLICY_COUNT}){const o=t.logger||j;return{name:H,async sendRequest(i,a){let d;let m;let f=-1;e:while(true){f+=1;d=void 0;m=void 0;try{o.info(`Retry ${f}: Attempting to send request`,i.requestId);d=await a(i);o.info(`Retry ${f}: Received a response from request`,i.requestId)}catch(e){o.error(`Retry ${f}: Received an error from request`,i.requestId);if(!(0,P.isRestError)(e)){throw e}m=e;d=e.response}if(i.abortSignal?.aborted){o.error(`Retry ${f}: Request aborted.`);const e=new _.AbortError;throw e}if(f>=(t.maxRetries??U.DEFAULT_RETRY_POLICY_COUNT)){o.info(`Retry ${f}: Maximum retries reached. Returning the last received response, or throwing the last received error.`);if(m){throw m}else if(d){return d}else{throw new Error("Maximum retries reached with no response or error to throw")}}o.info(`Retry ${f}: Processing ${e.length} retry strategies.`);t:for(const t of e){const e=t.logger||o;e.info(`Retry ${f}: Processing retry strategy ${t.name}.`);const a=t.retry({retryCount:f,response:d,responseError:m});if(a.skipStrategy){e.info(`Retry ${f}: Skipped.`);continue t}const{errorToThrow:P,retryAfterInMs:_,redirectTo:L}=a;if(P){e.error(`Retry ${f}: Retry strategy ${t.name} throws error:`,P);throw P}if(_||_===0){e.info(`Retry ${f}: Retry strategy ${t.name} retries after ${_}`);await(0,h.delay)(_,void 0,{abortSignal:i.abortSignal});continue e}if(L){e.info(`Retry ${f}: Retry strategy ${t.name} redirects to ${L}`);i.url=L;continue e}}if(m){o.info(`None of the retry strategies could work with the received error. Throwing it.`);throw m}if(d){o.info(`None of the retry strategies could work with the received response. Returning it.`);return d}}}}}0&&0},92418:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{systemErrorRetryPolicy:()=>systemErrorRetryPolicy,systemErrorRetryPolicyName:()=>L});e.exports=__toCommonJS(f);var h=o(98102);var P=o(43345);var _=o(31255);const L="systemErrorRetryPolicy";function systemErrorRetryPolicy(e={}){return{name:L,sendRequest:(0,P.retryPolicy)([(0,h.exponentialRetryStrategy)({...e,ignoreHttpStatusCodes:true})],{maxRetries:e.maxRetries??_.DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}0&&0},24728:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{throttlingRetryPolicy:()=>throttlingRetryPolicy,throttlingRetryPolicyName:()=>L});e.exports=__toCommonJS(f);var h=o(21112);var P=o(43345);var _=o(31255);const L="throttlingRetryPolicy";function throttlingRetryPolicy(e={}){return{name:L,sendRequest:(0,P.retryPolicy)([(0,h.throttlingRetryStrategy)()],{maxRetries:e.maxRetries??_.DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}0&&0},96690:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{tlsPolicy:()=>tlsPolicy,tlsPolicyName:()=>m});e.exports=__toCommonJS(d);const m="tlsPolicy";function tlsPolicy(e){return{name:m,sendRequest:async(t,o)=>{if(!t.tlsSettings){t.tlsSettings=e}return o(t)}}}0&&0},91691:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{userAgentPolicy:()=>userAgentPolicy,userAgentPolicyName:()=>_});e.exports=__toCommonJS(f);var h=o(62731);const P=(0,h.getUserAgentHeaderName)();const _="userAgentPolicy";function userAgentPolicy(e={}){const t=(0,h.getUserAgentValue)(e.userAgentPrefix);return{name:_,async sendRequest(e,o){if(!e.headers.has(P)){e.headers.set(P,await t)}return o(e)}}}0&&0},9758:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{RestError:()=>RestError,isRestError:()=>isRestError});e.exports=__toCommonJS(f);var h=o(52573);var P=o(37639);var _=o(7784);const L=new _.Sanitizer;class RestError extends Error{static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(e,t={}){super(e);this.name="RestError";this.code=t.code;this.statusCode=t.statusCode;Object.defineProperty(this,"request",{value:t.request,enumerable:false});Object.defineProperty(this,"response",{value:t.response,enumerable:false});const o=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:void 0;Object.defineProperty(this,P.custom,{value:()=>`RestError: ${this.message} \n ${L.sanitize({...this,request:{...this.request,agent:o},response:this.response})}`,enumerable:false});Object.setPrototypeOf(this,RestError.prototype)}}function isRestError(e){if(e instanceof RestError){return true}return(0,h.isError)(e)&&e.name==="RestError"}0&&0},98102:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{exponentialRetryStrategy:()=>exponentialRetryStrategy,isExponentialRetryResponse:()=>isExponentialRetryResponse,isSystemError:()=>isSystemError});e.exports=__toCommonJS(f);var h=o(66776);var P=o(21112);const _=1e3;const L=1e3*64;function exponentialRetryStrategy(e={}){const t=e.retryDelayInMs??_;const o=e.maxRetryDelayInMs??L;return{name:"exponentialRetryStrategy",retry({retryCount:i,response:a,responseError:d}){const m=isSystemError(d);const f=m&&e.ignoreSystemErrors;const _=isExponentialRetryResponse(a);const L=_&&e.ignoreHttpStatusCodes;const U=a&&((0,P.isThrottlingRetryResponse)(a)||!_);if(U||L||f){return{skipStrategy:true}}if(d&&!m&&!_){return{errorToThrow:d}}return(0,h.calculateRetryDelay)(i,{retryDelayInMs:t,maxRetryDelayInMs:o})}}}function isExponentialRetryResponse(e){return Boolean(e&&e.status!==void 0&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function isSystemError(e){if(!e){return false}return e.code==="ETIMEDOUT"||e.code==="ESOCKETTIMEDOUT"||e.code==="ECONNREFUSED"||e.code==="ECONNRESET"||e.code==="ENOENT"||e.code==="ENOTFOUND"}0&&0},21112:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{isThrottlingRetryResponse:()=>isThrottlingRetryResponse,throttlingRetryStrategy:()=>throttlingRetryStrategy});e.exports=__toCommonJS(f);var h=o(77566);const P="Retry-After";const _=["retry-after-ms","x-ms-retry-after-ms",P];function getRetryAfterInMs(e){if(!(e&&[429,503].includes(e.status)))return void 0;try{for(const t of _){const o=(0,h.parseHeaderValueAsNumber)(e,t);if(o===0||o){const e=t===P?1e3:1;return o*e}}const t=e.headers.get(P);if(!t)return;const o=Date.parse(t);const i=o-Date.now();return Number.isFinite(i)?Math.max(0,i):void 0}catch{return void 0}}function isThrottlingRetryResponse(e){return Number.isFinite(getRetryAfterInMs(e))}function throttlingRetryStrategy(){return{name:"throttlingRetryStrategy",retry({response:e}){const t=getRetryAfterInMs(e);if(!Number.isFinite(t)){return{skipStrategy:true}}return{retryAfterInMs:t}}}}0&&0},82921:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{stringToUint8Array:()=>stringToUint8Array,uint8ArrayToString:()=>uint8ArrayToString});e.exports=__toCommonJS(d);function uint8ArrayToString(e,t){return Buffer.from(e).toString(t)}function stringToUint8Array(e,t){return Buffer.from(e,t)}0&&0},85086:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{isBrowser:()=>m,isBun:()=>P,isDeno:()=>h,isNodeLike:()=>_,isNodeRuntime:()=>L,isReactNative:()=>U,isWebWorker:()=>f});e.exports=__toCommonJS(d);const m=typeof window!=="undefined"&&typeof window.document!=="undefined";const f=typeof self==="object"&&typeof self?.importScripts==="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope");const h=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";const P=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";const _=typeof globalThis.process!=="undefined"&&Boolean(globalThis.process.version)&&Boolean(globalThis.process.versions?.node);const L=_&&!P&&!h;const U=typeof navigator!=="undefined"&&navigator?.product==="ReactNative";0&&0},20547:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{concat:()=>concat});e.exports=__toCommonJS(f);var h=o(2203);var P=o(48505);async function*streamAsyncIterator(){const e=this.getReader();try{while(true){const{done:t,value:o}=await e.read();if(t){return}yield o}}finally{e.releaseLock()}}function makeAsyncIterable(e){if(!e[Symbol.asyncIterator]){e[Symbol.asyncIterator]=streamAsyncIterator.bind(e)}if(!e.values){e.values=streamAsyncIterator.bind(e)}}function ensureNodeStream(e){if(e instanceof ReadableStream){makeAsyncIterable(e);return h.Readable.fromWeb(e)}else{return e}}function toStream(e){if(e instanceof Uint8Array){return h.Readable.from(Buffer.from(e))}else if((0,P.isBlob)(e)){return ensureNodeStream(e.stream())}else{return ensureNodeStream(e)}}async function concat(e){return function(){const t=e.map((e=>typeof e==="function"?e():e)).map(toStream);return h.Readable.from(async function*(){for(const e of t){for await(const t of e){yield t}}}())}}0&&0},66776:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{calculateRetryDelay:()=>calculateRetryDelay});e.exports=__toCommonJS(f);var h=o(78640);function calculateRetryDelay(e,t){const o=t.retryDelayInMs*Math.pow(2,e);const i=Math.min(t.maxRetryDelayInMs,o);const a=i/2+(0,h.getRandomIntegerInclusive)(0,i/2);return{retryAfterInMs:a}}0&&0},52573:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{isError:()=>isError});e.exports=__toCommonJS(f);var h=o(53632);function isError(e){if((0,h.isObject)(e)){const t=typeof e.name==="string";const o=typeof e.message==="string";return t&&o}return false}0&&0},77566:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{delay:()=>delay,parseHeaderValueAsNumber:()=>parseHeaderValueAsNumber});e.exports=__toCommonJS(f);var h=o(99992);const P="The operation was aborted.";function delay(e,t,o){return new Promise(((i,a)=>{let d=void 0;let m=void 0;const rejectOnAbort=()=>a(new h.AbortError(o?.abortErrorMsg?o?.abortErrorMsg:P));const removeListeners=()=>{if(o?.abortSignal&&m){o.abortSignal.removeEventListener("abort",m)}};m=()=>{if(d){clearTimeout(d)}removeListeners();return rejectOnAbort()};if(o?.abortSignal&&o.abortSignal.aborted){return rejectOnAbort()}d=setTimeout((()=>{removeListeners();i(t)}),e);if(o?.abortSignal){o.abortSignal.addEventListener("abort",m)}}))}function parseHeaderValueAsNumber(e,t){const o=e.headers.get(t);if(!o)return;const i=Number(o);if(Number.isNaN(i))return;return i}0&&0},37639:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{custom:()=>P});e.exports=__toCommonJS(f);var h=o(57975);const P=h.inspect.custom;0&&0},95750:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{Sanitizer:()=>K.Sanitizer,calculateRetryDelay:()=>h.calculateRetryDelay,computeSha256Hash:()=>U.computeSha256Hash,computeSha256Hmac:()=>U.computeSha256Hmac,getRandomIntegerInclusive:()=>P.getRandomIntegerInclusive,isBrowser:()=>H.isBrowser,isBun:()=>H.isBun,isDeno:()=>H.isDeno,isError:()=>L.isError,isNodeLike:()=>H.isNodeLike,isNodeRuntime:()=>H.isNodeRuntime,isObject:()=>_.isObject,isReactNative:()=>H.isReactNative,isWebWorker:()=>H.isWebWorker,randomUUID:()=>j.randomUUID,stringToUint8Array:()=>V.stringToUint8Array,uint8ArrayToString:()=>V.uint8ArrayToString});e.exports=__toCommonJS(f);var h=o(66776);var P=o(78640);var _=o(53632);var L=o(52573);var U=o(2016);var j=o(5023);var H=o(85086);var V=o(82921);var K=o(7784);0&&0},53632:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{isObject:()=>isObject});e.exports=__toCommonJS(d);function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}0&&0},78640:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{getRandomIntegerInclusive:()=>getRandomIntegerInclusive});e.exports=__toCommonJS(d);function getRandomIntegerInclusive(e,t){e=Math.ceil(e);t=Math.floor(t);const o=Math.floor(Math.random()*(t-e+1));return o+e}0&&0},7784:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{Sanitizer:()=>Sanitizer});e.exports=__toCommonJS(f);var h=o(53632);const P="REDACTED";const _=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"];const L=["api-version"];class Sanitizer{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=_.concat(e);t=L.concat(t);this.allowedHeaderNames=new Set(e.map((e=>e.toLowerCase())));this.allowedQueryParameters=new Set(t.map((e=>e.toLowerCase())))}sanitize(e){const t=new Set;return JSON.stringify(e,((e,o)=>{if(o instanceof Error){return{...o,name:o.name,message:o.message}}if(e==="headers"&&(0,h.isObject)(o)){return this.sanitizeHeaders(o)}else if(e==="url"&&typeof o==="string"){return this.sanitizeUrl(o)}else if(e==="query"&&(0,h.isObject)(o)){return this.sanitizeQuery(o)}else if(e==="body"){return void 0}else if(e==="response"){return void 0}else if(e==="operationSpec"){return void 0}else if(Array.isArray(o)||(0,h.isObject)(o)){if(t.has(o)){return"[Circular]"}t.add(o)}return o}),2)}sanitizeUrl(e){if(typeof e!=="string"||e===null||e===""){return e}const t=new URL(e);if(!t.search){return e}for(const[e]of t.searchParams){if(!this.allowedQueryParameters.has(e.toLowerCase())){t.searchParams.set(e,P)}}return t.toString()}sanitizeHeaders(e){const t={};for(const o of Object.keys(e)){if(this.allowedHeaderNames.has(o.toLowerCase())){t[o]=e[o]}else{t[o]=P}}return t}sanitizeQuery(e){if(typeof e!=="object"||e===null){return e}const t={};for(const o of Object.keys(e)){if(this.allowedQueryParameters.has(o.toLowerCase())){t[o]=e[o]}else{t[o]=P}}return t}}0&&0},2016:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{computeSha256Hash:()=>computeSha256Hash,computeSha256Hmac:()=>computeSha256Hmac});e.exports=__toCommonJS(f);var h=o(77598);async function computeSha256Hmac(e,t,o){const i=Buffer.from(e,"base64");return(0,h.createHmac)("sha256",i).update(t).digest(o)}async function computeSha256Hash(e,t){return(0,h.createHash)("sha256").update(e).digest(t)}0&&0},48505:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{isBinaryBody:()=>isBinaryBody,isBlob:()=>isBlob,isNodeReadableStream:()=>isNodeReadableStream,isReadableStream:()=>isReadableStream,isWebReadableStream:()=>isWebReadableStream});e.exports=__toCommonJS(d);function isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}function isWebReadableStream(e){return Boolean(e&&typeof e.getReader==="function"&&typeof e.tee==="function")}function isBinaryBody(e){return e!==void 0&&(e instanceof Uint8Array||isReadableStream(e)||typeof e==="function"||typeof Blob!=="undefined"&&e instanceof Blob)}function isReadableStream(e){return isNodeReadableStream(e)||isWebReadableStream(e)}function isBlob(e){return typeof Blob!=="undefined"&&e instanceof Blob}0&&0},62731:(e,t,o)=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let h of d(t))if(!m.call(e,h)&&h!==o)i(e,h,{get:()=>t[h],enumerable:!(f=a(t,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var f={};__export(f,{getUserAgentHeaderName:()=>getUserAgentHeaderName,getUserAgentValue:()=>getUserAgentValue});e.exports=__toCommonJS(f);var h=o(83196);var P=o(31255);function getUserAgentString(e){const t=[];for(const[o,i]of e){const e=i?`${o}/${i}`:o;t.push(e)}return t.join(" ")}function getUserAgentHeaderName(){return(0,h.getHeaderName)()}async function getUserAgentValue(e){const t=new Map;t.set("ts-http-runtime",P.SDK_VERSION);await(0,h.setPlatformSpecificData)(t);const o=getUserAgentString(t);const i=e?`${e} ${o}`:o;return i}0&&0},83196:(e,t,o)=>{var i=Object.create;var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var f=Object.getPrototypeOf;var h=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var o in t)a(e,o,{get:t[o],enumerable:true})};var __copyProps=(e,t,o,i)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let f of m(t))if(!h.call(e,f)&&f!==o)a(e,f,{get:()=>t[f],enumerable:!(i=d(t,f))||i.enumerable})}return e};var __toESM=(e,t,o)=>(o=e!=null?i(f(e)):{},__copyProps(t||!e||!e.__esModule?a(o,"default",{value:e,enumerable:true}):o,e));var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var P={};__export(P,{getHeaderName:()=>getHeaderName,setPlatformSpecificData:()=>setPlatformSpecificData});e.exports=__toCommonJS(P);var _=__toESM(o(48161));var L=__toESM(o(1708));function getHeaderName(){return"User-Agent"}async function setPlatformSpecificData(e){if(L.default&&L.default.versions){const t=`${_.default.type()} ${_.default.release()}; ${_.default.arch()}`;if(L.default.versions.bun){e.set("Bun",`${L.default.versions.bun} (${t})`)}else if(L.default.versions.deno){e.set("Deno",`${L.default.versions.deno} (${t})`)}else if(L.default.versions.node){e.set("Node",`${L.default.versions.node} (${t})`)}}}0&&0},5023:e=>{var t=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,o)=>{for(var i in o)t(e,i,{get:o[i],enumerable:true})};var __copyProps=(e,d,m,f)=>{if(d&&typeof d==="object"||typeof d==="function"){for(let h of i(d))if(!a.call(e,h)&&h!==m)t(e,h,{get:()=>d[h],enumerable:!(f=o(d,h))||f.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var d={};__export(d,{randomUUID:()=>randomUUID});e.exports=__toCommonJS(d);function randomUUID(){return crypto.randomUUID()}0&&0},80477:()=>{
|
|
3
|
+
/*! *****************************************************************************
|
|
4
|
+
Copyright (C) Microsoft. All rights reserved.
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
6
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
7
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
10
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
11
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
12
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
13
|
+
|
|
14
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
15
|
+
and limitations under the License.
|
|
16
|
+
***************************************************************************** */
|
|
17
|
+
var e;(function(e){(function(t){var o=typeof globalThis==="object"?globalThis:typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:sloppyModeThis();var i=makeExporter(e);if(typeof o.Reflect!=="undefined"){i=makeExporter(o.Reflect,i)}t(i,o);if(typeof o.Reflect==="undefined"){o.Reflect=e}function makeExporter(e,t){return function(o,i){Object.defineProperty(e,o,{configurable:true,writable:true,value:i});if(t)t(o,i)}}function functionThis(){try{return Function("return this;")()}catch(e){}}function indirectEvalThis(){try{return(void 0,eval)("(function() { return this; })()")}catch(e){}}function sloppyModeThis(){return functionThis()||indirectEvalThis()}})((function(e,t){var o=Object.prototype.hasOwnProperty;var i=typeof Symbol==="function";var a=i&&typeof Symbol.toPrimitive!=="undefined"?Symbol.toPrimitive:"@@toPrimitive";var d=i&&typeof Symbol.iterator!=="undefined"?Symbol.iterator:"@@iterator";var m=typeof Object.create==="function";var f={__proto__:[]}instanceof Array;var h=!m&&!f;var P={create:m?function(){return MakeDictionary(Object.create(null))}:f?function(){return MakeDictionary({__proto__:null})}:function(){return MakeDictionary({})},has:h?function(e,t){return o.call(e,t)}:function(e,t){return t in e},get:h?function(e,t){return o.call(e,t)?e[t]:undefined}:function(e,t){return e[t]}};var _=Object.getPrototypeOf(Function);var L=typeof Map==="function"&&typeof Map.prototype.entries==="function"?Map:CreateMapPolyfill();var U=typeof Set==="function"&&typeof Set.prototype.entries==="function"?Set:CreateSetPolyfill();var j=typeof WeakMap==="function"?WeakMap:CreateWeakMapPolyfill();var H=i?Symbol.for("@reflect-metadata:registry"):undefined;var V=GetOrCreateMetadataRegistry();var K=CreateMetadataProvider(V);function decorate(e,t,o,i){if(!IsUndefined(o)){if(!IsArray(e))throw new TypeError;if(!IsObject(t))throw new TypeError;if(!IsObject(i)&&!IsUndefined(i)&&!IsNull(i))throw new TypeError;if(IsNull(i))i=undefined;o=ToPropertyKey(o);return DecorateProperty(e,t,o,i)}else{if(!IsArray(e))throw new TypeError;if(!IsConstructor(t))throw new TypeError;return DecorateConstructor(e,t)}}e("decorate",decorate);function metadata(e,t){function decorator(o,i){if(!IsObject(o))throw new TypeError;if(!IsUndefined(i)&&!IsPropertyKey(i))throw new TypeError;OrdinaryDefineOwnMetadata(e,t,o,i)}return decorator}e("metadata",metadata);function defineMetadata(e,t,o,i){if(!IsObject(o))throw new TypeError;if(!IsUndefined(i))i=ToPropertyKey(i);return OrdinaryDefineOwnMetadata(e,t,o,i)}e("defineMetadata",defineMetadata);function hasMetadata(e,t,o){if(!IsObject(t))throw new TypeError;if(!IsUndefined(o))o=ToPropertyKey(o);return OrdinaryHasMetadata(e,t,o)}e("hasMetadata",hasMetadata);function hasOwnMetadata(e,t,o){if(!IsObject(t))throw new TypeError;if(!IsUndefined(o))o=ToPropertyKey(o);return OrdinaryHasOwnMetadata(e,t,o)}e("hasOwnMetadata",hasOwnMetadata);function getMetadata(e,t,o){if(!IsObject(t))throw new TypeError;if(!IsUndefined(o))o=ToPropertyKey(o);return OrdinaryGetMetadata(e,t,o)}e("getMetadata",getMetadata);function getOwnMetadata(e,t,o){if(!IsObject(t))throw new TypeError;if(!IsUndefined(o))o=ToPropertyKey(o);return OrdinaryGetOwnMetadata(e,t,o)}e("getOwnMetadata",getOwnMetadata);function getMetadataKeys(e,t){if(!IsObject(e))throw new TypeError;if(!IsUndefined(t))t=ToPropertyKey(t);return OrdinaryMetadataKeys(e,t)}e("getMetadataKeys",getMetadataKeys);function getOwnMetadataKeys(e,t){if(!IsObject(e))throw new TypeError;if(!IsUndefined(t))t=ToPropertyKey(t);return OrdinaryOwnMetadataKeys(e,t)}e("getOwnMetadataKeys",getOwnMetadataKeys);function deleteMetadata(e,t,o){if(!IsObject(t))throw new TypeError;if(!IsUndefined(o))o=ToPropertyKey(o);if(!IsObject(t))throw new TypeError;if(!IsUndefined(o))o=ToPropertyKey(o);var i=GetMetadataProvider(t,o,false);if(IsUndefined(i))return false;return i.OrdinaryDeleteMetadata(e,t,o)}e("deleteMetadata",deleteMetadata);function DecorateConstructor(e,t){for(var o=e.length-1;o>=0;--o){var i=e[o];var a=i(t);if(!IsUndefined(a)&&!IsNull(a)){if(!IsConstructor(a))throw new TypeError;t=a}}return t}function DecorateProperty(e,t,o,i){for(var a=e.length-1;a>=0;--a){var d=e[a];var m=d(t,o,i);if(!IsUndefined(m)&&!IsNull(m)){if(!IsObject(m))throw new TypeError;i=m}}return i}function OrdinaryHasMetadata(e,t,o){var i=OrdinaryHasOwnMetadata(e,t,o);if(i)return true;var a=OrdinaryGetPrototypeOf(t);if(!IsNull(a))return OrdinaryHasMetadata(e,a,o);return false}function OrdinaryHasOwnMetadata(e,t,o){var i=GetMetadataProvider(t,o,false);if(IsUndefined(i))return false;return ToBoolean(i.OrdinaryHasOwnMetadata(e,t,o))}function OrdinaryGetMetadata(e,t,o){var i=OrdinaryHasOwnMetadata(e,t,o);if(i)return OrdinaryGetOwnMetadata(e,t,o);var a=OrdinaryGetPrototypeOf(t);if(!IsNull(a))return OrdinaryGetMetadata(e,a,o);return undefined}function OrdinaryGetOwnMetadata(e,t,o){var i=GetMetadataProvider(t,o,false);if(IsUndefined(i))return;return i.OrdinaryGetOwnMetadata(e,t,o)}function OrdinaryDefineOwnMetadata(e,t,o,i){var a=GetMetadataProvider(o,i,true);a.OrdinaryDefineOwnMetadata(e,t,o,i)}function OrdinaryMetadataKeys(e,t){var o=OrdinaryOwnMetadataKeys(e,t);var i=OrdinaryGetPrototypeOf(e);if(i===null)return o;var a=OrdinaryMetadataKeys(i,t);if(a.length<=0)return o;if(o.length<=0)return a;var d=new U;var m=[];for(var f=0,h=o;f<h.length;f++){var P=h[f];var _=d.has(P);if(!_){d.add(P);m.push(P)}}for(var L=0,j=a;L<j.length;L++){var P=j[L];var _=d.has(P);if(!_){d.add(P);m.push(P)}}return m}function OrdinaryOwnMetadataKeys(e,t){var o=GetMetadataProvider(e,t,false);if(!o){return[]}return o.OrdinaryOwnMetadataKeys(e,t)}function Type(e){if(e===null)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return e===null?1:6;default:return 6}}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsSymbol(e){return typeof e==="symbol"}function IsObject(e){return typeof e==="object"?e!==null:typeof e==="function"}function ToPrimitive(e,t){switch(Type(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e}var o=t===3?"string":t===5?"number":"default";var i=GetMethod(e,a);if(i!==undefined){var d=i.call(e,o);if(IsObject(d))throw new TypeError;return d}return OrdinaryToPrimitive(e,o==="default"?"number":o)}function OrdinaryToPrimitive(e,t){if(t==="string"){var o=e.toString;if(IsCallable(o)){var i=o.call(e);if(!IsObject(i))return i}var a=e.valueOf;if(IsCallable(a)){var i=a.call(e);if(!IsObject(i))return i}}else{var a=e.valueOf;if(IsCallable(a)){var i=a.call(e);if(!IsObject(i))return i}var d=e.toString;if(IsCallable(d)){var i=d.call(e);if(!IsObject(i))return i}}throw new TypeError}function ToBoolean(e){return!!e}function ToString(e){return""+e}function ToPropertyKey(e){var t=ToPrimitive(e,3);if(IsSymbol(t))return t;return ToString(t)}function IsArray(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:Object.prototype.toString.call(e)==="[object Array]"}function IsCallable(e){return typeof e==="function"}function IsConstructor(e){return typeof e==="function"}function IsPropertyKey(e){switch(Type(e)){case 3:return true;case 4:return true;default:return false}}function SameValueZero(e,t){return e===t||e!==e&&t!==t}function GetMethod(e,t){var o=e[t];if(o===undefined||o===null)return undefined;if(!IsCallable(o))throw new TypeError;return o}function GetIterator(e){var t=GetMethod(e,d);if(!IsCallable(t))throw new TypeError;var o=t.call(e);if(!IsObject(o))throw new TypeError;return o}function IteratorValue(e){return e.value}function IteratorStep(e){var t=e.next();return t.done?false:t}function IteratorClose(e){var t=e["return"];if(t)t.call(e)}function OrdinaryGetPrototypeOf(e){var t=Object.getPrototypeOf(e);if(typeof e!=="function"||e===_)return t;if(t!==_)return t;var o=e.prototype;var i=o&&Object.getPrototypeOf(o);if(i==null||i===Object.prototype)return t;var a=i.constructor;if(typeof a!=="function")return t;if(a===e)return t;return a}function CreateMetadataRegistry(){var e;if(!IsUndefined(H)&&typeof t.Reflect!=="undefined"&&!(H in t.Reflect)&&typeof t.Reflect.defineMetadata==="function"){e=CreateFallbackProvider(t.Reflect)}var o;var i;var a;var d=new j;var m={registerProvider:registerProvider,getProvider:getProvider,setProvider:setProvider};return m;function registerProvider(t){if(!Object.isExtensible(m)){throw new Error("Cannot add provider to a frozen registry.")}switch(true){case e===t:break;case IsUndefined(o):o=t;break;case o===t:break;case IsUndefined(i):i=t;break;case i===t:break;default:if(a===undefined)a=new U;a.add(t);break}}function getProviderNoCache(t,d){if(!IsUndefined(o)){if(o.isProviderFor(t,d))return o;if(!IsUndefined(i)){if(i.isProviderFor(t,d))return o;if(!IsUndefined(a)){var m=GetIterator(a);while(true){var f=IteratorStep(m);if(!f){return undefined}var h=IteratorValue(f);if(h.isProviderFor(t,d)){IteratorClose(m);return h}}}}}if(!IsUndefined(e)&&e.isProviderFor(t,d)){return e}return undefined}function getProvider(e,t){var o=d.get(e);var i;if(!IsUndefined(o)){i=o.get(t)}if(!IsUndefined(i)){return i}i=getProviderNoCache(e,t);if(!IsUndefined(i)){if(IsUndefined(o)){o=new L;d.set(e,o)}o.set(t,i)}return i}function hasProvider(e){if(IsUndefined(e))throw new TypeError;return o===e||i===e||!IsUndefined(a)&&a.has(e)}function setProvider(e,t,o){if(!hasProvider(o)){throw new Error("Metadata provider not registered.")}var i=getProvider(e,t);if(i!==o){if(!IsUndefined(i)){return false}var a=d.get(e);if(IsUndefined(a)){a=new L;d.set(e,a)}a.set(t,o)}return true}}function GetOrCreateMetadataRegistry(){var e;if(!IsUndefined(H)&&IsObject(t.Reflect)&&Object.isExtensible(t.Reflect)){e=t.Reflect[H]}if(IsUndefined(e)){e=CreateMetadataRegistry()}if(!IsUndefined(H)&&IsObject(t.Reflect)&&Object.isExtensible(t.Reflect)){Object.defineProperty(t.Reflect,H,{enumerable:false,configurable:false,writable:false,value:e})}return e}function CreateMetadataProvider(e){var t=new j;var o={isProviderFor:function(e,o){var i=t.get(e);if(IsUndefined(i))return false;return i.has(o)},OrdinaryDefineOwnMetadata:OrdinaryDefineOwnMetadata,OrdinaryHasOwnMetadata:OrdinaryHasOwnMetadata,OrdinaryGetOwnMetadata:OrdinaryGetOwnMetadata,OrdinaryOwnMetadataKeys:OrdinaryOwnMetadataKeys,OrdinaryDeleteMetadata:OrdinaryDeleteMetadata};V.registerProvider(o);return o;function GetOrCreateMetadataMap(i,a,d){var m=t.get(i);var f=false;if(IsUndefined(m)){if(!d)return undefined;m=new L;t.set(i,m);f=true}var h=m.get(a);if(IsUndefined(h)){if(!d)return undefined;h=new L;m.set(a,h);if(!e.setProvider(i,a,o)){m.delete(a);if(f){t.delete(i)}throw new Error("Wrong provider for target.")}}return h}function OrdinaryHasOwnMetadata(e,t,o){var i=GetOrCreateMetadataMap(t,o,false);if(IsUndefined(i))return false;return ToBoolean(i.has(e))}function OrdinaryGetOwnMetadata(e,t,o){var i=GetOrCreateMetadataMap(t,o,false);if(IsUndefined(i))return undefined;return i.get(e)}function OrdinaryDefineOwnMetadata(e,t,o,i){var a=GetOrCreateMetadataMap(o,i,true);a.set(e,t)}function OrdinaryOwnMetadataKeys(e,t){var o=[];var i=GetOrCreateMetadataMap(e,t,false);if(IsUndefined(i))return o;var a=i.keys();var d=GetIterator(a);var m=0;while(true){var f=IteratorStep(d);if(!f){o.length=m;return o}var h=IteratorValue(f);try{o[m]=h}catch(e){try{IteratorClose(d)}finally{throw e}}m++}}function OrdinaryDeleteMetadata(e,o,i){var a=GetOrCreateMetadataMap(o,i,false);if(IsUndefined(a))return false;if(!a.delete(e))return false;if(a.size===0){var d=t.get(o);if(!IsUndefined(d)){d.delete(i);if(d.size===0){t.delete(d)}}}return true}}function CreateFallbackProvider(e){var t=e.defineMetadata,o=e.hasOwnMetadata,i=e.getOwnMetadata,a=e.getOwnMetadataKeys,d=e.deleteMetadata;var m=new j;var f={isProviderFor:function(e,t){var o=m.get(e);if(!IsUndefined(o)&&o.has(t)){return true}if(a(e,t).length){if(IsUndefined(o)){o=new U;m.set(e,o)}o.add(t);return true}return false},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:o,OrdinaryGetOwnMetadata:i,OrdinaryOwnMetadataKeys:a,OrdinaryDeleteMetadata:d};return f}function GetMetadataProvider(e,t,o){var i=V.getProvider(e,t);if(!IsUndefined(i)){return i}if(o){if(V.setProvider(e,t,K)){return K}throw new Error("Illegal state.")}return undefined}function CreateMapPolyfill(){var e={};var t=[];var o=function(){function MapIterator(e,t,o){this._index=0;this._keys=e;this._values=t;this._selector=o}MapIterator.prototype["@@iterator"]=function(){return this};MapIterator.prototype[d]=function(){return this};MapIterator.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var o=this._selector(this._keys[e],this._values[e]);if(e+1>=this._keys.length){this._index=-1;this._keys=t;this._values=t}else{this._index++}return{value:o,done:false}}return{value:undefined,done:true}};MapIterator.prototype.throw=function(e){if(this._index>=0){this._index=-1;this._keys=t;this._values=t}throw e};MapIterator.prototype.return=function(e){if(this._index>=0){this._index=-1;this._keys=t;this._values=t}return{value:e,done:true}};return MapIterator}();var i=function(){function Map(){this._keys=[];this._values=[];this._cacheKey=e;this._cacheIndex=-2}Object.defineProperty(Map.prototype,"size",{get:function(){return this._keys.length},enumerable:true,configurable:true});Map.prototype.has=function(e){return this._find(e,false)>=0};Map.prototype.get=function(e){var t=this._find(e,false);return t>=0?this._values[t]:undefined};Map.prototype.set=function(e,t){var o=this._find(e,true);this._values[o]=t;return this};Map.prototype.delete=function(t){var o=this._find(t,false);if(o>=0){var i=this._keys.length;for(var a=o+1;a<i;a++){this._keys[a-1]=this._keys[a];this._values[a-1]=this._values[a]}this._keys.length--;this._values.length--;if(SameValueZero(t,this._cacheKey)){this._cacheKey=e;this._cacheIndex=-2}return true}return false};Map.prototype.clear=function(){this._keys.length=0;this._values.length=0;this._cacheKey=e;this._cacheIndex=-2};Map.prototype.keys=function(){return new o(this._keys,this._values,getKey)};Map.prototype.values=function(){return new o(this._keys,this._values,getValue)};Map.prototype.entries=function(){return new o(this._keys,this._values,getEntry)};Map.prototype["@@iterator"]=function(){return this.entries()};Map.prototype[d]=function(){return this.entries()};Map.prototype._find=function(e,t){if(!SameValueZero(this._cacheKey,e)){this._cacheIndex=-1;for(var o=0;o<this._keys.length;o++){if(SameValueZero(this._keys[o],e)){this._cacheIndex=o;break}}}if(this._cacheIndex<0&&t){this._cacheIndex=this._keys.length;this._keys.push(e);this._values.push(undefined)}return this._cacheIndex};return Map}();return i;function getKey(e,t){return e}function getValue(e,t){return t}function getEntry(e,t){return[e,t]}}function CreateSetPolyfill(){var e=function(){function Set(){this._map=new L}Object.defineProperty(Set.prototype,"size",{get:function(){return this._map.size},enumerable:true,configurable:true});Set.prototype.has=function(e){return this._map.has(e)};Set.prototype.add=function(e){return this._map.set(e,e),this};Set.prototype.delete=function(e){return this._map.delete(e)};Set.prototype.clear=function(){this._map.clear()};Set.prototype.keys=function(){return this._map.keys()};Set.prototype.values=function(){return this._map.keys()};Set.prototype.entries=function(){return this._map.entries()};Set.prototype["@@iterator"]=function(){return this.keys()};Set.prototype[d]=function(){return this.keys()};return Set}();return e}function CreateWeakMapPolyfill(){var e=16;var t=P.create();var i=CreateUniqueKey();return function(){function WeakMap(){this._key=CreateUniqueKey()}WeakMap.prototype.has=function(e){var t=GetOrCreateWeakMapTable(e,false);return t!==undefined?P.has(t,this._key):false};WeakMap.prototype.get=function(e){var t=GetOrCreateWeakMapTable(e,false);return t!==undefined?P.get(t,this._key):undefined};WeakMap.prototype.set=function(e,t){var o=GetOrCreateWeakMapTable(e,true);o[this._key]=t;return this};WeakMap.prototype.delete=function(e){var t=GetOrCreateWeakMapTable(e,false);return t!==undefined?delete t[this._key]:false};WeakMap.prototype.clear=function(){this._key=CreateUniqueKey()};return WeakMap}();function CreateUniqueKey(){var e;do{e="@@WeakMap@@"+CreateUUID()}while(P.has(t,e));t[e]=true;return e}function GetOrCreateWeakMapTable(e,t){if(!o.call(e,i)){if(!t)return undefined;Object.defineProperty(e,i,{value:P.create()})}return e[i]}function FillRandomBytes(e,t){for(var o=0;o<t;++o)e[o]=Math.random()*255|0;return e}function GenRandomBytes(e){if(typeof Uint8Array==="function"){var t=new Uint8Array(e);if(typeof crypto!=="undefined"){crypto.getRandomValues(t)}else if(typeof msCrypto!=="undefined"){msCrypto.getRandomValues(t)}else{FillRandomBytes(t,e)}return t}return FillRandomBytes(new Array(e),e)}function CreateUUID(){var t=GenRandomBytes(e);t[6]=t[6]&79|64;t[8]=t[8]&191|128;var o="";for(var i=0;i<e;++i){var a=t[i];if(i===4||i===6||i===8)o+="-";if(a<16)o+="0";o+=a.toString(16).toLowerCase()}return o}}function MakeDictionary(e){e.__=undefined;delete e.__;return e}}))})(e||(e={}))},50591:e=>{(()=>{"use strict";var t={d:(e,o)=>{for(var i in o)t.o(o,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:o[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};t.r(o),t.d(o,{XMLBuilder:()=>se,XMLParser:()=>Tt,XMLValidator:()=>ae});const i=":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",a=new RegExp("^["+i+"]["+i+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function s(e,t){const o=[];let i=t.exec(e);for(;i;){const a=[];a.startIndex=t.lastIndex-i[0].length;const d=i.length;for(let e=0;e<d;e++)a.push(i[e]);o.push(a),i=t.exec(e)}return o}const r=function(e){return!(null==a.exec(e))},d=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],m=["__proto__","constructor","prototype"],f={allowBooleanAttributes:!1,unpairedTags:[]};function l(e,t){t=Object.assign({},f,t);const o=[];let i=!1,a=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let d=0;d<e.length;d++)if("<"===e[d]&&"?"===e[d+1]){if(d+=2,d=p(e,d),d.err)return d}else{if("<"!==e[d]){if(u(e[d]))continue;return b("InvalidChar","char '"+e[d]+"' is not expected.",w(e,d))}{let m=d;if(d++,"!"===e[d]){d=c(e,d);continue}{let f=!1;"/"===e[d]&&(f=!0,d++);let h="";for(;d<e.length&&">"!==e[d]&&" "!==e[d]&&"\t"!==e[d]&&"\n"!==e[d]&&"\r"!==e[d];d++)h+=e[d];if(h=h.trim(),"/"===h[h.length-1]&&(h=h.substring(0,h.length-1),d--),!E(h)){let t;return t=0===h.trim().length?"Invalid space after '<'.":"Tag '"+h+"' is an invalid name.",b("InvalidTag",t,w(e,d))}const P=g(e,d);if(!1===P)return b("InvalidAttr","Attributes for '"+h+"' have open quote.",w(e,d));let _=P.value;if(d=P.index,"/"===_[_.length-1]){const o=d-_.length;_=_.substring(0,_.length-1);const a=x(_,t);if(!0!==a)return b(a.err.code,a.err.msg,w(e,o+a.err.line));i=!0}else if(f){if(!P.tagClosed)return b("InvalidTag","Closing tag '"+h+"' doesn't have proper closing.",w(e,d));if(_.trim().length>0)return b("InvalidTag","Closing tag '"+h+"' can't have attributes or invalid starting.",w(e,m));if(0===o.length)return b("InvalidTag","Closing tag '"+h+"' has not been opened.",w(e,m));{const t=o.pop();if(h!==t.tagName){let o=w(e,t.tagStartPos);return b("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+o.line+", col "+o.col+") instead of closing tag '"+h+"'.",w(e,m))}0==o.length&&(a=!0)}}else{const f=x(_,t);if(!0!==f)return b(f.err.code,f.err.msg,w(e,d-_.length+f.err.line));if(!0===a)return b("InvalidXml","Multiple possible root nodes found.",w(e,d));-1!==t.unpairedTags.indexOf(h)||o.push({tagName:h,tagStartPos:m}),i=!0}for(d++;d<e.length;d++)if("<"===e[d]){if("!"===e[d+1]){d++,d=c(e,d);continue}if("?"!==e[d+1])break;if(d=p(e,++d),d.err)return d}else if("&"===e[d]){const t=N(e,d);if(-1==t)return b("InvalidChar","char '&' is not expected.",w(e,d));d=t}else if(!0===a&&!u(e[d]))return b("InvalidXml","Extra text at the end",w(e,d));"<"===e[d]&&d--}}}return i?1==o.length?b("InvalidTag","Unclosed tag '"+o[0].tagName+"'.",w(e,o[0].tagStartPos)):!(o.length>0)||b("InvalidXml","Invalid '"+JSON.stringify(o.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):b("InvalidXml","Start tag expected.",1)}function u(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function p(e,t){const o=t;for(;t<e.length;t++)if("?"==e[t]||" "==e[t]){const i=e.substr(o,t-o);if(t>5&&"xml"===i)return b("InvalidXml","XML declaration allowed only at the start of the document.",w(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}continue}return t}function c(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let o=1;for(t+=8;t<e.length;t++)if("<"===e[t])o++;else if(">"===e[t]&&(o--,0===o))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}const h='"',P="'";function g(e,t){let o="",i="",a=!1;for(;t<e.length;t++){if(e[t]===h||e[t]===P)""===i?i=e[t]:i!==e[t]||(i="");else if(">"===e[t]&&""===i){a=!0;break}o+=e[t]}return""===i&&{value:o,index:t,tagClosed:a}}const _=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function x(e,t){const o=s(e,_),i={};for(let e=0;e<o.length;e++){if(0===o[e][1].length)return b("InvalidAttr","Attribute '"+o[e][2]+"' has no space in starting.",v(o[e]));if(void 0!==o[e][3]&&void 0===o[e][4])return b("InvalidAttr","Attribute '"+o[e][2]+"' is without value.",v(o[e]));if(void 0===o[e][3]&&!t.allowBooleanAttributes)return b("InvalidAttr","boolean attribute '"+o[e][2]+"' is not allowed.",v(o[e]));const a=o[e][2];if(!y(a))return b("InvalidAttr","Attribute '"+a+"' is an invalid name.",v(o[e]));if(Object.prototype.hasOwnProperty.call(i,a))return b("InvalidAttr","Attribute '"+a+"' is repeated.",v(o[e]));i[a]=1}return!0}function N(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let o=/\d/;for("x"===e[t]&&(t++,o=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(o))break}return-1}(e,++t);let o=0;for(;t<e.length;t++,o++)if(!(e[t].match(/\w/)&&o<20)){if(";"===e[t])break;return-1}return t}function b(e,t,o){return{err:{code:e,msg:t,line:o.line||o,col:o.col}}}function y(e){return r(e)}function E(e){return r(e)}function w(e,t){const o=e.substring(0,t).split(/\r?\n/);return{line:o.length,col:o[o.length-1].length+1}}function v(e){return e.startIndex+e[1].length}const S=e=>d.includes(e)?"__"+e:e,L={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:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,o){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:S};function A(e,t){if("string"!=typeof e)return;const o=e.toLowerCase();if(d.some((e=>o===e.toLowerCase())))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);if(m.some((e=>o===e.toLowerCase())))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function T(e,t){return"boolean"==typeof e?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:"object"==typeof e&&null!==e?{enabled:!1!==e.enabled,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??"all"}:T(!0)}const C=function(e){const t=Object.assign({},L,e),o=[{value:t.attributeNamePrefix,name:"attributeNamePrefix"},{value:t.attributesGroupName,name:"attributesGroupName"},{value:t.textNodeName,name:"textNodeName"},{value:t.cdataPropName,name:"cdataPropName"},{value:t.commentPropName,name:"commentPropName"}];for(const{value:e,name:t}of o)e&&A(e,t);return null===t.onDangerousProperty&&(t.onDangerousProperty=S),t.processEntities=T(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map((e=>"string"==typeof e&&e.startsWith("*.")?".."+e.substring(2):e))),t};let U;U="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class O{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e,t){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),void 0!==t&&(this.child[this.child.length-1][U]={startIndex:t})}static getMetaDataSymbol(){return U}}class ${constructor(e){this.suppressValidationErr=!e,this.options=e}readDocType(e,t){const o=Object.create(null);let i=0;if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let a=1,d=!1,m=!1,f="";for(;t<e.length;t++)if("<"!==e[t]||m)if(">"===e[t]){if(m?"-"===e[t-1]&&"-"===e[t-2]&&(m=!1,a--):a--,0===a)break}else"["===e[t]?d=!0:f+=e[t];else{if(d&&D(e,"!ENTITY",t)){let a,d;if(t+=7,[a,d,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),-1===d.indexOf("&")){if(!1!==this.options.enabled&&null!=this.options.maxEntityCount&&i>=this.options.maxEntityCount)throw new Error(`Entity count (${i+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);o[a]=d,i++}}else if(d&&D(e,"!ELEMENT",t)){t+=8;const{index:o}=this.readElementExp(e,t+1);t=o}else if(d&&D(e,"!ATTLIST",t))t+=8;else if(d&&D(e,"!NOTATION",t)){t+=9;const{index:o}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=o}else{if(!D(e,"!--",t))throw new Error("Invalid DOCTYPE");m=!0}a++,f=""}if(0!==a)throw new Error("Unclosed DOCTYPE")}return{entities:o,i:t}}readEntityExp(e,t){const o=t=I(e,t);for(;t<e.length&&!/\s/.test(e[t])&&'"'!==e[t]&&"'"!==e[t];)t++;let i=e.substring(o,t);if(M(i),t=I(e,t),!this.suppressValidationErr){if("SYSTEM"===e.substring(t,t+6).toUpperCase())throw new Error("External entities are not supported");if("%"===e[t])throw new Error("Parameter entities are not supported")}let a="";if([t,a]=this.readIdentifierVal(e,t,"entity"),!1!==this.options.enabled&&null!=this.options.maxEntitySize&&a.length>this.options.maxEntitySize)throw new Error(`Entity "${i}" size (${a.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[i,a,--t]}readNotationExp(e,t){const o=t=I(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(o,t);!this.suppressValidationErr&&M(i),t=I(e,t);const a=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&"SYSTEM"!==a&&"PUBLIC"!==a)throw new Error(`Expected SYSTEM or PUBLIC, found "${a}"`);t+=a.length,t=I(e,t);let d=null,m=null;if("PUBLIC"===a)[t,d]=this.readIdentifierVal(e,t,"publicIdentifier"),'"'!==e[t=I(e,t)]&&"'"!==e[t]||([t,m]=this.readIdentifierVal(e,t,"systemIdentifier"));else if("SYSTEM"===a&&([t,m]=this.readIdentifierVal(e,t,"systemIdentifier"),!this.suppressValidationErr&&!m))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:i,publicIdentifier:d,systemIdentifier:m,index:--t}}readIdentifierVal(e,t,o){let i="";const a=e[t];if('"'!==a&&"'"!==a)throw new Error(`Expected quoted string, found "${a}"`);const d=++t;for(;t<e.length&&e[t]!==a;)t++;if(i=e.substring(d,t),e[t]!==a)throw new Error(`Unterminated ${o} value`);return[++t,i]}readElementExp(e,t){const o=t=I(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(o,t);if(!this.suppressValidationErr&&!r(i))throw new Error(`Invalid element name: "${i}"`);let a="";if("E"===e[t=I(e,t)]&&D(e,"MPTY",t))t+=4;else if("A"===e[t]&&D(e,"NY",t))t+=2;else if("("===e[t]){const o=++t;for(;t<e.length&&")"!==e[t];)t++;if(a=e.substring(o,t),")"!==e[t])throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:i,contentModel:a.trim(),index:t}}readAttlistExp(e,t){let o=t=I(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(o,t);for(M(i),o=t=I(e,t);t<e.length&&!/\s/.test(e[t]);)t++;let a=e.substring(o,t);if(!M(a))throw new Error(`Invalid attribute name: "${a}"`);t=I(e,t);let d="";if("NOTATION"===e.substring(t,t+8).toUpperCase()){if(d="NOTATION","("!==e[t=I(e,t+=8)])throw new Error(`Expected '(', found "${e[t]}"`);t++;let o=[];for(;t<e.length&&")"!==e[t];){const i=t;for(;t<e.length&&"|"!==e[t]&&")"!==e[t];)t++;let a=e.substring(i,t);if(a=a.trim(),!M(a))throw new Error(`Invalid notation name: "${a}"`);o.push(a),"|"===e[t]&&(t++,t=I(e,t))}if(")"!==e[t])throw new Error("Unterminated list of notations");t++,d+=" ("+o.join("|")+")"}else{const o=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;d+=e.substring(o,t);const i=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!i.includes(d.toUpperCase()))throw new Error(`Invalid attribute type: "${d}"`)}t=I(e,t);let m="";return"#REQUIRED"===e.substring(t,t+8).toUpperCase()?(m="#REQUIRED",t+=8):"#IMPLIED"===e.substring(t,t+7).toUpperCase()?(m="#IMPLIED",t+=7):[t,m]=this.readIdentifierVal(e,t,"ATTLIST"),{elementName:i,attributeName:a,attributeType:d,defaultValue:m,index:t}}}const I=(e,t)=>{for(;t<e.length&&/\s/.test(e[t]);)t++;return t};function D(e,t,o){for(let i=0;i<t.length;i++)if(t[i]!==e[o+i+1])return!1;return!0}function M(e){if(r(e))return e;throw new Error(`Invalid entity name ${e}`)}const j=/^[-+]?0x[a-fA-F0-9]+$/,H=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,V={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original"};const K=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;class F{constructor(e){this._matcher=e}get separator(){return this._matcher.separator}getCurrentTag(){const e=this._matcher.path;return e.length>0?e[e.length-1].tag:void 0}getCurrentNamespace(){const e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){const t=this._matcher.path;if(0!==t.length)return t[t.length-1].values?.[e]}hasAttr(e){const t=this._matcher.path;if(0===t.length)return!1;const o=t[t.length-1];return void 0!==o.values&&e in o.values}getPosition(){const e=this._matcher.path;return 0===e.length?-1:e[e.length-1].position??0}getCounter(){const e=this._matcher.path;return 0===e.length?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map((e=>e.tag))}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}}class R{constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new F(this)}push(e,t=null,o=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);const i=this.path.length;this.siblingStacks[i]||(this.siblingStacks[i]=new Map);const a=this.siblingStacks[i],d=o?`${o}:${e}`:e,m=a.get(d)||0;let f=0;for(const e of a.values())f+=e;a.set(d,m+1);const h={tag:e,position:f,counter:m};null!=o&&(h.namespace=o),null!=t&&(h.values=t),this.path.push(h)}pop(){if(0===this.path.length)return;this._pathStringCache=null;const e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){const t=this.path[this.path.length-1];null!=e&&(t.values=e)}}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(e){if(0!==this.path.length)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(0===this.path.length)return!1;const t=this.path[this.path.length-1];return void 0!==t.values&&e in t.values}getPosition(){return 0===this.path.length?-1:this.path[this.path.length-1].position??0}getCounter(){return 0===this.path.length?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){const o=e||this.separator;if(o===this.separator&&!0===t){if(null!==this._pathStringCache)return this._pathStringCache;const e=this.path.map((e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag)).join(o);return this._pathStringCache=e,e}return this.path.map((e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag)).join(o)}toArray(){return this.path.map((e=>e.tag))}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){const t=e.segments;return 0!==t.length&&(e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t))}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t<e.length;t++)if(!this._matchSegment(e[t],this.path[t],t===this.path.length-1))return!1;return!0}_matchWithDeepWildcard(e){let t=this.path.length-1,o=e.length-1;for(;o>=0&&t>=0;){const i=e[o];if("deep-wildcard"===i.type){if(o--,o<0)return!0;const i=e[o];let a=!1;for(let e=t;e>=0;e--)if(this._matchSegment(i,this.path[e],e===this.path.length-1)){t=e-1,o--,a=!0;break}if(!a)return!1}else{if(!this._matchSegment(i,this.path[t],t===this.path.length-1))return!1;t--,o--}}return o<0}_matchSegment(e,t,o){if("*"!==e.tag&&e.tag!==t.tag)return!1;if(void 0!==e.namespace&&"*"!==e.namespace&&e.namespace!==t.namespace)return!1;if(void 0!==e.attrName){if(!o)return!1;if(!t.values||!(e.attrName in t.values))return!1;if(void 0!==e.attrValue&&String(t.values[e.attrName])!==String(e.attrValue))return!1}if(void 0!==e.position){if(!o)return!1;const i=t.counter??0;if("first"===e.position&&0!==i)return!1;if("odd"===e.position&&i%2!=1)return!1;if("even"===e.position&&i%2!=0)return!1;if("nth"===e.position&&i!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map((e=>({...e}))),siblingStacks:this.siblingStacks.map((e=>new Map(e)))}}restore(e){this._pathStringCache=null,this.path=e.path.map((e=>({...e}))),this.siblingStacks=e.siblingStacks.map((e=>new Map(e)))}readOnly(){return this._view}}class G{constructor(e,t={},o){this.pattern=e,this.separator=t.separator||".",this.segments=this._parse(e),this.data=o,this._hasDeepWildcard=this.segments.some((e=>"deep-wildcard"===e.type)),this._hasAttributeCondition=this.segments.some((e=>void 0!==e.attrName)),this._hasPositionSelector=this.segments.some((e=>void 0!==e.position))}_parse(e){const t=[];let o=0,i="";for(;o<e.length;)e[o]===this.separator?o+1<e.length&&e[o+1]===this.separator?(i.trim()&&(t.push(this._parseSegment(i.trim())),i=""),t.push({type:"deep-wildcard"}),o+=2):(i.trim()&&t.push(this._parseSegment(i.trim())),i="",o++):(i+=e[o],o++);return i.trim()&&t.push(this._parseSegment(i.trim())),t}_parseSegment(e){const t={type:"tag"};let o=null,i=e;const a=e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(a&&(i=a[1]+a[3],a[2])){const e=a[2].slice(1,-1);e&&(o=e)}let d,m,f=i;if(i.includes("::")){const t=i.indexOf("::");if(d=i.substring(0,t).trim(),f=i.substring(t+2).trim(),!d)throw new Error(`Invalid namespace in pattern: ${e}`)}let h=null;if(f.includes(":")){const e=f.lastIndexOf(":"),t=f.substring(0,e).trim(),o=f.substring(e+1).trim();["first","last","odd","even"].includes(o)||/^nth\(\d+\)$/.test(o)?(m=t,h=o):m=f}else m=f;if(!m)throw new Error(`Invalid segment pattern: ${e}`);if(t.tag=m,d&&(t.namespace=d),o)if(o.includes("=")){const e=o.indexOf("=");t.attrName=o.substring(0,e).trim(),t.attrValue=o.substring(e+1).trim()}else t.attrName=o.trim();if(h){const e=h.match(/^nth\((\d+)\)$/);e?(t.position="nth",t.positionValue=parseInt(e[1],10)):t.position=h}return t}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}}class B{constructor(){this._byDepthAndTag=new Map,this._wildcardByDepth=new Map,this._deepWildcards=[],this._patterns=new Set,this._sealed=!1}add(e){if(this._sealed)throw new TypeError("ExpressionSet is sealed. Create a new ExpressionSet to add more expressions.");if(this._patterns.has(e.pattern))return this;if(this._patterns.add(e.pattern),e.hasDeepWildcard())return this._deepWildcards.push(e),this;const t=e.length,o=e.segments[e.segments.length-1],i=o?.tag;if(i&&"*"!==i){const o=`${t}:${i}`;this._byDepthAndTag.has(o)||this._byDepthAndTag.set(o,[]),this._byDepthAndTag.get(o).push(e)}else this._wildcardByDepth.has(t)||this._wildcardByDepth.set(t,[]),this._wildcardByDepth.get(t).push(e);return this}addAll(e){for(const t of e)this.add(t);return this}has(e){return this._patterns.has(e.pattern)}get size(){return this._patterns.size}seal(){return this._sealed=!0,this}get isSealed(){return this._sealed}matchesAny(e){return null!==this.findMatch(e)}findMatch(e){const t=e.getDepth(),o=`${t}:${e.getCurrentTag()}`,i=this._byDepthAndTag.get(o);if(i)for(let t=0;t<i.length;t++)if(e.matches(i[t]))return i[t];const a=this._wildcardByDepth.get(t);if(a)for(let t=0;t<a.length;t++)if(e.matches(a[t]))return a[t];for(let t=0;t<this._deepWildcards.length;t++)if(e.matches(this._deepWildcards[t]))return this._deepWildcards[t];return null}}const W={cent:"¢",pound:"£",curren:"¤",yen:"¥",euro:"€",dollar:"$",euro:"€",fnof:"ƒ",inr:"₹",af:"؋",birr:"ብር",peso:"₱",rub:"₽",won:"₩",yuan:"¥",cedil:"¸"},X={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},Q={nbsp:" ",copy:"©",reg:"®",trade:"™",mdash:"—",ndash:"–",hellip:"…",laquo:"«",raquo:"»",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",para:"¶",sect:"§",deg:"°",frac12:"½",frac14:"¼",frac34:"¾"},Y=new Set("!?\\\\/[]$%{}^&*()<>|+");function z(e){if("#"===e[0])throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(const t of e)if(Y.has(t))throw new Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function q(...e){const t=Object.create(null);for(const o of e)if(o)for(const e of Object.keys(o)){const i=o[e];if("string"==typeof i)t[e]=i;else if(i&&"object"==typeof i&&void 0!==i.val){const o=i.val;"string"==typeof o&&(t[e]=o)}}return t}const J="external",Z="base",ee="all",te=Object.freeze({allow:0,leave:1,remove:2,throw:3}),ne=new Set([9,10,13]);class tt{constructor(e={}){var t;this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck="function"==typeof e.postCheck?e.postCheck:e=>e,this._limitTiers=(t=this._limit.applyLimitsTo??J)&&t!==J?t===ee?new Set([ee]):t===Z?new Set([Z]):Array.isArray(t)?new Set(t):new Set([J]):new Set([J]),this._numericAllowed=e.numericAllowed??!0,this._baseMap=q(X,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);const o=function(e){if(!e)return{xmlVersion:1,onLevel:te.allow,nullLevel:te.remove};const t=1.1===e.xmlVersion?1.1:1,o=te[e.onNCR]??te.allow,i=te[e.nullNCR]??te.remove;return{xmlVersion:t,onLevel:o,nullLevel:Math.max(i,te.remove)}}(e.ncr);this._ncrXmlVersion=o.xmlVersion,this._ncrOnLevel=o.onLevel,this._ncrNullLevel=o.nullLevel}setExternalEntities(e){if(e)for(const t of Object.keys(e))z(t);this._externalMap=q(e)}addExternalEntity(e,t){z(e),"string"==typeof t&&-1===t.indexOf("&")&&(this._externalMap[e]=t)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=q(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=1.1===e?1.1:1}decode(e){if("string"!=typeof e||0===e.length)return e;const t=e,o=[],i=e.length;let a=0,d=0;const m=this._maxTotalExpansions>0,f=this._maxExpandedLength>0,h=m||f;for(;d<i;){if(38!==e.charCodeAt(d)){d++;continue}let t=d+1;for(;t<i&&59!==e.charCodeAt(t)&&t-d<=32;)t++;if(t>=i||59!==e.charCodeAt(t)){d++;continue}const P=e.slice(d+1,t);if(0===P.length){d++;continue}let _,L;if(this._removeSet.has(P))_="",void 0===L&&(L=J);else{if(this._leaveSet.has(P)){d++;continue}if(35===P.charCodeAt(0)){const e=this._resolveNCR(P);if(void 0===e){d++;continue}_=e,L=Z}else{const e=this._resolveName(P);_=e?.value,L=e?.tier}}if(void 0!==_){if(d>a&&o.push(e.slice(a,d)),o.push(_),a=t+1,d=a,h&&this._tierCounts(L)){if(m&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(f){const e=_.length-(P.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}else d++}a<i&&o.push(e.slice(a));const P=0===o.length?e:o.join("");return this._postCheck(P,t)}_tierCounts(e){return!!this._limitTiers.has(ee)||this._limitTiers.has(e)}_resolveName(e){return e in this._inputMap?{value:this._inputMap[e],tier:J}:e in this._externalMap?{value:this._externalMap[e],tier:J}:e in this._baseMap?{value:this._baseMap[e],tier:Z}:void 0}_classifyNCR(e){return 0===e?this._ncrNullLevel:e>=55296&&e<=57343||1===this._ncrXmlVersion&&e>=1&&e<=31&&!ne.has(e)?te.remove:-1}_applyNCRAction(e,t,o){switch(e){case te.allow:return String.fromCodePoint(o);case te.remove:return"";case te.leave:return;case te.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${o.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(o)}}_resolveNCR(e){const t=e.charCodeAt(1);let o;if(o=120===t||88===t?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(o)||o<0||o>1114111)return;const i=this._classifyNCR(o);if(!this._numericAllowed&&i<te.remove)return;const a=-1===i?this._ncrOnLevel:Math.max(this._ncrOnLevel,i);return this._applyNCRAction(a,e,o)}}function et(e,t){if(!e)return{};const o=t.attributesGroupName?e[t.attributesGroupName]:e;if(!o)return{};const i={};for(const e in o)e.startsWith(t.attributeNamePrefix)?i[e.substring(t.attributeNamePrefix.length)]=o[e]:i[e]=o[e];return i}function nt(e){if(!e||"string"!=typeof e)return;const t=e.indexOf(":");if(-1!==t&&t>0){const o=e.substring(0,t);if("xmlns"!==o)return o}}class it{constructor(e,t){var o;this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=ht,this.parseTextData=st,this.resolveNameSpace=rt,this.buildAttributesMap=at,this.isItStopNode=ct,this.replaceEntitiesValue=ut,this.readStopNodeData=mt,this.saveTextToParentTag=pt,this.addChild=lt,this.ignoreAttributesFn="function"==typeof(o=this.options.ignoreAttributes)?o:Array.isArray(o)?e=>{for(const t of o){if("string"==typeof t&&e===t)return!0;if(t instanceof RegExp&&t.test(e))return!0}}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0;let i={...X};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:("object"==typeof this.options.htmlEntities?i=this.options.htmlEntities:!0===this.options.htmlEntities&&(i={...Q,...W}),this.entityDecoder=new tt({namedEntities:{...i,...t},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new R,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new B;const a=this.options.stopNodes;if(a&&a.length>0){for(let e=0;e<a.length;e++){const t=a[e];"string"==typeof t?this.stopNodeExpressionsSet.add(new G(t)):t instanceof G&&this.stopNodeExpressionsSet.add(t)}this.stopNodeExpressionsSet.seal()}}}function st(e,t,o,i,a,d,m){const f=this.options;if(void 0!==e&&(f.trimValues&&!i&&(e=e.trim()),e.length>0)){m||(e=this.replaceEntitiesValue(e,t,o));const i=f.jPath?o.toString():o,h=f.tagValueProcessor(t,e,i,a,d);return null==h?e:typeof h!=typeof e||h!==e?h:f.trimValues||e.trim()===e?xt(e,f.parseTagValue,f.numberParseOptions):e}}function rt(e){if(this.options.removeNSPrefix){const t=e.split(":"),o="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=o+t[1])}return e}const re=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function at(e,t,o,i=!1){const a=this.options;if(!0===i||!0!==a.ignoreAttributes&&"string"==typeof e){const i=s(e,re),d=i.length,m={},f=new Array(d);let h=!1;const P={};for(let e=0;e<d;e++){const t=this.resolveNameSpace(i[e][1]),d=i[e][4];if(t.length&&void 0!==d){let i=d;a.trimValues&&(i=i.trim()),i=this.replaceEntitiesValue(i,o,this.readonlyMatcher),f[e]=i,P[t]=i,h=!0}}h&&"object"==typeof t&&t.updateCurrent&&t.updateCurrent(P);const _=a.jPath?t.toString():this.readonlyMatcher;let L=!1;for(let e=0;e<d;e++){const t=this.resolveNameSpace(i[e][1]);if(this.ignoreAttributesFn(t,_))continue;let o=a.attributeNamePrefix+t;if(t.length)if(a.transformAttributeName&&(o=a.transformAttributeName(o)),o=bt(o,a),void 0!==i[e][4]){const i=f[e],d=a.attributeValueProcessor(t,i,_);m[o]=null==d?i:typeof d!=typeof i||d!==i?d:xt(i,a.parseAttributeValue,a.numberParseOptions),L=!0}else a.allowBooleanAttributes&&(m[o]=!0,L=!0)}if(!L)return;if(a.attributesGroupName&&!a.preserveOrder){const e={};return e[a.attributesGroupName]=m,e}return m}}const ht=function(e){e=e.replace(/\r\n?/g,"\n");const t=new O("!xml");let o=t,i="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;const a=this.options,d=new $(a.processEntities),m=e.length;for(let f=0;f<m;f++)if("<"===e[f]){const h=e.charCodeAt(f+1);if(47===h){const t=dt(e,">",f,"Closing Tag is not closed.");let d=e.substring(f+2,t).trim();if(a.removeNSPrefix){const e=d.indexOf(":");-1!==e&&(d=d.substr(e+1))}d=Nt(a.transformTagName,d,"",a).tagName,o&&(i=this.saveTextToParentTag(i,o,this.readonlyMatcher));const m=this.matcher.getCurrentTag();if(d&&a.unpairedTagsSet.has(d))throw new Error(`Unpaired tag can not be used as closing tag: </${d}>`);m&&a.unpairedTagsSet.has(m)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,o=this.tagsNodeStack.pop(),i="",f=t}else if(63===h){let t=gt(e,f,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");i=this.saveTextToParentTag(i,o,this.readonlyMatcher);const d=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName,!0);if(d){const e=d[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(e)||1)}if(a.ignoreDeclaration&&"?xml"===t.tagName||a.ignorePiTags);else{const e=new O(t.tagName);e.add(a.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&!0!==a.ignoreAttributes&&(e[":@"]=d),this.addChild(o,e,this.readonlyMatcher,f)}f=t.closeIndex+1}else if(33===h&&45===e.charCodeAt(f+2)&&45===e.charCodeAt(f+3)){const t=dt(e,"--\x3e",f+4,"Comment is not closed.");if(a.commentPropName){const d=e.substring(f+4,t-2);i=this.saveTextToParentTag(i,o,this.readonlyMatcher),o.add(a.commentPropName,[{[a.textNodeName]:d}])}f=t}else if(33===h&&68===e.charCodeAt(f+2)){const t=d.readDocType(e,f);this.entityDecoder.addInputEntities(t.entities),f=t.i}else if(33===h&&91===e.charCodeAt(f+2)){const t=dt(e,"]]>",f,"CDATA is not closed.")-2,d=e.substring(f+9,t);i=this.saveTextToParentTag(i,o,this.readonlyMatcher);let m=this.parseTextData(d,o.tagname,this.readonlyMatcher,!0,!1,!0,!0);null==m&&(m=""),a.cdataPropName?o.add(a.cdataPropName,[{[a.textNodeName]:d}]):o.add(a.textNodeName,m),f=t+2}else{let d=gt(e,f,a.removeNSPrefix);if(!d){const t=e.substring(Math.max(0,f-50),Math.min(m,f+50));throw new Error(`readTagExp returned undefined at position ${f}. Context: "${t}"`)}let h=d.tagName;const P=d.rawTagName;let _=d.tagExp,L=d.attrExpPresent,U=d.closeIndex;if(({tagName:h,tagExp:_}=Nt(a.transformTagName,h,_,a)),a.strictReservedNames&&(h===a.commentPropName||h===a.cdataPropName||h===a.textNodeName||h===a.attributesGroupName))throw new Error(`Invalid tag name: ${h}`);o&&i&&"!xml"!==o.tagname&&(i=this.saveTextToParentTag(i,o,this.readonlyMatcher,!1));const j=o;j&&a.unpairedTagsSet.has(j.tagname)&&(o=this.tagsNodeStack.pop(),this.matcher.pop());let H=!1;_.length>0&&_.lastIndexOf("/")===_.length-1&&(H=!0,"/"===h[h.length-1]?(h=h.substr(0,h.length-1),_=h):_=_.substr(0,_.length-1),L=h!==_);let V,K=null,W={};V=nt(P),h!==t.tagname&&this.matcher.push(h,{},V),h!==_&&L&&(K=this.buildAttributesMap(_,this.matcher,h),K&&(W=et(K,a))),h!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());const X=f;if(this.isCurrentNodeStopNode){let t="";if(H)f=d.closeIndex;else if(a.unpairedTagsSet.has(h))f=d.closeIndex;else{const o=this.readStopNodeData(e,P,U+1);if(!o)throw new Error(`Unexpected end of ${P}`);f=o.i,t=o.tagContent}const i=new O(h);K&&(i[":@"]=K),i.add(a.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(o,i,this.readonlyMatcher,X)}else{if(H){({tagName:h,tagExp:_}=Nt(a.transformTagName,h,_,a));const e=new O(h);K&&(e[":@"]=K),this.addChild(o,e,this.readonlyMatcher,X),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(a.unpairedTagsSet.has(h)){const e=new O(h);K&&(e[":@"]=K),this.addChild(o,e,this.readonlyMatcher,X),this.matcher.pop(),this.isCurrentNodeStopNode=!1,f=d.closeIndex;continue}{const e=new O(h);if(this.tagsNodeStack.length>a.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(o),K&&(e[":@"]=K),this.addChild(o,e,this.readonlyMatcher,X),o=e}}i="",f=U}}}else i+=e[f];return t.child};function lt(e,t,o,i){this.options.captureMetaData||(i=void 0);const a=this.options.jPath?o.toString():o,d=this.options.updateTag(t.tagname,a,t[":@"]);!1===d||("string"==typeof d?(t.tagname=d,e.addChild(t,i)):e.addChild(t,i))}function ut(e,t,o){const i=this.options.processEntities;if(!i||!i.enabled)return e;if(i.allowedTags){const a=this.options.jPath?o.toString():o;if(!(Array.isArray(i.allowedTags)?i.allowedTags.includes(t):i.allowedTags(t,a)))return e}if(i.tagFilter){const a=this.options.jPath?o.toString():o;if(!i.tagFilter(t,a))return e}return this.entityDecoder.decode(e)}function pt(e,t,o,i){return e&&(void 0===i&&(i=0===t.child.length),void 0!==(e=this.parseTextData(e,t.tagname,o,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,i))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function ct(){return 0!==this.stopNodeExpressionsSet.size&&this.matcher.matchesAny(this.stopNodeExpressionsSet)}function dt(e,t,o,i){const a=e.indexOf(t,o);if(-1===a)throw new Error(i);return a+t.length-1}function ft(e,t,o,i){const a=e.indexOf(t,o);if(-1===a)throw new Error(i);return a}function gt(e,t,o,i=">"){const a=function(e,t,o=">"){let i=0;const a=e.length,d=o.charCodeAt(0),m=o.length>1?o.charCodeAt(1):-1;let f="",h=t;for(let o=t;o<a;o++){const t=e.charCodeAt(o);if(i)t===i&&(i=0);else if(34===t||39===t)i=t;else if(t===d){if(-1===m)return f+=e.substring(h,o),{data:f,index:o};if(e.charCodeAt(o+1)===m)return f+=e.substring(h,o),{data:f,index:o}}else 9!==t||i||(f+=e.substring(h,o)+" ",h=o+1)}}(e,t+1,i);if(!a)return;let d=a.data;const m=a.index,f=d.search(/\s/);let h=d,P=!0;-1!==f&&(h=d.substring(0,f),d=d.substring(f+1).trimStart());const _=h;if(o){const e=h.indexOf(":");-1!==e&&(h=h.substr(e+1),P=h!==a.data.substr(e+1))}return{tagName:h,tagExp:d,closeIndex:m,attrExpPresent:P,rawTagName:_}}function mt(e,t,o){const i=o;let a=1;const d=e.length;for(;o<d;o++)if("<"===e[o]){const d=e.charCodeAt(o+1);if(47===d){const d=ft(e,">",o,`${t} is not closed`);if(e.substring(o+2,d).trim()===t&&(a--,0===a))return{tagContent:e.substring(i,o),i:d};o=d}else if(63===d)o=dt(e,"?>",o+1,"StopNode is not closed.");else if(33===d&&45===e.charCodeAt(o+2)&&45===e.charCodeAt(o+3))o=dt(e,"--\x3e",o+3,"StopNode is not closed.");else if(33===d&&91===e.charCodeAt(o+2))o=dt(e,"]]>",o,"StopNode is not closed.")-2;else{const i=gt(e,o,!1);i&&((i&&i.tagName)===t&&"/"!==i.tagExp[i.tagExp.length-1]&&a++,o=i.closeIndex)}}}function xt(e,t,o){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&function(e,t={}){if(t=Object.assign({},V,t),!e||"string"!=typeof e)return e;let o=e.trim();if(0===o.length)return e;if(void 0!==t.skipLike&&t.skipLike.test(o))return e;if("0"===o)return 0;if(t.hex&&j.test(o))return function(e){if(parseInt)return parseInt(e,16);if(Number.parseInt)return Number.parseInt(e,16);if(window&&window.parseInt)return window.parseInt(e,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(o);if(isFinite(o)){if(o.includes("e")||o.includes("E"))return function(e,t,o){if(!o.eNotation)return e;const i=t.match(K);if(i){let a=i[1]||"";const d=-1===i[3].indexOf("e")?"E":"e",m=i[2],f=a?e[m.length+1]===d:e[m.length]===d;return m.length>1&&f?e:(1!==m.length||!i[3].startsWith(`.${d}`)&&i[3][0]!==d)&&m.length>0?o.leadingZeros&&!f?(t=(i[1]||"")+i[3],Number(t)):e:Number(t)}return e}(e,o,t);{const a=H.exec(o);if(a){const d=a[1]||"",m=a[2];let f=(i=a[3])&&-1!==i.indexOf(".")?("."===(i=i.replace(/0+$/,""))?i="0":"."===i[0]?i="0"+i:"."===i[i.length-1]&&(i=i.substring(0,i.length-1)),i):i;const h=d?"."===e[m.length+1]:"."===e[m.length];if(!t.leadingZeros&&(m.length>1||1===m.length&&!h))return e;{const i=Number(o),a=String(i);if(0===i)return i;if(-1!==a.search(/[eE]/))return t.eNotation?i:e;if(-1!==o.indexOf("."))return"0"===a||a===f||a===`${d}${f}`?i:e;let h=m?f:o;return m?h===a||d+h===a?i:e:h===a||h===d+a?i:e}}return e}}var i;return function(e,t,o){const i=t===1/0;switch(o.infinity.toLowerCase()){case"null":return null;case"infinity":return t;case"string":return i?"Infinity":"-Infinity";default:return e}}(e,Number(o),t)}(e,o)}return void 0!==e?e:""}function Nt(e,t,o,i){if(e){const i=e(t);o===t&&(o=i),t=i}return{tagName:t=bt(t,i),tagExp:o}}function bt(e,t){if(m.includes(e))throw new Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return d.includes(e)?t.onDangerousProperty(e):e}const oe=O.getMetaDataSymbol();function Et(e,t){if(!e||"object"!=typeof e)return{};if(!t)return e;const o={};for(const i in e)i.startsWith(t)?o[i.substring(t.length)]=e[i]:o[i]=e[i];return o}function wt(e,t,o,i){return vt(e,t,o,i)}function vt(e,t,o,i){let a;const d={};for(let m=0;m<e.length;m++){const f=e[m],h=St(f);if(void 0!==h&&h!==t.textNodeName){const e=Et(f[":@"]||{},t.attributeNamePrefix);o.push(h,e)}if(h===t.textNodeName)void 0===a?a=f[h]:a+=""+f[h];else{if(void 0===h)continue;if(f[h]){let e=vt(f[h],t,o,i);const a=At(e,t);if(0===Object.keys(e).length&&t.alwaysCreateTextNode&&(e[t.textNodeName]=""),f[":@"]?_t(e,f[":@"],i,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==f[oe]&&"object"==typeof e&&null!==e&&(e[oe]=f[oe]),void 0!==d[h]&&Object.prototype.hasOwnProperty.call(d,h))Array.isArray(d[h])||(d[h]=[d[h]]),d[h].push(e);else{const o=t.jPath?i.toString():i;t.isArray(h,o,a)?d[h]=[e]:d[h]=e}void 0!==h&&h!==t.textNodeName&&o.pop()}}}return"string"==typeof a?a.length>0&&(d[t.textNodeName]=a):void 0!==a&&(d[t.textNodeName]=a),d}function St(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const o=t[e];if(":@"!==o)return o}}function _t(e,t,o,i){if(t){const a=Object.keys(t),d=a.length;for(let m=0;m<d;m++){const d=a[m],f=d.startsWith(i.attributeNamePrefix)?d.substring(i.attributeNamePrefix.length):d,h=i.jPath?o.toString()+"."+f:o;i.isArray(d,h,!0,!0)?e[d]=[t[d]]:e[d]=t[d]}}}function At(e,t){const{textNodeName:o}=t,i=Object.keys(e).length;return 0===i||!(1!==i||!e[o]&&"boolean"!=typeof e[o]&&0!==e[o])}class Tt{constructor(e){this.externalEntities={},this.options=C(e)}parse(e,t){if("string"!=typeof e&&e.toString)e=e.toString();else if("string"!=typeof e)throw new Error("XML data is accepted in String or Bytes[] form.");if(t){!0===t&&(t={});const o=l(e,t);if(!0!==o)throw Error(`${o.err.msg}:${o.err.line}:${o.err.col}`)}const o=new it(this.options,this.externalEntities),i=o.parseXml(e);return this.options.preserveOrder||void 0===i?i:wt(i,this.options,o.matcher,o.readonlyMatcher)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}static getMetaDataSymbol(){return O.getMetaDataSymbol()}}function Ct(e){return String(e).replace(/--/g,"- -").replace(/--/g,"- -").replace(/-$/,"- ")}function Pt(e){return String(e).replace(/\]\]>/g,"]]]]><![CDATA[>")}function Ot(e){return String(e).replace(/"/g,""").replace(/'/g,"'")}function $t(e,t){let o="";t.format&&t.indentBy.length>0&&(o="\n");const i=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;e<t.stopNodes.length;e++){const o=t.stopNodes[e];"string"==typeof o?i.push(new G(o)):o instanceof G&&i.push(o)}return It(e,t,o,new R,i)}function It(e,t,o,i,a){let d="",m=!1;if(t.maxNestedTags&&i.getDepth()>t.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(e)){if(null!=e){let o=e.toString();return o=Ft(o,t),o}return""}for(let f=0;f<e.length;f++){const h=e[f],P=Vt(h);if(void 0===P)continue;const _=Dt(h[":@"],t);i.push(P,_);const L=kt(i,a);if(P===t.textNodeName){let e=h[P];L||(e=t.tagValueProcessor(P,e),e=Ft(e,t)),m&&(d+=o),d+=e,m=!1,i.pop();continue}if(P===t.cdataPropName){m&&(d+=o),d+=`<![CDATA[${Pt(h[P][0][t.textNodeName])}]]>`,m=!1,i.pop();continue}if(P===t.commentPropName){d+=o+`\x3c!--${Ct(h[P][0][t.textNodeName])}--\x3e`,m=!0,i.pop();continue}if("?"===P[0]){const e=Lt(h[":@"],t,L),a="?xml"===P?"":o;let f=h[P][0][t.textNodeName];f=0!==f.length?" "+f:"",d+=a+`<${P}${f}${e}?>`,m=!0,i.pop();continue}let U=o;""!==U&&(U+=t.indentBy);const j=o+`<${P}${Lt(h[":@"],t,L)}`;let H;H=L?Mt(h[P],t):It(h[P],t,U,i,a),-1!==t.unpairedTags.indexOf(P)?t.suppressUnpairedNode?d+=j+">":d+=j+"/>":H&&0!==H.length||!t.suppressEmptyNode?H&&H.endsWith(">")?d+=j+`>${H}${o}</${P}>`:(d+=j+">",H&&""!==o&&(H.includes("/>")||H.includes("</"))?d+=o+t.indentBy+H+o:d+=H,d+=`</${P}>`):d+=j+"/>",m=!0,i.pop()}return d}function Dt(e,t){if(!e||t.ignoreAttributes)return null;const o={};let i=!1;for(let a in e)Object.prototype.hasOwnProperty.call(e,a)&&(o[a.startsWith(t.attributeNamePrefix)?a.substr(t.attributeNamePrefix.length):a]=Ot(e[a]),i=!0);return i?o:null}function Mt(e,t){if(!Array.isArray(e))return null!=e?e.toString():"";let o="";for(let i=0;i<e.length;i++){const a=e[i],d=Vt(a);if(d===t.textNodeName)o+=a[d];else if(d===t.cdataPropName)o+=a[d][0][t.textNodeName];else if(d===t.commentPropName)o+=a[d][0][t.textNodeName];else{if(d&&"?"===d[0])continue;if(d){const e=jt(a[":@"],t),i=Mt(a[d],t);i&&0!==i.length?o+=`<${d}${e}>${i}</${d}>`:o+=`<${d}${e}/>`}}}return o}function jt(e,t){let o="";if(e&&!t.ignoreAttributes)for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=e[i];!0===a&&t.suppressBooleanAttributes?o+=` ${i.substr(t.attributeNamePrefix.length)}`:o+=` ${i.substr(t.attributeNamePrefix.length)}="${Ot(a)}"`}return o}function Vt(e){const t=Object.keys(e);for(let o=0;o<t.length;o++){const i=t[o];if(Object.prototype.hasOwnProperty.call(e,i)&&":@"!==i)return i}}function Lt(e,t,o){let i="";if(e&&!t.ignoreAttributes)for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a))continue;let d;o?d=e[a]:(d=t.attributeValueProcessor(a,e[a]),d=Ft(d,t)),!0===d&&t.suppressBooleanAttributes?i+=` ${a.substr(t.attributeNamePrefix.length)}`:i+=` ${a.substr(t.attributeNamePrefix.length)}="${Ot(d)}"`}return i}function kt(e,t){if(!t||0===t.length)return!1;for(let o=0;o<t.length;o++)if(e.matches(t[o]))return!0;return!1}function Ft(e,t){if(e&&e.length>0&&t.processEntities)for(let o=0;o<t.entities.length;o++){const i=t.entities[o];e=e.replace(i.regex,i.val)}return e}const ie={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function Gt(e){if(this.options=Object.assign({},ie,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map((e=>"string"==typeof e&&e.startsWith("*.")?".."+e.substring(2):e))),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){const t=this.options.stopNodes[e];"string"==typeof t?this.stopNodeExpressions.push(new G(t)):t instanceof G&&this.stopNodeExpressions.push(t)}var t;!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn="function"==typeof(t=this.options.ignoreAttributes)?t:Array.isArray(t)?e=>{for(const o of t){if("string"==typeof o&&e===o)return!0;if(o instanceof RegExp&&o.test(e))return!0}}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Wt),this.processTextOrObjNode=Bt,this.options.format?(this.indentate=Ut,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Bt(e,t,o,i){const a=this.extractAttributes(e);if(i.push(t,a),this.checkStopNode(i)){const a=this.buildRawContent(e),d=this.buildAttributesForStopNode(e);return i.pop(),this.buildObjectNode(a,t,d,o)}const d=this.j2x(e,o+1,i);return i.pop(),void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,d.attrStr,o,i):this.buildObjectNode(d.val,t,d.attrStr,o)}function Ut(e){return this.options.indentBy.repeat(e)}function Wt(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}Gt.prototype.build=function(e){if(this.options.preserveOrder)return $t(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});const t=new R;return this.j2x(e,0,t).val}},Gt.prototype.j2x=function(e,t,o){let i="",a="";if(this.options.maxNestedTags&&o.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");const d=this.options.jPath?o.toString():o,m=this.checkStopNode(o);for(let f in e)if(Object.prototype.hasOwnProperty.call(e,f))if(void 0===e[f])this.isAttribute(f)&&(a+="");else if(null===e[f])this.isAttribute(f)||f===this.options.cdataPropName||f===this.options.commentPropName?a+="":"?"===f[0]?a+=this.indentate(t)+"<"+f+"?"+this.tagEndChar:a+=this.indentate(t)+"<"+f+"/"+this.tagEndChar;else if(e[f]instanceof Date)a+=this.buildTextValNode(e[f],f,"",t,o);else if("object"!=typeof e[f]){const h=this.isAttribute(f);if(h&&!this.ignoreAttributesFn(h,d))i+=this.buildAttrPairStr(h,""+e[f],m);else if(!h)if(f===this.options.textNodeName){let t=this.options.tagValueProcessor(f,""+e[f]);a+=this.replaceEntitiesValue(t)}else{o.push(f);const i=this.checkStopNode(o);if(o.pop(),i){const o=""+e[f];a+=""===o?this.indentate(t)+"<"+f+this.closeTag(f)+this.tagEndChar:this.indentate(t)+"<"+f+">"+o+"</"+f+this.tagEndChar}else a+=this.buildTextValNode(e[f],f,"",t,o)}}else if(Array.isArray(e[f])){const i=e[f].length;let d="",m="";for(let h=0;h<i;h++){const i=e[f][h];if(void 0===i);else if(null===i)"?"===f[0]?a+=this.indentate(t)+"<"+f+"?"+this.tagEndChar:a+=this.indentate(t)+"<"+f+"/"+this.tagEndChar;else if("object"==typeof i)if(this.options.oneListGroup){o.push(f);const e=this.j2x(i,t+1,o);o.pop(),d+=e.val,this.options.attributesGroupName&&i.hasOwnProperty(this.options.attributesGroupName)&&(m+=e.attrStr)}else d+=this.processTextOrObjNode(i,f,t,o);else if(this.options.oneListGroup){let e=this.options.tagValueProcessor(f,i);e=this.replaceEntitiesValue(e),d+=e}else{o.push(f);const e=this.checkStopNode(o);if(o.pop(),e){const e=""+i;d+=""===e?this.indentate(t)+"<"+f+this.closeTag(f)+this.tagEndChar:this.indentate(t)+"<"+f+">"+e+"</"+f+this.tagEndChar}else d+=this.buildTextValNode(i,f,"",t,o)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,f,m,t)),a+=d}else if(this.options.attributesGroupName&&f===this.options.attributesGroupName){const t=Object.keys(e[f]),o=t.length;for(let a=0;a<o;a++)i+=this.buildAttrPairStr(t[a],""+e[f][t[a]],m)}else a+=this.processTextOrObjNode(e[f],f,t,o);return{attrStr:i,val:a}},Gt.prototype.buildAttrPairStr=function(e,t,o){return o||(t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t)),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+Ot(t)+'"'},Gt.prototype.extractAttributes=function(e){if(!e||"object"!=typeof e)return null;const t={};let o=!1;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const i=e[this.options.attributesGroupName];for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e]=Ot(i[e]),o=!0)}else for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;const a=this.isAttribute(i);a&&(t[a]=Ot(e[i]),o=!0)}return o?t:null},Gt.prototype.buildRawContent=function(e){if("string"==typeof e)return e;if("object"!=typeof e||null===e)return String(e);if(void 0!==e[this.options.textNodeName])return e[this.options.textNodeName];let t="";for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;if(this.isAttribute(o))continue;if(this.options.attributesGroupName&&o===this.options.attributesGroupName)continue;const i=e[o];if(o===this.options.textNodeName)t+=i;else if(Array.isArray(i)){for(let e of i)if("string"==typeof e||"number"==typeof e)t+=`<${o}>${e}</${o}>`;else if("object"==typeof e&&null!==e){const i=this.buildRawContent(e),a=this.buildAttributesForStopNode(e);t+=""===i?`<${o}${a}/>`:`<${o}${a}>${i}</${o}>`}}else if("object"==typeof i&&null!==i){const e=this.buildRawContent(i),a=this.buildAttributesForStopNode(i);t+=""===e?`<${o}${a}/>`:`<${o}${a}>${e}</${o}>`}else t+=`<${o}>${i}</${o}>`}return t},Gt.prototype.buildAttributesForStopNode=function(e){if(!e||"object"!=typeof e)return"";let t="";if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const o=e[this.options.attributesGroupName];for(let e in o){if(!Object.prototype.hasOwnProperty.call(o,e))continue;const i=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,a=o[e];!0===a&&this.options.suppressBooleanAttributes?t+=" "+i:t+=" "+i+'="'+a+'"'}}else for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const i=this.isAttribute(o);if(i){const a=e[o];!0===a&&this.options.suppressBooleanAttributes?t+=" "+i:t+=" "+i+'="'+a+'"'}}return t},Gt.prototype.buildObjectNode=function(e,t,o,i){if(""===e)return"?"===t[0]?this.indentate(i)+"<"+t+o+"?"+this.tagEndChar:this.indentate(i)+"<"+t+o+this.closeTag(t)+this.tagEndChar;{let a="</"+t+this.tagEndChar,d="";return"?"===t[0]&&(d="?",a=""),!o&&""!==o||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===d.length?this.indentate(i)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(i)+"<"+t+o+d+this.tagEndChar+e+this.indentate(i)+a:this.indentate(i)+"<"+t+o+d+">"+e+a}},Gt.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},Gt.prototype.checkStopNode=function(e){if(!this.stopNodeExpressions||0===this.stopNodeExpressions.length)return!1;for(let t=0;t<this.stopNodeExpressions.length;t++)if(e.matches(this.stopNodeExpressions[t]))return!0;return!1},Gt.prototype.buildTextValNode=function(e,t,o,i,a){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName){const t=Pt(e);return this.indentate(i)+`<![CDATA[${t}]]>`+this.newLine}if(!1!==this.options.commentPropName&&t===this.options.commentPropName){const t=Ct(e);return this.indentate(i)+`\x3c!--${t}--\x3e`+this.newLine}if("?"===t[0])return this.indentate(i)+"<"+t+o+"?"+this.tagEndChar;{let a=this.options.tagValueProcessor(t,e);return a=this.replaceEntitiesValue(a),""===a?this.indentate(i)+"<"+t+o+this.closeTag(t)+this.tagEndChar:this.indentate(i)+"<"+t+o+">"+a+"</"+t+this.tagEndChar}},Gt.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const o=this.options.entities[t];e=e.replace(o.regex,o.val)}return e};const se=Gt,ae={validate:l};e.exports=o})()},87859:e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-dynamodb","description":"AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native","version":"3.1054.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-dynamodb","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 dynamodb","test":"yarn g:vitest run --passWithNoTests","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts","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:integration":"yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts","test:integration:watch":"yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts","test:watch":"yarn g:vitest watch --passWithNoTests"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.974.14","@aws-sdk/credential-provider-node":"^3.972.45","@aws-sdk/dynamodb-codec":"^3.973.14","@aws-sdk/middleware-endpoint-discovery":"^3.972.14","@aws-sdk/types":"^3.973.9","@smithy/core":"^3.24.3","@smithy/fetch-http-handler":"^5.4.3","@smithy/node-http-handler":"^4.7.3","@smithy/types":"^4.14.2","tslib":"^2.6.2"},"devDependencies":{"@smithy/snapshot-testing":"^2.1.3","@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","vitest":"^4.0.17"},"engines":{"node":">=20.0.0"},"typesVersions":{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-dynamodb","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-dynamodb"}}')},27413:e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-s3","description":"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native","version":"3.1054.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-s3","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 s3","test":"yarn g:vitest run","test:browser":"node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.mts","test:browser:watch":"node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.mts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts && yarn test:browser","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:integration":"yarn g:vitest run -c vitest.config.integ.mts","test:integration:watch":"yarn g:vitest watch -c vitest.config.integ.mts","test:watch":"yarn g:vitest watch"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha1-browser":"5.2.0","@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.974.14","@aws-sdk/credential-provider-node":"^3.972.45","@aws-sdk/middleware-bucket-endpoint":"^3.972.16","@aws-sdk/middleware-expect-continue":"^3.972.13","@aws-sdk/middleware-flexible-checksums":"^3.974.22","@aws-sdk/middleware-location-constraint":"^3.972.11","@aws-sdk/middleware-sdk-s3":"^3.972.43","@aws-sdk/middleware-ssec":"^3.972.11","@aws-sdk/signature-v4-multi-region":"^3.996.29","@aws-sdk/types":"^3.973.9","@smithy/core":"^3.24.3","@smithy/fetch-http-handler":"^5.4.3","@smithy/node-http-handler":"^4.7.3","@smithy/types":"^4.14.2","tslib":"^2.6.2"},"devDependencies":{"@aws-sdk/signature-v4-crt":"3.1054.0","@smithy/snapshot-testing":"^2.1.3","@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","vitest":"^4.0.17"},"engines":{"node":">=20.0.0"},"typesVersions":{"<4.5":{"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-s3","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-s3"}}')},36097:e=>{"use strict";e.exports=JSON.parse('{"af":{"and":["* ","En "],"background":["Agtergrond"],"but":["* ","Maar "],"examples":["Voorbeelde"],"feature":["Funksie","Besigheid Behoefte","Vermoë"],"given":["* ","Gegewe "],"name":"Afrikaans","native":"Afrikaans","rule":["Reël","Reel"],"scenario":["Voorbeeld","Situasie"],"scenarioOutline":["Situasie Uiteensetting"],"then":["* ","Dan "],"when":["* ","Wanneer "]},"am":{"and":["* ","Եվ "],"background":["Կոնտեքստ"],"but":["* ","Բայց "],"examples":["Օրինակներ"],"feature":["Ֆունկցիոնալություն","Հատկություն"],"given":["* ","Դիցուք "],"name":"Armenian","native":"հայերեն","rule":["Rule"],"scenario":["Օրինակ","Սցենար"],"scenarioOutline":["Սցենարի կառուցվացքը"],"then":["* ","Ապա "],"when":["* ","Եթե ","Երբ "]},"an":{"and":["* ","Y ","E "],"background":["Antecedents"],"but":["* ","Pero "],"examples":["Eixemplos"],"feature":["Caracteristica"],"given":["* ","Dau ","Dada ","Daus ","Dadas "],"name":"Aragonese","native":"Aragonés","rule":["Rule"],"scenario":["Eixemplo","Caso"],"scenarioOutline":["Esquema del caso"],"then":["* ","Alavez ","Allora ","Antonces "],"when":["* ","Cuan "]},"ar":{"and":["* ","و "],"background":["الخلفية"],"but":["* ","لكن "],"examples":["امثلة"],"feature":["خاصية"],"given":["* ","بفرض "],"name":"Arabic","native":"العربية","rule":["Rule"],"scenario":["مثال","سيناريو"],"scenarioOutline":["سيناريو مخطط"],"then":["* ","اذاً ","ثم "],"when":["* ","متى ","عندما "]},"ast":{"and":["* ","Y ","Ya "],"background":["Antecedentes"],"but":["* ","Peru "],"examples":["Exemplos"],"feature":["Carauterística"],"given":["* ","Dáu ","Dada ","Daos ","Daes "],"name":"Asturian","native":"asturianu","rule":["Rule"],"scenario":["Exemplo","Casu"],"scenarioOutline":["Esbozu del casu"],"then":["* ","Entós "],"when":["* ","Cuando "]},"az":{"and":["* ","Və ","Həm "],"background":["Keçmiş","Kontekst"],"but":["* ","Amma ","Ancaq "],"examples":["Nümunələr"],"feature":["Özəllik"],"given":["* ","Tutaq ki ","Verilir "],"name":"Azerbaijani","native":"Azərbaycanca","rule":["Rule"],"scenario":["Nümunə","Ssenari"],"scenarioOutline":["Ssenarinin strukturu"],"then":["* ","O halda "],"when":["* ","Əgər ","Nə vaxt ki "]},"be":{"and":["* ","I ","Ды ","Таксама "],"background":["Кантэкст"],"but":["* ","Але ","Інакш "],"examples":["Прыклады"],"feature":["Функцыянальнасць","Фіча"],"given":["* ","Няхай ","Дадзена "],"name":"Belarusian","native":"Беларуская","rule":["Правілы"],"scenario":["Сцэнарый","Cцэнар"],"scenarioOutline":["Шаблон сцэнарыя","Узор сцэнара"],"then":["* ","Тады "],"when":["* ","Калі "]},"bg":{"and":["* ","И "],"background":["Предистория"],"but":["* ","Но "],"examples":["Примери"],"feature":["Функционалност"],"given":["* ","Дадено "],"name":"Bulgarian","native":"български","rule":["Правило"],"scenario":["Пример","Сценарий"],"scenarioOutline":["Рамка на сценарий"],"then":["* ","То "],"when":["* ","Когато "]},"bm":{"and":["* ","Dan "],"background":["Latar Belakang"],"but":["* ","Tetapi ","Tapi "],"examples":["Contoh"],"feature":["Fungsi"],"given":["* ","Diberi ","Bagi "],"name":"Malay","native":"Bahasa Melayu","rule":["Rule"],"scenario":["Senario","Situasi","Keadaan"],"scenarioOutline":["Kerangka Senario","Kerangka Situasi","Kerangka Keadaan","Garis Panduan Senario"],"then":["* ","Maka ","Kemudian "],"when":["* ","Apabila "]},"bs":{"and":["* ","I ","A "],"background":["Pozadina"],"but":["* ","Ali "],"examples":["Primjeri"],"feature":["Karakteristika"],"given":["* ","Dato "],"name":"Bosnian","native":"Bosanski","rule":["Rule"],"scenario":["Primjer","Scenariju","Scenario"],"scenarioOutline":["Scenariju-obris","Scenario-outline"],"then":["* ","Zatim "],"when":["* ","Kada "]},"ca":{"and":["* ","I "],"background":["Rerefons","Antecedents"],"but":["* ","Però "],"examples":["Exemples"],"feature":["Característica","Funcionalitat"],"given":["* ","Donat ","Donada ","Atès ","Atesa "],"name":"Catalan","native":"català","rule":["Rule"],"scenario":["Exemple","Escenari"],"scenarioOutline":["Esquema de l\'escenari"],"then":["* ","Aleshores ","Cal "],"when":["* ","Quan "]},"cs":{"and":["* ","A také ","A "],"background":["Pozadí","Kontext"],"but":["* ","Ale "],"examples":["Příklady"],"feature":["Požadavek"],"given":["* ","Pokud ","Za předpokladu "],"name":"Czech","native":"Česky","rule":["Pravidlo"],"scenario":["Příklad","Scénář"],"scenarioOutline":["Náčrt Scénáře","Osnova scénáře"],"then":["* ","Pak "],"when":["* ","Když "]},"cy-GB":{"and":["* ","A "],"background":["Cefndir"],"but":["* ","Ond "],"examples":["Enghreifftiau"],"feature":["Arwedd"],"given":["* ","Anrhegedig a "],"name":"Welsh","native":"Cymraeg","rule":["Rule"],"scenario":["Enghraifft","Scenario"],"scenarioOutline":["Scenario Amlinellol"],"then":["* ","Yna "],"when":["* ","Pryd "]},"da":{"and":["* ","Og "],"background":["Baggrund"],"but":["* ","Men "],"examples":["Eksempler"],"feature":["Egenskab"],"given":["* ","Givet "],"name":"Danish","native":"dansk","rule":["Regel"],"scenario":["Eksempel","Scenarie"],"scenarioOutline":["Abstrakt Scenario"],"then":["* ","Så "],"when":["* ","Når "]},"de":{"and":["* ","Und "],"background":["Grundlage","Hintergrund","Voraussetzungen","Vorbedingungen"],"but":["* ","Aber "],"examples":["Beispiele"],"feature":["Funktionalität","Funktion"],"given":["* ","Angenommen ","Gegeben sei ","Gegeben seien "],"name":"German","native":"Deutsch","rule":["Rule","Regel"],"scenario":["Beispiel","Szenario"],"scenarioOutline":["Szenariogrundriss","Szenarien"],"then":["* ","Dann "],"when":["* ","Wenn "]},"el":{"and":["* ","Και "],"background":["Υπόβαθρο"],"but":["* ","Αλλά "],"examples":["Παραδείγματα","Σενάρια"],"feature":["Δυνατότητα","Λειτουργία"],"given":["* ","Δεδομένου "],"name":"Greek","native":"Ελληνικά","rule":["Rule"],"scenario":["Παράδειγμα","Σενάριο"],"scenarioOutline":["Περιγραφή Σεναρίου","Περίγραμμα Σεναρίου"],"then":["* ","Τότε "],"when":["* ","Όταν "]},"em":{"and":["* ","😂"],"background":["💤"],"but":["* ","😔"],"examples":["📓"],"feature":["📚"],"given":["* ","😐"],"name":"Emoji","native":"😀","rule":["Rule"],"scenario":["🥒","📕"],"scenarioOutline":["📖"],"then":["* ","🙏"],"when":["* ","🎬"]},"en":{"and":["* ","And "],"background":["Background"],"but":["* ","But "],"examples":["Examples","Scenarios"],"feature":["Feature","Business Need","Ability"],"given":["* ","Given "],"name":"English","native":"English","rule":["Rule"],"scenario":["Example","Scenario"],"scenarioOutline":["Scenario Outline","Scenario Template"],"then":["* ","Then "],"when":["* ","When "]},"en-Scouse":{"and":["* ","An "],"background":["Dis is what went down"],"but":["* ","Buh "],"examples":["Examples"],"feature":["Feature"],"given":["* ","Givun ","Youse know when youse got "],"name":"Scouse","native":"Scouse","rule":["Rule"],"scenario":["The thing of it is"],"scenarioOutline":["Wharrimean is"],"then":["* ","Dun ","Den youse gotta "],"when":["* ","Wun ","Youse know like when "]},"en-au":{"and":["* ","Too right "],"background":["First off"],"but":["* ","Yeah nah "],"examples":["You\'ll wanna"],"feature":["Pretty much"],"given":["* ","Y\'know "],"name":"Australian","native":"Australian","rule":["Rule"],"scenario":["Awww, look mate"],"scenarioOutline":["Reckon it\'s like"],"then":["* ","But at the end of the day I reckon "],"when":["* ","It\'s just unbelievable "]},"en-lol":{"and":["* ","AN "],"background":["B4"],"but":["* ","BUT "],"examples":["EXAMPLZ"],"feature":["OH HAI"],"given":["* ","I CAN HAZ "],"name":"LOLCAT","native":"LOLCAT","rule":["Rule"],"scenario":["MISHUN"],"scenarioOutline":["MISHUN SRSLY"],"then":["* ","DEN "],"when":["* ","WEN "]},"en-old":{"and":["* ","Ond ","7 "],"background":["Aer","Ær"],"but":["* ","Ac "],"examples":["Se the","Se þe","Se ðe"],"feature":["Hwaet","Hwæt"],"given":["* ","Thurh ","Þurh ","Ðurh "],"name":"Old English","native":"Englisc","rule":["Rule"],"scenario":["Swa"],"scenarioOutline":["Swa hwaer swa","Swa hwær swa"],"then":["* ","Tha ","Þa ","Ða ","Tha the ","Þa þe ","Ða ðe "],"when":["* ","Bæþsealf ","Bæþsealfa ","Bæþsealfe ","Ciricæw ","Ciricæwe ","Ciricæwa "]},"en-pirate":{"and":["* ","Aye "],"background":["Yo-ho-ho"],"but":["* ","Avast! "],"examples":["Dead men tell no tales"],"feature":["Ahoy matey!"],"given":["* ","Gangway! "],"name":"Pirate","native":"Pirate","rule":["Rule"],"scenario":["Heave to"],"scenarioOutline":["Shiver me timbers"],"then":["* ","Let go and haul "],"when":["* ","Blimey! "]},"en-tx":{"and":["Come hell or high water "],"background":["Lemme tell y\'all a story"],"but":["Well now hold on, I\'ll you what "],"examples":["Now that\'s a story longer than a cattle drive in July"],"feature":["This ain’t my first rodeo","All gussied up"],"given":["Fixin\' to ","All git out "],"name":"Texas","native":"Texas","rule":["Rule "],"scenario":["All hat and no cattle"],"scenarioOutline":["Serious as a snake bite","Busy as a hound in flea season"],"then":["There’s no tree but bears some fruit "],"when":["Quick out of the chute "]},"eo":{"and":["* ","Kaj "],"background":["Fono"],"but":["* ","Sed "],"examples":["Ekzemploj"],"feature":["Trajto"],"given":["* ","Donitaĵo ","Komence "],"name":"Esperanto","native":"Esperanto","rule":["Regulo"],"scenario":["Ekzemplo","Scenaro","Kazo"],"scenarioOutline":["Konturo de la scenaro","Skizo","Kazo-skizo"],"then":["* ","Do "],"when":["* ","Se "]},"es":{"and":["* ","Y ","E "],"background":["Antecedentes"],"but":["* ","Pero "],"examples":["Ejemplos"],"feature":["Característica","Necesidad del negocio","Requisito"],"given":["* ","Dado ","Dada ","Dados ","Dadas "],"name":"Spanish","native":"español","rule":["Regla","Regla de negocio"],"scenario":["Ejemplo","Escenario"],"scenarioOutline":["Esquema del escenario"],"then":["* ","Entonces "],"when":["* ","Cuando "]},"et":{"and":["* ","Ja "],"background":["Taust"],"but":["* ","Kuid "],"examples":["Juhtumid"],"feature":["Omadus"],"given":["* ","Eeldades "],"name":"Estonian","native":"eesti keel","rule":["Reegel"],"scenario":["Juhtum","Stsenaarium"],"scenarioOutline":["Raamjuhtum","Raamstsenaarium"],"then":["* ","Siis "],"when":["* ","Kui "]},"fa":{"and":["* ","و "],"background":["زمینه"],"but":["* ","اما "],"examples":["نمونه ها"],"feature":["وِیژگی"],"given":["* ","با فرض "],"name":"Persian","native":"فارسی","rule":["Rule"],"scenario":["مثال","سناریو"],"scenarioOutline":["الگوی سناریو"],"then":["* ","آنگاه "],"when":["* ","هنگامی "]},"fi":{"and":["* ","Ja "],"background":["Tausta"],"but":["* ","Mutta "],"examples":["Tapaukset"],"feature":["Ominaisuus"],"given":["* ","Oletetaan "],"name":"Finnish","native":"suomi","rule":["Rule"],"scenario":["Tapaus"],"scenarioOutline":["Tapausaihio"],"then":["* ","Niin "],"when":["* ","Kun "]},"fr":{"and":["* ","Et que ","Et qu\'","Et "],"background":["Contexte"],"but":["* ","Mais que ","Mais qu\'","Mais "],"examples":["Exemples"],"feature":["Fonctionnalité"],"given":["* ","Soit ","Sachant que ","Sachant qu\'","Sachant ","Etant donné que ","Etant donné qu\'","Etant donné ","Etant donnée ","Etant donnés ","Etant données ","Étant donné que ","Étant donné qu\'","Étant donné ","Étant donnée ","Étant donnés ","Étant données "],"name":"French","native":"français","rule":["Règle"],"scenario":["Exemple","Scénario"],"scenarioOutline":["Plan du scénario","Plan du Scénario"],"then":["* ","Alors ","Donc "],"when":["* ","Quand ","Lorsque ","Lorsqu\'"]},"ga":{"and":["* ","Agus "],"background":["Cúlra"],"but":["* ","Ach "],"examples":["Samplaí"],"feature":["Gné"],"given":["* ","Cuir i gcás go ","Cuir i gcás nach ","Cuir i gcás gur ","Cuir i gcás nár "],"name":"Irish","native":"Gaeilge","rule":["Riail"],"scenario":["Sampla","Cás"],"scenarioOutline":["Cás Achomair"],"then":["* ","Ansin "],"when":["* ","Nuair a ","Nuair nach ","Nuair ba ","Nuair nár "]},"gj":{"and":["* ","અને "],"background":["બેકગ્રાઉન્ડ"],"but":["* ","પણ "],"examples":["ઉદાહરણો"],"feature":["લક્ષણ","વ્યાપાર જરૂર","ક્ષમતા"],"given":["* ","આપેલ છે "],"name":"Gujarati","native":"ગુજરાતી","rule":["નિયમ"],"scenario":["ઉદાહરણ","સ્થિતિ"],"scenarioOutline":["પરિદ્દશ્ય રૂપરેખા","પરિદ્દશ્ય ઢાંચો"],"then":["* ","પછી "],"when":["* ","ક્યારે "]},"gl":{"and":["* ","E "],"background":["Contexto"],"but":["* ","Mais ","Pero "],"examples":["Exemplos"],"feature":["Característica"],"given":["* ","Dado ","Dada ","Dados ","Dadas "],"name":"Galician","native":"galego","rule":["Rule"],"scenario":["Exemplo","Escenario"],"scenarioOutline":["Esbozo do escenario"],"then":["* ","Entón ","Logo "],"when":["* ","Cando "]},"he":{"and":["* ","וגם "],"background":["רקע"],"but":["* ","אבל "],"examples":["דוגמאות"],"feature":["תכונה"],"given":["* ","בהינתן "],"name":"Hebrew","native":"עברית","rule":["כלל"],"scenario":["דוגמא","תרחיש"],"scenarioOutline":["תבנית תרחיש"],"then":["* ","אז ","אזי "],"when":["* ","כאשר "]},"hi":{"and":["* ","और ","तथा "],"background":["पृष्ठभूमि"],"but":["* ","पर ","परन्तु ","किन्तु "],"examples":["उदाहरण"],"feature":["रूप लेख"],"given":["* ","अगर ","यदि ","चूंकि "],"name":"Hindi","native":"हिंदी","rule":["नियम"],"scenario":["परिदृश्य"],"scenarioOutline":["परिदृश्य रूपरेखा"],"then":["* ","तब ","तदा "],"when":["* ","जब ","कदा "]},"hr":{"and":["* ","I "],"background":["Pozadina"],"but":["* ","Ali "],"examples":["Primjeri","Scenariji"],"feature":["Osobina","Mogućnost","Mogucnost"],"given":["* ","Zadan ","Zadani ","Zadano ","Ukoliko "],"name":"Croatian","native":"hrvatski","rule":["Rule"],"scenario":["Primjer","Scenarij"],"scenarioOutline":["Skica","Koncept"],"then":["* ","Onda "],"when":["* ","Kada ","Kad "]},"ht":{"and":["* ","Ak ","Epi ","E "],"background":["Kontèks","Istorik"],"but":["* ","Men "],"examples":["Egzanp"],"feature":["Karakteristik","Mak","Fonksyonalite"],"given":["* ","Sipoze ","Sipoze ke ","Sipoze Ke "],"name":"Creole","native":"kreyòl","rule":["Rule"],"scenario":["Senaryo"],"scenarioOutline":["Plan senaryo","Plan Senaryo","Senaryo deskripsyon","Senaryo Deskripsyon","Dyagram senaryo","Dyagram Senaryo"],"then":["* ","Lè sa a ","Le sa a "],"when":["* ","Lè ","Le "]},"hu":{"and":["* ","És "],"background":["Háttér"],"but":["* ","De "],"examples":["Példák"],"feature":["Jellemző"],"given":["* ","Amennyiben ","Adott "],"name":"Hungarian","native":"magyar","rule":["Szabály"],"scenario":["Példa","Forgatókönyv"],"scenarioOutline":["Forgatókönyv vázlat"],"then":["* ","Akkor "],"when":["* ","Majd ","Ha ","Amikor "]},"id":{"and":["* ","Dan "],"background":["Dasar","Latar Belakang"],"but":["* ","Tapi ","Tetapi "],"examples":["Contoh","Misal"],"feature":["Fitur"],"given":["* ","Dengan ","Diketahui ","Diasumsikan ","Bila ","Jika "],"name":"Indonesian","native":"Bahasa Indonesia","rule":["Rule","Aturan"],"scenario":["Skenario"],"scenarioOutline":["Skenario konsep","Garis-Besar Skenario"],"then":["* ","Maka ","Kemudian "],"when":["* ","Ketika "]},"is":{"and":["* ","Og "],"background":["Bakgrunnur"],"but":["* ","En "],"examples":["Dæmi","Atburðarásir"],"feature":["Eiginleiki"],"given":["* ","Ef "],"name":"Icelandic","native":"Íslenska","rule":["Rule"],"scenario":["Atburðarás"],"scenarioOutline":["Lýsing Atburðarásar","Lýsing Dæma"],"then":["* ","Þá "],"when":["* ","Þegar "]},"it":{"and":["* ","E ","Ed "],"background":["Contesto"],"but":["* ","Ma "],"examples":["Esempi"],"feature":["Funzionalità","Esigenza di Business","Abilità"],"given":["* ","Dato ","Data ","Dati ","Date "],"name":"Italian","native":"italiano","rule":["Regola"],"scenario":["Esempio","Scenario"],"scenarioOutline":["Schema dello scenario"],"then":["* ","Allora "],"when":["* ","Quando "]},"ja":{"and":["* ","且つ","かつ"],"background":["背景"],"but":["* ","然し","しかし","但し","ただし"],"examples":["例","サンプル"],"feature":["フィーチャ","機能"],"given":["* ","前提"],"name":"Japanese","native":"日本語","rule":["ルール"],"scenario":["シナリオ"],"scenarioOutline":["シナリオアウトライン","シナリオテンプレート","テンプレ","シナリオテンプレ"],"then":["* ","ならば"],"when":["* ","もし"]},"jv":{"and":["* ","Lan "],"background":["Dasar"],"but":["* ","Tapi ","Nanging ","Ananging "],"examples":["Conto","Contone"],"feature":["Fitur"],"given":["* ","Nalika ","Nalikaning "],"name":"Javanese","native":"Basa Jawa","rule":["Rule"],"scenario":["Skenario"],"scenarioOutline":["Konsep skenario"],"then":["* ","Njuk ","Banjur "],"when":["* ","Manawa ","Menawa "]},"ka":{"and":["* ","და ","ასევე "],"background":["კონტექსტი"],"but":["* ","მაგრამ ","თუმცა "],"examples":["მაგალითები"],"feature":["თვისება","მოთხოვნა"],"given":["* ","მოცემული ","მოცემულია ","ვთქვათ "],"name":"Georgian","native":"ქართული","rule":["წესი"],"scenario":["მაგალითად","მაგალითი","მაგ","სცენარი"],"scenarioOutline":["სცენარის ნიმუში","სცენარის შაბლონი","ნიმუში","შაბლონი"],"then":["* ","მაშინ "],"when":["* ","როდესაც ","როცა ","როგორც კი ","თუ "]},"kn":{"and":["* ","ಮತ್ತು "],"background":["ಹಿನ್ನೆಲೆ"],"but":["* ","ಆದರೆ "],"examples":["ಉದಾಹರಣೆಗಳು"],"feature":["ಹೆಚ್ಚಳ"],"given":["* ","ನೀಡಿದ "],"name":"Kannada","native":"ಕನ್ನಡ","rule":["Rule"],"scenario":["ಉದಾಹರಣೆ","ಕಥಾಸಾರಾಂಶ"],"scenarioOutline":["ವಿವರಣೆ"],"then":["* ","ನಂತರ "],"when":["* ","ಸ್ಥಿತಿಯನ್ನು "]},"ko":{"and":["* ","그리고 "],"background":["배경"],"but":["* ","하지만 ","단 "],"examples":["예"],"feature":["기능"],"given":["* ","조건 ","먼저 "],"name":"Korean","native":"한국어","rule":["규칙"],"scenario":["시나리오"],"scenarioOutline":["시나리오 개요"],"then":["* ","그러면 "],"when":["* ","만일 ","만약 "]},"lt":{"and":["* ","Ir "],"background":["Kontekstas"],"but":["* ","Bet "],"examples":["Pavyzdžiai","Scenarijai","Variantai"],"feature":["Savybė"],"given":["* ","Duota "],"name":"Lithuanian","native":"lietuvių kalba","rule":["Rule"],"scenario":["Pavyzdys","Scenarijus"],"scenarioOutline":["Scenarijaus šablonas"],"then":["* ","Tada "],"when":["* ","Kai "]},"lu":{"and":["* ","an ","a "],"background":["Hannergrond"],"but":["* ","awer ","mä "],"examples":["Beispiller"],"feature":["Funktionalitéit"],"given":["* ","ugeholl "],"name":"Luxemburgish","native":"Lëtzebuergesch","rule":["Rule"],"scenario":["Beispill","Szenario"],"scenarioOutline":["Plang vum Szenario"],"then":["* ","dann "],"when":["* ","wann "]},"lv":{"and":["* ","Un "],"background":["Konteksts","Situācija"],"but":["* ","Bet "],"examples":["Piemēri","Paraugs"],"feature":["Funkcionalitāte","Fīča"],"given":["* ","Kad "],"name":"Latvian","native":"latviešu","rule":["Rule"],"scenario":["Piemērs","Scenārijs"],"scenarioOutline":["Scenārijs pēc parauga"],"then":["* ","Tad "],"when":["* ","Ja "]},"mk-Cyrl":{"and":["* ","И "],"background":["Контекст","Содржина"],"but":["* ","Но "],"examples":["Примери","Сценарија"],"feature":["Функционалност","Бизнис потреба","Можност"],"given":["* ","Дадено ","Дадена "],"name":"Macedonian","native":"Македонски","rule":["Rule"],"scenario":["Пример","Сценарио","На пример"],"scenarioOutline":["Преглед на сценарија","Скица","Концепт"],"then":["* ","Тогаш "],"when":["* ","Кога "]},"mk-Latn":{"and":["* ","I "],"background":["Kontekst","Sodrzhina"],"but":["* ","No "],"examples":["Primeri","Scenaria"],"feature":["Funkcionalnost","Biznis potreba","Mozhnost"],"given":["* ","Dadeno ","Dadena "],"name":"Macedonian (Latin)","native":"Makedonski (Latinica)","rule":["Rule"],"scenario":["Scenario","Na primer"],"scenarioOutline":["Pregled na scenarija","Skica","Koncept"],"then":["* ","Togash "],"when":["* ","Koga "]},"mn":{"and":["* ","Мөн ","Тэгээд "],"background":["Агуулга"],"but":["* ","Гэхдээ ","Харин "],"examples":["Тухайлбал"],"feature":["Функц","Функционал"],"given":["* ","Өгөгдсөн нь ","Анх "],"name":"Mongolian","native":"монгол","rule":["Rule"],"scenario":["Сценар"],"scenarioOutline":["Сценарын төлөвлөгөө"],"then":["* ","Тэгэхэд ","Үүний дараа "],"when":["* ","Хэрэв "]},"ne":{"and":["* ","र ","अनि "],"background":["पृष्ठभूमी"],"but":["* ","तर "],"examples":["उदाहरण","उदाहरणहरु"],"feature":["सुविधा","विशेषता"],"given":["* ","दिइएको ","दिएको ","यदि "],"name":"Nepali","native":"नेपाली","rule":["नियम"],"scenario":["परिदृश्य"],"scenarioOutline":["परिदृश्य रूपरेखा"],"then":["* ","त्यसपछि ","अनी "],"when":["* ","जब "]},"nl":{"and":["* ","En "],"background":["Achtergrond"],"but":["* ","Maar "],"examples":["Voorbeelden"],"feature":["Functionaliteit"],"given":["* ","Gegeven ","Stel "],"name":"Dutch","native":"Nederlands","rule":["Regel"],"scenario":["Voorbeeld","Scenario"],"scenarioOutline":["Abstract Scenario"],"then":["* ","Dan "],"when":["* ","Als ","Wanneer "]},"no":{"and":["* ","Og "],"background":["Bakgrunn"],"but":["* ","Men "],"examples":["Eksempler"],"feature":["Egenskap"],"given":["* ","Gitt "],"name":"Norwegian","native":"norsk","rule":["Regel"],"scenario":["Eksempel","Scenario"],"scenarioOutline":["Scenariomal","Abstrakt Scenario"],"then":["* ","Så "],"when":["* ","Når "]},"pa":{"and":["* ","ਅਤੇ "],"background":["ਪਿਛੋਕੜ"],"but":["* ","ਪਰ "],"examples":["ਉਦਾਹਰਨਾਂ"],"feature":["ਖਾਸੀਅਤ","ਮੁਹਾਂਦਰਾ","ਨਕਸ਼ ਨੁਹਾਰ"],"given":["* ","ਜੇਕਰ ","ਜਿਵੇਂ ਕਿ "],"name":"Panjabi","native":"ਪੰਜਾਬੀ","rule":["Rule"],"scenario":["ਉਦਾਹਰਨ","ਪਟਕਥਾ"],"scenarioOutline":["ਪਟਕਥਾ ਢਾਂਚਾ","ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ"],"then":["* ","ਤਦ "],"when":["* ","ਜਦੋਂ "]},"pl":{"and":["* ","Oraz ","I "],"background":["Założenia"],"but":["* ","Ale "],"examples":["Przykłady"],"feature":["Właściwość","Funkcja","Aspekt","Potrzeba biznesowa"],"given":["* ","Zakładając ","Mając ","Zakładając, że "],"name":"Polish","native":"polski","rule":["Zasada","Reguła"],"scenario":["Przykład","Scenariusz"],"scenarioOutline":["Szablon scenariusza"],"then":["* ","Wtedy "],"when":["* ","Jeżeli ","Jeśli ","Gdy ","Kiedy "]},"pt":{"and":["* ","E "],"background":["Contexto","Cenário de Fundo","Cenario de Fundo","Fundo"],"but":["* ","Mas "],"examples":["Exemplos","Cenários","Cenarios"],"feature":["Funcionalidade","Característica","Caracteristica"],"given":["* ","Dado ","Dada ","Dados ","Dadas "],"name":"Portuguese","native":"português","rule":["Regra"],"scenario":["Exemplo","Cenário","Cenario"],"scenarioOutline":["Esquema do Cenário","Esquema do Cenario","Delineação do Cenário","Delineacao do Cenario"],"then":["* ","Então ","Entao "],"when":["* ","Quando "]},"ro":{"and":["* ","Si ","Și ","Şi "],"background":["Context"],"but":["* ","Dar "],"examples":["Exemple"],"feature":["Functionalitate","Funcționalitate","Funcţionalitate"],"given":["* ","Date fiind ","Dat fiind ","Dată fiind","Dati fiind ","Dați fiind ","Daţi fiind "],"name":"Romanian","native":"română","rule":["Rule"],"scenario":["Exemplu","Scenariu"],"scenarioOutline":["Structura scenariu","Structură scenariu"],"then":["* ","Atunci "],"when":["* ","Cand ","Când "]},"ru":{"and":["* ","И ","К тому же ","Также "],"background":["Предыстория","Контекст"],"but":["* ","Но ","А ","Иначе "],"examples":["Примеры","Значения"],"feature":["Функция","Функциональность","Функционал","Свойство","Фича"],"given":["* ","Допустим ","Дано ","Пусть "],"name":"Russian","native":"русский","rule":["Правило"],"scenario":["Пример","Сценарий"],"scenarioOutline":["Структура сценария","Шаблон сценария"],"then":["* ","То ","Затем ","Тогда "],"when":["* ","Когда ","Если "]},"sk":{"and":["* ","A ","A tiež ","A taktiež ","A zároveň "],"background":["Pozadie"],"but":["* ","Ale "],"examples":["Príklady"],"feature":["Požiadavka","Funkcia","Vlastnosť"],"given":["* ","Pokiaľ ","Za predpokladu "],"name":"Slovak","native":"Slovensky","rule":["Rule"],"scenario":["Príklad","Scenár"],"scenarioOutline":["Náčrt Scenáru","Náčrt Scenára","Osnova Scenára"],"then":["* ","Tak ","Potom "],"when":["* ","Keď ","Ak "]},"sl":{"and":["In ","Ter "],"background":["Kontekst","Osnova","Ozadje"],"but":["Toda ","Ampak ","Vendar "],"examples":["Primeri","Scenariji"],"feature":["Funkcionalnost","Funkcija","Možnosti","Moznosti","Lastnost","Značilnost"],"given":["Dano ","Podano ","Zaradi ","Privzeto "],"name":"Slovenian","native":"Slovenski","rule":["Rule"],"scenario":["Primer","Scenarij"],"scenarioOutline":["Struktura scenarija","Skica","Koncept","Oris scenarija","Osnutek"],"then":["Nato ","Potem ","Takrat "],"when":["Ko ","Ce ","Če ","Kadar "]},"sr-Cyrl":{"and":["* ","И "],"background":["Контекст","Основа","Позадина"],"but":["* ","Али "],"examples":["Примери","Сценарији"],"feature":["Функционалност","Могућност","Особина"],"given":["* ","За дато ","За дате ","За дати "],"name":"Serbian","native":"Српски","rule":["Правило"],"scenario":["Сценарио","Пример"],"scenarioOutline":["Структура сценарија","Скица","Концепт"],"then":["* ","Онда "],"when":["* ","Када ","Кад "]},"sr-Latn":{"and":["* ","I "],"background":["Kontekst","Osnova","Pozadina"],"but":["* ","Ali "],"examples":["Primeri","Scenariji"],"feature":["Funkcionalnost","Mogućnost","Mogucnost","Osobina"],"given":["* ","Za dato ","Za date ","Za dati "],"name":"Serbian (Latin)","native":"Srpski (Latinica)","rule":["Pravilo"],"scenario":["Scenario","Primer"],"scenarioOutline":["Struktura scenarija","Skica","Koncept"],"then":["* ","Onda "],"when":["* ","Kada ","Kad "]},"sv":{"and":["* ","Och "],"background":["Bakgrund"],"but":["* ","Men "],"examples":["Exempel"],"feature":["Egenskap"],"given":["* ","Givet "],"name":"Swedish","native":"Svenska","rule":["Regel"],"scenario":["Scenario"],"scenarioOutline":["Abstrakt Scenario","Scenariomall"],"then":["* ","Så "],"when":["* ","När "]},"ta":{"and":["* ","மேலும் ","மற்றும் "],"background":["பின்னணி"],"but":["* ","ஆனால் "],"examples":["எடுத்துக்காட்டுகள்","காட்சிகள்","நிலைமைகளில்"],"feature":["அம்சம்","வணிக தேவை","திறன்"],"given":["* ","கொடுக்கப்பட்ட "],"name":"Tamil","native":"தமிழ்","rule":["Rule"],"scenario":["உதாரணமாக","காட்சி"],"scenarioOutline":["காட்சி சுருக்கம்","காட்சி வார்ப்புரு"],"then":["* ","அப்பொழுது "],"when":["* ","எப்போது "]},"th":{"and":["* ","และ "],"background":["แนวคิด"],"but":["* ","แต่ "],"examples":["ชุดของตัวอย่าง","ชุดของเหตุการณ์"],"feature":["โครงหลัก","ความต้องการทางธุรกิจ","ความสามารถ"],"given":["* ","กำหนดให้ "],"name":"Thai","native":"ไทย","rule":["Rule"],"scenario":["เหตุการณ์"],"scenarioOutline":["สรุปเหตุการณ์","โครงสร้างของเหตุการณ์"],"then":["* ","ดังนั้น "],"when":["* ","เมื่อ "]},"te":{"and":["* ","మరియు "],"background":["నేపథ్యం"],"but":["* ","కాని "],"examples":["ఉదాహరణలు"],"feature":["గుణము"],"given":["* ","చెప్పబడినది "],"name":"Telugu","native":"తెలుగు","rule":["Rule"],"scenario":["ఉదాహరణ","సన్నివేశం"],"scenarioOutline":["కథనం"],"then":["* ","అప్పుడు "],"when":["* ","ఈ పరిస్థితిలో "]},"tlh":{"and":["* ","\'ej ","latlh "],"background":["mo\'"],"but":["* ","\'ach ","\'a "],"examples":["ghantoH","lutmey"],"feature":["Qap","Qu\'meH \'ut","perbogh","poQbogh malja\'","laH"],"given":["* ","ghu\' noblu\' ","DaH ghu\' bejlu\' "],"name":"Klingon","native":"tlhIngan","rule":["Rule"],"scenario":["lut"],"scenarioOutline":["lut chovnatlh"],"then":["* ","vaj "],"when":["* ","qaSDI\' "]},"tr":{"and":["* ","Ve ","Hem de ","Bir de ","Ayrıca ","İlaveten ","Buna ek olarak "],"background":["Geçmiş","Arka Plan","Ön Koşul","Önkoşul","Önceki Durum","Giriş","Mukaddime","Mevcut Durum"],"but":["* ","Fakat ","Ama ","Ancak ","Yalnız ","Lakin ","Meğer ki ","Buna mukabil ","Aksi halde "],"examples":["Örnekler","Değerler"],"feature":["Özellik","İş Gereksinimi","Gereksinim","İşlev","Kullanıcı Hikayesi","Yetenek","Teknik Gereksinim"],"given":["* ","Mevcut ","Önceden ","Geçmişte ","Daha önce ","Halihazırda ","Zaten ","Sistemde ","Diyelim ki ","Varsayalım ki ","Farz edelim ki ","Kabul edelim ki ","Başlangıçta ","Varsayılan olarak ","Biliniyor ki "],"name":"Turkish","native":"Türkçe","rule":["Kural","İş Kuralı","Kaide","Hüküm","Madde"],"scenario":["Örnek","Senaryo","Durum","Vaka"],"scenarioOutline":["Senaryo taslağı","Senaryo şablonu"],"then":["* ","Beklenen ","O zaman ","Sonuç olarak ","Böylece ","Bunun üzerine ","Bu durumda ","O takdirde ","Şu halde ","Netice itibariyle ","Buna binaen "],"when":["* ","Eğer ","Eğer ki ","Ne zaman ","Ne zaman ki ","Şayet "]},"tt":{"and":["* ","Һәм ","Вә "],"background":["Кереш"],"but":["* ","Ләкин ","Әмма "],"examples":["Үрнәкләр","Мисаллар"],"feature":["Мөмкинлек","Үзенчәлеклелек"],"given":["* ","Әйтик "],"name":"Tatar","native":"Татарча","rule":["Rule"],"scenario":["Сценарий"],"scenarioOutline":["Сценарийның төзелеше"],"then":["* ","Нәтиҗәдә "],"when":["* ","Әгәр "]},"uk":{"and":["* ","І ","А також ","Та "],"background":["Передумова"],"but":["* ","Але "],"examples":["Приклади"],"feature":["Функціонал"],"given":["* ","Припустимо ","Припустимо, що ","Нехай ","Дано "],"name":"Ukrainian","native":"Українська","rule":["Rule"],"scenario":["Приклад","Сценарій"],"scenarioOutline":["Структура сценарію"],"then":["* ","То ","Тоді "],"when":["* ","Якщо ","Коли "]},"ur":{"and":["* ","اور "],"background":["پس منظر"],"but":["* ","لیکن "],"examples":["مثالیں"],"feature":["صلاحیت","کاروبار کی ضرورت","خصوصیت"],"given":["* ","اگر ","بالفرض ","فرض کیا "],"name":"Urdu","native":"اردو","rule":["Rule"],"scenario":["منظرنامہ"],"scenarioOutline":["منظر نامے کا خاکہ"],"then":["* ","پھر ","تب "],"when":["* ","جب "]},"uz":{"and":["* ","Ва "],"background":["Тарих"],"but":["* ","Лекин ","Бирок ","Аммо "],"examples":["Мисоллар"],"feature":["Функционал"],"given":["* ","Belgilangan "],"name":"Uzbek","native":"Узбекча","rule":["Rule"],"scenario":["Сценарий"],"scenarioOutline":["Сценарий структураси"],"then":["* ","Унда "],"when":["* ","Агар "]},"vi":{"and":["* ","Và "],"background":["Bối cảnh"],"but":["* ","Nhưng "],"examples":["Dữ liệu"],"feature":["Tính năng"],"given":["* ","Biết ","Cho "],"name":"Vietnamese","native":"Tiếng Việt","rule":["Quy tắc"],"scenario":["Tình huống","Kịch bản"],"scenarioOutline":["Khung tình huống","Khung kịch bản"],"then":["* ","Thì "],"when":["* ","Khi "]},"zh-CN":{"and":["* ","而且","并且","同时"],"background":["背景"],"but":["* ","但是"],"examples":["例子"],"feature":["功能"],"given":["* ","假如","假设","假定"],"name":"Chinese simplified","native":"简体中文","rule":["Rule","规则"],"scenario":["场景","剧本"],"scenarioOutline":["场景大纲","剧本大纲"],"then":["* ","那么"],"when":["* ","当"]},"ml":{"and":["* ","ഒപ്പം"],"background":["പശ്ചാത്തലം"],"but":["* ","പക്ഷേ"],"examples":["ഉദാഹരണങ്ങൾ"],"feature":["സവിശേഷത"],"given":["* ","നൽകിയത്"],"name":"Malayalam","native":"മലയാളം","rule":["നിയമം"],"scenario":["രംഗം"],"scenarioOutline":["സാഹചര്യത്തിന്റെ രൂപരേഖ"],"then":["* ","പിന്നെ"],"when":["എപ്പോൾ"]},"zh-TW":{"and":["* ","而且","並且","同時"],"background":["背景"],"but":["* ","但是"],"examples":["例子"],"feature":["功能"],"given":["* ","假如","假設","假定"],"name":"Chinese traditional","native":"繁體中文","rule":["Rule"],"scenario":["場景","劇本"],"scenarioOutline":["場景大綱","劇本大綱"],"then":["* ","那麼"],"when":["* ","當"]},"mr":{"and":["* ","आणि ","तसेच "],"background":["पार्श्वभूमी"],"but":["* ","पण ","परंतु "],"examples":["उदाहरण"],"feature":["वैशिष्ट्य","सुविधा"],"given":["* ","जर","दिलेल्या प्रमाणे "],"name":"Marathi","native":"मराठी","rule":["नियम"],"scenario":["परिदृश्य"],"scenarioOutline":["परिदृश्य रूपरेखा"],"then":["* ","मग ","तेव्हा "],"when":["* ","जेव्हा "]},"amh":{"and":["* ","እና "],"background":["ቅድመ ሁኔታ","መነሻ","መነሻ ሀሳብ"],"but":["* ","ግን "],"examples":["ምሳሌዎች","ሁናቴዎች"],"feature":["ስራ","የተፈለገው ስራ","የሚፈለገው ድርጊት"],"given":["* ","የተሰጠ "],"name":"Amharic","native":"አማርኛ","rule":["ህግ"],"scenario":["ምሳሌ","ሁናቴ"],"scenarioOutline":["ሁናቴ ዝርዝር","ሁናቴ አብነት"],"then":["* ","ከዚያ "],"when":["* ","መቼ "]}}')}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var o=__webpack_module_cache__[e]={id:e,loaded:false,exports:{}};var i=true;try{__webpack_modules__[e].call(o.exports,o,o.exports,__nccwpck_require__);i=false}finally{if(i)delete __webpack_module_cache__[e]}o.loaded=true;return o.exports}__nccwpck_require__.m=__webpack_modules__;(()=>{var e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;var t;__nccwpck_require__.t=function(o,i){if(i&1)o=this(o);if(i&8)return o;if(typeof o==="object"&&o){if(i&4&&o.__esModule)return o;if(i&16&&typeof o.then==="function")return o}var a=Object.create(null);__nccwpck_require__.r(a);var d={};t=t||[null,e({}),e([]),e(e)];for(var m=i&2&&o;typeof m=="object"&&!~t.indexOf(m);m=e(m)){Object.getOwnPropertyNames(m).forEach((e=>d[e]=()=>o[e]))}d["default"]=()=>o;__nccwpck_require__.d(a,d);return a}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var o in t){if(__nccwpck_require__.o(t,o)&&!__nccwpck_require__.o(e,o)){Object.defineProperty(e,o,{enumerable:true,get:t[o]})}}}})();(()=>{__nccwpck_require__.f={};__nccwpck_require__.e=e=>Promise.all(Object.keys(__nccwpck_require__.f).reduce(((t,o)=>{__nccwpck_require__.f[o](e,t);return t}),[]))})();(()=>{__nccwpck_require__.u=e=>""+e+".index.js"})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";(()=>{var e={792:1};var installChunk=t=>{var o=t.modules,i=t.ids,a=t.runtime;for(var d in o){if(__nccwpck_require__.o(o,d)){__nccwpck_require__.m[d]=o[d]}}if(a)a(__nccwpck_require__);for(var m=0;m<i.length;m++)e[i[m]]=1};__nccwpck_require__.f.require=(t,o)=>{if(!e[t]){if(true){installChunk(require("./"+__nccwpck_require__.u(t)))}else e[t]=1}}})();var __webpack_exports__=__nccwpck_require__(79407);module.exports=__webpack_exports__})();
|