web-documentation 1.0.12 → 1.0.14
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/build/deploy.js +1 -1
- package/package.json +10 -9
- package/source/index.css +10 -26
- package/source/index.html.ejs +21 -19
- package/source/index.ts +5 -2
- package/source/test.ts +1 -1
- package/source/type.ts +1 -1
package/build/deploy.js
CHANGED
|
@@ -18,4 +18,4 @@ var r;r=function(e){e.version="1.2.2";var t=function(){for(var e=0,t=new Array(2
|
|
|
18
18
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
19
19
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
20
20
|
*/
|
|
21
|
-
At.Transform},(e,t,r)=>{e.exports=r(54).PassThrough},(e,t,r)=>{const n=globalThis.AbortController||r(12).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:s},AbortError:l}=r(9),{validateAbortSignal:u,validateInteger:c,validateObject:f}=r(35),d=r(2).Symbol("kWeak"),h=r(2).Symbol("kResistStopPropagation"),{finished:p}=r(21),_=r(86),{addAbortSignalNoValidate:b}=r(44),{isWritable:y,isNodeStream:m}=r(18),{deprecate:g}=r(13),{ArrayPrototypePush:v,Boolean:w,MathFloor:S,Number:E,NumberIsNaN:x,Promise:A,PromiseReject:R,PromiseResolve:O,PromisePrototypeThen:k,Symbol:T}=r(2),P=T("kEmpty"),C=T("kEof");function M(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal");let n=1;null!=(null==t?void 0:t.concurrency)&&(n=S(t.concurrency));let i=n-1;return null!=(null==t?void 0:t.highWaterMark)&&(i=S(t.highWaterMark)),c(n,"options.concurrency",1),c(i,"options.highWaterMark",0),i+=n,async function*(){const o=r(13).AbortSignalAny([null==t?void 0:t.signal].filter(w)),a=this,s=[],u={signal:o};let c,f,d=!1,h=0;function p(){d=!0,_()}function _(){h-=1,b()}function b(){f&&!d&&h<n&&s.length<i&&(f(),f=null)}!async function(){try{for await(let t of a){if(d)return;if(o.aborted)throw new l;try{if(t=e(t,u),t===P)continue;t=O(t)}catch(e){t=R(e)}h+=1,k(t,_,p),s.push(t),c&&(c(),c=null),!d&&(s.length>=i||h>=n)&&await new A((e=>{f=e}))}s.push(C)}catch(e){const t=R(e);k(t,_,p),s.push(t)}finally{d=!0,c&&(c(),c=null)}}();try{for(;;){for(;s.length>0;){const e=await s[0];if(e===C)return;if(o.aborted)throw new l;e!==P&&(yield e),s.shift(),b()}await new A((e=>{c=e}))}}finally{d=!0,f&&(f(),f=null)}}.call(this)}async function I(e,t=void 0){for await(const r of L.call(this,e,t))return!0;return!1}function L(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return M.call(this,(async function(t,r){return await e(t,r)?t:P}),t)}class D extends a{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function N(e){if(e=E(e),x(e))return 0;if(e<0)throw new s("number",">= 0",e);return e}e.exports.streamReturningOperators={asIndexedPairs:g((function(e=void 0){return null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),async function*(){let t=0;for await(const n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l({cause:e.signal.reason});yield[t++,n]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new l;e--<=0&&(yield r)}}.call(this)},filter:L,flatMap:function(e,t){const r=M.call(this,e,t);return async function*(){for await(const e of r)yield*e}.call(this)},map:M,take:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new l;if(e-- >0&&(yield r),e<=0)return}}.call(this)},compose:function(e,t){if(null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),m(e)&&!y(e))throw new i("stream",e,"must be writable");const r=_(this,e);return null!=t&&t.signal&&b(t.signal,r),r}},e.exports.promiseReturningOperators={every:async function(e,t=void 0){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return!await I.call(this,(async(...t)=>!await e(...t)),t)},forEach:async function(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);for await(const r of M.call(this,(async function(t,r){return await e(t,r),P}),t));},reduce:async function(e,t,r){var i;if("function"!=typeof e)throw new o("reducer",["Function","AsyncFunction"],e);null!=r&&f(r,"options"),null!=(null==r?void 0:r.signal)&&u(r.signal,"options.signal");let a=arguments.length>1;if(null!=r&&null!==(i=r.signal)&&void 0!==i&&i.aborted){const e=new l(void 0,{cause:r.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(e)),e}const s=new n,c=s.signal;if(null!=r&&r.signal){const e={once:!0,[d]:this,[h]:!0};r.signal.addEventListener("abort",(()=>s.abort()),e)}let _=!1;try{for await(const n of this){var b;if(_=!0,null!=r&&null!==(b=r.signal)&&void 0!==b&&b.aborted)throw new l;a?t=await e(t,n,{signal:c}):(t=n,a=!0)}if(!_&&!a)throw new D}finally{s.abort()}return t},toArray:async function(e){null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal");const t=[];for await(const n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l(void 0,{cause:e.signal.reason});v(t,n)}return t},some:I,find:async function(e,t){for await(const r of L.call(this,e,t))return r}}},(e,t,r)=>{const n=globalThis.AbortController||r(12).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:s},AbortError:l}=r(10),{validateAbortSignal:u,validateInteger:c,validateObject:f}=r(36),d=r(3).Symbol("kWeak"),h=r(3).Symbol("kResistStopPropagation"),{finished:p}=r(22),_=r(92),{addAbortSignalNoValidate:b}=r(47),{isWritable:y,isNodeStream:m}=r(19),{deprecate:g}=r(14),{ArrayPrototypePush:v,Boolean:w,MathFloor:S,Number:E,NumberIsNaN:x,Promise:A,PromiseReject:R,PromiseResolve:O,PromisePrototypeThen:k,Symbol:T}=r(3),P=T("kEmpty"),C=T("kEof");function M(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal");let n=1;null!=(null==t?void 0:t.concurrency)&&(n=S(t.concurrency));let i=n-1;return null!=(null==t?void 0:t.highWaterMark)&&(i=S(t.highWaterMark)),c(n,"options.concurrency",1),c(i,"options.highWaterMark",0),i+=n,async function*(){const o=r(14).AbortSignalAny([null==t?void 0:t.signal].filter(w)),a=this,s=[],u={signal:o};let c,f,d=!1,h=0;function p(){d=!0,_()}function _(){h-=1,b()}function b(){f&&!d&&h<n&&s.length<i&&(f(),f=null)}!async function(){try{for await(let t of a){if(d)return;if(o.aborted)throw new l;try{if(t=e(t,u),t===P)continue;t=O(t)}catch(e){t=R(e)}h+=1,k(t,_,p),s.push(t),c&&(c(),c=null),!d&&(s.length>=i||h>=n)&&await new A((e=>{f=e}))}s.push(C)}catch(e){const t=R(e);k(t,_,p),s.push(t)}finally{d=!0,c&&(c(),c=null)}}();try{for(;;){for(;s.length>0;){const e=await s[0];if(e===C)return;if(o.aborted)throw new l;e!==P&&(yield e),s.shift(),b()}await new A((e=>{c=e}))}}finally{d=!0,f&&(f(),f=null)}}.call(this)}async function I(e,t=void 0){for await(const r of L.call(this,e,t))return!0;return!1}function L(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return M.call(this,(async function(t,r){return await e(t,r)?t:P}),t)}class D extends a{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function N(e){if(e=E(e),x(e))return 0;if(e<0)throw new s("number",">= 0",e);return e}e.exports.streamReturningOperators={asIndexedPairs:g((function(e=void 0){return null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),async function*(){let t=0;for await(const n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l({cause:e.signal.reason});yield[t++,n]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new l;e--<=0&&(yield r)}}.call(this)},filter:L,flatMap:function(e,t){const r=M.call(this,e,t);return async function*(){for await(const e of r)yield*e}.call(this)},map:M,take:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new l;if(e-- >0&&(yield r),e<=0)return}}.call(this)},compose:function(e,t){if(null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),m(e)&&!y(e))throw new i("stream",e,"must be writable");const r=_(this,e);return null!=t&&t.signal&&b(t.signal,r),r}},e.exports.promiseReturningOperators={every:async function(e,t=void 0){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return!await I.call(this,(async(...t)=>!await e(...t)),t)},forEach:async function(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);for await(const r of M.call(this,(async function(t,r){return await e(t,r),P}),t));},reduce:async function(e,t,r){var i;if("function"!=typeof e)throw new o("reducer",["Function","AsyncFunction"],e);null!=r&&f(r,"options"),null!=(null==r?void 0:r.signal)&&u(r.signal,"options.signal");let a=arguments.length>1;if(null!=r&&null!==(i=r.signal)&&void 0!==i&&i.aborted){const e=new l(void 0,{cause:r.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(e)),e}const s=new n,c=s.signal;if(null!=r&&r.signal){const e={once:!0,[d]:this,[h]:!0};r.signal.addEventListener("abort",(()=>s.abort()),e)}let _=!1;try{for await(const n of this){var b;if(_=!0,null!=r&&null!==(b=r.signal)&&void 0!==b&&b.aborted)throw new l;a?t=await e(t,n,{signal:c}):(t=n,a=!0)}if(!_&&!a)throw new D}finally{s.abort()}return t},toArray:async function(e){null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal");const t=[];for await(const n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l(void 0,{cause:e.signal.reason});v(t,n)}return t},some:I,find:async function(e,t){for await(const r of L.call(this,e,t))return r}}},(e,t,r)=>{const n=globalThis.AbortController||r(12).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:s},AbortError:l}=r(11),{validateAbortSignal:u,validateInteger:c,validateObject:f}=r(37),d=r(4).Symbol("kWeak"),h=r(4).Symbol("kResistStopPropagation"),{finished:p}=r(23),_=r(97),{addAbortSignalNoValidate:b}=r(50),{isWritable:y,isNodeStream:m}=r(20),{deprecate:g}=r(15),{ArrayPrototypePush:v,Boolean:w,MathFloor:S,Number:E,NumberIsNaN:x,Promise:A,PromiseReject:R,PromiseResolve:O,PromisePrototypeThen:k,Symbol:T}=r(4),P=T("kEmpty"),C=T("kEof");function M(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal");let n=1;null!=(null==t?void 0:t.concurrency)&&(n=S(t.concurrency));let i=n-1;return null!=(null==t?void 0:t.highWaterMark)&&(i=S(t.highWaterMark)),c(n,"options.concurrency",1),c(i,"options.highWaterMark",0),i+=n,async function*(){const o=r(15).AbortSignalAny([null==t?void 0:t.signal].filter(w)),a=this,s=[],u={signal:o};let c,f,d=!1,h=0;function p(){d=!0,_()}function _(){h-=1,b()}function b(){f&&!d&&h<n&&s.length<i&&(f(),f=null)}!async function(){try{for await(let t of a){if(d)return;if(o.aborted)throw new l;try{if(t=e(t,u),t===P)continue;t=O(t)}catch(e){t=R(e)}h+=1,k(t,_,p),s.push(t),c&&(c(),c=null),!d&&(s.length>=i||h>=n)&&await new A((e=>{f=e}))}s.push(C)}catch(e){const t=R(e);k(t,_,p),s.push(t)}finally{d=!0,c&&(c(),c=null)}}();try{for(;;){for(;s.length>0;){const e=await s[0];if(e===C)return;if(o.aborted)throw new l;e!==P&&(yield e),s.shift(),b()}await new A((e=>{c=e}))}}finally{d=!0,f&&(f(),f=null)}}.call(this)}async function I(e,t=void 0){for await(const r of L.call(this,e,t))return!0;return!1}function L(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return M.call(this,(async function(t,r){return await e(t,r)?t:P}),t)}class D extends a{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function N(e){if(e=E(e),x(e))return 0;if(e<0)throw new s("number",">= 0",e);return e}e.exports.streamReturningOperators={asIndexedPairs:g((function(e=void 0){return null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),async function*(){let t=0;for await(const n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l({cause:e.signal.reason});yield[t++,n]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new l;e--<=0&&(yield r)}}.call(this)},filter:L,flatMap:function(e,t){const r=M.call(this,e,t);return async function*(){for await(const e of r)yield*e}.call(this)},map:M,take:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new l;if(e-- >0&&(yield r),e<=0)return}}.call(this)},compose:function(e,t){if(null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),m(e)&&!y(e))throw new i("stream",e,"must be writable");const r=_(this,e);return null!=t&&t.signal&&b(t.signal,r),r}},e.exports.promiseReturningOperators={every:async function(e,t=void 0){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return!await I.call(this,(async(...t)=>!await e(...t)),t)},forEach:async function(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);for await(const r of M.call(this,(async function(t,r){return await e(t,r),P}),t));},reduce:async function(e,t,r){var i;if("function"!=typeof e)throw new o("reducer",["Function","AsyncFunction"],e);null!=r&&f(r,"options"),null!=(null==r?void 0:r.signal)&&u(r.signal,"options.signal");let a=arguments.length>1;if(null!=r&&null!==(i=r.signal)&&void 0!==i&&i.aborted){const e=new l(void 0,{cause:r.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(e)),e}const s=new n,c=s.signal;if(null!=r&&r.signal){const e={once:!0,[d]:this,[h]:!0};r.signal.addEventListener("abort",(()=>s.abort()),e)}let _=!1;try{for await(const n of this){var b;if(_=!0,null!=r&&null!==(b=r.signal)&&void 0!==b&&b.aborted)throw new l;a?t=await e(t,n,{signal:c}):(t=n,a=!0)}if(!_&&!a)throw new D}finally{s.abort()}return t},toArray:async function(e){null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal");const t=[];for await(const n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l(void 0,{cause:e.signal.reason});v(t,n)}return t},some:I,find:async function(e,t){for await(const r of L.call(this,e,t))return r}}},(e,t,r)=>{t.extract=r(137),t.pack=r(146)},e=>{e.exports=require("child_process")},e=>{e.exports=require("fs/promises")},e=>{e.exports=require("node:os")},(e,t,r)=>{r(65),r(148),t.Extract=r(149),r(170)},e=>{e.exports=require("constants")},e=>{e.exports=require("assert")},(e,t,r)=>{const n=r(8),{checkPath:i}=r(191),o=e=>"number"==typeof e?e:{mode:511,...e}.mode;e.exports.makeDir=async(e,t)=>(i(e),n.mkdir(e,{mode:o(t),recursive:!0})),e.exports.makeDirSync=(e,t)=>(i(e),n.mkdirSync(e,{mode:o(t),recursive:!0}))},(e,t,r)=>{const n=r(6);e.exports.checkPath=function(e){if("win32"===process.platform){if(/[<>:"|?*]/.test(e.replace(n.parse(e).root,""))){const t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}}}},(e,t,r)=>{r.d(t,{GetObjectCommand:()=>Ui,HeadObjectCommand:()=>qi});class n{static v2026="undefined"!=typeof process&&"true"===process.env?.SMITHY_NEW_RETRIES_2026;static delay(){return n.v2026?50:100}static throttlingDelay(){return n.v2026?1e3:500}static cost(){return n.v2026?14:5}static throttlingCost(){return n.v2026?5:10}static modifiedCostType(){return n.v2026?"THROTTLING":"TRANSIENT"}}function i(e,t,r){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=r}n.v2026||="object"==typeof process&&"true"===process.env?.AWS_NEW_RETRIES_2026;const o="WHEN_SUPPORTED",a="WHEN_REQUIRED",s="WHEN_SUPPORTED",l="WHEN_REQUIRED";var u,c;!function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.CRC64NVME="CRC64NVME",e.SHA1="SHA1",e.SHA256="SHA256"}(u||(u={})),function(e){e.HEADER="header",e.TRAILER="trailer"}(c||(c={}));const f=u.CRC32,d={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0};class h{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 h({...e,headers:{...e.headers}});var r;return t.query&&(t.query=(r=t.query,Object.keys(r).reduce(((e,t)=>{const n=r[t];return{...e,[t]:Array.isArray(n)?[...n]:n}}),{}))),t}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers}clone(){return h.clone(this)}}class p{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(1===this.byteArrays.length){const e=this.byteArrays[0];return this.reset(),e}const e=this.allocByteArray(this.byteLength);let t=0;for(let r=0;r<this.byteArrays.length;++r){const n=this.byteArrays[r];e.set(n,t),t+=n.byteLength}return this.reset(),e}reset(){this.byteArrays=[],this.byteLength=0}}const _=function(e,t,r){const n=e.getReader();let i=!1,o=0;const a=["",new p((e=>new Uint8Array(e)))];let s=-1;const l=async e=>{const{value:u,done:c}=await n.read(),f=u;if(c){if(-1!==s){const t=b(a,s);y(t)>0&&e.enqueue(t)}e.close()}else{const n=function(e,t=!0){if(t&&"undefined"!=typeof Buffer&&e instanceof Buffer)return 2;if(e instanceof Uint8Array)return 1;if("string"==typeof e)return 0;return-1}(f,!1);if(s!==n&&(s>=0&&e.enqueue(b(a,s)),s=n),-1===s)return void e.enqueue(f);const u=y(f);o+=u;const c=y(a[s]);if(u>=t&&0===c)e.enqueue(f);else{const n=function(e,t,r){switch(t){case 0:return e[0]+=r,y(e[0]);case 1:case 2:return e[t].push(r),y(e[t])}}(a,s,f);!i&&o>2*t&&(i=!0,r?.warn(`@smithy/util-stream - stream chunk size ${u} is below threshold of ${t}, automatically buffering.`)),n>=t?e.enqueue(b(a,s)):await l(e)}}};return new ReadableStream({pull:l})};function b(e,t){switch(t){case 0:const r=e[0];return e[0]="",r;case 1:case 2:return e[t].flush()}throw new Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function y(e){return e?.byteLength??e?.length??0}const m=e=>e===u.MD5?"content-md5":`x-amz-checksum-${e.toLowerCase()}`,g=e=>{return!(void 0===e||"string"==typeof e||ArrayBuffer.isView(e)||(t=e,"function"==typeof ArrayBuffer&&t instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(t)));var t};function v(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function w(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}Object.create;function S(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;"function"==typeof SuppressedError&&SuppressedError;var E="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:e=>(new TextEncoder).encode(e);function x(e){return e instanceof Uint8Array?e:"string"==typeof e?E(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function A(e){return"string"==typeof e?0===e.length:0===e.byteLength}function R(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}function O(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}var k=function(){function e(){this.crc32c=new T}return e.prototype.update=function(e){A(e)||this.crc32c.update(x(e))},e.prototype.digest=function(){return v(this,void 0,void 0,(function(){return w(this,(function(e){return[2,R(this.crc32c.digest())]}))}))},e.prototype.reset=function(){this.crc32c=new T},e}();var T=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var n=S(e),i=n.next();!i.done;i=n.next()){var o=i.value;this.checksum=this.checksum>>>8^P[255&(this.checksum^o)]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}(),P=O([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]);let C,M,I,L,D,N,j,F,U;const W=()=>{C||(C=(()=>{const e=new Array(8);for(let t=0;t<8;t++){const r=new Array(512);for(let e=0;e<256;e++){let n=BigInt(e);for(let e=0;e<8*(t+1);e++)1n&n?n=n>>1n^0x9a6c9329ac4bc9b5n:n>>=1n;r[2*e]=Number(n>>32n&0xffffffffn),r[2*e+1]=Number(0xffffffffn&n)}e[t]=new Uint32Array(r)}return e})(),[M,I,L,D,N,j,F,U]=C)};class ${c1=0;c2=0;constructor(){W(),this.reset()}update(e){const t=e.length;let r=0,n=this.c1,i=this.c2;for(;r+8<=t;){const t=(255&(i^e[r++]))<<1,o=(255&(i>>>8^e[r++]))<<1,a=(255&(i>>>16^e[r++]))<<1,s=(255&(i>>>24^e[r++]))<<1,l=(255&(n^e[r++]))<<1,u=(255&(n>>>8^e[r++]))<<1,c=(255&(n>>>16^e[r++]))<<1,f=(255&(n>>>24^e[r++]))<<1;n=U[t]^F[o]^j[a]^N[s]^D[l]^L[u]^I[c]^M[f],i=U[t+1]^F[o+1]^j[a+1]^N[s+1]^D[l+1]^L[u+1]^I[c+1]^M[f+1]}for(;r<t;){const t=(255&(i^e[r]))<<1;i=(i>>>8|(255&n)<<24)>>>0,n=n>>>8^M[t],i^=M[t+1],r++}this.c1=n,this.c2=i}async digest(){const e=4294967295^this.c1,t=4294967295^this.c2;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t])}reset(){this.c1=4294967295,this.c2=4294967295}}const B=null;var H=function(){function e(){this.crc32=new V}return e.prototype.update=function(e){A(e)||this.crc32.update(x(e))},e.prototype.digest=function(){return v(this,void 0,void 0,(function(){return w(this,(function(e){return[2,R(this.crc32.digest())]}))}))},e.prototype.reset=function(){this.crc32=new V},e}();var V=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var n=S(e),i=n.next();!i.done;i=n.next()){var o=i.value;this.checksum=this.checksum>>>8^q[255&(this.checksum^o)]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}(),q=O([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]);const z=[u.CRC32,u.CRC32C,u.CRC64NVME,u.SHA1,u.SHA256],G=[u.SHA256,u.SHA1,u.CRC32,u.CRC32C,u.CRC64NVME],K=(e,t)=>{const{checksumAlgorithms:r={}}=t;switch(e){case u.MD5:return r?.MD5??t.md5;case u.CRC32:return r?.CRC32??H;case u.CRC32C:return r?.CRC32C??k;case u.CRC64NVME:return"function"!=typeof B?r?.CRC64NVME??$:r?.CRC64NVME??B;case u.SHA1:return r?.SHA1??t.sha1;case u.SHA256:return r?.SHA256??t.sha256;default:if(r?.[e])return r[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.`)}},Y=e=>(new TextEncoder).encode(e),X=(e,t)=>{const r=new e;var n;return r.update("string"==typeof(n=t||"")?Y(n):ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(n)),r.digest()},Q={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},J=(e,t)=>(r,n)=>async a=>{if(!h.isInstance(a.request))return r(a);if(((e,t)=>{const r=e.toLowerCase();for(const e of Object.keys(t))if(e.toLowerCase().startsWith(r))return!0;return!1})("x-amz-checksum-",a.request.headers))return r(a);const{request:s,input:l}=a,{body:c,headers:d}=s,{base64Encoder:p,streamHasher:b}=e,{requestChecksumRequired:y,requestAlgorithmMember:v}=t,w=await e.requestChecksumCalculation(),S=v?.name,E=v?.httpHeader;S&&!l[S]&&(w===o||y)&&(l[S]=f,E&&(d[E]=f));const x=((e,{requestChecksumRequired:t,requestAlgorithmMember:r,requestChecksumCalculation:n})=>{if(!r)return n===o||t?f:void 0;if(!e[r])return;return e[r]})(l,{requestChecksumRequired:y,requestAlgorithmMember:v?.name,requestChecksumCalculation:w});let A=c,R=d;if(x){switch(x){case u.CRC32:i(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case u.CRC32C:i(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case u.CRC64NVME:i(n,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case u.SHA1:i(n,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case u.SHA256:i(n,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y")}const t=m(x),r=K(x,e);if(g(c)){const{getAwsChunkedEncodingStream:i,bodyLengthChecker:o}=e;A=i("number"==typeof e.requestStreamBufferSize&&e.requestStreamBufferSize>=8192?_(c,e.requestStreamBufferSize,n.logger):c,{base64Encoder:p,bodyLengthChecker:o,checksumLocationName:t,checksumAlgorithmFn:r,streamHasher:b}),R={...d,"content-encoding":d["content-encoding"]?`${d["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":d["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":t},delete R["content-length"]}else if(!((e,t)=>{const r=e.toLowerCase();for(const e of Object.keys(t))if(r===e.toLowerCase())return!0;return!1})(t,d)){const e=await X(r,c);R={...d,[t]:p(e)}}}try{return await r({...a,request:{...s,headers:R,body:A}})}catch(e){if(e instanceof Error&&"InvalidChunkSizeError"===e.name)try{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}},Z=(e=[])=>{const t=[];let r=G.length;for(const n of e){const e=G.indexOf(n);-1!==e?t[e]=n:t[r++]=n}return t.filter(Boolean)},ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",te=(Object.entries(ee).reduce(((e,[t,r])=>(e[r]=Number(t),e)),{}),ee.split(""));function re(e){let t;t="string"==typeof e?Y(e):e;const r="object"==typeof t&&"number"==typeof t.length,n="object"==typeof t&&"number"==typeof t.byteOffset&&"number"==typeof t.byteLength;if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let i="";for(let e=0;e<t.length;e+=3){let r=0,n=0;for(let i=e,o=Math.min(e+3,t.length);i<o;i++)r|=t[i]<<8*(o-i-1),n+=8;const o=Math.ceil(n/6);r<<=6*o-n;for(let e=1;e<=o;e++){const t=6*(o-e);i+=te[(r&63<<t)>>t]}i+="==".slice(0,4-o)}return i}const ne="function"==typeof ReadableStream?ReadableStream:function(){};class ie extends ne{}const oe=({expectedChecksum:e,checksum:t,source:r,checksumSourceLocation:n,base64Encoder:i})=>{if(o=r,"function"!=typeof ReadableStream||!(o?.constructor?.name===ReadableStream.name||o instanceof ReadableStream))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);var o;const a=i??re;if("function"!=typeof TransformStream)throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");const s=new TransformStream({start(){},async transform(e,r){t.update(e),r.enqueue(e)},async flush(r){const i=await t.digest(),o=a(i);if(e!==o){const t=new Error(`Checksum mismatch: expected "${e}" but received "${o}" in response header "${n}".`);r.error(t)}else r.terminate()}});r.pipeThrough(s);const l=s.readable;return Object.setPrototypeOf(l,ie.prototype),l},ae=async(e,{checksumAlgorithmFn:t,base64Encoder:r})=>r(await X(t,e)),se={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},le=(e,t)=>(r,n)=>async i=>{if(!h.isInstance(i.request))return r(i);const o=i.input,a=await r(i),s=a.response,{requestValidationModeMember:l,responseAlgorithms:c}=t;if(l&&"ENABLED"===o[l]){const{clientName:t,commandName:r}=n,i=Object.keys(e.checksumAlgorithms??{}).filter((e=>{const t=m(e);return void 0!==s.headers[t]})),o=Z([...c??[],...i]);if("S3Client"===t&&"GetObjectCommand"===r&&o.every((e=>{const t=m(e),r=s.headers[t];return!r||(e=>{const t=e.lastIndexOf("-");if(-1!==t){const r=e.slice(t+1);if(!r.startsWith("0")){const e=parseInt(r,10);if(!isNaN(e)&&e>=1&&e<=1e4)return!0}}return!1})(r)})))return a;await(async(e,{config:t,responseAlgorithms:r,logger:n})=>{const i=Z(r),{body:o,headers:a}=e;for(const r of i){const i=m(r),s=a[i];if(s){let a;try{a=K(r,t)}catch(e){if(r===u.CRC64NVME){n?.warn(`Skipping ${u.CRC64NVME} checksum validation: ${e.message}`);continue}throw e}const{base64Encoder:l}=t;if(g(o))return void(e.body=oe({expectedChecksum:s,checksumSourceLocation:i,checksum:new a,source:o,base64Encoder:l}));const c=await ae(o,{checksumAlgorithmFn:a,base64Encoder:l});if(c===s)break;throw new Error(`Checksum mismatch: expected "${c}" but received "${s}" in response header "${i}".`)}}})(s,{config:e,responseAlgorithms:o,logger:n.logger})}return a},ue=(e,t)=>({applyToStack:r=>{r.add(J(e,t),Q),r.addRelativeTo(((e,t)=>(r,n)=>async u=>{const c=u.input,{requestValidationModeMember:f}=t,d=await e.requestChecksumCalculation(),h=await e.responseChecksumValidation();switch(d){case a:i(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case o:i(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z")}switch(h){case l:i(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case s:i(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b")}return f&&!c[f]&&h===s&&(c[f]="ENABLED"),r(u)})(e,t),d),r.addRelativeTo(le(e,t),se)}});class ce{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!1;const t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers}}const fe=e=>{if(null!=e){if("string"==typeof e){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&Ee.warn(Se(`Expected number but observed string: ${e}`)),t}if("number"==typeof e)return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},de=Math.ceil(2**127*(2-2**-23)),he=e=>{const t=fe(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>de)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},pe=e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},_e=e=>ye(e,16),be=e=>ye(e,8),ye=(e,t)=>{const r=pe(e);if(void 0!==r&&me(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},me=(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]}},ge=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,ve=e=>{const t=e.match(ge);if(null===t||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},we=e=>_e("string"==typeof e?ve(e):e),Se=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n"),Ee={warn:console.warn};const xe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const Ae=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$/),Re=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$/),Oe=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})$/),ke=(e,t,r,n)=>{const i=t-1;return Ie(e,i,r),new Date(Date.UTC(e,i,r,De(n.hours,"hour",0,23),De(n.minutes,"minute",0,59),De(n.seconds,"seconds",0,60),Ne(n.fractionalMilliseconds)))},Te=e=>{const t=(new Date).getUTCFullYear(),r=100*Math.floor(t/100)+we(je(e));return r<t?r+100:r},Pe=e=>e.getTime()-(new Date).getTime()>15768e8?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,Ce=e=>{const t=xe.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},Me=[31,28,31,30,31,30,31,31,30,31,30,31],Ie=(e,t,r)=>{let n=Me[t];if(1===t&&Le(e)&&(n=29),r>n)throw new TypeError(`Invalid day for ${xe[t]} in ${e}: ${r}`)},Le=e=>e%4==0&&(e%100!=0||e%400==0),De=(e,t,r,n)=>{const i=(e=>be("string"==typeof e?ve(e):e))(je(e));if(i<r||i>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return i},Ne=e=>null==e?0:1e3*(e=>he("string"==typeof e?ve(e):e))("0."+e),je=e=>{let t=0;for(;t<e.length-1&&"0"===e.charAt(t);)t++;return 0===t?e:e.slice(t)},Fe=e=>(e,t)=>async r=>{const n=await e(r),{response:i}=n;if(ce.isInstance(i)&&i.headers.expires){i.headers.expiresstring=i.headers.expires;try{(e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=Ae.exec(e);if(t){const[e,r,n,i,o,a,s,l]=t;return ke(we(je(i)),Ce(n),De(r,"day",1,31),{hours:o,minutes:a,seconds:s,fractionalMilliseconds:l})}if(t=Re.exec(e),t){const[e,r,n,i,o,a,s,l]=t;return Pe(ke(Te(i),Ce(n),De(r,"day",1,31),{hours:o,minutes:a,seconds:s,fractionalMilliseconds:l}))}if(t=Oe.exec(e),t){const[e,r,n,i,o,a,s,l]=t;return ke(we(je(l)),Ce(r),De(n.trimLeft(),"day",1,31),{hours:i,minutes:o,seconds:a,fractionalMilliseconds:s})}throw new TypeError("Invalid RFC-7231 date-time value")})(i.headers.expires)}catch(e){t.logger?.warn(`AWS SDK Warning for ${t.clientName}::${t.commandName} response parsing (${i.headers.expires}): ${e}`),delete i.headers.expires}}return n},Ue={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},We=e=>({applyToStack:e=>{e.addRelativeTo(Fe(),Ue)}});const $e={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},Be=e=>({applyToStack:t=>{var r;t.add((r=e,e=>async t=>{const n={...t.input},i=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(const e of i){const t=n[e.target];if(t){let i;"string"==typeof t?He(t,r)?i=r.base64Decoder(t):(i=r.utf8Decoder(t),n[e.target]=r.base64Encoder(i)):(i=ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(t),n[e.target]=r.base64Encoder(i));const o=new r.md5;o.update(i),n[e.hash]=r.base64Encoder(await o.digest())}}return e({...t,input:n})}),$e)}});function He(e,t){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return!1;try{return 32===t.base64Decoder(e).length}catch{return!1}}const Ve={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};const qe="__smithy_context",ze=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Ge=/(\d+\.){3}\d+/,Ke=/\.\./,Ye=e=>ze.test(e)&&!Ge.test(e)&&!Ke.test(e),Xe=e=>{const[t,r,n,,,i]=e.split(":"),o="arn"===t&&e.split(":").length>=6,a=Boolean(o&&r&&n&&i);if(o&&!a)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return a},Qe=(e,t,r,n=!1)=>{const i=async()=>{let i;if(n){const n=r.clientContextParams,o=n?.[e];i=o??r[e]??r[t]}else i=r[e]??r[t];return"function"==typeof i?i():i};return"credentialScope"===e||"CredentialScope"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.credentialScope??e?.CredentialScope}:"accountId"===e||"AccountId"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.accountId??e?.AccountId}:"endpoint"===e||"endpoint"===t?async()=>{if(!1===r.isCustomEndpoint)return;const e=await i();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:r,port:n,path:i}=e;return`${t}//${r}${n?":"+n:""}${i}`}}return e}:i};const Je=e=>{if("string"==typeof e)return Je(new URL(e));const{hostname:t,pathname:r,port:n,protocol:i,search:o}=e;let a;return o&&(a=function(e){const t={};if(e=e.replace(/^\?/,""))for(const r of e.split("&")){let[e,n=null]=r.split("=");e=decodeURIComponent(e),n&&(n=decodeURIComponent(n)),e in t?Array.isArray(t[e])?t[e].push(n):t[e]=[t[e],n]:t[e]=n}return t}(o)),{hostname:t,port:n?parseInt(n):void 0,protocol:i,path:r,query:a}},Ze=async(e,t,r,n)=>{if(!r.isCustomEndpoint){let e;e=r.serviceConfiguredEndpoint?await r.serviceConfiguredEndpoint():await(async()=>{})(r.serviceId),e&&(r.endpoint=()=>Promise.resolve((e=>{if("object"==typeof e){if("url"in e){const t=Je(e.url);if(e.headers){t.headers={};for(const[r,n]of Object.entries(e.headers))t.headers[r.toLowerCase()]=n.join(", ")}return t}return e}return Je(e)})(e)),r.isCustomEndpoint=!0)}const i=await et(e,t,r);if("function"!=typeof r.endpointProvider)throw new Error("config.endpointProvider is not set.");const o=r.endpointProvider(i,n);if(r.isCustomEndpoint&&r.endpoint){const e=await r.endpoint();if(e?.headers){o.headers??={};for(const[t,r]of Object.entries(e.headers))o.headers[t]=Array.isArray(r)?r:[r]}}return o},et=async(e,t,r)=>{const n={},i=t?.getEndpointParameterInstructions?.()||{};for(const[t,o]of Object.entries(i))switch(o.type){case"staticContextParams":n[t]=o.value;break;case"contextParams":n[t]=e[o.name];break;case"clientContextParams":case"builtInParams":n[t]=await Qe(o.name,t,r,"builtInParams"!==o.type)();break;case"operationContextParams":n[t]=o.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(o))}return 0===Object.keys(i).length&&Object.assign(n,r),"s3"===String(r.serviceId).toLowerCase()&&await(async e=>{const t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),Xe(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!Ye(t)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e})(n),n},tt=({config:e,instructions:t})=>(r,n)=>async i=>{e.isCustomEndpoint&&function(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=r}(n,"ENDPOINT_OVERRIDE","N");const o=await Ze(i.input,{getEndpointParameterInstructions:()=>t},{...e},n);n.endpointV2=o,n.authSchemes=o.properties?.authSchemes;const a=n.authSchemes?.[0];if(a){n.signing_region=a.signingRegion,n.signing_service=a.signingName;const e=(e=>e[qe]||(e[qe]={}))(n),t=e?.selectedHttpAuthScheme?.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:a.signingRegion,signingRegion:a.signingRegion,signing_service:a.signingName,signingName:a.signingName,signingRegionSet:a.signingRegionSet},a.properties))}return r({...i})},rt={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Ve.name},nt=(e,t)=>({applyToStack:r=>{r.addRelativeTo(tt({config:e,instructions:t}),rt)}}),it=(e,t)=>{const r=[];if(e&&r.push(e),t)for(const e of t)r.push(e);return r},ot=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,at=()=>{let e=[],t=[],r=!1;const n=new Set,i=r=>(e.forEach((e=>{r.add(e.middleware,{...e})})),t.forEach((e=>{r.addRelativeTo(e.middleware,{...e})})),r.identifyOnResolve?.(s.identifyOnResolve()),r),o=e=>{const t=[];return e.before.forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...o(e))})),t.push(e),e.after.reverse().forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...o(e))})),t},a=(r=!1)=>{const n=[],i=[],a={};e.forEach((e=>{const t={...e,before:[],after:[]};for(const e of it(t.name,t.aliases))a[e]=t;n.push(t)})),t.forEach((e=>{const t={...e,before:[],after:[]};for(const e of it(t.name,t.aliases))a[e]=t;i.push(t)})),i.forEach((e=>{if(e.toMiddleware){const t=a[e.toMiddleware];if(void 0===t){if(r)return;throw new Error(`${e.toMiddleware} is not found when adding ${ot(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}));var s;return(s=n,s.sort(((e,t)=>st[t.step]-st[e.step]||lt[t.priority||"normal"]-lt[e.priority||"normal"]))).map(o).reduce(((e,t)=>(e.push(...t),e)),[])},s={add:(t,r={})=>{const{name:i,override:o,aliases:a}=r,s={step:"initialize",priority:"normal",middleware:t,...r},l=it(i,a);if(l.length>0){if(l.some((e=>n.has(e)))){if(!o)throw new Error(`Duplicate middleware name '${ot(i,a)}'`);for(const t of l){const r=e.findIndex((e=>e.name===t||e.aliases?.some((e=>e===t))));if(-1===r)continue;const n=e[r];if(n.step!==s.step||s.priority!==n.priority)throw new Error(`"${ot(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${ot(i,a)}" middleware with ${s.priority} priority in ${s.step} step.`);e.splice(r,1)}}for(const e of l)n.add(e)}e.push(s)},addRelativeTo:(e,r)=>{const{name:i,override:o,aliases:a}=r,s={middleware:e,...r},l=it(i,a);if(l.length>0){if(l.some((e=>n.has(e)))){if(!o)throw new Error(`Duplicate middleware name '${ot(i,a)}'`);for(const e of l){const r=t.findIndex((t=>t.name===e||t.aliases?.some((t=>t===e))));if(-1===r)continue;const n=t[r];if(n.toMiddleware!==s.toMiddleware||n.relation!==s.relation)throw new Error(`"${ot(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${ot(i,a)}" middleware ${s.relation} "${s.toMiddleware}" middleware.`);t.splice(r,1)}}for(const e of l)n.add(e)}t.push(s)},clone:()=>i(at()),use:e=>{e.applyToStack(s)},remove:r=>"string"==typeof r?(r=>{let i=!1;const o=e=>{const t=it(e.name,e.aliases);if(t.includes(r)){i=!0;for(const e of t)n.delete(e);return!1}return!0};return e=e.filter(o),t=t.filter(o),i})(r):(r=>{let i=!1;const o=e=>{if(e.middleware===r){i=!0;for(const t of it(e.name,e.aliases))n.delete(t);return!1}return!0};return e=e.filter(o),t=t.filter(o),i})(r),removeByTag:r=>{let i=!1;const o=e=>{const{tags:t,name:o,aliases:a}=e;if(t&&t.includes(r)){const e=it(o,a);for(const t of e)n.delete(t);return i=!0,!1}return!0};return e=e.filter(o),t=t.filter(o),i},concat:e=>{const t=i(at());return t.use(e),t.identifyOnResolve(r||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:i,identify:()=>a(!0).map((e=>{const t=e.step??e.relation+" "+e.toMiddleware;return ot(e.name,e.aliases)+" - "+t})),identifyOnResolve:e=>("boolean"==typeof e&&(r=e),r),resolve:(e,t)=>{for(const r of a().map((e=>e.middleware)).reverse())e=r(e,t);return r&&console.log(s.identify()),e}};return s},st={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},lt={high:3,normal:2,low:1},ut=e=>"function"==typeof e?e():e,ct=[];function ft(e){if("object"==typeof e)return e;if(ct[e|=0])return ct[e];const t={};let r=0;for(const n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])1==(e>>r++&1)&&(t[n]=1);return ct[e]=t}const dt=Symbol.for("@smithy/nor-struct-it"),ht=Symbol.for("@smithy/ns"),pt=[],_t={};class bt{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=bt.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,t){this.ref=e,this.memberName=t;const r=[];let n=e,i=e;for(this._isMemberSchema=!1;mt(n);)r.push(n[1]),n=n[0],i=ut(n),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){const t=r[e];Object.assign(this.memberTraits,ft(t))}}else this.memberTraits=0;if(i instanceof bt){const e=this.memberTraits;return Object.assign(this,i),this.memberTraits=Object.assign({},e,i.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,void(this.memberName=t??i.memberName)}if(this.schema=ut(i),gt(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(i),this.traits=0),this._isMemberSchema&&!t)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);if(!t&&"object"==typeof e&&null!==e){return e.symbol===this.symbol}return t}static of(e){const t="function"==typeof e||"object"==typeof e&&null!==e;if("number"==typeof e){if(pt[e])return pt[e]}else if("string"==typeof e){if(_t[e])return _t[e]}else if(t&&e[ht])return e[ht];const r=ut(e);if(r instanceof bt)return r;if(mt(r)){const[t,n]=r;if(t instanceof bt)return Object.assign(t.getMergedTraits(),ft(n)),t;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}const n=new bt(r);return t?e[ht]=n:"string"==typeof r?_t[r]=n:"number"==typeof r?pt[r]=n:n}getSchema(){const e=this.schema;return Array.isArray(e)&&0===e[0]?e[4]:e}getName(e=!1){const{name:t}=this;return!e&&t&&t.includes("#")?t.split("#")[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return"number"==typeof e?e>=64&&e<128:1===e[0]}isMapSchema(){const e=this.getSchema();return"number"==typeof e?e>=128&&e<=255:2===e[0]}isStructSchema(){const e=this.getSchema();if("object"!=typeof e)return!1;const t=e[0];return 3===t||-3===t||4===t}isUnionSchema(){const e=this.getSchema();return"object"==typeof e&&4===e[0]}isBlobSchema(){const e=this.getSchema();return 21===e||42===e}isTimestampSchema(){const e=this.getSchema();return"number"==typeof e&&e>=4&&e<=7}isUnitSchema(){return"unit"===this.getSchema()}isDocumentSchema(){return 15===this.getSchema()}isStringSchema(){return 0===this.getSchema()}isBooleanSchema(){return 2===this.getSchema()}isNumericSchema(){return 1===this.getSchema()}isBigIntegerSchema(){return 17===this.getSchema()}isBigDecimalSchema(){return 19===this.getSchema()}isStreaming(){const{streaming:e}=this.getMergedTraits();return!!e||42===this.getSchema()}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return ft(this.memberTraits)}getOwnTraits(){return ft(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(!0)}`);const r=this.getSchema();return yt([e?15:r[4]??0,0],"key")}getValueSchema(){const e=this.getSchema(),[t,r,n]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i="number"==typeof e?63&e:e&&"object"==typeof e&&(r||n)?e[3+e[0]]:t?15:void 0;if(null!=i)return yt([i,0],r?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){const t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){const r=t[4].indexOf(e),n=t[5][r];return yt(mt(n)?n:[n,0],e)}if(this.isDocumentSchema())return yt([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){const e={};try{for(const[t,r]of this.structIterator())e[t]=r}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(),t=e[4].length;let r=e[dt];if(r&&t===r.length)yield*r;else{r=Array(t);for(let n=0;n<t;++n){const t=e[4][n],i=yt([e[5][n],0],t);yield r[n]=[t,i]}e[dt]=r}}}function yt(e,t){if(e instanceof bt)return Object.assign(e,{memberName:t,_isMemberSchema:!0});return new bt(e,t)}const mt=e=>Array.isArray(e)&&2===e.length,gt=e=>Array.isArray(e)&&e.length>=5,vt="***SensitiveInformation***";function wt(e,t){if(null==t)return t;const r=bt.of(e);if(r.getMergedTraits().sensitive)return vt;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return vt}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return vt}else if(r.isStructSchema()&&"object"==typeof t){const e=t,n={};for(const[t,i]of r.structIterator())null!=e[t]&&(n[t]=wt(i,e[t]));return n}return t}class St{middlewareStack=at();schema;static classBuilder(){return new Et}resolveMiddlewareWithContext(e,t,r,{middlewareFn:n,clientName:i,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:s,smithyContext:l,additionalContext:u,CommandCtor:c}){for(const i of n.bind(this)(c,e,t,r))this.middlewareStack.use(i);const f=e.concat(this.middlewareStack),{logger:d}=t,h={logger:d,clientName:i,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:s,[qe]:{commandInstance:this,...l},...u},{requestHandler:p}=t;let _=r??{};return l.eventStream&&(_={isEventStream:!0,..._}),f.resolve((e=>p.handle(e.request,_)),h)}}class Et{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,r={}){return this._smithyContext={service:e,operation:t,...r},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){const e=this;let t;return t=class extends St{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.input=t??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(r,n,i){const o=e._operationSchema,a=o?.[4]??o?.input,s=o?.[5]??o?.output;return this.resolveMiddlewareWithContext(r,n,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(o?wt.bind(null,a):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(o?wt.bind(null,s):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}const xt={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 At{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,r=new Map){this.namespace=e,this.schemas=t,this.exceptions=r}static for(e){return At.registries.has(e)||At.registries.set(e,new At(e)),At.registries.get(e)}copyFrom(e){const{schemas:t,exceptions:r}=this;for(const[r,n]of e.schemas)t.has(r)||t.set(r,n);for(const[t,n]of e.exceptions)r.has(t)||r.set(t,n)}register(e,t){const r=this.normalizeShapeId(e);for(const e of[this,At.for(r.split("#")[0])])e.schemas.set(r,t)}getSchema(e){const t=this.normalizeShapeId(e);if(!this.schemas.has(t))throw new Error(`@smithy/core/schema - schema not found for ${t}`);return this.schemas.get(t)}registerError(e,t){const r=e,n=r[1];for(const e of[this,At.for(n)])e.schemas.set(n+"#"+r[2],r),e.exceptions.set(r,t)}getErrorCtor(e){const t=e;if(this.exceptions.has(t))return this.exceptions.get(t);return At.for(t[1]).exceptions.get(t)}getBaseException(){for(const e of this.exceptions.keys())if(Array.isArray(e)){const[,t,r]=e,n=t+"#"+r;if(n.startsWith("smithy.ts.sdk.synthetic.")&&n.endsWith("ServiceException"))return e}}find(e){for(const t of this.schemas.values())if(e(t))return t}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}class Rt 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!1;const t=e;return Rt.prototype.isPrototypeOf(t)||Boolean(t.$fault)&&Boolean(t.$metadata)&&("client"===t.$fault||"server"===t.$fault)}static[Symbol.hasInstance](e){if(!e)return!1;const t=e;return this===Rt?Rt.isInstance(e):!!Rt.isInstance(e)&&(t.name&&this.name?this.prototype.isPrototypeOf(e)||t.name===this.name:this.prototype.isPrototypeOf(e))}}class Ot extends Rt{constructor(e){super(e),Object.setPrototypeOf(this,Ot.prototype)}}class kt extends Ot{name="NoSuchUpload";$fault="client";constructor(e){super({name:"NoSuchUpload",$fault:"client",...e}),Object.setPrototypeOf(this,kt.prototype)}}class Tt extends Ot{name="AccessDenied";$fault="client";constructor(e){super({name:"AccessDenied",$fault:"client",...e}),Object.setPrototypeOf(this,Tt.prototype)}}class Pt extends Ot{name="ObjectNotInActiveTierError";$fault="client";constructor(e){super({name:"ObjectNotInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,Pt.prototype)}}class Ct extends Ot{name="BucketAlreadyExists";$fault="client";constructor(e){super({name:"BucketAlreadyExists",$fault:"client",...e}),Object.setPrototypeOf(this,Ct.prototype)}}class Mt extends Ot{name="BucketAlreadyOwnedByYou";$fault="client";constructor(e){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...e}),Object.setPrototypeOf(this,Mt.prototype)}}class It extends Ot{name="NoSuchBucket";$fault="client";constructor(e){super({name:"NoSuchBucket",$fault:"client",...e}),Object.setPrototypeOf(this,It.prototype)}}class Lt extends Ot{name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(e){super({name:"InvalidObjectState",$fault:"client",...e}),Object.setPrototypeOf(this,Lt.prototype),this.StorageClass=e.StorageClass,this.AccessTier=e.AccessTier}}class Dt extends Ot{name="NoSuchKey";$fault="client";constructor(e){super({name:"NoSuchKey",$fault:"client",...e}),Object.setPrototypeOf(this,Dt.prototype)}}class Nt extends Ot{name="NotFound";$fault="client";constructor(e){super({name:"NotFound",$fault:"client",...e}),Object.setPrototypeOf(this,Nt.prototype)}}class jt extends Ot{name="EncryptionTypeMismatch";$fault="client";constructor(e){super({name:"EncryptionTypeMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,jt.prototype)}}class Ft extends Ot{name="InvalidRequest";$fault="client";constructor(e){super({name:"InvalidRequest",$fault:"client",...e}),Object.setPrototypeOf(this,Ft.prototype)}}class Ut extends Ot{name="InvalidWriteOffset";$fault="client";constructor(e){super({name:"InvalidWriteOffset",$fault:"client",...e}),Object.setPrototypeOf(this,Ut.prototype)}}class Wt extends Ot{name="TooManyParts";$fault="client";constructor(e){super({name:"TooManyParts",$fault:"client",...e}),Object.setPrototypeOf(this,Wt.prototype)}}class $t extends Ot{name="IdempotencyParameterMismatch";$fault="client";constructor(e){super({name:"IdempotencyParameterMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,$t.prototype)}}class Bt extends Ot{name="ObjectAlreadyInActiveTierError";$fault="client";constructor(e){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,Bt.prototype)}}const Ht="AcceptRanges",Vt="AccessTier",qt="Bucket",zt="BucketKeyEnabled",Gt="Body",Kt="CacheControl",Yt="ChecksumCRC32",Xt="ChecksumCRC32C",Qt="ChecksumCRC64NVME",Jt="Cache-Control",Zt="Content-Disposition",er="ContentDisposition",tr="Content-Encoding",rr="ContentEncoding",nr="ContentLanguage",ir="Content-Language",or="Content-Length",ar="ContentLength",sr="ChecksumMD5",lr="ChecksumMode",ur="ContentRange",cr="Content-Range",fr="ChecksumSHA1",dr="ChecksumSHA256",hr="ChecksumSHA512",pr="ChecksumType",_r="Content-Type",br="ContentType",yr="ChecksumXXHASH64",mr="ChecksumXXHASH3",gr="ChecksumXXHASH128",vr="DeleteMarker",wr="Expiration",Sr="ExpectedBucketOwner",Er="ExpiresString",xr="ETag",Ar="Expires",Rr="IfMatch",Or="If-Modified-Since",kr="IfModifiedSince",Tr="If-Match",Pr="IfNoneMatch",Cr="If-None-Match",Mr="IfUnmodifiedSince",Ir="If-Unmodified-Since",Lr="Key",Dr="LastModified",Nr="Last-Modified",jr="Metadata",Fr="MissingMeta",Ur="ObjectLockLegalHoldStatus",Wr="ObjectLockMode",$r="ObjectLockRetainUntilDate",Br="PartsCount",Hr="PartNumber",Vr="RequestCharged",qr="ResponseCacheControl",zr="ResponseContentDisposition",Gr="ResponseContentEncoding",Kr="ResponseContentLanguage",Yr="ResponseContentType",Xr="ResponseExpires",Qr="RequestPayer",Jr="ReplicationStatus",Zr="Range",en="Restore",tn="StorageClass",rn="ServerSideEncryption",nn="SSECustomerAlgorithm",on="SSECustomerKey",an="SSECustomerKeyMD5",sn="SSEKMSKeyId",ln="TagCount",un="VersionId",cn="WebsiteRedirectLocation",fn="accept-ranges",dn="client",hn="error",pn="http",_n="httpChecksum",bn="httpError",yn="httpHeader",mn="httpPrefixHeaders",gn="httpQuery",vn="partNumber",wn="response-cache-control",Sn="response-content-disposition",En="response-content-encoding",xn="response-content-language",An="response-content-type",Rn="response-expires",On="smithy.ts.sdk.synthetic.com.amazonaws.s3",kn="streaming",Tn="versionId",Pn="x-amz-checksum-crc32",Cn="x-amz-checksum-crc32c",Mn="x-amz-checksum-crc64nvme",In="x-amz-checksum-md5",Ln="x-amz-checksum-mode",Dn="x-amz-checksum-sha1",Nn="x-amz-checksum-sha256",jn="x-amz-checksum-sha512",Fn="x-amz-checksum-type",Un="x-amz-checksum-xxhash64",Wn="x-amz-checksum-xxhash3",$n="x-amz-checksum-xxhash128",Bn="x-amz-delete-marker",Hn="x-amz-expiration",Vn="x-amz-expected-bucket-owner",qn="x-amz-meta-",zn="x-amz-missing-meta",Gn="x-amz-mp-parts-count",Kn="x-amz-object-lock-legal-hold",Yn="x-amz-object-lock-mode",Xn="x-amz-object-lock-retain-until-date",Qn="x-amz-restore",Jn="x-amz-request-charged",Zn="x-amz-request-payer",ei="x-amz-replication-status",ti="x-amz-storage-class",ri="x-amz-server-side-encryption",ni="x-amz-server-side-encryption-aws-kms-key-id",ii="x-amz-server-side-encryption-bucket-key-enabled",oi="x-amz-server-side-encryption-customer-algorithm",ai="x-amz-server-side-encryption-customer-key",si="x-amz-server-side-encryption-customer-key-MD5",li="x-amz-tagging-count",ui="x-amz-version-id",ci="x-amz-website-redirect-location",fi="com.amazonaws.s3",di=At.for(On);var hi=[-3,On,"S3ServiceException",0,[],[]];di.registerError(hi,Ot);const pi=At.for(fi);var _i=[-3,fi,"AccessDenied",{[hn]:dn,[bn]:403},[],[]];pi.registerError(_i,Tt);var bi=[-3,fi,"BucketAlreadyExists",{[hn]:dn,[bn]:409},[],[]];pi.registerError(bi,Ct);var yi=[-3,fi,"BucketAlreadyOwnedByYou",{[hn]:dn,[bn]:409},[],[]];pi.registerError(yi,Mt);var mi=[-3,fi,"EncryptionTypeMismatch",{[hn]:dn,[bn]:400},[],[]];pi.registerError(mi,jt);var gi=[-3,fi,"IdempotencyParameterMismatch",{[hn]:dn,[bn]:400},[],[]];pi.registerError(gi,$t);var vi=[-3,fi,"InvalidObjectState",{[hn]:dn,[bn]:403},[tn,Vt],[0,0]];pi.registerError(vi,Lt);var wi=[-3,fi,"InvalidRequest",{[hn]:dn,[bn]:400},[],[]];pi.registerError(wi,Ft);var Si=[-3,fi,"InvalidWriteOffset",{[hn]:dn,[bn]:400},[],[]];pi.registerError(Si,Ut);var Ei=[-3,fi,"NoSuchBucket",{[hn]:dn,[bn]:404},[],[]];pi.registerError(Ei,It);var xi=[-3,fi,"NoSuchKey",{[hn]:dn,[bn]:404},[],[]];pi.registerError(xi,Dt);var Ai=[-3,fi,"NoSuchUpload",{[hn]:dn,[bn]:404},[],[]];pi.registerError(Ai,kt);var Ri=[-3,fi,"NotFound",{[hn]:dn},[],[]];pi.registerError(Ri,Nt);var Oi=[-3,fi,"ObjectAlreadyInActiveTierError",{[hn]:dn,[bn]:403},[],[]];pi.registerError(Oi,Bt);var ki=[-3,fi,"ObjectNotInActiveTierError",{[hn]:dn,[bn]:403},[],[]];pi.registerError(ki,Pt);var Ti=[-3,fi,"TooManyParts",{[hn]:dn,[bn]:400},[],[]];pi.registerError(Ti,Wt);var Pi=[0,fi,on,8,0],Ci=[0,fi,sn,8,0],Mi=[0,fi,"StreamingBlob",{[kn]:1},42],Ii=[3,fi,"GetObjectOutput",0,[Gt,vr,Ht,wr,en,Dr,ar,xr,Yt,Xt,Qt,fr,dr,hr,sr,yr,mr,gr,pr,Fr,un,Kt,er,rr,nr,ur,br,Ar,Er,cn,rn,jr,nn,an,sn,zt,tn,Vr,Jr,Br,ln,Wr,$r,Ur],[[()=>Mi,16],[2,{[yn]:Bn}],[0,{[yn]:fn}],[0,{[yn]:Hn}],[0,{[yn]:Qn}],[4,{[yn]:Nr}],[1,{[yn]:or}],[0,{[yn]:xr}],[0,{[yn]:Pn}],[0,{[yn]:Cn}],[0,{[yn]:Mn}],[0,{[yn]:Dn}],[0,{[yn]:Nn}],[0,{[yn]:jn}],[0,{[yn]:In}],[0,{[yn]:Un}],[0,{[yn]:Wn}],[0,{[yn]:$n}],[0,{[yn]:Fn}],[1,{[yn]:zn}],[0,{[yn]:ui}],[0,{[yn]:Jt}],[0,{[yn]:Zt}],[0,{[yn]:tr}],[0,{[yn]:ir}],[0,{[yn]:cr}],[0,{[yn]:_r}],[4,{[yn]:Ar}],[0,{[yn]:Er}],[0,{[yn]:ci}],[0,{[yn]:ri}],[128,{[mn]:qn}],[0,{[yn]:oi}],[0,{[yn]:si}],[()=>Ci,{[yn]:ni}],[2,{[yn]:ii}],[0,{[yn]:ti}],[0,{[yn]:Jn}],[0,{[yn]:ei}],[1,{[yn]:Gn}],[1,{[yn]:li}],[0,{[yn]:Yn}],[5,{[yn]:Xn}],[0,{[yn]:Kn}]]],Li=[3,fi,"GetObjectRequest",0,[qt,Lr,Rr,kr,Pr,Mr,Zr,qr,zr,Gr,Kr,Yr,Xr,un,nn,on,an,Qr,Hr,Sr,lr],[[0,1],[0,1],[0,{[yn]:Tr}],[4,{[yn]:Or}],[0,{[yn]:Cr}],[4,{[yn]:Ir}],[0,{[yn]:Zr}],[0,{[gn]:wn}],[0,{[gn]:Sn}],[0,{[gn]:En}],[0,{[gn]:xn}],[0,{[gn]:An}],[6,{[gn]:Rn}],[0,{[gn]:Tn}],[0,{[yn]:oi}],[()=>Pi,{[yn]:ai}],[0,{[yn]:si}],[0,{[yn]:Zn}],[1,{[gn]:vn}],[0,{[yn]:Vn}],[0,{[yn]:Ln}]],2],Di=[3,fi,"HeadObjectOutput",0,[vr,Ht,wr,en,"ArchiveStatus",Dr,ar,Yt,Xt,Qt,fr,dr,hr,sr,yr,mr,gr,pr,xr,Fr,un,Kt,er,rr,nr,br,ur,Ar,Er,cn,rn,jr,nn,an,sn,zt,tn,Vr,Jr,Br,ln,Wr,$r,Ur],[[2,{[yn]:Bn}],[0,{[yn]:fn}],[0,{[yn]:Hn}],[0,{[yn]:Qn}],[0,{[yn]:"x-amz-archive-status"}],[4,{[yn]:Nr}],[1,{[yn]:or}],[0,{[yn]:Pn}],[0,{[yn]:Cn}],[0,{[yn]:Mn}],[0,{[yn]:Dn}],[0,{[yn]:Nn}],[0,{[yn]:jn}],[0,{[yn]:In}],[0,{[yn]:Un}],[0,{[yn]:Wn}],[0,{[yn]:$n}],[0,{[yn]:Fn}],[0,{[yn]:xr}],[1,{[yn]:zn}],[0,{[yn]:ui}],[0,{[yn]:Jt}],[0,{[yn]:Zt}],[0,{[yn]:tr}],[0,{[yn]:ir}],[0,{[yn]:_r}],[0,{[yn]:cr}],[4,{[yn]:Ar}],[0,{[yn]:Er}],[0,{[yn]:ci}],[0,{[yn]:ri}],[128,{[mn]:qn}],[0,{[yn]:oi}],[0,{[yn]:si}],[()=>Ci,{[yn]:ni}],[2,{[yn]:ii}],[0,{[yn]:ti}],[0,{[yn]:Jn}],[0,{[yn]:ei}],[1,{[yn]:Gn}],[1,{[yn]:li}],[0,{[yn]:Yn}],[5,{[yn]:Xn}],[0,{[yn]:Kn}]]],Ni=[3,fi,"HeadObjectRequest",0,[qt,Lr,Rr,kr,Pr,Mr,Zr,qr,zr,Gr,Kr,Yr,Xr,un,nn,on,an,Qr,Hr,Sr,lr],[[0,1],[0,1],[0,{[yn]:Tr}],[4,{[yn]:Or}],[0,{[yn]:Cr}],[4,{[yn]:Ir}],[0,{[yn]:Zr}],[0,{[gn]:wn}],[0,{[gn]:Sn}],[0,{[gn]:En}],[0,{[gn]:xn}],[0,{[gn]:An}],[6,{[gn]:Rn}],[0,{[gn]:Tn}],[0,{[yn]:oi}],[()=>Pi,{[yn]:ai}],[0,{[yn]:si}],[0,{[yn]:Zn}],[1,{[gn]:vn}],[0,{[yn]:Vn}],[0,{[yn]:Ln}]],2],ji=[9,fi,"GetObject",{[_n]:"-",[pn]:["GET","/{Key+}?x-id=GetObject",200]},()=>Li,()=>Ii],Fi=[9,fi,"HeadObject",{[pn]:["HEAD","/{Key+}",200]},()=>Ni,()=>Di];class Ui extends(St.classBuilder().ep({...xt,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m((function(e,t,r,n){return[nt(r,e.getEndpointParameterInstructions()),ue(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1","SHA512","MD5","XXHASH64","XXHASH3","XXHASH128"]}),Be(r),We()]})).s("AmazonS3","GetObject",{}).n("S3Client","GetObjectCommand").sc(ji).build()){}const Wi={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},$i=e=>(t,r)=>async n=>{const i=await t(n),{response:o}=i;if(!ce.isInstance(o))return i;const{statusCode:a,body:s}=o;if(a<200||a>=300)return i;const l=await Bi(s,e);var u;if(o.body=(u=l,new ReadableStream({start(e){e.enqueue(u),e.close()}})),0===l.length&&Wi[r.commandName]){const e=new Error("S3 aborted request");throw e.$metadata={httpStatusCode:503},e.name="InternalError",e}const c=e.utf8Encoder(l.subarray(l.length-16));return c&&c.endsWith("</Error>")&&(o.statusCode=503),i},Bi=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Hi={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},Vi=e=>({applyToStack:t=>{t.addRelativeTo($i(e),Hi)}});class qi extends(St.classBuilder().ep({...xt,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m((function(e,t,r,n){return[nt(r,e.getEndpointParameterInstructions()),Vi(r),Be(r),We()]})).s("AmazonS3","HeadObject",{}).n("S3Client","HeadObjectCommand").sc(Fi).build()){}}],__webpack_module_cache__={},hasSymbol,webpackQueues,webpackExports,webpackError,resolveQueue;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}hasSymbol="function"==typeof Symbol,webpackQueues=hasSymbol?Symbol("webpack queues"):"__webpack_queues__",webpackExports=hasSymbol?Symbol("webpack exports"):"__webpack_exports__",webpackError=hasSymbol?Symbol("webpack error"):"__webpack_error__",resolveQueue=e=>{e&&e.d<1&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},__webpack_require__.a=(e,t,r)=>{var n;r&&((n=[]).d=-1);var i,o,a,s=new Set,l=e.exports,u=new Promise(((e,t)=>{a=t,o=e}));u[webpackExports]=l,u[webpackQueues]=e=>(n&&e(n),s.forEach(e),u.catch((e=>{}))),e.exports=u,t((e=>{var t;i=(e=>e.map((e=>{if(null!==e&&"object"==typeof e){if(e[webpackQueues])return e;if(e.then){var t=[];t.d=0,e.then((e=>{r[webpackExports]=e,resolveQueue(t)}),(e=>{r[webpackError]=e,resolveQueue(t)}));var r={};return r[webpackQueues]=e=>e(t),r}}var n={};return n[webpackQueues]=e=>{},n[webpackExports]=e,n})))(e);var r=()=>i.map((e=>{if(e[webpackError])throw e[webpackError];return e[webpackExports]})),o=new Promise((e=>{(t=()=>e(r)).r=0;var o=e=>e!==n&&!s.has(e)&&(s.add(e),e&&!e.d&&(t.r++,e.push(t)));i.map((e=>e[webpackQueues](o)))}));return t.r?o:r()}),(e=>(e?a(u[webpackError]=e):o(l),resolveQueue(n)))),n&&n.d<0&&(n.d=0)},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__=__webpack_require__(177);module.exports["web-documentation"]=__webpack_exports__})();
|
|
21
|
+
At.Transform},(e,t,r)=>{e.exports=r(54).PassThrough},(e,t,r)=>{const n=globalThis.AbortController||r(12).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:s},AbortError:l}=r(9),{validateAbortSignal:u,validateInteger:c,validateObject:f}=r(35),d=r(2).Symbol("kWeak"),h=r(2).Symbol("kResistStopPropagation"),{finished:p}=r(21),_=r(86),{addAbortSignalNoValidate:b}=r(44),{isWritable:y,isNodeStream:m}=r(18),{deprecate:g}=r(13),{ArrayPrototypePush:v,Boolean:w,MathFloor:S,Number:E,NumberIsNaN:x,Promise:A,PromiseReject:R,PromiseResolve:O,PromisePrototypeThen:k,Symbol:T}=r(2),P=T("kEmpty"),C=T("kEof");function M(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal");let n=1;null!=(null==t?void 0:t.concurrency)&&(n=S(t.concurrency));let i=n-1;return null!=(null==t?void 0:t.highWaterMark)&&(i=S(t.highWaterMark)),c(n,"options.concurrency",1),c(i,"options.highWaterMark",0),i+=n,async function*(){const o=r(13).AbortSignalAny([null==t?void 0:t.signal].filter(w)),a=this,s=[],u={signal:o};let c,f,d=!1,h=0;function p(){d=!0,_()}function _(){h-=1,b()}function b(){f&&!d&&h<n&&s.length<i&&(f(),f=null)}!async function(){try{for await(let t of a){if(d)return;if(o.aborted)throw new l;try{if(t=e(t,u),t===P)continue;t=O(t)}catch(e){t=R(e)}h+=1,k(t,_,p),s.push(t),c&&(c(),c=null),!d&&(s.length>=i||h>=n)&&await new A((e=>{f=e}))}s.push(C)}catch(e){const t=R(e);k(t,_,p),s.push(t)}finally{d=!0,c&&(c(),c=null)}}();try{for(;;){for(;s.length>0;){const e=await s[0];if(e===C)return;if(o.aborted)throw new l;e!==P&&(yield e),s.shift(),b()}await new A((e=>{c=e}))}}finally{d=!0,f&&(f(),f=null)}}.call(this)}async function I(e,t=void 0){for await(const r of L.call(this,e,t))return!0;return!1}function L(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return M.call(this,(async function(t,r){return await e(t,r)?t:P}),t)}class D extends a{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function N(e){if(e=E(e),x(e))return 0;if(e<0)throw new s("number",">= 0",e);return e}e.exports.streamReturningOperators={asIndexedPairs:g((function(e=void 0){return null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),async function*(){let t=0;for await(const n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l({cause:e.signal.reason});yield[t++,n]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new l;e--<=0&&(yield r)}}.call(this)},filter:L,flatMap:function(e,t){const r=M.call(this,e,t);return async function*(){for await(const e of r)yield*e}.call(this)},map:M,take:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new l;if(e-- >0&&(yield r),e<=0)return}}.call(this)},compose:function(e,t){if(null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),m(e)&&!y(e))throw new i("stream",e,"must be writable");const r=_(this,e);return null!=t&&t.signal&&b(t.signal,r),r}},e.exports.promiseReturningOperators={every:async function(e,t=void 0){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return!await I.call(this,(async(...t)=>!await e(...t)),t)},forEach:async function(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);for await(const r of M.call(this,(async function(t,r){return await e(t,r),P}),t));},reduce:async function(e,t,r){var i;if("function"!=typeof e)throw new o("reducer",["Function","AsyncFunction"],e);null!=r&&f(r,"options"),null!=(null==r?void 0:r.signal)&&u(r.signal,"options.signal");let a=arguments.length>1;if(null!=r&&null!==(i=r.signal)&&void 0!==i&&i.aborted){const e=new l(void 0,{cause:r.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(e)),e}const s=new n,c=s.signal;if(null!=r&&r.signal){const e={once:!0,[d]:this,[h]:!0};r.signal.addEventListener("abort",(()=>s.abort()),e)}let _=!1;try{for await(const n of this){var b;if(_=!0,null!=r&&null!==(b=r.signal)&&void 0!==b&&b.aborted)throw new l;a?t=await e(t,n,{signal:c}):(t=n,a=!0)}if(!_&&!a)throw new D}finally{s.abort()}return t},toArray:async function(e){null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal");const t=[];for await(const n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l(void 0,{cause:e.signal.reason});v(t,n)}return t},some:I,find:async function(e,t){for await(const r of L.call(this,e,t))return r}}},(e,t,r)=>{const n=globalThis.AbortController||r(12).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:s},AbortError:l}=r(10),{validateAbortSignal:u,validateInteger:c,validateObject:f}=r(36),d=r(3).Symbol("kWeak"),h=r(3).Symbol("kResistStopPropagation"),{finished:p}=r(22),_=r(92),{addAbortSignalNoValidate:b}=r(47),{isWritable:y,isNodeStream:m}=r(19),{deprecate:g}=r(14),{ArrayPrototypePush:v,Boolean:w,MathFloor:S,Number:E,NumberIsNaN:x,Promise:A,PromiseReject:R,PromiseResolve:O,PromisePrototypeThen:k,Symbol:T}=r(3),P=T("kEmpty"),C=T("kEof");function M(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal");let n=1;null!=(null==t?void 0:t.concurrency)&&(n=S(t.concurrency));let i=n-1;return null!=(null==t?void 0:t.highWaterMark)&&(i=S(t.highWaterMark)),c(n,"options.concurrency",1),c(i,"options.highWaterMark",0),i+=n,async function*(){const o=r(14).AbortSignalAny([null==t?void 0:t.signal].filter(w)),a=this,s=[],u={signal:o};let c,f,d=!1,h=0;function p(){d=!0,_()}function _(){h-=1,b()}function b(){f&&!d&&h<n&&s.length<i&&(f(),f=null)}!async function(){try{for await(let t of a){if(d)return;if(o.aborted)throw new l;try{if(t=e(t,u),t===P)continue;t=O(t)}catch(e){t=R(e)}h+=1,k(t,_,p),s.push(t),c&&(c(),c=null),!d&&(s.length>=i||h>=n)&&await new A((e=>{f=e}))}s.push(C)}catch(e){const t=R(e);k(t,_,p),s.push(t)}finally{d=!0,c&&(c(),c=null)}}();try{for(;;){for(;s.length>0;){const e=await s[0];if(e===C)return;if(o.aborted)throw new l;e!==P&&(yield e),s.shift(),b()}await new A((e=>{c=e}))}}finally{d=!0,f&&(f(),f=null)}}.call(this)}async function I(e,t=void 0){for await(const r of L.call(this,e,t))return!0;return!1}function L(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return M.call(this,(async function(t,r){return await e(t,r)?t:P}),t)}class D extends a{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function N(e){if(e=E(e),x(e))return 0;if(e<0)throw new s("number",">= 0",e);return e}e.exports.streamReturningOperators={asIndexedPairs:g((function(e=void 0){return null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),async function*(){let t=0;for await(const n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l({cause:e.signal.reason});yield[t++,n]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new l;e--<=0&&(yield r)}}.call(this)},filter:L,flatMap:function(e,t){const r=M.call(this,e,t);return async function*(){for await(const e of r)yield*e}.call(this)},map:M,take:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new l;if(e-- >0&&(yield r),e<=0)return}}.call(this)},compose:function(e,t){if(null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),m(e)&&!y(e))throw new i("stream",e,"must be writable");const r=_(this,e);return null!=t&&t.signal&&b(t.signal,r),r}},e.exports.promiseReturningOperators={every:async function(e,t=void 0){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return!await I.call(this,(async(...t)=>!await e(...t)),t)},forEach:async function(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);for await(const r of M.call(this,(async function(t,r){return await e(t,r),P}),t));},reduce:async function(e,t,r){var i;if("function"!=typeof e)throw new o("reducer",["Function","AsyncFunction"],e);null!=r&&f(r,"options"),null!=(null==r?void 0:r.signal)&&u(r.signal,"options.signal");let a=arguments.length>1;if(null!=r&&null!==(i=r.signal)&&void 0!==i&&i.aborted){const e=new l(void 0,{cause:r.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(e)),e}const s=new n,c=s.signal;if(null!=r&&r.signal){const e={once:!0,[d]:this,[h]:!0};r.signal.addEventListener("abort",(()=>s.abort()),e)}let _=!1;try{for await(const n of this){var b;if(_=!0,null!=r&&null!==(b=r.signal)&&void 0!==b&&b.aborted)throw new l;a?t=await e(t,n,{signal:c}):(t=n,a=!0)}if(!_&&!a)throw new D}finally{s.abort()}return t},toArray:async function(e){null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal");const t=[];for await(const n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l(void 0,{cause:e.signal.reason});v(t,n)}return t},some:I,find:async function(e,t){for await(const r of L.call(this,e,t))return r}}},(e,t,r)=>{const n=globalThis.AbortController||r(12).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:s},AbortError:l}=r(11),{validateAbortSignal:u,validateInteger:c,validateObject:f}=r(37),d=r(4).Symbol("kWeak"),h=r(4).Symbol("kResistStopPropagation"),{finished:p}=r(23),_=r(97),{addAbortSignalNoValidate:b}=r(50),{isWritable:y,isNodeStream:m}=r(20),{deprecate:g}=r(15),{ArrayPrototypePush:v,Boolean:w,MathFloor:S,Number:E,NumberIsNaN:x,Promise:A,PromiseReject:R,PromiseResolve:O,PromisePrototypeThen:k,Symbol:T}=r(4),P=T("kEmpty"),C=T("kEof");function M(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal");let n=1;null!=(null==t?void 0:t.concurrency)&&(n=S(t.concurrency));let i=n-1;return null!=(null==t?void 0:t.highWaterMark)&&(i=S(t.highWaterMark)),c(n,"options.concurrency",1),c(i,"options.highWaterMark",0),i+=n,async function*(){const o=r(15).AbortSignalAny([null==t?void 0:t.signal].filter(w)),a=this,s=[],u={signal:o};let c,f,d=!1,h=0;function p(){d=!0,_()}function _(){h-=1,b()}function b(){f&&!d&&h<n&&s.length<i&&(f(),f=null)}!async function(){try{for await(let t of a){if(d)return;if(o.aborted)throw new l;try{if(t=e(t,u),t===P)continue;t=O(t)}catch(e){t=R(e)}h+=1,k(t,_,p),s.push(t),c&&(c(),c=null),!d&&(s.length>=i||h>=n)&&await new A((e=>{f=e}))}s.push(C)}catch(e){const t=R(e);k(t,_,p),s.push(t)}finally{d=!0,c&&(c(),c=null)}}();try{for(;;){for(;s.length>0;){const e=await s[0];if(e===C)return;if(o.aborted)throw new l;e!==P&&(yield e),s.shift(),b()}await new A((e=>{c=e}))}}finally{d=!0,f&&(f(),f=null)}}.call(this)}async function I(e,t=void 0){for await(const r of L.call(this,e,t))return!0;return!1}function L(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return M.call(this,(async function(t,r){return await e(t,r)?t:P}),t)}class D extends a{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function N(e){if(e=E(e),x(e))return 0;if(e<0)throw new s("number",">= 0",e);return e}e.exports.streamReturningOperators={asIndexedPairs:g((function(e=void 0){return null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),async function*(){let t=0;for await(const n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l({cause:e.signal.reason});yield[t++,n]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new l;e--<=0&&(yield r)}}.call(this)},filter:L,flatMap:function(e,t){const r=M.call(this,e,t);return async function*(){for await(const e of r)yield*e}.call(this)},map:M,take:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new l;if(e-- >0&&(yield r),e<=0)return}}.call(this)},compose:function(e,t){if(null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),m(e)&&!y(e))throw new i("stream",e,"must be writable");const r=_(this,e);return null!=t&&t.signal&&b(t.signal,r),r}},e.exports.promiseReturningOperators={every:async function(e,t=void 0){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return!await I.call(this,(async(...t)=>!await e(...t)),t)},forEach:async function(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);for await(const r of M.call(this,(async function(t,r){return await e(t,r),P}),t));},reduce:async function(e,t,r){var i;if("function"!=typeof e)throw new o("reducer",["Function","AsyncFunction"],e);null!=r&&f(r,"options"),null!=(null==r?void 0:r.signal)&&u(r.signal,"options.signal");let a=arguments.length>1;if(null!=r&&null!==(i=r.signal)&&void 0!==i&&i.aborted){const e=new l(void 0,{cause:r.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(e)),e}const s=new n,c=s.signal;if(null!=r&&r.signal){const e={once:!0,[d]:this,[h]:!0};r.signal.addEventListener("abort",(()=>s.abort()),e)}let _=!1;try{for await(const n of this){var b;if(_=!0,null!=r&&null!==(b=r.signal)&&void 0!==b&&b.aborted)throw new l;a?t=await e(t,n,{signal:c}):(t=n,a=!0)}if(!_&&!a)throw new D}finally{s.abort()}return t},toArray:async function(e){null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal");const t=[];for await(const n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l(void 0,{cause:e.signal.reason});v(t,n)}return t},some:I,find:async function(e,t){for await(const r of L.call(this,e,t))return r}}},(e,t,r)=>{t.extract=r(137),t.pack=r(146)},e=>{e.exports=require("child_process")},e=>{e.exports=require("fs/promises")},e=>{e.exports=require("node:os")},(e,t,r)=>{r(65),r(148),t.Extract=r(149),r(170)},e=>{e.exports=require("constants")},e=>{e.exports=require("assert")},(e,t,r)=>{const n=r(8),{checkPath:i}=r(191),o=e=>"number"==typeof e?e:{mode:511,...e}.mode;e.exports.makeDir=async(e,t)=>(i(e),n.mkdir(e,{mode:o(t),recursive:!0})),e.exports.makeDirSync=(e,t)=>(i(e),n.mkdirSync(e,{mode:o(t),recursive:!0}))},(e,t,r)=>{const n=r(6);e.exports.checkPath=function(e){if("win32"===process.platform){if(/[<>:"|?*]/.test(e.replace(n.parse(e).root,""))){const t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}}}},(e,t,r)=>{r.d(t,{GetObjectCommand:()=>$i,HeadObjectCommand:()=>Gi});class n{static v2026="undefined"!=typeof process&&"true"===process.env?.SMITHY_NEW_RETRIES_2026;static delay(){return n.v2026?50:100}static throttlingDelay(){return n.v2026?1e3:500}static cost(){return n.v2026?14:5}static throttlingCost(){return n.v2026?5:10}static modifiedCostType(){return n.v2026?"THROTTLING":"TRANSIENT"}}function i(e,t,r){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=r}n.v2026||="object"==typeof process&&"true"===process.env?.AWS_NEW_RETRIES_2026;const o="WHEN_SUPPORTED",a="WHEN_REQUIRED",s="WHEN_SUPPORTED",l="WHEN_REQUIRED";var u,c;!function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.CRC64NVME="CRC64NVME",e.SHA1="SHA1",e.SHA256="SHA256"}(u||(u={})),function(e){e.HEADER="header",e.TRAILER="trailer"}(c||(c={}));const f=u.CRC32,d={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0};class h{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 h({...e,headers:{...e.headers}});var r;return t.query&&(t.query=(r=t.query,Object.keys(r).reduce(((e,t)=>{const n=r[t];return{...e,[t]:Array.isArray(n)?[...n]:n}}),{}))),t}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers}clone(){return h.clone(this)}}class p{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(1===this.byteArrays.length){const e=this.byteArrays[0];return this.reset(),e}const e=this.allocByteArray(this.byteLength);let t=0;for(let r=0;r<this.byteArrays.length;++r){const n=this.byteArrays[r];e.set(n,t),t+=n.byteLength}return this.reset(),e}reset(){this.byteArrays=[],this.byteLength=0}}const _=function(e,t,r){const n=e.getReader();let i=!1,o=0;const a=["",new p((e=>new Uint8Array(e)))];let s=-1;const l=async e=>{const{value:u,done:c}=await n.read(),f=u;if(c){if(-1!==s){const t=b(a,s);y(t)>0&&e.enqueue(t)}e.close()}else{const n=function(e,t=!0){if(t&&"undefined"!=typeof Buffer&&e instanceof Buffer)return 2;if(e instanceof Uint8Array)return 1;if("string"==typeof e)return 0;return-1}(f,!1);if(s!==n&&(s>=0&&e.enqueue(b(a,s)),s=n),-1===s)return void e.enqueue(f);const u=y(f);o+=u;const c=y(a[s]);if(u>=t&&0===c)e.enqueue(f);else{const n=function(e,t,r){switch(t){case 0:return e[0]+=r,y(e[0]);case 1:case 2:return e[t].push(r),y(e[t])}}(a,s,f);!i&&o>2*t&&(i=!0,r?.warn(`@smithy/util-stream - stream chunk size ${u} is below threshold of ${t}, automatically buffering.`)),n>=t?e.enqueue(b(a,s)):await l(e)}}};return new ReadableStream({pull:l})};function b(e,t){switch(t){case 0:const r=e[0];return e[0]="",r;case 1:case 2:return e[t].flush()}throw new Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function y(e){return e?.byteLength??e?.length??0}const m=e=>e===u.MD5?"content-md5":`x-amz-checksum-${e.toLowerCase()}`,g=e=>{return!(void 0===e||"string"==typeof e||ArrayBuffer.isView(e)||(t=e,"function"==typeof ArrayBuffer&&t instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(t)));var t};function v(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function w(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}Object.create;function S(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;"function"==typeof SuppressedError&&SuppressedError;var E="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:e=>(new TextEncoder).encode(e);function x(e){return e instanceof Uint8Array?e:"string"==typeof e?E(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function A(e){return"string"==typeof e?0===e.length:0===e.byteLength}function R(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}function O(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}var k=function(){function e(){this.crc32c=new T}return e.prototype.update=function(e){A(e)||this.crc32c.update(x(e))},e.prototype.digest=function(){return v(this,void 0,void 0,(function(){return w(this,(function(e){return[2,R(this.crc32c.digest())]}))}))},e.prototype.reset=function(){this.crc32c=new T},e}();var T=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var n=S(e),i=n.next();!i.done;i=n.next()){var o=i.value;this.checksum=this.checksum>>>8^P[255&(this.checksum^o)]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}(),P=O([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]);let C,M,I,L,D,N,j,F,U;const W=()=>{C||(C=(()=>{const e=new Array(8);for(let t=0;t<8;t++){const r=new Array(512);for(let e=0;e<256;e++){let n=BigInt(e);for(let e=0;e<8*(t+1);e++)1n&n?n=n>>1n^0x9a6c9329ac4bc9b5n:n>>=1n;r[2*e]=Number(n>>32n&0xffffffffn),r[2*e+1]=Number(0xffffffffn&n)}e[t]=new Uint32Array(r)}return e})(),[M,I,L,D,N,j,F,U]=C)};class ${c1=0;c2=0;constructor(){W(),this.reset()}update(e){const t=e.length;let r=0,n=this.c1,i=this.c2;for(;r+8<=t;){const t=(255&(i^e[r++]))<<1,o=(255&(i>>>8^e[r++]))<<1,a=(255&(i>>>16^e[r++]))<<1,s=(255&(i>>>24^e[r++]))<<1,l=(255&(n^e[r++]))<<1,u=(255&(n>>>8^e[r++]))<<1,c=(255&(n>>>16^e[r++]))<<1,f=(255&(n>>>24^e[r++]))<<1;n=U[t]^F[o]^j[a]^N[s]^D[l]^L[u]^I[c]^M[f],i=U[t+1]^F[o+1]^j[a+1]^N[s+1]^D[l+1]^L[u+1]^I[c+1]^M[f+1]}for(;r<t;){const t=(255&(i^e[r]))<<1;i=(i>>>8|(255&n)<<24)>>>0,n=n>>>8^M[t],i^=M[t+1],r++}this.c1=n,this.c2=i}async digest(){const e=4294967295^this.c1,t=4294967295^this.c2;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t])}reset(){this.c1=4294967295,this.c2=4294967295}}const B=null;var H=function(){function e(){this.crc32=new V}return e.prototype.update=function(e){A(e)||this.crc32.update(x(e))},e.prototype.digest=function(){return v(this,void 0,void 0,(function(){return w(this,(function(e){return[2,R(this.crc32.digest())]}))}))},e.prototype.reset=function(){this.crc32=new V},e}();var V=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var n=S(e),i=n.next();!i.done;i=n.next()){var o=i.value;this.checksum=this.checksum>>>8^q[255&(this.checksum^o)]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}(),q=O([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]);const z=[u.CRC32,u.CRC32C,u.CRC64NVME,u.SHA1,u.SHA256],G=[u.SHA256,u.SHA1,u.CRC32,u.CRC32C,u.CRC64NVME],K=(e,t)=>{const{checksumAlgorithms:r={}}=t;switch(e){case u.MD5:return r?.MD5??t.md5;case u.CRC32:return r?.CRC32??H;case u.CRC32C:return r?.CRC32C??k;case u.CRC64NVME:return"function"!=typeof B?r?.CRC64NVME??$:r?.CRC64NVME??B;case u.SHA1:return r?.SHA1??t.sha1;case u.SHA256:return r?.SHA256??t.sha256;default:if(r?.[e])return r[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.`)}},Y=e=>(new TextEncoder).encode(e),X=(e,t)=>{const r=new e;var n;return r.update("string"==typeof(n=t||"")?Y(n):ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(n)),r.digest()},Q={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},J=(e,t)=>(r,n)=>async a=>{if(!h.isInstance(a.request))return r(a);if(((e,t)=>{const r=e.toLowerCase();for(const e of Object.keys(t))if(e.toLowerCase().startsWith(r))return!0;return!1})("x-amz-checksum-",a.request.headers))return r(a);const{request:s,input:l}=a,{body:c,headers:d}=s,{base64Encoder:p,streamHasher:b}=e,{requestChecksumRequired:y,requestAlgorithmMember:v}=t,w=await e.requestChecksumCalculation(),S=v?.name,E=v?.httpHeader;S&&!l[S]&&(w===o||y)&&(l[S]=f,E&&(d[E]=f));const x=((e,{requestChecksumRequired:t,requestAlgorithmMember:r,requestChecksumCalculation:n})=>{if(!r)return n===o||t?f:void 0;if(!e[r])return;return e[r]})(l,{requestChecksumRequired:y,requestAlgorithmMember:v?.name,requestChecksumCalculation:w});let A=c,R=d;if(x){switch(x){case u.CRC32:i(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case u.CRC32C:i(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case u.CRC64NVME:i(n,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case u.SHA1:i(n,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case u.SHA256:i(n,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y")}const t=m(x),r=K(x,e);if(g(c)){const{getAwsChunkedEncodingStream:i,bodyLengthChecker:o}=e;A=i("number"==typeof e.requestStreamBufferSize&&e.requestStreamBufferSize>=8192?_(c,e.requestStreamBufferSize,n.logger):c,{base64Encoder:p,bodyLengthChecker:o,checksumLocationName:t,checksumAlgorithmFn:r,streamHasher:b}),R={...d,"content-encoding":d["content-encoding"]?`${d["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":d["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":t},delete R["content-length"]}else if(!((e,t)=>{const r=e.toLowerCase();for(const e of Object.keys(t))if(r===e.toLowerCase())return!0;return!1})(t,d)){const e=await X(r,c);R={...d,[t]:p(e)}}}try{return await r({...a,request:{...s,headers:R,body:A}})}catch(e){if(e instanceof Error&&"InvalidChunkSizeError"===e.name)try{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}},Z=(e=[])=>{const t=[];let r=G.length;for(const n of e){const e=G.indexOf(n);-1!==e?t[e]=n:t[r++]=n}return t.filter(Boolean)},ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",te=(Object.entries(ee).reduce(((e,[t,r])=>(e[r]=Number(t),e)),{}),ee.split(""));function re(e){let t;t="string"==typeof e?Y(e):e;const r="object"==typeof t&&"number"==typeof t.length,n="object"==typeof t&&"number"==typeof t.byteOffset&&"number"==typeof t.byteLength;if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let i="";for(let e=0;e<t.length;e+=3){let r=0,n=0;for(let i=e,o=Math.min(e+3,t.length);i<o;i++)r|=t[i]<<8*(o-i-1),n+=8;const o=Math.ceil(n/6);r<<=6*o-n;for(let e=1;e<=o;e++){const t=6*(o-e);i+=te[(r&63<<t)>>t]}i+="==".slice(0,4-o)}return i}const ne="function"==typeof ReadableStream?ReadableStream:function(){};class ie extends ne{}const oe=({expectedChecksum:e,checksum:t,source:r,checksumSourceLocation:n,base64Encoder:i})=>{if(o=r,"function"!=typeof ReadableStream||!(o?.constructor?.name===ReadableStream.name||o instanceof ReadableStream))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);var o;const a=i??re;if("function"!=typeof TransformStream)throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");const s=new TransformStream({start(){},async transform(e,r){t.update(e),r.enqueue(e)},async flush(r){const i=await t.digest(),o=a(i);if(e!==o){const t=new Error(`Checksum mismatch: expected "${e}" but received "${o}" in response header "${n}".`);r.error(t)}else r.terminate()}});r.pipeThrough(s);const l=s.readable;return Object.setPrototypeOf(l,ie.prototype),l},ae=async(e,{checksumAlgorithmFn:t,base64Encoder:r})=>r(await X(t,e)),se={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},le=(e,t)=>(r,n)=>async i=>{if(!h.isInstance(i.request))return r(i);const o=i.input,a=await r(i),s=a.response,{requestValidationModeMember:l,responseAlgorithms:c}=t;if(l&&"ENABLED"===o[l]){const{clientName:t,commandName:r}=n,i=Object.keys(e.checksumAlgorithms??{}).filter((e=>{const t=m(e);return void 0!==s.headers[t]})),o=Z([...c??[],...i]);if("S3Client"===t&&"GetObjectCommand"===r&&o.every((e=>{const t=m(e),r=s.headers[t];return!r||(e=>{const t=e.lastIndexOf("-");if(-1!==t){const r=e.slice(t+1);if(!r.startsWith("0")){const e=parseInt(r,10);if(!isNaN(e)&&e>=1&&e<=1e4)return!0}}return!1})(r)})))return a;await(async(e,{config:t,responseAlgorithms:r,logger:n})=>{const i=Z(r),{body:o,headers:a}=e;for(const r of i){const i=m(r),s=a[i];if(s){let a;try{a=K(r,t)}catch(e){if(r===u.CRC64NVME){n?.warn(`Skipping ${u.CRC64NVME} checksum validation: ${e.message}`);continue}throw e}const{base64Encoder:l}=t;if(g(o))return void(e.body=oe({expectedChecksum:s,checksumSourceLocation:i,checksum:new a,source:o,base64Encoder:l}));const c=await ae(o,{checksumAlgorithmFn:a,base64Encoder:l});if(c===s)break;throw new Error(`Checksum mismatch: expected "${c}" but received "${s}" in response header "${i}".`)}}})(s,{config:e,responseAlgorithms:o,logger:n.logger})}return a},ue=(e,t)=>({applyToStack:r=>{r.add(J(e,t),Q),r.addRelativeTo(((e,t)=>(r,n)=>async u=>{const c=u.input,{requestValidationModeMember:f}=t,d=await e.requestChecksumCalculation(),h=await e.responseChecksumValidation();switch(d){case a:i(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case o:i(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z")}switch(h){case l:i(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case s:i(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b")}return f&&!c[f]&&h===s&&(c[f]="ENABLED"),r(u)})(e,t),d),r.addRelativeTo(le(e,t),se)}});class ce{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!1;const t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers}}const fe=e=>{if(null!=e){if("string"==typeof e){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&Ee.warn(Se(`Expected number but observed string: ${e}`)),t}if("number"==typeof e)return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},de=Math.ceil(2**127*(2-2**-23)),he=e=>{const t=fe(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>de)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},pe=e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},_e=e=>ye(e,16),be=e=>ye(e,8),ye=(e,t)=>{const r=pe(e);if(void 0!==r&&me(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},me=(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]}},ge=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,ve=e=>{const t=e.match(ge);if(null===t||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},we=e=>_e("string"==typeof e?ve(e):e),Se=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n"),Ee={warn:console.warn};const xe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const Ae=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$/),Re=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$/),Oe=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})$/),ke=(e,t,r,n)=>{const i=t-1;return Ie(e,i,r),new Date(Date.UTC(e,i,r,De(n.hours,"hour",0,23),De(n.minutes,"minute",0,59),De(n.seconds,"seconds",0,60),Ne(n.fractionalMilliseconds)))},Te=e=>{const t=(new Date).getUTCFullYear(),r=100*Math.floor(t/100)+we(je(e));return r<t?r+100:r},Pe=e=>e.getTime()-(new Date).getTime()>15768e8?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,Ce=e=>{const t=xe.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},Me=[31,28,31,30,31,30,31,31,30,31,30,31],Ie=(e,t,r)=>{let n=Me[t];if(1===t&&Le(e)&&(n=29),r>n)throw new TypeError(`Invalid day for ${xe[t]} in ${e}: ${r}`)},Le=e=>e%4==0&&(e%100!=0||e%400==0),De=(e,t,r,n)=>{const i=(e=>be("string"==typeof e?ve(e):e))(je(e));if(i<r||i>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return i},Ne=e=>null==e?0:1e3*(e=>he("string"==typeof e?ve(e):e))("0."+e),je=e=>{let t=0;for(;t<e.length-1&&"0"===e.charAt(t);)t++;return 0===t?e:e.slice(t)},Fe=e=>(e,t)=>async r=>{const n=await e(r),{response:i}=n;if(ce.isInstance(i)&&i.headers.expires){i.headers.expiresstring=i.headers.expires;try{(e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=Ae.exec(e);if(t){const[e,r,n,i,o,a,s,l]=t;return ke(we(je(i)),Ce(n),De(r,"day",1,31),{hours:o,minutes:a,seconds:s,fractionalMilliseconds:l})}if(t=Re.exec(e),t){const[e,r,n,i,o,a,s,l]=t;return Pe(ke(Te(i),Ce(n),De(r,"day",1,31),{hours:o,minutes:a,seconds:s,fractionalMilliseconds:l}))}if(t=Oe.exec(e),t){const[e,r,n,i,o,a,s,l]=t;return ke(we(je(l)),Ce(r),De(n.trimLeft(),"day",1,31),{hours:i,minutes:o,seconds:a,fractionalMilliseconds:s})}throw new TypeError("Invalid RFC-7231 date-time value")})(i.headers.expires)}catch(e){t.logger?.warn(`AWS SDK Warning for ${t.clientName}::${t.commandName} response parsing (${i.headers.expires}): ${e}`),delete i.headers.expires}}return n},Ue={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},We=e=>({applyToStack:e=>{e.addRelativeTo(Fe(),Ue)}});const $e={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},Be=e=>({applyToStack:t=>{var r;t.add((r=e,e=>async t=>{const n={...t.input},i=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(const e of i){const t=n[e.target];if(t){let i;"string"==typeof t?He(t,r)?i=r.base64Decoder(t):(i=r.utf8Decoder(t),n[e.target]=r.base64Encoder(i)):(i=ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(t),n[e.target]=r.base64Encoder(i));const o=new r.md5;o.update(i),n[e.hash]=r.base64Encoder(await o.digest())}}return e({...t,input:n})}),$e)}});function He(e,t){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return!1;try{return 32===t.base64Decoder(e).length}catch{return!1}}const Ve="__smithy_context",qe=(e,t)=>{const r=[];if(e&&r.push(e),t)for(const e of t)r.push(e);return r},ze=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,Ge=()=>{let e=[],t=[],r=!1;const n=new Set,i=r=>(e.forEach((e=>{r.add(e.middleware,{...e})})),t.forEach((e=>{r.addRelativeTo(e.middleware,{...e})})),r.identifyOnResolve?.(s.identifyOnResolve()),r),o=e=>{const t=[];return e.before.forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...o(e))})),t.push(e),e.after.reverse().forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...o(e))})),t},a=(r=!1)=>{const n=[],i=[],a={};e.forEach((e=>{const t={...e,before:[],after:[]};for(const e of qe(t.name,t.aliases))a[e]=t;n.push(t)})),t.forEach((e=>{const t={...e,before:[],after:[]};for(const e of qe(t.name,t.aliases))a[e]=t;i.push(t)})),i.forEach((e=>{if(e.toMiddleware){const t=a[e.toMiddleware];if(void 0===t){if(r)return;throw new Error(`${e.toMiddleware} is not found when adding ${ze(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}));var s;return(s=n,s.sort(((e,t)=>Ke[t.step]-Ke[e.step]||Ye[t.priority||"normal"]-Ye[e.priority||"normal"]))).map(o).reduce(((e,t)=>(e.push(...t),e)),[])},s={add:(t,r={})=>{const{name:i,override:o,aliases:a}=r,s={step:"initialize",priority:"normal",middleware:t,...r},l=qe(i,a);if(l.length>0){if(l.some((e=>n.has(e)))){if(!o)throw new Error(`Duplicate middleware name '${ze(i,a)}'`);for(const t of l){const r=e.findIndex((e=>e.name===t||e.aliases?.some((e=>e===t))));if(-1===r)continue;const n=e[r];if(n.step!==s.step||s.priority!==n.priority)throw new Error(`"${ze(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${ze(i,a)}" middleware with ${s.priority} priority in ${s.step} step.`);e.splice(r,1)}}for(const e of l)n.add(e)}e.push(s)},addRelativeTo:(e,r)=>{const{name:i,override:o,aliases:a}=r,s={middleware:e,...r},l=qe(i,a);if(l.length>0){if(l.some((e=>n.has(e)))){if(!o)throw new Error(`Duplicate middleware name '${ze(i,a)}'`);for(const e of l){const r=t.findIndex((t=>t.name===e||t.aliases?.some((t=>t===e))));if(-1===r)continue;const n=t[r];if(n.toMiddleware!==s.toMiddleware||n.relation!==s.relation)throw new Error(`"${ze(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${ze(i,a)}" middleware ${s.relation} "${s.toMiddleware}" middleware.`);t.splice(r,1)}}for(const e of l)n.add(e)}t.push(s)},clone:()=>i(Ge()),use:e=>{e.applyToStack(s)},remove:r=>"string"==typeof r?(r=>{let i=!1;const o=e=>{const t=qe(e.name,e.aliases);if(t.includes(r)){i=!0;for(const e of t)n.delete(e);return!1}return!0};return e=e.filter(o),t=t.filter(o),i})(r):(r=>{let i=!1;const o=e=>{if(e.middleware===r){i=!0;for(const t of qe(e.name,e.aliases))n.delete(t);return!1}return!0};return e=e.filter(o),t=t.filter(o),i})(r),removeByTag:r=>{let i=!1;const o=e=>{const{tags:t,name:o,aliases:a}=e;if(t&&t.includes(r)){const e=qe(o,a);for(const t of e)n.delete(t);return i=!0,!1}return!0};return e=e.filter(o),t=t.filter(o),i},concat:e=>{const t=i(Ge());return t.use(e),t.identifyOnResolve(r||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:i,identify:()=>a(!0).map((e=>{const t=e.step??e.relation+" "+e.toMiddleware;return ze(e.name,e.aliases)+" - "+t})),identifyOnResolve:e=>("boolean"==typeof e&&(r=e),r),resolve:(e,t)=>{for(const r of a().map((e=>e.middleware)).reverse())e=r(e,t);return r&&console.log(s.identify()),e}};return s},Ke={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Ye={high:3,normal:2,low:1},Xe=e=>"function"==typeof e?e():e,Qe=[];function Je(e){if("object"==typeof e)return e;if(Qe[e|=0])return Qe[e];const t={};let r=0;for(const n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])1==(e>>r++&1)&&(t[n]=1);return Qe[e]=t}const Ze=Symbol.for("@smithy/nor-struct-it"),et=Symbol.for("@smithy/ns"),tt=[],rt={};class nt{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=nt.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,t){this.ref=e,this.memberName=t;const r=[];let n=e,i=e;for(this._isMemberSchema=!1;ot(n);)r.push(n[1]),n=n[0],i=Xe(n),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){const t=r[e];Object.assign(this.memberTraits,Je(t))}}else this.memberTraits=0;if(i instanceof nt){const e=this.memberTraits;return Object.assign(this,i),this.memberTraits=Object.assign({},e,i.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,void(this.memberName=t??i.memberName)}if(this.schema=Xe(i),at(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(i),this.traits=0),this._isMemberSchema&&!t)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);if(!t&&"object"==typeof e&&null!==e){return e.symbol===this.symbol}return t}static of(e){const t="function"==typeof e||"object"==typeof e&&null!==e;if("number"==typeof e){if(tt[e])return tt[e]}else if("string"==typeof e){if(rt[e])return rt[e]}else if(t&&e[et])return e[et];const r=Xe(e);if(r instanceof nt)return r;if(ot(r)){const[t,n]=r;if(t instanceof nt)return Object.assign(t.getMergedTraits(),Je(n)),t;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}const n=new nt(r);return t?e[et]=n:"string"==typeof r?rt[r]=n:"number"==typeof r?tt[r]=n:n}getSchema(){const e=this.schema;return Array.isArray(e)&&0===e[0]?e[4]:e}getName(e=!1){const{name:t}=this;return!e&&t&&t.includes("#")?t.split("#")[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return"number"==typeof e?e>=64&&e<128:1===e[0]}isMapSchema(){const e=this.getSchema();return"number"==typeof e?e>=128&&e<=255:2===e[0]}isStructSchema(){const e=this.getSchema();if("object"!=typeof e)return!1;const t=e[0];return 3===t||-3===t||4===t}isUnionSchema(){const e=this.getSchema();return"object"==typeof e&&4===e[0]}isBlobSchema(){const e=this.getSchema();return 21===e||42===e}isTimestampSchema(){const e=this.getSchema();return"number"==typeof e&&e>=4&&e<=7}isUnitSchema(){return"unit"===this.getSchema()}isDocumentSchema(){return 15===this.getSchema()}isStringSchema(){return 0===this.getSchema()}isBooleanSchema(){return 2===this.getSchema()}isNumericSchema(){return 1===this.getSchema()}isBigIntegerSchema(){return 17===this.getSchema()}isBigDecimalSchema(){return 19===this.getSchema()}isStreaming(){const{streaming:e}=this.getMergedTraits();return!!e||42===this.getSchema()}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return Je(this.memberTraits)}getOwnTraits(){return Je(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(!0)}`);const r=this.getSchema();return it([e?15:r[4]??0,0],"key")}getValueSchema(){const e=this.getSchema(),[t,r,n]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i="number"==typeof e?63&e:e&&"object"==typeof e&&(r||n)?e[3+e[0]]:t?15:void 0;if(null!=i)return it([i,0],r?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){const t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){const r=t[4].indexOf(e),n=t[5][r];return it(ot(n)?n:[n,0],e)}if(this.isDocumentSchema())return it([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){const e={};try{for(const[t,r]of this.structIterator())e[t]=r}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(),t=e[4].length;let r=e[Ze];if(r&&t===r.length)yield*r;else{r=Array(t);for(let n=0;n<t;++n){const t=e[4][n],i=it([e[5][n],0],t);yield r[n]=[t,i]}e[Ze]=r}}}function it(e,t){if(e instanceof nt)return Object.assign(e,{memberName:t,_isMemberSchema:!0});return new nt(e,t)}const ot=e=>Array.isArray(e)&&2===e.length,at=e=>Array.isArray(e)&&e.length>=5,st="***SensitiveInformation***";function lt(e,t){if(null==t)return t;const r=nt.of(e);if(r.getMergedTraits().sensitive)return st;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return st}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return st}else if(r.isStructSchema()&&"object"==typeof t){const e=t,n={};for(const[t,i]of r.structIterator())null!=e[t]&&(n[t]=lt(i,e[t]));return n}return t}class ut{middlewareStack=Ge();schema;static classBuilder(){return new ct}resolveMiddlewareWithContext(e,t,r,{middlewareFn:n,clientName:i,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:s,smithyContext:l,additionalContext:u,CommandCtor:c}){for(const i of n.bind(this)(c,e,t,r))this.middlewareStack.use(i);const f=e.concat(this.middlewareStack),{logger:d}=t,h={logger:d,clientName:i,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:s,[Ve]:{commandInstance:this,...l},...u},{requestHandler:p}=t;let _=r??{};return l.eventStream&&(_={isEventStream:!0,..._}),f.resolve((e=>p.handle(e.request,_)),h)}}class ct{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,r={}){return this._smithyContext={service:e,operation:t,...r},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){const e=this;let t;return t=class extends ut{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.input=t??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(r,n,i){const o=e._operationSchema,a=o?.[4]??o?.input,s=o?.[5]??o?.output;return this.resolveMiddlewareWithContext(r,n,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(o?lt.bind(null,a):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(o?lt.bind(null,s):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}const ft=async e=>{},dt=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,ht=/(\d+\.){3}\d+/,pt=/\.\./,_t=e=>dt.test(e)&&!ht.test(e)&&!pt.test(e),bt=e=>{const[t,r,n,,,i]=e.split(":"),o="arn"===t&&e.split(":").length>=6,a=Boolean(o&&r&&n&&i);if(o&&!a)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return a},yt=(e,t,r,n=!1)=>{const i=async()=>{let i;if(n){const n=r.clientContextParams,o=n?.[e];i=o??r[e]??r[t]}else i=r[e]??r[t];return"function"==typeof i?i():i};return"credentialScope"===e||"CredentialScope"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.credentialScope??e?.CredentialScope}:"accountId"===e||"AccountId"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.accountId??e?.AccountId}:"endpoint"===e||"endpoint"===t?async()=>{if(!1===r.isCustomEndpoint)return;const e=await i();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:r,port:n,path:i}=e;return`${t}//${r}${n?":"+n:""}${i}`}}return e}:i};const mt=e=>{if("string"==typeof e)return mt(new URL(e));const{hostname:t,pathname:r,port:n,protocol:i,search:o}=e;let a;return o&&(a=function(e){const t={};if(e=e.replace(/^\?/,""))for(const r of e.split("&")){let[e,n=null]=r.split("=");e=decodeURIComponent(e),n&&(n=decodeURIComponent(n)),e in t?Array.isArray(t[e])?t[e].push(n):t[e]=[t[e],n]:t[e]=n}return t}(o)),{hostname:t,port:n?parseInt(n):void 0,protocol:i,path:r,query:a}},gt=e=>{if("object"==typeof e){if("url"in e){const t=mt(e.url);if(e.headers){t.headers={};for(const r in e.headers)t.headers[r.toLowerCase()]=e.headers[r].join(", ")}return t}return e}return mt(e)};function vt(e){return async(t,r,n,i)=>{if(!n.isCustomEndpoint){let t;t=n.serviceConfiguredEndpoint?await n.serviceConfiguredEndpoint():await e(n.serviceId),t&&(n.endpoint=()=>Promise.resolve(gt(t)),n.isCustomEndpoint=!0)}const o=await wt(t,r,n);if("function"!=typeof n.endpointProvider)throw new Error("config.endpointProvider is not set.");const a=n.endpointProvider(o,i);if(n.isCustomEndpoint&&n.endpoint){const e=await n.endpoint();if(e?.headers){a.headers??={};for(const[t,r]of Object.entries(e.headers))a.headers[t]=Array.isArray(r)?r:[r]}}return a}}const wt=async(e,t,r)=>{const n={},i=t?.getEndpointParameterInstructions?.()||{};for(const[t,o]of Object.entries(i))switch(o.type){case"staticContextParams":n[t]=o.value;break;case"contextParams":n[t]=e[o.name];break;case"clientContextParams":case"builtInParams":n[t]=await yt(o.name,t,r,"builtInParams"!==o.type)();break;case"operationContextParams":n[t]=o.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(o))}return 0===Object.keys(i).length&&Object.assign(n,r),"s3"===String(r.serviceId).toLowerCase()&&await(async e=>{const t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),bt(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!_t(t)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e})(n),n};function St(e){const t=vt(e);return({config:e,instructions:r})=>(n,i)=>async o=>{e.isCustomEndpoint&&function(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=r}(i,"ENDPOINT_OVERRIDE","N");const a=await t(o.input,{getEndpointParameterInstructions:()=>r},{...e},i);i.endpointV2=a,i.authSchemes=a.properties?.authSchemes;const s=i.authSchemes?.[0];if(s){i.signing_region=s.signingRegion,i.signing_service=s.signingName;const e=(e=>e[Ve]||(e[Ve]={}))(i),t=e?.selectedHttpAuthScheme?.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:s.signingRegion,signingRegion:s.signingRegion,signing_service:s.signingName,signingName:s.signingName,signingRegionSet:s.signingRegionSet},s.properties))}return n({...o})}}const Et={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"};const xt=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t};vt(ft),St(ft);const At=function(e){const t=St(e);return(e,r)=>({applyToStack:n=>{n.addRelativeTo(t({config:e,instructions:r}),Et)}})}(ft),Rt={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 Ot{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,r=new Map){this.namespace=e,this.schemas=t,this.exceptions=r}static for(e){return Ot.registries.has(e)||Ot.registries.set(e,new Ot(e)),Ot.registries.get(e)}copyFrom(e){const{schemas:t,exceptions:r}=this;for(const[r,n]of e.schemas)t.has(r)||t.set(r,n);for(const[t,n]of e.exceptions)r.has(t)||r.set(t,n)}register(e,t){const r=this.normalizeShapeId(e);for(const e of[this,Ot.for(r.split("#")[0])])e.schemas.set(r,t)}getSchema(e){const t=this.normalizeShapeId(e);if(!this.schemas.has(t)){if(!e.includes("#")){const t="#"+e,r=[];for(const[e,n]of this.schemas.entries())e.endsWith(t)&&r.push(n);if(1===r.length)return r[0]}throw new Error(`@smithy/core/schema - schema not found for ${t}`)}return this.schemas.get(t)}registerError(e,t){const r=e,n=r[1];for(const e of[this,Ot.for(n)])e.schemas.set(n+"#"+r[2],r),e.exceptions.set(r,t)}getErrorCtor(e){const t=e;if(this.exceptions.has(t))return this.exceptions.get(t);return Ot.for(t[1]).exceptions.get(t)}getBaseException(){for(const e of this.exceptions.keys())if(Array.isArray(e)){const[,t,r]=e,n=t+"#"+r;if(n.startsWith("smithy.ts.sdk.synthetic.")&&n.endsWith("ServiceException"))return e}}find(e){for(const t of this.schemas.values())if(e(t))return t}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}class kt 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!1;const t=e;return kt.prototype.isPrototypeOf(t)||Boolean(t.$fault)&&Boolean(t.$metadata)&&("client"===t.$fault||"server"===t.$fault)}static[Symbol.hasInstance](e){if(!e)return!1;const t=e;return this===kt?kt.isInstance(e):!!kt.isInstance(e)&&(t.name&&this.name?this.prototype.isPrototypeOf(e)||t.name===this.name:this.prototype.isPrototypeOf(e))}}class Tt extends kt{constructor(e){super(e),Object.setPrototypeOf(this,Tt.prototype)}}class Pt extends Tt{name="NoSuchUpload";$fault="client";constructor(e){super({name:"NoSuchUpload",$fault:"client",...e}),Object.setPrototypeOf(this,Pt.prototype)}}class Ct extends Tt{name="AccessDenied";$fault="client";constructor(e){super({name:"AccessDenied",$fault:"client",...e}),Object.setPrototypeOf(this,Ct.prototype)}}class Mt extends Tt{name="ObjectNotInActiveTierError";$fault="client";constructor(e){super({name:"ObjectNotInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,Mt.prototype)}}class It extends Tt{name="BucketAlreadyExists";$fault="client";constructor(e){super({name:"BucketAlreadyExists",$fault:"client",...e}),Object.setPrototypeOf(this,It.prototype)}}class Lt extends Tt{name="BucketAlreadyOwnedByYou";$fault="client";constructor(e){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...e}),Object.setPrototypeOf(this,Lt.prototype)}}class Dt extends Tt{name="NoSuchBucket";$fault="client";constructor(e){super({name:"NoSuchBucket",$fault:"client",...e}),Object.setPrototypeOf(this,Dt.prototype)}}class Nt extends Tt{name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(e){super({name:"InvalidObjectState",$fault:"client",...e}),Object.setPrototypeOf(this,Nt.prototype),this.StorageClass=e.StorageClass,this.AccessTier=e.AccessTier}}class jt extends Tt{name="NoSuchKey";$fault="client";constructor(e){super({name:"NoSuchKey",$fault:"client",...e}),Object.setPrototypeOf(this,jt.prototype)}}class Ft extends Tt{name="NotFound";$fault="client";constructor(e){super({name:"NotFound",$fault:"client",...e}),Object.setPrototypeOf(this,Ft.prototype)}}class Ut extends Tt{name="EncryptionTypeMismatch";$fault="client";constructor(e){super({name:"EncryptionTypeMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,Ut.prototype)}}class Wt extends Tt{name="InvalidRequest";$fault="client";constructor(e){super({name:"InvalidRequest",$fault:"client",...e}),Object.setPrototypeOf(this,Wt.prototype)}}class $t extends Tt{name="InvalidWriteOffset";$fault="client";constructor(e){super({name:"InvalidWriteOffset",$fault:"client",...e}),Object.setPrototypeOf(this,$t.prototype)}}class Bt extends Tt{name="TooManyParts";$fault="client";constructor(e){super({name:"TooManyParts",$fault:"client",...e}),Object.setPrototypeOf(this,Bt.prototype)}}class Ht extends Tt{name="IdempotencyParameterMismatch";$fault="client";constructor(e){super({name:"IdempotencyParameterMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,Ht.prototype)}}class Vt extends Tt{name="ObjectAlreadyInActiveTierError";$fault="client";constructor(e){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,Vt.prototype)}}const qt="AcceptRanges",zt="AccessTier",Gt="Bucket",Kt="BucketKeyEnabled",Yt="Body",Xt="CacheControl",Qt="ChecksumCRC32",Jt="ChecksumCRC32C",Zt="ChecksumCRC64NVME",er="Cache-Control",tr="Content-Disposition",rr="ContentDisposition",nr="Content-Encoding",ir="ContentEncoding",or="ContentLanguage",ar="Content-Language",sr="Content-Length",lr="ContentLength",ur="ChecksumMD5",cr="ChecksumMode",fr="ContentRange",dr="Content-Range",hr="ChecksumSHA1",pr="ChecksumSHA256",_r="ChecksumSHA512",br="ChecksumType",yr="Content-Type",mr="ContentType",gr="ChecksumXXHASH64",vr="ChecksumXXHASH3",wr="ChecksumXXHASH128",Sr="DeleteMarker",Er="Expiration",xr="ExpectedBucketOwner",Ar="ExpiresString",Rr="ETag",Or="Expires",kr="IfMatch",Tr="If-Modified-Since",Pr="IfModifiedSince",Cr="If-Match",Mr="IfNoneMatch",Ir="If-None-Match",Lr="IfUnmodifiedSince",Dr="If-Unmodified-Since",Nr="Key",jr="LastModified",Fr="Last-Modified",Ur="Metadata",Wr="MissingMeta",$r="ObjectLockLegalHoldStatus",Br="ObjectLockMode",Hr="ObjectLockRetainUntilDate",Vr="PartsCount",qr="PartNumber",zr="RequestCharged",Gr="ResponseCacheControl",Kr="ResponseContentDisposition",Yr="ResponseContentEncoding",Xr="ResponseContentLanguage",Qr="ResponseContentType",Jr="ResponseExpires",Zr="RequestPayer",en="ReplicationStatus",tn="Range",rn="Restore",nn="StorageClass",on="ServerSideEncryption",an="SSECustomerAlgorithm",sn="SSECustomerKey",ln="SSECustomerKeyMD5",un="SSEKMSKeyId",cn="TagCount",fn="VersionId",dn="WebsiteRedirectLocation",hn="accept-ranges",pn="client",_n="error",bn="http",yn="httpChecksum",mn="httpError",gn="httpHeader",vn="httpPrefixHeaders",wn="httpQuery",Sn="partNumber",En="response-cache-control",xn="response-content-disposition",An="response-content-encoding",Rn="response-content-language",On="response-content-type",kn="response-expires",Tn="smithy.ts.sdk.synthetic.com.amazonaws.s3",Pn="streaming",Cn="versionId",Mn="x-amz-checksum-crc32",In="x-amz-checksum-crc32c",Ln="x-amz-checksum-crc64nvme",Dn="x-amz-checksum-md5",Nn="x-amz-checksum-mode",jn="x-amz-checksum-sha1",Fn="x-amz-checksum-sha256",Un="x-amz-checksum-sha512",Wn="x-amz-checksum-type",$n="x-amz-checksum-xxhash64",Bn="x-amz-checksum-xxhash3",Hn="x-amz-checksum-xxhash128",Vn="x-amz-delete-marker",qn="x-amz-expiration",zn="x-amz-expected-bucket-owner",Gn="x-amz-meta-",Kn="x-amz-missing-meta",Yn="x-amz-mp-parts-count",Xn="x-amz-object-lock-legal-hold",Qn="x-amz-object-lock-mode",Jn="x-amz-object-lock-retain-until-date",Zn="x-amz-restore",ei="x-amz-request-charged",ti="x-amz-request-payer",ri="x-amz-replication-status",ni="x-amz-storage-class",ii="x-amz-server-side-encryption",oi="x-amz-server-side-encryption-aws-kms-key-id",ai="x-amz-server-side-encryption-bucket-key-enabled",si="x-amz-server-side-encryption-customer-algorithm",li="x-amz-server-side-encryption-customer-key",ui="x-amz-server-side-encryption-customer-key-MD5",ci="x-amz-tagging-count",fi="x-amz-version-id",di="x-amz-website-redirect-location",hi="com.amazonaws.s3",pi=Ot.for(Tn);var _i=[-3,Tn,"S3ServiceException",0,[],[]];pi.registerError(_i,Tt);const bi=Ot.for(hi);var yi=[-3,hi,"AccessDenied",{[_n]:pn,[mn]:403},[],[]];bi.registerError(yi,Ct);var mi=[-3,hi,"BucketAlreadyExists",{[_n]:pn,[mn]:409},[],[]];bi.registerError(mi,It);var gi=[-3,hi,"BucketAlreadyOwnedByYou",{[_n]:pn,[mn]:409},[],[]];bi.registerError(gi,Lt);var vi=[-3,hi,"EncryptionTypeMismatch",{[_n]:pn,[mn]:400},[],[]];bi.registerError(vi,Ut);var wi=[-3,hi,"IdempotencyParameterMismatch",{[_n]:pn,[mn]:400},[],[]];bi.registerError(wi,Ht);var Si=[-3,hi,"InvalidObjectState",{[_n]:pn,[mn]:403},[nn,zt],[0,0]];bi.registerError(Si,Nt);var Ei=[-3,hi,"InvalidRequest",{[_n]:pn,[mn]:400},[],[]];bi.registerError(Ei,Wt);var xi=[-3,hi,"InvalidWriteOffset",{[_n]:pn,[mn]:400},[],[]];bi.registerError(xi,$t);var Ai=[-3,hi,"NoSuchBucket",{[_n]:pn,[mn]:404},[],[]];bi.registerError(Ai,Dt);var Ri=[-3,hi,"NoSuchKey",{[_n]:pn,[mn]:404},[],[]];bi.registerError(Ri,jt);var Oi=[-3,hi,"NoSuchUpload",{[_n]:pn,[mn]:404},[],[]];bi.registerError(Oi,Pt);var ki=[-3,hi,"NotFound",{[_n]:pn},[],[]];bi.registerError(ki,Ft);var Ti=[-3,hi,"ObjectAlreadyInActiveTierError",{[_n]:pn,[mn]:403},[],[]];bi.registerError(Ti,Vt);var Pi=[-3,hi,"ObjectNotInActiveTierError",{[_n]:pn,[mn]:403},[],[]];bi.registerError(Pi,Mt);var Ci=[-3,hi,"TooManyParts",{[_n]:pn,[mn]:400},[],[]];bi.registerError(Ci,Bt);var Mi=[0,hi,sn,8,0],Ii=[0,hi,un,8,0],Li=[0,hi,"StreamingBlob",{[Pn]:1},42],Di=[3,hi,"GetObjectOutput",0,[Yt,Sr,qt,Er,rn,jr,lr,Rr,Qt,Jt,Zt,hr,pr,_r,ur,gr,vr,wr,br,Wr,fn,Xt,rr,ir,or,fr,mr,Or,Ar,dn,on,Ur,an,ln,un,Kt,nn,zr,en,Vr,cn,Br,Hr,$r],[[()=>Li,16],[2,{[gn]:Vn}],[0,{[gn]:hn}],[0,{[gn]:qn}],[0,{[gn]:Zn}],[4,{[gn]:Fr}],[1,{[gn]:sr}],[0,{[gn]:Rr}],[0,{[gn]:Mn}],[0,{[gn]:In}],[0,{[gn]:Ln}],[0,{[gn]:jn}],[0,{[gn]:Fn}],[0,{[gn]:Un}],[0,{[gn]:Dn}],[0,{[gn]:$n}],[0,{[gn]:Bn}],[0,{[gn]:Hn}],[0,{[gn]:Wn}],[1,{[gn]:Kn}],[0,{[gn]:fi}],[0,{[gn]:er}],[0,{[gn]:tr}],[0,{[gn]:nr}],[0,{[gn]:ar}],[0,{[gn]:dr}],[0,{[gn]:yr}],[4,{[gn]:Or}],[0,{[gn]:Ar}],[0,{[gn]:di}],[0,{[gn]:ii}],[128,{[vn]:Gn}],[0,{[gn]:si}],[0,{[gn]:ui}],[()=>Ii,{[gn]:oi}],[2,{[gn]:ai}],[0,{[gn]:ni}],[0,{[gn]:ei}],[0,{[gn]:ri}],[1,{[gn]:Yn}],[1,{[gn]:ci}],[0,{[gn]:Qn}],[5,{[gn]:Jn}],[0,{[gn]:Xn}]]],Ni=[3,hi,"GetObjectRequest",0,[Gt,Nr,kr,Pr,Mr,Lr,tn,Gr,Kr,Yr,Xr,Qr,Jr,fn,an,sn,ln,Zr,qr,xr,cr],[[0,1],[0,1],[0,{[gn]:Cr}],[4,{[gn]:Tr}],[0,{[gn]:Ir}],[4,{[gn]:Dr}],[0,{[gn]:tn}],[0,{[wn]:En}],[0,{[wn]:xn}],[0,{[wn]:An}],[0,{[wn]:Rn}],[0,{[wn]:On}],[6,{[wn]:kn}],[0,{[wn]:Cn}],[0,{[gn]:si}],[()=>Mi,{[gn]:li}],[0,{[gn]:ui}],[0,{[gn]:ti}],[1,{[wn]:Sn}],[0,{[gn]:zn}],[0,{[gn]:Nn}]],2],ji=[3,hi,"HeadObjectOutput",0,[Sr,qt,Er,rn,"ArchiveStatus",jr,lr,Qt,Jt,Zt,hr,pr,_r,ur,gr,vr,wr,br,Rr,Wr,fn,Xt,rr,ir,or,mr,fr,Or,Ar,dn,on,Ur,an,ln,un,Kt,nn,zr,en,Vr,cn,Br,Hr,$r],[[2,{[gn]:Vn}],[0,{[gn]:hn}],[0,{[gn]:qn}],[0,{[gn]:Zn}],[0,{[gn]:"x-amz-archive-status"}],[4,{[gn]:Fr}],[1,{[gn]:sr}],[0,{[gn]:Mn}],[0,{[gn]:In}],[0,{[gn]:Ln}],[0,{[gn]:jn}],[0,{[gn]:Fn}],[0,{[gn]:Un}],[0,{[gn]:Dn}],[0,{[gn]:$n}],[0,{[gn]:Bn}],[0,{[gn]:Hn}],[0,{[gn]:Wn}],[0,{[gn]:Rr}],[1,{[gn]:Kn}],[0,{[gn]:fi}],[0,{[gn]:er}],[0,{[gn]:tr}],[0,{[gn]:nr}],[0,{[gn]:ar}],[0,{[gn]:yr}],[0,{[gn]:dr}],[4,{[gn]:Or}],[0,{[gn]:Ar}],[0,{[gn]:di}],[0,{[gn]:ii}],[128,{[vn]:Gn}],[0,{[gn]:si}],[0,{[gn]:ui}],[()=>Ii,{[gn]:oi}],[2,{[gn]:ai}],[0,{[gn]:ni}],[0,{[gn]:ei}],[0,{[gn]:ri}],[1,{[gn]:Yn}],[1,{[gn]:ci}],[0,{[gn]:Qn}],[5,{[gn]:Jn}],[0,{[gn]:Xn}]]],Fi=[3,hi,"HeadObjectRequest",0,[Gt,Nr,kr,Pr,Mr,Lr,tn,Gr,Kr,Yr,Xr,Qr,Jr,fn,an,sn,ln,Zr,qr,xr,cr],[[0,1],[0,1],[0,{[gn]:Cr}],[4,{[gn]:Tr}],[0,{[gn]:Ir}],[4,{[gn]:Dr}],[0,{[gn]:tn}],[0,{[wn]:En}],[0,{[wn]:xn}],[0,{[wn]:An}],[0,{[wn]:Rn}],[0,{[wn]:On}],[6,{[wn]:kn}],[0,{[wn]:Cn}],[0,{[gn]:si}],[()=>Mi,{[gn]:li}],[0,{[gn]:ui}],[0,{[gn]:ti}],[1,{[wn]:Sn}],[0,{[gn]:zn}],[0,{[gn]:Nn}]],2],Ui=[9,hi,"GetObject",{[yn]:"-",[bn]:["GET","/{Key+}?x-id=GetObject",200]},()=>Ni,()=>Di],Wi=[9,hi,"HeadObject",{[bn]:["HEAD","/{Key+}",200]},()=>Fi,()=>ji];class $i extends(ut.classBuilder().ep({...Rt,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m((function(e,t,r,n){return[At(r,e.getEndpointParameterInstructions()),ue(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1","SHA512","MD5","XXHASH64","XXHASH3","XXHASH128"]}),Be(r),We()]})).s("AmazonS3","GetObject",{}).n("S3Client","GetObjectCommand").sc(Ui).build()){}const Bi={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},Hi=e=>(t,r)=>async n=>{const i=await t(n),{response:o}=i;if(!ce.isInstance(o))return i;const{statusCode:a,body:s}=o;if(a<200||a>=300)return i;const l=await Vi(s,e);var u;if(o.body=(u=l,new ReadableStream({start(e){e.enqueue(u),e.close()}})),0===l.length&&Bi[r.commandName]){const e=new Error("S3 aborted request");throw e.$metadata={httpStatusCode:503},e.name="InternalError",e}const c=e.utf8Encoder(l.subarray(l.length-16));return c&&c.endsWith("</Error>")&&(o.statusCode=503),i},Vi=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),qi={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},zi=e=>({applyToStack:t=>{t.addRelativeTo(Hi(e),qi)}});class Gi extends(ut.classBuilder().ep({...Rt,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m((function(e,t,r,n){return[At(r,e.getEndpointParameterInstructions()),zi(r),Be(r),We()]})).s("AmazonS3","HeadObject",{}).n("S3Client","HeadObjectCommand").sc(Wi).build()){}}],__webpack_module_cache__={},hasSymbol,webpackQueues,webpackExports,webpackError,resolveQueue;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}hasSymbol="function"==typeof Symbol,webpackQueues=hasSymbol?Symbol("webpack queues"):"__webpack_queues__",webpackExports=hasSymbol?Symbol("webpack exports"):"__webpack_exports__",webpackError=hasSymbol?Symbol("webpack error"):"__webpack_error__",resolveQueue=e=>{e&&e.d<1&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},__webpack_require__.a=(e,t,r)=>{var n;r&&((n=[]).d=-1);var i,o,a,s=new Set,l=e.exports,u=new Promise(((e,t)=>{a=t,o=e}));u[webpackExports]=l,u[webpackQueues]=e=>(n&&e(n),s.forEach(e),u.catch((e=>{}))),e.exports=u,t((e=>{var t;i=(e=>e.map((e=>{if(null!==e&&"object"==typeof e){if(e[webpackQueues])return e;if(e.then){var t=[];t.d=0,e.then((e=>{r[webpackExports]=e,resolveQueue(t)}),(e=>{r[webpackError]=e,resolveQueue(t)}));var r={};return r[webpackQueues]=e=>e(t),r}}var n={};return n[webpackQueues]=e=>{},n[webpackExports]=e,n})))(e);var r=()=>i.map((e=>{if(e[webpackError])throw e[webpackError];return e[webpackExports]})),o=new Promise((e=>{(t=()=>e(r)).r=0;var o=e=>e!==n&&!s.has(e)&&(s.add(e),e&&!e.d&&(t.r++,e.push(t)));i.map((e=>e[webpackQueues](o)))}));return t.r?o:r()}),(e=>(e?a(u[webpackError]=e):o(l),resolveQueue(n)))),n&&n.d<0&&(n.d=0)},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__=__webpack_require__(177);module.exports["web-documentation"]=__webpack_exports__})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "web-documentation",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "Declarative multilanguage documentation website generator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"documentation",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"watch": "weboptimizer build --watch"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@aws-sdk/client-s3": "^3.
|
|
53
|
+
"@aws-sdk/client-s3": "^3.1048.0",
|
|
54
54
|
"@babel/eslint-parser": "^7.28.6",
|
|
55
55
|
"@babel/runtime": "^7.29.2",
|
|
56
56
|
"@eslint/js": "^10.0.1",
|
|
@@ -60,19 +60,20 @@
|
|
|
60
60
|
"@types/html-minifier": "^4.0.6",
|
|
61
61
|
"@types/jsdom": "^28.0.3",
|
|
62
62
|
"@types/marked": "^6.0.0",
|
|
63
|
-
"@types/node": "^25.
|
|
63
|
+
"@types/node": "^25.8.0",
|
|
64
64
|
"@types/unzipper": "^0.10.11",
|
|
65
65
|
"@types/webpack-env": "^1.18.8",
|
|
66
66
|
"@typescript-eslint/eslint-plugin": "^8.59.3",
|
|
67
67
|
"@typescript-eslint/parser": "^8.59.3",
|
|
68
68
|
"@webcomponents/webcomponentsjs": "^2.8.0",
|
|
69
69
|
"archiver": "^8.0.0",
|
|
70
|
-
"
|
|
70
|
+
"bootstrap-icons": "^1.13.1",
|
|
71
|
+
"clientnode": "^4.0.1397",
|
|
71
72
|
"css-loader": "^7.1.4",
|
|
72
73
|
"cssnano": "^8.0.1",
|
|
73
74
|
"default-gateway": "^7.2.2",
|
|
74
75
|
"errorreporter": "^1.0.339",
|
|
75
|
-
"eslint": "^10.
|
|
76
|
+
"eslint": "^10.4.0",
|
|
76
77
|
"eslint-config-google": "^0.14.0",
|
|
77
78
|
"eslint-plugin-jsdoc": "^62.9.0",
|
|
78
79
|
"favicons": "^7.2.0",
|
|
@@ -92,22 +93,22 @@
|
|
|
92
93
|
"postcss-loader": "^8.2.1",
|
|
93
94
|
"postcss-mixins": "^12.1.2",
|
|
94
95
|
"postcss-nested": "^7.0.2",
|
|
95
|
-
"postcss-preset-env": "^11.
|
|
96
|
+
"postcss-preset-env": "^11.3.0",
|
|
96
97
|
"postcss-scss": "^4.0.9",
|
|
97
98
|
"postcss-sprites": "^4.2.1",
|
|
98
99
|
"postcss-url": "^10.1.3",
|
|
99
100
|
"prop-types": "^15.8.1",
|
|
100
101
|
"style-loader": "^4.0.0",
|
|
101
|
-
"stylelint": "^17.11.
|
|
102
|
+
"stylelint": "^17.11.1",
|
|
102
103
|
"stylelint-config-standard": "^40.0.0",
|
|
103
104
|
"typescript-eslint": "^8.59.3",
|
|
104
105
|
"ua-parser-js": "^2.0.9",
|
|
105
106
|
"unzipper": "^0.12.3",
|
|
106
107
|
"web-component-wrapper": "^0.0.591",
|
|
107
|
-
"web-internationalization": "^2.0.
|
|
108
|
+
"web-internationalization": "^2.0.24",
|
|
108
109
|
"weboptimizer": "^3.0.22",
|
|
109
110
|
"webpack-dev-server": "^5.2.4",
|
|
110
|
-
"website-utilities": "^1.0.
|
|
111
|
+
"website-utilities": "^1.0.417"
|
|
111
112
|
},
|
|
112
113
|
"engines": {
|
|
113
114
|
"node": ">=24",
|
package/source/index.css
CHANGED
|
@@ -6,12 +6,15 @@ Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
|
6
6
|
License
|
|
7
7
|
-------
|
|
8
8
|
|
|
9
|
-
This library written by Torben Sickert
|
|
9
|
+
This library written by Torben Sickert stands under a creative commons naming
|
|
10
10
|
3.0 unported license. See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
11
11
|
endregion */
|
|
12
|
-
@import
|
|
13
|
-
|
|
14
|
-
@import
|
|
12
|
+
@import 'bootstrap-icons/font/bootstrap-icons';
|
|
13
|
+
|
|
14
|
+
@import 'highlight.js/styles/github.css';
|
|
15
|
+
|
|
16
|
+
@import 'website-utilities/fonts.compiled.css';
|
|
17
|
+
@import 'website-utilities/index.compiled.css';
|
|
15
18
|
|
|
16
19
|
:root {
|
|
17
20
|
/* region extra small dimension */
|
|
@@ -117,24 +120,6 @@ body {
|
|
|
117
120
|
padding: var(--w-default-space) calc(var(--w-default-space) / 2);
|
|
118
121
|
}
|
|
119
122
|
/** endregion */
|
|
120
|
-
/** region symbol */
|
|
121
|
-
.section__inner__arrow-left-home,
|
|
122
|
-
.header__inner__links__left-arrow {
|
|
123
|
-
float: left;
|
|
124
|
-
height: 14px;
|
|
125
|
-
width: 14px !important;
|
|
126
|
-
margin-top: 10px;
|
|
127
|
-
overflow: visible;
|
|
128
|
-
vertical-align: baseline;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.header__inner__links__left-arrow {
|
|
132
|
-
display: none;
|
|
133
|
-
|
|
134
|
-
margin-left: 10px;
|
|
135
|
-
margin-top: 38px;
|
|
136
|
-
}
|
|
137
|
-
/** endregion */
|
|
138
123
|
/** region headline */
|
|
139
124
|
h1,
|
|
140
125
|
h2,
|
|
@@ -204,6 +189,9 @@ body {
|
|
|
204
189
|
/* stylelint-enable at-rule-no-unknown */
|
|
205
190
|
/*** endregion */
|
|
206
191
|
/** endregion */
|
|
192
|
+
lang-replacement, .wi-hide {
|
|
193
|
+
display: none;
|
|
194
|
+
}
|
|
207
195
|
/* endregion */
|
|
208
196
|
/* region header */
|
|
209
197
|
.header {
|
|
@@ -432,8 +420,6 @@ body {
|
|
|
432
420
|
/* region responsive */
|
|
433
421
|
/** region extra extra small */
|
|
434
422
|
@media (--w-extra-extra-small) {
|
|
435
|
-
.header__inner__links__left-arrow,
|
|
436
|
-
.header__inner__links__download-arrow { display: initial; }
|
|
437
423
|
/** region extra small */
|
|
438
424
|
@media (--w-extra-small) {
|
|
439
425
|
.header__inner__links__api-link span {
|
|
@@ -457,8 +443,6 @@ body {
|
|
|
457
443
|
width: 706px;
|
|
458
444
|
}
|
|
459
445
|
|
|
460
|
-
.header__inner__links__left-arrow { margin-left: 0; }
|
|
461
|
-
|
|
462
446
|
.section__home {
|
|
463
447
|
code {
|
|
464
448
|
font-size: 0.8em;
|
package/source/index.html.ejs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
License
|
|
7
7
|
=======
|
|
8
8
|
|
|
9
|
-
This library written by Torben Sickert
|
|
9
|
+
This library written by Torben Sickert stands under a creative commons
|
|
10
10
|
naming 3.0 unported license.
|
|
11
11
|
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
12
12
|
endregion
|
|
@@ -165,9 +165,6 @@ _%>
|
|
|
165
165
|
) {
|
|
166
166
|
START_UP_ANIMATION_NUMBER -= 1
|
|
167
167
|
_%>
|
|
168
|
-
<span
|
|
169
|
-
class="header__inner__links__left-arrow icon icon-arrow-left wu-start-up-animation-number-<%- START_UP_ANIMATION_NUMBER %>"
|
|
170
|
-
></span>
|
|
171
168
|
<%_ START_UP_ANIMATION_NUMBER -= 1 _%>
|
|
172
169
|
<a
|
|
173
170
|
class="header__inner__links__api-link wu-start-up-animation-number-<%- START_UP_ANIMATION_NUMBER %>"
|
|
@@ -175,9 +172,16 @@ _%>
|
|
|
175
172
|
>
|
|
176
173
|
<lang-replace>
|
|
177
174
|
API <span>Documentation</span>
|
|
175
|
+
<i class="bi bi-arrow-right"></i>
|
|
178
176
|
</lang-replace>
|
|
179
|
-
|
|
180
|
-
|
|
177
|
+
<lang-replacement>deDE:
|
|
178
|
+
API<span>-Dokumentation</span>
|
|
179
|
+
<i class="bi bi-arrow-right"></i>
|
|
180
|
+
</lang-replacement>
|
|
181
|
+
<lang-replacement>frFR:
|
|
182
|
+
<span>Documentation de l'</span>API
|
|
183
|
+
<i class="bi bi-arrow-right"></i>
|
|
184
|
+
</lang-replacement>
|
|
181
185
|
</a>
|
|
182
186
|
<%_ START_UP_ANIMATION_NUMBER += 4 + numberOfLanguageLinks
|
|
183
187
|
} else
|
|
@@ -220,13 +224,7 @@ _%>
|
|
|
220
224
|
<!--frFR:Mentions légales-->
|
|
221
225
|
</h2>
|
|
222
226
|
<p>
|
|
223
|
-
Provider of
|
|
224
|
-
<!--deDE:Anbieter von-->
|
|
225
|
-
<!--frFR:Fournisseur de-->
|
|
226
|
-
<a href="https://torben.website/<%- _.NAME %>">
|
|
227
|
-
https://torben.website/<%- _.NAME %>
|
|
228
|
-
</a>
|
|
229
|
-
:
|
|
227
|
+
Provider of<!--deDE:Anbieter von--><!--frFR:Fournisseur de--><a href="https://torben.website/<%- _.NAME %>">https://torben.website/<%- _.NAME %></a>:
|
|
230
228
|
<br>
|
|
231
229
|
Torben Sickert
|
|
232
230
|
<br>
|
|
@@ -253,13 +251,17 @@ _%>
|
|
|
253
251
|
https://torben.website
|
|
254
252
|
</a>
|
|
255
253
|
<br>
|
|
256
|
-
|
|
257
|
-
class="section__inner__arrow-left-home icon icon-arrow-left"
|
|
258
|
-
></span>
|
|
254
|
+
|
|
259
255
|
<a href="#home">
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
256
|
+
<lang-replace>
|
|
257
|
+
<i class="bi bi-arrow-left"></i> home
|
|
258
|
+
</lang-replace>
|
|
259
|
+
<lang-replacement>deDE:
|
|
260
|
+
<i class="bi bi-arrow-left"></i> Startseite
|
|
261
|
+
</lang-replacement>
|
|
262
|
+
<lang-replacement>frFR:
|
|
263
|
+
<i class="bi bi-arrow-left"></i> Maison
|
|
264
|
+
</lang-replacement>
|
|
263
265
|
</a>
|
|
264
266
|
</p>
|
|
265
267
|
<%- _.include('legal-notes') %>
|
package/source/index.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
License
|
|
12
12
|
-------
|
|
13
13
|
|
|
14
|
-
This library written by Torben Sickert
|
|
14
|
+
This library written by Torben Sickert stands under a creative commons
|
|
15
15
|
naming 3.0 unported license.
|
|
16
16
|
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
17
17
|
endregion
|
|
@@ -69,7 +69,10 @@ export class WebDocumentation<
|
|
|
69
69
|
> extends Web<TElement, ExternalProperties, InternalProperties> {
|
|
70
70
|
static content = `
|
|
71
71
|
<website-utilities
|
|
72
|
-
options="{sectionNames:
|
|
72
|
+
options="{sectionNames: {
|
|
73
|
+
default: 'home',
|
|
74
|
+
managed: ['home', 'about-this-website']
|
|
75
|
+
}}"
|
|
73
76
|
>
|
|
74
77
|
<web-internationalization
|
|
75
78
|
options="{selectors: {knownTranslation: '.doc-toc'}}"
|
package/source/test.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
License
|
|
9
9
|
-------
|
|
10
10
|
|
|
11
|
-
This library written by Torben Sickert
|
|
11
|
+
This library written by Torben Sickert stands under a creative commons
|
|
12
12
|
naming 3.0 unported license.
|
|
13
13
|
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
14
14
|
endregion
|
package/source/type.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
License
|
|
11
11
|
-------
|
|
12
12
|
|
|
13
|
-
This library written by Torben Sickert
|
|
13
|
+
This library written by Torben Sickert stands under a creative commons
|
|
14
14
|
naming 3.0 unported license.
|
|
15
15
|
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
16
16
|
endregion
|