rmapi-js 8.0.1 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +59 -3
- package/dist/index.js +47 -15
- package/dist/rmapi-js.esm.min.js +15 -10
- package/package.json +12 -12
package/dist/rmapi-js.esm.min.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var uV=Object.create;var{getPrototypeOf:dV,defineProperty:M1,getOwnPropertyNames:A$,getOwnPropertyDescriptor:lV}=Object,R$=Object.prototype.hasOwnProperty;var x$=($,V,Q)=>{Q=$!=null?uV(dV($)):{};let q=V||!$||!$.__esModule?M1(Q,"default",{value:$,enumerable:!0}):Q;for(let K of A$($))if(!R$.call(q,K))M1(q,K,{get:()=>$[K],enumerable:!0});return q},v$=new WeakMap,T$=($)=>{var V=v$.get($),Q;if(V)return V;if(V=M1({},"__esModule",{value:!0}),$&&typeof $==="object"||typeof $==="function")A$($).map((q)=>!R$.call(V,q)&&M1(V,q,{get:()=>$[q],enumerable:!(Q=lV($,q))||Q.enumerable}));return v$.set($,V),V},$0=($,V)=>()=>(V||$((V={exports:{}}).exports,V),V.exports);var oV=($,V)=>{for(var Q in V)M1($,Q,{get:V[Q],enumerable:!0,configurable:!0,set:(q)=>V[Q]=()=>q})};var iV=($,V)=>()=>($&&(V=$($=0)),V);var g$=$0((p2)=>{/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */var k$;(function($){if(typeof DO_NOT_EXPORT_CRC==="undefined")if(typeof p2==="object")$(p2);else if(typeof define==="function"&&define.amd)define(function(){var V={};return $(V),V});else $(k$={});else $(k$={})})(function($){$.version="1.2.2";function V(){var L=0,T=new Array(256);for(var E=0;E!=256;++E)L=E,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,T[E]=L;return typeof Int32Array!=="undefined"?new Int32Array(T):T}var Q=V();function q(L){var T=0,E=0,f=0,b=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(f=0;f!=256;++f)b[f]=L[f];for(f=0;f!=256;++f){E=L[f];for(T=256+f;T<4096;T+=256)E=b[T]=E>>>8^L[E&255]}var F=[];for(f=1;f!=16;++f)F[f-1]=typeof Int32Array!=="undefined"?b.subarray(f*256,f*256+256):b.slice(f*256,f*256+256);return F}var K=q(Q),G=K[0],W=K[1],J=K[2],P=K[3],j=K[4],z=K[5],C=K[6],w=K[7],R=K[8],x=K[9],S=K[10],g=K[11],y=K[12],Z=K[13],O=K[14];function M(L,T){var E=T^-1;for(var f=0,b=L.length;f<b;)E=E>>>8^Q[(E^L.charCodeAt(f++))&255];return~E}function A(L,T){var E=T^-1,f=L.length-15,b=0;for(;b<f;)E=O[L[b++]^E&255]^Z[L[b++]^E>>8&255]^y[L[b++]^E>>16&255]^g[L[b++]^E>>>24]^S[L[b++]]^x[L[b++]]^R[L[b++]]^w[L[b++]]^C[L[b++]]^z[L[b++]]^j[L[b++]]^P[L[b++]]^J[L[b++]]^W[L[b++]]^G[L[b++]]^Q[L[b++]];f+=15;while(b<f)E=E>>>8^Q[(E^L[b++])&255];return~E}function B(L,T){var E=T^-1;for(var f=0,b=L.length,F=0,m=0;f<b;)if(F=L.charCodeAt(f++),F<128)E=E>>>8^Q[(E^F)&255];else if(F<2048)E=E>>>8^Q[(E^(192|F>>6&31))&255],E=E>>>8^Q[(E^(128|F&63))&255];else if(F>=55296&&F<57344)F=(F&1023)+64,m=L.charCodeAt(f++)&1023,E=E>>>8^Q[(E^(240|F>>8&7))&255],E=E>>>8^Q[(E^(128|F>>2&63))&255],E=E>>>8^Q[(E^(128|m>>6&15|(F&3)<<4))&255],E=E>>>8^Q[(E^(128|m&63))&255];else E=E>>>8^Q[(E^(224|F>>12&15))&255],E=E>>>8^Q[(E^(128|F>>6&63))&255],E=E>>>8^Q[(E^(128|F&63))&255];return~E}$.table=Q,$.bstr=M,$.buf=A,$.str=B})});var n2={};oV(n2,{default:()=>l$});var sV,d1,tV,eV,$q,Qq,Vq=($,V)=>()=>($&&(V=$($=0)),V),j0=($,V)=>()=>(V||$((V={exports:{}}).exports,V),V.exports),y$=($,V)=>{for(var Q in V)d1($,Q,{get:V[Q],enumerable:!0})},c1=($,V,Q,q)=>{if(V&&typeof V=="object"||typeof V=="function")for(let K of eV(V))!Qq.call($,K)&&K!==Q&&d1($,K,{get:()=>V[K],enumerable:!(q=tV(V,K))||q.enumerable});return $},b$=($,V,Q)=>(c1($,V,"default"),Q&&c1(Q,V,"default")),u1=($,V,Q)=>(Q=$!=null?sV($q($)):{},c1(V||!$||!$.__esModule?d1(Q,"default",{value:$,enumerable:!0}):Q,$)),T6=($)=>c1(d1({},"__esModule",{value:!0}),$),qq,Xq,Z6,x0,q6,c2,f0,l1,E$,Y6,f$,S6,k6,g6,Yq,a6,u2,d2,l2,Kq,o2,Jq,Gq,h$,o1,_$,Uq,X6,m$,p$,i2,Wq,c$,jq,u$,d$,l$;var a2=iV(()=>{sV=Object.create,d1=Object.defineProperty,tV=Object.getOwnPropertyDescriptor,eV=Object.getOwnPropertyNames,$q=Object.getPrototypeOf,Qq=Object.prototype.hasOwnProperty,qq=j0(($)=>{$.byteLength=P,$.toByteArray=z,$.fromByteArray=R;var V=[],Q=[],q=typeof Uint8Array<"u"?Uint8Array:Array,K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(G=0,W=K.length;G<W;++G)V[G]=K[G],Q[K.charCodeAt(G)]=G;var G,W;Q[45]=62,Q[95]=63;function J(x){var S=x.length;if(S%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=x.indexOf("=");g===-1&&(g=S);var y=g===S?0:4-g%4;return[g,y]}function P(x){var S=J(x),g=S[0],y=S[1];return(g+y)*3/4-y}function j(x,S,g){return(S+g)*3/4-g}function z(x){var S,g=J(x),y=g[0],Z=g[1],O=new q(j(x,y,Z)),M=0,A=Z>0?y-4:y,B;for(B=0;B<A;B+=4)S=Q[x.charCodeAt(B)]<<18|Q[x.charCodeAt(B+1)]<<12|Q[x.charCodeAt(B+2)]<<6|Q[x.charCodeAt(B+3)],O[M++]=S>>16&255,O[M++]=S>>8&255,O[M++]=S&255;return Z===2&&(S=Q[x.charCodeAt(B)]<<2|Q[x.charCodeAt(B+1)]>>4,O[M++]=S&255),Z===1&&(S=Q[x.charCodeAt(B)]<<10|Q[x.charCodeAt(B+1)]<<4|Q[x.charCodeAt(B+2)]>>2,O[M++]=S>>8&255,O[M++]=S&255),O}function C(x){return V[x>>18&63]+V[x>>12&63]+V[x>>6&63]+V[x&63]}function w(x,S,g){for(var y,Z=[],O=S;O<g;O+=3)y=(x[O]<<16&16711680)+(x[O+1]<<8&65280)+(x[O+2]&255),Z.push(C(y));return Z.join("")}function R(x){for(var S,g=x.length,y=g%3,Z=[],O=16383,M=0,A=g-y;M<A;M+=O)Z.push(w(x,M,M+O>A?A:M+O));return y===1?(S=x[g-1],Z.push(V[S>>2]+V[S<<4&63]+"==")):y===2&&(S=(x[g-2]<<8)+x[g-1],Z.push(V[S>>10]+V[S>>4&63]+V[S<<2&63]+"=")),Z.join("")}}),Xq=j0(($)=>{$.read=function(V,Q,q,K,G){var W,J,P=G*8-K-1,j=(1<<P)-1,z=j>>1,C=-7,w=q?G-1:0,R=q?-1:1,x=V[Q+w];for(w+=R,W=x&(1<<-C)-1,x>>=-C,C+=P;C>0;W=W*256+V[Q+w],w+=R,C-=8);for(J=W&(1<<-C)-1,W>>=-C,C+=K;C>0;J=J*256+V[Q+w],w+=R,C-=8);if(W===0)W=1-z;else{if(W===j)return J?NaN:(x?-1:1)*(1/0);J=J+Math.pow(2,K),W=W-z}return(x?-1:1)*J*Math.pow(2,W-K)},$.write=function(V,Q,q,K,G,W){var J,P,j,z=W*8-G-1,C=(1<<z)-1,w=C>>1,R=G===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=K?0:W-1,S=K?1:-1,g=Q<0||Q===0&&1/Q<0?1:0;for(Q=Math.abs(Q),isNaN(Q)||Q===1/0?(P=isNaN(Q)?1:0,J=C):(J=Math.floor(Math.log(Q)/Math.LN2),Q*(j=Math.pow(2,-J))<1&&(J--,j*=2),J+w>=1?Q+=R/j:Q+=R*Math.pow(2,1-w),Q*j>=2&&(J++,j/=2),J+w>=C?(P=0,J=C):J+w>=1?(P=(Q*j-1)*Math.pow(2,G),J=J+w):(P=Q*Math.pow(2,w-1)*Math.pow(2,G),J=0));G>=8;V[q+x]=P&255,x+=S,P/=256,G-=8);for(J=J<<G|P,z+=G;z>0;V[q+x]=J&255,x+=S,J/=256,z-=8);V[q+x-S]|=g*128}}),Z6=j0(($)=>{var V=qq(),Q=Xq(),q=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;$.Buffer=J,$.SlowBuffer=Z,$.INSPECT_MAX_BYTES=50;var K=2147483647;$.kMaxLength=K,J.TYPED_ARRAY_SUPPORT=G(),!J.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 G(){try{let X=new Uint8Array(1),Y={foo:function(){return 42}};return Object.setPrototypeOf(Y,Uint8Array.prototype),Object.setPrototypeOf(X,Y),X.foo()===42}catch{return!1}}Object.defineProperty(J.prototype,"parent",{enumerable:!0,get:function(){if(J.isBuffer(this))return this.buffer}}),Object.defineProperty(J.prototype,"offset",{enumerable:!0,get:function(){if(J.isBuffer(this))return this.byteOffset}});function W(X){if(X>K)throw new RangeError('The value "'+X+'" is invalid for option "size"');let Y=new Uint8Array(X);return Object.setPrototypeOf(Y,J.prototype),Y}function J(X,Y,U){if(typeof X=="number"){if(typeof Y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return C(X)}return P(X,Y,U)}J.poolSize=8192;function P(X,Y,U){if(typeof X=="string")return w(X,Y);if(ArrayBuffer.isView(X))return x(X);if(X==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X);if(z0(X,ArrayBuffer)||X&&z0(X.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(z0(X,SharedArrayBuffer)||X&&z0(X.buffer,SharedArrayBuffer)))return S(X,Y,U);if(typeof X=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let H=X.valueOf&&X.valueOf();if(H!=null&&H!==X)return J.from(H,Y,U);let D=g(X);if(D)return D;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof X[Symbol.toPrimitive]=="function")return J.from(X[Symbol.toPrimitive]("string"),Y,U);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X)}J.from=function(X,Y,U){return P(X,Y,U)},Object.setPrototypeOf(J.prototype,Uint8Array.prototype),Object.setPrototypeOf(J,Uint8Array);function j(X){if(typeof X!="number")throw new TypeError('"size" argument must be of type number');if(X<0)throw new RangeError('The value "'+X+'" is invalid for option "size"')}function z(X,Y,U){return j(X),X<=0?W(X):Y!==void 0?typeof U=="string"?W(X).fill(Y,U):W(X).fill(Y):W(X)}J.alloc=function(X,Y,U){return z(X,Y,U)};function C(X){return j(X),W(X<0?0:y(X)|0)}J.allocUnsafe=function(X){return C(X)},J.allocUnsafeSlow=function(X){return C(X)};function w(X,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!J.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);let U=O(X,Y)|0,H=W(U),D=H.write(X,Y);return D!==U&&(H=H.slice(0,D)),H}function R(X){let Y=X.length<0?0:y(X.length)|0,U=W(Y);for(let H=0;H<Y;H+=1)U[H]=X[H]&255;return U}function x(X){if(z0(X,Uint8Array)){let Y=new Uint8Array(X);return S(Y.buffer,Y.byteOffset,Y.byteLength)}return R(X)}function S(X,Y,U){if(Y<0||X.byteLength<Y)throw new RangeError('"offset" is outside of buffer bounds');if(X.byteLength<Y+(U||0))throw new RangeError('"length" is outside of buffer bounds');let H;return Y===void 0&&U===void 0?H=new Uint8Array(X):U===void 0?H=new Uint8Array(X,Y):H=new Uint8Array(X,Y,U),Object.setPrototypeOf(H,J.prototype),H}function g(X){if(J.isBuffer(X)){let Y=y(X.length)|0,U=W(Y);return U.length===0||X.copy(U,0,0,Y),U}if(X.length!==void 0)return typeof X.length!="number"||b0(X.length)?W(0):R(X);if(X.type==="Buffer"&&Array.isArray(X.data))return R(X.data)}function y(X){if(X>=K)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K.toString(16)+" bytes");return X|0}function Z(X){return+X!=X&&(X=0),J.alloc(+X)}J.isBuffer=function(X){return X!=null&&X._isBuffer===!0&&X!==J.prototype},J.compare=function(X,Y){if(z0(X,Uint8Array)&&(X=J.from(X,X.offset,X.byteLength)),z0(Y,Uint8Array)&&(Y=J.from(Y,Y.offset,Y.byteLength)),!J.isBuffer(X)||!J.isBuffer(Y))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(X===Y)return 0;let U=X.length,H=Y.length;for(let D=0,h=Math.min(U,H);D<h;++D)if(X[D]!==Y[D]){U=X[D],H=Y[D];break}return U<H?-1:H<U?1:0},J.isEncoding=function(X){switch(String(X).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}},J.concat=function(X,Y){if(!Array.isArray(X))throw new TypeError('"list" argument must be an Array of Buffers');if(X.length===0)return J.alloc(0);let U;if(Y===void 0)for(Y=0,U=0;U<X.length;++U)Y+=X[U].length;let H=J.allocUnsafe(Y),D=0;for(U=0;U<X.length;++U){let h=X[U];if(z0(h,Uint8Array))D+h.length>H.length?(J.isBuffer(h)||(h=J.from(h)),h.copy(H,D)):Uint8Array.prototype.set.call(H,h,D);else if(J.isBuffer(h))h.copy(H,D);else throw new TypeError('"list" argument must be an Array of Buffers');D+=h.length}return H};function O(X,Y){if(J.isBuffer(X))return X.length;if(ArrayBuffer.isView(X)||z0(X,ArrayBuffer))return X.byteLength;if(typeof X!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof X);let U=X.length,H=arguments.length>2&&arguments[2]===!0;if(!H&&U===0)return 0;let D=!1;for(;;)switch(Y){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":return _(X).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U*2;case"hex":return U>>>1;case"base64":return U0(X).length;default:if(D)return H?-1:_(X).length;Y=(""+Y).toLowerCase(),D=!0}}J.byteLength=O;function M(X,Y,U){let H=!1;if((Y===void 0||Y<0)&&(Y=0),Y>this.length||((U===void 0||U>this.length)&&(U=this.length),U<=0)||(U>>>=0,Y>>>=0,U<=Y))return"";for(X||(X="utf8");;)switch(X){case"hex":return e(this,Y,U);case"utf8":case"utf-8":return n(this,Y,U);case"ascii":return u(this,Y,U);case"latin1":case"binary":return i(this,Y,U);case"base64":return m(this,Y,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d(this,Y,U);default:if(H)throw new TypeError("Unknown encoding: "+X);X=(X+"").toLowerCase(),H=!0}}J.prototype._isBuffer=!0;function A(X,Y,U){let H=X[Y];X[Y]=X[U],X[U]=H}J.prototype.swap16=function(){let X=this.length;if(X%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Y=0;Y<X;Y+=2)A(this,Y,Y+1);return this},J.prototype.swap32=function(){let X=this.length;if(X%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let Y=0;Y<X;Y+=4)A(this,Y,Y+3),A(this,Y+1,Y+2);return this},J.prototype.swap64=function(){let X=this.length;if(X%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let Y=0;Y<X;Y+=8)A(this,Y,Y+7),A(this,Y+1,Y+6),A(this,Y+2,Y+5),A(this,Y+3,Y+4);return this},J.prototype.toString=function(){let X=this.length;return X===0?"":arguments.length===0?n(this,0,X):M.apply(this,arguments)},J.prototype.toLocaleString=J.prototype.toString,J.prototype.equals=function(X){if(!J.isBuffer(X))throw new TypeError("Argument must be a Buffer");return this===X?!0:J.compare(this,X)===0},J.prototype.inspect=function(){let X="",Y=$.INSPECT_MAX_BYTES;return X=this.toString("hex",0,Y).replace(/(.{2})/g,"$1 ").trim(),this.length>Y&&(X+=" ... "),"<Buffer "+X+">"},q&&(J.prototype[q]=J.prototype.inspect),J.prototype.compare=function(X,Y,U,H,D){if(z0(X,Uint8Array)&&(X=J.from(X,X.offset,X.byteLength)),!J.isBuffer(X))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof X);if(Y===void 0&&(Y=0),U===void 0&&(U=X?X.length:0),H===void 0&&(H=0),D===void 0&&(D=this.length),Y<0||U>X.length||H<0||D>this.length)throw new RangeError("out of range index");if(H>=D&&Y>=U)return 0;if(H>=D)return-1;if(Y>=U)return 1;if(Y>>>=0,U>>>=0,H>>>=0,D>>>=0,this===X)return 0;let h=D-H,o=U-Y,G0=Math.min(h,o),R0=this.slice(H,D),L0=X.slice(Y,U);for(let Z0=0;Z0<G0;++Z0)if(R0[Z0]!==L0[Z0]){h=R0[Z0],o=L0[Z0];break}return h<o?-1:o<h?1:0};function B(X,Y,U,H,D){if(X.length===0)return-1;if(typeof U=="string"?(H=U,U=0):U>2147483647?U=2147483647:U<-2147483648&&(U=-2147483648),U=+U,b0(U)&&(U=D?0:X.length-1),U<0&&(U=X.length+U),U>=X.length){if(D)return-1;U=X.length-1}else if(U<0)if(D)U=0;else return-1;if(typeof Y=="string"&&(Y=J.from(Y,H)),J.isBuffer(Y))return Y.length===0?-1:L(X,Y,U,H,D);if(typeof Y=="number")return Y=Y&255,typeof Uint8Array.prototype.indexOf=="function"?D?Uint8Array.prototype.indexOf.call(X,Y,U):Uint8Array.prototype.lastIndexOf.call(X,Y,U):L(X,[Y],U,H,D);throw new TypeError("val must be string, number or Buffer")}function L(X,Y,U,H,D){let h=1,o=X.length,G0=Y.length;if(H!==void 0&&(H=String(H).toLowerCase(),H==="ucs2"||H==="ucs-2"||H==="utf16le"||H==="utf-16le")){if(X.length<2||Y.length<2)return-1;h=2,o/=2,G0/=2,U/=2}function R0(Z0,D0){return h===1?Z0[D0]:Z0.readUInt16BE(D0*h)}let L0;if(D){let Z0=-1;for(L0=U;L0<o;L0++)if(R0(X,L0)===R0(Y,Z0===-1?0:L0-Z0)){if(Z0===-1&&(Z0=L0),L0-Z0+1===G0)return Z0*h}else Z0!==-1&&(L0-=L0-Z0),Z0=-1}else for(U+G0>o&&(U=o-G0),L0=U;L0>=0;L0--){let Z0=!0;for(let D0=0;D0<G0;D0++)if(R0(X,L0+D0)!==R0(Y,D0)){Z0=!1;break}if(Z0)return L0}return-1}J.prototype.includes=function(X,Y,U){return this.indexOf(X,Y,U)!==-1},J.prototype.indexOf=function(X,Y,U){return B(this,X,Y,U,!0)},J.prototype.lastIndexOf=function(X,Y,U){return B(this,X,Y,U,!1)};function T(X,Y,U,H){U=Number(U)||0;let D=X.length-U;H?(H=Number(H),H>D&&(H=D)):H=D;let h=Y.length;H>h/2&&(H=h/2);let o;for(o=0;o<H;++o){let G0=parseInt(Y.substr(o*2,2),16);if(b0(G0))return o;X[U+o]=G0}return o}function E(X,Y,U,H){return q0(_(Y,X.length-U),X,U,H)}function f(X,Y,U,H){return q0(a(Y),X,U,H)}function b(X,Y,U,H){return q0(U0(Y),X,U,H)}function F(X,Y,U,H){return q0(s(Y,X.length-U),X,U,H)}J.prototype.write=function(X,Y,U,H){if(Y===void 0)H="utf8",U=this.length,Y=0;else if(U===void 0&&typeof Y=="string")H=Y,U=this.length,Y=0;else if(isFinite(Y))Y=Y>>>0,isFinite(U)?(U=U>>>0,H===void 0&&(H="utf8")):(H=U,U=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let D=this.length-Y;if((U===void 0||U>D)&&(U=D),X.length>0&&(U<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");H||(H="utf8");let h=!1;for(;;)switch(H){case"hex":return T(this,X,Y,U);case"utf8":case"utf-8":return E(this,X,Y,U);case"ascii":case"latin1":case"binary":return f(this,X,Y,U);case"base64":return b(this,X,Y,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,X,Y,U);default:if(h)throw new TypeError("Unknown encoding: "+H);H=(""+H).toLowerCase(),h=!0}},J.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function m(X,Y,U){return Y===0&&U===X.length?V.fromByteArray(X):V.fromByteArray(X.slice(Y,U))}function n(X,Y,U){U=Math.min(X.length,U);let H=[],D=Y;for(;D<U;){let h=X[D],o=null,G0=h>239?4:h>223?3:h>191?2:1;if(D+G0<=U){let R0,L0,Z0,D0;switch(G0){case 1:h<128&&(o=h);break;case 2:R0=X[D+1],(R0&192)===128&&(D0=(h&31)<<6|R0&63,D0>127&&(o=D0));break;case 3:R0=X[D+1],L0=X[D+2],(R0&192)===128&&(L0&192)===128&&(D0=(h&15)<<12|(R0&63)<<6|L0&63,D0>2047&&(D0<55296||D0>57343)&&(o=D0));break;case 4:R0=X[D+1],L0=X[D+2],Z0=X[D+3],(R0&192)===128&&(L0&192)===128&&(Z0&192)===128&&(D0=(h&15)<<18|(R0&63)<<12|(L0&63)<<6|Z0&63,D0>65535&&D0<1114112&&(o=D0))}}o===null?(o=65533,G0=1):o>65535&&(o-=65536,H.push(o>>>10&1023|55296),o=56320|o&1023),H.push(o),D+=G0}return c(H)}var v=4096;function c(X){let Y=X.length;if(Y<=v)return String.fromCharCode.apply(String,X);let U="",H=0;for(;H<Y;)U+=String.fromCharCode.apply(String,X.slice(H,H+=v));return U}function u(X,Y,U){let H="";U=Math.min(X.length,U);for(let D=Y;D<U;++D)H+=String.fromCharCode(X[D]&127);return H}function i(X,Y,U){let H="";U=Math.min(X.length,U);for(let D=Y;D<U;++D)H+=String.fromCharCode(X[D]);return H}function e(X,Y,U){let H=X.length;(!Y||Y<0)&&(Y=0),(!U||U<0||U>H)&&(U=H);let D="";for(let h=Y;h<U;++h)D+=Q6[X[h]];return D}function d(X,Y,U){let H=X.slice(Y,U),D="";for(let h=0;h<H.length-1;h+=2)D+=String.fromCharCode(H[h]+H[h+1]*256);return D}J.prototype.slice=function(X,Y){let U=this.length;X=~~X,Y=Y===void 0?U:~~Y,X<0?(X+=U,X<0&&(X=0)):X>U&&(X=U),Y<0?(Y+=U,Y<0&&(Y=0)):Y>U&&(Y=U),Y<X&&(Y=X);let H=this.subarray(X,Y);return Object.setPrototypeOf(H,J.prototype),H};function l(X,Y,U){if(X%1!==0||X<0)throw new RangeError("offset is not uint");if(X+Y>U)throw new RangeError("Trying to access beyond buffer length")}J.prototype.readUintLE=J.prototype.readUIntLE=function(X,Y,U){X=X>>>0,Y=Y>>>0,U||l(X,Y,this.length);let H=this[X],D=1,h=0;for(;++h<Y&&(D*=256);)H+=this[X+h]*D;return H},J.prototype.readUintBE=J.prototype.readUIntBE=function(X,Y,U){X=X>>>0,Y=Y>>>0,U||l(X,Y,this.length);let H=this[X+--Y],D=1;for(;Y>0&&(D*=256);)H+=this[X+--Y]*D;return H},J.prototype.readUint8=J.prototype.readUInt8=function(X,Y){return X=X>>>0,Y||l(X,1,this.length),this[X]},J.prototype.readUint16LE=J.prototype.readUInt16LE=function(X,Y){return X=X>>>0,Y||l(X,2,this.length),this[X]|this[X+1]<<8},J.prototype.readUint16BE=J.prototype.readUInt16BE=function(X,Y){return X=X>>>0,Y||l(X,2,this.length),this[X]<<8|this[X+1]},J.prototype.readUint32LE=J.prototype.readUInt32LE=function(X,Y){return X=X>>>0,Y||l(X,4,this.length),(this[X]|this[X+1]<<8|this[X+2]<<16)+this[X+3]*16777216},J.prototype.readUint32BE=J.prototype.readUInt32BE=function(X,Y){return X=X>>>0,Y||l(X,4,this.length),this[X]*16777216+(this[X+1]<<16|this[X+2]<<8|this[X+3])},J.prototype.readBigUInt64LE=C0(function(X){X=X>>>0,B0(X,"offset");let Y=this[X],U=this[X+7];(Y===void 0||U===void 0)&&p(X,this.length-8);let H=Y+this[++X]*256+this[++X]*65536+this[++X]*16777216,D=this[++X]+this[++X]*256+this[++X]*65536+U*16777216;return BigInt(H)+(BigInt(D)<<BigInt(32))}),J.prototype.readBigUInt64BE=C0(function(X){X=X>>>0,B0(X,"offset");let Y=this[X],U=this[X+7];(Y===void 0||U===void 0)&&p(X,this.length-8);let H=Y*16777216+this[++X]*65536+this[++X]*256+this[++X],D=this[++X]*16777216+this[++X]*65536+this[++X]*256+U;return(BigInt(H)<<BigInt(32))+BigInt(D)}),J.prototype.readIntLE=function(X,Y,U){X=X>>>0,Y=Y>>>0,U||l(X,Y,this.length);let H=this[X],D=1,h=0;for(;++h<Y&&(D*=256);)H+=this[X+h]*D;return D*=128,H>=D&&(H-=Math.pow(2,8*Y)),H},J.prototype.readIntBE=function(X,Y,U){X=X>>>0,Y=Y>>>0,U||l(X,Y,this.length);let H=Y,D=1,h=this[X+--H];for(;H>0&&(D*=256);)h+=this[X+--H]*D;return D*=128,h>=D&&(h-=Math.pow(2,8*Y)),h},J.prototype.readInt8=function(X,Y){return X=X>>>0,Y||l(X,1,this.length),this[X]&128?(255-this[X]+1)*-1:this[X]},J.prototype.readInt16LE=function(X,Y){X=X>>>0,Y||l(X,2,this.length);let U=this[X]|this[X+1]<<8;return U&32768?U|4294901760:U},J.prototype.readInt16BE=function(X,Y){X=X>>>0,Y||l(X,2,this.length);let U=this[X+1]|this[X]<<8;return U&32768?U|4294901760:U},J.prototype.readInt32LE=function(X,Y){return X=X>>>0,Y||l(X,4,this.length),this[X]|this[X+1]<<8|this[X+2]<<16|this[X+3]<<24},J.prototype.readInt32BE=function(X,Y){return X=X>>>0,Y||l(X,4,this.length),this[X]<<24|this[X+1]<<16|this[X+2]<<8|this[X+3]},J.prototype.readBigInt64LE=C0(function(X){X=X>>>0,B0(X,"offset");let Y=this[X],U=this[X+7];(Y===void 0||U===void 0)&&p(X,this.length-8);let H=this[X+4]+this[X+5]*256+this[X+6]*65536+(U<<24);return(BigInt(H)<<BigInt(32))+BigInt(Y+this[++X]*256+this[++X]*65536+this[++X]*16777216)}),J.prototype.readBigInt64BE=C0(function(X){X=X>>>0,B0(X,"offset");let Y=this[X],U=this[X+7];(Y===void 0||U===void 0)&&p(X,this.length-8);let H=(Y<<24)+this[++X]*65536+this[++X]*256+this[++X];return(BigInt(H)<<BigInt(32))+BigInt(this[++X]*16777216+this[++X]*65536+this[++X]*256+U)}),J.prototype.readFloatLE=function(X,Y){return X=X>>>0,Y||l(X,4,this.length),Q.read(this,X,!0,23,4)},J.prototype.readFloatBE=function(X,Y){return X=X>>>0,Y||l(X,4,this.length),Q.read(this,X,!1,23,4)},J.prototype.readDoubleLE=function(X,Y){return X=X>>>0,Y||l(X,8,this.length),Q.read(this,X,!0,52,8)},J.prototype.readDoubleBE=function(X,Y){return X=X>>>0,Y||l(X,8,this.length),Q.read(this,X,!1,52,8)};function k(X,Y,U,H,D,h){if(!J.isBuffer(X))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>D||Y<h)throw new RangeError('"value" argument is out of bounds');if(U+H>X.length)throw new RangeError("Index out of range")}J.prototype.writeUintLE=J.prototype.writeUIntLE=function(X,Y,U,H){if(X=+X,Y=Y>>>0,U=U>>>0,!H){let o=Math.pow(2,8*U)-1;k(this,X,Y,U,o,0)}let D=1,h=0;for(this[Y]=X&255;++h<U&&(D*=256);)this[Y+h]=X/D&255;return Y+U},J.prototype.writeUintBE=J.prototype.writeUIntBE=function(X,Y,U,H){if(X=+X,Y=Y>>>0,U=U>>>0,!H){let o=Math.pow(2,8*U)-1;k(this,X,Y,U,o,0)}let D=U-1,h=1;for(this[Y+D]=X&255;--D>=0&&(h*=256);)this[Y+D]=X/h&255;return Y+U},J.prototype.writeUint8=J.prototype.writeUInt8=function(X,Y,U){return X=+X,Y=Y>>>0,U||k(this,X,Y,1,255,0),this[Y]=X&255,Y+1},J.prototype.writeUint16LE=J.prototype.writeUInt16LE=function(X,Y,U){return X=+X,Y=Y>>>0,U||k(this,X,Y,2,65535,0),this[Y]=X&255,this[Y+1]=X>>>8,Y+2},J.prototype.writeUint16BE=J.prototype.writeUInt16BE=function(X,Y,U){return X=+X,Y=Y>>>0,U||k(this,X,Y,2,65535,0),this[Y]=X>>>8,this[Y+1]=X&255,Y+2},J.prototype.writeUint32LE=J.prototype.writeUInt32LE=function(X,Y,U){return X=+X,Y=Y>>>0,U||k(this,X,Y,4,4294967295,0),this[Y+3]=X>>>24,this[Y+2]=X>>>16,this[Y+1]=X>>>8,this[Y]=X&255,Y+4},J.prototype.writeUint32BE=J.prototype.writeUInt32BE=function(X,Y,U){return X=+X,Y=Y>>>0,U||k(this,X,Y,4,4294967295,0),this[Y]=X>>>24,this[Y+1]=X>>>16,this[Y+2]=X>>>8,this[Y+3]=X&255,Y+4};function r(X,Y,U,H,D){Q0(Y,H,D,X,U,7);let h=Number(Y&BigInt(4294967295));X[U++]=h,h=h>>8,X[U++]=h,h=h>>8,X[U++]=h,h=h>>8,X[U++]=h;let o=Number(Y>>BigInt(32)&BigInt(4294967295));return X[U++]=o,o=o>>8,X[U++]=o,o=o>>8,X[U++]=o,o=o>>8,X[U++]=o,U}function t(X,Y,U,H,D){Q0(Y,H,D,X,U,7);let h=Number(Y&BigInt(4294967295));X[U+7]=h,h=h>>8,X[U+6]=h,h=h>>8,X[U+5]=h,h=h>>8,X[U+4]=h;let o=Number(Y>>BigInt(32)&BigInt(4294967295));return X[U+3]=o,o=o>>8,X[U+2]=o,o=o>>8,X[U+1]=o,o=o>>8,X[U]=o,U+8}J.prototype.writeBigUInt64LE=C0(function(X,Y=0){return r(this,X,Y,BigInt(0),BigInt("0xffffffffffffffff"))}),J.prototype.writeBigUInt64BE=C0(function(X,Y=0){return t(this,X,Y,BigInt(0),BigInt("0xffffffffffffffff"))}),J.prototype.writeIntLE=function(X,Y,U,H){if(X=+X,Y=Y>>>0,!H){let G0=Math.pow(2,8*U-1);k(this,X,Y,U,G0-1,-G0)}let D=0,h=1,o=0;for(this[Y]=X&255;++D<U&&(h*=256);)X<0&&o===0&&this[Y+D-1]!==0&&(o=1),this[Y+D]=(X/h>>0)-o&255;return Y+U},J.prototype.writeIntBE=function(X,Y,U,H){if(X=+X,Y=Y>>>0,!H){let G0=Math.pow(2,8*U-1);k(this,X,Y,U,G0-1,-G0)}let D=U-1,h=1,o=0;for(this[Y+D]=X&255;--D>=0&&(h*=256);)X<0&&o===0&&this[Y+D+1]!==0&&(o=1),this[Y+D]=(X/h>>0)-o&255;return Y+U},J.prototype.writeInt8=function(X,Y,U){return X=+X,Y=Y>>>0,U||k(this,X,Y,1,127,-128),X<0&&(X=255+X+1),this[Y]=X&255,Y+1},J.prototype.writeInt16LE=function(X,Y,U){return X=+X,Y=Y>>>0,U||k(this,X,Y,2,32767,-32768),this[Y]=X&255,this[Y+1]=X>>>8,Y+2},J.prototype.writeInt16BE=function(X,Y,U){return X=+X,Y=Y>>>0,U||k(this,X,Y,2,32767,-32768),this[Y]=X>>>8,this[Y+1]=X&255,Y+2},J.prototype.writeInt32LE=function(X,Y,U){return X=+X,Y=Y>>>0,U||k(this,X,Y,4,2147483647,-2147483648),this[Y]=X&255,this[Y+1]=X>>>8,this[Y+2]=X>>>16,this[Y+3]=X>>>24,Y+4},J.prototype.writeInt32BE=function(X,Y,U){return X=+X,Y=Y>>>0,U||k(this,X,Y,4,2147483647,-2147483648),X<0&&(X=4294967295+X+1),this[Y]=X>>>24,this[Y+1]=X>>>16,this[Y+2]=X>>>8,this[Y+3]=X&255,Y+4},J.prototype.writeBigInt64LE=C0(function(X,Y=0){return r(this,X,Y,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),J.prototype.writeBigInt64BE=C0(function(X,Y=0){return t(this,X,Y,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Y0(X,Y,U,H,D,h){if(U+H>X.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("Index out of range")}function F0(X,Y,U,H,D){return Y=+Y,U=U>>>0,D||Y0(X,Y,U,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000),Q.write(X,Y,U,H,23,4),U+4}J.prototype.writeFloatLE=function(X,Y,U){return F0(this,X,Y,!0,U)},J.prototype.writeFloatBE=function(X,Y,U){return F0(this,X,Y,!1,U)};function V0(X,Y,U,H,D){return Y=+Y,U=U>>>0,D||Y0(X,Y,U,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000),Q.write(X,Y,U,H,52,8),U+8}J.prototype.writeDoubleLE=function(X,Y,U){return V0(this,X,Y,!0,U)},J.prototype.writeDoubleBE=function(X,Y,U){return V0(this,X,Y,!1,U)},J.prototype.copy=function(X,Y,U,H){if(!J.isBuffer(X))throw new TypeError("argument should be a Buffer");if(U||(U=0),!H&&H!==0&&(H=this.length),Y>=X.length&&(Y=X.length),Y||(Y=0),H>0&&H<U&&(H=U),H===U||X.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if(U<0||U>=this.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length),X.length-Y<H-U&&(H=X.length-Y+U);let D=H-U;return this===X&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(Y,U,H):Uint8Array.prototype.set.call(X,this.subarray(U,H),Y),D},J.prototype.fill=function(X,Y,U,H){if(typeof X=="string"){if(typeof Y=="string"?(H=Y,Y=0,U=this.length):typeof U=="string"&&(H=U,U=this.length),H!==void 0&&typeof H!="string")throw new TypeError("encoding must be a string");if(typeof H=="string"&&!J.isEncoding(H))throw new TypeError("Unknown encoding: "+H);if(X.length===1){let h=X.charCodeAt(0);(H==="utf8"&&h<128||H==="latin1")&&(X=h)}}else typeof X=="number"?X=X&255:typeof X=="boolean"&&(X=Number(X));if(Y<0||this.length<Y||this.length<U)throw new RangeError("Out of range index");if(U<=Y)return this;Y=Y>>>0,U=U===void 0?this.length:U>>>0,X||(X=0);let D;if(typeof X=="number")for(D=Y;D<U;++D)this[D]=X;else{let h=J.isBuffer(X)?X:J.from(X,H),o=h.length;if(o===0)throw new TypeError('The value "'+X+'" is invalid for argument "value"');for(D=0;D<U-Y;++D)this[D+Y]=h[D%o]}return this};var J0={};function X0(X,Y,U){J0[X]=class extends U{constructor(){super(),Object.defineProperty(this,"message",{value:Y.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${X}]`,this.stack,delete this.name}get code(){return X}set code(H){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:H,writable:!0})}toString(){return`${this.name} [${X}]: ${this.message}`}}}X0("ERR_BUFFER_OUT_OF_BOUNDS",function(X){return X?`${X} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),X0("ERR_INVALID_ARG_TYPE",function(X,Y){return`The "${X}" argument must be of type number. Received type ${typeof Y}`},TypeError),X0("ERR_OUT_OF_RANGE",function(X,Y,U){let H=`The value of "${X}" is out of range.`,D=U;return Number.isInteger(U)&&Math.abs(U)>4294967296?D=H0(String(U)):typeof U=="bigint"&&(D=String(U),(U>BigInt(2)**BigInt(32)||U<-(BigInt(2)**BigInt(32)))&&(D=H0(D)),D+="n"),H+=` It must be ${Y}. Received ${D}`,H},RangeError);function H0(X){let Y="",U=X.length,H=X[0]==="-"?1:0;for(;U>=H+4;U-=3)Y=`_${X.slice(U-3,U)}${Y}`;return`${X.slice(0,U)}${Y}`}function M0(X,Y,U){B0(Y,"offset"),(X[Y]===void 0||X[Y+U]===void 0)&&p(Y,X.length-(U+1))}function Q0(X,Y,U,H,D,h){if(X>U||X<Y){let o=typeof Y=="bigint"?"n":"",G0;throw h>3?Y===0||Y===BigInt(0)?G0=`>= 0${o} and < 2${o} ** ${(h+1)*8}${o}`:G0=`>= -(2${o} ** ${(h+1)*8-1}${o}) and < 2 ** ${(h+1)*8-1}${o}`:G0=`>= ${Y}${o} and <= ${U}${o}`,new J0.ERR_OUT_OF_RANGE("value",G0,X)}M0(H,D,h)}function B0(X,Y){if(typeof X!="number")throw new J0.ERR_INVALID_ARG_TYPE(Y,"number",X)}function p(X,Y,U){throw Math.floor(X)!==X?(B0(X,U),new J0.ERR_OUT_OF_RANGE(U||"offset","an integer",X)):Y<0?new J0.ERR_BUFFER_OUT_OF_BOUNDS:new J0.ERR_OUT_OF_RANGE(U||"offset",`>= ${U?1:0} and <= ${Y}`,X)}var I=/[^+/0-9A-Za-z-_]/g;function N(X){if(X=X.split("=")[0],X=X.trim().replace(I,""),X.length<2)return"";for(;X.length%4!==0;)X=X+"=";return X}function _(X,Y){Y=Y||1/0;let U,H=X.length,D=null,h=[];for(let o=0;o<H;++o){if(U=X.charCodeAt(o),U>55295&&U<57344){if(!D){if(U>56319){(Y-=3)>-1&&h.push(239,191,189);continue}else if(o+1===H){(Y-=3)>-1&&h.push(239,191,189);continue}D=U;continue}if(U<56320){(Y-=3)>-1&&h.push(239,191,189),D=U;continue}U=(D-55296<<10|U-56320)+65536}else D&&(Y-=3)>-1&&h.push(239,191,189);if(D=null,U<128){if((Y-=1)<0)break;h.push(U)}else if(U<2048){if((Y-=2)<0)break;h.push(U>>6|192,U&63|128)}else if(U<65536){if((Y-=3)<0)break;h.push(U>>12|224,U>>6&63|128,U&63|128)}else if(U<1114112){if((Y-=4)<0)break;h.push(U>>18|240,U>>12&63|128,U>>6&63|128,U&63|128)}else throw new Error("Invalid code point")}return h}function a(X){let Y=[];for(let U=0;U<X.length;++U)Y.push(X.charCodeAt(U)&255);return Y}function s(X,Y){let U,H,D,h=[];for(let o=0;o<X.length&&!((Y-=2)<0);++o)U=X.charCodeAt(o),H=U>>8,D=U%256,h.push(D),h.push(H);return h}function U0(X){return V.toByteArray(N(X))}function q0(X,Y,U,H){let D;for(D=0;D<H&&!(D+U>=Y.length||D>=X.length);++D)Y[D+U]=X[D];return D}function z0(X,Y){return X instanceof Y||X!=null&&X.constructor!=null&&X.constructor.name!=null&&X.constructor.name===Y.name}function b0(X){return X!==X}var Q6=function(){let X="0123456789abcdef",Y=new Array(256);for(let U=0;U<16;++U){let H=U*16;for(let D=0;D<16;++D)Y[H+D]=X[U]+X[D]}return Y}();function C0(X){return typeof BigInt>"u"?p1:X}function p1(){throw new Error("BigInt not supported")}}),x0=j0(($,V)=>{V.exports={ArrayIsArray(Q){return Array.isArray(Q)},ArrayPrototypeIncludes(Q,q){return Q.includes(q)},ArrayPrototypeIndexOf(Q,q){return Q.indexOf(q)},ArrayPrototypeJoin(Q,q){return Q.join(q)},ArrayPrototypeMap(Q,q){return Q.map(q)},ArrayPrototypePop(Q,q){return Q.pop(q)},ArrayPrototypePush(Q,q){return Q.push(q)},ArrayPrototypeSlice(Q,q,K){return Q.slice(q,K)},Error,FunctionPrototypeCall(Q,q,...K){return Q.call(q,...K)},FunctionPrototypeSymbolHasInstance(Q,q){return Function.prototype[Symbol.hasInstance].call(Q,q)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(Q,q){return Object.defineProperties(Q,q)},ObjectDefineProperty(Q,q,K){return Object.defineProperty(Q,q,K)},ObjectGetOwnPropertyDescriptor(Q,q){return Object.getOwnPropertyDescriptor(Q,q)},ObjectKeys(Q){return Object.keys(Q)},ObjectSetPrototypeOf(Q,q){return Object.setPrototypeOf(Q,q)},Promise,PromisePrototypeCatch(Q,q){return Q.catch(q)},PromisePrototypeThen(Q,q,K){return Q.then(q,K)},PromiseReject(Q){return Promise.reject(Q)},ReflectApply:Reflect.apply,RegExpPrototypeTest(Q,q){return Q.test(q)},SafeSet:Set,String,StringPrototypeSlice(Q,q,K){return Q.slice(q,K)},StringPrototypeToLowerCase(Q){return Q.toLowerCase()},StringPrototypeToUpperCase(Q){return Q.toUpperCase()},StringPrototypeTrim(Q){return Q.trim()},Symbol,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(Q,q,K){return Q.set(q,K)},Uint8Array}}),q6=j0(($,V)=>{var Q=Z6(),q=Object.getPrototypeOf(async function(){}).constructor,K=globalThis.Blob||Q.Blob,G=typeof K<"u"?function(J){return J instanceof K}:function(J){return!1},W=class extends Error{constructor(J){if(!Array.isArray(J))throw new TypeError(`Expected input to be an Array, got ${typeof J}`);let P="";for(let j=0;j<J.length;j++)P+=` ${J[j].stack}
|
|
2
|
-
`;super(P),this.name="AggregateError",this.errors=J}};V.exports={AggregateError:W,kEmptyObject:Object.freeze({}),once(J){let P=!1;return function(...j){P||(P=!0,J.apply(this,j))}},createDeferredPromise:function(){let J,P;return{promise:new Promise((j,z)=>{J=j,P=z}),resolve:J,reject:P}},promisify(J){return new Promise((P,j)=>{J((z,...C)=>z?j(z):P(...C))})},debuglog(){return function(){}},format(J,...P){return J.replace(/%([sdifj])/g,function(...[j,z]){let C=P.shift();return z==="f"?C.toFixed(6):z==="j"?JSON.stringify(C):z==="s"&&typeof C=="object"?`${C.constructor!==Object?C.constructor.name:""} {}`.trim():C.toString()})},inspect(J){switch(typeof J){case"string":if(J.includes("'"))if(J.includes('"')){if(!J.includes("`")&&!J.includes("${"))return`\`${J}\``}else return`"${J}"`;return`'${J}'`;case"number":return isNaN(J)?"NaN":Object.is(J,-0)?String(J):J;case"bigint":return`${String(J)}n`;case"boolean":case"undefined":return String(J);case"object":return"{}"}},types:{isAsyncFunction(J){return J instanceof q},isArrayBufferView(J){return ArrayBuffer.isView(J)}},isBlob:G},V.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),c2=j0(($,V)=>{var{AbortController:Q,AbortSignal:q}=typeof self<"u"?self:typeof window<"u"?window:void 0;V.exports=Q,V.exports.AbortSignal=q,V.exports.default=Q}),f0=j0(($,V)=>{var{format:Q,inspect:q,AggregateError:K}=q6(),G=globalThis.AggregateError||K,W=Symbol("kIsNodeError"),J=["string","function","number","object","Function","Object","boolean","bigint","symbol"],P=/^([A-Z][a-z0-9]*)+$/,j="__node_internal_",z={};function C(Z,O){if(!Z)throw new z.ERR_INTERNAL_ASSERTION(O)}function w(Z){let O="",M=Z.length,A=Z[0]==="-"?1:0;for(;M>=A+4;M-=3)O=`_${Z.slice(M-3,M)}${O}`;return`${Z.slice(0,M)}${O}`}function R(Z,O,M){if(typeof O=="function")return C(O.length<=M.length,`Code: ${Z}; The provided arguments length (${M.length}) does not match the required ones (${O.length}).`),O(...M);let A=(O.match(/%[dfijoOs]/g)||[]).length;return C(A===M.length,`Code: ${Z}; The provided arguments length (${M.length}) does not match the required ones (${A}).`),M.length===0?O:Q(O,...M)}function x(Z,O,M){M||(M=Error);class A extends M{constructor(...B){super(R(Z,O,B))}toString(){return`${this.name} [${Z}]: ${this.message}`}}Object.defineProperties(A.prototype,{name:{value:M.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${Z}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),A.prototype.code=Z,A.prototype[W]=!0,z[Z]=A}function S(Z){let O=j+Z.name;return Object.defineProperty(Z,"name",{value:O}),Z}function g(Z,O){if(Z&&O&&Z!==O){if(Array.isArray(O.errors))return O.errors.push(Z),O;let M=new G([O,Z],O.message);return M.code=O.code,M}return Z||O}var y=class extends Error{constructor(Z="The operation was aborted",O=void 0){if(O!==void 0&&typeof O!="object")throw new z.ERR_INVALID_ARG_TYPE("options","Object",O);super(Z,O),this.code="ABORT_ERR",this.name="AbortError"}};x("ERR_ASSERTION","%s",Error),x("ERR_INVALID_ARG_TYPE",(Z,O,M)=>{C(typeof Z=="string","'name' must be a string"),Array.isArray(O)||(O=[O]);let A="The ";Z.endsWith(" argument")?A+=`${Z} `:A+=`"${Z}" ${Z.includes(".")?"property":"argument"} `,A+="must be ";let B=[],L=[],T=[];for(let f of O)C(typeof f=="string","All expected entries have to be of type string"),J.includes(f)?B.push(f.toLowerCase()):P.test(f)?L.push(f):(C(f!=="object",'The value "object" should be written as "Object"'),T.push(f));if(L.length>0){let f=B.indexOf("object");f!==-1&&(B.splice(B,f,1),L.push("Object"))}if(B.length>0){switch(B.length){case 1:A+=`of type ${B[0]}`;break;case 2:A+=`one of type ${B[0]} or ${B[1]}`;break;default:{let f=B.pop();A+=`one of type ${B.join(", ")}, or ${f}`}}(L.length>0||T.length>0)&&(A+=" or ")}if(L.length>0){switch(L.length){case 1:A+=`an instance of ${L[0]}`;break;case 2:A+=`an instance of ${L[0]} or ${L[1]}`;break;default:{let f=L.pop();A+=`an instance of ${L.join(", ")}, or ${f}`}}T.length>0&&(A+=" or ")}switch(T.length){case 0:break;case 1:T[0].toLowerCase()!==T[0]&&(A+="an "),A+=`${T[0]}`;break;case 2:A+=`one of ${T[0]} or ${T[1]}`;break;default:{let f=T.pop();A+=`one of ${T.join(", ")}, or ${f}`}}if(M==null)A+=`. Received ${M}`;else if(typeof M=="function"&&M.name)A+=`. Received function ${M.name}`;else if(typeof M=="object"){var E;(E=M.constructor)!==null&&E!==void 0&&E.name?A+=`. Received an instance of ${M.constructor.name}`:A+=`. Received ${q(M,{depth:-1})}`}else{let f=q(M,{colors:!1});f.length>25&&(f=`${f.slice(0,25)}...`),A+=`. Received type ${typeof M} (${f})`}return A},TypeError),x("ERR_INVALID_ARG_VALUE",(Z,O,M="is invalid")=>{let A=q(O);return A.length>128&&(A=A.slice(0,128)+"..."),`The ${Z.includes(".")?"property":"argument"} '${Z}' ${M}. Received ${A}`},TypeError),x("ERR_INVALID_RETURN_VALUE",(Z,O,M)=>{var A;let B=M!=null&&(A=M.constructor)!==null&&A!==void 0&&A.name?`instance of ${M.constructor.name}`:`type ${typeof M}`;return`Expected ${Z} to be returned from the "${O}" function but got ${B}.`},TypeError),x("ERR_MISSING_ARGS",(...Z)=>{C(Z.length>0,"At least one arg needs to be specified");let O,M=Z.length;switch(Z=(Array.isArray(Z)?Z:[Z]).map((A)=>`"${A}"`).join(" or "),M){case 1:O+=`The ${Z[0]} argument`;break;case 2:O+=`The ${Z[0]} and ${Z[1]} arguments`;break;default:{let A=Z.pop();O+=`The ${Z.join(", ")}, and ${A} arguments`}break}return`${O} must be specified`},TypeError),x("ERR_OUT_OF_RANGE",(Z,O,M)=>{C(O,'Missing "range" argument');let A;return Number.isInteger(M)&&Math.abs(M)>4294967296?A=w(String(M)):typeof M=="bigint"?(A=String(M),(M>2n**32n||M<-(2n**32n))&&(A=w(A)),A+="n"):A=q(M),`The value of "${Z}" is out of range. It must be ${O}. Received ${A}`},RangeError),x("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),x("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),x("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),x("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),x("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),x("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),x("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),x("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),x("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),x("ERR_STREAM_WRITE_AFTER_END","write after end",Error),x("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),V.exports={AbortError:y,aggregateTwoErrors:S(g),hideStackFrames:S,codes:z}}),l1=j0(($,V)=>{var{ArrayIsArray:Q,ArrayPrototypeIncludes:q,ArrayPrototypeJoin:K,ArrayPrototypeMap:G,NumberIsInteger:W,NumberIsNaN:J,NumberMAX_SAFE_INTEGER:P,NumberMIN_SAFE_INTEGER:j,NumberParseInt:z,ObjectPrototypeHasOwnProperty:C,RegExpPrototypeExec:w,String:R,StringPrototypeToUpperCase:x,StringPrototypeTrim:S}=x0(),{hideStackFrames:g,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:Z,ERR_INVALID_ARG_VALUE:O,ERR_OUT_OF_RANGE:M,ERR_UNKNOWN_SIGNAL:A}}=f0(),{normalizeEncoding:B}=q6(),{isAsyncFunction:L,isArrayBufferView:T}=q6().types,E={};function f(p){return p===(p|0)}function b(p){return p===p>>>0}var F=/^[0-7]+$/,m="must be a 32-bit unsigned integer or an octal string";function n(p,I,N){if(typeof p>"u"&&(p=N),typeof p=="string"){if(w(F,p)===null)throw new O(I,p,m);p=z(p,8)}return u(p,I),p}var v=g((p,I,N=j,_=P)=>{if(typeof p!="number")throw new Z(I,"number",p);if(!W(p))throw new M(I,"an integer",p);if(p<N||p>_)throw new M(I,`>= ${N} && <= ${_}`,p)}),c=g((p,I,N=-2147483648,_=2147483647)=>{if(typeof p!="number")throw new Z(I,"number",p);if(!W(p))throw new M(I,"an integer",p);if(p<N||p>_)throw new M(I,`>= ${N} && <= ${_}`,p)}),u=g((p,I,N=!1)=>{if(typeof p!="number")throw new Z(I,"number",p);if(!W(p))throw new M(I,"an integer",p);let _=N?1:0,a=4294967295;if(p<_||p>a)throw new M(I,`>= ${_} && <= ${a}`,p)});function i(p,I){if(typeof p!="string")throw new Z(I,"string",p)}function e(p,I,N=void 0,_){if(typeof p!="number")throw new Z(I,"number",p);if(N!=null&&p<N||_!=null&&p>_||(N!=null||_!=null)&&J(p))throw new M(I,`${N!=null?`>= ${N}`:""}${N!=null&&_!=null?" && ":""}${_!=null?`<= ${_}`:""}`,p)}var d=g((p,I,N)=>{if(!q(N,p)){let _=K(G(N,(s)=>typeof s=="string"?`'${s}'`:R(s)),", "),a="must be one of: "+_;throw new O(I,p,a)}});function l(p,I){if(typeof p!="boolean")throw new Z(I,"boolean",p)}function k(p,I,N){return p==null||!C(p,I)?N:p[I]}var r=g((p,I,N=null)=>{let _=k(N,"allowArray",!1),a=k(N,"allowFunction",!1);if(!k(N,"nullable",!1)&&p===null||!_&&Q(p)||typeof p!="object"&&(!a||typeof p!="function"))throw new Z(I,"Object",p)}),t=g((p,I,N=0)=>{if(!Q(p))throw new Z(I,"Array",p);if(p.length<N){let _=`must be longer than ${N}`;throw new O(I,p,_)}});function Y0(p,I="signal"){if(i(p,I),E[p]===void 0)throw E[x(p)]!==void 0?new A(p+" (signals must use all capital letters)"):new A(p)}var F0=g((p,I="buffer")=>{if(!T(p))throw new Z(I,["Buffer","TypedArray","DataView"],p)});function V0(p,I){let N=B(I),_=p.length;if(N==="hex"&&_%2!==0)throw new O("encoding",I,`is invalid for data of length ${_}`)}function J0(p,I="Port",N=!0){if(typeof p!="number"&&typeof p!="string"||typeof p=="string"&&S(p).length===0||+p!==+p>>>0||p>65535||p===0&&!N)throw new y(I,p,N);return p|0}var X0=g((p,I)=>{if(p!==void 0&&(p===null||typeof p!="object"||!("aborted"in p)))throw new Z(I,"AbortSignal",p)}),H0=g((p,I)=>{if(typeof p!="function")throw new Z(I,"Function",p)}),M0=g((p,I)=>{if(typeof p!="function"||L(p))throw new Z(I,"Function",p)}),Q0=g((p,I)=>{if(p!==void 0)throw new Z(I,"undefined",p)});function B0(p,I,N){if(!q(N,p))throw new Z(I,`('${K(N,"|")}')`,p)}V.exports={isInt32:f,isUint32:b,parseFileMode:n,validateArray:t,validateBoolean:l,validateBuffer:F0,validateEncoding:V0,validateFunction:H0,validateInt32:c,validateInteger:v,validateNumber:e,validateObject:r,validateOneOf:d,validatePlainFunction:M0,validatePort:J0,validateSignalName:Y0,validateString:i,validateUint32:u,validateUndefined:Q0,validateUnion:B0,validateAbortSignal:X0}}),E$=j0(($,V)=>{var Q=V.exports={},q,K;function G(){throw new Error("setTimeout has not been defined")}function W(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?q=setTimeout:q=G}catch{q=G}try{typeof clearTimeout=="function"?K=clearTimeout:K=W}catch{K=W}})();function J(y){if(q===setTimeout)return setTimeout(y,0);if((q===G||!q)&&setTimeout)return q=setTimeout,setTimeout(y,0);try{return q(y,0)}catch{try{return q.call(null,y,0)}catch{return q.call(this,y,0)}}}function P(y){if(K===clearTimeout)return clearTimeout(y);if((K===W||!K)&&clearTimeout)return K=clearTimeout,clearTimeout(y);try{return K(y)}catch{try{return K.call(null,y)}catch{return K.call(this,y)}}}var j=[],z=!1,C,w=-1;function R(){!z||!C||(z=!1,C.length?j=C.concat(j):w=-1,j.length&&x())}function x(){if(!z){var y=J(R);z=!0;for(var Z=j.length;Z;){for(C=j,j=[];++w<Z;)C&&C[w].run();w=-1,Z=j.length}C=null,z=!1,P(y)}}Q.nextTick=function(y){var Z=new Array(arguments.length-1);if(arguments.length>1)for(var O=1;O<arguments.length;O++)Z[O-1]=arguments[O];j.push(new S(y,Z)),j.length===1&&!z&&J(x)};function S(y,Z){this.fun=y,this.array=Z}S.prototype.run=function(){this.fun.apply(null,this.array)},Q.title="browser",Q.browser=!0,Q.env={},Q.argv=[],Q.version="",Q.versions={};function g(){}Q.on=g,Q.addListener=g,Q.once=g,Q.off=g,Q.removeListener=g,Q.removeAllListeners=g,Q.emit=g,Q.prependListener=g,Q.prependOnceListener=g,Q.listeners=function(y){return[]},Q.binding=function(y){throw new Error("process.binding is not supported")},Q.cwd=function(){return"/"},Q.chdir=function(y){throw new Error("process.chdir is not supported")},Q.umask=function(){return 0}}),Y6={};y$(Y6,{default:()=>f$});S6=Vq(()=>{b$(Y6,u1(E$())),f$=u1(E$())}),k6=j0(($,V)=>{var{Symbol:Q,SymbolAsyncIterator:q,SymbolIterator:K}=x0(),G=Q("kDestroyed"),W=Q("kIsErrored"),J=Q("kIsReadable"),P=Q("kIsDisturbed");function j(v,c=!1){var u;return!!(v&&typeof v.pipe=="function"&&typeof v.on=="function"&&(!c||typeof v.pause=="function"&&typeof v.resume=="function")&&(!v._writableState||((u=v._readableState)===null||u===void 0?void 0:u.readable)!==!1)&&(!v._writableState||v._readableState))}function z(v){var c;return!!(v&&typeof v.write=="function"&&typeof v.on=="function"&&(!v._readableState||((c=v._writableState)===null||c===void 0?void 0:c.writable)!==!1))}function C(v){return!!(v&&typeof v.pipe=="function"&&v._readableState&&typeof v.on=="function"&&typeof v.write=="function")}function w(v){return v&&(v._readableState||v._writableState||typeof v.write=="function"&&typeof v.on=="function"||typeof v.pipe=="function"&&typeof v.on=="function")}function R(v,c){return v==null?!1:c===!0?typeof v[q]=="function":c===!1?typeof v[K]=="function":typeof v[q]=="function"||typeof v[K]=="function"}function x(v){if(!w(v))return null;let{_writableState:c,_readableState:u}=v,i=c||u;return!!(v.destroyed||v[G]||i!=null&&i.destroyed)}function S(v){if(!z(v))return null;if(v.writableEnded===!0)return!0;let c=v._writableState;return c!=null&&c.errored?!1:typeof c?.ended!="boolean"?null:c.ended}function g(v,c){if(!z(v))return null;if(v.writableFinished===!0)return!0;let u=v._writableState;return u!=null&&u.errored?!1:typeof u?.finished!="boolean"?null:!!(u.finished||c===!1&&u.ended===!0&&u.length===0)}function y(v){if(!j(v))return null;if(v.readableEnded===!0)return!0;let c=v._readableState;return!c||c.errored?!1:typeof c?.ended!="boolean"?null:c.ended}function Z(v,c){if(!j(v))return null;let u=v._readableState;return u!=null&&u.errored?!1:typeof u?.endEmitted!="boolean"?null:!!(u.endEmitted||c===!1&&u.ended===!0&&u.length===0)}function O(v){return v&&v[J]!=null?v[J]:typeof v?.readable!="boolean"?null:x(v)?!1:j(v)&&v.readable&&!Z(v)}function M(v){return typeof v?.writable!="boolean"?null:x(v)?!1:z(v)&&v.writable&&!S(v)}function A(v,c){return w(v)?x(v)?!0:!(c?.readable!==!1&&O(v)||c?.writable!==!1&&M(v)):null}function B(v){var c,u;return w(v)?v.writableErrored?v.writableErrored:(c=(u=v._writableState)===null||u===void 0?void 0:u.errored)!==null&&c!==void 0?c:null:null}function L(v){var c,u;return w(v)?v.readableErrored?v.readableErrored:(c=(u=v._readableState)===null||u===void 0?void 0:u.errored)!==null&&c!==void 0?c:null:null}function T(v){if(!w(v))return null;if(typeof v.closed=="boolean")return v.closed;let{_writableState:c,_readableState:u}=v;return typeof c?.closed=="boolean"||typeof u?.closed=="boolean"?c?.closed||u?.closed:typeof v._closed=="boolean"&&E(v)?v._closed:null}function E(v){return typeof v._closed=="boolean"&&typeof v._defaultKeepAlive=="boolean"&&typeof v._removedConnection=="boolean"&&typeof v._removedContLen=="boolean"}function f(v){return typeof v._sent100=="boolean"&&E(v)}function b(v){var c;return typeof v._consuming=="boolean"&&typeof v._dumped=="boolean"&&((c=v.req)===null||c===void 0?void 0:c.upgradeOrConnect)===void 0}function F(v){if(!w(v))return null;let{_writableState:c,_readableState:u}=v,i=c||u;return!i&&f(v)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function m(v){var c;return!!(v&&((c=v[P])!==null&&c!==void 0?c:v.readableDidRead||v.readableAborted))}function n(v){var c,u,i,e,d,l,k,r,t,Y0;return!!(v&&((c=(u=(i=(e=(d=(l=v[W])!==null&&l!==void 0?l:v.readableErrored)!==null&&d!==void 0?d:v.writableErrored)!==null&&e!==void 0?e:(k=v._readableState)===null||k===void 0?void 0:k.errorEmitted)!==null&&i!==void 0?i:(r=v._writableState)===null||r===void 0?void 0:r.errorEmitted)!==null&&u!==void 0?u:(t=v._readableState)===null||t===void 0?void 0:t.errored)!==null&&c!==void 0?c:(Y0=v._writableState)===null||Y0===void 0?void 0:Y0.errored))}V.exports={kDestroyed:G,isDisturbed:m,kIsDisturbed:P,isErrored:n,kIsErrored:W,isReadable:O,kIsReadable:J,isClosed:T,isDestroyed:x,isDuplexNodeStream:C,isFinished:A,isIterable:R,isReadableNodeStream:j,isReadableEnded:y,isReadableFinished:Z,isReadableErrored:L,isNodeStream:w,isWritable:M,isWritableNodeStream:z,isWritableEnded:S,isWritableFinished:g,isWritableErrored:B,isServerRequest:b,isServerResponse:f,willEmitClose:F}}),g6=j0(($,V)=>{var Q=(S6(),T6(Y6)),{AbortError:q,codes:K}=f0(),{ERR_INVALID_ARG_TYPE:G,ERR_STREAM_PREMATURE_CLOSE:W}=K,{kEmptyObject:J,once:P}=q6(),{validateAbortSignal:j,validateFunction:z,validateObject:C}=l1(),{Promise:w}=x0(),{isClosed:R,isReadable:x,isReadableNodeStream:S,isReadableFinished:g,isReadableErrored:y,isWritable:Z,isWritableNodeStream:O,isWritableFinished:M,isWritableErrored:A,isNodeStream:B,willEmitClose:L}=k6();function T(F){return F.setHeader&&typeof F.abort=="function"}var E=()=>{};function f(F,m,n){var v,c;arguments.length===2?(n=m,m=J):m==null?m=J:C(m,"options"),z(n,"callback"),j(m.signal,"options.signal"),n=P(n);let u=(v=m.readable)!==null&&v!==void 0?v:S(F),i=(c=m.writable)!==null&&c!==void 0?c:O(F);if(!B(F))throw new G("stream","Stream",F);let{_writableState:e,_readableState:d}=F,l=()=>{F.writable||t()},k=L(F)&&S(F)===u&&O(F)===i,r=M(F,!1),t=()=>{r=!0,F.destroyed&&(k=!1),!(k&&(!F.readable||u))&&(!u||Y0)&&n.call(F)},Y0=g(F,!1),F0=()=>{Y0=!0,F.destroyed&&(k=!1),!(k&&(!F.writable||i))&&(!i||r)&&n.call(F)},V0=(Q0)=>{n.call(F,Q0)},J0=R(F),X0=()=>{J0=!0;let Q0=A(F)||y(F);if(Q0&&typeof Q0!="boolean")return n.call(F,Q0);if(u&&!Y0&&S(F,!0)&&!g(F,!1))return n.call(F,new W);if(i&&!r&&!M(F,!1))return n.call(F,new W);n.call(F)},H0=()=>{F.req.on("finish",t)};T(F)?(F.on("complete",t),k||F.on("abort",X0),F.req?H0():F.on("request",H0)):i&&!e&&(F.on("end",l),F.on("close",l)),!k&&typeof F.aborted=="boolean"&&F.on("aborted",X0),F.on("end",F0),F.on("finish",t),m.error!==!1&&F.on("error",V0),F.on("close",X0),J0?Q.nextTick(X0):e!=null&&e.errorEmitted||d!=null&&d.errorEmitted?k||Q.nextTick(X0):(!u&&(!k||x(F))&&(r||Z(F)===!1)||!i&&(!k||Z(F))&&(Y0||x(F)===!1)||d&&F.req&&F.aborted)&&Q.nextTick(X0);let M0=()=>{n=E,F.removeListener("aborted",X0),F.removeListener("complete",t),F.removeListener("abort",X0),F.removeListener("request",H0),F.req&&F.req.removeListener("finish",t),F.removeListener("end",l),F.removeListener("close",l),F.removeListener("finish",t),F.removeListener("end",F0),F.removeListener("error",V0),F.removeListener("close",X0)};if(m.signal&&!J0){let Q0=()=>{let B0=n;M0(),B0.call(F,new q(void 0,{cause:m.signal.reason}))};if(m.signal.aborted)Q.nextTick(Q0);else{let B0=n;n=P((...p)=>{m.signal.removeEventListener("abort",Q0),B0.apply(F,p)}),m.signal.addEventListener("abort",Q0)}}return M0}function b(F,m){return new w((n,v)=>{f(F,m,(c)=>{c?v(c):n()})})}V.exports=f,V.exports.finished=b}),Yq=j0(($,V)=>{var Q=globalThis.AbortController||c2().AbortController,{codes:{ERR_INVALID_ARG_TYPE:q,ERR_MISSING_ARGS:K,ERR_OUT_OF_RANGE:G},AbortError:W}=f0(),{validateAbortSignal:J,validateInteger:P,validateObject:j}=l1(),z=x0().Symbol("kWeak"),{finished:C}=g6(),{ArrayPrototypePush:w,MathFloor:R,Number:x,NumberIsNaN:S,Promise:g,PromiseReject:y,PromisePrototypeThen:Z,Symbol:O}=x0(),M=O("kEmpty"),A=O("kEof");function B(d,l){if(typeof d!="function")throw new q("fn",["Function","AsyncFunction"],d);l!=null&&j(l,"options"),l?.signal!=null&&J(l.signal,"options.signal");let k=1;return l?.concurrency!=null&&(k=R(l.concurrency)),P(k,"concurrency",1),async function*(){var r,t;let Y0=new Q,F0=this,V0=[],J0=Y0.signal,X0={signal:J0},H0=()=>Y0.abort();l!=null&&(r=l.signal)!==null&&r!==void 0&&r.aborted&&H0(),l==null||(t=l.signal)===null||t===void 0||t.addEventListener("abort",H0);let M0,Q0,B0=!1;function p(){B0=!0}async function I(){try{for await(let a of F0){var N;if(B0)return;if(J0.aborted)throw new W;try{a=d(a,X0)}catch(s){a=y(s)}a!==M&&(typeof((N=a)===null||N===void 0?void 0:N.catch)=="function"&&a.catch(p),V0.push(a),M0&&(M0(),M0=null),!B0&&V0.length&&V0.length>=k&&await new g((s)=>{Q0=s}))}V0.push(A)}catch(a){let s=y(a);Z(s,void 0,p),V0.push(s)}finally{var _;B0=!0,M0&&(M0(),M0=null),l==null||(_=l.signal)===null||_===void 0||_.removeEventListener("abort",H0)}}I();try{for(;;){for(;V0.length>0;){let N=await V0[0];if(N===A)return;if(J0.aborted)throw new W;N!==M&&(yield N),V0.shift(),Q0&&(Q0(),Q0=null)}await new g((N)=>{M0=N})}}finally{Y0.abort(),B0=!0,Q0&&(Q0(),Q0=null)}}.call(this)}function L(d=void 0){return d!=null&&j(d,"options"),d?.signal!=null&&J(d.signal,"options.signal"),async function*(){let l=0;for await(let r of this){var k;if(d!=null&&(k=d.signal)!==null&&k!==void 0&&k.aborted)throw new W({cause:d.signal.reason});yield[l++,r]}}.call(this)}async function T(d,l=void 0){for await(let k of F.call(this,d,l))return!0;return!1}async function E(d,l=void 0){if(typeof d!="function")throw new q("fn",["Function","AsyncFunction"],d);return!await T.call(this,async(...k)=>!await d(...k),l)}async function f(d,l){for await(let k of F.call(this,d,l))return k}async function b(d,l){if(typeof d!="function")throw new q("fn",["Function","AsyncFunction"],d);async function k(r,t){return await d(r,t),M}for await(let r of B.call(this,k,l));}function F(d,l){if(typeof d!="function")throw new q("fn",["Function","AsyncFunction"],d);async function k(r,t){return await d(r,t)?r:M}return B.call(this,k,l)}var m=class extends K{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function n(d,l,k){var r;if(typeof d!="function")throw new q("reducer",["Function","AsyncFunction"],d);k!=null&&j(k,"options"),k?.signal!=null&&J(k.signal,"options.signal");let t=arguments.length>1;if(k!=null&&(r=k.signal)!==null&&r!==void 0&&r.aborted){let X0=new W(void 0,{cause:k.signal.reason});throw this.once("error",()=>{}),await C(this.destroy(X0)),X0}let Y0=new Q,F0=Y0.signal;if(k!=null&&k.signal){let X0={once:!0,[z]:this};k.signal.addEventListener("abort",()=>Y0.abort(),X0)}let V0=!1;try{for await(let X0 of this){var J0;if(V0=!0,k!=null&&(J0=k.signal)!==null&&J0!==void 0&&J0.aborted)throw new W;t?l=await d(l,X0,{signal:F0}):(l=X0,t=!0)}if(!V0&&!t)throw new m}finally{Y0.abort()}return l}async function v(d){d!=null&&j(d,"options"),d?.signal!=null&&J(d.signal,"options.signal");let l=[];for await(let r of this){var k;if(d!=null&&(k=d.signal)!==null&&k!==void 0&&k.aborted)throw new W(void 0,{cause:d.signal.reason});w(l,r)}return l}function c(d,l){let k=B.call(this,d,l);return async function*(){for await(let r of k)yield*r}.call(this)}function u(d){if(d=x(d),S(d))return 0;if(d<0)throw new G("number",">= 0",d);return d}function i(d,l=void 0){return l!=null&&j(l,"options"),l?.signal!=null&&J(l.signal,"options.signal"),d=u(d),async function*(){var k;if(l!=null&&(k=l.signal)!==null&&k!==void 0&&k.aborted)throw new W;for await(let t of this){var r;if(l!=null&&(r=l.signal)!==null&&r!==void 0&&r.aborted)throw new W;d--<=0&&(yield t)}}.call(this)}function e(d,l=void 0){return l!=null&&j(l,"options"),l?.signal!=null&&J(l.signal,"options.signal"),d=u(d),async function*(){var k;if(l!=null&&(k=l.signal)!==null&&k!==void 0&&k.aborted)throw new W;for await(let t of this){var r;if(l!=null&&(r=l.signal)!==null&&r!==void 0&&r.aborted)throw new W;if(d-- >0)yield t;else return}}.call(this)}V.exports.streamReturningOperators={asIndexedPairs:L,drop:i,filter:F,flatMap:c,map:B,take:e},V.exports.promiseReturningOperators={every:E,forEach:b,reduce:n,toArray:v,some:T,find:f}}),a6=j0(($,V)=>{var Q=(S6(),T6(Y6)),{aggregateTwoErrors:q,codes:{ERR_MULTIPLE_CALLBACK:K},AbortError:G}=f0(),{Symbol:W}=x0(),{kDestroyed:J,isDestroyed:P,isFinished:j,isServerRequest:z}=k6(),C=W("kDestroy"),w=W("kConstruct");function R(F,m,n){F&&(F.stack,m&&!m.errored&&(m.errored=F),n&&!n.errored&&(n.errored=F))}function x(F,m){let n=this._readableState,v=this._writableState,c=v||n;return v&&v.destroyed||n&&n.destroyed?(typeof m=="function"&&m(),this):(R(F,v,n),v&&(v.destroyed=!0),n&&(n.destroyed=!0),c.constructed?S(this,F,m):this.once(C,function(u){S(this,q(u,F),m)}),this)}function S(F,m,n){let v=!1;function c(u){if(v)return;v=!0;let{_readableState:i,_writableState:e}=F;R(u,e,i),e&&(e.closed=!0),i&&(i.closed=!0),typeof n=="function"&&n(u),u?Q.nextTick(g,F,u):Q.nextTick(y,F)}try{F._destroy(m||null,c)}catch(u){c(u)}}function g(F,m){Z(F,m),y(F)}function y(F){let{_readableState:m,_writableState:n}=F;n&&(n.closeEmitted=!0),m&&(m.closeEmitted=!0),(n&&n.emitClose||m&&m.emitClose)&&F.emit("close")}function Z(F,m){let{_readableState:n,_writableState:v}=F;v&&v.errorEmitted||n&&n.errorEmitted||(v&&(v.errorEmitted=!0),n&&(n.errorEmitted=!0),F.emit("error",m))}function O(){let F=this._readableState,m=this._writableState;F&&(F.constructed=!0,F.closed=!1,F.closeEmitted=!1,F.destroyed=!1,F.errored=null,F.errorEmitted=!1,F.reading=!1,F.ended=F.readable===!1,F.endEmitted=F.readable===!1),m&&(m.constructed=!0,m.destroyed=!1,m.closed=!1,m.closeEmitted=!1,m.errored=null,m.errorEmitted=!1,m.finalCalled=!1,m.prefinished=!1,m.ended=m.writable===!1,m.ending=m.writable===!1,m.finished=m.writable===!1)}function M(F,m,n){let{_readableState:v,_writableState:c}=F;if(c&&c.destroyed||v&&v.destroyed)return this;v&&v.autoDestroy||c&&c.autoDestroy?F.destroy(m):m&&(m.stack,c&&!c.errored&&(c.errored=m),v&&!v.errored&&(v.errored=m),n?Q.nextTick(Z,F,m):Z(F,m))}function A(F,m){if(typeof F._construct!="function")return;let{_readableState:n,_writableState:v}=F;n&&(n.constructed=!1),v&&(v.constructed=!1),F.once(w,m),!(F.listenerCount(w)>1)&&Q.nextTick(B,F)}function B(F){let m=!1;function n(v){if(m){M(F,v??new K);return}m=!0;let{_readableState:c,_writableState:u}=F,i=u||c;c&&(c.constructed=!0),u&&(u.constructed=!0),i.destroyed?F.emit(C,v):v?M(F,v,!0):Q.nextTick(L,F)}try{F._construct(n)}catch(v){n(v)}}function L(F){F.emit(w)}function T(F){return F&&F.setHeader&&typeof F.abort=="function"}function E(F){F.emit("close")}function f(F,m){F.emit("error",m),Q.nextTick(E,F)}function b(F,m){!F||P(F)||(!m&&!j(F)&&(m=new G),z(F)?(F.socket=null,F.destroy(m)):T(F)?F.abort():T(F.req)?F.req.abort():typeof F.destroy=="function"?F.destroy(m):typeof F.close=="function"?F.close():m?Q.nextTick(f,F,m):Q.nextTick(E,F),F.destroyed||(F[J]=!0))}V.exports={construct:A,destroyer:b,destroy:x,undestroy:O,errorOrDestroy:M}}),u2=j0(($,V)=>{var Q=typeof Reflect=="object"?Reflect:null,q=Q&&typeof Q.apply=="function"?Q.apply:function(B,L,T){return Function.prototype.apply.call(B,L,T)},K;Q&&typeof Q.ownKeys=="function"?K=Q.ownKeys:Object.getOwnPropertySymbols?K=function(B){return Object.getOwnPropertyNames(B).concat(Object.getOwnPropertySymbols(B))}:K=function(B){return Object.getOwnPropertyNames(B)};function G(B){console&&console.warn&&console.warn(B)}var W=Number.isNaN||function(B){return B!==B};function J(){J.init.call(this)}V.exports=J,V.exports.once=O,J.EventEmitter=J,J.prototype._events=void 0,J.prototype._eventsCount=0,J.prototype._maxListeners=void 0;var P=10;function j(B){if(typeof B!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof B)}Object.defineProperty(J,"defaultMaxListeners",{enumerable:!0,get:function(){return P},set:function(B){if(typeof B!="number"||B<0||W(B))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+B+".");P=B}}),J.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},J.prototype.setMaxListeners=function(B){if(typeof B!="number"||B<0||W(B))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+B+".");return this._maxListeners=B,this};function z(B){return B._maxListeners===void 0?J.defaultMaxListeners:B._maxListeners}J.prototype.getMaxListeners=function(){return z(this)},J.prototype.emit=function(B){for(var L=[],T=1;T<arguments.length;T++)L.push(arguments[T]);var E=B==="error",f=this._events;if(f!==void 0)E=E&&f.error===void 0;else if(!E)return!1;if(E){var b;if(L.length>0&&(b=L[0]),b instanceof Error)throw b;var F=new Error("Unhandled error."+(b?" ("+b.message+")":""));throw F.context=b,F}var m=f[B];if(m===void 0)return!1;if(typeof m=="function")q(m,this,L);else for(var n=m.length,v=g(m,n),T=0;T<n;++T)q(v[T],this,L);return!0};function C(B,L,T,E){var f,b,F;if(j(T),b=B._events,b===void 0?(b=B._events=Object.create(null),B._eventsCount=0):(b.newListener!==void 0&&(B.emit("newListener",L,T.listener?T.listener:T),b=B._events),F=b[L]),F===void 0)F=b[L]=T,++B._eventsCount;else if(typeof F=="function"?F=b[L]=E?[T,F]:[F,T]:E?F.unshift(T):F.push(T),f=z(B),f>0&&F.length>f&&!F.warned){F.warned=!0;var m=new Error("Possible EventEmitter memory leak detected. "+F.length+" "+String(L)+" listeners added. Use emitter.setMaxListeners() to increase limit");m.name="MaxListenersExceededWarning",m.emitter=B,m.type=L,m.count=F.length,G(m)}return B}J.prototype.addListener=function(B,L){return C(this,B,L,!1)},J.prototype.on=J.prototype.addListener,J.prototype.prependListener=function(B,L){return C(this,B,L,!0)};function w(){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 R(B,L,T){var E={fired:!1,wrapFn:void 0,target:B,type:L,listener:T},f=w.bind(E);return f.listener=T,E.wrapFn=f,f}J.prototype.once=function(B,L){return j(L),this.on(B,R(this,B,L)),this},J.prototype.prependOnceListener=function(B,L){return j(L),this.prependListener(B,R(this,B,L)),this},J.prototype.removeListener=function(B,L){var T,E,f,b,F;if(j(L),E=this._events,E===void 0)return this;if(T=E[B],T===void 0)return this;if(T===L||T.listener===L)--this._eventsCount===0?this._events=Object.create(null):(delete E[B],E.removeListener&&this.emit("removeListener",B,T.listener||L));else if(typeof T!="function"){for(f=-1,b=T.length-1;b>=0;b--)if(T[b]===L||T[b].listener===L){F=T[b].listener,f=b;break}if(f<0)return this;f===0?T.shift():y(T,f),T.length===1&&(E[B]=T[0]),E.removeListener!==void 0&&this.emit("removeListener",B,F||L)}return this},J.prototype.off=J.prototype.removeListener,J.prototype.removeAllListeners=function(B){var L,T,E;if(T=this._events,T===void 0)return this;if(T.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):T[B]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete T[B]),this;if(arguments.length===0){var f=Object.keys(T),b;for(E=0;E<f.length;++E)b=f[E],b!=="removeListener"&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(L=T[B],typeof L=="function")this.removeListener(B,L);else if(L!==void 0)for(E=L.length-1;E>=0;E--)this.removeListener(B,L[E]);return this};function x(B,L,T){var E=B._events;if(E===void 0)return[];var f=E[L];return f===void 0?[]:typeof f=="function"?T?[f.listener||f]:[f]:T?Z(f):g(f,f.length)}J.prototype.listeners=function(B){return x(this,B,!0)},J.prototype.rawListeners=function(B){return x(this,B,!1)},J.listenerCount=function(B,L){return typeof B.listenerCount=="function"?B.listenerCount(L):S.call(B,L)},J.prototype.listenerCount=S;function S(B){var L=this._events;if(L!==void 0){var T=L[B];if(typeof T=="function")return 1;if(T!==void 0)return T.length}return 0}J.prototype.eventNames=function(){return this._eventsCount>0?K(this._events):[]};function g(B,L){for(var T=new Array(L),E=0;E<L;++E)T[E]=B[E];return T}function y(B,L){for(;L+1<B.length;L++)B[L]=B[L+1];B.pop()}function Z(B){for(var L=new Array(B.length),T=0;T<L.length;++T)L[T]=B[T].listener||B[T];return L}function O(B,L){return new Promise(function(T,E){function f(F){B.removeListener(L,b),E(F)}function b(){typeof B.removeListener=="function"&&B.removeListener("error",f),T([].slice.call(arguments))}A(B,L,b,{once:!0}),L!=="error"&&M(B,f,{once:!0})})}function M(B,L,T){typeof B.on=="function"&&A(B,"error",L,T)}function A(B,L,T,E){if(typeof B.on=="function")E.once?B.once(L,T):B.on(L,T);else if(typeof B.addEventListener=="function")B.addEventListener(L,function f(b){E.once&&B.removeEventListener(L,f),T(b)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof B)}}),d2=j0(($,V)=>{var{ArrayIsArray:Q,ObjectSetPrototypeOf:q}=x0(),{EventEmitter:K}=u2();function G(J){K.call(this,J)}q(G.prototype,K.prototype),q(G,K),G.prototype.pipe=function(J,P){let j=this;function z(y){J.writable&&J.write(y)===!1&&j.pause&&j.pause()}j.on("data",z);function C(){j.readable&&j.resume&&j.resume()}J.on("drain",C),!J._isStdio&&(!P||P.end!==!1)&&(j.on("end",R),j.on("close",x));let w=!1;function R(){w||(w=!0,J.end())}function x(){w||(w=!0,typeof J.destroy=="function"&&J.destroy())}function S(y){g(),K.listenerCount(this,"error")===0&&this.emit("error",y)}W(j,"error",S),W(J,"error",S);function g(){j.removeListener("data",z),J.removeListener("drain",C),j.removeListener("end",R),j.removeListener("close",x),j.removeListener("error",S),J.removeListener("error",S),j.removeListener("end",g),j.removeListener("close",g),J.removeListener("close",g)}return j.on("end",g),j.on("close",g),J.on("close",g),J.emit("pipe",j),J};function W(J,P,j){if(typeof J.prependListener=="function")return J.prependListener(P,j);!J._events||!J._events[P]?J.on(P,j):Q(J._events[P])?J._events[P].unshift(j):J._events[P]=[j,J._events[P]]}V.exports={Stream:G,prependListener:W}}),l2=j0(($,V)=>{var{AbortError:Q,codes:q}=f0(),K=g6(),{ERR_INVALID_ARG_TYPE:G}=q,W=(P,j)=>{if(typeof P!="object"||!("aborted"in P))throw new G(j,"AbortSignal",P)};function J(P){return!!(P&&typeof P.pipe=="function")}V.exports.addAbortSignal=function(P,j){if(W(P,"signal"),!J(j))throw new G("stream","stream.Stream",j);return V.exports.addAbortSignalNoValidate(P,j)},V.exports.addAbortSignalNoValidate=function(P,j){if(typeof P!="object"||!("aborted"in P))return j;let z=()=>{j.destroy(new Q(void 0,{cause:P.reason}))};return P.aborted?z():(P.addEventListener("abort",z),K(j,()=>P.removeEventListener("abort",z))),j}}),Kq=j0(($,V)=>{var{StringPrototypeSlice:Q,SymbolIterator:q,TypedArrayPrototypeSet:K,Uint8Array:G}=x0(),{Buffer:W}=Z6(),{inspect:J}=q6();V.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(P){let j={data:P,next:null};this.length>0?this.tail.next=j:this.head=j,this.tail=j,++this.length}unshift(P){let j={data:P,next:this.head};this.length===0&&(this.tail=j),this.head=j,++this.length}shift(){if(this.length===0)return;let P=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,P}clear(){this.head=this.tail=null,this.length=0}join(P){if(this.length===0)return"";let j=this.head,z=""+j.data;for(;(j=j.next)!==null;)z+=P+j.data;return z}concat(P){if(this.length===0)return W.alloc(0);let j=W.allocUnsafe(P>>>0),z=this.head,C=0;for(;z;)K(j,z.data,C),C+=z.data.length,z=z.next;return j}consume(P,j){let z=this.head.data;if(P<z.length){let C=z.slice(0,P);return this.head.data=z.slice(P),C}return P===z.length?this.shift():j?this._getString(P):this._getBuffer(P)}first(){return this.head.data}*[q](){for(let P=this.head;P;P=P.next)yield P.data}_getString(P){let j="",z=this.head,C=0;do{let w=z.data;if(P>w.length)j+=w,P-=w.length;else{P===w.length?(j+=w,++C,z.next?this.head=z.next:this.head=this.tail=null):(j+=Q(w,0,P),this.head=z,z.data=Q(w,P));break}++C}while((z=z.next)!==null);return this.length-=C,j}_getBuffer(P){let j=W.allocUnsafe(P),z=P,C=this.head,w=0;do{let R=C.data;if(P>R.length)K(j,R,z-P),P-=R.length;else{P===R.length?(K(j,R,z-P),++w,C.next?this.head=C.next:this.head=this.tail=null):(K(j,new G(R.buffer,R.byteOffset,P),z-P),this.head=C,C.data=R.slice(P));break}++w}while((C=C.next)!==null);return this.length-=w,j}[Symbol.for("nodejs.util.inspect.custom")](P,j){return J(this,{...j,depth:0,customInspect:!1})}}}),o2=j0(($,V)=>{var{MathFloor:Q,NumberIsInteger:q}=x0(),{ERR_INVALID_ARG_VALUE:K}=f0().codes;function G(P,j,z){return P.highWaterMark!=null?P.highWaterMark:j?P[z]:null}function W(P){return P?16:16384}function J(P,j,z,C){let w=G(j,C,z);if(w!=null){if(!q(w)||w<0){let R=C?`options.${z}`:"options.highWaterMark";throw new K(R,w)}return Q(w)}return W(P.objectMode)}V.exports={getHighWaterMark:J,getDefaultHighWaterMark:W}}),Jq=j0(($,V)=>{var Q=Z6(),q=Q.Buffer;function K(W,J){for(var P in W)J[P]=W[P]}q.from&&q.alloc&&q.allocUnsafe&&q.allocUnsafeSlow?V.exports=Q:(K(Q,$),$.Buffer=G);function G(W,J,P){return q(W,J,P)}G.prototype=Object.create(q.prototype),K(q,G),G.from=function(W,J,P){if(typeof W=="number")throw new TypeError("Argument must not be a number");return q(W,J,P)},G.alloc=function(W,J,P){if(typeof W!="number")throw new TypeError("Argument must be a number");var j=q(W);return J!==void 0?typeof P=="string"?j.fill(J,P):j.fill(J):j.fill(0),j},G.allocUnsafe=function(W){if(typeof W!="number")throw new TypeError("Argument must be a number");return q(W)},G.allocUnsafeSlow=function(W){if(typeof W!="number")throw new TypeError("Argument must be a number");return Q.SlowBuffer(W)}}),Gq=j0(($)=>{var V=Jq().Buffer,Q=V.isEncoding||function(Z){switch(Z=""+Z,Z&&Z.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 q(Z){if(!Z)return"utf8";for(var O;;)switch(Z){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 Z;default:if(O)return;Z=(""+Z).toLowerCase(),O=!0}}function K(Z){var O=q(Z);if(typeof O!="string"&&(V.isEncoding===Q||!Q(Z)))throw new Error("Unknown encoding: "+Z);return O||Z}$.StringDecoder=G;function G(Z){this.encoding=K(Z);var O;switch(this.encoding){case"utf16le":this.text=w,this.end=R,O=4;break;case"utf8":this.fillLast=j,O=4;break;case"base64":this.text=x,this.end=S,O=3;break;default:this.write=g,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=V.allocUnsafe(O)}G.prototype.write=function(Z){if(Z.length===0)return"";var O,M;if(this.lastNeed){if(O=this.fillLast(Z),O===void 0)return"";M=this.lastNeed,this.lastNeed=0}else M=0;return M<Z.length?O?O+this.text(Z,M):this.text(Z,M):O||""},G.prototype.end=C,G.prototype.text=z,G.prototype.fillLast=function(Z){if(this.lastNeed<=Z.length)return Z.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Z.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Z.length),this.lastNeed-=Z.length};function W(Z){return Z<=127?0:Z>>5===6?2:Z>>4===14?3:Z>>3===30?4:Z>>6===2?-1:-2}function J(Z,O,M){var A=O.length-1;if(A<M)return 0;var B=W(O[A]);return B>=0?(B>0&&(Z.lastNeed=B-1),B):--A<M||B===-2?0:(B=W(O[A]),B>=0?(B>0&&(Z.lastNeed=B-2),B):--A<M||B===-2?0:(B=W(O[A]),B>=0?(B>0&&(B===2?B=0:Z.lastNeed=B-3),B):0))}function P(Z,O,M){if((O[0]&192)!==128)return Z.lastNeed=0,"�";if(Z.lastNeed>1&&O.length>1){if((O[1]&192)!==128)return Z.lastNeed=1,"�";if(Z.lastNeed>2&&O.length>2&&(O[2]&192)!==128)return Z.lastNeed=2,"�"}}function j(Z){var O=this.lastTotal-this.lastNeed,M=P(this,Z,O);if(M!==void 0)return M;if(this.lastNeed<=Z.length)return Z.copy(this.lastChar,O,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Z.copy(this.lastChar,O,0,Z.length),this.lastNeed-=Z.length}function z(Z,O){var M=J(this,Z,O);if(!this.lastNeed)return Z.toString("utf8",O);this.lastTotal=M;var A=Z.length-(M-this.lastNeed);return Z.copy(this.lastChar,0,A),Z.toString("utf8",O,A)}function C(Z){var O=Z&&Z.length?this.write(Z):"";return this.lastNeed?O+"�":O}function w(Z,O){if((Z.length-O)%2===0){var M=Z.toString("utf16le",O);if(M){var A=M.charCodeAt(M.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Z[Z.length-2],this.lastChar[1]=Z[Z.length-1],M.slice(0,-1)}return M}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Z[Z.length-1],Z.toString("utf16le",O,Z.length-1)}function R(Z){var O=Z&&Z.length?this.write(Z):"";if(this.lastNeed){var M=this.lastTotal-this.lastNeed;return O+this.lastChar.toString("utf16le",0,M)}return O}function x(Z,O){var M=(Z.length-O)%3;return M===0?Z.toString("base64",O):(this.lastNeed=3-M,this.lastTotal=3,M===1?this.lastChar[0]=Z[Z.length-1]:(this.lastChar[0]=Z[Z.length-2],this.lastChar[1]=Z[Z.length-1]),Z.toString("base64",O,Z.length-M))}function S(Z){var O=Z&&Z.length?this.write(Z):"";return this.lastNeed?O+this.lastChar.toString("base64",0,3-this.lastNeed):O}function g(Z){return Z.toString(this.encoding)}function y(Z){return Z&&Z.length?this.write(Z):""}}),h$=j0(($,V)=>{var Q=(S6(),T6(Y6)),{PromisePrototypeThen:q,SymbolAsyncIterator:K,SymbolIterator:G}=x0(),{Buffer:W}=Z6(),{ERR_INVALID_ARG_TYPE:J,ERR_STREAM_NULL_VALUES:P}=f0().codes;function j(z,C,w){let R;if(typeof C=="string"||C instanceof W)return new z({objectMode:!0,...w,read(){this.push(C),this.push(null)}});let x;if(C&&C[K])x=!0,R=C[K]();else if(C&&C[G])x=!1,R=C[G]();else throw new J("iterable",["Iterable"],C);let S=new z({objectMode:!0,highWaterMark:1,...w}),g=!1;S._read=function(){g||(g=!0,Z())},S._destroy=function(O,M){q(y(O),()=>Q.nextTick(M,O),(A)=>Q.nextTick(M,A||O))};async function y(O){let M=O!=null,A=typeof R.throw=="function";if(M&&A){let{value:B,done:L}=await R.throw(O);if(await B,L)return}if(typeof R.return=="function"){let{value:B}=await R.return();await B}}async function Z(){for(;;){try{let{value:O,done:M}=x?await R.next():R.next();if(M)S.push(null);else{let A=O&&typeof O.then=="function"?await O:O;if(A===null)throw g=!1,new P;if(S.push(A))continue;g=!1}}catch(O){S.destroy(O)}break}}return S}V.exports=j}),o1=j0(($,V)=>{var Q=(S6(),T6(Y6)),{ArrayPrototypeIndexOf:q,NumberIsInteger:K,NumberIsNaN:G,NumberParseInt:W,ObjectDefineProperties:J,ObjectKeys:P,ObjectSetPrototypeOf:j,Promise:z,SafeSet:C,SymbolAsyncIterator:w,Symbol:R}=x0();V.exports=k,k.ReadableState=l;var{EventEmitter:x}=u2(),{Stream:S,prependListener:g}=d2(),{Buffer:y}=Z6(),{addAbortSignal:Z}=l2(),O=g6(),M=q6().debuglog("stream",(X)=>{M=X}),A=Kq(),B=a6(),{getHighWaterMark:L,getDefaultHighWaterMark:T}=o2(),{aggregateTwoErrors:E,codes:{ERR_INVALID_ARG_TYPE:f,ERR_METHOD_NOT_IMPLEMENTED:b,ERR_OUT_OF_RANGE:F,ERR_STREAM_PUSH_AFTER_EOF:m,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:n}}=f0(),{validateObject:v}=l1(),c=R("kPaused"),{StringDecoder:u}=Gq(),i=h$();j(k.prototype,S.prototype),j(k,S);var e=()=>{},{errorOrDestroy:d}=B;function l(X,Y,U){typeof U!="boolean"&&(U=Y instanceof X6()),this.objectMode=!!(X&&X.objectMode),U&&(this.objectMode=this.objectMode||!!(X&&X.readableObjectMode)),this.highWaterMark=X?L(this,X,"readableHighWaterMark",U):T(!1),this.buffer=new A,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[c]=null,this.errorEmitted=!1,this.emitClose=!X||X.emitClose!==!1,this.autoDestroy=!X||X.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=X&&X.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,X&&X.encoding&&(this.decoder=new u(X.encoding),this.encoding=X.encoding)}function k(X){if(!(this instanceof k))return new k(X);let Y=this instanceof X6();this._readableState=new l(X,this,Y),X&&(typeof X.read=="function"&&(this._read=X.read),typeof X.destroy=="function"&&(this._destroy=X.destroy),typeof X.construct=="function"&&(this._construct=X.construct),X.signal&&!Y&&Z(X.signal,this)),S.call(this,X),B.construct(this,()=>{this._readableState.needReadable&&M0(this,this._readableState)})}k.prototype.destroy=B.destroy,k.prototype._undestroy=B.undestroy,k.prototype._destroy=function(X,Y){Y(X)},k.prototype[x.captureRejectionSymbol]=function(X){this.destroy(X)},k.prototype.push=function(X,Y){return r(this,X,Y,!1)},k.prototype.unshift=function(X,Y){return r(this,X,Y,!0)};function r(X,Y,U,H){M("readableAddChunk",Y);let D=X._readableState,h;if(D.objectMode||(typeof Y=="string"?(U=U||D.defaultEncoding,D.encoding!==U&&(H&&D.encoding?Y=y.from(Y,U).toString(D.encoding):(Y=y.from(Y,U),U=""))):Y instanceof y?U="":S._isUint8Array(Y)?(Y=S._uint8ArrayToBuffer(Y),U=""):Y!=null&&(h=new f("chunk",["string","Buffer","Uint8Array"],Y))),h)d(X,h);else if(Y===null)D.reading=!1,J0(X,D);else if(D.objectMode||Y&&Y.length>0)if(H)if(D.endEmitted)d(X,new n);else{if(D.destroyed||D.errored)return!1;t(X,D,Y,!0)}else if(D.ended)d(X,new m);else{if(D.destroyed||D.errored)return!1;D.reading=!1,D.decoder&&!U?(Y=D.decoder.write(Y),D.objectMode||Y.length!==0?t(X,D,Y,!1):M0(X,D)):t(X,D,Y,!1)}else H||(D.reading=!1,M0(X,D));return!D.ended&&(D.length<D.highWaterMark||D.length===0)}function t(X,Y,U,H){Y.flowing&&Y.length===0&&!Y.sync&&X.listenerCount("data")>0?(Y.multiAwaitDrain?Y.awaitDrainWriters.clear():Y.awaitDrainWriters=null,Y.dataEmitted=!0,X.emit("data",U)):(Y.length+=Y.objectMode?1:U.length,H?Y.buffer.unshift(U):Y.buffer.push(U),Y.needReadable&&X0(X)),M0(X,Y)}k.prototype.isPaused=function(){let X=this._readableState;return X[c]===!0||X.flowing===!1},k.prototype.setEncoding=function(X){let Y=new u(X);this._readableState.decoder=Y,this._readableState.encoding=this._readableState.decoder.encoding;let U=this._readableState.buffer,H="";for(let D of U)H+=Y.write(D);return U.clear(),H!==""&&U.push(H),this._readableState.length=H.length,this};var Y0=1073741824;function F0(X){if(X>Y0)throw new F("size","<= 1GiB",X);return X--,X|=X>>>1,X|=X>>>2,X|=X>>>4,X|=X>>>8,X|=X>>>16,X++,X}function V0(X,Y){return X<=0||Y.length===0&&Y.ended?0:Y.objectMode?1:G(X)?Y.flowing&&Y.length?Y.buffer.first().length:Y.length:X<=Y.length?X:Y.ended?Y.length:0}k.prototype.read=function(X){M("read",X),X===void 0?X=NaN:K(X)||(X=W(X,10));let Y=this._readableState,U=X;if(X>Y.highWaterMark&&(Y.highWaterMark=F0(X)),X!==0&&(Y.emittedReadable=!1),X===0&&Y.needReadable&&((Y.highWaterMark!==0?Y.length>=Y.highWaterMark:Y.length>0)||Y.ended))return M("read: emitReadable",Y.length,Y.ended),Y.length===0&&Y.ended?z0(this):X0(this),null;if(X=V0(X,Y),X===0&&Y.ended)return Y.length===0&&z0(this),null;let H=Y.needReadable;if(M("need readable",H),(Y.length===0||Y.length-X<Y.highWaterMark)&&(H=!0,M("length less than watermark",H)),Y.ended||Y.reading||Y.destroyed||Y.errored||!Y.constructed)H=!1,M("reading, ended or constructing",H);else if(H){M("do read"),Y.reading=!0,Y.sync=!0,Y.length===0&&(Y.needReadable=!0);try{this._read(Y.highWaterMark)}catch(h){d(this,h)}Y.sync=!1,Y.reading||(X=V0(U,Y))}let D;return X>0?D=q0(X,Y):D=null,D===null?(Y.needReadable=Y.length<=Y.highWaterMark,X=0):(Y.length-=X,Y.multiAwaitDrain?Y.awaitDrainWriters.clear():Y.awaitDrainWriters=null),Y.length===0&&(Y.ended||(Y.needReadable=!0),U!==X&&Y.ended&&z0(this)),D!==null&&!Y.errorEmitted&&!Y.closeEmitted&&(Y.dataEmitted=!0,this.emit("data",D)),D};function J0(X,Y){if(M("onEofChunk"),!Y.ended){if(Y.decoder){let U=Y.decoder.end();U&&U.length&&(Y.buffer.push(U),Y.length+=Y.objectMode?1:U.length)}Y.ended=!0,Y.sync?X0(X):(Y.needReadable=!1,Y.emittedReadable=!0,H0(X))}}function X0(X){let Y=X._readableState;M("emitReadable",Y.needReadable,Y.emittedReadable),Y.needReadable=!1,Y.emittedReadable||(M("emitReadable",Y.flowing),Y.emittedReadable=!0,Q.nextTick(H0,X))}function H0(X){let Y=X._readableState;M("emitReadable_",Y.destroyed,Y.length,Y.ended),!Y.destroyed&&!Y.errored&&(Y.length||Y.ended)&&(X.emit("readable"),Y.emittedReadable=!1),Y.needReadable=!Y.flowing&&!Y.ended&&Y.length<=Y.highWaterMark,a(X)}function M0(X,Y){!Y.readingMore&&Y.constructed&&(Y.readingMore=!0,Q.nextTick(Q0,X,Y))}function Q0(X,Y){for(;!Y.reading&&!Y.ended&&(Y.length<Y.highWaterMark||Y.flowing&&Y.length===0);){let U=Y.length;if(M("maybeReadMore read 0"),X.read(0),U===Y.length)break}Y.readingMore=!1}k.prototype._read=function(X){throw new b("_read()")},k.prototype.pipe=function(X,Y){let U=this,H=this._readableState;H.pipes.length===1&&(H.multiAwaitDrain||(H.multiAwaitDrain=!0,H.awaitDrainWriters=new C(H.awaitDrainWriters?[H.awaitDrainWriters]:[]))),H.pipes.push(X),M("pipe count=%d opts=%j",H.pipes.length,Y);let D=(!Y||Y.end!==!1)&&X!==Q.stdout&&X!==Q.stderr?o:H1;H.endEmitted?Q.nextTick(D):U.once("end",D),X.on("unpipe",h);function h(R6,V6){M("onunpipe"),R6===U&&V6&&V6.hasUnpiped===!1&&(V6.hasUnpiped=!0,L0())}function o(){M("onend"),X.end()}let G0,R0=!1;function L0(){M("cleanup"),X.removeListener("close",b2),X.removeListener("finish",f2),G0&&X.removeListener("drain",G0),X.removeListener("error",y2),X.removeListener("unpipe",h),U.removeListener("end",o),U.removeListener("end",H1),U.removeListener("data",D0),R0=!0,G0&&H.awaitDrainWriters&&(!X._writableState||X._writableState.needDrain)&&G0()}function Z0(){R0||(H.pipes.length===1&&H.pipes[0]===X?(M("false write response, pause",0),H.awaitDrainWriters=X,H.multiAwaitDrain=!1):H.pipes.length>1&&H.pipes.includes(X)&&(M("false write response, pause",H.awaitDrainWriters.size),H.awaitDrainWriters.add(X)),U.pause()),G0||(G0=B0(U,X),X.on("drain",G0))}U.on("data",D0);function D0(R6){M("ondata");let V6=X.write(R6);M("dest.write",V6),V6===!1&&Z0()}function y2(R6){if(M("onerror",R6),H1(),X.removeListener("error",y2),X.listenerCount("error")===0){let V6=X._writableState||X._readableState;V6&&!V6.errorEmitted?d(X,R6):X.emit("error",R6)}}g(X,"error",y2);function b2(){X.removeListener("finish",f2),H1()}X.once("close",b2);function f2(){M("onfinish"),X.removeListener("close",b2),H1()}X.once("finish",f2);function H1(){M("unpipe"),U.unpipe(X)}return X.emit("pipe",U),X.writableNeedDrain===!0?H.flowing&&Z0():H.flowing||(M("pipe resume"),U.resume()),X};function B0(X,Y){return function(){let U=X._readableState;U.awaitDrainWriters===Y?(M("pipeOnDrain",1),U.awaitDrainWriters=null):U.multiAwaitDrain&&(M("pipeOnDrain",U.awaitDrainWriters.size),U.awaitDrainWriters.delete(Y)),(!U.awaitDrainWriters||U.awaitDrainWriters.size===0)&&X.listenerCount("data")&&X.resume()}}k.prototype.unpipe=function(X){let Y=this._readableState,U={hasUnpiped:!1};if(Y.pipes.length===0)return this;if(!X){let D=Y.pipes;Y.pipes=[],this.pause();for(let h=0;h<D.length;h++)D[h].emit("unpipe",this,{hasUnpiped:!1});return this}let H=q(Y.pipes,X);return H===-1?this:(Y.pipes.splice(H,1),Y.pipes.length===0&&this.pause(),X.emit("unpipe",this,U),this)},k.prototype.on=function(X,Y){let U=S.prototype.on.call(this,X,Y),H=this._readableState;return X==="data"?(H.readableListening=this.listenerCount("readable")>0,H.flowing!==!1&&this.resume()):X==="readable"&&!H.endEmitted&&!H.readableListening&&(H.readableListening=H.needReadable=!0,H.flowing=!1,H.emittedReadable=!1,M("on readable",H.length,H.reading),H.length?X0(this):H.reading||Q.nextTick(I,this)),U},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(X,Y){let U=S.prototype.removeListener.call(this,X,Y);return X==="readable"&&Q.nextTick(p,this),U},k.prototype.off=k.prototype.removeListener,k.prototype.removeAllListeners=function(X){let Y=S.prototype.removeAllListeners.apply(this,arguments);return(X==="readable"||X===void 0)&&Q.nextTick(p,this),Y};function p(X){let Y=X._readableState;Y.readableListening=X.listenerCount("readable")>0,Y.resumeScheduled&&Y[c]===!1?Y.flowing=!0:X.listenerCount("data")>0?X.resume():Y.readableListening||(Y.flowing=null)}function I(X){M("readable nexttick read 0"),X.read(0)}k.prototype.resume=function(){let X=this._readableState;return X.flowing||(M("resume"),X.flowing=!X.readableListening,N(this,X)),X[c]=!1,this};function N(X,Y){Y.resumeScheduled||(Y.resumeScheduled=!0,Q.nextTick(_,X,Y))}function _(X,Y){M("resume",Y.reading),Y.reading||X.read(0),Y.resumeScheduled=!1,X.emit("resume"),a(X),Y.flowing&&!Y.reading&&X.read(0)}k.prototype.pause=function(){return M("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(M("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[c]=!0,this};function a(X){let Y=X._readableState;for(M("flow",Y.flowing);Y.flowing&&X.read()!==null;);}k.prototype.wrap=function(X){let Y=!1;X.on("data",(H)=>{!this.push(H)&&X.pause&&(Y=!0,X.pause())}),X.on("end",()=>{this.push(null)}),X.on("error",(H)=>{d(this,H)}),X.on("close",()=>{this.destroy()}),X.on("destroy",()=>{this.destroy()}),this._read=()=>{Y&&X.resume&&(Y=!1,X.resume())};let U=P(X);for(let H=1;H<U.length;H++){let D=U[H];this[D]===void 0&&typeof X[D]=="function"&&(this[D]=X[D].bind(X))}return this},k.prototype[w]=function(){return s(this)},k.prototype.iterator=function(X){return X!==void 0&&v(X,"options"),s(this,X)};function s(X,Y){typeof X.read!="function"&&(X=k.wrap(X,{objectMode:!0}));let U=U0(X,Y);return U.stream=X,U}async function*U0(X,Y){let U=e;function H(o){this===X?(U(),U=e):U=o}X.on("readable",H);let D,h=O(X,{writable:!1},(o)=>{D=o?E(D,o):null,U(),U=e});try{for(;;){let o=X.destroyed?null:X.read();if(o!==null)yield o;else{if(D)throw D;if(D===null)return;await new z(H)}}}catch(o){throw D=E(D,o),D}finally{(D||Y?.destroyOnReturn!==!1)&&(D===void 0||X._readableState.autoDestroy)?B.destroyer(X,null):(X.off("readable",H),h())}}J(k.prototype,{readable:{__proto__:null,get(){let X=this._readableState;return!!X&&X.readable!==!1&&!X.destroyed&&!X.errorEmitted&&!X.endEmitted},set(X){this._readableState&&(this._readableState.readable=!!X)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(X){this._readableState&&(this._readableState.flowing=X)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(X){!this._readableState||(this._readableState.destroyed=X)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),J(l.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[c]!==!1},set(X){this[c]=!!X}}}),k._fromList=q0;function q0(X,Y){if(Y.length===0)return null;let U;return Y.objectMode?U=Y.buffer.shift():!X||X>=Y.length?(Y.decoder?U=Y.buffer.join(""):Y.buffer.length===1?U=Y.buffer.first():U=Y.buffer.concat(Y.length),Y.buffer.clear()):U=Y.buffer.consume(X,Y.decoder),U}function z0(X){let Y=X._readableState;M("endReadable",Y.endEmitted),Y.endEmitted||(Y.ended=!0,Q.nextTick(b0,Y,X))}function b0(X,Y){if(M("endReadableNT",X.endEmitted,X.length),!X.errored&&!X.closeEmitted&&!X.endEmitted&&X.length===0){if(X.endEmitted=!0,Y.emit("end"),Y.writable&&Y.allowHalfOpen===!1)Q.nextTick(Q6,Y);else if(X.autoDestroy){let U=Y._writableState;(!U||U.autoDestroy&&(U.finished||U.writable===!1))&&Y.destroy()}}}function Q6(X){X.writable&&!X.writableEnded&&!X.destroyed&&X.end()}k.from=function(X,Y){return i(k,X,Y)};var C0;function p1(){return C0===void 0&&(C0={}),C0}k.fromWeb=function(X,Y){return p1().newStreamReadableFromReadableStream(X,Y)},k.toWeb=function(X,Y){return p1().newReadableStreamFromStreamReadable(X,Y)},k.wrap=function(X,Y){var U,H;return new k({objectMode:(U=(H=X.readableObjectMode)!==null&&H!==void 0?H:X.objectMode)!==null&&U!==void 0?U:!0,...Y,destroy(D,h){B.destroyer(X,D),h(D)}}).wrap(X)}}),_$=j0(($,V)=>{var Q=(S6(),T6(Y6)),{ArrayPrototypeSlice:q,Error:K,FunctionPrototypeSymbolHasInstance:G,ObjectDefineProperty:W,ObjectDefineProperties:J,ObjectSetPrototypeOf:P,StringPrototypeToLowerCase:j,Symbol:z,SymbolHasInstance:C}=x0();V.exports=u,u.WritableState=v;var{EventEmitter:w}=u2(),R=d2().Stream,{Buffer:x}=Z6(),S=a6(),{addAbortSignal:g}=l2(),{getHighWaterMark:y,getDefaultHighWaterMark:Z}=o2(),{ERR_INVALID_ARG_TYPE:O,ERR_METHOD_NOT_IMPLEMENTED:M,ERR_MULTIPLE_CALLBACK:A,ERR_STREAM_CANNOT_PIPE:B,ERR_STREAM_DESTROYED:L,ERR_STREAM_ALREADY_FINISHED:T,ERR_STREAM_NULL_VALUES:E,ERR_STREAM_WRITE_AFTER_END:f,ERR_UNKNOWN_ENCODING:b}=f0().codes,{errorOrDestroy:F}=S;P(u.prototype,R.prototype),P(u,R);function m(){}var n=z("kOnFinished");function v(I,N,_){typeof _!="boolean"&&(_=N instanceof X6()),this.objectMode=!!(I&&I.objectMode),_&&(this.objectMode=this.objectMode||!!(I&&I.writableObjectMode)),this.highWaterMark=I?y(this,I,"writableHighWaterMark",_):Z(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let a=!!(I&&I.decodeStrings===!1);this.decodeStrings=!a,this.defaultEncoding=I&&I.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=k.bind(void 0,N),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,c(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!I||I.emitClose!==!1,this.autoDestroy=!I||I.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[n]=[]}function c(I){I.buffered=[],I.bufferedIndex=0,I.allBuffers=!0,I.allNoop=!0}v.prototype.getBuffer=function(){return q(this.buffered,this.bufferedIndex)},W(v.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function u(I){let N=this instanceof X6();if(!N&&!G(u,this))return new u(I);this._writableState=new v(I,this,N),I&&(typeof I.write=="function"&&(this._write=I.write),typeof I.writev=="function"&&(this._writev=I.writev),typeof I.destroy=="function"&&(this._destroy=I.destroy),typeof I.final=="function"&&(this._final=I.final),typeof I.construct=="function"&&(this._construct=I.construct),I.signal&&g(I.signal,this)),R.call(this,I),S.construct(this,()=>{let _=this._writableState;_.writing||F0(this,_),H0(this,_)})}W(u,C,{__proto__:null,value:function(I){return G(this,I)?!0:this!==u?!1:I&&I._writableState instanceof v}}),u.prototype.pipe=function(){F(this,new B)};function i(I,N,_,a){let s=I._writableState;if(typeof _=="function")a=_,_=s.defaultEncoding;else{if(!_)_=s.defaultEncoding;else if(_!=="buffer"&&!x.isEncoding(_))throw new b(_);typeof a!="function"&&(a=m)}if(N===null)throw new E;if(!s.objectMode)if(typeof N=="string")s.decodeStrings!==!1&&(N=x.from(N,_),_="buffer");else if(N instanceof x)_="buffer";else if(R._isUint8Array(N))N=R._uint8ArrayToBuffer(N),_="buffer";else throw new O("chunk",["string","Buffer","Uint8Array"],N);let U0;return s.ending?U0=new f:s.destroyed&&(U0=new L("write")),U0?(Q.nextTick(a,U0),F(I,U0,!0),U0):(s.pendingcb++,e(I,s,N,_,a))}u.prototype.write=function(I,N,_){return i(this,I,N,_)===!0},u.prototype.cork=function(){this._writableState.corked++},u.prototype.uncork=function(){let I=this._writableState;I.corked&&(I.corked--,I.writing||F0(this,I))},u.prototype.setDefaultEncoding=function(I){if(typeof I=="string"&&(I=j(I)),!x.isEncoding(I))throw new b(I);return this._writableState.defaultEncoding=I,this};function e(I,N,_,a,s){let U0=N.objectMode?1:_.length;N.length+=U0;let q0=N.length<N.highWaterMark;return q0||(N.needDrain=!0),N.writing||N.corked||N.errored||!N.constructed?(N.buffered.push({chunk:_,encoding:a,callback:s}),N.allBuffers&&a!=="buffer"&&(N.allBuffers=!1),N.allNoop&&s!==m&&(N.allNoop=!1)):(N.writelen=U0,N.writecb=s,N.writing=!0,N.sync=!0,I._write(_,a,N.onwrite),N.sync=!1),q0&&!N.errored&&!N.destroyed}function d(I,N,_,a,s,U0,q0){N.writelen=a,N.writecb=q0,N.writing=!0,N.sync=!0,N.destroyed?N.onwrite(new L("write")):_?I._writev(s,N.onwrite):I._write(s,U0,N.onwrite),N.sync=!1}function l(I,N,_,a){--N.pendingcb,a(_),Y0(N),F(I,_)}function k(I,N){let _=I._writableState,a=_.sync,s=_.writecb;if(typeof s!="function"){F(I,new A);return}_.writing=!1,_.writecb=null,_.length-=_.writelen,_.writelen=0,N?(N.stack,_.errored||(_.errored=N),I._readableState&&!I._readableState.errored&&(I._readableState.errored=N),a?Q.nextTick(l,I,_,N,s):l(I,_,N,s)):(_.buffered.length>_.bufferedIndex&&F0(I,_),a?_.afterWriteTickInfo!==null&&_.afterWriteTickInfo.cb===s?_.afterWriteTickInfo.count++:(_.afterWriteTickInfo={count:1,cb:s,stream:I,state:_},Q.nextTick(r,_.afterWriteTickInfo)):t(I,_,1,s))}function r({stream:I,state:N,count:_,cb:a}){return N.afterWriteTickInfo=null,t(I,N,_,a)}function t(I,N,_,a){for(!N.ending&&!I.destroyed&&N.length===0&&N.needDrain&&(N.needDrain=!1,I.emit("drain"));_-- >0;)N.pendingcb--,a();N.destroyed&&Y0(N),H0(I,N)}function Y0(I){if(I.writing)return;for(let s=I.bufferedIndex;s<I.buffered.length;++s){var N;let{chunk:U0,callback:q0}=I.buffered[s],z0=I.objectMode?1:U0.length;I.length-=z0,q0((N=I.errored)!==null&&N!==void 0?N:new L("write"))}let _=I[n].splice(0);for(let s=0;s<_.length;s++){var a;_[s]((a=I.errored)!==null&&a!==void 0?a:new L("end"))}c(I)}function F0(I,N){if(N.corked||N.bufferProcessing||N.destroyed||!N.constructed)return;let{buffered:_,bufferedIndex:a,objectMode:s}=N,U0=_.length-a;if(!U0)return;let q0=a;if(N.bufferProcessing=!0,U0>1&&I._writev){N.pendingcb-=U0-1;let z0=N.allNoop?m:(Q6)=>{for(let C0=q0;C0<_.length;++C0)_[C0].callback(Q6)},b0=N.allNoop&&q0===0?_:q(_,q0);b0.allBuffers=N.allBuffers,d(I,N,!0,N.length,b0,"",z0),c(N)}else{do{let{chunk:z0,encoding:b0,callback:Q6}=_[q0];_[q0++]=null;let C0=s?1:z0.length;d(I,N,!1,C0,z0,b0,Q6)}while(q0<_.length&&!N.writing);q0===_.length?c(N):q0>256?(_.splice(0,q0),N.bufferedIndex=0):N.bufferedIndex=q0}N.bufferProcessing=!1}u.prototype._write=function(I,N,_){if(this._writev)this._writev([{chunk:I,encoding:N}],_);else throw new M("_write()")},u.prototype._writev=null,u.prototype.end=function(I,N,_){let a=this._writableState;typeof I=="function"?(_=I,I=null,N=null):typeof N=="function"&&(_=N,N=null);let s;if(I!=null){let U0=i(this,I,N);U0 instanceof K&&(s=U0)}return a.corked&&(a.corked=1,this.uncork()),s||(!a.errored&&!a.ending?(a.ending=!0,H0(this,a,!0),a.ended=!0):a.finished?s=new T("end"):a.destroyed&&(s=new L("end"))),typeof _=="function"&&(s||a.finished?Q.nextTick(_,s):a[n].push(_)),this};function V0(I){return I.ending&&!I.destroyed&&I.constructed&&I.length===0&&!I.errored&&I.buffered.length===0&&!I.finished&&!I.writing&&!I.errorEmitted&&!I.closeEmitted}function J0(I,N){let _=!1;function a(s){if(_){F(I,s??A());return}if(_=!0,N.pendingcb--,s){let U0=N[n].splice(0);for(let q0=0;q0<U0.length;q0++)U0[q0](s);F(I,s,N.sync)}else V0(N)&&(N.prefinished=!0,I.emit("prefinish"),N.pendingcb++,Q.nextTick(M0,I,N))}N.sync=!0,N.pendingcb++;try{I._final(a)}catch(s){a(s)}N.sync=!1}function X0(I,N){!N.prefinished&&!N.finalCalled&&(typeof I._final=="function"&&!N.destroyed?(N.finalCalled=!0,J0(I,N)):(N.prefinished=!0,I.emit("prefinish")))}function H0(I,N,_){V0(N)&&(X0(I,N),N.pendingcb===0&&(_?(N.pendingcb++,Q.nextTick((a,s)=>{V0(s)?M0(a,s):s.pendingcb--},I,N)):V0(N)&&(N.pendingcb++,M0(I,N))))}function M0(I,N){N.pendingcb--,N.finished=!0;let _=N[n].splice(0);for(let a=0;a<_.length;a++)_[a]();if(I.emit("finish"),N.autoDestroy){let a=I._readableState;(!a||a.autoDestroy&&(a.endEmitted||a.readable===!1))&&I.destroy()}}J(u.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(I){this._writableState&&(this._writableState.destroyed=I)}},writable:{__proto__:null,get(){let I=this._writableState;return!!I&&I.writable!==!1&&!I.destroyed&&!I.errored&&!I.ending&&!I.ended},set(I){this._writableState&&(this._writableState.writable=!!I)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let I=this._writableState;return I?!I.destroyed&&!I.ending&&I.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var Q0=S.destroy;u.prototype.destroy=function(I,N){let _=this._writableState;return!_.destroyed&&(_.bufferedIndex<_.buffered.length||_[n].length)&&Q.nextTick(Y0,_),Q0.call(this,I,N),this},u.prototype._undestroy=S.undestroy,u.prototype._destroy=function(I,N){N(I)},u.prototype[w.captureRejectionSymbol]=function(I){this.destroy(I)};var B0;function p(){return B0===void 0&&(B0={}),B0}u.fromWeb=function(I,N){return p().newStreamWritableFromWritableStream(I,N)},u.toWeb=function(I){return p().newWritableStreamFromStreamWritable(I)}}),Uq=j0(($,V)=>{var Q=(S6(),T6(Y6)),q=Z6(),{isReadable:K,isWritable:G,isIterable:W,isNodeStream:J,isReadableNodeStream:P,isWritableNodeStream:j,isDuplexNodeStream:z}=k6(),C=g6(),{AbortError:w,codes:{ERR_INVALID_ARG_TYPE:R,ERR_INVALID_RETURN_VALUE:x}}=f0(),{destroyer:S}=a6(),g=X6(),y=o1(),{createDeferredPromise:Z}=q6(),O=h$(),M=globalThis.Blob||q.Blob,A=typeof M<"u"?function(b){return b instanceof M}:function(b){return!1},B=globalThis.AbortController||c2().AbortController,{FunctionPrototypeCall:L}=x0(),T=class extends g{constructor(b){super(b),b?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),b?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};V.exports=function b(F,m){if(z(F))return F;if(P(F))return f({readable:F});if(j(F))return f({writable:F});if(J(F))return f({writable:!1,readable:!1});if(typeof F=="function"){let{value:v,write:c,final:u,destroy:i}=E(F);if(W(v))return O(T,v,{objectMode:!0,write:c,final:u,destroy:i});let e=v?.then;if(typeof e=="function"){let d,l=L(e,v,(k)=>{if(k!=null)throw new x("nully","body",k)},(k)=>{S(d,k)});return d=new T({objectMode:!0,readable:!1,write:c,final(k){u(async()=>{try{await l,Q.nextTick(k,null)}catch(r){Q.nextTick(k,r)}})},destroy:i})}throw new x("Iterable, AsyncIterable or AsyncFunction",m,v)}if(A(F))return b(F.arrayBuffer());if(W(F))return O(T,F,{objectMode:!0,writable:!1});if(typeof F?.writable=="object"||typeof F?.readable=="object"){let v=F!=null&&F.readable?P(F?.readable)?F?.readable:b(F.readable):void 0,c=F!=null&&F.writable?j(F?.writable)?F?.writable:b(F.writable):void 0;return f({readable:v,writable:c})}let n=F?.then;if(typeof n=="function"){let v;return L(n,F,(c)=>{c!=null&&v.push(c),v.push(null)},(c)=>{S(v,c)}),v=new T({objectMode:!0,writable:!1,read(){}})}throw new R(m,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function E(b){let{promise:F,resolve:m}=Z(),n=new B,v=n.signal;return{value:b(async function*(){for(;;){let c=F;F=null;let{chunk:u,done:i,cb:e}=await c;if(Q.nextTick(e),i)return;if(v.aborted)throw new w(void 0,{cause:v.reason});({promise:F,resolve:m}=Z()),yield u}}(),{signal:v}),write(c,u,i){let e=m;m=null,e({chunk:c,done:!1,cb:i})},final(c){let u=m;m=null,u({done:!0,cb:c})},destroy(c,u){n.abort(),u(c)}}}function f(b){let F=b.readable&&typeof b.readable.read!="function"?y.wrap(b.readable):b.readable,m=b.writable,n=!!K(F),v=!!G(m),c,u,i,e,d;function l(k){let r=e;e=null,r?r(k):k?d.destroy(k):!n&&!v&&d.destroy()}return d=new T({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(m!=null&&m.writableObjectMode),readable:n,writable:v}),v&&(C(m,(k)=>{v=!1,k&&S(F,k),l(k)}),d._write=function(k,r,t){m.write(k,r)?t():c=t},d._final=function(k){m.end(),u=k},m.on("drain",function(){if(c){let k=c;c=null,k()}}),m.on("finish",function(){if(u){let k=u;u=null,k()}})),n&&(C(F,(k)=>{n=!1,k&&S(F,k),l(k)}),F.on("readable",function(){if(i){let k=i;i=null,k()}}),F.on("end",function(){d.push(null)}),d._read=function(){for(;;){let k=F.read();if(k===null){i=d._read;return}if(!d.push(k))return}}),d._destroy=function(k,r){!k&&e!==null&&(k=new w),i=null,c=null,u=null,e===null?r(k):(e=r,S(m,k),S(F,k))},d}}),X6=j0(($,V)=>{var{ObjectDefineProperties:Q,ObjectGetOwnPropertyDescriptor:q,ObjectKeys:K,ObjectSetPrototypeOf:G}=x0();V.exports=P;var W=o1(),J=_$();G(P.prototype,W.prototype),G(P,W);{let w=K(J.prototype);for(let R=0;R<w.length;R++){let x=w[R];P.prototype[x]||(P.prototype[x]=J.prototype[x])}}function P(w){if(!(this instanceof P))return new P(w);W.call(this,w),J.call(this,w),w?(this.allowHalfOpen=w.allowHalfOpen!==!1,w.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),w.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}Q(P.prototype,{writable:{__proto__:null,...q(J.prototype,"writable")},writableHighWaterMark:{__proto__:null,...q(J.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...q(J.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...q(J.prototype,"writableBuffer")},writableLength:{__proto__:null,...q(J.prototype,"writableLength")},writableFinished:{__proto__:null,...q(J.prototype,"writableFinished")},writableCorked:{__proto__:null,...q(J.prototype,"writableCorked")},writableEnded:{__proto__:null,...q(J.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...q(J.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(w){this._readableState&&this._writableState&&(this._readableState.destroyed=w,this._writableState.destroyed=w)}}});var j;function z(){return j===void 0&&(j={}),j}P.fromWeb=function(w,R){return z().newStreamDuplexFromReadableWritablePair(w,R)},P.toWeb=function(w){return z().newReadableWritablePairFromDuplex(w)};var C;P.from=function(w){return C||(C=Uq()),C(w,"body")}}),m$=j0(($,V)=>{var{ObjectSetPrototypeOf:Q,Symbol:q}=x0();V.exports=P;var{ERR_METHOD_NOT_IMPLEMENTED:K}=f0().codes,G=X6(),{getHighWaterMark:W}=o2();Q(P.prototype,G.prototype),Q(P,G);var J=q("kCallback");function P(C){if(!(this instanceof P))return new P(C);let w=C?W(this,C,"readableHighWaterMark",!0):null;w===0&&(C={...C,highWaterMark:null,readableHighWaterMark:w,writableHighWaterMark:C.writableHighWaterMark||0}),G.call(this,C),this._readableState.sync=!1,this[J]=null,C&&(typeof C.transform=="function"&&(this._transform=C.transform),typeof C.flush=="function"&&(this._flush=C.flush)),this.on("prefinish",z)}function j(C){typeof this._flush=="function"&&!this.destroyed?this._flush((w,R)=>{if(w){C?C(w):this.destroy(w);return}R!=null&&this.push(R),this.push(null),C&&C()}):(this.push(null),C&&C())}function z(){this._final!==j&&j.call(this)}P.prototype._final=j,P.prototype._transform=function(C,w,R){throw new K("_transform()")},P.prototype._write=function(C,w,R){let x=this._readableState,S=this._writableState,g=x.length;this._transform(C,w,(y,Z)=>{if(y){R(y);return}Z!=null&&this.push(Z),S.ended||g===x.length||x.length<x.highWaterMark?R():this[J]=R})},P.prototype._read=function(){if(this[J]){let C=this[J];this[J]=null,C()}}}),p$=j0(($,V)=>{var{ObjectSetPrototypeOf:Q}=x0();V.exports=K;var q=m$();Q(K.prototype,q.prototype),Q(K,q);function K(G){if(!(this instanceof K))return new K(G);q.call(this,G)}K.prototype._transform=function(G,W,J){J(null,G)}}),i2=j0(($,V)=>{var Q=(S6(),T6(Y6)),{ArrayIsArray:q,Promise:K,SymbolAsyncIterator:G}=x0(),W=g6(),{once:J}=q6(),P=a6(),j=X6(),{aggregateTwoErrors:z,codes:{ERR_INVALID_ARG_TYPE:C,ERR_INVALID_RETURN_VALUE:w,ERR_MISSING_ARGS:R,ERR_STREAM_DESTROYED:x,ERR_STREAM_PREMATURE_CLOSE:S},AbortError:g}=f0(),{validateFunction:y,validateAbortSignal:Z}=l1(),{isIterable:O,isReadable:M,isReadableNodeStream:A,isNodeStream:B}=k6(),L=globalThis.AbortController||c2().AbortController,T,E;function f(i,e,d){let l=!1;i.on("close",()=>{l=!0});let k=W(i,{readable:e,writable:d},(r)=>{l=!r});return{destroy:(r)=>{l||(l=!0,P.destroyer(i,r||new x("pipe")))},cleanup:k}}function b(i){return y(i[i.length-1],"streams[stream.length - 1]"),i.pop()}function F(i){if(O(i))return i;if(A(i))return m(i);throw new C("val",["Readable","Iterable","AsyncIterable"],i)}async function*m(i){E||(E=o1()),yield*E.prototype[G].call(i)}async function n(i,e,d,{end:l}){let k,r=null,t=(V0)=>{if(V0&&(k=V0),r){let J0=r;r=null,J0()}},Y0=()=>new K((V0,J0)=>{k?J0(k):r=()=>{k?J0(k):V0()}});e.on("drain",t);let F0=W(e,{readable:!1},t);try{e.writableNeedDrain&&await Y0();for await(let V0 of i)e.write(V0)||await Y0();l&&e.end(),await Y0(),d()}catch(V0){d(k!==V0?z(k,V0):V0)}finally{F0(),e.off("drain",t)}}function v(...i){return c(i,J(b(i)))}function c(i,e,d){if(i.length===1&&q(i[0])&&(i=i[0]),i.length<2)throw new R("streams");let l=new L,k=l.signal,r=d?.signal,t=[];Z(r,"options.signal");function Y0(){M0(new g)}r?.addEventListener("abort",Y0);let F0,V0,J0=[],X0=0;function H0(I){M0(I,--X0===0)}function M0(I,N){if(I&&(!F0||F0.code==="ERR_STREAM_PREMATURE_CLOSE")&&(F0=I),!(!F0&&!N)){for(;J0.length;)J0.shift()(F0);r?.removeEventListener("abort",Y0),l.abort(),N&&(F0||t.forEach((_)=>_()),Q.nextTick(e,F0,V0))}}let Q0;for(let I=0;I<i.length;I++){let N=i[I],_=I<i.length-1,a=I>0,s=_||d?.end!==!1,U0=I===i.length-1;if(B(N)){let q0=function(z0){z0&&z0.name!=="AbortError"&&z0.code!=="ERR_STREAM_PREMATURE_CLOSE"&&H0(z0)};var B0=q0;if(s){let{destroy:z0,cleanup:b0}=f(N,_,a);J0.push(z0),M(N)&&U0&&t.push(b0)}N.on("error",q0),M(N)&&U0&&t.push(()=>{N.removeListener("error",q0)})}if(I===0)if(typeof N=="function"){if(Q0=N({signal:k}),!O(Q0))throw new w("Iterable, AsyncIterable or Stream","source",Q0)}else O(N)||A(N)?Q0=N:Q0=j.from(N);else if(typeof N=="function")if(Q0=F(Q0),Q0=N(Q0,{signal:k}),_){if(!O(Q0,!0))throw new w("AsyncIterable",`transform[${I-1}]`,Q0)}else{var p;T||(T=p$());let q0=new T({objectMode:!0}),z0=(p=Q0)===null||p===void 0?void 0:p.then;if(typeof z0=="function")X0++,z0.call(Q0,(C0)=>{V0=C0,C0!=null&&q0.write(C0),s&&q0.end(),Q.nextTick(H0)},(C0)=>{q0.destroy(C0),Q.nextTick(H0,C0)});else if(O(Q0,!0))X0++,n(Q0,q0,H0,{end:s});else throw new w("AsyncIterable or Promise","destination",Q0);Q0=q0;let{destroy:b0,cleanup:Q6}=f(Q0,!1,!0);J0.push(b0),U0&&t.push(Q6)}else if(B(N)){if(A(Q0)){X0+=2;let q0=u(Q0,N,H0,{end:s});M(N)&&U0&&t.push(q0)}else if(O(Q0))X0++,n(Q0,N,H0,{end:s});else throw new C("val",["Readable","Iterable","AsyncIterable"],Q0);Q0=N}else Q0=j.from(N)}return(k!=null&&k.aborted||r!=null&&r.aborted)&&Q.nextTick(Y0),Q0}function u(i,e,d,{end:l}){let k=!1;return e.on("close",()=>{k||d(new S)}),i.pipe(e,{end:l}),l?i.once("end",()=>{k=!0,e.end()}):d(),W(i,{readable:!0,writable:!1},(r)=>{let t=i._readableState;r&&r.code==="ERR_STREAM_PREMATURE_CLOSE"&&t&&t.ended&&!t.errored&&!t.errorEmitted?i.once("end",d).once("error",d):d(r)}),W(e,{readable:!1,writable:!0},d)}V.exports={pipelineImpl:c,pipeline:v}}),Wq=j0(($,V)=>{var{pipeline:Q}=i2(),q=X6(),{destroyer:K}=a6(),{isNodeStream:G,isReadable:W,isWritable:J}=k6(),{AbortError:P,codes:{ERR_INVALID_ARG_VALUE:j,ERR_MISSING_ARGS:z}}=f0();V.exports=function(...C){if(C.length===0)throw new z("streams");if(C.length===1)return q.from(C[0]);let w=[...C];if(typeof C[0]=="function"&&(C[0]=q.from(C[0])),typeof C[C.length-1]=="function"){let L=C.length-1;C[L]=q.from(C[L])}for(let L=0;L<C.length;++L)if(G(C[L])){if(L<C.length-1&&!W(C[L]))throw new j(`streams[${L}]`,w[L],"must be readable");if(L>0&&!J(C[L]))throw new j(`streams[${L}]`,w[L],"must be writable")}let R,x,S,g,y;function Z(L){let T=g;g=null,T?T(L):L?y.destroy(L):!B&&!A&&y.destroy()}let O=C[0],M=Q(C,Z),A=!!J(O),B=!!W(M);return y=new q({writableObjectMode:!!(O!=null&&O.writableObjectMode),readableObjectMode:!!(M!=null&&M.writableObjectMode),writable:A,readable:B}),A&&(y._write=function(L,T,E){O.write(L,T)?E():R=E},y._final=function(L){O.end(),x=L},O.on("drain",function(){if(R){let L=R;R=null,L()}}),M.on("finish",function(){if(x){let L=x;x=null,L()}})),B&&(M.on("readable",function(){if(S){let L=S;S=null,L()}}),M.on("end",function(){y.push(null)}),y._read=function(){for(;;){let L=M.read();if(L===null){S=y._read;return}if(!y.push(L))return}}),y._destroy=function(L,T){!L&&g!==null&&(L=new P),S=null,R=null,x=null,g===null?T(L):(g=T,K(M,L))},y}}),c$=j0(($,V)=>{var{ArrayPrototypePop:Q,Promise:q}=x0(),{isIterable:K,isNodeStream:G}=k6(),{pipelineImpl:W}=i2(),{finished:J}=g6();function P(...j){return new q((z,C)=>{let w,R,x=j[j.length-1];if(x&&typeof x=="object"&&!G(x)&&!K(x)){let S=Q(j);w=S.signal,R=S.end}W(j,(S,g)=>{S?C(S):z(g)},{signal:w,end:R})})}V.exports={finished:J,pipeline:P}}),jq=j0(($,V)=>{var{Buffer:Q}=Z6(),{ObjectDefineProperty:q,ObjectKeys:K,ReflectApply:G}=x0(),{promisify:{custom:W}}=q6(),{streamReturningOperators:J,promiseReturningOperators:P}=Yq(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:j}}=f0(),z=Wq(),{pipeline:C}=i2(),{destroyer:w}=a6(),R=g6(),x=c$(),S=k6(),g=V.exports=d2().Stream;g.isDisturbed=S.isDisturbed,g.isErrored=S.isErrored,g.isReadable=S.isReadable,g.Readable=o1();for(let O of K(J)){let M=function(...B){if(new.target)throw j();return g.Readable.from(G(A,this,B))};y=M;let A=J[O];q(M,"name",{__proto__:null,value:A.name}),q(M,"length",{__proto__:null,value:A.length}),q(g.Readable.prototype,O,{__proto__:null,value:M,enumerable:!1,configurable:!0,writable:!0})}var y;for(let O of K(P)){let M=function(...B){if(new.target)throw j();return G(A,this,B)};y=M;let A=P[O];q(M,"name",{__proto__:null,value:A.name}),q(M,"length",{__proto__:null,value:A.length}),q(g.Readable.prototype,O,{__proto__:null,value:M,enumerable:!1,configurable:!0,writable:!0})}var y;g.Writable=_$(),g.Duplex=X6(),g.Transform=m$(),g.PassThrough=p$(),g.pipeline=C;var{addAbortSignal:Z}=l2();g.addAbortSignal=Z,g.finished=R,g.destroy=w,g.compose=z,q(g,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return x}}),q(C,W,{__proto__:null,enumerable:!0,get(){return x.pipeline}}),q(R,W,{__proto__:null,enumerable:!0,get(){return x.finished}}),g.Stream=g,g._isUint8Array=function(O){return O instanceof Uint8Array},g._uint8ArrayToBuffer=function(O){return Q.from(O.buffer,O.byteOffset,O.byteLength)}}),u$=j0(($,V)=>{var Q=jq(),q=c$(),K=Q.Readable.destroy;V.exports=Q.Readable,V.exports._uint8ArrayToBuffer=Q._uint8ArrayToBuffer,V.exports._isUint8Array=Q._isUint8Array,V.exports.isDisturbed=Q.isDisturbed,V.exports.isErrored=Q.isErrored,V.exports.isReadable=Q.isReadable,V.exports.Readable=Q.Readable,V.exports.Writable=Q.Writable,V.exports.Duplex=Q.Duplex,V.exports.Transform=Q.Transform,V.exports.PassThrough=Q.PassThrough,V.exports.addAbortSignal=Q.addAbortSignal,V.exports.finished=Q.finished,V.exports.destroy=Q.destroy,V.exports.destroy=K,V.exports.pipeline=Q.pipeline,V.exports.compose=Q.compose,Object.defineProperty(Q,"promises",{configurable:!0,enumerable:!0,get(){return q}}),V.exports.Stream=Q.Stream,V.exports.default=V.exports}),d$={};y$(d$,{default:()=>l$});b$(d$,u1(u$()));l$=u1(u$());/*!
|
|
1
|
+
var lV=Object.create;var{getPrototypeOf:oV,defineProperty:L1,getOwnPropertyNames:R$,getOwnPropertyDescriptor:iV}=Object,x$=Object.prototype.hasOwnProperty;var T$=($,V,Q)=>{Q=$!=null?lV(oV($)):{};let q=V||!$||!$.__esModule?L1(Q,"default",{value:$,enumerable:!0}):Q;for(let K of R$($))if(!x$.call(q,K))L1(q,K,{get:()=>$[K],enumerable:!0});return q},A$=new WeakMap,S$=($)=>{var V=A$.get($),Q;if(V)return V;if(V=L1({},"__esModule",{value:!0}),$&&typeof $==="object"||typeof $==="function")R$($).map((q)=>!x$.call(V,q)&&L1(V,q,{get:()=>$[q],enumerable:!(Q=iV($,q))||Q.enumerable}));return A$.set($,V),V},$0=($,V)=>()=>(V||$((V={exports:{}}).exports,V),V.exports);var nV=($,V)=>{for(var Q in V)L1($,Q,{get:V[Q],enumerable:!0,configurable:!0,set:(q)=>V[Q]=()=>q})};var aV=($,V)=>()=>($&&(V=$($=0)),V);var E$=$0((u2)=>{/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */var g$;(function($){if(typeof DO_NOT_EXPORT_CRC==="undefined")if(typeof u2==="object")$(u2);else if(typeof define==="function"&&define.amd)define(function(){var V={};return $(V),V});else $(g$={});else $(g$={})})(function($){$.version="1.2.2";function V(){var L=0,T=new Array(256);for(var E=0;E!=256;++E)L=E,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,T[E]=L;return typeof Int32Array!=="undefined"?new Int32Array(T):T}var Q=V();function q(L){var T=0,E=0,f=0,b=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(f=0;f!=256;++f)b[f]=L[f];for(f=0;f!=256;++f){E=L[f];for(T=256+f;T<4096;T+=256)E=b[T]=E>>>8^L[E&255]}var F=[];for(f=1;f!=16;++f)F[f-1]=typeof Int32Array!=="undefined"?b.subarray(f*256,f*256+256):b.slice(f*256,f*256+256);return F}var K=q(Q),G=K[0],W=K[1],J=K[2],P=K[3],j=K[4],z=K[5],C=K[6],I=K[7],R=K[8],x=K[9],S=K[10],g=K[11],y=K[12],Z=K[13],O=K[14];function M(L,T){var E=T^-1;for(var f=0,b=L.length;f<b;)E=E>>>8^Q[(E^L.charCodeAt(f++))&255];return~E}function A(L,T){var E=T^-1,f=L.length-15,b=0;for(;b<f;)E=O[L[b++]^E&255]^Z[L[b++]^E>>8&255]^y[L[b++]^E>>16&255]^g[L[b++]^E>>>24]^S[L[b++]]^x[L[b++]]^R[L[b++]]^I[L[b++]]^C[L[b++]]^z[L[b++]]^j[L[b++]]^P[L[b++]]^J[L[b++]]^W[L[b++]]^G[L[b++]]^Q[L[b++]];f+=15;while(b<f)E=E>>>8^Q[(E^L[b++])&255];return~E}function B(L,T){var E=T^-1;for(var f=0,b=L.length,F=0,m=0;f<b;)if(F=L.charCodeAt(f++),F<128)E=E>>>8^Q[(E^F)&255];else if(F<2048)E=E>>>8^Q[(E^(192|F>>6&31))&255],E=E>>>8^Q[(E^(128|F&63))&255];else if(F>=55296&&F<57344)F=(F&1023)+64,m=L.charCodeAt(f++)&1023,E=E>>>8^Q[(E^(240|F>>8&7))&255],E=E>>>8^Q[(E^(128|F>>2&63))&255],E=E>>>8^Q[(E^(128|m>>6&15|(F&3)<<4))&255],E=E>>>8^Q[(E^(128|m&63))&255];else E=E>>>8^Q[(E^(224|F>>12&15))&255],E=E>>>8^Q[(E^(128|F>>6&63))&255],E=E>>>8^Q[(E^(128|F&63))&255];return~E}$.table=Q,$.bstr=M,$.buf=A,$.str=B})});var r2={};nV(r2,{default:()=>o$});var eV,i1,$q,Qq,Vq,qq,Xq=($,V)=>()=>($&&(V=$($=0)),V),j0=($,V)=>()=>(V||$((V={exports:{}}).exports,V),V.exports),b$=($,V)=>{for(var Q in V)i1($,Q,{get:V[Q],enumerable:!0})},l1=($,V,Q,q)=>{if(V&&typeof V=="object"||typeof V=="function")for(let K of Qq(V))!qq.call($,K)&&K!==Q&&i1($,K,{get:()=>V[K],enumerable:!(q=$q(V,K))||q.enumerable});return $},f$=($,V,Q)=>(l1($,V,"default"),Q&&l1(Q,V,"default")),o1=($,V,Q)=>(Q=$!=null?eV(Vq($)):{},l1(V||!$||!$.__esModule?i1(Q,"default",{value:$,enumerable:!0}):Q,$)),S6=($)=>l1(i1({},"__esModule",{value:!0}),$),Yq,Kq,M6,x0,K6,d2,f0,n1,y$,G6,h$,k6,g6,E6,Jq,a6,l2,o2,i2,Gq,n2,Uq,Wq,_$,a1,m$,jq,J6,p$,c$,a2,Pq,u$,zq,d$,l$,o$;var s2=aV(()=>{eV=Object.create,i1=Object.defineProperty,$q=Object.getOwnPropertyDescriptor,Qq=Object.getOwnPropertyNames,Vq=Object.getPrototypeOf,qq=Object.prototype.hasOwnProperty,Yq=j0(($)=>{$.byteLength=P,$.toByteArray=z,$.fromByteArray=R;var V=[],Q=[],q=typeof Uint8Array<"u"?Uint8Array:Array,K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(G=0,W=K.length;G<W;++G)V[G]=K[G],Q[K.charCodeAt(G)]=G;var G,W;Q[45]=62,Q[95]=63;function J(x){var S=x.length;if(S%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=x.indexOf("=");g===-1&&(g=S);var y=g===S?0:4-g%4;return[g,y]}function P(x){var S=J(x),g=S[0],y=S[1];return(g+y)*3/4-y}function j(x,S,g){return(S+g)*3/4-g}function z(x){var S,g=J(x),y=g[0],Z=g[1],O=new q(j(x,y,Z)),M=0,A=Z>0?y-4:y,B;for(B=0;B<A;B+=4)S=Q[x.charCodeAt(B)]<<18|Q[x.charCodeAt(B+1)]<<12|Q[x.charCodeAt(B+2)]<<6|Q[x.charCodeAt(B+3)],O[M++]=S>>16&255,O[M++]=S>>8&255,O[M++]=S&255;return Z===2&&(S=Q[x.charCodeAt(B)]<<2|Q[x.charCodeAt(B+1)]>>4,O[M++]=S&255),Z===1&&(S=Q[x.charCodeAt(B)]<<10|Q[x.charCodeAt(B+1)]<<4|Q[x.charCodeAt(B+2)]>>2,O[M++]=S>>8&255,O[M++]=S&255),O}function C(x){return V[x>>18&63]+V[x>>12&63]+V[x>>6&63]+V[x&63]}function I(x,S,g){for(var y,Z=[],O=S;O<g;O+=3)y=(x[O]<<16&16711680)+(x[O+1]<<8&65280)+(x[O+2]&255),Z.push(C(y));return Z.join("")}function R(x){for(var S,g=x.length,y=g%3,Z=[],O=16383,M=0,A=g-y;M<A;M+=O)Z.push(I(x,M,M+O>A?A:M+O));return y===1?(S=x[g-1],Z.push(V[S>>2]+V[S<<4&63]+"==")):y===2&&(S=(x[g-2]<<8)+x[g-1],Z.push(V[S>>10]+V[S>>4&63]+V[S<<2&63]+"=")),Z.join("")}}),Kq=j0(($)=>{$.read=function(V,Q,q,K,G){var W,J,P=G*8-K-1,j=(1<<P)-1,z=j>>1,C=-7,I=q?G-1:0,R=q?-1:1,x=V[Q+I];for(I+=R,W=x&(1<<-C)-1,x>>=-C,C+=P;C>0;W=W*256+V[Q+I],I+=R,C-=8);for(J=W&(1<<-C)-1,W>>=-C,C+=K;C>0;J=J*256+V[Q+I],I+=R,C-=8);if(W===0)W=1-z;else{if(W===j)return J?NaN:(x?-1:1)*(1/0);J=J+Math.pow(2,K),W=W-z}return(x?-1:1)*J*Math.pow(2,W-K)},$.write=function(V,Q,q,K,G,W){var J,P,j,z=W*8-G-1,C=(1<<z)-1,I=C>>1,R=G===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=K?0:W-1,S=K?1:-1,g=Q<0||Q===0&&1/Q<0?1:0;for(Q=Math.abs(Q),isNaN(Q)||Q===1/0?(P=isNaN(Q)?1:0,J=C):(J=Math.floor(Math.log(Q)/Math.LN2),Q*(j=Math.pow(2,-J))<1&&(J--,j*=2),J+I>=1?Q+=R/j:Q+=R*Math.pow(2,1-I),Q*j>=2&&(J++,j/=2),J+I>=C?(P=0,J=C):J+I>=1?(P=(Q*j-1)*Math.pow(2,G),J=J+I):(P=Q*Math.pow(2,I-1)*Math.pow(2,G),J=0));G>=8;V[q+x]=P&255,x+=S,P/=256,G-=8);for(J=J<<G|P,z+=G;z>0;V[q+x]=J&255,x+=S,J/=256,z-=8);V[q+x-S]|=g*128}}),M6=j0(($)=>{var V=Yq(),Q=Kq(),q=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;$.Buffer=J,$.SlowBuffer=Z,$.INSPECT_MAX_BYTES=50;var K=2147483647;$.kMaxLength=K,J.TYPED_ARRAY_SUPPORT=G(),!J.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 G(){try{let X=new Uint8Array(1),Y={foo:function(){return 42}};return Object.setPrototypeOf(Y,Uint8Array.prototype),Object.setPrototypeOf(X,Y),X.foo()===42}catch{return!1}}Object.defineProperty(J.prototype,"parent",{enumerable:!0,get:function(){if(J.isBuffer(this))return this.buffer}}),Object.defineProperty(J.prototype,"offset",{enumerable:!0,get:function(){if(J.isBuffer(this))return this.byteOffset}});function W(X){if(X>K)throw new RangeError('The value "'+X+'" is invalid for option "size"');let Y=new Uint8Array(X);return Object.setPrototypeOf(Y,J.prototype),Y}function J(X,Y,U){if(typeof X=="number"){if(typeof Y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return C(X)}return P(X,Y,U)}J.poolSize=8192;function P(X,Y,U){if(typeof X=="string")return I(X,Y);if(ArrayBuffer.isView(X))return x(X);if(X==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X);if(z0(X,ArrayBuffer)||X&&z0(X.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(z0(X,SharedArrayBuffer)||X&&z0(X.buffer,SharedArrayBuffer)))return S(X,Y,U);if(typeof X=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let H=X.valueOf&&X.valueOf();if(H!=null&&H!==X)return J.from(H,Y,U);let w=g(X);if(w)return w;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof X[Symbol.toPrimitive]=="function")return J.from(X[Symbol.toPrimitive]("string"),Y,U);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X)}J.from=function(X,Y,U){return P(X,Y,U)},Object.setPrototypeOf(J.prototype,Uint8Array.prototype),Object.setPrototypeOf(J,Uint8Array);function j(X){if(typeof X!="number")throw new TypeError('"size" argument must be of type number');if(X<0)throw new RangeError('The value "'+X+'" is invalid for option "size"')}function z(X,Y,U){return j(X),X<=0?W(X):Y!==void 0?typeof U=="string"?W(X).fill(Y,U):W(X).fill(Y):W(X)}J.alloc=function(X,Y,U){return z(X,Y,U)};function C(X){return j(X),W(X<0?0:y(X)|0)}J.allocUnsafe=function(X){return C(X)},J.allocUnsafeSlow=function(X){return C(X)};function I(X,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!J.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);let U=O(X,Y)|0,H=W(U),w=H.write(X,Y);return w!==U&&(H=H.slice(0,w)),H}function R(X){let Y=X.length<0?0:y(X.length)|0,U=W(Y);for(let H=0;H<Y;H+=1)U[H]=X[H]&255;return U}function x(X){if(z0(X,Uint8Array)){let Y=new Uint8Array(X);return S(Y.buffer,Y.byteOffset,Y.byteLength)}return R(X)}function S(X,Y,U){if(Y<0||X.byteLength<Y)throw new RangeError('"offset" is outside of buffer bounds');if(X.byteLength<Y+(U||0))throw new RangeError('"length" is outside of buffer bounds');let H;return Y===void 0&&U===void 0?H=new Uint8Array(X):U===void 0?H=new Uint8Array(X,Y):H=new Uint8Array(X,Y,U),Object.setPrototypeOf(H,J.prototype),H}function g(X){if(J.isBuffer(X)){let Y=y(X.length)|0,U=W(Y);return U.length===0||X.copy(U,0,0,Y),U}if(X.length!==void 0)return typeof X.length!="number"||b0(X.length)?W(0):R(X);if(X.type==="Buffer"&&Array.isArray(X.data))return R(X.data)}function y(X){if(X>=K)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K.toString(16)+" bytes");return X|0}function Z(X){return+X!=X&&(X=0),J.alloc(+X)}J.isBuffer=function(X){return X!=null&&X._isBuffer===!0&&X!==J.prototype},J.compare=function(X,Y){if(z0(X,Uint8Array)&&(X=J.from(X,X.offset,X.byteLength)),z0(Y,Uint8Array)&&(Y=J.from(Y,Y.offset,Y.byteLength)),!J.isBuffer(X)||!J.isBuffer(Y))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(X===Y)return 0;let U=X.length,H=Y.length;for(let w=0,h=Math.min(U,H);w<h;++w)if(X[w]!==Y[w]){U=X[w],H=Y[w];break}return U<H?-1:H<U?1:0},J.isEncoding=function(X){switch(String(X).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}},J.concat=function(X,Y){if(!Array.isArray(X))throw new TypeError('"list" argument must be an Array of Buffers');if(X.length===0)return J.alloc(0);let U;if(Y===void 0)for(Y=0,U=0;U<X.length;++U)Y+=X[U].length;let H=J.allocUnsafe(Y),w=0;for(U=0;U<X.length;++U){let h=X[U];if(z0(h,Uint8Array))w+h.length>H.length?(J.isBuffer(h)||(h=J.from(h)),h.copy(H,w)):Uint8Array.prototype.set.call(H,h,w);else if(J.isBuffer(h))h.copy(H,w);else throw new TypeError('"list" argument must be an Array of Buffers');w+=h.length}return H};function O(X,Y){if(J.isBuffer(X))return X.length;if(ArrayBuffer.isView(X)||z0(X,ArrayBuffer))return X.byteLength;if(typeof X!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof X);let U=X.length,H=arguments.length>2&&arguments[2]===!0;if(!H&&U===0)return 0;let w=!1;for(;;)switch(Y){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":return _(X).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U*2;case"hex":return U>>>1;case"base64":return W0(X).length;default:if(w)return H?-1:_(X).length;Y=(""+Y).toLowerCase(),w=!0}}J.byteLength=O;function M(X,Y,U){let H=!1;if((Y===void 0||Y<0)&&(Y=0),Y>this.length||((U===void 0||U>this.length)&&(U=this.length),U<=0)||(U>>>=0,Y>>>=0,U<=Y))return"";for(X||(X="utf8");;)switch(X){case"hex":return e(this,Y,U);case"utf8":case"utf-8":return n(this,Y,U);case"ascii":return u(this,Y,U);case"latin1":case"binary":return i(this,Y,U);case"base64":return m(this,Y,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d(this,Y,U);default:if(H)throw new TypeError("Unknown encoding: "+X);X=(X+"").toLowerCase(),H=!0}}J.prototype._isBuffer=!0;function A(X,Y,U){let H=X[Y];X[Y]=X[U],X[U]=H}J.prototype.swap16=function(){let X=this.length;if(X%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Y=0;Y<X;Y+=2)A(this,Y,Y+1);return this},J.prototype.swap32=function(){let X=this.length;if(X%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let Y=0;Y<X;Y+=4)A(this,Y,Y+3),A(this,Y+1,Y+2);return this},J.prototype.swap64=function(){let X=this.length;if(X%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let Y=0;Y<X;Y+=8)A(this,Y,Y+7),A(this,Y+1,Y+6),A(this,Y+2,Y+5),A(this,Y+3,Y+4);return this},J.prototype.toString=function(){let X=this.length;return X===0?"":arguments.length===0?n(this,0,X):M.apply(this,arguments)},J.prototype.toLocaleString=J.prototype.toString,J.prototype.equals=function(X){if(!J.isBuffer(X))throw new TypeError("Argument must be a Buffer");return this===X?!0:J.compare(this,X)===0},J.prototype.inspect=function(){let X="",Y=$.INSPECT_MAX_BYTES;return X=this.toString("hex",0,Y).replace(/(.{2})/g,"$1 ").trim(),this.length>Y&&(X+=" ... "),"<Buffer "+X+">"},q&&(J.prototype[q]=J.prototype.inspect),J.prototype.compare=function(X,Y,U,H,w){if(z0(X,Uint8Array)&&(X=J.from(X,X.offset,X.byteLength)),!J.isBuffer(X))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof X);if(Y===void 0&&(Y=0),U===void 0&&(U=X?X.length:0),H===void 0&&(H=0),w===void 0&&(w=this.length),Y<0||U>X.length||H<0||w>this.length)throw new RangeError("out of range index");if(H>=w&&Y>=U)return 0;if(H>=w)return-1;if(Y>=U)return 1;if(Y>>>=0,U>>>=0,H>>>=0,w>>>=0,this===X)return 0;let h=w-H,o=U-Y,U0=Math.min(h,o),R0=this.slice(H,w),L0=X.slice(Y,U);for(let Z0=0;Z0<U0;++Z0)if(R0[Z0]!==L0[Z0]){h=R0[Z0],o=L0[Z0];break}return h<o?-1:o<h?1:0};function B(X,Y,U,H,w){if(X.length===0)return-1;if(typeof U=="string"?(H=U,U=0):U>2147483647?U=2147483647:U<-2147483648&&(U=-2147483648),U=+U,b0(U)&&(U=w?0:X.length-1),U<0&&(U=X.length+U),U>=X.length){if(w)return-1;U=X.length-1}else if(U<0)if(w)U=0;else return-1;if(typeof Y=="string"&&(Y=J.from(Y,H)),J.isBuffer(Y))return Y.length===0?-1:L(X,Y,U,H,w);if(typeof Y=="number")return Y=Y&255,typeof Uint8Array.prototype.indexOf=="function"?w?Uint8Array.prototype.indexOf.call(X,Y,U):Uint8Array.prototype.lastIndexOf.call(X,Y,U):L(X,[Y],U,H,w);throw new TypeError("val must be string, number or Buffer")}function L(X,Y,U,H,w){let h=1,o=X.length,U0=Y.length;if(H!==void 0&&(H=String(H).toLowerCase(),H==="ucs2"||H==="ucs-2"||H==="utf16le"||H==="utf-16le")){if(X.length<2||Y.length<2)return-1;h=2,o/=2,U0/=2,U/=2}function R0(Z0,D0){return h===1?Z0[D0]:Z0.readUInt16BE(D0*h)}let L0;if(w){let Z0=-1;for(L0=U;L0<o;L0++)if(R0(X,L0)===R0(Y,Z0===-1?0:L0-Z0)){if(Z0===-1&&(Z0=L0),L0-Z0+1===U0)return Z0*h}else Z0!==-1&&(L0-=L0-Z0),Z0=-1}else for(U+U0>o&&(U=o-U0),L0=U;L0>=0;L0--){let Z0=!0;for(let D0=0;D0<U0;D0++)if(R0(X,L0+D0)!==R0(Y,D0)){Z0=!1;break}if(Z0)return L0}return-1}J.prototype.includes=function(X,Y,U){return this.indexOf(X,Y,U)!==-1},J.prototype.indexOf=function(X,Y,U){return B(this,X,Y,U,!0)},J.prototype.lastIndexOf=function(X,Y,U){return B(this,X,Y,U,!1)};function T(X,Y,U,H){U=Number(U)||0;let w=X.length-U;H?(H=Number(H),H>w&&(H=w)):H=w;let h=Y.length;H>h/2&&(H=h/2);let o;for(o=0;o<H;++o){let U0=parseInt(Y.substr(o*2,2),16);if(b0(U0))return o;X[U+o]=U0}return o}function E(X,Y,U,H){return q0(_(Y,X.length-U),X,U,H)}function f(X,Y,U,H){return q0(a(Y),X,U,H)}function b(X,Y,U,H){return q0(W0(Y),X,U,H)}function F(X,Y,U,H){return q0(s(Y,X.length-U),X,U,H)}J.prototype.write=function(X,Y,U,H){if(Y===void 0)H="utf8",U=this.length,Y=0;else if(U===void 0&&typeof Y=="string")H=Y,U=this.length,Y=0;else if(isFinite(Y))Y=Y>>>0,isFinite(U)?(U=U>>>0,H===void 0&&(H="utf8")):(H=U,U=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let w=this.length-Y;if((U===void 0||U>w)&&(U=w),X.length>0&&(U<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");H||(H="utf8");let h=!1;for(;;)switch(H){case"hex":return T(this,X,Y,U);case"utf8":case"utf-8":return E(this,X,Y,U);case"ascii":case"latin1":case"binary":return f(this,X,Y,U);case"base64":return b(this,X,Y,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,X,Y,U);default:if(h)throw new TypeError("Unknown encoding: "+H);H=(""+H).toLowerCase(),h=!0}},J.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function m(X,Y,U){return Y===0&&U===X.length?V.fromByteArray(X):V.fromByteArray(X.slice(Y,U))}function n(X,Y,U){U=Math.min(X.length,U);let H=[],w=Y;for(;w<U;){let h=X[w],o=null,U0=h>239?4:h>223?3:h>191?2:1;if(w+U0<=U){let R0,L0,Z0,D0;switch(U0){case 1:h<128&&(o=h);break;case 2:R0=X[w+1],(R0&192)===128&&(D0=(h&31)<<6|R0&63,D0>127&&(o=D0));break;case 3:R0=X[w+1],L0=X[w+2],(R0&192)===128&&(L0&192)===128&&(D0=(h&15)<<12|(R0&63)<<6|L0&63,D0>2047&&(D0<55296||D0>57343)&&(o=D0));break;case 4:R0=X[w+1],L0=X[w+2],Z0=X[w+3],(R0&192)===128&&(L0&192)===128&&(Z0&192)===128&&(D0=(h&15)<<18|(R0&63)<<12|(L0&63)<<6|Z0&63,D0>65535&&D0<1114112&&(o=D0))}}o===null?(o=65533,U0=1):o>65535&&(o-=65536,H.push(o>>>10&1023|55296),o=56320|o&1023),H.push(o),w+=U0}return c(H)}var v=4096;function c(X){let Y=X.length;if(Y<=v)return String.fromCharCode.apply(String,X);let U="",H=0;for(;H<Y;)U+=String.fromCharCode.apply(String,X.slice(H,H+=v));return U}function u(X,Y,U){let H="";U=Math.min(X.length,U);for(let w=Y;w<U;++w)H+=String.fromCharCode(X[w]&127);return H}function i(X,Y,U){let H="";U=Math.min(X.length,U);for(let w=Y;w<U;++w)H+=String.fromCharCode(X[w]);return H}function e(X,Y,U){let H=X.length;(!Y||Y<0)&&(Y=0),(!U||U<0||U>H)&&(U=H);let w="";for(let h=Y;h<U;++h)w+=X6[X[h]];return w}function d(X,Y,U){let H=X.slice(Y,U),w="";for(let h=0;h<H.length-1;h+=2)w+=String.fromCharCode(H[h]+H[h+1]*256);return w}J.prototype.slice=function(X,Y){let U=this.length;X=~~X,Y=Y===void 0?U:~~Y,X<0?(X+=U,X<0&&(X=0)):X>U&&(X=U),Y<0?(Y+=U,Y<0&&(Y=0)):Y>U&&(Y=U),Y<X&&(Y=X);let H=this.subarray(X,Y);return Object.setPrototypeOf(H,J.prototype),H};function l(X,Y,U){if(X%1!==0||X<0)throw new RangeError("offset is not uint");if(X+Y>U)throw new RangeError("Trying to access beyond buffer length")}J.prototype.readUintLE=J.prototype.readUIntLE=function(X,Y,U){X=X>>>0,Y=Y>>>0,U||l(X,Y,this.length);let H=this[X],w=1,h=0;for(;++h<Y&&(w*=256);)H+=this[X+h]*w;return H},J.prototype.readUintBE=J.prototype.readUIntBE=function(X,Y,U){X=X>>>0,Y=Y>>>0,U||l(X,Y,this.length);let H=this[X+--Y],w=1;for(;Y>0&&(w*=256);)H+=this[X+--Y]*w;return H},J.prototype.readUint8=J.prototype.readUInt8=function(X,Y){return X=X>>>0,Y||l(X,1,this.length),this[X]},J.prototype.readUint16LE=J.prototype.readUInt16LE=function(X,Y){return X=X>>>0,Y||l(X,2,this.length),this[X]|this[X+1]<<8},J.prototype.readUint16BE=J.prototype.readUInt16BE=function(X,Y){return X=X>>>0,Y||l(X,2,this.length),this[X]<<8|this[X+1]},J.prototype.readUint32LE=J.prototype.readUInt32LE=function(X,Y){return X=X>>>0,Y||l(X,4,this.length),(this[X]|this[X+1]<<8|this[X+2]<<16)+this[X+3]*16777216},J.prototype.readUint32BE=J.prototype.readUInt32BE=function(X,Y){return X=X>>>0,Y||l(X,4,this.length),this[X]*16777216+(this[X+1]<<16|this[X+2]<<8|this[X+3])},J.prototype.readBigUInt64LE=C0(function(X){X=X>>>0,B0(X,"offset");let Y=this[X],U=this[X+7];(Y===void 0||U===void 0)&&p(X,this.length-8);let H=Y+this[++X]*256+this[++X]*65536+this[++X]*16777216,w=this[++X]+this[++X]*256+this[++X]*65536+U*16777216;return BigInt(H)+(BigInt(w)<<BigInt(32))}),J.prototype.readBigUInt64BE=C0(function(X){X=X>>>0,B0(X,"offset");let Y=this[X],U=this[X+7];(Y===void 0||U===void 0)&&p(X,this.length-8);let H=Y*16777216+this[++X]*65536+this[++X]*256+this[++X],w=this[++X]*16777216+this[++X]*65536+this[++X]*256+U;return(BigInt(H)<<BigInt(32))+BigInt(w)}),J.prototype.readIntLE=function(X,Y,U){X=X>>>0,Y=Y>>>0,U||l(X,Y,this.length);let H=this[X],w=1,h=0;for(;++h<Y&&(w*=256);)H+=this[X+h]*w;return w*=128,H>=w&&(H-=Math.pow(2,8*Y)),H},J.prototype.readIntBE=function(X,Y,U){X=X>>>0,Y=Y>>>0,U||l(X,Y,this.length);let H=Y,w=1,h=this[X+--H];for(;H>0&&(w*=256);)h+=this[X+--H]*w;return w*=128,h>=w&&(h-=Math.pow(2,8*Y)),h},J.prototype.readInt8=function(X,Y){return X=X>>>0,Y||l(X,1,this.length),this[X]&128?(255-this[X]+1)*-1:this[X]},J.prototype.readInt16LE=function(X,Y){X=X>>>0,Y||l(X,2,this.length);let U=this[X]|this[X+1]<<8;return U&32768?U|4294901760:U},J.prototype.readInt16BE=function(X,Y){X=X>>>0,Y||l(X,2,this.length);let U=this[X+1]|this[X]<<8;return U&32768?U|4294901760:U},J.prototype.readInt32LE=function(X,Y){return X=X>>>0,Y||l(X,4,this.length),this[X]|this[X+1]<<8|this[X+2]<<16|this[X+3]<<24},J.prototype.readInt32BE=function(X,Y){return X=X>>>0,Y||l(X,4,this.length),this[X]<<24|this[X+1]<<16|this[X+2]<<8|this[X+3]},J.prototype.readBigInt64LE=C0(function(X){X=X>>>0,B0(X,"offset");let Y=this[X],U=this[X+7];(Y===void 0||U===void 0)&&p(X,this.length-8);let H=this[X+4]+this[X+5]*256+this[X+6]*65536+(U<<24);return(BigInt(H)<<BigInt(32))+BigInt(Y+this[++X]*256+this[++X]*65536+this[++X]*16777216)}),J.prototype.readBigInt64BE=C0(function(X){X=X>>>0,B0(X,"offset");let Y=this[X],U=this[X+7];(Y===void 0||U===void 0)&&p(X,this.length-8);let H=(Y<<24)+this[++X]*65536+this[++X]*256+this[++X];return(BigInt(H)<<BigInt(32))+BigInt(this[++X]*16777216+this[++X]*65536+this[++X]*256+U)}),J.prototype.readFloatLE=function(X,Y){return X=X>>>0,Y||l(X,4,this.length),Q.read(this,X,!0,23,4)},J.prototype.readFloatBE=function(X,Y){return X=X>>>0,Y||l(X,4,this.length),Q.read(this,X,!1,23,4)},J.prototype.readDoubleLE=function(X,Y){return X=X>>>0,Y||l(X,8,this.length),Q.read(this,X,!0,52,8)},J.prototype.readDoubleBE=function(X,Y){return X=X>>>0,Y||l(X,8,this.length),Q.read(this,X,!1,52,8)};function k(X,Y,U,H,w,h){if(!J.isBuffer(X))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>w||Y<h)throw new RangeError('"value" argument is out of bounds');if(U+H>X.length)throw new RangeError("Index out of range")}J.prototype.writeUintLE=J.prototype.writeUIntLE=function(X,Y,U,H){if(X=+X,Y=Y>>>0,U=U>>>0,!H){let o=Math.pow(2,8*U)-1;k(this,X,Y,U,o,0)}let w=1,h=0;for(this[Y]=X&255;++h<U&&(w*=256);)this[Y+h]=X/w&255;return Y+U},J.prototype.writeUintBE=J.prototype.writeUIntBE=function(X,Y,U,H){if(X=+X,Y=Y>>>0,U=U>>>0,!H){let o=Math.pow(2,8*U)-1;k(this,X,Y,U,o,0)}let w=U-1,h=1;for(this[Y+w]=X&255;--w>=0&&(h*=256);)this[Y+w]=X/h&255;return Y+U},J.prototype.writeUint8=J.prototype.writeUInt8=function(X,Y,U){return X=+X,Y=Y>>>0,U||k(this,X,Y,1,255,0),this[Y]=X&255,Y+1},J.prototype.writeUint16LE=J.prototype.writeUInt16LE=function(X,Y,U){return X=+X,Y=Y>>>0,U||k(this,X,Y,2,65535,0),this[Y]=X&255,this[Y+1]=X>>>8,Y+2},J.prototype.writeUint16BE=J.prototype.writeUInt16BE=function(X,Y,U){return X=+X,Y=Y>>>0,U||k(this,X,Y,2,65535,0),this[Y]=X>>>8,this[Y+1]=X&255,Y+2},J.prototype.writeUint32LE=J.prototype.writeUInt32LE=function(X,Y,U){return X=+X,Y=Y>>>0,U||k(this,X,Y,4,4294967295,0),this[Y+3]=X>>>24,this[Y+2]=X>>>16,this[Y+1]=X>>>8,this[Y]=X&255,Y+4},J.prototype.writeUint32BE=J.prototype.writeUInt32BE=function(X,Y,U){return X=+X,Y=Y>>>0,U||k(this,X,Y,4,4294967295,0),this[Y]=X>>>24,this[Y+1]=X>>>16,this[Y+2]=X>>>8,this[Y+3]=X&255,Y+4};function r(X,Y,U,H,w){Q0(Y,H,w,X,U,7);let h=Number(Y&BigInt(4294967295));X[U++]=h,h=h>>8,X[U++]=h,h=h>>8,X[U++]=h,h=h>>8,X[U++]=h;let o=Number(Y>>BigInt(32)&BigInt(4294967295));return X[U++]=o,o=o>>8,X[U++]=o,o=o>>8,X[U++]=o,o=o>>8,X[U++]=o,U}function t(X,Y,U,H,w){Q0(Y,H,w,X,U,7);let h=Number(Y&BigInt(4294967295));X[U+7]=h,h=h>>8,X[U+6]=h,h=h>>8,X[U+5]=h,h=h>>8,X[U+4]=h;let o=Number(Y>>BigInt(32)&BigInt(4294967295));return X[U+3]=o,o=o>>8,X[U+2]=o,o=o>>8,X[U+1]=o,o=o>>8,X[U]=o,U+8}J.prototype.writeBigUInt64LE=C0(function(X,Y=0){return r(this,X,Y,BigInt(0),BigInt("0xffffffffffffffff"))}),J.prototype.writeBigUInt64BE=C0(function(X,Y=0){return t(this,X,Y,BigInt(0),BigInt("0xffffffffffffffff"))}),J.prototype.writeIntLE=function(X,Y,U,H){if(X=+X,Y=Y>>>0,!H){let U0=Math.pow(2,8*U-1);k(this,X,Y,U,U0-1,-U0)}let w=0,h=1,o=0;for(this[Y]=X&255;++w<U&&(h*=256);)X<0&&o===0&&this[Y+w-1]!==0&&(o=1),this[Y+w]=(X/h>>0)-o&255;return Y+U},J.prototype.writeIntBE=function(X,Y,U,H){if(X=+X,Y=Y>>>0,!H){let U0=Math.pow(2,8*U-1);k(this,X,Y,U,U0-1,-U0)}let w=U-1,h=1,o=0;for(this[Y+w]=X&255;--w>=0&&(h*=256);)X<0&&o===0&&this[Y+w+1]!==0&&(o=1),this[Y+w]=(X/h>>0)-o&255;return Y+U},J.prototype.writeInt8=function(X,Y,U){return X=+X,Y=Y>>>0,U||k(this,X,Y,1,127,-128),X<0&&(X=255+X+1),this[Y]=X&255,Y+1},J.prototype.writeInt16LE=function(X,Y,U){return X=+X,Y=Y>>>0,U||k(this,X,Y,2,32767,-32768),this[Y]=X&255,this[Y+1]=X>>>8,Y+2},J.prototype.writeInt16BE=function(X,Y,U){return X=+X,Y=Y>>>0,U||k(this,X,Y,2,32767,-32768),this[Y]=X>>>8,this[Y+1]=X&255,Y+2},J.prototype.writeInt32LE=function(X,Y,U){return X=+X,Y=Y>>>0,U||k(this,X,Y,4,2147483647,-2147483648),this[Y]=X&255,this[Y+1]=X>>>8,this[Y+2]=X>>>16,this[Y+3]=X>>>24,Y+4},J.prototype.writeInt32BE=function(X,Y,U){return X=+X,Y=Y>>>0,U||k(this,X,Y,4,2147483647,-2147483648),X<0&&(X=4294967295+X+1),this[Y]=X>>>24,this[Y+1]=X>>>16,this[Y+2]=X>>>8,this[Y+3]=X&255,Y+4},J.prototype.writeBigInt64LE=C0(function(X,Y=0){return r(this,X,Y,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),J.prototype.writeBigInt64BE=C0(function(X,Y=0){return t(this,X,Y,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function K0(X,Y,U,H,w,h){if(U+H>X.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("Index out of range")}function F0(X,Y,U,H,w){return Y=+Y,U=U>>>0,w||K0(X,Y,U,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000),Q.write(X,Y,U,H,23,4),U+4}J.prototype.writeFloatLE=function(X,Y,U){return F0(this,X,Y,!0,U)},J.prototype.writeFloatBE=function(X,Y,U){return F0(this,X,Y,!1,U)};function V0(X,Y,U,H,w){return Y=+Y,U=U>>>0,w||K0(X,Y,U,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000),Q.write(X,Y,U,H,52,8),U+8}J.prototype.writeDoubleLE=function(X,Y,U){return V0(this,X,Y,!0,U)},J.prototype.writeDoubleBE=function(X,Y,U){return V0(this,X,Y,!1,U)},J.prototype.copy=function(X,Y,U,H){if(!J.isBuffer(X))throw new TypeError("argument should be a Buffer");if(U||(U=0),!H&&H!==0&&(H=this.length),Y>=X.length&&(Y=X.length),Y||(Y=0),H>0&&H<U&&(H=U),H===U||X.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if(U<0||U>=this.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length),X.length-Y<H-U&&(H=X.length-Y+U);let w=H-U;return this===X&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(Y,U,H):Uint8Array.prototype.set.call(X,this.subarray(U,H),Y),w},J.prototype.fill=function(X,Y,U,H){if(typeof X=="string"){if(typeof Y=="string"?(H=Y,Y=0,U=this.length):typeof U=="string"&&(H=U,U=this.length),H!==void 0&&typeof H!="string")throw new TypeError("encoding must be a string");if(typeof H=="string"&&!J.isEncoding(H))throw new TypeError("Unknown encoding: "+H);if(X.length===1){let h=X.charCodeAt(0);(H==="utf8"&&h<128||H==="latin1")&&(X=h)}}else typeof X=="number"?X=X&255:typeof X=="boolean"&&(X=Number(X));if(Y<0||this.length<Y||this.length<U)throw new RangeError("Out of range index");if(U<=Y)return this;Y=Y>>>0,U=U===void 0?this.length:U>>>0,X||(X=0);let w;if(typeof X=="number")for(w=Y;w<U;++w)this[w]=X;else{let h=J.isBuffer(X)?X:J.from(X,H),o=h.length;if(o===0)throw new TypeError('The value "'+X+'" is invalid for argument "value"');for(w=0;w<U-Y;++w)this[w+Y]=h[w%o]}return this};var G0={};function Y0(X,Y,U){G0[X]=class extends U{constructor(){super(),Object.defineProperty(this,"message",{value:Y.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${X}]`,this.stack,delete this.name}get code(){return X}set code(H){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:H,writable:!0})}toString(){return`${this.name} [${X}]: ${this.message}`}}}Y0("ERR_BUFFER_OUT_OF_BOUNDS",function(X){return X?`${X} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Y0("ERR_INVALID_ARG_TYPE",function(X,Y){return`The "${X}" argument must be of type number. Received type ${typeof Y}`},TypeError),Y0("ERR_OUT_OF_RANGE",function(X,Y,U){let H=`The value of "${X}" is out of range.`,w=U;return Number.isInteger(U)&&Math.abs(U)>4294967296?w=H0(String(U)):typeof U=="bigint"&&(w=String(U),(U>BigInt(2)**BigInt(32)||U<-(BigInt(2)**BigInt(32)))&&(w=H0(w)),w+="n"),H+=` It must be ${Y}. Received ${w}`,H},RangeError);function H0(X){let Y="",U=X.length,H=X[0]==="-"?1:0;for(;U>=H+4;U-=3)Y=`_${X.slice(U-3,U)}${Y}`;return`${X.slice(0,U)}${Y}`}function M0(X,Y,U){B0(Y,"offset"),(X[Y]===void 0||X[Y+U]===void 0)&&p(Y,X.length-(U+1))}function Q0(X,Y,U,H,w,h){if(X>U||X<Y){let o=typeof Y=="bigint"?"n":"",U0;throw h>3?Y===0||Y===BigInt(0)?U0=`>= 0${o} and < 2${o} ** ${(h+1)*8}${o}`:U0=`>= -(2${o} ** ${(h+1)*8-1}${o}) and < 2 ** ${(h+1)*8-1}${o}`:U0=`>= ${Y}${o} and <= ${U}${o}`,new G0.ERR_OUT_OF_RANGE("value",U0,X)}M0(H,w,h)}function B0(X,Y){if(typeof X!="number")throw new G0.ERR_INVALID_ARG_TYPE(Y,"number",X)}function p(X,Y,U){throw Math.floor(X)!==X?(B0(X,U),new G0.ERR_OUT_OF_RANGE(U||"offset","an integer",X)):Y<0?new G0.ERR_BUFFER_OUT_OF_BOUNDS:new G0.ERR_OUT_OF_RANGE(U||"offset",`>= ${U?1:0} and <= ${Y}`,X)}var D=/[^+/0-9A-Za-z-_]/g;function N(X){if(X=X.split("=")[0],X=X.trim().replace(D,""),X.length<2)return"";for(;X.length%4!==0;)X=X+"=";return X}function _(X,Y){Y=Y||1/0;let U,H=X.length,w=null,h=[];for(let o=0;o<H;++o){if(U=X.charCodeAt(o),U>55295&&U<57344){if(!w){if(U>56319){(Y-=3)>-1&&h.push(239,191,189);continue}else if(o+1===H){(Y-=3)>-1&&h.push(239,191,189);continue}w=U;continue}if(U<56320){(Y-=3)>-1&&h.push(239,191,189),w=U;continue}U=(w-55296<<10|U-56320)+65536}else w&&(Y-=3)>-1&&h.push(239,191,189);if(w=null,U<128){if((Y-=1)<0)break;h.push(U)}else if(U<2048){if((Y-=2)<0)break;h.push(U>>6|192,U&63|128)}else if(U<65536){if((Y-=3)<0)break;h.push(U>>12|224,U>>6&63|128,U&63|128)}else if(U<1114112){if((Y-=4)<0)break;h.push(U>>18|240,U>>12&63|128,U>>6&63|128,U&63|128)}else throw new Error("Invalid code point")}return h}function a(X){let Y=[];for(let U=0;U<X.length;++U)Y.push(X.charCodeAt(U)&255);return Y}function s(X,Y){let U,H,w,h=[];for(let o=0;o<X.length&&!((Y-=2)<0);++o)U=X.charCodeAt(o),H=U>>8,w=U%256,h.push(w),h.push(H);return h}function W0(X){return V.toByteArray(N(X))}function q0(X,Y,U,H){let w;for(w=0;w<H&&!(w+U>=Y.length||w>=X.length);++w)Y[w+U]=X[w];return w}function z0(X,Y){return X instanceof Y||X!=null&&X.constructor!=null&&X.constructor.name!=null&&X.constructor.name===Y.name}function b0(X){return X!==X}var X6=function(){let X="0123456789abcdef",Y=new Array(256);for(let U=0;U<16;++U){let H=U*16;for(let w=0;w<16;++w)Y[H+w]=X[U]+X[w]}return Y}();function C0(X){return typeof BigInt>"u"?d1:X}function d1(){throw new Error("BigInt not supported")}}),x0=j0(($,V)=>{V.exports={ArrayIsArray(Q){return Array.isArray(Q)},ArrayPrototypeIncludes(Q,q){return Q.includes(q)},ArrayPrototypeIndexOf(Q,q){return Q.indexOf(q)},ArrayPrototypeJoin(Q,q){return Q.join(q)},ArrayPrototypeMap(Q,q){return Q.map(q)},ArrayPrototypePop(Q,q){return Q.pop(q)},ArrayPrototypePush(Q,q){return Q.push(q)},ArrayPrototypeSlice(Q,q,K){return Q.slice(q,K)},Error,FunctionPrototypeCall(Q,q,...K){return Q.call(q,...K)},FunctionPrototypeSymbolHasInstance(Q,q){return Function.prototype[Symbol.hasInstance].call(Q,q)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(Q,q){return Object.defineProperties(Q,q)},ObjectDefineProperty(Q,q,K){return Object.defineProperty(Q,q,K)},ObjectGetOwnPropertyDescriptor(Q,q){return Object.getOwnPropertyDescriptor(Q,q)},ObjectKeys(Q){return Object.keys(Q)},ObjectSetPrototypeOf(Q,q){return Object.setPrototypeOf(Q,q)},Promise,PromisePrototypeCatch(Q,q){return Q.catch(q)},PromisePrototypeThen(Q,q,K){return Q.then(q,K)},PromiseReject(Q){return Promise.reject(Q)},ReflectApply:Reflect.apply,RegExpPrototypeTest(Q,q){return Q.test(q)},SafeSet:Set,String,StringPrototypeSlice(Q,q,K){return Q.slice(q,K)},StringPrototypeToLowerCase(Q){return Q.toLowerCase()},StringPrototypeToUpperCase(Q){return Q.toUpperCase()},StringPrototypeTrim(Q){return Q.trim()},Symbol,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(Q,q,K){return Q.set(q,K)},Uint8Array}}),K6=j0(($,V)=>{var Q=M6(),q=Object.getPrototypeOf(async function(){}).constructor,K=globalThis.Blob||Q.Blob,G=typeof K<"u"?function(J){return J instanceof K}:function(J){return!1},W=class extends Error{constructor(J){if(!Array.isArray(J))throw new TypeError(`Expected input to be an Array, got ${typeof J}`);let P="";for(let j=0;j<J.length;j++)P+=` ${J[j].stack}
|
|
2
|
+
`;super(P),this.name="AggregateError",this.errors=J}};V.exports={AggregateError:W,kEmptyObject:Object.freeze({}),once(J){let P=!1;return function(...j){P||(P=!0,J.apply(this,j))}},createDeferredPromise:function(){let J,P;return{promise:new Promise((j,z)=>{J=j,P=z}),resolve:J,reject:P}},promisify(J){return new Promise((P,j)=>{J((z,...C)=>z?j(z):P(...C))})},debuglog(){return function(){}},format(J,...P){return J.replace(/%([sdifj])/g,function(...[j,z]){let C=P.shift();return z==="f"?C.toFixed(6):z==="j"?JSON.stringify(C):z==="s"&&typeof C=="object"?`${C.constructor!==Object?C.constructor.name:""} {}`.trim():C.toString()})},inspect(J){switch(typeof J){case"string":if(J.includes("'"))if(J.includes('"')){if(!J.includes("`")&&!J.includes("${"))return`\`${J}\``}else return`"${J}"`;return`'${J}'`;case"number":return isNaN(J)?"NaN":Object.is(J,-0)?String(J):J;case"bigint":return`${String(J)}n`;case"boolean":case"undefined":return String(J);case"object":return"{}"}},types:{isAsyncFunction(J){return J instanceof q},isArrayBufferView(J){return ArrayBuffer.isView(J)}},isBlob:G},V.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),d2=j0(($,V)=>{var{AbortController:Q,AbortSignal:q}=typeof self<"u"?self:typeof window<"u"?window:void 0;V.exports=Q,V.exports.AbortSignal=q,V.exports.default=Q}),f0=j0(($,V)=>{var{format:Q,inspect:q,AggregateError:K}=K6(),G=globalThis.AggregateError||K,W=Symbol("kIsNodeError"),J=["string","function","number","object","Function","Object","boolean","bigint","symbol"],P=/^([A-Z][a-z0-9]*)+$/,j="__node_internal_",z={};function C(Z,O){if(!Z)throw new z.ERR_INTERNAL_ASSERTION(O)}function I(Z){let O="",M=Z.length,A=Z[0]==="-"?1:0;for(;M>=A+4;M-=3)O=`_${Z.slice(M-3,M)}${O}`;return`${Z.slice(0,M)}${O}`}function R(Z,O,M){if(typeof O=="function")return C(O.length<=M.length,`Code: ${Z}; The provided arguments length (${M.length}) does not match the required ones (${O.length}).`),O(...M);let A=(O.match(/%[dfijoOs]/g)||[]).length;return C(A===M.length,`Code: ${Z}; The provided arguments length (${M.length}) does not match the required ones (${A}).`),M.length===0?O:Q(O,...M)}function x(Z,O,M){M||(M=Error);class A extends M{constructor(...B){super(R(Z,O,B))}toString(){return`${this.name} [${Z}]: ${this.message}`}}Object.defineProperties(A.prototype,{name:{value:M.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${Z}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),A.prototype.code=Z,A.prototype[W]=!0,z[Z]=A}function S(Z){let O=j+Z.name;return Object.defineProperty(Z,"name",{value:O}),Z}function g(Z,O){if(Z&&O&&Z!==O){if(Array.isArray(O.errors))return O.errors.push(Z),O;let M=new G([O,Z],O.message);return M.code=O.code,M}return Z||O}var y=class extends Error{constructor(Z="The operation was aborted",O=void 0){if(O!==void 0&&typeof O!="object")throw new z.ERR_INVALID_ARG_TYPE("options","Object",O);super(Z,O),this.code="ABORT_ERR",this.name="AbortError"}};x("ERR_ASSERTION","%s",Error),x("ERR_INVALID_ARG_TYPE",(Z,O,M)=>{C(typeof Z=="string","'name' must be a string"),Array.isArray(O)||(O=[O]);let A="The ";Z.endsWith(" argument")?A+=`${Z} `:A+=`"${Z}" ${Z.includes(".")?"property":"argument"} `,A+="must be ";let B=[],L=[],T=[];for(let f of O)C(typeof f=="string","All expected entries have to be of type string"),J.includes(f)?B.push(f.toLowerCase()):P.test(f)?L.push(f):(C(f!=="object",'The value "object" should be written as "Object"'),T.push(f));if(L.length>0){let f=B.indexOf("object");f!==-1&&(B.splice(B,f,1),L.push("Object"))}if(B.length>0){switch(B.length){case 1:A+=`of type ${B[0]}`;break;case 2:A+=`one of type ${B[0]} or ${B[1]}`;break;default:{let f=B.pop();A+=`one of type ${B.join(", ")}, or ${f}`}}(L.length>0||T.length>0)&&(A+=" or ")}if(L.length>0){switch(L.length){case 1:A+=`an instance of ${L[0]}`;break;case 2:A+=`an instance of ${L[0]} or ${L[1]}`;break;default:{let f=L.pop();A+=`an instance of ${L.join(", ")}, or ${f}`}}T.length>0&&(A+=" or ")}switch(T.length){case 0:break;case 1:T[0].toLowerCase()!==T[0]&&(A+="an "),A+=`${T[0]}`;break;case 2:A+=`one of ${T[0]} or ${T[1]}`;break;default:{let f=T.pop();A+=`one of ${T.join(", ")}, or ${f}`}}if(M==null)A+=`. Received ${M}`;else if(typeof M=="function"&&M.name)A+=`. Received function ${M.name}`;else if(typeof M=="object"){var E;(E=M.constructor)!==null&&E!==void 0&&E.name?A+=`. Received an instance of ${M.constructor.name}`:A+=`. Received ${q(M,{depth:-1})}`}else{let f=q(M,{colors:!1});f.length>25&&(f=`${f.slice(0,25)}...`),A+=`. Received type ${typeof M} (${f})`}return A},TypeError),x("ERR_INVALID_ARG_VALUE",(Z,O,M="is invalid")=>{let A=q(O);return A.length>128&&(A=A.slice(0,128)+"..."),`The ${Z.includes(".")?"property":"argument"} '${Z}' ${M}. Received ${A}`},TypeError),x("ERR_INVALID_RETURN_VALUE",(Z,O,M)=>{var A;let B=M!=null&&(A=M.constructor)!==null&&A!==void 0&&A.name?`instance of ${M.constructor.name}`:`type ${typeof M}`;return`Expected ${Z} to be returned from the "${O}" function but got ${B}.`},TypeError),x("ERR_MISSING_ARGS",(...Z)=>{C(Z.length>0,"At least one arg needs to be specified");let O,M=Z.length;switch(Z=(Array.isArray(Z)?Z:[Z]).map((A)=>`"${A}"`).join(" or "),M){case 1:O+=`The ${Z[0]} argument`;break;case 2:O+=`The ${Z[0]} and ${Z[1]} arguments`;break;default:{let A=Z.pop();O+=`The ${Z.join(", ")}, and ${A} arguments`}break}return`${O} must be specified`},TypeError),x("ERR_OUT_OF_RANGE",(Z,O,M)=>{C(O,'Missing "range" argument');let A;return Number.isInteger(M)&&Math.abs(M)>4294967296?A=I(String(M)):typeof M=="bigint"?(A=String(M),(M>2n**32n||M<-(2n**32n))&&(A=I(A)),A+="n"):A=q(M),`The value of "${Z}" is out of range. It must be ${O}. Received ${A}`},RangeError),x("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),x("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),x("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),x("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),x("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),x("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),x("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),x("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),x("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),x("ERR_STREAM_WRITE_AFTER_END","write after end",Error),x("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),V.exports={AbortError:y,aggregateTwoErrors:S(g),hideStackFrames:S,codes:z}}),n1=j0(($,V)=>{var{ArrayIsArray:Q,ArrayPrototypeIncludes:q,ArrayPrototypeJoin:K,ArrayPrototypeMap:G,NumberIsInteger:W,NumberIsNaN:J,NumberMAX_SAFE_INTEGER:P,NumberMIN_SAFE_INTEGER:j,NumberParseInt:z,ObjectPrototypeHasOwnProperty:C,RegExpPrototypeExec:I,String:R,StringPrototypeToUpperCase:x,StringPrototypeTrim:S}=x0(),{hideStackFrames:g,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:Z,ERR_INVALID_ARG_VALUE:O,ERR_OUT_OF_RANGE:M,ERR_UNKNOWN_SIGNAL:A}}=f0(),{normalizeEncoding:B}=K6(),{isAsyncFunction:L,isArrayBufferView:T}=K6().types,E={};function f(p){return p===(p|0)}function b(p){return p===p>>>0}var F=/^[0-7]+$/,m="must be a 32-bit unsigned integer or an octal string";function n(p,D,N){if(typeof p>"u"&&(p=N),typeof p=="string"){if(I(F,p)===null)throw new O(D,p,m);p=z(p,8)}return u(p,D),p}var v=g((p,D,N=j,_=P)=>{if(typeof p!="number")throw new Z(D,"number",p);if(!W(p))throw new M(D,"an integer",p);if(p<N||p>_)throw new M(D,`>= ${N} && <= ${_}`,p)}),c=g((p,D,N=-2147483648,_=2147483647)=>{if(typeof p!="number")throw new Z(D,"number",p);if(!W(p))throw new M(D,"an integer",p);if(p<N||p>_)throw new M(D,`>= ${N} && <= ${_}`,p)}),u=g((p,D,N=!1)=>{if(typeof p!="number")throw new Z(D,"number",p);if(!W(p))throw new M(D,"an integer",p);let _=N?1:0,a=4294967295;if(p<_||p>a)throw new M(D,`>= ${_} && <= ${a}`,p)});function i(p,D){if(typeof p!="string")throw new Z(D,"string",p)}function e(p,D,N=void 0,_){if(typeof p!="number")throw new Z(D,"number",p);if(N!=null&&p<N||_!=null&&p>_||(N!=null||_!=null)&&J(p))throw new M(D,`${N!=null?`>= ${N}`:""}${N!=null&&_!=null?" && ":""}${_!=null?`<= ${_}`:""}`,p)}var d=g((p,D,N)=>{if(!q(N,p)){let _=K(G(N,(s)=>typeof s=="string"?`'${s}'`:R(s)),", "),a="must be one of: "+_;throw new O(D,p,a)}});function l(p,D){if(typeof p!="boolean")throw new Z(D,"boolean",p)}function k(p,D,N){return p==null||!C(p,D)?N:p[D]}var r=g((p,D,N=null)=>{let _=k(N,"allowArray",!1),a=k(N,"allowFunction",!1);if(!k(N,"nullable",!1)&&p===null||!_&&Q(p)||typeof p!="object"&&(!a||typeof p!="function"))throw new Z(D,"Object",p)}),t=g((p,D,N=0)=>{if(!Q(p))throw new Z(D,"Array",p);if(p.length<N){let _=`must be longer than ${N}`;throw new O(D,p,_)}});function K0(p,D="signal"){if(i(p,D),E[p]===void 0)throw E[x(p)]!==void 0?new A(p+" (signals must use all capital letters)"):new A(p)}var F0=g((p,D="buffer")=>{if(!T(p))throw new Z(D,["Buffer","TypedArray","DataView"],p)});function V0(p,D){let N=B(D),_=p.length;if(N==="hex"&&_%2!==0)throw new O("encoding",D,`is invalid for data of length ${_}`)}function G0(p,D="Port",N=!0){if(typeof p!="number"&&typeof p!="string"||typeof p=="string"&&S(p).length===0||+p!==+p>>>0||p>65535||p===0&&!N)throw new y(D,p,N);return p|0}var Y0=g((p,D)=>{if(p!==void 0&&(p===null||typeof p!="object"||!("aborted"in p)))throw new Z(D,"AbortSignal",p)}),H0=g((p,D)=>{if(typeof p!="function")throw new Z(D,"Function",p)}),M0=g((p,D)=>{if(typeof p!="function"||L(p))throw new Z(D,"Function",p)}),Q0=g((p,D)=>{if(p!==void 0)throw new Z(D,"undefined",p)});function B0(p,D,N){if(!q(N,p))throw new Z(D,`('${K(N,"|")}')`,p)}V.exports={isInt32:f,isUint32:b,parseFileMode:n,validateArray:t,validateBoolean:l,validateBuffer:F0,validateEncoding:V0,validateFunction:H0,validateInt32:c,validateInteger:v,validateNumber:e,validateObject:r,validateOneOf:d,validatePlainFunction:M0,validatePort:G0,validateSignalName:K0,validateString:i,validateUint32:u,validateUndefined:Q0,validateUnion:B0,validateAbortSignal:Y0}}),y$=j0(($,V)=>{var Q=V.exports={},q,K;function G(){throw new Error("setTimeout has not been defined")}function W(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?q=setTimeout:q=G}catch{q=G}try{typeof clearTimeout=="function"?K=clearTimeout:K=W}catch{K=W}})();function J(y){if(q===setTimeout)return setTimeout(y,0);if((q===G||!q)&&setTimeout)return q=setTimeout,setTimeout(y,0);try{return q(y,0)}catch{try{return q.call(null,y,0)}catch{return q.call(this,y,0)}}}function P(y){if(K===clearTimeout)return clearTimeout(y);if((K===W||!K)&&clearTimeout)return K=clearTimeout,clearTimeout(y);try{return K(y)}catch{try{return K.call(null,y)}catch{return K.call(this,y)}}}var j=[],z=!1,C,I=-1;function R(){!z||!C||(z=!1,C.length?j=C.concat(j):I=-1,j.length&&x())}function x(){if(!z){var y=J(R);z=!0;for(var Z=j.length;Z;){for(C=j,j=[];++I<Z;)C&&C[I].run();I=-1,Z=j.length}C=null,z=!1,P(y)}}Q.nextTick=function(y){var Z=new Array(arguments.length-1);if(arguments.length>1)for(var O=1;O<arguments.length;O++)Z[O-1]=arguments[O];j.push(new S(y,Z)),j.length===1&&!z&&J(x)};function S(y,Z){this.fun=y,this.array=Z}S.prototype.run=function(){this.fun.apply(null,this.array)},Q.title="browser",Q.browser=!0,Q.env={},Q.argv=[],Q.version="",Q.versions={};function g(){}Q.on=g,Q.addListener=g,Q.once=g,Q.off=g,Q.removeListener=g,Q.removeAllListeners=g,Q.emit=g,Q.prependListener=g,Q.prependOnceListener=g,Q.listeners=function(y){return[]},Q.binding=function(y){throw new Error("process.binding is not supported")},Q.cwd=function(){return"/"},Q.chdir=function(y){throw new Error("process.chdir is not supported")},Q.umask=function(){return 0}}),G6={};b$(G6,{default:()=>h$});k6=Xq(()=>{f$(G6,o1(y$())),h$=o1(y$())}),g6=j0(($,V)=>{var{Symbol:Q,SymbolAsyncIterator:q,SymbolIterator:K}=x0(),G=Q("kDestroyed"),W=Q("kIsErrored"),J=Q("kIsReadable"),P=Q("kIsDisturbed");function j(v,c=!1){var u;return!!(v&&typeof v.pipe=="function"&&typeof v.on=="function"&&(!c||typeof v.pause=="function"&&typeof v.resume=="function")&&(!v._writableState||((u=v._readableState)===null||u===void 0?void 0:u.readable)!==!1)&&(!v._writableState||v._readableState))}function z(v){var c;return!!(v&&typeof v.write=="function"&&typeof v.on=="function"&&(!v._readableState||((c=v._writableState)===null||c===void 0?void 0:c.writable)!==!1))}function C(v){return!!(v&&typeof v.pipe=="function"&&v._readableState&&typeof v.on=="function"&&typeof v.write=="function")}function I(v){return v&&(v._readableState||v._writableState||typeof v.write=="function"&&typeof v.on=="function"||typeof v.pipe=="function"&&typeof v.on=="function")}function R(v,c){return v==null?!1:c===!0?typeof v[q]=="function":c===!1?typeof v[K]=="function":typeof v[q]=="function"||typeof v[K]=="function"}function x(v){if(!I(v))return null;let{_writableState:c,_readableState:u}=v,i=c||u;return!!(v.destroyed||v[G]||i!=null&&i.destroyed)}function S(v){if(!z(v))return null;if(v.writableEnded===!0)return!0;let c=v._writableState;return c!=null&&c.errored?!1:typeof c?.ended!="boolean"?null:c.ended}function g(v,c){if(!z(v))return null;if(v.writableFinished===!0)return!0;let u=v._writableState;return u!=null&&u.errored?!1:typeof u?.finished!="boolean"?null:!!(u.finished||c===!1&&u.ended===!0&&u.length===0)}function y(v){if(!j(v))return null;if(v.readableEnded===!0)return!0;let c=v._readableState;return!c||c.errored?!1:typeof c?.ended!="boolean"?null:c.ended}function Z(v,c){if(!j(v))return null;let u=v._readableState;return u!=null&&u.errored?!1:typeof u?.endEmitted!="boolean"?null:!!(u.endEmitted||c===!1&&u.ended===!0&&u.length===0)}function O(v){return v&&v[J]!=null?v[J]:typeof v?.readable!="boolean"?null:x(v)?!1:j(v)&&v.readable&&!Z(v)}function M(v){return typeof v?.writable!="boolean"?null:x(v)?!1:z(v)&&v.writable&&!S(v)}function A(v,c){return I(v)?x(v)?!0:!(c?.readable!==!1&&O(v)||c?.writable!==!1&&M(v)):null}function B(v){var c,u;return I(v)?v.writableErrored?v.writableErrored:(c=(u=v._writableState)===null||u===void 0?void 0:u.errored)!==null&&c!==void 0?c:null:null}function L(v){var c,u;return I(v)?v.readableErrored?v.readableErrored:(c=(u=v._readableState)===null||u===void 0?void 0:u.errored)!==null&&c!==void 0?c:null:null}function T(v){if(!I(v))return null;if(typeof v.closed=="boolean")return v.closed;let{_writableState:c,_readableState:u}=v;return typeof c?.closed=="boolean"||typeof u?.closed=="boolean"?c?.closed||u?.closed:typeof v._closed=="boolean"&&E(v)?v._closed:null}function E(v){return typeof v._closed=="boolean"&&typeof v._defaultKeepAlive=="boolean"&&typeof v._removedConnection=="boolean"&&typeof v._removedContLen=="boolean"}function f(v){return typeof v._sent100=="boolean"&&E(v)}function b(v){var c;return typeof v._consuming=="boolean"&&typeof v._dumped=="boolean"&&((c=v.req)===null||c===void 0?void 0:c.upgradeOrConnect)===void 0}function F(v){if(!I(v))return null;let{_writableState:c,_readableState:u}=v,i=c||u;return!i&&f(v)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function m(v){var c;return!!(v&&((c=v[P])!==null&&c!==void 0?c:v.readableDidRead||v.readableAborted))}function n(v){var c,u,i,e,d,l,k,r,t,K0;return!!(v&&((c=(u=(i=(e=(d=(l=v[W])!==null&&l!==void 0?l:v.readableErrored)!==null&&d!==void 0?d:v.writableErrored)!==null&&e!==void 0?e:(k=v._readableState)===null||k===void 0?void 0:k.errorEmitted)!==null&&i!==void 0?i:(r=v._writableState)===null||r===void 0?void 0:r.errorEmitted)!==null&&u!==void 0?u:(t=v._readableState)===null||t===void 0?void 0:t.errored)!==null&&c!==void 0?c:(K0=v._writableState)===null||K0===void 0?void 0:K0.errored))}V.exports={kDestroyed:G,isDisturbed:m,kIsDisturbed:P,isErrored:n,kIsErrored:W,isReadable:O,kIsReadable:J,isClosed:T,isDestroyed:x,isDuplexNodeStream:C,isFinished:A,isIterable:R,isReadableNodeStream:j,isReadableEnded:y,isReadableFinished:Z,isReadableErrored:L,isNodeStream:I,isWritable:M,isWritableNodeStream:z,isWritableEnded:S,isWritableFinished:g,isWritableErrored:B,isServerRequest:b,isServerResponse:f,willEmitClose:F}}),E6=j0(($,V)=>{var Q=(k6(),S6(G6)),{AbortError:q,codes:K}=f0(),{ERR_INVALID_ARG_TYPE:G,ERR_STREAM_PREMATURE_CLOSE:W}=K,{kEmptyObject:J,once:P}=K6(),{validateAbortSignal:j,validateFunction:z,validateObject:C}=n1(),{Promise:I}=x0(),{isClosed:R,isReadable:x,isReadableNodeStream:S,isReadableFinished:g,isReadableErrored:y,isWritable:Z,isWritableNodeStream:O,isWritableFinished:M,isWritableErrored:A,isNodeStream:B,willEmitClose:L}=g6();function T(F){return F.setHeader&&typeof F.abort=="function"}var E=()=>{};function f(F,m,n){var v,c;arguments.length===2?(n=m,m=J):m==null?m=J:C(m,"options"),z(n,"callback"),j(m.signal,"options.signal"),n=P(n);let u=(v=m.readable)!==null&&v!==void 0?v:S(F),i=(c=m.writable)!==null&&c!==void 0?c:O(F);if(!B(F))throw new G("stream","Stream",F);let{_writableState:e,_readableState:d}=F,l=()=>{F.writable||t()},k=L(F)&&S(F)===u&&O(F)===i,r=M(F,!1),t=()=>{r=!0,F.destroyed&&(k=!1),!(k&&(!F.readable||u))&&(!u||K0)&&n.call(F)},K0=g(F,!1),F0=()=>{K0=!0,F.destroyed&&(k=!1),!(k&&(!F.writable||i))&&(!i||r)&&n.call(F)},V0=(Q0)=>{n.call(F,Q0)},G0=R(F),Y0=()=>{G0=!0;let Q0=A(F)||y(F);if(Q0&&typeof Q0!="boolean")return n.call(F,Q0);if(u&&!K0&&S(F,!0)&&!g(F,!1))return n.call(F,new W);if(i&&!r&&!M(F,!1))return n.call(F,new W);n.call(F)},H0=()=>{F.req.on("finish",t)};T(F)?(F.on("complete",t),k||F.on("abort",Y0),F.req?H0():F.on("request",H0)):i&&!e&&(F.on("end",l),F.on("close",l)),!k&&typeof F.aborted=="boolean"&&F.on("aborted",Y0),F.on("end",F0),F.on("finish",t),m.error!==!1&&F.on("error",V0),F.on("close",Y0),G0?Q.nextTick(Y0):e!=null&&e.errorEmitted||d!=null&&d.errorEmitted?k||Q.nextTick(Y0):(!u&&(!k||x(F))&&(r||Z(F)===!1)||!i&&(!k||Z(F))&&(K0||x(F)===!1)||d&&F.req&&F.aborted)&&Q.nextTick(Y0);let M0=()=>{n=E,F.removeListener("aborted",Y0),F.removeListener("complete",t),F.removeListener("abort",Y0),F.removeListener("request",H0),F.req&&F.req.removeListener("finish",t),F.removeListener("end",l),F.removeListener("close",l),F.removeListener("finish",t),F.removeListener("end",F0),F.removeListener("error",V0),F.removeListener("close",Y0)};if(m.signal&&!G0){let Q0=()=>{let B0=n;M0(),B0.call(F,new q(void 0,{cause:m.signal.reason}))};if(m.signal.aborted)Q.nextTick(Q0);else{let B0=n;n=P((...p)=>{m.signal.removeEventListener("abort",Q0),B0.apply(F,p)}),m.signal.addEventListener("abort",Q0)}}return M0}function b(F,m){return new I((n,v)=>{f(F,m,(c)=>{c?v(c):n()})})}V.exports=f,V.exports.finished=b}),Jq=j0(($,V)=>{var Q=globalThis.AbortController||d2().AbortController,{codes:{ERR_INVALID_ARG_TYPE:q,ERR_MISSING_ARGS:K,ERR_OUT_OF_RANGE:G},AbortError:W}=f0(),{validateAbortSignal:J,validateInteger:P,validateObject:j}=n1(),z=x0().Symbol("kWeak"),{finished:C}=E6(),{ArrayPrototypePush:I,MathFloor:R,Number:x,NumberIsNaN:S,Promise:g,PromiseReject:y,PromisePrototypeThen:Z,Symbol:O}=x0(),M=O("kEmpty"),A=O("kEof");function B(d,l){if(typeof d!="function")throw new q("fn",["Function","AsyncFunction"],d);l!=null&&j(l,"options"),l?.signal!=null&&J(l.signal,"options.signal");let k=1;return l?.concurrency!=null&&(k=R(l.concurrency)),P(k,"concurrency",1),async function*(){var r,t;let K0=new Q,F0=this,V0=[],G0=K0.signal,Y0={signal:G0},H0=()=>K0.abort();l!=null&&(r=l.signal)!==null&&r!==void 0&&r.aborted&&H0(),l==null||(t=l.signal)===null||t===void 0||t.addEventListener("abort",H0);let M0,Q0,B0=!1;function p(){B0=!0}async function D(){try{for await(let a of F0){var N;if(B0)return;if(G0.aborted)throw new W;try{a=d(a,Y0)}catch(s){a=y(s)}a!==M&&(typeof((N=a)===null||N===void 0?void 0:N.catch)=="function"&&a.catch(p),V0.push(a),M0&&(M0(),M0=null),!B0&&V0.length&&V0.length>=k&&await new g((s)=>{Q0=s}))}V0.push(A)}catch(a){let s=y(a);Z(s,void 0,p),V0.push(s)}finally{var _;B0=!0,M0&&(M0(),M0=null),l==null||(_=l.signal)===null||_===void 0||_.removeEventListener("abort",H0)}}D();try{for(;;){for(;V0.length>0;){let N=await V0[0];if(N===A)return;if(G0.aborted)throw new W;N!==M&&(yield N),V0.shift(),Q0&&(Q0(),Q0=null)}await new g((N)=>{M0=N})}}finally{K0.abort(),B0=!0,Q0&&(Q0(),Q0=null)}}.call(this)}function L(d=void 0){return d!=null&&j(d,"options"),d?.signal!=null&&J(d.signal,"options.signal"),async function*(){let l=0;for await(let r of this){var k;if(d!=null&&(k=d.signal)!==null&&k!==void 0&&k.aborted)throw new W({cause:d.signal.reason});yield[l++,r]}}.call(this)}async function T(d,l=void 0){for await(let k of F.call(this,d,l))return!0;return!1}async function E(d,l=void 0){if(typeof d!="function")throw new q("fn",["Function","AsyncFunction"],d);return!await T.call(this,async(...k)=>!await d(...k),l)}async function f(d,l){for await(let k of F.call(this,d,l))return k}async function b(d,l){if(typeof d!="function")throw new q("fn",["Function","AsyncFunction"],d);async function k(r,t){return await d(r,t),M}for await(let r of B.call(this,k,l));}function F(d,l){if(typeof d!="function")throw new q("fn",["Function","AsyncFunction"],d);async function k(r,t){return await d(r,t)?r:M}return B.call(this,k,l)}var m=class extends K{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function n(d,l,k){var r;if(typeof d!="function")throw new q("reducer",["Function","AsyncFunction"],d);k!=null&&j(k,"options"),k?.signal!=null&&J(k.signal,"options.signal");let t=arguments.length>1;if(k!=null&&(r=k.signal)!==null&&r!==void 0&&r.aborted){let Y0=new W(void 0,{cause:k.signal.reason});throw this.once("error",()=>{}),await C(this.destroy(Y0)),Y0}let K0=new Q,F0=K0.signal;if(k!=null&&k.signal){let Y0={once:!0,[z]:this};k.signal.addEventListener("abort",()=>K0.abort(),Y0)}let V0=!1;try{for await(let Y0 of this){var G0;if(V0=!0,k!=null&&(G0=k.signal)!==null&&G0!==void 0&&G0.aborted)throw new W;t?l=await d(l,Y0,{signal:F0}):(l=Y0,t=!0)}if(!V0&&!t)throw new m}finally{K0.abort()}return l}async function v(d){d!=null&&j(d,"options"),d?.signal!=null&&J(d.signal,"options.signal");let l=[];for await(let r of this){var k;if(d!=null&&(k=d.signal)!==null&&k!==void 0&&k.aborted)throw new W(void 0,{cause:d.signal.reason});I(l,r)}return l}function c(d,l){let k=B.call(this,d,l);return async function*(){for await(let r of k)yield*r}.call(this)}function u(d){if(d=x(d),S(d))return 0;if(d<0)throw new G("number",">= 0",d);return d}function i(d,l=void 0){return l!=null&&j(l,"options"),l?.signal!=null&&J(l.signal,"options.signal"),d=u(d),async function*(){var k;if(l!=null&&(k=l.signal)!==null&&k!==void 0&&k.aborted)throw new W;for await(let t of this){var r;if(l!=null&&(r=l.signal)!==null&&r!==void 0&&r.aborted)throw new W;d--<=0&&(yield t)}}.call(this)}function e(d,l=void 0){return l!=null&&j(l,"options"),l?.signal!=null&&J(l.signal,"options.signal"),d=u(d),async function*(){var k;if(l!=null&&(k=l.signal)!==null&&k!==void 0&&k.aborted)throw new W;for await(let t of this){var r;if(l!=null&&(r=l.signal)!==null&&r!==void 0&&r.aborted)throw new W;if(d-- >0)yield t;else return}}.call(this)}V.exports.streamReturningOperators={asIndexedPairs:L,drop:i,filter:F,flatMap:c,map:B,take:e},V.exports.promiseReturningOperators={every:E,forEach:b,reduce:n,toArray:v,some:T,find:f}}),a6=j0(($,V)=>{var Q=(k6(),S6(G6)),{aggregateTwoErrors:q,codes:{ERR_MULTIPLE_CALLBACK:K},AbortError:G}=f0(),{Symbol:W}=x0(),{kDestroyed:J,isDestroyed:P,isFinished:j,isServerRequest:z}=g6(),C=W("kDestroy"),I=W("kConstruct");function R(F,m,n){F&&(F.stack,m&&!m.errored&&(m.errored=F),n&&!n.errored&&(n.errored=F))}function x(F,m){let n=this._readableState,v=this._writableState,c=v||n;return v&&v.destroyed||n&&n.destroyed?(typeof m=="function"&&m(),this):(R(F,v,n),v&&(v.destroyed=!0),n&&(n.destroyed=!0),c.constructed?S(this,F,m):this.once(C,function(u){S(this,q(u,F),m)}),this)}function S(F,m,n){let v=!1;function c(u){if(v)return;v=!0;let{_readableState:i,_writableState:e}=F;R(u,e,i),e&&(e.closed=!0),i&&(i.closed=!0),typeof n=="function"&&n(u),u?Q.nextTick(g,F,u):Q.nextTick(y,F)}try{F._destroy(m||null,c)}catch(u){c(u)}}function g(F,m){Z(F,m),y(F)}function y(F){let{_readableState:m,_writableState:n}=F;n&&(n.closeEmitted=!0),m&&(m.closeEmitted=!0),(n&&n.emitClose||m&&m.emitClose)&&F.emit("close")}function Z(F,m){let{_readableState:n,_writableState:v}=F;v&&v.errorEmitted||n&&n.errorEmitted||(v&&(v.errorEmitted=!0),n&&(n.errorEmitted=!0),F.emit("error",m))}function O(){let F=this._readableState,m=this._writableState;F&&(F.constructed=!0,F.closed=!1,F.closeEmitted=!1,F.destroyed=!1,F.errored=null,F.errorEmitted=!1,F.reading=!1,F.ended=F.readable===!1,F.endEmitted=F.readable===!1),m&&(m.constructed=!0,m.destroyed=!1,m.closed=!1,m.closeEmitted=!1,m.errored=null,m.errorEmitted=!1,m.finalCalled=!1,m.prefinished=!1,m.ended=m.writable===!1,m.ending=m.writable===!1,m.finished=m.writable===!1)}function M(F,m,n){let{_readableState:v,_writableState:c}=F;if(c&&c.destroyed||v&&v.destroyed)return this;v&&v.autoDestroy||c&&c.autoDestroy?F.destroy(m):m&&(m.stack,c&&!c.errored&&(c.errored=m),v&&!v.errored&&(v.errored=m),n?Q.nextTick(Z,F,m):Z(F,m))}function A(F,m){if(typeof F._construct!="function")return;let{_readableState:n,_writableState:v}=F;n&&(n.constructed=!1),v&&(v.constructed=!1),F.once(I,m),!(F.listenerCount(I)>1)&&Q.nextTick(B,F)}function B(F){let m=!1;function n(v){if(m){M(F,v??new K);return}m=!0;let{_readableState:c,_writableState:u}=F,i=u||c;c&&(c.constructed=!0),u&&(u.constructed=!0),i.destroyed?F.emit(C,v):v?M(F,v,!0):Q.nextTick(L,F)}try{F._construct(n)}catch(v){n(v)}}function L(F){F.emit(I)}function T(F){return F&&F.setHeader&&typeof F.abort=="function"}function E(F){F.emit("close")}function f(F,m){F.emit("error",m),Q.nextTick(E,F)}function b(F,m){!F||P(F)||(!m&&!j(F)&&(m=new G),z(F)?(F.socket=null,F.destroy(m)):T(F)?F.abort():T(F.req)?F.req.abort():typeof F.destroy=="function"?F.destroy(m):typeof F.close=="function"?F.close():m?Q.nextTick(f,F,m):Q.nextTick(E,F),F.destroyed||(F[J]=!0))}V.exports={construct:A,destroyer:b,destroy:x,undestroy:O,errorOrDestroy:M}}),l2=j0(($,V)=>{var Q=typeof Reflect=="object"?Reflect:null,q=Q&&typeof Q.apply=="function"?Q.apply:function(B,L,T){return Function.prototype.apply.call(B,L,T)},K;Q&&typeof Q.ownKeys=="function"?K=Q.ownKeys:Object.getOwnPropertySymbols?K=function(B){return Object.getOwnPropertyNames(B).concat(Object.getOwnPropertySymbols(B))}:K=function(B){return Object.getOwnPropertyNames(B)};function G(B){console&&console.warn&&console.warn(B)}var W=Number.isNaN||function(B){return B!==B};function J(){J.init.call(this)}V.exports=J,V.exports.once=O,J.EventEmitter=J,J.prototype._events=void 0,J.prototype._eventsCount=0,J.prototype._maxListeners=void 0;var P=10;function j(B){if(typeof B!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof B)}Object.defineProperty(J,"defaultMaxListeners",{enumerable:!0,get:function(){return P},set:function(B){if(typeof B!="number"||B<0||W(B))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+B+".");P=B}}),J.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},J.prototype.setMaxListeners=function(B){if(typeof B!="number"||B<0||W(B))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+B+".");return this._maxListeners=B,this};function z(B){return B._maxListeners===void 0?J.defaultMaxListeners:B._maxListeners}J.prototype.getMaxListeners=function(){return z(this)},J.prototype.emit=function(B){for(var L=[],T=1;T<arguments.length;T++)L.push(arguments[T]);var E=B==="error",f=this._events;if(f!==void 0)E=E&&f.error===void 0;else if(!E)return!1;if(E){var b;if(L.length>0&&(b=L[0]),b instanceof Error)throw b;var F=new Error("Unhandled error."+(b?" ("+b.message+")":""));throw F.context=b,F}var m=f[B];if(m===void 0)return!1;if(typeof m=="function")q(m,this,L);else for(var n=m.length,v=g(m,n),T=0;T<n;++T)q(v[T],this,L);return!0};function C(B,L,T,E){var f,b,F;if(j(T),b=B._events,b===void 0?(b=B._events=Object.create(null),B._eventsCount=0):(b.newListener!==void 0&&(B.emit("newListener",L,T.listener?T.listener:T),b=B._events),F=b[L]),F===void 0)F=b[L]=T,++B._eventsCount;else if(typeof F=="function"?F=b[L]=E?[T,F]:[F,T]:E?F.unshift(T):F.push(T),f=z(B),f>0&&F.length>f&&!F.warned){F.warned=!0;var m=new Error("Possible EventEmitter memory leak detected. "+F.length+" "+String(L)+" listeners added. Use emitter.setMaxListeners() to increase limit");m.name="MaxListenersExceededWarning",m.emitter=B,m.type=L,m.count=F.length,G(m)}return B}J.prototype.addListener=function(B,L){return C(this,B,L,!1)},J.prototype.on=J.prototype.addListener,J.prototype.prependListener=function(B,L){return C(this,B,L,!0)};function I(){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 R(B,L,T){var E={fired:!1,wrapFn:void 0,target:B,type:L,listener:T},f=I.bind(E);return f.listener=T,E.wrapFn=f,f}J.prototype.once=function(B,L){return j(L),this.on(B,R(this,B,L)),this},J.prototype.prependOnceListener=function(B,L){return j(L),this.prependListener(B,R(this,B,L)),this},J.prototype.removeListener=function(B,L){var T,E,f,b,F;if(j(L),E=this._events,E===void 0)return this;if(T=E[B],T===void 0)return this;if(T===L||T.listener===L)--this._eventsCount===0?this._events=Object.create(null):(delete E[B],E.removeListener&&this.emit("removeListener",B,T.listener||L));else if(typeof T!="function"){for(f=-1,b=T.length-1;b>=0;b--)if(T[b]===L||T[b].listener===L){F=T[b].listener,f=b;break}if(f<0)return this;f===0?T.shift():y(T,f),T.length===1&&(E[B]=T[0]),E.removeListener!==void 0&&this.emit("removeListener",B,F||L)}return this},J.prototype.off=J.prototype.removeListener,J.prototype.removeAllListeners=function(B){var L,T,E;if(T=this._events,T===void 0)return this;if(T.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):T[B]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete T[B]),this;if(arguments.length===0){var f=Object.keys(T),b;for(E=0;E<f.length;++E)b=f[E],b!=="removeListener"&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(L=T[B],typeof L=="function")this.removeListener(B,L);else if(L!==void 0)for(E=L.length-1;E>=0;E--)this.removeListener(B,L[E]);return this};function x(B,L,T){var E=B._events;if(E===void 0)return[];var f=E[L];return f===void 0?[]:typeof f=="function"?T?[f.listener||f]:[f]:T?Z(f):g(f,f.length)}J.prototype.listeners=function(B){return x(this,B,!0)},J.prototype.rawListeners=function(B){return x(this,B,!1)},J.listenerCount=function(B,L){return typeof B.listenerCount=="function"?B.listenerCount(L):S.call(B,L)},J.prototype.listenerCount=S;function S(B){var L=this._events;if(L!==void 0){var T=L[B];if(typeof T=="function")return 1;if(T!==void 0)return T.length}return 0}J.prototype.eventNames=function(){return this._eventsCount>0?K(this._events):[]};function g(B,L){for(var T=new Array(L),E=0;E<L;++E)T[E]=B[E];return T}function y(B,L){for(;L+1<B.length;L++)B[L]=B[L+1];B.pop()}function Z(B){for(var L=new Array(B.length),T=0;T<L.length;++T)L[T]=B[T].listener||B[T];return L}function O(B,L){return new Promise(function(T,E){function f(F){B.removeListener(L,b),E(F)}function b(){typeof B.removeListener=="function"&&B.removeListener("error",f),T([].slice.call(arguments))}A(B,L,b,{once:!0}),L!=="error"&&M(B,f,{once:!0})})}function M(B,L,T){typeof B.on=="function"&&A(B,"error",L,T)}function A(B,L,T,E){if(typeof B.on=="function")E.once?B.once(L,T):B.on(L,T);else if(typeof B.addEventListener=="function")B.addEventListener(L,function f(b){E.once&&B.removeEventListener(L,f),T(b)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof B)}}),o2=j0(($,V)=>{var{ArrayIsArray:Q,ObjectSetPrototypeOf:q}=x0(),{EventEmitter:K}=l2();function G(J){K.call(this,J)}q(G.prototype,K.prototype),q(G,K),G.prototype.pipe=function(J,P){let j=this;function z(y){J.writable&&J.write(y)===!1&&j.pause&&j.pause()}j.on("data",z);function C(){j.readable&&j.resume&&j.resume()}J.on("drain",C),!J._isStdio&&(!P||P.end!==!1)&&(j.on("end",R),j.on("close",x));let I=!1;function R(){I||(I=!0,J.end())}function x(){I||(I=!0,typeof J.destroy=="function"&&J.destroy())}function S(y){g(),K.listenerCount(this,"error")===0&&this.emit("error",y)}W(j,"error",S),W(J,"error",S);function g(){j.removeListener("data",z),J.removeListener("drain",C),j.removeListener("end",R),j.removeListener("close",x),j.removeListener("error",S),J.removeListener("error",S),j.removeListener("end",g),j.removeListener("close",g),J.removeListener("close",g)}return j.on("end",g),j.on("close",g),J.on("close",g),J.emit("pipe",j),J};function W(J,P,j){if(typeof J.prependListener=="function")return J.prependListener(P,j);!J._events||!J._events[P]?J.on(P,j):Q(J._events[P])?J._events[P].unshift(j):J._events[P]=[j,J._events[P]]}V.exports={Stream:G,prependListener:W}}),i2=j0(($,V)=>{var{AbortError:Q,codes:q}=f0(),K=E6(),{ERR_INVALID_ARG_TYPE:G}=q,W=(P,j)=>{if(typeof P!="object"||!("aborted"in P))throw new G(j,"AbortSignal",P)};function J(P){return!!(P&&typeof P.pipe=="function")}V.exports.addAbortSignal=function(P,j){if(W(P,"signal"),!J(j))throw new G("stream","stream.Stream",j);return V.exports.addAbortSignalNoValidate(P,j)},V.exports.addAbortSignalNoValidate=function(P,j){if(typeof P!="object"||!("aborted"in P))return j;let z=()=>{j.destroy(new Q(void 0,{cause:P.reason}))};return P.aborted?z():(P.addEventListener("abort",z),K(j,()=>P.removeEventListener("abort",z))),j}}),Gq=j0(($,V)=>{var{StringPrototypeSlice:Q,SymbolIterator:q,TypedArrayPrototypeSet:K,Uint8Array:G}=x0(),{Buffer:W}=M6(),{inspect:J}=K6();V.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(P){let j={data:P,next:null};this.length>0?this.tail.next=j:this.head=j,this.tail=j,++this.length}unshift(P){let j={data:P,next:this.head};this.length===0&&(this.tail=j),this.head=j,++this.length}shift(){if(this.length===0)return;let P=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,P}clear(){this.head=this.tail=null,this.length=0}join(P){if(this.length===0)return"";let j=this.head,z=""+j.data;for(;(j=j.next)!==null;)z+=P+j.data;return z}concat(P){if(this.length===0)return W.alloc(0);let j=W.allocUnsafe(P>>>0),z=this.head,C=0;for(;z;)K(j,z.data,C),C+=z.data.length,z=z.next;return j}consume(P,j){let z=this.head.data;if(P<z.length){let C=z.slice(0,P);return this.head.data=z.slice(P),C}return P===z.length?this.shift():j?this._getString(P):this._getBuffer(P)}first(){return this.head.data}*[q](){for(let P=this.head;P;P=P.next)yield P.data}_getString(P){let j="",z=this.head,C=0;do{let I=z.data;if(P>I.length)j+=I,P-=I.length;else{P===I.length?(j+=I,++C,z.next?this.head=z.next:this.head=this.tail=null):(j+=Q(I,0,P),this.head=z,z.data=Q(I,P));break}++C}while((z=z.next)!==null);return this.length-=C,j}_getBuffer(P){let j=W.allocUnsafe(P),z=P,C=this.head,I=0;do{let R=C.data;if(P>R.length)K(j,R,z-P),P-=R.length;else{P===R.length?(K(j,R,z-P),++I,C.next?this.head=C.next:this.head=this.tail=null):(K(j,new G(R.buffer,R.byteOffset,P),z-P),this.head=C,C.data=R.slice(P));break}++I}while((C=C.next)!==null);return this.length-=I,j}[Symbol.for("nodejs.util.inspect.custom")](P,j){return J(this,{...j,depth:0,customInspect:!1})}}}),n2=j0(($,V)=>{var{MathFloor:Q,NumberIsInteger:q}=x0(),{ERR_INVALID_ARG_VALUE:K}=f0().codes;function G(P,j,z){return P.highWaterMark!=null?P.highWaterMark:j?P[z]:null}function W(P){return P?16:16384}function J(P,j,z,C){let I=G(j,C,z);if(I!=null){if(!q(I)||I<0){let R=C?`options.${z}`:"options.highWaterMark";throw new K(R,I)}return Q(I)}return W(P.objectMode)}V.exports={getHighWaterMark:J,getDefaultHighWaterMark:W}}),Uq=j0(($,V)=>{var Q=M6(),q=Q.Buffer;function K(W,J){for(var P in W)J[P]=W[P]}q.from&&q.alloc&&q.allocUnsafe&&q.allocUnsafeSlow?V.exports=Q:(K(Q,$),$.Buffer=G);function G(W,J,P){return q(W,J,P)}G.prototype=Object.create(q.prototype),K(q,G),G.from=function(W,J,P){if(typeof W=="number")throw new TypeError("Argument must not be a number");return q(W,J,P)},G.alloc=function(W,J,P){if(typeof W!="number")throw new TypeError("Argument must be a number");var j=q(W);return J!==void 0?typeof P=="string"?j.fill(J,P):j.fill(J):j.fill(0),j},G.allocUnsafe=function(W){if(typeof W!="number")throw new TypeError("Argument must be a number");return q(W)},G.allocUnsafeSlow=function(W){if(typeof W!="number")throw new TypeError("Argument must be a number");return Q.SlowBuffer(W)}}),Wq=j0(($)=>{var V=Uq().Buffer,Q=V.isEncoding||function(Z){switch(Z=""+Z,Z&&Z.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 q(Z){if(!Z)return"utf8";for(var O;;)switch(Z){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 Z;default:if(O)return;Z=(""+Z).toLowerCase(),O=!0}}function K(Z){var O=q(Z);if(typeof O!="string"&&(V.isEncoding===Q||!Q(Z)))throw new Error("Unknown encoding: "+Z);return O||Z}$.StringDecoder=G;function G(Z){this.encoding=K(Z);var O;switch(this.encoding){case"utf16le":this.text=I,this.end=R,O=4;break;case"utf8":this.fillLast=j,O=4;break;case"base64":this.text=x,this.end=S,O=3;break;default:this.write=g,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=V.allocUnsafe(O)}G.prototype.write=function(Z){if(Z.length===0)return"";var O,M;if(this.lastNeed){if(O=this.fillLast(Z),O===void 0)return"";M=this.lastNeed,this.lastNeed=0}else M=0;return M<Z.length?O?O+this.text(Z,M):this.text(Z,M):O||""},G.prototype.end=C,G.prototype.text=z,G.prototype.fillLast=function(Z){if(this.lastNeed<=Z.length)return Z.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Z.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Z.length),this.lastNeed-=Z.length};function W(Z){return Z<=127?0:Z>>5===6?2:Z>>4===14?3:Z>>3===30?4:Z>>6===2?-1:-2}function J(Z,O,M){var A=O.length-1;if(A<M)return 0;var B=W(O[A]);return B>=0?(B>0&&(Z.lastNeed=B-1),B):--A<M||B===-2?0:(B=W(O[A]),B>=0?(B>0&&(Z.lastNeed=B-2),B):--A<M||B===-2?0:(B=W(O[A]),B>=0?(B>0&&(B===2?B=0:Z.lastNeed=B-3),B):0))}function P(Z,O,M){if((O[0]&192)!==128)return Z.lastNeed=0,"�";if(Z.lastNeed>1&&O.length>1){if((O[1]&192)!==128)return Z.lastNeed=1,"�";if(Z.lastNeed>2&&O.length>2&&(O[2]&192)!==128)return Z.lastNeed=2,"�"}}function j(Z){var O=this.lastTotal-this.lastNeed,M=P(this,Z,O);if(M!==void 0)return M;if(this.lastNeed<=Z.length)return Z.copy(this.lastChar,O,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Z.copy(this.lastChar,O,0,Z.length),this.lastNeed-=Z.length}function z(Z,O){var M=J(this,Z,O);if(!this.lastNeed)return Z.toString("utf8",O);this.lastTotal=M;var A=Z.length-(M-this.lastNeed);return Z.copy(this.lastChar,0,A),Z.toString("utf8",O,A)}function C(Z){var O=Z&&Z.length?this.write(Z):"";return this.lastNeed?O+"�":O}function I(Z,O){if((Z.length-O)%2===0){var M=Z.toString("utf16le",O);if(M){var A=M.charCodeAt(M.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Z[Z.length-2],this.lastChar[1]=Z[Z.length-1],M.slice(0,-1)}return M}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Z[Z.length-1],Z.toString("utf16le",O,Z.length-1)}function R(Z){var O=Z&&Z.length?this.write(Z):"";if(this.lastNeed){var M=this.lastTotal-this.lastNeed;return O+this.lastChar.toString("utf16le",0,M)}return O}function x(Z,O){var M=(Z.length-O)%3;return M===0?Z.toString("base64",O):(this.lastNeed=3-M,this.lastTotal=3,M===1?this.lastChar[0]=Z[Z.length-1]:(this.lastChar[0]=Z[Z.length-2],this.lastChar[1]=Z[Z.length-1]),Z.toString("base64",O,Z.length-M))}function S(Z){var O=Z&&Z.length?this.write(Z):"";return this.lastNeed?O+this.lastChar.toString("base64",0,3-this.lastNeed):O}function g(Z){return Z.toString(this.encoding)}function y(Z){return Z&&Z.length?this.write(Z):""}}),_$=j0(($,V)=>{var Q=(k6(),S6(G6)),{PromisePrototypeThen:q,SymbolAsyncIterator:K,SymbolIterator:G}=x0(),{Buffer:W}=M6(),{ERR_INVALID_ARG_TYPE:J,ERR_STREAM_NULL_VALUES:P}=f0().codes;function j(z,C,I){let R;if(typeof C=="string"||C instanceof W)return new z({objectMode:!0,...I,read(){this.push(C),this.push(null)}});let x;if(C&&C[K])x=!0,R=C[K]();else if(C&&C[G])x=!1,R=C[G]();else throw new J("iterable",["Iterable"],C);let S=new z({objectMode:!0,highWaterMark:1,...I}),g=!1;S._read=function(){g||(g=!0,Z())},S._destroy=function(O,M){q(y(O),()=>Q.nextTick(M,O),(A)=>Q.nextTick(M,A||O))};async function y(O){let M=O!=null,A=typeof R.throw=="function";if(M&&A){let{value:B,done:L}=await R.throw(O);if(await B,L)return}if(typeof R.return=="function"){let{value:B}=await R.return();await B}}async function Z(){for(;;){try{let{value:O,done:M}=x?await R.next():R.next();if(M)S.push(null);else{let A=O&&typeof O.then=="function"?await O:O;if(A===null)throw g=!1,new P;if(S.push(A))continue;g=!1}}catch(O){S.destroy(O)}break}}return S}V.exports=j}),a1=j0(($,V)=>{var Q=(k6(),S6(G6)),{ArrayPrototypeIndexOf:q,NumberIsInteger:K,NumberIsNaN:G,NumberParseInt:W,ObjectDefineProperties:J,ObjectKeys:P,ObjectSetPrototypeOf:j,Promise:z,SafeSet:C,SymbolAsyncIterator:I,Symbol:R}=x0();V.exports=k,k.ReadableState=l;var{EventEmitter:x}=l2(),{Stream:S,prependListener:g}=o2(),{Buffer:y}=M6(),{addAbortSignal:Z}=i2(),O=E6(),M=K6().debuglog("stream",(X)=>{M=X}),A=Gq(),B=a6(),{getHighWaterMark:L,getDefaultHighWaterMark:T}=n2(),{aggregateTwoErrors:E,codes:{ERR_INVALID_ARG_TYPE:f,ERR_METHOD_NOT_IMPLEMENTED:b,ERR_OUT_OF_RANGE:F,ERR_STREAM_PUSH_AFTER_EOF:m,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:n}}=f0(),{validateObject:v}=n1(),c=R("kPaused"),{StringDecoder:u}=Wq(),i=_$();j(k.prototype,S.prototype),j(k,S);var e=()=>{},{errorOrDestroy:d}=B;function l(X,Y,U){typeof U!="boolean"&&(U=Y instanceof J6()),this.objectMode=!!(X&&X.objectMode),U&&(this.objectMode=this.objectMode||!!(X&&X.readableObjectMode)),this.highWaterMark=X?L(this,X,"readableHighWaterMark",U):T(!1),this.buffer=new A,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[c]=null,this.errorEmitted=!1,this.emitClose=!X||X.emitClose!==!1,this.autoDestroy=!X||X.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=X&&X.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,X&&X.encoding&&(this.decoder=new u(X.encoding),this.encoding=X.encoding)}function k(X){if(!(this instanceof k))return new k(X);let Y=this instanceof J6();this._readableState=new l(X,this,Y),X&&(typeof X.read=="function"&&(this._read=X.read),typeof X.destroy=="function"&&(this._destroy=X.destroy),typeof X.construct=="function"&&(this._construct=X.construct),X.signal&&!Y&&Z(X.signal,this)),S.call(this,X),B.construct(this,()=>{this._readableState.needReadable&&M0(this,this._readableState)})}k.prototype.destroy=B.destroy,k.prototype._undestroy=B.undestroy,k.prototype._destroy=function(X,Y){Y(X)},k.prototype[x.captureRejectionSymbol]=function(X){this.destroy(X)},k.prototype.push=function(X,Y){return r(this,X,Y,!1)},k.prototype.unshift=function(X,Y){return r(this,X,Y,!0)};function r(X,Y,U,H){M("readableAddChunk",Y);let w=X._readableState,h;if(w.objectMode||(typeof Y=="string"?(U=U||w.defaultEncoding,w.encoding!==U&&(H&&w.encoding?Y=y.from(Y,U).toString(w.encoding):(Y=y.from(Y,U),U=""))):Y instanceof y?U="":S._isUint8Array(Y)?(Y=S._uint8ArrayToBuffer(Y),U=""):Y!=null&&(h=new f("chunk",["string","Buffer","Uint8Array"],Y))),h)d(X,h);else if(Y===null)w.reading=!1,G0(X,w);else if(w.objectMode||Y&&Y.length>0)if(H)if(w.endEmitted)d(X,new n);else{if(w.destroyed||w.errored)return!1;t(X,w,Y,!0)}else if(w.ended)d(X,new m);else{if(w.destroyed||w.errored)return!1;w.reading=!1,w.decoder&&!U?(Y=w.decoder.write(Y),w.objectMode||Y.length!==0?t(X,w,Y,!1):M0(X,w)):t(X,w,Y,!1)}else H||(w.reading=!1,M0(X,w));return!w.ended&&(w.length<w.highWaterMark||w.length===0)}function t(X,Y,U,H){Y.flowing&&Y.length===0&&!Y.sync&&X.listenerCount("data")>0?(Y.multiAwaitDrain?Y.awaitDrainWriters.clear():Y.awaitDrainWriters=null,Y.dataEmitted=!0,X.emit("data",U)):(Y.length+=Y.objectMode?1:U.length,H?Y.buffer.unshift(U):Y.buffer.push(U),Y.needReadable&&Y0(X)),M0(X,Y)}k.prototype.isPaused=function(){let X=this._readableState;return X[c]===!0||X.flowing===!1},k.prototype.setEncoding=function(X){let Y=new u(X);this._readableState.decoder=Y,this._readableState.encoding=this._readableState.decoder.encoding;let U=this._readableState.buffer,H="";for(let w of U)H+=Y.write(w);return U.clear(),H!==""&&U.push(H),this._readableState.length=H.length,this};var K0=1073741824;function F0(X){if(X>K0)throw new F("size","<= 1GiB",X);return X--,X|=X>>>1,X|=X>>>2,X|=X>>>4,X|=X>>>8,X|=X>>>16,X++,X}function V0(X,Y){return X<=0||Y.length===0&&Y.ended?0:Y.objectMode?1:G(X)?Y.flowing&&Y.length?Y.buffer.first().length:Y.length:X<=Y.length?X:Y.ended?Y.length:0}k.prototype.read=function(X){M("read",X),X===void 0?X=NaN:K(X)||(X=W(X,10));let Y=this._readableState,U=X;if(X>Y.highWaterMark&&(Y.highWaterMark=F0(X)),X!==0&&(Y.emittedReadable=!1),X===0&&Y.needReadable&&((Y.highWaterMark!==0?Y.length>=Y.highWaterMark:Y.length>0)||Y.ended))return M("read: emitReadable",Y.length,Y.ended),Y.length===0&&Y.ended?z0(this):Y0(this),null;if(X=V0(X,Y),X===0&&Y.ended)return Y.length===0&&z0(this),null;let H=Y.needReadable;if(M("need readable",H),(Y.length===0||Y.length-X<Y.highWaterMark)&&(H=!0,M("length less than watermark",H)),Y.ended||Y.reading||Y.destroyed||Y.errored||!Y.constructed)H=!1,M("reading, ended or constructing",H);else if(H){M("do read"),Y.reading=!0,Y.sync=!0,Y.length===0&&(Y.needReadable=!0);try{this._read(Y.highWaterMark)}catch(h){d(this,h)}Y.sync=!1,Y.reading||(X=V0(U,Y))}let w;return X>0?w=q0(X,Y):w=null,w===null?(Y.needReadable=Y.length<=Y.highWaterMark,X=0):(Y.length-=X,Y.multiAwaitDrain?Y.awaitDrainWriters.clear():Y.awaitDrainWriters=null),Y.length===0&&(Y.ended||(Y.needReadable=!0),U!==X&&Y.ended&&z0(this)),w!==null&&!Y.errorEmitted&&!Y.closeEmitted&&(Y.dataEmitted=!0,this.emit("data",w)),w};function G0(X,Y){if(M("onEofChunk"),!Y.ended){if(Y.decoder){let U=Y.decoder.end();U&&U.length&&(Y.buffer.push(U),Y.length+=Y.objectMode?1:U.length)}Y.ended=!0,Y.sync?Y0(X):(Y.needReadable=!1,Y.emittedReadable=!0,H0(X))}}function Y0(X){let Y=X._readableState;M("emitReadable",Y.needReadable,Y.emittedReadable),Y.needReadable=!1,Y.emittedReadable||(M("emitReadable",Y.flowing),Y.emittedReadable=!0,Q.nextTick(H0,X))}function H0(X){let Y=X._readableState;M("emitReadable_",Y.destroyed,Y.length,Y.ended),!Y.destroyed&&!Y.errored&&(Y.length||Y.ended)&&(X.emit("readable"),Y.emittedReadable=!1),Y.needReadable=!Y.flowing&&!Y.ended&&Y.length<=Y.highWaterMark,a(X)}function M0(X,Y){!Y.readingMore&&Y.constructed&&(Y.readingMore=!0,Q.nextTick(Q0,X,Y))}function Q0(X,Y){for(;!Y.reading&&!Y.ended&&(Y.length<Y.highWaterMark||Y.flowing&&Y.length===0);){let U=Y.length;if(M("maybeReadMore read 0"),X.read(0),U===Y.length)break}Y.readingMore=!1}k.prototype._read=function(X){throw new b("_read()")},k.prototype.pipe=function(X,Y){let U=this,H=this._readableState;H.pipes.length===1&&(H.multiAwaitDrain||(H.multiAwaitDrain=!0,H.awaitDrainWriters=new C(H.awaitDrainWriters?[H.awaitDrainWriters]:[]))),H.pipes.push(X),M("pipe count=%d opts=%j",H.pipes.length,Y);let w=(!Y||Y.end!==!1)&&X!==Q.stdout&&X!==Q.stderr?o:M1;H.endEmitted?Q.nextTick(w):U.once("end",w),X.on("unpipe",h);function h(x6,Y6){M("onunpipe"),x6===U&&Y6&&Y6.hasUnpiped===!1&&(Y6.hasUnpiped=!0,L0())}function o(){M("onend"),X.end()}let U0,R0=!1;function L0(){M("cleanup"),X.removeListener("close",h2),X.removeListener("finish",_2),U0&&X.removeListener("drain",U0),X.removeListener("error",f2),X.removeListener("unpipe",h),U.removeListener("end",o),U.removeListener("end",M1),U.removeListener("data",D0),R0=!0,U0&&H.awaitDrainWriters&&(!X._writableState||X._writableState.needDrain)&&U0()}function Z0(){R0||(H.pipes.length===1&&H.pipes[0]===X?(M("false write response, pause",0),H.awaitDrainWriters=X,H.multiAwaitDrain=!1):H.pipes.length>1&&H.pipes.includes(X)&&(M("false write response, pause",H.awaitDrainWriters.size),H.awaitDrainWriters.add(X)),U.pause()),U0||(U0=B0(U,X),X.on("drain",U0))}U.on("data",D0);function D0(x6){M("ondata");let Y6=X.write(x6);M("dest.write",Y6),Y6===!1&&Z0()}function f2(x6){if(M("onerror",x6),M1(),X.removeListener("error",f2),X.listenerCount("error")===0){let Y6=X._writableState||X._readableState;Y6&&!Y6.errorEmitted?d(X,x6):X.emit("error",x6)}}g(X,"error",f2);function h2(){X.removeListener("finish",_2),M1()}X.once("close",h2);function _2(){M("onfinish"),X.removeListener("close",h2),M1()}X.once("finish",_2);function M1(){M("unpipe"),U.unpipe(X)}return X.emit("pipe",U),X.writableNeedDrain===!0?H.flowing&&Z0():H.flowing||(M("pipe resume"),U.resume()),X};function B0(X,Y){return function(){let U=X._readableState;U.awaitDrainWriters===Y?(M("pipeOnDrain",1),U.awaitDrainWriters=null):U.multiAwaitDrain&&(M("pipeOnDrain",U.awaitDrainWriters.size),U.awaitDrainWriters.delete(Y)),(!U.awaitDrainWriters||U.awaitDrainWriters.size===0)&&X.listenerCount("data")&&X.resume()}}k.prototype.unpipe=function(X){let Y=this._readableState,U={hasUnpiped:!1};if(Y.pipes.length===0)return this;if(!X){let w=Y.pipes;Y.pipes=[],this.pause();for(let h=0;h<w.length;h++)w[h].emit("unpipe",this,{hasUnpiped:!1});return this}let H=q(Y.pipes,X);return H===-1?this:(Y.pipes.splice(H,1),Y.pipes.length===0&&this.pause(),X.emit("unpipe",this,U),this)},k.prototype.on=function(X,Y){let U=S.prototype.on.call(this,X,Y),H=this._readableState;return X==="data"?(H.readableListening=this.listenerCount("readable")>0,H.flowing!==!1&&this.resume()):X==="readable"&&!H.endEmitted&&!H.readableListening&&(H.readableListening=H.needReadable=!0,H.flowing=!1,H.emittedReadable=!1,M("on readable",H.length,H.reading),H.length?Y0(this):H.reading||Q.nextTick(D,this)),U},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(X,Y){let U=S.prototype.removeListener.call(this,X,Y);return X==="readable"&&Q.nextTick(p,this),U},k.prototype.off=k.prototype.removeListener,k.prototype.removeAllListeners=function(X){let Y=S.prototype.removeAllListeners.apply(this,arguments);return(X==="readable"||X===void 0)&&Q.nextTick(p,this),Y};function p(X){let Y=X._readableState;Y.readableListening=X.listenerCount("readable")>0,Y.resumeScheduled&&Y[c]===!1?Y.flowing=!0:X.listenerCount("data")>0?X.resume():Y.readableListening||(Y.flowing=null)}function D(X){M("readable nexttick read 0"),X.read(0)}k.prototype.resume=function(){let X=this._readableState;return X.flowing||(M("resume"),X.flowing=!X.readableListening,N(this,X)),X[c]=!1,this};function N(X,Y){Y.resumeScheduled||(Y.resumeScheduled=!0,Q.nextTick(_,X,Y))}function _(X,Y){M("resume",Y.reading),Y.reading||X.read(0),Y.resumeScheduled=!1,X.emit("resume"),a(X),Y.flowing&&!Y.reading&&X.read(0)}k.prototype.pause=function(){return M("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(M("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[c]=!0,this};function a(X){let Y=X._readableState;for(M("flow",Y.flowing);Y.flowing&&X.read()!==null;);}k.prototype.wrap=function(X){let Y=!1;X.on("data",(H)=>{!this.push(H)&&X.pause&&(Y=!0,X.pause())}),X.on("end",()=>{this.push(null)}),X.on("error",(H)=>{d(this,H)}),X.on("close",()=>{this.destroy()}),X.on("destroy",()=>{this.destroy()}),this._read=()=>{Y&&X.resume&&(Y=!1,X.resume())};let U=P(X);for(let H=1;H<U.length;H++){let w=U[H];this[w]===void 0&&typeof X[w]=="function"&&(this[w]=X[w].bind(X))}return this},k.prototype[I]=function(){return s(this)},k.prototype.iterator=function(X){return X!==void 0&&v(X,"options"),s(this,X)};function s(X,Y){typeof X.read!="function"&&(X=k.wrap(X,{objectMode:!0}));let U=W0(X,Y);return U.stream=X,U}async function*W0(X,Y){let U=e;function H(o){this===X?(U(),U=e):U=o}X.on("readable",H);let w,h=O(X,{writable:!1},(o)=>{w=o?E(w,o):null,U(),U=e});try{for(;;){let o=X.destroyed?null:X.read();if(o!==null)yield o;else{if(w)throw w;if(w===null)return;await new z(H)}}}catch(o){throw w=E(w,o),w}finally{(w||Y?.destroyOnReturn!==!1)&&(w===void 0||X._readableState.autoDestroy)?B.destroyer(X,null):(X.off("readable",H),h())}}J(k.prototype,{readable:{__proto__:null,get(){let X=this._readableState;return!!X&&X.readable!==!1&&!X.destroyed&&!X.errorEmitted&&!X.endEmitted},set(X){this._readableState&&(this._readableState.readable=!!X)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(X){this._readableState&&(this._readableState.flowing=X)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(X){!this._readableState||(this._readableState.destroyed=X)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),J(l.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[c]!==!1},set(X){this[c]=!!X}}}),k._fromList=q0;function q0(X,Y){if(Y.length===0)return null;let U;return Y.objectMode?U=Y.buffer.shift():!X||X>=Y.length?(Y.decoder?U=Y.buffer.join(""):Y.buffer.length===1?U=Y.buffer.first():U=Y.buffer.concat(Y.length),Y.buffer.clear()):U=Y.buffer.consume(X,Y.decoder),U}function z0(X){let Y=X._readableState;M("endReadable",Y.endEmitted),Y.endEmitted||(Y.ended=!0,Q.nextTick(b0,Y,X))}function b0(X,Y){if(M("endReadableNT",X.endEmitted,X.length),!X.errored&&!X.closeEmitted&&!X.endEmitted&&X.length===0){if(X.endEmitted=!0,Y.emit("end"),Y.writable&&Y.allowHalfOpen===!1)Q.nextTick(X6,Y);else if(X.autoDestroy){let U=Y._writableState;(!U||U.autoDestroy&&(U.finished||U.writable===!1))&&Y.destroy()}}}function X6(X){X.writable&&!X.writableEnded&&!X.destroyed&&X.end()}k.from=function(X,Y){return i(k,X,Y)};var C0;function d1(){return C0===void 0&&(C0={}),C0}k.fromWeb=function(X,Y){return d1().newStreamReadableFromReadableStream(X,Y)},k.toWeb=function(X,Y){return d1().newReadableStreamFromStreamReadable(X,Y)},k.wrap=function(X,Y){var U,H;return new k({objectMode:(U=(H=X.readableObjectMode)!==null&&H!==void 0?H:X.objectMode)!==null&&U!==void 0?U:!0,...Y,destroy(w,h){B.destroyer(X,w),h(w)}}).wrap(X)}}),m$=j0(($,V)=>{var Q=(k6(),S6(G6)),{ArrayPrototypeSlice:q,Error:K,FunctionPrototypeSymbolHasInstance:G,ObjectDefineProperty:W,ObjectDefineProperties:J,ObjectSetPrototypeOf:P,StringPrototypeToLowerCase:j,Symbol:z,SymbolHasInstance:C}=x0();V.exports=u,u.WritableState=v;var{EventEmitter:I}=l2(),R=o2().Stream,{Buffer:x}=M6(),S=a6(),{addAbortSignal:g}=i2(),{getHighWaterMark:y,getDefaultHighWaterMark:Z}=n2(),{ERR_INVALID_ARG_TYPE:O,ERR_METHOD_NOT_IMPLEMENTED:M,ERR_MULTIPLE_CALLBACK:A,ERR_STREAM_CANNOT_PIPE:B,ERR_STREAM_DESTROYED:L,ERR_STREAM_ALREADY_FINISHED:T,ERR_STREAM_NULL_VALUES:E,ERR_STREAM_WRITE_AFTER_END:f,ERR_UNKNOWN_ENCODING:b}=f0().codes,{errorOrDestroy:F}=S;P(u.prototype,R.prototype),P(u,R);function m(){}var n=z("kOnFinished");function v(D,N,_){typeof _!="boolean"&&(_=N instanceof J6()),this.objectMode=!!(D&&D.objectMode),_&&(this.objectMode=this.objectMode||!!(D&&D.writableObjectMode)),this.highWaterMark=D?y(this,D,"writableHighWaterMark",_):Z(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let a=!!(D&&D.decodeStrings===!1);this.decodeStrings=!a,this.defaultEncoding=D&&D.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=k.bind(void 0,N),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,c(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!D||D.emitClose!==!1,this.autoDestroy=!D||D.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[n]=[]}function c(D){D.buffered=[],D.bufferedIndex=0,D.allBuffers=!0,D.allNoop=!0}v.prototype.getBuffer=function(){return q(this.buffered,this.bufferedIndex)},W(v.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function u(D){let N=this instanceof J6();if(!N&&!G(u,this))return new u(D);this._writableState=new v(D,this,N),D&&(typeof D.write=="function"&&(this._write=D.write),typeof D.writev=="function"&&(this._writev=D.writev),typeof D.destroy=="function"&&(this._destroy=D.destroy),typeof D.final=="function"&&(this._final=D.final),typeof D.construct=="function"&&(this._construct=D.construct),D.signal&&g(D.signal,this)),R.call(this,D),S.construct(this,()=>{let _=this._writableState;_.writing||F0(this,_),H0(this,_)})}W(u,C,{__proto__:null,value:function(D){return G(this,D)?!0:this!==u?!1:D&&D._writableState instanceof v}}),u.prototype.pipe=function(){F(this,new B)};function i(D,N,_,a){let s=D._writableState;if(typeof _=="function")a=_,_=s.defaultEncoding;else{if(!_)_=s.defaultEncoding;else if(_!=="buffer"&&!x.isEncoding(_))throw new b(_);typeof a!="function"&&(a=m)}if(N===null)throw new E;if(!s.objectMode)if(typeof N=="string")s.decodeStrings!==!1&&(N=x.from(N,_),_="buffer");else if(N instanceof x)_="buffer";else if(R._isUint8Array(N))N=R._uint8ArrayToBuffer(N),_="buffer";else throw new O("chunk",["string","Buffer","Uint8Array"],N);let W0;return s.ending?W0=new f:s.destroyed&&(W0=new L("write")),W0?(Q.nextTick(a,W0),F(D,W0,!0),W0):(s.pendingcb++,e(D,s,N,_,a))}u.prototype.write=function(D,N,_){return i(this,D,N,_)===!0},u.prototype.cork=function(){this._writableState.corked++},u.prototype.uncork=function(){let D=this._writableState;D.corked&&(D.corked--,D.writing||F0(this,D))},u.prototype.setDefaultEncoding=function(D){if(typeof D=="string"&&(D=j(D)),!x.isEncoding(D))throw new b(D);return this._writableState.defaultEncoding=D,this};function e(D,N,_,a,s){let W0=N.objectMode?1:_.length;N.length+=W0;let q0=N.length<N.highWaterMark;return q0||(N.needDrain=!0),N.writing||N.corked||N.errored||!N.constructed?(N.buffered.push({chunk:_,encoding:a,callback:s}),N.allBuffers&&a!=="buffer"&&(N.allBuffers=!1),N.allNoop&&s!==m&&(N.allNoop=!1)):(N.writelen=W0,N.writecb=s,N.writing=!0,N.sync=!0,D._write(_,a,N.onwrite),N.sync=!1),q0&&!N.errored&&!N.destroyed}function d(D,N,_,a,s,W0,q0){N.writelen=a,N.writecb=q0,N.writing=!0,N.sync=!0,N.destroyed?N.onwrite(new L("write")):_?D._writev(s,N.onwrite):D._write(s,W0,N.onwrite),N.sync=!1}function l(D,N,_,a){--N.pendingcb,a(_),K0(N),F(D,_)}function k(D,N){let _=D._writableState,a=_.sync,s=_.writecb;if(typeof s!="function"){F(D,new A);return}_.writing=!1,_.writecb=null,_.length-=_.writelen,_.writelen=0,N?(N.stack,_.errored||(_.errored=N),D._readableState&&!D._readableState.errored&&(D._readableState.errored=N),a?Q.nextTick(l,D,_,N,s):l(D,_,N,s)):(_.buffered.length>_.bufferedIndex&&F0(D,_),a?_.afterWriteTickInfo!==null&&_.afterWriteTickInfo.cb===s?_.afterWriteTickInfo.count++:(_.afterWriteTickInfo={count:1,cb:s,stream:D,state:_},Q.nextTick(r,_.afterWriteTickInfo)):t(D,_,1,s))}function r({stream:D,state:N,count:_,cb:a}){return N.afterWriteTickInfo=null,t(D,N,_,a)}function t(D,N,_,a){for(!N.ending&&!D.destroyed&&N.length===0&&N.needDrain&&(N.needDrain=!1,D.emit("drain"));_-- >0;)N.pendingcb--,a();N.destroyed&&K0(N),H0(D,N)}function K0(D){if(D.writing)return;for(let s=D.bufferedIndex;s<D.buffered.length;++s){var N;let{chunk:W0,callback:q0}=D.buffered[s],z0=D.objectMode?1:W0.length;D.length-=z0,q0((N=D.errored)!==null&&N!==void 0?N:new L("write"))}let _=D[n].splice(0);for(let s=0;s<_.length;s++){var a;_[s]((a=D.errored)!==null&&a!==void 0?a:new L("end"))}c(D)}function F0(D,N){if(N.corked||N.bufferProcessing||N.destroyed||!N.constructed)return;let{buffered:_,bufferedIndex:a,objectMode:s}=N,W0=_.length-a;if(!W0)return;let q0=a;if(N.bufferProcessing=!0,W0>1&&D._writev){N.pendingcb-=W0-1;let z0=N.allNoop?m:(X6)=>{for(let C0=q0;C0<_.length;++C0)_[C0].callback(X6)},b0=N.allNoop&&q0===0?_:q(_,q0);b0.allBuffers=N.allBuffers,d(D,N,!0,N.length,b0,"",z0),c(N)}else{do{let{chunk:z0,encoding:b0,callback:X6}=_[q0];_[q0++]=null;let C0=s?1:z0.length;d(D,N,!1,C0,z0,b0,X6)}while(q0<_.length&&!N.writing);q0===_.length?c(N):q0>256?(_.splice(0,q0),N.bufferedIndex=0):N.bufferedIndex=q0}N.bufferProcessing=!1}u.prototype._write=function(D,N,_){if(this._writev)this._writev([{chunk:D,encoding:N}],_);else throw new M("_write()")},u.prototype._writev=null,u.prototype.end=function(D,N,_){let a=this._writableState;typeof D=="function"?(_=D,D=null,N=null):typeof N=="function"&&(_=N,N=null);let s;if(D!=null){let W0=i(this,D,N);W0 instanceof K&&(s=W0)}return a.corked&&(a.corked=1,this.uncork()),s||(!a.errored&&!a.ending?(a.ending=!0,H0(this,a,!0),a.ended=!0):a.finished?s=new T("end"):a.destroyed&&(s=new L("end"))),typeof _=="function"&&(s||a.finished?Q.nextTick(_,s):a[n].push(_)),this};function V0(D){return D.ending&&!D.destroyed&&D.constructed&&D.length===0&&!D.errored&&D.buffered.length===0&&!D.finished&&!D.writing&&!D.errorEmitted&&!D.closeEmitted}function G0(D,N){let _=!1;function a(s){if(_){F(D,s??A());return}if(_=!0,N.pendingcb--,s){let W0=N[n].splice(0);for(let q0=0;q0<W0.length;q0++)W0[q0](s);F(D,s,N.sync)}else V0(N)&&(N.prefinished=!0,D.emit("prefinish"),N.pendingcb++,Q.nextTick(M0,D,N))}N.sync=!0,N.pendingcb++;try{D._final(a)}catch(s){a(s)}N.sync=!1}function Y0(D,N){!N.prefinished&&!N.finalCalled&&(typeof D._final=="function"&&!N.destroyed?(N.finalCalled=!0,G0(D,N)):(N.prefinished=!0,D.emit("prefinish")))}function H0(D,N,_){V0(N)&&(Y0(D,N),N.pendingcb===0&&(_?(N.pendingcb++,Q.nextTick((a,s)=>{V0(s)?M0(a,s):s.pendingcb--},D,N)):V0(N)&&(N.pendingcb++,M0(D,N))))}function M0(D,N){N.pendingcb--,N.finished=!0;let _=N[n].splice(0);for(let a=0;a<_.length;a++)_[a]();if(D.emit("finish"),N.autoDestroy){let a=D._readableState;(!a||a.autoDestroy&&(a.endEmitted||a.readable===!1))&&D.destroy()}}J(u.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(D){this._writableState&&(this._writableState.destroyed=D)}},writable:{__proto__:null,get(){let D=this._writableState;return!!D&&D.writable!==!1&&!D.destroyed&&!D.errored&&!D.ending&&!D.ended},set(D){this._writableState&&(this._writableState.writable=!!D)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let D=this._writableState;return D?!D.destroyed&&!D.ending&&D.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var Q0=S.destroy;u.prototype.destroy=function(D,N){let _=this._writableState;return!_.destroyed&&(_.bufferedIndex<_.buffered.length||_[n].length)&&Q.nextTick(K0,_),Q0.call(this,D,N),this},u.prototype._undestroy=S.undestroy,u.prototype._destroy=function(D,N){N(D)},u.prototype[I.captureRejectionSymbol]=function(D){this.destroy(D)};var B0;function p(){return B0===void 0&&(B0={}),B0}u.fromWeb=function(D,N){return p().newStreamWritableFromWritableStream(D,N)},u.toWeb=function(D){return p().newWritableStreamFromStreamWritable(D)}}),jq=j0(($,V)=>{var Q=(k6(),S6(G6)),q=M6(),{isReadable:K,isWritable:G,isIterable:W,isNodeStream:J,isReadableNodeStream:P,isWritableNodeStream:j,isDuplexNodeStream:z}=g6(),C=E6(),{AbortError:I,codes:{ERR_INVALID_ARG_TYPE:R,ERR_INVALID_RETURN_VALUE:x}}=f0(),{destroyer:S}=a6(),g=J6(),y=a1(),{createDeferredPromise:Z}=K6(),O=_$(),M=globalThis.Blob||q.Blob,A=typeof M<"u"?function(b){return b instanceof M}:function(b){return!1},B=globalThis.AbortController||d2().AbortController,{FunctionPrototypeCall:L}=x0(),T=class extends g{constructor(b){super(b),b?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),b?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};V.exports=function b(F,m){if(z(F))return F;if(P(F))return f({readable:F});if(j(F))return f({writable:F});if(J(F))return f({writable:!1,readable:!1});if(typeof F=="function"){let{value:v,write:c,final:u,destroy:i}=E(F);if(W(v))return O(T,v,{objectMode:!0,write:c,final:u,destroy:i});let e=v?.then;if(typeof e=="function"){let d,l=L(e,v,(k)=>{if(k!=null)throw new x("nully","body",k)},(k)=>{S(d,k)});return d=new T({objectMode:!0,readable:!1,write:c,final(k){u(async()=>{try{await l,Q.nextTick(k,null)}catch(r){Q.nextTick(k,r)}})},destroy:i})}throw new x("Iterable, AsyncIterable or AsyncFunction",m,v)}if(A(F))return b(F.arrayBuffer());if(W(F))return O(T,F,{objectMode:!0,writable:!1});if(typeof F?.writable=="object"||typeof F?.readable=="object"){let v=F!=null&&F.readable?P(F?.readable)?F?.readable:b(F.readable):void 0,c=F!=null&&F.writable?j(F?.writable)?F?.writable:b(F.writable):void 0;return f({readable:v,writable:c})}let n=F?.then;if(typeof n=="function"){let v;return L(n,F,(c)=>{c!=null&&v.push(c),v.push(null)},(c)=>{S(v,c)}),v=new T({objectMode:!0,writable:!1,read(){}})}throw new R(m,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function E(b){let{promise:F,resolve:m}=Z(),n=new B,v=n.signal;return{value:b(async function*(){for(;;){let c=F;F=null;let{chunk:u,done:i,cb:e}=await c;if(Q.nextTick(e),i)return;if(v.aborted)throw new I(void 0,{cause:v.reason});({promise:F,resolve:m}=Z()),yield u}}(),{signal:v}),write(c,u,i){let e=m;m=null,e({chunk:c,done:!1,cb:i})},final(c){let u=m;m=null,u({done:!0,cb:c})},destroy(c,u){n.abort(),u(c)}}}function f(b){let F=b.readable&&typeof b.readable.read!="function"?y.wrap(b.readable):b.readable,m=b.writable,n=!!K(F),v=!!G(m),c,u,i,e,d;function l(k){let r=e;e=null,r?r(k):k?d.destroy(k):!n&&!v&&d.destroy()}return d=new T({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(m!=null&&m.writableObjectMode),readable:n,writable:v}),v&&(C(m,(k)=>{v=!1,k&&S(F,k),l(k)}),d._write=function(k,r,t){m.write(k,r)?t():c=t},d._final=function(k){m.end(),u=k},m.on("drain",function(){if(c){let k=c;c=null,k()}}),m.on("finish",function(){if(u){let k=u;u=null,k()}})),n&&(C(F,(k)=>{n=!1,k&&S(F,k),l(k)}),F.on("readable",function(){if(i){let k=i;i=null,k()}}),F.on("end",function(){d.push(null)}),d._read=function(){for(;;){let k=F.read();if(k===null){i=d._read;return}if(!d.push(k))return}}),d._destroy=function(k,r){!k&&e!==null&&(k=new I),i=null,c=null,u=null,e===null?r(k):(e=r,S(m,k),S(F,k))},d}}),J6=j0(($,V)=>{var{ObjectDefineProperties:Q,ObjectGetOwnPropertyDescriptor:q,ObjectKeys:K,ObjectSetPrototypeOf:G}=x0();V.exports=P;var W=a1(),J=m$();G(P.prototype,W.prototype),G(P,W);{let I=K(J.prototype);for(let R=0;R<I.length;R++){let x=I[R];P.prototype[x]||(P.prototype[x]=J.prototype[x])}}function P(I){if(!(this instanceof P))return new P(I);W.call(this,I),J.call(this,I),I?(this.allowHalfOpen=I.allowHalfOpen!==!1,I.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),I.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}Q(P.prototype,{writable:{__proto__:null,...q(J.prototype,"writable")},writableHighWaterMark:{__proto__:null,...q(J.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...q(J.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...q(J.prototype,"writableBuffer")},writableLength:{__proto__:null,...q(J.prototype,"writableLength")},writableFinished:{__proto__:null,...q(J.prototype,"writableFinished")},writableCorked:{__proto__:null,...q(J.prototype,"writableCorked")},writableEnded:{__proto__:null,...q(J.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...q(J.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(I){this._readableState&&this._writableState&&(this._readableState.destroyed=I,this._writableState.destroyed=I)}}});var j;function z(){return j===void 0&&(j={}),j}P.fromWeb=function(I,R){return z().newStreamDuplexFromReadableWritablePair(I,R)},P.toWeb=function(I){return z().newReadableWritablePairFromDuplex(I)};var C;P.from=function(I){return C||(C=jq()),C(I,"body")}}),p$=j0(($,V)=>{var{ObjectSetPrototypeOf:Q,Symbol:q}=x0();V.exports=P;var{ERR_METHOD_NOT_IMPLEMENTED:K}=f0().codes,G=J6(),{getHighWaterMark:W}=n2();Q(P.prototype,G.prototype),Q(P,G);var J=q("kCallback");function P(C){if(!(this instanceof P))return new P(C);let I=C?W(this,C,"readableHighWaterMark",!0):null;I===0&&(C={...C,highWaterMark:null,readableHighWaterMark:I,writableHighWaterMark:C.writableHighWaterMark||0}),G.call(this,C),this._readableState.sync=!1,this[J]=null,C&&(typeof C.transform=="function"&&(this._transform=C.transform),typeof C.flush=="function"&&(this._flush=C.flush)),this.on("prefinish",z)}function j(C){typeof this._flush=="function"&&!this.destroyed?this._flush((I,R)=>{if(I){C?C(I):this.destroy(I);return}R!=null&&this.push(R),this.push(null),C&&C()}):(this.push(null),C&&C())}function z(){this._final!==j&&j.call(this)}P.prototype._final=j,P.prototype._transform=function(C,I,R){throw new K("_transform()")},P.prototype._write=function(C,I,R){let x=this._readableState,S=this._writableState,g=x.length;this._transform(C,I,(y,Z)=>{if(y){R(y);return}Z!=null&&this.push(Z),S.ended||g===x.length||x.length<x.highWaterMark?R():this[J]=R})},P.prototype._read=function(){if(this[J]){let C=this[J];this[J]=null,C()}}}),c$=j0(($,V)=>{var{ObjectSetPrototypeOf:Q}=x0();V.exports=K;var q=p$();Q(K.prototype,q.prototype),Q(K,q);function K(G){if(!(this instanceof K))return new K(G);q.call(this,G)}K.prototype._transform=function(G,W,J){J(null,G)}}),a2=j0(($,V)=>{var Q=(k6(),S6(G6)),{ArrayIsArray:q,Promise:K,SymbolAsyncIterator:G}=x0(),W=E6(),{once:J}=K6(),P=a6(),j=J6(),{aggregateTwoErrors:z,codes:{ERR_INVALID_ARG_TYPE:C,ERR_INVALID_RETURN_VALUE:I,ERR_MISSING_ARGS:R,ERR_STREAM_DESTROYED:x,ERR_STREAM_PREMATURE_CLOSE:S},AbortError:g}=f0(),{validateFunction:y,validateAbortSignal:Z}=n1(),{isIterable:O,isReadable:M,isReadableNodeStream:A,isNodeStream:B}=g6(),L=globalThis.AbortController||d2().AbortController,T,E;function f(i,e,d){let l=!1;i.on("close",()=>{l=!0});let k=W(i,{readable:e,writable:d},(r)=>{l=!r});return{destroy:(r)=>{l||(l=!0,P.destroyer(i,r||new x("pipe")))},cleanup:k}}function b(i){return y(i[i.length-1],"streams[stream.length - 1]"),i.pop()}function F(i){if(O(i))return i;if(A(i))return m(i);throw new C("val",["Readable","Iterable","AsyncIterable"],i)}async function*m(i){E||(E=a1()),yield*E.prototype[G].call(i)}async function n(i,e,d,{end:l}){let k,r=null,t=(V0)=>{if(V0&&(k=V0),r){let G0=r;r=null,G0()}},K0=()=>new K((V0,G0)=>{k?G0(k):r=()=>{k?G0(k):V0()}});e.on("drain",t);let F0=W(e,{readable:!1},t);try{e.writableNeedDrain&&await K0();for await(let V0 of i)e.write(V0)||await K0();l&&e.end(),await K0(),d()}catch(V0){d(k!==V0?z(k,V0):V0)}finally{F0(),e.off("drain",t)}}function v(...i){return c(i,J(b(i)))}function c(i,e,d){if(i.length===1&&q(i[0])&&(i=i[0]),i.length<2)throw new R("streams");let l=new L,k=l.signal,r=d?.signal,t=[];Z(r,"options.signal");function K0(){M0(new g)}r?.addEventListener("abort",K0);let F0,V0,G0=[],Y0=0;function H0(D){M0(D,--Y0===0)}function M0(D,N){if(D&&(!F0||F0.code==="ERR_STREAM_PREMATURE_CLOSE")&&(F0=D),!(!F0&&!N)){for(;G0.length;)G0.shift()(F0);r?.removeEventListener("abort",K0),l.abort(),N&&(F0||t.forEach((_)=>_()),Q.nextTick(e,F0,V0))}}let Q0;for(let D=0;D<i.length;D++){let N=i[D],_=D<i.length-1,a=D>0,s=_||d?.end!==!1,W0=D===i.length-1;if(B(N)){let q0=function(z0){z0&&z0.name!=="AbortError"&&z0.code!=="ERR_STREAM_PREMATURE_CLOSE"&&H0(z0)};var B0=q0;if(s){let{destroy:z0,cleanup:b0}=f(N,_,a);G0.push(z0),M(N)&&W0&&t.push(b0)}N.on("error",q0),M(N)&&W0&&t.push(()=>{N.removeListener("error",q0)})}if(D===0)if(typeof N=="function"){if(Q0=N({signal:k}),!O(Q0))throw new I("Iterable, AsyncIterable or Stream","source",Q0)}else O(N)||A(N)?Q0=N:Q0=j.from(N);else if(typeof N=="function")if(Q0=F(Q0),Q0=N(Q0,{signal:k}),_){if(!O(Q0,!0))throw new I("AsyncIterable",`transform[${D-1}]`,Q0)}else{var p;T||(T=c$());let q0=new T({objectMode:!0}),z0=(p=Q0)===null||p===void 0?void 0:p.then;if(typeof z0=="function")Y0++,z0.call(Q0,(C0)=>{V0=C0,C0!=null&&q0.write(C0),s&&q0.end(),Q.nextTick(H0)},(C0)=>{q0.destroy(C0),Q.nextTick(H0,C0)});else if(O(Q0,!0))Y0++,n(Q0,q0,H0,{end:s});else throw new I("AsyncIterable or Promise","destination",Q0);Q0=q0;let{destroy:b0,cleanup:X6}=f(Q0,!1,!0);G0.push(b0),W0&&t.push(X6)}else if(B(N)){if(A(Q0)){Y0+=2;let q0=u(Q0,N,H0,{end:s});M(N)&&W0&&t.push(q0)}else if(O(Q0))Y0++,n(Q0,N,H0,{end:s});else throw new C("val",["Readable","Iterable","AsyncIterable"],Q0);Q0=N}else Q0=j.from(N)}return(k!=null&&k.aborted||r!=null&&r.aborted)&&Q.nextTick(K0),Q0}function u(i,e,d,{end:l}){let k=!1;return e.on("close",()=>{k||d(new S)}),i.pipe(e,{end:l}),l?i.once("end",()=>{k=!0,e.end()}):d(),W(i,{readable:!0,writable:!1},(r)=>{let t=i._readableState;r&&r.code==="ERR_STREAM_PREMATURE_CLOSE"&&t&&t.ended&&!t.errored&&!t.errorEmitted?i.once("end",d).once("error",d):d(r)}),W(e,{readable:!1,writable:!0},d)}V.exports={pipelineImpl:c,pipeline:v}}),Pq=j0(($,V)=>{var{pipeline:Q}=a2(),q=J6(),{destroyer:K}=a6(),{isNodeStream:G,isReadable:W,isWritable:J}=g6(),{AbortError:P,codes:{ERR_INVALID_ARG_VALUE:j,ERR_MISSING_ARGS:z}}=f0();V.exports=function(...C){if(C.length===0)throw new z("streams");if(C.length===1)return q.from(C[0]);let I=[...C];if(typeof C[0]=="function"&&(C[0]=q.from(C[0])),typeof C[C.length-1]=="function"){let L=C.length-1;C[L]=q.from(C[L])}for(let L=0;L<C.length;++L)if(G(C[L])){if(L<C.length-1&&!W(C[L]))throw new j(`streams[${L}]`,I[L],"must be readable");if(L>0&&!J(C[L]))throw new j(`streams[${L}]`,I[L],"must be writable")}let R,x,S,g,y;function Z(L){let T=g;g=null,T?T(L):L?y.destroy(L):!B&&!A&&y.destroy()}let O=C[0],M=Q(C,Z),A=!!J(O),B=!!W(M);return y=new q({writableObjectMode:!!(O!=null&&O.writableObjectMode),readableObjectMode:!!(M!=null&&M.writableObjectMode),writable:A,readable:B}),A&&(y._write=function(L,T,E){O.write(L,T)?E():R=E},y._final=function(L){O.end(),x=L},O.on("drain",function(){if(R){let L=R;R=null,L()}}),M.on("finish",function(){if(x){let L=x;x=null,L()}})),B&&(M.on("readable",function(){if(S){let L=S;S=null,L()}}),M.on("end",function(){y.push(null)}),y._read=function(){for(;;){let L=M.read();if(L===null){S=y._read;return}if(!y.push(L))return}}),y._destroy=function(L,T){!L&&g!==null&&(L=new P),S=null,R=null,x=null,g===null?T(L):(g=T,K(M,L))},y}}),u$=j0(($,V)=>{var{ArrayPrototypePop:Q,Promise:q}=x0(),{isIterable:K,isNodeStream:G}=g6(),{pipelineImpl:W}=a2(),{finished:J}=E6();function P(...j){return new q((z,C)=>{let I,R,x=j[j.length-1];if(x&&typeof x=="object"&&!G(x)&&!K(x)){let S=Q(j);I=S.signal,R=S.end}W(j,(S,g)=>{S?C(S):z(g)},{signal:I,end:R})})}V.exports={finished:J,pipeline:P}}),zq=j0(($,V)=>{var{Buffer:Q}=M6(),{ObjectDefineProperty:q,ObjectKeys:K,ReflectApply:G}=x0(),{promisify:{custom:W}}=K6(),{streamReturningOperators:J,promiseReturningOperators:P}=Jq(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:j}}=f0(),z=Pq(),{pipeline:C}=a2(),{destroyer:I}=a6(),R=E6(),x=u$(),S=g6(),g=V.exports=o2().Stream;g.isDisturbed=S.isDisturbed,g.isErrored=S.isErrored,g.isReadable=S.isReadable,g.Readable=a1();for(let O of K(J)){let M=function(...B){if(new.target)throw j();return g.Readable.from(G(A,this,B))};y=M;let A=J[O];q(M,"name",{__proto__:null,value:A.name}),q(M,"length",{__proto__:null,value:A.length}),q(g.Readable.prototype,O,{__proto__:null,value:M,enumerable:!1,configurable:!0,writable:!0})}var y;for(let O of K(P)){let M=function(...B){if(new.target)throw j();return G(A,this,B)};y=M;let A=P[O];q(M,"name",{__proto__:null,value:A.name}),q(M,"length",{__proto__:null,value:A.length}),q(g.Readable.prototype,O,{__proto__:null,value:M,enumerable:!1,configurable:!0,writable:!0})}var y;g.Writable=m$(),g.Duplex=J6(),g.Transform=p$(),g.PassThrough=c$(),g.pipeline=C;var{addAbortSignal:Z}=i2();g.addAbortSignal=Z,g.finished=R,g.destroy=I,g.compose=z,q(g,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return x}}),q(C,W,{__proto__:null,enumerable:!0,get(){return x.pipeline}}),q(R,W,{__proto__:null,enumerable:!0,get(){return x.finished}}),g.Stream=g,g._isUint8Array=function(O){return O instanceof Uint8Array},g._uint8ArrayToBuffer=function(O){return Q.from(O.buffer,O.byteOffset,O.byteLength)}}),d$=j0(($,V)=>{var Q=zq(),q=u$(),K=Q.Readable.destroy;V.exports=Q.Readable,V.exports._uint8ArrayToBuffer=Q._uint8ArrayToBuffer,V.exports._isUint8Array=Q._isUint8Array,V.exports.isDisturbed=Q.isDisturbed,V.exports.isErrored=Q.isErrored,V.exports.isReadable=Q.isReadable,V.exports.Readable=Q.Readable,V.exports.Writable=Q.Writable,V.exports.Duplex=Q.Duplex,V.exports.Transform=Q.Transform,V.exports.PassThrough=Q.PassThrough,V.exports.addAbortSignal=Q.addAbortSignal,V.exports.finished=Q.finished,V.exports.destroy=Q.destroy,V.exports.destroy=K,V.exports.pipeline=Q.pipeline,V.exports.compose=Q.compose,Object.defineProperty(Q,"promises",{configurable:!0,enumerable:!0,get(){return q}}),V.exports.Stream=Q.Stream,V.exports.default=V.exports}),l$={};b$(l$,{default:()=>o$});f$(l$,o1(d$()));o$=o1(d$());/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
5
5
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
6
6
|
* @license MIT
|
|
7
|
-
*//*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *//*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */});var K6=$0((zq)=>{zq.base64=!0;zq.array=!0;zq.string=!0;zq.arraybuffer=typeof ArrayBuffer!=="undefined"&&typeof Uint8Array!=="undefined";zq.nodebuffer=typeof Buffer!=="undefined";zq.uint8array=typeof Uint8Array!=="undefined";if(typeof ArrayBuffer==="undefined")zq.blob=!1;else{s2=new ArrayBuffer(0);try{zq.blob=new Blob([s2],{type:"application/zip"}).size===0}catch($){try{o$=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,t2=new o$,t2.append(s2),zq.blob=t2.getBlob("application/zip").size===0}catch(V){zq.blob=!1}}}var s2,o$,t2;try{zq.nodestream=!!(a2(),T$(n2)).Readable}catch($){zq.nodestream=!1}});var e2=$0((Iq)=>{var Bq=w0(),Cq=K6(),r0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";Iq.encode=function($){var V=[],Q,q,K,G,W,J,P,j=0,z=$.length,C=z,w=Bq.getTypeOf($)!=="string";while(j<$.length){if(C=z-j,!w)Q=$.charCodeAt(j++),q=j<z?$.charCodeAt(j++):0,K=j<z?$.charCodeAt(j++):0;else Q=$[j++],q=j<z?$[j++]:0,K=j<z?$[j++]:0;G=Q>>2,W=(Q&3)<<4|q>>4,J=C>1?(q&15)<<2|K>>6:64,P=C>2?K&63:64,V.push(r0.charAt(G)+r0.charAt(W)+r0.charAt(J)+r0.charAt(P))}return V.join("")};Iq.decode=function($){var V,Q,q,K,G,W,J,P=0,j=0,z="data:";if($.substr(0,z.length)===z)throw new Error("Invalid base64 input, it looks like a data url.");$=$.replace(/[^A-Za-z0-9+/=]/g,"");var C=$.length*3/4;if($.charAt($.length-1)===r0.charAt(64))C--;if($.charAt($.length-2)===r0.charAt(64))C--;if(C%1!==0)throw new Error("Invalid base64 input, bad content length.");var w;if(Cq.uint8array)w=new Uint8Array(C|0);else w=new Array(C|0);while(P<$.length){if(K=r0.indexOf($.charAt(P++)),G=r0.indexOf($.charAt(P++)),W=r0.indexOf($.charAt(P++)),J=r0.indexOf($.charAt(P++)),V=K<<2|G>>4,Q=(G&15)<<4|W>>2,q=(W&3)<<6|J,w[j++]=V,W!==64)w[j++]=Q;if(J!==64)w[j++]=q}return w}});var L1=$0((eY,i$)=>{i$.exports={isNode:typeof Buffer!=="undefined",newBufferFrom:function($,V){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from($,V);else{if(typeof $==="number")throw new Error('The "data" argument must not be a number');return new Buffer($,V)}},allocBuffer:function($){if(Buffer.alloc)return Buffer.alloc($);else{var V=new Buffer($);return V.fill(0),V}},isBuffer:function($){return Buffer.isBuffer($)},isStream:function($){return $&&typeof $.on==="function"&&typeof $.pause==="function"&&typeof $.resume==="function"}}});var s$=$0(($K,r$)=>{var n$=global.MutationObserver||global.WebKitMutationObserver,O1;if(n$)$8=0,a$=new n$(i1),Q8=global.document.createTextNode(""),a$.observe(Q8,{characterData:!0}),O1=function(){Q8.data=$8=++$8%2};else if(!global.setImmediate&&typeof global.MessageChannel!=="undefined")V8=new global.MessageChannel,V8.port1.onmessage=i1,O1=function(){V8.port2.postMessage(0)};else if("document"in global&&"onreadystatechange"in global.document.createElement("script"))O1=function(){var $=global.document.createElement("script");$.onreadystatechange=function(){i1(),$.onreadystatechange=null,$.parentNode.removeChild($),$=null},global.document.documentElement.appendChild($)};else O1=function(){setTimeout(i1,0)};var $8,a$,Q8,V8,q8,B1=[];function i1(){q8=!0;var $,V,Q=B1.length;while(Q){V=B1,B1=[],$=-1;while(++$<Q)V[$]();Q=B1.length}q8=!1}r$.exports=Nq;function Nq($){if(B1.push($)===1&&!q8)O1()}});var qQ=$0((QK,VQ)=>{var vq=s$();function r6(){}var g0={},t$=["REJECTED"],X8=["FULFILLED"],e$=["PENDING"];VQ.exports=F6;function F6($){if(typeof $!=="function")throw new TypeError("resolver must be a function");if(this.state=e$,this.queue=[],this.outcome=void 0,$!==r6)$Q(this,$)}F6.prototype.finally=function($){if(typeof $!=="function")return this;var V=this.constructor;return this.then(Q,q);function Q(K){function G(){return K}return V.resolve($()).then(G)}function q(K){function G(){throw K}return V.resolve($()).then(G)}};F6.prototype.catch=function($){return this.then(null,$)};F6.prototype.then=function($,V){if(typeof $!=="function"&&this.state===X8||typeof V!=="function"&&this.state===t$)return this;var Q=new this.constructor(r6);if(this.state!==e$){var q=this.state===X8?$:V;Y8(Q,q,this.outcome)}else this.queue.push(new C1(Q,$,V));return Q};function C1($,V,Q){if(this.promise=$,typeof V==="function")this.onFulfilled=V,this.callFulfilled=this.otherCallFulfilled;if(typeof Q==="function")this.onRejected=Q,this.callRejected=this.otherCallRejected}C1.prototype.callFulfilled=function($){g0.resolve(this.promise,$)};C1.prototype.otherCallFulfilled=function($){Y8(this.promise,this.onFulfilled,$)};C1.prototype.callRejected=function($){g0.reject(this.promise,$)};C1.prototype.otherCallRejected=function($){Y8(this.promise,this.onRejected,$)};function Y8($,V,Q){vq(function(){var q;try{q=V(Q)}catch(K){return g0.reject($,K)}if(q===$)g0.reject($,new TypeError("Cannot resolve promise with itself"));else g0.resolve($,q)})}g0.resolve=function($,V){var Q=QQ(Aq,V);if(Q.status==="error")return g0.reject($,Q.value);var q=Q.value;if(q)$Q($,q);else{$.state=X8,$.outcome=V;var K=-1,G=$.queue.length;while(++K<G)$.queue[K].callFulfilled(V)}return $};g0.reject=function($,V){$.state=t$,$.outcome=V;var Q=-1,q=$.queue.length;while(++Q<q)$.queue[Q].callRejected(V);return $};function Aq($){var V=$&&$.then;if($&&(typeof $==="object"||typeof $==="function")&&typeof V==="function")return function Q(){V.apply($,arguments)}}function $Q($,V){var Q=!1;function q(J){if(Q)return;Q=!0,g0.reject($,J)}function K(J){if(Q)return;Q=!0,g0.resolve($,J)}function G(){V(K,q)}var W=QQ(G);if(W.status==="error")q(W.value)}function QQ($,V){var Q={};try{Q.value=$(V),Q.status="success"}catch(q){Q.status="error",Q.value=q}return Q}F6.resolve=Rq;function Rq($){if($ instanceof this)return $;return g0.resolve(new this(r6),$)}F6.reject=xq;function xq($){var V=new this(r6);return g0.reject(V,$)}F6.all=Tq;function Tq($){var V=this;if(Object.prototype.toString.call($)!=="[object Array]")return this.reject(new TypeError("must be an array"));var Q=$.length,q=!1;if(!Q)return this.resolve([]);var K=new Array(Q),G=0,W=-1,J=new this(r6);while(++W<Q)P($[W],W);return J;function P(j,z){V.resolve(j).then(C,function(w){if(!q)q=!0,g0.reject(J,w)});function C(w){if(K[z]=w,++G===Q&&!q)q=!0,g0.resolve(J,K)}}}F6.race=Sq;function Sq($){var V=this;if(Object.prototype.toString.call($)!=="[object Array]")return this.reject(new TypeError("must be an array"));var Q=$.length,q=!1;if(!Q)return this.resolve([]);var K=-1,G=new this(r6);while(++K<Q)W($[K]);return G;function W(J){V.resolve(J).then(function(P){if(!q)q=!0,g0.resolve(G,P)},function(P){if(!q)q=!0,g0.reject(G,P)})}}});var s6=$0((VK,XQ)=>{var K8=null;if(typeof Promise!=="undefined")K8=Promise;else K8=qQ();XQ.exports={Promise:K8}});var KQ=$0((YQ)=>{(function($,V){if($.setImmediate)return;var Q=1,q={},K=!1,G=$.document,W;function J(Z){if(typeof Z!=="function")Z=new Function(""+Z);var O=new Array(arguments.length-1);for(var M=0;M<O.length;M++)O[M]=arguments[M+1];var A={callback:Z,args:O};return q[Q]=A,W(Q),Q++}function P(Z){delete q[Z]}function j(Z){var{callback:O,args:M}=Z;switch(M.length){case 0:O();break;case 1:O(M[0]);break;case 2:O(M[0],M[1]);break;case 3:O(M[0],M[1],M[2]);break;default:O.apply(V,M);break}}function z(Z){if(K)setTimeout(z,0,Z);else{var O=q[Z];if(O){K=!0;try{j(O)}finally{P(Z),K=!1}}}}function C(){W=function(Z){process.nextTick(function(){z(Z)})}}function w(){if($.postMessage&&!$.importScripts){var Z=!0,O=$.onmessage;return $.onmessage=function(){Z=!1},$.postMessage("","*"),$.onmessage=O,Z}}function R(){var Z="setImmediate$"+Math.random()+"$",O=function(M){if(M.source===$&&typeof M.data==="string"&&M.data.indexOf(Z)===0)z(+M.data.slice(Z.length))};if($.addEventListener)$.addEventListener("message",O,!1);else $.attachEvent("onmessage",O);W=function(M){$.postMessage(Z+M,"*")}}function x(){var Z=new MessageChannel;Z.port1.onmessage=function(O){var M=O.data;z(M)},W=function(O){Z.port2.postMessage(O)}}function S(){var Z=G.documentElement;W=function(O){var M=G.createElement("script");M.onreadystatechange=function(){z(O),M.onreadystatechange=null,Z.removeChild(M),M=null},Z.appendChild(M)}}function g(){W=function(Z){setTimeout(z,0,Z)}}var y=Object.getPrototypeOf&&Object.getPrototypeOf($);if(y=y&&y.setTimeout?y:$,{}.toString.call($.process)==="[object process]")C();else if(w())R();else if($.MessageChannel)x();else if(G&&"onreadystatechange"in G.createElement("script"))S();else g();y.setImmediate=J,y.clearImmediate=P})(typeof self==="undefined"?typeof global==="undefined"?YQ:global:self)});var w0=$0((Eq)=>{var H6=K6(),kq=e2(),t6=L1(),J8=s6();KQ();function gq($){var V=null;if(H6.uint8array)V=new Uint8Array($.length);else V=new Array($.length);return a1($,V)}Eq.newBlob=function($,V){Eq.checkSupport("blob");try{return new Blob([$],{type:V})}catch(K){try{var Q=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,q=new Q;return q.append($),q.getBlob(V)}catch(G){throw new Error("Bug : can't construct the Blob.")}}};function I1($){return $}function a1($,V){for(var Q=0;Q<$.length;++Q)V[Q]=$.charCodeAt(Q)&255;return V}var n1={stringifyByChunk:function($,V,Q){var q=[],K=0,G=$.length;if(G<=Q)return String.fromCharCode.apply(null,$);while(K<G){if(V==="array"||V==="nodebuffer")q.push(String.fromCharCode.apply(null,$.slice(K,Math.min(K+Q,G))));else q.push(String.fromCharCode.apply(null,$.subarray(K,Math.min(K+Q,G))));K+=Q}return q.join("")},stringifyByChar:function($){var V="";for(var Q=0;Q<$.length;Q++)V+=String.fromCharCode($[Q]);return V},applyCanBeUsed:{uint8array:function(){try{return H6.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch($){return!1}}(),nodebuffer:function(){try{return H6.nodebuffer&&String.fromCharCode.apply(null,t6.allocBuffer(1)).length===1}catch($){return!1}}()}};function D1($){var V=65536,Q=Eq.getTypeOf($),q=!0;if(Q==="uint8array")q=n1.applyCanBeUsed.uint8array;else if(Q==="nodebuffer")q=n1.applyCanBeUsed.nodebuffer;if(q)while(V>1)try{return n1.stringifyByChunk($,Q,V)}catch(K){V=Math.floor(V/2)}return n1.stringifyByChar($)}Eq.applyFromCharCode=D1;function r1($,V){for(var Q=0;Q<$.length;Q++)V[Q]=$[Q];return V}var M6={};M6.string={string:I1,array:function($){return a1($,new Array($.length))},arraybuffer:function($){return M6.string.uint8array($).buffer},uint8array:function($){return a1($,new Uint8Array($.length))},nodebuffer:function($){return a1($,t6.allocBuffer($.length))}};M6.array={string:D1,array:I1,arraybuffer:function($){return new Uint8Array($).buffer},uint8array:function($){return new Uint8Array($)},nodebuffer:function($){return t6.newBufferFrom($)}};M6.arraybuffer={string:function($){return D1(new Uint8Array($))},array:function($){return r1(new Uint8Array($),new Array($.byteLength))},arraybuffer:I1,uint8array:function($){return new Uint8Array($)},nodebuffer:function($){return t6.newBufferFrom(new Uint8Array($))}};M6.uint8array={string:D1,array:function($){return r1($,new Array($.length))},arraybuffer:function($){return $.buffer},uint8array:I1,nodebuffer:function($){return t6.newBufferFrom($)}};M6.nodebuffer={string:D1,array:function($){return r1($,new Array($.length))},arraybuffer:function($){return M6.nodebuffer.uint8array($).buffer},uint8array:function($){return r1($,new Uint8Array($.length))},nodebuffer:I1};Eq.transformTo=function($,V){if(!V)V="";if(!$)return V;Eq.checkSupport($);var Q=Eq.getTypeOf(V),q=M6[Q][$](V);return q};Eq.resolve=function($){var V=$.split("/"),Q=[];for(var q=0;q<V.length;q++){var K=V[q];if(K==="."||K===""&&q!==0&&q!==V.length-1)continue;else if(K==="..")Q.pop();else Q.push(K)}return Q.join("/")};Eq.getTypeOf=function($){if(typeof $==="string")return"string";if(Object.prototype.toString.call($)==="[object Array]")return"array";if(H6.nodebuffer&&t6.isBuffer($))return"nodebuffer";if(H6.uint8array&&$ instanceof Uint8Array)return"uint8array";if(H6.arraybuffer&&$ instanceof ArrayBuffer)return"arraybuffer"};Eq.checkSupport=function($){var V=H6[$.toLowerCase()];if(!V)throw new Error($+" is not supported by this platform")};Eq.MAX_VALUE_16BITS=65535;Eq.MAX_VALUE_32BITS=-1;Eq.pretty=function($){var V="",Q,q;for(q=0;q<($||"").length;q++)Q=$.charCodeAt(q),V+="\\x"+(Q<16?"0":"")+Q.toString(16).toUpperCase();return V};Eq.delay=function($,V,Q){setImmediate(function(){$.apply(Q||null,V||[])})};Eq.inherits=function($,V){var Q=function(){};Q.prototype=V.prototype,$.prototype=new Q};Eq.extend=function(){var $={},V,Q;for(V=0;V<arguments.length;V++)for(Q in arguments[V])if(Object.prototype.hasOwnProperty.call(arguments[V],Q)&&typeof $[Q]==="undefined")$[Q]=arguments[V][Q];return $};Eq.prepareContent=function($,V,Q,q,K){var G=J8.Promise.resolve(V).then(function(W){var J=H6.blob&&(W instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(W))!==-1);if(J&&typeof FileReader!=="undefined")return new J8.Promise(function(P,j){var z=new FileReader;z.onload=function(C){P(C.target.result)},z.onerror=function(C){j(C.target.error)},z.readAsArrayBuffer(W)});else return W});return G.then(function(W){var J=Eq.getTypeOf(W);if(!J)return J8.Promise.reject(new Error("Can't read the data of '"+$+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));if(J==="arraybuffer")W=Eq.transformTo("uint8array",W);else if(J==="string"){if(K)W=kq.decode(W);else if(Q){if(q!==!0)W=gq(W)}}return W})}});var _0=$0((YK,WQ)=>{function UQ($){this.name=$||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}UQ.prototype={push:function($){this.emit("data",$)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch($){this.emit("error",$)}return!0},error:function($){if(this.isFinished)return!1;if(this.isPaused)this.generatedError=$;else{if(this.isFinished=!0,this.emit("error",$),this.previous)this.previous.error($);this.cleanUp()}return!0},on:function($,V){return this._listeners[$].push(V),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function($,V){if(this._listeners[$])for(var Q=0;Q<this._listeners[$].length;Q++)this._listeners[$][Q].call(this,V)},pipe:function($){return $.registerPrevious(this)},registerPrevious:function($){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=$.streamInfo,this.mergeStreamInfo(),this.previous=$;var V=this;return $.on("data",function(Q){V.processChunk(Q)}),$.on("end",function(){V.end()}),$.on("error",function(Q){V.error(Q)}),this},pause:function(){if(this.isPaused||this.isFinished)return!1;if(this.isPaused=!0,this.previous)this.previous.pause();return!0},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var $=!1;if(this.generatedError)this.error(this.generatedError),$=!0;if(this.previous)this.previous.resume();return!$},flush:function(){},processChunk:function($){this.push($)},withStreamInfo:function($,V){return this.extraStreamInfo[$]=V,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var $ in this.extraStreamInfo){if(!Object.prototype.hasOwnProperty.call(this.extraStreamInfo,$))continue;this.streamInfo[$]=this.extraStreamInfo[$]}},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");if(this.isLocked=!0,this.previous)this.previous.lock()},toString:function(){var $="Worker "+this.name;if(this.previous)return this.previous+" -> "+$;else return $}};WQ.exports=UQ});var $1=$0((aq)=>{var e6=w0(),E6=K6(),lq=L1(),s1=_0(),w1=new Array(256);for(J6=0;J6<256;J6++)w1[J6]=J6>=252?6:J6>=248?5:J6>=240?4:J6>=224?3:J6>=192?2:1;var J6;w1[254]=w1[254]=1;var oq=function($){var V,Q,q,K,G,W=$.length,J=0;for(K=0;K<W;K++){if(Q=$.charCodeAt(K),(Q&64512)===55296&&K+1<W){if(q=$.charCodeAt(K+1),(q&64512)===56320)Q=65536+(Q-55296<<10)+(q-56320),K++}J+=Q<128?1:Q<2048?2:Q<65536?3:4}if(E6.uint8array)V=new Uint8Array(J);else V=new Array(J);for(G=0,K=0;G<J;K++){if(Q=$.charCodeAt(K),(Q&64512)===55296&&K+1<W){if(q=$.charCodeAt(K+1),(q&64512)===56320)Q=65536+(Q-55296<<10)+(q-56320),K++}if(Q<128)V[G++]=Q;else if(Q<2048)V[G++]=192|Q>>>6,V[G++]=128|Q&63;else if(Q<65536)V[G++]=224|Q>>>12,V[G++]=128|Q>>>6&63,V[G++]=128|Q&63;else V[G++]=240|Q>>>18,V[G++]=128|Q>>>12&63,V[G++]=128|Q>>>6&63,V[G++]=128|Q&63}return V},iq=function($,V){var Q;if(V=V||$.length,V>$.length)V=$.length;Q=V-1;while(Q>=0&&($[Q]&192)===128)Q--;if(Q<0)return V;if(Q===0)return V;return Q+w1[$[Q]]>V?Q:V},nq=function($){var V,Q,q,K,G=$.length,W=new Array(G*2);for(Q=0,V=0;V<G;){if(q=$[V++],q<128){W[Q++]=q;continue}if(K=w1[q],K>4){W[Q++]=65533,V+=K-1;continue}q&=K===2?31:K===3?15:7;while(K>1&&V<G)q=q<<6|$[V++]&63,K--;if(K>1){W[Q++]=65533;continue}if(q<65536)W[Q++]=q;else q-=65536,W[Q++]=55296|q>>10&1023,W[Q++]=56320|q&1023}if(W.length!==Q)if(W.subarray)W=W.subarray(0,Q);else W.length=Q;return e6.applyFromCharCode(W)};aq.utf8encode=function $(V){if(E6.nodebuffer)return lq.newBufferFrom(V,"utf-8");return oq(V)};aq.utf8decode=function $(V){if(E6.nodebuffer)return e6.transformTo("nodebuffer",V).toString("utf-8");return V=e6.transformTo(E6.uint8array?"uint8array":"array",V),nq(V)};function t1(){s1.call(this,"utf-8 decode"),this.leftOver=null}e6.inherits(t1,s1);t1.prototype.processChunk=function($){var V=e6.transformTo(E6.uint8array?"uint8array":"array",$.data);if(this.leftOver&&this.leftOver.length){if(E6.uint8array){var Q=V;V=new Uint8Array(Q.length+this.leftOver.length),V.set(this.leftOver,0),V.set(Q,this.leftOver.length)}else V=this.leftOver.concat(V);this.leftOver=null}var q=iq(V),K=V;if(q!==V.length)if(E6.uint8array)K=V.subarray(0,q),this.leftOver=V.subarray(q,V.length);else K=V.slice(0,q),this.leftOver=V.slice(q,V.length);this.push({data:aq.utf8decode(K),meta:$.meta})};t1.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:aq.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};aq.Utf8DecodeWorker=t1;function U8(){s1.call(this,"utf-8 encode")}e6.inherits(U8,s1);U8.prototype.processChunk=function($){this.push({data:aq.utf8encode($.data),meta:$.meta})};aq.Utf8EncodeWorker=U8});var FQ=$0((JK,ZQ)=>{var PQ=_0(),zQ=w0();function j8($){PQ.call(this,"ConvertWorker to "+$),this.destType=$}zQ.inherits(j8,PQ);j8.prototype.processChunk=function($){this.push({data:zQ.transformTo(this.destType,$.data),meta:$.meta})};ZQ.exports=j8});var LQ=$0((GK,MQ)=>{var HQ=(a2(),T$(n2)).Readable,tq=w0();tq.inherits(P8,HQ);function P8($,V,Q){HQ.call(this,V),this._helper=$;var q=this;$.on("data",function(K,G){if(!q.push(K))q._helper.pause();if(Q)Q(G)}).on("error",function(K){q.emit("error",K)}).on("end",function(){q.push(null)})}P8.prototype._read=function(){this._helper.resume()};MQ.exports=P8});var z8=$0((UK,CQ)=>{var y6=w0(),eq=FQ(),$7=_0(),Q7=e2(),V7=K6(),q7=s6(),OQ=null;if(V7.nodestream)try{OQ=LQ()}catch($){}function X7($,V,Q){switch($){case"blob":return y6.newBlob(y6.transformTo("arraybuffer",V),Q);case"base64":return Q7.encode(V);default:return y6.transformTo($,V)}}function Y7($,V){var Q,q=0,K=null,G=0;for(Q=0;Q<V.length;Q++)G+=V[Q].length;switch($){case"string":return V.join("");case"array":return Array.prototype.concat.apply([],V);case"uint8array":K=new Uint8Array(G);for(Q=0;Q<V.length;Q++)K.set(V[Q],q),q+=V[Q].length;return K;case"nodebuffer":return Buffer.concat(V);default:throw new Error("concat : unsupported type '"+$+"'")}}function K7($,V){return new q7.Promise(function(Q,q){var K=[],G=$._internalType,W=$._outputType,J=$._mimeType;$.on("data",function(P,j){if(K.push(P),V)V(j)}).on("error",function(P){K=[],q(P)}).on("end",function(){try{var P=X7(W,Y7(G,K),J);Q(P)}catch(j){q(j)}K=[]}).resume()})}function BQ($,V,Q){var q=V;switch(V){case"blob":case"arraybuffer":q="uint8array";break;case"base64":q="string";break}try{this._internalType=q,this._outputType=V,this._mimeType=Q,y6.checkSupport(q),this._worker=$.pipe(new eq(q)),$.lock()}catch(K){this._worker=new $7("error"),this._worker.error(K)}}BQ.prototype={accumulate:function($){return K7(this,$)},on:function($,V){var Q=this;if($==="data")this._worker.on($,function(q){V.call(Q,q.data,q.meta)});else this._worker.on($,function(){y6.delay(V,arguments,Q)});return this},resume:function(){return y6.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function($){if(y6.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new OQ(this,{objectMode:this._outputType!=="nodebuffer"},$)}};CQ.exports=BQ});var Z8=$0((J7)=>{J7.base64=!1;J7.binary=!1;J7.dir=!1;J7.createFolders=!0;J7.date=null;J7.compression=null;J7.compressionOptions=null;J7.comment=null;J7.unixPermissions=null;J7.dosPermissions=null});var F8=$0((jK,IQ)=>{var e1=w0(),$2=_0(),L7=16384;function Q1($){$2.call(this,"DataWorker");var V=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,$.then(function(Q){if(V.dataIsReady=!0,V.data=Q,V.max=Q&&Q.length||0,V.type=e1.getTypeOf(Q),!V.isPaused)V._tickAndRepeat()},function(Q){V.error(Q)})}e1.inherits(Q1,$2);Q1.prototype.cleanUp=function(){$2.prototype.cleanUp.call(this),this.data=null};Q1.prototype.resume=function(){if(!$2.prototype.resume.call(this))return!1;if(!this._tickScheduled&&this.dataIsReady)this._tickScheduled=!0,e1.delay(this._tickAndRepeat,[],this);return!0};Q1.prototype._tickAndRepeat=function(){if(this._tickScheduled=!1,this.isPaused||this.isFinished)return;if(this._tick(),!this.isFinished)e1.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0};Q1.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var $=L7,V=null,Q=Math.min(this.max,this.index+$);if(this.index>=this.max)return this.end();else{switch(this.type){case"string":V=this.data.substring(this.index,Q);break;case"uint8array":V=this.data.subarray(this.index,Q);break;case"array":case"nodebuffer":V=this.data.slice(this.index,Q);break}return this.index=Q,this.push({data:V,meta:{percent:this.max?this.index/this.max*100:0}})}};IQ.exports=Q1});var Q2=$0((PK,wQ)=>{var O7=w0();function B7(){var $,V=[];for(var Q=0;Q<256;Q++){$=Q;for(var q=0;q<8;q++)$=$&1?3988292384^$>>>1:$>>>1;V[Q]=$}return V}var DQ=B7();function C7($,V,Q,q){var K=DQ,G=q+Q;$=$^-1;for(var W=q;W<G;W++)$=$>>>8^K[($^V[W])&255];return $^-1}function I7($,V,Q,q){var K=DQ,G=q+Q;$=$^-1;for(var W=q;W<G;W++)$=$>>>8^K[($^V.charCodeAt(W))&255];return $^-1}wQ.exports=function $(V,Q){if(typeof V==="undefined"||!V.length)return 0;var q=O7.getTypeOf(V)!=="string";if(q)return C7(Q|0,V,V.length,0);else return I7(Q|0,V,V.length,0)}});var M8=$0((zK,vQ)=>{var NQ=_0(),D7=Q2(),w7=w0();function H8(){NQ.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}w7.inherits(H8,NQ);H8.prototype.processChunk=function($){this.streamInfo.crc32=D7($.data,this.streamInfo.crc32||0),this.push($)};vQ.exports=H8});var RQ=$0((ZK,AQ)=>{var N7=w0(),L8=_0();function O8($){L8.call(this,"DataLengthProbe for "+$),this.propName=$,this.withStreamInfo($,0)}N7.inherits(O8,L8);O8.prototype.processChunk=function($){if($){var V=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=V+$.data.length}L8.prototype.processChunk.call(this,$)};AQ.exports=O8});var V2=$0((FK,SQ)=>{var xQ=s6(),TQ=F8(),v7=M8(),B8=RQ();function C8($,V,Q,q,K){this.compressedSize=$,this.uncompressedSize=V,this.crc32=Q,this.compression=q,this.compressedContent=K}C8.prototype={getContentWorker:function(){var $=new TQ(xQ.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new B8("data_length")),V=this;return $.on("end",function(){if(this.streamInfo.data_length!==V.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),$},getCompressedWorker:function(){return new TQ(xQ.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};C8.createWorkerFrom=function($,V,Q){return $.pipe(new v7).pipe(new B8("uncompressedSize")).pipe(V.compressWorker(Q)).pipe(new B8("compressedSize")).withStreamInfo("compression",V)};SQ.exports=C8});var yQ=$0((HK,EQ)=>{var A7=z8(),R7=F8(),I8=$1(),D8=V2(),kQ=_0(),w8=function($,V,Q){this.name=$,this.dir=Q.dir,this.date=Q.date,this.comment=Q.comment,this.unixPermissions=Q.unixPermissions,this.dosPermissions=Q.dosPermissions,this._data=V,this._dataBinary=Q.binary,this.options={compression:Q.compression,compressionOptions:Q.compressionOptions}};w8.prototype={internalStream:function($){var V=null,Q="string";try{if(!$)throw new Error("No output type specified.");Q=$.toLowerCase();var q=Q==="string"||Q==="text";if(Q==="binarystring"||Q==="text")Q="string";V=this._decompressWorker();var K=!this._dataBinary;if(K&&!q)V=V.pipe(new I8.Utf8EncodeWorker);if(!K&&q)V=V.pipe(new I8.Utf8DecodeWorker)}catch(G){V=new kQ("error"),V.error(G)}return new A7(V,Q,"")},async:function($,V){return this.internalStream($).accumulate(V)},nodeStream:function($,V){return this.internalStream($||"nodebuffer").toNodejsStream(V)},_compressWorker:function($,V){if(this._data instanceof D8&&this._data.compression.magic===$.magic)return this._data.getCompressedWorker();else{var Q=this._decompressWorker();if(!this._dataBinary)Q=Q.pipe(new I8.Utf8EncodeWorker);return D8.createWorkerFrom(Q,$,V)}},_decompressWorker:function(){if(this._data instanceof D8)return this._data.getContentWorker();else if(this._data instanceof kQ)return this._data;else return new R7(this._data)}};var gQ=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],x7=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(q2=0;q2<gQ.length;q2++)w8.prototype[gQ[q2]]=x7;var q2;EQ.exports=w8});var G6=$0((N8)=>{var g7=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";function E7($,V){return Object.prototype.hasOwnProperty.call($,V)}N8.assign=function($){var V=Array.prototype.slice.call(arguments,1);while(V.length){var Q=V.shift();if(!Q)continue;if(typeof Q!=="object")throw new TypeError(Q+"must be non-object");for(var q in Q)if(E7(Q,q))$[q]=Q[q]}return $};N8.shrinkBuf=function($,V){if($.length===V)return $;if($.subarray)return $.subarray(0,V);return $.length=V,$};var y7={arraySet:function($,V,Q,q,K){if(V.subarray&&$.subarray){$.set(V.subarray(Q,Q+q),K);return}for(var G=0;G<q;G++)$[K+G]=V[Q+G]},flattenChunks:function($){var V,Q,q,K,G,W;q=0;for(V=0,Q=$.length;V<Q;V++)q+=$[V].length;W=new Uint8Array(q),K=0;for(V=0,Q=$.length;V<Q;V++)G=$[V],W.set(G,K),K+=G.length;return W}},b7={arraySet:function($,V,Q,q,K){for(var G=0;G<q;G++)$[K+G]=V[Q+G]},flattenChunks:function($){return[].concat.apply([],$)}};N8.setTyped=function($){if($)N8.Buf8=Uint8Array,N8.Buf16=Uint16Array,N8.Buf32=Int32Array,N8.assign(N8,y7);else N8.Buf8=Array,N8.Buf16=Array,N8.Buf32=Array,N8.assign(N8,b7)};N8.setTyped(g7)});var Y5=$0((Y3)=>{var h7=G6(),_7=4,fQ=0,hQ=1,m7=2;function q1($){var V=$.length;while(--V>=0)$[V]=0}var p7=0,dQ=1,c7=2,u7=3,d7=258,g8=29,T1=256,v1=T1+1+g8,V1=30,E8=19,lQ=2*v1+1,b6=15,A8=16,l7=7,y8=256,oQ=16,iQ=17,nQ=18,S8=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],X2=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],o7=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],aQ=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],i7=512,U6=new Array((v1+2)*2);q1(U6);var N1=new Array(V1*2);q1(N1);var A1=new Array(i7);q1(A1);var R1=new Array(d7-u7+1);q1(R1);var b8=new Array(g8);q1(b8);var Y2=new Array(V1);q1(Y2);function R8($,V,Q,q,K){this.static_tree=$,this.extra_bits=V,this.extra_base=Q,this.elems=q,this.max_length=K,this.has_stree=$&&$.length}var rQ,sQ,tQ;function x8($,V){this.dyn_tree=$,this.max_code=0,this.stat_desc=V}function eQ($){return $<256?A1[$]:A1[256+($>>>7)]}function x1($,V){$.pending_buf[$.pending++]=V&255,$.pending_buf[$.pending++]=V>>>8&255}function h0($,V,Q){if($.bi_valid>A8-Q)$.bi_buf|=V<<$.bi_valid&65535,x1($,$.bi_buf),$.bi_buf=V>>A8-$.bi_valid,$.bi_valid+=Q-A8;else $.bi_buf|=V<<$.bi_valid&65535,$.bi_valid+=Q}function s0($,V,Q){h0($,Q[V*2],Q[V*2+1])}function $5($,V){var Q=0;do Q|=$&1,$>>>=1,Q<<=1;while(--V>0);return Q>>>1}function n7($){if($.bi_valid===16)x1($,$.bi_buf),$.bi_buf=0,$.bi_valid=0;else if($.bi_valid>=8)$.pending_buf[$.pending++]=$.bi_buf&255,$.bi_buf>>=8,$.bi_valid-=8}function a7($,V){var{dyn_tree:Q,max_code:q}=V,K=V.stat_desc.static_tree,G=V.stat_desc.has_stree,W=V.stat_desc.extra_bits,J=V.stat_desc.extra_base,P=V.stat_desc.max_length,j,z,C,w,R,x,S=0;for(w=0;w<=b6;w++)$.bl_count[w]=0;Q[$.heap[$.heap_max]*2+1]=0;for(j=$.heap_max+1;j<lQ;j++){if(z=$.heap[j],w=Q[Q[z*2+1]*2+1]+1,w>P)w=P,S++;if(Q[z*2+1]=w,z>q)continue;if($.bl_count[w]++,R=0,z>=J)R=W[z-J];if(x=Q[z*2],$.opt_len+=x*(w+R),G)$.static_len+=x*(K[z*2+1]+R)}if(S===0)return;do{w=P-1;while($.bl_count[w]===0)w--;$.bl_count[w]--,$.bl_count[w+1]+=2,$.bl_count[P]--,S-=2}while(S>0);for(w=P;w!==0;w--){z=$.bl_count[w];while(z!==0){if(C=$.heap[--j],C>q)continue;if(Q[C*2+1]!==w)$.opt_len+=(w-Q[C*2+1])*Q[C*2],Q[C*2+1]=w;z--}}}function Q5($,V,Q){var q=new Array(b6+1),K=0,G,W;for(G=1;G<=b6;G++)q[G]=K=K+Q[G-1]<<1;for(W=0;W<=V;W++){var J=$[W*2+1];if(J===0)continue;$[W*2]=$5(q[J]++,J)}}function r7(){var $,V,Q,q,K,G=new Array(b6+1);Q=0;for(q=0;q<g8-1;q++){b8[q]=Q;for($=0;$<1<<S8[q];$++)R1[Q++]=q}R1[Q-1]=q,K=0;for(q=0;q<16;q++){Y2[q]=K;for($=0;$<1<<X2[q];$++)A1[K++]=q}K>>=7;for(;q<V1;q++){Y2[q]=K<<7;for($=0;$<1<<X2[q]-7;$++)A1[256+K++]=q}for(V=0;V<=b6;V++)G[V]=0;$=0;while($<=143)U6[$*2+1]=8,$++,G[8]++;while($<=255)U6[$*2+1]=9,$++,G[9]++;while($<=279)U6[$*2+1]=7,$++,G[7]++;while($<=287)U6[$*2+1]=8,$++,G[8]++;Q5(U6,v1+1,G);for($=0;$<V1;$++)N1[$*2+1]=5,N1[$*2]=$5($,5);rQ=new R8(U6,S8,T1+1,v1,b6),sQ=new R8(N1,X2,0,V1,b6),tQ=new R8(new Array(0),o7,0,E8,l7)}function V5($){var V;for(V=0;V<v1;V++)$.dyn_ltree[V*2]=0;for(V=0;V<V1;V++)$.dyn_dtree[V*2]=0;for(V=0;V<E8;V++)$.bl_tree[V*2]=0;$.dyn_ltree[y8*2]=1,$.opt_len=$.static_len=0,$.last_lit=$.matches=0}function q5($){if($.bi_valid>8)x1($,$.bi_buf);else if($.bi_valid>0)$.pending_buf[$.pending++]=$.bi_buf;$.bi_buf=0,$.bi_valid=0}function s7($,V,Q,q){if(q5($),q)x1($,Q),x1($,~Q);h7.arraySet($.pending_buf,$.window,V,Q,$.pending),$.pending+=Q}function _Q($,V,Q,q){var K=V*2,G=Q*2;return $[K]<$[G]||$[K]===$[G]&&q[V]<=q[Q]}function T8($,V,Q){var q=$.heap[Q],K=Q<<1;while(K<=$.heap_len){if(K<$.heap_len&&_Q(V,$.heap[K+1],$.heap[K],$.depth))K++;if(_Q(V,q,$.heap[K],$.depth))break;$.heap[Q]=$.heap[K],Q=K,K<<=1}$.heap[Q]=q}function mQ($,V,Q){var q,K,G=0,W,J;if($.last_lit!==0)do if(q=$.pending_buf[$.d_buf+G*2]<<8|$.pending_buf[$.d_buf+G*2+1],K=$.pending_buf[$.l_buf+G],G++,q===0)s0($,K,V);else{if(W=R1[K],s0($,W+T1+1,V),J=S8[W],J!==0)K-=b8[W],h0($,K,J);if(q--,W=eQ(q),s0($,W,Q),J=X2[W],J!==0)q-=Y2[W],h0($,q,J)}while(G<$.last_lit);s0($,y8,V)}function k8($,V){var Q=V.dyn_tree,q=V.stat_desc.static_tree,K=V.stat_desc.has_stree,G=V.stat_desc.elems,W,J,P=-1,j;$.heap_len=0,$.heap_max=lQ;for(W=0;W<G;W++)if(Q[W*2]!==0)$.heap[++$.heap_len]=P=W,$.depth[W]=0;else Q[W*2+1]=0;while($.heap_len<2)if(j=$.heap[++$.heap_len]=P<2?++P:0,Q[j*2]=1,$.depth[j]=0,$.opt_len--,K)$.static_len-=q[j*2+1];V.max_code=P;for(W=$.heap_len>>1;W>=1;W--)T8($,Q,W);j=G;do W=$.heap[1],$.heap[1]=$.heap[$.heap_len--],T8($,Q,1),J=$.heap[1],$.heap[--$.heap_max]=W,$.heap[--$.heap_max]=J,Q[j*2]=Q[W*2]+Q[J*2],$.depth[j]=($.depth[W]>=$.depth[J]?$.depth[W]:$.depth[J])+1,Q[W*2+1]=Q[J*2+1]=j,$.heap[1]=j++,T8($,Q,1);while($.heap_len>=2);$.heap[--$.heap_max]=$.heap[1],a7($,V),Q5(Q,P,$.bl_count)}function pQ($,V,Q){var q,K=-1,G,W=V[1],J=0,P=7,j=4;if(W===0)P=138,j=3;V[(Q+1)*2+1]=65535;for(q=0;q<=Q;q++){if(G=W,W=V[(q+1)*2+1],++J<P&&G===W)continue;else if(J<j)$.bl_tree[G*2]+=J;else if(G!==0){if(G!==K)$.bl_tree[G*2]++;$.bl_tree[oQ*2]++}else if(J<=10)$.bl_tree[iQ*2]++;else $.bl_tree[nQ*2]++;if(J=0,K=G,W===0)P=138,j=3;else if(G===W)P=6,j=3;else P=7,j=4}}function cQ($,V,Q){var q,K=-1,G,W=V[1],J=0,P=7,j=4;if(W===0)P=138,j=3;for(q=0;q<=Q;q++){if(G=W,W=V[(q+1)*2+1],++J<P&&G===W)continue;else if(J<j)do s0($,G,$.bl_tree);while(--J!==0);else if(G!==0){if(G!==K)s0($,G,$.bl_tree),J--;s0($,oQ,$.bl_tree),h0($,J-3,2)}else if(J<=10)s0($,iQ,$.bl_tree),h0($,J-3,3);else s0($,nQ,$.bl_tree),h0($,J-11,7);if(J=0,K=G,W===0)P=138,j=3;else if(G===W)P=6,j=3;else P=7,j=4}}function t7($){var V;pQ($,$.dyn_ltree,$.l_desc.max_code),pQ($,$.dyn_dtree,$.d_desc.max_code),k8($,$.bl_desc);for(V=E8-1;V>=3;V--)if($.bl_tree[aQ[V]*2+1]!==0)break;return $.opt_len+=3*(V+1)+5+5+4,V}function e7($,V,Q,q){var K;h0($,V-257,5),h0($,Q-1,5),h0($,q-4,4);for(K=0;K<q;K++)h0($,$.bl_tree[aQ[K]*2+1],3);cQ($,$.dyn_ltree,V-1),cQ($,$.dyn_dtree,Q-1)}function $3($){var V=4093624447,Q;for(Q=0;Q<=31;Q++,V>>>=1)if(V&1&&$.dyn_ltree[Q*2]!==0)return fQ;if($.dyn_ltree[18]!==0||$.dyn_ltree[20]!==0||$.dyn_ltree[26]!==0)return hQ;for(Q=32;Q<T1;Q++)if($.dyn_ltree[Q*2]!==0)return hQ;return fQ}var uQ=!1;function Q3($){if(!uQ)r7(),uQ=!0;$.l_desc=new x8($.dyn_ltree,rQ),$.d_desc=new x8($.dyn_dtree,sQ),$.bl_desc=new x8($.bl_tree,tQ),$.bi_buf=0,$.bi_valid=0,V5($)}function X5($,V,Q,q){h0($,(p7<<1)+(q?1:0),3),s7($,V,Q,!0)}function V3($){h0($,dQ<<1,3),s0($,y8,U6),n7($)}function q3($,V,Q,q){var K,G,W=0;if($.level>0){if($.strm.data_type===m7)$.strm.data_type=$3($);if(k8($,$.l_desc),k8($,$.d_desc),W=t7($),K=$.opt_len+3+7>>>3,G=$.static_len+3+7>>>3,G<=K)K=G}else K=G=Q+5;if(Q+4<=K&&V!==-1)X5($,V,Q,q);else if($.strategy===_7||G===K)h0($,(dQ<<1)+(q?1:0),3),mQ($,U6,N1);else h0($,(c7<<1)+(q?1:0),3),e7($,$.l_desc.max_code+1,$.d_desc.max_code+1,W+1),mQ($,$.dyn_ltree,$.dyn_dtree);if(V5($),q)q5($)}function X3($,V,Q){if($.pending_buf[$.d_buf+$.last_lit*2]=V>>>8&255,$.pending_buf[$.d_buf+$.last_lit*2+1]=V&255,$.pending_buf[$.l_buf+$.last_lit]=Q&255,$.last_lit++,V===0)$.dyn_ltree[Q*2]++;else $.matches++,V--,$.dyn_ltree[(R1[Q]+T1+1)*2]++,$.dyn_dtree[eQ(V)*2]++;return $.last_lit===$.lit_bufsize-1}Y3._tr_init=Q3;Y3._tr_stored_block=X5;Y3._tr_flush_block=q3;Y3._tr_tally=X3;Y3._tr_align=V3});var f8=$0((OK,K5)=>{function j3($,V,Q,q){var K=$&65535|0,G=$>>>16&65535|0,W=0;while(Q!==0){W=Q>2000?2000:Q,Q-=W;do K=K+V[q++]|0,G=G+K|0;while(--W);K%=65521,G%=65521}return K|G<<16|0}K5.exports=j3});var h8=$0((BK,J5)=>{function P3(){var $,V=[];for(var Q=0;Q<256;Q++){$=Q;for(var q=0;q<8;q++)$=$&1?3988292384^$>>>1:$>>>1;V[Q]=$}return V}var z3=P3();function Z3($,V,Q,q){var K=z3,G=q+Q;$^=-1;for(var W=q;W<G;W++)$=$>>>8^K[($^V[W])&255];return $^-1}J5.exports=Z3});var K2=$0((CK,G5)=>{G5.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var M5=$0((i3)=>{var y0=G6(),p0=Y5(),P5=f8(),L6=h8(),F3=K2(),m6=0,H3=1,M3=3,D6=4,U5=5,e0=0,W5=1,c0=-2,L3=-3,_8=-5,O3=-1,B3=1,J2=2,C3=3,I3=4,D3=0,w3=2,j2=8,N3=9,v3=15,A3=8,R3=29,x3=256,p8=x3+1+R3,T3=30,S3=19,k3=2*p8+1,g3=15,K0=3,C6=258,o0=C6+K0+1,E3=32,P2=42,c8=69,G2=73,U2=91,W2=103,f6=113,k1=666,T0=1,g1=2,h6=3,K1=4,y3=3;function I6($,V){return $.msg=F3[V],V}function j5($){return($<<1)-($>4?9:0)}function B6($){var V=$.length;while(--V>=0)$[V]=0}function O6($){var V=$.state,Q=V.pending;if(Q>$.avail_out)Q=$.avail_out;if(Q===0)return;if(y0.arraySet($.output,V.pending_buf,V.pending_out,Q,$.next_out),$.next_out+=Q,V.pending_out+=Q,$.total_out+=Q,$.avail_out-=Q,V.pending-=Q,V.pending===0)V.pending_out=0}function S0($,V){p0._tr_flush_block($,$.block_start>=0?$.block_start:-1,$.strstart-$.block_start,V),$.block_start=$.strstart,O6($.strm)}function P0($,V){$.pending_buf[$.pending++]=V}function S1($,V){$.pending_buf[$.pending++]=V>>>8&255,$.pending_buf[$.pending++]=V&255}function b3($,V,Q,q){var K=$.avail_in;if(K>q)K=q;if(K===0)return 0;if($.avail_in-=K,y0.arraySet(V,$.input,$.next_in,K,Q),$.state.wrap===1)$.adler=P5($.adler,V,K,Q);else if($.state.wrap===2)$.adler=L6($.adler,V,K,Q);return $.next_in+=K,$.total_in+=K,K}function z5($,V){var{max_chain_length:Q,strstart:q}=$,K,G,W=$.prev_length,J=$.nice_match,P=$.strstart>$.w_size-o0?$.strstart-($.w_size-o0):0,j=$.window,z=$.w_mask,C=$.prev,w=$.strstart+C6,R=j[q+W-1],x=j[q+W];if($.prev_length>=$.good_match)Q>>=2;if(J>$.lookahead)J=$.lookahead;do{if(K=V,j[K+W]!==x||j[K+W-1]!==R||j[K]!==j[q]||j[++K]!==j[q+1])continue;q+=2,K++;do;while(j[++q]===j[++K]&&j[++q]===j[++K]&&j[++q]===j[++K]&&j[++q]===j[++K]&&j[++q]===j[++K]&&j[++q]===j[++K]&&j[++q]===j[++K]&&j[++q]===j[++K]&&q<w);if(G=C6-(w-q),q=w-C6,G>W){if($.match_start=V,W=G,G>=J)break;R=j[q+W-1],x=j[q+W]}}while((V=C[V&z])>P&&--Q!==0);if(W<=$.lookahead)return W;return $.lookahead}function _6($){var V=$.w_size,Q,q,K,G,W;do{if(G=$.window_size-$.lookahead-$.strstart,$.strstart>=V+(V-o0)){y0.arraySet($.window,$.window,V,V,0),$.match_start-=V,$.strstart-=V,$.block_start-=V,q=$.hash_size,Q=q;do K=$.head[--Q],$.head[Q]=K>=V?K-V:0;while(--q);q=V,Q=q;do K=$.prev[--Q],$.prev[Q]=K>=V?K-V:0;while(--q);G+=V}if($.strm.avail_in===0)break;if(q=b3($.strm,$.window,$.strstart+$.lookahead,G),$.lookahead+=q,$.lookahead+$.insert>=K0){W=$.strstart-$.insert,$.ins_h=$.window[W],$.ins_h=($.ins_h<<$.hash_shift^$.window[W+1])&$.hash_mask;while($.insert)if($.ins_h=($.ins_h<<$.hash_shift^$.window[W+K0-1])&$.hash_mask,$.prev[W&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=W,W++,$.insert--,$.lookahead+$.insert<K0)break}}while($.lookahead<o0&&$.strm.avail_in!==0)}function f3($,V){var Q=65535;if(Q>$.pending_buf_size-5)Q=$.pending_buf_size-5;for(;;){if($.lookahead<=1){if(_6($),$.lookahead===0&&V===m6)return T0;if($.lookahead===0)break}$.strstart+=$.lookahead,$.lookahead=0;var q=$.block_start+Q;if($.strstart===0||$.strstart>=q){if($.lookahead=$.strstart-q,$.strstart=q,S0($,!1),$.strm.avail_out===0)return T0}if($.strstart-$.block_start>=$.w_size-o0){if(S0($,!1),$.strm.avail_out===0)return T0}}if($.insert=0,V===D6){if(S0($,!0),$.strm.avail_out===0)return h6;return K1}if($.strstart>$.block_start){if(S0($,!1),$.strm.avail_out===0)return T0}return T0}function m8($,V){var Q,q;for(;;){if($.lookahead<o0){if(_6($),$.lookahead<o0&&V===m6)return T0;if($.lookahead===0)break}if(Q=0,$.lookahead>=K0)$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+K0-1])&$.hash_mask,Q=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;if(Q!==0&&$.strstart-Q<=$.w_size-o0)$.match_length=z5($,Q);if($.match_length>=K0)if(q=p0._tr_tally($,$.strstart-$.match_start,$.match_length-K0),$.lookahead-=$.match_length,$.match_length<=$.max_lazy_match&&$.lookahead>=K0){$.match_length--;do $.strstart++,$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+K0-1])&$.hash_mask,Q=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;while(--$.match_length!==0);$.strstart++}else $.strstart+=$.match_length,$.match_length=0,$.ins_h=$.window[$.strstart],$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+1])&$.hash_mask;else q=p0._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++;if(q){if(S0($,!1),$.strm.avail_out===0)return T0}}if($.insert=$.strstart<K0-1?$.strstart:K0-1,V===D6){if(S0($,!0),$.strm.avail_out===0)return h6;return K1}if($.last_lit){if(S0($,!1),$.strm.avail_out===0)return T0}return g1}function X1($,V){var Q,q,K;for(;;){if($.lookahead<o0){if(_6($),$.lookahead<o0&&V===m6)return T0;if($.lookahead===0)break}if(Q=0,$.lookahead>=K0)$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+K0-1])&$.hash_mask,Q=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;if($.prev_length=$.match_length,$.prev_match=$.match_start,$.match_length=K0-1,Q!==0&&$.prev_length<$.max_lazy_match&&$.strstart-Q<=$.w_size-o0){if($.match_length=z5($,Q),$.match_length<=5&&($.strategy===B3||$.match_length===K0&&$.strstart-$.match_start>4096))$.match_length=K0-1}if($.prev_length>=K0&&$.match_length<=$.prev_length){K=$.strstart+$.lookahead-K0,q=p0._tr_tally($,$.strstart-1-$.prev_match,$.prev_length-K0),$.lookahead-=$.prev_length-1,$.prev_length-=2;do if(++$.strstart<=K)$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+K0-1])&$.hash_mask,Q=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;while(--$.prev_length!==0);if($.match_available=0,$.match_length=K0-1,$.strstart++,q){if(S0($,!1),$.strm.avail_out===0)return T0}}else if($.match_available){if(q=p0._tr_tally($,0,$.window[$.strstart-1]),q)S0($,!1);if($.strstart++,$.lookahead--,$.strm.avail_out===0)return T0}else $.match_available=1,$.strstart++,$.lookahead--}if($.match_available)q=p0._tr_tally($,0,$.window[$.strstart-1]),$.match_available=0;if($.insert=$.strstart<K0-1?$.strstart:K0-1,V===D6){if(S0($,!0),$.strm.avail_out===0)return h6;return K1}if($.last_lit){if(S0($,!1),$.strm.avail_out===0)return T0}return g1}function h3($,V){var Q,q,K,G,W=$.window;for(;;){if($.lookahead<=C6){if(_6($),$.lookahead<=C6&&V===m6)return T0;if($.lookahead===0)break}if($.match_length=0,$.lookahead>=K0&&$.strstart>0){if(K=$.strstart-1,q=W[K],q===W[++K]&&q===W[++K]&&q===W[++K]){G=$.strstart+C6;do;while(q===W[++K]&&q===W[++K]&&q===W[++K]&&q===W[++K]&&q===W[++K]&&q===W[++K]&&q===W[++K]&&q===W[++K]&&K<G);if($.match_length=C6-(G-K),$.match_length>$.lookahead)$.match_length=$.lookahead}}if($.match_length>=K0)Q=p0._tr_tally($,1,$.match_length-K0),$.lookahead-=$.match_length,$.strstart+=$.match_length,$.match_length=0;else Q=p0._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++;if(Q){if(S0($,!1),$.strm.avail_out===0)return T0}}if($.insert=0,V===D6){if(S0($,!0),$.strm.avail_out===0)return h6;return K1}if($.last_lit){if(S0($,!1),$.strm.avail_out===0)return T0}return g1}function _3($,V){var Q;for(;;){if($.lookahead===0){if(_6($),$.lookahead===0){if(V===m6)return T0;break}}if($.match_length=0,Q=p0._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++,Q){if(S0($,!1),$.strm.avail_out===0)return T0}}if($.insert=0,V===D6){if(S0($,!0),$.strm.avail_out===0)return h6;return K1}if($.last_lit){if(S0($,!1),$.strm.avail_out===0)return T0}return g1}function t0($,V,Q,q,K){this.good_length=$,this.max_lazy=V,this.nice_length=Q,this.max_chain=q,this.func=K}var Y1;Y1=[new t0(0,0,0,0,f3),new t0(4,4,8,4,m8),new t0(4,5,16,8,m8),new t0(4,6,32,32,m8),new t0(4,4,16,16,X1),new t0(8,16,32,32,X1),new t0(8,16,128,128,X1),new t0(8,32,128,256,X1),new t0(32,128,258,1024,X1),new t0(32,258,258,4096,X1)];function m3($){$.window_size=2*$.w_size,B6($.head),$.max_lazy_match=Y1[$.level].max_lazy,$.good_match=Y1[$.level].good_length,$.nice_match=Y1[$.level].nice_length,$.max_chain_length=Y1[$.level].max_chain,$.strstart=0,$.block_start=0,$.lookahead=0,$.insert=0,$.match_length=$.prev_length=K0-1,$.match_available=0,$.ins_h=0}function p3(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=j2,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new y0.Buf16(k3*2),this.dyn_dtree=new y0.Buf16((2*T3+1)*2),this.bl_tree=new y0.Buf16((2*S3+1)*2),B6(this.dyn_ltree),B6(this.dyn_dtree),B6(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new y0.Buf16(g3+1),this.heap=new y0.Buf16(2*p8+1),B6(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new y0.Buf16(2*p8+1),B6(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Z5($){var V;if(!$||!$.state)return I6($,c0);if($.total_in=$.total_out=0,$.data_type=w3,V=$.state,V.pending=0,V.pending_out=0,V.wrap<0)V.wrap=-V.wrap;return V.status=V.wrap?P2:f6,$.adler=V.wrap===2?0:1,V.last_flush=m6,p0._tr_init(V),e0}function F5($){var V=Z5($);if(V===e0)m3($.state);return V}function c3($,V){if(!$||!$.state)return c0;if($.state.wrap!==2)return c0;return $.state.gzhead=V,e0}function H5($,V,Q,q,K,G){if(!$)return c0;var W=1;if(V===O3)V=6;if(q<0)W=0,q=-q;else if(q>15)W=2,q-=16;if(K<1||K>N3||Q!==j2||q<8||q>15||V<0||V>9||G<0||G>I3)return I6($,c0);if(q===8)q=9;var J=new p3;return $.state=J,J.strm=$,J.wrap=W,J.gzhead=null,J.w_bits=q,J.w_size=1<<J.w_bits,J.w_mask=J.w_size-1,J.hash_bits=K+7,J.hash_size=1<<J.hash_bits,J.hash_mask=J.hash_size-1,J.hash_shift=~~((J.hash_bits+K0-1)/K0),J.window=new y0.Buf8(J.w_size*2),J.head=new y0.Buf16(J.hash_size),J.prev=new y0.Buf16(J.w_size),J.lit_bufsize=1<<K+6,J.pending_buf_size=J.lit_bufsize*4,J.pending_buf=new y0.Buf8(J.pending_buf_size),J.d_buf=1*J.lit_bufsize,J.l_buf=3*J.lit_bufsize,J.level=V,J.strategy=G,J.method=Q,F5($)}function u3($,V){return H5($,V,j2,v3,A3,D3)}function d3($,V){var Q,q,K,G;if(!$||!$.state||V>U5||V<0)return $?I6($,c0):c0;if(q=$.state,!$.output||!$.input&&$.avail_in!==0||q.status===k1&&V!==D6)return I6($,$.avail_out===0?_8:c0);if(q.strm=$,Q=q.last_flush,q.last_flush=V,q.status===P2)if(q.wrap===2)if($.adler=0,P0(q,31),P0(q,139),P0(q,8),!q.gzhead)P0(q,0),P0(q,0),P0(q,0),P0(q,0),P0(q,0),P0(q,q.level===9?2:q.strategy>=J2||q.level<2?4:0),P0(q,y3),q.status=f6;else{if(P0(q,(q.gzhead.text?1:0)+(q.gzhead.hcrc?2:0)+(!q.gzhead.extra?0:4)+(!q.gzhead.name?0:8)+(!q.gzhead.comment?0:16)),P0(q,q.gzhead.time&255),P0(q,q.gzhead.time>>8&255),P0(q,q.gzhead.time>>16&255),P0(q,q.gzhead.time>>24&255),P0(q,q.level===9?2:q.strategy>=J2||q.level<2?4:0),P0(q,q.gzhead.os&255),q.gzhead.extra&&q.gzhead.extra.length)P0(q,q.gzhead.extra.length&255),P0(q,q.gzhead.extra.length>>8&255);if(q.gzhead.hcrc)$.adler=L6($.adler,q.pending_buf,q.pending,0);q.gzindex=0,q.status=c8}else{var W=j2+(q.w_bits-8<<4)<<8,J=-1;if(q.strategy>=J2||q.level<2)J=0;else if(q.level<6)J=1;else if(q.level===6)J=2;else J=3;if(W|=J<<6,q.strstart!==0)W|=E3;if(W+=31-W%31,q.status=f6,S1(q,W),q.strstart!==0)S1(q,$.adler>>>16),S1(q,$.adler&65535);$.adler=1}if(q.status===c8)if(q.gzhead.extra){K=q.pending;while(q.gzindex<(q.gzhead.extra.length&65535)){if(q.pending===q.pending_buf_size){if(q.gzhead.hcrc&&q.pending>K)$.adler=L6($.adler,q.pending_buf,q.pending-K,K);if(O6($),K=q.pending,q.pending===q.pending_buf_size)break}P0(q,q.gzhead.extra[q.gzindex]&255),q.gzindex++}if(q.gzhead.hcrc&&q.pending>K)$.adler=L6($.adler,q.pending_buf,q.pending-K,K);if(q.gzindex===q.gzhead.extra.length)q.gzindex=0,q.status=G2}else q.status=G2;if(q.status===G2)if(q.gzhead.name){K=q.pending;do{if(q.pending===q.pending_buf_size){if(q.gzhead.hcrc&&q.pending>K)$.adler=L6($.adler,q.pending_buf,q.pending-K,K);if(O6($),K=q.pending,q.pending===q.pending_buf_size){G=1;break}}if(q.gzindex<q.gzhead.name.length)G=q.gzhead.name.charCodeAt(q.gzindex++)&255;else G=0;P0(q,G)}while(G!==0);if(q.gzhead.hcrc&&q.pending>K)$.adler=L6($.adler,q.pending_buf,q.pending-K,K);if(G===0)q.gzindex=0,q.status=U2}else q.status=U2;if(q.status===U2)if(q.gzhead.comment){K=q.pending;do{if(q.pending===q.pending_buf_size){if(q.gzhead.hcrc&&q.pending>K)$.adler=L6($.adler,q.pending_buf,q.pending-K,K);if(O6($),K=q.pending,q.pending===q.pending_buf_size){G=1;break}}if(q.gzindex<q.gzhead.comment.length)G=q.gzhead.comment.charCodeAt(q.gzindex++)&255;else G=0;P0(q,G)}while(G!==0);if(q.gzhead.hcrc&&q.pending>K)$.adler=L6($.adler,q.pending_buf,q.pending-K,K);if(G===0)q.status=W2}else q.status=W2;if(q.status===W2)if(q.gzhead.hcrc){if(q.pending+2>q.pending_buf_size)O6($);if(q.pending+2<=q.pending_buf_size)P0(q,$.adler&255),P0(q,$.adler>>8&255),$.adler=0,q.status=f6}else q.status=f6;if(q.pending!==0){if(O6($),$.avail_out===0)return q.last_flush=-1,e0}else if($.avail_in===0&&j5(V)<=j5(Q)&&V!==D6)return I6($,_8);if(q.status===k1&&$.avail_in!==0)return I6($,_8);if($.avail_in!==0||q.lookahead!==0||V!==m6&&q.status!==k1){var P=q.strategy===J2?_3(q,V):q.strategy===C3?h3(q,V):Y1[q.level].func(q,V);if(P===h6||P===K1)q.status=k1;if(P===T0||P===h6){if($.avail_out===0)q.last_flush=-1;return e0}if(P===g1){if(V===H3)p0._tr_align(q);else if(V!==U5){if(p0._tr_stored_block(q,0,0,!1),V===M3){if(B6(q.head),q.lookahead===0)q.strstart=0,q.block_start=0,q.insert=0}}if(O6($),$.avail_out===0)return q.last_flush=-1,e0}}if(V!==D6)return e0;if(q.wrap<=0)return W5;if(q.wrap===2)P0(q,$.adler&255),P0(q,$.adler>>8&255),P0(q,$.adler>>16&255),P0(q,$.adler>>24&255),P0(q,$.total_in&255),P0(q,$.total_in>>8&255),P0(q,$.total_in>>16&255),P0(q,$.total_in>>24&255);else S1(q,$.adler>>>16),S1(q,$.adler&65535);if(O6($),q.wrap>0)q.wrap=-q.wrap;return q.pending!==0?e0:W5}function l3($){var V;if(!$||!$.state)return c0;if(V=$.state.status,V!==P2&&V!==c8&&V!==G2&&V!==U2&&V!==W2&&V!==f6&&V!==k1)return I6($,c0);return $.state=null,V===f6?I6($,L3):e0}function o3($,V){var Q=V.length,q,K,G,W,J,P,j,z;if(!$||!$.state)return c0;if(q=$.state,W=q.wrap,W===2||W===1&&q.status!==P2||q.lookahead)return c0;if(W===1)$.adler=P5($.adler,V,Q,0);if(q.wrap=0,Q>=q.w_size){if(W===0)B6(q.head),q.strstart=0,q.block_start=0,q.insert=0;z=new y0.Buf8(q.w_size),y0.arraySet(z,V,Q-q.w_size,q.w_size,0),V=z,Q=q.w_size}J=$.avail_in,P=$.next_in,j=$.input,$.avail_in=Q,$.next_in=0,$.input=V,_6(q);while(q.lookahead>=K0){K=q.strstart,G=q.lookahead-(K0-1);do q.ins_h=(q.ins_h<<q.hash_shift^q.window[K+K0-1])&q.hash_mask,q.prev[K&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=K,K++;while(--G);q.strstart=K,q.lookahead=K0-1,_6(q)}return q.strstart+=q.lookahead,q.block_start=q.strstart,q.insert=q.lookahead,q.lookahead=0,q.match_length=q.prev_length=K0-1,q.match_available=0,$.next_in=P,$.input=j,$.avail_in=J,q.wrap=W,e0}i3.deflateInit=u3;i3.deflateInit2=H5;i3.deflateReset=F5;i3.deflateResetKeep=Z5;i3.deflateSetHeader=c3;i3.deflate=d3;i3.deflateEnd=l3;i3.deflateSetDictionary=o3;i3.deflateInfo="pako deflate (from Nodeca project)"});var u8=$0((qX)=>{var z2=G6(),L5=!0,O5=!0;try{String.fromCharCode.apply(null,[0])}catch($){L5=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch($){O5=!1}var E1=new z2.Buf8(256);for(W6=0;W6<256;W6++)E1[W6]=W6>=252?6:W6>=248?5:W6>=240?4:W6>=224?3:W6>=192?2:1;var W6;E1[254]=E1[254]=1;qX.string2buf=function($){var V,Q,q,K,G,W=$.length,J=0;for(K=0;K<W;K++){if(Q=$.charCodeAt(K),(Q&64512)===55296&&K+1<W){if(q=$.charCodeAt(K+1),(q&64512)===56320)Q=65536+(Q-55296<<10)+(q-56320),K++}J+=Q<128?1:Q<2048?2:Q<65536?3:4}V=new z2.Buf8(J);for(G=0,K=0;G<J;K++){if(Q=$.charCodeAt(K),(Q&64512)===55296&&K+1<W){if(q=$.charCodeAt(K+1),(q&64512)===56320)Q=65536+(Q-55296<<10)+(q-56320),K++}if(Q<128)V[G++]=Q;else if(Q<2048)V[G++]=192|Q>>>6,V[G++]=128|Q&63;else if(Q<65536)V[G++]=224|Q>>>12,V[G++]=128|Q>>>6&63,V[G++]=128|Q&63;else V[G++]=240|Q>>>18,V[G++]=128|Q>>>12&63,V[G++]=128|Q>>>6&63,V[G++]=128|Q&63}return V};function B5($,V){if(V<65534){if($.subarray&&O5||!$.subarray&&L5)return String.fromCharCode.apply(null,z2.shrinkBuf($,V))}var Q="";for(var q=0;q<V;q++)Q+=String.fromCharCode($[q]);return Q}qX.buf2binstring=function($){return B5($,$.length)};qX.binstring2buf=function($){var V=new z2.Buf8($.length);for(var Q=0,q=V.length;Q<q;Q++)V[Q]=$.charCodeAt(Q);return V};qX.buf2string=function($,V){var Q,q,K,G,W=V||$.length,J=new Array(W*2);for(q=0,Q=0;Q<W;){if(K=$[Q++],K<128){J[q++]=K;continue}if(G=E1[K],G>4){J[q++]=65533,Q+=G-1;continue}K&=G===2?31:G===3?15:7;while(G>1&&Q<W)K=K<<6|$[Q++]&63,G--;if(G>1){J[q++]=65533;continue}if(K<65536)J[q++]=K;else K-=65536,J[q++]=55296|K>>10&1023,J[q++]=56320|K&1023}return B5(J,q)};qX.utf8border=function($,V){var Q;if(V=V||$.length,V>$.length)V=$.length;Q=V-1;while(Q>=0&&($[Q]&192)===128)Q--;if(Q<0)return V;if(Q===0)return V;return Q+E1[$[Q]]>V?Q:V}});var d8=$0((wK,C5)=>{function UX(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}C5.exports=UX});var N5=$0((MX)=>{var y1=M5(),b1=G6(),o8=u8(),i8=K2(),WX=d8(),w5=Object.prototype.toString,jX=0,l8=4,J1=0,I5=1,D5=2,PX=-1,zX=0,ZX=8;function p6($){if(!(this instanceof p6))return new p6($);this.options=b1.assign({level:PX,method:ZX,chunkSize:16384,windowBits:15,memLevel:8,strategy:zX,to:""},$||{});var V=this.options;if(V.raw&&V.windowBits>0)V.windowBits=-V.windowBits;else if(V.gzip&&V.windowBits>0&&V.windowBits<16)V.windowBits+=16;this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new WX,this.strm.avail_out=0;var Q=y1.deflateInit2(this.strm,V.level,V.method,V.windowBits,V.memLevel,V.strategy);if(Q!==J1)throw new Error(i8[Q]);if(V.header)y1.deflateSetHeader(this.strm,V.header);if(V.dictionary){var q;if(typeof V.dictionary==="string")q=o8.string2buf(V.dictionary);else if(w5.call(V.dictionary)==="[object ArrayBuffer]")q=new Uint8Array(V.dictionary);else q=V.dictionary;if(Q=y1.deflateSetDictionary(this.strm,q),Q!==J1)throw new Error(i8[Q]);this._dict_set=!0}}p6.prototype.push=function($,V){var Q=this.strm,q=this.options.chunkSize,K,G;if(this.ended)return!1;if(G=V===~~V?V:V===!0?l8:jX,typeof $==="string")Q.input=o8.string2buf($);else if(w5.call($)==="[object ArrayBuffer]")Q.input=new Uint8Array($);else Q.input=$;Q.next_in=0,Q.avail_in=Q.input.length;do{if(Q.avail_out===0)Q.output=new b1.Buf8(q),Q.next_out=0,Q.avail_out=q;if(K=y1.deflate(Q,G),K!==I5&&K!==J1)return this.onEnd(K),this.ended=!0,!1;if(Q.avail_out===0||Q.avail_in===0&&(G===l8||G===D5))if(this.options.to==="string")this.onData(o8.buf2binstring(b1.shrinkBuf(Q.output,Q.next_out)));else this.onData(b1.shrinkBuf(Q.output,Q.next_out))}while((Q.avail_in>0||Q.avail_out===0)&&K!==I5);if(G===l8)return K=y1.deflateEnd(this.strm),this.onEnd(K),this.ended=!0,K===J1;if(G===D5)return this.onEnd(J1),Q.avail_out=0,!0;return!0};p6.prototype.onData=function($){this.chunks.push($)};p6.prototype.onEnd=function($){if($===J1)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=b1.flattenChunks(this.chunks);this.chunks=[],this.err=$,this.msg=this.strm.msg};function n8($,V){var Q=new p6(V);if(Q.push($,!0),Q.err)throw Q.msg||i8[Q.err];return Q.result}function FX($,V){return V=V||{},V.raw=!0,n8($,V)}function HX($,V){return V=V||{},V.gzip=!0,n8($,V)}MX.Deflate=p6;MX.deflate=n8;MX.deflateRaw=FX;MX.gzip=HX});var A5=$0((vK,v5)=>{var Z2=30,IX=12;v5.exports=function $(V,Q){var q,K,G,W,J,P,j,z,C,w,R,x,S,g,y,Z,O,M,A,B,L,T,E,f,b;q=V.state,K=V.next_in,f=V.input,G=K+(V.avail_in-5),W=V.next_out,b=V.output,J=W-(Q-V.avail_out),P=W+(V.avail_out-257),j=q.dmax,z=q.wsize,C=q.whave,w=q.wnext,R=q.window,x=q.hold,S=q.bits,g=q.lencode,y=q.distcode,Z=(1<<q.lenbits)-1,O=(1<<q.distbits)-1;$:do{if(S<15)x+=f[K++]<<S,S+=8,x+=f[K++]<<S,S+=8;M=g[x&Z];Q:for(;;){if(A=M>>>24,x>>>=A,S-=A,A=M>>>16&255,A===0)b[W++]=M&65535;else if(A&16){if(B=M&65535,A&=15,A){if(S<A)x+=f[K++]<<S,S+=8;B+=x&(1<<A)-1,x>>>=A,S-=A}if(S<15)x+=f[K++]<<S,S+=8,x+=f[K++]<<S,S+=8;M=y[x&O];V:for(;;){if(A=M>>>24,x>>>=A,S-=A,A=M>>>16&255,A&16){if(L=M&65535,A&=15,S<A){if(x+=f[K++]<<S,S+=8,S<A)x+=f[K++]<<S,S+=8}if(L+=x&(1<<A)-1,L>j){V.msg="invalid distance too far back",q.mode=Z2;break $}if(x>>>=A,S-=A,A=W-J,L>A){if(A=L-A,A>C){if(q.sane){V.msg="invalid distance too far back",q.mode=Z2;break $}}if(T=0,E=R,w===0){if(T+=z-A,A<B){B-=A;do b[W++]=R[T++];while(--A);T=W-L,E=b}}else if(w<A){if(T+=z+w-A,A-=w,A<B){B-=A;do b[W++]=R[T++];while(--A);if(T=0,w<B){A=w,B-=A;do b[W++]=R[T++];while(--A);T=W-L,E=b}}}else if(T+=w-A,A<B){B-=A;do b[W++]=R[T++];while(--A);T=W-L,E=b}while(B>2)b[W++]=E[T++],b[W++]=E[T++],b[W++]=E[T++],B-=3;if(B){if(b[W++]=E[T++],B>1)b[W++]=E[T++]}}else{T=W-L;do b[W++]=b[T++],b[W++]=b[T++],b[W++]=b[T++],B-=3;while(B>2);if(B){if(b[W++]=b[T++],B>1)b[W++]=b[T++]}}}else if((A&64)===0){M=y[(M&65535)+(x&(1<<A)-1)];continue V}else{V.msg="invalid distance code",q.mode=Z2;break $}break}}else if((A&64)===0){M=g[(M&65535)+(x&(1<<A)-1)];continue Q}else if(A&32){q.mode=IX;break $}else{V.msg="invalid literal/length code",q.mode=Z2;break $}break}}while(K<G&&W<P);B=S>>3,K-=B,S-=B<<3,x&=(1<<S)-1,V.next_in=K,V.next_out=W,V.avail_in=K<G?5+(G-K):5-(K-G),V.avail_out=W<P?257+(P-W):257-(W-P),q.hold=x,q.bits=S;return}});var E5=$0((AK,g5)=>{var R5=G6(),G1=15,x5=852,T5=592,S5=0,a8=1,k5=2,DX=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],wX=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],NX=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],vX=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];g5.exports=function $(V,Q,q,K,G,W,J,P){var j=P.bits,z=0,C=0,w=0,R=0,x=0,S=0,g=0,y=0,Z=0,O=0,M,A,B,L,T,E=null,f=0,b,F=new R5.Buf16(G1+1),m=new R5.Buf16(G1+1),n=null,v=0,c,u,i;for(z=0;z<=G1;z++)F[z]=0;for(C=0;C<K;C++)F[Q[q+C]]++;x=j;for(R=G1;R>=1;R--)if(F[R]!==0)break;if(x>R)x=R;if(R===0)return G[W++]=20971520,G[W++]=20971520,P.bits=1,0;for(w=1;w<R;w++)if(F[w]!==0)break;if(x<w)x=w;y=1;for(z=1;z<=G1;z++)if(y<<=1,y-=F[z],y<0)return-1;if(y>0&&(V===S5||R!==1))return-1;m[1]=0;for(z=1;z<G1;z++)m[z+1]=m[z]+F[z];for(C=0;C<K;C++)if(Q[q+C]!==0)J[m[Q[q+C]]++]=C;if(V===S5)E=n=J,b=19;else if(V===a8)E=DX,f-=257,n=wX,v-=257,b=256;else E=NX,n=vX,b=-1;if(O=0,C=0,z=w,T=W,S=x,g=0,B=-1,Z=1<<x,L=Z-1,V===a8&&Z>x5||V===k5&&Z>T5)return 1;for(;;){if(c=z-g,J[C]<b)u=0,i=J[C];else if(J[C]>b)u=n[v+J[C]],i=E[f+J[C]];else u=96,i=0;M=1<<z-g,A=1<<S,w=A;do A-=M,G[T+(O>>g)+A]=c<<24|u<<16|i|0;while(A!==0);M=1<<z-1;while(O&M)M>>=1;if(M!==0)O&=M-1,O+=M;else O=0;if(C++,--F[z]===0){if(z===R)break;z=Q[q+J[C]]}if(z>x&&(O&L)!==B){if(g===0)g=x;T+=w,S=z-g,y=1<<S;while(S+g<R){if(y-=F[S+g],y<=0)break;S++,y<<=1}if(Z+=1<<S,V===a8&&Z>x5||V===k5&&Z>T5)return 1;B=O&L,G[B]=x<<24|S<<16|T-W|0}}if(O!==0)G[T+O]=z-g<<24|4194304|0;return P.bits=x,0}});var F9=$0((lX)=>{var m0=G6(),Q$=f8(),$6=h8(),AX=A5(),f1=E5(),RX=0,K9=1,J9=2,y5=4,xX=5,F2=6,c6=0,TX=1,SX=2,u0=-2,G9=-3,V$=-4,kX=-5,b5=8,U9=1,f5=2,h5=3,_5=4,m5=5,p5=6,c5=7,u5=8,d5=9,l5=10,L2=11,j6=12,r8=13,o5=14,s8=15,i5=16,n5=17,a5=18,r5=19,H2=20,M2=21,s5=22,t5=23,e5=24,$9=25,Q9=26,t8=27,V9=28,q9=29,I0=30,q$=31,gX=32,EX=852,yX=592,bX=15,fX=bX;function X9($){return($>>>24&255)+($>>>8&65280)+(($&65280)<<8)+(($&255)<<24)}function hX(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new m0.Buf16(320),this.work=new m0.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function W9($){var V;if(!$||!$.state)return u0;if(V=$.state,$.total_in=$.total_out=V.total=0,$.msg="",V.wrap)$.adler=V.wrap&1;return V.mode=U9,V.last=0,V.havedict=0,V.dmax=32768,V.head=null,V.hold=0,V.bits=0,V.lencode=V.lendyn=new m0.Buf32(EX),V.distcode=V.distdyn=new m0.Buf32(yX),V.sane=1,V.back=-1,c6}function j9($){var V;if(!$||!$.state)return u0;return V=$.state,V.wsize=0,V.whave=0,V.wnext=0,W9($)}function P9($,V){var Q,q;if(!$||!$.state)return u0;if(q=$.state,V<0)Q=0,V=-V;else if(Q=(V>>4)+1,V<48)V&=15;if(V&&(V<8||V>15))return u0;if(q.window!==null&&q.wbits!==V)q.window=null;return q.wrap=Q,q.wbits=V,j9($)}function z9($,V){var Q,q;if(!$)return u0;if(q=new hX,$.state=q,q.window=null,Q=P9($,V),Q!==c6)$.state=null;return Q}function _X($){return z9($,fX)}var Y9=!0,e8,$$;function mX($){if(Y9){var V;e8=new m0.Buf32(512),$$=new m0.Buf32(32),V=0;while(V<144)$.lens[V++]=8;while(V<256)$.lens[V++]=9;while(V<280)$.lens[V++]=7;while(V<288)$.lens[V++]=8;f1(K9,$.lens,0,288,e8,0,$.work,{bits:9}),V=0;while(V<32)$.lens[V++]=5;f1(J9,$.lens,0,32,$$,0,$.work,{bits:5}),Y9=!1}$.lencode=e8,$.lenbits=9,$.distcode=$$,$.distbits=5}function Z9($,V,Q,q){var K,G=$.state;if(G.window===null)G.wsize=1<<G.wbits,G.wnext=0,G.whave=0,G.window=new m0.Buf8(G.wsize);if(q>=G.wsize)m0.arraySet(G.window,V,Q-G.wsize,G.wsize,0),G.wnext=0,G.whave=G.wsize;else{if(K=G.wsize-G.wnext,K>q)K=q;if(m0.arraySet(G.window,V,Q-q,K,G.wnext),q-=K,q)m0.arraySet(G.window,V,Q-q,q,0),G.wnext=q,G.whave=G.wsize;else{if(G.wnext+=K,G.wnext===G.wsize)G.wnext=0;if(G.whave<G.wsize)G.whave+=K}}return 0}function pX($,V){var Q,q,K,G,W,J,P,j,z,C,w,R,x,S,g=0,y,Z,O,M,A,B,L,T,E=new m0.Buf8(4),f,b,F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!$||!$.state||!$.output||!$.input&&$.avail_in!==0)return u0;if(Q=$.state,Q.mode===j6)Q.mode=r8;W=$.next_out,K=$.output,P=$.avail_out,G=$.next_in,q=$.input,J=$.avail_in,j=Q.hold,z=Q.bits,C=J,w=P,T=c6;$:for(;;)switch(Q.mode){case U9:if(Q.wrap===0){Q.mode=r8;break}while(z<16){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(Q.wrap&2&&j===35615){Q.check=0,E[0]=j&255,E[1]=j>>>8&255,Q.check=$6(Q.check,E,2,0),j=0,z=0,Q.mode=f5;break}if(Q.flags=0,Q.head)Q.head.done=!1;if(!(Q.wrap&1)||(((j&255)<<8)+(j>>8))%31){$.msg="incorrect header check",Q.mode=I0;break}if((j&15)!==b5){$.msg="unknown compression method",Q.mode=I0;break}if(j>>>=4,z-=4,L=(j&15)+8,Q.wbits===0)Q.wbits=L;else if(L>Q.wbits){$.msg="invalid window size",Q.mode=I0;break}Q.dmax=1<<L,$.adler=Q.check=1,Q.mode=j&512?l5:j6,j=0,z=0;break;case f5:while(z<16){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(Q.flags=j,(Q.flags&255)!==b5){$.msg="unknown compression method",Q.mode=I0;break}if(Q.flags&57344){$.msg="unknown header flags set",Q.mode=I0;break}if(Q.head)Q.head.text=j>>8&1;if(Q.flags&512)E[0]=j&255,E[1]=j>>>8&255,Q.check=$6(Q.check,E,2,0);j=0,z=0,Q.mode=h5;case h5:while(z<32){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(Q.head)Q.head.time=j;if(Q.flags&512)E[0]=j&255,E[1]=j>>>8&255,E[2]=j>>>16&255,E[3]=j>>>24&255,Q.check=$6(Q.check,E,4,0);j=0,z=0,Q.mode=_5;case _5:while(z<16){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(Q.head)Q.head.xflags=j&255,Q.head.os=j>>8;if(Q.flags&512)E[0]=j&255,E[1]=j>>>8&255,Q.check=$6(Q.check,E,2,0);j=0,z=0,Q.mode=m5;case m5:if(Q.flags&1024){while(z<16){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(Q.length=j,Q.head)Q.head.extra_len=j;if(Q.flags&512)E[0]=j&255,E[1]=j>>>8&255,Q.check=$6(Q.check,E,2,0);j=0,z=0}else if(Q.head)Q.head.extra=null;Q.mode=p5;case p5:if(Q.flags&1024){if(R=Q.length,R>J)R=J;if(R){if(Q.head){if(L=Q.head.extra_len-Q.length,!Q.head.extra)Q.head.extra=new Array(Q.head.extra_len);m0.arraySet(Q.head.extra,q,G,R,L)}if(Q.flags&512)Q.check=$6(Q.check,q,R,G);J-=R,G+=R,Q.length-=R}if(Q.length)break $}Q.length=0,Q.mode=c5;case c5:if(Q.flags&2048){if(J===0)break $;R=0;do if(L=q[G+R++],Q.head&&L&&Q.length<65536)Q.head.name+=String.fromCharCode(L);while(L&&R<J);if(Q.flags&512)Q.check=$6(Q.check,q,R,G);if(J-=R,G+=R,L)break $}else if(Q.head)Q.head.name=null;Q.length=0,Q.mode=u5;case u5:if(Q.flags&4096){if(J===0)break $;R=0;do if(L=q[G+R++],Q.head&&L&&Q.length<65536)Q.head.comment+=String.fromCharCode(L);while(L&&R<J);if(Q.flags&512)Q.check=$6(Q.check,q,R,G);if(J-=R,G+=R,L)break $}else if(Q.head)Q.head.comment=null;Q.mode=d5;case d5:if(Q.flags&512){while(z<16){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(j!==(Q.check&65535)){$.msg="header crc mismatch",Q.mode=I0;break}j=0,z=0}if(Q.head)Q.head.hcrc=Q.flags>>9&1,Q.head.done=!0;$.adler=Q.check=0,Q.mode=j6;break;case l5:while(z<32){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}$.adler=Q.check=X9(j),j=0,z=0,Q.mode=L2;case L2:if(Q.havedict===0)return $.next_out=W,$.avail_out=P,$.next_in=G,$.avail_in=J,Q.hold=j,Q.bits=z,SX;$.adler=Q.check=1,Q.mode=j6;case j6:if(V===xX||V===F2)break $;case r8:if(Q.last){j>>>=z&7,z-=z&7,Q.mode=t8;break}while(z<3){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}switch(Q.last=j&1,j>>>=1,z-=1,j&3){case 0:Q.mode=o5;break;case 1:if(mX(Q),Q.mode=H2,V===F2){j>>>=2,z-=2;break $}break;case 2:Q.mode=n5;break;case 3:$.msg="invalid block type",Q.mode=I0}j>>>=2,z-=2;break;case o5:j>>>=z&7,z-=z&7;while(z<32){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if((j&65535)!==(j>>>16^65535)){$.msg="invalid stored block lengths",Q.mode=I0;break}if(Q.length=j&65535,j=0,z=0,Q.mode=s8,V===F2)break $;case s8:Q.mode=i5;case i5:if(R=Q.length,R){if(R>J)R=J;if(R>P)R=P;if(R===0)break $;m0.arraySet(K,q,G,R,W),J-=R,G+=R,P-=R,W+=R,Q.length-=R;break}Q.mode=j6;break;case n5:while(z<14){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(Q.nlen=(j&31)+257,j>>>=5,z-=5,Q.ndist=(j&31)+1,j>>>=5,z-=5,Q.ncode=(j&15)+4,j>>>=4,z-=4,Q.nlen>286||Q.ndist>30){$.msg="too many length or distance symbols",Q.mode=I0;break}Q.have=0,Q.mode=a5;case a5:while(Q.have<Q.ncode){while(z<3){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}Q.lens[F[Q.have++]]=j&7,j>>>=3,z-=3}while(Q.have<19)Q.lens[F[Q.have++]]=0;if(Q.lencode=Q.lendyn,Q.lenbits=7,f={bits:Q.lenbits},T=f1(RX,Q.lens,0,19,Q.lencode,0,Q.work,f),Q.lenbits=f.bits,T){$.msg="invalid code lengths set",Q.mode=I0;break}Q.have=0,Q.mode=r5;case r5:while(Q.have<Q.nlen+Q.ndist){for(;;){if(g=Q.lencode[j&(1<<Q.lenbits)-1],y=g>>>24,Z=g>>>16&255,O=g&65535,y<=z)break;if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(O<16)j>>>=y,z-=y,Q.lens[Q.have++]=O;else{if(O===16){b=y+2;while(z<b){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(j>>>=y,z-=y,Q.have===0){$.msg="invalid bit length repeat",Q.mode=I0;break}L=Q.lens[Q.have-1],R=3+(j&3),j>>>=2,z-=2}else if(O===17){b=y+3;while(z<b){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}j>>>=y,z-=y,L=0,R=3+(j&7),j>>>=3,z-=3}else{b=y+7;while(z<b){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}j>>>=y,z-=y,L=0,R=11+(j&127),j>>>=7,z-=7}if(Q.have+R>Q.nlen+Q.ndist){$.msg="invalid bit length repeat",Q.mode=I0;break}while(R--)Q.lens[Q.have++]=L}}if(Q.mode===I0)break;if(Q.lens[256]===0){$.msg="invalid code -- missing end-of-block",Q.mode=I0;break}if(Q.lenbits=9,f={bits:Q.lenbits},T=f1(K9,Q.lens,0,Q.nlen,Q.lencode,0,Q.work,f),Q.lenbits=f.bits,T){$.msg="invalid literal/lengths set",Q.mode=I0;break}if(Q.distbits=6,Q.distcode=Q.distdyn,f={bits:Q.distbits},T=f1(J9,Q.lens,Q.nlen,Q.ndist,Q.distcode,0,Q.work,f),Q.distbits=f.bits,T){$.msg="invalid distances set",Q.mode=I0;break}if(Q.mode=H2,V===F2)break $;case H2:Q.mode=M2;case M2:if(J>=6&&P>=258){if($.next_out=W,$.avail_out=P,$.next_in=G,$.avail_in=J,Q.hold=j,Q.bits=z,AX($,w),W=$.next_out,K=$.output,P=$.avail_out,G=$.next_in,q=$.input,J=$.avail_in,j=Q.hold,z=Q.bits,Q.mode===j6)Q.back=-1;break}Q.back=0;for(;;){if(g=Q.lencode[j&(1<<Q.lenbits)-1],y=g>>>24,Z=g>>>16&255,O=g&65535,y<=z)break;if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(Z&&(Z&240)===0){M=y,A=Z,B=O;for(;;){if(g=Q.lencode[B+((j&(1<<M+A)-1)>>M)],y=g>>>24,Z=g>>>16&255,O=g&65535,M+y<=z)break;if(J===0)break $;J--,j+=q[G++]<<z,z+=8}j>>>=M,z-=M,Q.back+=M}if(j>>>=y,z-=y,Q.back+=y,Q.length=O,Z===0){Q.mode=Q9;break}if(Z&32){Q.back=-1,Q.mode=j6;break}if(Z&64){$.msg="invalid literal/length code",Q.mode=I0;break}Q.extra=Z&15,Q.mode=s5;case s5:if(Q.extra){b=Q.extra;while(z<b){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}Q.length+=j&(1<<Q.extra)-1,j>>>=Q.extra,z-=Q.extra,Q.back+=Q.extra}Q.was=Q.length,Q.mode=t5;case t5:for(;;){if(g=Q.distcode[j&(1<<Q.distbits)-1],y=g>>>24,Z=g>>>16&255,O=g&65535,y<=z)break;if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if((Z&240)===0){M=y,A=Z,B=O;for(;;){if(g=Q.distcode[B+((j&(1<<M+A)-1)>>M)],y=g>>>24,Z=g>>>16&255,O=g&65535,M+y<=z)break;if(J===0)break $;J--,j+=q[G++]<<z,z+=8}j>>>=M,z-=M,Q.back+=M}if(j>>>=y,z-=y,Q.back+=y,Z&64){$.msg="invalid distance code",Q.mode=I0;break}Q.offset=O,Q.extra=Z&15,Q.mode=e5;case e5:if(Q.extra){b=Q.extra;while(z<b){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}Q.offset+=j&(1<<Q.extra)-1,j>>>=Q.extra,z-=Q.extra,Q.back+=Q.extra}if(Q.offset>Q.dmax){$.msg="invalid distance too far back",Q.mode=I0;break}Q.mode=$9;case $9:if(P===0)break $;if(R=w-P,Q.offset>R){if(R=Q.offset-R,R>Q.whave){if(Q.sane){$.msg="invalid distance too far back",Q.mode=I0;break}}if(R>Q.wnext)R-=Q.wnext,x=Q.wsize-R;else x=Q.wnext-R;if(R>Q.length)R=Q.length;S=Q.window}else S=K,x=W-Q.offset,R=Q.length;if(R>P)R=P;P-=R,Q.length-=R;do K[W++]=S[x++];while(--R);if(Q.length===0)Q.mode=M2;break;case Q9:if(P===0)break $;K[W++]=Q.length,P--,Q.mode=M2;break;case t8:if(Q.wrap){while(z<32){if(J===0)break $;J--,j|=q[G++]<<z,z+=8}if(w-=P,$.total_out+=w,Q.total+=w,w)$.adler=Q.check=Q.flags?$6(Q.check,K,w,W-w):Q$(Q.check,K,w,W-w);if(w=P,(Q.flags?j:X9(j))!==Q.check){$.msg="incorrect data check",Q.mode=I0;break}j=0,z=0}Q.mode=V9;case V9:if(Q.wrap&&Q.flags){while(z<32){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(j!==(Q.total&4294967295)){$.msg="incorrect length check",Q.mode=I0;break}j=0,z=0}Q.mode=q9;case q9:T=TX;break $;case I0:T=G9;break $;case q$:return V$;case gX:default:return u0}if($.next_out=W,$.avail_out=P,$.next_in=G,$.avail_in=J,Q.hold=j,Q.bits=z,Q.wsize||w!==$.avail_out&&Q.mode<I0&&(Q.mode<t8||V!==y5)){if(Z9($,$.output,$.next_out,w-$.avail_out))return Q.mode=q$,V$}if(C-=$.avail_in,w-=$.avail_out,$.total_in+=C,$.total_out+=w,Q.total+=w,Q.wrap&&w)$.adler=Q.check=Q.flags?$6(Q.check,K,w,$.next_out-w):Q$(Q.check,K,w,$.next_out-w);if($.data_type=Q.bits+(Q.last?64:0)+(Q.mode===j6?128:0)+(Q.mode===H2||Q.mode===s8?256:0),(C===0&&w===0||V===y5)&&T===c6)T=kX;return T}function cX($){if(!$||!$.state)return u0;var V=$.state;if(V.window)V.window=null;return $.state=null,c6}function uX($,V){var Q;if(!$||!$.state)return u0;if(Q=$.state,(Q.wrap&2)===0)return u0;return Q.head=V,V.done=!1,c6}function dX($,V){var Q=V.length,q,K,G;if(!$||!$.state)return u0;if(q=$.state,q.wrap!==0&&q.mode!==L2)return u0;if(q.mode===L2){if(K=1,K=Q$(K,V,Q,0),K!==q.check)return G9}if(G=Z9($,V,Q,Q),G)return q.mode=q$,V$;return q.havedict=1,c6}lX.inflateReset=j9;lX.inflateReset2=P9;lX.inflateResetKeep=W9;lX.inflateInit=_X;lX.inflateInit2=z9;lX.inflate=pX;lX.inflateEnd=cX;lX.inflateGetHeader=uX;lX.inflateSetDictionary=dX;lX.inflateInfo="pako inflate (from Nodeca project)"});var X$=$0((xK,H9)=>{H9.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var L9=$0((TK,M9)=>{function V4(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}M9.exports=V4});var B9=$0((K4)=>{var U1=F9(),h1=G6(),O2=u8(),A0=X$(),Y$=K2(),q4=d8(),X4=L9(),O9=Object.prototype.toString;function u6($){if(!(this instanceof u6))return new u6($);this.options=h1.assign({chunkSize:16384,windowBits:0,to:""},$||{});var V=this.options;if(V.raw&&V.windowBits>=0&&V.windowBits<16){if(V.windowBits=-V.windowBits,V.windowBits===0)V.windowBits=-15}if(V.windowBits>=0&&V.windowBits<16&&!($&&$.windowBits))V.windowBits+=32;if(V.windowBits>15&&V.windowBits<48){if((V.windowBits&15)===0)V.windowBits|=15}this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new q4,this.strm.avail_out=0;var Q=U1.inflateInit2(this.strm,V.windowBits);if(Q!==A0.Z_OK)throw new Error(Y$[Q]);if(this.header=new X4,U1.inflateGetHeader(this.strm,this.header),V.dictionary){if(typeof V.dictionary==="string")V.dictionary=O2.string2buf(V.dictionary);else if(O9.call(V.dictionary)==="[object ArrayBuffer]")V.dictionary=new Uint8Array(V.dictionary);if(V.raw){if(Q=U1.inflateSetDictionary(this.strm,V.dictionary),Q!==A0.Z_OK)throw new Error(Y$[Q])}}}u6.prototype.push=function($,V){var Q=this.strm,q=this.options.chunkSize,K=this.options.dictionary,G,W,J,P,j,z=!1;if(this.ended)return!1;if(W=V===~~V?V:V===!0?A0.Z_FINISH:A0.Z_NO_FLUSH,typeof $==="string")Q.input=O2.binstring2buf($);else if(O9.call($)==="[object ArrayBuffer]")Q.input=new Uint8Array($);else Q.input=$;Q.next_in=0,Q.avail_in=Q.input.length;do{if(Q.avail_out===0)Q.output=new h1.Buf8(q),Q.next_out=0,Q.avail_out=q;if(G=U1.inflate(Q,A0.Z_NO_FLUSH),G===A0.Z_NEED_DICT&&K)G=U1.inflateSetDictionary(this.strm,K);if(G===A0.Z_BUF_ERROR&&z===!0)G=A0.Z_OK,z=!1;if(G!==A0.Z_STREAM_END&&G!==A0.Z_OK)return this.onEnd(G),this.ended=!0,!1;if(Q.next_out){if(Q.avail_out===0||G===A0.Z_STREAM_END||Q.avail_in===0&&(W===A0.Z_FINISH||W===A0.Z_SYNC_FLUSH))if(this.options.to==="string"){if(J=O2.utf8border(Q.output,Q.next_out),P=Q.next_out-J,j=O2.buf2string(Q.output,J),Q.next_out=P,Q.avail_out=q-P,P)h1.arraySet(Q.output,Q.output,J,P,0);this.onData(j)}else this.onData(h1.shrinkBuf(Q.output,Q.next_out))}if(Q.avail_in===0&&Q.avail_out===0)z=!0}while((Q.avail_in>0||Q.avail_out===0)&&G!==A0.Z_STREAM_END);if(G===A0.Z_STREAM_END)W=A0.Z_FINISH;if(W===A0.Z_FINISH)return G=U1.inflateEnd(this.strm),this.onEnd(G),this.ended=!0,G===A0.Z_OK;if(W===A0.Z_SYNC_FLUSH)return this.onEnd(A0.Z_OK),Q.avail_out=0,!0;return!0};u6.prototype.onData=function($){this.chunks.push($)};u6.prototype.onEnd=function($){if($===A0.Z_OK)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=h1.flattenChunks(this.chunks);this.chunks=[],this.err=$,this.msg=this.strm.msg};function K$($,V){var Q=new u6(V);if(Q.push($,!0),Q.err)throw Q.msg||Y$[Q.err];return Q.result}function Y4($,V){return V=V||{},V.raw=!0,K$($,V)}K4.Inflate=u6;K4.inflate=K$;K4.inflateRaw=Y4;K4.ungzip=K$});var D9=$0((kK,I9)=>{var j4=G6().assign,P4=N5(),z4=B9(),Z4=X$(),C9={};j4(C9,P4,z4,Z4);I9.exports=C9});var N9=$0((L4)=>{var F4=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Uint32Array!=="undefined",H4=D9(),w9=w0(),B2=_0(),M4=F4?"uint8array":"array";L4.magic="\b\x00";function d6($,V){B2.call(this,"FlateWorker/"+$),this._pako=null,this._pakoAction=$,this._pakoOptions=V,this.meta={}}w9.inherits(d6,B2);d6.prototype.processChunk=function($){if(this.meta=$.meta,this._pako===null)this._createPako();this._pako.push(w9.transformTo(M4,$.data),!1)};d6.prototype.flush=function(){if(B2.prototype.flush.call(this),this._pako===null)this._createPako();this._pako.push([],!0)};d6.prototype.cleanUp=function(){B2.prototype.cleanUp.call(this),this._pako=null};d6.prototype._createPako=function(){this._pako=new H4[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var $=this;this._pako.onData=function(V){$.push({data:V,meta:$.meta})}};L4.compressWorker=function($){return new d6("Deflate",$)};L4.uncompressWorker=function(){return new d6("Inflate",{})}});var J$=$0((I4)=>{var v9=_0();I4.STORE={magic:"\x00\x00",compressWorker:function(){return new v9("STORE compression")},uncompressWorker:function(){return new v9("STORE decompression")}};I4.DEFLATE=N9()});var G$=$0((N4)=>{N4.LOCAL_FILE_HEADER="PK\x03\x04";N4.CENTRAL_FILE_HEADER="PK\x01\x02";N4.CENTRAL_DIRECTORY_END="PK\x05\x06";N4.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";N4.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";N4.DATA_DESCRIPTOR="PK\x07\b"});var T9=$0((bK,x9)=>{var W1=w0(),j1=_0(),U$=$1(),A9=Q2(),C2=G$(),O0=function($,V){var Q="",q;for(q=0;q<V;q++)Q+=String.fromCharCode($&255),$=$>>>8;return Q},k4=function($,V){var Q=$;if(!$)Q=V?16893:33204;return(Q&65535)<<16},g4=function($){return($||0)&63},R9=function($,V,Q,q,K,G){var{file:W,compression:J}=$,P=G!==U$.utf8encode,j=W1.transformTo("string",G(W.name)),z=W1.transformTo("string",U$.utf8encode(W.name)),C=W.comment,w=W1.transformTo("string",G(C)),R=W1.transformTo("string",U$.utf8encode(C)),x=z.length!==W.name.length,S=R.length!==C.length,g,y,Z="",O="",M="",A=W.dir,B=W.date,L={crc32:0,compressedSize:0,uncompressedSize:0};if(!V||Q)L.crc32=$.crc32,L.compressedSize=$.compressedSize,L.uncompressedSize=$.uncompressedSize;var T=0;if(V)T|=8;if(!P&&(x||S))T|=2048;var E=0,f=0;if(A)E|=16;if(K==="UNIX")f=798,E|=k4(W.unixPermissions,A);else f=20,E|=g4(W.dosPermissions,A);if(g=B.getUTCHours(),g=g<<6,g=g|B.getUTCMinutes(),g=g<<5,g=g|B.getUTCSeconds()/2,y=B.getUTCFullYear()-1980,y=y<<4,y=y|B.getUTCMonth()+1,y=y<<5,y=y|B.getUTCDate(),x)O=O0(1,1)+O0(A9(j),4)+z,Z+="up"+O0(O.length,2)+O;if(S)M=O0(1,1)+O0(A9(w),4)+R,Z+="uc"+O0(M.length,2)+M;var b="";b+=`
|
|
8
|
-
\x00`,b+=O0(T,2),b+=J.magic,b+=O0(g,2),b+=O0(y,2),b+=O0(L.crc32,4),b+=O0(L.compressedSize,4),b+=O0(L.uncompressedSize,4),b+=O0(j.length,2),b+=O0(Z.length,2);var F=C2.LOCAL_FILE_HEADER+b+j+Z,m=C2.CENTRAL_FILE_HEADER+O0(f,2)+b+O0(w.length,2)+"\x00\x00\x00\x00"+O0(E,4)+O0(q,4)+j+Z+w;return{fileRecord:F,dirRecord:m}},E4=function($,V,Q,q,K){var G="",W=W1.transformTo("string",K(q));return G=C2.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+O0($,2)+O0($,2)+O0(V,4)+O0(Q,4)+O0(W.length,2)+W,G},y4=function($){var V="";return V=C2.DATA_DESCRIPTOR+O0($.crc32,4)+O0($.compressedSize,4)+O0($.uncompressedSize,4),V};function i0($,V,Q,q){j1.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=V,this.zipPlatform=Q,this.encodeFileName=q,this.streamFiles=$,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}W1.inherits(i0,j1);i0.prototype.push=function($){var V=$.meta.percent||0,Q=this.entriesCount,q=this._sources.length;if(this.accumulate)this.contentBuffer.push($);else this.bytesWritten+=$.data.length,j1.prototype.push.call(this,{data:$.data,meta:{currentFile:this.currentFile,percent:Q?(V+100*(Q-q-1))/Q:100}})};i0.prototype.openedSource=function($){this.currentSourceOffset=this.bytesWritten,this.currentFile=$.file.name;var V=this.streamFiles&&!$.file.dir;if(V){var Q=R9($,V,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:Q.fileRecord,meta:{percent:0}})}else this.accumulate=!0};i0.prototype.closedSource=function($){this.accumulate=!1;var V=this.streamFiles&&!$.file.dir,Q=R9($,V,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(Q.dirRecord),V)this.push({data:y4($),meta:{percent:100}});else{this.push({data:Q.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};i0.prototype.flush=function(){var $=this.bytesWritten;for(var V=0;V<this.dirRecords.length;V++)this.push({data:this.dirRecords[V],meta:{percent:100}});var Q=this.bytesWritten-$,q=E4(this.dirRecords.length,Q,$,this.zipComment,this.encodeFileName);this.push({data:q,meta:{percent:100}})};i0.prototype.prepareNextSource=function(){if(this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused)this.previous.pause();else this.previous.resume()};i0.prototype.registerPrevious=function($){this._sources.push($);var V=this;return $.on("data",function(Q){V.processChunk(Q)}),$.on("end",function(){if(V.closedSource(V.previous.streamInfo),V._sources.length)V.prepareNextSource();else V.end()}),$.on("error",function(Q){V.error(Q)}),this};i0.prototype.resume=function(){if(!j1.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};i0.prototype.error=function($){var V=this._sources;if(!j1.prototype.error.call(this,$))return!1;for(var Q=0;Q<V.length;Q++)try{V[Q].error($)}catch(q){}return!0};i0.prototype.lock=function(){j1.prototype.lock.call(this);var $=this._sources;for(var V=0;V<$.length;V++)$[V].lock()};x9.exports=i0});var S9=$0((_4)=>{var b4=J$(),f4=T9(),h4=function($,V){var Q=$||V,q=b4[Q];if(!q)throw new Error(Q+" is not a valid compression method !");return q};_4.generateWorker=function($,V,Q){var q=new f4(V.streamFiles,Q,V.platform,V.encodeFileName),K=0;try{$.forEach(function(G,W){K++;var J=h4(W.options.compression,V.compression),P=W.options.compressionOptions||V.compressionOptions||{},j=W.dir,z=W.date;W._compressWorker(J,P).withStreamInfo("file",{name:G,dir:j,date:z,comment:W.comment||"",unixPermissions:W.unixPermissions,dosPermissions:W.dosPermissions}).pipe(q)}),q.entriesCount=K}catch(G){q.error(G)}return q}});var g9=$0((hK,k9)=>{var p4=w0(),I2=_0();function _1($,V){I2.call(this,"Nodejs stream input adapter for "+$),this._upstreamEnded=!1,this._bindStream(V)}p4.inherits(_1,I2);_1.prototype._bindStream=function($){var V=this;this._stream=$,$.pause(),$.on("data",function(Q){V.push({data:Q,meta:{percent:0}})}).on("error",function(Q){if(V.isPaused)this.generatedError=Q;else V.error(Q)}).on("end",function(){if(V.isPaused)V._upstreamEnded=!0;else V.end()})};_1.prototype.pause=function(){if(!I2.prototype.pause.call(this))return!1;return this._stream.pause(),!0};_1.prototype.resume=function(){if(!I2.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};k9.exports=_1});var u9=$0((_K,c9)=>{var c4=$1(),m1=w0(),f9=_0(),u4=z8(),h9=Z8(),E9=V2(),d4=yQ(),l4=S9(),y9=L1(),o4=g9(),_9=function($,V,Q){var q=m1.getTypeOf(V),K,G=m1.extend(Q||{},h9);if(G.date=G.date||new Date,G.compression!==null)G.compression=G.compression.toUpperCase();if(typeof G.unixPermissions==="string")G.unixPermissions=parseInt(G.unixPermissions,8);if(G.unixPermissions&&G.unixPermissions&16384)G.dir=!0;if(G.dosPermissions&&G.dosPermissions&16)G.dir=!0;if(G.dir)$=m9($);if(G.createFolders&&(K=i4($)))p9.call(this,K,!0);var W=q==="string"&&G.binary===!1&&G.base64===!1;if(!Q||typeof Q.binary==="undefined")G.binary=!W;var J=V instanceof E9&&V.uncompressedSize===0;if(J||G.dir||!V||V.length===0)G.base64=!1,G.binary=!0,V="",G.compression="STORE",q="string";var P=null;if(V instanceof E9||V instanceof f9)P=V;else if(y9.isNode&&y9.isStream(V))P=new o4($,V);else P=m1.prepareContent($,V,G.binary,G.optimizedBinaryString,G.base64);var j=new d4($,P,G);this.files[$]=j},i4=function($){if($.slice(-1)==="/")$=$.substring(0,$.length-1);var V=$.lastIndexOf("/");return V>0?$.substring(0,V):""},m9=function($){if($.slice(-1)!=="/")$+="/";return $},p9=function($,V){if(V=typeof V!=="undefined"?V:h9.createFolders,$=m9($),!this.files[$])_9.call(this,$,null,{dir:!0,createFolders:V});return this.files[$]};function b9($){return Object.prototype.toString.call($)==="[object RegExp]"}var n4={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function($){var V,Q,q;for(V in this.files)if(q=this.files[V],Q=V.slice(this.root.length,V.length),Q&&V.slice(0,this.root.length)===this.root)$(Q,q)},filter:function($){var V=[];return this.forEach(function(Q,q){if($(Q,q))V.push(q)}),V},file:function($,V,Q){if(arguments.length===1)if(b9($)){var q=$;return this.filter(function(G,W){return!W.dir&&q.test(G)})}else{var K=this.files[this.root+$];if(K&&!K.dir)return K;else return null}else $=this.root+$,_9.call(this,$,V,Q);return this},folder:function($){if(!$)return this;if(b9($))return this.filter(function(K,G){return G.dir&&$.test(K)});var V=this.root+$,Q=p9.call(this,V),q=this.clone();return q.root=Q.name,q},remove:function($){$=this.root+$;var V=this.files[$];if(!V){if($.slice(-1)!=="/")$+="/";V=this.files[$]}if(V&&!V.dir)delete this.files[$];else{var Q=this.filter(function(K,G){return G.name.slice(0,$.length)===$});for(var q=0;q<Q.length;q++)delete this.files[Q[q].name]}return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function($){var V,Q={};try{if(Q=m1.extend($||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:c4.utf8encode}),Q.type=Q.type.toLowerCase(),Q.compression=Q.compression.toUpperCase(),Q.type==="binarystring")Q.type="string";if(!Q.type)throw new Error("No output type specified.");if(m1.checkSupport(Q.type),Q.platform==="darwin"||Q.platform==="freebsd"||Q.platform==="linux"||Q.platform==="sunos")Q.platform="UNIX";if(Q.platform==="win32")Q.platform="DOS";var q=Q.comment||this.comment||"";V=l4.generateWorker(this,Q,q)}catch(K){V=new f9("error"),V.error(K)}return new u4(V,Q.type||"string",Q.mimeType)},generateAsync:function($,V){return this.generateInternalStream($).accumulate(V)},generateNodeStream:function($,V){if($=$||{},!$.type)$.type="nodebuffer";return this.generateInternalStream($).toNodejsStream(V)}};c9.exports=n4});var W$=$0((mK,l9)=>{var a4=w0();function d9($){this.data=$,this.length=$.length,this.index=0,this.zero=0}d9.prototype={checkOffset:function($){this.checkIndex(this.index+$)},checkIndex:function($){if(this.length<this.zero+$||$<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+$+"). Corrupted zip ?")},setIndex:function($){this.checkIndex($),this.index=$},skip:function($){this.setIndex(this.index+$)},byteAt:function(){},readInt:function($){var V=0,Q;this.checkOffset($);for(Q=this.index+$-1;Q>=this.index;Q--)V=(V<<8)+this.byteAt(Q);return this.index+=$,V},readString:function($){return a4.transformTo("string",this.readData($))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var $=this.readInt(4);return new Date(Date.UTC(($>>25&127)+1980,($>>21&15)-1,$>>16&31,$>>11&31,$>>5&63,($&31)<<1))}};l9.exports=d9});var j$=$0((pK,i9)=>{var o9=W$(),r4=w0();function P1($){o9.call(this,$);for(var V=0;V<this.data.length;V++)$[V]=$[V]&255}r4.inherits(P1,o9);P1.prototype.byteAt=function($){return this.data[this.zero+$]};P1.prototype.lastIndexOfSignature=function($){var V=$.charCodeAt(0),Q=$.charCodeAt(1),q=$.charCodeAt(2),K=$.charCodeAt(3);for(var G=this.length-4;G>=0;--G)if(this.data[G]===V&&this.data[G+1]===Q&&this.data[G+2]===q&&this.data[G+3]===K)return G-this.zero;return-1};P1.prototype.readAndCheckSignature=function($){var V=$.charCodeAt(0),Q=$.charCodeAt(1),q=$.charCodeAt(2),K=$.charCodeAt(3),G=this.readData(4);return V===G[0]&&Q===G[1]&&q===G[2]&&K===G[3]};P1.prototype.readData=function($){if(this.checkOffset($),$===0)return[];var V=this.data.slice(this.zero+this.index,this.zero+this.index+$);return this.index+=$,V};i9.exports=P1});var r9=$0((cK,a9)=>{var n9=W$(),s4=w0();function z1($){n9.call(this,$)}s4.inherits(z1,n9);z1.prototype.byteAt=function($){return this.data.charCodeAt(this.zero+$)};z1.prototype.lastIndexOfSignature=function($){return this.data.lastIndexOf($)-this.zero};z1.prototype.readAndCheckSignature=function($){var V=this.readData(4);return $===V};z1.prototype.readData=function($){this.checkOffset($);var V=this.data.slice(this.zero+this.index,this.zero+this.index+$);return this.index+=$,V};a9.exports=z1});var z$=$0((uK,t9)=>{var s9=j$(),t4=w0();function P$($){s9.call(this,$)}t4.inherits(P$,s9);P$.prototype.readData=function($){if(this.checkOffset($),$===0)return new Uint8Array(0);var V=this.data.subarray(this.zero+this.index,this.zero+this.index+$);return this.index+=$,V};t9.exports=P$});var QV=$0((dK,$V)=>{var e9=z$(),e4=w0();function Z$($){e9.call(this,$)}e4.inherits(Z$,e9);Z$.prototype.readData=function($){this.checkOffset($);var V=this.data.slice(this.zero+this.index,this.zero+this.index+$);return this.index+=$,V};$V.exports=Z$});var F$=$0((lK,qV)=>{var D2=w0(),VV=K6(),$Y=j$(),QY=r9(),VY=QV(),qY=z$();qV.exports=function($){var V=D2.getTypeOf($);if(D2.checkSupport(V),V==="string"&&!VV.uint8array)return new QY($);if(V==="nodebuffer")return new VY($);if(VV.uint8array)return new qY(D2.transformTo("uint8array",$));return new $Y(D2.transformTo("array",$))}});var JV=$0((oK,KV)=>{var H$=F$(),w6=w0(),XY=V2(),XV=Q2(),w2=$1(),N2=J$(),YY=K6(),KY=0,JY=3,GY=function($){for(var V in N2){if(!Object.prototype.hasOwnProperty.call(N2,V))continue;if(N2[V].magic===$)return N2[V]}return null};function YV($,V){this.options=$,this.loadOptions=V}YV.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function($){var V,Q;if($.skip(22),this.fileNameLength=$.readInt(2),Q=$.readInt(2),this.fileName=$.readData(this.fileNameLength),$.skip(Q),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(V=GY(this.compressionMethod),V===null)throw new Error("Corrupted zip : compression "+w6.pretty(this.compressionMethod)+" unknown (inner file : "+w6.transformTo("string",this.fileName)+")");this.decompressed=new XY(this.compressedSize,this.uncompressedSize,this.crc32,V,$.readData(this.compressedSize))},readCentralPart:function($){this.versionMadeBy=$.readInt(2),$.skip(2),this.bitFlag=$.readInt(2),this.compressionMethod=$.readString(2),this.date=$.readDate(),this.crc32=$.readInt(4),this.compressedSize=$.readInt(4),this.uncompressedSize=$.readInt(4);var V=$.readInt(2);if(this.extraFieldsLength=$.readInt(2),this.fileCommentLength=$.readInt(2),this.diskNumberStart=$.readInt(2),this.internalFileAttributes=$.readInt(2),this.externalFileAttributes=$.readInt(4),this.localHeaderOffset=$.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");$.skip(V),this.readExtraFields($),this.parseZIP64ExtraField($),this.fileComment=$.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var $=this.versionMadeBy>>8;if(this.dir=this.externalFileAttributes&16?!0:!1,$===KY)this.dosPermissions=this.externalFileAttributes&63;if($===JY)this.unixPermissions=this.externalFileAttributes>>16&65535;if(!this.dir&&this.fileNameStr.slice(-1)==="/")this.dir=!0},parseZIP64ExtraField:function(){if(!this.extraFields[1])return;var $=H$(this.extraFields[1].value);if(this.uncompressedSize===w6.MAX_VALUE_32BITS)this.uncompressedSize=$.readInt(8);if(this.compressedSize===w6.MAX_VALUE_32BITS)this.compressedSize=$.readInt(8);if(this.localHeaderOffset===w6.MAX_VALUE_32BITS)this.localHeaderOffset=$.readInt(8);if(this.diskNumberStart===w6.MAX_VALUE_32BITS)this.diskNumberStart=$.readInt(4)},readExtraFields:function($){var V=$.index+this.extraFieldsLength,Q,q,K;if(!this.extraFields)this.extraFields={};while($.index+4<V)Q=$.readInt(2),q=$.readInt(2),K=$.readData(q),this.extraFields[Q]={id:Q,length:q,value:K};$.setIndex(V)},handleUTF8:function(){var $=YY.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=w2.utf8decode(this.fileName),this.fileCommentStr=w2.utf8decode(this.fileComment);else{var V=this.findExtraFieldUnicodePath();if(V!==null)this.fileNameStr=V;else{var Q=w6.transformTo($,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(Q)}var q=this.findExtraFieldUnicodeComment();if(q!==null)this.fileCommentStr=q;else{var K=w6.transformTo($,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(K)}}},findExtraFieldUnicodePath:function(){var $=this.extraFields[28789];if($){var V=H$($.value);if(V.readInt(1)!==1)return null;if(XV(this.fileName)!==V.readInt(4))return null;return w2.utf8decode(V.readData($.length-5))}return null},findExtraFieldUnicodeComment:function(){var $=this.extraFields[25461];if($){var V=H$($.value);if(V.readInt(1)!==1)return null;if(XV(this.fileComment)!==V.readInt(4))return null;return w2.utf8decode(V.readData($.length-5))}return null}};KV.exports=YV});var WV=$0((iK,UV)=>{var UY=F$(),P6=w0(),n0=G$(),WY=JV(),jY=K6();function GV($){this.files=[],this.loadOptions=$}GV.prototype={checkSignature:function($){if(!this.reader.readAndCheckSignature($)){this.reader.index-=4;var V=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+P6.pretty(V)+", expected "+P6.pretty($)+")")}},isSignature:function($,V){var Q=this.reader.index;this.reader.setIndex($);var q=this.reader.readString(4),K=q===V;return this.reader.setIndex(Q),K},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var $=this.reader.readData(this.zipCommentLength),V=jY.uint8array?"uint8array":"array",Q=P6.transformTo(V,$);this.zipComment=this.loadOptions.decodeFileName(Q)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};var $=this.zip64EndOfCentralSize-44,V=0,Q,q,K;while(V<$)Q=this.reader.readInt(2),q=this.reader.readInt(4),K=this.reader.readData(q),this.zip64ExtensibleData[Q]={id:Q,length:q,value:K}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var $,V;for($=0;$<this.files.length;$++)V=this.files[$],this.reader.setIndex(V.localHeaderOffset),this.checkSignature(n0.LOCAL_FILE_HEADER),V.readLocalPart(this.reader),V.handleUTF8(),V.processAttributes()},readCentralDir:function(){var $;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature(n0.CENTRAL_FILE_HEADER))$=new WY({zip64:this.zip64},this.loadOptions),$.readCentralPart(this.reader),this.files.push($);if(this.centralDirRecords!==this.files.length){if(this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)}},readEndOfCentral:function(){var $=this.reader.lastIndexOfSignature(n0.CENTRAL_DIRECTORY_END);if($<0){var V=!this.isSignature(0,n0.LOCAL_FILE_HEADER);if(V)throw new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");else throw new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex($);var Q=$;if(this.checkSignature(n0.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===P6.MAX_VALUE_16BITS||this.diskWithCentralDirStart===P6.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===P6.MAX_VALUE_16BITS||this.centralDirRecords===P6.MAX_VALUE_16BITS||this.centralDirSize===P6.MAX_VALUE_32BITS||this.centralDirOffset===P6.MAX_VALUE_32BITS){if(this.zip64=!0,$=this.reader.lastIndexOfSignature(n0.ZIP64_CENTRAL_DIRECTORY_LOCATOR),$<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex($),this.checkSignature(n0.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n0.ZIP64_CENTRAL_DIRECTORY_END)){if(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n0.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory")}this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(n0.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var q=this.centralDirOffset+this.centralDirSize;if(this.zip64)q+=20,q+=12+this.zip64EndOfCentralSize;var K=Q-q;if(K>0)if(this.isSignature(Q,n0.CENTRAL_FILE_HEADER));else this.reader.zero=K;else if(K<0)throw new Error("Corrupted zip: missing "+Math.abs(K)+" bytes.")},prepareReader:function($){this.reader=UY($)},load:function($){this.prepareReader($),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};UV.exports=GV});var zV=$0((nK,PV)=>{var M$=w0(),v2=s6(),PY=$1(),zY=WV(),ZY=M8(),jV=L1();function FY($){return new v2.Promise(function(V,Q){var q=$.decompressed.getContentWorker().pipe(new ZY);q.on("error",function(K){Q(K)}).on("end",function(){if(q.streamInfo.crc32!==$.decompressed.crc32)Q(new Error("Corrupted zip : CRC32 mismatch"));else V()}).resume()})}PV.exports=function($,V){var Q=this;if(V=M$.extend(V||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:PY.utf8decode}),jV.isNode&&jV.isStream($))return v2.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file."));return M$.prepareContent("the loaded zip file",$,!0,V.optimizedBinaryString,V.base64).then(function(q){var K=new zY(V);return K.load(q),K}).then(function q(K){var G=[v2.Promise.resolve(K)],W=K.files;if(V.checkCRC32)for(var J=0;J<W.length;J++)G.push(FY(W[J]));return v2.Promise.all(G)}).then(function q(K){var G=K.shift(),W=G.files;for(var J=0;J<W.length;J++){var P=W[J],j=P.fileNameStr,z=M$.resolve(P.fileNameStr);if(Q.file(z,P.decompressed,{binary:!0,optimizedBinaryString:!0,date:P.date,dir:P.dir,comment:P.fileCommentStr.length?P.fileCommentStr:null,unixPermissions:P.unixPermissions,dosPermissions:P.dosPermissions,createFolders:V.createFolders}),!P.dir)Q.file(z).unsafeOriginalName=j}if(G.zipComment.length)Q.comment=G.zipComment;return Q})}});var FV=$0((aK,ZV)=>{function d0(){if(!(this instanceof d0))return new d0;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var $=new d0;for(var V in this)if(typeof this[V]!=="function")$[V]=this[V];return $}}d0.prototype=u9();d0.prototype.loadAsync=zV();d0.support=K6();d0.defaults=Z8();d0.version="3.10.1";d0.loadAsync=function($,V){return new d0().loadAsync($,V)};d0.external=s6();ZV.exports=d0});var m2=rV;var a0=[],_2=[];var h2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(x6=0,S$=h2.length;x6<S$;++x6)a0[x6]=h2[x6],_2[h2.charCodeAt(x6)]=x6;var x6,S$;_2[45]=62;_2[95]=63;function nV($){return a0[$>>18&63]+a0[$>>12&63]+a0[$>>6&63]+a0[$&63]}function aV($,V,Q){var q,K=[];for(var G=V;G<Q;G+=3)q=($[G]<<16&16711680)+($[G+1]<<8&65280)+($[G+2]&255),K.push(nV(q));return K.join("")}function rV($){var V,Q=$.length,q=Q%3,K=[],G=16383;for(var W=0,J=Q-q;W<J;W+=G)K.push(aV($,W,W+G>J?J:W+G));if(q===1)V=$[Q-1],K.push(a0[V>>2]+a0[V<<4&63]+"==");else if(q===2)V=($[Q-2]<<8)+$[Q-1],K.push(a0[V>>10]+a0[V>>4&63]+a0[V<<2&63]+"=");return K.join("")}var bV=x$(g$(),1),fV=x$(FV(),1);var HY=/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(\.\d+)?([zZ]|((\+|-)(\d{2}):(\d{2})))$/;function MY($){let V=HY.exec($);if(!V)return!1;let[,Q,q,K,G,W,J]=V.map((P)=>parseInt(P));return Q!==void 0&&q!==void 0&&K!==void 0&&G!==void 0&&W!==void 0&&J!==void 0&&0<q&&q<=12&&K<=LY(Q,q)&&G<24&&W<60&&J<=60}function LY($,V){if(V===2)return OY($)?29:28;return BY[V-1]??0}function OY($){return $%4===0&&($%100!==0||$%400===0)}var BY=[31,0,31,30,31,30,31,31,30,31,30,31];function x2($){return typeof $==="object"&&$!==null&&!Array.isArray($)}var CY={int8:[-128,128],int16:[-32768,32768],int32:[-2147483648,2147483648],uint8:[0,256],uint16:[0,65536],uint32:[0,4294967296]};function T2($=0.5){return Math.random()<$}function MV($,V){return $+Math.floor(Math.random()*(V-$))}function L$($){let V=$[MV(0,$.length)];if(V===void 0)throw new Error("choices was empty in random choice");else return V}var A2;function LV(){if(A2===void 0){let $=Math.sqrt(-2*Math.log(Math.random())),V=2*Math.PI*Math.random();return A2=$*Math.sin(V),$*Math.cos(V)}else{let $=A2;return A2=void 0,$}}function l6($=1){let V=Math.exp(-$),Q=0,q=Math.random();while(q>V)Q++,q*=Math.random();return Q}var HV=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ;,'"`;function S2($){return Array($).fill(null).map(()=>HV.charAt(Math.floor(Math.random()*HV.length))).join("")}function*OV(...$){for(let V of $)yield*V}function*R2($,V){let Q=0;for(let q of $)yield V(q,Q++)}function*IY($,V){let Q=0;for(let q of $)if(V(q,Q++))yield q}function*DY($){for(let V=0;V<$;++V)yield V}function Z1($){return/^[a-zA-Z_][a-zA-Z0-9_]*$/.test($)?`.${$}`:`["${$}"]`}function l0($){return $===null?"null":Array.isArray($)?"array":typeof $}class E0{guard($){for(let V of this.pathErrors($))return!1;return!0}guardAssert($){let V=[];for(let[Q,q]of this.pathErrors($)){let K=Q.reverse().join("")||".";V.push(`${K}: ${q}`)}if(V.length){let Q=JSON.stringify($,null,2),q=JSON.stringify(this.schema(),null,2);throw new Error(`Validation errors:
|
|
7
|
+
*//*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *//*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */});var U6=$0((Fq)=>{Fq.base64=!0;Fq.array=!0;Fq.string=!0;Fq.arraybuffer=typeof ArrayBuffer!=="undefined"&&typeof Uint8Array!=="undefined";Fq.nodebuffer=typeof Buffer!=="undefined";Fq.uint8array=typeof Uint8Array!=="undefined";if(typeof ArrayBuffer==="undefined")Fq.blob=!1;else{e2=new ArrayBuffer(0);try{Fq.blob=new Blob([e2],{type:"application/zip"}).size===0}catch($){try{i$=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,$8=new i$,$8.append(e2),Fq.blob=$8.getBlob("application/zip").size===0}catch(V){Fq.blob=!1}}}var e2,i$,$8;try{Fq.nodestream=!!(s2(),S$(r2)).Readable}catch($){Fq.nodestream=!1}});var Q8=$0((wq)=>{var Iq=w0(),Dq=U6(),t0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";wq.encode=function($){var V=[],Q,q,K,G,W,J,P,j=0,z=$.length,C=z,I=Iq.getTypeOf($)!=="string";while(j<$.length){if(C=z-j,!I)Q=$.charCodeAt(j++),q=j<z?$.charCodeAt(j++):0,K=j<z?$.charCodeAt(j++):0;else Q=$[j++],q=j<z?$[j++]:0,K=j<z?$[j++]:0;G=Q>>2,W=(Q&3)<<4|q>>4,J=C>1?(q&15)<<2|K>>6:64,P=C>2?K&63:64,V.push(t0.charAt(G)+t0.charAt(W)+t0.charAt(J)+t0.charAt(P))}return V.join("")};wq.decode=function($){var V,Q,q,K,G,W,J,P=0,j=0,z="data:";if($.substr(0,z.length)===z)throw new Error("Invalid base64 input, it looks like a data url.");$=$.replace(/[^A-Za-z0-9+/=]/g,"");var C=$.length*3/4;if($.charAt($.length-1)===t0.charAt(64))C--;if($.charAt($.length-2)===t0.charAt(64))C--;if(C%1!==0)throw new Error("Invalid base64 input, bad content length.");var I;if(Dq.uint8array)I=new Uint8Array(C|0);else I=new Array(C|0);while(P<$.length){if(K=t0.indexOf($.charAt(P++)),G=t0.indexOf($.charAt(P++)),W=t0.indexOf($.charAt(P++)),J=t0.indexOf($.charAt(P++)),V=K<<2|G>>4,Q=(G&15)<<4|W>>2,q=(W&3)<<6|J,I[j++]=V,W!==64)I[j++]=Q;if(J!==64)I[j++]=q}return I}});var O1=$0((VK,n$)=>{n$.exports={isNode:typeof Buffer!=="undefined",newBufferFrom:function($,V){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from($,V);else{if(typeof $==="number")throw new Error('The "data" argument must not be a number');return new Buffer($,V)}},allocBuffer:function($){if(Buffer.alloc)return Buffer.alloc($);else{var V=new Buffer($);return V.fill(0),V}},isBuffer:function($){return Buffer.isBuffer($)},isStream:function($){return $&&typeof $.on==="function"&&typeof $.pause==="function"&&typeof $.resume==="function"}}});var t$=$0((qK,s$)=>{var a$=global.MutationObserver||global.WebKitMutationObserver,B1;if(a$)V8=0,r$=new a$(r1),q8=global.document.createTextNode(""),r$.observe(q8,{characterData:!0}),B1=function(){q8.data=V8=++V8%2};else if(!global.setImmediate&&typeof global.MessageChannel!=="undefined")X8=new global.MessageChannel,X8.port1.onmessage=r1,B1=function(){X8.port2.postMessage(0)};else if("document"in global&&"onreadystatechange"in global.document.createElement("script"))B1=function(){var $=global.document.createElement("script");$.onreadystatechange=function(){r1(),$.onreadystatechange=null,$.parentNode.removeChild($),$=null},global.document.documentElement.appendChild($)};else B1=function(){setTimeout(r1,0)};var V8,r$,q8,X8,Y8,C1=[];function r1(){Y8=!0;var $,V,Q=C1.length;while(Q){V=C1,C1=[],$=-1;while(++$<Q)V[$]();Q=C1.length}Y8=!1}s$.exports=Aq;function Aq($){if(C1.push($)===1&&!Y8)B1()}});var XQ=$0((XK,qQ)=>{var Rq=t$();function r6(){}var E0={},e$=["REJECTED"],K8=["FULFILLED"],$Q=["PENDING"];qQ.exports=L6;function L6($){if(typeof $!=="function")throw new TypeError("resolver must be a function");if(this.state=$Q,this.queue=[],this.outcome=void 0,$!==r6)QQ(this,$)}L6.prototype.finally=function($){if(typeof $!=="function")return this;var V=this.constructor;return this.then(Q,q);function Q(K){function G(){return K}return V.resolve($()).then(G)}function q(K){function G(){throw K}return V.resolve($()).then(G)}};L6.prototype.catch=function($){return this.then(null,$)};L6.prototype.then=function($,V){if(typeof $!=="function"&&this.state===K8||typeof V!=="function"&&this.state===e$)return this;var Q=new this.constructor(r6);if(this.state!==$Q){var q=this.state===K8?$:V;J8(Q,q,this.outcome)}else this.queue.push(new I1(Q,$,V));return Q};function I1($,V,Q){if(this.promise=$,typeof V==="function")this.onFulfilled=V,this.callFulfilled=this.otherCallFulfilled;if(typeof Q==="function")this.onRejected=Q,this.callRejected=this.otherCallRejected}I1.prototype.callFulfilled=function($){E0.resolve(this.promise,$)};I1.prototype.otherCallFulfilled=function($){J8(this.promise,this.onFulfilled,$)};I1.prototype.callRejected=function($){E0.reject(this.promise,$)};I1.prototype.otherCallRejected=function($){J8(this.promise,this.onRejected,$)};function J8($,V,Q){Rq(function(){var q;try{q=V(Q)}catch(K){return E0.reject($,K)}if(q===$)E0.reject($,new TypeError("Cannot resolve promise with itself"));else E0.resolve($,q)})}E0.resolve=function($,V){var Q=VQ(xq,V);if(Q.status==="error")return E0.reject($,Q.value);var q=Q.value;if(q)QQ($,q);else{$.state=K8,$.outcome=V;var K=-1,G=$.queue.length;while(++K<G)$.queue[K].callFulfilled(V)}return $};E0.reject=function($,V){$.state=e$,$.outcome=V;var Q=-1,q=$.queue.length;while(++Q<q)$.queue[Q].callRejected(V);return $};function xq($){var V=$&&$.then;if($&&(typeof $==="object"||typeof $==="function")&&typeof V==="function")return function Q(){V.apply($,arguments)}}function QQ($,V){var Q=!1;function q(J){if(Q)return;Q=!0,E0.reject($,J)}function K(J){if(Q)return;Q=!0,E0.resolve($,J)}function G(){V(K,q)}var W=VQ(G);if(W.status==="error")q(W.value)}function VQ($,V){var Q={};try{Q.value=$(V),Q.status="success"}catch(q){Q.status="error",Q.value=q}return Q}L6.resolve=Tq;function Tq($){if($ instanceof this)return $;return E0.resolve(new this(r6),$)}L6.reject=Sq;function Sq($){var V=new this(r6);return E0.reject(V,$)}L6.all=kq;function kq($){var V=this;if(Object.prototype.toString.call($)!=="[object Array]")return this.reject(new TypeError("must be an array"));var Q=$.length,q=!1;if(!Q)return this.resolve([]);var K=new Array(Q),G=0,W=-1,J=new this(r6);while(++W<Q)P($[W],W);return J;function P(j,z){V.resolve(j).then(C,function(I){if(!q)q=!0,E0.reject(J,I)});function C(I){if(K[z]=I,++G===Q&&!q)q=!0,E0.resolve(J,K)}}}L6.race=gq;function gq($){var V=this;if(Object.prototype.toString.call($)!=="[object Array]")return this.reject(new TypeError("must be an array"));var Q=$.length,q=!1;if(!Q)return this.resolve([]);var K=-1,G=new this(r6);while(++K<Q)W($[K]);return G;function W(J){V.resolve(J).then(function(P){if(!q)q=!0,E0.resolve(G,P)},function(P){if(!q)q=!0,E0.reject(G,P)})}}});var s6=$0((YK,YQ)=>{var G8=null;if(typeof Promise!=="undefined")G8=Promise;else G8=XQ();YQ.exports={Promise:G8}});var JQ=$0((KQ)=>{(function($,V){if($.setImmediate)return;var Q=1,q={},K=!1,G=$.document,W;function J(Z){if(typeof Z!=="function")Z=new Function(""+Z);var O=new Array(arguments.length-1);for(var M=0;M<O.length;M++)O[M]=arguments[M+1];var A={callback:Z,args:O};return q[Q]=A,W(Q),Q++}function P(Z){delete q[Z]}function j(Z){var{callback:O,args:M}=Z;switch(M.length){case 0:O();break;case 1:O(M[0]);break;case 2:O(M[0],M[1]);break;case 3:O(M[0],M[1],M[2]);break;default:O.apply(V,M);break}}function z(Z){if(K)setTimeout(z,0,Z);else{var O=q[Z];if(O){K=!0;try{j(O)}finally{P(Z),K=!1}}}}function C(){W=function(Z){process.nextTick(function(){z(Z)})}}function I(){if($.postMessage&&!$.importScripts){var Z=!0,O=$.onmessage;return $.onmessage=function(){Z=!1},$.postMessage("","*"),$.onmessage=O,Z}}function R(){var Z="setImmediate$"+Math.random()+"$",O=function(M){if(M.source===$&&typeof M.data==="string"&&M.data.indexOf(Z)===0)z(+M.data.slice(Z.length))};if($.addEventListener)$.addEventListener("message",O,!1);else $.attachEvent("onmessage",O);W=function(M){$.postMessage(Z+M,"*")}}function x(){var Z=new MessageChannel;Z.port1.onmessage=function(O){var M=O.data;z(M)},W=function(O){Z.port2.postMessage(O)}}function S(){var Z=G.documentElement;W=function(O){var M=G.createElement("script");M.onreadystatechange=function(){z(O),M.onreadystatechange=null,Z.removeChild(M),M=null},Z.appendChild(M)}}function g(){W=function(Z){setTimeout(z,0,Z)}}var y=Object.getPrototypeOf&&Object.getPrototypeOf($);if(y=y&&y.setTimeout?y:$,{}.toString.call($.process)==="[object process]")C();else if(I())R();else if($.MessageChannel)x();else if(G&&"onreadystatechange"in G.createElement("script"))S();else g();y.setImmediate=J,y.clearImmediate=P})(typeof self==="undefined"?typeof global==="undefined"?KQ:global:self)});var w0=$0((bq)=>{var O6=U6(),Eq=Q8(),t6=O1(),U8=s6();JQ();function yq($){var V=null;if(O6.uint8array)V=new Uint8Array($.length);else V=new Array($.length);return t1($,V)}bq.newBlob=function($,V){bq.checkSupport("blob");try{return new Blob([$],{type:V})}catch(K){try{var Q=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,q=new Q;return q.append($),q.getBlob(V)}catch(G){throw new Error("Bug : can't construct the Blob.")}}};function D1($){return $}function t1($,V){for(var Q=0;Q<$.length;++Q)V[Q]=$.charCodeAt(Q)&255;return V}var s1={stringifyByChunk:function($,V,Q){var q=[],K=0,G=$.length;if(G<=Q)return String.fromCharCode.apply(null,$);while(K<G){if(V==="array"||V==="nodebuffer")q.push(String.fromCharCode.apply(null,$.slice(K,Math.min(K+Q,G))));else q.push(String.fromCharCode.apply(null,$.subarray(K,Math.min(K+Q,G))));K+=Q}return q.join("")},stringifyByChar:function($){var V="";for(var Q=0;Q<$.length;Q++)V+=String.fromCharCode($[Q]);return V},applyCanBeUsed:{uint8array:function(){try{return O6.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch($){return!1}}(),nodebuffer:function(){try{return O6.nodebuffer&&String.fromCharCode.apply(null,t6.allocBuffer(1)).length===1}catch($){return!1}}()}};function w1($){var V=65536,Q=bq.getTypeOf($),q=!0;if(Q==="uint8array")q=s1.applyCanBeUsed.uint8array;else if(Q==="nodebuffer")q=s1.applyCanBeUsed.nodebuffer;if(q)while(V>1)try{return s1.stringifyByChunk($,Q,V)}catch(K){V=Math.floor(V/2)}return s1.stringifyByChar($)}bq.applyFromCharCode=w1;function e1($,V){for(var Q=0;Q<$.length;Q++)V[Q]=$[Q];return V}var B6={};B6.string={string:D1,array:function($){return t1($,new Array($.length))},arraybuffer:function($){return B6.string.uint8array($).buffer},uint8array:function($){return t1($,new Uint8Array($.length))},nodebuffer:function($){return t1($,t6.allocBuffer($.length))}};B6.array={string:w1,array:D1,arraybuffer:function($){return new Uint8Array($).buffer},uint8array:function($){return new Uint8Array($)},nodebuffer:function($){return t6.newBufferFrom($)}};B6.arraybuffer={string:function($){return w1(new Uint8Array($))},array:function($){return e1(new Uint8Array($),new Array($.byteLength))},arraybuffer:D1,uint8array:function($){return new Uint8Array($)},nodebuffer:function($){return t6.newBufferFrom(new Uint8Array($))}};B6.uint8array={string:w1,array:function($){return e1($,new Array($.length))},arraybuffer:function($){return $.buffer},uint8array:D1,nodebuffer:function($){return t6.newBufferFrom($)}};B6.nodebuffer={string:w1,array:function($){return e1($,new Array($.length))},arraybuffer:function($){return B6.nodebuffer.uint8array($).buffer},uint8array:function($){return e1($,new Uint8Array($.length))},nodebuffer:D1};bq.transformTo=function($,V){if(!V)V="";if(!$)return V;bq.checkSupport($);var Q=bq.getTypeOf(V),q=B6[Q][$](V);return q};bq.resolve=function($){var V=$.split("/"),Q=[];for(var q=0;q<V.length;q++){var K=V[q];if(K==="."||K===""&&q!==0&&q!==V.length-1)continue;else if(K==="..")Q.pop();else Q.push(K)}return Q.join("/")};bq.getTypeOf=function($){if(typeof $==="string")return"string";if(Object.prototype.toString.call($)==="[object Array]")return"array";if(O6.nodebuffer&&t6.isBuffer($))return"nodebuffer";if(O6.uint8array&&$ instanceof Uint8Array)return"uint8array";if(O6.arraybuffer&&$ instanceof ArrayBuffer)return"arraybuffer"};bq.checkSupport=function($){var V=O6[$.toLowerCase()];if(!V)throw new Error($+" is not supported by this platform")};bq.MAX_VALUE_16BITS=65535;bq.MAX_VALUE_32BITS=-1;bq.pretty=function($){var V="",Q,q;for(q=0;q<($||"").length;q++)Q=$.charCodeAt(q),V+="\\x"+(Q<16?"0":"")+Q.toString(16).toUpperCase();return V};bq.delay=function($,V,Q){setImmediate(function(){$.apply(Q||null,V||[])})};bq.inherits=function($,V){var Q=function(){};Q.prototype=V.prototype,$.prototype=new Q};bq.extend=function(){var $={},V,Q;for(V=0;V<arguments.length;V++)for(Q in arguments[V])if(Object.prototype.hasOwnProperty.call(arguments[V],Q)&&typeof $[Q]==="undefined")$[Q]=arguments[V][Q];return $};bq.prepareContent=function($,V,Q,q,K){var G=U8.Promise.resolve(V).then(function(W){var J=O6.blob&&(W instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(W))!==-1);if(J&&typeof FileReader!=="undefined")return new U8.Promise(function(P,j){var z=new FileReader;z.onload=function(C){P(C.target.result)},z.onerror=function(C){j(C.target.error)},z.readAsArrayBuffer(W)});else return W});return G.then(function(W){var J=bq.getTypeOf(W);if(!J)return U8.Promise.reject(new Error("Can't read the data of '"+$+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));if(J==="arraybuffer")W=bq.transformTo("uint8array",W);else if(J==="string"){if(K)W=Eq.decode(W);else if(Q){if(q!==!0)W=yq(W)}}return W})}});var m0=$0((GK,jQ)=>{function WQ($){this.name=$||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}WQ.prototype={push:function($){this.emit("data",$)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch($){this.emit("error",$)}return!0},error:function($){if(this.isFinished)return!1;if(this.isPaused)this.generatedError=$;else{if(this.isFinished=!0,this.emit("error",$),this.previous)this.previous.error($);this.cleanUp()}return!0},on:function($,V){return this._listeners[$].push(V),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function($,V){if(this._listeners[$])for(var Q=0;Q<this._listeners[$].length;Q++)this._listeners[$][Q].call(this,V)},pipe:function($){return $.registerPrevious(this)},registerPrevious:function($){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=$.streamInfo,this.mergeStreamInfo(),this.previous=$;var V=this;return $.on("data",function(Q){V.processChunk(Q)}),$.on("end",function(){V.end()}),$.on("error",function(Q){V.error(Q)}),this},pause:function(){if(this.isPaused||this.isFinished)return!1;if(this.isPaused=!0,this.previous)this.previous.pause();return!0},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var $=!1;if(this.generatedError)this.error(this.generatedError),$=!0;if(this.previous)this.previous.resume();return!$},flush:function(){},processChunk:function($){this.push($)},withStreamInfo:function($,V){return this.extraStreamInfo[$]=V,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var $ in this.extraStreamInfo){if(!Object.prototype.hasOwnProperty.call(this.extraStreamInfo,$))continue;this.streamInfo[$]=this.extraStreamInfo[$]}},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");if(this.isLocked=!0,this.previous)this.previous.lock()},toString:function(){var $="Worker "+this.name;if(this.previous)return this.previous+" -> "+$;else return $}};jQ.exports=WQ});var $1=$0((sq)=>{var e6=w0(),y6=U6(),iq=O1(),$2=m0(),N1=new Array(256);for(W6=0;W6<256;W6++)N1[W6]=W6>=252?6:W6>=248?5:W6>=240?4:W6>=224?3:W6>=192?2:1;var W6;N1[254]=N1[254]=1;var nq=function($){var V,Q,q,K,G,W=$.length,J=0;for(K=0;K<W;K++){if(Q=$.charCodeAt(K),(Q&64512)===55296&&K+1<W){if(q=$.charCodeAt(K+1),(q&64512)===56320)Q=65536+(Q-55296<<10)+(q-56320),K++}J+=Q<128?1:Q<2048?2:Q<65536?3:4}if(y6.uint8array)V=new Uint8Array(J);else V=new Array(J);for(G=0,K=0;G<J;K++){if(Q=$.charCodeAt(K),(Q&64512)===55296&&K+1<W){if(q=$.charCodeAt(K+1),(q&64512)===56320)Q=65536+(Q-55296<<10)+(q-56320),K++}if(Q<128)V[G++]=Q;else if(Q<2048)V[G++]=192|Q>>>6,V[G++]=128|Q&63;else if(Q<65536)V[G++]=224|Q>>>12,V[G++]=128|Q>>>6&63,V[G++]=128|Q&63;else V[G++]=240|Q>>>18,V[G++]=128|Q>>>12&63,V[G++]=128|Q>>>6&63,V[G++]=128|Q&63}return V},aq=function($,V){var Q;if(V=V||$.length,V>$.length)V=$.length;Q=V-1;while(Q>=0&&($[Q]&192)===128)Q--;if(Q<0)return V;if(Q===0)return V;return Q+N1[$[Q]]>V?Q:V},rq=function($){var V,Q,q,K,G=$.length,W=new Array(G*2);for(Q=0,V=0;V<G;){if(q=$[V++],q<128){W[Q++]=q;continue}if(K=N1[q],K>4){W[Q++]=65533,V+=K-1;continue}q&=K===2?31:K===3?15:7;while(K>1&&V<G)q=q<<6|$[V++]&63,K--;if(K>1){W[Q++]=65533;continue}if(q<65536)W[Q++]=q;else q-=65536,W[Q++]=55296|q>>10&1023,W[Q++]=56320|q&1023}if(W.length!==Q)if(W.subarray)W=W.subarray(0,Q);else W.length=Q;return e6.applyFromCharCode(W)};sq.utf8encode=function $(V){if(y6.nodebuffer)return iq.newBufferFrom(V,"utf-8");return nq(V)};sq.utf8decode=function $(V){if(y6.nodebuffer)return e6.transformTo("nodebuffer",V).toString("utf-8");return V=e6.transformTo(y6.uint8array?"uint8array":"array",V),rq(V)};function Q2(){$2.call(this,"utf-8 decode"),this.leftOver=null}e6.inherits(Q2,$2);Q2.prototype.processChunk=function($){var V=e6.transformTo(y6.uint8array?"uint8array":"array",$.data);if(this.leftOver&&this.leftOver.length){if(y6.uint8array){var Q=V;V=new Uint8Array(Q.length+this.leftOver.length),V.set(this.leftOver,0),V.set(Q,this.leftOver.length)}else V=this.leftOver.concat(V);this.leftOver=null}var q=aq(V),K=V;if(q!==V.length)if(y6.uint8array)K=V.subarray(0,q),this.leftOver=V.subarray(q,V.length);else K=V.slice(0,q),this.leftOver=V.slice(q,V.length);this.push({data:sq.utf8decode(K),meta:$.meta})};Q2.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:sq.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};sq.Utf8DecodeWorker=Q2;function j8(){$2.call(this,"utf-8 encode")}e6.inherits(j8,$2);j8.prototype.processChunk=function($){this.push({data:sq.utf8encode($.data),meta:$.meta})};sq.Utf8EncodeWorker=j8});var HQ=$0((WK,FQ)=>{var zQ=m0(),ZQ=w0();function z8($){zQ.call(this,"ConvertWorker to "+$),this.destType=$}ZQ.inherits(z8,zQ);z8.prototype.processChunk=function($){this.push({data:ZQ.transformTo(this.destType,$.data),meta:$.meta})};FQ.exports=z8});var OQ=$0((jK,LQ)=>{var MQ=(s2(),S$(r2)).Readable,$7=w0();$7.inherits(Z8,MQ);function Z8($,V,Q){MQ.call(this,V),this._helper=$;var q=this;$.on("data",function(K,G){if(!q.push(K))q._helper.pause();if(Q)Q(G)}).on("error",function(K){q.emit("error",K)}).on("end",function(){q.push(null)})}Z8.prototype._read=function(){this._helper.resume()};LQ.exports=Z8});var F8=$0((PK,IQ)=>{var b6=w0(),Q7=HQ(),V7=m0(),q7=Q8(),X7=U6(),Y7=s6(),BQ=null;if(X7.nodestream)try{BQ=OQ()}catch($){}function K7($,V,Q){switch($){case"blob":return b6.newBlob(b6.transformTo("arraybuffer",V),Q);case"base64":return q7.encode(V);default:return b6.transformTo($,V)}}function J7($,V){var Q,q=0,K=null,G=0;for(Q=0;Q<V.length;Q++)G+=V[Q].length;switch($){case"string":return V.join("");case"array":return Array.prototype.concat.apply([],V);case"uint8array":K=new Uint8Array(G);for(Q=0;Q<V.length;Q++)K.set(V[Q],q),q+=V[Q].length;return K;case"nodebuffer":return Buffer.concat(V);default:throw new Error("concat : unsupported type '"+$+"'")}}function G7($,V){return new Y7.Promise(function(Q,q){var K=[],G=$._internalType,W=$._outputType,J=$._mimeType;$.on("data",function(P,j){if(K.push(P),V)V(j)}).on("error",function(P){K=[],q(P)}).on("end",function(){try{var P=K7(W,J7(G,K),J);Q(P)}catch(j){q(j)}K=[]}).resume()})}function CQ($,V,Q){var q=V;switch(V){case"blob":case"arraybuffer":q="uint8array";break;case"base64":q="string";break}try{this._internalType=q,this._outputType=V,this._mimeType=Q,b6.checkSupport(q),this._worker=$.pipe(new Q7(q)),$.lock()}catch(K){this._worker=new V7("error"),this._worker.error(K)}}CQ.prototype={accumulate:function($){return G7(this,$)},on:function($,V){var Q=this;if($==="data")this._worker.on($,function(q){V.call(Q,q.data,q.meta)});else this._worker.on($,function(){b6.delay(V,arguments,Q)});return this},resume:function(){return b6.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function($){if(b6.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new BQ(this,{objectMode:this._outputType!=="nodebuffer"},$)}};IQ.exports=CQ});var H8=$0((U7)=>{U7.base64=!1;U7.binary=!1;U7.dir=!1;U7.createFolders=!0;U7.date=null;U7.compression=null;U7.compressionOptions=null;U7.comment=null;U7.unixPermissions=null;U7.dosPermissions=null});var M8=$0((ZK,DQ)=>{var V2=w0(),q2=m0(),B7=16384;function Q1($){q2.call(this,"DataWorker");var V=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,$.then(function(Q){if(V.dataIsReady=!0,V.data=Q,V.max=Q&&Q.length||0,V.type=V2.getTypeOf(Q),!V.isPaused)V._tickAndRepeat()},function(Q){V.error(Q)})}V2.inherits(Q1,q2);Q1.prototype.cleanUp=function(){q2.prototype.cleanUp.call(this),this.data=null};Q1.prototype.resume=function(){if(!q2.prototype.resume.call(this))return!1;if(!this._tickScheduled&&this.dataIsReady)this._tickScheduled=!0,V2.delay(this._tickAndRepeat,[],this);return!0};Q1.prototype._tickAndRepeat=function(){if(this._tickScheduled=!1,this.isPaused||this.isFinished)return;if(this._tick(),!this.isFinished)V2.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0};Q1.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var $=B7,V=null,Q=Math.min(this.max,this.index+$);if(this.index>=this.max)return this.end();else{switch(this.type){case"string":V=this.data.substring(this.index,Q);break;case"uint8array":V=this.data.subarray(this.index,Q);break;case"array":case"nodebuffer":V=this.data.slice(this.index,Q);break}return this.index=Q,this.push({data:V,meta:{percent:this.max?this.index/this.max*100:0}})}};DQ.exports=Q1});var X2=$0((FK,NQ)=>{var C7=w0();function I7(){var $,V=[];for(var Q=0;Q<256;Q++){$=Q;for(var q=0;q<8;q++)$=$&1?3988292384^$>>>1:$>>>1;V[Q]=$}return V}var wQ=I7();function D7($,V,Q,q){var K=wQ,G=q+Q;$=$^-1;for(var W=q;W<G;W++)$=$>>>8^K[($^V[W])&255];return $^-1}function w7($,V,Q,q){var K=wQ,G=q+Q;$=$^-1;for(var W=q;W<G;W++)$=$>>>8^K[($^V.charCodeAt(W))&255];return $^-1}NQ.exports=function $(V,Q){if(typeof V==="undefined"||!V.length)return 0;var q=C7.getTypeOf(V)!=="string";if(q)return D7(Q|0,V,V.length,0);else return w7(Q|0,V,V.length,0)}});var O8=$0((HK,AQ)=>{var vQ=m0(),N7=X2(),v7=w0();function L8(){vQ.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}v7.inherits(L8,vQ);L8.prototype.processChunk=function($){this.streamInfo.crc32=N7($.data,this.streamInfo.crc32||0),this.push($)};AQ.exports=L8});var xQ=$0((MK,RQ)=>{var A7=w0(),B8=m0();function C8($){B8.call(this,"DataLengthProbe for "+$),this.propName=$,this.withStreamInfo($,0)}A7.inherits(C8,B8);C8.prototype.processChunk=function($){if($){var V=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=V+$.data.length}B8.prototype.processChunk.call(this,$)};RQ.exports=C8});var Y2=$0((LK,kQ)=>{var TQ=s6(),SQ=M8(),R7=O8(),I8=xQ();function D8($,V,Q,q,K){this.compressedSize=$,this.uncompressedSize=V,this.crc32=Q,this.compression=q,this.compressedContent=K}D8.prototype={getContentWorker:function(){var $=new SQ(TQ.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new I8("data_length")),V=this;return $.on("end",function(){if(this.streamInfo.data_length!==V.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),$},getCompressedWorker:function(){return new SQ(TQ.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};D8.createWorkerFrom=function($,V,Q){return $.pipe(new R7).pipe(new I8("uncompressedSize")).pipe(V.compressWorker(Q)).pipe(new I8("compressedSize")).withStreamInfo("compression",V)};kQ.exports=D8});var bQ=$0((OK,yQ)=>{var x7=F8(),T7=M8(),w8=$1(),N8=Y2(),gQ=m0(),v8=function($,V,Q){this.name=$,this.dir=Q.dir,this.date=Q.date,this.comment=Q.comment,this.unixPermissions=Q.unixPermissions,this.dosPermissions=Q.dosPermissions,this._data=V,this._dataBinary=Q.binary,this.options={compression:Q.compression,compressionOptions:Q.compressionOptions}};v8.prototype={internalStream:function($){var V=null,Q="string";try{if(!$)throw new Error("No output type specified.");Q=$.toLowerCase();var q=Q==="string"||Q==="text";if(Q==="binarystring"||Q==="text")Q="string";V=this._decompressWorker();var K=!this._dataBinary;if(K&&!q)V=V.pipe(new w8.Utf8EncodeWorker);if(!K&&q)V=V.pipe(new w8.Utf8DecodeWorker)}catch(G){V=new gQ("error"),V.error(G)}return new x7(V,Q,"")},async:function($,V){return this.internalStream($).accumulate(V)},nodeStream:function($,V){return this.internalStream($||"nodebuffer").toNodejsStream(V)},_compressWorker:function($,V){if(this._data instanceof N8&&this._data.compression.magic===$.magic)return this._data.getCompressedWorker();else{var Q=this._decompressWorker();if(!this._dataBinary)Q=Q.pipe(new w8.Utf8EncodeWorker);return N8.createWorkerFrom(Q,$,V)}},_decompressWorker:function(){if(this._data instanceof N8)return this._data.getContentWorker();else if(this._data instanceof gQ)return this._data;else return new T7(this._data)}};var EQ=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],S7=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(K2=0;K2<EQ.length;K2++)v8.prototype[EQ[K2]]=S7;var K2;yQ.exports=v8});var j6=$0((A8)=>{var y7=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";function b7($,V){return Object.prototype.hasOwnProperty.call($,V)}A8.assign=function($){var V=Array.prototype.slice.call(arguments,1);while(V.length){var Q=V.shift();if(!Q)continue;if(typeof Q!=="object")throw new TypeError(Q+"must be non-object");for(var q in Q)if(b7(Q,q))$[q]=Q[q]}return $};A8.shrinkBuf=function($,V){if($.length===V)return $;if($.subarray)return $.subarray(0,V);return $.length=V,$};var f7={arraySet:function($,V,Q,q,K){if(V.subarray&&$.subarray){$.set(V.subarray(Q,Q+q),K);return}for(var G=0;G<q;G++)$[K+G]=V[Q+G]},flattenChunks:function($){var V,Q,q,K,G,W;q=0;for(V=0,Q=$.length;V<Q;V++)q+=$[V].length;W=new Uint8Array(q),K=0;for(V=0,Q=$.length;V<Q;V++)G=$[V],W.set(G,K),K+=G.length;return W}},h7={arraySet:function($,V,Q,q,K){for(var G=0;G<q;G++)$[K+G]=V[Q+G]},flattenChunks:function($){return[].concat.apply([],$)}};A8.setTyped=function($){if($)A8.Buf8=Uint8Array,A8.Buf16=Uint16Array,A8.Buf32=Int32Array,A8.assign(A8,f7);else A8.Buf8=Array,A8.Buf16=Array,A8.Buf32=Array,A8.assign(A8,h7)};A8.setTyped(y7)});var K5=$0((J3)=>{var m7=j6(),p7=4,hQ=0,_Q=1,c7=2;function q1($){var V=$.length;while(--V>=0)$[V]=0}var u7=0,lQ=1,d7=2,l7=3,o7=258,y8=29,S1=256,A1=S1+1+y8,V1=30,b8=19,oQ=2*A1+1,f6=15,x8=16,i7=7,f8=256,iQ=16,nQ=17,aQ=18,g8=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],J2=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],n7=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],rQ=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],a7=512,P6=new Array((A1+2)*2);q1(P6);var v1=new Array(V1*2);q1(v1);var R1=new Array(a7);q1(R1);var x1=new Array(o7-l7+1);q1(x1);var h8=new Array(y8);q1(h8);var G2=new Array(V1);q1(G2);function T8($,V,Q,q,K){this.static_tree=$,this.extra_bits=V,this.extra_base=Q,this.elems=q,this.max_length=K,this.has_stree=$&&$.length}var sQ,tQ,eQ;function S8($,V){this.dyn_tree=$,this.max_code=0,this.stat_desc=V}function $5($){return $<256?R1[$]:R1[256+($>>>7)]}function T1($,V){$.pending_buf[$.pending++]=V&255,$.pending_buf[$.pending++]=V>>>8&255}function h0($,V,Q){if($.bi_valid>x8-Q)$.bi_buf|=V<<$.bi_valid&65535,T1($,$.bi_buf),$.bi_buf=V>>x8-$.bi_valid,$.bi_valid+=Q-x8;else $.bi_buf|=V<<$.bi_valid&65535,$.bi_valid+=Q}function e0($,V,Q){h0($,Q[V*2],Q[V*2+1])}function Q5($,V){var Q=0;do Q|=$&1,$>>>=1,Q<<=1;while(--V>0);return Q>>>1}function r7($){if($.bi_valid===16)T1($,$.bi_buf),$.bi_buf=0,$.bi_valid=0;else if($.bi_valid>=8)$.pending_buf[$.pending++]=$.bi_buf&255,$.bi_buf>>=8,$.bi_valid-=8}function s7($,V){var{dyn_tree:Q,max_code:q}=V,K=V.stat_desc.static_tree,G=V.stat_desc.has_stree,W=V.stat_desc.extra_bits,J=V.stat_desc.extra_base,P=V.stat_desc.max_length,j,z,C,I,R,x,S=0;for(I=0;I<=f6;I++)$.bl_count[I]=0;Q[$.heap[$.heap_max]*2+1]=0;for(j=$.heap_max+1;j<oQ;j++){if(z=$.heap[j],I=Q[Q[z*2+1]*2+1]+1,I>P)I=P,S++;if(Q[z*2+1]=I,z>q)continue;if($.bl_count[I]++,R=0,z>=J)R=W[z-J];if(x=Q[z*2],$.opt_len+=x*(I+R),G)$.static_len+=x*(K[z*2+1]+R)}if(S===0)return;do{I=P-1;while($.bl_count[I]===0)I--;$.bl_count[I]--,$.bl_count[I+1]+=2,$.bl_count[P]--,S-=2}while(S>0);for(I=P;I!==0;I--){z=$.bl_count[I];while(z!==0){if(C=$.heap[--j],C>q)continue;if(Q[C*2+1]!==I)$.opt_len+=(I-Q[C*2+1])*Q[C*2],Q[C*2+1]=I;z--}}}function V5($,V,Q){var q=new Array(f6+1),K=0,G,W;for(G=1;G<=f6;G++)q[G]=K=K+Q[G-1]<<1;for(W=0;W<=V;W++){var J=$[W*2+1];if(J===0)continue;$[W*2]=Q5(q[J]++,J)}}function t7(){var $,V,Q,q,K,G=new Array(f6+1);Q=0;for(q=0;q<y8-1;q++){h8[q]=Q;for($=0;$<1<<g8[q];$++)x1[Q++]=q}x1[Q-1]=q,K=0;for(q=0;q<16;q++){G2[q]=K;for($=0;$<1<<J2[q];$++)R1[K++]=q}K>>=7;for(;q<V1;q++){G2[q]=K<<7;for($=0;$<1<<J2[q]-7;$++)R1[256+K++]=q}for(V=0;V<=f6;V++)G[V]=0;$=0;while($<=143)P6[$*2+1]=8,$++,G[8]++;while($<=255)P6[$*2+1]=9,$++,G[9]++;while($<=279)P6[$*2+1]=7,$++,G[7]++;while($<=287)P6[$*2+1]=8,$++,G[8]++;V5(P6,A1+1,G);for($=0;$<V1;$++)v1[$*2+1]=5,v1[$*2]=Q5($,5);sQ=new T8(P6,g8,S1+1,A1,f6),tQ=new T8(v1,J2,0,V1,f6),eQ=new T8(new Array(0),n7,0,b8,i7)}function q5($){var V;for(V=0;V<A1;V++)$.dyn_ltree[V*2]=0;for(V=0;V<V1;V++)$.dyn_dtree[V*2]=0;for(V=0;V<b8;V++)$.bl_tree[V*2]=0;$.dyn_ltree[f8*2]=1,$.opt_len=$.static_len=0,$.last_lit=$.matches=0}function X5($){if($.bi_valid>8)T1($,$.bi_buf);else if($.bi_valid>0)$.pending_buf[$.pending++]=$.bi_buf;$.bi_buf=0,$.bi_valid=0}function e7($,V,Q,q){if(X5($),q)T1($,Q),T1($,~Q);m7.arraySet($.pending_buf,$.window,V,Q,$.pending),$.pending+=Q}function mQ($,V,Q,q){var K=V*2,G=Q*2;return $[K]<$[G]||$[K]===$[G]&&q[V]<=q[Q]}function k8($,V,Q){var q=$.heap[Q],K=Q<<1;while(K<=$.heap_len){if(K<$.heap_len&&mQ(V,$.heap[K+1],$.heap[K],$.depth))K++;if(mQ(V,q,$.heap[K],$.depth))break;$.heap[Q]=$.heap[K],Q=K,K<<=1}$.heap[Q]=q}function pQ($,V,Q){var q,K,G=0,W,J;if($.last_lit!==0)do if(q=$.pending_buf[$.d_buf+G*2]<<8|$.pending_buf[$.d_buf+G*2+1],K=$.pending_buf[$.l_buf+G],G++,q===0)e0($,K,V);else{if(W=x1[K],e0($,W+S1+1,V),J=g8[W],J!==0)K-=h8[W],h0($,K,J);if(q--,W=$5(q),e0($,W,Q),J=J2[W],J!==0)q-=G2[W],h0($,q,J)}while(G<$.last_lit);e0($,f8,V)}function E8($,V){var Q=V.dyn_tree,q=V.stat_desc.static_tree,K=V.stat_desc.has_stree,G=V.stat_desc.elems,W,J,P=-1,j;$.heap_len=0,$.heap_max=oQ;for(W=0;W<G;W++)if(Q[W*2]!==0)$.heap[++$.heap_len]=P=W,$.depth[W]=0;else Q[W*2+1]=0;while($.heap_len<2)if(j=$.heap[++$.heap_len]=P<2?++P:0,Q[j*2]=1,$.depth[j]=0,$.opt_len--,K)$.static_len-=q[j*2+1];V.max_code=P;for(W=$.heap_len>>1;W>=1;W--)k8($,Q,W);j=G;do W=$.heap[1],$.heap[1]=$.heap[$.heap_len--],k8($,Q,1),J=$.heap[1],$.heap[--$.heap_max]=W,$.heap[--$.heap_max]=J,Q[j*2]=Q[W*2]+Q[J*2],$.depth[j]=($.depth[W]>=$.depth[J]?$.depth[W]:$.depth[J])+1,Q[W*2+1]=Q[J*2+1]=j,$.heap[1]=j++,k8($,Q,1);while($.heap_len>=2);$.heap[--$.heap_max]=$.heap[1],s7($,V),V5(Q,P,$.bl_count)}function cQ($,V,Q){var q,K=-1,G,W=V[1],J=0,P=7,j=4;if(W===0)P=138,j=3;V[(Q+1)*2+1]=65535;for(q=0;q<=Q;q++){if(G=W,W=V[(q+1)*2+1],++J<P&&G===W)continue;else if(J<j)$.bl_tree[G*2]+=J;else if(G!==0){if(G!==K)$.bl_tree[G*2]++;$.bl_tree[iQ*2]++}else if(J<=10)$.bl_tree[nQ*2]++;else $.bl_tree[aQ*2]++;if(J=0,K=G,W===0)P=138,j=3;else if(G===W)P=6,j=3;else P=7,j=4}}function uQ($,V,Q){var q,K=-1,G,W=V[1],J=0,P=7,j=4;if(W===0)P=138,j=3;for(q=0;q<=Q;q++){if(G=W,W=V[(q+1)*2+1],++J<P&&G===W)continue;else if(J<j)do e0($,G,$.bl_tree);while(--J!==0);else if(G!==0){if(G!==K)e0($,G,$.bl_tree),J--;e0($,iQ,$.bl_tree),h0($,J-3,2)}else if(J<=10)e0($,nQ,$.bl_tree),h0($,J-3,3);else e0($,aQ,$.bl_tree),h0($,J-11,7);if(J=0,K=G,W===0)P=138,j=3;else if(G===W)P=6,j=3;else P=7,j=4}}function $3($){var V;cQ($,$.dyn_ltree,$.l_desc.max_code),cQ($,$.dyn_dtree,$.d_desc.max_code),E8($,$.bl_desc);for(V=b8-1;V>=3;V--)if($.bl_tree[rQ[V]*2+1]!==0)break;return $.opt_len+=3*(V+1)+5+5+4,V}function Q3($,V,Q,q){var K;h0($,V-257,5),h0($,Q-1,5),h0($,q-4,4);for(K=0;K<q;K++)h0($,$.bl_tree[rQ[K]*2+1],3);uQ($,$.dyn_ltree,V-1),uQ($,$.dyn_dtree,Q-1)}function V3($){var V=4093624447,Q;for(Q=0;Q<=31;Q++,V>>>=1)if(V&1&&$.dyn_ltree[Q*2]!==0)return hQ;if($.dyn_ltree[18]!==0||$.dyn_ltree[20]!==0||$.dyn_ltree[26]!==0)return _Q;for(Q=32;Q<S1;Q++)if($.dyn_ltree[Q*2]!==0)return _Q;return hQ}var dQ=!1;function q3($){if(!dQ)t7(),dQ=!0;$.l_desc=new S8($.dyn_ltree,sQ),$.d_desc=new S8($.dyn_dtree,tQ),$.bl_desc=new S8($.bl_tree,eQ),$.bi_buf=0,$.bi_valid=0,q5($)}function Y5($,V,Q,q){h0($,(u7<<1)+(q?1:0),3),e7($,V,Q,!0)}function X3($){h0($,lQ<<1,3),e0($,f8,P6),r7($)}function Y3($,V,Q,q){var K,G,W=0;if($.level>0){if($.strm.data_type===c7)$.strm.data_type=V3($);if(E8($,$.l_desc),E8($,$.d_desc),W=$3($),K=$.opt_len+3+7>>>3,G=$.static_len+3+7>>>3,G<=K)K=G}else K=G=Q+5;if(Q+4<=K&&V!==-1)Y5($,V,Q,q);else if($.strategy===p7||G===K)h0($,(lQ<<1)+(q?1:0),3),pQ($,P6,v1);else h0($,(d7<<1)+(q?1:0),3),Q3($,$.l_desc.max_code+1,$.d_desc.max_code+1,W+1),pQ($,$.dyn_ltree,$.dyn_dtree);if(q5($),q)X5($)}function K3($,V,Q){if($.pending_buf[$.d_buf+$.last_lit*2]=V>>>8&255,$.pending_buf[$.d_buf+$.last_lit*2+1]=V&255,$.pending_buf[$.l_buf+$.last_lit]=Q&255,$.last_lit++,V===0)$.dyn_ltree[Q*2]++;else $.matches++,V--,$.dyn_ltree[(x1[Q]+S1+1)*2]++,$.dyn_dtree[$5(V)*2]++;return $.last_lit===$.lit_bufsize-1}J3._tr_init=q3;J3._tr_stored_block=Y5;J3._tr_flush_block=Y3;J3._tr_tally=K3;J3._tr_align=X3});var _8=$0((IK,J5)=>{function z3($,V,Q,q){var K=$&65535|0,G=$>>>16&65535|0,W=0;while(Q!==0){W=Q>2000?2000:Q,Q-=W;do K=K+V[q++]|0,G=G+K|0;while(--W);K%=65521,G%=65521}return K|G<<16|0}J5.exports=z3});var m8=$0((DK,G5)=>{function Z3(){var $,V=[];for(var Q=0;Q<256;Q++){$=Q;for(var q=0;q<8;q++)$=$&1?3988292384^$>>>1:$>>>1;V[Q]=$}return V}var F3=Z3();function H3($,V,Q,q){var K=F3,G=q+Q;$^=-1;for(var W=q;W<G;W++)$=$>>>8^K[($^V[W])&255];return $^-1}G5.exports=H3});var U2=$0((wK,U5)=>{U5.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var L5=$0((a3)=>{var y0=j6(),c0=K5(),z5=_8(),C6=m8(),M3=U2(),p6=0,L3=1,O3=3,v6=4,W5=5,Q6=0,j5=1,u0=-2,B3=-3,p8=-5,C3=-1,I3=1,W2=2,D3=3,w3=4,N3=0,v3=2,Z2=8,A3=9,R3=15,x3=8,T3=29,S3=256,u8=S3+1+T3,k3=30,g3=19,E3=2*u8+1,y3=15,J0=3,w6=258,i0=w6+J0+1,b3=32,F2=42,d8=69,j2=73,P2=91,z2=103,h6=113,g1=666,T0=1,E1=2,_6=3,K1=4,f3=3;function N6($,V){return $.msg=M3[V],V}function P5($){return($<<1)-($>4?9:0)}function D6($){var V=$.length;while(--V>=0)$[V]=0}function I6($){var V=$.state,Q=V.pending;if(Q>$.avail_out)Q=$.avail_out;if(Q===0)return;if(y0.arraySet($.output,V.pending_buf,V.pending_out,Q,$.next_out),$.next_out+=Q,V.pending_out+=Q,$.total_out+=Q,$.avail_out-=Q,V.pending-=Q,V.pending===0)V.pending_out=0}function S0($,V){c0._tr_flush_block($,$.block_start>=0?$.block_start:-1,$.strstart-$.block_start,V),$.block_start=$.strstart,I6($.strm)}function P0($,V){$.pending_buf[$.pending++]=V}function k1($,V){$.pending_buf[$.pending++]=V>>>8&255,$.pending_buf[$.pending++]=V&255}function h3($,V,Q,q){var K=$.avail_in;if(K>q)K=q;if(K===0)return 0;if($.avail_in-=K,y0.arraySet(V,$.input,$.next_in,K,Q),$.state.wrap===1)$.adler=z5($.adler,V,K,Q);else if($.state.wrap===2)$.adler=C6($.adler,V,K,Q);return $.next_in+=K,$.total_in+=K,K}function Z5($,V){var{max_chain_length:Q,strstart:q}=$,K,G,W=$.prev_length,J=$.nice_match,P=$.strstart>$.w_size-i0?$.strstart-($.w_size-i0):0,j=$.window,z=$.w_mask,C=$.prev,I=$.strstart+w6,R=j[q+W-1],x=j[q+W];if($.prev_length>=$.good_match)Q>>=2;if(J>$.lookahead)J=$.lookahead;do{if(K=V,j[K+W]!==x||j[K+W-1]!==R||j[K]!==j[q]||j[++K]!==j[q+1])continue;q+=2,K++;do;while(j[++q]===j[++K]&&j[++q]===j[++K]&&j[++q]===j[++K]&&j[++q]===j[++K]&&j[++q]===j[++K]&&j[++q]===j[++K]&&j[++q]===j[++K]&&j[++q]===j[++K]&&q<I);if(G=w6-(I-q),q=I-w6,G>W){if($.match_start=V,W=G,G>=J)break;R=j[q+W-1],x=j[q+W]}}while((V=C[V&z])>P&&--Q!==0);if(W<=$.lookahead)return W;return $.lookahead}function m6($){var V=$.w_size,Q,q,K,G,W;do{if(G=$.window_size-$.lookahead-$.strstart,$.strstart>=V+(V-i0)){y0.arraySet($.window,$.window,V,V,0),$.match_start-=V,$.strstart-=V,$.block_start-=V,q=$.hash_size,Q=q;do K=$.head[--Q],$.head[Q]=K>=V?K-V:0;while(--q);q=V,Q=q;do K=$.prev[--Q],$.prev[Q]=K>=V?K-V:0;while(--q);G+=V}if($.strm.avail_in===0)break;if(q=h3($.strm,$.window,$.strstart+$.lookahead,G),$.lookahead+=q,$.lookahead+$.insert>=J0){W=$.strstart-$.insert,$.ins_h=$.window[W],$.ins_h=($.ins_h<<$.hash_shift^$.window[W+1])&$.hash_mask;while($.insert)if($.ins_h=($.ins_h<<$.hash_shift^$.window[W+J0-1])&$.hash_mask,$.prev[W&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=W,W++,$.insert--,$.lookahead+$.insert<J0)break}}while($.lookahead<i0&&$.strm.avail_in!==0)}function _3($,V){var Q=65535;if(Q>$.pending_buf_size-5)Q=$.pending_buf_size-5;for(;;){if($.lookahead<=1){if(m6($),$.lookahead===0&&V===p6)return T0;if($.lookahead===0)break}$.strstart+=$.lookahead,$.lookahead=0;var q=$.block_start+Q;if($.strstart===0||$.strstart>=q){if($.lookahead=$.strstart-q,$.strstart=q,S0($,!1),$.strm.avail_out===0)return T0}if($.strstart-$.block_start>=$.w_size-i0){if(S0($,!1),$.strm.avail_out===0)return T0}}if($.insert=0,V===v6){if(S0($,!0),$.strm.avail_out===0)return _6;return K1}if($.strstart>$.block_start){if(S0($,!1),$.strm.avail_out===0)return T0}return T0}function c8($,V){var Q,q;for(;;){if($.lookahead<i0){if(m6($),$.lookahead<i0&&V===p6)return T0;if($.lookahead===0)break}if(Q=0,$.lookahead>=J0)$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+J0-1])&$.hash_mask,Q=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;if(Q!==0&&$.strstart-Q<=$.w_size-i0)$.match_length=Z5($,Q);if($.match_length>=J0)if(q=c0._tr_tally($,$.strstart-$.match_start,$.match_length-J0),$.lookahead-=$.match_length,$.match_length<=$.max_lazy_match&&$.lookahead>=J0){$.match_length--;do $.strstart++,$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+J0-1])&$.hash_mask,Q=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;while(--$.match_length!==0);$.strstart++}else $.strstart+=$.match_length,$.match_length=0,$.ins_h=$.window[$.strstart],$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+1])&$.hash_mask;else q=c0._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++;if(q){if(S0($,!1),$.strm.avail_out===0)return T0}}if($.insert=$.strstart<J0-1?$.strstart:J0-1,V===v6){if(S0($,!0),$.strm.avail_out===0)return _6;return K1}if($.last_lit){if(S0($,!1),$.strm.avail_out===0)return T0}return E1}function X1($,V){var Q,q,K;for(;;){if($.lookahead<i0){if(m6($),$.lookahead<i0&&V===p6)return T0;if($.lookahead===0)break}if(Q=0,$.lookahead>=J0)$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+J0-1])&$.hash_mask,Q=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;if($.prev_length=$.match_length,$.prev_match=$.match_start,$.match_length=J0-1,Q!==0&&$.prev_length<$.max_lazy_match&&$.strstart-Q<=$.w_size-i0){if($.match_length=Z5($,Q),$.match_length<=5&&($.strategy===I3||$.match_length===J0&&$.strstart-$.match_start>4096))$.match_length=J0-1}if($.prev_length>=J0&&$.match_length<=$.prev_length){K=$.strstart+$.lookahead-J0,q=c0._tr_tally($,$.strstart-1-$.prev_match,$.prev_length-J0),$.lookahead-=$.prev_length-1,$.prev_length-=2;do if(++$.strstart<=K)$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+J0-1])&$.hash_mask,Q=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;while(--$.prev_length!==0);if($.match_available=0,$.match_length=J0-1,$.strstart++,q){if(S0($,!1),$.strm.avail_out===0)return T0}}else if($.match_available){if(q=c0._tr_tally($,0,$.window[$.strstart-1]),q)S0($,!1);if($.strstart++,$.lookahead--,$.strm.avail_out===0)return T0}else $.match_available=1,$.strstart++,$.lookahead--}if($.match_available)q=c0._tr_tally($,0,$.window[$.strstart-1]),$.match_available=0;if($.insert=$.strstart<J0-1?$.strstart:J0-1,V===v6){if(S0($,!0),$.strm.avail_out===0)return _6;return K1}if($.last_lit){if(S0($,!1),$.strm.avail_out===0)return T0}return E1}function m3($,V){var Q,q,K,G,W=$.window;for(;;){if($.lookahead<=w6){if(m6($),$.lookahead<=w6&&V===p6)return T0;if($.lookahead===0)break}if($.match_length=0,$.lookahead>=J0&&$.strstart>0){if(K=$.strstart-1,q=W[K],q===W[++K]&&q===W[++K]&&q===W[++K]){G=$.strstart+w6;do;while(q===W[++K]&&q===W[++K]&&q===W[++K]&&q===W[++K]&&q===W[++K]&&q===W[++K]&&q===W[++K]&&q===W[++K]&&K<G);if($.match_length=w6-(G-K),$.match_length>$.lookahead)$.match_length=$.lookahead}}if($.match_length>=J0)Q=c0._tr_tally($,1,$.match_length-J0),$.lookahead-=$.match_length,$.strstart+=$.match_length,$.match_length=0;else Q=c0._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++;if(Q){if(S0($,!1),$.strm.avail_out===0)return T0}}if($.insert=0,V===v6){if(S0($,!0),$.strm.avail_out===0)return _6;return K1}if($.last_lit){if(S0($,!1),$.strm.avail_out===0)return T0}return E1}function p3($,V){var Q;for(;;){if($.lookahead===0){if(m6($),$.lookahead===0){if(V===p6)return T0;break}}if($.match_length=0,Q=c0._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++,Q){if(S0($,!1),$.strm.avail_out===0)return T0}}if($.insert=0,V===v6){if(S0($,!0),$.strm.avail_out===0)return _6;return K1}if($.last_lit){if(S0($,!1),$.strm.avail_out===0)return T0}return E1}function $6($,V,Q,q,K){this.good_length=$,this.max_lazy=V,this.nice_length=Q,this.max_chain=q,this.func=K}var Y1;Y1=[new $6(0,0,0,0,_3),new $6(4,4,8,4,c8),new $6(4,5,16,8,c8),new $6(4,6,32,32,c8),new $6(4,4,16,16,X1),new $6(8,16,32,32,X1),new $6(8,16,128,128,X1),new $6(8,32,128,256,X1),new $6(32,128,258,1024,X1),new $6(32,258,258,4096,X1)];function c3($){$.window_size=2*$.w_size,D6($.head),$.max_lazy_match=Y1[$.level].max_lazy,$.good_match=Y1[$.level].good_length,$.nice_match=Y1[$.level].nice_length,$.max_chain_length=Y1[$.level].max_chain,$.strstart=0,$.block_start=0,$.lookahead=0,$.insert=0,$.match_length=$.prev_length=J0-1,$.match_available=0,$.ins_h=0}function u3(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Z2,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new y0.Buf16(E3*2),this.dyn_dtree=new y0.Buf16((2*k3+1)*2),this.bl_tree=new y0.Buf16((2*g3+1)*2),D6(this.dyn_ltree),D6(this.dyn_dtree),D6(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new y0.Buf16(y3+1),this.heap=new y0.Buf16(2*u8+1),D6(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new y0.Buf16(2*u8+1),D6(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function F5($){var V;if(!$||!$.state)return N6($,u0);if($.total_in=$.total_out=0,$.data_type=v3,V=$.state,V.pending=0,V.pending_out=0,V.wrap<0)V.wrap=-V.wrap;return V.status=V.wrap?F2:h6,$.adler=V.wrap===2?0:1,V.last_flush=p6,c0._tr_init(V),Q6}function H5($){var V=F5($);if(V===Q6)c3($.state);return V}function d3($,V){if(!$||!$.state)return u0;if($.state.wrap!==2)return u0;return $.state.gzhead=V,Q6}function M5($,V,Q,q,K,G){if(!$)return u0;var W=1;if(V===C3)V=6;if(q<0)W=0,q=-q;else if(q>15)W=2,q-=16;if(K<1||K>A3||Q!==Z2||q<8||q>15||V<0||V>9||G<0||G>w3)return N6($,u0);if(q===8)q=9;var J=new u3;return $.state=J,J.strm=$,J.wrap=W,J.gzhead=null,J.w_bits=q,J.w_size=1<<J.w_bits,J.w_mask=J.w_size-1,J.hash_bits=K+7,J.hash_size=1<<J.hash_bits,J.hash_mask=J.hash_size-1,J.hash_shift=~~((J.hash_bits+J0-1)/J0),J.window=new y0.Buf8(J.w_size*2),J.head=new y0.Buf16(J.hash_size),J.prev=new y0.Buf16(J.w_size),J.lit_bufsize=1<<K+6,J.pending_buf_size=J.lit_bufsize*4,J.pending_buf=new y0.Buf8(J.pending_buf_size),J.d_buf=1*J.lit_bufsize,J.l_buf=3*J.lit_bufsize,J.level=V,J.strategy=G,J.method=Q,H5($)}function l3($,V){return M5($,V,Z2,R3,x3,N3)}function o3($,V){var Q,q,K,G;if(!$||!$.state||V>W5||V<0)return $?N6($,u0):u0;if(q=$.state,!$.output||!$.input&&$.avail_in!==0||q.status===g1&&V!==v6)return N6($,$.avail_out===0?p8:u0);if(q.strm=$,Q=q.last_flush,q.last_flush=V,q.status===F2)if(q.wrap===2)if($.adler=0,P0(q,31),P0(q,139),P0(q,8),!q.gzhead)P0(q,0),P0(q,0),P0(q,0),P0(q,0),P0(q,0),P0(q,q.level===9?2:q.strategy>=W2||q.level<2?4:0),P0(q,f3),q.status=h6;else{if(P0(q,(q.gzhead.text?1:0)+(q.gzhead.hcrc?2:0)+(!q.gzhead.extra?0:4)+(!q.gzhead.name?0:8)+(!q.gzhead.comment?0:16)),P0(q,q.gzhead.time&255),P0(q,q.gzhead.time>>8&255),P0(q,q.gzhead.time>>16&255),P0(q,q.gzhead.time>>24&255),P0(q,q.level===9?2:q.strategy>=W2||q.level<2?4:0),P0(q,q.gzhead.os&255),q.gzhead.extra&&q.gzhead.extra.length)P0(q,q.gzhead.extra.length&255),P0(q,q.gzhead.extra.length>>8&255);if(q.gzhead.hcrc)$.adler=C6($.adler,q.pending_buf,q.pending,0);q.gzindex=0,q.status=d8}else{var W=Z2+(q.w_bits-8<<4)<<8,J=-1;if(q.strategy>=W2||q.level<2)J=0;else if(q.level<6)J=1;else if(q.level===6)J=2;else J=3;if(W|=J<<6,q.strstart!==0)W|=b3;if(W+=31-W%31,q.status=h6,k1(q,W),q.strstart!==0)k1(q,$.adler>>>16),k1(q,$.adler&65535);$.adler=1}if(q.status===d8)if(q.gzhead.extra){K=q.pending;while(q.gzindex<(q.gzhead.extra.length&65535)){if(q.pending===q.pending_buf_size){if(q.gzhead.hcrc&&q.pending>K)$.adler=C6($.adler,q.pending_buf,q.pending-K,K);if(I6($),K=q.pending,q.pending===q.pending_buf_size)break}P0(q,q.gzhead.extra[q.gzindex]&255),q.gzindex++}if(q.gzhead.hcrc&&q.pending>K)$.adler=C6($.adler,q.pending_buf,q.pending-K,K);if(q.gzindex===q.gzhead.extra.length)q.gzindex=0,q.status=j2}else q.status=j2;if(q.status===j2)if(q.gzhead.name){K=q.pending;do{if(q.pending===q.pending_buf_size){if(q.gzhead.hcrc&&q.pending>K)$.adler=C6($.adler,q.pending_buf,q.pending-K,K);if(I6($),K=q.pending,q.pending===q.pending_buf_size){G=1;break}}if(q.gzindex<q.gzhead.name.length)G=q.gzhead.name.charCodeAt(q.gzindex++)&255;else G=0;P0(q,G)}while(G!==0);if(q.gzhead.hcrc&&q.pending>K)$.adler=C6($.adler,q.pending_buf,q.pending-K,K);if(G===0)q.gzindex=0,q.status=P2}else q.status=P2;if(q.status===P2)if(q.gzhead.comment){K=q.pending;do{if(q.pending===q.pending_buf_size){if(q.gzhead.hcrc&&q.pending>K)$.adler=C6($.adler,q.pending_buf,q.pending-K,K);if(I6($),K=q.pending,q.pending===q.pending_buf_size){G=1;break}}if(q.gzindex<q.gzhead.comment.length)G=q.gzhead.comment.charCodeAt(q.gzindex++)&255;else G=0;P0(q,G)}while(G!==0);if(q.gzhead.hcrc&&q.pending>K)$.adler=C6($.adler,q.pending_buf,q.pending-K,K);if(G===0)q.status=z2}else q.status=z2;if(q.status===z2)if(q.gzhead.hcrc){if(q.pending+2>q.pending_buf_size)I6($);if(q.pending+2<=q.pending_buf_size)P0(q,$.adler&255),P0(q,$.adler>>8&255),$.adler=0,q.status=h6}else q.status=h6;if(q.pending!==0){if(I6($),$.avail_out===0)return q.last_flush=-1,Q6}else if($.avail_in===0&&P5(V)<=P5(Q)&&V!==v6)return N6($,p8);if(q.status===g1&&$.avail_in!==0)return N6($,p8);if($.avail_in!==0||q.lookahead!==0||V!==p6&&q.status!==g1){var P=q.strategy===W2?p3(q,V):q.strategy===D3?m3(q,V):Y1[q.level].func(q,V);if(P===_6||P===K1)q.status=g1;if(P===T0||P===_6){if($.avail_out===0)q.last_flush=-1;return Q6}if(P===E1){if(V===L3)c0._tr_align(q);else if(V!==W5){if(c0._tr_stored_block(q,0,0,!1),V===O3){if(D6(q.head),q.lookahead===0)q.strstart=0,q.block_start=0,q.insert=0}}if(I6($),$.avail_out===0)return q.last_flush=-1,Q6}}if(V!==v6)return Q6;if(q.wrap<=0)return j5;if(q.wrap===2)P0(q,$.adler&255),P0(q,$.adler>>8&255),P0(q,$.adler>>16&255),P0(q,$.adler>>24&255),P0(q,$.total_in&255),P0(q,$.total_in>>8&255),P0(q,$.total_in>>16&255),P0(q,$.total_in>>24&255);else k1(q,$.adler>>>16),k1(q,$.adler&65535);if(I6($),q.wrap>0)q.wrap=-q.wrap;return q.pending!==0?Q6:j5}function i3($){var V;if(!$||!$.state)return u0;if(V=$.state.status,V!==F2&&V!==d8&&V!==j2&&V!==P2&&V!==z2&&V!==h6&&V!==g1)return N6($,u0);return $.state=null,V===h6?N6($,B3):Q6}function n3($,V){var Q=V.length,q,K,G,W,J,P,j,z;if(!$||!$.state)return u0;if(q=$.state,W=q.wrap,W===2||W===1&&q.status!==F2||q.lookahead)return u0;if(W===1)$.adler=z5($.adler,V,Q,0);if(q.wrap=0,Q>=q.w_size){if(W===0)D6(q.head),q.strstart=0,q.block_start=0,q.insert=0;z=new y0.Buf8(q.w_size),y0.arraySet(z,V,Q-q.w_size,q.w_size,0),V=z,Q=q.w_size}J=$.avail_in,P=$.next_in,j=$.input,$.avail_in=Q,$.next_in=0,$.input=V,m6(q);while(q.lookahead>=J0){K=q.strstart,G=q.lookahead-(J0-1);do q.ins_h=(q.ins_h<<q.hash_shift^q.window[K+J0-1])&q.hash_mask,q.prev[K&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=K,K++;while(--G);q.strstart=K,q.lookahead=J0-1,m6(q)}return q.strstart+=q.lookahead,q.block_start=q.strstart,q.insert=q.lookahead,q.lookahead=0,q.match_length=q.prev_length=J0-1,q.match_available=0,$.next_in=P,$.input=j,$.avail_in=J,q.wrap=W,Q6}a3.deflateInit=l3;a3.deflateInit2=M5;a3.deflateReset=H5;a3.deflateResetKeep=F5;a3.deflateSetHeader=d3;a3.deflate=o3;a3.deflateEnd=i3;a3.deflateSetDictionary=n3;a3.deflateInfo="pako deflate (from Nodeca project)"});var l8=$0((YX)=>{var H2=j6(),O5=!0,B5=!0;try{String.fromCharCode.apply(null,[0])}catch($){O5=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch($){B5=!1}var y1=new H2.Buf8(256);for(z6=0;z6<256;z6++)y1[z6]=z6>=252?6:z6>=248?5:z6>=240?4:z6>=224?3:z6>=192?2:1;var z6;y1[254]=y1[254]=1;YX.string2buf=function($){var V,Q,q,K,G,W=$.length,J=0;for(K=0;K<W;K++){if(Q=$.charCodeAt(K),(Q&64512)===55296&&K+1<W){if(q=$.charCodeAt(K+1),(q&64512)===56320)Q=65536+(Q-55296<<10)+(q-56320),K++}J+=Q<128?1:Q<2048?2:Q<65536?3:4}V=new H2.Buf8(J);for(G=0,K=0;G<J;K++){if(Q=$.charCodeAt(K),(Q&64512)===55296&&K+1<W){if(q=$.charCodeAt(K+1),(q&64512)===56320)Q=65536+(Q-55296<<10)+(q-56320),K++}if(Q<128)V[G++]=Q;else if(Q<2048)V[G++]=192|Q>>>6,V[G++]=128|Q&63;else if(Q<65536)V[G++]=224|Q>>>12,V[G++]=128|Q>>>6&63,V[G++]=128|Q&63;else V[G++]=240|Q>>>18,V[G++]=128|Q>>>12&63,V[G++]=128|Q>>>6&63,V[G++]=128|Q&63}return V};function C5($,V){if(V<65534){if($.subarray&&B5||!$.subarray&&O5)return String.fromCharCode.apply(null,H2.shrinkBuf($,V))}var Q="";for(var q=0;q<V;q++)Q+=String.fromCharCode($[q]);return Q}YX.buf2binstring=function($){return C5($,$.length)};YX.binstring2buf=function($){var V=new H2.Buf8($.length);for(var Q=0,q=V.length;Q<q;Q++)V[Q]=$.charCodeAt(Q);return V};YX.buf2string=function($,V){var Q,q,K,G,W=V||$.length,J=new Array(W*2);for(q=0,Q=0;Q<W;){if(K=$[Q++],K<128){J[q++]=K;continue}if(G=y1[K],G>4){J[q++]=65533,Q+=G-1;continue}K&=G===2?31:G===3?15:7;while(G>1&&Q<W)K=K<<6|$[Q++]&63,G--;if(G>1){J[q++]=65533;continue}if(K<65536)J[q++]=K;else K-=65536,J[q++]=55296|K>>10&1023,J[q++]=56320|K&1023}return C5(J,q)};YX.utf8border=function($,V){var Q;if(V=V||$.length,V>$.length)V=$.length;Q=V-1;while(Q>=0&&($[Q]&192)===128)Q--;if(Q<0)return V;if(Q===0)return V;return Q+y1[$[Q]]>V?Q:V}});var o8=$0((AK,I5)=>{function jX(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}I5.exports=jX});var v5=$0((OX)=>{var b1=L5(),f1=j6(),n8=l8(),a8=U2(),PX=o8(),N5=Object.prototype.toString,zX=0,i8=4,J1=0,D5=1,w5=2,ZX=-1,FX=0,HX=8;function c6($){if(!(this instanceof c6))return new c6($);this.options=f1.assign({level:ZX,method:HX,chunkSize:16384,windowBits:15,memLevel:8,strategy:FX,to:""},$||{});var V=this.options;if(V.raw&&V.windowBits>0)V.windowBits=-V.windowBits;else if(V.gzip&&V.windowBits>0&&V.windowBits<16)V.windowBits+=16;this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new PX,this.strm.avail_out=0;var Q=b1.deflateInit2(this.strm,V.level,V.method,V.windowBits,V.memLevel,V.strategy);if(Q!==J1)throw new Error(a8[Q]);if(V.header)b1.deflateSetHeader(this.strm,V.header);if(V.dictionary){var q;if(typeof V.dictionary==="string")q=n8.string2buf(V.dictionary);else if(N5.call(V.dictionary)==="[object ArrayBuffer]")q=new Uint8Array(V.dictionary);else q=V.dictionary;if(Q=b1.deflateSetDictionary(this.strm,q),Q!==J1)throw new Error(a8[Q]);this._dict_set=!0}}c6.prototype.push=function($,V){var Q=this.strm,q=this.options.chunkSize,K,G;if(this.ended)return!1;if(G=V===~~V?V:V===!0?i8:zX,typeof $==="string")Q.input=n8.string2buf($);else if(N5.call($)==="[object ArrayBuffer]")Q.input=new Uint8Array($);else Q.input=$;Q.next_in=0,Q.avail_in=Q.input.length;do{if(Q.avail_out===0)Q.output=new f1.Buf8(q),Q.next_out=0,Q.avail_out=q;if(K=b1.deflate(Q,G),K!==D5&&K!==J1)return this.onEnd(K),this.ended=!0,!1;if(Q.avail_out===0||Q.avail_in===0&&(G===i8||G===w5))if(this.options.to==="string")this.onData(n8.buf2binstring(f1.shrinkBuf(Q.output,Q.next_out)));else this.onData(f1.shrinkBuf(Q.output,Q.next_out))}while((Q.avail_in>0||Q.avail_out===0)&&K!==D5);if(G===i8)return K=b1.deflateEnd(this.strm),this.onEnd(K),this.ended=!0,K===J1;if(G===w5)return this.onEnd(J1),Q.avail_out=0,!0;return!0};c6.prototype.onData=function($){this.chunks.push($)};c6.prototype.onEnd=function($){if($===J1)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=f1.flattenChunks(this.chunks);this.chunks=[],this.err=$,this.msg=this.strm.msg};function r8($,V){var Q=new c6(V);if(Q.push($,!0),Q.err)throw Q.msg||a8[Q.err];return Q.result}function MX($,V){return V=V||{},V.raw=!0,r8($,V)}function LX($,V){return V=V||{},V.gzip=!0,r8($,V)}OX.Deflate=c6;OX.deflate=r8;OX.deflateRaw=MX;OX.gzip=LX});var R5=$0((xK,A5)=>{var M2=30,wX=12;A5.exports=function $(V,Q){var q,K,G,W,J,P,j,z,C,I,R,x,S,g,y,Z,O,M,A,B,L,T,E,f,b;q=V.state,K=V.next_in,f=V.input,G=K+(V.avail_in-5),W=V.next_out,b=V.output,J=W-(Q-V.avail_out),P=W+(V.avail_out-257),j=q.dmax,z=q.wsize,C=q.whave,I=q.wnext,R=q.window,x=q.hold,S=q.bits,g=q.lencode,y=q.distcode,Z=(1<<q.lenbits)-1,O=(1<<q.distbits)-1;$:do{if(S<15)x+=f[K++]<<S,S+=8,x+=f[K++]<<S,S+=8;M=g[x&Z];Q:for(;;){if(A=M>>>24,x>>>=A,S-=A,A=M>>>16&255,A===0)b[W++]=M&65535;else if(A&16){if(B=M&65535,A&=15,A){if(S<A)x+=f[K++]<<S,S+=8;B+=x&(1<<A)-1,x>>>=A,S-=A}if(S<15)x+=f[K++]<<S,S+=8,x+=f[K++]<<S,S+=8;M=y[x&O];V:for(;;){if(A=M>>>24,x>>>=A,S-=A,A=M>>>16&255,A&16){if(L=M&65535,A&=15,S<A){if(x+=f[K++]<<S,S+=8,S<A)x+=f[K++]<<S,S+=8}if(L+=x&(1<<A)-1,L>j){V.msg="invalid distance too far back",q.mode=M2;break $}if(x>>>=A,S-=A,A=W-J,L>A){if(A=L-A,A>C){if(q.sane){V.msg="invalid distance too far back",q.mode=M2;break $}}if(T=0,E=R,I===0){if(T+=z-A,A<B){B-=A;do b[W++]=R[T++];while(--A);T=W-L,E=b}}else if(I<A){if(T+=z+I-A,A-=I,A<B){B-=A;do b[W++]=R[T++];while(--A);if(T=0,I<B){A=I,B-=A;do b[W++]=R[T++];while(--A);T=W-L,E=b}}}else if(T+=I-A,A<B){B-=A;do b[W++]=R[T++];while(--A);T=W-L,E=b}while(B>2)b[W++]=E[T++],b[W++]=E[T++],b[W++]=E[T++],B-=3;if(B){if(b[W++]=E[T++],B>1)b[W++]=E[T++]}}else{T=W-L;do b[W++]=b[T++],b[W++]=b[T++],b[W++]=b[T++],B-=3;while(B>2);if(B){if(b[W++]=b[T++],B>1)b[W++]=b[T++]}}}else if((A&64)===0){M=y[(M&65535)+(x&(1<<A)-1)];continue V}else{V.msg="invalid distance code",q.mode=M2;break $}break}}else if((A&64)===0){M=g[(M&65535)+(x&(1<<A)-1)];continue Q}else if(A&32){q.mode=wX;break $}else{V.msg="invalid literal/length code",q.mode=M2;break $}break}}while(K<G&&W<P);B=S>>3,K-=B,S-=B<<3,x&=(1<<S)-1,V.next_in=K,V.next_out=W,V.avail_in=K<G?5+(G-K):5-(K-G),V.avail_out=W<P?257+(P-W):257-(W-P),q.hold=x,q.bits=S;return}});var y5=$0((TK,E5)=>{var x5=j6(),G1=15,T5=852,S5=592,k5=0,s8=1,g5=2,NX=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],vX=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],AX=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],RX=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];E5.exports=function $(V,Q,q,K,G,W,J,P){var j=P.bits,z=0,C=0,I=0,R=0,x=0,S=0,g=0,y=0,Z=0,O=0,M,A,B,L,T,E=null,f=0,b,F=new x5.Buf16(G1+1),m=new x5.Buf16(G1+1),n=null,v=0,c,u,i;for(z=0;z<=G1;z++)F[z]=0;for(C=0;C<K;C++)F[Q[q+C]]++;x=j;for(R=G1;R>=1;R--)if(F[R]!==0)break;if(x>R)x=R;if(R===0)return G[W++]=20971520,G[W++]=20971520,P.bits=1,0;for(I=1;I<R;I++)if(F[I]!==0)break;if(x<I)x=I;y=1;for(z=1;z<=G1;z++)if(y<<=1,y-=F[z],y<0)return-1;if(y>0&&(V===k5||R!==1))return-1;m[1]=0;for(z=1;z<G1;z++)m[z+1]=m[z]+F[z];for(C=0;C<K;C++)if(Q[q+C]!==0)J[m[Q[q+C]]++]=C;if(V===k5)E=n=J,b=19;else if(V===s8)E=NX,f-=257,n=vX,v-=257,b=256;else E=AX,n=RX,b=-1;if(O=0,C=0,z=I,T=W,S=x,g=0,B=-1,Z=1<<x,L=Z-1,V===s8&&Z>T5||V===g5&&Z>S5)return 1;for(;;){if(c=z-g,J[C]<b)u=0,i=J[C];else if(J[C]>b)u=n[v+J[C]],i=E[f+J[C]];else u=96,i=0;M=1<<z-g,A=1<<S,I=A;do A-=M,G[T+(O>>g)+A]=c<<24|u<<16|i|0;while(A!==0);M=1<<z-1;while(O&M)M>>=1;if(M!==0)O&=M-1,O+=M;else O=0;if(C++,--F[z]===0){if(z===R)break;z=Q[q+J[C]]}if(z>x&&(O&L)!==B){if(g===0)g=x;T+=I,S=z-g,y=1<<S;while(S+g<R){if(y-=F[S+g],y<=0)break;S++,y<<=1}if(Z+=1<<S,V===s8&&Z>T5||V===g5&&Z>S5)return 1;B=O&L,G[B]=x<<24|S<<16|T-W|0}}if(O!==0)G[T+O]=z-g<<24|4194304|0;return P.bits=x,0}});var H9=$0((iX)=>{var p0=j6(),q$=_8(),V6=m8(),xX=R5(),h1=y5(),TX=0,J9=1,G9=2,b5=4,SX=5,L2=6,u6=0,kX=1,gX=2,d0=-2,U9=-3,X$=-4,EX=-5,f5=8,W9=1,h5=2,_5=3,m5=4,p5=5,c5=6,u5=7,d5=8,l5=9,o5=10,C2=11,Z6=12,t8=13,i5=14,e8=15,n5=16,a5=17,r5=18,s5=19,O2=20,B2=21,t5=22,e5=23,$9=24,Q9=25,V9=26,$$=27,q9=28,X9=29,I0=30,Y$=31,yX=32,bX=852,fX=592,hX=15,_X=hX;function Y9($){return($>>>24&255)+($>>>8&65280)+(($&65280)<<8)+(($&255)<<24)}function mX(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new p0.Buf16(320),this.work=new p0.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function j9($){var V;if(!$||!$.state)return d0;if(V=$.state,$.total_in=$.total_out=V.total=0,$.msg="",V.wrap)$.adler=V.wrap&1;return V.mode=W9,V.last=0,V.havedict=0,V.dmax=32768,V.head=null,V.hold=0,V.bits=0,V.lencode=V.lendyn=new p0.Buf32(bX),V.distcode=V.distdyn=new p0.Buf32(fX),V.sane=1,V.back=-1,u6}function P9($){var V;if(!$||!$.state)return d0;return V=$.state,V.wsize=0,V.whave=0,V.wnext=0,j9($)}function z9($,V){var Q,q;if(!$||!$.state)return d0;if(q=$.state,V<0)Q=0,V=-V;else if(Q=(V>>4)+1,V<48)V&=15;if(V&&(V<8||V>15))return d0;if(q.window!==null&&q.wbits!==V)q.window=null;return q.wrap=Q,q.wbits=V,P9($)}function Z9($,V){var Q,q;if(!$)return d0;if(q=new mX,$.state=q,q.window=null,Q=z9($,V),Q!==u6)$.state=null;return Q}function pX($){return Z9($,_X)}var K9=!0,Q$,V$;function cX($){if(K9){var V;Q$=new p0.Buf32(512),V$=new p0.Buf32(32),V=0;while(V<144)$.lens[V++]=8;while(V<256)$.lens[V++]=9;while(V<280)$.lens[V++]=7;while(V<288)$.lens[V++]=8;h1(J9,$.lens,0,288,Q$,0,$.work,{bits:9}),V=0;while(V<32)$.lens[V++]=5;h1(G9,$.lens,0,32,V$,0,$.work,{bits:5}),K9=!1}$.lencode=Q$,$.lenbits=9,$.distcode=V$,$.distbits=5}function F9($,V,Q,q){var K,G=$.state;if(G.window===null)G.wsize=1<<G.wbits,G.wnext=0,G.whave=0,G.window=new p0.Buf8(G.wsize);if(q>=G.wsize)p0.arraySet(G.window,V,Q-G.wsize,G.wsize,0),G.wnext=0,G.whave=G.wsize;else{if(K=G.wsize-G.wnext,K>q)K=q;if(p0.arraySet(G.window,V,Q-q,K,G.wnext),q-=K,q)p0.arraySet(G.window,V,Q-q,q,0),G.wnext=q,G.whave=G.wsize;else{if(G.wnext+=K,G.wnext===G.wsize)G.wnext=0;if(G.whave<G.wsize)G.whave+=K}}return 0}function uX($,V){var Q,q,K,G,W,J,P,j,z,C,I,R,x,S,g=0,y,Z,O,M,A,B,L,T,E=new p0.Buf8(4),f,b,F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!$||!$.state||!$.output||!$.input&&$.avail_in!==0)return d0;if(Q=$.state,Q.mode===Z6)Q.mode=t8;W=$.next_out,K=$.output,P=$.avail_out,G=$.next_in,q=$.input,J=$.avail_in,j=Q.hold,z=Q.bits,C=J,I=P,T=u6;$:for(;;)switch(Q.mode){case W9:if(Q.wrap===0){Q.mode=t8;break}while(z<16){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(Q.wrap&2&&j===35615){Q.check=0,E[0]=j&255,E[1]=j>>>8&255,Q.check=V6(Q.check,E,2,0),j=0,z=0,Q.mode=h5;break}if(Q.flags=0,Q.head)Q.head.done=!1;if(!(Q.wrap&1)||(((j&255)<<8)+(j>>8))%31){$.msg="incorrect header check",Q.mode=I0;break}if((j&15)!==f5){$.msg="unknown compression method",Q.mode=I0;break}if(j>>>=4,z-=4,L=(j&15)+8,Q.wbits===0)Q.wbits=L;else if(L>Q.wbits){$.msg="invalid window size",Q.mode=I0;break}Q.dmax=1<<L,$.adler=Q.check=1,Q.mode=j&512?o5:Z6,j=0,z=0;break;case h5:while(z<16){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(Q.flags=j,(Q.flags&255)!==f5){$.msg="unknown compression method",Q.mode=I0;break}if(Q.flags&57344){$.msg="unknown header flags set",Q.mode=I0;break}if(Q.head)Q.head.text=j>>8&1;if(Q.flags&512)E[0]=j&255,E[1]=j>>>8&255,Q.check=V6(Q.check,E,2,0);j=0,z=0,Q.mode=_5;case _5:while(z<32){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(Q.head)Q.head.time=j;if(Q.flags&512)E[0]=j&255,E[1]=j>>>8&255,E[2]=j>>>16&255,E[3]=j>>>24&255,Q.check=V6(Q.check,E,4,0);j=0,z=0,Q.mode=m5;case m5:while(z<16){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(Q.head)Q.head.xflags=j&255,Q.head.os=j>>8;if(Q.flags&512)E[0]=j&255,E[1]=j>>>8&255,Q.check=V6(Q.check,E,2,0);j=0,z=0,Q.mode=p5;case p5:if(Q.flags&1024){while(z<16){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(Q.length=j,Q.head)Q.head.extra_len=j;if(Q.flags&512)E[0]=j&255,E[1]=j>>>8&255,Q.check=V6(Q.check,E,2,0);j=0,z=0}else if(Q.head)Q.head.extra=null;Q.mode=c5;case c5:if(Q.flags&1024){if(R=Q.length,R>J)R=J;if(R){if(Q.head){if(L=Q.head.extra_len-Q.length,!Q.head.extra)Q.head.extra=new Array(Q.head.extra_len);p0.arraySet(Q.head.extra,q,G,R,L)}if(Q.flags&512)Q.check=V6(Q.check,q,R,G);J-=R,G+=R,Q.length-=R}if(Q.length)break $}Q.length=0,Q.mode=u5;case u5:if(Q.flags&2048){if(J===0)break $;R=0;do if(L=q[G+R++],Q.head&&L&&Q.length<65536)Q.head.name+=String.fromCharCode(L);while(L&&R<J);if(Q.flags&512)Q.check=V6(Q.check,q,R,G);if(J-=R,G+=R,L)break $}else if(Q.head)Q.head.name=null;Q.length=0,Q.mode=d5;case d5:if(Q.flags&4096){if(J===0)break $;R=0;do if(L=q[G+R++],Q.head&&L&&Q.length<65536)Q.head.comment+=String.fromCharCode(L);while(L&&R<J);if(Q.flags&512)Q.check=V6(Q.check,q,R,G);if(J-=R,G+=R,L)break $}else if(Q.head)Q.head.comment=null;Q.mode=l5;case l5:if(Q.flags&512){while(z<16){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(j!==(Q.check&65535)){$.msg="header crc mismatch",Q.mode=I0;break}j=0,z=0}if(Q.head)Q.head.hcrc=Q.flags>>9&1,Q.head.done=!0;$.adler=Q.check=0,Q.mode=Z6;break;case o5:while(z<32){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}$.adler=Q.check=Y9(j),j=0,z=0,Q.mode=C2;case C2:if(Q.havedict===0)return $.next_out=W,$.avail_out=P,$.next_in=G,$.avail_in=J,Q.hold=j,Q.bits=z,gX;$.adler=Q.check=1,Q.mode=Z6;case Z6:if(V===SX||V===L2)break $;case t8:if(Q.last){j>>>=z&7,z-=z&7,Q.mode=$$;break}while(z<3){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}switch(Q.last=j&1,j>>>=1,z-=1,j&3){case 0:Q.mode=i5;break;case 1:if(cX(Q),Q.mode=O2,V===L2){j>>>=2,z-=2;break $}break;case 2:Q.mode=a5;break;case 3:$.msg="invalid block type",Q.mode=I0}j>>>=2,z-=2;break;case i5:j>>>=z&7,z-=z&7;while(z<32){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if((j&65535)!==(j>>>16^65535)){$.msg="invalid stored block lengths",Q.mode=I0;break}if(Q.length=j&65535,j=0,z=0,Q.mode=e8,V===L2)break $;case e8:Q.mode=n5;case n5:if(R=Q.length,R){if(R>J)R=J;if(R>P)R=P;if(R===0)break $;p0.arraySet(K,q,G,R,W),J-=R,G+=R,P-=R,W+=R,Q.length-=R;break}Q.mode=Z6;break;case a5:while(z<14){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(Q.nlen=(j&31)+257,j>>>=5,z-=5,Q.ndist=(j&31)+1,j>>>=5,z-=5,Q.ncode=(j&15)+4,j>>>=4,z-=4,Q.nlen>286||Q.ndist>30){$.msg="too many length or distance symbols",Q.mode=I0;break}Q.have=0,Q.mode=r5;case r5:while(Q.have<Q.ncode){while(z<3){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}Q.lens[F[Q.have++]]=j&7,j>>>=3,z-=3}while(Q.have<19)Q.lens[F[Q.have++]]=0;if(Q.lencode=Q.lendyn,Q.lenbits=7,f={bits:Q.lenbits},T=h1(TX,Q.lens,0,19,Q.lencode,0,Q.work,f),Q.lenbits=f.bits,T){$.msg="invalid code lengths set",Q.mode=I0;break}Q.have=0,Q.mode=s5;case s5:while(Q.have<Q.nlen+Q.ndist){for(;;){if(g=Q.lencode[j&(1<<Q.lenbits)-1],y=g>>>24,Z=g>>>16&255,O=g&65535,y<=z)break;if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(O<16)j>>>=y,z-=y,Q.lens[Q.have++]=O;else{if(O===16){b=y+2;while(z<b){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(j>>>=y,z-=y,Q.have===0){$.msg="invalid bit length repeat",Q.mode=I0;break}L=Q.lens[Q.have-1],R=3+(j&3),j>>>=2,z-=2}else if(O===17){b=y+3;while(z<b){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}j>>>=y,z-=y,L=0,R=3+(j&7),j>>>=3,z-=3}else{b=y+7;while(z<b){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}j>>>=y,z-=y,L=0,R=11+(j&127),j>>>=7,z-=7}if(Q.have+R>Q.nlen+Q.ndist){$.msg="invalid bit length repeat",Q.mode=I0;break}while(R--)Q.lens[Q.have++]=L}}if(Q.mode===I0)break;if(Q.lens[256]===0){$.msg="invalid code -- missing end-of-block",Q.mode=I0;break}if(Q.lenbits=9,f={bits:Q.lenbits},T=h1(J9,Q.lens,0,Q.nlen,Q.lencode,0,Q.work,f),Q.lenbits=f.bits,T){$.msg="invalid literal/lengths set",Q.mode=I0;break}if(Q.distbits=6,Q.distcode=Q.distdyn,f={bits:Q.distbits},T=h1(G9,Q.lens,Q.nlen,Q.ndist,Q.distcode,0,Q.work,f),Q.distbits=f.bits,T){$.msg="invalid distances set",Q.mode=I0;break}if(Q.mode=O2,V===L2)break $;case O2:Q.mode=B2;case B2:if(J>=6&&P>=258){if($.next_out=W,$.avail_out=P,$.next_in=G,$.avail_in=J,Q.hold=j,Q.bits=z,xX($,I),W=$.next_out,K=$.output,P=$.avail_out,G=$.next_in,q=$.input,J=$.avail_in,j=Q.hold,z=Q.bits,Q.mode===Z6)Q.back=-1;break}Q.back=0;for(;;){if(g=Q.lencode[j&(1<<Q.lenbits)-1],y=g>>>24,Z=g>>>16&255,O=g&65535,y<=z)break;if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(Z&&(Z&240)===0){M=y,A=Z,B=O;for(;;){if(g=Q.lencode[B+((j&(1<<M+A)-1)>>M)],y=g>>>24,Z=g>>>16&255,O=g&65535,M+y<=z)break;if(J===0)break $;J--,j+=q[G++]<<z,z+=8}j>>>=M,z-=M,Q.back+=M}if(j>>>=y,z-=y,Q.back+=y,Q.length=O,Z===0){Q.mode=V9;break}if(Z&32){Q.back=-1,Q.mode=Z6;break}if(Z&64){$.msg="invalid literal/length code",Q.mode=I0;break}Q.extra=Z&15,Q.mode=t5;case t5:if(Q.extra){b=Q.extra;while(z<b){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}Q.length+=j&(1<<Q.extra)-1,j>>>=Q.extra,z-=Q.extra,Q.back+=Q.extra}Q.was=Q.length,Q.mode=e5;case e5:for(;;){if(g=Q.distcode[j&(1<<Q.distbits)-1],y=g>>>24,Z=g>>>16&255,O=g&65535,y<=z)break;if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if((Z&240)===0){M=y,A=Z,B=O;for(;;){if(g=Q.distcode[B+((j&(1<<M+A)-1)>>M)],y=g>>>24,Z=g>>>16&255,O=g&65535,M+y<=z)break;if(J===0)break $;J--,j+=q[G++]<<z,z+=8}j>>>=M,z-=M,Q.back+=M}if(j>>>=y,z-=y,Q.back+=y,Z&64){$.msg="invalid distance code",Q.mode=I0;break}Q.offset=O,Q.extra=Z&15,Q.mode=$9;case $9:if(Q.extra){b=Q.extra;while(z<b){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}Q.offset+=j&(1<<Q.extra)-1,j>>>=Q.extra,z-=Q.extra,Q.back+=Q.extra}if(Q.offset>Q.dmax){$.msg="invalid distance too far back",Q.mode=I0;break}Q.mode=Q9;case Q9:if(P===0)break $;if(R=I-P,Q.offset>R){if(R=Q.offset-R,R>Q.whave){if(Q.sane){$.msg="invalid distance too far back",Q.mode=I0;break}}if(R>Q.wnext)R-=Q.wnext,x=Q.wsize-R;else x=Q.wnext-R;if(R>Q.length)R=Q.length;S=Q.window}else S=K,x=W-Q.offset,R=Q.length;if(R>P)R=P;P-=R,Q.length-=R;do K[W++]=S[x++];while(--R);if(Q.length===0)Q.mode=B2;break;case V9:if(P===0)break $;K[W++]=Q.length,P--,Q.mode=B2;break;case $$:if(Q.wrap){while(z<32){if(J===0)break $;J--,j|=q[G++]<<z,z+=8}if(I-=P,$.total_out+=I,Q.total+=I,I)$.adler=Q.check=Q.flags?V6(Q.check,K,I,W-I):q$(Q.check,K,I,W-I);if(I=P,(Q.flags?j:Y9(j))!==Q.check){$.msg="incorrect data check",Q.mode=I0;break}j=0,z=0}Q.mode=q9;case q9:if(Q.wrap&&Q.flags){while(z<32){if(J===0)break $;J--,j+=q[G++]<<z,z+=8}if(j!==(Q.total&4294967295)){$.msg="incorrect length check",Q.mode=I0;break}j=0,z=0}Q.mode=X9;case X9:T=kX;break $;case I0:T=U9;break $;case Y$:return X$;case yX:default:return d0}if($.next_out=W,$.avail_out=P,$.next_in=G,$.avail_in=J,Q.hold=j,Q.bits=z,Q.wsize||I!==$.avail_out&&Q.mode<I0&&(Q.mode<$$||V!==b5)){if(F9($,$.output,$.next_out,I-$.avail_out))return Q.mode=Y$,X$}if(C-=$.avail_in,I-=$.avail_out,$.total_in+=C,$.total_out+=I,Q.total+=I,Q.wrap&&I)$.adler=Q.check=Q.flags?V6(Q.check,K,I,$.next_out-I):q$(Q.check,K,I,$.next_out-I);if($.data_type=Q.bits+(Q.last?64:0)+(Q.mode===Z6?128:0)+(Q.mode===O2||Q.mode===e8?256:0),(C===0&&I===0||V===b5)&&T===u6)T=EX;return T}function dX($){if(!$||!$.state)return d0;var V=$.state;if(V.window)V.window=null;return $.state=null,u6}function lX($,V){var Q;if(!$||!$.state)return d0;if(Q=$.state,(Q.wrap&2)===0)return d0;return Q.head=V,V.done=!1,u6}function oX($,V){var Q=V.length,q,K,G;if(!$||!$.state)return d0;if(q=$.state,q.wrap!==0&&q.mode!==C2)return d0;if(q.mode===C2){if(K=1,K=q$(K,V,Q,0),K!==q.check)return U9}if(G=F9($,V,Q,Q),G)return q.mode=Y$,X$;return q.havedict=1,u6}iX.inflateReset=P9;iX.inflateReset2=z9;iX.inflateResetKeep=j9;iX.inflateInit=pX;iX.inflateInit2=Z9;iX.inflate=uX;iX.inflateEnd=dX;iX.inflateGetHeader=lX;iX.inflateSetDictionary=oX;iX.inflateInfo="pako inflate (from Nodeca project)"});var K$=$0((kK,M9)=>{M9.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var O9=$0((gK,L9)=>{function X4(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}L9.exports=X4});var C9=$0((G4)=>{var U1=H9(),_1=j6(),I2=l8(),A0=K$(),J$=U2(),Y4=o8(),K4=O9(),B9=Object.prototype.toString;function d6($){if(!(this instanceof d6))return new d6($);this.options=_1.assign({chunkSize:16384,windowBits:0,to:""},$||{});var V=this.options;if(V.raw&&V.windowBits>=0&&V.windowBits<16){if(V.windowBits=-V.windowBits,V.windowBits===0)V.windowBits=-15}if(V.windowBits>=0&&V.windowBits<16&&!($&&$.windowBits))V.windowBits+=32;if(V.windowBits>15&&V.windowBits<48){if((V.windowBits&15)===0)V.windowBits|=15}this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Y4,this.strm.avail_out=0;var Q=U1.inflateInit2(this.strm,V.windowBits);if(Q!==A0.Z_OK)throw new Error(J$[Q]);if(this.header=new K4,U1.inflateGetHeader(this.strm,this.header),V.dictionary){if(typeof V.dictionary==="string")V.dictionary=I2.string2buf(V.dictionary);else if(B9.call(V.dictionary)==="[object ArrayBuffer]")V.dictionary=new Uint8Array(V.dictionary);if(V.raw){if(Q=U1.inflateSetDictionary(this.strm,V.dictionary),Q!==A0.Z_OK)throw new Error(J$[Q])}}}d6.prototype.push=function($,V){var Q=this.strm,q=this.options.chunkSize,K=this.options.dictionary,G,W,J,P,j,z=!1;if(this.ended)return!1;if(W=V===~~V?V:V===!0?A0.Z_FINISH:A0.Z_NO_FLUSH,typeof $==="string")Q.input=I2.binstring2buf($);else if(B9.call($)==="[object ArrayBuffer]")Q.input=new Uint8Array($);else Q.input=$;Q.next_in=0,Q.avail_in=Q.input.length;do{if(Q.avail_out===0)Q.output=new _1.Buf8(q),Q.next_out=0,Q.avail_out=q;if(G=U1.inflate(Q,A0.Z_NO_FLUSH),G===A0.Z_NEED_DICT&&K)G=U1.inflateSetDictionary(this.strm,K);if(G===A0.Z_BUF_ERROR&&z===!0)G=A0.Z_OK,z=!1;if(G!==A0.Z_STREAM_END&&G!==A0.Z_OK)return this.onEnd(G),this.ended=!0,!1;if(Q.next_out){if(Q.avail_out===0||G===A0.Z_STREAM_END||Q.avail_in===0&&(W===A0.Z_FINISH||W===A0.Z_SYNC_FLUSH))if(this.options.to==="string"){if(J=I2.utf8border(Q.output,Q.next_out),P=Q.next_out-J,j=I2.buf2string(Q.output,J),Q.next_out=P,Q.avail_out=q-P,P)_1.arraySet(Q.output,Q.output,J,P,0);this.onData(j)}else this.onData(_1.shrinkBuf(Q.output,Q.next_out))}if(Q.avail_in===0&&Q.avail_out===0)z=!0}while((Q.avail_in>0||Q.avail_out===0)&&G!==A0.Z_STREAM_END);if(G===A0.Z_STREAM_END)W=A0.Z_FINISH;if(W===A0.Z_FINISH)return G=U1.inflateEnd(this.strm),this.onEnd(G),this.ended=!0,G===A0.Z_OK;if(W===A0.Z_SYNC_FLUSH)return this.onEnd(A0.Z_OK),Q.avail_out=0,!0;return!0};d6.prototype.onData=function($){this.chunks.push($)};d6.prototype.onEnd=function($){if($===A0.Z_OK)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=_1.flattenChunks(this.chunks);this.chunks=[],this.err=$,this.msg=this.strm.msg};function G$($,V){var Q=new d6(V);if(Q.push($,!0),Q.err)throw Q.msg||J$[Q.err];return Q.result}function J4($,V){return V=V||{},V.raw=!0,G$($,V)}G4.Inflate=d6;G4.inflate=G$;G4.inflateRaw=J4;G4.ungzip=G$});var w9=$0((yK,D9)=>{var z4=j6().assign,Z4=v5(),F4=C9(),H4=K$(),I9={};z4(I9,Z4,F4,H4);D9.exports=I9});var v9=$0((B4)=>{var M4=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Uint32Array!=="undefined",L4=w9(),N9=w0(),D2=m0(),O4=M4?"uint8array":"array";B4.magic="\b\x00";function l6($,V){D2.call(this,"FlateWorker/"+$),this._pako=null,this._pakoAction=$,this._pakoOptions=V,this.meta={}}N9.inherits(l6,D2);l6.prototype.processChunk=function($){if(this.meta=$.meta,this._pako===null)this._createPako();this._pako.push(N9.transformTo(O4,$.data),!1)};l6.prototype.flush=function(){if(D2.prototype.flush.call(this),this._pako===null)this._createPako();this._pako.push([],!0)};l6.prototype.cleanUp=function(){D2.prototype.cleanUp.call(this),this._pako=null};l6.prototype._createPako=function(){this._pako=new L4[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var $=this;this._pako.onData=function(V){$.push({data:V,meta:$.meta})}};B4.compressWorker=function($){return new l6("Deflate",$)};B4.uncompressWorker=function(){return new l6("Inflate",{})}});var U$=$0((w4)=>{var A9=m0();w4.STORE={magic:"\x00\x00",compressWorker:function(){return new A9("STORE compression")},uncompressWorker:function(){return new A9("STORE decompression")}};w4.DEFLATE=v9()});var W$=$0((A4)=>{A4.LOCAL_FILE_HEADER="PK\x03\x04";A4.CENTRAL_FILE_HEADER="PK\x01\x02";A4.CENTRAL_DIRECTORY_END="PK\x05\x06";A4.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";A4.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";A4.DATA_DESCRIPTOR="PK\x07\b"});var S9=$0((_K,T9)=>{var W1=w0(),j1=m0(),j$=$1(),R9=X2(),w2=W$(),O0=function($,V){var Q="",q;for(q=0;q<V;q++)Q+=String.fromCharCode($&255),$=$>>>8;return Q},E4=function($,V){var Q=$;if(!$)Q=V?16893:33204;return(Q&65535)<<16},y4=function($){return($||0)&63},x9=function($,V,Q,q,K,G){var{file:W,compression:J}=$,P=G!==j$.utf8encode,j=W1.transformTo("string",G(W.name)),z=W1.transformTo("string",j$.utf8encode(W.name)),C=W.comment,I=W1.transformTo("string",G(C)),R=W1.transformTo("string",j$.utf8encode(C)),x=z.length!==W.name.length,S=R.length!==C.length,g,y,Z="",O="",M="",A=W.dir,B=W.date,L={crc32:0,compressedSize:0,uncompressedSize:0};if(!V||Q)L.crc32=$.crc32,L.compressedSize=$.compressedSize,L.uncompressedSize=$.uncompressedSize;var T=0;if(V)T|=8;if(!P&&(x||S))T|=2048;var E=0,f=0;if(A)E|=16;if(K==="UNIX")f=798,E|=E4(W.unixPermissions,A);else f=20,E|=y4(W.dosPermissions,A);if(g=B.getUTCHours(),g=g<<6,g=g|B.getUTCMinutes(),g=g<<5,g=g|B.getUTCSeconds()/2,y=B.getUTCFullYear()-1980,y=y<<4,y=y|B.getUTCMonth()+1,y=y<<5,y=y|B.getUTCDate(),x)O=O0(1,1)+O0(R9(j),4)+z,Z+="up"+O0(O.length,2)+O;if(S)M=O0(1,1)+O0(R9(I),4)+R,Z+="uc"+O0(M.length,2)+M;var b="";b+=`
|
|
8
|
+
\x00`,b+=O0(T,2),b+=J.magic,b+=O0(g,2),b+=O0(y,2),b+=O0(L.crc32,4),b+=O0(L.compressedSize,4),b+=O0(L.uncompressedSize,4),b+=O0(j.length,2),b+=O0(Z.length,2);var F=w2.LOCAL_FILE_HEADER+b+j+Z,m=w2.CENTRAL_FILE_HEADER+O0(f,2)+b+O0(I.length,2)+"\x00\x00\x00\x00"+O0(E,4)+O0(q,4)+j+Z+I;return{fileRecord:F,dirRecord:m}},b4=function($,V,Q,q,K){var G="",W=W1.transformTo("string",K(q));return G=w2.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+O0($,2)+O0($,2)+O0(V,4)+O0(Q,4)+O0(W.length,2)+W,G},f4=function($){var V="";return V=w2.DATA_DESCRIPTOR+O0($.crc32,4)+O0($.compressedSize,4)+O0($.uncompressedSize,4),V};function n0($,V,Q,q){j1.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=V,this.zipPlatform=Q,this.encodeFileName=q,this.streamFiles=$,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}W1.inherits(n0,j1);n0.prototype.push=function($){var V=$.meta.percent||0,Q=this.entriesCount,q=this._sources.length;if(this.accumulate)this.contentBuffer.push($);else this.bytesWritten+=$.data.length,j1.prototype.push.call(this,{data:$.data,meta:{currentFile:this.currentFile,percent:Q?(V+100*(Q-q-1))/Q:100}})};n0.prototype.openedSource=function($){this.currentSourceOffset=this.bytesWritten,this.currentFile=$.file.name;var V=this.streamFiles&&!$.file.dir;if(V){var Q=x9($,V,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:Q.fileRecord,meta:{percent:0}})}else this.accumulate=!0};n0.prototype.closedSource=function($){this.accumulate=!1;var V=this.streamFiles&&!$.file.dir,Q=x9($,V,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(Q.dirRecord),V)this.push({data:f4($),meta:{percent:100}});else{this.push({data:Q.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};n0.prototype.flush=function(){var $=this.bytesWritten;for(var V=0;V<this.dirRecords.length;V++)this.push({data:this.dirRecords[V],meta:{percent:100}});var Q=this.bytesWritten-$,q=b4(this.dirRecords.length,Q,$,this.zipComment,this.encodeFileName);this.push({data:q,meta:{percent:100}})};n0.prototype.prepareNextSource=function(){if(this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused)this.previous.pause();else this.previous.resume()};n0.prototype.registerPrevious=function($){this._sources.push($);var V=this;return $.on("data",function(Q){V.processChunk(Q)}),$.on("end",function(){if(V.closedSource(V.previous.streamInfo),V._sources.length)V.prepareNextSource();else V.end()}),$.on("error",function(Q){V.error(Q)}),this};n0.prototype.resume=function(){if(!j1.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};n0.prototype.error=function($){var V=this._sources;if(!j1.prototype.error.call(this,$))return!1;for(var Q=0;Q<V.length;Q++)try{V[Q].error($)}catch(q){}return!0};n0.prototype.lock=function(){j1.prototype.lock.call(this);var $=this._sources;for(var V=0;V<$.length;V++)$[V].lock()};T9.exports=n0});var k9=$0((p4)=>{var h4=U$(),_4=S9(),m4=function($,V){var Q=$||V,q=h4[Q];if(!q)throw new Error(Q+" is not a valid compression method !");return q};p4.generateWorker=function($,V,Q){var q=new _4(V.streamFiles,Q,V.platform,V.encodeFileName),K=0;try{$.forEach(function(G,W){K++;var J=m4(W.options.compression,V.compression),P=W.options.compressionOptions||V.compressionOptions||{},j=W.dir,z=W.date;W._compressWorker(J,P).withStreamInfo("file",{name:G,dir:j,date:z,comment:W.comment||"",unixPermissions:W.unixPermissions,dosPermissions:W.dosPermissions}).pipe(q)}),q.entriesCount=K}catch(G){q.error(G)}return q}});var E9=$0((pK,g9)=>{var u4=w0(),N2=m0();function m1($,V){N2.call(this,"Nodejs stream input adapter for "+$),this._upstreamEnded=!1,this._bindStream(V)}u4.inherits(m1,N2);m1.prototype._bindStream=function($){var V=this;this._stream=$,$.pause(),$.on("data",function(Q){V.push({data:Q,meta:{percent:0}})}).on("error",function(Q){if(V.isPaused)this.generatedError=Q;else V.error(Q)}).on("end",function(){if(V.isPaused)V._upstreamEnded=!0;else V.end()})};m1.prototype.pause=function(){if(!N2.prototype.pause.call(this))return!1;return this._stream.pause(),!0};m1.prototype.resume=function(){if(!N2.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};g9.exports=m1});var d9=$0((cK,u9)=>{var d4=$1(),p1=w0(),h9=m0(),l4=F8(),_9=H8(),y9=Y2(),o4=bQ(),i4=k9(),b9=O1(),n4=E9(),m9=function($,V,Q){var q=p1.getTypeOf(V),K,G=p1.extend(Q||{},_9);if(G.date=G.date||new Date,G.compression!==null)G.compression=G.compression.toUpperCase();if(typeof G.unixPermissions==="string")G.unixPermissions=parseInt(G.unixPermissions,8);if(G.unixPermissions&&G.unixPermissions&16384)G.dir=!0;if(G.dosPermissions&&G.dosPermissions&16)G.dir=!0;if(G.dir)$=p9($);if(G.createFolders&&(K=a4($)))c9.call(this,K,!0);var W=q==="string"&&G.binary===!1&&G.base64===!1;if(!Q||typeof Q.binary==="undefined")G.binary=!W;var J=V instanceof y9&&V.uncompressedSize===0;if(J||G.dir||!V||V.length===0)G.base64=!1,G.binary=!0,V="",G.compression="STORE",q="string";var P=null;if(V instanceof y9||V instanceof h9)P=V;else if(b9.isNode&&b9.isStream(V))P=new n4($,V);else P=p1.prepareContent($,V,G.binary,G.optimizedBinaryString,G.base64);var j=new o4($,P,G);this.files[$]=j},a4=function($){if($.slice(-1)==="/")$=$.substring(0,$.length-1);var V=$.lastIndexOf("/");return V>0?$.substring(0,V):""},p9=function($){if($.slice(-1)!=="/")$+="/";return $},c9=function($,V){if(V=typeof V!=="undefined"?V:_9.createFolders,$=p9($),!this.files[$])m9.call(this,$,null,{dir:!0,createFolders:V});return this.files[$]};function f9($){return Object.prototype.toString.call($)==="[object RegExp]"}var r4={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function($){var V,Q,q;for(V in this.files)if(q=this.files[V],Q=V.slice(this.root.length,V.length),Q&&V.slice(0,this.root.length)===this.root)$(Q,q)},filter:function($){var V=[];return this.forEach(function(Q,q){if($(Q,q))V.push(q)}),V},file:function($,V,Q){if(arguments.length===1)if(f9($)){var q=$;return this.filter(function(G,W){return!W.dir&&q.test(G)})}else{var K=this.files[this.root+$];if(K&&!K.dir)return K;else return null}else $=this.root+$,m9.call(this,$,V,Q);return this},folder:function($){if(!$)return this;if(f9($))return this.filter(function(K,G){return G.dir&&$.test(K)});var V=this.root+$,Q=c9.call(this,V),q=this.clone();return q.root=Q.name,q},remove:function($){$=this.root+$;var V=this.files[$];if(!V){if($.slice(-1)!=="/")$+="/";V=this.files[$]}if(V&&!V.dir)delete this.files[$];else{var Q=this.filter(function(K,G){return G.name.slice(0,$.length)===$});for(var q=0;q<Q.length;q++)delete this.files[Q[q].name]}return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function($){var V,Q={};try{if(Q=p1.extend($||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:d4.utf8encode}),Q.type=Q.type.toLowerCase(),Q.compression=Q.compression.toUpperCase(),Q.type==="binarystring")Q.type="string";if(!Q.type)throw new Error("No output type specified.");if(p1.checkSupport(Q.type),Q.platform==="darwin"||Q.platform==="freebsd"||Q.platform==="linux"||Q.platform==="sunos")Q.platform="UNIX";if(Q.platform==="win32")Q.platform="DOS";var q=Q.comment||this.comment||"";V=i4.generateWorker(this,Q,q)}catch(K){V=new h9("error"),V.error(K)}return new l4(V,Q.type||"string",Q.mimeType)},generateAsync:function($,V){return this.generateInternalStream($).accumulate(V)},generateNodeStream:function($,V){if($=$||{},!$.type)$.type="nodebuffer";return this.generateInternalStream($).toNodejsStream(V)}};u9.exports=r4});var P$=$0((uK,o9)=>{var s4=w0();function l9($){this.data=$,this.length=$.length,this.index=0,this.zero=0}l9.prototype={checkOffset:function($){this.checkIndex(this.index+$)},checkIndex:function($){if(this.length<this.zero+$||$<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+$+"). Corrupted zip ?")},setIndex:function($){this.checkIndex($),this.index=$},skip:function($){this.setIndex(this.index+$)},byteAt:function(){},readInt:function($){var V=0,Q;this.checkOffset($);for(Q=this.index+$-1;Q>=this.index;Q--)V=(V<<8)+this.byteAt(Q);return this.index+=$,V},readString:function($){return s4.transformTo("string",this.readData($))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var $=this.readInt(4);return new Date(Date.UTC(($>>25&127)+1980,($>>21&15)-1,$>>16&31,$>>11&31,$>>5&63,($&31)<<1))}};o9.exports=l9});var z$=$0((dK,n9)=>{var i9=P$(),t4=w0();function P1($){i9.call(this,$);for(var V=0;V<this.data.length;V++)$[V]=$[V]&255}t4.inherits(P1,i9);P1.prototype.byteAt=function($){return this.data[this.zero+$]};P1.prototype.lastIndexOfSignature=function($){var V=$.charCodeAt(0),Q=$.charCodeAt(1),q=$.charCodeAt(2),K=$.charCodeAt(3);for(var G=this.length-4;G>=0;--G)if(this.data[G]===V&&this.data[G+1]===Q&&this.data[G+2]===q&&this.data[G+3]===K)return G-this.zero;return-1};P1.prototype.readAndCheckSignature=function($){var V=$.charCodeAt(0),Q=$.charCodeAt(1),q=$.charCodeAt(2),K=$.charCodeAt(3),G=this.readData(4);return V===G[0]&&Q===G[1]&&q===G[2]&&K===G[3]};P1.prototype.readData=function($){if(this.checkOffset($),$===0)return[];var V=this.data.slice(this.zero+this.index,this.zero+this.index+$);return this.index+=$,V};n9.exports=P1});var s9=$0((lK,r9)=>{var a9=P$(),e4=w0();function z1($){a9.call(this,$)}e4.inherits(z1,a9);z1.prototype.byteAt=function($){return this.data.charCodeAt(this.zero+$)};z1.prototype.lastIndexOfSignature=function($){return this.data.lastIndexOf($)-this.zero};z1.prototype.readAndCheckSignature=function($){var V=this.readData(4);return $===V};z1.prototype.readData=function($){this.checkOffset($);var V=this.data.slice(this.zero+this.index,this.zero+this.index+$);return this.index+=$,V};r9.exports=z1});var F$=$0((oK,e9)=>{var t9=z$(),$Y=w0();function Z$($){t9.call(this,$)}$Y.inherits(Z$,t9);Z$.prototype.readData=function($){if(this.checkOffset($),$===0)return new Uint8Array(0);var V=this.data.subarray(this.zero+this.index,this.zero+this.index+$);return this.index+=$,V};e9.exports=Z$});var VV=$0((iK,QV)=>{var $V=F$(),QY=w0();function H$($){$V.call(this,$)}QY.inherits(H$,$V);H$.prototype.readData=function($){this.checkOffset($);var V=this.data.slice(this.zero+this.index,this.zero+this.index+$);return this.index+=$,V};QV.exports=H$});var M$=$0((nK,XV)=>{var v2=w0(),qV=U6(),VY=z$(),qY=s9(),XY=VV(),YY=F$();XV.exports=function($){var V=v2.getTypeOf($);if(v2.checkSupport(V),V==="string"&&!qV.uint8array)return new qY($);if(V==="nodebuffer")return new XY($);if(qV.uint8array)return new YY(v2.transformTo("uint8array",$));return new VY(v2.transformTo("array",$))}});var GV=$0((aK,JV)=>{var L$=M$(),A6=w0(),KY=Y2(),YV=X2(),A2=$1(),R2=U$(),JY=U6(),GY=0,UY=3,WY=function($){for(var V in R2){if(!Object.prototype.hasOwnProperty.call(R2,V))continue;if(R2[V].magic===$)return R2[V]}return null};function KV($,V){this.options=$,this.loadOptions=V}KV.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function($){var V,Q;if($.skip(22),this.fileNameLength=$.readInt(2),Q=$.readInt(2),this.fileName=$.readData(this.fileNameLength),$.skip(Q),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(V=WY(this.compressionMethod),V===null)throw new Error("Corrupted zip : compression "+A6.pretty(this.compressionMethod)+" unknown (inner file : "+A6.transformTo("string",this.fileName)+")");this.decompressed=new KY(this.compressedSize,this.uncompressedSize,this.crc32,V,$.readData(this.compressedSize))},readCentralPart:function($){this.versionMadeBy=$.readInt(2),$.skip(2),this.bitFlag=$.readInt(2),this.compressionMethod=$.readString(2),this.date=$.readDate(),this.crc32=$.readInt(4),this.compressedSize=$.readInt(4),this.uncompressedSize=$.readInt(4);var V=$.readInt(2);if(this.extraFieldsLength=$.readInt(2),this.fileCommentLength=$.readInt(2),this.diskNumberStart=$.readInt(2),this.internalFileAttributes=$.readInt(2),this.externalFileAttributes=$.readInt(4),this.localHeaderOffset=$.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");$.skip(V),this.readExtraFields($),this.parseZIP64ExtraField($),this.fileComment=$.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var $=this.versionMadeBy>>8;if(this.dir=this.externalFileAttributes&16?!0:!1,$===GY)this.dosPermissions=this.externalFileAttributes&63;if($===UY)this.unixPermissions=this.externalFileAttributes>>16&65535;if(!this.dir&&this.fileNameStr.slice(-1)==="/")this.dir=!0},parseZIP64ExtraField:function(){if(!this.extraFields[1])return;var $=L$(this.extraFields[1].value);if(this.uncompressedSize===A6.MAX_VALUE_32BITS)this.uncompressedSize=$.readInt(8);if(this.compressedSize===A6.MAX_VALUE_32BITS)this.compressedSize=$.readInt(8);if(this.localHeaderOffset===A6.MAX_VALUE_32BITS)this.localHeaderOffset=$.readInt(8);if(this.diskNumberStart===A6.MAX_VALUE_32BITS)this.diskNumberStart=$.readInt(4)},readExtraFields:function($){var V=$.index+this.extraFieldsLength,Q,q,K;if(!this.extraFields)this.extraFields={};while($.index+4<V)Q=$.readInt(2),q=$.readInt(2),K=$.readData(q),this.extraFields[Q]={id:Q,length:q,value:K};$.setIndex(V)},handleUTF8:function(){var $=JY.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=A2.utf8decode(this.fileName),this.fileCommentStr=A2.utf8decode(this.fileComment);else{var V=this.findExtraFieldUnicodePath();if(V!==null)this.fileNameStr=V;else{var Q=A6.transformTo($,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(Q)}var q=this.findExtraFieldUnicodeComment();if(q!==null)this.fileCommentStr=q;else{var K=A6.transformTo($,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(K)}}},findExtraFieldUnicodePath:function(){var $=this.extraFields[28789];if($){var V=L$($.value);if(V.readInt(1)!==1)return null;if(YV(this.fileName)!==V.readInt(4))return null;return A2.utf8decode(V.readData($.length-5))}return null},findExtraFieldUnicodeComment:function(){var $=this.extraFields[25461];if($){var V=L$($.value);if(V.readInt(1)!==1)return null;if(YV(this.fileComment)!==V.readInt(4))return null;return A2.utf8decode(V.readData($.length-5))}return null}};JV.exports=KV});var jV=$0((rK,WV)=>{var jY=M$(),F6=w0(),a0=W$(),PY=GV(),zY=U6();function UV($){this.files=[],this.loadOptions=$}UV.prototype={checkSignature:function($){if(!this.reader.readAndCheckSignature($)){this.reader.index-=4;var V=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+F6.pretty(V)+", expected "+F6.pretty($)+")")}},isSignature:function($,V){var Q=this.reader.index;this.reader.setIndex($);var q=this.reader.readString(4),K=q===V;return this.reader.setIndex(Q),K},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var $=this.reader.readData(this.zipCommentLength),V=zY.uint8array?"uint8array":"array",Q=F6.transformTo(V,$);this.zipComment=this.loadOptions.decodeFileName(Q)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};var $=this.zip64EndOfCentralSize-44,V=0,Q,q,K;while(V<$)Q=this.reader.readInt(2),q=this.reader.readInt(4),K=this.reader.readData(q),this.zip64ExtensibleData[Q]={id:Q,length:q,value:K}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var $,V;for($=0;$<this.files.length;$++)V=this.files[$],this.reader.setIndex(V.localHeaderOffset),this.checkSignature(a0.LOCAL_FILE_HEADER),V.readLocalPart(this.reader),V.handleUTF8(),V.processAttributes()},readCentralDir:function(){var $;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature(a0.CENTRAL_FILE_HEADER))$=new PY({zip64:this.zip64},this.loadOptions),$.readCentralPart(this.reader),this.files.push($);if(this.centralDirRecords!==this.files.length){if(this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)}},readEndOfCentral:function(){var $=this.reader.lastIndexOfSignature(a0.CENTRAL_DIRECTORY_END);if($<0){var V=!this.isSignature(0,a0.LOCAL_FILE_HEADER);if(V)throw new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");else throw new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex($);var Q=$;if(this.checkSignature(a0.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===F6.MAX_VALUE_16BITS||this.diskWithCentralDirStart===F6.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===F6.MAX_VALUE_16BITS||this.centralDirRecords===F6.MAX_VALUE_16BITS||this.centralDirSize===F6.MAX_VALUE_32BITS||this.centralDirOffset===F6.MAX_VALUE_32BITS){if(this.zip64=!0,$=this.reader.lastIndexOfSignature(a0.ZIP64_CENTRAL_DIRECTORY_LOCATOR),$<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex($),this.checkSignature(a0.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a0.ZIP64_CENTRAL_DIRECTORY_END)){if(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a0.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory")}this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a0.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var q=this.centralDirOffset+this.centralDirSize;if(this.zip64)q+=20,q+=12+this.zip64EndOfCentralSize;var K=Q-q;if(K>0)if(this.isSignature(Q,a0.CENTRAL_FILE_HEADER));else this.reader.zero=K;else if(K<0)throw new Error("Corrupted zip: missing "+Math.abs(K)+" bytes.")},prepareReader:function($){this.reader=jY($)},load:function($){this.prepareReader($),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};WV.exports=UV});var ZV=$0((sK,zV)=>{var O$=w0(),x2=s6(),ZY=$1(),FY=jV(),HY=O8(),PV=O1();function MY($){return new x2.Promise(function(V,Q){var q=$.decompressed.getContentWorker().pipe(new HY);q.on("error",function(K){Q(K)}).on("end",function(){if(q.streamInfo.crc32!==$.decompressed.crc32)Q(new Error("Corrupted zip : CRC32 mismatch"));else V()}).resume()})}zV.exports=function($,V){var Q=this;if(V=O$.extend(V||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:ZY.utf8decode}),PV.isNode&&PV.isStream($))return x2.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file."));return O$.prepareContent("the loaded zip file",$,!0,V.optimizedBinaryString,V.base64).then(function(q){var K=new FY(V);return K.load(q),K}).then(function q(K){var G=[x2.Promise.resolve(K)],W=K.files;if(V.checkCRC32)for(var J=0;J<W.length;J++)G.push(MY(W[J]));return x2.Promise.all(G)}).then(function q(K){var G=K.shift(),W=G.files;for(var J=0;J<W.length;J++){var P=W[J],j=P.fileNameStr,z=O$.resolve(P.fileNameStr);if(Q.file(z,P.decompressed,{binary:!0,optimizedBinaryString:!0,date:P.date,dir:P.dir,comment:P.fileCommentStr.length?P.fileCommentStr:null,unixPermissions:P.unixPermissions,dosPermissions:P.dosPermissions,createFolders:V.createFolders}),!P.dir)Q.file(z).unsafeOriginalName=j}if(G.zipComment.length)Q.comment=G.zipComment;return Q})}});var HV=$0((tK,FV)=>{function l0(){if(!(this instanceof l0))return new l0;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var $=new l0;for(var V in this)if(typeof this[V]!=="function")$[V]=this[V];return $}}l0.prototype=d9();l0.prototype.loadAsync=ZV();l0.support=U6();l0.defaults=H8();l0.version="3.10.1";l0.loadAsync=function($,V){return new l0().loadAsync($,V)};l0.external=s6();FV.exports=l0});var c2=tV;var s0=[],p2=[];var m2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(T6=0,k$=m2.length;T6<k$;++T6)s0[T6]=m2[T6],p2[m2.charCodeAt(T6)]=T6;var T6,k$;p2[45]=62;p2[95]=63;function rV($){return s0[$>>18&63]+s0[$>>12&63]+s0[$>>6&63]+s0[$&63]}function sV($,V,Q){var q,K=[];for(var G=V;G<Q;G+=3)q=($[G]<<16&16711680)+($[G+1]<<8&65280)+($[G+2]&255),K.push(rV(q));return K.join("")}function tV($){var V,Q=$.length,q=Q%3,K=[],G=16383;for(var W=0,J=Q-q;W<J;W+=G)K.push(sV($,W,W+G>J?J:W+G));if(q===1)V=$[Q-1],K.push(s0[V>>2]+s0[V<<4&63]+"==");else if(q===2)V=($[Q-2]<<8)+$[Q-1],K.push(s0[V>>10]+s0[V>>4&63]+s0[V<<2&63]+"=");return K.join("")}var hV=T$(E$(),1),_V=T$(HV(),1);var LY=/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(\.\d+)?([zZ]|((\+|-)(\d{2}):(\d{2})))$/;function OY($){let V=LY.exec($);if(!V)return!1;let[,Q,q,K,G,W,J]=V.map((P)=>parseInt(P));return Q!==void 0&&q!==void 0&&K!==void 0&&G!==void 0&&W!==void 0&&J!==void 0&&0<q&&q<=12&&K<=BY(Q,q)&&G<24&&W<60&&J<=60}function BY($,V){if(V===2)return CY($)?29:28;return IY[V-1]??0}function CY($){return $%4===0&&($%100!==0||$%400===0)}var IY=[31,0,31,30,31,30,31,31,30,31,30,31];function k2($){return typeof $==="object"&&$!==null&&!Array.isArray($)}var DY={int8:[-128,128],int16:[-32768,32768],int32:[-2147483648,2147483648],uint8:[0,256],uint16:[0,65536],uint32:[0,4294967296]};function c1($=0.5){return Math.random()<$}function LV($,V){return $+Math.floor(Math.random()*(V-$))}function g2($){let V=$[LV(0,$.length)];if(V===void 0)throw new Error("choices was empty in random choice");else return V}var T2;function B$(){if(T2===void 0){let $=Math.sqrt(-2*Math.log(Math.random())),V=2*Math.PI*Math.random();return T2=$*Math.sin(V),$*Math.cos(V)}else{let $=T2;return T2=void 0,$}}function r0($=1){let V=Math.exp(-$),Q=0,q=Math.random();while(q>V)Q++,q*=Math.random();return Q}var MV=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ;,'"`;function F1($){return Array($).fill(null).map(()=>MV.charAt(Math.floor(Math.random()*MV.length))).join("")}function*OV(...$){for(let V of $)yield*V}function*S2($,V){let Q=0;for(let q of $)yield V(q,Q++)}function*wY($,V){let Q=0;for(let q of $)if(V(q,Q++))yield q}function*NY($){for(let V=0;V<$;++V)yield V}function Z1($){return/^[a-zA-Z_][a-zA-Z0-9_]*$/.test($)?`.${$}`:`["${$}"]`}function o0($){return $===null?"null":Array.isArray($)?"array":typeof $}class k0{guard($){for(let V of this.pathErrors($))return!1;return!0}guardAssert($){let V=[];for(let[Q,q]of this.pathErrors($)){let K=Q.reverse().join("")||".";V.push(`${K}: ${q}`)}if(V.length){let Q=JSON.stringify($,null,2),q=JSON.stringify(this.schema(),null,2);throw new Error(`Validation errors:
|
|
9
9
|
${V.join(`
|
|
10
10
|
`)}
|
|
11
11
|
|
|
@@ -13,9 +13,14 @@ While trying to validate:
|
|
|
13
13
|
${Q}
|
|
14
14
|
|
|
15
15
|
Against schema:
|
|
16
|
-
${q}`)}else return!0}}class BV extends E0{#$;definitions;nullable=!0;constructor($){super();this.#$=$,this.definitions=$.definitions}*pathErrors($){if($!==null)for(let[V,Q]of this.#$.pathErrors($))yield[V,`${Q} or ${l0($)} is not null`]}fuzz(){return T2(0.1)?null:this.#$.fuzz()}schema(){return{...this.#$.schema(),nullable:!0}}}function CV($){return new BV($)}class wY extends E0{#$;#Q;definitions;nullable;constructor($,V){super();this.#$=$,this.#Q=V,this.definitions=$.definitions,this.nullable=$.nullable}*pathErrors($){yield*this.#$.pathErrors($)}fuzz(){return this.#$.fuzz()}schema(){return{...this.#$.schema(),metadata:this.#Q}}}class IV extends E0{*pathErrors($){if(typeof $!=="boolean")yield[[],`${l0($)} is not a boolean`]}fuzz(){return T2()}schema(){return{type:"boolean"}}}function o6(){return new IV}class k2 extends E0{#$;#Q;#V;constructor($){super();this.#$=$,[this.#Q,this.#V]=CY[$]}*pathErrors($){if(typeof $!=="number")yield[[],`${l0($)} is not a number`];else if($%1!==0)yield[[],`${$.toPrecision()} is not an integer`];else if($<this.#Q)yield[[],`${$.toFixed()} is less than ${this.#Q.toFixed()}`];else if($>=this.#V)yield[[],`${$.toFixed()} is greater than ${(this.#V-1).toFixed()}`]}fuzz(){return MV(this.#Q,this.#V)}schema(){return{type:this.#$}}}function g2(){return new k2("uint8")}function N6(){return new k2("int32")}function i6(){return new k2("uint32")}class DV extends E0{#$;constructor($){super();this.#$=$}*pathErrors($){if(typeof $!=="number")yield[[],`${l0($)} is not number, expected a float`]}fuzz(){return LV()}schema(){return{type:this.#$}}}function N0(){return new DV("float64")}class wV extends E0{*pathErrors($){if(typeof $!=="string")yield[[],`${l0($)} is not a string`]}fuzz(){return S2(l6(3))}schema(){return{type:"string"}}}function W0(){return new wV}class NV extends E0{*pathErrors($){if(typeof $!=="string")yield[[],`${l0($)} is not a string`];else if(!MY($))yield[[],`${$} is not a valid timestamp`]}fuzz(){return new Date(Math.random()*3153600000000).toISOString()}schema(){return{type:"timestamp"}}}function vV(){return new NV}class AV extends E0{#$;#Q;constructor($,V){super();this.#$=$,this.#Q=V}*pathErrors($){if(typeof $!=="string")yield[[],`${l0($)} is not a string`];else if(!this.#Q.has($))yield[[],`${$} is not one of ${this.#$.join(", ")}`]}fuzz(){return L$(this.#$)}schema(){return{enum:[...this.#$]}}}function v6(...$){let V=new Set($);if(V.size!==$.length)throw new Error("enum can't contain duplicates");else return new AV($,V)}class RV extends E0{#$;constructor($){super();this.#$=$}*pathErrors($){if(!Array.isArray($))yield[[],`${l0($)} is not an array`];else for(let[V,Q]of $.entries())for(let[q,K]of this.#$.pathErrors(Q))q.push(`[${V.toFixed()}]`),yield[q,K]}fuzz(){return Array(l6()).fill(null).map(()=>this.#$.fuzz())}schema(){return{elements:this.#$.schema()}}}function z6($){if($.definitions)throw new Error("definitions can only exist on a root schema");else return new RV($)}class xV extends E0{#$;constructor($){super();this.#$=$}*pathErrors($){if(!x2($))yield[[],`${l0($)} is not a record`];else for(let[V,Q]of Object.entries($))for(let[q,K]of this.#$.pathErrors(Q))q.push(Z1(V)),yield[q,K]}fuzz(){return Object.fromEntries(Array(l6()).fill(null).map(()=>[S2(l6(3)),this.#$.fuzz()]))}schema(){return{values:this.#$.schema()}}}function O$($){if($.definitions)throw new Error("definitions can only exist on a root schema");else return new xV($)}class TV extends E0{#$;#Q;#V;keys;constructor($,V,Q,q){super();this.#$=$,this.#Q=V,this.#V=Q,this.keys=q}*pathErrors($){if(!x2($))yield[[],`${l0($)} is not a record`];else{if(this.#$)for(let[V,Q]of this.#$){let q=$[V];if(q===void 0)yield[[],`required key '${V}' is missing`];else for(let[K,G]of Q.pathErrors(q))K.push(Z1(V)),yield[K,G]}if(this.#Q){for(let[V,Q]of this.#Q)if($[V]!==void 0)for(let[q,K]of Q.pathErrors($[V]))q.push(Z1(V)),yield[q,K]}if(!this.#V){for(let V of Object.keys($))if(!this.keys.has(V))yield[[Z1(V)],`'${V}' is not a valid property and additional properties are not allowed`]}}}fuzz(){let $=R2(this.#$??[],([q,K])=>[q,K.fuzz()]),V=R2(IY(this.#Q??[],()=>T2()),([q,K])=>[q,K.fuzz()]),Q=this.#V?R2(DY(l6()),()=>[S2(l6(3)),L$([()=>null,T2,LV,()=>S2(l6()),()=>[],()=>({})])()]):[];return Object.fromEntries(OV($,V,Q))}schema(){let $={};if(this.#$)$.properties=Object.fromEntries(this.#$.map(([V,Q])=>[V,Q.schema()]));if(this.#Q)$.optionalProperties=Object.fromEntries(this.#Q.map(([V,Q])=>[V,Q.schema()]));if(this.#V)$.additionalProperties=!0;return $}}function NY($,V,Q){let q=new Set(R2(OV($??[],V??[]),([K])=>K));if($?.some(([,K])=>K.definitions))throw new Error("definitions can only exist on a root schema");else if(V?.some(([,K])=>K.definitions))throw new Error("definitions can only exist on a root schema");else if(q.size!==($?.length??0)+(V?.length??0))throw new Error("properties and optionalProperties keys must be unique");else return new TV($,V,Q??!1,q)}function v0($,V,Q){return NY($?Object.entries($):void 0,V?Object.entries(V):void 0,Q)}class vY extends E0{#$;#Q;#V;constructor($,V,Q){super();this.#$=$,this.#Q=V,this.#V=Q}guard($){if(!x2($))return!1;let{[this.#$]:V,...Q}=$;if(typeof V!=="string")return!1;return this.#Q[V]?.guard(Q)??!1}*pathErrors($){if(!x2($))yield[[],`${l0($)} is not an object`];else{let{[this.#$]:V,...Q}=$;if(V===void 0)yield[[],`discriminator key '${this.#$}' is missing`];else if(typeof V!=="string")yield[[Z1(this.#$)],`${l0(V)} is not a string`];else{let q=this.#Q[V];if(q===void 0)yield[[Z1(this.#$)],`'${V}' is not a valid discriminator value (${Object.keys(this.#Q).join(", ")})`];else yield*q.pathErrors(Q)}}}fuzz(){let[$,V]=L$(this.#V);return{...V.fuzz(),[this.#$]:$}}schema(){let $=Object.fromEntries(this.#V.map(([V,Q])=>[V,Q.schema()]));return{discriminator:this.#$,mapping:$}}}class SV extends E0{#$;#Q;definitions=!0;constructor($,V){super();this.#$=$,this.#Q=V}*pathErrors($){yield*this.#Q.pathErrors($)}fuzz(){return this.#Q.fuzz()}schema(){let $=Object.fromEntries(Object.entries(this.#$).map(([V,Q])=>[V,Q.schema()]));return{...this.#Q.schema(),definitions:$}}}class kV extends E0{#$;#Q;constructor($,V){super();this.#$=$,this.#Q=V}*pathErrors($){yield*this.#Q.pathErrors($)}fuzz(){return this.#Q.fuzz()}schema(){return{ref:this.#$}}}class gV{#$;#Q;constructor($,V){this.#$=$,this.#Q=V}def($,V){let Q=V(this.#Q);return new gV({...this.#$,[$]:Q},{...this.#Q,[$]:new kV($,Q)})}build($){return new SV(this.#$,$(this.#Q))}}class AY extends E0{#$;#Q;constructor($,V){super();this.#Q=$,this.#$=V}#V(){let $=this.#Q[this.#$];if($===void 0)throw new Error(`ref ${this.#$} was not in definitions after ref builder was finished`);else return $}*pathErrors($){yield*this.#V().pathErrors($)}fuzz(){return this.#V().fuzz()}schema(){return{ref:this.#$}}}var k0=[];for(let $=0;$<256;++$)k0.push(($+256).toString(16).slice(1));function EV($,V=0){return(k0[$[V+0]]+k0[$[V+1]]+k0[$[V+2]]+k0[$[V+3]]+"-"+k0[$[V+4]]+k0[$[V+5]]+"-"+k0[$[V+6]]+k0[$[V+7]]+"-"+k0[$[V+8]]+k0[$[V+9]]+"-"+k0[$[V+10]]+k0[$[V+11]]+k0[$[V+12]]+k0[$[V+13]]+k0[$[V+14]]+k0[$[V+15]]).toLowerCase()}var B$,RY=new Uint8Array(16);function C$(){if(!B$){if(typeof crypto==="undefined"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");B$=crypto.getRandomValues.bind(crypto)}return B$(RY)}var xY=typeof crypto!=="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),I$={randomUUID:xY};function TY($,V,Q){if(I$.randomUUID&&!V&&!$)return I$.randomUUID();$=$||{};let q=$.random??$.rng?.()??C$();if(q.length<16)throw new Error("Random bytes length must be >= 16");if(q[6]=q[6]&15|64,q[8]=q[8]&63|128,V){if(Q=Q||0,Q<0||Q+16>V.length)throw new RangeError(`UUID byte range ${Q}:${Q+15} is out of buffer bounds`);for(let K=0;K<16;++K)V[Q+K]=q[K];return V}return EV(q)}var F1=TY;class D$ extends Map{#$;#Q=0;constructor($,V=[]){super();this.#$=$;for(let[Q,q]of V)this.set(Q,q)}get($){let V=super.get($);if(V!==void 0)super.delete($),super.set($,V);return V}set($,V){let Q=super.get($);if(Q===void 0)this.#Q+=$.length;else if(Q!==null)this.#Q-=Q.length;if(V!==null)this.#Q+=V.length;super.delete($);let q;while(this.#Q>this.#$&&(q=this.entries().next().value)){let[K,G]=q;if(super.delete(K),this.#Q-=K.length,G!==null)this.#Q-=G.length}return super.set($,V),this}delete($){let V=super.get($);if(V===void 0)return!1;if(super.delete($),V!==null)this.#Q-=V.length;return this.#Q-=$.length,!0}clear(){super.clear(),this.#Q=0}}var hV="https://webapp-prod.cloud.remarkable.engineering",SY="https://eu.tectonic.remarkable.com",A6=/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}||trash)$/,E2=/^[0-9a-f]{64}$/,_V=v0({name:W0(),timestamp:N0()},void 0,!0),kY=v0({name:W0(),pageId:W0(),timestamp:N0()},void 0,!0);class w$ extends Error{constructor(){super("root generation was stale; try put again")}}class N$ extends Error{status;statusText;constructor($,V,Q){super(Q);this.status=$,this.statusText=V}}class n6 extends Error{field;regex;constructor($,V,Q){super(Q);this.field=$,this.regex=V}}class mV extends Error{hash;constructor($){super(`'${$}' not found in the root hash`);this.hash=$}}async function jJ($,{deviceDesc:V="browser-chrome",uuid:Q=F1(),authHost:q=hV}={}){if($.length!==8)throw new Error(`code should be length 8, but was ${$.length}`);let K=await fetch(`${q}/token/json/2/device/new`,{method:"POST",headers:{Authorization:"Bearer"},body:JSON.stringify({code:$,deviceDesc:V,deviceID:Q})});if(!K.ok)throw new N$(K.status,K.statusText,"couldn't register api");else return await K.text()}var gY=v0(void 0,{authors:z6(W0()),title:W0(),publicationDate:W0(),publisher:W0()},!0),EY=v0({id:W0(),idx:v0({timestamp:W0(),value:W0()},void 0,!0)},{template:v0({timestamp:W0(),value:W0()},void 0,!0),redir:v0({timestamp:W0(),value:N6()},void 0,!0),scrollTime:v0({timestamp:W0(),value:vV()},void 0,!0),verticalScroll:v0({timestamp:W0(),value:N0()},void 0,!0),deleted:v0({timestamp:W0(),value:N6()},void 0,!0)},!0),yY=v0({lastOpened:v0({timestamp:W0(),value:W0()},void 0,!0),original:v0({timestamp:W0(),value:N6()},void 0,!0),pages:z6(EY),uuids:z6(v0({first:W0(),second:i6()},void 0,!0))},void 0,!0),bY=v0(void 0,{tags:z6(_V)}),fY=v0({coverPageNumber:N6(),documentMetadata:gY,extraMetadata:O$(W0()),fileType:v6("epub","notebook","pdf"),fontName:W0(),formatVersion:g2(),lineHeight:N6(),margins:i6(),orientation:v6("portrait","landscape"),pageCount:i6(),sizeInBytes:W0(),textAlignment:v6("justify","left"),textScale:N0()},{cPages:yY,customZoomCenterX:N0(),customZoomCenterY:N0(),customZoomOrientation:v6("portrait","landscape"),customZoomPageHeight:N0(),customZoomPageWidth:N0(),customZoomScale:N0(),dummyDocument:o6(),keyboardMetadata:v0({count:i6(),timestamp:N0()},void 0,!0),lastOpenedPage:i6(),originalPageCount:N6(),pages:z6(W0()),pageTags:z6(kY),redirectionPageMap:z6(N6()),tags:z6(_V),transform:v0({m11:N0(),m12:N0(),m13:N0(),m21:N0(),m22:N0(),m23:N0(),m31:N0(),m32:N0(),m33:N0()},void 0,!0),viewBackgroundFilter:v6("off","fullpage"),zoomMode:v6("bestFit","customFit","fitToHeight","fitToWidth")},!0),hY=v0({lastModified:W0(),parent:W0(),pinned:o6(),type:v6("DocumentType","CollectionType"),visibleName:W0()},{lastOpened:W0(),lastOpenedPage:i6(),createdTime:W0(),deleted:o6(),metadatamodified:o6(),modified:o6(),synced:o6(),version:g2()},!0),_Y=v0({hash:W0(),generation:N0()},void 0,!0),mY=v0({hash:W0(),generation:N0(),schemaVersion:g2()},void 0,!0);async function yV($){let V=await crypto.subtle.digest("SHA-256",$);return[...new Uint8Array(V)].map((Q)=>Q.toString(16).padStart(2,"0")).join("")}class pV{#$;#Q;#V;constructor($,V,Q){this.#$=$,this.#V=V,this.#Q=Q}async getRootHash(){let V=await(await this.#$("GET",`${this.#Q}/sync/v4/root`)).text(),Q=JSON.parse(V);if(!mY.guardAssert(Q))throw Error("invalid root hash");let{hash:q,generation:K,schemaVersion:G}=Q;if(G!==3)throw new Error(`schema version ${G} not supported`);else if(!Number.isSafeInteger(K))throw new Error(`generation ${K} was not a safe integer; please file a bug report`);else return[q,K]}async#q($){if(!E2.test($))throw new n6($,E2,"hash was not a valid hash");let Q=await(await this.#$("GET",`${this.#Q}/sync/v3/files/${$}`)).arrayBuffer();return new Uint8Array(Q)}async getHash($){let V=this.#V.get($);if(V!=null)return new TextEncoder().encode(V);else{let Q=await this.#q($);if(this.#V.get($)===void 0)this.#V.set($,null);return Q}}async getText($){let V=this.#V.get($);if(V!=null)return V;else{let Q=await this.#q($),K=new TextDecoder().decode(Q);return this.#V.set($,K),K}}async getEntries($){let V=await this.getText($),[Q,...q]=V.slice(0,-1).split(`
|
|
17
|
-
`);if(Q!="3")throw new Error(`schema version ${Q} not supported`);else return q.map((K)=>{let[G,W,J,P,j]=K.split(":");if(G===void 0||W===void 0||J===void 0||P===void 0||j===void 0)throw new Error(`line '${K}' was not formatted correctly`);else if(W==="80000000")return{hash:G,type:80000000,id:J,subfiles:parseInt(P),size:parseInt(j)};else if(W==="0"&&P==="0")return{hash:G,type:0,id:J,subfiles:0,size:parseInt(j)};else throw new Error(`line '${K}' was not formatted correctly`)})}async getContent($){let V=await this.getText($),Q=JSON.parse(V);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
${q}`)}else return!0}}class BV extends k0{#$;definitions;nullable=!0;constructor($){super();this.#$=$,this.definitions=$.definitions}*pathErrors($){if($!==null)for(let[V,Q]of this.#$.pathErrors($))yield[V,`${Q} or ${o0($)} is not null`]}fuzz(){return c1(0.1)?null:this.#$.fuzz()}schema(){return{...this.#$.schema(),nullable:!0}}}function CV($){return new BV($)}class vY extends k0{#$;#Q;definitions;nullable;constructor($,V){super();this.#$=$,this.#Q=V,this.definitions=$.definitions,this.nullable=$.nullable}*pathErrors($){yield*this.#$.pathErrors($)}fuzz(){return this.#$.fuzz()}schema(){return{...this.#$.schema(),metadata:this.#Q}}}class IV extends k0{*pathErrors($){if($===void 0)yield[[],"value is undefined"]}fuzz(){return g2([()=>null,c1,B$,()=>F1(r0()),()=>Array(r0()).fill(null).map(()=>this.fuzz()),()=>Object.fromEntries(Array(r0()).fill(null).map(()=>[F1(r0(3)),this.fuzz()]))])()}schema(){return{}}}function DV(){return new IV}class wV extends k0{*pathErrors($){if(typeof $!=="boolean")yield[[],`${o0($)} is not a boolean`]}fuzz(){return c1()}schema(){return{type:"boolean"}}}function o6(){return new wV}class E2 extends k0{#$;#Q;#V;constructor($){super();this.#$=$,[this.#Q,this.#V]=DY[$]}*pathErrors($){if(typeof $!=="number")yield[[],`${o0($)} is not a number`];else if($%1!==0)yield[[],`${$.toPrecision()} is not an integer`];else if($<this.#Q)yield[[],`${$.toFixed()} is less than ${this.#Q.toFixed()}`];else if($>=this.#V)yield[[],`${$.toFixed()} is greater than ${(this.#V-1).toFixed()}`]}fuzz(){return LV(this.#Q,this.#V)}schema(){return{type:this.#$}}}function u1(){return new E2("uint8")}function H6(){return new E2("int32")}function i6(){return new E2("uint32")}class NV extends k0{#$;constructor($){super();this.#$=$}*pathErrors($){if(typeof $!=="number")yield[[],`${o0($)} is not number, expected a float`]}fuzz(){return B$()}schema(){return{type:this.#$}}}function v0(){return new NV("float64")}class vV extends k0{*pathErrors($){if(typeof $!=="string")yield[[],`${o0($)} is not a string`]}fuzz(){return F1(r0(3))}schema(){return{type:"string"}}}function X0(){return new vV}class AV extends k0{*pathErrors($){if(typeof $!=="string")yield[[],`${o0($)} is not a string`];else if(!OY($))yield[[],`${$} is not a valid timestamp`]}fuzz(){return new Date(Math.random()*3153600000000).toISOString()}schema(){return{type:"timestamp"}}}function RV(){return new AV}class xV extends k0{#$;#Q;constructor($,V){super();this.#$=$,this.#Q=V}*pathErrors($){if(typeof $!=="string")yield[[],`${o0($)} is not a string`];else if(!this.#Q.has($))yield[[],`${$} is not one of ${this.#$.join(", ")}`]}fuzz(){return g2(this.#$)}schema(){return{enum:[...this.#$]}}}function q6(...$){let V=new Set($);if(V.size!==$.length)throw new Error("enum can't contain duplicates");else return new xV($,V)}class TV extends k0{#$;constructor($){super();this.#$=$}*pathErrors($){if(!Array.isArray($))yield[[],`${o0($)} is not an array`];else for(let[V,Q]of $.entries())for(let[q,K]of this.#$.pathErrors(Q))q.push(`[${V.toFixed()}]`),yield[q,K]}fuzz(){return Array(r0()).fill(null).map(()=>this.#$.fuzz())}schema(){return{elements:this.#$.schema()}}}function _0($){if($.definitions)throw new Error("definitions can only exist on a root schema");else return new TV($)}class SV extends k0{#$;constructor($){super();this.#$=$}*pathErrors($){if(!k2($))yield[[],`${o0($)} is not a record`];else for(let[V,Q]of Object.entries($))for(let[q,K]of this.#$.pathErrors(Q))q.push(Z1(V)),yield[q,K]}fuzz(){return Object.fromEntries(Array(r0()).fill(null).map(()=>[F1(r0(3)),this.#$.fuzz()]))}schema(){return{values:this.#$.schema()}}}function y2($){if($.definitions)throw new Error("definitions can only exist on a root schema");else return new SV($)}class kV extends k0{#$;#Q;#V;keys;constructor($,V,Q,q){super();this.#$=$,this.#Q=V,this.#V=Q,this.keys=q}*pathErrors($){if(!k2($))yield[[],`${o0($)} is not a record`];else{if(this.#$)for(let[V,Q]of this.#$){let q=$[V];if(q===void 0)yield[[],`required key '${V}' is missing`];else for(let[K,G]of Q.pathErrors(q))K.push(Z1(V)),yield[K,G]}if(this.#Q){for(let[V,Q]of this.#Q)if($[V]!==void 0)for(let[q,K]of Q.pathErrors($[V]))q.push(Z1(V)),yield[q,K]}if(!this.#V){for(let V of Object.keys($))if(!this.keys.has(V))yield[[Z1(V)],`'${V}' is not a valid property and additional properties are not allowed`]}}}fuzz(){let $=S2(this.#$??[],([q,K])=>[q,K.fuzz()]),V=S2(wY(this.#Q??[],()=>c1()),([q,K])=>[q,K.fuzz()]),Q=this.#V?S2(NY(r0()),()=>[F1(r0(3)),g2([()=>null,c1,B$,()=>F1(r0()),()=>[],()=>({})])()]):[];return Object.fromEntries(OV($,V,Q))}schema(){let $={};if(this.#$)$.properties=Object.fromEntries(this.#$.map(([V,Q])=>[V,Q.schema()]));if(this.#Q)$.optionalProperties=Object.fromEntries(this.#Q.map(([V,Q])=>[V,Q.schema()]));if(this.#V)$.additionalProperties=!0;return $}}function AY($,V,Q){let q=new Set(S2(OV($??[],V??[]),([K])=>K));if($?.some(([,K])=>K.definitions))throw new Error("definitions can only exist on a root schema");else if(V?.some(([,K])=>K.definitions))throw new Error("definitions can only exist on a root schema");else if(q.size!==($?.length??0)+(V?.length??0))throw new Error("properties and optionalProperties keys must be unique");else return new kV($,V,Q??!1,q)}function N0($,V,Q){return AY($?Object.entries($):void 0,V?Object.entries(V):void 0,Q)}class RY extends k0{#$;#Q;#V;constructor($,V,Q){super();this.#$=$,this.#Q=V,this.#V=Q}guard($){if(!k2($))return!1;let{[this.#$]:V,...Q}=$;if(typeof V!=="string")return!1;return this.#Q[V]?.guard(Q)??!1}*pathErrors($){if(!k2($))yield[[],`${o0($)} is not an object`];else{let{[this.#$]:V,...Q}=$;if(V===void 0)yield[[],`discriminator key '${this.#$}' is missing`];else if(typeof V!=="string")yield[[Z1(this.#$)],`${o0(V)} is not a string`];else{let q=this.#Q[V];if(q===void 0)yield[[Z1(this.#$)],`'${V}' is not a valid discriminator value (${Object.keys(this.#Q).join(", ")})`];else yield*q.pathErrors(Q)}}}fuzz(){let[$,V]=g2(this.#V);return{...V.fuzz(),[this.#$]:$}}schema(){let $=Object.fromEntries(this.#V.map(([V,Q])=>[V,Q.schema()]));return{discriminator:this.#$,mapping:$}}}class gV extends k0{#$;#Q;definitions=!0;constructor($,V){super();this.#$=$,this.#Q=V}*pathErrors($){yield*this.#Q.pathErrors($)}fuzz(){return this.#Q.fuzz()}schema(){let $=Object.fromEntries(Object.entries(this.#$).map(([V,Q])=>[V,Q.schema()]));return{...this.#Q.schema(),definitions:$}}}class EV extends k0{#$;#Q;constructor($,V){super();this.#$=$,this.#Q=V}*pathErrors($){yield*this.#Q.pathErrors($)}fuzz(){return this.#Q.fuzz()}schema(){return{ref:this.#$}}}class yV{#$;#Q;constructor($,V){this.#$=$,this.#Q=V}def($,V){let Q=V(this.#Q);return new yV({...this.#$,[$]:Q},{...this.#Q,[$]:new EV($,Q)})}build($){return new gV(this.#$,$(this.#Q))}}class xY extends k0{#$;#Q;constructor($,V){super();this.#Q=$,this.#$=V}#V(){let $=this.#Q[this.#$];if($===void 0)throw new Error(`ref ${this.#$} was not in definitions after ref builder was finished`);else return $}*pathErrors($){yield*this.#V().pathErrors($)}fuzz(){return this.#V().fuzz()}schema(){return{ref:this.#$}}}var g0=[];for(let $=0;$<256;++$)g0.push(($+256).toString(16).slice(1));function bV($,V=0){return(g0[$[V+0]]+g0[$[V+1]]+g0[$[V+2]]+g0[$[V+3]]+"-"+g0[$[V+4]]+g0[$[V+5]]+"-"+g0[$[V+6]]+g0[$[V+7]]+"-"+g0[$[V+8]]+g0[$[V+9]]+"-"+g0[$[V+10]]+g0[$[V+11]]+g0[$[V+12]]+g0[$[V+13]]+g0[$[V+14]]+g0[$[V+15]]).toLowerCase()}var C$,TY=new Uint8Array(16);function I$(){if(!C$){if(typeof crypto==="undefined"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");C$=crypto.getRandomValues.bind(crypto)}return C$(TY)}var SY=typeof crypto!=="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),D$={randomUUID:SY};function kY($,V,Q){if(D$.randomUUID&&!V&&!$)return D$.randomUUID();$=$||{};let q=$.random??$.rng?.()??I$();if(q.length<16)throw new Error("Random bytes length must be >= 16");if(q[6]=q[6]&15|64,q[8]=q[8]&63|128,V){if(Q=Q||0,Q<0||Q+16>V.length)throw new RangeError(`UUID byte range ${Q}:${Q+15} is out of buffer bounds`);for(let K=0;K<16;++K)V[Q+K]=q[K];return V}return bV(q)}var H1=kY;class w$ extends Map{#$;#Q=0;constructor($,V=[]){super();this.#$=$;for(let[Q,q]of V)this.set(Q,q)}get($){let V=super.get($);if(V!==void 0)super.delete($),super.set($,V);return V}set($,V){let Q=super.get($);if(Q===void 0)this.#Q+=$.length;else if(Q!==null)this.#Q-=Q.length;if(V!==null)this.#Q+=V.length;super.delete($);let q;while(this.#Q>this.#$&&(q=this.entries().next().value)){let[K,G]=q;if(super.delete(K),this.#Q-=K.length,G!==null)this.#Q-=G.length}return super.set($,V),this}delete($){let V=super.get($);if(V===void 0)return!1;if(super.delete($),V!==null)this.#Q-=V.length;return this.#Q-=$.length,!0}clear(){super.clear(),this.#Q=0}}var mV="https://webapp-prod.cloud.remarkable.engineering",gY="https://eu.tectonic.remarkable.com",R6=/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}||trash)$/,b2=/^[0-9a-f]{64}$/,pV=N0({name:X0(),timestamp:v0()},void 0,!0),EY=N0({name:X0(),pageId:X0(),timestamp:v0()},void 0,!0);class N$ extends Error{constructor(){super("root generation was stale; try put again")}}class v$ extends Error{status;statusText;constructor($,V,Q){super(Q);this.status=$,this.statusText=V}}class n6 extends Error{field;regex;constructor($,V,Q){super(Q);this.field=$,this.regex=V}}class cV extends Error{hash;constructor($){super(`'${$}' not found in the root hash`);this.hash=$}}async function ZJ($,{deviceDesc:V="browser-chrome",uuid:Q=H1(),authHost:q=mV}={}){if($.length!==8)throw new Error(`code should be length 8, but was ${$.length}`);let K=await fetch(`${q}/token/json/2/device/new`,{method:"POST",headers:{Authorization:"Bearer"},body:JSON.stringify({code:$,deviceDesc:V,deviceID:Q})});if(!K.ok)throw new v$(K.status,K.statusText,"couldn't register api");else return await K.text()}var yY=N0(void 0,{authors:_0(X0()),title:X0(),publicationDate:X0(),publisher:X0()},!0),bY=N0({id:X0(),idx:N0({timestamp:X0(),value:X0()},void 0,!0)},{template:N0({timestamp:X0(),value:X0()},void 0,!0),redir:N0({timestamp:X0(),value:H6()},void 0,!0),scrollTime:N0({timestamp:X0(),value:RV()},void 0,!0),verticalScroll:N0({timestamp:X0(),value:v0()},void 0,!0),deleted:N0({timestamp:X0(),value:H6()},void 0,!0)},!0),fY=N0({lastOpened:N0({timestamp:X0(),value:X0()},void 0,!0),original:N0({timestamp:X0(),value:H6()},void 0,!0),pages:_0(bY),uuids:_0(N0({first:X0(),second:i6()},void 0,!0))},void 0,!0),hY=N0(void 0,{tags:_0(pV)}),_Y=N0({name:X0(),author:X0(),iconData:X0(),categories:_0(X0()),labels:_0(X0()),orientation:q6("portrait","landscape"),templateVersion:X0(),formatVersion:u1(),supportedScreens:_0(q6("rm2","rmPP")),constants:_0(y2(H6())),items:_0(DV())}),mY=N0({coverPageNumber:H6(),documentMetadata:yY,extraMetadata:y2(X0()),fileType:q6("epub","notebook","pdf"),fontName:X0(),formatVersion:u1(),lineHeight:H6(),margins:i6(),orientation:q6("portrait","landscape"),pageCount:i6(),sizeInBytes:X0(),textAlignment:q6("justify","left"),textScale:v0()},{cPages:fY,customZoomCenterX:v0(),customZoomCenterY:v0(),customZoomOrientation:q6("portrait","landscape"),customZoomPageHeight:v0(),customZoomPageWidth:v0(),customZoomScale:v0(),dummyDocument:o6(),keyboardMetadata:N0({count:i6(),timestamp:v0()},void 0,!0),lastOpenedPage:i6(),originalPageCount:H6(),pages:_0(X0()),pageTags:_0(EY),redirectionPageMap:_0(H6()),tags:_0(pV),transform:N0({m11:v0(),m12:v0(),m13:v0(),m21:v0(),m22:v0(),m23:v0(),m31:v0(),m32:v0(),m33:v0()},void 0,!0),viewBackgroundFilter:q6("off","fullpage"),zoomMode:q6("bestFit","customFit","fitToHeight","fitToWidth")},!0),pY=N0({lastModified:X0(),parent:X0(),pinned:o6(),type:q6("DocumentType","CollectionType","TemplateType"),visibleName:X0()},{lastOpened:X0(),lastOpenedPage:i6(),createdTime:X0(),deleted:o6(),metadatamodified:o6(),modified:o6(),synced:o6(),version:u1()},!0),cY=N0({hash:X0(),generation:v0()},void 0,!0),uY=N0({hash:X0(),generation:v0(),schemaVersion:u1()},void 0,!0);async function fV($){let V=await crypto.subtle.digest("SHA-256",$);return[...new Uint8Array(V)].map((Q)=>Q.toString(16).padStart(2,"0")).join("")}class uV{#$;#Q;#V;constructor($,V,Q){this.#$=$,this.#V=V,this.#Q=Q}async getRootHash(){let V=await(await this.#$("GET",`${this.#Q}/sync/v4/root`)).text(),Q=JSON.parse(V);if(!uY.guardAssert(Q))throw Error("invalid root hash");let{hash:q,generation:K,schemaVersion:G}=Q;if(G!==3)throw new Error(`schema version ${G} not supported`);else if(!Number.isSafeInteger(K))throw new Error(`generation ${K} was not a safe integer; please file a bug report`);else return[q,K]}async#q($){if(!b2.test($))throw new n6($,b2,"hash was not a valid hash");let Q=await(await this.#$("GET",`${this.#Q}/sync/v3/files/${$}`)).arrayBuffer();return new Uint8Array(Q)}async getHash($){let V=this.#V.get($);if(V!=null)return new TextEncoder().encode(V);else{let Q=await this.#q($);if(this.#V.get($)===void 0)this.#V.set($,null);return Q}}async getText($){let V=this.#V.get($);if(V!=null)return V;else{let Q=await this.#q($),K=new TextDecoder().decode(Q);return this.#V.set($,K),K}}async getEntries($){let V=await this.getText($),[Q,...q]=V.slice(0,-1).split(`
|
|
17
|
+
`);if(Q!="3")throw new Error(`schema version ${Q} not supported`);else return q.map((K)=>{let[G,W,J,P,j]=K.split(":");if(G===void 0||W===void 0||J===void 0||P===void 0||j===void 0)throw new Error(`line '${K}' was not formatted correctly`);else if(W==="80000000")return{hash:G,type:80000000,id:J,subfiles:parseInt(P),size:parseInt(j)};else if(W==="0"&&P==="0")return{hash:G,type:0,id:J,subfiles:0,size:parseInt(j)};else throw new Error(`line '${K}' was not formatted correctly`)})}async getContent($){let V=await this.getText($),Q=JSON.parse(V),q=[];for(let[G,W]of[["collection",hY],["template",_Y],["document",mY]])try{if(W.guardAssert(Q))return Q}catch(J){let P=J instanceof Error?J.message:"unknown error type";q.push(`Couldn't validate as ${G} because:
|
|
18
|
+
${P}`)}let K=q.join(`
|
|
19
|
+
|
|
20
|
+
or
|
|
21
|
+
|
|
22
|
+
`);throw new Error(`invalid content: ${K}`)}async getMetadata($){let V=await this.getText($),Q=JSON.parse(V);if(!pY.guardAssert(Q))throw Error("invalid metadata");return Q}async putRootHash($,V,Q=!0){if(!Number.isSafeInteger(V))throw new Error(`generation ${V} was not a safe integer`);else if(!b2.test($))throw new n6($,b2,"rootHash was not a valid hash");let q=JSON.stringify({hash:$,generation:V,broadcast:Q}),G=await(await this.#$("PUT",`${this.#Q}/sync/v3/root`,{body:q})).text(),W=JSON.parse(G);if(!cY.guardAssert(W))throw Error("invalid root hash");let{hash:J,generation:P}=W;if(Number.isSafeInteger(P))return[J,P];else throw new Error(`new generation ${P} was not a safe integer; please file a bug report`)}async#X($,V,Q){if(!this.#V.has($)){let q=hV.default.buf(Q,0),K=new ArrayBuffer(4);new DataView(K).setInt32(0,q,!1);let G=c2(new Uint8Array(K));if(await this.#$("PUT",`${this.#Q}/sync/v3/files/${$}`,{body:Q,headers:{"rm-filename":V,"x-goog-hash":`crc32c=${G}`}}),this.#V.get($)===void 0)this.#V.set($,null)}}async putFile($,V){let Q=await fV(V);return[{id:$,hash:Q,type:0,subfiles:0,size:V.length},this.#X(Q,$,V)]}async putText($,V){let q=new TextEncoder().encode(V),[K,G]=await this.putFile($,q);return[K,G.then(()=>{this.#V.set(K.hash,V)})]}async putContent($,V){if(!$.endsWith(".content"))throw new Error(`id ${$} did not end with '.content'`);else return await this.putText($,JSON.stringify(V))}async putMetadata($,V){if(!$.endsWith(".metadata"))throw new Error(`id ${$} did not end with '.metadata'`);else return await this.putText($,JSON.stringify(V))}async putEntries($,V){V.sort((P,j)=>P.id.localeCompare(j.id));let Q=new Uint8Array(V.length*32);for(let[P,{hash:j}]of V.entries())for(let[z,C]of(j.match(/../g)??[]).entries())Q[P*32+z]=parseInt(C,16);let q=await fV(Q),K=V.reduce((P,j)=>P+j.size,0),G=[`3
|
|
23
|
+
`];for(let{hash:P,type:j,id:z,subfiles:C,size:I}of V)G.push(`${P}:${j}:${z}:${C}:${I}
|
|
24
|
+
`);let W={id:$,hash:q,type:80000000,subfiles:V.length,size:K},J=new TextEncoder;return[W,this.#X(q,`${$}.docSchema`,J.encode(G.join("")))]}dumpCache(){return JSON.stringify(Object.fromEntries(this.#V))}clearCache(){this.#V.clear()}}class dV{#$;#Q;raw;#V;constructor($,V,Q){this.#$=$,this.#Q=Q,this.raw=new uV((q,K,{body:G,headers:W}={})=>this.#G(K,{method:q,body:G,headers:W}),Q,V)}async#q($=!1){if($||this.#V===void 0)this.#V=await this.raw.getRootHash();return this.#V}async#X($,V){try{this.#V=await this.raw.putRootHash($,V)}catch(Q){if(Q instanceof N$)this.#V=void 0;throw Q}}async#G($,{body:V,method:Q="POST",headers:q={}}){let K=await fetch($,{method:Q,headers:{Authorization:`Bearer ${this.#$}`,...q},body:V});if(!K.ok){let G=await K.text();if(G===`{"message":"precondition failed"}
|
|
25
|
+
`)throw new N$;else throw new v$(K.status,K.statusText,`failed reMarkable request: ${G}`)}else return K}async#U({hash:$,id:V}){let Q=await this.raw.getEntries($),q=Q.find((R)=>R.id.endsWith(".metadata")),K=Q.find((R)=>R.id.endsWith(".content"));if(q===void 0)throw new Error(`couldn't find metadata for hash ${$}`);else if(K===void 0)throw new Error(`couldn't find content for hash ${$}`);let[{visibleName:G,lastModified:W,pinned:J,parent:P,lastOpened:j,new:z,source:C},I]=await Promise.all([this.raw.getMetadata(q.hash),this.raw.getContent(K.hash)]);if("templateVersion"in I)return{id:V,hash:$,visibleName:G,lastModified:W,new:z,pinned:J,source:C,parent:P,type:"TemplateType"};else if(I.fileType===void 0)return{id:V,hash:$,visibleName:G,lastModified:W,pinned:J,parent:P,tags:I.tags,type:"CollectionType"};else return{id:V,hash:$,visibleName:G,lastModified:W,pinned:J,parent:P,tags:I.tags,lastOpened:j??"",fileType:I.fileType,type:"DocumentType"}}async listItems($=!1){let V=await this.listIds($);return await Promise.all(V.map((Q)=>this.#U(Q)))}async listIds($=!1){let[V]=await this.#q($);return(await this.raw.getEntries(V)).map(({id:q,hash:K})=>({id:q,hash:K}))}async getContent($){let V=await this.raw.getEntries($),[Q]=V.filter((q)=>q.id.endsWith(".content"));if(Q===void 0)throw new Error(`couldn't find contents for hash ${$}`);else return await this.raw.getContent(Q.hash)}async getMetadata($){let V=await this.raw.getEntries($),[Q]=V.filter((q)=>q.id.endsWith(".metadata"));if(Q===void 0)throw new Error(`couldn't find metadata for hash ${$}`);else return await this.raw.getMetadata(Q.hash)}async getPdf($){let V=await this.raw.getEntries($),[Q]=V.filter((q)=>q.id.endsWith(".pdf"));if(Q===void 0)throw new Error(`couldn't find pdf for hash ${$}`);else return await this.raw.getHash(Q.hash)}async getEpub($){let V=await this.raw.getEntries($),[Q]=V.filter((q)=>q.id.endsWith(".epub"));if(Q===void 0)throw new Error(`couldn't find epub for hash ${$}`);else return await this.raw.getHash(Q.hash)}async getDocument($){let V=await this.raw.getEntries($),Q=new _V.default;for(let q of V)Q.file(q.id,this.raw.getHash(q.hash));return Q.generateAsync({type:"uint8array"})}async#Y($,V,Q,{refresh:q,parent:K="",pinned:G=!1,zoomMode:W="bestFit",viewBackgroundFilter:J,textScale:P=1,textAlignment:j="justify",fontName:z="",coverPageNumber:C=-1,authors:I,title:R,publicationDate:x,publisher:S,extraMetadata:g={},lineHeight:y=-1,margins:Z=125,orientation:O="portrait",tags:M}){if(K&&!R6.test(K))throw new n6(K,R6,"parent must be a valid document id");let A=H1(),B=new Date,L={parent:K,pinned:G,lastModified:(+B).toFixed(),createdTime:(+B).toFixed(),type:"DocumentType",visibleName:$,lastOpened:"0",lastOpenedPage:0},T={coverPageNumber:C,documentMetadata:{authors:I,title:R,publicationDate:x,publisher:S},extraMetadata:g,lineHeight:y,margins:Z,orientation:O,fileType:V,formatVersion:1,tags:M?.map((t)=>({name:t,timestamp:+B}))??[],fontName:z,textAlignment:j,textScale:P,zoomMode:W,viewBackgroundFilter:J,originalPageCount:1,pageCount:1,pageTags:[],pages:[H1()],redirectionPageMap:[0],sizeInBytes:Q.length.toFixed()},[[E,f],[b,F],[m,n],[v,c],[u,i]]=await Promise.all([this.raw.putContent(`${A}.content`,T),this.raw.putMetadata(`${A}.metadata`,L),this.raw.putText(`${A}.pagedata`,`
|
|
26
|
+
`),this.raw.putFile(`${A}.${V}`,Q),this.#q(q)]),[[e,d],l]=await Promise.all([this.raw.putEntries(A,[E,b,m,v]),this.raw.getEntries(u)]);l.push(e);let[k,r]=await this.raw.putEntries("root",l);return await Promise.all([f,F,n,c,d,r]),await this.#X(k.hash,i),{id:A,hash:e.hash}}async putPdf($,V,Q={}){return await this.#Y($,"pdf",V,Q)}async putEpub($,V,Q={}){return await this.#Y($,"epub",V,Q)}async createFolder($,{parent:V=""}={},Q=!1){if(V&&!R6.test(V))throw new n6(V,R6,"parent must be a valid document id");let q=H1(),K=new Date,G={tags:[]},W={lastModified:(+K).toFixed(),createdTime:(+K).toFixed(),parent:V,pinned:!1,type:"CollectionType",visibleName:$},[[J,P],[j,z],[C,I]]=await Promise.all([this.raw.putContent(`${q}.content`,G),this.raw.putMetadata(`${q}.metadata`,W),this.#q(Q)]),[[R,x],S]=await Promise.all([this.raw.putEntries(q,[J,j]),this.raw.getEntries(C)]);S.push(R);let[g,y]=await this.raw.putEntries("root",S);return await Promise.all([P,z,x,y]),await this.#X(g.hash,I),{id:q,hash:R.hash}}async uploadEpub($,V,Q={}){return await this.putEpub($,V,Q)}async uploadPdf($,V,Q={}){return await this.putPdf($,V,Q)}async#K($,V,Q){let q=await this.raw.getEntries(V),K=q.findIndex((I)=>I.id.endsWith(".metadata")),G=q[K];if(G===void 0)throw new Error("internal error: couldn't find metadata in entry hash");let W=await this.raw.getMetadata(G.hash);Object.assign(W,Q);let[J,P]=await this.raw.putMetadata(G.id,W);q[K]=J;let[j,z]=await this.raw.putEntries($,q),C=Promise.all([P,z]).then(()=>{});return[j,C]}async#J($,V,Q=!1){let[q,K]=await this.#q(Q),G=await this.raw.getEntries(q),W=G.findIndex((I)=>I.hash===$),J=G[W];if(J===void 0)throw new cV($);let[P,j]=await this.#K(J.id,$,V);G[W]=P;let[z,C]=await this.raw.putEntries("root",G);return await Promise.all([j,C]),await this.#X(z.hash,K),{hash:P.hash}}async move($,V,Q=!1){if(!R6.test(V))throw new n6(V,R6,"parent must be a valid document id");return await this.#J($,{parent:V},Q)}async delete($,V=!1){return await this.move($,"trash",V)}async rename($,V,Q=!1){return await this.#J($,{visibleName:V},Q)}async bulkMove($,V,Q=!1){if(!R6.test(V))throw new n6(V,R6,"parent must be a valid document id");let[q,K]=await this.#q(Q),G=await this.raw.getEntries(q),W=new Set($),J=[],P=[];for(let x of G)(W.has(x.hash)?J:P).push(x);let j=await Promise.all(J.map(({id:x,hash:S})=>this.#K(x,S,{parent:V}))),z=[],C={};for(let[x,[S,g]]of j.entries())P.push(S),z.push(g),C[J[x].hash]=S.hash;let[I,R]=await this.raw.putEntries("root",P);return z.push(R),await Promise.all(z),await this.#X(I.hash,K),{hashes:C}}async bulkDelete($,V=!1){return await this.bulkMove($,"trash",V)}dumpCache(){return this.raw.dumpCache()}async pruneCache($){let[V]=await this.#q($),Q=new Set(this.#Q.keys()),q=[await this.raw.getEntries(V)],K=[];while(q.length){for(let G of q)for(let{hash:W,type:J}of G)if(Q.add(W),J===80000000)K.push(this.raw.getEntries(W));q=await Promise.all(K),K=[]}for(let G of Q)this.#Q.delete(G)}clearCache(){this.raw.clearCache()}}var dY=y2(CV(X0()));async function FJ($,{authHost:V=mV,rawHost:Q=gY,cache:q,maxCacheSize:K=1/0}={}){let G=await fetch(`${V}/token/json/2/user/new`,{method:"POST",headers:{Authorization:`Bearer ${$}`}});if(!G.ok)throw new Error(`couldn't fetch auth token: ${G.statusText}`);let W=await G.text(),J=JSON.parse(q??"{}");if(dY.guard(J)){let P=Object.entries(J),j=K===1/0?new Map(P):new w$(K,P);return new dV(W,Q,j)}else throw new Error("cache was not a valid cache (json string mapping); your cache must be corrupted somehow. Either initialize remarkable without a cache, or fix its format.")}export{FJ as remarkable,ZJ as register,n6 as ValidationError,v$ as ResponseError,cV as HashNotFoundError,N$ as GenerationError};
|