vendor: 4,401 bytes, line 1
1import{a as gr,b as ln}from"./chunk-A2Y7EL3B.js";import{$a as Cd,$b as bR,$d as An,$e as Td,$h as xv,$i as kv,A as nl,Aa as Es,Ae as cy,Aj as Pa,B as cn,Di as wv,Ea as ya,Ee as Jn,Ei as Rv,Ej as Hv,F as Jg,Fa as mR,Fb as gR,Fe as qR,Fh as av,Fj as Fv,Gb as yR,Ge as HR,Gj as $v,H as fa,I as _n,Ij as jv,J as tR,Ja as ey,Jh as er,Ji as vv,Jj as Gv,Kf as Ad,Kh as Mr,Kj as Kv,L as ha,Lb as ny,Lh as fy,Li as Tv,Lj as Wv,M as il,Ma as dR,Mb as iy,Md as IR,Mh as cv,Mi as _v,Mj as Cy,N as rR,Nh as lv,Nj as Vv,O as yd,Oa as uR,Oh as mv,Oi as Av,P as xd,Pd as MR,Ph as Od,Pi as Iv,Qa as pR,Qh as hy,Qi as Mv,R as nR,Rc as vR,Re as ly,Rh as dv,S as iR,Sa as fR,Sc as TR,Sh as uv,Ta as hr,Th as pv,Ue as FR,Uh as fv,Vf as Id,Vh as tr,Vi as Sa,W as sR,Wc as _R,Wd as BR,Wf as Md,Wg as sv,Wh as hv,Wi as Dd,X as oR,Xa as ty,Xd as kR,Xf as XR,Xg as ov,Xh as gv,Xi as Bv,Ya as hR,Yi as lo,Zb as xR,Zh as yv,Zi as by,_d as Ee,_h as ao,_i as Sy,aa as Zg,ag as QR,aj as Py,ba as bd,bc as SR,bi as bv,bj as mn,c as Xg,ca as Sd,ce as OR,ci as gy,cj as mo,de as sy,dg as dy,di as Sv,dj as Rs,e as Qg,ea as aR,eg as Bd,ei as Pv,ej as Ov,fa as Pd,fe as so,fg as YR,fj as ol,g as rl,ga as lt,ge as Rd,gg as JR,gj as Dv,h as Jw,ha as ga,hc as PR,he as sl,hg as ZR,hj as Br,ib as ry,ie as Yn,ig as uy,ii as yy,ij as Lv,j as hd,ja as Cs,jb as Ed,je as DR,jf as $R,jg as ev,ji as Cv,jj as zv,kb as Nd,kc as CR,ke as Ns,kf as jR,kg as tv,l as ua,la as cR,lc as ER,le as LR,lf as GR,lg as Zn,li as ei,m as pa,ma as Be,mc as wd,mf as _d,mi as xy,n as gd,nc as NR,nd as AR,ne as zR,nf as ws,ni as Ev,oa as Ce,oc as xa,oe as vd,of as KR,oi as co,p as Zw,pa as fr,pc as wR,pe as UR,pg as rv,pi as ba,q as Qn,qa as Ui,qc as RR,qf as WR,qg as vt,r as ot,ra as ee,rg as Zt,s as Yg,sa as Vt,sg as nv,ta as lR,tg as iv,ug as kd,vg as py,w as eR,we as oy,wf as my,x as ue,xe as ay,xf as VR,xi as Nv,xj as Uv,ye as oo,yj as Ld,zj as qv}from"./chunk-KB3BR5V6.js";import{a as x,b as E,e as an,f as tt,g as U3,h as Ps,i as Tn,j as p,k as be,l as $e,m as io,n as bt}from"./chunk-G6LNOBMT.js";var Ga=tt((Nwe,MP)=>{"use strict";var ja=typeof Reflect=="object"?Reflect:null,TI=ja&&typeof ja.apply=="function"?ja.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},Lp;ja&&typeof ja.ownKeys=="function"?Lp=ja.ownKeys:Object.getOwnPropertySymbols?Lp=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Lp=function(e){return Object.getOwnPropertyNames(e)};function lj(r){console&&console.warn&&console.warn(r)}var AI=Number.isNaN||function(e){return e!==e};function je(){je.init.call(this)}MP.exports=je;MP.exports.once=pj;je.EventEmitter=je;je.prototype._events=void 0;je.prototype._eventsCount=0;je.prototype._maxListeners=void 0;var _I=10;function zp(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}Object.defineProperty(je,"defaultMaxListeners",{enumerable:!0,get:function(){return _I},set:function(r){if(typeof r!="number"||r<0||AI(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");_I=r}});je.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};je.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||AI(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function II(r){return r._maxListeners===void 0?je.defaultMaxListeners:r._maxListeners}je.prototype.getMaxListeners=function(){return II(this)};je.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=e==="error",s=this._events;if(s!==void 0)i=i&&s.error===void 0;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var c=s[e];if(c===void 0)return!1;if(typeof c=="function")TI(c,this,t);else for(var l=c.length,d=DI(c,l),n=0;n<l;++n)TI(d[n],this,t);return!0};function MI(r,e,t,n){var i,s,o;if(zp(t),s=r._events,s===void 0?(s=r._events=Object.create(null),r._eventsCount=0):(s.newListener!==void 0&&(r.emit("newListener",e,t.listener?t.listener:t),s=r._events),o=s[e]),o===void 0)
vendor: 4,341 bytes, line 1
1o=s[e]=t,++r._eventsCount;else if(typeof o=="function"?o=s[e]=n?[t,o]:[o,t]:n?o.unshift(t):o.push(t),i=II(r),i>0&&o.length>i&&!o.warned){o.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=r,a.type=e,a.count=o.length,lj(a)}return r}je.prototype.addListener=function(e,t){return MI(this,e,t,!1)};je.prototype.on=je.prototype.addListener;je.prototype.prependListener=function(e,t){return MI(this,e,t,!0)};function mj(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function BI(r,e,t){var n={fired:!1,wrapFn:void 0,target:r,type:e,listener:t},i=mj.bind(n);return i.listener=t,n.wrapFn=i,i}je.prototype.once=function(e,t){return zp(t),this.on(e,BI(this,e,t)),this};je.prototype.prependOnceListener=function(e,t){return zp(t),this.prependListener(e,BI(this,e,t)),this};je.prototype.removeListener=function(e,t){var n,i,s,o,a;if(zp(t),i=this._events,i===void 0)return this;if(n=i[e],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(s=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,s=o;break}if(s<0)return this;s===0?n.shift():dj(n,s),n.length===1&&(i[e]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",e,a||t)}return this};je.prototype.off=je.prototype.removeListener;je.prototype.removeAllListeners=function(e){var t,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var s=Object.keys(n),o;for(i=0;i<s.length;++i)o=s[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],typeof t=="function")this.removeListener(e,t);else if(t!==void 0)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this};function kI(r,e,t){var n=r._events;if(n===void 0)return[];var i=n[e];return i===void 0?[]:typeof i=="function"?t?[i.listener||i]:[i]:t?uj(i):DI(i,i.length)}je.prototype.listeners=function(e){return kI(this,e,!0)};je.prototype.rawListeners=function(e){return kI(this,e,!1)};je.listenerCount=function(r,e){return typeof r.listenerCount=="function"?r.listenerCount(e):OI.call(r,e)};je.prototype.listenerCount=OI;function OI(r){var e=this._events;if(e!==void 0){var t=e[r];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}je.prototype.eventNames=function(){return this._eventsCount>0?Lp(this._events):[]};function DI(r,e){for(var t=new Array(e),n=0;n<e;++n)t[n]=r[n];return t}function dj(r,e){for(;e+1<r.length;e++)r[e]=r[e+1];r.pop()}function uj(r){for(var e=new Array(r.length),t=0;t<e.length;++t)e[t]=r[t].listener||r[t];return e}function pj(r,e){return new Promise(function(t,n){function i(o){r.removeListener(e,s),n(o)}function s(){typeof r.removeListener=="function"&&r.removeListener("error",i),t([].slice.call(arguments))}LI(r,e,s,{once:!0}),e!=="error"&&fj(r,i,{once:!0})})}function fj(r,e,t){typeof r.on=="function"&&LI(r,"error",e,t)}function LI(r,e,t,n){if(typeof r.on=="function")n.once?r.once(e,t):r.on(e,t);else if(typeof r.addEventListener=="function")r.addEventListener(e,function i(s){n.once&&r.removeEventListener(e,i),t(s)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof r)}});var d2=tt(bg=>{"use strict";bg.byteLength=Oae;bg.toByteArray=Lae;bg.fromByteArray=qae;var Di=[],wn=[],kae=typeof Uint8Array<"u"?Uint8Array:Array,FN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ia=0,l2=FN.length;ia<l2;++ia)Di[ia]=FN[ia],wn[FN.charCodeAt(ia)]=ia;var ia,l2;wn[45]=62;wn[95]=63;function m2(r){var e=r.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var n=t===e?0:4-t%4;return[t,n]}function Oae(r){var e=m2(r),t=e[0],n=e[1];
vendor: 4,282 bytes, line 1
1return(t+n)*3/4-n}function Dae(r,e,t){return(e+t)*3/4-t}function Lae(r){var e,t=m2(r),n=t[0],i=t[1],s=new kae(Dae(r,n,i)),o=0,a=i>0?n-4:n,c;for(c=0;c<a;c+=4)e=wn[r.charCodeAt(c)]<<18|wn[r.charCodeAt(c+1)]<<12|wn[r.charCodeAt(c+2)]<<6|wn[r.charCodeAt(c+3)],s[o++]=e>>16&255,s[o++]=e>>8&255,s[o++]=e&255;return i===2&&(e=wn[r.charCodeAt(c)]<<2|wn[r.charCodeAt(c+1)]>>4,s[o++]=e&255),i===1&&(e=wn[r.charCodeAt(c)]<<10|wn[r.charCodeAt(c+1)]<<4|wn[r.charCodeAt(c+2)]>>2,s[o++]=e>>8&255,s[o++]=e&255),s}function zae(r){return Di[r>>18&63]+Di[r>>12&63]+Di[r>>6&63]+Di[r&63]}function Uae(r,e,t){for(var n,i=[],s=e;s<t;s+=3)n=(r[s]<<16&16711680)+(r[s+1]<<8&65280)+(r[s+2]&255),i.push(zae(n));return i.join("")}function qae(r){for(var e,t=r.length,n=t%3,i=[],s=16383,o=0,a=t-n;o<a;o+=s)i.push(Uae(r,o,o+s>a?a:o+s));return n===1?(e=r[t-1],i.push(Di[e>>2]+Di[e<<4&63]+"==")):n===2&&(e=(r[t-2]<<8)+r[t-1],i.push(Di[e>>10]+Di[e>>4&63]+Di[e<<2&63]+"=")),i.join("")}});var u2=tt($N=>{"use strict";$N.read=function(r,e,t,n,i){var s,o,a=i*8-n-1,c=(1<<a)-1,l=c>>1,d=-7,u=t?i-1:0,h=t?-1:1,g=r[e+u];for(u+=h,s=g&(1<<-d)-1,g>>=-d,d+=a;d>0;s=s*256+r[e+u],u+=h,d-=8);for(o=s&(1<<-d)-1,s>>=-d,d+=n;d>0;o=o*256+r[e+u],u+=h,d-=8);if(s===0)s=1-l;else{if(s===c)return o?NaN:(g?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-l}return(g?-1:1)*o*Math.pow(2,s-n)};$N.write=function(r,e,t,n,i,s){var o,a,c,l=s*8-i-1,d=(1<<l)-1,u=d>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:s-1,y=n?1:-1,S=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=d):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+u>=1?e+=h/c:e+=h*Math.pow(2,1-u),e*c>=2&&(o++,c/=2),o+u>=d?(a=0,o=d):o+u>=1?(a=(e*c-1)*Math.pow(2,i),o=o+u):(a=e*Math.pow(2,u-1)*Math.pow(2,i),o=0));i>=8;r[t+g]=a&255,g+=y,a/=256,i-=8);for(o=o<<i|a,l+=i;l>0;r[t+g]=o&255,g+=y,o/=256,l-=8);r[t+g-y]|=S*128}});var Li=tt(Kc=>{"use strict";var jN=d2(),Gc=u2(),p2=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Kc.Buffer=D;Kc.SlowBuffer=Gae;Kc.INSPECT_MAX_BYTES=50;var Sg=2147483647;Kc.kMaxLength=Sg;D.TYPED_ARRAY_SUPPORT=Hae();!D.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Hae(){try{var r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(D.prototype,"parent",{enumerable:!0,get:function(){if(D.isBuffer(this))return this.buffer}});Object.defineProperty(D.prototype,"offset",{enumerable:!0,get:function(){if(D.isBuffer(this))return this.byteOffset}});function hs(r){if(r>Sg)throw new RangeError('The value "'+r+'" is invalid for option "size"');var e=new Uint8Array(r);return Object.setPrototypeOf(e,D.prototype),e}function D(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return WN(r)}return y2(r,e,t)}D.poolSize=8192;function y2(r,e,t){if(typeof r=="string")return $ae(r,e);if(ArrayBuffer.isView(r))return GN(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(gs(r,ArrayBuffer)||r&&gs(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(gs(r,SharedArrayBuffer)||r&&gs(r.buffer,SharedArrayBuffer)))return f2(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return D.from(n,e,t);var i=jae(r);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return D.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}D.from=function(r,e,t){return y2(r,e,t)};Object.setPrototypeOf(D.prototype,Uint8Array.prototype);Object.setPrototypeOf(D,Uint8Array);function x2(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');
vendor: 16,306 bytes, line 1
1if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function Fae(r,e,t){return x2(r),r<=0?hs(r):e!==void 0?typeof t=="string"?hs(r).fill(e,t):hs(r).fill(e):hs(r)}D.alloc=function(r,e,t){return Fae(r,e,t)};function WN(r){return x2(r),hs(r<0?0:VN(r)|0)}D.allocUnsafe=function(r){return WN(r)};D.allocUnsafeSlow=function(r){return WN(r)};function $ae(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!D.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var t=b2(r,e)|0,n=hs(t),i=n.write(r,e);return i!==t&&(n=n.slice(0,i)),n}function GN(r){for(var e=r.length<0?0:VN(r.length)|0,t=hs(e),n=0;n<e;n+=1)t[n]=r[n]&255;return t}function f2(r,e,t){if(e<0||r.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&t===void 0?n=new Uint8Array(r):t===void 0?n=new Uint8Array(r,e):n=new Uint8Array(r,e,t),Object.setPrototypeOf(n,D.prototype),n}function jae(r){if(D.isBuffer(r)){var e=VN(r.length)|0,t=hs(e);return t.length===0||r.copy(t,0,0,e),t}if(r.length!==void 0)return typeof r.length!="number"||XN(r.length)?hs(0):GN(r);if(r.type==="Buffer"&&Array.isArray(r.data))return GN(r.data)}function VN(r){if(r>=Sg)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Sg.toString(16)+" bytes");return r|0}function Gae(r){return+r!=r&&(r=0),D.alloc(+r)}D.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==D.prototype};D.compare=function(e,t){if(gs(e,Uint8Array)&&(e=D.from(e,e.offset,e.byteLength)),gs(t,Uint8Array)&&(t=D.from(t,t.offset,t.byteLength)),!D.isBuffer(e)||!D.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,i=t.length,s=0,o=Math.min(n,i);s<o;++s)if(e[s]!==t[s]){n=e[s],i=t[s];break}return n<i?-1:i<n?1:0};D.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};D.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return D.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=D.allocUnsafe(t),s=0;for(n=0;n<e.length;++n){var o=e[n];if(gs(o,Uint8Array)&&(o=D.from(o)),!D.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,s),s+=o.length}return i};function b2(r,e){if(D.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||gs(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var t=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return KN(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return R2(r).length;default:if(i)return n?-1:KN(r).length;e=(""+e).toLowerCase(),i=!0}}D.byteLength=b2;function Kae(r,e,t){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return rce(this,e,t);case"utf8":case"utf-8":return C2(this,e,t);case"ascii":return ece(this,e,t);case"latin1":case"binary":return tce(this,e,t);case"base64":return Jae(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nce(this,e,t);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}D.prototype._isBuffer=!0;function sa(r,e,t){var n=r[e];r[e]=r[t],r[t]=n}D.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)sa(this,t,t+1);return this};D.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)sa(this,t,t+3),sa(this,t+1,t+2);return this};D.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)sa(this,t,t+7),sa(this,t+1,t+6),sa(this,t+2,t+5),sa(this,t+3,t+4);return this};D.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?C2(this,0,e):Kae.apply(this,arguments)};D.prototype.toLocaleString=D.prototype.toString;D.prototype.equals=function(e){if(!D.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:D.compare(this,e)===0};D.prototype.inspect=function(){var e="",t=Kc.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"};p2&&(D.prototype[p2]=D.prototype.inspect);D.prototype.compare=function(e,t,n,i,s){if(gs(e,Uint8Array)&&(e=D.from(e,e.offset,e.byteLength)),!D.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),t<0||n>e.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&t>=n)return 0;if(i>=s)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,s>>>=0,this===e)return 0;for(var o=s-i,a=n-t,c=Math.min(o,a),l=this.slice(i,s),d=e.slice(t,n),u=0;u<c;++u)if(l[u]!==d[u]){o=l[u],a=d[u];break}return o<a?-1:a<o?1:0};function S2(r,e,t,n,i){if(r.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,XN(t)&&(t=i?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(i)return-1;t=r.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof e=="string"&&(e=D.from(e,n)),D.isBuffer(e))return e.length===0?-1:h2(r,e,t,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):h2(r,[e],t,n,i);throw new TypeError("val must be string, number or Buffer")}function h2(r,e,t,n,i){var s=1,o=r.length,a=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||e.length<2)return-1;s=2,o/=2,a/=2,t/=2}function c(g,y){return s===1?g[y]:g.readUInt16BE(y*s)}var l;if(i){var d=-1;for(l=t;l<o;l++)if(c(r,l)===c(e,d===-1?0:l-d)){if(d===-1&&(d=l),l-d+1===a)return d*s}else d!==-1&&(l-=l-d),d=-1}else for(t+a>o&&(t=o-a),l=t;l>=0;l--){for(var u=!0,h=0;h<a;h++)if(c(r,l+h)!==c(e,h)){u=!1;break}if(u)return l}return-1}D.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1};D.prototype.indexOf=function(e,t,n){return S2(this,e,t,n,!0)};D.prototype.lastIndexOf=function(e,t,n){return S2(this,e,t,n,!1)};function Wae(r,e,t,n){t=Number(t)||0;var i=r.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;var s=e.length;n>s/2&&(n=s/2);for(var o=0;o<n;++o){var a=parseInt(e.substr(o*2,2),16);if(XN(a))return o;r[t+o]=a}return o}function Vae(r,e,t,n){return Pg(KN(e,r.length-t),r,t,n)}function P2(r,e,t,n){return Pg(oce(e),r,t,n)}function Xae(r,e,t,n){return P2(r,e,t,n)}function Qae(r,e,t,n){return Pg(R2(e),r,t,n)}function Yae(r,e,t,n){return Pg(ace(e,r.length-t),r,t,n)}D.prototype.write=function(e,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var s=this.length-t;if((n===void 0||n>s)&&(n=s),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return Wae(this,e,t,n);case"utf8":case"utf-8":return Vae(this,e,t,n);case"ascii":return P2(this,e,t,n);case"latin1":case"binary":return Xae(this,e,t,n);case"base64":return Qae(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Yae(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};D.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Jae(r,e,t){return e===0&&t===r.length?jN.fromByteArray(r):jN.fromByteArray(r.slice(e,t))}function C2(r,e,t){t=Math.min(r.length,t);for(var n=[],i=e;i<t;){var s=r[i],o=null,a=s>239?4:s>223?3:s>191?2:1;if(i+a<=t){var c,l,d,u;switch(a){case 1:s<128&&(o=s);break;case 2:c=r[i+1],(c&192)===128&&(u=(s&31)<<6|c&63,u>127&&(o=u));break;case 3:c=r[i+1],l=r[i+2],(c&192)===128&&(l&192)===128&&(u=(s&15)<<12|(c&63)<<6|l&63,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:c=r[i+1],l=r[i+2],d=r[i+3],(c&192)===128&&(l&192)===128&&(d&192)===128&&(u=(s&15)<<18|(c&63)<<12|(l&63)<<6|d&63,u>65535&&u<1114112&&(o=u))}}o===null?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=a}return Zae(n)}var g2=4096;function Zae(r){var e=r.length;if(e<=g2)return String.fromCharCode.apply(String,r);for(var t="",n=0;n<e;)t+=String.fromCharCode.apply(String,r.slice(n,n+=g2));return t}function ece(r,e,t){var n="";t=Math.min(r.length,t);for(var i=e;i<t;++i)n+=String.fromCharCode(r[i]&127);return n}function tce(r,e,t){var n="";t=Math.min(r.length,t);for(var i=e;i<t;++i)n+=String.fromCharCode(r[i]);return n}function rce(r,e,t){var n=r.length;(!e||e<0)&&(e=0),(!t||t<0||t>n)&&(t=n);for(var i="",s=e;s<t;++s)i+=cce[r[s]];return i}function nce(r,e,t){for(var n=r.slice(e,t),i="",s=0;s<n.length;s+=2)i+=String.fromCharCode(n[s]+n[s+1]*256);return i}D.prototype.slice=function(e,t){var n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,D.prototype),i};function Wt(r,e,t){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+e>t)throw new RangeError("Trying to access beyond buffer length")}D.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||Wt(e,t,this.length);for(var i=this[e],s=1,o=0;++o<t&&(s*=256);)i+=this[e+o]*s;return i};D.prototype.readUIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||Wt(e,t,this.length);for(var i=this[e+--t],s=1;t>0&&(s*=256);)i+=this[e+--t]*s;return i};D.prototype.readUInt8=function(e,t){return e=e>>>0,t||Wt(e,1,this.length),this[e]};D.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||Wt(e,2,this.length),this[e]|this[e+1]<<8};D.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||Wt(e,2,this.length),this[e]<<8|this[e+1]};D.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||Wt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};D.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||Wt(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};D.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||Wt(e,t,this.length);for(var i=this[e],s=1,o=0;++o<t&&(s*=256);)i+=this[e+o]*s;return s*=128,i>=s&&(i-=Math.pow(2,8*t)),i};D.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||Wt(e,t,this.length);for(var i=t,s=1,o=this[e+--i];i>0&&(s*=256);)o+=this[e+--i]*s;return s*=128,o>=s&&(o-=Math.pow(2,8*t)),o};D.prototype.readInt8=function(e,t){return e=e>>>0,t||Wt(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};D.prototype.readInt16LE=function(e,t){e=e>>>0,t||Wt(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};D.prototype.readInt16BE=function(e,t){e=e>>>0,t||Wt(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};D.prototype.readInt32LE=function(e,t){return e=e>>>0,t||Wt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};D.prototype.readInt32BE=function(e,t){return e=e>>>0,t||Wt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};D.prototype.readFloatLE=function(e,t){return e=e>>>0,t||Wt(e,4,this.length),Gc.read(this,e,!0,23,4)};D.prototype.readFloatBE=function(e,t){return e=e>>>0,t||Wt(e,4,this.length),Gc.read(this,e,!1,23,4)};D.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||Wt(e,8,this.length),Gc.read(this,e,!0,52,8)};D.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||Wt(e,8,this.length),Gc.read(this,e,!1,52,8)};function Kr(r,e,t,n,i,s){if(!D.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<s)throw new RangeError('"value" argument is out of bounds');if(t+n>r.length)throw new RangeError("Index out of range")}D.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t=t>>>0,n=n>>>0,!i){var s=Math.pow(2,8*n)-1;Kr(this,e,t,n,s,0)}var o=1,a=0;for(this[t]=e&255;++a<n&&(o*=256);)this[t+a]=e/o&255;return t+n};D.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t=t>>>0,n=n>>>0,!i){var s=Math.pow(2,8*n)-1;Kr(this,e,t,n,s,0)}var o=n-1,a=1;for(this[t+o]=e&255;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n};D.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||Kr(this,e,t,1,255,0),this[t]=e&255,t+1};D.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||Kr(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};D.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||Kr(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};D.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||Kr(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};D.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||Kr(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};D.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t=t>>>0,!i){var s=Math.pow(2,8*n-1);Kr(this,e,t,n,s-1,-s)}var o=0,a=1,c=0;for(this[t]=e&255;++o<n&&(a*=256);)e<0&&c===0&&this[t+o-1]!==0&&(c=1),this[t+o]=(e/a>>0)-c&255;return t+n};D.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t=t>>>0,!i){var s=Math.pow(2,8*n-1);Kr(this,e,t,n,s-1,-s)}var o=n-1,a=1,c=0;for(this[t+o]=e&255;--o>=0&&(a*=256);)e<0&&c===0&&this[t+o+1]!==0&&(c=1),this[t+o]=(e/a>>0)-c&255;return t+n};D.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||Kr(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};D.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||Kr(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};D.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||Kr(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};D.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||Kr(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};D.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||Kr(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function E2(r,e,t,n,i,s){if(t+n>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function N2(r,e,t,n,i){return e=+e,t=t>>>0,i||E2(r,e,t,4,34028234663852886e22,-34028234663852886e22),Gc.write(r,e,t,n,23,4),t+4}D.prototype.writeFloatLE=function(e,t,n){return N2(this,e,t,!0,n)};D.prototype.writeFloatBE=function(e,t,n){return N2(this,e,t,!1,n)};function w2(r,e,t,n,i){return e=+e,t=t>>>0,i||E2(r,e,t,8,17976931348623157e292,-17976931348623157e292),Gc.write(r,e,t,n,52,8),t+8}D.prototype.writeDoubleLE=function(e,t,n){return w2(this,e,t,!0,n)};D.prototype.writeDoubleBE=function(e,t,n){return w2(this,e,t,!1,n)};D.prototype.copy=function(e,t,n,i){if(!D.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var s=i-n;if(this===e&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(t,n,i);else if(this===e&&n<t&&t<i)for(var o=s-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,i),t);return s};D.prototype.fill=function(e,t,n,i){if(typeof e=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="str
1ing")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!D.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var s=e.charCodeAt(0);(i==="utf8"&&s<128||i==="latin1")&&(e=s)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var o;if(typeof e=="number")for(o=t;o<n;++o)this[o]=e;else{var a=D.isBuffer(e)?e:D.from(e,i),c=a.length;if(c===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=a[o%c]}return this};var ice=/[^+/0-9A-Za-z-_]/g;function sce(r){if(r=r.split("=")[0],r=r.trim().replace(ice,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function KN(r,e){e=e||1/0;for(var t,n=r.length,i=null,s=[],o=0;o<n;++o){if(t=r.charCodeAt(o),t>55295&&t<57344){if(!i){if(t>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&s.push(239,191,189);continue}i=t;continue}if(t<56320){(e-=3)>-1&&s.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,t<128){if((e-=1)<0)break;s.push(t)}else if(t<2048){if((e-=2)<0)break;s.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;s.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;s.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return s}function oce(r){for(var e=[],t=0;t<r.length;++t)e.push(r.charCodeAt(t)&255);return e}function ace(r,e){for(var t,n,i,s=[],o=0;o<r.length&&!((e-=2)<0);++o)t=r.charCodeAt(o),n=t>>8,i=t%256,s.push(i),s.push(n);return s}function R2(r){return jN.toByteArray(sce(r))}function Pg(r,e,t,n){for(var i=0;i<n&&!(i+t>=e.length||i>=r.length);++i)e[i+t]=r[i];return i}function gs(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function XN(r){return r!==r}var cce=function(){for(var r="0123456789abcdef",e=new Array(256),t=0;t<16;++t)for(var n=t*16,i=0;i<16;++i)e[n+i]=r[t]+r[i];return e}()});var oa=tt((w6e,QN)=>{"use strict";typeof Object.create=="function"?QN.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:QN.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}});var YN=tt((R6e,A2)=>{"use strict";A2.exports=Ga().EventEmitter});var JN=tt(()=>{"use strict"});var D2=tt((_6e,O2)=>{"use strict";function I2(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function M2(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?I2(Object(t),!0).forEach(function(n){lce(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):I2(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function lce(r,e,t){return e=k2(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function mce(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function B2(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,k2(n.key),n)}}function dce(r,e,t){return e&&B2(r.prototype,e),t&&B2(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function k2(r){var e=uce(r,"string");return typeof e=="symbol"?e:String(e)}function uce(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var pce=Li(),Cg=pce.Buffer,fce=JN(),ZN=fce.inspect,hce=ZN&&ZN.custom||"inspect";function gce(r,e,t){Cg.prototype.copy.call(r,e,t)}O2.exports=function(){function r(){mce(this,r),this.head=null,this.tail=null,this.length=0}return dce(r,[{key:"push",value:function(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=t+n.data;return i}},{key:"concat",value:function(t){if(this.length===0)return Cg.alloc(0);for(var n=Cg.allocUnsafe(t>>>0),i=this.head,s=0;i;)gce(i.data,n,s),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(t,n){var i;return t<this.head.data.length?(i=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):t===this.head.data.length?i=this.shift():i=n?this._getString(t):this._getBuffer(t),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var n=this.head,i=1,s=n.data;for(t-=s.length;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(a===o.length?s+=o:s+=o.slice(0,t),t-=a,t===0){a===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(t){var n=Cg.allocUnsafe(t),i=this.head,s=1;for(i.data.copy(n),t-=i.data.length;i=i.next;){var o=i.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),t-=a,t===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:hce,value:function(t,n){return ZN(this,M2(M2({},n),{},{depth:0,customInspect:!1}))}}]),r}()});var tw=tt((A6e,z2)=>{"use strict";function yce(r,e){var t=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(ew,this,r)):process.nextTick(ew,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(s){!e&&s?t._writableState?t._writableState.errorEmitted?process.nextTick(Eg,t):(t._writableState.errorEmitted=!0,process.nextTick(L2,t,s)):process.nextTick(L2,t,s):e?(process.nextTick(Eg,t),e(s)):process.nextTick(Eg,t)}),this)}function L2(r,e){ew(r,e),Eg(r)}function Eg(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function xce(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ew(r,e){r.emit("error",e)}function bce(r,e){var t=r._readableState,n=r._writableState;t&&t.autoDestroy||n&&n.autoDestroy?r.destroy(e):r.emit("error",e)}
vendor: 37,856 bytes, line 1
1z2.exports={destroy:yce,undestroy:xce,errorOrDestroy:bce}});var aa=tt((I6e,H2)=>{"use strict";function Sce(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var q2={};function Rn(r,e,t){t||(t=Error);function n(s,o,a){return typeof e=="string"?e:e(s,o,a)}var i=function(s){Sce(o,s);function o(a,c,l){return s.call(this,n(a,c,l))||this}return o}(t);i.prototype.name=t.name,i.prototype.code=r,q2[r]=i}function U2(r,e){if(Array.isArray(r)){var t=r.length;return r=r.map(function(n){return String(n)}),t>2?"one of ".concat(e," ").concat(r.slice(0,t-1).join(", "),", or ")+r[t-1]:t===2?"one of ".concat(e," ").concat(r[0]," or ").concat(r[1]):"of ".concat(e," ").concat(r[0])}else return"of ".concat(e," ").concat(String(r))}function Pce(r,e,t){return r.substr(!t||t<0?0:+t,e.length)===e}function Cce(r,e,t){return(t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function Ece(r,e,t){return typeof t!="number"&&(t=0),t+e.length>r.length?!1:r.indexOf(e,t)!==-1}Rn("ERR_INVALID_OPT_VALUE",function(r,e){return'The value "'+e+'" is invalid for option "'+r+'"'},TypeError);Rn("ERR_INVALID_ARG_TYPE",function(r,e,t){var n;typeof e=="string"&&Pce(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";var i;if(Cce(r," argument"))i="The ".concat(r," ").concat(n," ").concat(U2(e,"type"));else{var s=Ece(r,".")?"property":"argument";i='The "'.concat(r,'" ').concat(s," ").concat(n," ").concat(U2(e,"type"))}return i+=". Received type ".concat(typeof t),i},TypeError);Rn("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Rn("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"});Rn("ERR_STREAM_PREMATURE_CLOSE","Premature close");Rn("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"});Rn("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Rn("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Rn("ERR_STREAM_WRITE_AFTER_END","write after end");Rn("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Rn("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError);Rn("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");H2.exports.codes=q2});var rw=tt((M6e,F2)=>{"use strict";var Nce=aa().codes.ERR_INVALID_OPT_VALUE;function wce(r,e,t){return r.highWaterMark!=null?r.highWaterMark:e?r[t]:null}function Rce(r,e,t,n){var i=wce(e,n,t);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?t:"highWaterMark";throw new Nce(s,i)}return Math.floor(i)}return r.objectMode?16:16*1024}F2.exports={getHighWaterMark:Rce}});var j2=tt((B6e,$2)=>{"use strict";$2.exports=vce;function vce(r,e){if(nw("noDeprecation"))return r;var t=!1;function n(){if(!t){if(nw("throwDeprecation"))throw new Error(e);nw("traceDeprecation")?console.trace(e):console.warn(e),t=!0}return r.apply(this,arguments)}return n}function nw(r){try{if(!global.localStorage)return!1}catch{return!1}var e=global.localStorage[r];return e==null?!1:String(e).toLowerCase()==="true"}});var ow=tt((k6e,Q2)=>{"use strict";Q2.exports=ft;function K2(r){var e=this;this.next=null,this.entry=null,this.finish=function(){ele(e,r)}}var Vc;ft.WritableState=id;var Tce={deprecate:j2()},W2=YN(),wg=Li().Buffer,_ce=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Ace(r){return wg.from(r)}function Ice(r){return wg.isBuffer(r)||r instanceof _ce}var sw=tw(),Mce=rw(),Bce=Mce.getHighWaterMark,Js=aa().codes,kce=Js.ERR_INVALID_ARG_TYPE,Oce=Js.ERR_METHOD_NOT_IMPLEMENTED,Dce=Js.ERR_MULTIPLE_CALLBACK,Lce=Js.ERR_STREAM_CANNOT_PIPE,zce=Js.ERR_STREAM_DESTROYED,Uce=Js.ERR_STREAM_NULL_VALUES,qce=Js.ERR_STREAM_WRITE_AFTER_END,Hce=Js.ERR_UNKNOWN_ENCODING,Xc=sw.errorOrDestroy;oa()(ft,W2);function Fce(){}function id(r,e,t){Vc=Vc||ca(),r=r||{},typeof t!="boolean"&&(t=e instanceof Vc),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=Bce(this,r,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=r.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Xce(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new K2(this)}id.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(id.prototype,"buffer",{get:Tce.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Ng;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ng=Function.prototype[Symbol.hasInstance],Object.defineProperty(ft,Symbol.hasInstance,{value:function(e){return Ng.call(this,e)?!0:this!==ft?!1:e&&e._writableState instanceof id}})):Ng=function(e){return e instanceof this};function ft(r){Vc=Vc||ca();var e=this instanceof Vc;if(!e&&!Ng.call(ft,this))return new ft(r);this._writableState=new id(r,this,e),this.writable=!0,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),W2.call(this)}ft.prototype.pipe=function(){Xc(this,new Lce)};function $ce(r,e){var t=new qce;Xc(r,t),process.nextTick(e,t)}function jce(r,e,t,n){var i;return t===null?i=new Uce:typeof t!="string"&&!e.objectMode&&(i=new kce("chunk",["string","Buffer"],t)),i?(Xc(r,i),process.nextTick(n,i),!1):!0}ft.prototype.write=function(r,e,t){var n=this._writableState,i=!1,s=!n.objectMode&&Ice(r);return s&&!wg.isBuffer(r)&&(r=Ace(r)),typeof e=="function"&&(t=e,e=null),s?e="buffer":e||(e=n.defaultEncoding),typeof t!="function"&&(t=Fce),n.ending?$ce(this,t):(s||jce(this,n,r,t))&&(n.pendingcb++,i=Kce(this,n,s,r,e,t)),i};ft.prototype.cork=function(){this._writableState.corked++};ft.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&V2(this,r))};ft.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new Hce(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(ft.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Gce(r,e,t){return!r.objectMode&&r.decodeStrings!==!1&&typeof e=="string"&&(e=wg.from(e,t)),e}Object.defineProperty(ft.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Kce(r,e,t,n,i,s){if(!t){var o=Gce(e,n,i);n!==o&&(t=!0,i="buffer",n=o)}var a=e.objectMode?1:n.length;e.length+=a;var c=e.length<e.highWaterMark;if(c||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:t,callback:s,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else iw(r,e,!1,a,n,i,s);return c}function iw(r,e,t,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new zce("write")):t?r._writev(i,e.onwrite):r._write(i,s,e.onwrite),e.sync=!1}function Wce(r,e,t,n,i){--e.pendingcb,t?(process.nextTick(i,n),process.nextTick(nd,r,e),r._writableState.errorEmitted=!0,Xc(r,n)):(i(n),r._writableState.errorEmitted=!0,Xc(r,n),nd(r,e))}function Vce(r){r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0}function Xce(r,e){var t=r._writableState,n=t.sync,i=t.writecb;if(typeof i!="function")throw new Dce;if(Vce(t),e)Wce(r,t,n,e,i);else{var s=X2(t)||r.destroyed;!s&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&V2(r,t),n?process.nextTick(G2,r,t,s,i):G2(r,t,s,i)}}function G2(r,e,t,n){t||Qce(r,e),e.pendingcb--,n(),nd(r,e)}function Qce(r,e){e.length===0&&e.needDrain&&(e.needDrain=!1,r.emit("drain"))}function V2(r,e){e.bufferProcessing=!0;var t=e.bufferedRequest;if(r._writev&&t&&t.next){var n=e.bufferedRequestCount,i=new Array(n),s=e.corkedRequestsFree;s.entry=t;for(var o=0,a=!0;t;)i[o]=t,t.isBuf||(a=!1),t=t.next,o+=1;i.allBuffers=a,iw(r,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new K2(e),e.bufferedRequestCount=0}else{for(;t;){var c=t.chunk,l=t.encoding,d=t.callback,u=e.objectMode?1:c.length;if(iw(r,e,!1,u,c,l,d),t=t.next,e.bufferedRequestCount--,e.writing)break}t===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=t,e.bufferProcessing=!1}ft.prototype._write=function(r,e,t){t(new Oce("_write()"))};ft.prototype._writev=null;ft.prototype.end=function(r,e,t){var n=this._writableState;return typeof r=="function"?(t=r,r=null,e=null):typeof e=="function"&&(t=e,e=null),r!=null&&this.write(r,e),n.corked&&(n.corked=1,this.uncork()),n.ending||Zce(this,n,t),this};Object.defineProperty(ft.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function X2(r){return r.ending&&r.length===0&&r.bufferedRequest===null&&!r.finished&&!r.writing}function Yce(r,e){r._final(function(t){e.pendingcb--,t&&Xc(r,t),e.prefinished=!0,r.emit("prefinish"),nd(r,e)})}function Jce(r,e){!e.prefinished&&!e.finalCalled&&(typeof r._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(Yce,r,e)):(e.prefinished=!0,r.emit("prefinish")))}function nd(r,e){var t=X2(e);if(t&&(Jce(r,e),e.pendingcb===0&&(e.finished=!0,r.emit("finish"),e.autoDestroy))){var n=r._readableState;(!n||n.autoDestroy&&n.endEmitted)&&r.destroy()}return t}function Zce(r,e,t){e.ending=!0,nd(r,e),t&&(e.finished?process.nextTick(t):r.once("finish",t)),e.ended=!0,r.writable=!1}function ele(r,e,t){var n=r.entry;for(r.entry=null;n;){var i=n.callback;e.pendingcb--,i(t),n=n.next}e.corkedRequestsFree.next=r}Object.defineProperty(ft.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});ft.prototype.destroy=sw.destroy;ft.prototype._undestroy=sw.undestroy;ft.prototype._destroy=function(r,e){e(r)}});var ca=tt((O6e,J2)=>{"use strict";var tle=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};J2.exports=zi;var Y2=lw(),cw=ow();oa()(zi,Y2);for(aw=tle(cw.prototype),Rg=0;Rg<aw.length;Rg++)vg=aw[Rg],zi.prototype[vg]||(zi.prototype[vg]=cw.prototype[vg]);var aw,vg,Rg;function zi(r){if(!(this instanceof zi))return new zi(r);Y2.call(this,r),cw.call(this,r),this.allowHalfOpen=!0,r&&(r.readable===!1&&(this.readable=!1),r.writable===!1&&(this.writable=!1),r.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",rle)))}Object.defineProperty(zi.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(zi.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(zi.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function rle(){this._writableState.ended||process.nextTick(nle,this)}function nle(r){r.end()}Object.defineProperty(zi.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var tq=tt((mw,eq)=>{"use strict";var Tg=Li(),xs=Tg.Buffer;function Z2(r,e){for(var t in r)e[t]=r[t]}xs.from&&xs.alloc&&xs.allocUnsafe&&xs.allocUnsafeSlow?eq.exports=Tg:(Z2(Tg,mw),mw.Buffer=Qc);function Qc(r,e,t){return xs(r,e,t)}Z2(xs,Qc);Qc.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return xs(r,e,t)};Qc.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var n=xs(r);return e!==void 0?typeof t=="string"?n.fill(e,t):n.fill(e):n.fill(0),n};Qc.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return xs(r)};Qc.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return Tg.SlowBuffer(r)}});var pw=tt(nq=>{"use strict";var uw=tq().Buffer,rq=uw.isEncoding||function(r){switch(r=""+r,r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ile(r){if(!r)return"utf8";for(var e;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(e)return;r=(""+r).toLowerCase(),e=!0}}function sle(r){var e=ile(r);if(typeof e!="string"&&(uw.isEncoding===rq||!rq(r)))throw new Error("Unknown encoding: "+r);return e||r}nq.StringDecoder=sd;function sd(r){this.encoding=sle(r);var e;switch(this.encoding){case"utf16le":this.text=dle,this.end=ule,e=4;break;case"utf8":this.fillLast=cle,e=4;break;case"base64":this.text=ple,this.end=fle,e=3;break;default:this.write=hle,this.end=gle;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=uw.allocUnsafe(e)}sd.prototype.write=function(r){if(r.length===0)return"";var e,t;if(this.lastNeed){if(e=this.fillLast(r),e===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t<r.length?e?e+this.text(r,t):this.text(r,t):e||""};sd.prototype.end=mle;sd.prototype.text=lle;sd.prototype.fillLast=function(r){if(this.lastNeed<=r.length)return r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,r.length),this.lastNeed-=r.length};function dw(r){return r<=127?0:r>>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function ole(r,e,t){var n=e.length-1;if(n<t)return 0;var i=dw(e[n]);return i>=0?(i>0&&(r.lastNeed=i-1),i):--n<t||i===-2?0:(i=dw(e[n]),i>=0?(i>0&&(r.lastNeed=i-2),i):--n<t||i===-2?0:(i=dw(e[n]),i>=0?(i>0&&(i===2?i=0:r.lastNeed=i-3),i):0))}function ale(r,e,t){if((e[0]&192)!==128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return r.lastNeed=2,"\uFFFD"}}function cle(r){var e=this.lastTotal-this.lastNeed,t=ale(this,r,e);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,e,0,r.length),this.lastNeed-=r.length}function lle(r,e){var t=ole(this,r,e);if(!this.lastNeed)return r.toString("utf8",e);this.lastTotal=t;var n=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,n),r.toString("utf8",e,n)}function mle(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+"\uFFFD":e}function dle(r,e){if((r.length-e)%2===0){var t=r.toString("utf16le",e);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",e,r.length-1)}function ule(r){var e=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,t)}return e}function ple(r,e){var t=(r.length-e)%3;return t===0?r.toString("base64",e):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",e,r.length-t))}function fle(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function hle(r){return r.toString(this.encoding)}function gle(r){return r&&r.length?this.write(r):""}});var _g=tt((L6e,oq)=>{"use strict";var iq=aa().codes.ERR_STREAM_PREMATURE_CLOSE;function yle(r){var e=!1;return function(){if(!e){e=!0;for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];r.apply(this,n)}}}function xle(){}function ble(r){return r.setHeader&&typeof r.abort=="function"}function sq(r,e,t){if(typeof e=="function")return sq(r,null,e);e||(e={}),t=yle(t||xle);var n=e.readable||e.readable!==!1&&r.readable,i=e.writable||e.writable!==!1&&r.writable,s=function(){r.writable||a()},o=r._writableState&&r._writableState.finished,a=function(){i=!1,o=!0,n||t.call(r)},c=r._readableState&&r._readableState.endEmitted,l=function(){n=!1,c=!0,i||t.call(r)},d=function(y){t.call(r,y)},u=function(){var y;if(n&&!c)return(!r._readableState||!r._readableState.ended)&&(y=new iq),t.call(r,y);if(i&&!o)return(!r._writableState||!r._writableState.ended)&&(y=new iq),t.call(r,y)},h=function(){r.req.on("finish",a)};return ble(r)?(r.on("complete",a),r.on("abort",u),r.req?h():r.on("request",h)):i&&!r._writableState&&(r.on("end",s),r.on("close",s)),r.on("end",l),r.on("finish",a),e.error!==!1&&r.on("error",d),r.on("close",u),function(){r.removeListener("complete",a),r.removeListener("abort",u),r.removeListener("request",h),r.req&&r.req.removeListener("finish",a),r.removeListener("end",s),r.removeListener("close",s),r.removeListener("finish",a),r.removeListener("end",l),r.removeListener("error",d),r.removeListener("close",u)}}oq.exports=sq});var cq=tt((z6e,aq)=>{"use strict";var Ag;function Zs(r,e,t){return e=Sle(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Sle(r){var e=Ple(r,"string");return typeof e=="symbol"?e:String(e)}function Ple(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var Cle=_g(),eo=Symbol("lastResolve"),la=Symbol("lastReject"),od=Symbol("error"),Ig=Symbol("ended"),ma=Symbol("lastPromise"),fw=Symbol("handlePromise"),da=Symbol("stream");function to(r,e){return{value:r,done:e}}function Ele(r){var e=r[eo];if(e!==null){var t=r[da].read();t!==null&&(r[ma]=null,r[eo]=null,r[la]=null,e(to(t,!1)))}}function Nle(r){process.nextTick(Ele,r)}function wle(r,e){return function(t,n){r.then(function(){if(e[Ig]){t(to(void 0,!0));return}e[fw](t,n)},n)}}var Rle=Object.getPrototypeOf(function(){}),vle=Object.setPrototypeOf((Ag={get stream(){return this[da]},next:function(){var e=this,t=this[od];if(t!==null)return Promise.reject(t);if(this[Ig])return Promise.resolve(to(void 0,!0));if(this[da].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[od]?a(e[od]):o(to(void 0,!0))})});var n=this[ma],i;if(n)i=new Promise(wle(n,this));else{var s=this[da].read();if(s!==null)return Promise.resolve(to(s,!1));i=new Promise(this[fw])}return this[ma]=i,i}},Zs(Ag,Symbol.asyncIterator,function(){return this}),Zs(Ag,"return",function(){var e=this;return new Promise(function(t,n){e[da].destroy(null,function(i){if(i){n(i);return}t(to(void 0,!0))})})}),Ag),Rle),Tle=function(e){var t,n=Object.create(vle,(t={},Zs(t,da,{value:e,writable:!0}),Zs(t,eo,{value:null,writable:!0}),Zs(t,la,{value:null,writable:!0}),Zs(t,od,{value:null,writable:!0}),Zs(t,Ig,{value:e._readableState.endEmitted,writable:!0}),Zs(t,fw,{value:function(s,o){var a=n[da].read();a?(n[ma]=null,n[eo]=null,n[la]=null,s(to(a,!1))):(n[eo]=s,n[la]=o)},writable:!0}),t));return n[ma]=null,Cle(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[la];s!==null&&(n[ma]=null,n[eo]=null,n[la]=null,s(i)),n[od]=i;return}var o=n[eo];o!==null&&(n[ma]=null,n[eo]=null,n[la]=null,o(to(void 0,!0))),n[Ig]=!0}),e.on("readable",Nle.bind(null,n)),n};aq.exports=Tle});var mq=tt((U6e,lq)=>{"use strict";lq.exports=function(){throw new Error("Readable.from is not available in the browser")}});var lw=tt((H6e,Sq)=>{"use strict";Sq.exports=ke;var Yc;ke.ReadableState=fq;var q6e=Ga().EventEmitter,pq=function(e,t){return e.listeners(t).length},cd=YN(),Mg=Li().Buffer,_le=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Ale(r){return Mg.from(r)}function Ile(r){return Mg.isBuffer(r)||r instanceof _le}var hw=JN(),xe;hw&&hw.debuglog?xe=hw.debuglog("stream"):xe=function(){};var Mle=D2(),Cw=tw(),Ble=rw(),kle=Ble.getHighWaterMark,Bg=aa().codes,Ole=Bg.ERR_INVALID_ARG_TYPE,Dle=Bg.ERR_STREAM_PUSH_AFTER_EOF,Lle=Bg.ERR_METHOD_NOT_IMPLEMENTED,zle=Bg.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Jc,gw,yw;oa()(ke,cd);var ad=Cw.errorOrDestroy,xw=["error","close","destroy","pause","resume"];function Ule(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):Array.isArray(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]]}function fq(r,e,t){Yc=Yc||ca(),r=r||{},typeof t!="boolean"&&(t=e instanceof Yc),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=kle(this,r,"readableHighWaterMark",t),this.buffer=new Mle,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(Jc||(Jc=pw().StringDecoder),this.decoder=new Jc(r.encoding),this.encoding=r.encoding)}function ke(r){if(Yc=Yc||ca(),!(this instanceof ke))return new ke(r);var e=this instanceof Yc;this._readableState=new fq(r,this,e),this.readable=!0,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),cd.call(this)}Object.defineProperty(ke.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});ke.prototype.destroy=Cw.destroy;ke.prototype._undestroy=Cw.undestroy;ke.prototype._destroy=function(r,e){e(r)};ke.prototype.push=function(r,e){var t=this._readableState,n;return t.objectMode?n=!0:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=Mg.from(r,e),e=""),n=!0),hq(this,r,e,!1,n)};ke.prototype.unshift=function(r){return hq(this,r,null,!0,!1)};function hq(r,e,t,n,i){xe("readableAddChunk",e);var s=r._readableState;if(e===null)s.reading=!1,Fle(r,s);else{var o;if(i||(o=qle(s,e)),o)ad(r,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Mg.prototype&&(e=Ale(e)),n)s.endEmitted?ad(r,new zle):bw(r,s,e,!0);else if(s.ended)ad(r,new Dle);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!t?(e=s.decoder.write(e),s.objectMode||e.length!==0?bw(r,s,e,!1):Pw(r,s)):bw(r,s,e,!1)}else n||(s.reading=!1,Pw(r,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function bw(r,e,t,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,r.emit("data",t)):(e.length+=e.objectMode?1:t.length,n?e.buffer.unshift(t):e.buffer.push(t),e.needReadable&&kg(r)),Pw(r,e)}function qle(r,e){var t;return!Ile(e)&&typeof e!="string"&&e!==void 0&&!r.objectMode&&(t=new Ole("chunk",["string","Buffer","Uint8Array"],e)),t}ke.prototype.isPaused=function(){return this._readableState.flowing===!1};ke.prototype.setEncoding=function(r){Jc||(Jc=pw().StringDecoder);var e=new Jc(r);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var t=this._readableState.buffer.head,n="";t!==null;)n+=e.write(t.data),t=t.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var dq=1073741824;function Hle(r){return r>=dq?r=dq:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function uq(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=Hle(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=!0,0))}ke.prototype.read=function(r){xe("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=!1),r===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return xe("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Sw(this):kg(this),null;if(r=uq(r,e),r===0&&e.ended)return e.length===0&&Sw(this),null;var n=e.needReadable;xe("need readable",n),(e.length===0||e.length-r<e.highWaterMark)&&(n=!0,xe("length less than watermark",n)),e.ended||e.reading?(n=!1,xe("reading or ended",n)):n&&(xe("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(r=uq(t,e)));var i;return r>0?i=xq(r,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,r=0):(e.length-=r,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),t!==r&&e.ended&&Sw(this)),i!==null&&this.emit("data",i),i};function Fle(r,e){if(xe("onEofChunk"),!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?kg(r):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,gq(r)))}}function kg(r){var e=r._readableState;xe("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(xe("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(gq,r))}function gq(r){var e=r._readableState;xe("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(r.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Ew(r)}function Pw(r,e){e.readingMore||(e.readingMore=!0,process.nextTick($le,r,e))}function $le(r,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var t=e.length;if(xe("maybeReadMore read 0"),r.read(0),t===e.length)break}e.readingMore=!1}ke.prototype._read=function(r){ad(this,new Lle("_read()"))};ke.prototype.pipe=function(r,e){var t=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=r;break;case 1:n.pipes=[n.pipes,r];break;default:n.pipes.push(r);break}n.pipesCount+=1,xe("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&r!==process.stdout&&r!==process.stderr,s=i?a:S;n.endEmitted?process.nextTick(s):t.once("end",s),r.on("unpipe",o);function o(C,N){xe("onunpipe"),C===t&&N&&N.hasUnpiped===!1&&(N.hasUnpiped=!0,d())}function a(){xe("onend"),r.end()}var c=jle(t);r.on("drain",c);var l=!1;function d(){xe("cleanup"),r.removeListener("close",g),r.removeListener("finish",y),r.removeListener("drain",c),r.removeListener("error",h),r.removeListener("unpipe",o),t.removeListener("end",a),t.removeListener("end",S),t.removeListener("data",u),l=!0,n.awaitDrain&&(!r._writableState||r._writableState.needDrain)&&c()}t.on("data",u);function u(C){xe("ondata");var N=r.write(C);xe("dest.write",N),N===!1&&((n.pipesCount===1&&n.pipes===r||n.pipesCount>1&&bq(n.pipes,r)!==-1)&&!l&&(xe("false write response, pause",n.awaitDrain),n.awaitDrain++),t.pause())}function h(C){xe("onerror",C),S(),r.removeListener("error",h),pq(r,"error")===0&&ad(r,C)}Ule(r,"error",h);function g(){r.removeListener("finish",y),S()}r.once("close",g);function y(){xe("onfinish"),r.removeListener("close",g),S()}r.once("finish",y);function S(){xe("unpipe"),t.unpipe(r)}return r.emit("pipe",t),n.flowing||(xe("pipe resume"),t.resume()),r};function jle(r){return function(){var t=r._readableState;xe("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&pq(r,"data")&&(t.flowing=!0,Ew(r))}}ke.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,r&&r.emit("unpipe",this,t),this);if(!r){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=bq(e.pipes,r);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),r.emit("unpipe",this,t),this)};ke.prototype.on=function(r,e){var t=cd.prototype.on.call(this,r,e),n=this._readableState;return r==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):r==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,xe("on readable",n.length,n.reading),n.length?kg(this):n.reading||process.nextTick(Gle,this)),t};ke.prototype.addListener=ke.prototype.on;ke.prototype.removeListener=function(r,e){var t=cd.prototype.removeListener.call(this,r,e);return r==="readable"&&process.nextTick(yq,this),t};ke.prototype.removeAllListeners=function(r){var e=cd.prototype.removeAllListeners.apply(this,arguments);return(r==="readable"||r===void 0)&&process.nextTick(yq,this),e};function yq(r){var e=r._readableState;e.readableListening=r.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:r.listenerCount("data")>0&&r.resume()}function Gle(r){xe("readable nexttick read 0"),r.read(0)}ke.prototype.resume=function(){var r=this._readableState;return r.flowing||(xe("resume"),r.flowing=!r.readableListening,Kle(this,r)),r.paused=!1,this};function Kle(r,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Wle,r,e))}function Wle(r,e){xe("resume",e.reading),e.reading||r.read(0),e.resumeScheduled=!1,r.emit("resume"),Ew(r),e.flowing&&!e.reading&&r.read(0)}ke.prototype.pause=function(){return xe("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(xe("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ew(r){var e=r._readableState;for(xe("flow",e.flowing);e.flowing&&r.read()!==null;);}ke.prototype.wrap=function(r){var e=this,t=this._readableState,n=!1;r.on("end",function(){if(xe("wrapped end"),t.decoder&&!t.ended){var o=t.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),r.on("data",function(o){if(xe("wrapped data"),t.decoder&&(o=t.decoder.write(o)),!(t.objectMode&&o==null)&&!(!t.objectMode&&(!o||!o.length))){var a=e.push(o);a||(n=!0,r.pause())}});for(var i in r)this[i]===void 0&&typeof r[i]=="function"&&(this[i]=function(a){return function(){return r[a].apply(r,arguments)}}(i));for(var s=0;s<xw.length;s++)r.on(xw[s],this.emit.bind(this,xw[s]));return this._read=function(o){xe("wrapped _read",o),n&&(n=!1,r.resume())},this};typeof Symbol=="function"&&(ke.prototype[Symbol.asyncIterator]=function(){return gw===void 0&&(gw=cq()),gw(this)});Object.defineProperty(ke.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(ke.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(ke.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});ke._fromList=xq;Object.defineProperty(ke.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function xq(r,e){if(e.length===0)return null;var t;return e.objectMode?t=e.buffer.shift():!r||r>=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.first():t=e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(r,e.decoder),t}function Sw(r){var e=r._readableState;xe("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Vle,e,r))}function Vle(r,e){if(xe("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&r.length===0&&(r.endEmitted=!0,e.readable=!1,e.emit("end"),r.autoDestroy)){var t=e._writableState;(!t||t.autoDestroy&&t.finished)&&e.destroy()}}typeof Symbol=="function"&&(ke.from=function(r,e){return yw===void 0&&(yw=mq()),yw(ke,r,e)});function bq(r,e){for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}});var Nw=tt((F6e,Cq)=>{"use strict";Cq.exports=bs;var Og=aa().codes,Xle=Og.ERR_METHOD_NOT_IMPLEMENTED,Qle=Og.ERR_MULTIPLE_CALLBACK,Yle=Og.ERR_TRANSFORM_ALREADY_TRANSFORMING,Jle=Og.ERR_TRANSFORM_WITH_LENGTH_0,Dg=ca();oa()(bs,Dg);function Zle(r,e){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(n===null)return this.emit("error",new Qle);t.writechunk=null,t.writecb=null,e!=null&&this.push(e),n(r);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function bs(r){if(!(this instanceof bs))return new bs(r);Dg.call(this,r),this._transformState={afterTransform:Zle.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",eme)}function eme(){var r=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,t){Pq(r,e,t)}):Pq(this,null,null)}bs.prototype.push=function(r,e){return this._transformState.needTransform=!1,Dg.prototype.push.call(this,r,e)};bs.prototype._transform=function(r,e,t){t(new Xle("_transform()"))};bs.prototype._write=function(r,e,t){var n=this._transformState;if(n.writecb=t,n.writechunk=r,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};bs.prototype._read=function(r){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};bs.prototype._destroy=function(r,e){Dg.prototype._destroy.call(this,r,function(t){e(t)})};function Pq(r,e,t){if(e)return r.emit("error",e);if(t!=null&&r.push(t),r._writableState.length)throw new Jle;if(r._transformState.transforming)throw new Yle;return r.push(null)}});var wq=tt(($6e,Nq)=>{"use strict";Nq.exports=ld;var Eq=Nw();oa()(ld,Eq);function ld(r){if(!(this instanceof ld))return new ld(r);Eq.call(this,r)}ld.prototype._transform=function(r,e,t){t(null,r)}});var Aq=tt((j6e,_q)=>{"use strict";var ww;function tme(r){var e=!1;return function(){e||(e=!0,r.apply(void 0,arguments))}}var Tq=aa().codes,rme=Tq.ERR_MISSING_ARGS,nme=Tq.ERR_STREAM_DESTROYED;function Rq(r){if(r)throw r}function ime(r){return r.setHeader&&typeof r.abort=="function"}function sme(r,e,t,n){n=tme(n);var i=!1;r.on("close",function(){i=!0}),ww===void 0&&(ww=_g()),ww(r,{readable:e,writable:t},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,ime(r))return r.abort();if(typeof r.destroy=="function")return r.destroy();n(o||new nme("pipe"))}}}function vq(r){r()}function ome(r,e){return r.pipe(e)}function ame(r){return!r.length||typeof r[r.length-1]!="function"?Rq:r.pop()}function cme(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n=ame(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new rme("streams");var i,s=e.map(function(o,a){var c=a<e.length-1,l=a>0;return sme(o,c,l,function(d){i||(i=d),d&&s.forEach(vq),!c&&(s.forEach(vq),n(i))})});return e.reduce(ome)}_q.exports=cme});var Mq=tt((G6e,Iq)=>{"use strict";Iq.exports=vn;var Rw=Ga().EventEmitter,lme=oa();lme(vn,Rw);vn.Readable=lw();vn.Writable=ow();vn.Duplex=ca();vn.Transform=Nw();vn.PassThrough=wq();vn.finished=_g();vn.pipeline=Aq();vn.Stream=vn;function vn(){Rw.call(this)}vn.prototype.pipe=function(r,e){var t=this;function n(d){r.writable&&r.write(d)===!1&&t.pause&&t.pause()}t.on("data",n);function i(){t.readable&&t.resume&&t.resume()}r.on("drain",i),!r._isStdio&&(!e||e.end!==!1)&&(t.on("end",o),t.on("close",a));var s=!1;function o(){s||(s=!0,r.end())}function a(){s||(s=!0,typeof r.destroy=="function"&&r.destroy())}function c(d){if(l(),Rw.listenerCount(this,"error")===0)throw d}t.on("error",c),r.on("error",c);function l(){t.removeListener("data",n),r.removeListener("drain",i),t.removeListener("end",o),t.removeListener("close",a),t.removeListener("error",c),r.removeListener("error",c),t.removeListener("end",l),t.removeListener("close",l),r.removeListener("close",l)}return t.on("end",l),t.on("close",l),r.on("close",l),r.emit("pipe",t),r}});function Xv(r){return new Be(3e3,!1)}function q3(){return new Be(3100,!1)}function H3(){return new Be(3101,!1)}function F3(r){return new Be(3001,!1)}function $3(r){return new Be(3003,!1)}function j3(r){return new Be(3004,!1)}function Yv(r,e){return new Be(3005,!1)}function Jv(){return new Be(3006,!1)}function Zv(){return new Be(3007,!1)}function eT(r,e){return new Be(3008,!1)}function tT(r){return new Be(3002,!1)}function rT(r,e,t,n,i){return new Be(3010,!1)}function nT(){return new Be(3011,!1)}function iT(){return new Be(3012,!1)}function sT(){return new Be(3200,!1)}function oT(){return new Be(3202,!1)}function aT(){return new Be(3013,!1)}function cT(r){return new Be(3014,!1)}function lT(r){return new Be(3015,!1)}function mT(r){return new Be(3016,!1)}function dT(r,e){return new Be(3404,!1)}function G3(r){return new Be(3502,!1)}function uT(r){return new Be(3503,!1)}function pT(){return new Be(3300,!1)}function fT(r){return new Be(3504,!1)}
vendor: 57,959 bytes, line 1
1function hT(r){return new Be(3301,!1)}function gT(r,e){return new Be(3302,!1)}function yT(r){return new Be(3303,!1)}function xT(r,e){return new Be(3400,!1)}function bT(r){return new Be(3401,!1)}function ST(r){return new Be(3402,!1)}function PT(r,e){return new Be(3505,!1)}function qi(r){switch(r.length){case 0:return new so;case 1:return r[0];default:return new Rd(r)}}function Ry(r,e,t=new Map,n=new Map){let i=[],s=[],o=-1,a=null;if(e.forEach(c=>{let l=c.get("offset"),d=l==o,u=d&&a||new Map;c.forEach((h,g)=>{let y=g,S=h;if(g!=="offset")switch(y=r.normalizePropertyName(y,i),S){case sl:S=t.get(g);break;case An:S=n.get(g);break;default:S=r.normalizeStyleValue(g,y,S,i);break}u.set(y,S)}),d||s.push(u),a=u,o=l}),i.length)throw G3(i);return s}function zd(r,e,t,n){switch(e){case"start":r.onStart(()=>n(t&&Ey(t,"start",r)));break;case"done":r.onDone(()=>n(t&&Ey(t,"done",r)));break;case"destroy":r.onDestroy(()=>n(t&&Ey(t,"destroy",r)));break}}function Ey(r,e,t){let n=t.totalTime,i=!!t.disabled,s=Ud(r.element,r.triggerName,r.fromState,r.toState,e||r.phaseName,n??r.totalTime,i),o=r._data;return o!=null&&(s._data=o),s}function Ud(r,e,t,n,i="",s=0,o){return{element:r,triggerName:e,fromState:t,toState:n,phaseName:i,totalTime:s,disabled:!!o}}function kr(r,e,t){let n=r.get(e);return n||r.set(e,n=t),n}function vy(r){let e=r.indexOf(":"),t=r.substring(1,e),n=r.slice(e+1);return[t,n]}var K3=typeof document>"u"?null:document.documentElement;function qd(r){let e=r.parentNode||r.host||null;return e===K3?null:e}function W3(r){return r.substring(1,6)=="ebkit"}var uo=null,Qv=!1;function CT(r){uo||(uo=V3()||{},Qv=uo.style?"WebkitAppearance"in uo.style:!1);let e=!0;return uo.style&&!W3(r)&&(e=r in uo.style,!e&&Qv&&(e="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in uo.style)),e}function V3(){return typeof document<"u"?document.body:null}function Ty(r,e){for(;e;){if(e===r)return!0;e=qd(e)}return!1}function _y(r,e,t){if(t)return Array.from(r.querySelectorAll(e));let n=r.querySelector(e);return n?[n]:[]}var X3=1e3,Ay="{{",Q3="}}",Iy="ng-enter",Hd="ng-leave",al="ng-trigger",cl=".ng-trigger",My="ng-animating",Fd=".ng-animating";function ti(r){if(typeof r=="number")return r;let e=r.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ny(parseFloat(e[1]),e[2])}function Ny(r,e){switch(e){case"s":return r*X3;default:return r}}function ll(r,e,t){return r.hasOwnProperty("duration")?r:Y3(r,e,t)}function Y3(r,e,t){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,s=0,o="";if(typeof r=="string"){let a=r.match(n);if(a===null)return e.push(Xv(r)),{duration:0,delay:0,easing:""};i=Ny(parseFloat(a[1]),a[2]);let c=a[3];c!=null&&(s=Ny(parseFloat(c),a[4]));let l=a[5];l&&(o=l)}else i=r;if(!t){let a=!1,c=e.length;i<0&&(e.push(q3()),a=!0),s<0&&(e.push(H3()),a=!0),a&&e.splice(c,0,Xv(r))}return{duration:i,delay:s,easing:o}}function ET(r){return r.length?r[0]instanceof Map?r:r.map(e=>new Map(Object.entries(e))):[]}function In(r,e,t){e.forEach((n,i)=>{let s=$d(i);t&&!t.has(i)&&t.set(i,r.style[s]),r.style[s]=n})}function vs(r,e){e.forEach((t,n)=>{let i=$d(n);r.style[i]=""})}function Ca(r){return Array.isArray(r)?r.length==1?r[0]:OR(r):r}function NT(r,e,t){let n=e.params||{},i=By(r);i.length&&i.forEach(s=>{n.hasOwnProperty(s)||t.push(F3(s))})}var wy=new RegExp(`${Ay}\\s*(.+?)\\s*${Q3}`,"g");function By(r){let e=[];if(typeof r=="string"){let t;for(;t=wy.exec(r);)e.push(t[1]);wy.lastIndex=0}return e}function Ea(r,e,t){let n=`${r}`,i=n.replace(wy,(s,o)=>{let a=e[o];return a==null&&(t.push($3(o)),a=""),a.toString()});return i==n?r:i}var J3=/-+([a-z0-9])/g;function $d(r){return r.replace(J3,(...e)=>e[1].toUpperCase())}function wT(r,e){return r===0||e===0}function RT(r,e,t){if(t.size&&e.length){let n=e[0],i=[];if(t.forEach((s,o)=>{n.has(o)||i.push(o),n.set(o,s)}),i.length)for(let s=1;s<e.length;s++){let o=e[s];i.forEach(a=>o.set(a,jd(r,a)))}}return e}function Or(r,e,t){switch(e.type){case Ee.Trigger:return r.visitTrigger(e,t);case Ee.State:return r.visitState(e,t);case Ee.Transition:return r.visitTransition(e,t);case Ee.Sequence:return r.visitSequence(e,t);case Ee.Group:return r.visitGroup(e,t);case Ee.Animate:return r.visitAnimate(e,t);case Ee.Keyframes:return r.visitKeyframes(e,t);case Ee.Style:return r.visitStyle(e,t);case Ee.Reference:return r.visitReference(e,t);case Ee.AnimateChild:return r.visitAnimateChild(e,t);case Ee.AnimateRef:return r.visitAnimateRef(e,t);case Ee.Query:return r.visitQuery(e,t);case Ee.Stagger:return r.visitStagger(e,t);default:throw j3(e.type)}}function jd(r,e){return window.getComputedStyle(r)[e]}var Qy=(()=>{class r{validateStyleProperty(t){return CT(t)}containsElement(t,n){return Ty(t,n)}getParentElement(t){return qd(t)}query(t,n,i){return _y(t,n,i)}computeStyle(t,n,i){return i||""}animate(t,n,i,s,o,a=[],c){return new so(i,s)}static \u0275fac=function(n){return new(n||r)};static \u0275prov=Ce({token:r,factory:r.\u0275fac})}return r})(),fo=class{static NOOP=new Qy},ho=class{};var Z3=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Xd=class extends ho{normalizePropertyName(e,t){return $d(e)}normalizeStyleValue(e,t,n,i){let s="",o=n.toString().trim();if(Z3.has(t)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(Yv(e,n))}return o+s}};var Qd="*";function eH(r,e){let t=[];return typeof r=="string"?r.split(/\s*,\s*/).forEach(n=>tH(n,t,e)):t.push(r),t}function tH(r,e,t){if(r[0]==":"){let c=rH(r,t);if(typeof c=="function"){e.push(c);return}r=c}let n=r.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(lT(r)),e;let i=n[1],s=n[2],o=n[3];e.push(vT(i,o));let a=i==Qd&&o==Qd;s[0]=="<"&&!a&&e.push(vT(o,i))}function rH(r,e){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n)<parseFloat(t);default:return e.push(mT(r)),"* => *"}}var Gd=new Set(["true","1"]),Kd=new Set(["false","0"]);function vT(r,e){let t=Gd.has(r)||Kd.has(r),n=Gd.has(e)||Kd.has(e);return(i,s)=>{let o=r==Qd||r==i,a=e==Qd||e==s;return!o&&t&&typeof i=="boolean"&&(o=i?Gd.has(r):Kd.has(r)),!a&&n&&typeof s=="boolean"&&(a=s?Gd.has(e):Kd.has(e)),o&&a}}var LT=":self",nH=new RegExp(`s*${LT}s*,?`,"g");function zT(r,e,t,n){return new Uy(r).build(e,t,n)}var TT="",Uy=class{_driver;constructor(e){this._driver=e}build(e,t,n){let i=new qy(t);return this._resetContextStyleTimingState(i),Or(this,Ca(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=TT,e.collectedStyles=new Map,e.collectedStyles.set(TT,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Jv()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==Ee.State){let c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(d=>{c.name=d,s.push(this.visitState(c,t))}),c.name=l}else if(a.type==Ee.Transition){let c=this.visitTransition(a,t);n+=c.queryCount,i+=c.depCount,o.push(c)}else t.errors.push(Zv())}),{type:Ee.Trigger,name:e.name,states:s,transitions:o,queryCount:n,depCount:i,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){let s=new Set,o=i||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{By(c).forEach(l=>{o.hasOwnProperty(l)||s.add(l)})})}),s.size&&t.errors.push(eT(e.name,[...s.values()]))}return{type:Ee.State,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=Or(this,Ca(e.animation),t),i=eH(e.expr,t.errors);return{type:Ee.Transition,matchers:i,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:po(e.options)}}visitSequence(e,t){return{type:Ee.Sequence,steps:e.steps.map(n=>Or(this,n,t)),options:po(e.options)}}visitGroup(e,t){let n=t.currentTime,i=0,s=e.steps.map(o=>{t.currentTime=n;let a=Or(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:Ee.Group,steps:s,options:po(e.options)}}visitAnimate(e,t){let n=aH(e.timings,t.errors);t.currentAnimateTimings=n;let i,s=e.styles?e.styles:sy({});if(s.type==Ee.Keyframes)i=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;let l={};n.easing&&(l.easing=n.easing),o=sy(l)}t.currentTime+=n.duration+n.delay;let c=this.visitStyle(o,t);c.isEmptyStep=a,i=c}return t.currentAnimateTimings=null,{type:Ee.Animate,timings:n,style:i,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)typeof a=="string"?a===An?n.push(a):t.errors.push(tT(a)):n.push(new Map(Object.entries(a)));let s=!1,o=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let c of a.values())if(c.toString().indexOf(Ay)>=0){s=!0;break}}}),{type:Ee.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,i=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,c)=>{let l=t.collectedStyles.get(t.currentQuerySelector),d=l.get(c),u=!0;d&&(s!=i&&s>=d.startTime&&i<=d.endTime&&(t.errors.push(rT(c,d.startTime,d.endTime,s,i)),u=!1),s=d.startTime),u&&l.set(c,{startTime:s,endTime:i}),t.options&&NT(a,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:Ee.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(nT()),n;let i=1,s=0,o=[],a=!1,c=!1,l=0,d=e.steps.map(N=>{let T=this._makeStyleAst(N,t),I=T.offset!=null?T.offset:oH(T.styles),k=0;return I!=null&&(s++,k=T.offset=I),c=c||k<0||k>1,a=a||k<l,l=k,o.push(k),T});c&&t.errors.push(iT()),a&&t.errors.push(sT());let u=e.steps.length,h=0;s>0&&s<u?t.errors.push(oT()):s==0&&(h=i/(u-1));let g=u-1,y=t.currentTime,S=t.currentAnimateTimings,C=S.duration;return d.forEach((N,T)=>{let I=h>0?T==g?1:h*T:o[T],k=I*C;t.currentTime=y+S.delay+k,S.duration=k,this._validateStyleAst(N,t),N.offset=I,n.styles.push(N)}),n}visitReference(e,t){return{type:Ee.Reference,animation:Or(this,Ca(e.animation),t),options:po(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:Ee.AnimateChild,options:po(e.options)}}visitAnimateRef(e,t){return{type:Ee.AnimateRef,animation:this.visitReference(e.animation,t),options:po(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=iH(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,kr(t.collectedStyles,t.currentQuerySelector,new Map);let a=Or(this,Ca(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:Ee.Query,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:po(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(aT());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ll(e.timings,t.errors,!0);return{type:Ee.Stagger,animation:Or(this,Ca(e.animation),t),timings:n,options:null}}};function iH(r){let e=!!r.split(/\s*,\s*/).find(t=>t==LT);return e&&(r=r.replace(nH,"")),r=r.replace(/@\*/g,cl).replace(/@\w+/g,t=>cl+"-"+t.slice(1)).replace(/:animating/g,Fd),[r,e]}function sH(r){return r?x({},r):null}var qy=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function oH(r){if(typeof r=="string")return null;let e=null;if(Array.isArray(r))r.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(r instanceof Map&&r.has("offset")){let t=r;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function aH(r,e){if(r.hasOwnProperty("duration"))return r;if(typeof r=="number"){let s=ll(r,e).duration;return ky(s,0,"")}let t=r;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=ky(0,0,"");return s.dynamic=!0,s.strValue=t,s}let i=ll(t,e);return ky(i.duration,i.delay,i.easing)}function po(r){return r?(r=x({},r),r.params&&(r.params=sH(r.params))):r={},r}function ky(r,e,t){return{duration:r,delay:e,easing:t}}function Yy(r,e,t,n,i,s,o=null,a=!1){return{type:1,element:r,keyframes:e,preStyleProps:t,postStyleProps:n,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}var dl=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},cH=1,lH=":enter",mH=new RegExp(lH,"g"),dH=":leave",uH=new RegExp(dH,"g");function UT(r,e,t,n,i,s=new Map,o=new Map,a,c,l=[]){return new Hy().buildKeyframes(r,e,t,n,i,s,o,a,c,l)}var Hy=class{buildKeyframes(e,t,n,i,s,o,a,c,l,d=[]){l=l||new dl;let u=new Fy(e,t,l,i,s,d,[]);u.options=c;let h=c.delay?ti(c.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([o],null,u.errors,c),Or(this,n,u);let g=u.timelines.filter(y=>y.containsAnimation());if(g.length&&a.size){let y;for(let S=g.length-1;S>=0;S--){let C=g[S];if(C.element===t){y=C;break}}y&&!y.allowOnlyTimelineStyles()&&y.setStyles([a],null,u.errors,c)}return g.length?g.map(y=>y.buildKeyframes()):[Yy(t,[],[],[],0,h,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let i=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let i of e){let s=i?.delay;if(s){let o=typeof s=="number"?s:ti(Ea(s,i?.params??{},t.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime,o=n.duration!=null?ti(n.duration):null,a=n.delay!=null?ti(n.delay):null;return o!==0&&e.forEach(c=>{let l=t.appendInstructionToTimeline(c,o,a);s=Math.max(s,l.duration+l.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Or(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=t.subContextCount,i=t,s=e.options;if(s&&(s.params||s.delay)&&(i=t.createSubContext(s),i.transformIntoNewTimeline(),s.delay!=null)){i.previousNode.type==Ee.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Yd);let o=ti(s.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Or(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],i=t.currentTimeline.currentTime,s=e.options&&e.options.delay?ti(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);s&&a.delayNextStep(s),Or(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,i=t.params?Ea(n,t.params,t.errors):n;return ll(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());let s=e.style;s.type==Ee.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,i=t.currentTimeline.duration,s=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(c=>{let l=c.offset||0;a.forwardTime(l*s),a.setStyles(c.styles,c.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+s),t.previousNode=e}visitQuery(e,t){let n=t.currentTimeline.currentTime,i=e.options||{},s=i.delay?ti(i.delay):0;s&&(t.previousNode.type===Ee.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Yd);let o=n,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let c=null;a.forEach((l,d)=>{t.currentQueryIndex=d;let u=t.createSubContext(e.options,l);s&&u.delayNextStep(s),l===t.element&&(c=u.currentTimeline),Or(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let h=u.currentTimeline.currentTime;o=Math.max(o,h)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=t.parentContext,i=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1),c=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":c=a-c;break;case"full":c=n.currentStaggerTime;break}let d=t.currentTimeline;c&&d.delayNextStep(c);let u=d.currentTime;Or(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}},Yd={},Fy=class r{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Yd;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,n,i,s,o,a,c){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=a,this.currentTimeline=c||new Jd(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,i=this.options;n.duration!=null&&(i.duration=ti(n.duration)),n.delay!=null&&(i.delay=ti(n.delay));let s=n.params;if(s){let o=i.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Ea(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(i=>{n[i]=t[i]})}}return e}createSubContext(e=null,t,n){let i=t||this.element,s=new r(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=Yd,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},s=new $y(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,i,s,o){let a=[];if(i&&a.push(this.element),e.length>0){e=e.replace(mH,"."+this._enterClassName),e=e.replace(uH,"."+this._leaveClassName);let c=n!=1,l=this._driver.query(this.element,e,c);n!==0&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),a.push(...l)}return!s&&a.length==0&&o.push(cT(t)),a}},Jd=class r{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new r(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=cH,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||An),this._currentKeyframe.set(t,An);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&this._previousKeyframe.set("easing",t);let s=i&&i.params||{},o=pH(e,this._globalTimelineStyles);for(let[a,c]of o){let l=Ea(c,s,n);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??An),this._updateStyle(a,l)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let i=this._styleSummary.get(n);(!i||t.time>i.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,c)=>{let l=new Map([...this._backFill,...a]);l.forEach((d,u)=>{d===sl?e.add(u):d===An&&t.add(u)}),n||l.set("offset",c/this.duration),i.push(l)});let s=[...e.values()],o=[...t.values()];if(n){let a=i[0],c=new Map(a);a.set("offset",0),c.set("offset",1),i=[a,c]}return Yy(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}},$y=class extends Jd{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,n,i,s,o,a=!1){super(e,t,o.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],o=n+t,a=t/o,c=new Map(e[0]);c.set("offset",0),s.push(c);let l=new Map(e[0]);l.set("offset",_T(a)),s.push(l);let d=e.length-1;for(let u=1;u<=d;u++){let h=new Map(e[u]),g=h.get("offset"),y=t+g*n;h.set("offset",_T(y/o)),s.push(h)}n=o,t=0,i="",e=s}return Yy(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,!0)}};function _T(r,e=3){let t=Math.pow(10,e-1);return Math.round(r*t)/t}function pH(r,e){let t=new Map,n;return r.forEach(i=>{if(i==="*"){n??=e.keys();for(let s of n)t.set(s,An)}else for(let[s,o]of i)t.set(s,o)}),t}function AT(r,e,t,n,i,s,o,a,c,l,d,u,h){return{type:0,element:r,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:s,toState:n,toStyles:o,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:d,totalTime:u,errors:h}}var Oy={},Zd=class{_triggerName;ast;_stateStyles;constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,i){return fH(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,n):new Map}build(e,t,n,i,s,o,a,c,l,d){let u=[],h=this.ast.options&&this.ast.options.params||Oy,g=a&&a.params||Oy,y=this.buildStyles(n,g,u),S=c&&c.params||Oy,C=this.buildStyles(i,S,u),N=new Set,T=new Map,I=new Map,k=i==="void",Z={params:qT(S,h),delay:this.ast.options?.delay},te=d?[]:UT(e,t,this.ast.animation,s,o,y,C,Z,l,u),ae=0;return te.forEach(ye=>{ae=Math.max(ye.duration+ye.delay,ae)}),u.length?AT(t,this._triggerName,n,i,k,y,C,[],[],T,I,ae,u):(te.forEach(ye=>{let pr=ye.element,Vn=kr(T,pr,new Set);ye.preStyleProps.forEach(ro=>Vn.add(ro));let Kg=kr(I,pr,new Set);ye.postStyleProps.forEach(ro=>Kg.add(ro)),pr!==t&&N.add(pr)}),AT(t,this._triggerName,n,i,k,y,C,te,[...N.values()],T,I,ae))}};function fH(r,e,t,n,i){return r.some(s=>s(e,t,n,i))}function qT(r,e){let t=x({},e);return Object.entries(r).forEach(([n,i])=>{i!=null&&(t[n]=i)}),t}var jy=class{styles;defaultParams;normalizer;constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,i=qT(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=Ea(o,i,t));let c=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,c,o,t),n.set(a,o)})}),n}};function hH(r,e,t){return new Gy(r,e,t)}var Gy=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,t.states.forEach(i=>{let s=i.options&&i.options.params||{};this.states.set(i.name,new jy(i.style,s,n))}),IT(this.states,"true","1"),IT(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new Zd(e,i,this.states))}),this.fallbackTransition=gH(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(o=>o.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function gH(r,e,t){let n=[(o,a)=>!0],i={type:Ee.Sequence,steps:[],options:null},s={type:Ee.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new Zd(r,s,e)}function IT(r,e,t){r.has(e)?r.has(t)||r.set(t,r.get(e)):r.has(t)&&r.set(e,r.get(t))}var yH=new dl,Ky=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n}register(e,t){let n=[],i=[],s=zT(this._driver,t,n,i);if(n.length)throw uT(n);this._animations.set(e,s)}_buildPlayer(e,t,n){let i=e.element,s=Ry(this._normalizer,e.keyframes,t,n);return this._driver.animate(i,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let i=[],s=this._animations.get(e),o,a=new Map;if(s?(o=UT(this._driver,t,s,Iy,Hd,new Map,new Map,n,yH,i),o.forEach(d=>{let u=kr(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(i.push(pT()),o=[]),i.length)throw fT(i);a.forEach((d,u)=>{d.forEach((h,g)=>{d.set(g,this._driver.computeStyle(u,g,An))})});let c=o.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),l=qi(c);return this._playersById.set(e,l),l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw hT(e);return t}listen(e,t,n,i){let s=Ud(t,"","","");return zd(this._getPlayer(e),n,s,i),()=>{}}command(e,t,n,i){if(n=="register"){this.register(e,i[0]);return}if(n=="create"){let o=i[0]||{};this.create(e,t,o);return}let s=this._getPlayer(e);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},MT="ng-animate-queued",xH=".ng-animate-queued",Dy="ng-animate-disabled",bH=".ng-animate-disabled",SH="ng-star-inserted",PH=".ng-star-inserted",CH=[],HT={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},EH={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Mn="__ng_removed",ul=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),i=n?e.value:e;if(this.value=wH(i),n){let s=e,{value:o}=s,a=an(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(i=>{n[i]==null&&(n[i]=t[i])})}}},ml="void",Ly=new ul(ml),Wy=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this._hostClassName="ng-tns-"+e,dn(t,this._hostClassName)}listen(e,t,n,i){if(!this._triggers.has(t))throw gT(n,t);if(n==null||n.length==0)throw yT(t);if(!RH(n))throw xT(n,t);let s=kr(this._elementListeners,e,[]),o={name:t,phase:n,callback:i};s.push(o);let a=kr(this._engine.statesByElement,e,new Map);return a.has(t)||(dn(e,al),dn(e,al+"-"+t),a.set(t,Ly)),()=>{this._engine.afterFlush(()=>{let c=s.indexOf(o);c>=0&&s.splice(c,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw bT(e);return t}trigger(e,t,n,i=!0){let s=this._getTrigger(t),o=new pl(this.id,t,e),a=this._engine.statesByElement.get(e);a||(dn(e,al),dn(e,al+"-"+t),this._engine.statesByElement.set(e,a=new Map));let c=a.get(t),l=new ul(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(t,l),c||(c=Ly),!(l.value===ml)&&c.value===l.value){if(!_H(c.params,l.params)){let S=[],C=s.matchStyles(c.value,c.params,S),N=s.matchStyles(l.value,l.params,S);S.length?this._engine.reportError(S):this._engine.afterFlush(()=>{vs(e,C),In(e,N)})}return}let h=kr(this._engine.playersByElement,e,[]);h.forEach(S=>{S.namespaceId==this.id&&S.triggerName==t&&S.queued&&S.destroy()});let g=s.matchTransition(c.value,l.value,e,l.params),y=!1;if(!g){if(!i)return;g=s.fallbackTransition,y=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:g,fromState:c,toState:l,player:o,isFallbackTransition:y}),y||(dn(e,MT),o.onStart(()=>{Na(e,MT)})),o.onDone(()=>{let S=this.players.indexOf(o);S>=0&&this.players.splice(S,1);let C=this._engine.playersByElement.get(e);if(C){let N=C.indexOf(o);N>=0&&C.splice(N,1)}}),this.players.push(o),h.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,cl,!0);n.forEach(i=>{if(i[Mn])return;let s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(o=>o.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,n,i){let s=this._engine.statesByElement.get(e),o=new Map;if(s){let a=[];if(s.forEach((c,l)=>{if(o.set(l,c.value),this._triggers.has(l)){let d=this.trigger(e,l,ml,i);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),n&&qi(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let i=new Set;t.forEach(s=>{let o=s.name;if(i.has(o))return;i.add(o);let c=this._triggers.get(o).fallbackTransition,l=n.get(o)||Ly,d=new ul(ml),u=new pl(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:c,fromState:l,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(e):[];if(s&&s.length)i=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,!1,t);else{let s=e[Mn];(!s||s===HT)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){dn(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let s=n.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==n.triggerName){let c=Ud(s,n.triggerName,n.fromState.value,n.toState.value);c._data=e,zd(n.player,a.phase,c,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(n)}),this._queue=[],t.sort((n,i)=>{let s=n.transition.ast.depCount,o=i.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Vy=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new Wy(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let c=i.get(a);if(c){let l=n.indexOf(c);n.splice(l+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return i.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let i of n.values())if(i.namespaceId){let s=this._fetchNamespace(i.namespaceId);s&&t.add(s)}}return t}trigger(e,t,n,i){if(Wd(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,n,i),!0}return!1}insertNode(e,t,n,i){if(!Wd(t))return;let s=t[Mn];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,n)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),dn(e,Dy)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Na(e,Dy))}removeNode(e,t,n){if(Wd(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,i,s){this.collectedLeaveElements.push(t),t[Mn]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,n,i,s){return Wd(t)?this._fetchNamespace(e).listen(t,n,i,s):()=>{}}_buildInstruction(e,t,n,i,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,cl,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Fd,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return qi(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[Mn];if(t&&t.setForRemoval){if(e[Mn]=HT,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Dy)&&this.markElementAsDisabled(e,!1),this.driver.query(e,bH,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let i=this.collectedEnterElements[n];dn(i,SH)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e)}finally{for(let i=0;i<n.length;i++)n[i]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let i=this.collectedLeaveElements[n];this.processLeaveNode(i)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?qi(t).onDone(()=>{n.forEach(i=>i())}):n.forEach(i=>i())}}reportError(e){throw ST(e)}_flushAnimations(e,t){let n=new dl,i=[],s=new Map,o=[],a=new Map,c=new Map,l=new Map,d=new Set;this.disabledNodes.forEach(Y=>{d.add(Y);let ne=this.driver.query(Y,xH,!0);for(let ie=0;ie<ne.length;ie++)d.add(ne[ie])});let u=this.bodyNode,h=Array.from(this.statesByElement.keys()),g=OT(h,this.collectedEnterElements),y=new Map,S=0;g.forEach((Y,ne)=>{let ie=Iy+S++;y.set(ne,ie),Y.forEach(Me=>dn(Me,ie))});let C=[],N=new Set,T=new Set;for(let Y=0;Y<this.collectedLeaveElements.length;Y++){let ne=this.collectedLeaveElements[Y],ie=ne[Mn];ie&&ie.setForRemoval&&(C.push(ne),N.add(ne),ie.hasAnimation?this.driver.query(ne,PH,!0).forEach(Me=>N.add(Me)):T.add(ne))}let I=new Map,k=OT(h,Array.from(N));k.forEach((Y,ne)=>{let ie=Hd+S++;I.set(ne,ie),Y.forEach(Me=>dn(Me,ie))}),e.push(()=>{g.forEach((Y,ne)=>{let ie=y.get(ne);Y.forEach(Me=>Na(Me,ie))}),k.forEach((Y,ne)=>{let ie=I.get(ne);Y.forEach(Me=>Na(Me,ie))}),C.forEach(Y=>{this.processLeaveNode(Y)})});let Z=[],te=[];for(let Y=this._namespaceList.length-1;Y>=0;Y--)this._namespaceList[Y].drainQueuedTransitions(t).forEach(ie=>{let Me=ie.player,Ot=ie.element;if(Z.push(Me),this.collectedEnterElements.length){let Jt=Ot[Mn];if(Jt&&Jt.setForMove){if(Jt.previousTriggersValues&&Jt.previousTriggersValues.has(ie.triggerName)){let no=Jt.previousTriggersValues.get(ie.triggerName),on=this.statesByElement.get(ie.element);if(on&&on.has(ie.triggerName)){let fd=on.get(ie.triggerName);fd.value=no,on.set(ie.triggerName,fd)}}Me.destroy();return}}let Xn=!u||!this.driver.containsElement(u,Ot),Wr=I.get(Ot),Ss=y.get(Ot),st=this._buildInstruction(ie,n,Ss,Wr,Xn);if(st.errors&&st.errors.length){te.push(st);return}if(Xn){Me.onStart(()=>vs(Ot,st.fromStyles)),Me.onDestroy(()=>In(Ot,st.toStyles)),i.push(Me);return}if(ie.isFallbackTransition){Me.onStart(()=>vs(Ot,st.fromStyles)),Me.onDestroy(()=>In(Ot,st.toStyles)),i.push(Me);return}let Yw=[];st.timelines.forEach(Jt=>{Jt.stretchStartingKeyframe=!0,this.disabledNodes.has(Jt.element)||Yw.push(Jt)}),st.timelines=Yw,n.append(Ot,st.timelines);let z3={instruction:st,player:Me,element:Ot};o.push(z3),st.queriedElements.forEach(Jt=>kr(a,Jt,[]).push(Me)),st.preStyleProps.forEach((Jt,no)=>{if(Jt.size){let on=c.get(no);on||c.set(no,on=new Set),Jt.forEach((fd,Vg)=>on.add(Vg))}}),st.postStyleProps.forEach((Jt,no)=>{let on=l.get(no);on||l.set(no,on=new Set),Jt.forEach((fd,Vg)=>on.add(Vg))})});if(te.length){let Y=[];te.forEach(ne=>{Y.push(PT(ne.triggerName,ne.errors))}),Z.forEach(ne=>ne.destroy()),this.reportError(Y)}let ae=new Map,ye=new Map;o.forEach(Y=>{let ne=Y.element;n.has(ne)&&(ye.set(ne,ne),this._beforeAnimationBuild(Y.player.namespaceId,Y.instruction,ae))}),i.forEach(Y=>{let ne=Y.element;this._getPreviousPlayers(ne,!1,Y.namespaceId,Y.triggerName,null).forEach(Me=>{kr(ae,ne,[]).push(Me),Me.destroy()})});let pr=C.filter(Y=>DT(Y,c,l)),Vn=new Map;kT(Vn,this.driver,T,l,An).forEach(Y=>{DT(Y,c,l)&&pr.push(Y)});let ro=new Map;g.forEach((Y,ne)=>{kT(ro,this.driver,new Set(Y),c,sl)}),pr.forEach(Y=>{let ne=Vn.get(Y),ie=ro.get(Y);Vn.set(Y,new Map([...ne?.entries()??[],...ie?.entries()??[]]))});let Wg=[],Xw=[],Qw={};o.forEach(Y=>{let{element:ne,player:ie,instruction:Me}=Y;if(n.has(ne)){if(d.has(ne)){ie.onDestroy(()=>In(ne,Me.toStyles)),ie.disabled=!0,ie.overrideTotalTime(Me.totalTime),i.push(ie);return}let Ot=Qw;if(ye.size>1){let Wr=ne,Ss=[];for(;Wr=Wr.parentNode;){let st=ye.get(Wr);if(st){Ot=st;break}Ss.push(Wr)}Ss.forEach(st=>ye.set(st,Ot))}let Xn=this._buildAnimation(ie.namespaceId,Me,ae,s,ro,Vn);if(ie.setRealPlayer(Xn),Ot===Qw)Wg.push(ie);else{let Wr=this.playersByElement.get(Ot);Wr&&Wr.length&&(ie.parentPlayer=qi(Wr)),i.push(ie)}}else vs(ne,Me.fromStyles),ie.onDestroy(()=>In(ne,Me.toStyles)),Xw.push(ie),d.has(ne)&&i.push(ie)}),Xw.forEach(Y=>{let ne=s.get(Y.element);if(ne&&ne.length){let ie=qi(ne);Y.setRealPlayer(ie)}}),i.forEach(Y=>{Y.parentPlayer?Y.syncPlayerEvents(Y.parentPlayer):Y.destroy()});for(let Y=0;Y<C.length;Y++){let ne=C[Y],ie=ne[Mn];if(Na(ne,Hd),ie&&ie.hasAnimation)continue;let Me=[];if(a.size){let Xn=a.get(ne);Xn&&Xn.length&&Me.push(...Xn);let Wr=this.driver.query(ne,Fd,!0);for(let Ss=0;Ss<Wr.length;Ss++){let st=a.get(Wr[Ss]);st&&st.length&&Me.push(...st)}}let Ot=Me.filter(Xn=>!Xn.destroyed);Ot.length?vH(this,ne,Ot):this.processLeaveNode(ne)}return C.length=0,Wg.forEach(Y=>{this.players.push(Y),Y.onDone(()=>{Y.destroy();let ne=this.players.indexOf(Y);this.players.splice(ne,1)}),Y.play()}),Wg}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,i,s){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let c=!s||s==ml;a.forEach(l=>{l.queued||!c&&l.triggerName!=i||o.push(l)})}}return(n||i)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(e,t,n){let i=t.triggerName,s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:i;for(let c of t.timelines){let l=c.element,d=l!==s,u=kr(n,l,[]);this._getPreviousPlayers(l,d,o,a,t.toState).forEach(g=>{let y=g.getRealPlayer();y.beforeDestroy&&y.beforeDestroy(),g.destroy(),u.push(g)})}vs(s,t.fromStyles)}_buildAnimation(e,t,n,i,s,o){let a=t.triggerName,c=t.element,l=[],d=new Set,u=new Set,h=t.timelines.map(y=>{let S=y.element;d.add(S);let C=S[Mn];if(C&&C.removedBeforeQueried)return new so(y.duration,y.delay);let N=S!==c,T=TH((n.get(S)||CH).map(ae=>ae.getRealPlayer())).filter(ae=>{let ye=ae;return ye.element?ye.element===S:!1}),I=s.get(S),k=o.get(S),Z=Ry(this._normalizer,y.keyframes,I,k),te=this._buildPlayer(y,Z,T);if(y.subTimeline&&i&&u.add(S),N){let ae=new pl(e,a,S);ae.setRealPlayer(te),l.push(ae)}return te});l.forEach(y=>{kr(this.playersByQueriedElement,y.element,[]).push(y),y.onDone(()=>NH(this.playersByQueriedElement,y.element,y))}),d.forEach(y=>dn(y,My));let g=qi(h);return g.onDestroy(()=>{d.forEach(y=>Na(y,My)),In(c,t.toStyles)}),u.forEach(y=>{kr(i,y,[]).push(g)}),g}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new so(e.duration,e.delay)}},pl=class{namespaceId;triggerName;element;_player=new so;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(i=>zd(e,n,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){kr(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function NH(r,e,t){let n=r.get(e);if(n){if(n.length){let i=n.indexOf(t);n.splice(i,1)}n.length==0&&r.delete(e)}return n}function wH(r){return r??null}function Wd(r){return r&&r.nodeType===1}function RH(r){return r=="start"||r=="done"}function BT(r,e){let t=r.style.display;return r.style.display=e??"none",t}function kT(r,e,t,n,i){let s=[];t.forEach(c=>s.push(BT(c)));let o=[];n.forEach((c,l)=>{let d=new Map;c.forEach(u=>{let h=e.computeStyle(l,u,i);d.set(u,h),(!h||h.length==0)&&(l[Mn]=EH,o.push(l))}),r.set(l,d)});let a=0;return t.forEach(c=>BT(c,s[a++])),o}function OT(r,e){let t=new Map;if(r.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,i=new Set(e),s=new Map;function o(a){if(!a)return n;let c=s.get(a);if(c)return c;let l=a.parentNode;return t.has(l)?c=l:i.has(l)?c=n:c=o(l),s.set(a,c),c}return e.forEach(a=>{let c=o(a);c!==n&&t.get(c).push(a)}),t}function dn(r,e){r.classList?.add(e)}function Na(r,e){r.classList?.remove(e)}function vH(r,e,t){qi(t).onDone(()=>r.processLeaveNode(e))}function TH(r){let e=[];return FT(r,e),e}function FT(r,e){for(let t=0;t<r.length;t++){let n=r[t];n instanceof Rd?FT(n.players,e):e.push(n)}}function _H(r,e){let t=Object.keys(r),n=Object.keys(e);if(t.length!=n.length)return!1;for(let i=0;i<t.length;i++){let s=t[i];if(!e.hasOwnProperty(s)||r[s]!==e[s])return!1}return!0}function DT(r,e,t){let n=t.get(r);if(!n)return!1;let i=e.get(r);return i?n.forEach(s=>i.add(s)):e.set(r,n),t.delete(r),!0}var wa=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,n){this._driver=t,this._normalizer=n,this._transitionEngine=new Vy(e.body,t,n),this._timelineEngine=new Ky(e.body,t,n),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(e,t,n,i,s){let o=e+"-"+i,a=this._triggerCache[o];if(!a){let c=[],l=[],d=zT(this._driver,s,c,l);if(c.length)throw dT(i,c);a=hH(i,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,i){if(n.charAt(0)=="@"){let[s,o]=vy(n),a=i;this._timelineEngine.command(s,t,o,a)}else this._transitionEngine.trigger(e,t,n,i)}listen(e,t,n,i,s){if(n.charAt(0)=="@"){let[o,a]=vy(n);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,n,i,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function AH(r,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=zy(e[0]),e.length>1&&(n=zy(e[e.length-1]))):e instanceof Map&&(t=zy(e)),t||n?new IH(r,t,n):null}var IH=(()=>{class r{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i;let s=r.initialStylesByElement.get(t);s||r.initialStylesByElement.set(t,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&In(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(In(this._element,this._initialStyles),this._endStyles&&(In(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(vs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(vs(this._element,this._endStyles),this._endStyles=null),In(this._element,this._initialStyles),this._state=3)}}return r})();function zy(r){let e=null;return r.forEach((t,n)=>{MH(n)&&(e=e||new Map,e.set(n,t))}),e}function MH(r){return r==="display"||r==="position"}var eu=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{i!=="offset"&&e.set(i,this._finished?n:jd(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},tu=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Ty(e,t)}getParentElement(e){return qd(e)}query(e,t,n){return _y(e,t,n)}computeStyle(e,t,n){return jd(e,t)}animate(e,t,n,i,s,o=[]){let a=i==0?"both":"forwards",c={duration:n,delay:i,fill:a};s&&(c.easing=s);let l=new Map,d=o.filter(g=>g instanceof eu);wT(n,i)&&d.forEach(g=>{g.currentSnapshot.forEach((y,S)=>l.set(S,y))});let u=ET(t).map(g=>new Map(g));u=RT(e,u,l);let h=AH(e,u);return new eu(e,u,c,h)}};var Vd="@",$T="@.disabled",ru=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,n,i){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=i}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,i=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,n){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==Vd&&t==$T?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n,i){return this.delegate.listen(e,t,n,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Xy=class extends ru{factory;constructor(e,t,n,i,s){super(t,n,i,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==Vd?t.charAt(1)=="."&&t==$T?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n,i){if(t.charAt(0)==Vd){let s=BH(e),o=t.slice(1),a="";return o.charAt(0)!=Vd&&([o,a]=kH(o)),this.engine.listen(this.namespaceId,s,o,a,c=>{let l=c._data||-1;this.factory.scheduleListenerCallback(l,n,c)})}return this.delegate.listen(e,t,n,i)}};function BH(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}function kH(r){let e=r.indexOf("."),t=r.substring(0,e),n=r.slice(e+1);return[t,n]}var nu=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,t.onRemovalComplete=(i,s)=>{s?.removeChild(null,i)}}createRenderer(e,t){let n="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let l=this._rendererCache,d=l.get(i);if(!d){let u=()=>l.delete(i);d=new ru(n,i,this.engine,u),l.set(i,d)}return d}let s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(s,o,e,l.name,l)};return t.data.animation.forEach(a),new Xy(this,o,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>
1{i.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),i.push([t,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};var DH=(()=>{class r extends wa{constructor(t,n,i){super(t,n,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||r)(ee(xR),ee(fo),ee(ho))};static \u0275prov=Ce({token:r,factory:r.\u0275fac})}return r})();function LH(){return new Xd}function zH(r,e,t){return new nu(r,e,t)}var GT=[{provide:ho,useFactory:LH},{provide:wa,useClass:DH},{provide:uR,useFactory:zH,deps:[CR,wa,ya]}],UH=[{provide:fo,useClass:Qy},{provide:ey,useValue:"NoopAnimations"},...GT],jT=[{provide:fo,useFactory:()=>new tu},{provide:ey,useFactory:()=>"BrowserAnimations"},...GT],KT=(()=>{class r{static withConfig(t){return{ngModule:r,providers:t.disableAnimations?UH:jT}}static \u0275fac=function(n){return new(n||r)};static \u0275mod=hr({type:r});static \u0275inj=fr({providers:jT,imports:[wd]})}return r})();function iu(r){return r*zR}var Hi=(()=>{class r{constructor(){this.configs={}}configByKey(t){if(this.configs[t])return this.configs[t];throw Error(`Config for key '${t}' not found.`)}setConfig(t,n){if(this.configs[t])throw Error(`Config for key '${t}' was already set.`);this.configs[t]=n}static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})(),WT=(r,e="__env")=>{let n=(r||{})[e]||{},i=new Hi;for(let s in n)n[s]&&i.setConfig(s,n[s]);return i};var HH="application/json",su=class{#r=[];#t;#n=!0;#l;#o=this.#S(console.info);#u=this.#S(console.warn);#e={enable:!0,callbackList:[],interval:5};#s;didInitialize=!1;authenticated=!1;loginRequired=!1;responseMode="fragment";responseType="code";flow="standard";timeSkew=null;redirectUri;silentCheckSsoRedirectUri;silentCheckSsoFallback=!0;pkceMethod="S256";enableLogging=!1;logoutMethod="GET";scope;messageReceiveTimeout=1e4;idToken;idTokenParsed;token;tokenParsed;refreshToken;refreshTokenParsed;clientId;sessionId;subject;authServerUrl;realm;realmAccess;resourceAccess;profile;userInfo;endpoints;tokenTimeoutHandle;onAuthSuccess;onAuthError;onAuthRefreshSuccess;onAuthRefreshError;onTokenExpired;onAuthLogout;onReady;onActionUpdate;constructor(e){if(typeof e!="string"&&!tx(e))throw new Error("The 'Keycloak' constructor must be provided with a configuration object, or a URL to a JSON configuration file.");if(tx(e)){let t="oidcProvider"in e?["clientId"]:["url","realm","clientId"];for(let n of t)if(!(n in e))throw new Error(`The configuration object is missing the required '${n}' property.`)}globalThis.isSecureContext||this.#u(`[KEYCLOAK] Keycloak JS must be used in a 'secure context' to function properly as it relies on browser APIs that are otherwise not available. 2Continuing to run your application insecurely will lead to unexpected behavior and breakage. 3 4For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts`),this.#s=e}init(){return p(this,arguments,function*(e={}){if(this.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");this.didInitialize=!0,this.#l=VH();let t=["default","cordova","cordova-native"];if(typeof e.adapter=="string"&&t.includes(e.adapter)?this.#t=this.#p(e.adapter):typeof e.adapter=="object"?this.#t=e.adapter:"Cordova"in window||"cordova"in window?this.#t=this.#p("cordova"):this.#t=this.#p("default"),typeof e.useNonce<"u"&&(this.#n=e.useNonce),typeof e.checkLoginIframe<"u"&&(this.#e.enable=e.checkLoginIframe),e.checkLoginIframeInterval&&(this.#e.interval=e.checkLoginIframeInterval),e.onLoad==="login-required"&&(this.loginRequired=!0),e.responseMode)if(e.responseMode==="query"||e.responseMode==="fragment")this.responseMode=e.responseMode;else throw new Error("Invalid value for responseMode");if(e.flow){switch(e.flow){case"standard":this.responseType="code";break;case"implicit":this.responseType="id_token token";break;case"hybrid":this.responseType="code id_token token";break;default:throw new Error("Invalid value for flow")}this.flow=e.flow}if(typeof e.timeSkew=="number"&&(this.timeSkew=e.timeSkew),e.redirectUri&&(this.redirectUri=e.redirectUri),e.silentCheckSsoRedirectUri&&(this.silentCheckSsoRedirectUri=e.silentCheckSsoRedirectUri),typeof e.silentCheckSsoFallback=="boolean"&&(this.silentCheckSsoFallback=e.silentCheckSsoFallback),typeof e.pkceMethod<"u"){if(e.pkceMethod!=="S256"&&e.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${e.pkceMethod}.`);this.pkceMethod=e.pkceMethod}return typeof e.enableLogging=="boolean"&&(this.enableLogging=e.enableLogging),e.logoutMethod==="POST"&&(this.logoutMethod="POST"),typeof e.scope=="string"&&(this.scope=e.scope),typeof e.messageReceiveTimeout=="number"&&e.messageReceiveTimeout>0&&(this.messageReceiveTimeout=e.messageReceiveTimeout),yield this.#N(),yield this.#R(),yield this.#v(e),this.onReady?.(this.authenticated),this.authenticated})}#p(e){if(e==="default")return this.#P();if(e==="cordova")return this.#e.enable=!1,this.#C();if(e==="cordova-native")return this.#e.enable=!1,this.#E();throw new Error("invalid adapter type: "+e)}#P(){let e=t=>t?.redirectUri||this.redirectUri||globalThis.location.href;return{login:t=>p(this,null,function*(){return window.location.assign(yield this.createLoginUrl(t)),yield new Promise(()=>{})}),logout:t=>p(this,null,function*(){if((t?.logoutMethod??this.logoutMethod)==="GET"){window.location.replace(this.createLogoutUrl(t));return}let i=document.createElement("form");i.setAttribute("method","POST"),i.setAttribute("action",this.createLogoutUrl(t)),i.style.display="none";let s={id_token_hint:this.idToken,client_id:this.clientId,post_logout_redirect_uri:e(t)};
4for(let[o,a]of Object.entries(s)){let c=document.createElement("input");c.setAttribute("type","hidden"),c.setAttribute("name",o),c.setAttribute("value",a),i.appendChild(c)}document.body.appendChild(i),i.submit()}),register:t=>p(this,null,function*(){return window.location.assign(yield this.createRegisterUrl(t)),yield new Promise(()=>{})}),accountManagement:()=>p(this,null,function*(){let t=this.createAccountUrl();if(typeof t<"u")window.location.href=t;else throw new Error("Not supported by the OIDC server");return yield new Promise(()=>{})}),redirectUri:e}}#C(){let e=(o,a,c)=>window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(o,a,c):window.open(o,a,c),t=o=>o&&o.cordovaOptions?Object.keys(o.cordovaOptions).reduce((a,c)=>(a[c]=o.cordovaOptions[c],a),{}):{},n=o=>Object.keys(o).reduce((a,c)=>(a.push(c+"="+o[c]),a),[]).join(","),i=o=>{let a=t(o);return a.location="no",o&&o.prompt==="none"&&(a.hidden="yes"),n(a)},s=()=>this.redirectUri||"http://localhost";return{login:o=>p(this,null,function*(){let a=i(o),c=yield this.createLoginUrl(o),l=e(c,"_blank",a),d=!1,u=!1;function h(){u=!0,l.close()}return yield new Promise((g,y)=>{l.addEventListener("loadstart",S=>p(this,null,function*(){if(S.url.indexOf(s())===0){let C=this.#a(S.url);try{yield this.#c(C),g()}catch(N){y(N)}h(),d=!0}})),l.addEventListener("loaderror",S=>p(this,null,function*(){if(!d)if(S.url.indexOf(s())===0){let C=this.#a(S.url);try{yield this.#c(C),g()}catch(N){y(N)}h(),d=!0}else y(new Error("Unable to process login.")),h()})),l.addEventListener("exit",function(S){u||y(new Error("User closed the login window."))})})}),logout:o=>p(this,null,function*(){let a=this.createLogoutUrl(o),c=e(a,"_blank","location=no,hidden=yes,clearcache=yes"),l=!1;c.addEventListener("loadstart",d=>{d.url.indexOf(s())===0&&c.close()}),c.addEventListener("loaderror",d=>{d.url.indexOf(s())===0||(l=!0),c.close()}),yield new Promise((d,u)=>{c.addEventListener("exit",()=>{l?u(new Error("User closed the login window.")):(this.clearToken(),d())})})}),register:o=>p(this,null,function*(){let a=yield this.createRegisterUrl(),c=i(o),l=e(a,"_blank",c);yield new Promise((u,h)=>{l.addEventListener("loadstart",g=>p(this,null,function*(){if(g.url.indexOf(s())===0){l.close();let y=this.#a(g.url);try{yield this.#c(y),u()}catch(S){h(S)}}}))})}),accountManagement:()=>p(this,null,function*(){let o=this.createAccountUrl();if(typeof o<"u"){let a=e(o,"_blank","location=no");a.addEventListener("loadstart",function(c){c.url.indexOf(s())===0&&a.close()})}else throw new Error("Not supported by the OIDC server")}),redirectUri:()=>s()}}#E(){return{login:e=>p(this,null,function*(){let t=yield this.createLoginUrl(e);yield new Promise((n,i)=>{universalLinks.subscribe("keycloak",s=>p(this,null,function*(){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();let o=this.#a(s.url);try{yield this.#c(o),n()}catch(a){i(a)}})),window.cordova.plugins.browsertab.openUrl(t)})}),logout:e=>p(this,null,function*(){let t=this.createLogoutUrl(e);yield new Promise(n=>{universalLinks.subscribe("keycloak",()=>{universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),this.clearToken(),n()}),window.cordova.plugins.browsertab.openUrl(t)})}),register:e=>p(this,null,function*(){let t=yield this.createRegisterUrl(e);yield new Promise((n,i)=>{universalLinks.subscribe("keycloak",s=>p(this,null,function*(){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();let o=this.#a(s.url);try{yield this.#c(o),n()}catch(a){i(a)}})),window.cordova.plugins.browsertab.openUrl(t)})}),accountManagement:()=>p(this,null,function*(){let e=this.createAccountUrl();if(typeof e<"u")window.cordova.plugins.browsertab.openUrl(e);else throw new Error("Not supported by the OIDC server")}),redirectUri:e=>e&&e.redirectUri?e.redirectUri:this.redirectUri?this.redirectUri:"http://localhost"}}#N(){return p(this,null,function*(){if(typeof this.#s=="string"){let e=yield ZH(this.#s);this.authServerUrl=e["auth-server-url"],this.realm=e.realm,this.clientId=e.resource,this.#g()}else this.clientId=this.#s.clientId,"oidcProvider"in this.#s?yield this.#w(this.#s.oidcProvider):(this.authServerUrl=this.#s.url,this.realm=this.#s.realm,this.#g())})}#g(){this.endpoints={authorize:()=>this.#i()+"/protocol/openid-connect/auth",token:()=>this.#i()+"/protocol/openid-connect/token",logout:()=>this.#i()+"/protocol/openid-connect/logout",checkSessionIframe:()=>this.#i()+"/protocol/openid-connect/login-status-iframe.html",thirdPartyCookiesIframe:()=>this.#i()+"/protocol/openid-connect/3p-cookies/step1.html",register:()=>this.#i()+"/protocol/openid-connect/registrations",userinfo:()=>this.#i()+"/protocol/openid-connect/userinfo"}}#w(e){return p(this,null,function*(){if(typeof e=="string"){let t=`${QT(e)}/.well-known/openid-configuration`,n=yield eF(t);this.#y(n)}else this.#y(e)})}#y(e){this.endpoints={authorize(){return e.authorization_endpoint},token(){return e.token_endpoint},logout(){if(!e.end_session_endpoint)throw new Error("Not supported by the OIDC server");return e.end_session_endpoint},checkSessionIframe(){if(!e.check_session_iframe)throw new Error("Not supported by the OIDC server");return e.check_session_iframe},register(){throw new Error('Redirection to "Register user" page not supported in standard OIDC mode')},userinfo(){if(!e.userinfo_endpoint)throw new Error("Not supported by the OIDC server");return e.userinfo_endpoint}}}#R(){return p(this,null,function*(){if(!this.#e.enable&&!this.silentCheckSsoRedirectUri||typeof this.endpoints.thirdPartyCookiesIframe!="function")return;let e=document.createElement("iframe");e.setAttribute("src",this.endpoints.thirdPartyCookiesIframe()),e.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),e.setAttribute("title","keycloak-3p-check-iframe"),e.style.display="none",document.body.appendChild(e);let t=new Promise(n=>{let i=s=>{e.contentWindow===s.source&&(s.data!=="supported"&&s.data!=="unsupported"||(s.data==="unsupported"&&(this.#u(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means: 5 6 - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication). 7 - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab). 8 9For more information see: https://www.keycloak.org/securing-apps/javascript-adapter#_modern_browsers`),this.#e.enable=!1,this.silentCheckSsoFallback&&(this.silentCheckSsoRedirectUri=void 0)),document.body.removeChild(e),window.removeEventListener("message",i),n())
9)};window.addEventListener("message",i,!1)});return yield WH(t,this.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")})}#v(e){return p(this,null,function*(){let t=this.#a(window.location.href);if(t?.redirectUri&&window.history.replaceState(window.history.state,"",t.redirectUri),t&&t.valid){yield this.#f(),yield this.#c(t);return}let n=s=>p(this,null,function*(){let o={};s||(o.prompt="none"),e.locale&&(o.locale=e.locale),yield this.login(o)}),i=()=>p(this,null,function*(){switch(e.onLoad){case"check-sso":this.#e.enable?(yield this.#f(),(yield this.#m())||(this.silentCheckSsoRedirectUri?yield this.#x():yield n(!1))):this.silentCheckSsoRedirectUri?yield this.#x():yield n(!1);break;case"login-required":yield n(!0);break;default:throw new Error("Invalid value for onLoad")}});if(e.token&&e.refreshToken)if(this.#d(e.token,e.refreshToken,e.idToken),this.#e.enable)yield this.#f(),(yield this.#m())&&(this.onAuthSuccess?.(),this.#h());else try{yield this.updateToken(-1),this.onAuthSuccess?.()}catch(s){if(this.onAuthError?.(),e.onLoad)yield i();else throw s}else e.onLoad&&(yield i())})}#f(){return p(this,null,function*(){if(!this.#e.enable||this.#e.iframe)return;let e=document.createElement("iframe");this.#e.iframe=e,e.setAttribute("src",this.endpoints.checkSessionIframe()),e.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),e.setAttribute("title","keycloak-session-iframe"),e.style.display="none",document.body.appendChild(e);let t=i=>{if(i.origin!==this.#e.iframeOrigin||this.#e.iframe?.contentWindow!==i.source||!(i.data==="unchanged"||i.data==="changed"||i.data==="error"))return;i.data!=="unchanged"&&this.clearToken();let s=this.#e.callbackList;this.#e.callbackList=[];for(let o of s.reverse())i.data==="error"?o(new Error("Error while checking login iframe")):o(null,i.data==="unchanged")};window.addEventListener("message",t,!1),yield new Promise(i=>{e.addEventListener("load",()=>{let s=this.endpoints.authorize();s.startsWith("/")?this.#e.iframeOrigin=globalThis.location.origin:this.#e.iframeOrigin=new URL(s).origin,i()})})})}#m(){return p(this,null,function*(){if(!this.#e.iframe||!this.#e.iframeOrigin)return;let e=`${this.clientId} ${this.sessionId?this.sessionId:""}`,t=this.#e.iframeOrigin;return yield new Promise((i,s)=>{let o=(a,c)=>a?s(a):i(c);this.#e.callbackList.push(o),this.#e.callbackList.length===1&&this.#e.iframe?.contentWindow?.postMessage(e,t)})})}#x(){return p(this,null,function*(){let e=document.createElement("iframe"),t=yield this.createLoginUrl({prompt:"none",redirectUri:this.silentCheckSsoRedirectUri});return e.setAttribute("src",t),e.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),e.setAttribute("title","keycloak-silent-check-sso"),e.style.display="none",document.body.appendChild(e),yield new Promise((n,i)=>{let s=o=>p(this,null,function*(){if(o.origin!==window.location.origin||e.contentWindow!==o.source)return;let a=this.#a(o.data);try{yield this.#c(a),n()}catch(c){i(c)}document.body.removeChild(e),window.removeEventListener("message",s)});window.addEventListener("message",s)})})}#a(e){let t=this.#T(e);if(!t)return;let n=this.#l.get(t.state);return n&&(t.valid=!0,t.redirectUri=n.redirectUri,t.storedNonce=n.nonce,t.prompt=n.prompt,t.pkceCodeVerifier=n.pkceCodeVerifier,t.loginOptions=n.loginOptions),t}#T(e){let t=[];switch(this.flow){case"standard":t=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":t=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":t=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"];break}t.push("error"),t.push("error_description"),t.push("error_uri");let n=new URL(e),i="",s;if(this.responseMode==="query"&&n.searchParams.size>0?(s=this.#b(n.search,t),n.search=s.paramsString,i=n.toString()):this.responseMode==="fragment"&&n.hash.length>0&&(s=this.#b(n.hash.substring(1),t),n.hash="",i=n.toString()),s?.oauthParams){if(this.flow==="standard"||this.flow==="hybrid"){if((s.oauthParams.code||s.oauthParams.error)&&s.oauthParams.state)return s.oauthParams.redirectUri=i,s.oauthParams}else if(this.flow==="implicit"&&(s.oauthParams.access_token||s.oauthParams.error)&&s.oauthParams.state)return s.oauthParams.redirectUri=i,s.oauthParams}}#b(e,t){let n=new URLSearchParams(e),i={};for(let[s,o]of Array.from(n.entries()))t.includes(s)&&(i[s]=o,n.delete(s));return{paramsString:n.toString(),oauthParams:i}}#c(e){return p(this,null,function*(){let{code:t,error:n,prompt:i}=e,s=new Date().getTime(),o=(a,c,l)=>{if(s=(s+new Date().getTime())/2,this.#d(a,c,l,s),this.#n&&this.idTokenParsed&&this.idTokenParsed.nonce!==e.storedNonce)throw this.#o("[KEYCLOAK] Invalid nonce, clearing token"),this.clearToken(),new Error("Invalid nonce.")};if(e.kc_action_status&&this.onActionUpdate&&this.onActionUpdate(e.kc_action_status,e.kc_action),n){if(i!=="none")if(e.error_description&&e.error_description==="authentication_expired")yield this.login(e.loginOptions);else{let a={error:n,error_description:e.error_description};throw this.onAuthError?.(a),a}return}else this.flow!=="standard"&&(e.access_token||e.id_token)&&(o(e.access_token,void 0,e.id_token),this.onAuthSuccess?.());if(this.flow!=="implicit"&&t)try{let a=yield tF(this.endpoints.token(),t,this.clientId,e.redirectUri,e.pkceCodeVerifier);o(a.access_token,a.refresh_token,a.id_token),this.flow==="standard"&&this.onAuthSuccess?.(),this.#h()}catch(a){throw this.onAuthError?.(),a}})}#h(){return p(this,null,function*(){this.#e.enable&&this.token&&(yield iF(this.#e.interval*1e3),(yield this.#m())&&(yield this.#h()))})}login(e){return this.#t.login(e)}createLoginUrl(e){return p(this,null,function*(){let t=VT(),n=VT(),i=this.#t.redirectUri(e),s={state:t,nonce:n,redirectUri:i,loginOptions:e};e?.prompt&&(s.prompt=e.prompt);let o=e?.action==="register"?this.endpoints.register():this.endpoints.authorize(),a=e?.scope||this.scope,c=a?a.split(" "):[];c.includes("openid")||c.unshift("openid"),a=c.join(" ");let l=new URLSearchParams([["client_id",this.clientId],["redirect_uri",YT(i)],["state",t],["response_mode",this.responseMode],["response_type",this.responseType],["scope",a]]);if(this.#n&&l.append("nonce",n),e?.prompt&&l.append("prompt",e.prompt),typeof e?.maxAge=="number"&&l.append("max_age",e.maxAge.toString()),e?.loginHint&&l.append("login_hint",e.loginHint),e?.idpHint&&l.append("kc_idp_hint",e.idpHint),e?.action&&e.action!=="register"&&l.append("kc_action",e.action),e?.locale&&l.append("ui_locales",e.locale),e?.acr&&l.append("claims",FH(e.acr)),e?.acrValues&&l.append("acr_values",e.acrValues),this.pkceMethod)try{let d=$H(96),u=yield jH(this.pkceMethod,d);s.pkceCodeVerifier=d,l.append("code_challenge",u),l.append("code_challenge_method",this.pkceMethod)}catch(d){throw new Error("Failed to generate PKCE challenge.",{cause:d})}return this.#l.add(s),`${o}?${l.toString()}`})}logout(e){return this.#t.logout(e)}createLogoutUrl(e){let t=e?.logoutMethod??this.logoutMethod,n=this.endpoints.logout();if(t==="POST")return n;let i=new URLSearchParams([["client_id",this.clientId],["post_logout_redirect_uri",this.#t.redirectUri(e)]]);return this.idToken&&i.append("id_token_hint",this.idToken),`${n}?${i.toString()}`}register(e){return this.#t.register(e)}createRegisterUrl(e){return this.createLoginUrl(E(x({},e),{action:"register"}))}createAccountUrl(e){let t=this.#i();if(!t)throw new Error("Unable to create account URL, make sure the adapter is not configured using a generic OIDC provider.");let n=new URLSearchParams([["referrer",this.clientId],["referrer_uri",this.#t.redirectUri(e)]]);return`${t}/account?${n.toString()}`}accountManagement(){return this.#t.accountManagement()}
9hasRealmRole(e){let t=this.realmAccess;return!!t&&t.roles.indexOf(e)>=0}hasResourceRole(e,t){if(!this.resourceAccess)return!1;let n=this.resourceAccess[t||this.clientId];return!!n&&n.roles.indexOf(e)>=0}loadUserProfile(){return p(this,null,function*(){let e=this.#i();if(!e)throw new Error("Unable to load user profile, make sure the adapter is not configured using a generic OIDC provider.");let t=`${e}/account`,n=yield va(t,{headers:[XT(this.token)]});return this.profile=n})}loadUserInfo(){return p(this,null,function*(){let e=this.endpoints.userinfo(),t=yield va(e,{headers:[XT(this.token)]});return this.userInfo=t})}isTokenExpired(e){if(!this.tokenParsed||!this.refreshToken&&this.flow!=="implicit")throw new Error("Not authenticated");if(this.timeSkew==null)return this.#o("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;if(typeof this.tokenParsed.exp!="number")return!1;let t=this.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+this.timeSkew;if(e){if(isNaN(e))throw new Error("Invalid minValidity");t-=e}return t<0}updateToken(e){return p(this,null,function*(){if(!this.refreshToken)throw new Error("Unable to update token, no refresh token available.");e=e||5,this.#e.enable&&(yield this.#m());let t=!1;if(e===-1?(t=!0,this.#o("[KEYCLOAK] Refreshing token: forced refresh")):(!this.tokenParsed||this.isTokenExpired(e))&&(t=!0,this.#o("[KEYCLOAK] Refreshing token: token expired")),!t)return!1;let{promise:n,resolve:i,reject:s}=Promise.withResolvers();if(this.#r.push({resolve:i,reject:s}),this.#r.length===1){let o=this.endpoints.token(),a=new Date().getTime();try{let c=yield rF(o,this.refreshToken,this.clientId);this.#o("[KEYCLOAK] Token refreshed"),a=(a+new Date().getTime())/2,this.#d(c.access_token,c.refresh_token,c.id_token,a),this.onAuthRefreshSuccess?.();for(let l=this.#r.pop();l!=null;l=this.#r.pop())l.resolve(!0)}catch(c){this.#u("[KEYCLOAK] Failed to refresh token"),c instanceof ou&&c.response.status===400&&this.clearToken(),this.onAuthRefreshError?.();for(let l=this.#r.pop();l!=null;l=this.#r.pop())l.reject(c)}}return yield n})}clearToken(){this.token&&(this.#d(),this.onAuthLogout?.(),this.loginRequired&&this.login())}#d(e,t,n,i){if(this.tokenTimeoutHandle&&(clearTimeout(this.tokenTimeoutHandle),this.tokenTimeoutHandle=void 0),t?(this.refreshToken=t,this.refreshTokenParsed=Jy(t)):(delete this.refreshToken,delete this.refreshTokenParsed),n?(this.idToken=n,this.idTokenParsed=Jy(n)):(delete this.idToken,delete this.idTokenParsed),e){if(this.token=e,this.tokenParsed=Jy(e),this.sessionId=this.tokenParsed.sid,this.authenticated=!0,this.subject=this.tokenParsed.sub,this.realmAccess=this.tokenParsed.realm_access,this.resourceAccess=this.tokenParsed.resource_access,i&&(this.timeSkew=Math.floor(i/1e3)-this.tokenParsed.iat),this.timeSkew!==null&&(this.#o("[KEYCLOAK] Estimated time difference between browser and server is "+this.timeSkew+" seconds"),this.onTokenExpired)){let s=(this.tokenParsed.exp-new Date().getTime()/1e3+this.timeSkew)*1e3;this.#o("[KEYCLOAK] Token expires in "+Math.round(s/1e3)+" s"),s<=0?this.onTokenExpired():this.tokenTimeoutHandle=window.setTimeout(this.onTokenExpired,s)}}else delete this.token,delete this.tokenParsed,delete this.subject,delete this.realmAccess,delete this.resourceAccess,this.authenticated=!1}#i(){if(!(typeof this.authServerUrl>"u"))return`${QT(this.authServerUrl)}/realms/${encodeURIComponent(this.realm)}`}#S(e){return t=>{this.enableLogging&&e.call(console,t)}}};function VT(){if(typeof crypto>"u"||typeof crypto.randomUUID>"u")throw new Error("Web Crypto API is not available.");return crypto.randomUUID()}function FH(r){return JSON.stringify({id_token:{acr:r}})}function $H(r){return GH(r,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function jH(r,e){return p(this,null,function*(){if(r!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${r}'.`);let t=new Uint8Array(yield QH(e));return XH(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")})}function GH(r,e){let t=KH(r),n=new Array(r);for(let i=0;i<r;i++)n[i]=e.charCodeAt(t[i]%e.length);return String.fromCharCode.apply(null,n)}function KH(r){if(typeof crypto>"u"||typeof crypto.getRandomValues>"u")throw new Error("Web Crypto API is not available.");return crypto.getRandomValues(new Uint8Array(r))}function WH(r,e,t){let n,i=new Promise(function(s,o){n=window.setTimeout(function(){o(new Error(t||"Promise is not settled within timeout of "+e+"ms"))},e)});return Promise.race([r,i]).finally(function(){clearTimeout(n)})}function VH(){try{return new Zy}catch{return new ex}}var Ra="kc-callback-",Zy=class{constructor(){globalThis.localStorage.setItem("kc-test","test"),globalThis.localStorage.removeItem("kc-test")}get(e){if(!e)return null;this.#r();let t=Ra+e,n=globalThis.localStorage.getItem(t);return n?(globalThis.localStorage.removeItem(t),JSON.parse(n)):null}add(e){this.#r();let t=Ra+e.state,n=JSON.stringify(E(x({},e),{expires:Date.now()+60*60*1e3}));try{globalThis.localStorage.setItem(t,n)}catch{this.#t(),globalThis.localStorage.setItem(t,n)}}#r(){let e=Date.now();for(let[t,n]of this.#n()){let i=this.#l(n);(i===null||i<e)&&globalThis.localStorage.removeItem(t)}}#t(){for(let[e]of this.#n())globalThis.localStorage.removeItem(e)}#n(){return Object.entries(globalThis.localStorage).filter(([e])=>e.startsWith(Ra))}#l(e){let t;try{t=JSON.parse(e)}catch{return null}return tx(t)&&"expires"in t&&typeof t.expires=="number"?t.expires:null}},ex=class{get(e){if(!e)return null;let t=this.#r(Ra+e);return this.#t(Ra+e,"",this.#n(-100)),t?JSON.parse(t):null}add(e){this.#t(Ra+e.state,JSON.stringify(e),this.#n(60))}#r(e){let t=e+"=",n=document.cookie.split(";");for(let i=0;i<n.length;i++){let s=n[i];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(t)===0)return s.substring(t.length,s.length)}return""}#t(e,t,n){let i=e+"="+t+"; expires="+n.toUTCString()+"; ";document.cookie=i}#n(e){let t=new Date;return t.setTime(t.getTime()+e*60*1e3),t}};function XH(r){let e=String.fromCodePoint(...r);return btoa(e)}function QH(r){return p(this,null,function*(){let t=new TextEncoder().encode(r);if(typeof crypto>"u"||typeof crypto.subtle>"u")throw new Error("Web Crypto API is not available.");return yield crypto.subtle.digest("SHA-256",t)})}function Jy(r){let[,e]=r.split(".");if(typeof e!="string")throw new Error("Unable to decode token, payload not found.");let t;try{t=YH(e)}catch(n){throw new Error("Unable to decode token, payload is not a valid Base64URL value.",{cause:n})}try{return JSON.parse(t)}catch(n){throw new Error("Unable to decode token, payload is not a valid JSON value.",{cause:n})}}function YH(r){let e=r.replaceAll("-","+").replaceAll("_","/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("Input is not of the correct length.")}try{return JH(e)}catch{return atob(e)}}function JH(r){return decodeURIComponent(atob(r).replace(/(.)/g,(e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function tx(r){return typeof r=="object"&&r!==null}function ZH(r){return p(this,null,function*(){return yield va(r)})}function eF(r){return p(this,null,function*(){return yield va(r)})}function tF(r,e,t,n,i){return p(this,null,function*(){let s=new URLSearchParams([["code",e],["grant_type","authorization_code"],["client_id",t],["redirect_uri",YT(n)]]);return i&&s.append("code_verifier",i),yield va(r,{method:"POST",credentials:"include",body:s})})}function rF(r,e,t){return p(this,null,function*(){let n=new URLSearchParams([["grant_type","refresh_token"],["refresh_token",e],["client_id",t]]);return yield va(r,{method:"POST",credentials:"include",body:n})})}function va(t){return p(this,arguments,function*(r,e={}){let n=new Headers(e.headers);return n.set("Accept",HH),yield(yield nF(r,E(x({},e),{headers:n}))).json()})}function nF(r,e){return p(this,null,function*(){let t=yield fetch(r,e);
9if(!t.ok)throw new ou("Server responded with an invalid status.",{response:t});return t})}function XT(r){if(!r)throw new Error("Unable to build authorization header, token is not set, make sure the user is authenticated.");return["Authorization",`bearer ${r}`]}function QT(r){return r.endsWith("/")?r.slice(0,-1):r}function YT(r){let e=new URL(r);return e.hash="",e.toString()}var ou=class extends Error{response;constructor(e,t){super(e,t),this.response=t.response}},iF=r=>new Promise(e=>setTimeout(e,r));var au=class extends HR{},ox=(()=>{class r extends qR{constructor(){super(...arguments),this.factory=Vt(au),this.identifier="KeycloakConfig"}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Es(r)))(i||r)}})()}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})(),sF=(()=>{class r{constructor(t){this.environmentService=t,this.config$=ot(this.environmentService.configByKey("keycloak"))}create$(){return this.config$}static{this.\u0275fac=function(n){return new(n||r)(ee(Hi))}}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac})}}return r})(),rx=class r extends su{constructor(e){super(e),this.isInitialised=!1}init(e){return p(this,null,function*(){let t=yield Tn(r.prototype,this,"init").call(this,e);return this.isInitialised=!0,t})}updateToken(e){return p(this,null,function*(){if(e===-1&&!this.isInitialised)return Promise.resolve(!1);let t=this.idToken,n=this.idTokenParsed,i=yield Tn(r.prototype,this,"updateToken").call(this,e);return t&&n&&(this.idToken??=t,this.idTokenParsed??=n),i})}logout(e,t){return p(this,null,function*(){if(!t)return Tn(r.prototype,this,"logout").call(this,e);let n=this.createLogoutUrlForImpersonation(e);if(yield fetch(n,{mode:"no-cors"}),e?.redirectUri)return WR(e.redirectUri);location.reload()})}override(e,t,n,i){this.useNewTokens(e,t,n),i&&(this.scope=i)}createLogoutUrlForImpersonation(e){let t=new URL(this.createLogoutUrl(e));return t.searchParams.delete("client_id"),t.toString()}useNewTokens(e,t,n){if(this.assertTokensDefined(e,t,n),this.tokenTimeoutHandle&&(clearTimeout(this.tokenTimeoutHandle),this.tokenTimeoutHandle=null),this.refreshToken=t,this.refreshTokenParsed=vd(t),this.idToken=n,this.idTokenParsed=vd(n),this.token=e,this.tokenParsed=vd(e),this.sessionId=this.tokenParsed.session_state,this.authenticated=!0,this.subject=this.tokenParsed.sub,this.realmAccess=this.tokenParsed.realm_access,this.resourceAccess=this.tokenParsed.resource_access,this.timeSkew!=null&&this.onTokenExpired){let i=(this.tokenParsed.exp-Date.now()/1e3+this.timeSkew)*1e3;i<=0?this.onTokenExpired():this.tokenTimeoutHandle=setTimeout(this.onTokenExpired.bind(this),i)}}assertTokensDefined(e,t,n){switch(!1){case!!e:throw new Error(`Cannot override with invalid access token '${e}'.`);case!!t:throw new Error(`Cannot override with invalid refresh token '${t}'.`);case!!n:throw new Error(`Cannot override with invalid id token '${n}'.`)}}},oF=r=>Object.keys(r.resource_access).map(e=>({resource:e,roles:r.resource_access[e].roles})).sort((e,t)=>e.resource.localeCompare(t.resource)),nx=class{constructor(e){this.userGroups=e,this.stack=[...this.userGroups]}*[Symbol.iterator](){for(;this.stack.length>0;){let e=this.stack.pop(),t=e.children;t?.length&&this.stack.push(...t),yield e}}},e_=r=>new nx(r),aF="",cF="/",lF=(r,e=cF)=>{let t=[],n=JT(r,null);for(;n.length>0;){let{id:i,group:s,parent:o}=n.pop(),a=s.n,c=s.tenant,l=s.gt,d=o?.fullGroupTreeName||aF,u={id:i,name:a,parent:o,fullGroupTreeName:d+e+a,children:null};c&&(u.isTenant=!0),o?(o.children=uF(o.children),o.children.push(u)):t.push(u),l&&n.push(...JT(l,u))}return mF(t)},mF=r=>{if(!r)return null;for(let e of e_(r))dF(e);return r},dF=r=>{let e=r.parent;if(!e)return;let i=e,{children:t}=i,n=an(i,["children"]);r.parent=n},JT=(r,e)=>Object.entries(r).map(([t,n])=>({id:t,group:n,parent:e})),uF=r=>r||[],t_=r=>{let e=r.gt;return lF(e)},ZT="Tenants",pF=r=>{let e=t_(r),t=e.filter(a=>a.name!==ZT),n=e.find(a=>a.name===ZT)||null;if(!n)return{other:t,tenant:n};let i=Array.from(e_([n])),s=i.find(a=>a.isTenant);if(s)return{other:t,tenant:s};let o=i.find(a=>!a.children?.length)||null;return{other:t,tenant:o}},fF=r=>{let{tenant:e,other:t}=pF(r);return{username:ws(r.preferred_username,!0),email:ws(r.email)||void 0,emailVerified:GR(r.email_verified,!0),userId:ws(r.sub,!0),tokenAuthTime:_d(r.auth_time)||void 0,tokenIssueTime:_d(r.iat,!0),tokenExpTime:_d(r.exp,!0),rolesPerResource:oF(r),name:ws(r.name)||void 0,firstName:ws(r.given_name)||void 0,lastName:ws(r.family_name)||void 0,locale:ws(r.locale)||void 0,groupNames:KR(r.groups),rootGroups:t_(r),tenant:e,nonTenantRootGroups:t}},hF=(()=>
9{class r{constructor(t,n){this.baseLocationService=t,this.keycloakConfigProvider=n}create$(){return this.keycloakConfigProvider.provide$().pipe(ue(t=>new ix(this.baseLocationService,t,new rx(t))))}static{this.\u0275fac=function(n){return new(n||r)(ee(Id),ee(ox))}}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac})}}return r})(),ix=class{constructor(e,t,n){this.baseLocationService=e,this.keycloakConfig=t,this.keycloak=n}init$(e,t,n,i){let s=e?"login-required":t?void 0:"check-sso";return Qn(this.keycloak.init({onLoad:s,checkLoginIframe:!1,redirectUri:n,pkceMethod:"S256",token:t?.accessToken,refreshToken:t?.refreshToken,idToken:t?.idToken,enableLogging:i})).pipe(ue(o=>!o&&!t?null:(t&&this.override(t),this.getCurrentUserMeta())))}refreshAccessToken$(e){return Qn(this.keycloak.updateToken(e?-1:this.keycloakConfig.minValidityTime)).pipe(ue(t=>{if(t)return{type:Od.Completed,meta:this.getCurrentUserMeta()};let n=jR(this.keycloak.tokenParsed,this.getTimeSkewMs());return{type:Od.Unnecessary,expiresInMs:n.remainingMs}}),ha(t=>ot({type:Od.Error,error:t})))}override({accessToken:e,refreshToken:t,idToken:n,scope:i}){return this.keycloak.override(e,t,n,i||void 0),this.getCurrentUserMeta()}register$(e){return cn(()=>(this.addCurrentLocationToHistoryForBack(),Qn(this.keycloak.register({redirectUri:e}))))}login$(e){return cn(()=>(this.addCurrentLocationToHistoryForBack(),Qn(this.keycloak.login({redirectUri:e}))))}logout$(e,t){return cn(()=>(this.addCurrentLocationToHistoryForBack(),Qn(this.keycloak.logout({redirectUri:e||this.baseLocationService.get()},t))))}getUserMetaSync(){return!this.keycloak.token||!this.keycloak.refreshToken||!this.keycloak.idToken?null:this.getCurrentUserMeta(!1)}clear(){this.keycloak.clearToken()}getCurrentUserMeta(e=!0){if(!this.keycloak.token||!this.keycloak.refreshToken||!this.keycloak.idToken){if(e)throw new Error("Keycloak missing token data.");return null}return{tokens:{accessToken:this.keycloak.token,refreshToken:this.keycloak.refreshToken,idToken:this.keycloak.idToken},user:fF(this.keycloak.tokenParsed),timeSkew:this.getTimeSkewMs()}}getTimeSkewMs(){return oo(this.keycloak.timeSkew)?iu(this.keycloak.timeSkew):void 0}addCurrentLocationToHistoryForBack(){history.pushState(null,"")}},r_=(()=>{class r{static forRoot(t){let n=[{provide:yv,useClass:hF},{provide:au,useClass:sF}];return t?.configFactory&&n.push(t.configFactory),{ngModule:r,providers:n}}static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275mod=hr({type:r})}static{this.\u0275inj=fr({})}}return r})();var Fi=class extends Error{constructor(e){super(e),this.name="AbortError"}};function ax(...r){if(r.length>0){let e=String(r[0]);e.includes(":error")?console.error(...r):e.includes(":warning")?console.warn(...r):e.includes(":info")?console.info(...r):e.includes(":verbose")?console.debug(...r):console.debug(...r)}}var n_=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,s_,cx=[],lx=[],cu=[];n_&&mx(n_);var o_=Object.assign(r=>a_(r),{enable:mx,enabled:dx,disable:yF,log:ax});function mx(r){s_=r,cx=[],lx=[];let e=r.split(",").map(t=>t.trim());for(let t of e)t.startsWith("-")?lx.push(t.substring(1)):cx.push(t);for(let t of cu)t.enabled=dx(t.namespace)}function dx(r){if(r.endsWith("*"))return!0;for(let e of lx)if(i_(r,e))return!1;for(let e of cx)if(i_(r,e))return!0;return!1}function i_(r,e){if(e.indexOf("*")===-1)return r===e;let t=e;if(e.indexOf("**")!==-1){let h=[],g="";for(let y of e)y==="*"&&g==="*"||(g=y,h.push(y));t=h.join("")}let n=0,i=0,s=t.length,o=r.length,a=-1,c=-1;for(;n<o&&i<s;)if(t[i]==="*"){if(a=i,i++,i===s)return!0;for(;r[n]!==t[i];)if(n++,n===o)return!1;c=n,n++,i++;continue}else if(t[i]===r[n])i++,n++;else if(a>=0){if(i=a+1,n=c+1,n===o)return!1;for(;r[n]!==t[i];)if(n++,n===o)return!1;c=n,n++,i++;continue}else return!1;let l=n===r.length,d=i===t.length,u=i===t.length-1&&t[i]==="*";return l&&(d||u)}function yF(){let r=s_||"";return mx(""),r}function a_(r){let e=Object.assign(t,{enabled:dx(r),destroy:xF,log:o_.log,namespace:r,extend:bF});function t(...n){e.enabled&&(n.length>0&&(n[0]=`${r} ${n[0]}`),e.log(...n))}return cu.push(e),e}function xF(){let r=cu.indexOf(this);return r>=0?(cu.splice(r,1),!0):!1}function bF(r){let e=a_(`${this.namespace}:${r}`);return e.log=this.log,e}var Ta=o_;var ux=["verbose","info","warning","error"],c_={verbose:400,info:300,warning:200,error:100};function l_(r,e){e.log=(...t)=>{r.log(...t)}}function m_(r){return ux.includes(r)}function lu(r){let e=new Set,t=typeof process<"u"&&process.env&&process.env[r.logLevelEnvVarName]||void 0,n,i=Ta(r.namespace);i.log=(...d)=>{Ta.log(...d)};function s(d){if(d&&!m_(d))throw new Error(`Unknown log level '${d}'. Acceptable values: ${ux.join(",")}`);n=d;let u=[];for(let h of e)o(h)&&u.push(h.namespace);Ta.enable(u.join(","))}t&&(m_(t)?s(t):console.error(`${r.logLevelEnvVarName} set to unknown log level '${t}'; logging is not enabled. Acceptable values: ${ux.join(", ")}.`));function o(d){return!!(n&&c_[d.level]<=c_[n])}function a(d,u){let h=Object.assign(d.extend(u),{level:u});
9if(l_(d,h),o(h)){let g=Ta.disable();Ta.enable(g+","+h.namespace)}return e.add(h),h}function c(){return n}function l(d){let u=i.extend(d);return l_(i,u),{error:a(u,"error"),warning:a(u,"warning"),info:a(u,"info"),verbose:a(u,"verbose")}}return{setLogLevel:s,getLogLevel:c,createClientLogger:l,logger:i}}var d_=lu({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),SF=d_.logger;function fl(r){return d_.createClientLogger(r)}function mu(r){return r.toLowerCase()}function*PF(r){for(let e of r.values())yield[e.name,e.value]}var px=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let t of Object.keys(e))this.set(t,e[t])}set(e,t){this._headersMap.set(mu(e),{name:e,value:String(t).trim()})}get(e){return this._headersMap.get(mu(e))?.value}has(e){return this._headersMap.has(mu(e))}delete(e){this._headersMap.delete(mu(e))}toJSON(e={}){let t={};if(e.preserveCase)for(let n of this._headersMap.values())t[n.name]=n.value;else for(let[n,i]of this._headersMap)t[n]=i.value;return t}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return PF(this._headersMap)}};function Vr(r){return new px(r)}function u_(){let r="";for(let e=0;e<32;e++){let t=Math.floor(Math.random()*16);e===12?r+="4":e===16?r+=t&3|8:r+=t.toString(16),(e===7||e===11||e===15||e===19)&&(r+="-")}return r}var CF=typeof globalThis?.crypto?.randomUUID=="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):u_;function go(){return CF()}var fx=class{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url,this.body=e.body,this.headers=e.headers??Vr(),this.method=e.method??"GET",this.timeout=e.timeout??0,this.multipartBody=e.multipartBody,this.formData=e.formData,this.disableKeepAlive=e.disableKeepAlive??!1,this.proxySettings=e.proxySettings,this.streamResponseStatusCodes=e.streamResponseStatusCodes,this.withCredentials=e.withCredentials??!1,this.abortSignal=e.abortSignal,this.onUploadProgress=e.onUploadProgress,this.onDownloadProgress=e.onDownloadProgress,this.requestId=e.requestId||go(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function du(r){return new fx(r)}var p_=new Set(["Deserialize","Serialize","Retry","Sign"]),hx=class r{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[],this._orderedPolicies=void 0}addPolicy(e,t={}){if(t.phase&&t.afterPhase)throw new Error("Policies inside a phase cannot specify afterPhase.");if(t.phase&&!p_.has(t.phase))throw new Error(`Invalid phase name: ${t.phase}`);if(t.afterPhase&&!p_.has(t.afterPhase))throw new Error(`Invalid afterPhase name: ${t.afterPhase}`);this._policies.push({policy:e,options:t}),this._orderedPolicies=void 0}removePolicy(e){let t=[];return this._policies=this._policies.filter(n=>
9e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase?(t.push(n.policy),!1):!0),this._orderedPolicies=void 0,t}sendRequest(e,t){return this.getOrderedPolicies().reduceRight((s,o)=>a=>o.sendRequest(a,s),s=>e.sendRequest(s))(t)}getOrderedPolicies(){return this._orderedPolicies||(this._orderedPolicies=this.orderPolicies()),this._orderedPolicies}clone(){return new r(this._policies)}static create(){return new r}orderPolicies(){let e=[],t=new Map;function n(y){return{name:y,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}let i=n("Serialize"),s=n("None"),o=n("Deserialize"),a=n("Retry"),c=n("Sign"),l=[i,s,o,a,c];function d(y){return y==="Retry"?a:y==="Serialize"?i:y==="Deserialize"?o:y==="Sign"?c:s}for(let y of this._policies){let S=y.policy,C=y.options,N=S.name;if(t.has(N))throw new Error("Duplicate policy names not allowed in pipeline");let T={policy:S,dependsOn:new Set,dependants:new Set};C.afterPhase&&(T.afterPhase=d(C.afterPhase),T.afterPhase.hasAfterPolicies=!0),t.set(N,T),d(C.phase).policies.add(T)}for(let y of this._policies){let{policy:S,options:C}=y,N=S.name,T=t.get(N);if(!T)throw new Error(`Missing node for policy ${N}`);if(C.afterPolicies)for(let I of C.afterPolicies){let k=t.get(I);k&&(T.dependsOn.add(k),k.dependants.add(T))}if(C.beforePolicies)for(let I of C.beforePolicies){let k=t.get(I);k&&(k.dependsOn.add(T),T.dependants.add(k))}}function u(y){y.hasRun=!0;for(let S of y.policies)if(!(S.afterPhase&&(!S.afterPhase.hasRun||S.afterPhase.policies.size))&&S.dependsOn.size===0){e.push(S.policy);for(let C of S.dependants)C.dependsOn.delete(S);t.delete(S.policy.name),y.policies.delete(S)}}function h(){for(let y of l){if(u(y),y.policies.size>0&&y!==s){s.hasRun||u(s);return}y.hasAfterPolicies&&u(s)}}let g=0;for(;t.size>0;){g++;let y=e.length;if(h(),e.length<=y&&g>1)throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}return e}};function uu(){return hx.create()}function _a(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof RegExp)&&!(r instanceof Date)}function yo(r){if(_a(r)){let e=typeof r.name=="string",t=typeof r.message=="string";return e&&t}return!1}var f_=Symbol();var gx="REDACTED",EF=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"],NF=["api-version"],$i=class{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=EF.concat(e),t=NF.concat(t),this.allowedHeaderNames=new Set(e.map(n=>n.toLowerCase())),this.allowedQueryParameters=new Set(t.map(n=>n.toLowerCase()))}sanitize(e){let t=new Set;return JSON.stringify(e,(n,i)=>{if(i instanceof Error)return E(x({},i),{name:i.name,message:i.message});if(n==="headers")return this.sanitizeHeaders(i);if(n==="url")return this.sanitizeUrl(i);if(n==="query")return this.sanitizeQuery(i);if(n==="body")return;if(n==="response")return;if(n==="operationSpec")return;if(Array.isArray(i)||_a(i)){if(t.has(i))return"[Circular]";t.add(i)}return i},2)}sanitizeUrl(e){if(typeof e!="string"||e===null||e==="")return e;let t=new URL(e);if(!t.search)return e;for(let[n]of t.searchParams)this.allowedQueryParameters.has(n.toLowerCase())||t.searchParams.set(n,gx);return t.toString()}sanitizeHeaders(e){let t={};for(let n of Object.keys(e))this.allowedHeaderNames.has(n.toLowerCase())?t[n]=e[n]:t[n]=gx;return t}sanitizeQuery(e){if(typeof e!="object"||e===null)return e;let t={};for(let n of Object.keys(e))this.allowedQueryParameters.has(n.toLowerCase())?t[n]=e[n]:t[n]=gx;return t}};var wF=new $i,ri=(()=>
9{class r extends Error{static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(t,n={}){super(t),this.name="RestError",this.code=n.code,this.statusCode=n.statusCode,Object.defineProperty(this,"request",{value:n.request,enumerable:!1}),Object.defineProperty(this,"response",{value:n.response,enumerable:!1});let i=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:void 0;Object.defineProperty(this,f_,{value:()=>`RestError: ${this.message} 10 ${wF.sanitize(E(x({},this),{request:E(x({},this.request),{agent:i}),response:this.response}))}`,enumerable:!1}),Object.setPrototypeOf(this,r.prototype)}}return r})();function pu(r){return r instanceof ri?!0:yo(r)&&r.name==="RestError"}function yr(r,e){switch(e){case"utf-8":return RF(r);case"base64":return g_(r);case"base64url":return vF(r);case"hex":return TF(r)}}function RF(r){return new TextEncoder().encode(r)}function g_(r){return new Uint8Array([...atob(r)].map(e=>e.charCodeAt(0)))}function vF(r){let e=r.replace(/-/g,"+").replace(/_/g,"/");return g_(e)}var h_=new Set("0123456789abcdefABCDEF");function TF(r){let e=new Uint8Array(r.length/2);for(let t=0;t<r.length/2;++t){let n=r[2*t],i=r[2*t+1];if(!h_.has(n)||!h_.has(i))return e.slice(0,t);e[t]=parseInt(`${n}${i}`,16)}return e}function y_(r){return!!(r&&typeof r.pipe=="function")}function hl(r){return!!(r&&typeof r.getReader=="function"&&typeof r.tee=="function")}function x_(r){return typeof r.stream=="function"}function b_(r){if(r.buffer instanceof ArrayBuffer&&r.byteOffset===0&&r.byteLength===r.buffer.byteLength)return r.buffer;let e=new ArrayBuffer(r.byteLength),t=new Uint8Array(e),n=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);return t.set(n),t.buffer}function _F(r){return(typeof Blob=="function"||typeof Blob=="object")&&r instanceof Blob}var yx=class{sendRequest(e){return p(this,null,function*(){if(new URL(e.url).protocol!=="https:"&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);if(e.proxySettings)throw new Error("HTTP proxy is not supported in browser environment");try{return yield AF(e)}catch(i){throw BF(i,e)}})}};function AF(r){return p(this,null,function*(){let{abortController:e,abortControllerCleanup:t}=MF(r);try{let n=kF(r.headers),{streaming:i,body:s}=DF(r),o=x(x({body:s,method:r.method,headers:n,signal:e.signal},"credentials"in Request.prototype?{credentials:r.withCredentials?"include":"same-origin"}:{}),"cache"in Request.prototype?{cache:"no-store"}:{});i&&(o.duplex="half");let a=yield fetch(r.url,x(x({},o),r.requestOverrides));return _F(r.body)&&r.onUploadProgress&&r.onUploadProgress({loadedBytes:r.body.size}),IF(a,r,t)}catch(n){throw t?.(),n}})}function IF(r,e,t){return p(this,null,function*(){let n=OF(r),i={request:e,headers:n,status:r.status},s=hl(r.body)?S_(r.body,{onProgress:e.onDownloadProgress,onEnd:t}):r.body;if(e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(i.status))if(e.enableBrowserStreams)i.browserStreamBody=s??void 0;else{let o=new Response(s);i.blobBody=o.blob(),t?.()}else{let o=new Response(s);i.bodyAsText=yield o.text(),t?.()}return i})}function MF(r){let e=new AbortController,t,n;if(r.abortSignal){if(r.abortSignal.aborted)throw new Fi("The operation was aborted. Request has already been canceled.");n=i=>{i.type==="abort"&&e.abort()},r.abortSignal.addEventListener("abort",n),t=()=>{n&&r.abortSignal?.removeEventListener("abort",n)}}return r.timeout>0&&setTimeout(()=>{e.abort()},r.timeout),{abortController:e,abortControllerCleanup:t}}function BF(r,e){return r&&r?.name==="AbortError"?r:new ri(`Error sending request: ${r.message}`,{code:r?.code??ri.REQUEST_SEND_ERROR,request:e})}function kF(r){let e=new Headers;for(let[t,n]of r)e.append(t,n);return e}function OF(r){let e=Vr();for(let[t,n]of r.headers)e.set(t,n);return e}function DF(r){let e=typeof r.body=="function"?r.body():r.body;if(y_(e))throw new Error("Node streams are not supported in browser environment.");return hl(e)?{streaming:!0,body:S_(e,{onProgress:r.onUploadProgress})}:typeof e=="object"&&e&&"buffer"in e?{streaming:!1,body:b_(e)}:e===void 0?{streaming:!1}:{streaming:!1,body:e}}function S_(r,e={}){let t=0,{onProgress:n,onEnd:i}=e;if(LF(r))return r.pipeThrough(new TransformStream({transform(s,o){if(s===null){o.terminate();return}o.enqueue(s),t+=s.length,n&&n({loadedBytes:t})},flush(){i?.()}}));{let o,s=r.getReader();return new ReadableStream({pull(a){return p(this,null,function*(){let{done:c,value:l}=yield s.read();if(c||!l){i?.(),a.close(),s.releaseLock();return}t+=l?.length??0,a.enqueue(l),n&&n({loadedBytes:t})})},cancel(a){return i?.(),s.cancel(a)}})}}function P_(){return new yx}function LF(r){return r.pipeThrough!==void 0&&self.TransformStream!==void 0}function fu(){return P_()}var xx=fl("ts-http-runtime");var bx="logPolicy";function hu(r={}){let e=r.logger??xx.info,t=new $i({additionalAllowedHeaderNames:r.additionalAllowedHeaderNames,additionalAllowedQueryParameters:r.additionalAllowedQueryParameters});return{name:bx,sendRequest(i,s){return p(this,null,function*(){if(!e.enabled)return s(i);e(`Request: ${t.sanitize(i)}`);let o=yield s(i);return e(`Response status code: ${o.status}`),e(`Headers: ${t.sanitize(o.headers)}`),o})}}}var gu="redirectPolicy",C_=["GET","HEAD"];function yu(r={}){let{maxRetries:e=20}=r;return{name:gu,sendRequest(n,i){return p(this,null,function*(){let s=yield i(n);return E_(i,s,e)})}}}function E_(r,e,t,n=0){return p(this,null,function*(){let{request:i,status:s,headers:o}=e,a=o.get("location");
10if(a&&(s===300||s===301&&C_.includes(i.method)||s===302&&C_.includes(i.method)||s===303&&i.method==="POST"||s===307)&&n<t){let c=new URL(a,i.url);i.url=c.toString(),s===303&&(i.method="GET",i.headers.delete("Content-Length"),delete i.body),i.headers.delete("Authorization");let l=yield r(i);return E_(r,l,t,n+1)}return e})}function N_(){return"x-ms-useragent"}function w_(){return N_()}var Zue=w_();var Sx="decompressResponsePolicy";function xu(){throw new Error("decompressResponsePolicy is not supported in browser environment")}function gl(r,e){return r=Math.ceil(r),e=Math.floor(e),Math.floor(Math.random()*(e-r+1))+r}function bu(r,e){let t=e.retryDelayInMs*Math.pow(2,r),n=Math.min(e.maxRetryDelayInMs,t);return{retryAfterInMs:n/2+gl(0,n/2)}}var zF="The operation was aborted.";function R_(r,e,t){return new Promise((n,i)=>{let s,o,a=()=>i(new Fi(t?.abortErrorMsg?t?.abortErrorMsg:zF)),c=()=>{t?.abortSignal&&o&&t.abortSignal.removeEventListener("abort",o)};if(o=()=>(s&&clearTimeout(s),c(),a()),t?.abortSignal&&t.abortSignal.aborted)return a();s=setTimeout(()=>{c(),n(e)},r),t?.abortSignal&&t.abortSignal.addEventListener("abort",o)})}function v_(r,e){let t=r.headers.get(e);if(!t)return;let n=Number(t);if(!Number.isNaN(n))return n}var Px="Retry-After",UF=["retry-after-ms","x-ms-retry-after-ms",Px];function T_(r){if(r&&[429,503].includes(r.status))try{for(let i of UF){let s=v_(r,i);if(s===0||s)return s*(i===Px?1e3:1)}let e=r.headers.get(Px);if(!e)return;let n=Date.parse(e)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}function __(r){return Number.isFinite(T_(r))}function Cx(){return{name:"throttlingRetryStrategy",retry({response:r}){let e=T_(r);return Number.isFinite(e)?{retryAfterInMs:e}:{skipStrategy:!0}}}}var qF=1e3,HF=1e3*64;function Su(r={}){let e=r.retryDelayInMs??qF,t=r.maxRetryDelayInMs??HF;return{name:"exponentialRetryStrategy",retry({retryCount:n,response:i,responseError:s}){let o=$F(s),a=o&&r.ignoreSystemErrors,c=FF(i),l=c&&r.ignoreHttpStatusCodes;return i&&(__(i)||!c)||l||a?{skipStrategy:!0}:s&&!o&&!c?{errorToThrow:s}:bu(n,{retryDelayInMs:e,maxRetryDelayInMs:t})}}}function FF(r){return!!(r&&r.status!==void 0&&(r.status>=500||r.status===408)&&r.status!==501&&r.status!==505)}function $F(r){return r?r.code==="ETIMEDOUT"||r.code==="ESOCKETTIMEDOUT"||r.code==="ECONNREFUSED"||r.code==="ECONNRESET"||r.code==="ENOENT"||r.code==="ENOTFOUND":!1}var jF=fl("ts-http-runtime retryPolicy"),GF="retryPolicy";function bo(r,e={maxRetries:3}){let t=e.logger||jF;return{name:GF,sendRequest(i,s){return p(this,null,function*(){let o,a,c=-1;e:for(;;){c+=1,o=void 0,a=void 0;try{t.info(`Retry ${c}: Attempting to send request`,i.requestId),o=yield s(i),t.info(`Retry ${c}: Received a response from request`,i.requestId)}catch(l){if(t.error(`Retry ${c}: Received an error from request`,i.requestId),a=l,!l||a.name!=="RestError")throw l;o=a.response}if(i.abortSignal?.aborted)throw t.error(`Retry ${c}: Request aborted.`),new Fi;if(c>=(e.maxRetries??3)){if(t.info(`Retry ${c}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),a)throw a;if(o)return o;throw new Error("Maximum retries reached with no response or error to throw")}t.info(`Retry ${c}: Processing ${r.length} retry strategies.`);t:for(let l of r){let d=l.logger||t;d.info(`Retry ${c}: Processing retry strategy ${l.name}.`);let u=l.retry({retryCount:c,response:o,responseError:a});if(u.skipStrategy){d.info(`Retry ${c}: Skipped.`);continue t}let{errorToThrow:h,retryAfterInMs:g,redirectTo:y}=u;if(h)throw d.error(`Retry ${c}: Retry strategy ${l.name} throws error:`,h),h;if(g||g===0){d.info(`Retry ${c}: Retry strategy ${l.name} retries after ${g}`),yield R_(g,void 0,{abortSignal:i.abortSignal});continue e}if(y){d.info(`Retry ${c}: Retry strategy ${l.name} redirects to ${y}`),i.url=y;continue e}}if(a)throw t.info("None of the retry strategies could work with the received error. Throwing it."),a;if(o)return t.info("None of the retry strategies could work with the received response. Returning it."),o}})}}}var Ex="defaultRetryPolicy";function Pu(r={}){return{name:Ex,sendRequest:bo([Cx(),Su(r)],{maxRetries:r.maxRetries??3}).sendRequest}}var A_=typeof window<"u"&&typeof window.document<"u",I_=typeof self=="object"&&typeof self?.importScripts=="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope"),M_=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",B_=typeof Bun<"u"&&typeof Bun.version<"u",So=typeof globalThis.process<"u"&&!!globalThis.process.version&&!!globalThis.process.versions?.n
10ode;var k_=typeof navigator<"u"&&navigator?.product==="ReactNative";var Nx="formDataPolicy";function KF(r){let e={};for(let[t,n]of r.entries())e[t]??=[],e[t].push(n);return e}function Cu(){return{name:Nx,sendRequest(e,t){return p(this,null,function*(){if(So&&typeof FormData<"u"&&e.body instanceof FormData&&(e.formData=KF(e.body),e.body=void 0),e.formData){let n=e.headers.get("Content-Type");n&&n.indexOf("application/x-www-form-urlencoded")!==-1?e.body=WF(e.formData):yield VF(e.formData,e),e.formData=void 0}return t(e)})}}}function WF(r){let e=new URLSearchParams;for(let[t,n]of Object.entries(r))if(Array.isArray(n))for(let i of n)e.append(t,i.toString());else e.append(t,n.toString());return e.toString()}function VF(r,e){return p(this,null,function*(){let t=e.headers.get("Content-Type");if(t&&!t.startsWith("multipart/form-data"))return;e.headers.set("Content-Type",t??"multipart/form-data");let n=[];for(let[i,s]of Object.entries(r))for(let o of Array.isArray(s)?s:[s])if(typeof o=="string")n.push({headers:Vr({"Content-Disposition":`form-data; name="${i}"`}),body:yr(o,"utf-8")});else{if(o==null||typeof o!="object")throw new Error(`Unexpected value for key ${i}: ${o}. Value should be serialized to string first.`);{let a=o.name||"blob",c=Vr();c.set("Content-Disposition",`form-data; name="${i}"; filename="${a}"`),c.set("Content-Type",o.type||"application/octet-stream"),n.push({headers:c,body:o})}}e.multipartBody={parts:n}})}var O_="proxyPolicy is not supported in browser environment";function wx(){throw new Error(O_)}function Eu(){throw new Error(O_)}var Rx="agentPolicy";function Nu(r){return{name:Rx,sendRequest:(e,t)=>p(null,null,function*(){return e.agent||(e.agent=r),t(e)})}}var vx="tlsPolicy";function wu(r){return{name:vx,sendRequest:(e,t)=>p(null,null,function*(){return e.tlsSettings||(e.tlsSettings=r),t(e)})}}function XF(r){return new Response(r).blob()}function QF(r){return p(this,null,function*(){if(r instanceof Blob||r instanceof Uint8Array)return r;if(hl(r))return XF(r);throw new Error("Unsupported source type. Only Blob, Uint8Array, and ReadableStream are supported in browser.")})}function YF(r){return"resize"in r.buffer?r:r.map(e=>e)}function D_(r){return p(this,null,function*(){let e=[];for(let t of r){let n=yield QF(typeof t=="function"?t():t);n instanceof Blob?e.push(n):e.push(new Blob([YF(n)]))}return new Blob(e)})}function JF(){return`----AzSDKFormBoundary${go()}`}function ZF(r){let e="";for(let[t,n]of r)e+=`${t}: ${n}\r 11`;return e}function e$(r){return r instanceof Uint8Array?r.byteLength:x_(r)?r.size===-1?void 0:r.size:void 0}function t$(r){let e=0;for(let t of r){let n=e$(t);if(n===void 0)return;e+=n}return e}function r$(r,e,t){return p(this,null,function*(){let n=[yr(`--${t}`,"utf-8"),...e.flatMap(s=>[yr(`\r 12`,"utf-8"),yr(ZF(s.headers),"utf-8"),yr(`\r 13`,"utf-8"),s.body,yr(`\r 14--${t}`,"utf-8")]),yr(`--\r 15\r 16`,"utf-8")],i=t$(n);i&&r.headers.set("Content-Length",i),r.body=yield D_(n)})}var yl="multipartPolicy",n$=70,i$=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function s$(r){if(r.length>n$)throw new Error(`Multipart boundary "${r}" exceeds maximum length of 70 characters`);if(Array.from(r).some(e=>!i$.has(e)))throw new Error(`Multipart boundary "${r}" contains invalid characters`)}function Ru(){return{name:yl,sendRequest(e,t){return p(this,null,function*(){if(!e.multipartBody)return t(e);if(e.body)throw new Error("multipartBody and regular body cannot be set at the same time");let n=e.multipartBody.boundary,i=e.headers.get("Content-Type")??"multipart/mixed",s=i.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${i}`);let[,o,a]=s;if(a&&n&&a!==n)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${n} in the request body`);return n??=a,n?s$(n):n=JF(),e.headers.set("Content-Type",`${o}; boundary=${n}`),yield r$(e,e.multipartBody.parts,n),e.multipartBody=void 0,t(e)})}}}function Tu(){return uu()}var L_=lu({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Ghe=L_.logger;function un(r){return L_.createClientLogger(r)}var ni=un("core-rest-pipeline");function _x(r={}){return hu(x({logger:ni.info},r))}var Ax=gu;function Ix(r={}){return yu(r)}function z_(){return"x-ms-useragent"}function f$(r){let e=[{name:"Firefox",regex:/Firefox\/([\d.]+)/},{name:"Safari",regex:/Version\/([\d.]+).*Safari/}];for(let t of e){let n=r.match(t.regex);if(n)return{brand:t.name,version:n[1]}}}function h$(r){let e=["Google Chrome","Microsoft Edge","Opera","Brave","Chromium"];for(let t of e){let n=r.find(i=>i.brand===t);if(n)return n}}function U_(r){return p(this,null,function*(){let e=globalThis.navigator,t="unknown";if(e?.userAgentData){let n=yield e.userAgentData.getHighEntropyValues(["architecture","platformVersion"]);
16t=`${n.platform} ${n.platformVersion}; ${n.architecture}`;let i=h$(e.userAgentData.brands);i&&r.set(i.brand,`${i.version} (${t})`)}else if(e?.platform){t=e.platform;let n=f$(e.userAgent);n&&r.set(n.brand,`${n.version} (${t})`)}else typeof globalThis.EdgeRuntime=="string"&&r.set("EdgeRuntime",`${globalThis.EdgeRuntime} (${t})`)})}var _u="1.22.2";function g$(r){let e=[];for(let[t,n]of r){let i=n?`${t}/${n}`:t;e.push(i)}return e.join(" ")}function q_(){return z_()}function Au(r){return p(this,null,function*(){let e=new Map;e.set("core-rest-pipeline",_u),yield U_(e);let t=g$(e);return r?`${r} ${t}`:t})}var H_=q_(),F_="userAgentPolicy";function Mx(r={}){let e=Au(r.userAgentPrefix);return{name:F_,sendRequest(n,i){return p(this,null,function*(){return n.headers.has(H_)||n.headers.set(H_,yield e),i(n)})}}}var ji=class extends Error{constructor(e){super(e),this.name="AbortError"}};function Bx(r,e){let{cleanupBeforeAbort:t,abortSignal:n,abortErrorMsg:i}=e??{};return new Promise((s,o)=>{function a(){o(new ji(i??"The operation was aborted."))}function c(){n?.removeEventListener("abort",l)}function l(){t?.(),c(),a()}if(n?.aborted)return a();try{r(d=>{c(),s(d)},d=>{c(),o(d)})}catch(d){o(d)}n?.addEventListener("abort",l)})}var P$="The delay was aborted.";function Aa(r,e){let t,{abortSignal:n,abortErrorMsg:i}=e??{};return Bx(s=>{t=setTimeout(s,r)},{cleanupBeforeAbort:()=>clearTimeout(t),abortSignal:n,abortErrorMsg:i??P$})}function Ts(r){if(yo(r))return r.message;{let e;try{typeof r=="object"&&r?e=JSON.stringify(r):e=String(r)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function $_(r){return yo(r)}function Ia(){return go()}var Ke=So;var j_=Symbol("rawContent");function Ox(r){return typeof r[j_]=="function"}function G_(r){return Ox(r)?r[j_]():r}var Iu=yl;function Dx(){let r=Ru();return{name:Iu,sendRequest:(e,t)=>p(null,null,function*(){if(e.multipartBody)for(let n of e.multipartBody.parts)Ox(n.body)&&(n.body=G_(n.body));return r.sendRequest(e,t)})}}var Lx=Sx;function zx(){return xu()}function Ux(r={}){return Pu(r)}function qx(){return Cu()}function _s(r){return wx(r)}function Hx(r,e){return Eu(r,e)}var K_="setClientRequestIdPolicy";function Fx(r="x-ms-client-request-id"){return{name:K_,sendRequest(t,n){return p(this,null,function*(){return t.headers.has(r)||t.headers.set(r,t.requestId),n(t)})}}}function $x(r){return Nu(r)}function jx(r){return wu(r)}var Ma={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function W_(r={}){let e=new Gx(r.parentContext);return r.span&&(e=e.setValue(Ma.span,r.span)),r.namespace&&(e=e.setValue(Ma.namespace,r.namespace)),e}var Gx=class r{_contextMap;constructor(e){this._contextMap=e instanceof r?new Map(e._contextMap):new Map}setValue(e,t){let n=new r(this);return n._contextMap.set(e,t),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let t=new r(this);return t._contextMap.delete(e),t}};var Mu={instrumenterImplementation:void 0};function C$(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function E$(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(r,e)=>({span:C$(),tracingContext:W_({parentContext:e.tracingContext})}),withContext(r,e,...t){return e(...t)}}}function xl(){return Mu.instrumenterImplementation||(Mu.instrumenterImplementation=E$()),Mu.instrumenterImplementation}function bl(r){let{namespace:e,packageName:t,packageVersion:n}=r;function i(l,d,u){let h=xl().startSpan(l,E(x({},u),{packageName:t,packageVersion:n,tracingContext:d?.tracingOptions?.tracingContext})),g=h.tracingContext,y=h.span;g.getValue(Ma.namespace)||(g=g.setValue(Ma.namespace,e)),y.setAttribute("az.namespace",g.getValue(Ma.namespace));let S=Object.assign({},d,{tracingOptions:E(x({},d?.tracingOptions),{tracingContext:g})});return{span:y,updatedOptions:S}}function s(l,d,u,h){return p(this,null,function*(){let{span:g,updatedOptions:y}=i(l,d,h);try{let S=yield o(y.tracingOptions.tracingContext,()=>Promise.resolve(u(y,g)));return g.setStatus({status:"success"}),S}catch(S){throw g.setStatus({status:"error",error:S}),S}finally{g.end()}})}function o(l,d,...u){return xl().withContext(l,d,...u)}function a(l){return xl().parseTraceparentHeader(l)}function c(l){return xl().createRequestHeaders(l)}return{startSpan:i,withSpan:s,withContext:o,parseTraceparentHeader:a,createRequestHeaders:c}}var Gi=ri;function Po(r){return pu(r)}var V_="tracingPolicy";function Kx(r={}){let e=Au(r.userAgentPrefix),t=new $i({additionalAllowedQueryParameters:r.additionalAllowedQueryParameters}),n=N$();return{name:V_,sendRequest(s,o){return p(this,null,function*(){if(!n)return o(s);let a=yield e,c={"http.url":t.sanitizeUrl(s.url),"http.method":s.method,"http.user_agent":a,requestId:s.requestId};a&&(c["http.user_agent"]=a);let{span:l,tracingContext:d}=w$(n,s,c)??{};if(!l||!d)return o(s);try{let u=yield n.withContext(d,o,s);return v$(l,u),u}catch(u){throw R$(l,u),u}})}}}function N$(){try{return bl({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:_u})}catch(r){ni.warning(`Error when creating the TracingClient: ${Ts(r)}`);return}}function w$(r,e,t){try{let{span:n,updatedOptions:i}=r.startSpan(`HTTP ${e.method}`,{tracingOptions:e.tracingOptions},{spanKind:"client",spanAttributes:t});if(!n.isRecording()){n.end();return}let s=r.createRequestHeaders(i.tracingOptions.tracingContext);
16for(let[o,a]of Object.entries(s))e.headers.set(o,a);return{span:n,tracingContext:i.tracingOptions.tracingContext}}catch(n){ni.warning(`Skipping creating a tracing span due to an error: ${Ts(n)}`);return}}function R$(r,e){try{r.setStatus({status:"error",error:$_(e)?e:void 0}),Po(e)&&e.statusCode&&r.setAttribute("http.status_code",e.statusCode),r.end()}catch(t){ni.warning(`Skipping tracing span processing due to an error: ${Ts(t)}`)}}function v$(r,e){try{r.setAttribute("http.status_code",e.status);let t=e.headers.get("x-ms-request-id");t&&r.setAttribute("serviceRequestId",t),e.status>=400&&r.setStatus({status:"error"}),r.end()}catch(t){ni.warning(`Skipping tracing span processing due to an error: ${Ts(t)}`)}}function Bu(r){if(r instanceof AbortSignal)return{abortSignal:r};if(r.aborted)return{abortSignal:AbortSignal.abort(r.reason)};let e=new AbortController,t=!0;function n(){t&&(r.removeEventListener("abort",i),t=!1)}function i(){e.abort(r.reason),n()}return r.addEventListener("abort",i),{abortSignal:e.signal,cleanup:n}}var T$="wrapAbortSignalLikePolicy";function X_(){return{name:T$,sendRequest:(r,e)=>p(null,null,function*(){if(!r.abortSignal)return e(r);let{abortSignal:t,cleanup:n}=Bu(r.abortSignal);r.abortSignal=t;try{return yield e(r)}finally{n?.()}})}}function Wx(r){let e=Tu();return Ke&&(r.agent&&e.addPolicy($x(r.agent)),r.tlsOptions&&e.addPolicy(jx(r.tlsOptions)),e.addPolicy(Hx(r.proxyOptions)),e.addPolicy(zx())),e.addPolicy(X_()),e.addPolicy(qx(),{beforePolicies:[Iu]}),e.addPolicy(Mx(r.userAgentOptions)),e.addPolicy(Fx(r.telemetryOptions?.clientRequestIdHeaderName)),e.addPolicy(Dx(),{afterPhase:"Deserialize"}),e.addPolicy(Ux(r.retryOptions),{phase:"Retry"}),e.addPolicy(Kx(x(x({},r.userAgentOptions),r.loggingOptions)),{afterPhase:"Retry"}),Ke&&e.addPolicy(Ix(r.redirectOptions),{afterPhase:"Retry"}),e.addPolicy(_x(r.loggingOptions),{afterPhase:"Sign"}),e}function Sl(){let r=fu();return{sendRequest(t){return p(this,null,function*(){let{abortSignal:n,cleanup:i}=t.abortSignal?Bu(t.abortSignal):{};try{return t.abortSignal=n,yield r.sendRequest(t)}finally{i?.()}})}}}function Ki(r){return Vr(r)}function Pl(r){return du(r)}var Zxe=un("core-rest-pipeline retryPolicy");var _$={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};function A$(r,e,t){return p(this,null,function*(){function n(){return p(this,null,function*(){if(Date.now()<t)try{return yield r()}catch{return null}else{let s=yield r();if(s===null)throw new Error("Failed to refresh access token.");return s}})}let i=yield n();for(;i===null;)yield Aa(e),i=yield n();return i})}function Vx(r,e){let t=null,n=null,i,s=x(x({},_$),e),o={get isRefreshing(){return t!==null},get shouldRefresh(){return o.isRefreshing?!1:n?.refreshAfterTimestamp&&n.refreshAfterTimestamp<Date.now()?!0:(n?.expiresOnTimestamp??0)-s.refreshWindowInMs<Date.now()},get mustRefresh(){return n===null||n.expiresOnTimestamp-s.forcedRefreshWindowInMs<Date.now()}};function a(c,l){return o.isRefreshing||(t=A$(()=>r.getToken(c,l),s.retryIntervalInMs,n?.expiresOnTimestamp??Date.now()).then(u=>(t=null,n=u,i=l.tenantId,n)).catch(u=>{throw t=null,n=null,i=void 0,u})),t}return(c,l)=>p(null,null,function*(){let d=!!l.claims,u=i!==l.tenantId;return d&&(n=null),u||d||o.mustRefresh?a(c,l):(o.shouldRefresh&&a(c,l),n)})}var Z_="bearerTokenAuthenticationPolicy";function ku(r,e){return p(this,null,function*(){try{return[yield e(r),void 0]}catch(t){if(Po(t)&&t.response)return[t.response,t];throw t}})}function I$(r){return p(this,null,function*(){let{scopes:e,getAccessToken:t,request:n}=r,i={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions,enableCae:!0},s=yield t(e,i);s&&r.request.headers.set("Authorization",`Bearer ${s.token}`)})}function Q_(r){return r.status===401&&r.headers.has("WWW-Authenticate")}function Y_(r,e){return p(this,null,function*(){let{scopes:t}=r,n=yield r.getAccessToken(t,{enableCae:!0,claims:e});return n?(r.request.headers.set("Authorization",`${n.tokenType??"Bearer"} ${n.token}`),!0):!1})}function Ba(r){let{credential:e,scopes:t,challengeCallbacks:n}=r,i=r.logger||ni,s={authorizeRequest:n?.authorizeRequest?.bind(n)??I$,authorizeRequestOnChallenge:n?.authorizeRequestOnChallenge?.bind(n)}
16,o=e?Vx(e):()=>Promise.resolve(null);return{name:Z_,sendRequest(c,l){return p(this,null,function*(){if(!c.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.");yield s.authorizeRequest({scopes:Array.isArray(t)?t:[t],request:c,getAccessToken:o,logger:i});let d,u,h;if([d,u]=yield ku(c,l),Q_(d)){let g=J_(d.headers.get("WWW-Authenticate"));if(g){let y;try{y=atob(g)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${g}`),d}h=yield Y_({scopes:Array.isArray(t)?t:[t],response:d,request:c,getAccessToken:o,logger:i},y),h&&([d,u]=yield ku(c,l))}else if(s.authorizeRequestOnChallenge&&(h=yield s.authorizeRequestOnChallenge({scopes:Array.isArray(t)?t:[t],request:c,response:d,getAccessToken:o,logger:i}),h&&([d,u]=yield ku(c,l)),Q_(d)&&(g=J_(d.headers.get("WWW-Authenticate")),g))){let y;try{y=atob(g)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${g}`),d}h=yield Y_({scopes:Array.isArray(t)?t:[t],response:d,request:c,getAccessToken:o,logger:i},y),h&&([d,u]=yield ku(c,l))}}if(u)throw u;return d})}}}function M$(r){let e=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,t=/(\w+)="([^"]*)"/g,n=[],i;for(;(i=e.exec(r))!==null;){let s=i[1],o=i[2],a={},c;for(;(c=t.exec(o))!==null;)a[c[1]]=c[2];n.push({scheme:s,params:a})}return n}function J_(r){return r?M$(r).find(t=>t.scheme==="Bearer"&&t.params.claims&&t.params.error==="insufficient_claims")?.params.claims:void 0}function Xr(r){let e=r;return e&&typeof e.getToken=="function"&&(e.signRequest===void 0||e.getToken.length>0)}var Xx="DisableKeepAlivePolicy";function eA(){return{name:Xx,sendRequest(e,t){return p(this,null,function*(){return e.disableKeepAlive=!0,t(e)})}}}function tA(r){return r.getOrderedPolicies().some(e=>e.name===Xx)}function Qx(r){let e="";for(let t=0;t<r.length;t++)e+=String.fromCharCode(r[t]);return btoa(e)}function Yx(r){let e=atob(r),t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}var St="$",Wi="_";function k$(r,e){return e!=="Composite"&&e!=="Dictionary"&&(typeof r=="string"||typeof r=="number"||typeof r=="boolean"||e?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||r===void 0||r===null)}var O$=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function rA(r){return O$.test(r)}var D$=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function nA(r){return D$.test(r)}function L$(r){let e=x(x({},r.headers),r.body);return r.hasNullableType&&Object.getOwnPropertyNames(e).length===0?r.shouldWrapBody?{body:null}:null:r.shouldWrapBody?E(x({},r.headers),{body:r.body}):e}function Jx(r,e){let t=r.parsedHeaders;if(r.request.method==="HEAD")return E(x({},t),{body:r.parsedBody});let n=e&&e.bodyMapper,i=!!n?.nullable,s=n?.type.name;if(s==="Stream")return E(x({},t),{blobBody:r.blobBody,readableStreamBody:r.readableStreamBody});let o=s==="Composite"&&n.type.modelProperties||{},a=Object.keys(o).some(c=>o[c].serializedName==="");if(s==="Sequence"||a){let c=r.parsedBody??[];for(let l of Object.keys(o))o[l].serializedName&&(c[l]=r.parsedBody?.[l]);if(t)for(let l of Object.keys(t))c[l]=t[l];return i&&!r.parsedBody&&!t&&Object.getOwnPropertyNames(o).length===0?null:c}return L$({body:r.parsedBody,headers:t,hasNullableType:i,shouldWrapBody:k$(r.parsedBody,s)})}var Zx=class{modelMappers;isXML;constructor(e={},t=!1){this.modelMappers=e,this.isXML=t}validateConstraints(e,t,n){let i=(s,o)=>{throw new Error(`"${n}" with value "${t}" should satisfy the constraint "${s}": ${o}.`)};if(e.constraints&&t!==void 0&&t!==null){let{ExclusiveMaximum:s,ExclusiveMinimum:o,InclusiveMaximum:a,InclusiveMinimum:c,MaxItems:l,MaxLength:d,MinItems:u,MinLength:h,MultipleOf:g,Pattern:y,UniqueItems:S}=e.constraints;if(s!==void 0&&t>=s&&i("ExclusiveMaximum",s),o!==void 0&&t<=o&&i("ExclusiveMinimum",o),a!==void 0&&t>a&&i("InclusiveMaximum",a),c!==void 0&&t<c&&i("InclusiveMinimum",c),l!==void 0&&t.length>l&&i("MaxItems",l),d!==void 0&&t.length>d&&i("MaxLength",d),u!==void 0&&t.length<u&&i("MinItems",u),h!==void 0&&t.length<h&&i("MinLength",h),g!==void 0&&t%g!==0&&i("MultipleOf",g),y){let C=typeof y=="string"?new RegExp(y):y;(typeof t!="string"||t.match(C)===null)&&i("Pattern",y)}S&&t.some((C,N,T)=>T.indexOf(C)!==N)&&i("UniqueItems",S)}}serialize(e,t,n,i={xml:{}}){let s={xml:{rootName:i.xml.rootName??"",includeRoot:i.xml.includeRoot??!1,xmlCharKey:i.xml.xmlCharKey??Wi}},o={}
16,a=e.type.name;n||(n=e.serializedName),a.match(/^Sequence$/i)!==null&&(o=[]),e.isConstant&&(t=e.defaultValue);let{required:c,nullable:l}=e;if(c&&l&&t===void 0)throw new Error(`${n} cannot be undefined.`);if(c&&!l&&t==null)throw new Error(`${n} cannot be null or undefined.`);if(!c&&l===!1&&t===null)throw new Error(`${n} cannot be null.`);return t==null||a.match(/^any$/i)!==null?o=t:a.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null?o=$$(a,n,t):a.match(/^Enum$/i)!==null?o=j$(n,e.type.allowedValues,t):a.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null?o=W$(a,t,n):a.match(/^ByteArray$/i)!==null?o=G$(n,t):a.match(/^Base64Url$/i)!==null?o=K$(n,t):a.match(/^Sequence$/i)!==null?o=V$(this,e,t,n,!!this.isXML,s):a.match(/^Dictionary$/i)!==null?o=X$(this,e,t,n,!!this.isXML,s):a.match(/^Composite$/i)!==null&&(o=Y$(this,e,t,n,!!this.isXML,s)),o}deserialize(e,t,n,i={xml:{}}){let s={xml:{rootName:i.xml.rootName??"",includeRoot:i.xml.includeRoot??!1,xmlCharKey:i.xml.xmlCharKey??Wi},ignoreUnknownProperties:i.ignoreUnknownProperties??!1};if(t==null)return this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped&&(t=[]),e.defaultValue!==void 0&&(t=e.defaultValue),t;let o,a=e.type.name;if(n||(n=e.serializedName),a.match(/^Composite$/i)!==null)o=Z$(this,e,t,n,s);else{if(this.isXML){let c=s.xml.xmlCharKey;t[St]!==void 0&&t[c]!==void 0&&(t=t[c])}a.match(/^Number$/i)!==null?(o=parseFloat(t),isNaN(o)&&(o=t)):a.match(/^Boolean$/i)!==null?t==="true"?o=!0:t==="false"?o=!1:o=t:a.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null?o=t:a.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null?o=new Date(t):a.match(/^UnixTime$/i)!==null?o=F$(t):a.match(/^ByteArray$/i)!==null?o=Yx(t):a.match(/^Base64Url$/i)!==null?o=q$(t):a.match(/^Sequence$/i)!==null?o=t4(this,e,t,n,s):a.match(/^Dictionary$/i)!==null&&(o=e4(this,e,t,n,s))}return e.isConstant&&(o=e.defaultValue),o}};function Qr(r={},e=!1){return new Zx(r,e)}function z$(r,e){let t=r.length;for(;t-1>=0&&r[t-1]===e;)--t;return r.substr(0,t)}function U$(r){if(!r)return;if(!(r instanceof Uint8Array))throw new Error("Please provide an input of type Uint8Array for converting to Base64Url.");let e=Qx(r);return z$(e,"=").replace(/\+/g,"-").replace(/\//g,"_")}function q$(r){if(r){if(r&&typeof r.valueOf()!="string")throw new Error("Please provide an input of type string for converting to Uint8Array");return r=r.replace(/-/g,"+").replace(/_/g,"/"),Yx(r)}}function eb(r){let e=[],t="";if(r){let n=r.split(".");for(let i of n)i.charAt(i.length-1)==="\\"?t+=i.substr(0,i.length-1)+".":(t+=i,e.push(t),t="")}return e}function H$(r){if(r)return typeof r.valueOf()=="string"&&(r=new Date(r)),Math.floor(r.getTime()/1e3)}function F$(r){if(r)return new Date(r*1e3)}function $$(r,e,t){if(t!=null){if(r.match(/^Number$/i)!==null){if(typeof t!="number")throw new Error(`${e} with value ${t} must be of type number.`)}else if(r.match(/^String$/i)!==null){if(typeof t.valueOf()!="string")throw new Error(`${e} with value "${t}" must be of type string.`)}else if(r.match(/^Uuid$/i)!==null){if(!(typeof t.valueOf()=="string"&&nA(t)))throw new Error(`${e} with value "${t}" must be of type string and a valid uuid.`)}else if(r.match(/^Boolean$/i)!==null){if(typeof t!="boolean")throw new Error(`${e} with value ${t} must be of type boolean.`)}else if(r.match(/^Stream$/i)!==null){let n=typeof t;if(n!=="string"&&typeof t.pipe!="function"&&typeof t.tee!="function"&&!(t instanceof ArrayBuffer)&&!ArrayBuffer.isView(t)&&!((typeof Blob=="function"||typeof Blob=="object")&&t instanceof Blob)&&n!=="function")throw new Error(`${e} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}return t}function j$(r,e,t){if(!e)throw new Error(`Please provide a set of allowedValues to validate ${r} as an Enum Type.`);if(!e.some(i=>typeof i.valueOf()=="string"?i.toLowerCase()===t.toLowerCase():i===t))throw new Error(`${t} is not a valid value for ${r}. The valid values are: ${JSON.stringify(e)}.`);return t}function G$(r,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${r} must be of type Uint8Array.`);e=Qx(e)}return e}function K$(r,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${r} must be of type Uint8Array.`);e=U$(e)}return e}function W$(r,e,t){if(e!=null){if(r.match(/^Date$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${t} must be an instanceof Date or a string in ISO8601 format.`);e=e instanceof Date?e.toISOString().substring(0,10):new Date(e).toISOString().substring(0,10)}else if(r.match(/^DateTime$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${t} must be an instanceof Date or a string in ISO8601 format.`);e=e instanceof Date?e.toISOString():new Date(e).toISOString()}else if(r.match(/^DateTimeRfc1123$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${t} must be an instanceof Date or a string in RFC-1123 format.`);e=e instanceof Date?e.toUTCString():new Date(e).toUTCString()}else if(r.match(/^UnixTime$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${t} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);e=H$(e)}else if(r.match(/^TimeSpan$/i)!==null&&!rA(e))throw new Error(`${t} must be a string in ISO 8601 format. Instead was "${e}".`)}return e}function V$(r,e,t,n,i,s){if(!Array.isArray(t))throw new Error(`${n} must be of type Array.`);let o=e.type.element;if(!o||typeof o!="object")throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${n}.`);
16o.type.name==="Composite"&&o.type.className&&(o=r.modelMappers[o.type.className]??o);let a=[];for(let c=0;c<t.length;c++){let l=r.serialize(o,t[c],n,s);if(i&&o.xmlNamespace){let d=o.xmlNamespacePrefix?`xmlns:${o.xmlNamespacePrefix}`:"xmlns";o.type.name==="Composite"?(a[c]=x({},l),a[c][St]={[d]:o.xmlNamespace}):(a[c]={},a[c][s.xml.xmlCharKey]=l,a[c][St]={[d]:o.xmlNamespace})}else a[c]=l}return a}function X$(r,e,t,n,i,s){if(typeof t!="object")throw new Error(`${n} must be of type object.`);let o=e.type.value;if(!o||typeof o!="object")throw new Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${n}.`);let a={};for(let c of Object.keys(t)){let l=r.serialize(o,t[c],n,s);a[c]=aA(o,l,i,s)}if(i&&e.xmlNamespace){let c=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns",l=a;return l[St]={[c]:e.xmlNamespace},l}return a}function Q$(r,e,t){let n=e.type.additionalProperties;return!n&&e.type.className?sA(r,e,t)?.type.additionalProperties:n}function sA(r,e,t){let n=e.type.className;if(!n)throw new Error(`Class name for model "${t}" is not provided in the mapper "${JSON.stringify(e,void 0,2)}".`);return r.modelMappers[n]}function oA(r,e,t){let n=e.type.modelProperties;if(!n){let i=sA(r,e,t);if(!i)throw new Error(`mapper() cannot be null or undefined for model "${e.type.className}".`);if(n=i?.type.modelProperties,!n)throw new Error(`modelProperties cannot be null or undefined in the mapper "${JSON.stringify(i)}" of type "${e.type.className}" for object "${t}".`)}return n}function Y$(r,e,t,n,i,s){if(Ou(r,e)&&(e=cA(r,e,t,"clientName")),t!=null){let o={},a=oA(r,e,n);for(let l of Object.keys(a)){let d=a[l];if(d.readOnly)continue;let u,h=o;if(r.isXML)d.xmlIsWrapped?u=d.xmlName:u=d.xmlElementName||d.xmlName;else{let g=eb(d.serializedName);u=g.pop();for(let y of g){let S=h[y];S==null&&(t[l]!==void 0&&t[l]!==null||d.defaultValue!==void 0)&&(h[y]={}),h=h[y]}}if(h!=null){if(i&&e.xmlNamespace){let N=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";h[St]=E(x({},h[St]),{[N]:e.xmlNamespace})}let g=d.serializedName!==""?n+"."+d.serializedName:n,y=t[l],S=Ou(r,e);S&&S.clientName===l&&y==null&&(y=e.serializedName);let C=r.serialize(d,y,g,s);if(C!==void 0&&u!==void 0&&u!==null){let N=aA(d,C,i,s);i&&d.xmlIsAttribute?(h[St]=h[St]||{},h[St][u]=C):i&&d.xmlIsWrapped?h[u]={[d.xmlElementName]:N}:h[u]=N}}}let c=Q$(r,e,n);if(c){let l=Object.keys(a);for(let d in t)l.every(h=>h!==d)&&(o[d]=r.serialize(c,t[d],n+'["'+d+'"]',s))}return o}return t}function aA(r,e,t,n){if(!t||!r.xmlNamespace)return e;let s={[r.xmlNamespacePrefix?`xmlns:${r.xmlNamespacePrefix}`:"xmlns"]:r.xmlNamespace};if(["Composite"].includes(r.type.name)){if(e[St])return e;{let a=x({},e);return a[St]=s,a}}let o={};return o[n.xml.xmlCharKey]=e,o[St]=s,o}function J$(r,e){return[St,e.xml.xmlCharKey].includes(r)}function Z$(r,e,t,n,i){let s=i.xml.xmlCharKey??Wi;Ou(r,e)&&(e=cA(r,e,t,"serializedName"));let o=oA(r,e,n),a={},c=[];for(let d of Object.keys(o)){let u=o[d],h=eb(o[d].serializedName);c.push(h[0]);let{serializedName:g,xmlName:y,xmlElementName:S}=u,C=n;g!==""&&g!==void 0&&(C=n+"."+g);let N=u.headerCollectionPrefix;if(N){let T={};for(let I of Object.keys(t))I.startsWith(N)&&(T[I.substring(N.length)]=r.deserialize(u.type.value,t[I],C,i)),c.push(I);a[d]=T}else if(r.isXML)if(u.xmlIsAttribute&&t[St])a[d]=r.deserialize(u,t[St][y],C,i);else if(u.xmlIsMsText)t[s]!==void 0?a[d]=t[s]:typeof t=="string"&&(a[d]=t);else{let T=S||y||g;if(u.xmlIsWrapped){let k=t[y]?.[S]??[];a[d]=r.deserialize(u,k,C,i),c.push(y)}else{let I=t[T];a[d]=r.deserialize(u,I,C,i),c.push(T)}}else{let T,I=t,k=0;for(let ae of h){if(!I)break;k++,I=I[ae]}I===null&&k<h.length&&(I=void 0),T=I;let Z=e.type.polymorphicDiscriminator;Z&&d===Z.clientName&&T==null&&(T=e.serializedName);let te;if(Array.isArray(t[d])&&o[d].serializedName===""){T=t[d];let ae=r.deserialize(u,T,C,i);for(let[ye,pr]of Object.entries(a))Object.prototype.hasOwnProperty.call(ae,ye)||(ae[ye]=pr);a=ae}else(T!==void 0||u.defaultValue!==void 0)&&(te=r.deserialize(u,T,C,i),a[d]=te)}}let l=e.type.additionalProperties;if(l){let d=u=>{for(let h in o)if(eb(o[h].serializedName)[0]===u)return!1;return!0};for(let u in t)d(u)&&(a[u]=r.deserialize(l,t[u],n+'["'+u+'"]',i))}else if(t&&!i.ignoreUnknownProperties)for(let d of Object.keys(t))a[d]===void 0&&!c.includes(d)&&!J$(d,i)&&(a[d]=t[d]);return a}function e4(r,e,t,n,i){let s=e.type.value;if(!s||typeof s!="object")throw new Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${n}`);if(t){let o={};
16for(let a of Object.keys(t))o[a]=r.deserialize(s,t[a],n,i);return o}return t}function t4(r,e,t,n,i){let s=e.type.element;if(!s||typeof s!="object")throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${n}`);if(t){Array.isArray(t)||(t=[t]),s.type.name==="Composite"&&s.type.className&&(s=r.modelMappers[s.type.className]??s);let o=[];for(let a=0;a<t.length;a++)o[a]=r.deserialize(s,t[a],`${n}[${a}]`,i);return o}return t}function r4(r,e,t){let n=[t];for(;n.length;){let i=n.shift(),s=e===i?e:i+"."+e;if(Object.prototype.hasOwnProperty.call(r,s))return r[s];for(let[o,a]of Object.entries(r))o.startsWith(i+".")&&a.type.uberParent===i&&a.type.className&&n.push(a.type.className)}}function cA(r,e,t,n){let i=Ou(r,e);if(i){let s=i[n];if(s){n==="serializedName"&&(s=s.replace(/\\/gi,""));let o=t[s],a=e.type.uberParent??e.type.className;if(typeof o=="string"&&a){let c=r4(r.modelMappers.discriminators,o,a);c&&(e=c)}}}return e}function Ou(r,e){return e.type.polymorphicDiscriminator||iA(r,e.type.uberParent)||iA(r,e.type.className)}function iA(r,e){return e&&r.modelMappers[e]&&r.modelMappers[e].type.polymorphicDiscriminator}var ii={Base64Url:"Base64Url",Boolean:"Boolean",ByteArray:"ByteArray",Composite:"Composite",Date:"Date",DateTime:"DateTime",DateTimeRfc1123:"DateTimeRfc1123",Dictionary:"Dictionary",Enum:"Enum",Number:"Number",Object:"Object",Sequence:"Sequence",String:"String",Stream:"Stream",TimeSpan:"TimeSpan",UnixTime:"UnixTime"};var tb={operationRequestMap:new WeakMap};function As(r,e,t){let n=e.parameterPath,i=e.mapper,s;if(typeof n=="string"&&(n=[n]),Array.isArray(n)){if(n.length>0)if(i.isConstant)s=i.defaultValue;else{let o=lA(r,n);!o.propertyFound&&t&&(o=lA(t,n));let a=!1;o.propertyFound||(a=i.required||n[0]==="options"&&n.length===2),s=a?i.defaultValue:o.propertyValue}}else{i.required&&(s={});for(let o in n){let a=i.type.modelProperties[o],c=n[o],l=As(r,{parameterPath:c,mapper:a},t);l!==void 0&&(s||(s={}),s[o]=l)}}return s}function lA(r,e){let t={propertyFound:!1},n=0;for(;n<e.length;++n){let i=e[n];if(r&&i in r)r=r[i];else break}return n===e.length&&(t.propertyValue=r,t.propertyFound=!0),t}var mA=Symbol.for("@azure/core-client original request");function n4(r){return mA in r}function Vi(r){if(n4(r))return Vi(r[mA]);let e=tb.operationRequestMap.get(r);return e||(e={},tb.operationRequestMap.set(r,e)),e}var i4=["application/json","text/json"],s4=["application/xml","application/atom+xml"],dA="deserializationPolicy";function rb(r={}){let e=r.expectedContentTypes?.json??i4,t=r.expectedContentTypes?.xml??s4,n=r.parseXML,i=r.serializerOptions,s={xml:{rootName:i?.xml.rootName??"",includeRoot:i?.xml.includeRoot??!1,xmlCharKey:i?.xml.xmlCharKey??Wi}};return{name:dA,sendRequest(a,c){return p(this,null,function*(){let l=yield c(a);return c4(e,t,l,s,n)})}}}function o4(r){let e,t=r.request,n=Vi(t),i=n?.operationSpec;return i&&(n?.operationResponseGetter?e=n?.operationResponseGetter(i,r):e=i.responses[r.status]),e}function a4(r){let e=r.request,n=Vi(e)?.shouldDeserialize,i;return n===void 0?i=!0:typeof n=="boolean"?i=n:i=n(r),i}function c4(r,e,t,n,i){return p(this,null,function*(){let s=yield d4(r,e,t,n,i);if(!a4(s))return s;let a=Vi(s.request)?.operationSpec;if(!a||!a.responses)return s;let c=o4(s),{error:l,shouldReturnResponse:d}=m4(s,a,c,n);if(l)throw l;if(d)return s;if(c){if(c.bodyMapper){let u=s.parsedBody;a.isXML&&c.bodyMapper.type.name===ii.Sequence&&(u=typeof u=="object"?u[c.bodyMapper.xmlElementName]:[]);try{s.parsedBody=a.serializer.deserialize(c.bodyMapper,u,"operationRes.parsedBody",n)}catch(h){throw new Gi(`Error ${h} occurred in deserializing the responseBody - ${s.bodyAsText}`,{statusCode:s.status,request:s.request,response:s})}}else a.httpMethod==="HEAD"&&(s.parsedBody=t.status>=200&&t.status<300);c.headersMapper&&(s.parsedHeaders=a.serializer.deserialize(c.headersMapper,s.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:!0}))}return s})}function l4(r){let e=Object.keys(r.responses);return e.length===0||e.length===1&&e[0]==="default"}function m4(r,e,t,n){let i=200<=r.status&&r.status<300;if(l4(e)?i:!!t)if(t){if(!t.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let o=t??e.responses.default,a=r.request.streamResponseStatusCodes?.has(r.status)?`Unexpected status code: ${r.status}`:r.bodyAsText,c=new Gi(a,{statusCode:r.status,request:r.request,response:r});if(!o&&!(r.parsedBody?.error?.code&&r.parsedBody?.error?.message))throw c;let l=o?.bodyMapper,d=o?.headersMapper;try{if(r.parsedBody){let u=r.parsedBody,h;if(l){let y=u;if(e.isXML&&l.type.name===ii.Sequence){y=[];let S=l.xmlElementName;typeof u=="object"&&S&&(y=u[S])}h=e.serializer.deserialize(l,y,"error.response.parsedBody",n)}let g=u.error||h||u;c.code=g.code,g.message&&(c.message=g.message),l&&(c.response.parsedBody=h)}r.headers&&d&&(c.response.parsedHeaders=e.serializer.deserialize(d,r.headers.toJSON(),"operationRes.parsedHeaders"))}catch(u){c.message=`Error "${u.message}" occurred in deserializing the responseBody - "${r.bodyAsText}" for the default response.`}return{error:c,shouldReturnResponse:!1}}function d4(r,e,t,n,i){return p(this,null,function*(){if(!t.request.streamResponseStatusCodes?.has(t.status)&&t.bodyAsText){let s=t.bodyAsText,o=t.headers.get("Content-Type")||"",a=o?o.split(";").map(c=>c.toLowerCase()):[];try{if(a.length===0||a.some(c=>r.indexOf(c)!==-1))return t.parsedBody=JSON.parse(s),t;if(a.some(c=>e.indexOf(c)!==-1)){if(!i)throw new Error("Parsing XML not supported.");let c=yield i(s,n.xml);return t.parsedBody=c,t}}catch(c){let l=`Error "${c}" occurred while parsing the response body - ${t.bodyAsText}.`,d=c.code||Gi.PARSE_ERROR;throw new Gi(l,{code:d,statusCode:t.status,request:t.request,response:t})}}return t})}function uA(r){let e=new Set;for(let t in r.responses){let n=r.responses[t];
16n.bodyMapper&&n.bodyMapper.type.name===ii.Stream&&e.add(Number(t))}return e}function si(r){let{parameterPath:e,mapper:t}=r,n;return typeof e=="string"?n=e:Array.isArray(e)?n=e.join("."):n=t.serializedName,n}var pA="serializationPolicy";function Du(r={}){let e=r.stringifyXML;return{name:pA,sendRequest(n,i){return p(this,null,function*(){let s=Vi(n),o=s?.operationSpec,a=s?.operationArguments;return o&&a&&(u4(n,a,o),p4(n,a,o,e)),i(n)})}}}function u4(r,e,t){if(t.headerParameters)for(let i of t.headerParameters){let s=As(e,i);if(s!=null||i.mapper.required){s=t.serializer.serialize(i.mapper,s,si(i));let o=i.mapper.headerCollectionPrefix;if(o)for(let a of Object.keys(s))r.headers.set(o+a,s[a]);else r.headers.set(i.mapper.serializedName||si(i),s)}}let n=e.options?.requestOptions?.customHeaders;if(n)for(let i of Object.keys(n))r.headers.set(i,n[i])}function p4(r,e,t,n=function(){throw new Error("XML serialization unsupported!")}){let i=e.options?.serializerOptions,s={xml:{rootName:i?.xml.rootName??"",includeRoot:i?.xml.includeRoot??!1,xmlCharKey:i?.xml.xmlCharKey??Wi}},o=s.xml.xmlCharKey;if(t.requestBody&&t.requestBody.mapper){r.body=As(e,t.requestBody);let a=t.requestBody.mapper,{required:c,serializedName:l,xmlName:d,xmlElementName:u,xmlNamespace:h,xmlNamespacePrefix:g,nullable:y}=a,S=a.type.name;try{if(r.body!==void 0&&r.body!==null||y&&r.body===null||c){let C=si(t.requestBody);r.body=t.serializer.serialize(a,r.body,C,s);let N=S===ii.Stream;if(t.isXML){let T=g?`xmlns:${g}`:"xmlns",I=f4(h,T,S,r.body,s);S===ii.Sequence?r.body=n(h4(I,u||d||l,T,h),{rootName:d||l,xmlCharKey:o}):N||(r.body=n(I,{rootName:d||l,xmlCharKey:o}))}else{if(S===ii.String&&(t.contentType?.match("text/plain")||t.mediaType==="text"))return;N||(r.body=JSON.stringify(r.body))}}}catch(C){throw new Error(`Error "${C.message}" occurred in serializing the payload - ${JSON.stringify(l,void 0," ")}.`)}}else if(t.formDataParameters&&t.formDataParameters.length>0){r.formData={};for(let a of t.formDataParameters){let c=As(e,a);if(c!=null){let l=a.mapper.serializedName||si(a);r.formData[l]=t.serializer.serialize(a.mapper,c,si(a),s)}}}}function f4(r,e,t,n,i){if(r&&!["Composite","Sequence","Dictionary"].includes(t)){let s={};return s[i.xml.xmlCharKey]=n,s[St]={[e]:r},s}return n}function h4(r,e,t,n){if(Array.isArray(r)||(r=[r]),!t||!n)return{[e]:r};let i={[e]:r};return i[St]={[t]:n},i}function Cl(r={}){let e=Wx(r??{});return r.credentialOptions&&e.addPolicy(Ba({credential:r.credentialOptions.credential,scopes:r.credentialOptions.credentialScopes})),e.addPolicy(Du(r.serializationOptions),{phase:"Serialize"}),e.addPolicy(rb(r.deserializationOptions),{phase:"Deserialize"}),e}var nb;function fA(){return nb||(nb=Sl()),nb}var g4={CSV:",",SSV:" ",Multi:"Multi",TSV:" ",Pipes:"|"};function gA(r,e,t,n){let i=y4(e,t,n),s=!1,o=hA(r,i);if(e.path){let l=hA(e.path,i);e.path==="/{nextLink}"&&l.startsWith("/")&&(l=l.substring(1)),x4(l)?(o=l,s=!0):o=b4(o,l)}let{queryParams:a,sequenceParams:c}=S4(e,t,n);return o=C4(o,a,c,s),o}function hA(r,e){let t=r;for(let[n,i]of e)t=t.split(n).join(i);return t}function y4(r,e,t){let n=new Map;if(r.urlParameters?.length)for(let i of r.urlParameters){let s=As(e,i,t),o=si(i);s=r.serializer.serialize(i.mapper,s,o),i.skipEncoding||(s=encodeURIComponent(s)),n.set(`{${i.mapper.serializedName||o}}`,s)}return n}function x4(r){return r.includes("://")}function b4(r,e){if(!e)return r;let t=new URL(r),n=t.pathname;n.endsWith("/")||(n=`${n}/`),e.startsWith("/")&&(e=e.substring(1));let i=e.indexOf("?");if(i!==-1){let s=e.substring(0,i),o=e.substring(i+1);n=n+s,o&&(t.search=t.search?`${t.search}&${o}`:o)}else n=n+e;return t.pathname=n,t.toString()}function S4(r,e,t){let n=new Map,i=new Set;if(r.queryParameters?.length)for(let s of r.queryParameters){s.mapper.type.name==="Sequence"&&s.mapper.serializedName&&i.add(s.mapper.serializedName);let o=As(e,s,t);if(o!=null||s.mapper.required){o=r.serializer.serialize(s.mapper,o,si(s));let a=s.collectionFormat?g4[s.collectionFormat]:"";if(Array.isArray(o)&&(o=o.map(c=>c??"")),s.collectionFormat==="Multi"&&o.length===0)continue;Array.isArray(o)&&(s.collectionFormat==="SSV"||s.collectionFormat==="TSV")&&(o=o.join(a)),s.skipEncoding||(Array.isArray(o)?o=o.map(c=>encodeURIComponent(c)):o=encodeURIComponent(o)),Array.isArray(o)&&(s.collectionFormat==="CSV"||s.collectionFormat==="Pipes")&&(o=o.join(a)),n.set(s.mapper.serializedName||si(s),o)}}return{queryParams:n,sequenceParams:i}}function P4(r){let e=new Map;if(!r||r[0]!=="?")return e;r=r.slice(1);let t=r.split("&");for(let n of t){let[i,s]=n.split("=",2),o=e.get(i);o?Array.isArray(o)?o.push(s):e.set(i,[o,s]):e.set(i,s)}return e}function C4(r,e,t,n=!1){if(e.size===0)return r;let i=new URL(r),s=P4(i.search);for(let[a,c]of e){let l=s.get(a);if(Array.isArray(l))if(Array.isArray(c)){l.push(...c);let d=new Set(l);s.set(a,Array.from(d))}else l.push(c);else l?(Array.isArray(c)?c.unshift(l):t.has(a)&&s.set(a,[l,c]),n||s.set(a,c)):s.set(a,c)}let o=[];for(let[a,c]of s)if(typeof c=="string")o.push(`${a}=${c}`);else if(Array.isArray(c))for(let l of c)o.push(`${a}=${l}`);else o.push(`${a}=${c}`);return i.search=o.length?`?${o.join("&")}`:"",i.toString()}var ib=un("core-client");var El=class{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){if(this._requestContentType=e.requestContentType,this._endpoint=e.endpoint??e.baseUri,e.baseUri&&ib.warning("The baseUri option for S
16DK Clients has been deprecated, please use endpoint instead."),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||fA(),this.pipeline=e.pipeline||E4(e),e.additionalPolicies?.length)for(let{policy:t,position:n}of e.additionalPolicies){let i=n==="perRetry"?"Sign":void 0;this.pipeline.addPolicy(t,{afterPhase:i})}}sendRequest(e){return p(this,null,function*(){return this.pipeline.sendRequest(this._httpClient,e)})}sendOperationRequest(e,t){return p(this,null,function*(){let n=t.baseUrl||this._endpoint;if(!n)throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.");let i=gA(n,t,e,this),s=Pl({url:i});s.method=t.httpMethod;let o=Vi(s);o.operationSpec=t,o.operationArguments=e;let a=t.contentType||this._requestContentType;a&&t.requestBody&&s.headers.set("Content-Type",a);let c=e.options;if(c){let l=c.requestOptions;l&&(l.timeout&&(s.timeout=l.timeout),l.onUploadProgress&&(s.onUploadProgress=l.onUploadProgress),l.onDownloadProgress&&(s.onDownloadProgress=l.onDownloadProgress),l.shouldDeserialize!==void 0&&(o.shouldDeserialize=l.shouldDeserialize),l.allowInsecureConnection&&(s.allowInsecureConnection=!0)),c.abortSignal&&(s.abortSignal=c.abortSignal),c.tracingOptions&&(s.tracingOptions=c.tracingOptions)}this._allowInsecureConnection&&(s.allowInsecureConnection=!0),s.streamResponseStatusCodes===void 0&&(s.streamResponseStatusCodes=uA(t));try{let l=yield this.sendRequest(s),d=Jx(l,t.responses[l.status]);return c?.onResponse&&c.onResponse(l,d),d}catch(l){if(typeof l=="object"&&l?.response){let d=l.response,u=Jx(d,t.responses[l.statusCode]||t.responses.default);l.details=u,c?.onResponse&&c.onResponse(d,u,l)}throw l}})}};function E4(r){let e=N4(r),t=r.credential&&e?{credentialScopes:e,credential:r.credential}:void 0;return Cl(E(x({},r),{credentialOptions:t}))}function N4(r){if(r.credentialScopes)return r.credentialScopes;if(r.endpoint)return`${r.endpoint}/.default`;if(r.baseUri)return`${r.baseUri}/.default`;if(r.credential&&!r.credentialScopes)throw new Error("When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy")}var yA={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function w4(r){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(r)}var Lu=r=>p(null,null,function*(){let e=A4(r.request),t=T4(r.response);if(t){let n=_4(t),i=v4(r,n),s=R4(n);if(!s)return!1;let o=yield r.getAccessToken(i,E(x({},e),{tenantId:s}));return o?(r.request.headers.set(yA.HeaderConstants.AUTHORIZATION,`${o.tokenType??"Bearer"} ${o.token}`),!0):!1}return!1});function R4(r){let n=new URL(r.authorization_uri).pathname.split("/")[1];if(n&&w4(n))return n}function v4(r,e){if(!e.resource_id)return r.scopes;let t=new URL(e.resource_id);t.pathname=yA.DefaultScope;let n=t.toString();return n==="https://disk.azure.com/.default"&&(n="https://disk.azure.com//.default"),[n]}function T4(r){let e=r.headers.get("WWW-Authenticate");if(r.status===401&&e)return e}function _4(r){return`${r.slice(7).trim()} `.split(" ").filter(i=>i).map(i=>(([s,o])=>({[s]:o}))(i.trim().split("="))).reduce((i,s)=>x(x({},i),s),{})}function A4(r){return{abortSignal:r.abortSignal,requestOptions:{timeout:r.timeout},tracingOptions:r.tracingOptions}}var xA=Symbol("Original PipelineRequest"),I4=Symbol.for("@azure/core-client original request");function wl(r,e={}){let n=r[xA],i=Ki(r.headers.toJson({preserveCase:!0}));if(n)return n.headers=i,n;{let s=Pl({url:r.url,method:r.method,headers:i,withCredentials:r.withCredentials,timeout:r.timeout,requestId:r.requestId,abortSignal:r.abortSignal,body:r.body,formData:r.formData,disableKeepAlive:!!r.keepAlive,onDownloadProgress:r.onDownloadProgress,onUploadProgress:r.onUploadProgress,proxySettings:r.proxySettings,streamResponseStatusCodes:r.streamResponseStatusCodes,agent:r.agent,requestOverrides:r.requestOverrides});return e.originalRequest&&(s[I4]=e.originalRequest),s}}function Co(r,e){let t=e?.originalRequest??r,n={url:r.url,method:r.method,headers:Rl(r.headers),withCredentials:r.withCredentials,timeout:r.timeout,requestId:r.headers.get("x-ms-client-request-id")||r.requestId,abortSignal:r.abortSignal,body:r.body,formData:r.formData,keepAlive:!!r.disableKeepAlive,onDownloadProgress:r.onDownloadProgress,onUploadProgress:r.onUploadProgress,proxySettings:r.proxySettings,streamResponseStatusCodes:r.streamResponseStatusCodes,agent:r.agent,requestOverrides:r.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};return e?.createProxy?new Proxy(n,{get(i,s,o){return s===xA?r:s==="clone"?()=>Co(wl(n,{originalRequest:t}),{createProxy:!0,originalRequest:t}):Reflect.get(i,s,o)},set(i,s,o,a){return s==="keepAlive"&&(r.disableKeepAlive=!o),typeof s=="string"&&["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"].includes(s)&&(r[s]=o),Reflect.set(i,s,o,a)}}):n}function Rl(r){return new sb(r.toJSON({preserveCase:!0}))}function Nl(r){return r.toLowerCase()}var sb=class r{_headersMap;constructor(e){if(this._headersMap={},e)for(let t in e)this.set(t,e[t])}set(e,t){this._headersMap[Nl(e)]={name:e,value:t.toString()}}get(e){let t=this._headersMap[Nl(e)];return t?t.value:void 0}contains(e){return!!this._headersMap[Nl(e)]}remove(e){let t=this.contains(e);return delete this._headersMap[Nl(e)],t}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){let e=[];for(let t in this._headersMap)e.push(this._headersMap[t]);return e}headerNames(){let e=[],t=this.headersArray();for(let n=0;n<t.length;++n)e.push(t[n].name);return e}headerValues(){let e=[],t=this.headersArray();for(let n=0;n<t.length;++n)e.push(t[n].value);return e}toJson(e={}){let t={};if(e.preserveCase)for(let n in this._headersMap){let i=this._headersMap[n];t[i.name]=i.value}else for(let n in this._headersMap){let i=this._headersMap[n];t[Nl(i.name)]=i.value}return t}toString(){return JSON.stringify(this.toJson({preserveCase:!0}))}clone(){let e={};for(let t in this._headersMap){let n=this._headersMap[t];e[n.name]=n.value}return new r(e)}};var bA=Symbol("Original FullOperationResponse");function zu(r,e){let t=Co(r.request),n=Rl(r.headers);return e?.createProxy?new Proxy(r,{get(i,s,o){return s==="headers"?n:s==="request"?t:s===bA?r:Reflect.get(i,s,o)},set(i,s,o,a){return s==="headers"?n=o:s==="request"&&(t=o),Reflect.set(i,s,o,a)}}):E(x({},r),{request:t,headers:n})}function Uu(r){let t=r[bA],n=Ki(r.headers.toJson({preserveCase:!0}));return t?(t.headers=n,t):E(x({},r),{headers:n,request:wl(r.request)})}
16var vl=class r extends El{constructor(e){super(e),e.keepAliveOptions?.enable===!1&&!tA(this.pipeline)&&this.pipeline.addPolicy(eA()),e.redirectOptions?.handleRedirects===!1&&this.pipeline.removePolicy({name:Ax})}sendOperationRequest(e,t){return p(this,null,function*(){let n=e?.options?.onResponse,i;function s(a,c,l){i=a,n&&n(a,c,l)}e.options=E(x({},e.options),{onResponse:s});let o=yield Tn(r.prototype,this,"sendOperationRequest").call(this,e,t);return i&&Object.defineProperty(o,"_response",{value:zu(i)}),o})}};var M4={log(r,e){},shouldLog(r){return!1}},SA="RequestPolicyFactoryPolicy";function ob(r){let e=r.slice().reverse();return{name:SA,sendRequest(n,i){return p(this,null,function*(){let s={sendRequest(l){return p(this,null,function*(){let d=yield i(wl(l));return zu(d,{createProxy:!0})})}};for(let l of e)s=l.create(s,M4);let o=Co(n,{createProxy:!0}),a=yield s.sendRequest(o);return Uu(a)})}}}function ab(r){return{sendRequest:e=>p(null,null,function*(){let t=yield r.sendRequest(Co(e,{createProxy:!0}));return Uu(t)})}}var Eo="$",qu="_";if(!document||!DOMParser||!Node||!XMLSerializer)throw new Error('This library depends on the following DOM objects: ["document", "DOMParser", "Node", "XMLSerializer"] to parse XML, but some of these are undefined. You may provide a polyfill to make these globally available in order to support your environment. For more information, please refer to https://aka.ms/azsdk/js/web-workers. ');var No;try{typeof self.trustedTypes<"u"&&(No=self.trustedTypes.createPolicy("@azure/core-xml#xml.browser",{createHTML:r=>r}))}catch{console.warn('Could not create trusted types policy "@azure/core-xml#xml.browser"')}var Tl=document.implementation.createDocument(null,null,null),PA=new DOMParser;function mb(r,e={}){var t,n,i,s,o,a;try{let c={rootName:(t=e.rootName)!==null&&t!==void 0?t:"",includeRoot:(n=e.includeRoot)!==null&&n!==void 0?n:!1,xmlCharKey:(i=e.xmlCharKey)!==null&&i!==void 0?i:qu,cdataPropName:(s=e.cd
16ataPropName)!==null&&s!==void 0?s:"__cdata",stopNodes:(o=e.stopNodes)!==null&&o!==void 0?o:[]},l=PA.parseFromString((a=No?.createHTML(r))!==null&&a!==void 0?a:r,"application/xml");O4(l);let d;return c.includeRoot?d=cb(l,c):d=cb(l.childNodes[0],c),Promise.resolve(d)}catch(c){return Promise.reject(c)}}var _l;function k4(){var r,e;if(_l===void 0)try{let t=(r=No?.createHTML("INVALID"))!==null&&r!==void 0?r:"INVALID";_l=(e=PA.parseFromString(t,"text/xml").getElementsByTagName("parsererror")[0].namespaceURI)!==null&&e!==void 0?e:""}catch{_l=""}return _l}function O4(r){let e=r.getElementsByTagName("parsererror");if(e.length>0&&k4()){for(let t=0;t<e.length;t++)if(e[t].namespaceURI===_l)throw new Error(e[t].innerHTML)}}function D4(r){return!!r.attributes}function L4(r){return D4(r)&&r.hasAttributes()?r:void 0}function cb(r,e){var t;let n={},i=r.childNodes.length,s=r.childNodes[0],o=s&&i===1&&s.nodeType===Node.TEXT_NODE&&s.nodeValue||void 0,a=L4(r);if(a){n[Eo]={};for(let c=0;c<a.attributes.length;c++){let l=a.attributes[c];n[Eo][l.nodeName]=l.nodeValue}o&&(n[e.xmlCharKey]=o)}else i===0?n="":o&&(n=o);if(!o)for(let c=0;c<i;c++){let l=r.childNodes[c];if(l?.nodeType===Node.CDATA_SECTION_NODE)n=l.textContent;else if(((t=l?.firstChild)===null||t===void 0?void 0:t.nodeType)===Node.CDATA_SECTION_NODE)n[l.nodeName]=l.textContent;else if(l.nodeType!==Node.TEXT_NODE){let d=cb(l,e);n[l.nodeName]?Array.isArray(n[l.nodeName])?n[l.nodeName].push(d):n[l.nodeName]=[n[l.nodeName],d]:n[l.nodeName]=d}}return n}var z4=new XMLSerializer;function Hu(r,e={}){var t,n,i,s,o;let a={rootName:(t=e.rootName)!==null&&t!==void 0?t:"root",includeRoot:(n=e.includeRoot)!==null&&n!==void 0?n:!1,xmlCharKey:(i=e.xmlCharKey)!==null&&i!==void 0?i:qu,cdataPropName:(s=e.cd
16ataPropName)!==null&&s!==void 0?s:"__cdata",stopNodes:(o=e.stopNodes)!==null&&o!==void 0?o:[]},c=lb(r,a.rootName,a)[0];return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+z4.serializeToString(c).replace(/ xmlns=""/g,"")}function U4(r){let e=[];for(let t of Object.keys(r)){let n=Tl.createAttribute(t);n.value=r[t].toString(),e.push(n)}return e}function lb(r,e,t){var n;if(r==null||typeof r=="string"||typeof r=="number"||typeof r=="boolean"){let i=Tl.createElement(e);return i.textContent=r==null?"":r.toString(),[i]}else if(Array.isArray(r)){let i=[];for(let s of r)for(let o of lb(s,e,t))i.push(o);return i}else if(typeof r=="object"){let i;!((n=r[Eo])===null||n===void 0)&&n.xmlns?i=Tl.createElementNS(r[Eo].xmlns,e):i=Tl.createElement(e);for(let s of Object.keys(r))if(s===Eo)for(let o of U4(r[s]))i.attributes.setNamedItem(o);else if(s===t.xmlCharKey)i.textContent=r[s].toString();else if(s===t.cdataPropName){let o=Tl.createCDATASection(r[s].toString());i.appendChild(o)}else for(let o of lb(r[s],s,t))i.appendChild(o);return[i]}else throw new Error(`Illegal value passed to buildObject: ${r}`)}var Fu=un("storage-blob");var $u=class{};var db;function ub(){return db||(db=Sl()),db}var oi=class{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e,this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}};var Xi={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}},Bn={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};function Is(r,e,t){let n=new URL(r),i=encodeURIComponent(e),s=t?encodeURIComponent(t):void 0,o=n.search===""?"?":n.search,a=[];for(let c of o.slice(1).split("&"))if(c){let[l]=c.split("=",2);l!==i&&a.push(c)}return s&&a.push(`${i}=${s}`),n.search=a.length?`?${a.join("&")}`:"",n.toString()}function ju(r,e){let t=new URL(r);return t.hostname=e,t.toString()}function Gu(r,e,t){return p(this,null,function*(){return new Promise((n,i)=>{let s,o=()=>{s!==void 0&&clearTimeout(s),i(t)};s=setTimeout(()=>{e!==void 0&&e.removeEventListener("abort",o),n()},r),e!==void 0&&e.addEventListener("abort",o)})})}var Al=class extends oi{constructor(e,t){super(e,t)}sendRequest(e){return p(this,null,function*(){return Ke?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD")&&(e.url=Is(e.url,Xi.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(Bn.COOKIE),e.headers.remove(Bn.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))})}};var Il=class{create(e,t){return new Al(e,t)}};var Ml=class extends oi{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}};var Bl=class extends Ml{constructor(e,t){super(e,t)}};var kl=class{create(e,t){throw new Error("Method should be implemented in children classes.")}};var rt=class extends kl{create(e,t){return new Bl(e,t)}};var ht=class{};var Tt=un("storage-common");var kn=function(r){return r[r.EXPONENTIAL=0]="EXPONENTIAL",r[r.FIXED=1]="FIXED",r}(kn||{});var Ms={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:kn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},q4=new ji("The operation was aborted."),Ol=class extends oi{retryOptions;constructor(e,t,n=Ms){super(e,t),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Ms.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Ms.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Ms.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Ms.maxRetryDelayInMs):Ms.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Ms.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Ms.secondaryHost}}sendRequest(e){return p(this,null,function*(){return this.attemptSendRequest(e,!1,1)})}attemptSendRequest(e,t,n){return p(this,null,function*(){let i=e.clone(),s=t||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;s||(i.url=ju(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=Is(i.url,Xi.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(Tt.info(`RetryPolicy: =====> Try=${n} ${s?"Primary":"Secondary"}`),o=yield this._nextPolicy.sendRequest(i),!this.shouldRetry(s,n,o))return o;t=t||!s&&o.status===404}catch(a){if(Tt.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(s,n,o,a))throw a}return yield this.delay(s,n,e.abortSignal),this.attemptSendRequest(e,t,++n)})}shouldRetry(e,t,n,i){if(t>=this.retryOptions.maxTries)return Tt.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(let o of s)if(i.name.toUpperCase().includes(o)||i.message.toUpperCase().includes(o)||i.code&&i.code.toString().toUpperCase()===o)return Tt.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||i){let o=n?n.status:i?i.statusCode:0;if(!e&&o===404)return Tt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return Tt.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(Bn.X_MS_CopySourceErrorCode);
16if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return i?.code==="PARSE_ERROR"&&i?.message.startsWith('Error "Error: Unclosed root tag')?(Tt.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}delay(e,t,n){return p(this,null,function*(){let i=0;if(e)switch(this.retryOptions.retryPolicyType){case kn.EXPONENTIAL:i=Math.min((Math.pow(2,t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case kn.FIXED:i=this.retryOptions.retryDelayInMs;break}else i=Math.random()*1e3;return Tt.info(`RetryPolicy: Delay for ${i}ms`),Gu(i,n,q4)})}};var Dl=class{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new Ol(e,t,this.retryOptions)}};var H4="storageBrowserPolicy";function pb(){return{name:H4,sendRequest(e,t){return p(this,null,function*(){return Ke||((e.method==="GET"||e.method==="HEAD")&&(e.url=Is(e.url,Xi.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.delete(Bn.COOKIE),e.headers.delete(Bn.CONTENT_LENGTH)),t(e)})}}}var F4="StorageCorrectContentLengthPolicy";function fb(){return{name:F4,sendRequest(e,t){return p(this,null,function*(){return t(e)})}}}var $4="storageRetryPolicy",Oa={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:kn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},j4=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],G4=new ji("The operation was aborted.");function hb(r={}){let e=r.retryPolicyType??Oa.retryPolicyType,t=r.maxTries??Oa.maxTries,n=r.retryDelayInMs??Oa.retryDelayInMs,i=r.maxRetryDelayInMs??Oa.maxRetryDelayInMs,s=r.secondaryHost??Oa.secondaryHost,o=r.tryTimeoutInMs??Oa.tryTimeoutInMs;function a({isPrimaryRetry:d,attempt:u,response:h,error:g}){if(u>=t)return Tt.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${t}, no further try.`),!1;if(g){for(let y of j4)if(g.name.toUpperCase().includes(y)||g.message.toUpperCase().includes(y)||g.code&&g.code.toString().toUpperCase()===y)return Tt.info(`RetryPolicy: Network error ${y} found, will retry.`),!0;if(g?.code==="PARSE_ERROR"&&g?.message.startsWith('Error "Error: Unclosed root tag'))return Tt.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0}if(h||g){let y=h?.status??g?.statusCode??0;if(!d&&y===404)return Tt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(y===503||y===500)return Tt.info(`RetryPolicy: Will retry for status code ${y}.`),!0}if(h&&h?.status>=400){let y=h.headers.get(Bn.X_MS_CopySourceErrorCode);if(y!==void 0)switch(y){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return!1}function c(d,u){let h=0;if(d)switch(e){case kn.EXPONENTIAL:h=Math.min((Math.pow(2,u-1)-1)*n,i);break;case kn.FIXED:h=n;break}else h=Math.random()*1e3;return Tt.info(`RetryPolicy: Delay for ${h}ms`),h}return{name:$4,sendRequest(d,u){return p(this,null,function*(){o&&(d.url=Is(d.url,Xi.Parameters.TIMEOUT,String(Math.floor(o/1e3))));let h=d.url,g=s?ju(d.url,s):void 0,y=!1,S=1,C=!0,N,T;for(;C;){let I=y||!g||!["GET","HEAD","OPTIONS"].includes(d.method)||S%2===1;d.url=I?h:g,N=void 0,T=void 0;try{Tt.info(`RetryPolicy: =====> Try=${S} ${I?"Primary":"Secondary"}`),N=yield u(d),y=y||!I&&N.status===404}catch(k){if(Po(k))Tt.error(`RetryPolicy: Caught error, message: ${k.message}, code: ${k.code}`),T=k;else throw Tt.error(`RetryPolicy: Caught error, message: ${Ts(k)}`),k}C=a({isPrimaryRetry:I,attempt:S,response:N,error:T}),C&&(yield Gu(c(I,S),d.abortSignal,G4)),S++}if(N)return N;throw T??new Gi("RetryPolicy failed without known error.")})}}}var K4="storageSharedKeyCredentialPolicy";function gb(r){return{name:K4,sendRequest(t,n){return p(this,null,function*(){return n(t)})}}}var W4="storageRequestFailureDetailsParserPolicy";function CA(){return{name:W4,sendRequest(e,t){return p(this,null,function*(){try{return yield t(e)}catch(n){throw typeof n=="object"&&n!==null&&n.response&&n.response.parsedBody&&n.response.parsedBody.code==="InvalidHeaderValue"&&n.response.parsedBody.HeaderName==="x-ms-version"&&(n.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information. 17`),n}})}}}var Ku=class{};var Wu="12.31.0",Vu="2026-02-06";var Xu="https://storage.azure.com/.default",Qi={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var On="",yb="*",V4=1*1024*1024;var jCe=4*V4;var EA="AES256",NA="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",wA=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Mat
17ch","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],RA=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],vA="BlobUsesCustomerSpecifiedEncryption",TA="BlobDoesNotUseCustomerSpecifiedEncryption",_A=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Yi(r){if(!r||typeof r!="object")return!1;let e=r;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var Ll=class{factories;options;constructor(e,t={}){this.factories=e,this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function gt(r,e={}){r||(r=new rt);let t=new Ll([],e);return t._credential=r,t}function X4(r){let e=[Q4,AA,Y4,J4,Z4,e6,r6];if(r.factories.length){let t=r.factories.filter(n=>!e.some(i=>i(n)));if(t.length){let n=t.some(i=>t6(i));return{wrappedPolicies:ob(t),afterRetry:n}}}}function xb(r){let s=r.options,{httpClient:e}=s,t=an(s,["httpClient"]),n=r._coreHttpClient;n||(n=e?ab(e):ub(),r._coreHttpClient=n);let i=r._corePipeline;if(!i){let o=`azsdk-js-azure-storage-blob/${Wu}`,a=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${o}`:`${o}`;i=Cl(E(x({},t),{loggingOptions:{additionalAllowedHeaderNames:wA,additionalAllowedQueryParameters:RA,logger:Fu.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:Hu,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:mb,serializerOptions:{xml:{xmlCharKey:"#"}}}})),i.removePolicy({phase:"Retry"}),i.removePolicy({name:Lx}),i.addPolicy(fb()),i.addPolicy(hb(t.retryOptions),{phase:"Retry"}),i.addPolicy(CA()),i.addPolicy(pb());let c=X4(r);c&&i.addPolicy(c.wrappedPolicies,c.afterRetry?{afterPhase:"Retry"}:void 0);let l=bb(r);Xr(l)?i.addPolicy(Ba({credential:l,scopes:t.audience??Xu,challengeCallbacks:{authorizeRequestOnChallenge:Lu}}),{phase:"Sign"}):l instanceof ht&&i.addPolicy(gb({accountName:l.accountName,accountKey:l.accountKey}),{phase:"Sign"}),r._corePipeline=i}return E(x({},t),{allowInsecureConnection:!0,httpClient:n,pipeline:i})}function bb(r){if(r._credential)return r._credential;let e=new rt;for(let t of r.factories)if(Xr(t.credential))e=t.credential;else if(AA(t))return t;return e}function AA(r){return r instanceof ht?!0:r.constructor.name==="StorageSharedKeyCredential"}function Q4(r){return r instanceof rt?!0:r.constructor.name==="AnonymousCredential"}function Y4(r){return Xr(r.credential)}function J4(r){return r instanceof Il?!0:r.constructor.name==="StorageBrowserPolicyFactory"}function Z4(r){return r instanceof Dl?!0:r.constructor.name==="StorageRetryPolicyFactory"}function e6(r){return r.constructor.name==="TelemetryPolicyFactory"}function t6(r){return r.constructor.name==="InjectorPolicyFactory"}function r6(r){let e=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"],t={sendRequest:o=>p(null,null,function*(){return{request:o,headers:o.headers.clone(),status:500}})},n={log(o,a){},shouldLog(o){return!1}},s=r.create(t,n).constructor.name;return e.some(o=>s.startsWith(o))}var Yr={};
17U3(Yr,{AccessPolicy:()=>f6,AppendBlobAppendBlockExceptionHeaders:()=>U0,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>H0,AppendBlobAppendBlockFromUrlHeaders:()=>q0,AppendBlobAppendBlockHeaders:()=>z0,AppendBlobCreateExceptionHeaders:()=>L0,AppendBlobCreateHeaders:()=>D0,AppendBlobSealExceptionHeaders:()=>$0,AppendBlobSealHeaders:()=>F0,ArrowConfiguration:()=>T6,ArrowField:()=>_6,BlobAbortCopyFromURLExceptionHeaders:()=>l0,BlobAbortCopyFromURLHeaders:()=>c0,BlobAcquireLeaseExceptionHeaders:()=>WS,BlobAcquireLeaseHeaders:()=>KS,BlobBreakLeaseExceptionHeaders:()=>t0,BlobBreakLeaseHeaders:()=>e0,BlobChangeLeaseExceptionHeaders:()=>ZS,BlobChangeLeaseHeaders:()=>JS,BlobCopyFromURLExceptionHeaders:()=>a0,BlobCopyFromURLHeaders:()=>o0,BlobCreateSnapshotExceptionHeaders:()=>n0,BlobCreateSnapshotHeaders:()=>r0,BlobDeleteExceptionHeaders:()=>IS,BlobDeleteHeaders:()=>AS,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>HS,BlobDeleteImmutabilityPolicyHeaders:()=>qS,BlobDownloadExceptionHeaders:()=>vS,BlobDownloadHeaders:()=>Yu,BlobFlatListSegment:()=>h6,BlobGetAccountInfoExceptionHeaders:()=>u0,BlobGetAccountInfoHeaders:()=>d0,BlobGetPropertiesExceptionHeaders:()=>_S,BlobGetPropertiesHeaders:()=>TS,BlobGetTagsExceptionHeaders:()=>h0,BlobGetTagsHeaders:()=>f0,BlobHierarchyListSegment:()=>b6,BlobItemInternal:()=>g6,BlobName:()=>y6,BlobPrefix:()=>S6,BlobPropertiesInternal:()=>x6,BlobQueryExceptionHeaders:()=>p0,BlobQueryHeaders:()=>Zu,BlobReleaseLeaseExceptionHeaders:()=>XS,BlobReleaseLeaseHeaders:()=>VS,BlobRenewLeaseExceptionHeaders:()=>YS,BlobRenewLeaseHeaders:()=>QS,BlobServiceProperties:()=>zl,BlobServiceStatistics:()=>Sb,BlobSetExpiryExceptionHeaders:()=>OS,BlobSetExpiryHeaders:()=>kS,BlobSetHttpHeadersExceptionHeaders:()=>LS,BlobSetHttpHeadersHeaders:()=>DS,BlobSetImmutabilityPolicyExceptionHeaders:()=>US,BlobSetImmutabilityPolicyHeaders:()=>zS,BlobSetLegalHoldExceptionHeaders:()=>$S,BlobSetLegalHoldHeaders:()=>FS,BlobSetMetadataExceptionHeaders:()=>GS,BlobSetMetadataHeaders:()=>jS,BlobSetTagsExceptionHeaders:()=>y0,BlobSetTagsHeaders:()=>g0,BlobSetTierExceptionHeaders:()=>m0,BlobSetTierHeaders:()=>Ju,BlobStartCopyFromURLExceptionHeaders:()=>s0,BlobStartCopyFromURLHeaders:()=>i0,BlobTag:()=>u6,BlobTags:()=>ql,BlobUndeleteExceptionHeaders:()=>BS,BlobUndeleteHeaders:()=>MS,Block:()=>P6,BlockBlobCommitBlockListExceptionHeaders:()=>Z0,BlockBlobCommitBlockListHeaders:()=>J0,BlockBlobGetBlockListExceptionHeaders:()=>tP,BlockBlobGetBlockListHeaders:()=>eP,BlockBlobPutBlobFromUrlExceptionHeaders:()=>W0,BlockBlobPutBlobFromUrlHeaders:()=>K0,BlockBlobStageBlockExceptionHeaders:()=>X0,BlockBlobStageBlockFromURLExceptionHeaders:()=>Y0,BlockBlobStageBlockFromURLHeaders:()=>Q0,BlockBlobStageBlockHeaders:()=>V0,BlockBlobUploadExceptionHeaders:()=>G0,BlockBlobUploadHeaders:()=>j0,BlockList:()=>vb,BlockLookupList:()=>Rb,ClearRange:()=>E6,ContainerAcquireLeaseExceptionHeaders:()=>uS,ContainerAcquireLeaseHeaders:()=>dS,ContainerBreakLeaseExceptionHeaders:()=>xS,ContainerBreakLeaseHeaders:()=>yS,ContainerChangeLeaseExceptionHeaders:()=>SS,ContainerChangeLeaseHeaders:()=>bS,ContainerCreateExceptionHeaders:()=>Kb,ContainerCreateHeaders:()=>Gb,ContainerDeleteExceptionHeaders:()=>Qb,ContainerDeleteHeaders:()=>Xb,ContainerFilterBlobsExceptionHeaders:()=>mS,ContainerFilterBlobsHeaders:()=>lS,ContainerGetAccessPolicyExceptionHeaders:()=>eS,ContainerGetAccessPolicyHeaders:()=>Zb,ContainerGetAccountInfoExceptionHeaders:()=>RS,ContainerGetAccountInfoHeaders:()=>wS,ContainerGetPropertiesExceptionHeaders:()=>Vb,ContainerGetPropertiesHeaders:()=>Wb,ContainerItem:()=>l6,ContainerListBlobFlatSegmentExceptionHeaders:()=>CS,ContainerListBlobFlatSegmentHeaders:()=>PS,ContainerListBlobHierarchySegmentExceptionHeaders:()=>NS,ContainerListBlobHierarchySegmentHeaders:()=>ES,ContainerProperties:()=>m6,ContainerReleaseLeaseExceptionHeaders:()=>fS,ContainerReleaseLeaseHeaders:()=>pS,ContainerRenameExceptionHeaders:()=>oS,ContainerRenameHeaders:()=>sS,ContainerRenewLeaseExceptionHeaders:()=>gS,ContainerRenewLeaseHeaders:()=>hS,ContainerRestoreExceptionHeaders:()=>iS,ContainerRestoreHeaders:()=>
17nS,ContainerSetAccessPolicyExceptionHeaders:()=>rS,ContainerSetAccessPolicyHeaders:()=>tS,ContainerSetMetadataExceptionHeaders:()=>Jb,ContainerSetMetadataHeaders:()=>Yb,ContainerSubmitBatchExceptionHeaders:()=>cS,ContainerSubmitBatchHeaders:()=>aS,CorsRule:()=>o6,DelimitedTextConfiguration:()=>R6,FilterBlobItem:()=>d6,FilterBlobSegment:()=>Ul,GeoReplication:()=>c6,JsonTextConfiguration:()=>v6,KeyInfo:()=>Cb,ListBlobsFlatSegmentResponse:()=>Nb,ListBlobsHierarchySegmentResponse:()=>wb,ListContainersSegmentResponse:()=>Pb,Logging:()=>n6,Metrics:()=>s6,PageBlobClearPagesExceptionHeaders:()=>E0,PageBlobClearPagesHeaders:()=>C0,PageBlobCopyIncrementalExceptionHeaders:()=>O0,PageBlobCopyIncrementalHeaders:()=>k0,PageBlobCreateExceptionHeaders:()=>b0,PageBlobCreateHeaders:()=>x0,PageBlobGetPageRangesDiffExceptionHeaders:()=>_0,PageBlobGetPageRangesDiffHeaders:()=>T0,PageBlobGetPageRangesExceptionHeaders:()=>v0,PageBlobGetPageRangesHeaders:()=>R0,PageBlobResizeExceptionHeaders:()=>I0,PageBlobResizeHeaders:()=>A0,PageBlobUpdateSequenceNumberExceptionHeaders:()=>B0,PageBlobUpdateSequenceNumberHeaders:()=>M0,PageBlobUploadPagesExceptionHeaders:()=>P0,PageBlobUploadPagesFromURLExceptionHeaders:()=>w0,PageBlobUploadPagesFromURLHeaders:()=>N0,PageBlobUploadPagesHeaders:()=>S0,PageList:()=>Qu,PageRange:()=>C6,QueryFormat:()=>w6,QueryRequest:()=>Tb,QuerySerialization:()=>N6,RetentionPolicy:()=>i6,ServiceFilterBlobsExceptionHeaders:()=>jb,ServiceFilterBlobsHeaders:()=>$b,ServiceGetAccountInfoExceptionHeaders:()=>qb,ServiceGetAccountInfoHeaders:()=>Ub,ServiceGetPropertiesExceptionHeaders:()=>Mb,ServiceGetPropertiesHeaders:()=>Ib,ServiceGetStatisticsExceptionHeaders:()=>kb,ServiceGetStatisticsHeaders:()=>Bb,ServiceGetUserDelegationKeyExceptionHeaders:()=>zb,ServiceGetUserDelegationKeyHeaders:()=>Lb,ServiceListContainersSegmentExceptionHeaders:()=>Db,ServiceListContainersSegmentHeaders:()=>Ob,ServiceSetPropertiesExceptionHeaders:()=>Ab,ServiceSetPropertiesHeaders:()=>_b,ServiceSubmitBatchExceptionHeaders:()=>Fb,ServiceSubmitBatchHeaders:()=>Hb,SignedIdentifier:()=>p6,StaticWebsite:()=>a6,StorageError:()=>$,UserDelegationKey:()=>Eb});var zl={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:!0,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}},n6={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:!0,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:!0,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:!0,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:!0,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},i6={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}},s6={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},o6={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:!0,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:!0,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:!0,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:!0,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:!0,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}},a6={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}},$={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},copySourceStatusCode:{serializedName:"CopySourceStatusCode",xmlName:"CopySourceStatusCode",type:{name:"Number"}},copySourceErrorCode:{serializedName:"CopySourceErrorCode",xmlName:"CopySourceErrorCode",type:{name:"String"}},copySourceErrorMessage:{serializedName:"CopySourceErrorMessage",xmlName:"CopySourceErrorMessage",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}},authenticationErrorDetail:{serializedName:"AuthenticationErrorDetail",xmlName:"AuthenticationErrorDetail",type:{name:"String"}}}}},Sb={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}},c6={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:!0,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:!0,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}},Pb={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:!0,xmlName:"Containers",xmlIsWrapped:!0,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},l6={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},m6={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:!0,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:!0,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}},Cb={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:!0,xmlName:"Expiry",type:{name:"String"}}}}},Eb={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:!0,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:!0,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:!0,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:!0,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:!0,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:!0,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:!0,xmlName:"Value",type:{name:"String"}}}}},Ul={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},where:{serializedName:"Where",required:!0,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:!0,xmlName:"Blobs",xmlIsWrapped:!0,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},d6={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}},ql={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:!0,xmlName:"TagSet",xmlIsWrapped:!0,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}},u6={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:!0,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:!0,xmlName:"Value",type:{name:"String"}}}}},p6={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:!0,xmlName:"Id",type:{name:"String"}}
17,accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}},f6={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}},Nb={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},h6={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:!0,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}},g6={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:!0,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:!0,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}},y6={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:!0,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:!0,type:{name:"String"}}}}},x6={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:!0,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:!0,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}}
17,accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","rehydrate-pending-to-cold"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}},wb={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},b6={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:!0,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}},S6={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}},Rb={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},vb={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:!0,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:!0,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}},P6={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:!0,xmlName:"Size",type:{name:"Number"}}}}},Qu={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},C6={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:!0,xmlName:"End",type:{name:"Number"}}}}},E6={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:!0,xmlName:"End",type:{name:"Number"}}}}},Tb={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:!0,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:!0,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}},N6={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}},w6={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:!0,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}
17},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},R6={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}},v6={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}},T6={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:!0,xmlName:"Schema",xmlIsWrapped:!0,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}},_6={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:!0,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}},_b={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Ab={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Ib={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Mb={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Bb={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},kb={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Ob={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Db={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Lb={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},zb={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Ub={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},qb={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Hb={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"
17content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Fb={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},$b={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},jb={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}}
17,Gb={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Kb={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Wb={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Vb={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Xb={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Qb={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Yb={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Jb={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}}
17,Zb={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eS={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tS={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},rS={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},nS={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},iS={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},sS={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},oS={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},aS={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}},cS={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},lS={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},mS={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},dS={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},uS={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},pS={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},fS={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},hS={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},gS={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yS={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},xS={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}}
17,bS={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},SS={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},PS={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},CS={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ES={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},NS={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},wS={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}},RS={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Yu={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}}
17,contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}},vS={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},TS={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}}
17,contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_S={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},AS={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},IS={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},MS={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},BS={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},kS={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},OS={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},DS={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},LS={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}}
17,zS={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}},US={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},qS={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},HS={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},FS={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}},$S={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},jS={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},GS={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},KS={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},WS={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},VS={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},XS={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},QS={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},YS={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},JS={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},ZS={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},e0={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},t0={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},r0={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},n0={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},i0={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},s0={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},o0={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:!0,serializedName:"x-ms-copy-status",type:{name:"String"}}
17,contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},a0={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},c0={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},l0={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Ju={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},m0={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},d0={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}},u0={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Zu={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}}
17,contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}},p0={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},f0={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},h0={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},g0={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},y0={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},x0={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}}
17,contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},b0={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},S0={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},P0={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},C0={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},E0={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},N0={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}}
17,contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},w0={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},R0={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},v0={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},T0={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_0={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},A0={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},I0={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},M0={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},B0={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},k0={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},O0={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},D0={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}}
17,contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},L0={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},z0={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},U0={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},q0={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},H0={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},F0={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}},$0={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},j0={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}}
17,contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},G0={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},K0={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},W0={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},V0={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},X0={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Q0={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"
17content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Y0={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},J0={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Z0={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eP={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tP={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var ai={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},IA={parameterPath:"blobServiceProperties",mapper:zl},pn={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},j={parameterPath:"url",mapper:{serializedName:"url",required:!0,xmlName:"url",type:{name:"String"}},skipEncoding:!0},Hl={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:!0,serializedName:"restype",type:{name:"String"}}},fn={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:!0,serializedName:"
17comp",type:{name:"String"}}},G={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}},K={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:!0,serializedName:"x-ms-version",type:{name:"String"}}},W={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}},X={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},MA={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Fl={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:!0,serializedName:"comp",type:{name:"String"}}},$l={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}},ci={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}},li={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}},BA={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"},kA={parameterPath:"keyInfo",mapper:Cb},OA={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Da={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:!0,serializedName:"restype",type:{name:"String"}}},ep={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},tp={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Lt={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:!0,xmlName:"Content-Length",type:{name:"Number"}}},rp={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:!0,xmlName:"Content-Type",type:{name:"String"}}},np={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:!0,serializedName:"comp",type:{name:"String"}}},ip={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}},zt={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:!0,serializedName:"restype",type:{name:"String"}}},rr={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}},rP={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}},DA={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}},LA={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}},pe={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}},le={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}},me={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}},sp={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:!0,serializedName:"comp",type:{name:"String"}}},nP={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:!0,serializedName:"comp",type:{name:"String"}}},zA={parameterPath:["options","containerAcl"],mapper:{serializedName:"
17containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}},op={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:!0,serializedName:"comp",type:{name:"String"}}},UA={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}},qA={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}},HA={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:!0,serializedName:"comp",type:{name:"String"}}},FA={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:!0,xmlName:"x-ms-source-container-name",type:{name:"String"}}},$A={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}},hn={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:!0,serializedName:"comp",type:{name:"String"}}},ap={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},cp={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}},lp={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},mp={parameterPath:"action",mapper:{defaultValue:"release",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},Bs={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:!0,xmlName:"x-ms-lease-id",type:{name:"String"}}},dp={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},up={parameterPath:"action",mapper:{defaultValue:"break",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},pp={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}},fp={parameterPath:"action",mapper:{defaultValue:"change",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},hp={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:!0,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},iP={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:"CSV"},sP={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}},jA={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:!0,xmlName:"delimiter",type:{name:"String"}}},xr={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}},mi={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}},wo={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}},GA={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}},KA={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}},mt={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}},dt={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}},ut={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}},Te={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}},_e={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}},Se={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}},WA={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapsh
17ots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}},VA={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}},XA={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:!0,serializedName:"comp",type:{name:"String"}}},QA={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:!0,xmlName:"x-ms-expiry-option",type:{name:"String"}}},YA={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}},di={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}},ui={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}},pi={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}},fi={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}},hi={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}},gi={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}},oP={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Dn={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}},Ln={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}},JA={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:!0,serializedName:"comp",type:{name:"String"}}},ZA={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:!0,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},Pt={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}},eI={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Ji={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}},aP={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}},yi={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}},xi={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},bi={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}},Si={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}},gp={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}},Ro={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},zn={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}},tI={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}},Pi={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},rI={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:!0,serializedName:"x-ms-requires-sync",type:{name:"String"}}},Zi={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}},es={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}},yp={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}},ts={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}},nI={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:!0,serializedName:"
17comp",type:{name:"String"}}},iI={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:!0,serializedName:"x-ms-copy-action",type:{name:"String"}}},sI={parameterPath:"copyId",mapper:{serializedName:"copyid",required:!0,xmlName:"copyid",type:{name:"String"}}},oI={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:!0,serializedName:"comp",type:{name:"String"}}},aI={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:!0,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}},cI={parameterPath:["options","queryRequest"],mapper:Tb},lI={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:!0,serializedName:"comp",type:{name:"String"}}},cP={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:!0,serializedName:"comp",type:{name:"String"}}},lP={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}},mP={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},dP={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}},uP={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}},mI={parameterPath:["options","tags"],mapper:ql},gn={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}},Ci={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}},dI={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},pP={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:!0,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}},fP={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}},vo={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},To={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},_o={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},xp={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:!0,serializedName:"comp",type:{name:"String"}}},hP={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},bp={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}},Sp={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}},Pp={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}},uI={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},La={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},pI={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:!0,xmlName:"x-ms-source-range",type:{name:"String"}}},za={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}},fI={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:!0,xmlName:"x-ms-range",type:{name:"String"}}},gP={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:!0,serializedName:"
17comp",type:{name:"String"}}},hI={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}},gI={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}},yI={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:!0,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}},xI={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},bI={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},yP={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:!0,serializedName:"comp",type:{name:"String"}}},xP={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}},Cp={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}},Ep={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}},SI={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:!0,serializedName:"comp",type:{name:"String"}}},bP={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},PI={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}},SP={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:!0,serializedName:"comp",type:{name:"String"}}},PP={parameterPath:"blockId",mapper:{serializedName:"blockid",required:!0,xmlName:"blockid",type:{name:"String"}}},CI={parameterPath:"blocks",mapper:Rb},CP={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},EI={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:!0,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};var Np=class{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},A6)}getProperties(e){return this.client.sendOperationRequest({options:e},I6)}getStatistics(e){return this.client.sendOperationRequest({options:e},M6)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},B6)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},k6)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},O6)}submitBatch(e,t,n,i){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:i},D6)}filterBlobs(e){return this.client.sendOperationRequest({options:e},L6)}},ks=Qr(Yr,!0),A6={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:_b},default:{bodyMapper:$,headersMapper:Ab}},requestBody:IA,queryParameters:[Hl,fn,G],urlParameters:[j],headerParameters:[ai,pn,K,W],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ks},I6={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:zl,headersMapper:Ib},default:{bodyMapper:$,headersMapper:Mb}},queryParameters:[Hl,fn,G],urlParameters:[j],headerParameters:[K,W,X],isXML:!0,serializer:ks},M6={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:Sb,headersMapper:Bb},default:{bodyMapper:$,headersMapper:kb}},queryParameters:[Hl,G,MA],urlParameters:[j],headerParameters:[K,W,X],isXML:!0,serializer:ks},B6={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:Pb,headersMapper:Ob},default:{bodyMapper:$,headersMapper:Db}},queryParameters:[G,Fl,$l,ci,li,BA],urlParameters:[j],headerParameters:[K,W,X],isXML:!0,serializer:ks},k6={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:Eb,headersMapper:Lb},default:{bodyMapper:$,headersMapper:zb}},requestBody:kA,queryParameters:[Hl,G,OA],urlParameters:[j],headerParameters:[ai,pn,K,W],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ks},O6={path:"/",httpMethod:"GET",responses:{200:{headersMapper:Ub},default:{bodyMapper:$,headersMapper:qb}},queryParameters:[fn,G,Da],urlParameters:[j],headerParameters:[K,W,X],isXML:!0,serializer:ks},D6={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Hb},default:{bodyMapper:$,headersMapper:Fb}},requestBody:ep,queryParameters:[G,tp],urlParameters:[j],headerParameters:[pn,K,W,Lt,rp],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ks},L6={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:Ul,headersMapper:$b},default:{bodyMapper:$,headersMapper:jb}},queryParameters:[G,ci,li,np,ip],urlParameters:[j],headerParameters:[K,W,X],isXML:!0,serializer:ks};var wp=class{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},z6)}getProperties(e){return this.client.sendOperationRequest({options:e},U6)}delete(e){return this.client.sendOperationRequest({options:e}
17,q6)}setMetadata(e){return this.client.sendOperationRequest({options:e},H6)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},F6)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},$6)}restore(e){return this.client.sendOperationRequest({options:e},j6)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},G6)}submitBatch(e,t,n,i){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:i},K6)}filterBlobs(e){return this.client.sendOperationRequest({options:e},W6)}acquireLease(e){return this.client.sendOperationRequest({options:e},V6)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},X6)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Q6)}breakLease(e){return this.client.sendOperationRequest({options:e},Y6)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},J6)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},Z6)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},e8)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},t8)}},Ut=Qr(Yr,!0),z6={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Gb},default:{bodyMapper:$,headersMapper:Kb}},queryParameters:[G,zt],urlParameters:[j],headerParameters:[K,W,X,rr,rP,DA,LA],isXML:!0,serializer:Ut},U6={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:Wb},default:{bodyMapper:$,headersMapper:Vb}},queryParameters:[G,zt],urlParameters:[j],headerParameters:[K,W,X,pe],isXML:!0,serializer:Ut},q6={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:Xb},default:{bodyMapper:$,headersMapper:Qb}},queryParameters:[G,zt],urlParameters:[j],headerParameters:[K,W,X,pe,le,me],isXML:!0,serializer:Ut},H6={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Yb},default:{bodyMapper:$,headersMapper:Jb}},queryParameters:[G,zt,sp],urlParameters:[j],headerParameters:[K,W,X,rr,pe,le],isXML:!0,serializer:Ut},F6={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier"},headersMapper:Zb},default:{bodyMapper:$,headersMapper:eS}},queryParameters:[G,zt,nP],urlParameters:[j],headerParameters:[K,W,X,pe],isXML:!0,serializer:Ut},$6={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:tS},default:{bodyMapper:$,headersMapper:rS}},requestBody:zA,queryParameters:[G,zt,nP],urlParameters:[j],headerParameters:[ai,pn,K,W,rP,pe,le,me],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ut},j6={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:nS},default:{bodyMapper:$,headersMapper:iS}},queryParameters:[G,zt,op],urlParameters:[j],headerParameters:[K,W,X,UA,qA],isXML:!0,serializer:Ut},G6={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:sS},default:{bodyMapper:$,headersMapper:oS}},queryParameters:[G,zt,HA],urlParameters:[j],headerParameters:[K,W,X,FA,$A],isXML:!0,serializer:Ut},K6={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:aS},default:{bodyMapper:$,headersMapper:cS}},requestBody:ep,queryParameters:[G,tp,zt],urlParameters:[j],headerParameters:[pn,K,W,Lt,rp],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ut},W6={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Ul,headersMapper:lS},default:{bodyMapper:$,headersMapper:mS}},queryParameters:[G,ci,li,np,ip,zt],urlParameters:[j],headerParameters:[K,W,X],isXML:!0,serializer:Ut},V6={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:dS},default:{bodyMapper:$,headersMapper:uS}},queryParameters:[G,zt,hn],urlParameters:[j],headerParameters:[K,W,X,le,me,ap,cp,lp],isXML:!0,serializer:Ut},X6={path:"/{containerName}
17",httpMethod:"PUT",responses:{200:{headersMapper:pS},default:{bodyMapper:$,headersMapper:fS}},queryParameters:[G,zt,hn],urlParameters:[j],headerParameters:[K,W,X,le,me,mp,Bs],isXML:!0,serializer:Ut},Q6={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:hS},default:{bodyMapper:$,headersMapper:gS}},queryParameters:[G,zt,hn],urlParameters:[j],headerParameters:[K,W,X,le,me,Bs,dp],isXML:!0,serializer:Ut},Y6={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:yS},default:{bodyMapper:$,headersMapper:xS}},queryParameters:[G,zt,hn],urlParameters:[j],headerParameters:[K,W,X,le,me,up,pp],isXML:!0,serializer:Ut},J6={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:bS},default:{bodyMapper:$,headersMapper:SS}},queryParameters:[G,zt,hn],urlParameters:[j],headerParameters:[K,W,X,le,me,Bs,fp,hp],isXML:!0,serializer:Ut},Z6={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Nb,headersMapper:PS},default:{bodyMapper:$,headersMapper:CS}},queryParameters:[G,Fl,$l,ci,li,zt,iP,sP],urlParameters:[j],headerParameters:[K,W,X],isXML:!0,serializer:Ut},e8={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:wb,headersMapper:ES},default:{bodyMapper:$,headersMapper:NS}},queryParameters:[G,Fl,$l,ci,li,zt,iP,sP,jA],urlParameters:[j],headerParameters:[K,W,X],isXML:!0,serializer:Ut},t8={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:wS},default:{bodyMapper:$,headersMapper:RS}},queryParameters:[fn,G,Da],urlParameters:[j],headerParameters:[K,W,X],isXML:!0,serializer:Ut};var Rp=class{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},r8)}getProperties(e){return this.client.sendOperationRequest({options:e},n8)}delete(e){return this.client.sendOperationRequest({options:e},i8)}undelete(e){return this.client.sendOperationRequest({options:e},s8)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},o8)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},a8)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},c8)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},l8)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},m8)}setMetadata(e){return this.client.sendOperationRequest({options:e},d8)}acquireLease(e){return this.client.sendOperationRequest({options:e},u8)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},p8)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},f8)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},h8)}breakLease(e){return this.client.sendOperationRequest({options:e},g8)}createSnapshot(e){return this.client.sendOperationRequest({options:e},y8)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},x8)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},b8)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},S8)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},P8)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},C8)}query(e){return this.client.sendOperationRequest({options:e},E8)}getTags(e){return this.client.sendOperationRequest({options:e},N8)}setTags(e){return this.client.sendOperationRequest({options:e},w8)}},nt=Qr(Yr,!0),r8={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Yu},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Yu},default:{bodyMapper:$,headersMapper:vS}},queryParameters:[G,xr,mi],urlParameters:[j],headerParameters:[K,W,X,pe,le,me,wo,GA,KA,mt,dt,ut,Te,_e,Se],isXML:!0,serializer:nt},n8={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:TS},default:{bodyMapper:$,headersMapper:_S}},queryParameters:[G,xr,mi],urlParameters:[j],headerParameters:[K,W,X,pe,le,me,mt,dt,ut,Te,_e,Se],isXML:!0,serializer:nt},i8={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:AS},default:{bodyMapper:$,headersMapper:IS}},queryParameters:[G,xr,mi,VA],urlParameters:[j],headerParameters:[K,W,X,pe,le,me,Te,_e,Se,WA],isXML:!0,serializer:nt},s8={path:"/{containerName}/{blob}
17",httpMethod:"PUT",responses:{200:{headersMapper:MS},default:{bodyMapper:$,headersMapper:BS}},queryParameters:[G,op],urlParameters:[j],headerParameters:[K,W,X],isXML:!0,serializer:nt},o8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:kS},default:{bodyMapper:$,headersMapper:OS}},queryParameters:[G,XA],urlParameters:[j],headerParameters:[K,W,X,QA,YA],isXML:!0,serializer:nt},a8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:DS},default:{bodyMapper:$,headersMapper:LS}},queryParameters:[fn,G],urlParameters:[j],headerParameters:[K,W,X,pe,le,me,Te,_e,Se,di,ui,pi,fi,hi,gi],isXML:!0,serializer:nt},c8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:zS},default:{bodyMapper:$,headersMapper:US}},queryParameters:[G,xr,mi,oP],urlParameters:[j],headerParameters:[K,W,X,me,Dn,Ln],isXML:!0,serializer:nt},l8={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:qS},default:{bodyMapper:$,headersMapper:HS}},queryParameters:[G,xr,mi,oP],urlParameters:[j],headerParameters:[K,W,X],isXML:!0,serializer:nt},m8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:FS},default:{bodyMapper:$,headersMapper:$S}},queryParameters:[G,xr,mi,JA],urlParameters:[j],headerParameters:[K,W,X,ZA],isXML:!0,serializer:nt},d8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:jS},default:{bodyMapper:$,headersMapper:GS}},queryParameters:[G,sp],urlParameters:[j],headerParameters:[K,W,X,rr,pe,le,me,mt,dt,ut,Te,_e,Se,Pt],isXML:!0,serializer:nt},u8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:KS},default:{bodyMapper:$,headersMapper:WS}},queryParameters:[G,hn],urlParameters:[j],headerParameters:[K,W,X,le,me,ap,cp,lp,Te,_e,Se],isXML:!0,serializer:nt},p8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:VS},default:{bodyMapper:$,headersMapper:XS}},queryParameters:[G,hn],urlParameters:[j],headerParameters:[K,W,X,le,me,mp,Bs,Te,_e,Se],isXML:!0,serializer:nt},f8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:QS},default:{bodyMapper:$,headersMapper:YS}},queryParameters:[G,hn],urlParameters:[j],headerParameters:[K,W,X,le,me,Bs,dp,Te,_e,Se],isXML:!0,serializer:nt},h8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:JS},default:{bodyMapper:$,headersMapper:ZS}},queryParameters:[G,hn],urlParameters:[j],headerParameters:[K,W,X,le,me,Bs,fp,hp,Te,_e,Se],isXML:!0,serializer:nt},g8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:e0},default:{bodyMapper:$,headersMapper:t0}},queryParameters:[G,hn],urlParameters:[j],headerParameters:[K,W,X,le,me,up,pp,Te,_e,Se],isXML:!0,serializer:nt},y8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:r0},default:{bodyMapper:$,headersMapper:n0}},queryParameters:[G,eI],urlParameters:[j],headerParameters:[K,W,X,rr,pe,le,me,mt,dt,ut,Te,_e,Se,Pt],isXML:!0,serializer:nt},x8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:i0},default:{bodyMapper:$,headersMapper:s0}},queryParameters:[G],urlParameters:[j],headerParameters:[K,W,X,rr,pe,le,me,Te,_e,Se,Dn,Ln,Ji,aP,yi,xi,bi,Si,gp,Ro,zn,tI,Pi],isXML:!0,serializer:nt},b8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:o0},default:{bodyMapper:$,headersMapper:a0}},queryParameters:[G],urlParameters:[j],headerParameters:[K,W,X,rr,pe,le,me,Te,_e,Se,Dn,Ln,Pt,Ji,yi,xi,bi,Si,Ro,zn,Pi,rI,Zi,es,yp,ts],isXML:!0,serializer:nt},S8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:c0},default:{bodyMapper:$,headersMapper:l0}},queryParameters:[G,nI,sI],urlParameters:[j],headerParameters:[K,W,X,pe,iI],isXML:!0,serializer:nt},P8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ju},202:{headersMapper:Ju},default:{bodyMapper:$,headersMapper:m0}},queryParameters:[G,xr,mi,oI],urlParameters:[j],headerParameters:[K,W,X,pe,Se,aP,aI],isXML:!0,serializer:nt},C8={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:d0},default:{bodyMapper:$,headersMapper:u0}},queryParameters:[fn,G,Da],urlParameters:[j],headerParameters:[K,W,X],isXML:!0,serializer:nt},E8={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Zu},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Zu},default:{bodyMapper:$,headersMapper:p0}},requestBody:cI,queryParameters:[G,xr,lI],urlParameters:[j],headerParameters:[ai,pn,K,W,pe,le,me,mt,dt,ut,Te,_e,Se],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:nt},N8={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:ql,headersMapper:f0},default:{bodyMapper:$,headersMapper:h0}},queryParameters:[G,xr,mi,cP],urlParameters:[j],headerParameters:[K,W,X,pe,Se,lP,mP,dP,uP],isXML:!0,serializer:nt},w8={path:"/{containerName}/{blob}
17",httpMethod:"PUT",responses:{204:{headersMapper:g0},default:{bodyMapper:$,headersMapper:y0}},requestBody:mI,queryParameters:[G,mi,cP],urlParameters:[j],headerParameters:[ai,pn,K,W,pe,Se,lP,mP,dP,uP,gn,Ci],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:nt};var vp=class{client;constructor(e){this.client=e}create(e,t,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:n},R8)}uploadPages(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},v8)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},T8)}uploadPagesFromURL(e,t,n,i,s){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:n,range:i,options:s},_8)}getPageRanges(e){return this.client.sendOperationRequest({options:e},A8)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},I8)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},M8)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},B8)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},k8)}},rs=Qr(Yr,!0),R8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:x0},default:{bodyMapper:$,headersMapper:b0}},queryParameters:[G],urlParameters:[j],headerParameters:[K,W,X,Lt,rr,pe,le,me,mt,dt,ut,Te,_e,Se,di,ui,pi,fi,hi,gi,Dn,Ln,Pt,Ji,zn,Pi,dI,pP,fP],isXML:!0,serializer:rs},v8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:S0},default:{bodyMapper:$,headersMapper:P0}},requestBody:To,queryParameters:[G,xp],urlParameters:[j],headerParameters:[K,W,Lt,pe,le,me,wo,mt,dt,ut,Te,_e,Se,Pt,gn,Ci,vo,_o,hP,bp,Sp,Pp],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:rs},T8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:C0},default:{bodyMapper:$,headersMapper:E0}},queryParameters:[G,xp],urlParameters:[j],headerParameters:[K,W,X,Lt,pe,le,me,wo,mt,dt,ut,Te,_e,Se,Pt,bp,Sp,Pp,uI],isXML:!0,serializer:rs},_8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:N0},default:{bodyMapper:$,headersMapper:w0}},queryParameters:[G,xp],urlParameters:[j],headerParameters:[K,W,X,Lt,pe,le,me,mt,dt,ut,Te,_e,Se,Pt,yi,xi,bi,Si,Zi,es,ts,hP,bp,Sp,Pp,La,pI,za,fI],isXML:!0,serializer:rs},A8={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Qu,headersMapper:R0},default:{bodyMapper:$,headersMapper:v0}},queryParameters:[G,ci,li,xr,gP],urlParameters:[j],headerParameters:[K,W,X,pe,le,me,wo,Te,_e,Se],isXML:!0,serializer:rs},I8={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Qu,headersMapper:T0},default:{bodyMapper:$,headersMapper:_0}},queryParameters:[G,ci,li,xr,gP,hI],urlParameters:[j],headerParameters:[K,W,X,pe,le,me,wo,Te,_e,Se,gI],isXML:!0,serializer:rs},M8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:A0},default:{bodyMapper:$,headersMapper:I0}},queryParameters:[fn,G],urlParameters:[j],headerParameters:[K,W,X,pe,le,me,mt,dt,ut,Te,_e,Se,Pt,pP],isXML:!0,serializer:rs},B8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:M0},default:{bodyMapper:$,headersMapper:B0}},queryParameters:[fn,G],urlParameters:[j],headerParameters:[K,W,X,pe,le,me,Te,_e,Se,fP,yI],isXML:!0,serializer:rs},k8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:k0},default:{bodyMapper:$,headersMapper:O0}},queryParameters:[G,xI],urlParameters:[j],headerParameters:[K,W,X,le,me,Te,_e,Se,Ro],isXML:!0,serializer:rs};var Tp=class{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},O8)}appendBlock(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},D8)}appendBlockFromUrl(e,t,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:n},L8)}seal(e){return this.client.sendOperationRequest({options:e},z8)}},_p=Qr(Yr,!0),O8={path:"/{containerName}/{blob}
17",httpMethod:"PUT",responses:{201:{headersMapper:D0},default:{bodyMapper:$,headersMapper:L0}},queryParameters:[G],urlParameters:[j],headerParameters:[K,W,X,Lt,rr,pe,le,me,mt,dt,ut,Te,_e,Se,di,ui,pi,fi,hi,gi,Dn,Ln,Pt,zn,Pi,bI],isXML:!0,serializer:_p},D8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:z0},default:{bodyMapper:$,headersMapper:U0}},requestBody:To,queryParameters:[G,yP],urlParameters:[j],headerParameters:[K,W,Lt,pe,le,me,mt,dt,ut,Te,_e,Se,Pt,gn,Ci,vo,_o,xP,Cp],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:_p},L8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:q0},default:{bodyMapper:$,headersMapper:H0}},queryParameters:[G,yP],urlParameters:[j],headerParameters:[K,W,X,Lt,pe,le,me,mt,dt,ut,Te,_e,Se,Pt,yi,xi,bi,Si,Zi,es,ts,gn,La,za,xP,Cp,Ep],isXML:!0,serializer:_p},z8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:F0},default:{bodyMapper:$,headersMapper:$0}},queryParameters:[G,SI],urlParameters:[j],headerParameters:[K,W,X,pe,le,me,Te,_e,Cp],isXML:!0,serializer:_p};var Ap=class{client;constructor(e){this.client=e}upload(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},U8)}putBlobFromUrl(e,t,n){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:n},q8)}stageBlock(e,t,n,i){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:n,options:i},H8)}stageBlockFromURL(e,t,n,i){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:n,options:i},F8)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},$8)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},j8)}},qa=Qr(Yr,!0),U8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:j0},default:{bodyMapper:$,headersMapper:G0}},requestBody:To,queryParameters:[G],urlParameters:[j],headerParameters:[K,W,Lt,rr,pe,le,me,mt,dt,ut,Te,_e,Se,di,ui,pi,fi,hi,gi,Dn,Ln,Pt,Ji,zn,Pi,gn,Ci,vo,_o,bP],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:qa},q8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:K0},default:{bodyMapper:$,headersMapper:W0}},queryParameters:[G],urlParameters:[j],headerParameters:[K,W,X,Lt,rr,pe,le,me,mt,dt,ut,Te,_e,Se,di,ui,pi,fi,hi,gi,Pt,Ji,yi,xi,bi,Si,gp,Ro,zn,Zi,es,yp,ts,gn,bP,PI],isXML:!0,serializer:qa},H8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:V0},default:{bodyMapper:$,headersMapper:X0}},requestBody:To,queryParameters:[G,SP,PP],urlParameters:[j],headerParameters:[K,W,Lt,pe,mt,dt,ut,Pt,gn,Ci,vo,_o],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:qa},F8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Q0},default:{bodyMapper:$,headersMapper:Y0}},queryParameters:[G,SP,PP],urlParameters:[j],headerParameters:[K,W,X,Lt,pe,mt,dt,ut,Pt,yi,xi,bi,Si,Zi,es,ts,La,za,Ep],isXML:!0,serializer:qa},$8={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:J0},default:{bodyMapper:$,headersMapper:Z0}},requestBody:CI,queryParameters:[G,CP],urlParameters:[j],headerParameters:[ai,pn,K,W,rr,pe,le,me,mt,dt,ut,Te,_e,Se,di,ui,pi,fi,hi,gi,Dn,Ln,Pt,Ji,zn,Pi,gn,Ci],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:qa},j8={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:vb,headersMapper:eP},default:{bodyMapper:$,headersMapper:tP}},queryParameters:[G,xr,CP,EI],urlParameters:[j],headerParameters:[K,W,X,pe,Se],isXML:!0,serializer:qa};var jl=class extends vl{url;version;constructor(e,t){if(e===void 0)throw new Error("'url' cannot be null");t||(t={});let n={requestContentType:"application/json; charset=utf-8"},i="azsdk-js-azure-storage-blob/12.30.0",s=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${i}`:`${i}`,o=E(x(x({},n),t),{userAgentOptions:{userAgentPrefix:s},endpoint:t.endpoint??t.baseUri??"{url}"});super(o),this.url=e,this.version=t.version||"2026-02-06",this.service=new Np(this),this.container=new wp(this),this.blob=new Rp(this),this.pageBlob=new vp(this),this.appendBlob=new Tp(this),this.blockBlob=new Ap(this)}service;container;blob;pageBlob;appendBlob;blockBlob};var Gl=class r extends jl{sendOperationRequest(e,t){return p(this,null,function*(){let n=x({},t);return(n.path==="/{containerName}"||n.path==="/{containerName}/{blob}")&&(n.path=""),Tn(r.prototype,this,"sendOperationRequest").call(this,e,n)})}};function wI(r){let e=new URL(r),t=e.pathname;return t=t||"/",t=K8(t),e.pathname=t,e.toString()}function G8(r){let e="";if(r.search("DevelopmentStorageProxyUri=")!==-1){let t=r.split(";");for(let n of t)n.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=n.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}function Ao(r,e){let t=r.split(";");for(let n of t)if(n.trim().startsWith(e))return n.trim().match(e+"=(.*)")[1];return""}function Io(r){let e="";r.startsWith("UseDevelopmentStorage=true")&&(e=G8(r),r=NA);let t=Ao(r,"BlobEndpoint");if(t=t.endsWith("/")?t.slice(0,-1):t,r.search("DefaultEndpointsProtocol=")!==-1&&r.search("AccountKey=")!==-1){let n="",i="",s=Buffer.from("accountKey","base64"),o="";if(i=Ao(r,"AccountName"),s=Buffer.from(Ao(r,"AccountKey"),"base64"),!t){n=Ao(r,"DefaultEndpointsProtocol");let a=n.toLowerCase();if(a!=="https"&&a!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(o=Ao(r,"EndpointSuffix"),!o)throw new Error("Invalid EndpointSuffix in the provided Connection String");t=`${n}://${i}.blob.${o}`}if(i){if(s.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else throw new Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:t,accountName:i,accountKey:s,proxyUri:e}}else{let n=Ao(r,"SharedAccessSignature"),i=Ao(r,"AccountName");if(i||(i=RP(t)),t){if(!n)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return n.startsWith("?")&&(n=n.substring(1)),{kind:"SASConnString",url:t,accountName:i,accountSas:n}}}function K8(r){return encodeURIComponent(r).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function _t(r,e){let t=new URL(r),n=t.pathname;return n=n?n.endsWith("/")?`${n}${e}`:`${n}/${e}`:e,t.pathname=n,t.toString()}function Ha(r,e,t){let n=new URL(r),i=encodeURIComponent(e),s=t?encodeURIComponent(t):void 0,o=n.search===""?"?":n.search,a=[];for(let c of o.slice(1).split("&"))if(c){let[l]=c.split("=",2);l!==i&&a.push(c)}return s&&a.push(`${i}=${s}`),n.search=a.length?`?${a.join("&")}`:"",n.toString()}function EP(r,e){return new URL(r).searchParams.get(e)??void 0}function RI(r){try{let e=new URL(r);return e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol}catch{return}}function Kl(r,e){let t=new URL(r),n=t.search;return n?n+="&"+e:n=e,t.search=n,t.toString()}function Oe(r,e=!0){let t=r.toISOString();return e?t.substring(0,t.length-1)+"0000Z":t.substring(0,t.length-5)+"Z"}function W8(r){return Ke?Buffer.from(r).toString("base64"):btoa(r)}function NP(r,e){r.length>42&&(r=r.slice(0,42));let s=r+V8(e.toString(),48-r.length,"0");return W8(s)}function V8(r,e,t=" "){return String.prototype.padStart?r.padStart(e,t):(t=t||" ",r.length>e?r:(e=e-r.length,e>t.length&&(t+=t.repeat(e/t.length)),t.slice(0,e)+r))}function wP(r,e){return r.toLocaleLowerCase()===e.toLocaleLowerCase()}function RP(r){let e=new URL(r),t;try{return e.hostname.split(".")[1]==="blob"?t=e.hostname.split(".")[0]:Ip(e)?t=e.pathname.split("/")[1]:t="",t}catch{throw new Error("Unable to extract accountName with provided information.")}}function Ip(r){let e=r.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(e)||!!r.port&&_A.includes(r.port)}function Os(r){if(r===void 0)return;let e=[];for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)){let n=r[t];e.push(`${encodeURIComponent(t)}=${encodeURIComponent(n)}`)}return e.join("&")}function vI(r){if(r===void 0)return;let e={blobTagSet:[]};for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)){let n=r[t];e.blobTagSet.push({key:t,value:n})}return e}function Mp(r){if(r===void 0)return;let e={};for(let t of r.blobTagSet)e[t.key]=t.value;return e}function vP(r){if(r!==void 0)switch(r.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:r.columnSeparator||",",fieldQuote:r.fieldQuote||"",recordSeparator:r.recordSeparator,escapeChar:r.escapeCharacter||"",headersPresent:r.hasHeaders||!1}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:r.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:r.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function Bp(r){if(!r||"policy-id"in r)return;let e=[];for(let t in r){let n=t.split("_"),i="or-";n[0].startsWith(i)&&(n[0]=n[0].substring(i.length));let s={ruleId:n[1],replicationStatus:r[t]},o=e.findIndex(a=>a.policyId===n[0]);o>-1?e[o].rules.push(s):e.push({policyId:n[0],rules:[s]})}return e}function Fa(r){return r?r.scheme+" "+r.value:void 0}function*TP(r){let e=[],t=[];r.pageRange&&(e=r.pageRange),r.clearRange&&(t=r.clearRange);let n=0,i=0;for(;n<e.length&&i<t.length;)e[n].start<t[i].start?(yield{start:e[n].start,end:e[n].end,isClear:!1},++n):(yield{start:t[i].start,end:t[i].end,isClear:!0},++i);for(;n<e.length;++n)yield{start:e[n].start,end:e[n].end,isClear:!1};for(;i<t.length;++i)yield{start:t[i].start,end:t[i].end,isClear:!0}}function re(r){if("_response"in r)return r;throw new TypeError(`Unexpected response object ${r}`)}var $a=class{url;accountName;pipeline;credential;storageClientContext;isHttps;constructor(e,t){this.url=wI(e),this.accountName=RP(e),this.pipeline=t,this.storageClientContext=new Gl(this.url,xb(t)),this.isHttps=wP(RI(this.url)||"","https"),this.credential=bb(t);let n=this.storageClientContext;n.requestContentType=void 0}};var J=bl({packageName:"@azure/storage-blob",packageVersion:Wu,namespace:"Microsoft.Storage"});var Ei=class r{static parse(e){let t=new r;for(let n of e)switch(n){case"r":t.read=!0;break;case"a":t.add=!0;break;case"c":t.create=!0;break;case"w":t.write=!0;break;case"d":t.delete=!0;break;case"x":t.deleteVersion=!0;break;case"t":t.tag=!0;break;case"m":t.move=!0;break;case"e":t.execute=!0;break;case"i":t.setImmutabilityPolicy=!0;break;case"y":t.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${n}`)}return t}static from(e){let t=new r;return e.read&&(t.read=!0),e.add&&(t.add=!0),e.create&&(t.create=!0),e.write&&(t.write=!0),e.delete&&(t.delete=!0),e.deleteVersion&&(t.deleteVersion=!0),e.tag&&(t.tag=!0),e.move&&(t.move=!0),e.execute&&(t.execute=!0),e.setImmutabilityPolicy&&(t.setImmutabilityPolicy=!0),e.permanentDelete&&(t.permanentDelete=!0),t}read=!1;add=!1;create=!1;write=!1;delete=!1;deleteVersion=!1;tag=!1;move=!1;execute=!1;setImmutabilityPolicy=!1;permanentDelete=!1;toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}};var Ni=class r{static parse(e){let t=new r;for(let n of e)switch(n){case"r":t.read=!0;break;case"a":t.add=!0;break;case"c":t.create=!0;break;case"w":t.write=!0;break;case"d":t.delete=!0;break;case"l":t.list=!0;break;case"t":t.tag=!0;break;case"x":t.deleteVersion=!0;break;case"m":t.move=!0;break;case"e":t.execute=!0;break;case"i":t.setImmutabilityPolicy=!0;break;case"y":t.permanentDelete=!0;break;case"f":t.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${n}`)}return t}static from(e){let t=new r;return e.read&&(t.read=!0),e.add&&(t.add=!0),e.create&&(t.create=!0),e.write&&(t.write=!0),e.delete&&(t.delete=!0),e.list&&(t.list=!0),e.deleteVersion&&(t.deleteVersion=!0),e.tag&&(t.tag=!0),e.move&&(t.move=!0),e.execute&&(t.execute=!0),e.setImmutabilityPolicy&&(t.setImmutabilityPolicy=!0),e.permanentDelete&&(t.permanentDelete=!0),e.filterByTags&&(t.filterByTags=!0),t}read=!1;add=!1;create=!1;write=!1;delete=!1;deleteVersion=!1;list=!1;tag=!1;move=!1;execute=!1;setImmutabilityPolicy=!1;permanentDelete=!1;filterByTags=!1;toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.list&&e.push("l"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),this.filterByTags&&e.push("f"),e.join("")}};function Un(r){return r.end?`${r.start}-${r.end}`:r.start}var qn=class{version;protocol;startsOn;expiresOn;permissions;services;resourceTypes;identifier;delegatedUserObjectId;encryptionScope;resource;signature;cacheControl;contentDisposition;contentEncoding;contentLanguage;contentType;ipRangeInner;signedOid;signedTenantId;signedStartsOn;signedExpiresOn;signedService;signedVersion;preauthorizedAgentObjectId;correlationId;get ipRange(){if(this.ipRangeInner)return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}constructor(e,t,n,i,s,o,a,c,l,d,u,h,g,y,S,C,N,T,I,k,Z){this.version=e,this.signature=t,n!==void 0&&typeof n!="str
17ing"?(this.permissions=n.permissions,this.services=n.services,this.resourceTypes=n.resourceTypes,this.protocol=n.protocol,this.startsOn=n.startsOn,this.expiresOn=n.expiresOn,this.ipRangeInner=n.ipRange,this.identifier=n.identifier,this.delegatedUserObjectId=n.delegatedUserObjectId,this.encryptionScope=n.encryptionScope,this.resource=n.resource,this.cacheControl=n.cacheControl,this.contentDisposition=n.contentDisposition,this.contentEncoding=n.contentEncoding,this.contentLanguage=n.contentLanguage,this.contentType=n.contentType,n.userDelegationKey&&(this.signedOid=n.userDelegationKey.signedObjectId,this.signedTenantId=n.userDelegationKey.signedTenantId,this.signedStartsOn=n.userDelegationKey.signedStartsOn,this.signedExpiresOn=n.userDelegationKey.signedExpiresOn,this.signedService=n.userDelegationKey.signedService,this.signedVersion=n.userDelegationKey.signedVersion,this.preauthorizedAgentObjectId=n.preauthorizedAgentObjectId,this.correlationId=n.correlationId)):(this.services=i,this.resourceTypes=s,this.expiresOn=c,this.permissions=n,this.protocol=o,this.startsOn=a,this.ipRangeInner=l,this.delegatedUserObjectId=Z,this.encryptionScope=k,this.identifier=d,this.resource=u,this.cacheControl=h,this.contentDisposition=g,this.contentEncoding=y,this.contentLanguage=S,this.contentType=C,N&&(this.signedOid=N.signedObjectId,this.signedTenantId=N.signedTenantId,this.signedStartsOn=N.signedStartsOn,this.signedExpiresOn=N.signedExpiresOn,this.signedService=N.signedService,this.signedVersion=N.signedVersion,this.preauthorizedAgentObjectId=T,this.correlationId=I))}toString(){let e=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid","sduoid"],t=[];for(let n of e)switch(n){case"sv":this.tryAppendQueryParameter(t,n,this.version);break;case"ss":this.tryAppendQueryParameter(t,n,this.services);break;case"srt":this.tryAppendQueryParameter(t,n,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(t,n,this.protocol);break;case"st":this.tryAppendQueryParameter(t,n,this.startsOn?Oe(this.startsOn,!1):void 0);break;case"se":this.tryAppendQueryParameter(t,n,this.expiresOn?Oe(this.expiresOn,!1):void 0);break;case"sip":this.tryAppendQueryParameter(t,n,this.ipRange?Un(this.ipRange):void 0);break;case"si":this.tryAppendQueryParameter(t,n,this.identifier);break;case"ses":this.tryAppendQueryParameter(t,n,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(t,n,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(t,n,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(t,n,this.signedStartsOn?Oe(this.signedStartsOn,!1):void 0);break;case"ske":this.tryAppendQueryParameter(t,n,this.signedExpiresOn?Oe(this.signedExpiresOn,!1):void 0);break;case"sks":this.tryAppendQueryParameter(t,n,this.signedService);break;case"skv":this.tryAppendQueryParameter(t,n,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(t,n,this.resource);break;case"sp":this.tryAppendQueryParameter(t,n,this.permissions);break;case"sig":this.tryAppendQueryParameter(t,n,this.signature);break;case"rscc":this.tryAppendQueryParameter(t,n,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(t,n,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(t,n,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(t,n,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(t,n,this.contentType);break;case"saoid":this.tryAppendQueryParameter(t,n,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(t,n,this.correlationId);break;case"sduoid":this.tryAppendQueryParameter(t,n,this.delegatedUserObjectId);break}return t.join("&")}tryAppendQueryParameter(e,t,n){n&&(t=encodeURIComponent(t),n=encodeURIComponent(n),t.length>0&&n.length>0&&e.push(`${t}=${n}`))}};function kp(r,e,t){return Wl(r,e,t).sasQueryParameters}function Wl(r,e,t){let n=r.version?r.version:Vu,i=e instanceof ht?e:void 0,s;if(i===void 0&&t!==void 0&&(s=new Ku(t,e)),i===void 0&&s===void 0)throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.");if(n>="2020-12-06")return i!==void 0?Y8(r,i):n>="2025-07-05"?tj(r,s):ej(r,s);if(n>="2018-11-09")return i!==void 0?Q8(r,i):n>="2020-02-10"?Z8(r,s):J8(r,s);if(n>="2015-04-05"){if(i!==void 0)return X8(r,i);throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}throw new RangeError("'version' must be >= '2015-04-05'.")}function X8(r,e){if(r=Bo(r),!r.identifier&&!(r.permissions&&r.expiresOn))throw new RangeError("Mu
17st provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let t="c";r.blobName&&(t="b");let n;r.permissions&&(r.blobName?n=Ei.parse(r.permissions.toString()).toString():n=Ni.parse(r.permissions.toString()).toString());let i=[n||"",r.startsOn?Oe(r.startsOn,!1):"",r.expiresOn?Oe(r.expiresOn,!1):"",Mo(e.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?Un(r.ipRange):"",r.protocol?r.protocol:"",r.version,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join(` 18`),s=e.computeHMACSHA256(i);return{sasQueryParameters:new qn(r.version,s,n,void 0,void 0,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,t,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType),stringToSign:i}}function Q8(r,e){if(r=Bo(r),!r.identifier&&!(r.permissions&&r.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let t="c",n=r.snapshotTime;r.blobName&&(t="b",r.snapshotTime?t="bs":r.versionId&&(t="bv",n=r.versionId));let i;r.permissions&&(r.blobName?i=Ei.parse(r.permissions.toString()).toString():i=Ni.parse(r.permissions.toString()).toString());let s=[i||"",r.startsOn?Oe(r.startsOn,!1):"",r.expiresOn?Oe(r.expiresOn,!1):"",Mo(e.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?Un(r.ipRange):"",r.protocol?r.protocol:"",r.version,t,n,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join(` 19`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new qn(r.version,o,i,void 0,void 0,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,t,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType),stringToSign:s}}function Y8(r,e){if(r=Bo(r),!r.identifier&&!(r.permissions&&r.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let t="c",n=r.snapshotTime;r.blobName&&(t="b",r.snapshotTime?t="bs":r.versionId&&(t="bv",n=r.versionId));let i;r.permissions&&(r.blobName?i=Ei.parse(r.permissions.toString()).toString():i=Ni.parse(r.permissions.toString()).toString());let s=[i||"",r.startsOn?Oe(r.startsOn,!1):"",r.expiresOn?Oe(r.expiresOn,!1):"",Mo(e.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?Un(r.ipRange):"",r.protocol?r.protocol:"",r.version,t,n,r.encryptionScope,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join(` 20`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new qn(r.version,o,i,void 0,void 0,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,t,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,void 0,void 0,void 0,r.encryptionScope),stringToSign:s}}function J8(r,e){if(r=Bo(r),!r.permissions||!r.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let t="c",n=r.snapshotTime;r.blobName&&(t="b",r.snapshotTime?t="bs":r.versionId&&(t="bv",n=r.versionId));let i;r.permissions&&(r.blobName?i=Ei.parse(r.permissions.toString()).toString():i=Ni.parse(r.permissions.toString()).toString());let s=[i||"",r.startsOn?Oe(r.startsOn,!1):"",r.expiresOn?Oe(r.expiresOn,!1):"",Mo(e.accountName,r.containerName,r.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Oe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Oe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,r.ipRange?Un(r.ipRange):"",r.protocol?r.protocol:"",r.version,t,n,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join(` 21`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new qn(r.version,o,i,void 0,void 0,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,t,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,e.userDelegationKey),stringToSign:s}}function Z8(r,e){if(r=Bo(r),!r.permissions||!r.expiresOn)throw new RangeError("Mu
21st provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let t="c",n=r.snapshotTime;r.blobName&&(t="b",r.snapshotTime?t="bs":r.versionId&&(t="bv",n=r.versionId));let i;r.permissions&&(r.blobName?i=Ei.parse(r.permissions.toString()).toString():i=Ni.parse(r.permissions.toString()).toString());let s=[i||"",r.startsOn?Oe(r.startsOn,!1):"",r.expiresOn?Oe(r.expiresOn,!1):"",Mo(e.accountName,r.containerName,r.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Oe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Oe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,void 0,r.correlationId,r.ipRange?Un(r.ipRange):"",r.protocol?r.protocol:"",r.version,t,n,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join(` 22`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new qn(r.version,o,i,void 0,void 0,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,t,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,e.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId),stringToSign:s}}function ej(r,e){if(r=Bo(r),!r.permissions||!r.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let t="c",n=r.snapshotTime;r.blobName&&(t="b",r.snapshotTime?t="bs":r.versionId&&(t="bv",n=r.versionId));let i;r.permissions&&(r.blobName?i=Ei.parse(r.permissions.toString()).toString():i=Ni.parse(r.permissions.toString()).toString());let s=[i||"",r.startsOn?Oe(r.startsOn,!1):"",r.expiresOn?Oe(r.expiresOn,!1):"",Mo(e.accountName,r.containerName,r.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Oe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Oe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,void 0,r.correlationId,r.ipRange?Un(r.ipRange):"",r.protocol?r.protocol:"",r.version,t,n,r.encryptionScope,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join(` 23`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new qn(r.version,o,i,void 0,void 0,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,t,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,e.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId,r.encryptionScope),stringToSign:s}}function tj(r,e){if(r=Bo(r),!r.permissions||!r.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let t="c",n=r.snapshotTime;r.blobName&&(t="b",r.snapshotTime?t="bs":r.versionId&&(t="bv",n=r.versionId));let i;r.permissions&&(r.blobName?i=Ei.parse(r.permissions.toString()).toString():i=Ni.parse(r.permissions.toString()).toString());let s=[i||"",r.startsOn?Oe(r.startsOn,!1):"",r.expiresOn?Oe(r.expiresOn,!1):"",Mo(e.accountName,r.containerName,r.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Oe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Oe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,void 0,r.correlationId,void 0,r.delegatedUserObjectId,r.ipRange?Un(r.ipRange):"",r.protocol?r.protocol:"",r.version,t,n,r.encryptionScope,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join(` 24`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new qn(r.version,o,i,void 0,void 0,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,t,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,e.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId,r.encryptionScope,r.delegatedUserObjectId),stringToSign:s}}function Mo(r,e,t){let n=[`/blob/${r}/${e}`];return t&&n.push(`/${t}`),n.join("")}function Bo(r){let e=r.version?r.version:Vu;if(r.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");
24if(r.blobName===void 0&&r.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(r.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(r.blobName===void 0&&r.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(r.permissions&&r.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(r.permissions&&r.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(r.permissions&&r.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(r.permissions&&r.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&r.permissions&&(r.permissions.move||r.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&r.permissions&&r.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(r.preauthorizedAgentObjectId||r.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(r.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return r.version=e,r}var Vl=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),t||(t=Ia()),this._leaseId=t}acquireLease(n){return p(this,arguments,function*(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==On||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==On||t.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return J.withSpan("BlobLeaseClient-acquireLease",t,i=>p(this,null,function*(){return re(yield this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:E(x({},t.conditions),{ifTags:t.conditions?.tagConditions}),proposedLeaseId:this._leaseId,tracingOptions:i.tracingOptions}))}))})}changeLease(n){return p(this,arguments,function*(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==On||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==On||t.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return J.withSpan("BlobLeaseClient-changeLease",t,i=>p(this,null,function*(){let s=re(yield this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:E(x({},t.conditions),{ifTags:t.conditions?.tagConditions}),tracingOptions:i.tracingOptions}));return this._leaseId=e,s}))})}releaseLease(){return p(this,arguments,function*(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==On||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==On||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return J.withSpan("BlobLeaseClient-releaseLease",e,t=>p(this,null,function*(){return re(yield this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:E(x({},e.conditions),{ifTags:e.conditions?.tagConditions}),tracingOptions:t.tracingOptions}))}))})}renewLease(){return p(this,arguments,function*(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==On||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==On||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return J.withSpan("BlobLeaseClient-renewLease",e,t=>p(this,null,function*(){return this._containerOrBlobOperation.renewLease(this._leaseId,{abort
24Signal:e.abortSignal,modifiedAccessConditions:E(x({},e.conditions),{ifTags:e.conditions?.tagConditions}),tracingOptions:t.tracingOptions})}))})}breakLease(n){return p(this,arguments,function*(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==On||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==On||t.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return J.withSpan("BlobLeaseClient-breakLease",t,i=>p(this,null,function*(){let s={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:E(x({},t.conditions),{ifTags:t.conditions?.tagConditions}),tracingOptions:i.tracingOptions};return re(yield this._containerOrBlobOperation.breakLease(s))}))})}};var Xl=class{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){throw Error("Quick query in browser is not supported yet.")}get readableStreamBody(){}get _response(){return this.originalResponse._response}originalResponse;constructor(e,t={}){this.originalResponse=e}};function Ds(r){if(r!==void 0)return r}function At(r,e){if(r&&!e)throw new RangeError("Customer-provided encryption key must be used over HTTPS.");r&&!r.encryptionAlgorithm&&(r.encryptionAlgorithm=EA)}function Op(r){let e=(r._response.parsedBody.pageRange||[]).map(n=>({offset:n.start,count:n.end-n.start})),t=(r._response.parsedBody.clearRange||[]).map(n=>({offset:n.start,count:n.end-n.start}));return E(x({},r),{pageRange:e,clearRange:t,_response:E(x({},r._response),{parsedBody:{pageRange:e,clearRange:t}})})}var _P=un("core-lro");var AP=class r extends Error{constructor(e){super(e),this.name="PollerStoppedError",Object.setPrototypeOf(this,r.prototype)}},IP=class r extends Error{constructor(e){super(e),this.name="PollerCancelledError",Object.setPrototypeOf(this,r.prototype)}},Ql=class{constructor(e){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n}),this.promise.catch(()=>{})}startPolling(){return p(this,arguments,function*(e={}){for(this.stopped&&(this.stopped=!1);!this.isStopped()&&!this.isDone();)yield this.poll(e),yield this.delay()})}pollOnce(){return p(this,arguments,function*(e={}){this.isDone()||(this.operation=yield this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})),this.processUpdatedState()})}
24fireProgress(e){for(let t of this.pollProgressCallbacks)t(e)}cancelOnce(){return p(this,arguments,function*(e={}){this.operation=yield this.operation.cancel(e)})}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);let t=()=>{this.pollOncePromise=void 0};this.pollOncePromise.then(t,t).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){let e=new IP("Operation was canceled");throw this.reject(e),e}this.isDone()&&this.resolve&&this.resolve(this.getResult())}pollUntilDone(){return p(this,arguments,function*(e={}){return this.stopped&&this.startPolling(e).catch(this.reject),this.processUpdatedState(),this.promise})}onProgress(e){return this.pollProgressCallbacks.push(e),()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter(t=>t!==e)}}isDone(){let e=this.operation.state;return!!(e.isCompleted||e.isCancelled||e.error)}stopPolling(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new AP("This poller is already stopped")))}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise)this.cancelPromise=this.cancelOnce(e);else if(e.abortSignal)throw new Error("A cancel request is currently pending");return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){return this.operation.state.result}toString(){return this.operation.toString()}};var Dp=class extends Ql{intervalInMs;constructor(e){let{blobClient:t,copySource:n,intervalInMs:i=15e3,onProgress:s,resumeFrom:o,startCopyFromURLOptions:a}=e,c;o&&(c=JSON.parse(o).state);let l=Yl(E(x({},c),{blobClient:t,copySource:n,startCopyFromURLOptions:a}));super(l),typeof s=="function"&&this.onProgress(s),this.intervalInMs=i}delay(){return Aa(this.intervalInMs)}},oj=function(){return p(this,arguments,function*(e={}){let t=this.state,{copyId:n}=t;return t.isCompleted?Yl(t):n?(yield t.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),t.isCancelled=!0,Yl(t)):(t.isCancelled=!0,Yl(t))})},aj=function(){return p(this,arguments,function*(e={}){let t=this.state,{blobClient:n,copySource:i,startCopyFromURLOptions:s}=t;if(t.isStarted){if(!t.isCompleted)try{let o=yield t.blobClient.getProperties({abortSignal:e.abortSignal}),{copyStatus:a,copyProgress:c}=o,l=t.copyProgress;c&&(t.copyProgress=c),a==="pending"&&c!==l&&typeof e.fireProgress=="function"?e.fireProgress(t):a==="success"?(t.result=o,t.isCompleted=!0):a==="failed"&&(t.error=new Error(`Blob copy failed with reason: "${o.copyStatusDescription||"unknown"}"`),t.isCompleted=!0)}catch(o){t.error=o,t.isCompleted=!0}}else{t.isStarted=!0;let o=yield n.startCopyFromURL(i,s);t.copyId=o.copyId,o.copyStatus==="success"&&(t.result=o,t.isCompleted=!0)}return Yl(t)})},cj=function(){return JSON.stringify({state:this.state},(e,t)=>{if(e!=="blobClient")return t})};function Yl(r){return{state:x({},r),cancel:oj,toString:cj,update:aj}}function Dr(r){if(r.offset<0)throw new RangeError("Range.offset cannot be smaller than 0.");if(r.count&&r.count<=0)throw new RangeError("Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.");return r.count?`bytes=${r.offset}-${r.offset+r.count-1}`:`bytes=${r.offset}-`}var zI=Ps(Ga(),1);var Up=function(r){return r[r.Good=0]="Good",r[r.Error=1]="Error",r}(Up||{}),Jl=class{concurrency;actives=0;completed=0;offset=0;operations=[];state=Up.Good;emitter;constructor(e=5){if(e<1)throw new RangeError("concurrency must be larger than 0");this.concurrency=e,this.emitter=new zI.EventEmitter}addOperation(e){this.operations.push(()=>p(this,null,function*(){try{this.actives++,yield e(),this.actives--,this.completed++,this.parallelExecute()}catch(t){this.emitter.emit("error",t)}}))}do(){return p(this,null,function*(){return this.operations.length===0?Promise.resolve():(this.parallelExecute(),new Promise((e,t)=>{this.emitter.on("finish",e),this.emitter.on("error",n=>{this.state=Up.Error,t(n)})}))})}nextOperation(){return this.offset<this.operations.length?this.operations[this.offset++]:null}parallelExecute(){if(this.state!==Up.Error){if(this.completed>=this.operations.length){this.emitter.emit("finish");return}for(;this.actives<this.concurrency;){let e=this.nextOperation();if(e)e();else return}}}};var UI=function(){},qI=function(){};var ko=class r extends $a{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,n,i){i=i||{};let s,o;
24if(Yi(t))o=e,s=t;else if(Ke&&t instanceof ht||t instanceof rt||Xr(t))o=e,i=n,s=gt(t,i);else if(!t&&typeof t!="string")o=e,n&&typeof n!="string"&&(i=n),s=gt(new rt,i);else if(t&&typeof t=="string"&&n&&typeof n=="string"){let a=t,c=n,l=Io(e);if(l.kind==="AccountConnString")if(Ke){let d=new ht(l.accountName,l.accountKey);o=_t(_t(l.url,encodeURIComponent(a)),encodeURIComponent(c)),i.proxyOptions||(i.proxyOptions=_s(l.proxyUri)),s=gt(d,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(l.kind==="SASConnString")o=_t(_t(l.url,encodeURIComponent(a)),encodeURIComponent(c))+"?"+l.accountSas,s=gt(new rt,i);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(o,s),{blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl(),this.blobContext=this.storageClientContext.blob,this._snapshot=EP(this.url,Qi.Parameters.SNAPSHOT),this._versionId=EP(this.url,Qi.Parameters.VERSIONID)}withSnapshot(e){return new r(Ha(this.url,Qi.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}withVersion(e){return new r(Ha(this.url,Qi.Parameters.VERSIONID,e.length===0?void 0:e),this.pipeline)}getAppendBlobClient(){return new Hp(this.url,this.pipeline)}getBlockBlobClient(){return new Ka(this.url,this.pipeline)}getPageBlobClient(){return new Fp(this.url,this.pipeline)}download(){return p(this,arguments,function*(e=0,t,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},At(n.customerProvidedKey,this.isHttps),J.withSpan("BlobClient-download",n,i=>p(this,null,function*(){let s=re(yield this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:E(x({},n.conditions),{ifTags:n.conditions?.tagConditions}),requestOptions:{onDownloadProgress:Ke?void 0:n.onProgress},range:e===0&&!t?void 0:Dr({offset:e,count:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:i.tracingOptions})),o=E(x({},s),{_response:s._response,objectReplicationDestinationPolicyId:s.objectReplicationPolicyId,objectReplicationSourceProperties:Bp(s.objectReplicationRules)});if(!Ke)return o;if((n.maxRetryRequests===void 0||n.maxRetryRequests<0)&&(n.maxRetryRequests=5),s.contentLength===void 0)throw new RangeError("File download response doesn't contain valid content length header");if(!s.etag)throw new RangeError("File download response doesn't contain valid etag header");return new 1(o,a=>p(this,null,function*(){let c={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||s.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:Dr({count:e+s.contentLength-a,offset:a}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(yield this.blobContext.download(x({abortSignal:n.abortSignal},c))).readableStreamBody}),e,s.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})}))})}exists(){return p(this,arguments,function*(e={}){return J.withSpan("BlobClient-exists",e,t=>p(this,null,function*(){try{return At(e.customerProvidedKey,this.isHttps),yield this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions}),!0}catch(n){if(n.statusCode===404)return!1;if(n.statusCode===409&&(n.details.errorCode===vA||n.details.errorCode===TA))return!0;throw n}}))})}getProperties(){return p(this,arguments,function*(e={}){return e.conditions=e.conditions||{},At(e.customerProvidedKey,this.isHttps),J.withSpan("BlobClient-getProperties",e,t=>p(this,null,function*(){let n=re(yield this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:E(x({},e.conditions),{ifTags:e.conditions?.tagConditions}),cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return E(x({},n),{_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:Bp(n.objectReplicationRules)})}))})}delete(){return p(this,arguments,function*(e={}){return e.conditions=e.conditions||{},J.withSpan("BlobClient-delete",e,t=>p(this,null,function*(){return re(yield this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:E(x({},e.conditions),{ifTags:e.conditions?.tagConditions}),tracingOptions:t.tracingOptions}))}))})}deleteIfExists(){return p(this,arguments,function*(e={}){return J.withSpan("BlobClient-deleteIfExists",e,t=>p(this,null,function*(){try{let n=re(yield this.delete(t));return E(x({succeeded:!0},n),{_response:n._response})}catch(n){if(n.details?.errorCode==="BlobNotFound")return E(x({succeeded:!1},n.response?.parsedHeaders),{_response:n.response});throw n}}))})}undelete(){return p(this,arguments,function*(e={}){return J.withSpan("BlobClient-undelete",e,t=>p(this,null,function*(){return re(yield this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))}))})}setHTTPHeaders(n){return p(this,arguments,function*(e,t={}){return t.conditions=t.conditions||{},At(t.customerProvidedKey,this.isHttps),J.withSpan("BlobClient-setHTTPHeaders",t,i=>p(this,null,function*(){return re(yield this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:E(x({},t.conditions),{ifTags:t.conditions?.tagConditions}),tracingOptions:i.tracingOptions}))}))})}setMetadata(n){return p(this,arguments,function*(e,t={}){return t.conditions=t.conditions||{},At(t.customerProvidedKey,this.isHttps),J.withSpan("BlobClient-setMetadata",t,i=>p(this,null,function*(){return re(yield this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:E(x({},t.conditions),{ifTags:t.conditions?.tagConditions}),cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:i.tracingOptions}))}))})}setTags(n){return p(this,arguments,function*(e,t={}){return J.withSpan("BlobClient-setTags",t,i=>p(this,null,function*(){return re(yield this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:E(x({},t.conditions),{ifTags:t.conditions?.tagConditions}),blobModifiedAccessConditions:t.conditions,tracingOptions:i.tracingOptions,tags:vI(e)}))}))})}getTags(){return p(this,arguments,function*(e={}){return J.withSpan("BlobClient-getTags",e,t=>p(this,null,function*(){let n=re(yield this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:E(x({},e.conditions),{ifTags:e.conditions?.tagConditions}),blobModifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));return E(x({},n),{_response:n._response,tags:Mp({blobTagSet:n.blobTagSet})||{}})}))})}getBlobLeaseClient(e){return new Vl(this,e)}createSnapshot(){return p(this,arguments,function*(e={}){return e.conditions=e.conditions||{},At(e.customerProvidedKey,this.isHttps),J.withSpan("BlobClient-createSnapshot",e,t=>p(this,null,function*(){return re(yield this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:E(x({},e.conditions),{ifTags:e.conditions?.tagConditions}),cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions}))}))})}beginCopyFromURL(n){return p(this,arguments,function*(e,t={}){let i={abortCopyFromURL:(...o)=>this.abortCopyFromURL(...o),getProperties:(...o)=>this.getProperties(...o),startCopyFromURL:(...o)=>this.startCopyFromURL(...o)},s=new Dp({blobClient:i,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});return yield s.poll(),s})}abortCopyFromURL(n){return p(this,arguments,function*(e,t={}){return J.withSpan("BlobClient-abortCopyFromURL",t,i=>p(this,null,function*(){return re(yield this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:i.tracingOptions}))}))})}syncCopyFromURL(n){return p(this,arguments,function*(e,t={}){return t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},J.withSpan("BlobClient-syncCopyFromURL",t,i=>p(this,null,function*(){return re(yield this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:E(x({},t.conditions),{ifTags:t.conditions?.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:Fa(t.sourceAuthorization),tier:Ds(t.tier),blobTagsString:Os(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:i.tracingOptions}))}))})}setAccessTier(n){return p(this,arguments,function*(e,t={}){return J.withSpan("BlobClient-setAccessTier",t,i=>p(this,null,function*(){return re(yield this.blobContext.setTier(Ds(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:E(x({},t.conditions),{ifTags:t.conditions?.tagConditions}),rehydratePriority:t.rehydratePriority,tracingOptions:i.tracingOptions}))}))})}downloadToBuffer(s,o,a){return p(this,arguments,function*(e,t,n,i={}){let c,l=0,d=0,u=i;e instanceof Buffer?(c=e,l=t||0,d=typeof n=="number"?n:0):(l=typeof e=="number"?e:0,d=typeof t=="number"?t:0,u=n||{});let h=u.blockSize??0;if(h<0)throw new RangeError("blockSize option must be >= 0");if(h===0&&(h=4194304),l<0)throw new RangeError("offset option must be >= 0");if(d&&d<=0)throw new RangeError("count option must be greater than 0");return u.conditions||(u.conditions={}),J.withSpan("BlobClient-downloadToBuffer",u,g=>p(this,null,function*(){if(!d){let C=yield this.getProperties(E(x({},u),{tracingOptions:g.tracingOptions}));if(d=C.contentLength-l,d<0)throw new RangeError(`offset ${l} shouldn't be larger than blob size ${C.contentLength}`)}if(!c)try{c=Buffer.alloc(d)}catch(C){throw new Error(`Unable to allocate the buffer of size: ${d}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile". ${C.message}`)}if(c.length<d)throw new RangeError(`The buffer's size should be equal to or larger than the request count of bytes: ${d}`);let y=0,S=new Jl(u.concurrency);for(let C=l;C<l+d;C=C+h)S.addOperation(()=>p(this,null,function*(){let N=l+d;C+h<N&&(N=C+h);let I=(yield this.download(C,N-C,{abortSignal:u.abortSignal,conditions:u.conditions,maxRetryRequests:u.maxRetryRequestsPerBlock,customerProvidedKey:u.customerProvidedKey,tracingOptions:g.tracingOptions})).readableStreamBody;yield(C-l,N-l,void 0),y+=N-C,u.onProgress&&u.onProgress({loadedBytes:y})}));return yield S.do(),c}))})}downloadToFile(s){return p(this,arguments,function*(e,t=0,n,i={}){return J.withSpan("BlobClient-downloadToFile",i,o=>p(this,null,function*(){let a=yield this.download(t,n,E(x({},i),{tracingOptions:o.tracingOptions}));return a.readableStreamBody&&(yield(a.readableStreamBody,void 0)),a.blobDownloadStream=void 0,a}))})}getBlobAndContainerNamesFromUrl(){let e,t;try{let n=new URL(this.url);if(n.host.split(".")[1]==="blob"){let i=n.pathname.match("/([^/]*)(/(.*))?");e=i[1],t=i[3]}else if(Ip(n)){let i=n.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=i[2],t=i[4]}else{let i=n.pathname.match("/([^/]*)(/(.*))?");e=i[1],t=i[3]}if(e=decodeURIComponent(e),t=decodeURIComponent(t),t=t.replace(/\\/g,"/"),!e)throw new Error("Provided containerName is invali
24d.");return{blobName:t,containerName:e}}catch{throw new Error("Unable to extract blobName and containerName with provided information.")}}startCopyFromURL(n){return p(this,arguments,function*(e,t={}){return J.withSpan("BlobClient-startCopyFromURL",t,i=>p(this,null,function*(){return t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},re(yield this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:E(x({},t.conditions),{ifTags:t.conditions?.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:Ds(t.tier),blobTagsString:Os(t.tags),sealBlob:t.sealBlob,tracingOptions:i.tracingOptions}))}))})}generateSasUrl(e){return new Promise(t=>{if(!(this.credential instanceof ht))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");let n=kp(x({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId},e),this.credential).toString();t(Kl(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof ht))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");return Wl(x({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId},e),this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise(n=>{let i=kp(x({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId},e),t,this.accountName).toString();n(Kl(this.url,i))})}generateUserDelegationSasStringToSign(e,t){return Wl(x({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId},e),t,this.accountName).stringToSign}deleteImmutabilityPolicy(){return p(this,arguments,function*(e={}){return J.withSpan("BlobClient-deleteImmutabilityPolicy",e,t=>p(this,null,function*(){return re(yield this.blobContext.deleteImmutabilityPolicy({tracingOptions:t.tracingOptions}))}))})}setImmutabilityPolicy(n){return p(this,arguments,function*(e,t={}){return J.withSpan("BlobClient-setImmutabilityPolicy",t,i=>p(this,null,function*(){return re(yield this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:i.tracingOptions}))}))})}setLegalHold(n){return p(this,arguments,function*(e,t={}){return J.withSpan("BlobClient-setLegalHold",t,i=>p(this,null,function*(){return re(yield this.blobContext.setLegalHold(e,{tracingOptions:i.tracingOptions}))}))})}getAccountInfo(){return p(this,arguments,function*(e={}){return J.withSpan("BlobClient-getAccountInfo",e,t=>p(this,null,function*(){return re(yield this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))}))})}},Hp=class r extends ko{appendBlobContext;constructor(e,t,n,i){let s,o;if(i=i||{},Yi(t))o=e,s=t;else if(Ke&&t instanceof ht||t instanceof rt||Xr(t))o=e,i=n,s=gt(t,i);else if(!t&&typeof t!="string")o=e,s=gt(new rt,i);else if(t&&typeof t=="string"&&n&&typeof n=="string"){let a=t,c=n,l=Io(e);if(l.kind==="AccountConnString")if(Ke){let d=new ht(l.accountName,l.accountKey);o=_t(_t(l.url,encodeURIComponent(a)),encodeURIComponent(c)),i.proxyOptions||(i.proxyOptions=_s(l.proxyUri)),s=gt(d,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(l.kind==="SASConnString")o=_t(_t(l.url,encodeURIComponent(a)),encodeURIComponent(c))+"?"+l.accountSas,s=gt(new rt,i);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(o,s),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new r(Ha(this.url,Qi.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}create(){return p(this,arguments,function*(e={}){return e.conditions=e.conditions||{},At(e.customerProvidedKey,this.isHttps),J.withSpan("AppendBlobClient-create",e,t=>p(this,null,function*(){return re(yield this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:E(x({},e.conditions),{ifTags:e.conditions?.tagConditions}),cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:Os(e.tags),tracingOptions:t.tracingOptions}))}))})}createIfNotExists(){return p(this,arguments,function*(e={}){let t={ifNoneMatch:yb};return J.withSpan("AppendBlobClient-createIfNotExists",e,n=>p(this,null,function*(){try{let i=re(yield this.create(E(x({}
24,n),{conditions:t})));return E(x({succeeded:!0},i),{_response:i._response})}catch(i){if(i.details?.errorCode==="BlobAlreadyExists")return E(x({succeeded:!1},i.response?.parsedHeaders),{_response:i.response});throw i}}))})}seal(){return p(this,arguments,function*(e={}){return e.conditions=e.conditions||{},J.withSpan("AppendBlobClient-seal",e,t=>p(this,null,function*(){return re(yield this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:E(x({},e.conditions),{ifTags:e.conditions?.tagConditions}),tracingOptions:t.tracingOptions}))}))})}appendBlock(i,s){return p(this,arguments,function*(e,t,n={}){return n.conditions=n.conditions||{},At(n.customerProvidedKey,this.isHttps),J.withSpan("AppendBlobClient-appendBlock",n,o=>p(this,null,function*(){return re(yield this.appendBlobContext.appendBlock(t,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:E(x({},n.conditions),{ifTags:n.conditions?.tagConditions}),requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:o.tracingOptions}))}))})}appendBlockFromURL(s,o,a){return p(this,arguments,function*(e,t,n,i={}){return i.conditions=i.conditions||{},i.sourceConditions=i.sourceConditions||{},At(i.customerProvidedKey,this.isHttps),J.withSpan("AppendBlobClient-appendBlockFromURL",i,c=>p(this,null,function*(){return re(yield this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:i.abortSignal,sourceRange:Dr({offset:t,count:n}),sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,appendPositionAccessConditions:i.conditions,modifiedAccessConditions:E(x({},i.conditions),{ifTags:i.conditions?.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:Fa(i.sourceAuthorization),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:c.tracingOptions}))}))})}},Ka=class r extends ko{_blobContext;blockBlobContext;constructor(e,t,n,i){let s,o;if(i=i||{},Yi(t))o=e,s=t;else if(Ke&&t instanceof ht||t instanceof rt||Xr(t))o=e,i=n,s=gt(t,i);else if(!t&&typeof t!="string")o=e,n&&typeof n!="string"&&(i=n),s=gt(new rt,i);else if(t&&typeof t=="string"&&n&&typeof n=="string"){let a=t,c=n,l=Io(e);if(l.kind==="AccountConnString")if(Ke){let d=new ht(l.accountName,l.accountKey);o=_t(_t(l.url,encodeURIComponent(a)),encodeURIComponent(c)),i.proxyOptions||(i.proxyOptions=_s(l.proxyUri)),s=gt(d,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(l.kind==="SASConnString")o=_t(_t(l.url,encodeURIComponent(a)),encodeURIComponent(c))+"?"+l.accountSas,s=gt(new rt,i);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(o,s),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new r(Ha(this.url,Qi.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}query(n){return p(this,arguments,function*(e,t={}){if(At(t.customerProvidedKey,this.isHttps),!Ke)throw new Error("This operation currently is only supported in Node.js.");return J.withSpan("BlockBlobClient-query",t,i=>p(this,null,function*(){let s=re(yield this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:vP(t.inputTextConfiguration),outputSerialization:vP(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:E(x({},t.conditions),{ifTags:t.conditions?.tagConditions}),cpkInfo:t.customerProvidedKey,tracingOptions:i.tracingOptions}));return new Xl(s,{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError})}))})}upload(i,s){return p(this,arguments,function*(e,t,n={}){return n.conditions=n.conditions||{},At(n.customerProvidedKey,this.isHttps),J.withSpan("BlockBlobClient-upload",n,o=>p(this,null,function*(){return re(yield this.blockBlobContext.upload(t,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:E(x({},n.conditions),{ifTags:n.conditions?.tagConditions}),requestOptions:{onUploadProgress:n.onProgress},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:Ds(n.tier),blobTagsString:Os(n.tags),tracingOptions:o.tracingOptions}))}))})}syncUploadFromURL(n){return p(this,arguments,function*(e,t={}){return t.conditions=t.conditions||{},At(t.customerProvidedKey,this.isHttps),J.withSpan("BlockBlobClient-syncUploadFromURL",t,i=>p(this,null,function*(){return re(yield this.blockBlobContext.putBlobFromUrl(0,e,E(x({},t),{blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:E(x({},t.conditions),{ifTags:t.conditions?.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:Fa(t.sourceAuthorization),tier:Ds(t.tier),blobTagsString:Os(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:i.tracingOptions})))}
24))})}stageBlock(s,o,a){return p(this,arguments,function*(e,t,n,i={}){return At(i.customerProvidedKey,this.isHttps),J.withSpan("BlockBlobClient-stageBlock",i,c=>p(this,null,function*(){return re(yield this.blockBlobContext.stageBlock(e,n,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,requestOptions:{onUploadProgress:i.onProgress},transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,tracingOptions:c.tracingOptions}))}))})}stageBlockFromURL(o,a){return p(this,arguments,function*(e,t,n=0,i,s={}){return At(s.customerProvidedKey,this.isHttps),J.withSpan("BlockBlobClient-stageBlockFromURL",s,c=>p(this,null,function*(){return re(yield this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,sourceRange:n===0&&!i?void 0:Dr({offset:n,count:i}),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,copySourceAuthorization:Fa(s.sourceAuthorization),fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:c.tracingOptions}))}))})}commitBlockList(n){return p(this,arguments,function*(e,t={}){return t.conditions=t.conditions||{},At(t.customerProvidedKey,this.isHttps),J.withSpan("BlockBlobClient-commitBlockList",t,i=>p(this,null,function*(){return re(yield this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:E(x({},t.conditions),{ifTags:t.conditions?.tagConditions}),cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:Ds(t.tier),blobTagsString:Os(t.tags),tracingOptions:i.tracingOptions}))}))})}getBlockList(n){return p(this,arguments,function*(e,t={}){return J.withSpan("BlockBlobClient-getBlockList",t,i=>p(this,null,function*(){let s=re(yield this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:E(x({},t.conditions),{ifTags:t.conditions?.tagConditions}),tracingOptions:i.tracingOptions}));return s.committedBlocks||(s.committedBlocks=[]),s.uncommittedBlocks||(s.uncommittedBlocks=[]),s}))})}uploadData(n){return p(this,arguments,function*(e,t={}){return J.withSpan("BlockBlobClient-uploadData",t,i=>p(this,null,function*(){if(Ke){let s;return e instanceof Buffer?s=e:e instanceof ArrayBuffer?s=Buffer.from(e):(e=e,s=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),this.uploadSeekableInternal((o,a)=>s.slice(o,o+a),s.byteLength,i)}else{let s=new Blob([e]);return this.uploadSeekableInternal((o,a)=>s.slice(o,o+a),s.size,i)}}))})}uploadBrowserData(n){return p(this,arguments,function*(e,t={}){return J.withSpan("BlockBlobClient-uploadBrowserData",t,i=>p(this,null,function*(){let s=new Blob([e]);return this.uploadSeekableInternal((o,a)=>s.slice(o,o+a),s.size,i)}))})}uploadSeekableInternal(i,s){return p(this,arguments,function*(e,t,n={}){let o=n.blockSize??0;if(o<0||o>4194304e3)throw new RangeError(`blockSize option must be >= 0 and <= ${4194304e3}`);let a=n.maxSingleShotSize??268435456;if(a<0||a>268435456)throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${268435456}`);if(o===0){if(t>4194304e3*5e4)throw new RangeError(`${t} is too larger to upload to a block blob.`);t>a&&(o=Math.ceil(t/5e4),o<4194304&&(o=4194304))}return n.blobHTTPHeaders||(n.blobHTTPHeaders={}),n.conditions||(n.conditions={}),J.withSpan("BlockBlobClient-uploadSeekableInternal",n,c=>p(this,null,function*(){if(t<=a)return re(yield this.upload(e(0,t),t,c));let l=Math.floor((t-1)/o)+1;if(l>5e4)throw new RangeError(`The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= ${5e4}`);let d=[],u=Ia(),h=0,g=new Jl(n.concurrency);for(let y=0;y<l;y++)g.addOperation(()=>p(this,null,function*(){let S=NP(u,y),C=o*y,T=(y===l-1?t:C+o)-C;d.push(S),yield this.stageBlock(S,e(C,T),T,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:c.tracingOptions}),h+=T,n.onProgress&&n.onProgress({loadedBytes:h})}));return yield g.do(),this.commitBlockList(d,c)}))})}uploadFile(n){return p(this,arguments,function*(e,t={}){return J.withSpan("BlockBlobClient-uploadFile",t,i=>p(this,null,function*(){let s=(yield UI(e)).size;return this.uploadSeekableInternal((o,a)=>()=>qI(e,{autoClose:!0,end:a?o+a-1:1/0,start:o}),s,E(x({},t),{tracingOptions:i.tracingOptions}))}))})}uploadStream(s){return p(this,arguments,function*(e,t=8388608,n=5,i={}){return i.blobHTTPHeaders||(i.blobHTTPHeaders={}),i.conditions||(i.conditions={}),J.withSpan("BlockBlobClient-uploadStream",i,o=>p(this,null,function*(){let a=0,c=Ia(),l=0,d=[];return yield new $u(e,t,n,(h,g)=>p(this,null,function*(){let y=NP(c,a);d.push(y),a++,yield this.stageBlock(y,h,g,{customerProvidedKey:i.customerProvidedKey,conditions:i.conditions,encryptionScope:i.encryptionScope,tracingOptions:o.tracingOptions}),l+=g,i.onProgress&&i.onProgress({loadedBytes:l})}),Math.ceil(n/4*3)).do(),re(yield this.commitBlockList(d,E(x({},i),{tracingOptions:o.tracingOptions})))}
24))})}},Fp=class r extends ko{pageBlobContext;constructor(e,t,n,i){let s,o;if(i=i||{},Yi(t))o=e,s=t;else if(Ke&&t instanceof ht||t instanceof rt||Xr(t))o=e,i=n,s=gt(t,i);else if(!t&&typeof t!="string")o=e,s=gt(new rt,i);else if(t&&typeof t=="string"&&n&&typeof n=="string"){let a=t,c=n,l=Io(e);if(l.kind==="AccountConnString")if(Ke){let d=new ht(l.accountName,l.accountKey);o=_t(_t(l.url,encodeURIComponent(a)),encodeURIComponent(c)),i.proxyOptions||(i.proxyOptions=_s(l.proxyUri)),s=gt(d,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(l.kind==="SASConnString")o=_t(_t(l.url,encodeURIComponent(a)),encodeURIComponent(c))+"?"+l.accountSas,s=gt(new rt,i);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(o,s),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new r(Ha(this.url,Qi.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}create(n){return p(this,arguments,function*(e,t={}){return t.conditions=t.conditions||{},At(t.customerProvidedKey,this.isHttps),J.withSpan("PageBlobClient-create",t,i=>p(this,null,function*(){return re(yield this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:E(x({},t.conditions),{ifTags:t.conditions?.tagConditions}),cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:Ds(t.tier),blobTagsString:Os(t.tags),tracingOptions:i.tracingOptions}))}))})}createIfNotExists(n){return p(this,arguments,function*(e,t={}){return J.withSpan("PageBlobClient-createIfNotExists",t,i=>p(this,null,function*(){try{let s={ifNoneMatch:yb},o=re(yield this.create(e,E(x({},t),{conditions:s,tracingOptions:i.tracingOptions})));return E(x({succeeded:!0},o),{_response:o._response})}catch(s){if(s.details?.errorCode==="BlobAlreadyExists")return E(x({succeeded:!1},s.response?.parsedHeaders),{_response:s.response});throw s}}))})}uploadPages(s,o,a){return p(this,arguments,function*(e,t,n,i={}){return i.conditions=i.conditions||{},At(i.customerProvidedKey,this.isHttps),J.withSpan("PageBlobClient-uploadPages",i,c=>p(this,null,function*(){return re(yield this.pageBlobContext.uploadPages(n,e,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:E(x({},i.conditions),{ifTags:i.conditions?.tagConditions}),requestOptions:{onUploadProgress:i.onProgress},range:Dr({offset:t,count:n}),sequenceNumberAccessConditions:i.conditions,transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,tracingOptions:c.tracingOptions}))}))})}uploadPagesFromURL(o,a,c,l){return p(this,arguments,function*(e,t,n,i,s={}){return s.conditions=s.conditions||{},s.sourceConditions=s.sourceConditions||{},At(s.customerProvidedKey,this.isHttps),J.withSpan("PageBlobClient-uploadPagesFromURL",s,d=>p(this,null,function*(){return re(yield this.pageBlobContext.uploadPagesFromURL(e,Dr({offset:t,count:i}),0,Dr({offset:n,count:i}),{abortSignal:s.abortSignal,sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,leaseAccessConditions:s.conditions,sequenceNumberAccessConditions:s.conditions,modifiedAccessConditions:E(x({},s.conditions),{ifTags:s.conditions?.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:s.sourceConditions?.ifMatch,sourceIfModifiedSince:s.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:s.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:s.sourceConditions?.ifUnmodifiedSince},cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,copySourceAuthorization:Fa(s.sourceAuthorization),fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:d.tracingOptions}))}))})}clearPages(){return p(this,arguments,function*(e=0,t,n={}){return n.conditions=n.conditions||{},J.withSpan("PageBlobClient-clearPages",n,i=>p(this,null,function*(){return re(yield this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:E(x({},n.conditions),{ifTags:n.conditions?.tagConditions}),range:Dr({offset:e,count:t}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:i.tracingOptions}))}))})}getPageRanges(){return p(this,arguments,function*(e=0,t,n={}){return n.conditions=n.conditions||{},J.withSpan("PageBlobClient-getPageRanges",n,i=>p(this,null,function*(){let s=re(yield this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:E(x({},n.conditions),{ifTags:n.conditions?.tagConditions}),range:Dr({offset:e,count:t}),tracingOptions:i.tracingOptions}));return Op(s)}))})}listPageRangesSegment(){return p(this,arguments,function*(e=0,t,n,i={}){return J.withSpan("PageBlobClient-getPageRangesSegment",i,s=>p(this,null,function*(){return re(yield this.pageBlobContext.getPageRanges({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:E(x({},i.conditions),{ifTags:i.conditions?.tagConditions}),range:Dr({offset:e,count:t}),marker:n,maxPageSize:i.maxPageSize,tracingOptions:s.tracingOptions}))}))})}listPageRangeItemSegments(){return $e(this,arguments,function*(e=0,t,n,i={}){let s;if(n||n===void 0)do s=yield new be(this.listPageRangesSegment(e,t,n,i)),n=s.continuationToken,yield yield new be(s);while(n)})}listPageRangeItems(){return $e(this,arguments,function*(e=0,t,n={}){let i;try{for(var s=bt(this.listPageRangeItemSegments(e,t,i,n)),o,a,c;o=!(a=yield new be(s.next())).done;o=!1){let l=a.value;yield*io(TP(l))}}catch{c=[a]}finally{try{o&&(a=s.return)&&(yield new be(a.call(s)))}finally{if(c)throw c[0]}}})}listPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};
24let i=this.listPageRangeItems(e,t,n);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(s={})=>this.listPageRangeItemSegments(e,t,s.continuationToken,x({maxPageSize:s.maxPageSize},n))}}getPageRangesDiff(s,o,a){return p(this,arguments,function*(e,t,n,i={}){return i.conditions=i.conditions||{},J.withSpan("PageBlobClient-getPageRangesDiff",i,c=>p(this,null,function*(){let l=re(yield this.pageBlobContext.getPageRangesDiff({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:E(x({},i.conditions),{ifTags:i.conditions?.tagConditions}),prevsnapshot:n,range:Dr({offset:e,count:t}),tracingOptions:c.tracingOptions}));return Op(l)}))})}listPageRangesDiffSegment(o,a,c,l){return p(this,arguments,function*(e,t,n,i,s={}){return J.withSpan("PageBlobClient-getPageRangesDiffSegment",s,d=>p(this,null,function*(){return re(yield this.pageBlobContext.getPageRangesDiff({abortSignal:s?.abortSignal,leaseAccessConditions:s?.conditions,modifiedAccessConditions:E(x({},s?.conditions),{ifTags:s?.conditions?.tagConditions}),prevsnapshot:n,range:Dr({offset:e,count:t}),marker:i,maxPageSize:s?.maxPageSize,tracingOptions:d.tracingOptions}))}))})}listPageRangeDiffItemSegments(e,t,n,i,s){return $e(this,null,function*(){let o;if(i||i===void 0)do o=yield new be(this.listPageRangesDiffSegment(e,t,n,i,s)),i=o.continuationToken,yield yield new be(o);while(i)})}listPageRangeDiffItems(e,t,n,i){return $e(this,null,function*(){let s;try{for(var o=bt(this.listPageRangeDiffItemSegments(e,t,n,s,i)),a,c,l;a=!(c=yield new be(o.next())).done;a=!1){let d=c.value;yield*io(TP(d))}}catch{l=[c]}finally{try{a&&(c=o.return)&&(yield new be(c.call(o)))}finally{if(l)throw l[0]}}})}listPageRangesDiff(e,t,n,i={}){i.conditions=i.conditions||{};let s=this.listPageRangeDiffItems(e,t,n,x({},i));return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(o={})=>this.listPageRangeDiffItemSegments(e,t,n,o.continuationToken,x({maxPageSize:o.maxPageSize},i))}}getPageRangesDiffForManagedDisks(s,o,a){return p(this,arguments,function*(e,t,n,i={}){return i.conditions=i.conditions||{},J.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",i,c=>p(this,null,function*(){let l=re(yield this.pageBlobContext.getPageRangesDiff({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:E(x({},i.conditions),{ifTags:i.conditions?.tagConditions}),prevSnapshotUrl:n,range:Dr({offset:e,count:t}),tracingOptions:c.tracingOptions}));return Op(l)}))})}resize(n){return p(this,arguments,function*(e,t={}){return t.conditions=t.conditions||{},J.withSpan("PageBlobClient-resize",t,i=>p(this,null,function*(){return re(yield this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:E(x({},t.conditions),{ifTags:t.conditions?.tagConditions}),encryptionScope:t.encryptionScope,tracingOptions:i.tracingOptions}))}))})}updateSequenceNumber(i,s){return p(this,arguments,function*(e,t,n={}){return n.conditions=n.conditions||{},J.withSpan("PageBlobClient-updateSequenceNumber",n,o=>p(this,null,function*(){return re(yield this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:t,leaseAccessConditions:n.conditions,modifiedAccessConditions:E(x({},n.conditions),{ifTags:n.conditions?.tagConditions}),tracingOptions:o.tracingOptions}))}))})}startCopyIncremental(n){return p(this,arguments,function*(e,t={}){return J.withSpan("PageBlobClient-startCopyIncremental",t,i=>p(this,null,function*(){return re(yield this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:E(x({},t.conditions),{ifTags:t.conditions?.tagConditions}),tracingOptions:i.tracingOptions}))}))})}};var HI=r=>({setHttpHandler(e){r.httpHandler=e},httpHandler(){return r.httpHandler},updateHttpClientConfig(e,t){r.httpHandler?.updateHttpClientConfig(e,t)},httpHandlerConfigs(){return r.httpHandler.httpHandlerConfigs()}}),FI=r=>({httpHandler:r.httpHandler()});var Zl=function(r){return r.HTTP="http",r.HTTPS="https",r}(Zl||{});var em=function(r){return r.MD5="md5",r.CRC32="crc32",r.CRC32C="crc32c",r.SHA1="sha1",r.SHA256="sha256",r}(em||{});var tm="__smithy_context";var Ne=class r{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){let t=new r(E(x({},e),{headers:x({},e.headers)}));return t.query&&(t.query=Nj(t.query)),t}static isInstance(e){if(!e)return!1;let t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t.query=="object"&&typeof t.headers=="object"}clone(){return r.clone(this)}};function Nj(r){return Object.keys(r).reduce((e,t)=>
24{let n=r[t];return E(x({},e),{[t]:Array.isArray(n)?[...n]:n})},{})}var br=class{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;let t=e;return typeof t.statusCode=="number"&&typeof t.headers=="object"}};function wj(r){return e=>t=>p(null,null,function*(){let{request:n}=t;if(r.expectContinueHeader!==!1&&Ne.isInstance(n)&&n.body&&r.runtime==="node"&&r.requestHandler?.constructor?.name!=="FetchHttpHandler"){let i=!0;if(typeof r.expectContinueHeader=="number")try{i=(Number(n.headers?.["content-length"])??r.bodyLengthChecker?.(n.body)??1/0)>=r.expectContinueHeader}catch{}else i=!!r.expectContinueHeader;i&&(n.headers.Expect="100-continue")}return e(E(x({},t),{request:n}))})}var Rj={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},$I=r=>({applyToStack:e=>{e.add(wj(r),Rj)}});var ns={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},jI=ns.WHEN_SUPPORTED,$p={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},GI=ns.WHEN_SUPPORTED,De=function(r){return r.MD5="MD5",r.CRC32="CRC32",r.CRC32C="CRC32C",r.CRC64NVME="CRC64NVME",r.SHA1="SHA1",r.SHA256="SHA256",r}(De||{});var rm=De.CRC32;function KI(r,e,t){return r.$source||(r.$source={}),r.$source[e]=t,r}function it(r,e,t){r.__aws_sdk_context?r.__aws_sdk_context.features||(r.__aws_sdk_context.features={}):r.__aws_sdk_context={features:{}},r.__aws_sdk_context.features[e]=t}var DP=r=>br.isInstance(r)?r.headers?.date??r.headers?.Date:void 0;var Wa=r=>new Date(Date.now()+r);var WI=(r,e)=>Math.abs(Wa(e).getTime()-r)>=3e5;var LP=(r,e)=>{let t=Date.parse(r);return WI(t,e)?t-Date.now():e};var nm=(r,e)=>{if(!e)throw new Error(`Property \`${r}\` is not resolved for AWS SDK SigV4Auth`);return e},jp=r=>p(null,null,function*(){let e=nm("context",r.context),t=nm("config",r.config),n=e.endpointV2?.properties?.authSchemes?.[0],s=yield nm("signer",t.signer)(n),o=r?.signingRegion,a=r?.signingRegionSet,c=r?.signingName;return{config:t,signer:s,signingRegion:o,signingRegionSet:a,signingName:c}}),Oo=class{sign(e,t,n){return p(this,null,function*(){if(!Ne.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let i=yield jp(n),{config:s,signer:o}=i,{signingRegion:a,signingName:c}=i,l=n.context;if(l?.authSchemes?.length??!1){let[u,h]=l.authSchemes;u?.name==="sigv4a"&&h?.name==="sigv4"&&(a=h?.signingRegion??a,c=h?.signingName??c)}return yield o.sign(e,{signingDate:Wa(s.systemClockOffset),signingRegion:a,signingService:c})})}errorHandler(e){return t=>{let n=t.ServerTime??DP(t.$response);if(n){let i=nm("config",e.config),s=i.systemClockOffset;i.systemClockOffset=LP(n,i.systemClockOffset),i.systemClockOffset!==s&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){let n=DP(e);if(n){let i=nm("config",t.config);i.systemClockOffset=LP(n,i.systemClockOffset)}}};var im=class extends Oo{sign(e,t,n){return p(this,null,function*(){if(!Ne.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:i,signer:s,signingRegion:o,signingRegionSet:a,signingName:c}=yield jp(n),d=((yield i.sigv4aSigningRegionSet?.())??a??[o]).join(",");return yield s.sign(e,{signingDate:Wa(i.systemClockOffset),signingRegion:d,signingService:c})})}};var Sr=r=>r[tm]||(r[tm]={});var nr=r=>{if(typeof r=="function")return r;let e=Promise.resolve(r);return()=>e};var VI=(r,e)=>{if(!e||e.length===0)return r;let t=[];for(let n of e)for(let i of r)i.schemeId.split("#")[1]===n&&t.push(i);for(let n of r)t.find(({schemeId:i})=>i===n.schemeId)||t.push(n);return t};function vj(r){let e=new Map;for(let t of r)e.set(t.schemeId,t);return e}var XI=(r,e)=>(t,n)=>i=>p(null,null,function*(){let s=r.httpAuthSchemeProvider(yield e.httpAuthSchemeParametersProvider(r,n,i.input)),o=r.authSchemePreference?yield r.authSchemePreference():[],a=VI(s,o),c=vj(r.httpAuthSchemes),l=Sr(n),d=[];for(let u of a){let h=c.get(u.schemeId);if(!h){d.push(`HttpAuthScheme \`${u.schemeId}\` was not enabled for this service.`);continue}
24let g=h.identityProvider(yield e.identityProviderConfigProvider(r));if(!g){d.push(`HttpAuthScheme \`${u.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:y={},signingProperties:S={}}=u.propertiesExtractor?.(r,n)||{};u.identityProperties=Object.assign(u.identityProperties||{},y),u.signingProperties=Object.assign(u.signingProperties||{},S),l.selectedHttpAuthScheme={httpAuthOption:u,identity:yield g(u.identityProperties),signer:h.signer};break}if(!l.selectedHttpAuthScheme)throw new Error(d.join(` 25`));return t(i)});var Tj={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},QI=(r,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:t})=>({applyToStack:n=>{n.addRelativeTo(XI(r,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:t}),Tj)}});var YI={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};var _j=r=>e=>{throw e},Aj=(r,e)=>{},JI=r=>(e,t)=>n=>p(null,null,function*(){if(!Ne.isInstance(n.request))return e(n);let s=Sr(t).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:o={}},identity:a,signer:c}=s,l=yield e(E(x({},n),{request:yield c.sign(n.request,a,o)})).catch((c.errorHandler||_j)(o));return(c.successHandler||Aj)(l.response,o),l});var zP={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},ZI=r=>({applyToStack:e=>{e.addRelativeTo(JI(r),zP)}});var is=r=>{if(typeof r=="function")return r;let e=Promise.resolve(r);return()=>e};var eM="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",UP=Object.entries(eM).reduce((r,[e,t])=>(r[t]=Number(e),r),{}),tM=eM.split(""),Ls=6,Do=8,rM=63;var Hn=r=>{let e=r.length/4*3;r.slice(-2)==="=="?e-=2:r.slice(-1)==="="&&e--;let t=new ArrayBuffer(e),n=new DataView(t);for(let i=0;i<r.length;i+=4){let s=0,o=0;for(let l=i,d=i+3;l<=d;l++)if(r[l]!=="="){if(!(r[l]in UP))throw new TypeError(`Invalid character ${r[l]} in base64 string.`);s|=UP[r[l]]<<(d-l)*Ls,o+=Ls}else s>>=Ls;let a=i/4*3;s>>=o%Do;let c=Math.floor(o/Do);for(let l=0;l<c;l++){let d=(c-l-1)*Do;n.setUint8(a+l,(s&255<<d)>>d)}}return new Uint8Array(t)};var Fn=r=>typeof r=="string"?gr(r):ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(r);function Jr(r){let e;typeof r=="string"?e=gr(r):e=r;let t=typeof e=="object"&&typeof e.length=="number",n=typeof e=="object"&&typeof e.byteOffset=="number"&&typeof e.byteLength=="number";if(!t&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let i="";for(let s=0;s<e.length;s+=3){let o=0,a=0;for(let l=s,d=Math.min(s+3,e.length);l<d;l++)o|=e[l]<<(d-l-1)*Do,a+=Do;let c=Math.ceil(a/Ls);o<<=c*Ls-a;for(let l=1;l<=c;l++){let d=(c-l)*Ls;i+=tM[(o&rM<<d)>>d]}i+="==".slice(0,4-c)}return i}var Va=class r extends Uint8Array{static fromString(e,t="utf-8"){if(typeof e=="string")return t==="base64"?r.mutate(Hn(e)):r.mutate(gr(e));throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,r.prototype),e}transformToString(e="utf-8"){return e==="base64"?Jr(this):ln(this)}};var Ij=typeof ReadableStream=="function"?ReadableStream:function(){},Gp=class extends Ij{};var sm=r=>typeof ReadableStream=="function"&&(r?.constructor?.name===ReadableStream.name||r instanceof ReadableStream);var nM=({expectedChecksum:r,checksum:e,source:t,checksumSourceLocation:n,base64Encoder:i})=>{if(!sm(t))throw new Error(`@smithy/util-stream: unsupported source type ${t?.constructor?.name??t} in ChecksumStream.`);let s=i??Jr;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let o=new TransformStream({start(){},transform(l,d){return p(this,null,function*(){e.update(l),d.enqueue(l)})},flush(l){return p(this,null,function*(){let d=yield e.digest(),u=s(d);if(r!==u){let h=new Error(`Checksum mismatch: expected "${r}" but received "${u}" in response header "${n}".`);l.error(h)}else l.terminate()})}});t.pipeThrough(o);let a=o.readable;return Object.setPrototypeOf(a,Gp.prototype),a};var Kp=class{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){let n=this.byteArrays[0];return this.reset(),n}let e=this.allocByteArray(this.byteLength),t=0;for(let n=0;n<this.byteArrays.length;++n){let i=this.byteArrays[n];e.set(i,t),t+=i.byteLength}return this.reset(),e}reset(){this.byteArrays=[],this.byteLength=0}};function Mj(r,e,t){let n=r.getReader(),i=!1,s=0,o=["",new Kp(l=>new Uint8Array(l))],a=-1,c=l=>p(null,null,function*(){let{value:d,done:u}=yield n.read(),h=d;if(u){if(a!==-1){let g=qP(o,a);om(g)>0&&l.enqueue(g)}l.close()}else{let g=kj(h,!1);if(a!==g&&(a>=0&&l.enqueue(qP(o,a)),a=g),a===-1){l.enqueue(h);return}let y=om(h);s+=y;let S=om(o[a]);if(y>=e&&S===0)l.enqueue(h);else{let C=Bj(o,a,h);!i&&s>
25e*2&&(i=!0,t?.warn(`@smithy/util-stream - stream chunk size ${y} is below threshold of ${e}, automatically buffering.`)),C>=e?l.enqueue(qP(o,a)):yield c(l)}}});return new ReadableStream({pull:c})}var iM=Mj;function Bj(r,e,t){switch(e){case 0:return r[0]+=t,om(r[0]);case 1:case 2:return r[e].push(t),om(r[e])}}function qP(r,e){switch(e){case 0:let t=r[0];return r[0]="",t;case 1:case 2:return r[e].flush()}throw new Error(`@smithy/util-stream - invalid index ${e} given to flush()`)}function om(r){return r?.byteLength??r?.length??0}function kj(r,e=!0){return e&&typeof Buffer<"u"&&r instanceof Buffer?2:r instanceof Uint8Array?1:typeof r=="string"?0:-1}var sM=(r,e)=>{let{base64Encoder:t,bodyLengthChecker:n,checksumAlgorithmFn:i,checksumLocationName:s,streamHasher:o}=e,a=t!==void 0&&n!==void 0&&i!==void 0&&s!==void 0&&o!==void 0,c=a?o(i,r):void 0,l=r.getReader();return new ReadableStream({pull(u){return p(this,null,function*(){let{value:h,done:g}=yield l.read();if(g){if(u.enqueue(`0\r 26`),a){let y=t(yield c);u.enqueue(`${s}:${y}\r 27`),u.enqueue(`\r 28`)}u.close()}else u.enqueue(`${(n(h)||0).toString(16)}\r 29${h}\r 30`)})}})};function oM(r,e){return p(this,null,function*(){let t=0,n=[],i=r.getReader(),s=!1;for(;!s;){let{done:c,value:l}=yield i.read();if(l&&(n.push(l),t+=l?.byteLength??0),t>=e)break;s=c}i.releaseLock();let o=new Uint8Array(Math.min(e,t)),a=0;for(let c of n){if(c.byteLength>o.byteLength-a){o.set(c.subarray(0,o.byteLength-a),a);break}else o.set(c,a);a+=c.length}return o})}var wi=r=>encodeURIComponent(r).replace(/[!'()*]/g,Oj),Oj=r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`;function aM(r){let e=[];for(let t of Object.keys(r).sort()){let n=r[t];if(t=wi(t),Array.isArray(n))for(let i=0,s=n.length;i<s;i++)e.push(`${t}=${wi(n[i])}`);else{let i=t;(n||typeof n=="string")&&(i+=`=${wi(n)}`),e.push(i)}}return e.join("&")}function HP(r,e){return new Request(r,e)}function cM(r=0){return new Promise((e,t)=>{r&&setTimeout(()=>{let n=new Error(`Request did not complete within ${r} ms`);n.name="TimeoutError",t(n)},r)})}var FP={supported:void 0},Wp=class r{config;configProvider;static create(e){return typeof e?.handle=="function"?e:new r(e)}constructor(e){typeof e=="function"?this.configProvider=e().then(t=>t||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),FP.supported===void 0&&(FP.supported=typeof Request<"u"&&"keepalive"in HP("https://[::1]"))}destroy(){}handle(i){return p(this,arguments,function*(e,{abortSignal:t,requestTimeout:n}={}){this.config||(this.config=yield this.configProvider);let s=n??this.config.requestTimeout,o=this.config.keepAlive===!0,a=this.config.credentials;if(t?.aborted){let I=new Error("Request aborted");return I.name="AbortError",Promise.reject(I)}let c=e.path,l=aM(e.query||{});l&&(c+=`?${l}`),e.fragment&&(c+=`#${e.fragment}`);let d="";if(e.username!=null||e.password!=null){let I=e.username??"",k=e.password??"";d=`${I}:${k}@`}let{port:u,method:h}=e,g=`${e.protocol}//${d}${e.hostname}${u?`:${u}`:""}${c}`,y=h==="GET"||h==="HEAD"?void 0:e.body,S={body:y,headers:new Headers(e.headers),method:h,credentials:a};this.config?.cache&&(S.cache=this.config.cache),y&&(S.duplex="half"),typeof AbortController<"u"&&(S.signal=t),FP.supported&&(S.keepalive=o),typeof this.config.requestInit=="function"&&Object.assign(S,this.config.requestInit(e));let C=()=>{},N=HP(g,S),T=[fetch(N).then(I=>{let k=I.headers,Z={};for(let ae of k.entries())Z[ae[0]]=ae[1];return I.body!=null?{response:new br({headers:Z,reason:I.statusText,statusCode:I.status,body:I.body})}:I.blob().then(ae=>({response:new br({headers:Z,reason:I.statusText,statusCode:I.status,body:ae})}))}),cM(s)];return t&&T.push(new Promise((I,k)=>{let Z=()=>{let te=new Error("Request aborted");te.name="AbortError",k(te)};if(typeof t.addEventListener=="function"){let te=t;te.addEventListener("abort",Z,{once:!0}),C=()=>te.removeEventListener("abort",Z)}else t.onabort=Z})),Promise.race(T).finally(C)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=t,n))}httpHandlerConfigs(){return this.config??{}}};var Vp=r=>p(null,null,function*(){return typeof Blob=="function"&&r instanceof Blob||r.constructor?.name==="Blob"?Blob.prototype.arrayBuffer!==void 0?new Uint8Array(yield r.arrayBuffer()):Dj(r):Lj(r)});function Dj(r){return p(this,null,function*(){let e=yield zj(r),t=Hn(e);return new Uint8Array(t)})}function Lj(r){return p(this,null,function*(){let e=[],t=r.getReader(),n=!1,i=0;for(;!n;){let{done:a,value:c}=yield t.read();c&&(e.push(c),i+=c.length),n=a}let s=new Uint8Array(i),o=0;for(let a of e)s.set(a,o),o+=a.length;return s})}function zj(r){return new Promise((e,t)=>
30{let n=new FileReader;n.onloadend=()=>{if(n.readyState!==2)return t(new Error("Reader aborted too early"));let i=n.result??"",s=i.indexOf(","),o=s>-1?s+1:i.length;e(i.substring(o))},n.onabort=()=>t(new Error("Read aborted")),n.onerror=()=>t(n.error),n.readAsDataURL(r)})}var lM={},$P={};for(let r=0;r<256;r++){let e=r.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),lM[r]=e,$P[e]=r}function Xp(r){if(r.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let e=new Uint8Array(r.length/2);for(let t=0;t<r.length;t+=2){let n=r.slice(t,t+2).toLowerCase();if(n in $P)e[t/2]=$P[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return e}function pt(r){let e="";for(let t=0;t<r.byteLength;t++)e+=lM[r[t]];return e}var mM="The stream has already been transformed.",Qp=r=>{if(!dM(r)&&!sm(r)){let i=r?.__proto__?.constructor?.name||r;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${i}`)}let e=!1,t=()=>p(null,null,function*(){if(e)throw new Error(mM);return e=!0,yield Vp(r)}),n=i=>{if(typeof i.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled. 31If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return i.stream()};return Object.assign(r,{transformToByteArray:t,transformToString:i=>p(null,null,function*(){let s=yield t();if(i==="base64")return Jr(s);if(i==="hex")return pt(s);if(i===void 0||i==="utf8"||i==="utf-8")return ln(s);if(typeof TextDecoder=="function")return new TextDecoder(i).decode(s);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")}),transformToWebStream:()=>{if(e)throw new Error(mM);if(e=!0,dM(r))return n(r);if(sm(r))return r;throw new Error(`Cannot transform payload to web stream, got ${r}`)}})},dM=r=>typeof Blob=="function"&&r instanceof Blob;function uM(r){return p(this,null,function*(){return typeof r.stream=="function"&&(r=r.stream()),r.tee()})}var am=(...t)=>p(null,[...t],function*(r=new Uint8Array,e){if(r instanceof Uint8Array)return Va.mutate(r);if(!r)return Va.mutate(new Uint8Array);let n=e.streamCollector(r);return Va.mutate(yield n)});function Lo(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var Yp=r=>typeof r=="function"?r():r;var Jp=(r,e,t,n,i)=>({name:e,namespace:r,traits:t,input:n,output:i});var pM=r=>(e,t)=>n=>p(null,null,function*(){let{response:i}=yield e(n),{operationSchema:s}=Sr(t),[,o,a,c,l,d]=s??[];try{let u=yield r.protocol.deserializeResponse(Jp(o,a,c,l,d),x(x({},r),t),i);return{response:i,output:u}}catch(u){if(Object.defineProperty(u,"$response",{value:i,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in u)){let h="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{u.message+=` 32 `+h}catch{!t.logger||t.logger?.constructor?.name==="NoOpLogger"?console.warn(h):t.logger?.warn?.(h)}typeof u.$responseBodyText<"u"&&u.$response&&(u.$response.body=u.$responseBodyText);try{if(br.isInstance(i)){let{headers:g={}}=i,y=Object.entries(g);u.$metadata={httpStatusCode:i.statusCode,requestId:jP(/^x-[\w-]+-request-?id$/,y),extendedRequestId:jP(/^x-[\w-]+-id-2$/,y),cfId:jP(/^x-[\w-]+-cf-id$/,y)}}}catch{}}throw u}}),jP=(r,e)=>(e.find(([t])=>t.match(r))||[void 0,void 0])[1];var fM=r=>(e,t)=>n=>p(null,null,function*(){let{operationSchema:i}=Sr(t),[,s,o,a,c,l]=i??[],d=t.endpointV2?.url&&r.urlParser?()=>p(null,null,function*(){return r.urlParser(t.endpointV2.url)}):r.endpoint,u=yield r.protocol.serializeRequest(Jp(s,o,a,c,l),n.input,E(x(x({},r),t),{endpoint:d}));return e(E(x({},n),{request:u}))});var Uj={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},qj={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function hM(r){return{applyToStack:e=>{e.add(fM(r),qj),e.add(pM(r),Uj),r.protocol.setSerdeContext(r)}}}function ss(r){if(typeof r=="object")return r;r=r|0;let e={},t=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(r>>t++&1)===1&&(e[n]=1);return e}var gM={it:Symbol.for("@smithy/nor-struct-it")},ze=(()=>{class r{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=r.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t,this.memberName=n;let i=[],s=t,o=t;for(this._isMemberSchema=!1;GP(s);)i.push(s[1]),s=s[0],o=Yp(s),this._isMemberSchema=!0;if(i.length>0){this.memberTraits={};for(let a=i.length-1;a>=0;--a){let c=i[a];Object.assign(this.memberTraits,ss(c))}}else this.memberTraits=0;if(o instanceof r){let a=this.memberTraits;Object.assign(this,o),this.memberTraits=Object.assign({},a,o.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??o.memberName;return}if(this.schema=Yp(o),Hj(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(o),this.traits=0),this._isMemberSchema&&!n)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](t){let n=this.prototype.isPrototypeOf(t);return!n&&typeof t=="object"&&t!==null?t.symbol===this.symbol:n}static of(t){let n=Yp(t);if(n instanceof r)return n;if(GP(n)){let[i,s]=n;
32if(i instanceof r)return Object.assign(i.getMergedTraits(),ss(s)),i;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}return new r(n)}getSchema(){let t=this.schema;return Array.isArray(t)&&t[0]===0?t[4]:t}getName(t=!1){let{name:n}=this;return!t&&n&&n.includes("#")?n.split("#")[1]:n||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let t=this.getSchema();return typeof t=="number"?t>=64&&t<128:t[0]===1}isMapSchema(){let t=this.getSchema();return typeof t=="number"?t>=128&&t<=255:t[0]===2}isStructSchema(){let t=this.getSchema();if(typeof t!="object")return!1;let n=t[0];return n===3||n===-3||n===4}isUnionSchema(){let t=this.getSchema();return typeof t!="object"?!1:t[0]===4}isBlobSchema(){let t=this.getSchema();return t===21||t===42}isTimestampSchema(){let t=this.getSchema();return typeof t=="number"&&t>=4&&t<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:t}=this.getMergedTraits();return!!t||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits=x(x({},this.getOwnTraits()),this.getMemberTraits()))}getMemberTraits(){return ss(this.memberTraits)}getOwnTraits(){return ss(this.traits)}getKeySchema(){let[t,n]=[this.isDocumentSchema(),this.isMapSchema()];if(!t&&!n)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let i=this.getSchema(),s=t?15:i[4]??0;return cm([s,0],"key")}getValueSchema(){let t=this.getSchema(),[n,i,s]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],o=typeof t=="number"?63&t:t&&typeof t=="object"&&(i||s)?t[3+t[0]]:n?15:void 0;if(o!=null)return cm([o,0],i?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(t){let n=this.getSchema();if(this.isStructSchema()&&n[4].includes(t)){let i=n[4].indexOf(t),s=n[5][i];return cm(GP(s)?s:[s,0],t)}if(this.isDocumentSchema())return cm([15,0],t);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${t}.`)}getMemberSchemas(){let t={};try{for(let[n,i]of this.structIterator())t[n]=i}catch{}return t}getEventStreamMember(){if(this.isStructSchema()){for(let[t,n]of this.structIterator())if(n.isStreaming()&&n.isStructSchema())return t}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");let t=this.getSchema(),n=t[4].length,i=t[gM.it];if(i&&n===i.length){yield*io(i);return}i=Array(n);for(let s=0;s<n;++s){let o=t[4][s],a=cm([t[5][s],0],o);yield i[s]=[o,a]}t[gM.it]=i}}return r})();function cm(r,e){if(r instanceof ze)return Object.assign(r,{memberName:e,_isMemberSchema:!0});let t=ze;return new t(r,e)}var GP=r=>Array.isArray(r)&&r.length===2,Hj=r=>Array.isArray(r)&&r.length>=5;var yn=class r{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e,this.schemas=t,this.exceptions=n}static for(e){return r.registries.has(e)||r.registries.set(e,new r(e)),r.registries.get(e)}copyFrom(e){let{schemas:t,exceptions:n}=this;for(let[i,s]of e.schemas)t.has(i)||t.set(i,s);for(let[i,s]of e.exceptions)n.has(i)||n.set(i,s)}register(e,t){let n=this.normalizeShapeId(e);for(let i of[this,r.for(n.split("#")[0])])i.schemas.set(n,t)}getSchema(e){let 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){let n=e,i=n[1];for(let s of[this,r.for(i)])s.schemas.set(i+"#"+n[2],n),s.exceptions.set(n,t)}getErrorCtor(e){let t=e;return this.exceptions.has(t)?this.exceptions.get(t):r.for(t[1]).exceptions.get(t)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,t,n]=e,i=t+"#"+n;if(i.startsWith("smithy.ts.sdk.synthetic.")&&i.endsWith("ServiceException"))return e}}find(e){return[...this.schemas.values()].find(e)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}};var Fj=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],$j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function lm(r){let e=r.getUTCFullYear(),t=r.getUTCMonth(),n=r.getUTCDay(),i=r.getUTCDate(),s=r.getUTCHours(),o=r.getUTCMinutes(),a=r.getUTCSeconds(),c=i<10?`0${i}`:`${i}`,l=s<10?`0${s}`:`${s}`,d=o<10?`0${o}`:`${o}`,u=a<10?`0${a}`:`${a}`;return`${Fj[n]}, ${c} ${$j[t]} ${e} ${l}:${d}:${u} GMT`}var bAe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);var SAe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/);var PAe=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$/),CAe=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Frid
32ay|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$/),EAe=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})$/);var NAe=50*365*24*60*60*1e3;var KP=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var ir=Array.from({length:256},(r,e)=>e.toString(16).padStart(2,"0")),zo=()=>{if(KP)return KP();let r=new Uint8Array(16);return crypto.getRandomValues(r),r[6]=r[6]&15|64,r[8]=r[8]&63|128,ir[r[0]]+ir[r[1]]+ir[r[2]]+ir[r[3]]+"-"+ir[r[4]]+ir[r[5]]+"-"+ir[r[6]]+ir[r[7]]+"-"+ir[r[8]]+ir[r[9]]+"-"+ir[r[10]]+ir[r[11]]+ir[r[12]]+ir[r[13]]+ir[r[14]]+ir[r[15]]};var Ri=function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})};Ri.from=r=>r&&typeof r=="object"&&(r instanceof Ri||"deserializeJSON"in r)?r:typeof r=="string"||Object.getPrototypeOf(r)===String.prototype?Ri(String(r)):Ri(JSON.stringify(r));Ri.fromObject=Ri.from;function yM(r){return(r.includes(",")||r.includes('"'))&&(r=`"${r.replace(/"/g,'\\"')}"`),r}var WP="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",VP="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",XP="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",xM="(\\d?\\d)",bM="(\\d{4})",jj=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),Gj=new RegExp(`^${WP}, ${xM} ${VP} ${bM} ${XP} GMT$`),Kj=new RegExp(`^${WP}, ${xM}-${VP}-(\\d\\d) ${XP} GMT$`),Wj=new RegExp(`^${WP} ${VP} ( [1-9]|\\d\\d) ${XP} ${bM}$`),Vj=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],SM=r=>{if(r==null)return;let e=NaN;if(typeof r=="number")e=r;else if(typeof r=="string"){if(!/^-?\d*\.?\d+$/.test(r))throw new TypeError("parseEpochTimestamp - numeric string invalid.");e=Number.parseFloat(r)}else typeof r=="object"&&r.tag===1&&(e=r.value);if(isNaN(e)||Math.abs(e)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(e*1e3))},PM=r=>{if(r==null)return;if(typeof r!="string")throw new TypeError("RFC3339 timestamps must be strings");let e=jj.exec(r);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${r}`);let[,t,n,i,s,o,a,,c,l]=e;os(n,1,12),os(i,1,31),os(s,0,23),os(o,0,59),os(a,0,60);let d=new Date(Date.UTC(Number(t),Number(n)-1,Number(i),Number(s),Number(o),Number(a),Number(c)?Math.round(parseFloat(`0.${c}`)*1e3):0));if(d.setUTCFullYear(Number(t)),l.toUpperCase()!="Z"){let[,u,h,g]=/([+-])(\d\d):(\d\d)/.exec(l)||[void 0,"+",0,0],y=u==="-"?1:-1;d.setTime(d.getTime()+y*(Number(h)*60*60*1e3+Number(g)*60*1e3))}return d},CM=r=>{if(r==null)return;if(typeof r!="string")throw new TypeError("RFC7231 timestamps must be strings.");let e,t,n,i,s,o,a,c;if((c=Gj.exec(r))?[,e,t,n,i,s,o,a]=c:(c=Kj.exec(r))?([,e,t,n,i,s,o,a]=c,n=(Number(n)+1900).toString()):(c=Wj.exec(r))&&([,t,e,i,s,o,a,n]=c),n&&o){let l=Date.UTC(Number(n),Vj.indexOf(t),Number(e),Number(i),Number(s),Number(o),a?Math.round(parseFloat(`0.${a}`)*1e3):0);os(e,1,31),os(i,0,23),os(s,0,59),os(o,0,60);let d=new Date(l);return d.setUTCFullYear(Number(n)),d}throw new TypeError(`Invalid RFC7231 date-time value ${r}.`)};function os(r,e,t){let n=Number(r);if(n<e||n>t)throw new Error(`Value ${n} out of range [${e}, ${t}]`)}function EM(r,e,t){if(t<=0||!Number.isInteger(t))throw new Error("Invalid number of delimiters ("+t+") for splitEvery.");let n=r.split(e);if(t===1)return n;let i=[],s="";for(let o=0;o<n.length;o++)s===""?s=n[o]:s+=e+n[o],(o+1)%t===0&&(i.push(s),s="");return s!==""&&i.push(s),i}var Zp=r=>{let e=r.length,t=[],n=!1,i,s=0;for(let o=0;o<e;++o){let a=r[o];switch(a){case'"':i!=="\\"&&(n=!n);break;case",":n||(t.push(r.slice(s,o)),s=o+1);break;default:}i=a}return t.push(r.slice(s)),t.map(o=>{o=o.trim();let a=o.length;return a<2?o:(o[0]==='"'&&o[a-1]==='"'&&(o=o.slice(1,a-1)),o.replace(/\\"/g,'"'))})};var NM=/^-?\d*(\.\d+)?$/,Xa=class r{string;type;constructor(e,t){if(this.string=e,this.type=t,!NM.test(e))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!="object")return!1;let t=e;return r.prototype.isPrototypeOf(e)||t.type==="bigDecimal"&&NM.test(t.string)}};var vi=class{serdeContext;setSerdeContext(e){this.serdeContext=e}};var ef=class extends vi{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=yn.for(e.defaultNamespace);for(let t of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return Ne}getResponseType(){return br}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if("url"in t){e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||(e.query={});
32for(let[n,i]of t.url.searchParams.entries())e.query[n]=i;return e}else return e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query=x({},t.query),e}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix)return;let i=ze.of(t.input),s=ss(t.traits??{});if(s.endpoint){let o=s.endpoint?.[0];if(typeof o=="string"){let a=[...i.structIterator()].filter(([,c])=>c.getMergedTraits().hostLabel);for(let[c]of a){let l=n[c];if(typeof l!="string")throw new Error(`@smithy/core/schema - ${c} in input must be a string as hostLabel.`);o=o.replace(`{${c}}`,l)}e.hostname=o+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}serializeEventStream(i){return p(this,arguments,function*({eventStream:e,requestSchema:t,initialRequest:n}){return(yield this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})})}deserializeEventStream(i){return p(this,arguments,function*({response:e,responseSchema:t,initialResponseContainer:n}){return(yield this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})})}loadEventStreamCapability(){return p(this,null,function*(){let{EventStreamSerde:e}=yield import("./chunk-3T6NV4ZC.js");return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}deserializeHttpMessage(e,t,n,i,s){return p(this,null,function*(){return[]})}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}};var tf=class extends ef{serializeRequest(e,t,n){return p(this,null,function*(){let i=x({},t??{}),s=this.serializer,o={},a={},c=yield n.endpoint(),l=ze.of(e?.input),d=l.getSchema(),u=!1,h,g=new Ne({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:o,headers:a,body:void 0});if(c){this.updateServiceEndpoint(g,c),this.setHostPrefix(g,e,i);let y=ss(e.traits);if(y.http){g.method=y.http[0];let[S,C]=y.http[1].split("?");g.path=="/"?g.path=S:g.path+=S;let N=new URLSearchParams(C??"");Object.assign(o,Object.fromEntries(N))}}for(let[y,S]of l.structIterator()){let C=S.getMergedTraits()??{},N=i[y];if(N==null&&!S.isIdempotencyToken()){if(C.httpLabel&&(g.path.includes(`{${y}+}`)||g.path.includes(`{${y}}`)))throw new Error(`No value provided for input HTTP label: ${y}.`);continue}if(C.httpPayload)S.isStreaming()?S.isStructSchema()?i[y]&&(h=yield this.serializeEventStream({eventStream:i[y],requestSchema:l})):h=N:(s.write(S,N),h=s.flush()),delete i[y];else if(C.httpLabel){s.write(S,N);let T=s.flush();g.path.includes(`{${y}+}`)?g.path=g.path.replace(`{${y}+}`,T.split("/").map(Lo).join("/")):g.path.includes(`{${y}}`)&&(g.path=g.path.replace(`{${y}}`,Lo(T))),delete i[y]}else if(C.httpHeader)s.write(S,N),a[C.httpHeader.toLowerCase()]=String(s.flush()),delete i[y];else if(typeof C.httpPrefixHeaders=="string"){for(let[T,I]of Object.entries(N)){let k=C.httpPrefixHeaders+T;s.write([S.getValueSchema(),{httpHeader:k}],I),a[k.toLowerCase()]=s.flush()}delete i[y]}else C.httpQuery||C.httpQueryParams?(this.serializeQuery(S,N,o),delete i[y]):u=!0}return u&&i&&(s.write(d,i),h=s.flush()),g.headers=a,g.query=o,g.body=h,g})}serializeQuery(e,t,n){let i=this.serializer,s=e.getMergedTraits();if(s.httpQueryParams){for(let[o,a]of Object.entries(t))if(!(o in n)){let c=e.getValueSchema();Object.assign(c.getMergedTraits(),E(x({},s),{httpQuery:o,httpQueryParams:void 0})),this.serializeQuery(c,a,n)}return}if(e.isListSchema()){let o=!!e.getMergedTraits().sparse,a=[];for(let c of t){i.write([e.getValueSchema(),s],c);let l=i.flush();(o||l!==void 0)&&a.push(l)}n[s.httpQuery]=a}else i.write([e,s],t),n[s.httpQuery]=i.flush()}deserializeResponse(e,t,n){return p(this,null,function*(){let i=this.deserializer,s=ze.of(e.output),o={};if(n.statusCode>=300){let c=yield am(n.body,t);throw c.byteLength>0&&Object.assign(o,yield i.read(15,c)),yield this.handleError(e,t,n,o,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let c in n.headers){let l=n.headers[c];delete n.headers[c],n.headers[c.toLowerCase()]=l}let a=yield this.deserializeHttpMessage(s,t,n,o);if(a.length){let c=yield am(n.body,t);if(c.byteLength>0){let l=yield i.read(s,c);for(let d of a)l[d]!=null&&(o[d]=l[d])}}else a.discardResponseBody&&(yield am(n.body,t));return o.$metadata=this.deserializeMetadata(n),o})}deserializeHttpMessage(e,t,n,i,s){return p(this,null,function*(){let o;i instanceof Set?o=s:o=i;let a=!0,c=this.deserializer,l=ze.of(e),d=[];
32for(let[u,h]of l.structIterator()){let g=h.getMemberTraits();if(g.httpPayload){if(a=!1,h.isStreaming())h.isStructSchema()?o[u]=yield this.deserializeEventStream({response:n,responseSchema:l}):o[u]=Qp(n.body);else if(n.body){let S=yield am(n.body,t);S.byteLength>0&&(o[u]=yield c.read(h,S))}}else if(g.httpHeader){let y=String(g.httpHeader).toLowerCase(),S=n.headers[y];if(S!=null)if(h.isListSchema()){let C=h.getValueSchema();C.getMergedTraits().httpHeader=y;let N;C.isTimestampSchema()&&C.getSchema()===4?N=EM(S,",",2):N=Zp(S);let T=[];for(let I of N)T.push(yield c.read(C,I.trim()));o[u]=T}else o[u]=yield c.read(h,S)}else if(g.httpPrefixHeaders!==void 0){o[u]={};for(let[y,S]of Object.entries(n.headers))if(y.startsWith(g.httpPrefixHeaders)){let C=h.getValueSchema();C.getMergedTraits().httpHeader=y,o[u][y.slice(g.httpPrefixHeaders.length)]=yield c.read(C,S)}}else g.httpResponseCode?o[u]=n.statusCode:d.push(u)}return d.discardResponseBody=a,d})}};function Qa(r,e){if(e.timestampFormat.useTrait&&r.isTimestampSchema()&&(r.getSchema()===5||r.getSchema()===6||r.getSchema()===7))return r.getSchema();let{httpLabel:t,httpPrefixHeaders:n,httpHeader:i,httpQuery:s}=r.getMergedTraits();return(e.httpBindings?typeof n=="string"||i?6:s||t?5:void 0:void 0)??e.timestampFormat.default}var Ya=class extends vi{settings;constructor(e){super(),this.settings=e}read(e,t){let n=ze.of(e);if(n.isListSchema())return Zp(t).map(i=>this.read(n.getValueSchema(),i));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??Hn)(t);if(n.isTimestampSchema())switch(Qa(n,this.settings)){case 5:return PM(t);case 6:return CM(t);case 7:return SM(t);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",t),new Date(t)}if(n.isStringSchema()){let i=n.getMergedTraits().mediaType,s=t;if(i)return n.getMergedTraits().httpHeader&&(s=this.base64ToUtf8(s)),(i==="application/json"||i.endsWith("+json"))&&(s=Ri.from(s)),s}return n.isNumericSchema()?Number(t):n.isBigIntegerSchema()?BigInt(t):n.isBigDecimalSchema()?new Xa(t,"bigDecimal"):n.isBooleanSchema()?String(t).toLowerCase()==="true":t}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??ln)((this.serdeContext?.base64Decoder??Hn)(e))}};var rf=class extends vi{codecDeserializer;stringDeserializer;constructor(e,t){super(),this.codecDeserializer=e,this.stringDeserializer=new Ya(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,t){let n=ze.of(e),i=n.getMergedTraits(),s=this.serdeContext?.utf8Encoder??ln;if(i.httpHeader||i.httpResponseCode)return this.stringDeserializer.read(n,s(t));if(i.httpPayload){if(n.isBlobSchema()){let o=this.serdeContext?.utf8Decoder??gr;return typeof t=="string"?o(t):t}else if(n.isStringSchema())return"byteLength"in t?s(t):t}return this.codecDeserializer.read(n,t)}};var nf=class extends vi{settings;stringBuffer="";constructor(e){super(),this.settings=e}write(e,t){let n=ze.of(e);switch(typeof t){case"object":if(t===null){this.stringBuffer="null";return}if(n.isTimestampSchema()){if(!(t instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${n.getName(!0)}`);switch(Qa(n,this.settings)){case 5:this.stringBuffer=t.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=lm(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",t),this.stringBuffer=String(t.getTime()/1e3)}return}if(n.isBlobSchema()&&"byteLength"in t){this.stringBuffer=(this.serdeContext?.base64Encoder??Jr)(t);return}if(n.isListSchema()&&Array.isArray(t)){let o="";for(let a of t){this.write([n.getValueSchema(),n.getMergedTraits()],a);let c=this.flush(),l=n.getValueSchema().isTimestampSchema()?c:yM(c);o!==""&&(o+=", "),o+=l}this.stringBuffer=o;return}this.stringBuffer=JSON.stringify(t,null,2);break;case"string":let i=n.getMergedTraits().mediaType,s=t;if(i&&((i==="application/json"||i.endsWith("+json"))&&(s=Ri.from(s)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??Jr)(s.toString());return}this.stringBuffer=t;break;default:n.isIdempotencyToken()?this.stringBuffer=zo():this.stringBuffer=String(t)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}};var sf=class{codecSerializer;stringSerializer;buffer;
32constructor(e,t,n=new nf(t)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,t){let n=ze.of(e),i=n.getMergedTraits();if(i.httpHeader||i.httpLabel||i.httpQuery){this.stringSerializer.write(n,t),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,t)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}};function wM(r,e,t){r.__smithy_context?r.__smithy_context.features||(r.__smithy_context.features={}):r.__smithy_context={features:{}},r.__smithy_context.features[e]=t}var of=class{authSchemes=new Map;constructor(e){for(let[t,n]of Object.entries(e))n!==void 0&&this.authSchemes.set(t,n)}getIdentityProvider(e){return this.authSchemes.get(e)}};var Xj=r=>function(t){return QP(t)&&t.expiration.getTime()-Date.now()<r};var RM=Xj(3e5),QP=r=>r.expiration!==void 0,vM=(r,e,t)=>{if(r===void 0)return;let n=typeof r!="function"?()=>p(null,null,function*(){return Promise.resolve(r)}):r,i,s,o,a=!1,c=l=>p(null,null,function*(){s||(s=n(l));try{i=yield s,o=!0,a=!1}finally{s=void 0}return i});return e===void 0?l=>p(null,null,function*(){return(!o||l?.forceRefresh)&&(i=yield c(l)),i}):l=>p(null,null,function*(){return(!o||l?.forceRefresh)&&(i=yield c(l)),a?i:t(i)?(e(i)&&(yield c(l)),i):(a=!0,i)})};var TM=(r,e,t)=>{let n,i,s,o=!1,a=()=>p(null,null,function*(){i||(i=r());try{n=yield i,s=!0,o=!1}finally{i=void 0}return n});return e===void 0?c=>p(null,null,function*(){return(!s||c?.forceRefresh)&&(n=yield a()),n}):c=>p(null,null,function*(){return(!s||c?.forceRefresh)&&(n=yield a()),o?n:t&&!t(n)?(o=!0,n):(e(n)&&(yield a()),n)})};var _M=r=>(r.sigv4aSigningRegionSet=is(r.sigv4aSigningRegionSet),r);var AM="X-Amz-Algorithm",IM="X-Amz-Credential",YP="X-Amz-Date",MM="X-Amz-SignedHeaders",BM="X-Amz
32-Expires",JP="X-Amz-Signature",ZP="X-Amz-Security-Token";var eC="authorization",tC=YP.toLowerCase(),Qj="date",kM=[eC,tC,Qj],OM=JP.toLowerCase(),mm="x-amz-content-sha256",DM=ZP.toLowerCase();var LM={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},zM=/^proxy-/,UM=/^sec-/;var af="AWS4-HMAC-SHA256";var qM="AWS4-HMAC-SHA256-PAYLOAD",HM="UNSIGNED-PAYLOAD",FM=50,rC="aws4_request",$M=60*60*24*7;var cf={},nC=[],lf=(r,e,t)=>`${r}/${e}/${t}/${rC}`,GM=(r,e,t,n,i)=>p(null,null,function*(){let s=yield jM(r,e.secretAccessKey,e.accessKeyId),o=`${t}:${n}:${i}:${pt(s)}:${e.sessionToken}`;if(o in cf)return cf[o];for(nC.push(o);nC.length>FM;)delete cf[nC.shift()];let a=`AWS4${e.secretAccessKey}`;for(let c of[t,n,i,rC])a=yield jM(r,a,c);return cf[o]=a});var jM=(r,e,t)=>{let n=new r(e);return n.update(Fn(t)),n.digest()};var iC=({headers:r},e,t)=>{let n={};for(let i of Object.keys(r).sort()){if(r[i]==null)continue;let s=i.toLowerCase();(s in LM||e?.has(s)||zM.test(s)||UM.test(s))&&(!t||t&&!t.has(s))||(n[s]=r[i].trim().replace(/\s+/g," "))}return n};var mf=r=>typeof ArrayBuffer=="function"&&r instanceof ArrayBuffer||Object.prototype.toString.call(r)==="[object ArrayBuffer]";var df=(n,i)=>p(null,[n,i],function*({headers:r,body:e},t){for(let s of Object.keys(r))if(s.toLowerCase()===mm)return r[s];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||mf(e)){let s=new t;return s.update(Fn(e)),pt(yield s.digest())}return HM});var uf=class{format(e){let t=[];for(let s of Object.keys(e)){let o=gr(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let n=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),i=0;for(let s of t)n.set(s,i),i+=s.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let i=new Uint8Array(9);return i[0]=5,i.set(e.value.bytes,1),i;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=gr(e.value),c=new DataView(new ArrayBuffer(3+a.byteLength));c.setUint8(0,7),c.setUint16(1,a.byteLength,!1);let l=new Uint8Array(c.buffer);return l.set(a,3),l;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(sC.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!Yj.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let u=new Uint8Array(17);return u[0]=9,u.set(Xp(e.value.replace(/\-/g,"")),1),u}}};var Yj=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,sC=class r{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let n=7,i=Math.abs(Math.round(e));n>-1&&i>0;n--,i/=256)t[n]=i;return e<0&&KM(t),new r(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&KM(e),parseInt(pt(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function KM(r){for(let e=0;e<8;e++)r[e]^=255;for(let e=7;e>-1&&(r[e]++,r[e]===0);e--);}var WM=(r,e)=>{r=r.toLowerCase();for(let t of Object.keys(e))if(r===t.toLowerCase())return!0;return!1};var VM=(r,e={})=>{let{headers:t,query:n={}}=Ne.clone(r);for(let i of Object.keys(t)){let s=i.toLowerCase();(s.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(s)||e.hoistableHeaders?.has(s))&&(n[i]=t[i],delete t[i])}return E(x({},r),{headers:t,query:n})};var oC=r=>{r=Ne.clone(r);for(let e of Object.keys(r.headers))kM.indexOf(e.toLowerCase())>-1&&delete r.headers[e];return r};var XM=({query:r={}})=>{let e=[],t={};for(let n of Object.keys(r)){if(n.toLowerCase()===OM)continue;let i=wi(n);e.push(i);let s=r[n];typeof s=="string"?t[i]=`${i}=${wi(s)}`:Array.isArray(s)&&(t[i]=s.slice(0).reduce((o,a)=>o.concat([`${i}=${wi(a)}`]),[]).sort().join("&"))}return e.sort().map(n=>t[n]).filter(n=>n).join("&")};var QM=r=>Jj(r).toISOString().replace(/\.\d{3}Z$/,"Z"),Jj=r=>typeof r=="number"?new Date(r*1e3):typeof r=="string"?Number(r)?new Date(Number(r)*1e3):new Date(r):r;var pf=class{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:i,sha256:s,uriEscapePath:o=!0}){this.service=i,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=nr(n),this.credentialProvider=nr(t)}
32createCanonicalRequest(e,t,n){let i=Object.keys(t).sort();return`${e.method} 33${this.getCanonicalPath(e)} 34${XM(e)} 35${i.map(s=>`${s}:${t[s]}`).join(` 36`)} 37 38${i.join(";")} 39${n}`}createStringToSign(e,t,n,i){return p(this,null,function*(){let s=new this.sha256;s.update(Fn(n));let o=yield s.digest();return`${i} 40${e} 41${t} 42${pt(o)}`})}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/"))s?.length!==0&&s!=="."&&(s===".."?t.pop():t.push(s));let n=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return wi(n).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(e){let t=QM(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}};var Uo=class extends pf{headerFormatter=new uf;constructor({applyChecksum:e,credentials:t,region:n,service:i,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:n,service:i,sha256:s,uriEscapePath:o})}presign(n){return p(this,arguments,function*(e,t={}
42){let{signingDate:i=new Date,expiresIn:s=3600,unsignableHeaders:o,unhoistableHeaders:a,signableHeaders:c,hoistableHeaders:l,signingRegion:d,signingService:u}=t,h=yield this.credentialProvider();this.validateResolvedCredentials(h);let g=d??(yield this.regionProvider()),{longDate:y,shortDate:S}=this.formatDate(i);if(s>$M)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let C=lf(S,g,u??this.service),N=VM(oC(e),{unhoistableHeaders:a,hoistableHeaders:l});h.sessionToken&&(N.query[ZP]=h.sessionToken),N.query[AM]=af,N.query[IM]=`${h.accessKeyId}/${C}`,N.query[YP]=y,N.query[BM]=s.toString(10);let T=iC(N,o,c);return N.query[MM]=this.getCanonicalHeaderList(T),N.query[JP]=yield this.getSignature(y,C,this.getSigningKey(h,g,S,u),this.createCanonicalRequest(N,T,yield df(e,this.sha256))),N})}sign(e,t){return p(this,null,function*(){return typeof e=="string"?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)})}signEvent(a,c){return p(this,arguments,function*({headers:e,payload:t},{signingDate:n=new Date,priorSignature:i,signingRegion:s,signingService:o}){let l=s??(yield this.regionProvider()),{shortDate:d,longDate:u}=this.formatDate(n),h=lf(d,l,o??this.service),g=yield df({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let S=pt(yield y.digest()),C=[qM,u,h,i,S,g].join(` 43`);return this.signString(C,{signingDate:n,signingRegion:l,signingService:o})})}signMessage(s,o){return p(this,arguments,function*(e,{signingDate:t=new Date,signingRegion:n,signingService:i}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:i,priorSignature:e.priorSignature}).then(c=>({message:e.message,signature:c}))})}signString(s){return p(this,arguments,function*(e,{signingDate:t=new Date,signingRegion:n,signingService:i}={}){let o=yield this.credentialProvider();this.validateResolvedCredentials(o);let a=n??(yield this.regionProvider()),{shortDate:c}=this.formatDate(t),l=new this.sha256(yield this.getSigningKey(o,a,c,i));return l.update(Fn(e)),pt(yield l.digest())})}signRequest(a){return p(this,arguments,function*(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:i,signingRegion:s,signingService:o}={}){let c=yield this.credentialProvider();this.validateResolvedCredentials(c);let l=s??(yield this.regionProvider()),d=oC(e),{longDate:u,shortDate:h}=this.formatDate(t),g=lf(h,l,o??this.service);d.headers[tC]=u,c.sessionToken&&(d.headers[DM]=c.sessionToken);let y=yield df(d,this.sha256);!WM(mm,d.headers)&&this.applyChecksum&&(d.headers[mm]=y);let S=iC(d,i,n),C=yield this.getSignature(u,g,this.getSigningKey(c,l,h,o),this.createCanonicalRequest(d,S,y));return d.headers[eC]=`${af} Credential=${c.accessKeyId}/${g}, SignedHeaders=${this.getCanonicalHeaderList(S)}, Signature=${C}`,d})}getSignature(e,t,n,i){return p(this,null,function*(){let s=yield this.createStringToSign(e,t,i,af),o=new this.sha256(yield n);return o.update(Fn(s)),pt(yield o.digest())})}getSigningKey(e,t,n,i){return GM(this.sha256,e,n,t,i||this.service)}};var aC={SignatureV4a:null};var YM=r=>{let e=r.credentials,t=!!r.credentials,n;Object.defineProperty(r,"credentials",{set(l){l&&l!==e&&l!==n&&(t=!0),e=l;let d=Zj(r,{credentials:e,credentialDefaultProvider:r.credentialDefaultProvider}),u=e5(r,d);if(t&&!u.attributed){let h=typeof e=="object"&&e!==null;n=g=>p(null,null,function*(){let S=yield u(g);return h&&(!S.$source||Object.keys(S.$source).length===0)?KI(S,"CREDENTIALS_CODE","e"):S}),n.memoized=u.memoized,n.configBound=u.configBound,n.attributed=!0}else n=u},get(){return n},enumerable:!0,configurable:!0}),r.credentials=e;let{signingEscapePath:i=!0,systemClockOffset:s=r.systemClockOffset||0,sha256:o}=r,a;return r.signer?a=is(r.signer):r.regionInfoProvider?a=()=>is(r.region)().then(l=>p(null,null,function*(){return[(yield r.regionInfoProvider(l,{useFipsEndpoint:yield r.useFipsEndpoint(),useDualstackEndpoint:yield r.useDualstackEndpoint()}))||{},l]})).then(([l,d])=>{let{signingRegion:u,signingService:h}=l;r.signingRegion=r.signingRegion||u||d,r.signingName=r.signingName||h||r.serviceId;let g=E(x({},r),{credentials:r.credentials,region:r.signingRegion,service:r.signingName,sha256:o,uriEscapePath:i}),y=r.signerConstructor||Uo;return new y(g)}):a=l=>p(null,null,function*(){l=Object.assign({},{name:"sigv4",signingName:r.signingName||r.defaultSigningName,signingRegion:yield is(r.region)(),properties:{}},l);let d=l.signingRegion,u=l.signingName;r.signingRegion=r.signingRegion||d,r.signingName=r.signingName||u||r.serviceId;let h=E(x({},r),{credentials:r.credentials,region:r.signingRegion,service:r.signingName,sha256:o,uriEscapePath:i}),g=r.signerConstructor||Uo;return new g(h)}),Object.assign(r,{systemClockOffset:s,signingEscapePath:i,signer:a})};function Zj(r,{credentials:e,credentialDefaultProvider:t}){let n;return e?e?.memoized?n=e:n=vM(e,RM,QP):t?n=is(t(Object.assign({},r,{parentClientConfig:r}))):n=()=>p(null,null,function*(){throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")}),n.memoized=!0,n}function e5(r,e){if(e.configBound)return e;let t=n=>p(null,null,function*(){return e(E(x({}
43,n),{callerClientConfig:r}))});return t.memoized=e.memoized,t.configBound=!0,t}var JM=typeof TextEncoder=="function"?new TextEncoder:null,ZM=r=>{if(typeof r=="string"){if(JM)return JM.encode(r).byteLength;let e=r.length;for(let t=e-1;t>=0;t--){let n=r.charCodeAt(t);n>127&&n<=2047?e++:n>2047&&n<=65535&&(e+=2),n>=56320&&n<=57343&&t--}return e}else{if(typeof r.byteLength=="number")return r.byteLength;if(typeof r.size=="number")return r.size}throw new Error(`Body Length computation failed for ${r}`)};var qo=(r,e)=>{let t=[];if(r&&t.push(r),e)for(let n of e)t.push(n);return t},zs=(r,e)=>`${r||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,Ja=()=>{let r=[],e=[],t=!1,n=new Set,i=u=>u.sort((h,g)=>eB[g.step]-eB[h.step]||tB[g.priority||"normal"]-tB[h.priority||"normal"]),s=u=>{let h=!1,g=y=>{let S=qo(y.name,y.aliases);if(S.includes(u)){h=!0;for(let C of S)n.delete(C);return!1}return!0};return r=r.filter(g),e=e.filter(g),h},o=u=>{let h=!1,g=y=>{if(y.middleware===u){h=!0;for(let S of qo(y.name,y.aliases))n.delete(S);return!1}return!0};return r=r.filter(g),e=e.filter(g),h},a=u=>(r.forEach(h=>{u.add(h.middleware,x({},h))}),e.forEach(h=>{u.addRelativeTo(h.middleware,x({},h))}),u.identifyOnResolve?.(d.identifyOnResolve()),u),c=u=>{let h=[];return u.before.forEach(g=>{g.before.length===0&&g.after.length===0?h.push(g):h.push(...c(g))}),h.push(u),u.after.reverse().forEach(g=>{g.before.length===0&&g.after.length===0?h.push(g):h.push(...c(g))}),h},l=(u=!1)=>{let h=[],g=[],y={};return r.forEach(C=>{let N=E(x({},C),{before:[],after:[]});for(let T of qo(N.name,N.aliases))y[T]=N;h.push(N)}),e.forEach(C=>{let N=E(x({},C),{before:[],after:[]});for(let T of qo(N.name,N.aliases))y[T]=N;g.push(N)}),g.forEach(C=>{if(C.toMiddleware){let N=y[C.toMiddleware];if(N===void 0){if(u)return;throw new Error(`${C.toMiddleware} is not found when adding ${zs(C.name,C.aliases)} middleware ${C.relation} ${C.toMiddleware}`)}C.relation==="after"&&N.after.push(C),C.relation==="before"&&N.before.push(C)}}),i(h).map(c).reduce((C,N)=>(C.push(...N),C),[])},d={add:(u,h={})=>{let{name:g,override:y,aliases:S}=h,C=x({step:"initialize",priority:"normal",middleware:u},h),N=qo(g,S);if(N.length>0){if(N.some(T=>n.has(T))){if(!y)throw new Error(`Duplicate middleware name '${zs(g,S)}'`);for(let T of N){let I=r.findIndex(Z=>Z.name===T||Z.aliases?.some(te=>te===T));if(I===-1)continue;let k=r[I];if(k.step!==C.step||C.priority!==k.priority)throw new Error(`"${zs(k.name,k.aliases)}" middleware with ${k.priority} priority in ${k.step} step cannot be overridden by "${zs(g,S)}" middleware with ${C.priority} priority in ${C.step} step.`);r.splice(I,1)}}for(let T of N)n.add(T)}r.push(C)},addRelativeTo:(u,h)=>{let{name:g,override:y,aliases:S}=h,C=x({middleware:u},h),N=qo(g,S);if(N.length>0){if(N.some(T=>n.has(T))){if(!y)throw new Error(`Duplicate middleware name '${zs(g,S)}'`);for(let T of N){let I=e.findIndex(Z=>Z.name===T||Z.aliases?.some(te=>te===T));if(I===-1)continue;let k=e[I];if(k.toMiddleware!==C.toMiddleware||k.relation!==C.relation)throw new Error(`"${zs(k.name,k.aliases)}" middleware ${k.relation} "${k.toMiddleware}" middleware cannot be overridden by "${zs(g,S)}" middleware ${C.relation} "${C.toMiddleware}" middleware.`);e.splice(I,1)}}for(let T of N)n.add(T)}e.push(C)},clone:()=>a(Ja()),use:u=>{u.applyToStack(d)},remove:u=>typeof u=="string"?s(u):o(u),removeByTag:u=>{let h=!1,g=y=>{let{tags:S,name:C,aliases:N}=y;if(S&&S.includes(u)){let T=qo(C,N);for(let I of T)n.delete(I);return h=!0,!1}return!0};return r=r.filter(g),e=e.filter(g),h},concat:u=>{let h=a(Ja());return h.use(u),h.identifyOnResolve(t||h.identifyOnResolve()||(u.identifyOnResolve?.()??!1)),h},applyToStack:a,identify:()=>l(!0).map(u=>{let h=u.step??u.relation+" "+u.toMiddleware;return zs(u.name,u.aliases)+" - "+h}),identifyOnResolve(u){return typeof u=="boolean"&&(t=u),t},resolve:(u,h)=>{for(let g of l().map(y=>y.middleware).reverse())u=g(u,h);return t&&console.log(d.identify()),u}};return d},eB={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},tB={high:3,normal:2,low:1};var ff=class{config;middlewareStack=Ja();initConfig;handlers;constructor(e){this.config=e;let{protocol:t,protocolSettings:n}=e;n&&typeof t=="function"&&(e.protocol=new t(n))}send(e,t,n){let i=typeof t!="function"?t:void 0,s=typeof t=="function"?t:n,o=i===void 0&&this.config.cacheMiddleware===!0,a;if(o){this.handlers||(this.handlers=new WeakMap);let c=this.handlers;c.has(e.constructor)?a=c.get(e.constructor):(a=e.resolveMiddleware(this.middlewareStack,this.config,i),c.set(e.constructor,a))}else delete this.handlers,a=e.resolveMiddleware(this.middlewareStack,this.config,i);if(s)a(e).then(c=>s(null,c.output),c=>s(c)).catch(()=>{});else return a(e).then(c=>c.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}};var cC="***SensitiveInformation***";function hf(r,e){if(e==null)return e;let t=ze.of(r);if(t.getMergedTraits().sensitive)return cC;
43if(t.isListSchema()){if(!!t.getValueSchema().getMergedTraits().sensitive)return cC}else if(t.isMapSchema()){if(!!t.getKeySchema().getMergedTraits().sensitive||!!t.getValueSchema().getMergedTraits().sensitive)return cC}else if(t.isStructSchema()&&typeof e=="object"){let n=e,i={};for(let[s,o]of t.structIterator())n[s]!=null&&(i[s]=hf(o,n[s]));return i}return e}var Xt=class{middlewareStack=Ja();schema;static classBuilder(){return new lC}resolveMiddlewareWithContext(e,t,n,{middlewareFn:i,clientName:s,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,smithyContext:l,additionalContext:d,CommandCtor:u}){for(let C of i.bind(this)(u,e,t,n))this.middlewareStack.use(C);let h=e.concat(this.middlewareStack),{logger:g}=t,y=x({logger:g,clientName:s,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,[tm]:x({commandInstance:this},l)},d),{requestHandler:S}=t;return h.resolve(C=>S.handle(C.request,n||{}),y)}},lC=class{_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,n={}){return this._smithyContext=x({service:e,operation:t},n),this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=n=>n,t=n=>n){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(){let e=this,t;return t=class extends Xt{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[n]){super(),this.input=n??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,i,s){let o=e._operationSchema,a=o?.[4]??o?.input,c=o?.[5]??o?.output;return this.resolveMiddlewareWithContext(n,i,s,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(o?hf.bind(null,a):l=>l),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(o?hf.bind(null,c):l=>l),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}};var gf=class r 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;let t=e;return r.prototype.isPrototypeOf(t)||!!t.$fault&&!!t.$metadata&&(t.$fault==="client"||t.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return!1;let t=e;return this===r?r.isInstance(e):r.isInstance(e)?t.name&&this.name?this.prototype.isPrototypeOf(e)||t.name===this.name:this.prototype.isPrototypeOf(e):!1}},mC=(r,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,i])=>{(r[n]==null||r[n]==="")&&(r[n]=i)});let t=r.message||r.Message||"UnknownError";return r.message=t,delete r.Message,r};var rB=r=>{switch(r){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};var nB=r=>{let e=[];for(let t in em){let n=em[t];r[n]!==void 0&&e.push({algorithmId:()=>n,checksumConstructor:()=>r[n]})}return{addChecksumAlgorithm(t){e.push(t)},checksumAlgorithms(){return e}}},iB=r=>{let e={};return r.checksumAlgorithms().forEach(t=>{e[t.algorithmId()]=t.checksumConstructor()}),e};var sB=r=>({setRetryStrategy(e){r.retryStrategy=e},retryStrategy(){return r.retryStrategy}}),oB=r=>{let e={};return e.retryStrategy=r.retryStrategy(),e};var aB=r=>Object.assign(nB(r),sB(r));var cB=r=>Object.assign(iB(r),oB(r));var dC=r=>{let e="#text";for(let t in r)r.hasOwnProperty(t)&&r[t][e]!==void 0?r[t]=r[t][e]:typeof r[t]=="object"&&r[t]!==null&&(r[t]=dC(r[t]));return r};var Us=class{trace(){}debug(){}info(){}warn(){}error(){}};var yf=class{queryCompat;
43constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){let n=t.getMemberSchemas(),i=Object.values(n).find(s=>!!s.getMergedTraits().httpPayload);if(i){let s=i.getMergedTraits().mediaType;return s||(i.isStringSchema()?"text/plain":i.isBlobSchema()?"application/octet-stream":e)}else if(!t.isUnitSchema()&&Object.values(n).find(o=>{let{httpQuery:a,httpQueryParams:c,httpHeader:l,httpLabel:d,httpPrefixHeaders:u}=o.getMergedTraits();return!a&&!c&&!l&&!d&&u===void 0}))return e}getErrorSchemaOrThrowBaseException(e,t,n,i,s,o){return p(this,null,function*(){let a=t,c=e;e.includes("#")&&([a,c]=e.split("#"));let l={$metadata:s,$fault:n.statusCode<500?"client":"server"},d=yn.for(a);try{return{errorSchema:o?.(d,c)??d.getSchema(e),errorMetadata:l}}catch{i.message=i.message??i.Message??"UnknownError";let h=yn.for("smithy.ts.sdk.synthetic."+a),g=h.getBaseException();if(g){let y=h.getErrorCtor(g)??Error;throw this.decorateServiceException(Object.assign(new y({name:c}),l),i)}throw this.decorateServiceException(Object.assign(new Error(c),l),i)}})}decorateServiceException(e,t={}){if(this.queryCompat){let n=e.Message??t.Message,i=mC(e,t);n&&(i.message=n),i.Error=E(x({},i.Error),{Type:i.Error.Type,Code:i.Error.Code,Message:i.Error.message??i.Error.Message??n});let s=i.$metadata.requestId;return s&&(i.RequestId=s),i}return mC(e,t)}setQueryCompatError(e,t){let n=t.headers?.["x-amzn-query-error"];if(e!==void 0&&n!=null){let[i,s]=n.split(";"),o=Object.entries(e),a={Code:i,Type:s};Object.assign(e,a);for(let[c,l]of o)a[c==="message"?"Message":c]=l;delete a.__type,e.Error=a}}queryCompatOutput(e,t){e.Error&&(t.Error=e.Error),e.Type&&(t.Type=e.Type),e.Code&&(t.Code=e.Code)}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch{return e.find(i=>ze.of(i).getMergedTraits().awsQueryError?.[0]===t)}}};var qs=class{serdeContext;setSerdeContext(e){this.serdeContext=e}};var xf=class{from;to;keys;constructor(e,t){this.from=e,this.to=t,this.keys=new Set(Object.keys(this.from).filter(n=>n!=="__type"))}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}};function lB(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function mB(r){return r.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}var Ho=class{value;constructor(e){this.value=e}toString(){return mB(""+this.value)}};var Lr=class r{name;children;attributes={};static of(e,t,n){let i=new r(e);return t!==void 0&&i.addChildNode(new Ho(t)),n!==void 0&&i.withName(n),i}constructor(e,t=[]){this.name=e,this.children=t}withName(e){return this.name=e,this}addAttribute(e,t){return this.attributes[e]=t,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,t){return t!=null&&(this.attributes[e]=t),this}cc(e,t,n=t){if(e[t]!=null){let i=r.of(t,e[t]).withName(n);this.c(i)}}l(e,t,n,i){e[t]!=null&&i().map(o=>{o.withName(n),this.c(o)})}lc(e,t,n,i){if(e[t]!=null){let s=i(),o=new r(n);s.map(a=>{o.c(a)}),this.c(o)}}toString(){let e=!!this.children.length,t=`<${this.name}`,n=this.attributes;for(let i of Object.keys(n)){let s=n[i];s!=null&&(t+=` ${i}="${lB(""+s)}"`)}return t+=e?`>${this.children.map(i=>i.toString()).join("")}</${this.name}>`:"/>"}};var uC;function pC(r){uC||(uC=new DOMParser);let e=uC.parseFromString(r,"application/xml");if(e.getElementsByTagName("parsererror").length>0)throw new Error("DOMParser XML parsing error.");let t=n=>{if(n.nodeType===Node.TEXT_NODE&&n.textContent?.trim())return n.textContent;if(n.nodeType===Node.ELEMENT_NODE){let i=n;if(i.attributes.length===0&&i.childNodes.length===0)return"";let s={},o=Array.from(i.attributes);for(let c of o)s[`${c.name}`]=c.value;let a=Array.from(i.childNodes);for(let c of a){let l=t(c);if(l!=null){let d=c.nodeName;if(a.length===1&&o.length===0&&d==="#text")return l;s[d]?Array.isArray(s[d])?s[d].push(l):s[d]=[s[d],l]:s[d]=l}else if(a.length===1&&o.length===0)return i.textContent}return s}return null};return{[e.documentElement.nodeName]:t(e.documentElement)}}var bf=class extends qs{settings;stringDeserializer;
43constructor(e){super(),this.settings=e,this.stringDeserializer=new Ya(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,t,n){let i=ze.of(e),s=i.getMemberSchemas();if(i.isStructSchema()&&i.isMemberSchema()&&!!Object.values(s).find(l=>!!l.getMemberTraits().eventPayload)){let l={},d=Object.keys(s)[0];return s[d].isBlobSchema()?l[d]=t:l[d]=this.read(s[d],t),l}let a=(this.serdeContext?.utf8Encoder??ln)(t),c=this.parseXml(a);return this.readSchema(e,n?c[n]:c)}readSchema(e,t){let n=ze.of(e);if(n.isUnitSchema())return;let i=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t))return this.readSchema(n,[t]);if(t==null)return t;if(typeof t=="object"){let s=!!i.sparse,o=!!i.xmlFlattened;if(n.isListSchema()){let c=n.getValueSchema(),l=[],d=c.getMergedTraits().xmlName??"member",u=o?t:(t[0]??t)[d],h=Array.isArray(u)?u:[u];for(let g of h)(g!=null||s)&&l.push(this.readSchema(c,g));return l}let a={};if(n.isMapSchema()){let c=n.getKeySchema(),l=n.getValueSchema(),d;o?d=Array.isArray(t)?t:[t]:d=Array.isArray(t.entry)?t.entry:[t.entry];let u=c.getMergedTraits().xmlName??"key",h=l.getMergedTraits().xmlName??"value";for(let g of d){let y=g[u],S=g[h];(S!=null||s)&&(a[y]=this.readSchema(l,S))}return a}if(n.isStructSchema()){let c=n.isUnionSchema(),l;c&&(l=new xf(t,a));for(let[d,u]of n.structIterator()){let h=u.getMergedTraits(),g=h.httpPayload?h.xmlName??u.getName():u.getMemberTraits().xmlName??d;c&&l.mark(g),t[g]!=null&&(a[d]=this.readSchema(u,t[g]))}return c&&l.writeUnknown(),a}if(n.isDocumentSchema())return t;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=pC(e)}catch(o){throw o&&typeof o=="object"&&Object.defineProperty(o,"$responseBodyText",{value:e}),o}let n="#text",i=Object.keys(t)[0],s=t[i];return s[n]&&(s[i]=s[n],delete s[n]),dC(s)}return{}}};var dB=(r,e)=>{if(e?.Error?.Code!==void 0)return e.Error.Code;if(e?.Code!==void 0)return e.Code;if(r.statusCode==404)return"NotFound"};var Sf=class extends qs{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,t){let n=ze.of(e);if(n.isStringSchema()&&typeof t=="string")this.stringBuffer=t;else if(n.isBlobSchema())this.byteBuffer="byteLength"in t?t:(this.serdeContext?.base64Decoder??Hn)(t);else{this.buffer=this.writeStruct(n,t,void 0);let i=n.getMergedTraits();i.httpPayload&&!i.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let t=this.byteBuffer;return delete this.byteBuffer,t}if(this.stringBuffer!==void 0){let t=this.stringBuffer;return delete this.stringBuffer,t}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,t,n){let i=e.getMergedTraits(),s=e.isMemberSchema()&&!i.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():i.xmlName??e.getName();if(!s||!e.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let o=Lr.of(s),[a,c]=this.getXmlnsAttribute(e,n);for(let[d,u]of e.structIterator()){let h=t[d];if(h!=null||u.isIdempotencyToken()){if(u.getMergedTraits().xmlAttribute){o.addAttribute(u.getMergedTraits().xmlName??d,this.writeSimple(u,h));continue}if(u.isListSchema())this.writeList(u,h,o,c);else if(u.isMapSchema())this.writeMap(u,h,o,c);else if(u.isStructSchema())o.addChildNode(this.writeStruct(u,h,c));else{let g=Lr.of(u.getMergedTraits().xmlName??u.getMemberName());this.writeSimpleInto(u,h,g,c),o.addChildNode(g)}}}let{$unknown:l}=t;if(l&&e.isUnionSchema()&&Array.isArray(l)&&Object.keys(t).length===1){let[d,u]=l,h=Lr.of(d);if(typeof u!="string")if(t instanceof Lr||t instanceof Ho)o.addChildNode(t);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,u,h,c),o.addChildNode(h)}return c&&o.addAttribute(a,c),o}writeList(e,t,n,i){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let s=e.getMergedTraits(),o=e.getValueSchema(),a=o.getMergedTraits(),c=!!a.sparse,l=!!s.xmlFlattened,[d,u]=this.getXmlnsAttribute(e,i),h=(g,y)=>{if(o.isListSchema())this.writeList(o,Array.isArray(y)?y:[y],g,u);else if(o.isMapSchema())this.writeMap(o,y,g,u);else if(o.isStructSchema()){let S=this.writeStruct(o,y,u);g.addChildNode(S.withName(l?s.xmlName??e.getMemberName():a.xmlName??"member"))}else{let S=Lr.of(l?s.xmlName??e.getMemberName():a.xmlName??"member");this.writeSimpleInto(o,y,S,u),g.addChildNode(S)}};if(l)for(let g of t)(c||g!=null)&&h(n,g);else{let g=Lr.of(s.xmlName??e.getMemberName());u&&g.addAttribute(d,u);for(let y of t)(c||y!=null)&&h(g,y);n.addChildNode(g)}}writeMap(e,t,n,i,s=!1){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let o=e.getMergedTraits(),a=e.getKeySchema(),l=a.getMergedTraits().xmlName??"key",d=e.getValueSchema(),u=d.getMergedTraits(),h=u.xmlName??"value",g=!!u.sparse,y=!!o.xmlFlattened,[S,C]=this.getXmlnsAttribute(e,i),N=(T,I,k)=>{let Z=Lr.of(l,I),[te,ae]=this.getXmlnsAttribute(a,C);ae&&Z.addAttribute(te,ae),T.addChildNode(Z);let ye=Lr.of(h);d.isListSchema()?this.writeList(d,k,ye,C):d.isMapSchema()?this.writeMap(d,k,ye,C,!0):d.isStructSchema()?ye=this.writeStruct(d,k,C):this.writeSimpleInto(d,k,ye,C),T.addChildNode(ye)};if(y){for(let[T,I]of Object.entries(t))if(g||I!=null){let k=Lr.of(o.xmlName??e.getMemberName());N(k,T,I),n.addChildNode(k)}}else{let T;s||(T=Lr.of(o.xmlName??e.getMemberName()),C&&T.addAttribute(S,C),n.addChildNode(T));for(let[I,k]of Object.entries(t))if(g||k!=null){let Z=Lr.of("entry");N(Z,I,k),(s?n:T).addChildNode(Z)}}}writeSimple(e,t){if(t===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let n=ze.of(e),i=null;if(t&&typeof t=="object")if(n.isBlobSchema())i=(this.serdeContext?.base64Encoder??Jr)(t);else if(n.isTimestampSchema()&&t instanceof Date)switch(Qa(n,this.settings)){case 5:i=t.toISOString().replace(".000Z","Z");break;case 6:i=lm(t);break;case 7:i=String(t.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",t),i=lm(t);break}else{if(n.isBigDecimalSchema()&&t)return t instanceof Xa?t.string:String(t);throw n.isMapSchema()||n.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on
43List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`)}if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(i=String(t)),n.isStringSchema()&&(t===void 0&&n.isIdempotencyToken()?i=zo():i=String(t)),i===null)throw new Error(`Unhandled schema-value pair ${n.getName(!0)}=${t}`);return i}writeSimpleInto(e,t,n,i){let s=this.writeSimple(e,t),o=ze.of(e),a=new Ho(s),[c,l]=this.getXmlnsAttribute(o,i);l&&n.addAttribute(c,l),n.addChildNode(a)}getXmlnsAttribute(e,t){let n=e.getMergedTraits(),[i,s]=n.xmlNamespace??[];return s&&s!==t?[i?`xmlns:${i}`:"xmlns",s]:[void 0,void 0]}};var Pf=class extends qs{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Sf(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new bf(this.settings);return e.setSerdeContext(this.serdeContext),e}};var Cf=class r extends tf{codec;serializer;deserializer;mixin=new yf;constructor(e){super(e);let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new Pf(t),this.serializer=new sf(this.codec.createSerializer(),t),this.deserializer=new rf(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}serializeRequest(e,t,n){return p(this,null,function*(){let i=yield Tn(r.prototype,this,"serializeRequest").call(this,e,t,n),s=ze.of(e.input);if(!i.headers["content-type"]){let o=this.mixin.resolveRestContentType(this.getDefaultContentType(),s);o&&(i.headers["content-type"]=o)}return typeof i.body=="string"&&i.headers["content-type"]===this.getDefaultContentType()&&!i.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(s)&&(i.body='<?xml version="1.0" encoding="UTF-8"?>'+i.body),i})}deserializeResponse(e,t,n){return p(this,null,function*(){return Tn(r.prototype,this,"deserializeResponse").call(this,e,t,n)})}handleError(e,t,n,i,s){return p(this,null,function*(){let o=dB(n,i)??"Unknown";if(i.Error&&typeof i.Error=="object")for(let y of Object.keys(i.Error))i[y]=i.Error[y],y.toLowerCase()==="message"&&(i.message=i.Error[y]);i.RequestId&&!s.requestId&&(s.requestId=i.RequestId);let{errorSchema:a,errorMetadata:c}=yield this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,n,i,s),l=ze.of(a),d=i.Error?.message??i.Error?.Message??i.message??i.Message??"Unknown",u=yn.for(a[1]).getErrorCtor(a)??Error,h=new u(d);yield this.deserializeHttpMessage(a,t,n,i);let g={};for(let[y,S]of l.structIterator()){let C=S.getMergedTraits().xmlName??y,N=i.Error?.[C]??i[C];g[y]=this.codec.createDeserializer().readSchema(S,N)}throw this.mixin.decorateServiceException(Object.assign(h,c,{$fault:l.getMergedTraits().error,message:d},g),i)})}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(let[,t]of e.structIterator())if(t.getMergedTraits().httpPayload)return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema());return!1}};var dm=[De.CRC32,De.CRC32C,De.CRC64NVME,De.SHA1,De.SHA256],uB=[De.SHA256,De.SHA1,De.CRC32,De.CRC32C,De.CRC64NVME];var pB=(r,{requestChecksumRequired:e,requestAlgorithmMember:t,requestChecksumCalculation:n})=>{if(!t)return n===ns.WHEN_SUPPORTED||e?rm:void 0;if(!r[t])return;let i=r[t];if(!dm.includes(i))throw new Error(`The checksum algorithm "${i}" is not supported by the client. Select one of ${dm}.`);return i};var Za=r=>r===De.MD5?"content-md5":`x-amz-checksum-${r.toLowerCase()}`;var fB=(r,e)=>{let t=r.toLowerCase();for(let n of Object.keys(e))if(t===n.toLowerCase())return!0;return!1};var hB=(r,e)=>{let t=r.toLowerCase();for(let n of Object.keys(e))if(n.toLowerCase().startsWith(t))return!0;return!1};var Ef=r=>r!==void 0&&typeof r!="string"&&!ArrayBuffer.isView(r)&&!mf(r);var fC=r=>new TextEncoder().encode(r);var t5=typeof Buffer<"u"&&Buffer.from?function(r){return Buffer.from(r,"utf8")}:fC;function Pr(r){return r instanceof Uint8Array?r:typeof r=="string"?t5(r):ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(r)}function Ti(r){return typeof r=="string"?r.length===0:r.byteLength===0}function um(r){return new Uint8Array([(r&4278190080)>>24,(r&16711680)>>16,(r&65280)>>8,r&255])}function pm(r){if(!Uint32Array.from){for(var e=new Uint32Array(r.length),t=0;t<r.length;)e[t]=r[t],t+=1;return e}return Uint32Array.from(r)}var gC=function(){function r(){this.crc32c=new hC}return r.prototype.update=function(e){Ti(e)||this.crc32c.update(Pr(e))},r.prototype.digest=function(){return ua(this,void 0,void 0,function(){return pa(this,function(e){return[2,um(this.crc32c.digest())]})})},r.prototype.reset=function(){this.crc32c=new hC},r}();var hC=function(){function r(){this.checksum=4294967295}return r.prototype.update=function(e){var t,n;try{for(var i=gd(e),s=i.next();!s.done;s=i.next()){var o=s.value;this.checksum=this.checksum>>>8^n5[(this.checksum^o)&255]}}catch(a){t={error:a}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return this},r.prototype.digest=function(){return(this.checksum^4294967295)>>>0},r}();var r5=[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,147
437399826,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],n5=pm(r5);var i5=()=>{let e=new Array(8);for(let t=0;t<8;t++){let n=new Array(512);for(let i=0;i<256;i++){let s=BigInt(i);for(let o=0;o<8*(t+1);o++)s&1n?s=s>>1n^0x9a6c9329ac4bc9b5n:s=s>>1n;n[i*2]=Number(s>>32n&0xffffffffn),n[i*2+1]=Number(s&0xffffffffn)}e[t]=new Uint32Array(n)}return e},yC,fm,xC,bC,SC,PC,CC,EC,NC,s5=()=>{yC||(yC=i5(),[fm,xC,bC,SC,PC,CC,EC,NC]=yC)},Nf=class{c1=0;c2=0;constructor(){s5(),this.reset()}update(e){let t=e.length,n=0,i=this.c1,s=this.c2;for(;n+8<=t;){let o=((s^e[n++])&255)<<1,a=((s>>>8^e[n++])&255)<<1,c=((s>>>16^e[n++])&255)<<1,l=((s>>>24^e[n++])&255)<<1,d=((i^e[n++])&255)<<1,u=((i>>>8^e[n++])&255)<<1,h=((i>>>16^e[n++])&255)<<1,g=((i>>>24^e[n++])&255)<<1;i=NC[o]^EC[a]^CC[c]^PC[l]^SC[d]^bC[u]^xC[h]^fm[g],s=NC[o+1]^EC[a+1]^CC[c+1]^PC[l+1]^SC[d+1]^bC[u+1]^xC[h+1]^fm[g+1]}for(;n<t;){let o=((s^e[n])&255)<<1;s=(s>>>8|(i&255)<<24)>>>0,i=i>>>8^fm[o],s^=fm[o+1],n++}this.c1=i,this.c2=s}digest(){return p(this,null,function*(){let e=this.c1^4294967295,t=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255])})}reset(){this.c1=4294967295,this.c2=4294967295}};var wC={CrtCrc64Nvme:null};var RC=function(){function r(){this.crc32=new Fo}return r.prototype.update=function(e){Ti(e)||this.crc32.update(Pr(e))},r.prototype.digest=function(){return ua(this,void 0,void 0,function(){return pa(this,function(e){return[2,um(this.crc32.digest())]})})},r.prototype.reset=function(){this.crc32=new Fo},r}();var Fo=function(){function r(){this.checksum=4294967295}return r.prototype.update=function(e){var t,n;try{for(var i=gd(e),s=i.next();!s.done;s=i.next()){var o=s.value;this.checksum=this.checksum>>>8^a5[(this.checksum^o)&255]}}catch(a){t={error:a}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return this},r.prototype.digest=function(){return(this.checksum^4294967295)>>>0},r}();var o5=[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,39
4304427059,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],a5=pm(o5);var gB=()=>RC;var wf=(r,e)=>{switch(r){case De.MD5:return e.md5;case De.CRC32:return gB();case De.CRC32C:return gC;case De.CRC64NVME:return typeof wC.CrtCrc64Nvme!="function"?Nf:wC.CrtCrc64Nvme;case De.SHA1:return e.sha1;case De.SHA256:return e.sha256;default:throw new Error(`Unsupported checksum algorithm: ${r}`)}};var Rf=(r,e)=>{let t=new r;return t.update(Fn(e||"")),t.digest()};var yB={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},xB=(r,e)=>(t,n)=>i=>p(null,null,function*(){if(!Ne.isInstance(i.request)||hB("x-amz-checksum-",i.request.headers))return t(i);let{request:s,input:o}=i,{body:a,headers:c}=s,{base64Encoder:l,streamHasher:d}=r,{requestChecksumRequired:u,requestAlgorithmMember:h}=e,g=yield r.requestChecksumCalculation(),y=h?.name,S=h?.httpHeader;y&&!o[y]&&(g===ns.WHEN_SUPPORTED||u)&&(o[y]=rm,S&&(c[S]=rm));let C=pB(o,{requestChecksumRequired:u,requestAlgorithmMember:h?.name,requestChecksumCalculation:g}),N=a,T=c;if(C){switch(C){case De.CRC32:it(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case De.CRC32C:it(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case De.CRC64NVME:it(n,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case De.SHA1:it(n,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case De.SHA256:it(n,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}let I=Za(C),k=wf(C,r);if(Ef(a)){let{getAwsChunkedEncodingStream:Z,bodyLengthChecker:te}=r;N=Z(typeof r.requestStreamBufferSize=="number"&&r.requestStreamBufferSize>=8*1024?iM(a,r.requestStreamBufferSize,n.logger):a,{base64Encoder:l,bodyLengthChecker:te,checksumLocationName:I,checksumAlgorithmFn:k,streamHasher:d}),T=E(x({},c),{"content-encoding":c["content-encoding"]?`${c["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":c["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":I}),delete T["content-length"]}else if(!fB(I,c)){let Z=yield Rf(k,a);T=E(x({},c),{[I]:l(Z)})}}try{return yield t(E(x({},i),{request:E(x({},s),{headers:T,body:N})}))}catch(I){if(I instanceof Error&&I.name==="InvalidChunkSizeError")try{I.message.endsWith(".")||(I.message+="."),I.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch{}throw I}});var bB={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},SB=(r,e)=>(t,n)=>i=>p(null,null,function*(){let s=i.input,{requestValidationModeMember:o}=e,a=yield r.requestChecksumCalculation(),c=yield r.responseChecksumValidation();switch(a){case ns.WHEN_REQUIRED:it(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case ns.WHEN_SUPPORTED:it(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z");break}switch(c){case $p.WHEN_REQUIRED:it(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case $p.WHEN_SUPPORTED:it(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b");break}return o&&!s[o]&&c===$p.WHEN_SUPPORTED&&(s[o]="ENABLED"),t(i)});var vf=(r=[])=>{let e=[];for(let t of uB)!r.includes(t)||!dm.includes(t)||e.push(t);return e};var PB=r=>{let e=r.lastIndexOf("-");if(e!==-1){let t=r.slice(e+1);if(!t.startsWith("0")){let n=parseInt(t,10);if(!isNaN(n)&&n>=1&&n<=1e4)return!0}}return!1};var CB=(n,i)=>p(null,[n,i],function*(r,{checksumAlgorithmFn:e,base64Encoder:t}){return t(yield Rf(e,r))});var EB=(i,s)=>p(null,[i,s],function*(r,{config:e,responseAlgorithms:t,logger:n}){let o=vf(t),{body:a,headers:c}=r;for(let l of o){let d=Za(l),u=c[d];if(u){let h;try{h=wf(l,e)}
43catch(S){if(l===De.CRC64NVME){n?.warn(`Skipping ${De.CRC64NVME} checksum validation: ${S.message}`);continue}throw S}let{base64Encoder:g}=e;if(Ef(a)){r.body=nM({expectedChecksum:u,checksumSourceLocation:d,checksum:new h,source:a,base64Encoder:g});return}let y=yield CB(a,{checksumAlgorithmFn:h,base64Encoder:g});if(y===u)break;throw new Error(`Checksum mismatch: expected "${y}" but received "${u}" in response header "${d}".`)}}});var NB={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},wB=(r,e)=>(t,n)=>i=>p(null,null,function*(){if(!Ne.isInstance(i.request))return t(i);let s=i.input,o=yield t(i),a=o.response,{requestValidationModeMember:c,responseAlgorithms:l}=e;if(c&&s[c]==="ENABLED"){let{clientName:d,commandName:u}=n;if(d==="S3Client"&&u==="GetObjectCommand"&&vf(l).every(g=>{let y=Za(g),S=a.headers[y];return!S||PB(S)}))return o;yield EB(a,{config:r,responseAlgorithms:l,logger:n.logger})}return o});var ec=(r,e)=>({applyToStack:t=>{t.add(xB(r,e),yB),t.addRelativeTo(SB(r,e),bB),t.addRelativeTo(wB(r,e),NB)}});var RB=r=>{let{requestChecksumCalculation:e,responseChecksumValidation:t,requestStreamBufferSize:n}=r;return Object.assign(r,{requestChecksumCalculation:nr(e??jI),responseChecksumValidation:nr(t??GI),requestStreamBufferSize:Number(n??0)})};var c5=r=>e=>t=>p(null,null,function*(){if(!Ne.isInstance(t.request))return e(t);let{request:n}=t,{handlerProtocol:i=""}=r.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let s=n.hostname;n.port!=null&&(s+=`:${n.port}`),n.headers.host=s}return e(t)}),l5={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},vB=r=>({applyToStack:e=>{e.add(c5(r),l5)}});var m5=()=>(r,e)=>t=>p(null,null,function*(){try{let i=yield r(t),{clientName:s,commandName:o,logger:a,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:l,overrideOutputFilterSensitiveLog:d}=c,u=l??e.inputFilterSensitiveLog,h=d??e.outputFilterSensitiveLog,n=i.output,{$metadata:g}=n,y=an(n,["$metadata"]);return a?.info?.({clientName:s,commandName:o,input:u(t.input),output:h(y),metadata:g}),i}catch(i){let{clientName:s,commandName:o,logger:a,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:l}=c,d=l??e.inputFilterSensitiveLog;throw a?.error?.({clientName:s,commandName:o,input:d(t.input),error:i,metadata:i.$metadata}),i}}),d5={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},TB=r=>({applyToStack:e=>{e.add(m5(),d5)}});var _B={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"};var AB=()=>r=>e=>p(null,null,function*(){return r(e)});var IB=r=>({applyToStack:e=>{e.add(AB(),_B)}});var u5="content-length",p5="x-amz-decoded-content-length";function f5(){return(r,e)=>t=>p(null,null,function*(){let{request:n}=t;if(Ne.isInstance(n)&&!(u5 in n.headers)&&!(p5 in n.headers)){let i="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof e?.logger?.warn=="function"&&!(e.logger instanceof Us)?e.logger.warn(i):console.warn(i)}return r(x({},t))})}var h5={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},MB=r=>({applyToStack:e=>{e.add(f5(),h5)}});var BB=r=>(e,t)=>n=>p(null,null,function*(){let i=yield r.region(),s=r.region,o=()=>{};t.__s3RegionRedirect&&(Object.defineProperty(r,"region",{writable:!1,value:()=>p(null,null,function*(){return t.__s3RegionRedirect})}),o=()=>Object.defineProperty(r,"region",{writable:!0,value:s}));try{let a=yield e(n);if(t.__s3RegionRedirect){o();let c=yield r.region();if(i!==c)throw new Error("Region was not restored following S3 region redirect.")}return a}catch(a){throw o(),a}}),kB={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function g5(r){return(e,t)=>n=>p(null,null,function*(){try{return yield e(n)}catch(i){if(r.followRegionRedirects){let s=i?.$metadata?.httpStatusCode,o=t.commandName==="HeadBucketCommand",a=i?.$response?.headers?.["x-amz-bucket-region"];
43if(a&&(s===301||s===400&&(i?.name==="IllegalLocationConstraintException"||o))){try{let c=a;t.logger?.debug(`Redirecting from ${yield r.region()} to ${c}`),t.__s3RegionRedirect=c}catch(c){throw new Error("Region redirect failed: "+c)}return e(n)}}throw i}})}var y5={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},OB=r=>({applyToStack:e=>{e.add(g5(r),y5),e.addRelativeTo(BB(r),kB)}});var DB=(()=>{class r{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(t={}){this.data=t}get(t){let n=this.data[t];if(n)return n}set(t,n){return this.data[t]=n,n}delete(t){delete this.data[t]}purgeExpired(){return p(this,null,function*(){let t=Date.now();if(!(this.lastPurgeTime+r.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(let n in this.data){let i=this.data[n];if(!i.isRefreshing){let s=yield i.identity;s.expiration&&s.expiration.getTime()<t&&delete this.data[n]}}})}}return r})();var tc=class{_identity;isRefreshing;accessed;constructor(e,t=!1,n=Date.now()){this._identity=e,this.isRefreshing=t,this.accessed=n}get identity(){return this.accessed=Date.now(),this._identity}};var vC=(()=>{class r{createSessionFn;cache;static REFRESH_WINDOW_MS=6e4;constructor(t,n=new DB){this.createSessionFn=t,this.cache=n}getS3ExpressIdentity(t,n){return p(this,null,function*(){let i=n.Bucket,{cache:s}=this,o=s.get(i);return o?o.identity.then(a=>(a.expiration?.getTime()??0)<Date.now()?s.set(i,new tc(this.getIdentity(i))).identity:((a.expiration?.getTime()??0)<Date.now()+r.REFRESH_WINDOW_MS&&!o.isRefreshing&&(o.isRefreshing=!0,this.getIdentity(i).then(d=>{s.set(i,new tc(Promise.resolve(d)))})),a)):s.set(i,new tc(this.getIdentity(i))).identity})}getIdentity(t){return p(this,null,function*(){yield this.cache.purgeExpired().catch(s=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: 44`+s)});let n=yield this.createSessionFn(t);if(!n.Credentials?.AccessKeyId||!n.Credentials?.SecretAccessKey)throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:n.Credentials.AccessKeyId,secretAccessKey:n.Credentials.SecretAccessKey,sessionToken:n.Credentials.SessionToken,expiration:n.Credentials.Expiration?new Date(n.Credentials.Expiration):void 0}})}}return r})();var LB="Directory",zB="S3Express",UB="sigv4-s3express",Tf="X-Amz-S3session-Token",hm=Tf.toLowerCase();var gm=class extends Uo{signWithCredentials(e,t,n){return p(this,null,function*(){let i=qB(t);e.headers[hm]=t.sessionToken;let s=this;return HB(s,i),s.signRequest(e,n??{})})}presignWithCredentials(e,t,n){return p(this,null,function*(){let i=qB(t);return delete e.headers[hm],e.headers[Tf]=t.sessionToken,e.query=e.query??{},e.query[Tf]=t.sessionToken,HB(this,i),this.presign(e,n)})}};function qB(r){return{accessKeyId:r.accessKeyId,secretAccessKey:r.secretAccessKey,expiration:r.expiration}}function HB(r,e){let t=setTimeout(()=>{throw new Error("SignatureV4S3Express credential override was created but not called.")},10),n=r.credentialProvider,i=()=>(clearTimeout(t),r.credentialProvider=n,Promise.resolve(e));r.credentialProvider=i}var FB=r=>(e,t)=>n=>p(null,null,function*(){if(t.endpointV2){let i=t.endpointV2,s=i.properties?.authSchemes?.[0]?.name===UB;if((i.properties?.backend===zB||i.properties?.bucketType===LB)&&(it(t,"S3_EXPRESS_BUCKET","J"),t.isS3ExpressBucket=!0),s){let a=n.input.Bucket;if(a){let c=yield r.s3ExpressIdentityProvider.getS3ExpressIdentity(yield r.credentials(),{Bucket:a});t.s3ExpressIdentity=c,Ne.isInstance(n.request)&&c.sessionToken&&(n.request.headers[hm]=c.sessionToken)}}}return e(n)}),$B={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},TC=r=>({applyToStack:e=>{e.add(FB(r),$B)}});var jB=(r,e,t,n)=>p(null,null,function*(){let i=yield n.signWithCredentials(t,r,{});if(i.headers["X-Amz-Security-Token"]||i.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return i});var x5=r=>e=>{throw e},b5=(r,e)=>{};var GB=r=>(e,t)=>n=>p(null,null,function*(){if(!Ne.isInstance(n.request))return e(n);let s=Sr(t).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:o={}},identity:a,signer:c}=s,l;t.s3ExpressIdentity?l=yield jB(t.s3ExpressIdentity,o,n.request,yield r.signer()):l=yield c.sign(n.request,a,o);let d=yield e(E(x({},n),{request:l})).catch((c.errorHandler||x5)(o));return(c.successHandler||b5)(d.response,o),d}),_C=r=>({applyToStack:e=>{e.addRelativeTo(GB(r),zP)}});var KB=(r,{session:e})=>{let[t,n]=e,{forcePathStyle:i,useAccelerateEndpoint:s,disableMultiregionAccessPoints:o,followRegionRedirects:a,s3ExpressIdentityProvi
44der:c,bucketEndpoint:l,expectContinueHeader:d}=r;return Object.assign(r,{forcePathStyle:i??!1,useAccelerateEndpoint:s??!1,disableMultiregionAccessPoints:o??!1,followRegionRedirects:a??!1,s3ExpressIdentityProvider:c??new vC(u=>p(null,null,function*(){return t().send(new n({Bucket:u}))})),bucketEndpoint:l??!1,expectContinueHeader:d??2097152})};var S5={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},P5=3e3,C5=r=>(e,t)=>n=>p(null,null,function*(){let i=yield e(n),{response:s}=i;if(!br.isInstance(s))return i;let{statusCode:o,body:a}=s;if(o<200||o>=300||!(typeof a?.stream=="function"||typeof a?.pipe=="function"||typeof a?.tee=="function"))return i;let l=a,d=a;a&&typeof a=="object"&&!(a instanceof Uint8Array)&&([l,d]=yield uM(a)),s.body=d;let u=yield E5(l,{streamCollector:g=>p(null,null,function*(){return oM(g,P5)})});typeof l?.destroy=="function"&&l.destroy();let h=r.utf8Encoder(u.subarray(u.length-16));if(u.length===0&&S5[t.commandName]){let g=new Error("S3 aborted request");throw g.name="InternalError",g}return h&&h.endsWith("</Error>")&&(s.statusCode=400),i}),E5=(r=new Uint8Array,e)=>r instanceof Uint8Array?Promise.resolve(r):e.streamCollector(r)||Promise.resolve(new Uint8Array),N5={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},zr=r=>({applyToStack:e=>{e.addRelativeTo(C5(r),N5)}});var WB=r=>typeof r=="string"&&r.indexOf("arn:")===0&&r.split(":").length>=6;function VB(r){return(e,t)=>n=>p(null,null,function*(){if(r.bucketEndpoint){let i=t.endpointV2;if(i){let s=n.input.Bucket;if(typeof s=="string")try{let o=new URL(s);t.endpointV2=E(x({},i),{url:o})}catch(o){let a=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${s} could not be parsed as URL.`;throw t.logger?.constructor?.name==="NoOpLogger"?console.warn(a):t.logger?.warn?.(a),o}}}return e(n)})}var XB={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function w5({bucketEndpoint:r}){return e=>t=>p(null,null,function*(){let{input:{Bucket:n}}=t;if(!r&&typeof n=="string"&&!WB(n)&&n.indexOf("/")>=0){let i=new Error(`Bucket name shouldn't contain '/', received '${n}'`);throw i.name="InvalidBucketName",i}return e(x({},t))})}var R5={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},QB=r=>({applyToStack:e=>{e.add(w5(r),R5),e.addRelativeTo(VB(r),XB)}});var v5=void 0;function T5(r){return r===void 0?!0:typeof r=="string"&&r.length<=50}function YB(r){let e=is(r.userAgentAppId??v5),{customUserAgent:t}=r;return Object.assign(r,{customUserAgent:typeof t=="string"?[[t]]:t,userAgentAppId:()=>p(null,null,function*(){let n=yield e();if(!T5(n)){let i=r.logger?.constructor?.name==="NoOpLogger"||!r.logger?console:r.logger;typeof n!="string"?i?.warn("userAgentAppId must be a string or undefined."):n.length>50&&i?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return n})})}var _f=class{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){let n=this.hash(e);if(n===!1)return t();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let i=this.data.keys(),s=0;for(;;){let{value:o,done:a}=i.next();if(this.data.delete(o),a||++s>10)break}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t="",{parameters:n}=this;if(n.length===0)return!1;for(let i of n){let s=String(e[i]??"");if(s.includes("|;"))return!1;t+=s+"|;"}return t}};var _5=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),Hs=r=>_5.test(r)||r.startsWith("[")&&r.endsWith("]");var A5=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),as=(r,e=!1)=>{if(!e)return A5.test(r);let t=r.split(".");for(let n of t)if(!as(n))return!1;return!0};var cs={};var ls="endpoints";function xn(r){return typeof r!="object"||r==null?r:"ref"in r?`$${xn(r.ref)}`:"fn"in r?`${r.fn}(${(r.argv||[]).map(xn).join(", ")})`:JSON.stringify(r,null,2)}
44var Je=class extends Error{constructor(e){super(e),this.name="EndpointError"}};var JB=(r,e)=>r===e;var ZB=r=>{let e=r.split("."),t=[];for(let n of e){let i=n.indexOf("[");if(i!==-1){if(n.indexOf("]")!==n.length-1)throw new Je(`Path: '${r}' does not end with ']'`);let s=n.slice(i+1,-1);if(Number.isNaN(parseInt(s)))throw new Je(`Invalid array index: '${s}' in path: '${r}'`);i!==0&&t.push(n.slice(0,i)),t.push(s)}else t.push(n)}return t};var Af=(r,e)=>ZB(e).reduce((t,n)=>{if(typeof t!="object")throw new Je(`Index '${n}' in '${e}' not found in '${JSON.stringify(r)}'`);return Array.isArray(t)?t[parseInt(n)]:t[n]},r);var ek=r=>r!=null;var tk=r=>!r;var AC={[Zl.HTTP]:80,[Zl.HTTPS]:443},rk=r=>{let e=(()=>{try{if(r instanceof URL)return r;if(typeof r=="object"&&"hostname"in r){let{hostname:h,port:g,protocol:y="",path:S="",query:C={}}=r,N=new URL(`${y}//${h}${g?`:${g}`:""}${S}`);return N.search=Object.entries(C).map(([T,I])=>`${T}=${I}`).join("&"),N}return new URL(r)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(r)} as a whatwg URL.`),null;let t=e.href,{host:n,hostname:i,pathname:s,protocol:o,search:a}=e;if(a)return null;let c=o.slice(0,-1);if(!Object.values(Zl).includes(c))return null;let l=Hs(i),d=t.includes(`${n}:${AC[c]}`)||typeof r=="string"&&r.includes(`${n}:${AC[c]}`),u=`${n}${d?`:${AC[c]}`:""}`;return{scheme:c,authority:u,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:l}};var nk=(r,e)=>r===e;var ik=(r,e,t,n)=>e>=t||r.length<t?null:n?r.substring(r.length-t,r.length-e):r.substring(e,t);var sk=r=>encodeURIComponent(r).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`);var ok={booleanEquals:JB,getAttr:Af,isSet:ek,isValidHostLabel:as,not:tk,parseURL:rk,stringEquals:nk,substring:ik,uriEncode:sk};var If=(r,e)=>{let t=[],n=x(x({},e.endpointParams),e.referenceRecord),i=0;for(;i<r.length;){let s=r.indexOf("{",i);if(s===-1){t.push(r.slice(i));break}t.push(r.slice(i,s));let o=r.indexOf("}",s);if(o===-1){t.push(r.slice(s));break}r[s+1]==="{"&&r[o+1]==="}"&&(t.push(r.slice(s+1,o)),i=o+2);let a=r.substring(s+1,o);if(a.includes("#")){let[c,l]=a.split("#");t.push(Af(n[c],l))}else t.push(n[a]);i=o+1}return t.join("")};var ak=({ref:r},e)=>x(x({},e.endpointParams),e.referenceRecord)[r];var $o=(r,e,t)=>{if(typeof r=="string")return If(r,t);if(r.fn)return ck.callFunction(r,t);if(r.ref)return ak(r,t);throw new Je(`'${e}': ${String(r)} is not a string, function or reference.`)},Mf=({fn:r,argv:e},t)=>{let n=e.map(s=>["boolean","number"].includes(typeof s)?s:ck.evaluateExpression(s,"arg",t)),i=r.split(".");return i[0]in cs&&i[1]!=null?cs[i[0]][i[1]](...n):ok[r](...n)},ck={evaluateExpression:$o,callFunction:Mf};var lk=(n,t)=>{var i=n,{assign:r}=i,e=an(i,["assign"]);if(r&&r in t.referenceRecord)throw new Je(`'${r}' is already defined in Reference Record.`);let s=Mf(e,t);return t.logger?.debug?.(`${ls} evaluateCondition: ${xn(e)} = ${xn(s)}`),x({result:s===""?!0:!!s},r!=null&&{toAssign:{name:r,value:s}})};var rc=(r=[],e)=>{let t={};for(let n of r){let{result:i,toAssign:s}=lk(n,E(x({},e),{referenceRecord:x(x({},e.referenceRecord),t)}));if(!i)return{result:i};s&&(t[s.name]=s.value,e.logger?.debug?.(`${ls} assign: ${s.name} := ${xn(s.value)}`))}return{result:!0,referenceRecord:t}};var mk=(r,e)=>Object.entries(r).reduce((t,[n,i])=>E(x({},t),{[n]:i.map(s=>{let o=$o(s,"Header value entry",e);if(typeof o!="string")throw new Je(`Header '${n}' value '${o}' is not a string`);return o})}),{});var IC=(r,e)=>Object.entries(r).reduce((t,[n,i])=>E(x({},t),{[n]:uk.getEndpointProperty(i,e)}),{}),dk=(r,e)=>{if(Array.isArray(r))return r.map(t=>dk(t,e));switch(typeof r){case"string":return If(r,e);case"object":if(r===null)throw new Je(`Unexpected endpoint property: ${r}`);return uk.getEndpointProperties(r,e);case"boolean":return r;default:throw new Je(`Unexpected endpoint property type: ${typeof r}`)}},uk={getEndpointProperty:dk,getEndpointProperties:IC};var pk=(r,e)=>{let t=$o(r,"Endpoint URL",e);if(typeof t=="string")try{return new URL(t)}catch(n){throw console.error(`Failed to construct URL with ${t}`,n),n}throw new Je(`Endpoint URL must be a string, got ${typeof t}`)};var fk=(r,e)=>{let{conditions:t,endpoint:n}=r,{result:i,referenceRecord:s}=rc(t,e);if(!i)return;let o=E(x({},e),{referenceRecord:x(x({},e.referenceRecord),s)}),{url:a,properties:c,headers:l}=n;return e.logger?.debug?.(`${ls} Resolving endpoint from template: ${xn(n)}`),E(x(x({},l!=null&&{headers:mk(l,o)}),c!=null&&{properties:IC(c,o)}),{url:pk(a,o)})};var hk=(r,e)=>{let{conditions:t,error:n}=r,{result:i,referenceRecord:s}=rc(t,e);if(i)throw new Je($o(n,"Error",E(x({},e),{referenceRecord:x(x({},e.referenceRecord),s)})))};var MC=(r,e)=>{for(let t of r)if(t.type==="endpoint"){let n=fk(t,e);if(n)return n}else if(t.type==="error")hk(t,e);else if(t.type==="tree"){let n=gk.evaluateTreeRule(t,e);if(n)return n}else throw new Je(`Unknown endpoint rule: ${t}`);throw new Je("Rules evaluation failed")},I5=(r,e)=>{let{conditions:t,rules:n}=r,{result:i,referenceRecord:s}=rc(t,e);if(i)return gk.evaluateRules(n,E(x({},e),{referenceRecord:x(x({},e.referenceRecord),s)}))},gk={evaluateRules:MC,evaluateTreeRule:I5};var yk=(r,e)=>{let{endpointParams:t,logger:n}=e,{parameters:i,rules:s}=r;e.logger?.debug?.(`${ls} Initial EndpointParams: ${xn(t)}`);let o=Object.entries(i).filter(([,l])=>l.default!=null).map(([l,d])=>[l,d.default]);if(o.length>0)for(let[l,d]of o)t[l]=t[l]??d;let a=Object.entries(i).filter(([,l])=>l.required).map(([l])=>l);for(let l of a)if(t[l]==null)throw new Je(`Missing required parameter: '${l}'`);let c=MC(s,{endpointParams:t,logger:n,referenceRecord:{}});return e.logger?.debug?.(`${ls} Resolved endpoint: ${xn(c)}`),c};var BC=(r,e=!1)=>
44{if(e){for(let t of r.split("."))if(!BC(t))return!1;return!0}return!(!as(r)||r.length<3||r.length>63||r!==r.toLowerCase()||Hs(r))};var xk=":",M5="/",bk=r=>{let e=r.split(xk);if(e.length<6)return null;let[t,n,i,s,o,...a]=e;if(t!=="arn"||n===""||i===""||a.join(xk)==="")return null;let c=a.map(l=>l.split(M5)).flat();return{partition:n,service:i,region:s,accountId:o,resourceId:c}};var Sk={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"};var k5=Sk,O5="",Pk=r=>{let{partitions:e}=k5;for(let n of e){let{regions:i,outputs:s}=n;
44for(let[o,a]of Object.entries(i))if(o===r)return x(x({},s),a)}for(let n of e){let{regionRegex:i,outputs:s}=n;if(new RegExp(i).test(r))return x({},s)}let t=e.find(n=>n.id==="aws");if(!t)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return x({},t.outputs)};var Ck=()=>O5;var D5={isVirtualHostableS3Bucket:BC,parseArn:bk,partition:Pk};cs.aws=D5;function Ek(r){let e={};if(r=r.replace(/^\?/,""),r)for(let t of r.split("&")){let[n,i=null]=t.split("=");n=decodeURIComponent(n),i&&(i=decodeURIComponent(i)),n in e?Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]:e[n]=i}return e}var nc=r=>{if(typeof r=="string")return nc(new URL(r));let{hostname:e,pathname:t,port:n,protocol:i,search:s}=r,o;return s&&(o=Ek(s)),{hostname:e,port:n?parseInt(n):void 0,protocol:i,path:t,query:o}};var L5=/\d{12}\.ddb/;function Nk(r,e,t){return p(this,null,function*(){if(t.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&it(r,"PROTOCOL_RPC_V2_CBOR","M"),typeof e.retryStrategy=="function"){let s=yield e.retryStrategy();typeof s.acquireInitialRetryToken=="function"?s.constructor?.name?.includes("Adaptive")?it(r,"RETRY_MODE_ADAPTIVE","F"):it(r,"RETRY_MODE_STANDARD","E"):it(r,"RETRY_MODE_LEGACY","D")}if(typeof e.accountIdEndpointMode=="function"){let s=r.endpointV2;switch(String(s?.url?.hostname).match(L5)&&it(r,"ACCOUNT_ID_ENDPOINT","O"),yield e.accountIdEndpointMode?.()){case"disabled":it(r,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":it(r,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":it(r,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let i=r.__smithy_context?.selectedHttpAuthScheme?.identity;if(i?.$source){let s=i;s.accountId&&it(r,"RESOLVED_ACCOUNT_ID","T");for(let[o,a]of Object.entries(s.$source??{}))it(r,o,a)}})}var kC="user-agent",Bf="x-amz-user-agent",OC=" ",kf="/",wk=/[^!$%&'*+\-.^_`|~\w]/g,Rk=/[^!$%&'*+\-.^_`|~\w#]/g,DC="-";function vk(r){let e="";for(let t in r){let n=r[t];if(e.length+n.length+1<=1024){e.length?e+=","+n:e+=n;continue}break}return e}var z5=r=>(e,t)=>n=>p(null,null,function*(){let{request:i}=n;if(!Ne.isInstance(i))return e(n);let{headers:s}=i,o=t?.userAgent?.map(Of)||[],a=(yield r.defaultUserAgentProvider()).map(Of);yield Nk(t,r,n);let c=t;a.push(`m/${vk(Object.assign({},t.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let l=r?.customUserAgent?.map(Of)||[],d=yield r.userAgentAppId();d&&a.push(Of(["app",`${d}`]));let u=Ck(),h=(u?[u]:[]).concat([...a,...o,...l]).join(OC),g=[...a.filter(y=>y.startsWith("aws-sdk-")),...l].join(OC);return r.runtime!=="browser"?(g&&(s[Bf]=s[Bf]?`${s[kC]} ${g}`:g),s[kC]=h):s[Bf]=h,e(E(x({},n),{request:i}))}),Of=r=>{let e=r[0].split(kf).map(o=>o.replace(wk,DC)).join(kf),t=r[1]?.replace(Rk,DC),n=e.indexOf(kf),i=e.substring(0,n),s=e.substring(n+1);return i==="api"&&(s=s.toLowerCase()),[i,s,t].filter(o=>o&&o.length>0).reduce((o,a,c)=>{switch(c){case 0:return a;case 1:return`${o}/${a}`;default:return`${o}#${a}`}},"")},U5={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Tk=r=>({applyToStack:e=>{e.add(z5(r),U5)}});var _k=!1;var Ak=!1;var Ik=new Set,Mk=(r,e=as)=>
44{if(!Ik.has(r)&&!e(r))if(r==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${r}" is not a valid hostname component.`);else Ik.add(r)};var Df=r=>typeof r=="string"&&(r.startsWith("fips-")||r.endsWith("-fips"));var Bk=r=>Df(r)?["fips-aws-global","aws-fips"].includes(r)?"us-east-1":r.replace(/fips-(dkr-|prod-)?|-fips/,""):r;var kk=r=>{let{region:e,useFipsEndpoint:t}=r;if(!e)throw new Error("Region is missing");return Object.assign(r,{region:()=>p(null,null,function*(){let n=typeof e=="function"?yield e():e,i=Bk(n);return Mk(i),i}),useFipsEndpoint:()=>p(null,null,function*(){let n=typeof e=="string"?e:yield e();return Df(n)?!0:typeof t!="function"?Promise.resolve(!!t):t()})})};var Ok=r=>Object.assign(r,{eventStreamMarshaller:r.eventStreamSerdeProvider(r)});var Dk="content-length";function q5(r){return e=>t=>p(null,null,function*(){let n=t.request;if(Ne.isInstance(n)){let{body:i,headers:s}=n;if(i&&Object.keys(s).map(o=>o.toLowerCase()).indexOf(Dk)===-1)try{let o=r(i);n.headers=E(x({},n.headers),{[Dk]:String(o)})}catch{}}return e(E(x({},t),{request:n}))})}var H5={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Lk=r=>({applyToStack:e=>{e.add(q5(r.bodyLengthChecker),H5)}});var zk=r=>p(null,null,function*(){let e=r?.Bucket||"";if(typeof r.Bucket=="string"&&(r.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),K5(e)){if(r.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!G5(e)||e.indexOf(".")!==-1&&!String(r.Endpoint).startsWith("http:")||e.toLowerCase()!==e||e.length<3)&&(r.ForcePathStyle=!0);return r.DisableMultiRegionAccessPoints&&(r.disableMultiRegionAccessPoints=!0,r.DisableMRAP=!0),r}),F5=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,$5=/(\d+\.){3}\d+/,j5=/\.\./;var G5=r=>F5.test(r)&&!$5.test(r)&&!j5.test(r),K5=r=>{let[e,t,n,,,i]=r.split(":"),s=e==="arn"&&r.split(":").length>=6,o=!!(s&&t&&n&&i);if(s&&!o)throw new Error(`Invalid ARN: ${r} was an invalid ARN.`);return o};var Uk=(r,e,t,n=!1)=>{let i=()=>p(null,null,function*(){let s;return n?s=t.clientContextParams?.[r]??t[r]??t[e]:s=t[r]??t[e],typeof s=="function"?s():s});return r==="credentialScope"||e==="CredentialScope"?()=>p(null,null,function*(){let s=typeof t.credentials=="function"?yield t.credentials():t.credentials;return s?.credentialScope??s?.CredentialScope}):r==="accountId"||e==="AccountId"?()=>p(null,null,function*(){let s=typeof t.credentials=="function"?yield t.credentials():t.credentials;return s?.accountId??s?.AccountId}):r==="endpoint"||e==="endpoint"?()=>p(null,null,function*(){if(t.isCustomEndpoint===!1)return;let s=yield i();if(s&&typeof s=="object"){if("url"in s)return s.url.href;if("hostname"in s){let{protocol:o,hostname:a,port:c,path:l}=s;return`${o}//${a}${c?":"+c:""}${l}`}}return s}):i};var Lf=r=>p(null,null,function*(){});var ic=r=>typeof r=="object"?"url"in r?nc(r.url):r:nc(r);var zf=(r,e,t,n)=>p(null,null,function*(){if(!t.isCustomEndpoint){let o;t.serviceConfiguredEndpoint?o=yield t.serviceConfiguredEndpoint():o=yield Lf(t.serviceId),o&&(t.endpoint=()=>Promise.resolve(ic(o)),t.isCustomEndpoint=!0)}let i=yield LC(r,e,t);if(typeof t.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return t.endpointProvider(i,n)}),LC=(r,e,t)=>p(null,null,function*(){let n={},i=e?.getEndpointParameterInstructions?.()||{};for(let[s,o]of Object.entries(i))switch(o.type){case"staticContextParams":n[s]=o.value;break;case"contextParams":n[s]=r[o.name];break;case"clientContextParams":case"builtInParams":n[s]=yield Uk(o.name,s,t,o.type!=="builtInParams")();break;case"operationContextParams":n[s]=o.get(r);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(o))}return Object.keys(i).length===0&&Object.assign(n,t),String(t.serviceId).toLowerCase()==="s3"&&(yield zk(n)),n});var qk=({config:r,instructions:e})=>(t,n)=>i=>p(null,null,function*(){r.isCustomEndpoint&&wM(n,"ENDPOINT_OVERRIDE","N");
44let s=yield zf(i.input,{getEndpointParameterInstructions(){return e}},x({},r),n);n.endpointV2=s,n.authSchemes=s.properties?.authSchemes;let o=n.authSchemes?.[0];if(o){n.signing_region=o.signingRegion,n.signing_service=o.signingName;let c=Sr(n)?.selectedHttpAuthScheme?.httpAuthOption;c&&(c.signingProperties=Object.assign(c.signingProperties||{},{signing_region:o.signingRegion,signingRegion:o.signingRegion,signing_service:o.signingName,signingName:o.signingName,signingRegionSet:o.signingRegionSet},o.properties))}return t(x({},i))});var W5={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:YI.name},Ur=(r,e)=>({applyToStack:t=>{t.addRelativeTo(qk({config:r,instructions:e}),W5)}});var Hk=r=>{let e=r.tls??!0,{endpoint:t,useDualstackEndpoint:n,useFipsEndpoint:i}=r,s=t!=null?()=>p(null,null,function*(){return ic(yield nr(t)())}):void 0,a=Object.assign(r,{endpoint:s,tls:e,isCustomEndpoint:!!t,useDualstackEndpoint:nr(n??!1),useFipsEndpoint:nr(i??!1)}),c;return a.serviceConfiguredEndpoint=()=>p(null,null,function*(){return r.serviceId&&!c&&(c=Lf(r.serviceId)),c}),a};var Fs=function(r){return r.STANDARD="standard",r.ADAPTIVE="adaptive",r}(Fs||{}),jo=3,zC=Fs.STANDARD;var Fk=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],$k=["TimeoutError","RequestTimeout","RequestTimeoutException"],jk=[500,502,503,504],Gk=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Kk=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"];var V5=r=>r?.$retryable!==void 0;var X5=r=>r.$metadata?.clockSkewCorrected,Q5=r=>{let e=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return r&&r instanceof TypeError?e.has(r.message):!1},Uf=r=>r.$metadata?.httpStatusCode===429||Fk.includes(r.name)||r.$retryable?.throttling==!0,qf=(r,e=0)=>V5(r)||X5(r)||$k.includes(r.name)||Gk.includes(r?.code||"")||Kk.includes(r?.code||"")||jk.includes(r.$metadata?.httpStatusCode||0)||Q5(r)||r.cause!==void 0&&e<=10&&qf(r.cause,e+1),Wk=r=>{if(r.$metadata?.httpStatusCode!==void 0){let e=r.$metadata.httpStatusCode;return 500<=e&&e<=599&&!qf(r)}return!1};var Hf=class r{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=!1;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8;let t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}getSendToken(){return p(this,null,function*(){return this.acquireTokenBucket(1)})}acquireTokenBucket(e){return p(this,null,function*(){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){let t=(e-this.currentCapacity)/this.fillRate*1e3;yield new Promise(n=>r.setTimeoutFn(n,t))}this.currentCapacity=this.currentCapacity-e}})}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),Uf(e)){let i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let n=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(n)}
44calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),t=Math.floor(e*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let n=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}};var Vk="amz-sdk-invocation-id",Xk="amz-sdk-request";var Yk=()=>{let r=100;return{computeNextBackoffDelay:n=>Math.floor(Math.min(2e4,Math.random()*2**n*r)),setDelayBase:n=>{r=n}}};var UC=({retryDelay:r,retryCount:e,retryCost:t})=>({getRetryCount:()=>e,getRetryDelay:()=>Math.min(2e4,r),getRetryCost:()=>t});var sc=class{maxAttempts;mode=Fs.STANDARD;capacity=500;retryBackoffStrategy=Yk();maxAttemptsProvider;constructor(e){this.maxAttempts=e,this.maxAttemptsProvider=typeof e=="function"?e:()=>p(this,null,function*(){return e})}acquireInitialRetryToken(e){return p(this,null,function*(){return UC({retryDelay:100,retryCount:0})})}refreshRetryTokenForRetry(e,t){return p(this,null,function*(){let n=yield this.getMaxAttempts();if(this.shouldRetry(e,t,n)){let i=t.errorType;this.retryBackoffStrategy.setDelayBase(i==="THROTTLING"?500:100);let s=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),o=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,s):s,a=this.getCapacityCost(i);return this.capacity-=a,UC({retryDelay:o,retryCount:e.getRetryCount()+1,retryCost:a})}throw new Error("No retry token available")})}recordSuccess(e){this.capacity=Math.max(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}getMaxAttempts(){return p(this,null,function*(){try{return yield this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${jo}`),jo}})}shouldRetry(e,t,n){return e.getRetryCount()+1<n&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return e==="TRANSIENT"?10:5}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}};var Ff=class{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=Fs.ADAPTIVE;constructor(e,t){this.maxAttemptsProvider=e;let{rateLimiter:n}=t??{};this.rateLimiter=n??new Hf,this.standardRetryStrategy=new sc(e)}acquireInitialRetryToken(e){return p(this,null,function*(){return yield this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)})}refreshRetryTokenForRetry(e,t){return p(this,null,function*(){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)})}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}};var Jk=r=>r instanceof Error?r:r instanceof Object?Object.assign(new Error,r):typeof r=="string"?new Error(r):new Error(`AWS SDK error wrapper for ${r}`);var Zk=r=>{let{retryStrategy:e,retryMode:t,maxAttempts:n}=r,i=nr(n??jo);return Object.assign(r,{maxAttempts:i,retryStrategy:()=>p(null,null,function*(){return e||((yield nr(t)())===Fs.ADAPTIVE?new Ff(i):new sc(i))})})};var eO=r=>r?.body instanceof ReadableStream;var Z5=r=>(e,t)=>n=>p(null,null,function*(){let i=yield r.retryStrategy(),s=yield r.maxAttempts();if(eG(i)){i=i;let o=yield i.acquireInitialRetryToken(t.partition_id),a=new Error,c=0,l=0,{request:d}=n,u=Ne.isInstance(d);for(u&&(d.headers[Vk]=zo());;)try{u&&(d.headers[Xk]=`attempt=${c+1}; max=${s}`);let{response:h,output:g}=yield e(n);return i.recordSuccess(o),g.$metadata.attempts=c+1,g.$metadata.totalRetryDelay=l,{response:h,output:g}}catch(h){let g=tG(h);if(a=Jk(h),u&&eO(d))throw(t.logger instanceof Us?console:t.logger)?.warn("An error was encountered in a non-retryable streaming request."),a;try{o=yield i.refreshRetryTokenForRetry(o,g)}catch{throw a.$metadata||(a.$metadata={}),a.$metadata.attempts=c+1,a.$metadata.totalRetryDelay=l,a}c=o.getRetryCount();let y=o.getRetryDelay();l+=y,yield new Promise(S=>setTimeout(S,y))}}else return i=i,i?.mode&&(t.userAgent=[...t.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(e,n)}),eG=r=>typeof r.acquireInitialRetryToken<"u"&&typeof r.refreshRetryTokenForRetry<"u"&&typeof r.recordSuccess<"u",tG=r=>{let e={error:r,errorType:rG(r)},t=iG(r.$response);return t&&(e.retryAfterHint=t),e},rG=r=>Uf(r)?"THROTTLING":qf(r)?"TRANSIENT":Wk(r)?"SERVER_ERROR":"CLIENT_ERROR",nG={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},tO=r=>({applyToStack:e=>{e.add(Z5(r),nG)}}),iG=r=>{if(!br.isInstance(r))return;let e=Object.keys(r.headers).find(s=>s.toLowerCase()==="retry-after");if(!e)return;let t=r.headers[e],n=Number(t);return Number.isNaN(n)?new Date(t):new Date(n*1e3)};var ym={CrtSignerV4:null};var oc=class{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof ym.CrtSignerV4=="function"?"crt":typeof aC.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new gm(e),this.signerOptions=e}sign(n){return p(this,arguments,function*(e,t={}
44){return t.signingRegion==="*"?this.getSigv4aSigner().sign(e,t):this.sigv4Signer.sign(e,t)})}signWithCredentials(i,s){return p(this,arguments,function*(e,t,n={}){if(n.signingRegion==="*"){let o=this.getSigv4aSigner(),a=ym.CrtSignerV4;if(a&&o instanceof a)return o.signWithCredentials(e,t,n);throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,n)})}presign(n){return p(this,arguments,function*(e,t={}){if(t.signingRegion==="*"){let i=this.getSigv4aSigner(),s=ym.CrtSignerV4;if(s&&i instanceof s)return i.presign(e,t);throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)})}presignWithCredentials(i,s){return p(this,arguments,function*(e,t,n={}){if(n.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,t,n)})}getSigv4aSigner(){if(!this.sigv4aSigner){let e=ym.CrtSignerV4,t=aC.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!t)throw new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e=="function")this.sigv4aSigner=new e(E(x({},this.signerOptions),{signingAlgorithm:1}));else if(t&&typeof t=="function")this.sigv4aSigner=new t(x({},this.signerOptions));else throw new Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!t||typeof t!="function")throw new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new t(x({},this.signerOptions))}}return this.sigv4aSigner}};var qC=(r,e=!1)=>{if(e){for(let t of r.split("."))if(!qC(t))return!1;return!0}return!(!as(r)||r.length<3||r.length>63||r!==r.toLowerCase()||Hs(r))};var rO=":",sG="/",nO=r=>{let e=r.split(rO);if(e.length<6)return null;let[t,n,i,s,o,...a]=e;if(t!=="arn"||n===""||i===""||a.join(rO)==="")return null;let c=a.map(l=>l.split(sG)).flat();return{partition:n,service:i,region:s,accountId:o,resourceId:c}};var iO={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supp
44ortsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"};var aG=iO;var sO=r=>{let{partitions:e}=aG;for(let n of e){let{regions:i,outputs:s}=n;for(let[o,a]of Object.entries(i))if(o===r)return x(x({},s),a)}for(let n of e){let{regionRegex:i,outputs:s}=n;if(new RegExp(i).test(r))return x({},s)}let t=e.find(n=>n.id==="aws");if(!t)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return x({},t.outputs)};var HC={isVirtualHostableS3Bucket:qC,parseArn:nO,partition:sO};cs.aws=HC;var pE="required",b="type",_="rules",P="conditions",w="fn",R="argv",Q="ref",de="assign",q="url",H="properties",ms="backend",$t="authSchemes",Et="disableDoubleEncoding",Nt="signingName",Qt="signingRegion",F="headers",fE="signingRegionSet";var en="isSet",xt="booleanEquals",V="error",Vf="aws.partition",Ae="stringEquals",at="getAttr",ct="name",We="substring",oO="bucketSuffix",hE="parseURL",B="endpoint",A="tree",Xf="aws.isVirtualHostableS3Bucket",Qf="{url#scheme}://{Bucket}.{url#authority}{url#path}",Ii="not",aO="accessPointSuffix",Wf="{url#scheme}://{url#authority}{url#path}",hD="hardwareType",gD="regionPrefix",cO="bucketAliasSuffix",dE="outpostId",Go="isValidHostLabel",gE="sigv4a",Nm="s3-outposts",mc="s3",yD="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",xD="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",lO="https://{Bucket}.s3.{partitionResult#dnsSuffix}",bD="aws.parseArn",SD="bucketArn",PD="arnType",Yf="",yE="s3-object-lambda",CD="accesspoint",xE="accessPointName",mO="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",dO="mrapPartition",uO="outpostType",pO="arnPrefix",ED="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",fO="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",hO="https://s3.{partitionResult#dnsSuffix}",ac={[pE]:!1,[b]:"string"},cc={[pE]:!0,default:!1,[b]:"boolean"},xm={[pE]:!1,[b]:"boolean"},Sn={[w]:xt,[R]:[{[Q]:"Accelerate"},!0]},Qe={[w]:xt,[R]:[{[Q]:"UseFIPS"}
44,!0]},Ge={[w]:xt,[R]:[{[Q]:"UseDualStack"},!0]},yt={[w]:en,[R]:[{[Q]:"Endpoint"}]},ND={[w]:Vf,[R]:[{[Q]:"Region"}],[de]:"partitionResult"},gO={[w]:Ae,[R]:[{[w]:at,[R]:[{[Q]:"partitionResult"},ct]},"aws-cn"]},Sm={[w]:en,[R]:[{[Q]:"Bucket"}]},ve={[Q]:"Bucket"},yO={[P]:[Sn],[V]:"S3Express does not support S3 Accelerate.",[b]:V},xO={[P]:[yt,{[w]:hE,[R]:[{[Q]:"Endpoint"}],[de]:"url"}],[_]:[{[P]:[{[w]:en,[R]:[{[Q]:"DisableS3ExpressSessionAuth"}]},{[w]:xt,[R]:[{[Q]:"DisableS3ExpressSessionAuth"},!0]}],[_]:[{[P]:[{[w]:xt,[R]:[{[w]:at,[R]:[{[Q]:"url"},"isIp"]},!0]}],[_]:[{[P]:[{[w]:"uriEncode",[R]:[ve],[de]:"uri_encoded_bucket"}],[_]:[{[B]:{[q]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[H]:{[ms]:"S3Express",[$t]:[{[Et]:!0,[ct]:"sigv4",[Nt]:"s3express",[Qt]:"{Region}"}]},[F]:{}},[b]:B}],[b]:A}],[b]:A},{[P]:[{[w]:Xf,[R]:[ve,!1]}],[_]:[{[B]:{[q]:Qf,[H]:{[ms]:"S3Express",[$t]:[{[Et]:!0,[ct]:"sigv4",[Nt]:"s3express",[Qt]:"{Region}"}]},[F]:{}},[b]:B}],[b]:A},{[V]:"S3Express bucket name is not a valid virtual hostable name.",[b]:V}],[b]:A},{[P]:[{[w]:xt,[R]:[{[w]:at,[R]:[{[Q]:"url"},"isIp"]},!0]}],[_]:[{[P]:[{[w]:"uriEncode",[R]:[ve],[de]:"uri_encoded_bucket"}],[_]:[{[B]:{[q]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[H]:{[ms]:"S3Express",[$t]:[{[Et]:!0,[ct]:"sigv4-s3express",[Nt]:"s3express",[Qt]:"{Region}"}]},[F]:{}},[b]:B}],[b]:A}],[b]:A},{[P]:[{[w]:Xf,[R]:[ve,!1]}],[_]:[{[B]:{[q]:Qf,[H]:{[ms]:"S3Express",[$t]:[{[Et]:!0,[ct]:"sigv4-s3express",[Nt]:"s3express",[Qt]:"{Region}"}]},[F]:{}},[b]:B}],[b]:A},{[V]:"S3Express bucket name is not a valid virtual hostable name.",[b]:V}],[b]:A},Cr={[w]:hE,[R]:[{[Q]:"Endpoint"}],[de]:"url"},FC={[w]:xt,[R]:[{[w]:at,[R]:[{[Q]:"url"},"isIp"]},!0]},wD={[Q]:"url"},RD={[w]:"uriEncode",[R]:[ve],[de]:"uri_encoded_bucket"},Zr={[ms]:"S3Express",[$t]:[{[Et]:!0,[ct]:"sigv4",[Nt]:"s3express",[Qt]:"{Region}"}]},se={},vD={[w]:Xf,[R]:[ve,!1]},bO={[V]:"S3Express bucket name is not a valid virtual hostable name.",[b]:V},SO={[w]:en,[R]:[{[Q]:"UseS3ExpressControlEndpoint"}]},PO={[w]:xt,[R]:[{[Q]:"UseS3ExpressControlEndpoint"},!0]},ce={[w]:Ii,[R]:[yt]},Pe={[w]:xt,[R]:[{[Q]:"UseDualStack"},!1]},fe={[w]:xt,[R]:[{[Q]:"UseFIPS"},!1]},$f={[V]:"Unrecognized S3Express bucket name format.",[b]:V},CO={[w]:Ii,[R]:[Sm]},EO={[Q]:hD},NO={[P]:[ce],[V]:"Expected a endpoint to be specified but no endpoint was found",[b]:V},jf={[$t]:[{[Et]:!0,[ct]:gE,[Nt]:Nm,[fE]:["*"]},{[Et]:!0,[ct]:"sigv4",[Nt]:Nm,[Qt]:"{Region}"}]},$C={[w]:xt,[R]:[{[Q]:"ForcePathStyle"},!1]},cG={[Q]:"ForcePathStyle"},Ct={[w]:xt,[R]:[{[Q]:"Accelerate"},!1]},It={[w]:Ae,[R]:[{[Q]:"Region"},"aws-global"]},qt={[$t]:[{[Et]:!0,[ct]:"sigv4",[Nt]:mc,[Qt]:"us-east-1"}]},we={[w]:Ii,[R]:[It]},Ht={[w]:xt,[R]:[{[Q]:"UseGlobalEndpoint"},!0]},wO={[q]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[H]:{[$t]:[{[Et]:!0,[ct]:"sigv4",[Nt]:mc,[Qt]:"{Region}"}]},[F]:{}},wt={[$t]:[{[Et]:!0,[ct]:"sigv4",[Nt]:mc,[Qt]:"{Region}"}]},Ft={[w]:xt,[R]:[{[Q]:"UseGlobalEndpoint"},!1]},RO={[q]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[H]:wt,[F]:{}},vO={[q]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[H]:wt,[F]:{}},TO={[q]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[H]:wt,[F]:{}},jC={[w]:xt,[R]:[{[w]:at,[R]:[wD,"isIp"]},!1]},GC={[q]:yD,[H]:wt,[F]:{}},uE={[q]:Qf,[H]:wt,[F]:{}},_O={[B]:uE,[b]:B},KC={[q]:xD,[H]:wt,[F]:{}},AO={[q]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[H]:wt,[F]:{}},Gf={[V]:"Invalid region: region was not a valid DNS name.",[b]:V},qr={[Q]:SD},TD={[Q]:PD},WC={[w]:at,[R]:[qr,"service"]},bE={[Q]:xE},IO={[P]:[Ge],[V]:"S3 Object Lambda does not support Dual-stack",[b]:V},MO={[P]:[Sn],[V]:"S3 Object Lambda does not support S3 Accelerate",[b]:V},BO={[P]:[{[w]:en,[R]:[{[Q]:"DisableAccessPoints"}]},{[w]:xt,[R]:[{[Q]:"DisableAccessPoints"},!0]}],[V]:"Access points are not supported for this operation",[b]:V},VC={[P]:[{[w]:en,[R]:[{[Q]:"UseArnRegion"}]},{[w]:xt,[R]:[{[Q]:"UseArnRegion"},!1]},{[w]:Ii,[R]:[{[w]:Ae,[R]:[{[w]:at,[R]:[qr,"region"]},"{Region}"]}]}],[V]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[b]:V},_D={[w]:at,[R]:[{[Q]:"bucketPartition"},ct]},AD={[w]:at,[R]:[qr,"accountId"]},XC={[$t]:[{[Et]:!0,[ct]:"sigv4",[Nt]:yE,[Qt]:"{bucketArn#region}"}]},kO={[V]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[b]:V},QC={[V]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[b]:V},YC={[V]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[b]:V},JC={[V]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[b]:V},OO={[V]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[b]:V},DO={[V]:"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided",[b]:V},bm={[$t]:[{[Et]:!0,[ct]:"sigv4",[Nt]:mc,[Qt]:"{bucketArn#region}"}]},LO={[$t]:[{[Et]:!0,[ct]:gE,[Nt]:Nm,[fE]:["*"]},{[Et]:!0,[ct]:"sigv4",[Nt]:Nm,[Qt]:"{bucketArn#region}"}]},zO={[w]:bD,[R]:[ve]},UO={[q]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[H]:wt,[F]:{}},qO={[q]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[H]:wt,[F]:{}},HO={[q]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[H]:wt,[F]:{}},ZC={[q]:ED,[H]:wt,[F]:{}},FO={[q]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[H]:wt,[F]:{}},$O={[Q]:"UseObjectLambdaEndpoint"},eE={[$t]:[{[Et]:!0,[ct]:"sigv4",[Nt]:yE,[Qt]:"{Region}"}]},jO={[q]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[H]:wt,[F]:{}},GO={[q]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[H]:wt,[F]:{}},KO={[q]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[H]:wt,[F]:{}},tE={[q]:Wf,[H]:wt,[F]:{}},WO={[q]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[H]:wt,[F]:{}},rE=[{[Q]:"Region"}],lG=[{[Q]:"Endpoint"}],mG=[ve],nE=[Sn],lc=[yt,Cr],VO=[{[w]:en,[R]:[{[Q]:"DisableS3ExpressSessionAuth"}]},{[w]:xt,[R]:[{[Q]:"DisableS3ExpressSessionAuth"},!0]}],dG=[RD],iE=[vD],bn=[ND],sE=[Qe,Ge],Pm=[Qe,Pe],Cm=[fe,Ge],Em=[fe,Pe],XO=[{[w]:We,[R]:[ve,6,14,!0],[de]:"s3expressAvailabilityZoneId"},{[w]:We,[R]:[ve,14,16,!0],[de]:"s3expressAvailabilityZoneDelim"},{[w]:Ae,[R]:[{[Q]:"s3expressAvailabilityZoneDelim"}
44,"--"]}],_i=[{[P]:[Qe,Ge],[B]:{[q]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[H]:Zr,[F]:{}},[b]:B},{[P]:Pm,[B]:{[q]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[H]:Zr,[F]:{}},[b]:B},{[P]:Cm,[B]:{[q]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[H]:Zr,[F]:{}},[b]:B},{[P]:Em,[B]:{[q]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[H]:Zr,[F]:{}},[b]:B}],QO=[{[w]:We,[R]:[ve,6,15,!0],[de]:"s3expressAvailabilityZoneId"},{[w]:We,[R]:[ve,15,17,!0],[de]:"s3expressAvailabilityZoneDelim"},{[w]:Ae,[R]:[{[Q]:"s3expressAvailabilityZoneDelim"},"--"]}],YO=[{[w]:We,[R]:[ve,6,19,!0],[de]:"s3expressAvailabilityZoneId"},{[w]:We,[R]:[ve,19,21,!0],[de]:"s3expressAvailabilityZoneDelim"},{[w]:Ae,[R]:[{[Q]:"s3expressAvailabilityZoneDelim"},"--"]}],JO=[{[w]:We,[R]:[ve,6,20,!0],[de]:"s3expressAvailabilityZoneId"},{[w]:We,[R]:[ve,20,22,!0],[de]:"s3expressAvailabilityZoneDelim"},{[w]:Ae,[R]:[{[Q]:"s3expressAvailabilityZoneDelim"},"--"]}],ZO=[{[w]:We,[R]:[ve,6,26,!0],[de]:"s3expressAvailabilityZoneId"},{[w]:We,[R]:[ve,26,28,!0],[de]:"s3expressAvailabilityZoneDelim"},{[w]:Ae,[R]:[{[Q]:"s3expressAvailabilityZoneDelim"},"--"]}],Ai=[{[P]:[Qe,Ge],[B]:{[q]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[H]:{[ms]:"S3Express",[$t]:[{[Et]:!0,[ct]:"sigv4-s3express",[Nt]:"s3express",[Qt]:"{Region}"}]},[F]:{}},[b]:B},{[P]:Pm,[B]:{[q]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[H]:{[ms]:"S3Express",[$t]:[{[Et]:!0,[ct]:"sigv4-s3express",[Nt]:"s3express",[Qt]:"{Region}"}]},[F]:{}},[b]:B},{[P]:Cm,[B]:{[q]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[H]:{[ms]:"S3Express",[$t]:[{[Et]:!0,[ct]:"sigv4-s3express",[Nt]:"s3express",[Qt]:"{Region}"}]},[F]:{}},[b]:B},{[P]:Em,[B]:{[q]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[H]:{[ms]:"S3Express",[$t]:[{[Et]:!0,[ct]:"sigv4-s3express",[Nt]:"s3express",[Qt]:"{Region}"}]},[F]:{}},[b]:B}],eD=[ve,0,7,!0],tD=[{[w]:We,[R]:[ve,7,15,!0],[de]:"s3expressAvailabilityZoneId"},{[w]:We,[R]:[ve,15,17,!0],[de]:"s3expressAvailabilityZoneDelim"},{[w]:Ae,[R]:[{[Q]:"s3expressAvailabilityZoneDelim"},"--"]}],rD=[{[w]:We,[R]:[ve,7,16,!0],[de]:"s3expressAvailabilityZoneId"}
44,{[w]:We,[R]:[ve,16,18,!0],[de]:"s3expressAvailabilityZoneDelim"},{[w]:Ae,[R]:[{[Q]:"s3expressAvailabilityZoneDelim"},"--"]}],nD=[{[w]:We,[R]:[ve,7,20,!0],[de]:"s3expressAvailabilityZoneId"},{[w]:We,[R]:[ve,20,22,!0],[de]:"s3expressAvailabilityZoneDelim"},{[w]:Ae,[R]:[{[Q]:"s3expressAvailabilityZoneDelim"},"--"]}],iD=[{[w]:We,[R]:[ve,7,21,!0],[de]:"s3expressAvailabilityZoneId"},{[w]:We,[R]:[ve,21,23,!0],[de]:"s3expressAvailabilityZoneDelim"},{[w]:Ae,[R]:[{[Q]:"s3expressAvailabilityZoneDelim"},"--"]}],sD=[{[w]:We,[R]:[ve,7,27,!0],[de]:"s3expressAvailabilityZoneId"},{[w]:We,[R]:[ve,27,29,!0],[de]:"s3expressAvailabilityZoneDelim"},{[w]:Ae,[R]:[{[Q]:"s3expressAvailabilityZoneDelim"},"--"]}],uG=[Sm],oD=[{[w]:Go,[R]:[{[Q]:dE},!1]}],aD=[{[w]:Ae,[R]:[{[Q]:gD},"beta"]}],pG=["*"],cD=[{[w]:Go,[R]:[{[Q]:"Region"},!1]}],$s=[{[w]:Ae,[R]:[{[Q]:"Region"},"us-east-1"]}],oE=[{[w]:Ae,[R]:[TD,CD]}],lD=[{[w]:at,[R]:[qr,"resourceId[1]"],[de]:xE},{[w]:Ii,[R]:[{[w]:Ae,[R]:[bE,Yf]}]}],fG=[qr,"resourceId[1]"],mD=[Ge],aE=[{[w]:Ii,[R]:[{[w]:Ae,[R]:[{[w]:at,[R]:[qr,"region"]},Yf]}]}],dD=[{[w]:Ii,[R]:[{[w]:en,[R]:[{[w]:at,[R]:[qr,"resourceId[2]"]}]}]}],hG=[qr,"resourceId[2]"],cE=[{[w]:Vf,[R]:[{[w]:at,[R]:[qr,"region"]}],[de]:"bucketPartition"}],uD=[{[w]:Ae,[R]:[_D,{[w]:at,[R]:[{[Q]:"partitionResult"},ct]}]}],lE=[{[w]:Go,[R]:[{[w]:at,[R]:[qr,"region"]},!0]}],mE=[{[w]:Go,[R]:[AD,!1]}],pD=[{[w]:Go,[R]:[bE,!1]}],Kf=[Qe],fD=[{[w]:Go,[R]:[{[Q]:"Region"},!0]}],gG={version:"1.0",parameters:{Bucket:ac,Region:ac,UseFIPS:cc,UseDualStack:cc,Endpoint:ac,ForcePathStyle:cc,Accelerate:cc,UseGlobalEndpoint:cc,UseObjectLambdaEndpoint:xm,Key:ac,Prefix:ac,CopySource:ac,DisableAccessPoints:xm,DisableMultiRegionAccessPoints:cc,UseArnRegion:xm,UseS3ExpressControlEndpoint:xm,DisableS3ExpressSessionAuth:xm},[_]:[{[P]:[{[w]:en,[R]:rE}],[_]:[{[P]:[Sn,Qe],error:"Accelerate cannot be used with FIPS",[b]:V},{[P]:[Ge,yt],error:"Cannot set dual-stack in combination with a custom endpoint.",[b]:V},{[P]:[yt,Qe],error:"A custom endpoint cannot be combined with FIPS",[b]:V},{[P]:[yt,Sn],error:"A custom endpoint cannot be combined with S3 Accelerate",[b]:V},{[P]:[Qe,ND,gO],error:"Partition does not support FIPS",[b]:V},{[P]:[Sm,{[w]:We,[R]:[ve,0,6,!0],[de]:oO},{[w]:Ae,[R]:[{[Q]:oO},"--x-s3"]}],[_]:[yO,xO,{[P]:[SO,PO],[_]:[{[P]:bn,[_]:[{[P]:[RD,ce],[_]:[{[P]:sE,endpoint:{[q]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[H]:Zr,[F]:se},[b]:B},{[P]:Pm,endpoint:{[q]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[H]:Zr,[F]:se},[b]:B},{[P]:Cm,endpoint:{[q]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[H]:Zr,[F]:se},[b]:B},{[P]:Em,endpoint:{[q]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[H]:Zr,[F]:se},[b]:B}],[b]:A}],[b]:A}],[b]:A},{[P]:iE,[_]:[{[P]:bn,[_]:[{[P]:VO,[_]:[{[P]:XO,[_]:_i,[b]:A},{[P]:QO,[_]:_i,[b]:A},{[P]:YO,[_]:_i,[b]:A},{[P]:JO,[_]:_i,[b]:A},{[P]:ZO,[_]:_i,[b]:A},$f],[b]:A},{[P]:XO,[_]:Ai,[b]:A},{[P]:QO,[_]:Ai,[b]:A},{[P]:YO,[_]:Ai,[b]:A},{[P]:JO,[_]:Ai,[b]:A},{[P]:ZO,[_]:Ai,[b]:A},$f],[b]:A}],[b]:A},bO],[b]:A},{[P]:[Sm,{[w]:We,[R]:eD,[de]:aO},{[w]:Ae,[R]:[{[Q]:aO},"--xa-s3"]}],[_]:[yO,xO,{[P]:iE,[_]:[{[P]:bn,[_]:[{[P]:VO,[_]:[{[P]:tD,[_]:_i,[b]:A},{[P]:rD,[_]:_i,[b]:A},{[P]:nD,[_]:_i,[b]:A},{[P]:iD,[_]:_i,[b]:A},{[P]:sD,[_]:_i,[b]:A},$f],[b]:A},{[P]:tD,[_]:Ai,[b]:A},{[P]:rD,[_]:Ai,[b]:A},{[P]:nD,[_]:Ai,[b]:A},{[P]:iD,[_]:Ai,[b]:A},{[P]:sD,[_]:Ai,[b]:A},$f],[b]:A}],[b]:A},bO],[b]:A},{[P]:[CO,SO,PO],[_]:[{[P]:bn,[_]:[{[P]:lc,endpoint:{[q]:Wf,[H]:Zr,[F]:se},[b]:B},{[P]:sE,endpoint:{[q]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[H]:Zr,[F]:se},[b]:B},{[P]:Pm,endpoint:{[q]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}",[H]:Zr,[F]:se},[b]:B},{[P]:Cm,endpoint:{[q]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}",[H]:Zr,[F]:se},[b]:B},{[P]:Em,endpoint:{[q]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}",[H]:Zr,[F]:se},[b]:B}],[b]:A}],[b]:A},{[P]:[Sm,{[w]:We,[R]:[ve,49,50,!0],[de]:hD},{[w]:We,[R]:[ve,8,12,!0],[de]:gD},{[w]:We,[R]:eD,[de]:cO},{[w]:We,[R]:[ve,32,49,!0],[de]:dE},{[w]:Vf,[R]:rE,[de]:"regionPartition"},{[w]:Ae,[R]:[{[Q]:cO},"--op-s3"]}],[_]:[{[P]:oD,[_]:[{[P]:iE,[_]:[{[P]:[{[w]:Ae,[R]:[EO,"e"]}],[_]:[{[P]:aD,[_]:[NO,{[P]:lc,endpoint:{[q]:"https://{Bucket}.ec2.{url#authority}",[H]:jf,[F]:se},[b]:B}],[b]:A},{endpoint:{[q]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[H]:jf,[F]:se},[b]:B}],[b]:A},{[P]:[{[w]:Ae,[R]:[EO,"o"]}],[_]:[{[P]:aD,[_]:[NO,{[P]:lc,endpoint:{[q]:"https://{Bucket}.op-{outpostId}.{url#authority}",[H]:jf,[F]:se},[b]:B}],[b]:A},{endpoint:{[q]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[H]:jf,[F]:se},[b]:B}],[b]:A},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[b]:V}],[b]:A},{error:"Invalid Outposts Bucket alias - it must be a valid bucket name.",[b]:V}],[b]:A},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[b]:V}],[b]:A},{[P]:uG,[_]:[{[P]:[yt,{[w]:Ii,[R]:[{[w]:en,[R]:[{[w]:hE,[R]:lG}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[b]:V},{[P]:[$C,vD],[_]:[{[P]:bn,[_]:[{[P]:cD,[_]:[{[P]:[Sn,gO],error:"S3 Accelerate cannot be used in this region",[b]:V},{[P]:[Ge,Qe,Ct,ce,It],endpoint:{[q]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[H]:qt,[F]:se},[b]:B},{[P]:[Ge,Qe,Ct,ce,we,Ht],[_]:[{endpoint:wO,[b]:B}],[b]:A},{[P]:[Ge,Qe,Ct,ce,we,Ft],endpoint:wO,[b]:B},{[P]:[Pe,Qe,Ct,ce,It],endpoint:{[q]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[H]:qt,[F]:se},[b]:B},{[P]:[Pe,Qe,Ct,ce,we,Ht],[_]:[{endpoint:RO,[b]:B}],[b]:A},{[P]:[Pe,Qe,Ct,ce,we,Ft],endpoint:RO,[b]:B},{[P]:[Ge,fe,Sn,ce,It],endpoint:{[q]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[H]:qt,[F]:se},[b]:B},{[P]:[Ge,fe,Sn,ce,we,Ht],[_]:[{endpoint:vO,[b]:B}],[b]:A},{[P]:[Ge,fe,Sn,ce,we,Ft],endpoint:vO,[b]:B},{[P]:[Ge,fe,Ct,ce,It],endpoint:{[q]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[H]:qt,[F]:se},[b]:B},{[P]:[Ge,fe,Ct,ce,we,Ht],[_]:[{endpoint:TO,[b]:B}],[b]:A},{[P]:[Ge,fe,Ct,ce,we,Ft],endpoint:TO,[b]:B},{[P]:[Pe,fe,Ct,yt,Cr,FC,It],endpoint:{[q]:yD,[H]:qt,[F]:se},[b]:B},{[P]:[Pe,fe,Ct,yt,Cr,jC,It],endpoint:{[q]:Qf,[H]:qt,[F]:se},[b]:B},{[P]:[Pe,fe,Ct,yt,Cr,FC,we,Ht],[_]:[{[P]:$s,endpoint:GC,[b]:B},{endpoint:GC,[b]:B}],[b]:A},{[P]:[Pe,fe,Ct,yt,Cr,jC,we,Ht],[_]:[{[P]:$s,endpoint:uE,[b]:B},_O],[b]:A},{[P]:[Pe,fe,Ct,yt,Cr,FC,we,Ft],endpoint:GC,[b]:B},{[P]:[Pe,fe,Ct,yt,Cr,jC,we,Ft],endpoint:uE,[b]:B},{[P]:[Pe,fe,Sn,ce,It],endpoint:{[q]:xD,[H]:qt,[F]:se},[b]:B},{[P]:[Pe,fe,Sn,ce,we,Ht],[_]:[{[P]:$s,endpoint:KC,[b]:B},{endpoint:KC,[b]:B}],[b]:A},{[P]:[Pe,fe,Sn,ce,we,Ft],endpoint:KC,[b]:B},{[P]:[Pe,fe,Ct,ce,It],endpoint:{[q]:lO,[H]:qt,[F]:se},[b]:B},{[P]:[Pe,fe,Ct,ce,we,Ht],[_]:[{[P]:$s,endpoint:{[q]:lO,[H]:wt,[F]:se},[b]:B},{endpoint:AO,[b]:B}],[b]:A},{[P]:[Pe,fe,Ct,ce,we,Ft],endpoint:AO,[b]:B}],[b]:A},Gf],[b]:A}],[b]:A},{[P]:[yt,Cr,{[w]:Ae,[R]:[{[w]:at,[R]:[wD,"scheme"]},"http"]},{[w]:Xf,[R]:[ve,!0]},$C,fe,Pe,Ct],[_]:[{[P]:bn,[_]:[{[P]:cD,[_]:[_O],[b]:A},Gf],[b]:A}],[b]:A},{[P]:[$C,{[w]:bD,[R]:mG,[de]:SD}],[_]:[{[P]:[{[w]:at,[R]:[qr,"resourceId[0]"],[de]:PD},{[w]:Ii,[R]:[{[w]:Ae,[R]:[TD,Yf]}]}],[_]:[{[P]:[{[w]:Ae,[R]:[WC,yE]}],[_]:[{[P]:oE,[_]:[{[P]:lD,[_]:[IO,MO,{[P]:aE,[_]:[BO,{[P]:dD,[_]:[VC,{[P]:cE,[_]:[{[P]:bn,[_]:[{[P]:uD,[_]:[{[P]:lE,[_]:[{[P]:[{[w]:Ae,[R]:[AD,Yf]}],error:"Invalid ARN: Missing account id",[b]:V},{[P]:mE,[_]:[{[P]:pD,[_]:[{[P]:lc,endpoint:{[q]:mO,[H]:XC,[F]:se},[b]:B},{[P]:Kf,endpoint:{[q]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[H]:XC,[F]:se},[b]:B},{endpoint:{[q]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[H]:XC,[F]:se},[b]:B}],[b]:A},kO],[b]:A},QC],[b]:A},YC],[b]:A},JC],[b]:A}],[b]:A}],[b]:A},OO],[b]:A}
44,{error:"Invalid ARN: bucket ARN is missing a region",[b]:V}],[b]:A},DO],[b]:A},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[b]:V}],[b]:A},{[P]:oE,[_]:[{[P]:lD,[_]:[{[P]:aE,[_]:[{[P]:oE,[_]:[{[P]:aE,[_]:[BO,{[P]:dD,[_]:[VC,{[P]:cE,[_]:[{[P]:bn,[_]:[{[P]:[{[w]:Ae,[R]:[_D,"{partitionResult#name}"]}],[_]:[{[P]:lE,[_]:[{[P]:[{[w]:Ae,[R]:[WC,mc]}],[_]:[{[P]:mE,[_]:[{[P]:pD,[_]:[{[P]:nE,error:"Access Points do not support S3 Accelerate",[b]:V},{[P]:sE,endpoint:{[q]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[H]:bm,[F]:se},[b]:B},{[P]:Pm,endpoint:{[q]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[H]:bm,[F]:se},[b]:B},{[P]:Cm,endpoint:{[q]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[H]:bm,[F]:se},[b]:B},{[P]:[fe,Pe,yt,Cr],endpoint:{[q]:mO,[H]:bm,[F]:se},[b]:B},{[P]:Em,endpoint:{[q]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[H]:bm,[F]:se},[b]:B}],[b]:A},kO],[b]:A},QC],[b]:A},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[b]:V}],[b]:A},YC],[b]:A},JC],[b]:A}],[b]:A}],[b]:A},OO],[b]:A}],[b]:A}],[b]:A},{[P]:[{[w]:Go,[R]:[bE,!0]}],[_]:[{[P]:mD,error:"S3 MRAP does not support dual-stack",[b]:V},{[P]:Kf,error:"S3 MRAP does not support FIPS",[b]:V},{[P]:nE,error:"S3 MRAP does not support S3 Accelerate",[b]:V},{[P]:[{[w]:xt,[R]:[{[Q]:"DisableMultiRegionAccessPoints"},!0]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[b]:V},{[P]:[{[w]:Vf,[R]:rE,[de]:dO}],[_]:[{[P]:[{[w]:Ae,[R]:[{[w]:at,[R]:[{[Q]:dO},ct]},{[w]:at,[R]:[qr,"partition"]}]}],[_]:[{endpoint:{[q]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[H]:{[$t]:[{[Et]:!0,name:gE,[Nt]:mc,[fE]:pG}]},[F]:se},[b]:B}],[b]:A},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[b]:V}],[b]:A}],[b]:A},{error:"Invalid Access Point Name",[b]:V}],[b]:A},DO],[b]:A},{[P]:[{[w]:Ae,[R]:[WC,Nm]}],[_]:[{[P]:mD,error:"S3 Outposts does not support Dual-stack",[b]:V},{[P]:Kf,error:"S3 Outposts does not support FIPS",[b]:V},{[P]:nE,error:"S3 Outposts does not support S3 Accelerate",[b]:V},{[P]:[{[w]:en,[R]:[{[w]:at,[R]:[qr,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[b]:V},{[P]:[{[w]:at,[R]:fG,[de]:dE}],[_]:[{[P]:oD,[_]:[VC,{[P]:cE,[_]:[{[P]:bn,[_]:[{[P]:uD,[_]:[{[P]:lE,[_]:[{[P]:mE,[_]:[{[P]:[{[w]:at,[R]:hG,[de]:uO}],[_]:[{[P]:[{[w]:at,[R]:[qr,"resourceId[3]"],[de]:xE}],[_]:[{[P]:[{[w]:Ae,[R]:[{[Q]:uO},CD]}],[_]:[{[P]:lc,endpoint:{[q]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[H]:LO,[F]:se},[b]:B},{endpoint:{[q]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[H]:LO,[F]:se},[b]:B}],[b]:A},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[b]:V}],[b]:A},{error:"Invalid ARN: expected an access point name",[b]:V}],[b]:A},{error:"Invalid ARN: Expected a 4-component resource",[b]:V}],[b]:A},QC],[b]:A},YC],[b]:A},JC],[b]:A}],[b]:A}],[b]:A},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[b]:V}],[b]:A},{error:"Invalid ARN: The Outpost Id was not set",[b]:V}],[b]:A},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[b]:V}],[b]:A},{error:"Invalid ARN: No ARN type specified",[b]:V}],[b]:A},{[P]:[{[w]:We,[R]:[ve,0,4,!1],[de]:pO},{[w]:Ae,[R]:[{[Q]:pO},"arn:"]},{[w]:Ii,[R]:[{[w]:en,[R]:[zO]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[b]:V},{[P]:[{[w]:xt,[R]:[cG,!0]},zO],error:"Path-style addressing cannot be used with ARN buckets",[b]:V},{[P]:dG,[_]:[{[P]:bn,[_]:[{[P]:[Ct],[_]:[{[P]:[Ge,ce,Qe,It],endpoint:{[q]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[H]:qt,[F]:se},[b]:B},{[P]:[Ge,ce,Qe,we,Ht],[_]:[{endpoint:UO,[b]:B}],[b]:A},{[P]:[Ge,ce,Qe,we,Ft],endpoint:UO,[b]:B},{[P]:[Pe,ce,Qe,It],endpoint:{[q]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[H]:qt,[F]:se},[b]:B},{[P]:[Pe,ce,Qe,we,Ht],[_]:[{endpoint:qO,[b]:B}],[b]:A},{[P]:[Pe,ce,Qe,we,Ft],endpoint:qO,[b]:B},{[P]:[Ge,ce,fe,It],endpoint:{[q]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[H]:qt,[F]:se},[b]:B},{[P]:[Ge,ce,fe,we,Ht],[_]:[{endpoint:HO,[b]:B}],[b]:A},{[P]:[Ge,ce,fe,we,Ft],endpoint:HO,[b]:B},{[P]:[Pe,yt,Cr,fe,It],endpoint:{[q]:ED,[H]:qt,[F]:se},[b]:B},{[P]:[Pe,yt,Cr,fe,we,Ht],[_]:[{[P]:$s,endpoint:ZC,[b]:B},{endpoint:ZC,[b]:B}],[b]:A},{[P]:[Pe,yt,Cr,fe,we,Ft],endpoint:ZC,[b]:B},{[P]:[Pe,ce,fe,It],endpoint:{[q]:fO,[H]:qt,[F]:se},[b]:B},{[P]:[Pe,ce,fe,we,Ht],[_]:[{[P]:$s,endpoint:{[q]:fO,[H]:wt,[F]:se},[b]:B},{endpoint:FO,[b]:B}],[b]:A},{[P]:[Pe,ce,fe,we,Ft],endpoint:FO,[b]:B}],[b]:A},{error:"Path-style addressing cannot be used with S3 Accelerate",[b]:V}],[b]:A}],[b]:A}],[b]:A},{[P]:[{[w]:en,[R]:[$O]},{[w]:xt,[R]:[$O,!0]}],[_]:[{[P]:bn,[_]:[{[P]:fD,[_]:[IO,MO,{[P]:lc,endpoint:{[q]:Wf,[H]:eE,[F]:se},[b]:B},{[P]:Kf,endpoint:{[q]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[H]:eE,[F]:se},[b]:B},{endpoint:{[q]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[H]:eE,[F]:se},[b]:B}],[b]:A},Gf],[b]:A}],[b]:A},{[P]:[CO],[_]:[{[P]:bn,[_]:[{[P]:fD,[_]:[{[P]:[Qe,Ge,ce,It],endpoint:{[q]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[H]:qt,[F]:se},[b]:B},{[P]:[Qe,Ge,ce,we,Ht],[_]:[{endpoint:jO,[b]:B}],[b]:A},{[P]:[Qe,Ge,ce,we,Ft],endpoint:jO,[b]:B},{[P]:[Qe,Pe,ce,It],endpoint:{[q]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[H]:qt,[F]:se},[b]:B},{[P]:[Qe,Pe,ce,we,Ht],[_]:[{endpoint:GO,[b]:B}],[b]:A},{[P]:[Qe,Pe,ce,we,Ft],endpoint:GO,[b]:B},{[P]:[fe,Ge,ce,It],endpoint:{[q]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[H]:qt,[F]:se},[b]:B},{[P]:[fe,Ge,ce,we,Ht],[_]:[{endpoint:KO,[b]:B}],[b]:A},{[P]:[fe,Ge,ce,we,Ft],endpoint:KO,[b]:B},{[P]:[fe,Pe,yt,Cr,It],endpoint:{[q]:Wf,[H]:qt,[F]:se},[b]:B},{[P]:[fe,Pe,yt,Cr,we,Ht],[_]:[{[P]:$s,endpoint:tE,[b]:B},{endpoint:tE,[b]:B}],[b]:A},{[P]:[fe,Pe,yt,Cr,we,Ft],endpoint:tE,[b]:B}
44,{[P]:[fe,Pe,ce,It],endpoint:{[q]:hO,[H]:qt,[F]:se},[b]:B},{[P]:[fe,Pe,ce,we,Ht],[_]:[{[P]:$s,endpoint:{[q]:hO,[H]:wt,[F]:se},[b]:B},{endpoint:WO,[b]:B}],[b]:A},{[P]:[fe,Pe,ce,we,Ft],endpoint:WO,[b]:B}],[b]:A},Gf],[b]:A}],[b]:A}],[b]:A},{error:"A region must be set when sending requests to S3.",[b]:V}]},ID=gG;var yG=new _f({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),Jf=(r,e={})=>yG.get(r,()=>yk(ID,{endpointParams:r,logger:e.logger}));cs.aws=HC;var xG=r=>(e,t,n)=>p(null,null,function*(){if(!n)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=yield r(e,t,n),s=Sr(t)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!s)throw new Error(`getEndpointParameterInstructions() is not defined on '${t.commandName}'`);let o=yield LC(n,{getEndpointParameterInstructions:s},e);return Object.assign(i,o)}),bG=(r,e,t)=>p(null,null,function*(){return{operation:Sr(e).operation,region:(yield nr(r.region)())||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}}),MD=xG(bG);function BD(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:r.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function kD(r){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:r.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var SG=(r,e,t)=>i=>{let o=r(i).properties?.authSchemes;if(!o)return e(i);let a=[];for(let l of o){let c=l,{name:d,properties:u={}}=c,h=an(c,["name","properties"]),g=d.toLowerCase();d!==g&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${d}' to '${g}'`);let y;if(g==="sigv4a"){y="aws.auth#sigv4a";let N=o.find(T=>{let I=T.name.toLowerCase();return I!=="sigv4a"&&I.startsWith("sigv4")});if(oc.sigv4aDependency()==="none"&&N)continue}else if(g.startsWith("sigv4"))y="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${g}'`);let S=t[y];if(!S)throw new Error(`Could not find HttpAuthOption create function for '${y}'`);let C=S(i);C.schemeId=y,C.signingProperties=x(x(x({},C.signingProperties||{}),h),u),a.push(C)}return a},PG=r=>{let e=[];switch(r.operation){default:e.push(BD(r)),e.push(kD(r))}return e},OD=SG(Jf,PG,{"aws.auth#sigv4":BD,"aws.auth#sigv4a":kD}),DD=r=>{let e=YM(r),t=_M(e);return Object.assign(t,{authSchemePreference:nr(r.authSchemePreference??[])})};var LD=r=>Object.assign(r,{useFipsEndpoint:r.useFipsEndpoint??!1,useDualstackEndpoint:r.useDualstackEndpoint??!1,forcePathStyle:r.forcePathStyle??!1,useAccelerateEndpoint:r.useAccelerateEndpoint??!1,useGlobalEndpoint:r.useGlobalEndpoint??!1,disableMultiregionAccessPoints:r.disableMultiregionAccessPoints??!1,defaultSigningName:"s3",clientContextParams:r.clientContextParams??{}}),Hr={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"}};var Rt=class r extends gf{constructor(e){super(e),Object.setPrototypeOf(this,r.prototype)}};var Zf=class r extends Rt{name="NoSuchUpload";$fault="client";constructor(e){super(x({name:"NoSuchUpload",$fault:"client"},e)),Object.setPrototypeOf(this,r.prototype)}},eh=class r extends Rt{name="AccessDenied";$fault="client";constructor(e){super(x({name:"AccessDenied",$fault:"client"},e)),Object.setPrototypeOf(this,r.prototype)}},th=class r extends Rt{name="ObjectNotInActiveTierError";$fault="client";constructor(e){super(x({name:"ObjectNotInActiveTierError",$fault:"client"},e)),Object.setPrototypeOf(this,r.prototype)}},rh=class r extends Rt{name="BucketAlreadyExists";$fault="client";constructor(e){super(x({name:"BucketAlreadyExists",$fault:"client"},e)),Object.setPrototypeOf(this,r.prototype)}},nh=class r extends Rt{name="BucketAlreadyOwnedByYou";$fault="client";constructor(e){super(x({name:"BucketAlreadyOwnedByYou",$fault:"client"},e)),Object.setPrototypeOf(this,r.prototype)}},ih=class r extends Rt{name="NoSuchBucket";$fault="client";constructor(e){super(x({name:"NoSuchBucket",$fault:"client"},e)),Object.setPrototypeOf(this,r.prototype)}},sh=class r extends Rt{name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(e){super(x({name:"InvalidObjectState",$fault:"client"},e)),Object.setPrototypeOf(this,r.prototype),this.StorageClass=e.StorageClass,this.AccessTier=e.AccessTier}},oh=class r extends Rt{name="NoSuchKey";$fault="client";constructor(e){super(x({name:"NoSuchKey",$fault:"client"},e)),Object.setPrototypeOf(this,r.prototype)}},ah=class r extends Rt{name="NotFound";$fault="client";constructor(e){super(x({name:"NotFound",$fault:"client"},e)),Object.setPrototypeOf(this,r.prototype)}},ch=class r extends Rt{name="EncryptionTypeMismatch";$fault="client";constructor(e){super(x({name:"EncryptionTypeMismatch",$fault:"client"},e)),Object.setPrototypeOf(this,r.prototype)}},lh=class r extends Rt{name="InvalidRequest";$fault="client";constructor(e){super(x({name:"InvalidRequest",$fault:"client"},e)),Object.setPrototypeOf(this,r.prototype)}},mh=class r extends Rt{name="InvalidWriteOffset";$fault="client";constructor(e){super(x({name:"InvalidWriteOffset",$fault:"client"},e)),Object.setPrototypeOf(this,r.prototype)}},dh=class r extends Rt{name="TooManyParts";$fault="client";constructor(e){super(x({name:"TooManyParts",$fault:"client"},e)),Object.setPrototypeOf(this,r.prototype)}},uh=class r extends Rt{name="IdempotencyParameterMismatch";$fault="client";constructor(e){super(x({name:"IdempotencyParameterMismatch",$fault:"client"},e)),Object.setPrototypeOf(this,r.prototype)}},ph=class r extends Rt{name="ObjectAlreadyInActiveTierError";$fault="client";constructor(e){super(x({name:"ObjectAlreadyInActiveTierError",$fault:"client"},e)),Object.setPrototypeOf(this,r.prototype)}};
44var CG="Account",EG="AnalyticsAndOperator",fh="AccelerateConfiguration",Oh="AccessControlList",dc="ACL",VD="AnalyticsConfigurationList",Ko="AccessControlPolicy",XD="AccessControlTranslation",wm="AnalyticsConfiguration",NG="AccessDenied",QD="AbortDate",wG="AnalyticsExportDestination",RG="AnalyticsFilter",vG="AllowedHeaders",TG="AllowedHeader",_G="AccountId",YD="AbortIncompleteMultipartUpload",zD="AccessKeyId",AG="AllowedMethods",IG="AbortMultipartUpload",MG="AbortMultipartUploadOutput",BG="AbortMultipartUploadRequest",kG="AllowedMethod",OG="AllowedOrigins",DG="AllowedOrigin",LG="AccessPointAlias",JD="AccessPointArn",zG="AllowQuotedRecordDelimiter",TE="AcceptRanges",ZD="AbortRuleId",hh="AbacStatus",UG="AnalyticsS3BucketDestination",qG="ApplyServerSideEncryptionByDefault",HG="ArchiveStatus",e1="AccessTier",_m="And",M="Bucket",_E="BucketArn",FG="BucketAlreadyExists",$G="BucketAccountId",jG="BucketAlreadyOwnedByYou",t1="BlockedEncryptionTypes",AE="BypassGovernanceRetention",GG="BucketInfo",sr="BucketKeyEnabled",KG="BucketLifecycleConfiguration",WG="BucketLocationName",gh="BucketLoggingStatus",VG="BucketLocationType",XG="BucketName",r1="BytesProcessed",UD="BlockPublicAcls",qD="BlockPublicPolicy",IE="BucketRegion",n1="BytesReturned",i1="BytesScanned",Am="Body",ME="Buckets",s1="Checksum",Re="ChecksumAlgorithm",QG="CannedACL",YG="CreateBucket",SE="CreateBucketConfiguration",JG="CreateBucketMetadataConfiguration",ZG="CreateBucketMetadataConfigurationRequest",e9="CreateBucketMetadataTableConfiguration",t9="CreateBucketMetadataTableConfigurationRequest",r9="CreateBucketOutput",n9="CreateBucketRequest",uc="CacheControl",Er="ChecksumCRC32",Nr="ChecksumCRC32C",wr="ChecksumCRC64NVME",Im="Cache-Control",i9="CreationDate",Mm="Content-Disposition",pc="ContentDisposition",s9="ContinuationEvent",Bm="Content-Encoding",fc="ContentEncoding",o9="CloudFunction",a9="CloudFunctionConfiguration",hc="ContentLanguage",km="Content-Language",Om="Content-Length",Dm="ContentLength",Ze="Content-MD5",et="ContentMD5",c9="CompletedMultipartUpload",l9="CompleteMultipartUploadOutput",m9="CreateMultipartUploadOutput",d9="CompleteMultipartUploadResult",u9="CompleteMultipartUploadRequest",p9="CreateMultipartUploadRequest",o1="CompleteMultipartUpload",f9="CreateMultipartUpload",a1="ChecksumMode",h9="CopyObject",g9="CopyObjectOutput",c1="CopyObjectResult",yh="CORSConfiguration",BE="CORSRules",kE="CORSRule",y9="CopyObjectRequest",x9="CommonPrefix",b9="CommonPrefixList",S9="CompletedPartList",l1="CopyPartResult",P9="CompletedPart",Dh="CommonPrefixes",OE="ContentRange",C9="ConfirmRemoveSelfBucketAccess",m1="Content-Range",d1="CopySource",Rr="ChecksumSHA1",vr="ChecksumSHA256",u1="CopySourceIfMatch",p1="CopySourceIfModifiedSince",f1="CopySourceIfNoneMatch",h1="CopySourceIfUnmodifiedSince",E9="CreateSessionOutput",N9="CreateSessionResult",w9="CopySourceRange",R9="CreateSessionRequest",g1="CopySourceSSECustomerAlgorithm",DE="CopySourceSSECustomerKey",y1="CopySourceSSECustomerKeyMD5",x1="CSV",b1="CopySourceVersionId",v9="CSVInput",T9="CSVOutput",LE="ConfigurationState",_9="CreateSession",tn="ChecksumType",Lm="Content-Type",A9="ClientToken",gc="ContentType",I9="CompressionType",Fr="ContinuationToken",S1="Condition",M9="Code",B9="Comments",P1="Contents",k9="Cont",HD="Credentials",yc="Days",O9="DaysAfterInitiation",D9="DeleteBucket",L9="DeleteBucketAnalyticsConfiguration",z9="DeleteBucketAnalyticsConfigurationRequest",U9="DeleteBucketCors",q9="DeleteBucketCorsRequest",H9="DeleteBucketEncryption",F9="DeleteBucketEncryptionRequest",$9="DeleteBucketInventoryConfiguration",j9="DeleteBucketInventoryConfigurationRequest",G9="DeleteBucketIntelligentTieringConfiguration",K9="DeleteBucketIntelligentTieringConfigurationRequest",W9="DeleteBucketLifecycle",V9="DeleteBucketLifecycleRequest",X9="DeleteBucketMetadataConfiguration",Q9="DeleteBucketMetadataConfigurationRequest",Y9="DeleteBucketMetricsConfigurationRequest",J9="DeleteBucketMetricsConfiguration",Z9="DeleteBucketMetadataTableConfiguration",eK="DeleteBucketMetadataTableConfigurationRequest",tK="DeleteBucketOwnershipControls",rK="DeleteBucketOwnershipControl
44sRequest",nK="DeleteBucketPolicy",iK="DeleteBucketPolicyRequest",sK="DeleteBucketRequest",oK="DeleteBucketReplicationRequest",aK="DeleteBucketReplication",cK="DeleteBucketTagging",lK="DeleteBucketTaggingRequest",mK="DeleteBucketWebsite",dK="DeleteBucketWebsiteRequest",uK="DataExport",pK="DestinationIfMatch",fK="DestinationIfModifiedSince",hK="DestinationIfNoneMatch",gK="DestinationIfUnmodifiedSince",Wo="DeleteMarker",yK="DeleteMarkerEntry",C1="DeleteMarkerReplication",xK="DeleteMarkerVersionId",E1="DeleteMarkers",zE="DisplayName",bK="DeletedObject",SK="DeleteObjectOutput",PK="DeleteObjectsOutput",CK="DeleteObjectRequest",EK="DeleteObjectsRequest",NK="DeleteObjectTagging",wK="DeleteObjectTaggingOutput",RK="DeleteObjectTaggingRequest",vK="DeletedObjects",TK="DeleteObject",_K="DeleteObjects",AK="DeletePublicAccessBlock",IK="DeletePublicAccessBlockRequest",MK="DataRedundancy",N1="DefaultRetention",BK="DeleteResult",w1="DestinationResult",R1="Date",PE="Delete",kK="Deleted",js="Delimiter",Lh="Destination",OK="Description",v1="Details",Mi="Expiration",DK="EmailAddress",T1="EventBridgeConfiguration",L="ExpectedBucketOwner",zm="EncryptionConfiguration",_1="ErrorCode",LK="ErrorDetails",UE="ErrorDocument",zK="EndEvent",UK="ExposeHeaders",qK="ExposeHeader",A1="ErrorMessage",HK="ExpiredObjectDeleteMarker",I1="ExistingObjectReplication",xh="ExpiresString",M1="ExpectedSourceBucketOwner",qE="EncryptionType",FK="EncryptionTypeList",$K="EncryptionTypeMismatch",jt="ETag",Gs="EncodingType",jK="EventThreshold",B1="ExpressionType",HE="Encryption",GK="Enabled",k1="End",O1="Errors",Um="Error",FE="Events",$E="Event",$n="Expires",D1="Expression",ds="Filter",L1="FieldDelimiter",KK="FileHeaderInfo",WK="FetchOwner",z1="FilterRule",VK="FilterRuleList",XK="FilterRules",QK="Field",U1="Format",YK="Frequency",zh="Grants",JK="GetBucketAbac",ZK="GetBucketAccelerateConfiguration",eW="GetBucketAccelerateConfigurationOutput",tW="GetBucketAnalyticsConfigurationOutput",rW="GetBucketAccelerateConfigurationRequest",nW="GetBucketAnalyticsConfigurationRequest",iW="GetBucketAnalyticsConfiguration",sW="GetBucketAbacOutput",oW="GetBucketAclOutput",aW="GetBucketAbacRequest",cW="GetBucketAclRequest",lW="GetBucketAcl",mW="GetBucketCors",dW="GetBucketCorsOutput",uW="GetBucketCorsRequest",pW="GetBucketEncryption",fW="GetBucketEncryptionOutput",hW="GetBucketEncryptionRequest",gW="GetBucketInventoryConfiguration",yW="GetBucketInventoryConfigurationOutput",xW="GetBucketInventoryConfigurationRequest",bW="GetBucketIntelligentTieringConfiguration",SW="GetBucketIntelligentTieringConfigurationOutput",PW="GetBucketIntelligentTieringConfigurationRequest",CW="GetBucketLocation",EW="GetBucketLifecycleConfiguration",NW="GetBucketLifecycleConfigurationOutput",wW="GetBucketLifecycleConfigurationRequest",RW="GetBucketLocationOutput",vW="GetBucketLoggingOutput",TW="GetBucketLocationRequest",_W="GetBucketLoggingRequest",AW="GetBucketLogging",IW="GetBucketMetadataConfiguration",MW="GetBucketMetadataConfigurationOutput",BW="GetBucketMetricsConfigurationOutput",q1="GetBucketMetadataConfigurationResult",kW="GetBucketMetadataConfigurationRequest",OW="GetBucketMetricsConfigurationRequest",DW="GetBucketMetricsConfiguration",LW="GetBucketMetadataTableConfiguration",zW="GetBucketMetadataTableConfigurationOutput",H1="GetBucketMetadataTableConfigurationResult",
44UW="GetBucketMetadataTableConfigurationRequest",qW="GetBucketNotificationConfiguration",HW="GetBucketNotificationConfigurationRequest",FW="GetBucketOwnershipControls",$W="GetBucketOwnershipControlsOutput",jW="GetBucketOwnershipControlsRequest",GW="GetBucketPolicy",KW="GetBucketPolicyOutput",WW="GetBucketPolicyRequest",VW="GetBucketPolicyStatus",XW="GetBucketPolicyStatusOutput",QW="GetBucketPolicyStatusRequest",YW="GetBucketReplication",JW="GetBucketReplicationOutput",ZW="GetBucketRequestPayment",e7="GetBucketRequestPaymentOutput",t7="GetBucketRequestPaymentRequest",r7="GetBucketReplicationRequest",n7="GetBucketTagging",i7="GetBucketTaggingOutput",s7="GetBucketTaggingRequest",o7="GetBucketVersioning",a7="GetBucketVersioningOutput",c7="GetBucketVersioningRequest",l7="GetBucketWebsite",m7="GetBucketWebsiteOutput",d7="GetBucketWebsiteRequest",xc="GrantFullControl",F1="GlacierJobParameters",u7="GetObject",p7="GetObjectAcl",f7="GetObjectAclOutput",h7="GetObjectAttributesOutput",g7="GetObjectAttributesParts",y7="GetObjectAclRequest",x7="GetObjectAttributesResponse",b7="GetObjectAttributesRequest",S7="GetObjectAttributes",P7="GetObjectLockConfiguration",C7="GetObjectLockConfigurationOutput",E7="GetObjectLockConfigurationRequest",N7="GetObjectLegalHold",w7="GetObjectLegalHoldOutput",R7="GetObjectLegalHoldRequest",v7="GetObjectOutput",T7="GetObjectRequest",_7="GetObjectRetentionOutput",A7="GetObjectRetentionRequest",I7="GetObjectRetention",M7="GetObjectTagging",B7="GetObjectTaggingOutput",k7="GetObjectTorrentOutput",O7="GetObjectTaggingRequest",D7="GetObjectTorrentRequest",L7="GetObjectTorrent",z7="GetPublicAccessBlock",U7="GetPublicAccessBlockOutput",q7="GetPublicAccessBlockRequest",bc="GrantRead",Sc="GrantReadACP",jE="GrantWrite",Pc="GrantWriteACP",GE="Grant",KE="Grantee",H7="HeadBucket",F7="HeadBucketOutput",$7="HeadBucketRequest",j7="HttpErrorCodeReturnedEquals",$1="HostName",G7="HeadObject",K7="HeadObjectOutput",W7="HeadObjectRequest",V7="HttpRedirectCode",Mt="Id",Rm="InventoryConfiguration",j1="InventoryConfigurationList",Cc="ID",WE="IndexDocument",X7="InventoryDestination",Q7="IsEnabled",Y7="InventoryEncryption",J7="InventoryFilter",G1="IsLatest",Ec="IfMatch",Z7="IfMatchInitiatedTime",eV="IfMatchLastModifiedTime",tV="IfMatchSize",VE="If-Modified-Since",K1="IfModifiedSince",rV="InitiateMultipartUploadResult",Vo="If-Match",qm="IfNoneMatch",Nc="If-None-Match",nV="InventoryOptionalFields",iV="InvalidObjectState",sV="IncludedObjectVersions",FD="IsPublic",$D="IgnorePublicAcls",oV="IdempotencyParameterMismatch",aV="InvalidRequest",cV="IsRestoreInProgress",XE="InputSerialization",lV="InventoryS3BucketDestination",mV="InventorySchedule",Bi="IsTruncated",dV="IntelligentTieringAndOperator",vm="IntelligentTieringConfiguration",W1="IntelligentTieringConfigurationList",V1="InventoryTableConfigurationResult",uV="InventoryTableConfigurationUpdates",bh="InventoryTableConfiguration",pV="IntelligentTieringFilter",X1="IfUnmodifiedSince",QE="If-Unmodified-Since",fV="InvalidWriteOffset",YE="Initiator",hV="Initiated",Q1="JSON",gV="JSONInput",yV="JSONOutput",Sh="JournalTableConfiguration",Y1="JournalTableConfigurationResult",xV="JournalTableConfigurationUpdates",ge="Key",bV="KeyCount",SV="KeyId",PV="KmsKeyArn",Uh="KeyMarker",CV="KMSContext",EV="KMSKeyArn",NV="KMSKeyId",wV="KMSMasterKeyID",RV="KeyPrefixEquals",Ph="Location",vV="ListAllMyBucketsResult",TV="ListAllMyDirectoryBucketsResult",_V="ListBuckets",AV="ListBucketAnalyticsConfigurations",IV="ListBucketAnalyticsConfigurationsOutput",MV="ListBucketAnalyticsConfigurationResult",BV="ListBucketAnalyticsConfigurationsRequest",kV="ListBucketInventoryConfigurations",OV="ListBucketInventoryConfigurationsOutput",DV="ListBucketInventoryConfigurationsRequest",LV="ListBucketIntelligentTieringConfigurations",zV="ListBucketIntelligentTieringConfigurationsOutput",UV="ListBucketIntelligentTieringConfigurationsRequest",qV="ListBucketMetricsConfigurations",HV="ListBucketMetricsConfigurationsOutput",FV="ListBucketMetricsConfigurationsRequest",$V="ListBucketsOutput",jV="ListBucketsRequest",J1="ListBucketResult",CE="LocationConstraint",EE="LifecycleConfiguration",GV="ListDirectoryBuckets",KV="ListDirectoryBucketsOutput",WV="ListDirectoryBucketsRequest",JE="LoggingEnabled",VV="LifecycleExpiration",XV="LambdaFunctionArn",QV="LambdaFunctionConfiguration",YV="LambdaFunctionConfigurationList",JV="LambdaFunctionConfigurations",Ch="LegalHold",ZV="LocationInfo",eX="ListInventoryConfigurationsResult",ki="LastModified",tX="ListMetricsConfigurationsResult",rX="LastModifiedTime",nX="ListMultipartUploads",iX="ListMultipartUploadsOutput",sX="ListMultipartUploadsResult",oX="ListMultipartUploadsRequest",ZE="Last-Modified",aX="ListObjects",cX="ListObjectsOutput",lX="ListObjectsRequest",mX="ListObjectsV2",dX="ListObjectsV2Output",uX="ListObjectVersionsOutput",pX="ListObjectsV2Request",fX="ListObjectVersionsRequest",hX="ListObjectVersions",gX="ListParts",yX="ListPartsOutput",xX="ListPartsResult",bX="ListPartsRequest",SX="LifecycleRule",PX="LifecycleRuleAndOperator",CX="LifecycleRuleFilter",EX="LifecycleRules",NX="ListVersionsResult",wc="Metadata",wX="MetricsAndOperator",RX="MaxAgeSeconds",vX="MaxBuckets",NE="MetadataConfiguration",Z1="MetricsConfigurationList",eL="MetadataConfigurationResult",Tm="MetricsConfiguration",TX="MetadataDirective",_X="MaxDirectoryBuckets",tL="MfaDelete",rL="MetadataEntry",AX="MetricsFilter",eN="MFA",nL="MFADelete",Rc="MaxKeys",tN="MissingMeta",IX="MpuObjectSize",qh="MaxParts",wE="MetadataTableConfiguration",iL="MetadataTableConfigurationResult",MX="MetadataTableEncryptionConfiguration",sL="MultipartUpload",BX="MultipartUploadList",oL="MaxUploads",aL="Marker",cL="Metrics",kX="Message",OX="Minutes",lL="Mode",Xo="Name",RE="NotificationConfiguration",DX="NotificationConfigurationFilter",Hm="NextContinuationToken",mL="NoncurrentDays",LX="NonEmptyKmsKeyArnString",zX="NotFound",dL="NextKeyMarker",UX="NextMarker",uL="NewerNoncurrentVersions",pL="NextPartNumberMarker",qX="NoSuchBucket",HX="NoSuchKey",FX="NoSuchUpload",$X="NextUploadIdMarker",fL="NoncurrentVersionExpiration",jX="NextVersionIdMarker",GX="NoncurrentVersionTransitions",KX="NoncurrentVersionTransitionList",hL="NoncurrentVersionTransition",Gn="Owner",WX="ObjectAttributes",VX="ObjectAlreadyInActiveTierError",Eh="OwnershipControl
44s",XX="OwnershipControlsRule",QX="OwnershipControlsRules",gL="ObjectEncryption",YX="OptionalFields",JX="ObjectIdentifier",ZX="ObjectIdentifierList",yL="OutputLocation",Nh="ObjectLockConfiguration",eQ="ObjectLockEnabled",tQ="ObjectLockEnabledForBucket",rQ="ObjectLockLegalHold",vc="ObjectLockLegalHoldStatus",Tc="ObjectLockMode",nQ="ObjectLockRetention",_c="ObjectLockRetainUntilDate",iQ="ObjectLockRule",sQ="ObjectList",oQ="ObjectNotInActiveTierError",xL="ObjectOwnership",rN="OptionalObjectAttributes",aQ="ObjectParts",cQ="ObjectPart",lQ="ObjectSize",bL="ObjectSizeGreaterThan",SL="ObjectSizeLessThan",mQ="OutputSchemaVersion",nN="OutputSerialization",dQ="ObjectVersion",uQ="ObjectVersionList",pQ="Objects",PL="Object",Ve="Prefix",wh="PublicAccessBlockConfiguration",fQ="PutBucketAbac",hQ="PutBucketAccelerateConfiguration",gQ="PutBucketAccelerateConfigurationRequest",yQ="PutBucketAnalyticsConfigurationRequest",xQ="PutBucketAnalyticsConfiguration",bQ="PutBucketAbacRequest",SQ="PutBucketAclRequest",PQ="PutBucketAcl",CQ="PutBucketCors",EQ="PutBucketCorsRequest",NQ="PutBucketEncryption",wQ="PutBucketEncryptionRequest",RQ="PutBucketInventoryConfiguration",vQ="PutBucketInventoryConfigurationRequest",TQ="PutBucketIntelligentTieringConfiguration",_Q="PutBucketIntelligentTieringConfigurationRequest",AQ="PutBucketLogging",IQ="PutBucketLifecycleConfiguration",MQ="PutBucketLifecycleConfigurationOutput",BQ="PutBucketLifecycleConfigurationRequest",kQ="PutBucketLoggingRequest",OQ="PutBucketMetricsConfiguration",DQ="PutBucketMetricsConfigurationRequest",LQ="PutBucketNotificationConfiguration",zQ="PutBucketNotificationConfigurationRequest",UQ="PutBucketOwnershipControls",qQ="PutBucketOwnershipControlsRequest",HQ="PutBucketPolicy",FQ="PutBucketPolicyRequest",$Q="PutBucketReplication",jQ="PutBucketRequestPayment",GQ="PutBucketRequestPaymentRequest",KQ="PutBucketReplicationRequest",WQ="PutBucketTagging",VQ="PutBucketTaggingRequest",XQ="PutBucketVersioning",QQ="PutBucketVersioningRequest",YQ="PutBucketWebsite",JQ="PutBucketWebsiteRequest",Hh="PartsCount",ZQ="PartitionDateSource",eY="ProgressEvent",tY="ParquetInput",rY="PartsList",Qo="PartNumber",Fh="PartNumberMarker",nY="PutObject",iY="PutObjectAcl",sY="PutObjectAclOutput",oY="PutObjectAclRequest",aY="PutObjectLockConfiguration",cY="PutObjectLockConfigurationOutput",lY="PutObjectLockConfigurationRequest",mY="PutObjectLegalHold",dY="PutObjectLegalHoldOutput",uY="PutObjectLegalHoldRequest",pY="PutObjectOutput",fY="PutObjectRequest",hY="PutObjectRetentionOutput",gY="PutObjectRetentionRequest",yY="PutObjectRetention",xY="PutObjectTagging",bY="PutObjectTaggingOutput",SY="PutObjectTaggingRequest",Rh="PartitionedPrefix",PY="PutPublicAccessBlock",CY="PutPublicAccessBlockRequest",CL="PolicyStatus",$h="Parts",jh="Part",EY="Parquet",EL="Payer",NL="Payload",wL="Permission",RL="Policy",vL="Progress",NY="Priority",TL="Protocol",wY="Quiet",RY="QueueArn",_L="QuoteCharacter",vY="QueueConfigurationList",TY="QueueConfigurations",AL="QueueConfiguration",IL="QuoteEscapeCharacter",_Y="QuoteFields",AY="Queue",Fm="Rules",iN="RedirectAllRequestsTo",Xe="RequestCharged",ML="ResponseCacheControl",BL="ResponseContentDisposition",kL="ResponseContentEncoding",OL="ResponseContentLanguage",DL="ResponseContentType",vh="ReplicationConfiguration",sN="RecordDelimiter",LL="ResponseExpires",IY="RestoreExpiryDate",Gh="RecordExpiration",MY="RecordsEvent",BY="ReplicaKmsKeyID",kY="ReplaceKeyPrefixWith",OY="ReplaceKeyWith",zL="ReplicaModifications",DY="RenameObject",LY="RenameObjectOutput",zY="RestoreObjectOutput",UY="RestoreOutputPath",qY="RenameObjectRequest",HY="RestoreObjectRequest",FY="RestoreObject",Ue="RequestPayer",jD="RestrictPublicBuckets",Th="RequestPaymentConfiguration",UL="RequestProgress",oN="RoutingRules",$Y="ReplicationRuleAndOperator",jY="ReplicationRuleFilter",GY="ReplicationRule",KY="ReplicationRules",WY="RequestRoute",vE="RestoreRequest",qL="RoutingRule",aN="ReplicationStatus",cN="RestoreStatus",VY="RenameSource",HL="ReplicationTime",XY="ReplicationTimeValue",QY="RequestToken",YY="RetainUntilDate",_h="Range",lN="Restore",JY="Records",FL="Redirect",Ah="Retention",ZY="Role",Ac="Rule",or="Status",$L="StartAfter",GD="SecretAccessKey",eJ="SseAlgorithm",tJ="StreamingBlob",jL="S3BucketDestination",ar="StorageClass",GL="StorageClassAnalysis",rJ="StorageClassAnalysisDataExport",nJ="SessionCredentialValue",iJ="SessionCredentials",sJ="StatusCode",oJ="SkipDestinationValidation",aJ="StatsEvent",cJ="SourceIfMatch",lJ="SourceIfModifiedSince",mJ="SourceIfNoneMatch",dJ="SourceIfUnmodifiedSince",Kh="SSE-KMS",KL="SseKmsEncryptedObjects",uJ="S3KeyFilter",pJ="S3Key",fJ="S3Location",hJ="SessionMode",gJ="SelectObjectContent",yJ="SelectObjectContentEventStream",xJ="SelectObjectContentOutput",bJ="SelectObjectContentRequest",WL="SelectParameters",Ih="SimplePrefix",VL="ScanRange",XL="SSE-S3",QL="SourceSelectionCriteria",$r="ServerSideEncryption",SJ="SSEAlgorithm",PJ="ServerSideEncryptionByDefault",Mh="ServerSideEncryptionConfiguration",Bt="SSECustomerAlgorithm",Pn="SSECustomerKey",kt="SSECustomerKeyMD5",mN="SSEKMS",CJ="SSEKMSEncryption",us="SSEKMSEncryptionContext",Tr="SSEKMSKeyId",EJ="ServerSideEncryptionRule",NJ="ServerSideEncryptionRules",YL="SSES3",KD="SessionToken",JL="S3TablesDestination",ZL="S3TablesDestinationResult",wJ="S3",RJ="Schedule",Ic="Size",vJ="Start",ez="Stats",TJ="Suffix",Mc="Tags",dN="TableArn",_J="TopicArn",AJ="TargetBucket",uN="TableBucketArn",IJ="TableBucketType",pN="TagCount",MJ="TopicConfigurationList",BJ="TopicConfigurations",tz="TopicConfiguration",kJ="TaggingDirective",fN="TransitionDefaultMinimumOb
44jectSize",rz="TargetGrants",OJ="TargetGrant",DJ="TieringList",LJ="TransitionList",zJ="TooManyParts",nz="TableNamespace",Wh="TableName",iz="TargetObjectKeyFormat",UJ="TargetPrefix",qJ="TotalPartsCount",Vh="TagSet",sz="TableStatus",Cn="Tag",jn="Tagging",oz="Tier",HJ="Tierings",az="Tiering",FJ="Time",cz="Token",$J="Topic",jJ="Transitions",lz="Transition",$m="Type",GJ="Uploads",KJ="UpdateBucketMetadataInventoryTableConfiguration",WJ="UpdateBucketMetadataInventoryTableConfigurationRequest",VJ="UpdateBucketMetadataJournalTableConfiguration",XJ="UpdateBucketMetadataJournalTableConfigurationRequest",Ks="UploadId",mz="UploadIdMarker",dz="UserMetadata",QJ="UpdateObjectEncryption",YJ="UpdateObjectEncryptionRequest",JJ="UpdateObjectEncryptionResponse",ZJ="UploadPart",eZ="UploadPartCopy",tZ="UploadPartCopyOutput",rZ="UploadPartCopyRequest",nZ="UploadPartOutput",iZ="UploadPartRequest",sZ="URI",oZ="Upload",hN="Value",Bh="VersioningConfiguration",Le="VersionId",uz="VersionIdMarker",aZ="Versions",cZ="Version",kh="WebsiteConfiguration",lZ="WriteGetObjectResponse",mZ="WriteGetObjectResponseRequest",dZ="WriteOffsetBytes",jm="WebsiteRedirectLocation",uZ="Years",pz="accept-ranges",pZ="bucket-region",_r="client",Yo="continuation-token",Xh="delimiter",Ar="error",gN="eventPayload",fZ="endpoint",Qh="encoding-type",hZ="fetch-owner",O="http",qe="httpChecksum",jr="httpError",m="httpHeader",gZ="hostLabel",Ie="httpPayload",Bc="httpPrefixHeaders",U="httpQuery",fz="http://www.w3.org/2001/XMLSchema-instance",En="id",yZ="idempotencyToken",hz="key-marker",xZ="marker",bZ="max-buckets",SZ="max-directory-buckets",yN="max-keys",PZ="max-parts",CZ="max-uploads",Gm="prefix",Yh="partNumber",EZ="part-number-marker",gz="response-cache-control",yz="response-content-disposition",xz="response-content-encoding",bz="response-content-language",Sz="response-content-type",Pz="response-expires",Cz="smithy.ts.sdk.synthetic.com.amazonaws.s3",NZ="start-after",Ez="streaming",Km="uploadId",wZ="upload-id-marker",Ir="versionId",RZ="version-id-marker",Nz="xsi",vZ="xmlAttribute",oe="xmlFlattened",v="xmlName",wz="xmlNamespace",kc="x-amz-acl",Rz="x-amz-abort-date",TZ="x-amz-access-point-alias",vz="x-amz-abort-rule-id",_Z="x-amz-archive-status",Tz="x-amz-bucket-arn",xN="x-amz-bypass-governance-retention",AZ="x-amz-bucket-location-name",IZ="x-amz-bucket-location-type",MZ="x-amz-bucket-object-lock-enabled",_z="x-amz-bucket-object-lock-token",BZ="x-amz-bucket-region",bN="x-amz-checksum-algorithm",Jo="x-amz-checksum-crc32",Zo="x-amz-checksum-crc32c",ea="x-amz-checksum-crc64nvme",Az="x-amz-checksum-mode",kZ="x-amz-confirm-remove-self-bucket-access",ta="x-amz-checksum-sha1",ra="x-amz-checksum-sha256",Iz="x-amz-copy-source",Mz="x-amz-copy-source-if-match",Bz="x-amz-copy-source-if-modified-since",kz="x-amz-copy-source-if-none-match",Oz="x-amz-copy-source-if-unmodified-since",OZ="x-amz-create-session-mode",DZ="x-amz-copy-source-range",Dz="x-amz-copy-source-server-side-encryption-customer-algorithm",Lz="x-amz-copy-source-server-side-encryption-customer-key",zz="x-amz-copy-source-server-side-encryption-customer-key-MD5",Uz="x-amz-copy-source-version-id",Oc="x-amz-checksum-type",LZ="x-amz-client-token",Jh="x-amz-delete-marker",Wm="x-amz-expiration",z="x-amz-expected-bucket-owner",zZ="x-amz-fwd-error-code",UZ="x-amz-fwd-error-message",qZ="x-amz-fwd-header-Cache-Control",HZ="x-amz-fwd-header-Content-Disposition",FZ="x-amz-fwd-header-Content-Encoding",$Z="x-amz-fwd-header-Content-Language",jZ="x-amz-fwd-header-Content-Range",GZ="x-amz-fwd-header-Content-Type",KZ="x-amz-fwd-header-ETag",WZ="x-amz-fwd-header-Expires",VZ="x-amz-fwd-header-Last-Modified",XZ="x-amz-fwd-header-accept-ranges",QZ="x-amz-fwd-header-x-amz-checksum-crc32",YZ="x-amz-fwd-header-x-amz-checksum-crc32c",JZ="x-amz-fwd-header-x-amz-checksum-crc64nvme",ZZ="x-amz-fwd-header-x-amz-checksum-sha1",eee="x-amz-fwd-header-x-amz-checksum-sha256",tee="x-amz-fwd-header-x-amz-delete-marker",ree="x-amz-fwd-header-x-amz-expiration",nee="x-amz-fwd-header-x-amz-missing-meta",iee="x-amz-fwd-header-x-amz-mp-parts-count",see="x-amz-fwd-header-x-amz-object-lock-legal-hold",oee="x-amz-fwd-header-x-amz-object-lock-mode",aee="x-amz-fwd-header-x-amz-object-lock-retain-until-date",cee="x-amz-fwd-header-x-amz-restore",lee="x-amz-fwd-header-x-amz-request-charged",mee="x-amz-fwd-header-x-amz-replication-status",dee="x-amz-fwd-header-x-amz-storage-class",uee="x-amz-fwd-header-x-amz-server-side-encryption",pee="x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id",fee="x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled",hee="x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm",gee="x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5",yee="x-amz-fwd-header-x-amz-tagging-count",xee="x-amz-fwd-header-x-amz-version-id",bee="x-amz-fwd-status",Dc="x-amz-grant-full-control",Lc="x-amz-grant-read",zc="x-amz-grant-read-acp",SN="x-amz-grant-write",Uc="x-amz-grant-write-acp",See="x-amz-if-match-initiated-time",Pee="x-amz-if-match-last-modified-time",Cee="x-amz-if-match-size",qc="x-amz-meta-",PN="x-amz-mfa",Eee="x-amz-metadata-directive",qz="x-amz-missing-meta",Nee="x-amz-mp-object-size",wee="x-amz-max-parts",Hz="x-amz-mp-parts-count",Ree="x-amz-object-attributes",Vm="x-amz-object-lock-legal-hold",Xm="x-amz-object-lock-mode",Qm="x-amz-object-lock-retain-until-date",vee="x-amz-object-ownership",CN="x-amz-optional-object-attributes",Tee="x-amz-object-size",_ee="x-amz-part-number-marker",Fz="x-amz-restore",Ye="x-amz-request-charged",Aee="x-amz-restore-output-path",He="x-amz-request-payer",Iee="x-amz-request-route",$z="x-amz-replication-status",Mee="x-amz-rename-source",Bee="x-amz-rename-source-if-match",kee="x-amz-rename-source-if-modified-since",Oee="x-amz-rename-source-if-none-match",Dee="x-amz-rename-source-if-unmodified-since",Lee="x-amz-request-token",Ym="x-amz-storage-class",Fe="x-amz-sdk-checksum-algorithm",zee="x-amz-skip-destination-validation",jz="x-amz-source-expected-bucket-owner",rn="x-amz-server-side-encryption",nn="x-amz-server-side-encryption-aws-kms-key-id",sn="x-amz-server-side-encryption-bucket-key-enabled",Ws="x-amz-server-side-encryption-context",Gt="x-amz-server-side-encryption-customer-algorithm",Kn="x-amz-server-side-encryption-customer-key",Kt="x-amz-server-side-encryption-customer-key-MD5",EN="x-amz-tagging",Gz="x-amz-tagging-count",Uee="x-amz-tagging-directive",NN="x-amz-transition-default-minimum-object-size",Oi="x-amz-version-id",qee="x-amz-write-offset-bytes",Jm="x-amz-website-redirect-location",Hee="xsi:type",f="com.amazonaws.s3",Kz=yn.for(Cz),Fee=[-3,Cz,"S3ServiceException",0,[],[]];
44Kz.registerError(Fee,Rt);var cr=yn.for(f),$ee=[-3,f,NG,{[Ar]:_r,[jr]:403},[],[]];cr.registerError($ee,eh);var jee=[-3,f,FG,{[Ar]:_r,[jr]:409},[],[]];cr.registerError(jee,rh);var Gee=[-3,f,jG,{[Ar]:_r,[jr]:409},[],[]];cr.registerError(Gee,nh);var Kee=[-3,f,$K,{[Ar]:_r,[jr]:400},[],[]];cr.registerError(Kee,ch);var Wee=[-3,f,oV,{[Ar]:_r,[jr]:400},[],[]];cr.registerError(Wee,uh);var Vee=[-3,f,iV,{[Ar]:_r,[jr]:403},[ar,e1],[0,0]];cr.registerError(Vee,sh);var Xee=[-3,f,aV,{[Ar]:_r,[jr]:400},[],[]];cr.registerError(Xee,lh);var Qee=[-3,f,fV,{[Ar]:_r,[jr]:400},[],[]];cr.registerError(Qee,mh);var Yee=[-3,f,qX,{[Ar]:_r,[jr]:404},[],[]];cr.registerError(Yee,ih);var Jee=[-3,f,HX,{[Ar]:_r,[jr]:404},[],[]];cr.registerError(Jee,oh);var Zee=[-3,f,FX,{[Ar]:_r,[jr]:404},[],[]];cr.registerError(Zee,Zf);var ete=[-3,f,zX,{[Ar]:_r},[],[]];cr.registerError(ete,ah);var tte=[-3,f,VX,{[Ar]:_r,[jr]:403},[],[]];cr.registerError(tte,ph);var rte=[-3,f,oQ,{[Ar]:_r,[jr]:403},[],[]];cr.registerError(rte,th);var nte=[-3,f,zJ,{[Ar]:_r,[jr]:400},[],[]];cr.registerError(nte,dh);var Wz=[Kz,cr],Vz=[0,f,DE,8,0],ite=[0,f,LX,8,0],WD=[0,f,nJ,8,0],Wn=[0,f,Pn,8,0],Vs=[0,f,us,8,0],Yt=[0,f,Tr,8,0],Zm=[0,f,tJ,{[Ez]:1},42],Xz=[3,f,hh,0,[or],[0]],ste=[3,f,YD,0,[O9],[1]],ote=[3,f,MG,0,[Xe],[[0,{[m]:Ye}]]],ate=[3,f,BG,0,[M,ge,Ks,Ue,L,Z7],[[0,1],[0,1],[0,{[U]:Km}],[0,{[m]:He}],[0,{[m]:z}],[6,{[m]:See}]],3],cte=[3,f,fh,0,[or],[0]],Qz=[3,f,Ko,0,[zh,Gn],[[()=>eg,{[v]:Oh}],()=>ps]],lte=[3,f,XD,0,[Gn],[0],1],mte=[3,f,EG,0,[Ve,Mc],[0,[()=>fs,{[oe]:1,[v]:Cn}]]],wN=[3,f,wm,0,[Mt,GL,ds],[0,()=>hoe,[()=>oae,0]],2],dte=[3,f,wG,0,[jL],[()=>ute],1],ute=[3,f,UG,0,[U1,M,$G,Ve],[0,0,0,0],2],pte=[3,f,t1,0,[qE],[[()=>Loe,{[oe]:1}]]],fte=[3,f,M,0,[Xo,i9,IE,_E],[0,4,0,0]],hte=[3,f,GG,0,[MK,$m],[0,0]],gte=[3,f,KG,0,[Fm],[[()=>yU,{[oe]:1,[v]:Ac}]],1],yte=[3,f,gh,0,[JE],[[()=>rU,0]]],xte=[3,f,s1,0,[Er,Nr,wr,Rr,vr,tn],[0,0,0,0,0,0]],bte=[3,f,x9,0,[Ve],[0]],Ste=[3,f,c9,0,[$h],[[()=>koe,{[oe]:1,[v]:jh}]]],Pte=[3,f,P9,0,[jt,Er,Nr,wr,Rr,vr,Qo],[0,0,0,0,0,0,1]],Cte=[3,f,l9,{[v]:d9},[Ph,M,ge,Mi,jt,Er,Nr,wr,Rr,vr,tn,$r,Le,Tr,sr,Xe],[0,0,0,[0,{[m]:Wm}],0,0,0,0,0,0,0,[0,{[m]:rn}],[0,{[m]:Oi}],[()=>Yt,{[m]:nn}],[2,{[m]:sn}],[0,{[m]:Ye}]]],Ete=[3,f,u9,0,[M,ge,Ks,sL,Er,Nr,wr,Rr,vr,tn,IX,Ue,L,Ec,qm,Bt,Pn,kt],[[0,1],[0,1],[0,{[U]:Km}],[()=>Ste,{[Ie]:1,[v]:o1}],[0,{[m]:Jo}],[0,{[m]:Zo}],[0,{[m]:ea}],[0,{[m]:ta}],[0,{[m]:ra}],[0,{[m]:Oc}],[1,{[m]:Nee}],[0,{[m]:He}],[0,{[m]:z}],[0,{[m]:Vo}],[0,{[m]:Nc}],[0,{[m]:Gt}],[()=>Wn,{[m]:Kn}],[0,{[m]:Kt}]],3],Nte=[3,f,S1,0,[j7,RV],[0,0]],wte=[3,f,s9,0,[],[]],Rte=[3,f,g9,0,[c1,Mi,b1,Le,$r,Bt,kt,Tr,us,sr,Xe],[[()=>Tte,16],[0,{[m]:Wm}],[0,{[m]:Uz}],[0,{[m]:Oi}],[0,{[m]:rn}],[0,{[m]:Gt}],[0,{[m]:Kt}],[()=>Yt,{[m]:nn}],[()=>Vs,{[m]:Ws}],[2,{[m]:sn}],[0,{[m]:Ye}]]],vte=[3,f,y9,0,[M,d1,ge,dc,uc,Re,pc,fc,hc,gc,u1,p1,f1,h1,$n,xc,bc,Sc,Pc,Ec,qm,wc,TX,kJ,$r,ar,jm,Bt,Pn,kt,Tr,us,sr,g1,DE,y1,Ue,jn,Tc,_c,vc,L,M1],[[0,1],[0,{[m]:Iz}],[0,1],[0,{[m]:kc}],[0,{[m]:Im}],[0,{[m]:bN}],[0,{[m]:Mm}],[0,{[m]:Bm}],[0,{[m]:km}],[0,{[m]:Lm}],[0,{[m]:Mz}],[4,{[m]:Bz}],[0,{[m]:kz}],[4,{[m]:Oz}],[4,{[m]:$n}],[0,{[m]:Dc}],[0,{[m]:Lc}],[0,{[m]:zc}],[0,{[m]:Uc}],[0,{[m]:Vo}],[0,{[m]:Nc}],[128,{[Bc]:qc}],[0,{[m]:Eee}],[0,{[m]:Uee}],[0,{[m]:rn}],[0,{[m]:Ym}],[0,{[m]:Jm}],[0,{[m]:Gt}],[()=>Wn,{[m]:Kn}],[0,{[m]:Kt}],[()=>Yt,{[m]:nn}],[()=>Vs,{[m]:Ws}],[2,{[m]:sn}],[0,{[m]:Dz}],[()=>Vz,{[m]:Lz}],[0,{[m]:zz}],[0,{[m]:He}],[0,{[m]:EN}],[0,{[m]:Xm}],[5,{[m]:Qm}],[0,{[m]:Vm}],[0,{[m]:z}],[0,{[m]:jz}]],3],Tte=[3,f,c1,0,[jt,ki,tn,Er,Nr,wr,Rr,vr],[0,4,0,0,0,0,0,0]],_te=[3,f,l1,0,[jt,ki,Er,Nr,wr,Rr,vr],[0,4,0,0,0,0,0]],Ate=[3,f,yh,0,[BE],[[()=>gU,{[oe]:1,[v]:kE}]],1],Ite=[3,f,kE,0,[AG,OG,Cc,vG,UK,RX],[[64,{[oe]:1,[v]:kG}],[64,{[oe]:1,[v]:DG}],0,[64,{[oe]:1,[v]:TG}],[64,{[oe]:1,[v]:qK}],1],2],Mte=[3,f,SE,0,[CE,Ph,M,Mc],[0,()=>Iie,()=>hte,[()=>fs,0]]],Bte=[3,f,ZG,0,[M,NE,et,Re,L],[[0,1],[()=>Mie,{[Ie]:1,[v]:NE}],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:z}]],2],kte=[3,f,t9,0,[M,wE,et,Re,L],[[0,1],[()=>Oie,{[Ie]:1,[v]:wE}],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:z}]],2],Ote=[3,f,r9,0,[Ph,_E],[[0,{[m]:Ph}],[0,{[m]:Tz}]]],Dte=[3,f,n9,0,[M,dc,SE,xc,bc,Sc,jE,Pc,tQ,xL],[[0,1],[0,{[m]:kc}],[()=>Mte,{[Ie]:1,[v]:SE}],[0,{[m]:Dc}],[0,{[m]:Lc}],[0,{[m]:zc}],[0,{[m]:SN}],[0,{[m]:Uc}],[2,{[m]:MZ}],[0,{[m]:vee}]],1],Lte=[3,f,m9,{[v]:rV},[QD,ZD,M,ge,Ks,$r,Bt,kt,Tr,us,sr,Xe,Re,tn],[[4,{[m]:Rz}],[0,{[m]:vz}],[0,{[v]:M}],0,0,[0,{[m]:rn}],[0,{[m]:Gt}],[0,{[m]:Kt}],[()=>Yt,{[m]:nn}],[()=>Vs,{[m]:Ws}],[2,{[m]:sn}],[0,{[m]:Ye}],[0,{[m]:bN}],[0,{[m]:Oc}]]],zte=[3,f,p9,0,[M,ge,dc,uc,pc,fc,hc,gc,$n,xc,bc,Sc,Pc,wc,$r,ar,jm,Bt,Pn,kt,Tr,us,sr,Ue,jn,Tc,_c,vc,L,Re,tn],[[0,1],[0,1],[0,{[m]:kc}],[0,{[m]:Im}],[0,{[m]:Mm}],[0,{[m]:Bm}],[0,{[m]:km}],[0,{[m]:Lm}],[4,{[m]:$n}],[0,{[m]:Dc}],[0,{[m]:Lc}],[0,{[m]:zc}],[0,{[m]:Uc}],[128,{[Bc]:qc}],[0,{[m]:rn}],[0,{[m]:Ym}],[0,{[m]:Jm}],[0,{[m]:Gt}],[()=>Wn,{[m]:Kn}],[0,{[m]:Kt}],[()=>Yt,{[m]:nn}],[()=>Vs,{[m]:Ws}],[2,{[m]:sn}],[0,{[m]:He}],[0,{[m]:EN}],[0,{[m]:Xm}],[5,{[m]:Qm}],[0,{[m]:Vm}],[0,{[m]:z}],[0,{[m]:bN}],[0,{[m]:Oc}]],2],Ute=[3,f,E9,{[v]:N9},[HD,$r,Tr,us,sr],[[()=>ooe,{[v]:HD}],[0,{[m]:rn}],[()=>Yt,{[m]:nn}],[()=>Vs,{[m]:Ws}],[2,{[m]:sn}]],1],qte=[3,f,R9,0,[M,hJ,$r,Tr,us,sr],[[0,1],[0,{[m]:OZ}],[0,{[m]:rn}],[()=>Yt,{[m]:nn}],[()=>Vs,{[m]:Ws}],[2,{[m]:sn}]],1],Hte=[3,f,v9,0,[KK,B9,IL,sN,L1,_L,zG],[0,0,0,0,0,0,2]],Fte=[3,f,T9,0,[_Y,IL,sN,L1,_L],[0,0,0,0,0]],$te=[3,f,N1,0,[lL,yc,uZ],[0,1,1]],jte=[3,f,PE,0,[pQ,wY],[[()=>Woe,{[oe]:1,[v]:PL}],2],1],Gte=[3,f,z9,0,[M,Mt,L],[[0,1],[0,{[U]:En}],[0,{[m]:z}]],2],Kte=[3,f,q9,0,[M,L],[[0,1],[0,{[m]:z}]],1],Wte=[3,f,F9,0,[M,L],[[0,1],[0,{[m]:z}]],1],Vte=[3,f,K9,0,[M,Mt,L],[[0,1],[0,{[U]:En}],[0,{[m]:z}]],2],Xte=[3,f,j9,0,[M,Mt,L],[[0,1],[0,{[U]:En}],[0,{[m]:z}]],2],Qte=[3,f,V9,0,[M,L],[[0,1],[0,{[m]:z}]],1],Yte=[3,f,Q9,0,[M,L],[[0,1],[0,{[m]:z}]],1],Jte=[3,f,eK,0,[M,L],[[0,1],[0,{[m]:z}]],1],Zte=[3,f,Y9,0,[M,Mt,L],[[0,1],[0,{[U]:En}],[0,{[m]:z}]],2],ere=[3,f,rK,0,[M,L],[[0,1],[0,{[m]:z}]],1],tre=[3,f,iK,0,[M,L],[[0,1],[0,{[m]:z}]],1],rre=[3,f,oK,0,[M,L],[[0,1],[0,{[m]:z}]],1],nre=[3,f,sK,0,[M,L],[[0,1],[0,{[m]:z}]],1],ire=[3,f,lK,0,[M,L],[[0,1],[0,{[m]:z}]],1],sre=[3,f,dK,0,[M,L],[[0,1],[0,{[m]:z}]],1],ore=[3,f,bK,0,[ge,Le,Wo,xK],[0,0,2,0]],are=[3,f,yK,0,[Gn,ge,Le,G1,ki],[()=>ps,0,0,2,4]],cre=[3,f,C1,0,[or],[0]],lre=[3,f,SK,0,[Wo,Le,Xe],[[2,{[m]:Jh}],[0,{[m]:Oi}],[0,{[m]:Ye}]]],mre=[3,f,CK,0,[M,ge,eN,Le,Ue,AE,L,Ec,eV,tV],[[0,1],[0,1],[0,{[m]:PN}],[0,{[U]:Ir}],[0,{[m]:He}],[2,{[m]:xN}
44],[0,{[m]:z}],[0,{[m]:Vo}],[6,{[m]:Pee}],[1,{[m]:Cee}]],2],dre=[3,f,PK,{[v]:BK},[kK,Xe,O1],[[()=>Ooe,{[oe]:1}],[0,{[m]:Ye}],[()=>zoe,{[oe]:1,[v]:Um}]]],ure=[3,f,EK,0,[M,PE,eN,Ue,AE,L,Re],[[0,1],[()=>jte,{[Ie]:1,[v]:PE}],[0,{[m]:PN}],[0,{[m]:He}],[2,{[m]:xN}],[0,{[m]:z}],[0,{[m]:Fe}]],2],pre=[3,f,wK,0,[Le],[[0,{[m]:Oi}]]],fre=[3,f,RK,0,[M,ge,Le,L],[[0,1],[0,1],[0,{[U]:Ir}],[0,{[m]:z}]],2],hre=[3,f,IK,0,[M,L],[[0,1],[0,{[m]:z}]],1],gre=[3,f,Lh,0,[M,CG,ar,XD,zm,HL,cL],[0,0,0,()=>lte,()=>bre,()=>$se,()=>Lie],1],yre=[3,f,w1,0,[IJ,uN,nz],[0,0,0]],xre=[3,f,HE,0,[qE,NV,CV],[0,[()=>Yt,0],0],1],bre=[3,f,zm,0,[BY],[0]],Sre=[3,f,zK,0,[],[]],Pre=[3,f,Um,0,[ge,Le,M9,kX],[0,0,0,0]],RN=[3,f,LK,0,[_1,A1],[0,0]],Yz=[3,f,UE,0,[ge],[0],1],Cre=[3,f,T1,0,[],[]],Ere=[3,f,I1,0,[or],[0],1],Nre=[3,f,z1,0,[Xo,hN],[0,0]],wre=[3,f,sW,0,[hh],[[()=>Xz,16]]],Rre=[3,f,aW,0,[M,L],[[0,1],[0,{[m]:z}]],1],vre=[3,f,eW,{[v]:fh},[or,Xe],[0,[0,{[m]:Ye}]]],Tre=[3,f,rW,0,[M,L,Ue],[[0,1],[0,{[m]:z}],[0,{[m]:He}]],1],_re=[3,f,oW,{[v]:Ko},[Gn,zh],[()=>ps,[()=>eg,{[v]:Oh}]]],Are=[3,f,cW,0,[M,L],[[0,1],[0,{[m]:z}]],1],Ire=[3,f,tW,0,[wm],[[()=>wN,16]]],Mre=[3,f,nW,0,[M,Mt,L],[[0,1],[0,{[U]:En}],[0,{[m]:z}]],2],Bre=[3,f,dW,{[v]:yh},[BE],[[()=>gU,{[oe]:1,[v]:kE}]]],kre=[3,f,uW,0,[M,L],[[0,1],[0,{[m]:z}]],1],Ore=[3,f,fW,0,[Mh],[[()=>fU,16]]],Dre=[3,f,hW,0,[M,L],[[0,1],[0,{[m]:z}]],1],Lre=[3,f,SW,0,[vm],[[()=>vN,16]]],zre=[3,f,PW,0,[M,Mt,L],[[0,1],[0,{[U]:En}],[0,{[m]:z}]],2],Ure=[3,f,yW,0,[Rm],[[()=>TN,16]]],qre=[3,f,xW,0,[M,Mt,L],[[0,1],[0,{[U]:En}],[0,{[m]:z}]],2],Hre=[3,f,NW,{[v]:EE},[Fm,fN],[[()=>yU,{[oe]:1,[v]:Ac}],[0,{[m]:NN}]]],Fre=[3,f,wW,0,[M,L],[[0,1],[0,{[m]:z}]],1],$re=[3,f,RW,{[v]:CE},[CE],[0]],jre=[3,f,TW,0,[M,L],[[0,1],[0,{[m]:z}]],1],Gre=[3,f,vW,{[v]:gh},[JE],[[()=>rU,0]]],Kre=[3,f,_W,0,[M,L],[[0,1],[0,{[m]:z}]],1],Wre=[3,f,MW,0,[q1],[[()=>Xre,16]]],Vre=[3,f,kW,0,[M,L],[[0,1],[0,{[m]:z}]],1],Xre=[3,f,q1,0,[eL],[()=>Bie],1],Qre=[3,f,zW,0,[H1],[[()=>Jre,16]]],Yre=[3,f,UW,0,[M,L],[[0,1],[0,{[m]:z}]],1],Jre=[3,f,H1,0,[iL,or,Um],[()=>Die,0,()=>RN],2],Zre=[3,f,BW,0,[Tm],[[()=>AN,16]]],ene=[3,f,OW,0,[M,Mt,L],[[0,1],[0,{[U]:En}],[0,{[m]:z}]],2],tne=[3,f,HW,0,[M,L],[[0,1],[0,{[m]:z}]],1],rne=[3,f,$W,0,[Eh],[[()=>cU,16]]],nne=[3,f,jW,0,[M,L],[[0,1],[0,{[m]:z}]],1],ine=[3,f,KW,0,[RL],[[0,16]]],sne=[3,f,WW,0,[M,L],[[0,1],[0,{[m]:z}]],1],one=[3,f,XW,0,[CL],[[()=>Jie,16]]],ane=[3,f,QW,0,[M,L],[[0,1],[0,{[m]:z}]],1],cne=[3,f,JW,0,[vh],[[()=>dU,16]]],lne=[3,f,r7,0,[M,L],[[0,1],[0,{[m]:z}]],1],mne=[3,f,e7,{[v]:Th},[EL],[0]],dne=[3,f,t7,0,[M,L],[[0,1],[0,{[m]:z}]],1],une=[3,f,i7,{[v]:jn},[Vh],[[()=>fs,0]],1],pne=[3,f,s7,0,[M,L],[[0,1],[0,{[m]:z}]],1],fne=[3,f,a7,{[v]:Bh},[or,nL],[0,[0,{[v]:tL}]]],hne=[3,f,c7,0,[M,L],[[0,1],[0,{[m]:z}]],1],gne=[3,f,m7,{[v]:kh},[iN,WE,UE,oN],[()=>mU,()=>Zz,()=>Yz,[()=>bU,0]]],yne=[3,f,d7,0,[M,L],[[0,1],[0,{[m]:z}]],1],xne=[3,f,f7,{[v]:Ko},[Gn,zh,Xe],[()=>ps,[()=>eg,{[v]:Oh}],[0,{[m]:Ye}]]],bne=[3,f,y7,0,[M,ge,Le,Ue,L],[[0,1],[0,1],[0,{[U]:Ir}],[0,{[m]:He}],[0,{[m]:z}]],2],Sne=[3,f,h7,{[v]:x7},[Wo,ki,Le,Xe,jt,s1,aQ,ar,lQ],[[2,{[m]:Jh}],[4,{[m]:ZE}],[0,{[m]:Oi}],[0,{[m]:Ye}],0,()=>xte,[()=>Pne,0],0,1]],Pne=[3,f,g7,0,[qJ,Fh,pL,qh,Bi,$h],[[1,{[v]:Hh}],0,0,1,2,[()=>Yoe,{[oe]:1,[v]:jh}]]],Cne=[3,f,b7,0,[M,ge,WX,Le,qh,Fh,Bt,Pn,kt,Ue,L],[[0,1],[0,1],[64,{[m]:Ree}],[0,{[U]:Ir}],[1,{[m]:wee}],[0,{[m]:_ee}],[0,{[m]:Gt}],[()=>Wn,{[m]:Kn}],[0,{[m]:Kt}],[0,{[m]:He}],[0,{[m]:z}]],3],Ene=[3,f,w7,0,[Ch],[[()=>sU,{[Ie]:1,[v]:Ch}]]],Nne=[3,f,R7,0,[M,ge,Le,Ue,L],[[0,1],[0,1],[0,{[U]:Ir}],[0,{[m]:He}],[0,{[m]:z}]],2],wne=[3,f,C7,0,[Nh],[[()=>iU,16]]],Rne=[3,f,E7,0,[M,L],[[0,1],[0,{[m]:z}]],1],vne=[3,f,v7,0,[Am,Wo,TE,Mi,lN,ki,Dm,jt,Er,Nr,wr,Rr,vr,tn,tN,Le,uc,pc,fc,hc,OE,gc,$n,xh,jm,$r,wc,Bt,kt,Tr,sr,ar,Xe,aN,Hh,pN,Tc,_c,vc],[[()=>Zm,16],[2,{[m]:Jh}],[0,{[m]:pz}],[0,{[m]:Wm}],[0,{[m]:Fz}],[4,{[m]:ZE}],[1,{[m]:Om}],[0,{[m]:jt}],[0,{[m]:Jo}],[0,{[m]:Zo}],[0,{[m]:ea}],[0,{[m]:ta}],[0,{[m]:ra}],[0,{[m]:Oc}],[1,{[m]:qz}],[0,{[m]:Oi}],[0,{[m]:Im}],[0,{[m]:Mm}],[0,{[m]:Bm}],[0,{[m]:km}],[0,{[m]:m1}],[0,{[m]:Lm}],[4,{[m]:$n}],[0,{[m]:xh}],[0,{[m]:Jm}],[0,{[m]:rn}],[128,{[Bc]:qc}],[0,{[m]:Gt}],[0,{[m]:Kt}],[()=>Yt,{[m]:nn}],[2,{[m]:sn}],[0,{[m]:Ym}],[0,{[m]:Ye}],[0,{[m]:$z}],[1,{[m]:Hz}],[1,{[m]:Gz}],[0,{[m]:Xm}],[5,{[m]:Qm}],[0,{[m]:Vm}]]],Tne=[3,f,T7,0,[M,ge,Ec,K1,qm,X1,_h,ML,BL,kL,OL,DL,LL,Le,Bt,Pn,kt,Ue,Qo,L,a1],[[0,1],[0,1],[0,{[m]:Vo}],[4,{[m]:VE}],[0,{[m]:Nc}],[4,{[m]:QE}],[0,{[m]:_h}],[0,{[U]:gz}],[0,{[U]:yz}],[0,{[U]:xz}],[0,{[U]:bz}],[0,{[U]:Sz}],[6,{[U]:Pz}],[0,{[U]:Ir}],[0,{[m]:Gt}],[()=>Wn,{[m]:Kn}],[0,{[m]:Kt}],[0,{[m]:He}],[1,{[U]:Yh}],[0,{[m]:z}],[0,{[m]:Az}]],2],_ne=[3,f,_7,0,[Ah],[[()=>oU,{[Ie]:1,[v]:Ah}]]],Ane=[3,f,A7,0,[M,ge,Le,Ue,L],[[0,1],[0,1],[0,{[U]:Ir}],[0,{[m]:He}],[0,{[m]:z}]],2],Ine=[3,f,B7,{[v]:jn},[Vh,Le],[[()=>fs,0],[0,{[m]:Oi}]],1],Mne=[3,f,O7,0,[M,ge,Le,L,Ue],[[0,1],[0,1],[0,{[U]:Ir}],[0,{[m]:z}],[0,{[m]:He}]],2],Bne=[3,f,k7,0,[Am,Xe],[[()=>Zm,16],[0,{[m]:Ye}
44]]],kne=[3,f,D7,0,[M,ge,Ue,L],[[0,1],[0,1],[0,{[m]:He}],[0,{[m]:z}]],2],One=[3,f,U7,0,[wh],[[()=>lU,16]]],Dne=[3,f,q7,0,[M,L],[[0,1],[0,{[m]:z}]],1],Lne=[3,f,F1,0,[oz],[0],1],zne=[3,f,GE,0,[KE,wL],[[()=>Jz,{[wz]:[Nz,fz]}],0]],Jz=[3,f,KE,0,[$m,zE,DK,Cc,sZ],[[0,{[vZ]:1,[v]:Hee}],0,0,0,0],1],Une=[3,f,F7,0,[_E,VG,WG,IE,LG],[[0,{[m]:Tz}],[0,{[m]:IZ}],[0,{[m]:AZ}],[0,{[m]:BZ}],[2,{[m]:TZ}]]],qne=[3,f,$7,0,[M,L],[[0,1],[0,{[m]:z}]],1],Hne=[3,f,K7,0,[Wo,TE,Mi,lN,HG,ki,Dm,Er,Nr,wr,Rr,vr,tn,jt,tN,Le,uc,pc,fc,hc,gc,OE,$n,xh,jm,$r,wc,Bt,kt,Tr,sr,ar,Xe,aN,Hh,pN,Tc,_c,vc],[[2,{[m]:Jh}],[0,{[m]:pz}],[0,{[m]:Wm}],[0,{[m]:Fz}],[0,{[m]:_Z}],[4,{[m]:ZE}],[1,{[m]:Om}],[0,{[m]:Jo}],[0,{[m]:Zo}],[0,{[m]:ea}],[0,{[m]:ta}],[0,{[m]:ra}],[0,{[m]:Oc}],[0,{[m]:jt}],[1,{[m]:qz}],[0,{[m]:Oi}],[0,{[m]:Im}],[0,{[m]:Mm}],[0,{[m]:Bm}],[0,{[m]:km}],[0,{[m]:Lm}],[0,{[m]:m1}],[4,{[m]:$n}],[0,{[m]:xh}],[0,{[m]:Jm}],[0,{[m]:rn}],[128,{[Bc]:qc}],[0,{[m]:Gt}],[0,{[m]:Kt}],[()=>Yt,{[m]:nn}],[2,{[m]:sn}],[0,{[m]:Ym}],[0,{[m]:Ye}],[0,{[m]:$z}],[1,{[m]:Hz}],[1,{[m]:Gz}],[0,{[m]:Xm}],[5,{[m]:Qm}],[0,{[m]:Vm}]]],Fne=[3,f,W7,0,[M,ge,Ec,K1,qm,X1,_h,ML,BL,kL,OL,DL,LL,Le,Bt,Pn,kt,Ue,Qo,L,a1],[[0,1],[0,1],[0,{[m]:Vo}],[4,{[m]:VE}],[0,{[m]:Nc}],[4,{[m]:QE}],[0,{[m]:_h}],[0,{[U]:gz}],[0,{[U]:yz}],[0,{[U]:xz}],[0,{[U]:bz}],[0,{[U]:Sz}],[6,{[U]:Pz}],[0,{[U]:Ir}],[0,{[m]:Gt}],[()=>Wn,{[m]:Kn}],[0,{[m]:Kt}],[0,{[m]:He}],[1,{[U]:Yh}],[0,{[m]:z}],[0,{[m]:Az}]],2],Zz=[3,f,WE,0,[TJ],[0],1],eU=[3,f,YE,0,[Cc,zE],[0,0]],tU=[3,f,XE,0,[x1,I9,Q1,EY],[()=>Hte,0,()=>rie,()=>Xie]],$ne=[3,f,dV,0,[Ve,Mc],[0,[()=>fs,{[oe]:1,[v]:Cn}]]],vN=[3,f,vm,0,[Mt,or,HJ,ds],[0,0,[()=>rae,{[oe]:1,[v]:az}],[()=>jne,0]],3],jne=[3,f,pV,0,[Ve,Cn,_m],[0,()=>Hc,[()=>$ne,0]]],TN=[3,f,Rm,0,[Lh,Q7,Mt,sV,RJ,ds,YX],[[()=>Gne,0],2,0,0,()=>Xne,()=>Wne,[()=>Foe,0]],5],Gne=[3,f,X7,0,[jL],[[()=>Vne,0]],1],Kne=[3,f,Y7,0,[YL,mN],[[()=>uoe,{[v]:XL}],[()=>loe,{[v]:Kh}]]],Wne=[3,f,J7,0,[Ve],[0],1],Vne=[3,f,lV,0,[M,U1,_G,Ve,HE],[0,0,0,0,[()=>Kne,0]],2],Xne=[3,f,mV,0,[YK],[0],1],Qne=[3,f,bh,0,[LE,zm],[0,()=>_N],1],Yne=[3,f,V1,0,[LE,sz,Um,Wh,dN],[0,0,()=>RN,0,0],1],Jne=[3,f,uV,0,[LE,zm],[0,()=>_N],1],Zne=[3,f,Sh,0,[Gh,zm],[()=>MN,()=>_N],1],eie=[3,f,Y1,0,[sz,Wh,Gh,Um,dN],[0,0,()=>MN,()=>RN,0],3],tie=[3,f,xV,0,[Gh],[()=>MN],1],rie=[3,f,gV,0,[$m],[0]],nie=[3,f,yV,0,[sN],[0]],iie=[3,f,QV,0,[XV,FE,Mt,ds],[[0,{[v]:o9}],[64,{[oe]:1,[v]:$E}],0,[()=>IN,0]],2],sie=[3,f,VV,0,[R1,yc,HK],[5,1,2]],oie=[3,f,SX,0,[or,Mi,Cc,Ve,ds,jJ,GX,fL,YD],[0,()=>sie,0,0,[()=>cie,0],[()=>iae,{[oe]:1,[v]:lz}],[()=>Koe,{[oe]:1,[v]:hL}],()=>qie,()=>ste],1],aie=[3,f,PX,0,[Ve,Mc,bL,SL],[0,[()=>fs,{[oe]:1,[v]:Cn}],1,1]],cie=[3,f,CX,0,[Ve,Cn,bL,SL,_m],[0,()=>Hc,1,1,[()=>aie,0]]],lie=[3,f,IV,{[v]:MV},[Bi,Fr,Hm,VD],[2,0,0,[()=>Boe,{[oe]:1,[v]:wm}]]],mie=[3,f,BV,0,[M,Fr,L],[[0,1],[0,{[U]:Yo}],[0,{[m]:z}]],1],die=[3,f,zV,0,[Bi,Fr,Hm,W1],[2,0,0,[()=>qoe,{[oe]:1,[v]:vm}]]],uie=[3,f,UV,0,[M,Fr,L],[[0,1],[0,{[U]:Yo}],[0,{[m]:z}]],1],pie=[3,f,OV,{[v]:eX},[Fr,j1,Bi,Hm],[0,[()=>Hoe,{[oe]:1,[v]:Rm}],2,0]],fie=[3,f,DV,0,[M,Fr,L],[[0,1],[0,{[U]:Yo}],[0,{[m]:z}]],1],hie=[3,f,HV,{[v]:tX},[Bi,Fr,Hm,Z1],[2,0,0,[()=>joe,{[oe]:1,[v]:Tm}]]],gie=[3,f,FV,0,[M,Fr,L],[[0,1],[0,{[U]:Yo}],[0,{[m]:z}]],1],yie=[3,f,$V,{[v]:vV},[ME,Gn,Fr,Ve],[[()=>hU,0],()=>ps,0,0]],xie=[3,f,jV,0,[vX,Fr,Ve,IE],[[1,{[U]:bZ}],[0,{[U]:Yo}],[0,{[U]:Gm}],[0,{[U]:pZ}]]],bie=[3,f,KV,{[v]:TV},[ME,Fr],[[()=>hU,0],0]],Sie=[3,f,WV,0,[Fr,_X],[[0,{[U]:Yo}],[1,{[U]:SZ}]]],Pie=[3,f,iX,{[v]:sX},[M,Uh,mz,dL,Ve,js,$X,oL,Bi,GJ,Dh,Gs,Xe],[0,0,0,0,0,0,0,1,2,[()=>Goe,{[oe]:1,[v]:oZ}],[()=>Zh,{[oe]:1}],0,[0,{[m]:Ye}]]],Cie=[3,f,oX,0,[M,js,Gs,Uh,oL,Ve,mz,L,Ue],[[0,1],[0,{[U]:Xh}],[0,{[U]:Qh}],[0,{[U]:hz}],[1,{[U]:CZ}],[0,{[U]:Gm}],[0,{[U]:wZ}],[0,{[m]:z}],[0,{[m]:He}]],1],Eie=[3,f,cX,{[v]:J1},[Bi,aL,UX,P1,Xo,Ve,js,Rc,Dh,Gs,Xe],[2,0,0,[()=>xU,{[oe]:1}],0,0,0,1,[()=>Zh,{[oe]:1}],0,[0,{[m]:Ye}]]],Nie=[3,f,lX,0,[M,js,Gs,aL,Rc,Ve,Ue,L,rN],[[0,1],[0,{[U]:Xh}],[0,{[U]:Qh}],[0,{[U]:xZ}],[1,{[U]:yN}],[0,{[U]:Gm}],[0,{[m]:He}],[0,{[m]:z}],[64,{[m]:CN}]],1],wie=[3,f,dX,{[v]:J1},[Bi,P1,Xo,Ve,js,Rc,Dh,Gs,bV,Fr,Hm,$L,Xe],[2,[()=>xU,{[oe]:1}],0,0,0,1,[()=>Zh,{[oe]:1}],0,1,0,0,0,[0,{[m]:Ye}]]],Rie=[3,f,pX,0,[M,js,Gs,Rc,Ve,Fr,WK,$L,Ue,L,rN],[[0,1],[0,{[U]:Xh}],[0,{[U]:Qh}],[1,{[U]:yN}],[0,{[U]:Gm}],[0,{[U]:Yo}],[2,{[U]:hZ}],[0,{[U]:NZ}],[0,{[m]:He}],[0,{[m]:z}],[64,{[m]:CN}]],1],vie=[3,f,uX,{[v]:NX},[Bi,Uh,uz,dL,jX,aZ,E1,Xo,Ve,js,Rc,Dh,Gs,Xe],[2,0,0,0,0,[()=>Voe,{[oe]:1,[v]:cZ}],[()=>Doe,{[oe]:1,[v]:Wo}],0,0,0,1,[()=>Zh,{[oe]:1}],0,[0,{[m]:Ye}]]],Tie=[3,f,fX,0,[M,js,Gs,Uh,Rc,Ve,uz,L,Ue,rN],[[0,1],[0,{[U]:Xh}],[0,{[U]:Qh}],[0,{[U]:hz}],[1,{[U]:yN}],[0,{[U]:Gm}],[0,{[U]:RZ}],[0,{[m]:z}],[0,{[m]:He}],[64,{[m]:CN}]],1],_ie=[3,f,yX,{[v]:xX},[QD,ZD,M,ge,Ks,Fh,pL,qh,Bi,$h,YE,Gn,ar,Xe,Re,tn],[[4,{[m]:Rz}],[0,{[m]:vz}],0,0,0,0,0,1,2,[()=>Qoe,{[oe]:1,[v]:jh}],()=>
44eU,()=>ps,0,[0,{[m]:Ye}],0,0]],Aie=[3,f,bX,0,[M,ge,Ks,qh,Fh,Ue,L,Bt,Pn,kt],[[0,1],[0,1],[0,{[U]:Km}],[1,{[U]:PZ}],[0,{[U]:EZ}],[0,{[m]:He}],[0,{[m]:z}],[0,{[m]:Gt}],[()=>Wn,{[m]:Kn}],[0,{[m]:Kt}]],3],Iie=[3,f,ZV,0,[$m,Xo],[0,0]],rU=[3,f,JE,0,[AJ,UJ,rz,iz],[0,0,[()=>tae,0],[()=>xoe,0]],2],Mie=[3,f,NE,0,[Sh,bh],[()=>Zne,()=>Qne],1],Bie=[3,f,eL,0,[w1,Y1,V1],[()=>yre,()=>eie,()=>Yne],1],kie=[3,f,rL,0,[Xo,hN],[0,0]],Oie=[3,f,wE,0,[JL],[()=>Jse],1],Die=[3,f,iL,0,[ZL],[()=>Zse],1],_N=[3,f,MX,0,[eJ,PV],[0,0],1],Lie=[3,f,cL,0,[or,jK],[0,()=>uU],1],zie=[3,f,wX,0,[Ve,Mc,JD],[0,[()=>fs,{[oe]:1,[v]:Cn}],0]],AN=[3,f,Tm,0,[Mt,ds],[0,[()=>aae,0]],1],Uie=[3,f,sL,0,[Ks,ge,hV,ar,Gn,YE,Re,tn],[0,0,4,0,()=>ps,()=>eU,0,0]],qie=[3,f,fL,0,[mL,uL],[1,1]],Hie=[3,f,hL,0,[mL,ar,uL],[1,0,1]],nU=[3,f,RE,0,[BJ,TY,JV,T1],[[()=>nae,{[oe]:1,[v]:tz}],[()=>Joe,{[oe]:1,[v]:AL}],[()=>$oe,{[oe]:1,[v]:a9}],()=>Cre]],IN=[3,f,DX,0,[ge],[[()=>Qse,{[v]:pJ}]]],Fie=[3,f,PL,0,[ge,ki,jt,Re,tn,Ic,ar,Gn,cN],[0,4,0,[64,{[oe]:1}],0,1,0,()=>ps,()=>pU]],$ie=[3,f,JX,0,[ge,Le,jt,rX,Ic],[0,0,0,6,1],1],iU=[3,f,Nh,0,[eQ,Ac],[0,()=>jie]],sU=[3,f,rQ,0,[or],[0]],oU=[3,f,nQ,0,[lL,YY],[0,5]],jie=[3,f,iQ,0,[N1],[()=>$te]],Gie=[3,f,cQ,0,[Qo,Ic,Er,Nr,wr,Rr,vr],[1,1,0,0,0,0,0]],Kie=[3,f,dQ,0,[jt,Re,tn,Ic,ar,ge,Le,G1,ki,Gn,cN],[0,[64,{[oe]:1}],0,1,0,0,0,2,4,()=>ps,()=>pU]],Wie=[3,f,yL,0,[wJ],[[()=>Yse,0]]],aU=[3,f,nN,0,[x1,Q1],[()=>Fte,()=>nie]],ps=[3,f,Gn,0,[zE,Cc],[0,0]],cU=[3,f,Eh,0,[Fm],[[()=>Xoe,{[oe]:1,[v]:Ac}]],1],Vie=[3,f,XX,0,[xL],[0],1],Xie=[3,f,tY,0,[],[]],Qie=[3,f,jh,0,[Qo,ki,jt,Ic,Er,Nr,wr,Rr,vr],[1,4,0,1,0,0,0,0,0]],Yie=[3,f,Rh,{[v]:Rh},[ZQ],[0]],Jie=[3,f,CL,0,[FD],[[2,{[v]:FD}]]],Zie=[3,f,vL,0,[i1,r1,n1],[1,1,1]],ese=[3,f,eY,0,[v1],[[()=>Zie,{[gN]:1}]]],lU=[3,f,wh,0,[UD,$D,qD,jD],[[2,{[v]:UD}],[2,{[v]:$D}],[2,{[v]:qD}],[2,{[v]:jD}]]],tse=[3,f,bQ,0,[M,hh,et,Re,L],[[0,1],[()=>Xz,{[Ie]:1,[v]:hh}],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:z}]],2],rse=[3,f,gQ,0,[M,fh,L,Re],[[0,1],[()=>cte,{[Ie]:1,[v]:fh}],[0,{[m]:z}],[0,{[m]:Fe}]],2],nse=[3,f,SQ,0,[M,dc,Ko,et,Re,xc,bc,Sc,jE,Pc,L],[[0,1],[0,{[m]:kc}],[()=>Qz,{[Ie]:1,[v]:Ko}],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:Dc}],[0,{[m]:Lc}],[0,{[m]:zc}],[0,{[m]:SN}],[0,{[m]:Uc}],[0,{[m]:z}]],1],ise=[3,f,yQ,0,[M,Mt,wm,L],[[0,1],[0,{[U]:En}],[()=>wN,{[Ie]:1,[v]:wm}],[0,{[m]:z}]],3],sse=[3,f,EQ,0,[M,yh,et,Re,L],[[0,1],[()=>Ate,{[Ie]:1,[v]:yh}],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:z}]],2],ose=[3,f,wQ,0,[M,Mh,et,Re,L],[[0,1],[()=>fU,{[Ie]:1,[v]:Mh}],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:z}]],2],ase=[3,f,_Q,0,[M,Mt,vm,L],[[0,1],[0,{[U]:En}],[()=>vN,{[Ie]:1,[v]:vm}],[0,{[m]:z}]],3],cse=[3,f,vQ,0,[M,Mt,Rm,L],[[0,1],[0,{[U]:En}],[()=>TN,{[Ie]:1,[v]:Rm}],[0,{[m]:z}]],3],lse=[3,f,MQ,0,[fN],[[0,{[m]:NN}]]],mse=[3,f,BQ,0,[M,Re,EE,L,fN],[[0,1],[0,{[m]:Fe}],[()=>gte,{[Ie]:1,[v]:EE}],[0,{[m]:z}],[0,{[m]:NN}]],1],dse=[3,f,kQ,0,[M,gh,et,Re,L],[[0,1],[()=>yte,{[Ie]:1,[v]:gh}],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:z}]],2],use=[3,f,DQ,0,[M,Mt,Tm,L],[[0,1],[0,{[U]:En}],[()=>AN,{[Ie]:1,[v]:Tm}],[0,{[m]:z}]],3],pse=[3,f,zQ,0,[M,RE,L,oJ],[[0,1],[()=>nU,{[Ie]:1,[v]:RE}],[0,{[m]:z}],[2,{[m]:zee}]],2],fse=[3,f,qQ,0,[M,Eh,et,L,Re],[[0,1],[()=>cU,{[Ie]:1,[v]:Eh}],[0,{[m]:Ze}],[0,{[m]:z}],[0,{[m]:Fe}]],2],hse=[3,f,FQ,0,[M,RL,et,Re,C9,L],[[0,1],[0,16],[0,{[m]:Ze}],[0,{[m]:Fe}],[2,{[m]:kZ}],[0,{[m]:z}]],2],gse=[3,f,KQ,0,[M,vh,et,Re,cz,L],[[0,1],[()=>dU,{[Ie]:1,[v]:vh}],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:_z}],[0,{[m]:z}]],2],yse=[3,f,GQ,0,[M,Th,et,Re,L],[[0,1],[()=>jse,{[Ie]:1,[v]:Th}],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:z}]],2],xse=[3,f,VQ,0,[M,jn,et,Re,L],[[0,1],[()=>BN,{[Ie]:1,[v]:jn}],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:z}]],2],bse=[3,f,QQ,0,[M,Bh,et,Re,eN,L],[[0,1],[()=>Aoe,{[Ie]:1,[v]:Bh}],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:PN}],[0,{[m]:z}]],2],Sse=[3,f,JQ,0,[M,kh,et,Re,L],[[0,1],[()=>Ioe,{[Ie]:1,[v]:kh}],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:z}]],2],Pse=[3,f,sY,0,[Xe],[[0,{[m]:Ye}]]],Cse=[3,f,oY,0,[M,ge,dc,Ko,et,Re,xc,bc,Sc,jE,Pc,Ue,Le,L],[[0,1],[0,1],[0,{[m]:kc}],[()=>Qz,{[Ie]:1,[v]:Ko}],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:Dc}],[0,{[m]:Lc}],[0,{[m]:zc}],[0,{[m]:SN}],[0,{[m]:Uc}],[0,{[m]:He}],[0,{[U]:Ir}],[0,{[m]:z}]],2],Ese=[3,f,dY,0,[Xe],[[0,{[m]:Ye}]]],Nse=[3,f,uY,0,[M,ge,Ch,Ue,Le,et,Re,L],[[0,1],[0,1],[()=>sU,{[Ie]:1,[v]:Ch}],[0,{[m]:He}],[0,{[U]:Ir}],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:z}]],2],wse=[3,f,cY,0,[Xe],[[0,{[m]:Ye}]]],Rse=[3,f,lY,0,[M,Nh,Ue,cz,et,Re,L],[[0,1],[()=>iU,{[Ie]:1,[v]:Nh}],[0,{[m]:He}],[0,{[m]:_z}],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:z}]],1],vse=[3,f,pY,0,[Mi,jt,Er,Nr,wr,Rr,vr,tn,$r,Le,Bt,kt,Tr,us,sr,Ic,Xe],[[0,{[m]:Wm}],[0,{[m]:jt}],[0,{[m]:Jo}],[0,{[m]:Zo}],[0,{[m]:ea}],[0,{[m]:ta}],[0,{[m]:ra}],[0,{[m]:Oc}],[0,{[m]:rn}],[0,{[m]:Oi}],[0,{[m]:Gt}],[0,{[m]:Kt}],[()=>Yt,{[m]:nn}],[()=>Vs,{[m]:Ws}],[2,{[m]:sn}],[1,{[m]:Tee}],[0,{[m]:Ye}]]],Tse=[3,f,fY,0,[M,ge,dc,Am,uc,pc,fc,hc,Dm,et,gc,Re,Er,Nr,wr,Rr,vr,$n,Ec,qm,xc,bc,Sc,Pc,dZ,wc,$r,ar,jm,Bt,Pn,kt,Tr,us,sr,Ue,jn,Tc,_c,vc,L],[[0,1],[0,1],[0,{[m]:kc}],[()=>Zm,16],[0,{[m]:Im}],[0,{[m]:Mm}],[0,{[m]:Bm}],[0,{[m]:km}],[1,{[m]:Om}],[0,{[m]:Ze}],[0,{[m]:Lm}],[0,{[m]:Fe}],[0,{[m]:Jo}],[0,{[m]:Zo}],[0,{[m]:ea}],[0,{[m]:ta}],[0,{[m]:ra}],[4,{[m]:$n}],[0,{[m]:Vo}],[0,{[m]:Nc}],[0,{[m]:Dc}],[0,{[m]:Lc}],[0,{[m]:zc}],[0,{[m]:Uc}],[1,{[m]:qee}],[128,{[Bc]:qc}],[0,{[m]:rn}],[0,{[m]:Ym}],[0,{[m]:Jm}],[0,{[m]:Gt}],[()=>Wn,{[m]:Kn}],[0,{[m]:Kt}],[()=>Yt,{[m]:nn}],[()=>Vs,{[m]:Ws}],[2,{[m]:sn}],[0,{[m]:He}],[0,{[m]:EN}],[0,{[m]:Xm}],[5,{[m]:Qm}],[0,{[m]:Vm}],[0,{[m]:z}]],2],_se=[3,f,hY,0,[Xe],[[0,{[m]:Ye}]]],Ase=[3,f,gY,0,[M,ge,Ah,Ue,Le,AE,et,Re,L],[[0,1],[0,1],[()=>oU,{[Ie]:1,[v]:Ah}],[0,{[m]:He}],[0,{[U]:Ir}],[2,{[m]:xN}
44],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:z}]],2],Ise=[3,f,bY,0,[Le],[[0,{[m]:Oi}]]],Mse=[3,f,SY,0,[M,ge,jn,Le,et,Re,L,Ue],[[0,1],[0,1],[()=>BN,{[Ie]:1,[v]:jn}],[0,{[U]:Ir}],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:z}],[0,{[m]:He}]],3],Bse=[3,f,CY,0,[M,wh,et,Re,L],[[0,1],[()=>lU,{[Ie]:1,[v]:wh}],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:z}]],2],kse=[3,f,AL,0,[RY,FE,Mt,ds],[[0,{[v]:AY}],[64,{[oe]:1,[v]:$E}],0,[()=>IN,0]],2],MN=[3,f,Gh,0,[Mi,yc],[0,1],1],Ose=[3,f,MY,0,[NL],[[21,{[gN]:1}]]],Dse=[3,f,FL,0,[$1,V7,TL,kY,OY],[0,0,0,0,0]],mU=[3,f,iN,0,[$1,TL],[0,0],1],Lse=[3,f,LY,0,[],[]],zse=[3,f,qY,0,[M,ge,VY,pK,hK,fK,gK,cJ,mJ,lJ,dJ,A9],[[0,1],[0,1],[0,{[m]:Mee}],[0,{[m]:Vo}],[0,{[m]:Nc}],[4,{[m]:VE}],[4,{[m]:QE}],[0,{[m]:Bee}],[0,{[m]:Oee}],[6,{[m]:kee}],[6,{[m]:Dee}],[0,{[m]:LZ,[yZ]:1}]],3],Use=[3,f,zL,0,[or],[0],1],dU=[3,f,vh,0,[ZY,Fm],[0,[()=>Zoe,{[oe]:1,[v]:Ac}]],2],qse=[3,f,GY,0,[or,Lh,Cc,NY,Ve,ds,QL,I1,C1],[0,()=>gre,0,1,0,[()=>Fse,0],()=>coe,()=>Ere,()=>cre],2],Hse=[3,f,$Y,0,[Ve,Mc],[0,[()=>fs,{[oe]:1,[v]:Cn}]]],Fse=[3,f,jY,0,[Ve,Cn,_m],[0,()=>Hc,[()=>Hse,0]]],$se=[3,f,HL,0,[or,FJ],[0,()=>uU],2],uU=[3,f,XY,0,[OX],[1]],jse=[3,f,Th,0,[EL],[0],1],Gse=[3,f,UL,0,[GK],[2]],Kse=[3,f,zY,0,[Xe,UY],[[0,{[m]:Ye}],[0,{[m]:Aee}]]],Wse=[3,f,HY,0,[M,ge,Le,vE,Ue,Re,L],[[0,1],[0,1],[0,{[U]:Ir}],[()=>Vse,{[Ie]:1,[v]:vE}],[0,{[m]:He}],[0,{[m]:Fe}],[0,{[m]:z}]],2],Vse=[3,f,vE,0,[yc,F1,$m,oz,OK,WL,yL],[1,()=>Lne,0,0,0,()=>noe,[()=>Wie,0]]],pU=[3,f,cN,0,[cV,IY],[2,4]],Xse=[3,f,qL,0,[FL,S1],[()=>Dse,()=>Nte],1],Qse=[3,f,uJ,0,[XK],[[()=>Uoe,{[oe]:1,[v]:z1}]]],Yse=[3,f,fJ,0,[XG,Ve,HE,QG,Oh,jn,dz,ar],[0,0,[()=>xre,0],0,[()=>eg,0],[()=>BN,0],[()=>sae,0],0],2],Jse=[3,f,JL,0,[uN,Wh],[0,0],2],Zse=[3,f,ZL,0,[uN,Wh,dN,nz],[0,0,0,0],4],eoe=[3,f,VL,0,[vJ,k1],[1,1]],toe=[3,f,xJ,0,[NL],[[()=>lae,16]]],roe=[3,f,bJ,0,[M,ge,D1,B1,XE,nN,Bt,Pn,kt,UL,VL,L],[[0,1],[0,1],0,0,()=>tU,()=>aU,[0,{[m]:Gt}],[()=>Wn,{[m]:Kn}],[0,{[m]:Kt}],()=>Gse,()=>eoe,[0,{[m]:z}]],6],noe=[3,f,WL,0,[XE,B1,D1,nN],[()=>tU,0,0,()=>aU],4],ioe=[3,f,PJ,0,[SJ,wV],[0,[()=>Yt,0]],1],fU=[3,f,Mh,0,[Fm],[[()=>eae,{[oe]:1,[v]:Ac}]],1],soe=[3,f,EJ,0,[qG,sr,t1],[[()=>ioe,0],2,[()=>pte,0]]],ooe=[3,f,iJ,0,[zD,GD,KD,Mi],[[0,{[v]:zD}],[()=>WD,{[v]:GD}],[()=>WD,{[v]:KD}],[4,{[v]:Mi}]],4],aoe=[3,f,Ih,{[v]:Ih},[],[]],coe=[3,f,QL,0,[KL,zL],[()=>moe,()=>Use]],loe=[3,f,mN,{[v]:Kh},[SV],[[()=>Yt,0]],1],moe=[3,f,KL,0,[or],[0],1],doe=[3,f,CJ,{[v]:Kh},[EV,sr],[[()=>ite,0],2],1],uoe=[3,f,YL,{[v]:XL},[],[]],poe=[3,f,ez,0,[i1,r1,n1],[1,1,1]],foe=[3,f,aJ,0,[v1],[[()=>poe,{[gN]:1}]]],hoe=[3,f,GL,0,[uK],[()=>goe]],goe=[3,f,rJ,0,[mQ,Lh],[0,()=>dte],2],Hc=[3,f,Cn,0,[ge,hN],[0,0],2],BN=[3,f,jn,0,[Vh],[[()=>fs,0]],1],yoe=[3,f,OJ,0,[KE,wL],[[()=>Jz,{[wz]:[Nz,fz]}],0]],xoe=[3,f,iz,0,[Ih,Rh],[[()=>aoe,{[v]:Ih}],[()=>Yie,{[v]:Rh}]]],boe=[3,f,az,0,[yc,e1],[1,0],2],Soe=[3,f,tz,0,[_J,FE,Mt,ds],[[0,{[v]:$J}],[64,{[oe]:1,[v]:$E}],0,[()=>IN,0]],2],Poe=[3,f,lz,0,[R1,yc,ar],[5,1,0]],Coe=[3,f,WJ,0,[M,bh,et,Re,L],[[0,1],[()=>Jne,{[Ie]:1,[v]:bh}],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:z}]],2],Eoe=[3,f,XJ,0,[M,Sh,et,Re,L],[[0,1],[()=>tie,{[Ie]:1,[v]:Sh}],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:z}]],2],Noe=[3,f,YJ,0,[M,ge,gL,Le,Ue,L,et,Re],[[0,1],[0,1],[()=>cae,16],[0,{[U]:Ir}],[0,{[m]:He}],[0,{[m]:z}],[0,{[m]:Ze}],[0,{[m]:Fe}]],3],woe=[3,f,JJ,0,[Xe],[[0,{[m]:Ye}]]],Roe=[3,f,tZ,0,[b1,l1,$r,Bt,kt,Tr,sr,Xe],[[0,{[m]:Uz}],[()=>_te,16],[0,{[m]:rn}],[0,{[m]:Gt}],[0,{[m]:Kt}],[()=>Yt,{[m]:nn}],[2,{[m]:sn}],[0,{[m]:Ye}]]],voe=[3,f,rZ,0,[M,d1,ge,Qo,Ks,u1,p1,f1,h1,w9,Bt,Pn,kt,g1,DE,y1,Ue,L,M1],[[0,1],[0,{[m]:Iz}],[0,1],[1,{[U]:Yh}],[0,{[U]:Km}],[0,{[m]:Mz}],[4,{[m]:Bz}],[0,{[m]:kz}],[4,{[m]:Oz}],[0,{[m]:DZ}],[0,{[m]:Gt}],[()=>Wn,{[m]:Kn}],[0,{[m]:Kt}],[0,{[m]:Dz}],[()=>Vz,{[m]:Lz}],[0,{[m]:zz}],[0,{[m]:He}],[0,{[m]:z}],[0,{[m]:jz}]],5],Toe=[3,f,nZ,0,[$r,jt,Er,Nr,wr,Rr,vr,Bt,kt,Tr,sr,Xe],[[0,{[m]:rn}],[0,{[m]:jt}],[0,{[m]:Jo}],[0,{[m]:Zo}],[0,{[m]:ea}],[0,{[m]:ta}],[0,{[m]:ra}],[0,{[m]:Gt}],[0,{[m]:Kt}],[()=>Yt,{[m]:nn}],[2,{[m]:sn}],[0,{[m]:Ye}]]],_oe=[3,f,iZ,0,[M,ge,Qo,Ks,Am,Dm,et,Re,Er,Nr,wr,Rr,vr,Bt,Pn,kt,Ue,L],[[0,1],[0,1],[1,{[U]:Yh}],[0,{[U]:Km}],[()=>Zm,16],[1,{[m]:Om}],[0,{[m]:Ze}],[0,{[m]:Fe}],[0,{[m]:Jo}],[0,{[m]:Zo}],[0,{[m]:ea}],[0,{[m]:ta}],[0,{[m]:ra}],[0,{[m]:Gt}],[()=>Wn,{[m]:Kn}],[0,{[m]:Kt}],[0,{[m]:He}],[0,{[m]:z}]],4],Aoe=[3,f,Bh,0,[nL,or],[[0,{[v]:tL}],0]],Ioe=[3,f,kh,0,[UE,WE,iN,oN],[()=>Yz,()=>Zz,()=>mU,[()=>bU,0]]],Moe=[3,f,mZ,0,[WY,QY,Am,sJ,_1,A1,TE,uc,pc,fc,hc,Dm,OE,gc,Er,Nr,wr,Rr,vr,Wo,jt,$n,Mi,ki,tN,wc,Tc,vc,_c,Hh,aN,Xe,lN,$r,Bt,Tr,kt,ar,pN,Le,sr],[[0,{[gZ]:1,[m]:Iee}],[0,{[m]:Lee}],[()=>Zm,16],[1,{[m]:bee}],[0,{[m]:zZ}],[0,{[m]:UZ}],[0,{[m]:XZ}],[0,{[m]:qZ}],[0,{[m]:HZ}],[0,{[m]:FZ}],[0,{[m]:$Z}],[1,{[m]:Om}],[0,{[m]:jZ}],[0,{[m]:GZ}],[0,{[m]:QZ}],[0,{[m]:YZ}],[0,{[m]:JZ}],[0,{[m]:ZZ}],[0,{[m]:eee}],[2,{[m]:tee}],[0,{[m]:KZ}],[4,{[m]:WZ}],[0,{[m]:ree}],[4,{[m]:VZ}],[1,{[m]:nee}],[128,{[Bc]:qc}],[0,{[m]:oee}],[0,{[m]:see}],[5,{[m]:aee}],[1,{[m]:iee}],[0,{[m]:mee}],[0,{[m]:lee}],[0,{[m]:cee}],[0,{[m]:uee}],[0,{[m]:hee}],[()=>Yt,{[m]:pee}],[0,{[m]:gee}
44],[0,{[m]:dee}],[1,{[m]:yee}],[0,{[m]:xee}],[2,{[m]:fee}]],2],he="unit";var Boe=[1,f,VD,0,[()=>wN,0]],hU=[1,f,ME,0,[()=>fte,{[v]:M}]];var Zh=[1,f,b9,0,()=>bte],koe=[1,f,S9,0,()=>Pte],gU=[1,f,BE,0,[()=>Ite,0]],Ooe=[1,f,vK,0,()=>ore],Doe=[1,f,E1,0,()=>are],Loe=[1,f,FK,0,[0,{[v]:qE}]],zoe=[1,f,O1,0,()=>Pre];var Uoe=[1,f,VK,0,()=>Nre],eg=[1,f,zh,0,[()=>zne,{[v]:GE}]],qoe=[1,f,W1,0,[()=>vN,0]],Hoe=[1,f,j1,0,[()=>TN,0]],Foe=[1,f,nV,0,[0,{[v]:QK}]],$oe=[1,f,YV,0,[()=>iie,0]],yU=[1,f,EX,0,[()=>oie,0]],joe=[1,f,Z1,0,[()=>AN,0]],Goe=[1,f,BX,0,()=>Uie],Koe=[1,f,KX,0,()=>Hie];var Woe=[1,f,ZX,0,()=>$ie],xU=[1,f,sQ,0,[()=>Fie,0]],Voe=[1,f,uQ,0,[()=>Kie,0]];var Xoe=[1,f,QX,0,()=>Vie],Qoe=[1,f,$h,0,()=>Qie],Yoe=[1,f,rY,0,()=>Gie],Joe=[1,f,vY,0,[()=>kse,0]],Zoe=[1,f,KY,0,[()=>qse,0]],bU=[1,f,oN,0,[()=>Xse,{[v]:qL}]],eae=[1,f,NJ,0,[()=>soe,0]],fs=[1,f,Vh,0,[()=>Hc,{[v]:Cn}]],tae=[1,f,rz,0,[()=>yoe,{[v]:GE}]],rae=[1,f,DJ,0,()=>boe],nae=[1,f,MJ,0,[()=>Soe,0]],iae=[1,f,LJ,0,()=>Poe],sae=[1,f,dz,0,[()=>kie,{[v]:rL}]];var oae=[4,f,RG,0,[Ve,Cn,_m],[0,()=>Hc,[()=>mte,0]]],aae=[4,f,AX,0,[Ve,Cn,JD,_m],[0,()=>Hc,0,[()=>zie,0]]],cae=[4,f,gL,0,[mN],[[()=>doe,{[v]:Kh}]]],lae=[4,f,yJ,{[Ez]:1},[JY,ez,vL,k9,k1],[[()=>Ose,0],[()=>foe,0],[()=>ese,0],()=>wte,()=>Sre]],SU=[9,f,IG,{[O]:["DELETE","/{Key+}?x-id=AbortMultipartUpload",204]},()=>ate,()=>ote],PU=[9,f,o1,{[O]:["POST","/{Key+}",200]},()=>Ete,()=>Cte],uqe=[9,f,h9,{[O]:["PUT","/{Key+}?x-id=CopyObject",200]},()=>vte,()=>Rte],pqe=[9,f,YG,{[O]:["PUT","/",200]},()=>Dte,()=>Ote],fqe=[9,f,JG,{[qe]:"-",[O]:["POST","/?metadataConfiguration",200]},()=>Bte,()=>he],hqe=[9,f,e9,{[qe]:"-",[O]:["POST","/?metadataTable",200]},()=>kte,()=>he],CU=[9,f,f9,{[O]:["POST","/{Key+}?uploads",200]},()=>zte,()=>Lte],EU=[9,f,_9,{[O]:["GET","/?session",200]},()=>qte,()=>Ute],gqe=[9,f,D9,{[O]:["DELETE","/",204]},()=>nre,()=>he],yqe=[9,f,L9,{[O]:["DELETE","/?analytics",204]},()=>Gte,()=>he],xqe=[9,f,U9,{[O]:["DELETE","/?cors",204]},()=>Kte,()=>he],bqe=[9,f,H9,{[O]:["DELETE","/?encryption",204]},()=>Wte,()=>he],Sqe=[9,f,G9,{[O]:["DELETE","/?intelligent-tiering",204]},()=>Vte,()=>he],Pqe=[9,f,$9,{[O]:["DELETE","/?inventory",204]},()=>Xte,()=>he],Cqe=[9,f,W9,{[O]:["DELETE","/?lifecycle",204]},()=>Qte,()=>he],Eqe=[9,f,X9,{[O]:["DELETE","/?metadataConfiguration",204]},()=>Yte,()=>he],Nqe=[9,f,Z9,{[O]:["DELETE","/?metadataTable",204]},()=>Jte,()=>he],wqe=[9,f,J9,{[O]:["DELETE","/?metrics",204]},()=>Zte,()=>he],Rqe=[9,f,tK,{[O]:["DELETE","/?ownershipControls",204]},()=>ere,()=>he],vqe=[9,f,nK,{[O]:["DELETE","/?policy",204]},()=>tre,()=>he],Tqe=[9,f,aK,{[O]:["DELETE","/?replication",204]},()=>rre,()=>he],_qe=[9,f,cK,{[O]:["DELETE","/?tagging",204]},()=>ire,()=>he],Aqe=[9,f,mK,{[O]:["DELETE","/?website",204]},()=>sre,()=>he],Iqe=[9,f,TK,{[O]:["DELETE","/{Key+}?x-id=DeleteObject",204]},()=>mre,()=>lre],Mqe=[9,f,_K,{[qe]:"-",[O]:["POST","/?delete",200]},()=>ure,()=>dre],Bqe=[9,f,NK,{[O]:["DELETE","/{Key+}?tagging",204]},()=>fre,()=>pre],kqe=[9,f,AK,{[O]:["DELETE","/?publicAccessBlock",204]},()=>hre,()=>he],Oqe=[9,f,JK,{[O]:["GET","/?abac",200]},()=>Rre,()=>wre],Dqe=[9,f,ZK,{[O]:["GET","/?accelerate",200]},()=>Tre,()=>vre],Lqe=[9,f,lW,{[O]:["GET","/?acl",200]},()=>Are,()=>_re],zqe=[9,f,iW,{[O]:["GET","/?analytics&x-id=GetBucketAnalyticsConfiguration",200]},()=>Mre,()=>Ire],Uqe=[9,f,mW,{[O]:["GET","/?cors",200]},()=>kre,()=>Bre],qqe=[9,f,pW,{[O]:["GET","/?encryption",200]},()=>Dre,()=>Ore],Hqe=[9,f,bW,{[O]:["GET","/?intelligent-tiering&x-id=GetBucketIntelligentTieringConfiguration",200]},()=>zre,()=>Lre],Fqe=[9,f,gW,{[O]:["GET","/?inventory&x-id=GetBucketInventoryConfiguration",200]},()=>qre,()=>Ure],$qe=[9,f,EW,{[O]:["GET","/?lifecycle",200]},()=>Fre,()=>Hre],jqe=[9,f,CW,{[O]:["GET","/?location",200]},()=>jre,()=>$re],Gqe=[9,f,AW,{[O]:["GET","/?logging",200]},()=>Kre,()=>Gre],Kqe=[9,f,IW,{[O]:["GET","/?metadataConfiguration",200]},()=>Vre,()=>Wre],Wqe=[9,f,LW,{[O]:["GET","/?metadataTable",200]},()=>Yre,()=>Qre],Vqe=[9,f,DW,{[O]:["GET","/?metrics&x-id=GetBucketMetricsConfiguration",200]},()=>ene,()=>Zre],Xqe=[9,f,qW,{[O]:["GET","/?notification",200]},()=>tne,()=>
44nU],Qqe=[9,f,FW,{[O]:["GET","/?ownershipControls",200]},()=>nne,()=>rne],Yqe=[9,f,GW,{[O]:["GET","/?policy",200]},()=>sne,()=>ine],Jqe=[9,f,VW,{[O]:["GET","/?policyStatus",200]},()=>ane,()=>one],Zqe=[9,f,YW,{[O]:["GET","/?replication",200]},()=>lne,()=>cne],e3e=[9,f,ZW,{[O]:["GET","/?requestPayment",200]},()=>dne,()=>mne],t3e=[9,f,n7,{[O]:["GET","/?tagging",200]},()=>pne,()=>une],r3e=[9,f,o7,{[O]:["GET","/?versioning",200]},()=>hne,()=>fne],n3e=[9,f,l7,{[O]:["GET","/?website",200]},()=>yne,()=>gne],i3e=[9,f,u7,{[qe]:"-",[O]:["GET","/{Key+}?x-id=GetObject",200]},()=>Tne,()=>vne],s3e=[9,f,p7,{[O]:["GET","/{Key+}?acl",200]},()=>bne,()=>xne],o3e=[9,f,S7,{[O]:["GET","/{Key+}?attributes",200]},()=>Cne,()=>Sne],a3e=[9,f,N7,{[O]:["GET","/{Key+}?legal-hold",200]},()=>Nne,()=>Ene],c3e=[9,f,P7,{[O]:["GET","/?object-lock",200]},()=>Rne,()=>wne],l3e=[9,f,I7,{[O]:["GET","/{Key+}?retention",200]},()=>Ane,()=>_ne],m3e=[9,f,M7,{[O]:["GET","/{Key+}?tagging",200]},()=>Mne,()=>Ine],d3e=[9,f,L7,{[O]:["GET","/{Key+}?torrent",200]},()=>kne,()=>Bne],u3e=[9,f,z7,{[O]:["GET","/?publicAccessBlock",200]},()=>Dne,()=>One],p3e=[9,f,H7,{[O]:["HEAD","/",200]},()=>qne,()=>Une],f3e=[9,f,G7,{[O]:["HEAD","/{Key+}",200]},()=>Fne,()=>Hne],h3e=[9,f,AV,{[O]:["GET","/?analytics&x-id=ListBucketAnalyticsConfigurations",200]},()=>mie,()=>lie],g3e=[9,f,LV,{[O]:["GET","/?intelligent-tiering&x-id=ListBucketIntelligentTieringConfigurations",200]},()=>uie,()=>die],y3e=[9,f,kV,{[O]:["GET","/?inventory&x-id=ListBucketInventoryConfigurations",200]},()=>fie,()=>pie],x3e=[9,f,qV,{[O]:["GET","/?metrics&x-id=ListBucketMetricsConfigurations",200]},()=>gie,()=>hie],b3e=[9,f,_V,{[O]:["GET","/?x-id=ListBuckets",200]},()=>xie,()=>yie],S3e=[9,f,GV,{[O]:["GET","/?x-id=ListDirectoryBuckets",200]},()=>Sie,()=>bie],P3e=[9,f,nX,{[O]:["GET","/?uploads",200]},()=>Cie,()=>Pie],C3e=[9,f,aX,{[O]:["GET","/",200]},()=>Nie,()=>Eie],E3e=[9,f,mX,{[O]:["GET","/?list-type=2",200]},()=>Rie,()=>wie],N3e=[9,f,hX,{[O]:["GET","/?versions",200]},()=>Tie,()=>vie],w3e=[9,f,gX,{[O]:["GET","/{Key+}?x-id=ListParts",200]},()=>Aie,()=>_ie],R3e=[9,f,fQ,{[qe]:"-",[O]:["PUT","/?abac",200]},()=>tse,()=>he],v3e=[9,f,hQ,{[qe]:"-",[O]:["PUT","/?accelerate",200]},()=>rse,()=>he],T3e=[9,f,PQ,{[qe]:"-",[O]:["PUT","/?acl",200]},()=>nse,()=>he],_3e=[9,f,xQ,{[O]:["PUT","/?analytics",200]},()=>ise,()=>he],A3e=[9,f,CQ,{[qe]:"-",[O]:["PUT","/?cors",200]},()=>sse,()=>he],I3e=[9,f,NQ,{[qe]:"-",[O]:["PUT","/?encryption",200]},()=>ose,()=>he],M3e=[9,f,TQ,{[O]:["PUT","/?intelligent-tiering",200]},()=>ase,()=>he],B3e=[9,f,RQ,{[O]:["PUT","/?inventory",200]},()=>cse,()=>he],k3e=[9,f,IQ,{[qe]:"-",[O]:["PUT","/?lifecycle",200]},()=>mse,()=>lse],O3e=[9,f,AQ,{[qe]:"-",[O]:["PUT","/?logging",200]},()=>dse,()=>he],D3e=[9,f,OQ,{[O]:["PUT","/?metrics",200]},()=>use,()=>he],L3e=[9,f,LQ,{[O]:["PUT","/?notification",200]},()=>pse,()=>he],z3e=[9,f,UQ,{[qe]:"-",[O]:["PUT","/?ownershipControls",200]},()=>fse,()=>he],U3e=[9,f,HQ,{[qe]:"-",[O]:["PUT","/?policy",200]},()=>hse,()=>he],q3e=[9,f,$Q,{[qe]:"-",[O]:["PUT","/?replication",200]},()=>gse,()=>he],H3e=[9,f,jQ,{[qe]:"-",[O]:["PUT","/?requestPayment",200]},()=>yse,()=>he],F3e=[9,f,WQ,{[qe]:"-",[O]:["PUT","/?tagging",200]},()=>xse,()=>he],$3e=[9,f,XQ,{[qe]:"-",[O]:["PUT","/?versioning",200]},()=>bse,()=>he],j3e=[9,f,YQ,{[qe]:"-",[O]:["PUT","/?website",200]},()=>Sse,()=>he],NU=[9,f,nY,{[qe]:"-",[O]:["PUT","/{Key+}?x-id=PutObject",200]},()=>Tse,()=>vse],G3e=[9,f,iY,{[qe]:"-",[O]:["PUT","/{Key+}?acl",200]},()=>Cse,()=>Pse],K3e=[9,f,mY,{[qe]:"-",[O]:["PUT","/{Key+}?legal-hold",200]},()=>Nse,()=>Ese],W3e=[9,f,aY,{[qe]:"-",[O]:["PUT","/?object-lock",200]},()=>Rse,()=>wse],V3e=[9,f,yY,{[qe]:"-",[O]:["PUT","/{Key+}?retention",200]},()=>Ase,()=>_se],wU=[9,f,xY,{[qe]:"-",[O]:["PUT","/{Key+}?tagging",200]},()=>Mse,()=>Ise],X3e=[9,f,PY,{[qe]:"-",[O]:["PUT","/?publicAccessBlock",200]},()=>Bse,()=>he],Q3e=[9,f,DY,{[O]:["PUT","/{Key+}?renameObject",200]},()=>zse,()=>Lse],Y3e=[9,f,FY,{[qe]:"-",[O]:["POST","/{Key+}?restore",200]},()=>Wse,()=>Kse],J3e=[9,f,gJ,{[O]:["POST","/{Key+}?select&select-type=2",200]},()=>roe,()=>toe],Z3e=[9,f,KJ,{[qe]:"-",[O]:["PUT","/?metadataInventoryTable",200]},()=>Coe,()=>he],eHe=[9,f,VJ,{[qe]:"-",[O]:["PUT","/?metadataJournalTable",200]},()=>Eoe,()=>he],tHe=[9,f,QJ,{[qe]:"-",[O]:["PUT","/{Key+}?encryption",200]},()=>Noe,()=>woe],RU=[9,f,ZJ,{[qe]:"-",[O]:["PUT","/{Key+}?x-id=UploadPart",200]},()=>_oe,()=>Toe],rHe=[9,f,eZ,{[O]:["PUT","/{Key+}?x-id=UploadPartCopy",200]},()=>voe,()=>Roe],nHe=[9,f,lZ,{[fZ]:["{RequestRoute}."],[O]:["POST","/WriteGetObjectResponse",200]},()=>Moe,()=>he];var tg=class extends Xt.classBuilder().ep(E(x({},Hr),{DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}
44)).m(function(e,t,n,i){return[Ur(n,e.getEndpointParameterInstructions()),zr(n)]}).s("AmazonS3","CreateSession",{}).n("S3Client","CreateSessionCommand").sc(EU).build(){};var vU={name:"@aws-sdk/client-s3",description:"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",version:"3.994.0",scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-s3","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3",test:"yarn g:vitest run","test:browser":"node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.mts","test:browser:watch":"node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.mts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts && yarn test:browser","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs","test:integration":"yarn g:vitest run -c vitest.config.integ.mts","test:integration:watch":"yarn g:vitest watch -c vitest.config.integ.mts","test:watch":"yarn g:vitest watch"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":"5.2.0","@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.11","@aws-sdk/credential-provider-node":"^3.972.10","@aws-sdk/middleware-bucket-endpoint":"^3.972.3","@aws-sdk/middleware-expect-continue":"^3.972.3","@aws-sdk/middleware-flexible-checksums":"^3.972.9","@aws-sdk/middleware-host-header":"^3.972.3","@aws-sdk/middleware-location-constraint":"^3.972.3","@aws-sdk/middleware-logger":"^3.972.3","@aws-sdk/middleware-recursion-detection":"^3.972.3","@aws-sdk/middleware-sdk-s3":"^3.972.11","@aws-sdk/middleware-ssec":"^3.972.3","@aws-sdk/middleware-user-agent":"^3.972.11","@aws-sdk/region-config-resolver":"^3.972.3","@aws-sdk/signature-v4-multi-region":"3.994.0","@aws-sdk/types":"^3.973.1","@aws-sdk/util-endpoints":"3.994.0","@aws-sdk/util-user-agent-browser":"^3.972.3","@aws-sdk/util-user-agent-node":"^3.972.9","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.23.2","@smithy/eventstream-serde-browser":"^4.2.8","@smithy/eventstream-serde-config-resolver":"^4.3.8","@smithy/eventstream-serde-node":"^4.2.8","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-blob-browser":"^4.2.9","@smithy/hash-node":"^4.2.8","@smithy/hash-stream-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/md5-js":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.16","@smithy/middleware-retry":"^4.4.33","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.10","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.11.5","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.32","@smithy/util-defaults-mode-node":"^4.2.35","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-stream":"^4.5.12","@smithy/util-utf8":"^4.2.0","@smithy/util-waiter":"^4.2.8",tslib:"^2.6.2"},devDependencies:{"@aws-sdk/signature-v4-crt":"3.994.0","@tsconfig/node20":"20.1.8","@types/node":"^20.14.8",concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~5.8.3"},engines:{node:">=20.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-s3"}};var kN=r=>new TextEncoder().encode(r);function ON(r){return typeof r=="string"?r.length===0:r.byteLength===0}var DN={name:"SHA-1"},LN={name:"HMAC",hash:DN},TU=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]);var dae={};function Nn(){return typeof window<"u"?window:typeof self<"u"?self:dae}var zN=function(){function r(e){this.toHash=new Uint8Array(0),e!==void 0&&(this.key=new Promise(function(t,n){Nn().crypto.subtle.importKey("raw",_U(e),LN,!1,["sign"]).then(t,n)}),this.key.catch(function(){}))}return r.prototype.update=function(e){if(!ON(e)){var t=_U(e),n=new Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.toHash.byteLength),this.toHash=n}},r.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return Nn().crypto.subtle.sign(LN,t,e.toHash).then(function(n){return new Uint8Array(n)})}):ON(this.toHash)?Promise.resolve(TU):Promise.resolve().then(function(){return Nn().crypto.subtle.digest(DN,e.toHash)}).then(function(t){return Promise.resolve(new Uint8Array(t))})},r.prototype.reset=function(){this.toHash=new Uint8Array(0)},r}();function _U(r){return typeof r=="string"?kN(r):ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(r)}var uae=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function rg(r){if(pae(r)&&typeof r.crypto.subtle=="object"){var e=r.crypto.subtle;return fae(e)}return!1}function pae(r){if(typeof r=="object"&&typeof r.crypto=="object"){var e=r.crypto.getRandomValues;return typeof e=="function"}return!1}function fae(r){return r&&uae.every(function(e){return typeof r[e]=="function"})}var AU=function(){function r(e){if(rg(Nn()))this.hash=new zN(e);else throw new Error("SHA1 not supported")}return r.prototype.update=function(e,t){this.hash.update(Pr(e))},r.prototype.digest=function(){return this.hash.digest()},r.prototype.reset=function(){this.hash.reset()},r}();var UN={name:"SHA-256"},qN={name:"HMAC",hash:UN},IU=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]);var HN=function(){function r(e){this.toHash=new Uint8Array(0),this.secret=e,this.reset()}return r.prototype.update=function(e){if(!Ti(e)){var t=Pr(e),n=new Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.toHash.byteLength),this.toHash=n}},r.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return Nn().crypto.subtle.sign(qN,t,e.toHash).then(function(n){return new Uint8Array(n)})}):Ti(this.toHash)?Promise.resolve(IU):Promise.resolve().then(function(){return Nn().crypto.subtle.digest(UN,e.toHash)}).then(function(t){return Promise.resolve(new Uint8Array(t))})},r.prototype.reset=function(){var e=this;this.toHash=new Uint8Array(0),this.secret&&this.secret!==void 0&&(this.key=new Promise(function(t,n){Nn().crypto.subtle.importKey("raw",Pr(e.secret),qN,!1,["sign"]).then(t,n)}),this.key.catch(function(){}))},r}();var Gr=64,MU=32,BU=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
44734187,3204031479,3329325298]),kU=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],OU=Math.pow(2,53)-1;var ed=function(){function r(){this.state=Int32Array.from(kU),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return r.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=0,n=e.byteLength;if(this.bytesHashed+=n,this.bytesHashed*8>OU)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===Gr&&(this.hashBuffer(),this.bufferLength=0)},r.prototype.digest=function(){if(!this.finished){var e=this.bytesHashed*8,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%Gr>=Gr-8){for(var i=this.bufferLength;i<Gr;i++)t.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(var i=this.bufferLength;i<Gr-8;i++)t.setUint8(i,0);t.setUint32(Gr-8,Math.floor(e/4294967296),!0),t.setUint32(Gr-4,e),this.hashBuffer(),this.finished=!0}for(var s=new Uint8Array(MU),i=0;i<8;i++)s[i*4]=this.state[i]>>>24&255,s[i*4+1]=this.state[i]>>>16&255,s[i*4+2]=this.state[i]>>>8&255,s[i*4+3]=this.state[i]>>>0&255;return s},r.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,n=e.state,i=n[0],s=n[1],o=n[2],a=n[3],c=n[4],l=n[5],d=n[6],u=n[7],h=0;h<Gr;h++){if(h<16)this.temp[h]=(t[h*4]&255)<<24|(t[h*4+1]&255)<<16|(t[h*4+2]&255)<<8|t[h*4+3]&255;else{var g=this.temp[h-2],y=(g>>>17|g<<15)^(g>>>19|g<<13)^g>>>10;g=this.temp[h-15];var S=(g>>>7|g<<25)^(g>>>18|g<<14)^g>>>3;this.temp[h]=(y+this.temp[h-7]|0)+(S+this.temp[h-16]|0)}var C=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&l^~c&d)|0)+(u+(BU[h]+this.temp[h]|0)|0)|0,N=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&s^i&o^s&o)|0;u=d,d=l,l=c,c=a+C|0,a=o,o=s,s=i,i=C+N|0}n[0]+=i,n[1]+=s,n[2]+=o,n[3]+=a,n[4]+=c,n[5]+=l,n[6]+=d,n[7]+=u},r}();var DU=function(){function r(e){this.secret=e,this.hash=new ed,this.reset()}return r.prototype.update=function(e){if(!(Ti(e)||this.error))try{this.hash.update(Pr(e))}catch(t){this.error=t}},r.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},r.prototype.digest=function(){return ua(this,void 0,void 0,function(){return pa(this,function(e){return[2,this.digestSync()]})})},r.prototype.reset=function(){if(this.hash=new ed,this.secret){this.outer=new ed;var e=hae(this.secret),t=new Uint8Array(Gr);t.set(e);for(var n=0;n<Gr;n++)e[n]^=54,t[n]^=92;this.hash.update(e),this.outer.update(t);for(var n=0;n<e.byteLength;n++)e[n]=0}},r}();function hae(r){var e=Pr(r);if(e.byteLength>Gr){var t=new ed;t.update(e),e=t.digest()}var n=new Uint8Array(Gr);return n.set(e),n}var LU=function(){function r(e){rg(Nn())?this.hash=new HN(e):this.hash=new DU(e)}return r.prototype.update=function(e,t){this.hash.update(Pr(e))},r.prototype.digest=function(){return this.hash.digest()},r.prototype.reset=function(){this.hash.reset()},r}();var UU=({serviceId:r,clientVersion:e})=>t=>p(null,null,function*(){let n=typeof window<"u"?window.navigator:void 0,i=n?.userAgent??"",s=n?.userAgentData?.platform??zU.os(i)??"other",o=void 0,a=n?.userAgentData?.brands??[],c=a[a.length-1],l=c?.brand??zU.browser(i)??"unknown",d=c?.version??"unknown",u=[["aws-sdk-js",e],["ua","2.1"],[`os/${s}`,o],["lang/js"],["md/browser",`${l}_${d}`]];r&&u.push([`api/${r}`,e]);let h=yield t?.userAgentAppId?.();return h&&u.push([`app/${h}`]),u}),zU={os(r){if(/iPhone|iPad|iPod/.test(r))return"iOS";if(/Macintosh|Mac OS X/.test(r))return"macOS";if(/Windows NT/.test(r))return"Windows";if(/Android/.test(r))return"Android";if(/Linux/.test(r))return"Linux"},browser(r){if(/EdgiOS|EdgA|Edg\//.test(r))return"Microsoft Edge";if(/Firefox\//.test(r))return"Firefox";if(/Chrome\//.test(r))return"Chrome";if(/Safari\//.test(r))return"Safari"}};var Fc=class r{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let n=7,i=Math.abs(Math.round(e));n>-1&&i>0;n--,i/=256)t[n]=i;return e<0&&qU(t),new r(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&qU(e),parseInt(pt(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function qU(r){for(let e=0;e<8;e++)r[e]^=255;for(let e=7;e>-1&&(r[e]++,r[e]===0);e--);}var ng=class{toUtf8;fromUtf8;constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){let t=[];for(let s of Object.keys(e)){let o=this.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let n=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),i=0;for(let s of t)n.set(s,i),i+=s.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let i=new Uint8Array(9);return i[0]=5,i.set(e.value.bytes,1),i;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=this.fromUtf8(e.value),c=new DataView(new ArrayBuffer(3+a.byteLength));c.setUint8(0,7),c.setUint16(1,a.byteLength,!1);let l=new Uint8Array(c.buffer);return l.set(a,3),l;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(Fc.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!Nae.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let u=new Uint8Array(17);return u[0]=9,u.set(Xp(e.value.replace(/\-/g,"")),1),u}}parse(e){let t={},n=0;for(;n<e.byteLength;
44){let i=e.getUint8(n++),s=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,i));switch(n+=i,e.getUint8(n++)){case 0:t[s]={type:HU,value:!0};break;case 1:t[s]={type:HU,value:!1};break;case 2:t[s]={type:gae,value:e.getInt8(n++)};break;case 3:t[s]={type:yae,value:e.getInt16(n,!1)},n+=2;break;case 4:t[s]={type:xae,value:e.getInt32(n,!1)},n+=4;break;case 5:t[s]={type:bae,value:new Fc(new Uint8Array(e.buffer,e.byteOffset+n,8))},n+=8;break;case 6:let o=e.getUint16(n,!1);n+=2,t[s]={type:Sae,value:new Uint8Array(e.buffer,e.byteOffset+n,o)},n+=o;break;case 7:let a=e.getUint16(n,!1);n+=2,t[s]={type:Pae,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,a))},n+=a;break;case 8:t[s]={type:Cae,value:new Date(new Fc(new Uint8Array(e.buffer,e.byteOffset+n,8)).valueOf())},n+=8;break;case 9:let c=new Uint8Array(e.buffer,e.byteOffset+n,16);n+=16,t[s]={type:Eae,value:`${pt(c.subarray(0,4))}-${pt(c.subarray(4,6))}-${pt(c.subarray(6,8))}-${pt(c.subarray(8,10))}-${pt(c.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return t}};var HU="boolean",gae="byte",yae="short",xae="integer",bae="long",Sae="binary",Pae="string",Cae="timestamp",Eae="uuid",Nae=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;var FU=4,Xs=FU*2,na=4,wae=Xs+na*2;function $U({byteLength:r,byteOffset:e,buffer:t}){if(r<wae)throw new Error("Provided message too short to accommodate event stream message overhead");let n=new DataView(t,e,r),i=n.getUint32(0,!1);if(r!==i)throw new Error("Reported message length does not match received message length");let s=n.getUint32(FU,!1),o=n.getUint32(Xs,!1),a=n.getUint32(r-na,!1),c=new Fo().update(new Uint8Array(t,e,Xs));if(o!==c.digest())throw new Error(`The prelude checksum specified in the message (${o}) does not match the calculated CRC32 checksum (${c.digest()})`);if(c.update(new Uint8Array(t,e+Xs,r-(Xs+na))),a!==c.digest())throw new Error(`The message checksum (${c.digest()}) did not match the expected value of ${a}`);return{headers:new DataView(t,e+Xs+na,s),body:new Uint8Array(t,e+Xs+na+s,i-s-(Xs+na+na))}}var ig=class{headerMarshaller;messageBuffer;isEndOfStream;constructor(e,t){this.headerMarshaller=new ng(e,t),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){let e=this.messageBuffer.pop(),t=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return t}}}getAvailableMessages(){let e=this.messageBuffer;this.messageBuffer=[];let t=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return t}}}encode({headers:e,body:t}){let n=this.headerMarshaller.format(e),i=n.byteLength+t.byteLength+16,s=new Uint8Array(i),o=new DataView(s.buffer,s.byteOffset,s.byteLength),a=new Fo;return o.setUint32(0,i,!1),o.setUint32(4,n.byteLength,!1),o.setUint32(8,a.update(s.subarray(0,8)).digest(),!1),s.set(n,12),s.set(t,n.byteLength+12),o.setUint32(i-4,a.update(s.subarray(8,i-4)).digest(),!1),s}decode(e){let{headers:t,body:n}=$U(e);return{headers:this.headerMarshaller.parse(t),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}};var sg=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}asyncIterator(){return $e(this,null,function*(){try{for(var e=bt(this.options.inputStream),t,n,i;t=!(n=yield new be(e.next())).done;t=!1){let s=n.value;yield this.options.decoder.decode(s)}}catch{i=[n]}finally{try{t&&(n=e.return)&&(yield new be(n.call(e)))}finally{if(i)throw i[0]}}})}};var og=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}asyncIterator(){return $e(this,null,function*(){try{for(var e=bt(this.options.messageStream),t,n,i;t=!(n=yield new be(e.next())).done;t=!1){let s=n.value;yield this.options.encoder.encode(s)}}catch{i=[n]}finally{try{t&&(n=e.return)&&(yield new be(n.call(e)))}finally{if(i)throw i[0]}}this.options.includeEndFrame&&(yield new Uint8Array(0))})}};var ag=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}asyncIterator(){return $e(this,null,function*(){try{for(var e=bt(this.options.messageStream),t,n,i;t=!(n=yield new be(e.next())).done;t=!1){let s=n.value;let o=yield new be(this.options.deserializer(s));o!==void 0&&(yield o)}}catch{i=[n]}finally{try{t&&(n=e.return)&&(yield new be(n.call(e)))}finally{if(i)throw i[0]}}})}};var cg=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}asyncIterator(){return $e(this,null,function*(){try{for(var e=bt(this.options.inputStream),t,n,i;t=!(n=yield new be(e.next())).done;t=!1){let s=n.value;yield this.options.serializer(s)}}catch{i=[n]}finally{try{t&&(n=e.return)&&(yield new be(n.call(e)))}finally{if(i)throw i[0]}}})}};
44function jU(r){let e=0,t=0,n=null,i=null,s=a=>{if(typeof a!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+a);e=a,t=4,n=new Uint8Array(a),new DataView(n.buffer).setUint32(0,a,!1)},o=function(){return $e(this,null,function*(){let a=r[Symbol.asyncIterator]();for(;;){let{value:c,done:l}=yield new be(a.next());if(l){if(e)if(e===t)yield n;else throw new Error("Truncated event message received.");else return;return}let d=c.length,u=0;for(;u<d;){if(!n){let g=d-u;i||(i=new Uint8Array(4));let y=Math.min(4-t,g);if(i.set(c.slice(u,u+y),t),t+=y,u+=y,t<4)break;s(new DataView(i.buffer).getUint32(0,!1)),i=null}let h=Math.min(e-t,d-u);n.set(c.slice(u,u+h),t),t+=h,u+=h,e&&e===t&&(yield n,n=null,e=0,t=0)}}})};return{[Symbol.asyncIterator]:o}}function GU(r,e){return function(t){return p(this,null,function*(){let{value:n}=t.headers[":message-type"];if(n==="error"){let i=new Error(t.headers[":error-message"].value||"UnknownError");throw i.name=t.headers[":error-code"].value,i}else if(n==="exception"){let i=t.headers[":exception-type"].value,s={[i]:t},o=yield r(s);if(o.$unknown){let a=new Error(e(t.body));throw a.name=i,a}throw o[i]}else if(n==="event"){let i={[t.headers[":event-type"].value]:t},s=yield r(i);return s.$unknown?void 0:s}else throw Error(`Unrecognizable event type: ${t.headers[":event-type"].value}`)})}}var lg=class{eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:t}){this.eventStreamCodec=new ig(e,t),this.utfEncoder=e}deserialize(e,t){let n=jU(e);return new ag({messageStream:new sg({inputStream:n,decoder:this.eventStreamCodec}),deserializer:GU(t,this.utfEncoder)})}serialize(e,t){return new og({messageStream:new cg({inputStream:e,serializer:t}),encoder:this.eventStreamCodec,includeEndFrame:!0})}};var KU=r=>({[Symbol.asyncIterator]:function(){return $e(this,null,function*(){let e=r.getReader();try{for(;;){let{done:t,value:n}=yield new be(e.read());if(t)return;yield n}}finally{e.releaseLock()}})}}),WU=r=>{let e=r[Symbol.asyncIterator]();return new ReadableStream({pull(n){return p(this,null,function*(){let{done:i,value:s}=yield e.next();if(i)return n.close();n.enqueue(s)})}})};var mg=class{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new lg({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){let n=Rae(e)?KU(e):e;return this.universalMarshaller.deserialize(n,t)}serialize(e,t){let n=this.universalMarshaller.serialize(e,t);return typeof ReadableStream=="function"?WU(n):n}},Rae=r=>typeof ReadableStream=="function"&&r instanceof ReadableStream;var VU=r=>new mg(r);function XU(n,i){return p(this,arguments,function*(r,e,t=1024*1024){let s=r.size,o=0;for(;o<s;){let a=r.slice(o,Math.min(s,o+t));e(new Uint8Array(yield a.arrayBuffer())),o+=a.size}})}var QU=function(e,t){return p(this,null,function*(){let n=new e;return yield XU(t,i=>{n.update(i)}),n.digest()})};var YU=r=>()=>Promise.reject(r);var JU=[1732584193,4023233417,2562383102,271733878];var dg=class{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(e){if(Tae(e))return;if(this.finished)throw new Error("Attempted to update an already finished hash.");let t=_ae(e),n=0,{byteLength:i}=t;for(this.bytesHashed+=i;i>0;)this.buffer.setUint8(this.bufferLength++,t[n++]),i--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)}digest(){return p(this,null,function*(){if(!this.finished){let{buffer:t,bufferLength:n,bytesHashed:i}=this,s=i*8;if(t.setUint8(this.bufferLength++,128),n%64>=56){for(let o=this.bufferLength;o<64;o++)t.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(let o=this.bufferLength;o<56;o++)t.setUint8(o,0);t.setUint32(56,s>>>0,!0),t.setUint32(60,Math.floor(s/4294967296),!0),this.hashBuffer(),this.finished=!0}let e=new DataView(new ArrayBuffer(16));for(let t=0;t<4;t++)e.setUint32(t*4,this.state[t],!0);return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)})}hashBuffer(){let{buffer:e,state:t}=this,n=t[0],i=t[1],s=t[2],o=t[3];n=lr(n,i,s,o,e.getUint32(0,!0),7,3614090360),o=lr(o,n,i,s,e.getUint32(4,!0),12,3905402710),s=lr(s,o,n,i,e.getUint32(8,!0),17,606105819),i=lr(i,s,o,n,e.getUint32(12,!0),22,3250441966),n=lr(n,i,s,o,e.getUint32(16,!0),7,4118548399),o=lr(o,n,i,s,e.getUint32(20,!0),12,1200080426),s=lr(s,o,n,i,e.getUint32(24,!0),17,2821735955),i=lr(i,s,o,n,e.getUint32(28,!0),22,4249261313),n=lr(n,i,s,o,e.getUint32(32,!0),7,1770035416),o=lr(o,n,i,s,e.getUint32(36,!0),12,2336552879),s=lr(s,o,n,i,e.getUint32(40,!0),17,4294925233),i=lr(i,s,o,n,e.getUint32(44,!0),22,2304563134),n=lr(n,i,s,o,e.getUint32(48,!0),7,1804603682),o=lr(o,n,i,s,e.getUint32(52,!0),12,4254626195),s=lr(s,o,n,i,e.getUint32(56,!0),17,2792965006),i=lr(i,s,o,n,e.getUint32(60,!0),22,1236535329),n=mr(n,i,s,o,e.getUint32(4,!0),5,4129170786),o=mr(o,n,i,s,e.getUint32(24,!0),9,3225465664),s=mr(s,o,n,i,e.getUint32(44,!0),14,643717713),i=mr(i,s,o,n,e.getUint32(0,!0),20,3921069994),n=mr(n,i,s,o,e.getUint32(20,!0),5,3593408605),o=mr(o,n,i,s,e.getUint32(40,!0),9,38016083),s=mr(s,o,n,i,e.getUint32(60,!0),14,3634488961),i=mr(i,s,o,n,e.getUint32(16,!0),20,3889429448),n=mr(n,i,s,o,e.getUint32(36,!0),5,568446438),o=mr(o,n,i,s,e.getUint32(56,!0),9,327
445163606),s=mr(s,o,n,i,e.getUint32(12,!0),14,4107603335),i=mr(i,s,o,n,e.getUint32(32,!0),20,1163531501),n=mr(n,i,s,o,e.getUint32(52,!0),5,2850285829),o=mr(o,n,i,s,e.getUint32(8,!0),9,4243563512),s=mr(s,o,n,i,e.getUint32(28,!0),14,1735328473),i=mr(i,s,o,n,e.getUint32(48,!0),20,2368359562),n=dr(n,i,s,o,e.getUint32(20,!0),4,4294588738),o=dr(o,n,i,s,e.getUint32(32,!0),11,2272392833),s=dr(s,o,n,i,e.getUint32(44,!0),16,1839030562),i=dr(i,s,o,n,e.getUint32(56,!0),23,4259657740),n=dr(n,i,s,o,e.getUint32(4,!0),4,2763975236),o=dr(o,n,i,s,e.getUint32(16,!0),11,1272893353),s=dr(s,o,n,i,e.getUint32(28,!0),16,4139469664),i=dr(i,s,o,n,e.getUint32(40,!0),23,3200236656),n=dr(n,i,s,o,e.getUint32(52,!0),4,681279174),o=dr(o,n,i,s,e.getUint32(0,!0),11,3936430074),s=dr(s,o,n,i,e.getUint32(12,!0),16,3572445317),i=dr(i,s,o,n,e.getUint32(24,!0),23,76029189),n=dr(n,i,s,o,e.getUint32(36,!0),4,3654602809),o=dr(o,n,i,s,e.getUint32(48,!0),11,3873151461),s=dr(s,o,n,i,e.getUint32(60,!0),16,530742520),i=dr(i,s,o,n,e.getUint32(8,!0),23,3299628645),n=ur(n,i,s,o,e.getUint32(0,!0),6,4096336452),o=ur(o,n,i,s,e.getUint32(28,!0),10,1126891415),s=ur(s,o,n,i,e.getUint32(56,!0),15,2878612391),i=ur(i,s,o,n,e.getUint32(20,!0),21,4237533241),n=ur(n,i,s,o,e.getUint32(48,!0),6,1700485571),o=ur(o,n,i,s,e.getUint32(12,!0),10,2399980690),s=ur(s,o,n,i,e.getUint32(40,!0),15,4293915773),i=ur(i,s,o,n,e.getUint32(4,!0),21,2240044497),n=ur(n,i,s,o,e.getUint32(32,!0),6,1873313359),o=ur(o,n,i,s,e.getUint32(60,!0),10,4264355552),s=ur(s,o,n,i,e.getUint32(24,!0),15,2734768916),i=ur(i,s,o,n,e.getUint32(52,!0),21,1309151649),n=ur(n,i,s,o,e.getUint32(16,!0),6,4149444226),o=ur(o,n,i,s,e.getUint32(44,!0),10,3174756917),s=ur(s,o,n,i,e.getUint32(8,!0),15,718787259),i=ur(i,s,o,n,e.getUint32(36,!0),21,3951481745),t[0]=n+t[0]&4294967295,t[1]=i+t[1]&4294967295,t[2]=s+t[2]&4294967295,t[3]=o+t[3]&4294967295}reset(){this.state=Uint32Array.from(JU),this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}};function ug(r,e,t,n,i,s){return e=(e+r&4294967295)+(n+s&4294967295)&4294967295,(e<<i|e>>>32-i)+t&4294967295}function lr(r,e,t,n,i,s,o){return ug(e&t|~e&n,r,e,i,s,o)}function mr(r,e,t,n,i,s,o){return ug(e&n|t&~n,r,e,i,s,o)}function dr(r,e,t,n,i,s,o){return ug(e^t^n,r,e,i,s,o)}function ur(r,e,t,n,i,s,o){return ug(t^(e|~n),r,e,i,s,o)}function Tae(r){return typeof r=="string"?r.length===0:r.byteLength===0}function _ae(r){return typeof r=="string"?gr(r):ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(r)}var ZU=["in-region","cross-region","mobile","standard","legacy"];var e2=({defaultsMode:r}={})=>TM(()=>p(null,null,function*(){let e=typeof r=="function"?yield r():r;switch(e?.toLowerCase()){case"auto":return Promise.resolve(Aae()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(e?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${ZU.join(", ")}, got ${e}`)}})),Aae=()=>{let r=window?.navigator;if(r?.connection){let{effectiveType:e,rtt:t,downlink:n}=r?.connection;if(typeof e=="string"&&e!=="4g"||Number(t)>100||Number(n)<10)return!0}return r?.userAgentData?.mobile||typeof r?.maxTouchPoints=="number"&&r?.maxTouchPoints>1};var t2=r=>({apiVersion:"2006-03-01",base64Decoder:r?.base64Decoder??Hn,base64Encoder:r?.base64Encoder??Jr,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??Jf,extensions:r?.extensions??[],getAwsChunkedEncodingStream:r?.getAwsChunkedEncodingStream??sM,httpAuthSchemeProvider:r?.httpAuthSchemeProvider??OD,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new Oo},{schemeId:"aws.auth#sigv4a",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4a"),signer:new im}],logger:r?.logger??new Us,protocol:r?.protocol??Cf,protocolSettings:r?.protocolSettings??{defaultNamespace:"com.amazonaws.s3",errorTypeRegistries:Wz,xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"}
44,sdkStreamMixin:r?.sdkStreamMixin??Qp,serviceId:r?.serviceId??"S3",signerConstructor:r?.signerConstructor??oc,signingEscapePath:r?.signingEscapePath??!1,urlParser:r?.urlParser??nc,useArnRegion:r?.useArnRegion??void 0,utf8Decoder:r?.utf8Decoder??gr,utf8Encoder:r?.utf8Encoder??ln});var r2=r=>{let e=e2(r),t=()=>e().then(rB),n=t2(r);return E(x(x({},n),r),{runtime:"browser",defaultsMode:e,bodyLengthChecker:r?.bodyLengthChecker??ZM,credentialDefaultProvider:r?.credentialDefaultProvider??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:r?.defaultUserAgentProvider??UU({serviceId:n.serviceId,clientVersion:vU.version}),eventStreamSerdeProvider:r?.eventStreamSerdeProvider??VU,maxAttempts:r?.maxAttempts??jo,md5:r?.md5??dg,region:r?.region??YU("Region is missing"),requestHandler:Wp.create(r?.requestHandler??t),retryMode:r?.retryMode??(()=>p(null,null,function*(){return(yield t()).retryMode||zC})),sha1:r?.sha1??AU,sha256:r?.sha256??LU,streamCollector:r?.streamCollector??Vp,streamHasher:r?.streamHasher??QU,useDualstackEndpoint:r?.useDualstackEndpoint??(()=>Promise.resolve(_k)),useFipsEndpoint:r?.useFipsEndpoint??(()=>Promise.resolve(Ak))})};var n2=r=>({setRegion(e){r.region=e},region(){return r.region}}),i2=r=>({region:r.region()});var s2=r=>{let e=r.httpAuthSchemes,t=r.httpAuthSchemeProvider,n=r.credentials;return{setHttpAuthScheme(i){let s=e.findIndex(o=>o.schemeId===i.schemeId);s===-1?e.push(i):e.splice(s,1,i)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(i){t=i},httpAuthSchemeProvider(){return t},setCredentials(i){n=i},credentials(){return n}}},o2=r=>({httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()});var a2=(r,e)=>{let t=Object.assign(n2(r),aB(r),HI(r),s2(r));return e.forEach(n=>n.configure(t)),Object.assign(r,i2(t),cB(t),FI(t),o2(t))};var pg=class extends ff{config;constructor(...[e]){let t=r2(e||{});super(t),this.initConfig=t;let n=LD(t),i=YB(n),s=RB(i),o=Zk(s),a=kk(o),c=a,l=Hk(c),d=Ok(l),u=DD(d),h=KB(u,{session:[()=>this,tg]}),g=a2(h,e?.extensions||[]);this.config=g,this.middlewareStack.use(hM(this.config)),this.middlewareStack.use(Tk(this.config)),this.middlewareStack.use(tO(this.config)),this.middlewareStack.use(Lk(this.config)),this.middlewareStack.use(vB(this.config)),this.middlewareStack.use(TB(this.config)),this.middlewareStack.use(IB(this.config)),this.middlewareStack.use(QI(this.config,{httpAuthSchemeParametersProvider:MD,identityProviderConfigProvider:y=>p(this,null,function*(){return new of({"aws.auth#sigv4":y.credentials,"aws.auth#sigv4a":y.credentials})})})),this.middlewareStack.use(ZI(this.config)),this.middlewareStack.use(QB(this.config)),this.middlewareStack.use($I(this.config)),this.middlewareStack.use(OB(this.config)),this.middlewareStack.use(TC(this.config)),this.middlewareStack.use(_C(this.config))}destroy(){super.destroy()}};var fg=class extends Xt.classBuilder().ep(E(x({},Hr),{Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}})).m(function(e,t,n,i){return[Ur(n,e.getEndpointParameterInstructions()),zr(n)]}).s("AmazonS3","AbortMultipartUpload",{}).n("S3Client","AbortMultipartUploadCommand").sc(SU).build(){};function Iae(r){return e=>t=>p(null,null,function*(){let n=x({},t.input),i=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(let s of i){let o=n[s.target];if(o){let a;typeof o=="string"?Bae(o,r)?a=r.base64Decoder(o):(a=r.utf8Decoder(o),n[s.target]=r.base64Encoder(a)):(a=ArrayBuffer.isView(o)?new Uint8Array(o.buffer,o.byteOffset,o.byteLength):new Uint8Array(o),n[s.target]=r.base64Encoder(a));let c=new r.md5;c.update(a),n[s.hash]=r.base64Encoder(yield c.digest())}}return e(E(x({},t),{input:n}))})}var Mae={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},Ys=r=>({applyToStack:e=>{e.add(Iae(r),Mae)}});function Bae(r,e){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(r))return!1;try{return e.base64Decoder(r).length===32}catch{return!1}}var $c=class extends Xt.classBuilder().ep(E(x({},Hr),{Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}
44)).m(function(e,t,n,i){return[Ur(n,e.getEndpointParameterInstructions()),zr(n),Ys(n)]}).s("AmazonS3","CompleteMultipartUpload",{}).n("S3Client","CompleteMultipartUploadCommand").sc(PU).build(){};var hg=class extends Xt.classBuilder().ep(E(x({},Hr),{Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}})).m(function(e,t,n,i){return[Ur(n,e.getEndpointParameterInstructions()),zr(n),Ys(n)]}).s("AmazonS3","CreateMultipartUpload",{}).n("S3Client","CreateMultipartUploadCommand").sc(CU).build(){};var td=class extends Xt.classBuilder().ep(E(x({},Hr),{Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}})).m(function(e,t,n,i){return[Ur(n,e.getEndpointParameterInstructions()),ec(n,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),MB(n),zr(n),Ys(n)]}).s("AmazonS3","PutObject",{}).n("S3Client","PutObjectCommand").sc(NU).build(){};var jc=class extends Xt.classBuilder().ep(E(x({},Hr),{Bucket:{type:"contextParams",name:"Bucket"}})).m(function(e,t,n,i){return[Ur(n,e.getEndpointParameterInstructions()),ec(n,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0}),zr(n)]}).s("AmazonS3","PutObjectTagging",{}).n("S3Client","PutObjectTaggingCommand").sc(wU).build(){};var gg=class extends Xt.classBuilder().ep(E(x({},Hr),{Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}})).m(function(e,t,n,i){return[Ur(n,e.getEndpointParameterInstructions()),ec(n,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),zr(n),Ys(n)]}).s("AmazonS3","UploadPart",{}).n("S3Client","UploadPartCommand").sc(RU).build(){};var c2={CRC32:"CRC32",CRC32C:"CRC32C",CRC64NVME:"CRC64NVME",SHA1:"SHA1",SHA256:"SHA256"};var yg=class{onabort=null;_aborted=!1;constructor(){Object.defineProperty(this,"_aborted",{value:!1,writable:!0})}get aborted(){return this._aborted}abort(){this._aborted=!0,this.onabort&&(this.onabort(this),this.onabort=null)}};var xg=class{signal=new yg;abort(){this.signal.abort()}};var zg=Ps(Ga());var T2=Ps(Li());var v2={lstatSync:()=>{},isFileReadStream(r){return!1}};var Wc=E(x({},v2),{runtime:"browser"});var rd=r=>{if(r==null)return 0;if(typeof r=="string")return T2.Buffer.byteLength(r);if(typeof r.byteLength=="number")return r.byteLength;if(typeof r.length=="number")return r.length;if(typeof r.size=="number")return r.size;if(typeof r.start=="number"&&typeof r.end=="number")return r.end+1-r.start;if(Wc.isFileReadStream(r))try{return Wc.lstatSync(r.path).size}catch{return}};var ys=function(r){return r.EMPTY_INPUT="a null or undefined Body",r.CONTENT_LENGTH="the ContentLength property of the params set by the caller",r.STRING_LENGTH="the encoded byte length of the Body string",r.TYPED_ARRAY="the byteLength of a typed byte array such as Uint8Array",r.LENGTH="the value of Body.length",r.SIZE="the value of Body.size",r.START_END_DIFF="the numeric difference between Body.start and Body.end",r.LSTAT="the size of the file given by Body.path on disk as reported by lstatSync",r}(ys||{}),_2=(r,e)=>{if(e!=null)return ys.CONTENT_LENGTH;if(r==null)return ys.EMPTY_INPUT;if(typeof r=="string")return ys.STRING_LENGTH;if(typeof r.byteLength=="number")return ys.TYPED_ARRAY;if(typeof r.length=="number")return ys.LENGTH;if(typeof r.size=="number")return ys.SIZE;if(typeof r.start=="number"&&typeof r.end=="number")return ys.START_END_DIFF;if(Wc.isFileReadStream(r))try{return Wc.lstatSync(r.path).size,ys.LSTAT}catch{return}};var kq=Ps(Li()),Oq=Ps(Mq());var vw=Ps(Li());function Lg(r,e,t){return $e(this,null,function*(){let n=1,i={chunks:[],length:0};try{for(var s=bt(t(r)),o,a,c;o=!(a=yield new be(s.next())).done;o=!1){let l=a.value;for(i.chunks.push(l),i.length+=l.byteLength;i.length>e;){let d=i.chunks.length>1?vw.Buffer.concat(i.chunks):i.chunks[0];yield{partNumber:n,data:d.subarray(0,e)},i.chunks=[d.subarray(e)],i.length=i.chunks[0].byteLength,n+=1}}}catch{c=[a]}finally{try{o&&(a=s.return)&&(yield new be(a.call(s)))}finally{if(c)throw c[0]}}yield{partNumber:n,data:i.chunks.length!==1?vw.Buffer.concat(i.chunks):i.chunks[0],lastPart:!0}})}function Tw(r,e){return $e(this,null,function*(){let t=1,n=0,i=e;for(;i<r.byteLength;)yield{partNumber:t,data:r.subarray(n,i)},t+=1,n=i,i=n+e;yield{partNumber:t,data:r.subarray(n),lastPart:!0}})}var _w=Ps(Li());function Bq(r){return $e(this,null,function*(){try{for(var e=bt(r),t,n,i;t=!(n=yield new be(e.next())).done;t=!1){let s=n.value;_w.Buffer.isBuffer(s)||s instanceof Uint8Array?yield s:yield _w.Buffer.from(s)}}catch{i=[n]}finally{try{t&&(n=e.return)&&(yield new be(n.call(e)))}finally{if(i)throw i[0]}}})}var Aw=Ps(Li());function Iw(r){return $e(this,null,function*(){let e=r.getReader();try{for(;;){let{done:t,value:n}=yield new be(e.read());if(t)return;Aw.Buffer.isBuffer(n)||n instanceof Uint8Array?yield n:yield Aw.Buffer.from(n)}}catch(t){throw t}finally{e.releaseLock()}})}var Dq=(r,e)=>{if(r instanceof Uint8Array)return Tw(r,e);if(r instanceof Oq.Readable)return Lg(r,e,Bq);if(r instanceof String||typeof r=="string")return Tw(kq.Buffer.from(r),e);if(typeof r.stream=="function")return Lg(r.stream(),e,Iw);if(r instanceof ReadableStream)return Lg(r,e,Iw);throw new Error("Body Data is unsupported format, expected data to be one of: string | Uint8Array | Buffer | Readable | ReadableStream | Blob;.")};var Lq=(()=>{class r extends zg.EventEmitter{static MIN_PART_SIZE=1024*1024*5;MAX_PARTS=1e4;queueSize=4;partSize;leavePartsOnError=!1;tags=[];client;params;totalBytes;totalBytesSource;bytesUploadedSoFar;abortController;concurrentUploaders=[];createMultiPartPromise;abortMultipartUploadCommand=null;uploadedParts=[];uploadEnqueuedPartsCount=0;expectedPartsCount;uploadId;uploadEvent;isMultiPart=!0;singleUploadResult;sent=!1;constructor(t){if(super(),this.queueSize=t.queueSize||this.queueSize,this.leavePartsOnError=t.leavePartsOnError||this.leavePartsOnError,this.tags=t.tags||this.tags,this.client=t.client,this.params=t.params,!this.params)throw new Error("InputError: Upload requires params to be passed to upload.");this.totalBytes=this.params.ContentLength??rd(this.params.Body),this.totalBytesSource=_2(this.params.Body,this.params.ContentLength),this.bytesUploadedSoFar=0,this.abortController=t.abortController??new xg,this.partSize=t.partSize||Math.max(r.MIN_PART_SIZE,Math.floor((this.totalBytes||0)/this.MAX_PARTS)),this.totalBytes!==void 0&&(this.expectedPartsCount=Math.ceil(this.totalBytes/this.partSize)),this.__validateInput()}abort(){return p(this,null,function*(){this.abortController.abort()})}done(){return p(this,null,function*(){if(this.sent)throw new Error("@aws-sdk/lib-storage: this instance of Upload has already executed .done(). Create a new instance.");return this.sent=!0,yield Promise.race([this.__doMultipartUpload(),this.__abortTimeout(this.abortController.signal)])})}on(t,n){return this.uploadEvent=t,super.on(t,n)}__uploadUsingPut(t){return p(this,null,function*(){this.isMultiPart=!1;let n=E(x({},this.params),{Body:t.data}),i=this.client.config,s=i.requestHandler,o=s instanceof zg.EventEmitter?s:null,a=S=>{this.bytesUploadedSoFar=S.loaded,this.totalBytes=S.total,this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})};o!==null&&o.on("xhr.upload.progress",a);let c=yield Promise.all([this.client.send(new td(n)),i?.endpoint?.()]),l=c[0],d=c[1];if(d||(d=ic(yield zf(n,td,x({},i)))),!d)throw new Error('Could not resolve endpoint from S3 "client.config.endpoint()" nor EndpointsV2.');o!==null&&o.off("xhr.upload.progress",a);let u=this.params.Key.split("/").map(S=>Lo(S)).join("/"),h=Lo(this.params.Bucket),g=(()=>{let S=d.hostname.startsWith(`${h}.`),C=this.client.config.forcePathStyle,N=d.port?`:${d.port}`:"";return C?`${d.protocol}//${d.hostname}${N}/${h}/${u}`:S?`${d.protocol}//${d.hostname}${N}/${u}`:`${d.protocol}//${h}.${d.hostname}${N}/${u}`})();this.singleUploadResult=E(x({},l),{Bucket:this.params.Bucket,Key:this.params.Key,Location:g});let y=rd(t.data);this.__notifyProgress({loaded:y,total:y,part:1,Key:this.params.Key,Bucket:this.params.Bucket})})}__createMultipartUpload(){return p(this,null,function*(){let t=yield this.client.config.requestChecksumCalculation();if(!this.createMultiPartPromise){let n=E(x({},this.params),{Body:void 0});t==="WHEN_SUPPORTED"&&(n.ChecksumAlgorithm=this.params.ChecksumAlgorithm||c2.CRC32),this.createMultiPartPromise=this.client.send(new hg(n)).then(i=>(this.abortMultipartUploadCommand=new fg({Bucket:this.params.Bucket,Key:this.params.Key,UploadId:i.UploadId}),i))}return this.createMultiPartPromise})}__doConcurrentUpload(t){return p(this,null,function*(){try{for(var n=bt(t),i,s,o;i=!(s=yield n.next()).done;i=!1){let a=s.value;if(this.uploadEnqueuedPartsCount>this.MAX_PARTS)throw new Error(`Exceeded ${this.MAX_PARTS} parts in multipart upload to Bucket: ${this.params.Bucket} Key: ${this.params.Key}.`);if(this.abortController.signal.aborted)return;if(a.partNumber===1&&a.lastPart)return yield this.__uploadUsingPut(a);if(!this.uploadId){let{UploadId:y}=yield this.__createMultipartUpload();if(this.uploadId=y,this.abortController.signal.aborted)return}let c=rd(a.data)||0,l=this.client.config.requestHandler,d=l instanceof zg.EventEmitter?l:null,u=0,h=(y,S)=>{(Number(S.query.partNumber)||-1)===a.partNumber&&(y.total&&c&&(this.bytesUploadedSoFar+=y.loaded-u,u=y.loaded),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:a.partNumber,Key:this.params.Key,Bucket:this.params.Bucket}))};d!==null&&d.on("xhr.upload.progress",h),this.uploadEnqueuedPartsCount+=1,this.__validateUploadPart(a);let g=yield this.client.send(new gg(E(x({},this.params),{ContentLength:void 0,UploadId:this.uploadId,Body:a.data,PartNumber:a.partNumber})));if(d!==null&&d.off("xhr.upload.progress",h),this.abortController.signal.aborted)return;if(!g.ETag)throw new Error(`Part ${a.partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`);this.uploadedParts.push(x(x(x(x({PartNumber:a.partNumber,ETag:g.ETag},g.ChecksumCRC32&&{ChecksumCRC32:g.ChecksumCRC32}),g.ChecksumCRC32C&&{ChecksumCRC32C:g.ChecksumCRC32C}),g.ChecksumSHA1&&{ChecksumSHA1:g.ChecksumSHA1}),g.ChecksumSHA256&&{ChecksumSHA256:g.ChecksumSHA256})),d===null&&(this.bytesUploadedSoFar+=c),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:a.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})}}catch{o=[s]}finally{try{i&&(s=n.return)&&(yield s.call(n))}finally{if(o)throw o[0]}}})}__doMultipartUpload(){return p(this,null,function*(){let t=Dq(this.params.Body,this.partSize),n=[];for(let s=0;s<this.queueSize;
44s++){let o=this.__doConcurrentUpload(t).catch(a=>{n.push(a)});this.concurrentUploaders.push(o)}if(yield Promise.all(this.concurrentUploaders),n.length>=1)throw yield this.markUploadAsAborted(),n[0];if(this.abortController.signal.aborted)throw yield this.markUploadAsAborted(),Object.assign(new Error("Upload aborted."),{name:"AbortError"});let i;if(this.isMultiPart){let{expectedPartsCount:s,uploadedParts:o,totalBytes:a,totalBytesSource:c}=this;if(a!==void 0&&s!==void 0&&o.length!==s)throw new Error(`Expected ${s} part(s) but uploaded ${o.length} part(s). 45The expected part count is based on the byte-count of the input.params.Body, 46which was read from ${c} and is ${a}. 47If this is not correct, provide an override value by setting a number 48to input.params.ContentLength in bytes. 49`);this.uploadedParts.sort((d,u)=>d.PartNumber-u.PartNumber);let l=E(x({},this.params),{Body:void 0,UploadId:this.uploadId,MultipartUpload:{Parts:this.uploadedParts}});i=yield this.client.send(new $c(l)),typeof i?.Location=="string"&&i.Location.includes("%2F")&&(i.Location=i.Location.replace(/%2F/g,"/"))}else i=this.singleUploadResult;return this.abortMultipartUploadCommand=null,this.tags.length&&(yield this.client.send(new jc(E(x({},this.params),{Tagging:{TagSet:this.tags}})))),i})}markUploadAsAborted(){return p(this,null,function*(){this.uploadId&&!this.leavePartsOnError&&this.abortMultipartUploadCommand!==null&&(yield this.client.send(this.abortMultipartUploadCommand),this.abortMultipartUploadCommand=null)})}__notifyProgress(t){this.uploadEvent&&this.emit(this.uploadEvent,t)}__abortTimeout(t){return p(this,null,function*(){return new Promise((n,i)=>{t.onabort=()=>{let s=new Error("Upload aborted.");s.name="AbortError",i(s)}})})}__validateUploadPart(t){let n=rd(t.data);
49if(n===void 0)throw new Error(`A dataPart was generated without a measurable data chunk size for part number ${t.partNumber}`);if(!(t.partNumber===1&&t.lastPart)&&!t.lastPart&&n!==this.partSize)throw new Error(`The byte size for part number ${t.partNumber}, size ${n} does not match expected size ${this.partSize}`)}__validateInput(){if(!this.client)throw new Error("InputError: Upload requires a AWS client to do uploads with.");if(this.partSize<r.MIN_PART_SIZE)throw new Error(`EntityTooSmall: Your proposed upload part size [${this.partSize}] is smaller than the minimum allowed size [${r.MIN_PART_SIZE}] (5MB)`);if(this.queueSize<1)throw new Error("Queue size: Must have at least one uploading queue.")}}return r})();var kw=new Ui("FinalizationErrorToI18nKey"),Mw=class extends xy{uploadFile$(e,t){return this.runUpload$(e,t).pipe(Jn("data"),ly(({data:n})=>n.id,n=>n.data.state===ei.Uploaded?nl(ot(n),this.watchFinalizationProgress$(n.data,t)):ot(n)))}uploadFiles$(e,t){return this.runUploads$(e,t).pipe(Jn("data"),ly(({data:n})=>n.id,n=>n.data.state===ei.Uploaded?nl(ot(n),this.watchFinalizationProgress$(n.data,t)):ot(n)))}isFinalized(e){return e?.delegatedUpload.finalizationProgress===100&&oo(e?.delegatedUpload.finalizationCompletedAt)&&!!e?.delegatedUpload.slideItem}},md=class extends Mw{constructor(){super(...arguments),this.delegatedUploadsService=Vt(Nv),this.uploadBeaconService=Vt(wv),this.accessTokenService=Vt(Md),this.logger=Vt(Ns),this.translateService=Vt(Ad),this.finalizationErrorToI18nKey=Vt(kw),this.addPollIdS=new Qg,this.removePollIdS=new Qg,this.activePolling$=oy(fa(this.addPollIdS.pipe(ue(({id:e,pollRateMs:t})=>({type:"add",id:e,pollRateMs:t}))),this.removePollIdS.pipe(ue(({id:e})=>({type:"remove",id:e})))).pipe(bd((e,t)=>{let{type:n,id:i}=t;switch("pollRateMs"in t&&(e.pollRateMs=t.pollRateMs),n){case"add":e.ids.includes(i)||e.ids.push(i);break;case"remove":e.ids=e.ids.filter(s=>i!==s)}return e},{ids:[]}),Pd({ids:[]}))),this.activeFinalization$=oy(this.activePolling$.pipe(cy("pollRateMs"),rR(({pollRateMs:e})=>Jg(e)),lt(({ids:e,pollRateMs:t})=>e.length?this.getCurrentFinalizationState$(e).pipe(sR(({incomplete:n})=>n.length?Jg(t).pipe(il(()=>this.getCurrentFinalizationState$(e))):hd),VR({baseDelay:t,maxRetries:9}),ha(n=>ot({error:n}))):ot({incomplete:[],complete:[],errored:[]}))))}retrieveActiveUploads$(){return this.getAllDelegatedUploadsWithStates$([ba.Created]).pipe(lt(e=>this.delegatedUploadsService.getFinalizationProgresses({delegatedUploadIds:e.data.map(t=>t.id)})),Jn("data"),ue(({data:e})=>({data:e.map(t=>{let n=t.delegatedUpload;return n?{id:n.id,fileName:n.fileName??"-",createdAt:n.createdAt,percentage:n.finalizationProgress}:null}).filter(oo)})))}cancelAllUploadsBeacon(e){this.uploadBeaconService.cancelAllDelegatedUpload({accessToken:this.accessTokenService.get()||void 0,delegatedUploadIds:e})}runUpload$(e,{toParentId:t}){return this.delegatedUploadsService.createUploadDelegation({fileUpload:{fileName:e.name,fileSize:e.size},uploadFolderId:t}).pipe(Jn("data"),lt(({data:n})=>{let i=new Date().toISOString(),s=ot(this.getInitialUploadProgressResponse(e,n,i));return nl(s,this.handleBlobUploadDelegation$(e,n))}))}runUploads$(e,{toParentId:t}){return this.delegatedUploadsService.createUploadDelegations({fileUploads:e.map(n=>({fileName:n.name,fileSize:n.size})),uploadFolderId:t}).pipe(Jn("data"),lt(({data:n})=>{let i=e.map((a,c)=>{let l=n[c];if(!l||l.uploadParameters.fileSize!==a.size)throw new Error(`No upload delegation found for file '${a.name}'`);return{file:a,uploadDelegation:l}}),s=new Date().toISOString(),o=Qn(i.map(({file:a,uploadDelegation:c})=>this.getInitialUploadProgressResponse(a,c,s)));return nl(o,fa(...i.map(({file:a,uploadDelegation:c})=>this.handleBlobUploadDelegation$(a,c))))}))}watchFinalizationProgress$(e,{finalization:{pollRateMs:t}}){return cn(()=>{let n=this.removePollIdS.pipe(_n(({id:o})=>o===e.id));this.addPollIdS.next({id:e.id,pollRateMs:t});let i=this.activeFinalization$.pipe(il(o=>{if("error"in o)return Yg(()=>o.error);let{incomplete:a,complete:c,errored:l}=o,d=l.find(({delegatedUpload:u})=>u?.id===e.id);return d?this.translateService.translate$(this.finalizationErrorToI18nKey(d.delegatedUpload.finalizationErrorType??ba.UploadRejected)).pipe(Jn(),lt(u=>Yg(()=>this.errorMessageToApiError(u)))):ot(a.find(({delegatedUpload:u})=>u?.id===e.id)||c.find(({delegatedUpload:u})=>u?.id===e.id))}),cy(),Sd()),s=tR(i.pipe(_n(o=>this.isFinalized(o)),nR(0)),n);return i.pipe(ue(o=>{let a=e;return o&&(a=this.isFinalized(o)?E(x({},e),{state:ei.Finalized,finalization:o}):E(x({},e),{state:ei.Finalizing,finalization:o})),{data:a}}),iR(),ga(s),oR(()=>{this.removePollIdS.next({id:e.id}),this.logger.log(Yn.Trace,`Ended '${e.fileName}' polling.`)}))})}averageStartDateWithNow(e){return new Date((e+Date.now())/2).toISOString()}getCurrentFinalizationState$(e){return this.delegatedUploadsService.getFinalizationProgresses({delegatedUploadIds:e}).pipe(Jn("data"),ue(({data:t})=>{let n=t.filter(o=>!this.isFinalized(o)&&ay(o.delegatedUpload?.finalizationErrorType)&&o.delegatedUpload.state!==ba.UploadRejected),i=t.filter(o=>this.isFinalized(o)),s=t.filter(o=>oo(o.delegatedUpload?.finalizationErrorType)||o.delegatedUpload.state===ba.UploadRejected);return{incomplete:n,complete:i,errored:s}}))}getAllDelegatedUploadsWithStates$(e){return this.delegatedUploadsService.getAllDelegatedUploads({state:e}).pipe(Cv(({prevEndIndex:t,prevItemsPerPage:n})=>{let i=t+1,s=i+n-1;return this.delegatedUploadsService.getAllDelegatedUploads({state:[ba.Created],startIndex:i,endIndex:s})}))}errorMessageToApiError(e,t){return new NR({error:{apiMeta:[{discriminatedType:"MessageOnly",message:e}]},status:t})}getInitialUploadProgressResponse(e,t,n){return{data:{id:t.uploadId,fileName:e.name,bytesOnDisk:0,progress:0,state:ei.Created,createdAt:n,updatedAt:n,finalization:null,finalizationDurationEstimationMs:t.finalizationEtaInMs}}}},qq=(()=>{class r extends md{constructor(){super(...arguments),this.accessTokenService=Vt(Md),this.abortControllers=new Map}hasActiveUploadId(t){let n=this.abortControllers.get(t);return!!n&&!n.signal.aborted}cancelUpload$(t){return cn(()=>{let n=this.abortControllers.get(t);return n&&!n.signal.aborted&&n.abort(),this.delegatedUploadsService.cancelDelegatedUpload({id:t}).pipe(Cs(()=>this.removePollIdS.next({id:t}
49)))})}abortAndRemove(t){this.abortControllers.entries().filter(([n])=>!t||t.includes(n)).forEach(([n,i])=>{i.abort(),this.removePollIdS.next({id:n})})}cancelAllUploadsBeacon(t){let n=t.filter(i=>this.hasActiveUploadId(i));this.uploadBeaconService.cancelAllDelegatedUpload({accessToken:this.accessTokenService.get()||void 0,delegatedUploadIds:n}),this.abortAndRemove(t)}handleBlobUploadDelegation$(t,{uploadId:n,uploadParameters:i,finalizationEtaInMs:s}){return cn(()=>{if(i.discriminatedType!==yy.AzureUploadParametersDto)throw new Error(`Azure upload found incorrect parameters for provider: '${i.discriminatedType}'`);let{uploadUrl:o}=i;if(ay(o))throw new Error("uploadUrl undefined.");let a=new Ka(o),c=Date.now(),l,d=new rl(1),u=new AbortController;return this.abortControllers.set(n,u),a.uploadData(t,{abortSignal:u.signal,onProgress:h=>{l??=this.averageStartDateWithNow(c),d.next({event:h,completed:!1})}}).then(()=>{l??=this.averageStartDateWithNow(c),d.next({event:null,completed:!0})}).catch(h=>{h instanceof Error&&h.name==="AbortError"||d.error(h)}).finally(()=>{this.abortControllers.delete(n),d.complete()}),d.pipe(Pd(null),Zg(),Jn("1"),ue(([h,g])=>{let y=g.completed,S=g.event||h?.event;if(!l)throw new Error("'CreatedAt' must be defined before progressing.");return{data:{id:n,state:y?ei.Uploaded:ei.Uploading,createdAt:l,updatedAt:new Date().toISOString(),bytesOnDisk:S?.loadedBytes??t.size,progress:S?S.loadedBytes/t.size:1,fileName:t.name,finalization:null,finalizationDurationEstimationMs:s}}}))})}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Es(r)))(i||r)}})()}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac})}}return r})(),Bw=class extends Lq{constructor(e){super(e),this.__doMultipartUpload=()=>p(this,null,function*(){let t=mme(this.params.Body,this.partSize),n=[];for(let o=0;o<this.queueSize;o++){let a=this.__doConcurrentUpload(t).catch(c=>{n.push(c)});this.concurrentUploaders.push(a)}if(yield Promise.all(this.concurrentUploaders),n.length>=1)throw yield this.markUploadAsAborted(),n[0];if(this.abortController.signal.aborted)throw yield this.markUploadAsAborted(),Object.assign(new Error("Upload aborted."),{name:"AbortError"});let i;if(this.isMultiPart){this.uploadedParts.sort((a,c)=>a.PartNumber-c.PartNumber);let o=E(x({},this.params),{Body:void 0,UploadId:this.uploadId,MultipartUpload:{Parts:this.uploadedParts}});i=yield this.client.send(new $c(o)),typeof i?.Location=="string"&&i.Location.includes("%2F")&&(i.Location=i.Location.replace(/%2F/g,"/"))}else i=this.singleUploadResult;this.abortMultipartUploadCommand=null;let s=this.tags;return s.length&&(yield this.client.send(new jc(E(x({},this.params),{Tagging:{TagSet:s}})))),i})}};function mme(r,e){switch(!0){case r instanceof Uint8Array:return dme(r,e);case typeof r.stream=="function":return zq(r.stream(),e,my);case r instanceof ReadableStream:return zq(r,e,my);default:throw new Error("Body Data is unsupported format, expected data to be one of: string | Uint8Array | ReadableStream | Blob;.")}}function dme(r,e){let t=1,n=0,i=e,s=!1,o={[Symbol.asyncIterator]:()=>o,next:()=>p(null,null,function*(){if(s)return{value:void 0,done:!0};if(i<r.byteLength){let a={value:{partNumber:t,data:r.subarray(n,i)},done:!1};return t+=1,n=i,i=n+e,a}return s=!0,{value:{partNumber:t,data:r.subarray(n),lastPart:!0},done:!1}})};return o}function zq(r,e,t){let n=1,i={chunks:[],length:0},s=t(r),o=!1,a={[Symbol.asyncIterator]:()=>a,next:()=>p(null,null,function*(){for(;i.length<e&&!o;){let{value:l,done:d}=yield s.next();if(o=!!d,!o&&oo(l)){let u=l;i.chunks.push(u),i.length+=u.byteLength}}if(!o){let l=i.chunks.length>1?Uq(i.chunks):i.chunks[0],d={value:{partNumber:n,data:l.subarray(0,e)},done:!1};return i.chunks=[l.subarray(e)],i.length=i.chunks[0].byteLength,n++,d}if(!i.length)return{value:void 0,done:!0};let c={value:{partNumber:n,data:i.chunks.length!==1?Uq(i.chunks):i.chunks[0],lastPart:!0},done:!1};return i.chunks=[],i.length=0,c})};return a}function Uq(r){let e=0;for(let i of r)e+=i.length;let t=new Uint8Array(e),n=0;for(let i of r)t.set(i,n),n+=i.length;return t}var Hq=(()=>{class r extends md{constructor(){super(...arguments),this.accessTokenService=Vt(Md),this.abortControllers=new Map}hasActiveUploadId(t){let n=this.abortControllers.get(t);return!!n&&!n.signal.aborted}cancelUpload$(t){return cn(()=>{let n=this.abortControllers.get(t);return n&&!n.signal.aborted&&n.abort(),this.delegatedUploadsService.cancelDelegatedUpload({id:t}).pipe(Cs(()=>this.removePollIdS.next({id:t}
49)))})}abortAndRemove(t){this.abortControllers.entries().filter(([n])=>!t||t.includes(n)).forEach(([n,i])=>{i.abort(),this.removePollIdS.next({id:n})})}cancelAllUploadsBeacon(t){let n=t.filter(i=>this.hasActiveUploadId(i));this.uploadBeaconService.cancelAllDelegatedUpload({accessToken:this.accessTokenService.get()||void 0,delegatedUploadIds:n}),this.abortAndRemove(t)}handleBlobUploadDelegation$(t,{uploadId:n,uploadParameters:i,finalizationEtaInMs:s}){return cn(()=>{if(i.discriminatedType!==yy.S3UploadParametersDto)throw new Error(`S3 upload found incorrect parameters for provider: '${i.discriminatedType}'`);let{accessKey:o,secretKey:a,serviceUrl:c,sessionToken:l,expiresAt:d,forcePathStyle:u,fileSize:h,blobName:g,containerName:y,regionEndpoint:S}=i,C={endpoint:c,credentials:{accessKeyId:o,secretAccessKey:a,sessionToken:l,expiration:new Date(d)},forcePathStyle:u,region:S??"eu-central-1"},N=new pg(C),T=Date.now(),I,k=new rl(1),Z=new AbortController;this.abortControllers.set(n,Z);let te=new Bw({client:N,params:{Bucket:y??void 0,Key:g??void 0,Body:t,ContentType:t.type,ChecksumAlgorithm:"CRC32"},abortController:Z});return te.on("httpUploadProgress",ae=>{I??=this.averageStartDateWithNow(T),k.next({event:ae,completed:!1})}),te.done().then(()=>{I??=this.averageStartDateWithNow(T),k.next({event:null,completed:!0})}).catch(ae=>{ae instanceof Error&&ae.name==="AbortError"||k.error(ae)}).finally(()=>{this.abortControllers.delete(n),k.complete()}),k.pipe(Pd(null),Zg(),Jn("1"),ue(([ae,ye])=>{let pr=ye.completed,Vn=ye.event||ae?.event;if(!I)throw new Error("'CreatedAt' must be defined before progressing.");return{data:{id:n,state:pr?ei.Uploaded:ei.Uploading,createdAt:I,updatedAt:new Date().toISOString(),bytesOnDisk:Vn?.loaded??h,progress:Vn?(Vn.loaded??0)/h:1,fileName:t.name,finalization:null,finalizationDurationEstimationMs:s}}}))})}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Es(r)))(i||r)}})()}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac})}}return r})(),ume=(()=>{class r extends md{constructor(){super(...arguments),this.azureBlobUploadService=Vt(qq),this.s3BlobUploadService=Vt(Hq)}cancelUpload$(t){return cn(()=>this.withCorrespondingService(t,(n,i)=>{switch(i){case co.Azure:this.logger.log(Yn.Trace,"Cancelling Azure upload.");break;case co.S3:this.logger.log(Yn.Trace,"Cancelling s3 upload.");break;default:this.logger.log(Yn.Warning,`There is no known active finalisation in progress for id '${t}'. Attempting to cancel delegated upload only.`)}return n?n.cancelUpload$(t):this.delegatedUploadsService.cancelDelegatedUpload({id:t})}))}cancelAllUploadsBeacon(t){super.cancelAllUploadsBeacon(t),this.azureBlobUploadService.abortAndRemove(t),this.s3BlobUploadService.abortAndRemove(t)}withCorrespondingService(t,n){switch(!0){case this.azureBlobUploadService.hasActiveUploadId(t):return n(this.azureBlobUploadService,co.Azure);case this.s3BlobUploadService.hasActiveUploadId(t):return n(this.s3BlobUploadService,co.S3)}return n(void 0)}handleBlobUploadDelegation$(t,n){return cn(()=>{switch(this.logger.log(Yn.Trace,`Initialising ${n.blobStorageProvider} upload.`),n.blobStorageProvider){case co.Azure:return this.azureBlobUploadService.handleBlobUploadDelegation$(t,n);case co.S3:return this.s3BlobUploadService.handleBlobUploadDelegation$(t,n);default:throw new Error(`BlobStorageProvider '${n.blobStorageProvider}' is not implemented.`)}})}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Es(r)))(i||r)}})()}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac})}}return r})(),Fq=(()=>{class r{static forRoot(){return{ngModule:r,providers:[qq,Hq,{provide:xy,useClass:ume}]}}static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275mod=hr({type:r})}static{this.\u0275inj=fr({})}}return r})();var pme=(r,e)=>({hasItemSearchBar:r,hasFooter:e}),fme=r=>({"is-full-height-section":r});function hme(r,e){r&1&&Nd(0,"pcu-footer")}function gme(r,e){if(r&1&&(ry(0,"div",1)(1,"header",2),Nd(2,"pcu-nav-bar"),Ed(),ry(3,"section",3),Nd(4,"router-outlet"),Ed(),ty(5,hme,1,0,"pcu-footer",4),Ed()),r&2){let t=e.ngIf;Cd("ngClass",gR(2,fme,!t.hasFooter)),dR(5),Cd("ngIf",t.hasFooter)}}var jq=(()=>
49{class r{constructor(t){this.store=t,this.hasFooter$=this.store.select(Sa.selectHasFooter),this.hasItemSearchBar$=this.store.select(Sa.selectHasItemSearchBar)}static{this.\u0275fac=function(n){return new(n||r)(pR(Zn))}}static{this.\u0275cmp=fR({type:r,selectors:[["body"]],standalone:!1,decls:3,vars:8,consts:[["class","container",3,"ngClass",4,"ngIf"],[1,"container",3,"ngClass"],[1,"sticky-header"],[1,"content"],[4,"ngIf"]],template:function(n,i){n&1&&(ty(0,gme,6,4,"div",0),ny(1,"async"),ny(2,"async")),n&2&&Cd("ngIf",yR(5,pme,iy(1,1,i.hasItemSearchBar$),iy(2,3,i.hasFooter$)))},dependencies:[nv,bR,SR,Bv,Lv,PR],styles:[".container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;min-height:100%}.container.is-full-height-section[_ngcontent-%COMP%]{height:100%}.sticky-header[_ngcontent-%COMP%]{will-change:transform;contain:layout;position:sticky;flex:0 0 auto;top:0;z-index:3}.content[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;contain:content;min-height:0}.content[_ngcontent-%COMP%] >*:nth-child(2){flex:1 1 auto;display:flex;flex-direction:column;min-height:0}"],changeDetection:0})}}return r})();var pd="PERFORM_ACTION",yme="REFRESH",Qq="RESET",Yq="ROLLBACK",Jq="COMMIT",Zq="SWEEP",e3="TOGGLE_ACTION",xme="SET_ACTIONS_ACTIVE",t3="JUMP_TO_STATE",r3="JUMP_TO_ACTION",Ww="IMPORT_STATE",n3="LOCK_CHANGES",i3="PAUSE_RECORDING",Zc=class{constructor(e,t){if(this.action=e,this.timestamp=t,this.type=pd,typeof e.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},Ow=class{constructor(){this.type=yme}},Dw=class{constructor(e){this.timestamp=e,this.type=Qq}},Lw=class{constructor(e){this.timestamp=e,this.type=Yq}},zw=class{constructor(e){this.timestamp=e,this.type=Jq}},Uw=class{constructor(){this.type=Zq}},qw=class{constructor(e){this.id=e,this.type=e3}};var Hw=class{constructor(e){this.index=e,this.type=t3}},Fw=class{constructor(e){this.actionId=e,this.type=r3}},$w=class{constructor(e){this.nextLiftedState=e,this.type=Ww}},jw=class{constructor(e){this.status=e,this.type=n3}},Gw=class{constructor(e){this.status=e,this.type=i3}};var Fg=new Ui("@ngrx/store-devtools Options"),Gq=new Ui("@ngrx/store-devtools Initial Config");function s3(){return null}var bme="NgRx Store DevTools";function Sme(r){let e={maxAge:!1,monitor:s3,actionSanitizer:void 0,stateSanitizer:void 0,name:bme,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},t=typeof r=="function"?r():r,n=t.logOnly?{pause:!0,export:!0,test:!0}:!1,i=t.features||n||e.features;i.import===!0&&(i.import="custom");let s=Object.assign({},e,{features:i},t);if(s.maxAge&&s.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${s.maxAge}`);return s}function Kq(r,e){return r.filter(t=>e.indexOf(t)<0)}function o3(r){let{computedStates:e,currentStateIndex:t}=r;if(t>=e.length){let{state:i}=e[e.length-1];return i}let{state:n}=e[t];return n}function ud(r){return new Zc(r,+Date.now())}function Pme(r,e){return Object.keys(e).reduce((t,n)=>{let i=Number(n);return t[i]=a3(r,e[i],i),t},{})}function a3(r,e,t){return E(x({},e),{action:r(e.action,t)})}function Cme(r,e){return e.map((t,n)=>({state:c3(r,t.state,n),error:t.error}))}function c3(r,e,t){return r(e,t)}function l3(r){return r.predicate||r.actionsSafelist||r.actionsBlocklist}function Eme(r,e,t,n){let i=[],s={},o=[];return r.stagedActionIds.forEach((a,c)=>{let l=r.actionsById[a];l&&(c&&Vw(r.computedStates[c],l,e,t,n)||(s[a]=l,i.push(a),o.push(r.computedStates[c])))}),E(x({},r),{stagedActionIds:i,actionsById:s,computedStates:o})}function Vw(r,e,t,n,i){let s=t&&!t(r,e.action),o=n&&!e.action.type.match(n.map(c=>Wq(c)).join("|")),a=i&&e.action.type.match(i.map(c=>Wq(c)).join("|"));return s||o||a}function Wq(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function m3(r){return{ngZone:r?Vt(ya):null,connectInZone:r}}var $g=(()=>{class r extends Bd{static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Es(r)))(i||r)}})()}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac})}}return r}
49)(),Ug={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},Kw=new Ui("@ngrx/store-devtools Redux Devtools Extension"),d3=(()=>{class r{constructor(t,n,i){this.config=n,this.dispatcher=i,this.zoneConfig=m3(this.config.connectInZone),this.devtoolsExtension=t,this.createActionStreams()}notify(t,n){if(this.devtoolsExtension)if(t.type===pd){if(n.isLocked||n.isPaused)return;let i=o3(n);if(l3(this.config)&&Vw(i,t,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let s=this.config.stateSanitizer?c3(this.config.stateSanitizer,i,n.currentStateIndex):i,o=this.config.actionSanitizer?a3(this.config.actionSanitizer,t,n.nextActionId):t;this.sendToReduxDevtools(()=>this.extensionConnection.send(o,s))}else{let i=E(x({},n),{stagedActionIds:n.stagedActionIds,actionsById:this.config.actionSanitizer?Pme(this.config.actionSanitizer,n.actionsById):n.actionsById,computedStates:this.config.stateSanitizer?Cme(this.config.stateSanitizer,n.computedStates):n.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,i,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new Xg(t=>{let n=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=n,n.init(),n.subscribe(i=>t.next(i)),n.unsubscribe}):hd}createActionStreams(){let t=this.createChangesObservable().pipe(Sd()),n=t.pipe(_n(l=>l.type===Ug.START)),i=t.pipe(_n(l=>l.type===Ug.STOP)),s=t.pipe(_n(l=>l.type===Ug.DISPATCH),ue(l=>this.unwrapAction(l.payload)),il(l=>l.type===Ww?this.dispatcher.pipe(_n(d=>d.type===uy),eR(1e3),yd(1e3),ue(()=>l),ha(()=>ot(l)),xd(1)):ot(l))),a=t.pipe(_n(l=>l.type===Ug.ACTION),ue(l=>this.unwrapAction(l.payload))).pipe(ga(i)),c=s.pipe(ga(i));this.start$=n.pipe(ga(i)),this.actions$=this.start$.pipe(lt(()=>a)),this.liftedActions$=this.start$.pipe(lt(()=>c))}unwrapAction(t){return typeof t=="string"?(0,eval)(`(${t})`):t}getExtensionConfig(t){let n={name:t.name,features:t.features,serialize:t.serialize,autoPause:t.autoPause??!1,trace:t.trace??!1,traceLimit:t.traceLimit??75};return t.maxAge!==!1&&(n.maxAge=t.maxAge),n}sendToReduxDevtools(t){try{t()}catch(n){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",n)}}static{this.\u0275fac=function(n){return new(n||r)(ee(Kw),ee(Fg),ee($g))}}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac})}}return r})(),Hg={type:dy},Nme="@ngrx/store-devtools/recompute",wme={type:Nme};function u3(r,e,t,n,i){if(n)return{state:t,error:"Interrupted by an error up the chain"};let s=t,o;try{s=r(t,e)}catch(a){o=a.toString(),i.handleError(a)}return{state:s,error:o}}function qg(r,e,t,n,i,s,o,a,c){if(e>=r.length&&r.length===s.length)return r;let l=r.slice(0,e),d=s.length-(c?1:0);for(let u=e;u<d;u++){let h=s[u],g=i[h].action,y=l[u-1],S=y?y.state:n,C=y?y.error:void 0,T=o.indexOf(h)>-1?y:u3(t,g,S,C,a);l.push(T)}return c&&l.push(r[r.length-1]),l}function Rme(r,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:ud(Hg)},stagedActionIds:[0],skippedActionIds:[],committedState:r,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function vme(r,e,t,n,i={}){return s=>(o,a)=>{let{monitorState:c,actionsById:l,nextActionId:d,stagedActionIds:u,skippedActionIds:h,committedState:g,currentStateIndex:y,computedStates:S,isLocked:C,isPaused:N}=o||e;o||(l=Object.create(l));function T(Z){let te=Z,ae=u.slice(1,te+1);for(let ye=0;ye<ae.length;ye++)if(S[ye+1].error){te=ye,ae=u.slice(1,te+1);break}else delete l[ae[ye]];h=h.filter(ye=>ae.indexOf(ye)===-1),u=[0,...u.slice(te+1)],g=S[te].state,S=S.slice(te),y=y>te?y-te:0}function I(){l={0:ud(Hg)},d=1,u=[0],h=[],g=S[y].state,y=0,S=[]}let k=0;switch(a.type){case n3:{C=a.status,k=1/0;break}case i3:{N=a.status,N?(u=[...u,d],l[d]=new Zc({type:"@ngrx/devtools/pause"},+Date.now()),d++,k=u.length-1,S=S.concat(S[S.length-1]),y===u.length-2&&y++,k=1/0):I();break}case Qq:{l={0:ud(Hg)},d=1,u=[0],h=[],g=r,y=0,S=[];break}case Jq:{I();break}case Yq:{l={0:ud(Hg)},d=1,u=[0],h=[],y=0,S=[];break}case e3:{let{id:Z}=a;h.indexOf(Z)===-1?h=[Z,...h]:h=h.filter(ae=>ae!==Z),k=u.indexOf(Z);break}case xme:{let{start:Z,end:te,active:ae}=a,ye=[];for(let pr=Z;pr<te;pr++)ye.push(pr);ae?h=Kq(h,ye):h=[...h,...ye],k=u.indexOf(Z);break}case t3:{y=a.index,k=1/0;break}case r3:{let Z=u.indexOf(a.actionId);Z!==-1&&(y=Z),k=1/0;break}case Zq:{u=Kq(u,h),h=[],y=Math.min(y,u.length-1);break}case pd:{if(C)return o||e;
49if(N||o&&Vw(o.computedStates[y],a,i.predicate,i.actionsSafelist,i.actionsBlocklist)){let te=S[S.length-1];S=[...S.slice(0,-1),u3(s,a.action,te.state,te.error,t)],k=1/0;break}i.maxAge&&u.length===i.maxAge&&T(1),y===u.length-1&&y++;let Z=d++;l[Z]=a,u=[...u,Z],k=u.length-1;break}case Ww:{({monitorState:c,actionsById:l,nextActionId:d,stagedActionIds:u,skippedActionIds:h,committedState:g,currentStateIndex:y,computedStates:S,isLocked:C,isPaused:N}=a.nextLiftedState);break}case dy:{k=0,i.maxAge&&u.length>i.maxAge&&(S=qg(S,k,s,g,l,u,h,t,N),T(u.length-i.maxAge),k=1/0);break}case uy:{if(S.filter(te=>te.error).length>0)k=0,i.maxAge&&u.length>i.maxAge&&(S=qg(S,k,s,g,l,u,h,t,N),T(u.length-i.maxAge),k=1/0);else{if(!N&&!C){y===u.length-1&&y++;let te=d++;l[te]=new Zc(a,+Date.now()),u=[...u,te],k=u.length-1,S=qg(S,k,s,g,l,u,h,t,N)}S=S.map(te=>E(x({},te),{state:s(te.state,wme)})),y=u.length-1,i.maxAge&&u.length>i.maxAge&&T(u.length-i.maxAge),k=1/0}break}default:{k=1/0;break}}return S=qg(S,k,s,g,l,u,h,t,N),c=n(c,a),{monitorState:c,actionsById:l,nextActionId:d,stagedActionIds:u,skippedActionIds:h,committedState:g,currentStateIndex:y,computedStates:S,isLocked:C,isPaused:N}}}var Vq=(()=>{class r{constructor(t,n,i,s,o,a,c,l){let d=Rme(c,l.monitor),u=vme(c,d,a,l.monitor,l),h=fa(fa(n.asObservable().pipe(aR(1)),s.actions$).pipe(ue(ud)),t,s.liftedActions$).pipe(Zw(Jw)),g=i.pipe(ue(u)),y=m3(l.connectInZone),S=new rl(1);this.liftedStateSubscription=h.pipe(cR(g),Xq(y),bd(({state:T},[I,k])=>{let Z=k(T,I);return I.type!==pd&&l3(l)&&(Z=Eme(Z,l.predicate,l.actionsSafelist,l.actionsBlocklist)),s.notify(I,Z),{state:Z,action:I}},{state:d,action:null})).subscribe(({state:T,action:I})=>{if(S.next(T),I.type===pd){let k=I.action;o.next(k)}}),this.extensionStartSubscription=s.start$.pipe(Xq(y)).subscribe(()=>{this.refresh()});let C=S.asObservable(),N=C.pipe(ue(o3));Object.defineProperty(N,"state",{value:QR(N,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=t,this.liftedState=C,this.state=N}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(t){this.dispatcher.next(t)}next(t){this.dispatcher.next(t)}error(t){}complete(){}performAction(t){this.dispatch(new Zc(t,+Date.now()))}refresh(){this.dispatch(new Ow)}reset(){this.dispatch(new Dw(+Date.now()))}rollback(){this.dispatch(new Lw(+Date.now()))}commit(){this.dispatch(new zw(+Date.now()))}sweep(){this.dispatch(new Uw)}toggleAction(t){this.dispatch(new qw(t))}jumpToAction(t){this.dispatch(new Fw(t))}jumpToState(t){this.dispatch(new Hw(t))}importState(t){this.dispatch(new $w(t))}lockChanges(t){this.dispatch(new jw(t))}pauseRecording(t){this.dispatch(new Gw(t))}static{this.\u0275fac=function(n){return new(n||r)(ee($g),ee(Bd),ee(JR),ee(d3),ee(ev),ee(mR),ee(YR),ee(Fg))}}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac})}}return r})();function Xq({ngZone:r,connectInZone:e}){return t=>e?new Xg(n=>t.subscribe({next:i=>r.run(()=>n.next(i)),error:i=>r.run(()=>n.error(i)),complete:()=>r.run(()=>n.complete())})):t}var Tme=new Ui("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function _me(r,e){return!!r||e.monitor!==s3}function Ame(){let r="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[r]<"u"?window[r]:null}function Ime(r){return r.state}function Mme(r={}){return lR([d3,$g,Vq,{provide:Gq,useValue:r},{provide:Tme,deps:[Kw,Fg],useFactory:_me},{provide:Kw,useFactory:Ame},{provide:Fg,deps:[Gq],useFactory:Sme},{provide:tv,deps:[Vq],useFactory:Ime},{provide:ZR,useExisting:$g}])}var p3=(()=>{class r{static instrument(t={}){return{ngModule:r,providers:[Mme(t)]}}static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275mod=hr({type:r})}static{this.\u0275inj=fr({})}}return r})();var h3=(()=>{class r{constructor(t,n,i){this.actions$=t,this.httpClient=n,this.manifestService=i,this.fetchContent$=er(()=>this.actions$.pipe(tr(lo.fetchContent),lt(()=>{let s=this.manifestService.getAsset("/assets/business-content.json");return s?this.httpClient.get(s):ot(void 0)}),ue(s=>lo.contentLoaded({businessContent:s}))))}static{this.\u0275fac=function(n){return new(n||r)(ee(Mr),ee(xa),ee(ao))}}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac})}}return r})();var g3=(()=>
49{class r{constructor(t,n){this.actions$=t,this.ergoPointerService=n,this.connect$=er(()=>this.actions$.pipe(tr(Sy),lt(()=>this.ergoPointerService.connect$())),{dispatch:!1}),this.settings$=er(()=>this.actions$.pipe(fy(kv),Cs(({config:i})=>this.ergoPointerService.setConfig(i)),ue(({isConnected:i})=>i?Sy():by()))),this.disconnect$=er(()=>this.actions$.pipe(fy(by),Cs(()=>this.ergoPointerService.disconnect())),{dispatch:!1})}static{this.\u0275fac=function(n){return new(n||r)(ee(Mr),ee(Ld))}}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac})}}return r})();var y3=(()=>{class r{constructor(t,n){this.actions$=t,this.translateService=n,this.languageLoaded$=er(()=>this.actions$.pipe(tr(mn.fetchLanguageFromBackend),lt(()=>ot("en")),ue(i=>mn.languageFromBackendLoaded({locale:i})))),this.loadI18nJson$=er(()=>this.actions$.pipe(tr(mn.languageFromBackendLoaded),lt(({locale:i})=>this.translateService.setActiveLocale$(i)),ue(i=>mn.i18nFileLoaded())))}static{this.\u0275fac=function(n){return new(n||r)(ee(Mr),ee(Ad))}}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac})}}return r})();var x3=(()=>{class r{constructor(t,n,i){this.actions$=t,this.store=n,this.uiConfig=i,this.enablePotentially$=er(()=>this.actions$.pipe(tr(mo.enablePotentially),yd(this.uiConfig.loadingSpinnerDelay),lt(s=>this.store.select(_v.selectLoadingSpinner).pipe(xd(1))),_n(s=>s.pendingRequests>0),ue(s=>mo.enableGlobally())))}static{this.\u0275fac=function(n){return new(n||r)(ee(Mr),ee(Zn),ee(Pa))}}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac})}}return r})();var b3=(()=>{class r{constructor(t,n,i){this.actions$=t,this.httpClient=n,this.manifestService=i,this.updateManifest$=er(()=>this.actions$.pipe(tr(Rs.updateManifest),ue(s=>{let o=this.manifestService.hash;return o?`manifest.${o}`:"manifest"}),lt(s=>this.httpClient.get(`/assets/${s}.json`)),ue(s=>Rs.manifestUpdated({manifest:s})))),this.manifestUpdated$=er(()=>this.actions$.pipe(tr(Rs.manifestUpdated),Cs(({manifest:s})=>this.manifestService.update(s)),ue(s=>fv([mn.fetchLanguageFromBackend(),lo.fetchContent()]))))}static{this.\u0275fac=function(n){return new(n||r)(ee(Mr),ee(xa),ee(ao))}}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac})}}return r})();var S3=(()=>{class r{constructor(t,n,i){this.actions$=t,this.store=n,this.mediaQueryService=i,this.loadNavLinks$=er(()=>this.actions$.pipe(tr(ol.loadNavLinks),hv(()=>Td([this.store.select(Dd.selectIsUserImpersonator),this.store.select(Sa.selectIsOnLandingRoute),this.store.select(Sa.selectIsOnImpersonatorRoute),this.mediaQueryService.breakpoint$])),ue(({action:{user:s},selected:[o,a,c,l]})=>ol.navLinksLoaded({navLinks:this.buildNavLinks(s,o,a,c,l)}))))}buildNavLinks(t,n,i,s,o){let a=[];return i||s?a.push({translationKey:"IMAGE_MANAGEMENT.TITLE",link:`/${Br.Root}`,isDisabled:!1}):o<ov.M&&(t?a.push({translationKey:"IMAGE_MANAGEMENT.ITEM_GROUPS.MY_SLIDES",link:`/${Br.Root}/${Br.MySlides}`,isDisabled:!1},{translationKey:"IMAGE_MANAGEMENT.ITEM_GROUPS.TRASH",link:`/${Br.Root}/${Br.Trash}`,isDisabled:!1},{translationKey:"IMAGE_MANAGEMENT.ITEM_GROUPS.SHARED_WITH_ME",link:`/${Br.Root}/${Br.SharedWithMe}`,isDisabled:!1}):a.push({translationKey:"IMAGE_MANAGEMENT.ITEM_GROUPS.PUBLIC_SLIDES",link:`/${Br.Root}/${Br.PublicSlides}`,isDisabled:!1})),n&&a.push({translationKey:"IMPERSONATION.IMPERSONATION",link:"/impersonation",isDisabled:!1}),a}static{this.\u0275fac=function(n){return new(n||r)(ee(Mr),ee(Zn),ee(av))}}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac})}}return r})();var Ome=null,P3=Zt(Ome,vt(lo.contentLoaded,(r,{businessContent:e})=>e));var Lme={xySensitivity:.5,zSensitivity:.5,refreshRateMs:50},C3=Zt(Lme,vt(Py.settings,(r,e)=>x(x({},r),e)));var Ume=null,E3=Zt(Ume,vt(mn.languageFromBackendLoaded,(r,{locale:e})=>E(x({},r),{locale:e})),vt(mn.i18nFileLoaded,r=>E(x({},r),{i18nLoaded:!0})));var Hme={isGloballySpinning:!1,pendingRequests:0},N3=Zt(Hme,vt(mo.enableGlobally,r=>E(x({},r),{isGloballySpinning:!0})),vt(mo.disableGlobally,r=>{let e=r.pendingRequests-1,t=e<0?0:e;return E(x({},r),{isGloballySpinning:t>0,pendingRequests:t})}),vt(mo.enablePotentially,r=>E(x({},r),{pendingRequests:r.pendingRequests+1})));var $me=null,w3=Zt($me,vt(Rs.manifestUpdated,(r,{manifest:e})=>e));var Gme={bordered:!1,raised:!1,backgroundBlockColour:!0},R3=Zt(Gme,vt(Ov.changeAppearance,(r,e)=>e));var Wme=[],v3=Zt(Wme,vt(ol.navLinksLoaded,(r,{navLinks:e})=>e));var Xme={name:"light"},T3=Zt(Xme,vt(Dv.changeTheme,(r,{theme:e})=>e));var _3={language:E3,loadingSpinner:N3,navLinks:v3,navAppearance:R3,router:Av,theme:T3,manifest:w3,inputDevice:C3,businessContent:P3};var A3=(()=>
49{class r{constructor(t,n,i,s,o,a,c,l){this.trackerService=t,this.router=n,this.uiConfig=i,this.logger=s,this.coreInitService=o,this.apiService=a,this.store=c,this.actions$=l}init$(){return this.logger.logLevel=DR(this.uiConfig.logLevel),this.store.dispatch(Rs.updateManifest()),Td([this.actions$.pipe(tr(mn.i18nFileLoaded)),this.coreInitService.init$().pipe(FR(()=>this.trackerService.init$(this.uiConfig.tracker)),lt(t=>{switch(t.type){case hy.Success:return ot(t.user||null);case hy.Error:return t.reason===dv.Auth?Qn(this.router.navigate(["/no-terms-and-conditions"])).pipe(ue(()=>null)):(this.logger.log(Yn.Error,`Unhandled core init error: '${t.reason}'`),ot(null))}}),this.apiService.catchError(t=>(this.apiService.pushSnackbarError(t),ot(null))))]).pipe(ue(([,t])=>t))}static{this.\u0275fac=function(n){return new(n||r)(ee(XR),ee(kd),ee(Pa),ee(Ns),ee(xv),ee(gv),ee(Zn),ee(Mr))}}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var I3=(()=>{class r{constructor(t,n,i){this.keycloakConfigProvider=t,this.baseLocationService=n,this.logger=i}create$(){return this.keycloakConfigProvider.use$().pipe(ue(t=>({leadingRefreshMs:iu(t.minValidityTime/2),refreshRetryCount:3,loginRedirectUri:`${this.baseLocationService.get()}/${Br.Root}`,loginRequired:!1,enableClientLogging:this.logger.logLevel===Yn.Trace,clientId:t.clientId})))}static{this.\u0275fac=function(n){return new(n||r)(ee(ox),ee(Id),ee(Ns))}}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac})}}return r})();var jg={production:!0};var B3=jg.production,tl=!B3,Jme=B3?[]:[p3.instrument({maxAge:!1,actionSanitizer:pv})],Zme=r=>()=>r.init$(),ede=()=>window,tde=r=>r.configByKey("annotations"),rde=r=>r.configByKey("imageManagement"),nde=r=>r.configByKey("userManagement"),ide=r=>r.configByKey("ui"),M3=new Ui("IMS Reducer"),sde=[uv],ode=(r,e)=>new qv(r,e),k3=(()=>{class r{constructor(t){if(t)throw new Error("CoreModule is already loaded - ensure to import it once and in the AppModule only.")}static{this.\u0275fac=function(n){return new(n||r)(ee(r,12))}}static{this.\u0275mod=hr({type:r})}static{this.\u0275inj=fr({providers:[Ld,{provide:Uv,useFactory:ode,deps:[Ns,ya]},{provide:M3,useValue:_3},{provide:UR,useValue:window},{provide:Ev,useFactory:rde,deps:[Hi]},{provide:zv,useFactory:tde,deps:[Hi]},{provide:Rv,useFactory:nde,deps:[Hi]},{provide:Pa,useFactory:ide,deps:[Hi]},{provide:Window,useFactory:ede},{provide:Hi,useFactory:WT,deps:[Window]},{provide:lv,useClass:I3},{provide:mv,useValue:{assetHostPrefix:"/assets/",assetKeyPrefix:"/assets/",envJsId:"environment-javascript-file"}},hR(()=>Zme(Vt(A3))())],imports:[rv.forRoot(M3,{metaReducers:sde,runtimeChecks:{strictStateImmutability:tl,strictActionImmutability:tl,strictStateSerializability:tl,strictActionSerializability:tl,strictActionWithinNgZone:tl,strictActionTypeUniqueness:tl}}),cv.forRoot([y3,h3,x3,b3,S3,g3]),Mv.forRoot({routerState:Iv.Minimal}),Jme,Cy,Cy]})}}return r})();var Gg=class{constructor(e,t){this.httpClient=e,this.manifestService=t}getTranslation(e){return this.httpClient.get(this.manifestService.getAsset(`/assets/internationalization/${e}.json`))}};var O3=(()=>{class r{constructor(t,n){this.store=t,this.router=n}canActivate(t,n){return this.store.select(Dd.selectIsUserImpersonator).pipe(ue(i=>i?!0:this.router.createUrlTree(["/"])))}static{this.\u0275fac=function(n){return new(n||r)(ee(Zn),ee(kd))}}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var ade=[{path:Br.Root,loadChildren:()=>p(null,null,function*(){return(yield import("./chunk-3I6ILY5F.js")).ImageManagementModule}),data:{preload:!0,delayMs:6e3}},{path:"impersonation",title:"APP.SUBTITLES.IMPERSONATION",component:Hv,canActivate:[O3]},{path:"upload-review",title:"APP.SUBTITLES.UPLOAD_REVIEW",component:Wv,canActivate:[Vv]},{path:"no-terms-and-conditions",title:"APP.SUBTITLES.TERMS_AND_CONDITIONS",component:Gv,canDeactivate:[(r,e,t,n)=>!!["/slides/public","/plans","/"].find(s=>n.url.endsWith(s))]},{path:"login",component:$v},{path:"register",component:Kv},{path:"",title:"APP.SUBTITLES.HOME",component:Fv,pathMatch:"full"},{path:"**",title:"APP.SUBTITLES.PAGE_NOT_FOUND",component:jv}],D3=(()=>{class r{static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275mod=hr({type:r})}static{this.\u0275inj=fr({providers:[gy,{provide:iv,useClass:Sv}],imports:[py.forRoot(ade,{preloadingStrategy:gy}),py]})}}return r})();var cde=(r,e)=>new Gg(r,e),L3=(()=>{class r{static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275mod=hr({type:r,bootstrap:[jq]})}static{this.\u0275inj=fr({providers:[{provide:sv,useFactory:t=>t.getAsset("/assets/images/loading-spinner.svg"),deps:[ao]},{provide:kw,useValue:t=>`ITEM_SHARING.ERRORS.UPLOAD.FINALIZATION_${$R(t)}`},{provide:kR,useValue:{disableTooltipInteractivity:!0}},{provide:MR,useFactory:t=>({scrollStrategy:t.noop()}),deps:[vR]},{provide:TR,useClass:_R},wR(RR())],imports:[D3,wd,KT,Tv.forRoot(),Pv.forRoot({translateLoader:{useFactory:cde,deps:[xa,ao]},logger:{useClass:LR}}),r_.forRoot(),vv.forRoot(),bv.forRoot({tokenInterceptorFilter:t=>!t.startsWith("assets")}),Fq.forRoot(),k3,AR,IR,BR]})}}return r})();jg.production&&void 0;ER().bootstrapModule(L3).catch(r=>console.error(r));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.