image-exporter 1.2.3 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +32 -3
  2. package/dist/capture/capture-element.d.ts +2 -1
  3. package/dist/capture/capture-element.d.ts.map +1 -1
  4. package/dist/capture/capture.dom.test.d.ts +2 -0
  5. package/dist/capture/capture.dom.test.d.ts.map +1 -0
  6. package/dist/capture/copy-to-clipboard.d.ts +13 -0
  7. package/dist/capture/copy-to-clipboard.d.ts.map +1 -0
  8. package/dist/capture/copy-to-clipboard.dom.test.d.ts +2 -0
  9. package/dist/capture/copy-to-clipboard.dom.test.d.ts.map +1 -0
  10. package/dist/capture/cors-cleanup.dom.test.d.ts +2 -0
  11. package/dist/capture/cors-cleanup.dom.test.d.ts.map +1 -0
  12. package/dist/capture/data-url-to-blob.d.ts +9 -0
  13. package/dist/capture/data-url-to-blob.d.ts.map +1 -0
  14. package/dist/capture/data-url-to-blob.node.test.d.ts +2 -0
  15. package/dist/capture/data-url-to-blob.node.test.d.ts.map +1 -0
  16. package/dist/capture/dedup-consistency.node.test.d.ts +2 -0
  17. package/dist/capture/dedup-consistency.node.test.d.ts.map +1 -0
  18. package/dist/capture/determine-total-elements.d.ts +7 -3
  19. package/dist/capture/determine-total-elements.d.ts.map +1 -1
  20. package/dist/capture/determine-total-elements.dom.test.d.ts +2 -0
  21. package/dist/capture/determine-total-elements.dom.test.d.ts.map +1 -0
  22. package/dist/capture/download-images.d.ts +8 -0
  23. package/dist/capture/download-images.d.ts.map +1 -1
  24. package/dist/capture/get-image-options.dom.test.d.ts +2 -0
  25. package/dist/capture/get-image-options.dom.test.d.ts.map +1 -0
  26. package/dist/capture/handle-filenames.d.ts +5 -6
  27. package/dist/capture/handle-filenames.d.ts.map +1 -1
  28. package/dist/capture/index.d.ts.map +1 -1
  29. package/dist/capture/make-unique.d.ts +14 -0
  30. package/dist/capture/make-unique.d.ts.map +1 -0
  31. package/dist/capture/make-unique.node.test.d.ts +2 -0
  32. package/dist/capture/make-unique.node.test.d.ts.map +1 -0
  33. package/dist/index.browser.js +36 -27
  34. package/dist/index.browser.js.map +21 -74
  35. package/dist/index.cjs +2824 -12771
  36. package/dist/index.cjs.map +21 -74
  37. package/dist/index.d.ts +10 -2
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/index.js +2760 -12726
  40. package/dist/index.js.map +21 -73
  41. package/dist/logger.d.ts +5 -5
  42. package/dist/logger.d.ts.map +1 -1
  43. package/dist/types.d.ts +33 -0
  44. package/dist/types.d.ts.map +1 -1
  45. package/package.json +27 -3
@@ -1,38 +1,47 @@
1
- (()=>{var vX=Object.create;var{getPrototypeOf:xX,defineProperty:b1,getOwnPropertyNames:D4,getOwnPropertyDescriptor:gX}=Object,A4=Object.prototype.hasOwnProperty;var yX=(Q,J,$)=>{$=Q!=null?vX(xX(Q)):{};let X=J||!Q||!Q.__esModule?b1($,"default",{value:Q,enumerable:!0}):$;for(let K of D4(Q))if(!A4.call(X,K))b1(X,K,{get:()=>Q[K],enumerable:!0});return X},C4=new WeakMap,u0=(Q)=>{var J=C4.get(Q),$;if(J)return J;if(J=b1({},"__esModule",{value:!0}),Q&&typeof Q==="object"||typeof Q==="function")D4(Q).map((X)=>!A4.call(J,X)&&b1(J,X,{get:()=>Q[X],enumerable:!($=gX(Q,X))||$.enumerable}));return C4.set(Q,J),J},B0=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports);var R8=(Q,J)=>{for(var $ in J)b1(Q,$,{get:J[$],enumerable:!0,configurable:!0,set:(X)=>J[$]=()=>X})};var R4=(Q,J)=>()=>(Q&&(J=Q(Q=0)),J);var M2={};R8(M2,{transcode:()=>fY,resolveObjectURL:()=>gY,kStringMaxLength:()=>W7,kMaxLength:()=>d1,isUtf8:()=>yY,isAscii:()=>hY,default:()=>_Y,constants:()=>BY,btoa:()=>KY,atob:()=>YY,INSPECT_MAX_BYTES:()=>Z7,File:()=>VY,Buffer:()=>y,Blob:()=>qY});function eK(Q){var J=Q.length;if(J%4>0)throw Error("Invalid string. Length must be a multiple of 4");var $=Q.indexOf("=");if($===-1)$=J;var X=$===J?0:4-$%4;return[$,X]}function QY(Q,J){return(Q+J)*3/4-J}function JY(Q){var J,$=eK(Q),X=$[0],K=$[1],Y=new Uint8Array(QY(X,K)),V=0,q=K>0?X-4:X,U;for(U=0;U<q;U+=4)J=n0[Q.charCodeAt(U)]<<18|n0[Q.charCodeAt(U+1)]<<12|n0[Q.charCodeAt(U+2)]<<6|n0[Q.charCodeAt(U+3)],Y[V++]=J>>16&255,Y[V++]=J>>8&255,Y[V++]=J&255;if(K===2)J=n0[Q.charCodeAt(U)]<<2|n0[Q.charCodeAt(U+1)]>>4,Y[V++]=J&255;if(K===1)J=n0[Q.charCodeAt(U)]<<10|n0[Q.charCodeAt(U+1)]<<4|n0[Q.charCodeAt(U+2)]>>2,Y[V++]=J>>8&255,Y[V++]=J&255;return Y}function $Y(Q){return Y2[Q>>18&63]+Y2[Q>>12&63]+Y2[Q>>6&63]+Y2[Q&63]}function XY(Q,J,$){var X,K=[];for(var Y=J;Y<$;Y+=3)X=(Q[Y]<<16&16711680)+(Q[Y+1]<<8&65280)+(Q[Y+2]&255),K.push($Y(X));return K.join("")}function V7(Q){var J,$=Q.length,X=$%3,K=[],Y=16383;for(var V=0,q=$-X;V<q;V+=Y)K.push(XY(Q,V,V+Y>q?q:V+Y));if(X===1)J=Q[$-1],K.push(Y2[J>>2]+Y2[J<<4&63]+"==");else if(X===2)J=(Q[$-2]<<8)+Q[$-1],K.push(Y2[J>>10]+Y2[J>>4&63]+Y2[J<<2&63]+"=");return K.join("")}function E6(Q,J,$,X,K){var Y,V,q=K*8-X-1,U=(1<<q)-1,G=U>>1,B=-7,j=$?K-1:0,W=$?-1:1,H=Q[J+j];j+=W,Y=H&(1<<-B)-1,H>>=-B,B+=q;for(;B>0;Y=Y*256+Q[J+j],j+=W,B-=8);V=Y&(1<<-B)-1,Y>>=-B,B+=X;for(;B>0;V=V*256+Q[J+j],j+=W,B-=8);if(Y===0)Y=1-G;else if(Y===U)return V?NaN:(H?-1:1)*(1/0);else V=V+Math.pow(2,X),Y=Y-G;return(H?-1:1)*V*Math.pow(2,Y-X)}function z7(Q,J,$,X,K,Y){var V,q,U,G=Y*8-K-1,B=(1<<G)-1,j=B>>1,W=K===23?Math.pow(2,-24)-Math.pow(2,-77):0,H=X?0:Y-1,S=X?1:-1,A=J<0||J===0&&1/J<0?1:0;if(J=Math.abs(J),isNaN(J)||J===1/0)q=isNaN(J)?1:0,V=B;else{if(V=Math.floor(Math.log(J)/Math.LN2),J*(U=Math.pow(2,-V))<1)V--,U*=2;if(V+j>=1)J+=W/U;else J+=W*Math.pow(2,1-j);if(J*U>=2)V++,U/=2;if(V+j>=B)q=0,V=B;else if(V+j>=1)q=(J*U-1)*Math.pow(2,K),V=V+j;else q=J*Math.pow(2,j-1)*Math.pow(2,K),V=0}for(;K>=8;Q[$+H]=q&255,H+=S,q/=256,K-=8);V=V<<K|q,G+=K;for(;G>0;Q[$+H]=V&255,H+=S,V/=256,G-=8);Q[$+H-S]|=A*128}function P2(Q){if(Q>d1)throw RangeError('The value "'+Q+'" is invalid for option "size"');let J=new Uint8Array(Q);return Object.setPrototypeOf(J,y.prototype),J}function u8(Q,J,$){return class extends ${constructor(){super();Object.defineProperty(this,"message",{value:J.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Q}]`,this.stack,delete this.name}get code(){return Q}set code(X){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:X,writable:!0})}toString(){return`${this.name} [${Q}]: ${this.message}`}}}function y(Q,J,$){if(typeof Q==="number"){if(typeof J==="string")throw TypeError('The "string" argument must be of type string. Received type number');return p8(Q)}return H7(Q,J,$)}function H7(Q,J,$){if(typeof Q==="string")return ZY(Q,J);if(ArrayBuffer.isView(Q))return WY(Q);if(Q==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(V2(Q,ArrayBuffer)||Q&&V2(Q.buffer,ArrayBuffer))return _8(Q,J,$);if(typeof SharedArrayBuffer<"u"&&(V2(Q,SharedArrayBuffer)||Q&&V2(Q.buffer,SharedArrayBuffer)))return _8(Q,J,$);if(typeof Q==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let X=Q.valueOf&&Q.valueOf();if(X!=null&&X!==Q)return y.from(X,J,$);let K=HY(Q);if(K)return K;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Q[Symbol.toPrimitive]==="function")return y.from(Q[Symbol.toPrimitive]("string"),J,$);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}function j7(Q){if(typeof Q!=="number")throw TypeError('"size" argument must be of type number');else if(Q<0)throw RangeError('The value "'+Q+'" is invalid for option "size"')}function zY(Q,J,$){if(j7(Q),Q<=0)return P2(Q);if(J!==void 0)return typeof $==="string"?P2(Q).fill(J,$):P2(Q).fill(J);return P2(Q)}function p8(Q){return j7(Q),P2(Q<0?0:c8(Q)|0)}function ZY(Q,J){if(typeof J!=="string"||J==="")J="utf8";if(!y.isEncoding(J))throw TypeError("Unknown encoding: "+J);let $=P7(Q,J)|0,X=P2($),K=X.write(Q,J);if(K!==$)X=X.slice(0,K);return X}function f8(Q){let J=Q.length<0?0:c8(Q.length)|0,$=P2(J);for(let X=0;X<J;X+=1)$[X]=Q[X]&255;return $}function WY(Q){if(V2(Q,Uint8Array)){let J=new Uint8Array(Q);return _8(J.buffer,J.byteOffset,J.byteLength)}return f8(Q)}function _8(Q,J,$){if(J<0||Q.byteLength<J)throw RangeError('"offset" is outside of buffer bounds');if(Q.byteLength<J+($||0))throw RangeError('"length" is outside of buffer bounds');let X;if(J===void 0&&$===void 0)X=new Uint8Array(Q);else if($===void 0)X=new Uint8Array(Q,J);else X=new Uint8Array(Q,J,$);return Object.setPrototypeOf(X,y.prototype),X}function HY(Q){if(y.isBuffer(Q)){let J=c8(Q.length)|0,$=P2(J);if($.length===0)return $;return Q.copy($,0,0,J),$}if(Q.length!==void 0){if(typeof Q.length!=="number"||Number.isNaN(Q.length))return P2(0);return f8(Q)}if(Q.type==="Buffer"&&Array.isArray(Q.data))return f8(Q.data)}function c8(Q){if(Q>=d1)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d1.toString(16)+" bytes");return Q|0}function P7(Q,J){if(y.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||V2(Q,ArrayBuffer))return Q.byteLength;if(typeof Q!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);let $=Q.length,X=arguments.length>2&&arguments[2]===!0;if(!X&&$===0)return 0;let K=!1;for(;;)switch(J){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return b8(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return D7(Q).length;default:if(K)return X?-1:b8(Q).length;J=(""+J).toLowerCase(),K=!0}}function jY(Q,J,$){let X=!1;if(J===void 0||J<0)J=0;if(J>this.length)return"";if($===void 0||$>this.length)$=this.length;if($<=0)return"";if($>>>=0,J>>>=0,$<=J)return"";if(!Q)Q="utf8";while(!0)switch(Q){case"hex":return DY(this,J,$);case"utf8":case"utf-8":return L7(this,J,$);case"ascii":return OY(this,J,$);case"latin1":case"binary":return CY(this,J,$);case"base64":return IY(this,J,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return AY(this,J,$);default:if(X)throw TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),X=!0}}function i2(Q,J,$){let X=Q[J];Q[J]=Q[$],Q[$]=X}function M7(Q,J,$,X,K){if(Q.length===0)return-1;if(typeof $==="string")X=$,$=0;else if($>2147483647)$=2147483647;else if($<-2147483648)$=-2147483648;if($=+$,Number.isNaN($))$=K?0:Q.length-1;if($<0)$=Q.length+$;if($>=Q.length)if(K)return-1;else $=Q.length-1;else if($<0)if(K)$=0;else return-1;if(typeof J==="string")J=y.from(J,X);if(y.isBuffer(J)){if(J.length===0)return-1;return B7(Q,J,$,X,K)}else if(typeof J==="number"){if(J=J&255,typeof Uint8Array.prototype.indexOf==="function")if(K)return Uint8Array.prototype.indexOf.call(Q,J,$);else return Uint8Array.prototype.lastIndexOf.call(Q,J,$);return B7(Q,[J],$,X,K)}throw TypeError("val must be string, number or Buffer")}function B7(Q,J,$,X,K){let Y=1,V=Q.length,q=J.length;if(X!==void 0){if(X=String(X).toLowerCase(),X==="ucs2"||X==="ucs-2"||X==="utf16le"||X==="utf-16le"){if(Q.length<2||J.length<2)return-1;Y=2,V/=2,q/=2,$/=2}}function U(B,j){if(Y===1)return B[j];else return B.readUInt16BE(j*Y)}let G;if(K){let B=-1;for(G=$;G<V;G++)if(U(Q,G)===U(J,B===-1?0:G-B)){if(B===-1)B=G;if(G-B+1===q)return B*Y}else{if(B!==-1)G-=G-B;B=-1}}else{if($+q>V)$=V-q;for(G=$;G>=0;G--){let B=!0;for(let j=0;j<q;j++)if(U(Q,G+j)!==U(J,j)){B=!1;break}if(B)return G}}return-1}function PY(Q,J,$,X){$=Number($)||0;let K=Q.length-$;if(!X)X=K;else if(X=Number(X),X>K)X=K;let Y=J.length;if(X>Y/2)X=Y/2;let V;for(V=0;V<X;++V){let q=parseInt(J.substr(V*2,2),16);if(Number.isNaN(q))return V;Q[$+V]=q}return V}function MY(Q,J,$,X){return S6(b8(J,Q.length-$),Q,$,X)}function LY(Q,J,$,X){return S6(EY(J),Q,$,X)}function FY(Q,J,$,X){return S6(D7(J),Q,$,X)}function wY(Q,J,$,X){return S6(SY(J,Q.length-$),Q,$,X)}function IY(Q,J,$){if(J===0&&$===Q.length)return V7(Q);else return V7(Q.slice(J,$))}function L7(Q,J,$){$=Math.min(Q.length,$);let X=[],K=J;while(K<$){let Y=Q[K],V=null,q=Y>239?4:Y>223?3:Y>191?2:1;if(K+q<=$){let U,G,B,j;switch(q){case 1:if(Y<128)V=Y;break;case 2:if(U=Q[K+1],(U&192)===128){if(j=(Y&31)<<6|U&63,j>127)V=j}break;case 3:if(U=Q[K+1],G=Q[K+2],(U&192)===128&&(G&192)===128){if(j=(Y&15)<<12|(U&63)<<6|G&63,j>2047&&(j<55296||j>57343))V=j}break;case 4:if(U=Q[K+1],G=Q[K+2],B=Q[K+3],(U&192)===128&&(G&192)===128&&(B&192)===128){if(j=(Y&15)<<18|(U&63)<<12|(G&63)<<6|B&63,j>65535&&j<1114112)V=j}}}if(V===null)V=65533,q=1;else if(V>65535)V-=65536,X.push(V>>>10&1023|55296),V=56320|V&1023;X.push(V),K+=q}return NY(X)}function NY(Q){let J=Q.length;if(J<=G7)return String.fromCharCode.apply(String,Q);let $="",X=0;while(X<J)$+=String.fromCharCode.apply(String,Q.slice(X,X+=G7));return $}function OY(Q,J,$){let X="";$=Math.min(Q.length,$);for(let K=J;K<$;++K)X+=String.fromCharCode(Q[K]&127);return X}function CY(Q,J,$){let X="";$=Math.min(Q.length,$);for(let K=J;K<$;++K)X+=String.fromCharCode(Q[K]);return X}function DY(Q,J,$){let X=Q.length;if(!J||J<0)J=0;if(!$||$<0||$>X)$=X;let K="";for(let Y=J;Y<$;++Y)K+=vY[Q[Y]];return K}function AY(Q,J,$){let X=Q.slice(J,$),K="";for(let Y=0;Y<X.length-1;Y+=2)K+=String.fromCharCode(X[Y]+X[Y+1]*256);return K}function T0(Q,J,$){if(Q%1!==0||Q<0)throw RangeError("offset is not uint");if(Q+J>$)throw RangeError("Trying to access beyond buffer length")}function f0(Q,J,$,X,K,Y){if(!y.isBuffer(Q))throw TypeError('"buffer" argument must be a Buffer instance');if(J>K||J<Y)throw RangeError('"value" argument is out of bounds');if($+X>Q.length)throw RangeError("Index out of range")}function F7(Q,J,$,X,K){C7(J,X,K,Q,$,7);let Y=Number(J&BigInt(4294967295));Q[$++]=Y,Y=Y>>8,Q[$++]=Y,Y=Y>>8,Q[$++]=Y,Y=Y>>8,Q[$++]=Y;let V=Number(J>>BigInt(32)&BigInt(4294967295));return Q[$++]=V,V=V>>8,Q[$++]=V,V=V>>8,Q[$++]=V,V=V>>8,Q[$++]=V,$}function w7(Q,J,$,X,K){C7(J,X,K,Q,$,7);let Y=Number(J&BigInt(4294967295));Q[$+7]=Y,Y=Y>>8,Q[$+6]=Y,Y=Y>>8,Q[$+5]=Y,Y=Y>>8,Q[$+4]=Y;let V=Number(J>>BigInt(32)&BigInt(4294967295));return Q[$+3]=V,V=V>>8,Q[$+2]=V,V=V>>8,Q[$+1]=V,V=V>>8,Q[$]=V,$+8}function I7(Q,J,$,X,K,Y){if($+X>Q.length)throw RangeError("Index out of range");if($<0)throw RangeError("Index out of range")}function N7(Q,J,$,X,K){if(J=+J,$=$>>>0,!K)I7(Q,J,$,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return z7(Q,J,$,X,23,4),$+4}function O7(Q,J,$,X,K){if(J=+J,$=$>>>0,!K)I7(Q,J,$,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return z7(Q,J,$,X,52,8),$+8}function U7(Q){let J="",$=Q.length,X=Q[0]==="-"?1:0;for(;$>=X+4;$-=3)J=`_${Q.slice($-3,$)}${J}`;return`${Q.slice(0,$)}${J}`}function RY(Q,J,$){if(H1(J,"offset"),Q[J]===void 0||Q[J+$]===void 0)l1(J,Q.length-($+1))}function C7(Q,J,$,X,K,Y){if(Q>$||Q<J){let V=typeof J==="bigint"?"n":"",q;if(Y>3)if(J===0||J===BigInt(0))q=`>= 0${V} and < 2${V} ** ${(Y+1)*8}${V}`;else q=`>= -(2${V} ** ${(Y+1)*8-1}${V}) and < 2 ** ${(Y+1)*8-1}${V}`;else q=`>= ${J}${V} and <= ${$}${V}`;throw new h8("value",q,Q)}RY(X,K,Y)}function H1(Q,J){if(typeof Q!=="number")throw new UY(J,"number",Q)}function l1(Q,J,$){if(Math.floor(Q)!==Q)throw H1(Q,$),new h8($||"offset","an integer",Q);if(J<0)throw new GY;throw new h8($||"offset",`>= ${$?1:0} and <= ${J}`,Q)}function kY(Q){if(Q=Q.split("=")[0],Q=Q.trim().replace(TY,""),Q.length<2)return"";while(Q.length%4!==0)Q=Q+"=";return Q}function b8(Q,J){J=J||1/0;let $,X=Q.length,K=null,Y=[];for(let V=0;V<X;++V){if($=Q.charCodeAt(V),$>55295&&$<57344){if(!K){if($>56319){if((J-=3)>-1)Y.push(239,191,189);continue}else if(V+1===X){if((J-=3)>-1)Y.push(239,191,189);continue}K=$;continue}if($<56320){if((J-=3)>-1)Y.push(239,191,189);K=$;continue}$=(K-55296<<10|$-56320)+65536}else if(K){if((J-=3)>-1)Y.push(239,191,189)}if(K=null,$<128){if((J-=1)<0)break;Y.push($)}else if($<2048){if((J-=2)<0)break;Y.push($>>6|192,$&63|128)}else if($<65536){if((J-=3)<0)break;Y.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((J-=4)<0)break;Y.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw Error("Invalid code point")}return Y}function EY(Q){let J=[];for(let $=0;$<Q.length;++$)J.push(Q.charCodeAt($)&255);return J}function SY(Q,J){let $,X,K,Y=[];for(let V=0;V<Q.length;++V){if((J-=2)<0)break;$=Q.charCodeAt(V),X=$>>8,K=$%256,Y.push(K),Y.push(X)}return Y}function D7(Q){return JY(kY(Q))}function S6(Q,J,$,X){let K;for(K=0;K<X;++K){if(K+$>=J.length||K>=Q.length)break;J[K+$]=Q[K]}return K}function V2(Q,J){return Q instanceof J||Q!=null&&Q.constructor!=null&&Q.constructor.name!=null&&Q.constructor.name===J.name}function R2(Q){return typeof BigInt>"u"?xY:Q}function xY(){throw Error("BigInt not supported")}function m8(Q){return()=>{throw Error(Q+" is not implemented for node:buffer browser polyfill")}}var Y2,n0,y8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l2,Y7,q7,Z7=50,d1=2147483647,W7=536870888,KY,YY,VY,qY,BY,GY,UY,h8,G7=4096,TY,vY,gY,yY,hY=(Q)=>{for(let J of Q)if(J.charCodeAt(0)>127)return!1;return!0},fY,_Y;var L2=R4(()=>{Y2=[],n0=[];for(l2=0,Y7=y8.length;l2<Y7;++l2)Y2[l2]=y8[l2],n0[y8.charCodeAt(l2)]=l2;n0[45]=62;n0[95]=63;q7=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,KY=globalThis.btoa,YY=globalThis.atob,VY=globalThis.File,qY=globalThis.Blob,BY={MAX_LENGTH:d1,MAX_STRING_LENGTH:W7};GY=u8("ERR_BUFFER_OUT_OF_BOUNDS",function(Q){if(Q)return`${Q} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),UY=u8("ERR_INVALID_ARG_TYPE",function(Q,J){return`The "${Q}" argument must be of type number. Received type ${typeof J}`},TypeError),h8=u8("ERR_OUT_OF_RANGE",function(Q,J,$){let X=`The value of "${Q}" is out of range.`,K=$;if(Number.isInteger($)&&Math.abs($)>4294967296)K=U7(String($));else if(typeof $==="bigint"){if(K=String($),$>BigInt(2)**BigInt(32)||$<-(BigInt(2)**BigInt(32)))K=U7(K);K+="n"}return X+=` It must be ${J}. Received ${K}`,X},RangeError);Object.defineProperty(y.prototype,"parent",{enumerable:!0,get:function(){if(!y.isBuffer(this))return;return this.buffer}});Object.defineProperty(y.prototype,"offset",{enumerable:!0,get:function(){if(!y.isBuffer(this))return;return this.byteOffset}});y.poolSize=8192;y.from=function(Q,J,$){return H7(Q,J,$)};Object.setPrototypeOf(y.prototype,Uint8Array.prototype);Object.setPrototypeOf(y,Uint8Array);y.alloc=function(Q,J,$){return zY(Q,J,$)};y.allocUnsafe=function(Q){return p8(Q)};y.allocUnsafeSlow=function(Q){return p8(Q)};y.isBuffer=function(Q){return Q!=null&&Q._isBuffer===!0&&Q!==y.prototype};y.compare=function(Q,J){if(V2(Q,Uint8Array))Q=y.from(Q,Q.offset,Q.byteLength);if(V2(J,Uint8Array))J=y.from(J,J.offset,J.byteLength);if(!y.isBuffer(Q)||!y.isBuffer(J))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Q===J)return 0;let $=Q.length,X=J.length;for(let K=0,Y=Math.min($,X);K<Y;++K)if(Q[K]!==J[K]){$=Q[K],X=J[K];break}if($<X)return-1;if(X<$)return 1;return 0};y.isEncoding=function(Q){switch(String(Q).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}};y.concat=function(Q,J){if(!Array.isArray(Q))throw TypeError('"list" argument must be an Array of Buffers');if(Q.length===0)return y.alloc(0);let $;if(J===void 0){J=0;for($=0;$<Q.length;++$)J+=Q[$].length}let X=y.allocUnsafe(J),K=0;for($=0;$<Q.length;++$){let Y=Q[$];if(V2(Y,Uint8Array))if(K+Y.length>X.length){if(!y.isBuffer(Y))Y=y.from(Y);Y.copy(X,K)}else Uint8Array.prototype.set.call(X,Y,K);else if(!y.isBuffer(Y))throw TypeError('"list" argument must be an Array of Buffers');else Y.copy(X,K);K+=Y.length}return X};y.byteLength=P7;y.prototype._isBuffer=!0;y.prototype.swap16=function(){let Q=this.length;if(Q%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let J=0;J<Q;J+=2)i2(this,J,J+1);return this};y.prototype.swap32=function(){let Q=this.length;if(Q%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let J=0;J<Q;J+=4)i2(this,J,J+3),i2(this,J+1,J+2);return this};y.prototype.swap64=function(){let Q=this.length;if(Q%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let J=0;J<Q;J+=8)i2(this,J,J+7),i2(this,J+1,J+6),i2(this,J+2,J+5),i2(this,J+3,J+4);return this};y.prototype.toString=function(){let Q=this.length;if(Q===0)return"";if(arguments.length===0)return L7(this,0,Q);return jY.apply(this,arguments)};y.prototype.toLocaleString=y.prototype.toString;y.prototype.equals=function(Q){if(!y.isBuffer(Q))throw TypeError("Argument must be a Buffer");if(this===Q)return!0;return y.compare(this,Q)===0};y.prototype.inspect=function(){let Q="",J=Z7;if(Q=this.toString("hex",0,J).replace(/(.{2})/g,"$1 ").trim(),this.length>J)Q+=" ... ";return"<Buffer "+Q+">"};if(q7)y.prototype[q7]=y.prototype.inspect;y.prototype.compare=function(Q,J,$,X,K){if(V2(Q,Uint8Array))Q=y.from(Q,Q.offset,Q.byteLength);if(!y.isBuffer(Q))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Q);if(J===void 0)J=0;if($===void 0)$=Q?Q.length:0;if(X===void 0)X=0;if(K===void 0)K=this.length;if(J<0||$>Q.length||X<0||K>this.length)throw RangeError("out of range index");if(X>=K&&J>=$)return 0;if(X>=K)return-1;if(J>=$)return 1;if(J>>>=0,$>>>=0,X>>>=0,K>>>=0,this===Q)return 0;let Y=K-X,V=$-J,q=Math.min(Y,V),U=this.slice(X,K),G=Q.slice(J,$);for(let B=0;B<q;++B)if(U[B]!==G[B]){Y=U[B],V=G[B];break}if(Y<V)return-1;if(V<Y)return 1;return 0};y.prototype.includes=function(Q,J,$){return this.indexOf(Q,J,$)!==-1};y.prototype.indexOf=function(Q,J,$){return M7(this,Q,J,$,!0)};y.prototype.lastIndexOf=function(Q,J,$){return M7(this,Q,J,$,!1)};y.prototype.write=function(Q,J,$,X){if(J===void 0)X="utf8",$=this.length,J=0;else if($===void 0&&typeof J==="string")X=J,$=this.length,J=0;else if(isFinite(J))if(J=J>>>0,isFinite($)){if($=$>>>0,X===void 0)X="utf8"}else X=$,$=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let K=this.length-J;if($===void 0||$>K)$=K;if(Q.length>0&&($<0||J<0)||J>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!X)X="utf8";let Y=!1;for(;;)switch(X){case"hex":return PY(this,Q,J,$);case"utf8":case"utf-8":return MY(this,Q,J,$);case"ascii":case"latin1":case"binary":return LY(this,Q,J,$);case"base64":return FY(this,Q,J,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wY(this,Q,J,$);default:if(Y)throw TypeError("Unknown encoding: "+X);X=(""+X).toLowerCase(),Y=!0}};y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};y.prototype.slice=function(Q,J){let $=this.length;if(Q=~~Q,J=J===void 0?$:~~J,Q<0){if(Q+=$,Q<0)Q=0}else if(Q>$)Q=$;if(J<0){if(J+=$,J<0)J=0}else if(J>$)J=$;if(J<Q)J=Q;let X=this.subarray(Q,J);return Object.setPrototypeOf(X,y.prototype),X};y.prototype.readUintLE=y.prototype.readUIntLE=function(Q,J,$){if(Q=Q>>>0,J=J>>>0,!$)T0(Q,J,this.length);let X=this[Q],K=1,Y=0;while(++Y<J&&(K*=256))X+=this[Q+Y]*K;return X};y.prototype.readUintBE=y.prototype.readUIntBE=function(Q,J,$){if(Q=Q>>>0,J=J>>>0,!$)T0(Q,J,this.length);let X=this[Q+--J],K=1;while(J>0&&(K*=256))X+=this[Q+--J]*K;return X};y.prototype.readUint8=y.prototype.readUInt8=function(Q,J){if(Q=Q>>>0,!J)T0(Q,1,this.length);return this[Q]};y.prototype.readUint16LE=y.prototype.readUInt16LE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,2,this.length);return this[Q]|this[Q+1]<<8};y.prototype.readUint16BE=y.prototype.readUInt16BE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,2,this.length);return this[Q]<<8|this[Q+1]};y.prototype.readUint32LE=y.prototype.readUInt32LE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,4,this.length);return(this[Q]|this[Q+1]<<8|this[Q+2]<<16)+this[Q+3]*16777216};y.prototype.readUint32BE=y.prototype.readUInt32BE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,4,this.length);return this[Q]*16777216+(this[Q+1]<<16|this[Q+2]<<8|this[Q+3])};y.prototype.readBigUInt64LE=R2(function(Q){Q=Q>>>0,H1(Q,"offset");let J=this[Q],$=this[Q+7];if(J===void 0||$===void 0)l1(Q,this.length-8);let X=J+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216,K=this[++Q]+this[++Q]*256+this[++Q]*65536+$*16777216;return BigInt(X)+(BigInt(K)<<BigInt(32))});y.prototype.readBigUInt64BE=R2(function(Q){Q=Q>>>0,H1(Q,"offset");let J=this[Q],$=this[Q+7];if(J===void 0||$===void 0)l1(Q,this.length-8);let X=J*16777216+this[++Q]*65536+this[++Q]*256+this[++Q],K=this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+$;return(BigInt(X)<<BigInt(32))+BigInt(K)});y.prototype.readIntLE=function(Q,J,$){if(Q=Q>>>0,J=J>>>0,!$)T0(Q,J,this.length);let X=this[Q],K=1,Y=0;while(++Y<J&&(K*=256))X+=this[Q+Y]*K;if(K*=128,X>=K)X-=Math.pow(2,8*J);return X};y.prototype.readIntBE=function(Q,J,$){if(Q=Q>>>0,J=J>>>0,!$)T0(Q,J,this.length);let X=J,K=1,Y=this[Q+--X];while(X>0&&(K*=256))Y+=this[Q+--X]*K;if(K*=128,Y>=K)Y-=Math.pow(2,8*J);return Y};y.prototype.readInt8=function(Q,J){if(Q=Q>>>0,!J)T0(Q,1,this.length);if(!(this[Q]&128))return this[Q];return(255-this[Q]+1)*-1};y.prototype.readInt16LE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,2,this.length);let $=this[Q]|this[Q+1]<<8;return $&32768?$|4294901760:$};y.prototype.readInt16BE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,2,this.length);let $=this[Q+1]|this[Q]<<8;return $&32768?$|4294901760:$};y.prototype.readInt32LE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,4,this.length);return this[Q]|this[Q+1]<<8|this[Q+2]<<16|this[Q+3]<<24};y.prototype.readInt32BE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,4,this.length);return this[Q]<<24|this[Q+1]<<16|this[Q+2]<<8|this[Q+3]};y.prototype.readBigInt64LE=R2(function(Q){Q=Q>>>0,H1(Q,"offset");let J=this[Q],$=this[Q+7];if(J===void 0||$===void 0)l1(Q,this.length-8);let X=this[Q+4]+this[Q+5]*256+this[Q+6]*65536+($<<24);return(BigInt(X)<<BigInt(32))+BigInt(J+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216)});y.prototype.readBigInt64BE=R2(function(Q){Q=Q>>>0,H1(Q,"offset");let J=this[Q],$=this[Q+7];if(J===void 0||$===void 0)l1(Q,this.length-8);let X=(J<<24)+this[++Q]*65536+this[++Q]*256+this[++Q];return(BigInt(X)<<BigInt(32))+BigInt(this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+$)});y.prototype.readFloatLE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,4,this.length);return E6(this,Q,!0,23,4)};y.prototype.readFloatBE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,4,this.length);return E6(this,Q,!1,23,4)};y.prototype.readDoubleLE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,8,this.length);return E6(this,Q,!0,52,8)};y.prototype.readDoubleBE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,8,this.length);return E6(this,Q,!1,52,8)};y.prototype.writeUintLE=y.prototype.writeUIntLE=function(Q,J,$,X){if(Q=+Q,J=J>>>0,$=$>>>0,!X){let V=Math.pow(2,8*$)-1;f0(this,Q,J,$,V,0)}let K=1,Y=0;this[J]=Q&255;while(++Y<$&&(K*=256))this[J+Y]=Q/K&255;return J+$};y.prototype.writeUintBE=y.prototype.writeUIntBE=function(Q,J,$,X){if(Q=+Q,J=J>>>0,$=$>>>0,!X){let V=Math.pow(2,8*$)-1;f0(this,Q,J,$,V,0)}let K=$-1,Y=1;this[J+K]=Q&255;while(--K>=0&&(Y*=256))this[J+K]=Q/Y&255;return J+$};y.prototype.writeUint8=y.prototype.writeUInt8=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,1,255,0);return this[J]=Q&255,J+1};y.prototype.writeUint16LE=y.prototype.writeUInt16LE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,2,65535,0);return this[J]=Q&255,this[J+1]=Q>>>8,J+2};y.prototype.writeUint16BE=y.prototype.writeUInt16BE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,2,65535,0);return this[J]=Q>>>8,this[J+1]=Q&255,J+2};y.prototype.writeUint32LE=y.prototype.writeUInt32LE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,4,4294967295,0);return this[J+3]=Q>>>24,this[J+2]=Q>>>16,this[J+1]=Q>>>8,this[J]=Q&255,J+4};y.prototype.writeUint32BE=y.prototype.writeUInt32BE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,4,4294967295,0);return this[J]=Q>>>24,this[J+1]=Q>>>16,this[J+2]=Q>>>8,this[J+3]=Q&255,J+4};y.prototype.writeBigUInt64LE=R2(function(Q,J=0){return F7(this,Q,J,BigInt(0),BigInt("0xffffffffffffffff"))});y.prototype.writeBigUInt64BE=R2(function(Q,J=0){return w7(this,Q,J,BigInt(0),BigInt("0xffffffffffffffff"))});y.prototype.writeIntLE=function(Q,J,$,X){if(Q=+Q,J=J>>>0,!X){let q=Math.pow(2,8*$-1);f0(this,Q,J,$,q-1,-q)}let K=0,Y=1,V=0;this[J]=Q&255;while(++K<$&&(Y*=256)){if(Q<0&&V===0&&this[J+K-1]!==0)V=1;this[J+K]=(Q/Y>>0)-V&255}return J+$};y.prototype.writeIntBE=function(Q,J,$,X){if(Q=+Q,J=J>>>0,!X){let q=Math.pow(2,8*$-1);f0(this,Q,J,$,q-1,-q)}let K=$-1,Y=1,V=0;this[J+K]=Q&255;while(--K>=0&&(Y*=256)){if(Q<0&&V===0&&this[J+K+1]!==0)V=1;this[J+K]=(Q/Y>>0)-V&255}return J+$};y.prototype.writeInt8=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,1,127,-128);if(Q<0)Q=255+Q+1;return this[J]=Q&255,J+1};y.prototype.writeInt16LE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,2,32767,-32768);return this[J]=Q&255,this[J+1]=Q>>>8,J+2};y.prototype.writeInt16BE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,2,32767,-32768);return this[J]=Q>>>8,this[J+1]=Q&255,J+2};y.prototype.writeInt32LE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,4,2147483647,-2147483648);return this[J]=Q&255,this[J+1]=Q>>>8,this[J+2]=Q>>>16,this[J+3]=Q>>>24,J+4};y.prototype.writeInt32BE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,4,2147483647,-2147483648);if(Q<0)Q=4294967295+Q+1;return this[J]=Q>>>24,this[J+1]=Q>>>16,this[J+2]=Q>>>8,this[J+3]=Q&255,J+4};y.prototype.writeBigInt64LE=R2(function(Q,J=0){return F7(this,Q,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});y.prototype.writeBigInt64BE=R2(function(Q,J=0){return w7(this,Q,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});y.prototype.writeFloatLE=function(Q,J,$){return N7(this,Q,J,!0,$)};y.prototype.writeFloatBE=function(Q,J,$){return N7(this,Q,J,!1,$)};y.prototype.writeDoubleLE=function(Q,J,$){return O7(this,Q,J,!0,$)};y.prototype.writeDoubleBE=function(Q,J,$){return O7(this,Q,J,!1,$)};y.prototype.copy=function(Q,J,$,X){if(!y.isBuffer(Q))throw TypeError("argument should be a Buffer");if(!$)$=0;if(!X&&X!==0)X=this.length;if(J>=Q.length)J=Q.length;if(!J)J=0;if(X>0&&X<$)X=$;if(X===$)return 0;if(Q.length===0||this.length===0)return 0;if(J<0)throw RangeError("targetStart out of bounds");if($<0||$>=this.length)throw RangeError("Index out of range");if(X<0)throw RangeError("sourceEnd out of bounds");if(X>this.length)X=this.length;if(Q.length-J<X-$)X=Q.length-J+$;let K=X-$;if(this===Q&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(J,$,X);else Uint8Array.prototype.set.call(Q,this.subarray($,X),J);return K};y.prototype.fill=function(Q,J,$,X){if(typeof Q==="string"){if(typeof J==="string")X=J,J=0,$=this.length;else if(typeof $==="string")X=$,$=this.length;if(X!==void 0&&typeof X!=="string")throw TypeError("encoding must be a string");if(typeof X==="string"&&!y.isEncoding(X))throw TypeError("Unknown encoding: "+X);if(Q.length===1){let Y=Q.charCodeAt(0);if(X==="utf8"&&Y<128||X==="latin1")Q=Y}}else if(typeof Q==="number")Q=Q&255;else if(typeof Q==="boolean")Q=Number(Q);if(J<0||this.length<J||this.length<$)throw RangeError("Out of range index");if($<=J)return this;if(J=J>>>0,$=$===void 0?this.length:$>>>0,!Q)Q=0;let K;if(typeof Q==="number")for(K=J;K<$;++K)this[K]=Q;else{let Y=y.isBuffer(Q)?Q:y.from(Q,X),V=Y.length;if(V===0)throw TypeError('The value "'+Q+'" is invalid for argument "value"');for(K=0;K<$-J;++K)this[K+J]=Y[K%V]}return this};TY=/[^+/0-9A-Za-z-_]/g;vY=function(){let Q=Array(256);for(let J=0;J<16;++J){let $=J*16;for(let X=0;X<16;++X)Q[$+X]="0123456789abcdef"[J]+"0123456789abcdef"[X]}return Q}();gY=m8("resolveObjectURL"),yY=m8("isUtf8"),fY=m8("transcode"),_Y=y});var n1={};R8(n1,{setMaxListeners:()=>h7,once:()=>g7,listenerCount:()=>f7,init:()=>T2,getMaxListeners:()=>b7,getEventListeners:()=>y7,default:()=>nY,captureRejectionSymbol:()=>E7,addAbortListener:()=>u7,EventEmitter:()=>T2});function S7(Q,J){var{_events:$}=Q;if(J[0]??=Error("Unhandled error."),!$)throw J[0];var X=$[k7];if(X)for(var K of R7.call(X))K.apply(Q,J);var Y=$.error;if(!Y)throw J[0];for(var K of R7.call(Y))K.apply(Q,J);return!0}function pY(Q,J,$,X){J.then(void 0,function(K){queueMicrotask(()=>cY(Q,K,$,X))})}function cY(Q,J,$,X){if(typeof Q[A7]==="function")Q[A7](J,$,...X);else try{Q[n2]=!1,Q.emit("error",J)}finally{Q[n2]=!0}}function v7(Q,J,$){$.warned=!0;let X=Error(`Possible EventEmitter memory leak detected. ${$.length} ${String(J)} listeners added to [${Q.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);X.name="MaxListenersExceededWarning",X.emitter=Q,X.type=J,X.count=$.length,console.warn(X)}function x7(Q,J,...$){this.removeListener(Q,J),J.apply(this,$)}function g7(Q,J,$){var X=$?.signal;if(_7(X,"options.signal"),X?.aborted)throw new d8(void 0,{cause:X?.reason});let{resolve:K,reject:Y,promise:V}=$newPromiseCapability(Promise),q=(B)=>{if(Q.removeListener(J,U),X!=null)v6(X,"abort",G);Y(B)},U=(...B)=>{if(typeof Q.removeListener==="function")Q.removeListener("error",q);if(X!=null)v6(X,"abort",G);K(B)};if(T7(Q,J,U,{once:!0}),J!=="error"&&typeof Q.once==="function")Q.once("error",q);function G(){v6(Q,J,U),v6(Q,"error",q),Y(new d8(void 0,{cause:X?.reason}))}if(X!=null)T7(X,"abort",G,{once:!0});return V}function y7(Q,J){return Q.listeners(J)}function h7(Q,...J){i8(Q,"setMaxListeners",0);var $;if(J&&($=J.length))for(let X=0;X<$;X++)J[X].setMaxListeners(Q);else r2=Q}function f7(Q,J){return Q.listenerCount(J)}function v6(Q,J,$,X){if(typeof Q.removeListener==="function")Q.removeListener(J,$);else Q.removeEventListener(J,$,X)}function T7(Q,J,$,X){if(typeof Q.on==="function")if(X.once)Q.once(J,$);else Q.on(J,$);else Q.addEventListener(J,$,X)}function j1(Q,J,$){let X=TypeError(`The "${Q}" argument must be of type ${J}. Received ${$}`);return X.code="ERR_INVALID_ARG_TYPE",X}function lY(Q,J,$){let X=RangeError(`The "${Q}" argument is out of range. It must be ${J}. Received ${$}`);return X.code="ERR_OUT_OF_RANGE",X}function _7(Q,J){if(Q!==void 0&&(Q===null||typeof Q!=="object"||!("aborted"in Q)))throw j1(J,"AbortSignal",Q)}function i8(Q,J,$,X){if(typeof Q!=="number")throw j1(J,"number",Q);if($!=null&&Q<$||X!=null&&Q>X||($!=null||X!=null)&&Number.isNaN(Q))throw lY(J,`${$!=null?`>= ${$}`:""}${$!=null&&X!=null?" && ":""}${X!=null?`<= ${X}`:""}`,Q)}function i1(Q){if(typeof Q!=="function")throw TypeError("The listener must be a function")}function iY(Q,J){if(typeof Q!=="boolean")throw j1(J,"boolean",Q)}function b7(Q){return Q?._maxListeners??r2}function u7(Q,J){if(Q===void 0)throw j1("signal","AbortSignal",Q);if(_7(Q,"signal"),typeof J!=="function")throw j1("listener","function",J);let $;if(Q.aborted)queueMicrotask(()=>J());else Q.addEventListener("abort",J,{__proto__:null,once:!0}),$=()=>{Q.removeEventListener("abort",J)};return{__proto__:null,[Symbol.dispose](){$?.()}}}var l8,n2,k7,bY,uY,A7,E7,R7,r2=10,T2=function(Q){if(this._events===void 0||this._events===this.__proto__._events)this._events={__proto__:null},this._eventsCount=0;if(this._maxListeners??=void 0,this[n2]=Q?.captureRejections?Boolean(Q?.captureRejections):w0[n2])this.emit=dY},w0,mY=function(Q,...J){if(Q==="error")return S7(this,J);var{_events:$}=this;if($===void 0)return!1;var X=$[Q];if(X===void 0)return!1;let K=X.length>1?X.slice():X;for(let Y=0,{length:V}=K;Y<V;Y++){let q=K[Y];switch(J.length){case 0:q.call(this);break;case 1:q.call(this,J[0]);break;case 2:q.call(this,J[0],J[1]);break;case 3:q.call(this,J[0],J[1],J[2]);break;default:q.apply(this,J);break}}return!0},dY=function(Q,...J){if(Q==="error")return S7(this,J);var{_events:$}=this;if($===void 0)return!1;var X=$[Q];if(X===void 0)return!1;let K=X.length>1?X.slice():X;for(let Y=0,{length:V}=K;Y<V;Y++){let q=K[Y],U;switch(J.length){case 0:U=q.call(this);break;case 1:U=q.call(this,J[0]);break;case 2:U=q.call(this,J[0],J[1]);break;case 3:U=q.call(this,J[0],J[1],J[2]);break;default:U=q.apply(this,J);break}if(U!==void 0&&typeof U?.then==="function"&&U.then===Promise.prototype.then)pY(this,U,Q,J)}return!0},d8,nY;var r1=R4(()=>{l8=Symbol.for,n2=Symbol("kCapture"),k7=l8("events.errorMonitor"),bY=Symbol("events.maxEventTargetListeners"),uY=Symbol("events.maxEventTargetListenersWarned"),A7=l8("nodejs.rejection"),E7=l8("nodejs.rejection"),R7=Array.prototype.slice,w0=T2.prototype={};w0._events=void 0;w0._eventsCount=0;w0._maxListeners=void 0;w0.setMaxListeners=function(Q){return i8(Q,"setMaxListeners",0),this._maxListeners=Q,this};w0.constructor=T2;w0.getMaxListeners=function(){return this?._maxListeners??r2};w0.emit=mY;w0.addListener=function(Q,J){i1(J);var $=this._events;if(!$)$=this._events={__proto__:null},this._eventsCount=0;else if($.newListener)this.emit("newListener",Q,J.listener??J);var X=$[Q];if(!X)$[Q]=[J],this._eventsCount++;else{X.push(J);var K=this._maxListeners??r2;if(K>0&&X.length>K&&!X.warned)v7(this,Q,X)}return this};w0.on=w0.addListener;w0.prependListener=function(Q,J){i1(J);var $=this._events;if(!$)$=this._events={__proto__:null},this._eventsCount=0;else if($.newListener)this.emit("newListener",Q,J.listener??J);var X=$[Q];if(!X)$[Q]=[J],this._eventsCount++;else{X.unshift(J);var K=this._maxListeners??r2;if(K>0&&X.length>K&&!X.warned)v7(this,Q,X)}return this};w0.once=function(Q,J){i1(J);let $=x7.bind(this,Q,J);return $.listener=J,this.addListener(Q,$),this};w0.prependOnceListener=function(Q,J){i1(J);let $=x7.bind(this,Q,J);return $.listener=J,this.prependListener(Q,$),this};w0.removeListener=function(Q,J){i1(J);var{_events:$}=this;if(!$)return this;var X=$[Q];if(!X)return this;var K=X.length;let Y=-1;for(let V=K-1;V>=0;V--)if(X[V]===J||X[V].listener===J){Y=V;break}if(Y<0)return this;if(Y===0)X.shift();else X.splice(Y,1);if(X.length===0)delete $[Q],this._eventsCount--;return this};w0.off=w0.removeListener;w0.removeAllListeners=function(Q){var{_events:J}=this;if(Q&&J){if(J[Q])delete J[Q],this._eventsCount--}else this._events={__proto__:null};return this};w0.listeners=function(Q){var{_events:J}=this;if(!J)return[];var $=J[Q];if(!$)return[];return $.map((X)=>X.listener??X)};w0.rawListeners=function(Q){var{_events:J}=this;if(!J)return[];var $=J[Q];if(!$)return[];return $.slice()};w0.listenerCount=function(Q){var{_events:J}=this;if(!J)return 0;return J[Q]?.length??0};w0.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};w0[n2]=!1;d8=class d8 extends Error{constructor(Q="The operation was aborted",J=void 0){if(J!==void 0&&typeof J!=="object")throw j1("options","Object",J);super(Q,J);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(T2,{captureRejections:{get(){return w0[n2]},set(Q){iY(Q,"EventEmitter.captureRejections"),w0[n2]=Q},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>{return r2},set:(Q)=>{i8(Q,"defaultMaxListeners",0),r2=Q}},kMaxEventTargetListeners:{value:bY,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:uY,enumerable:!1,configurable:!1,writable:!1}});Object.assign(T2,{once:g7,getEventListeners:y7,getMaxListeners:b7,setMaxListeners:h7,EventEmitter:T2,usingDomains:!1,captureRejectionSymbol:E7,errorMonitor:k7,addAbortListener:u7,init:T2,listenerCount:f7});nY=T2});var a8=B0((TB,r7)=>{var M0=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports),N0=M0((Q,J)=>{class $ extends Error{constructor(X){if(!Array.isArray(X))throw TypeError(`Expected input to be an Array, got ${typeof X}`);let K="";for(let Y=0;Y<X.length;Y++)K+=` ${X[Y].stack}
2
- `;super(K);this.name="AggregateError",this.errors=X}}J.exports={AggregateError:$,ArrayIsArray(X){return Array.isArray(X)},ArrayPrototypeIncludes(X,K){return X.includes(K)},ArrayPrototypeIndexOf(X,K){return X.indexOf(K)},ArrayPrototypeJoin(X,K){return X.join(K)},ArrayPrototypeMap(X,K){return X.map(K)},ArrayPrototypePop(X,K){return X.pop(K)},ArrayPrototypePush(X,K){return X.push(K)},ArrayPrototypeSlice(X,K,Y){return X.slice(K,Y)},Error,FunctionPrototypeCall(X,K,...Y){return X.call(K,...Y)},FunctionPrototypeSymbolHasInstance(X,K){return Function.prototype[Symbol.hasInstance].call(X,K)},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(X,K){return Object.defineProperties(X,K)},ObjectDefineProperty(X,K,Y){return Object.defineProperty(X,K,Y)},ObjectGetOwnPropertyDescriptor(X,K){return Object.getOwnPropertyDescriptor(X,K)},ObjectKeys(X){return Object.keys(X)},ObjectSetPrototypeOf(X,K){return Object.setPrototypeOf(X,K)},Promise,PromisePrototypeCatch(X,K){return X.catch(K)},PromisePrototypeThen(X,K,Y){return X.then(K,Y)},PromiseReject(X){return Promise.reject(X)},PromiseResolve(X){return Promise.resolve(X)},ReflectApply:Reflect.apply,RegExpPrototypeTest(X,K){return X.test(K)},SafeSet:Set,String,StringPrototypeSlice(X,K,Y){return X.slice(K,Y)},StringPrototypeToLowerCase(X){return X.toLowerCase()},StringPrototypeToUpperCase(X){return X.toUpperCase()},StringPrototypeTrim(X){return X.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(X,K,Y){return X.set(K,Y)},Boolean,Uint8Array}}),p7=M0((Q,J)=>{J.exports={format($,...X){return $.replace(/%([sdifj])/g,function(...[K,Y]){let V=X.shift();if(Y==="f")return V.toFixed(6);else if(Y==="j")return JSON.stringify(V);else if(Y==="s"&&typeof V==="object")return`${V.constructor!==Object?V.constructor.name:""} {}`.trim();else return V.toString()})},inspect($){switch(typeof $){case"string":if($.includes("'")){if(!$.includes('"'))return`"${$}"`;else if(!$.includes("`")&&!$.includes("${"))return`\`${$}\``}return`'${$}'`;case"number":if(isNaN($))return"NaN";else if(Object.is($,-0))return String($);return $;case"bigint":return`${String($)}n`;case"boolean":case"undefined":return String($);case"object":return"{}"}}}}),x0=M0((Q,J)=>{var{format:$,inspect:X}=p7(),{AggregateError:K}=N0(),Y=globalThis.AggregateError||K,V=Symbol("kIsNodeError"),q=["string","function","number","object","Function","Object","boolean","bigint","symbol"],U=/^([A-Z][a-z0-9]*)+$/,G={};function B(F,z){if(!F)throw new G.ERR_INTERNAL_ASSERTION(z)}function j(F){let z="",P=F.length,L=F[0]==="-"?1:0;for(;P>=L+4;P-=3)z=`_${F.slice(P-3,P)}${z}`;return`${F.slice(0,P)}${z}`}function W(F,z,P){if(typeof z==="function")return B(z.length<=P.length,`Code: ${F}; The provided arguments length (${P.length}) does not match the required ones (${z.length}).`),z(...P);let L=(z.match(/%[dfijoOs]/g)||[]).length;if(B(L===P.length,`Code: ${F}; The provided arguments length (${P.length}) does not match the required ones (${L}).`),P.length===0)return z;return $(z,...P)}function H(F,z,P){if(!P)P=Error;class L extends P{constructor(...N){super(W(F,z,N))}toString(){return`${this.name} [${F}]: ${this.message}`}}Object.defineProperties(L.prototype,{name:{value:P.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${F}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),L.prototype.code=F,L.prototype[V]=!0,G[F]=L}function S(F){let z="__node_internal_"+F.name;return Object.defineProperty(F,"name",{value:z}),F}function A(F,z){if(F&&z&&F!==z){if(Array.isArray(z.errors))return z.errors.push(F),z;let P=new Y([z,F],z.message);return P.code=z.code,P}return F||z}class w extends Error{constructor(F="The operation was aborted",z=void 0){if(z!==void 0&&typeof z!=="object")throw new G.ERR_INVALID_ARG_TYPE("options","Object",z);super(F,z);this.code="ABORT_ERR",this.name="AbortError"}}H("ERR_ASSERTION","%s",Error),H("ERR_INVALID_ARG_TYPE",(F,z,P)=>{if(B(typeof F==="string","'name' must be a string"),!Array.isArray(z))z=[z];let L="The ";if(F.endsWith(" argument"))L+=`${F} `;else L+=`"${F}" ${F.includes(".")?"property":"argument"} `;L+="must be ";let N=[],x=[],d=[];for(let _ of z)if(B(typeof _==="string","All expected entries have to be of type string"),q.includes(_))N.push(_.toLowerCase());else if(U.test(_))x.push(_);else B(_!=="object",'The value "object" should be written as "Object"'),d.push(_);if(x.length>0){let _=N.indexOf("object");if(_!==-1)N.splice(N,_,1),x.push("Object")}if(N.length>0){switch(N.length){case 1:L+=`of type ${N[0]}`;break;case 2:L+=`one of type ${N[0]} or ${N[1]}`;break;default:{let _=N.pop();L+=`one of type ${N.join(", ")}, or ${_}`}}if(x.length>0||d.length>0)L+=" or "}if(x.length>0){switch(x.length){case 1:L+=`an instance of ${x[0]}`;break;case 2:L+=`an instance of ${x[0]} or ${x[1]}`;break;default:{let _=x.pop();L+=`an instance of ${x.join(", ")}, or ${_}`}}if(d.length>0)L+=" or "}switch(d.length){case 0:break;case 1:if(d[0].toLowerCase()!==d[0])L+="an ";L+=`${d[0]}`;break;case 2:L+=`one of ${d[0]} or ${d[1]}`;break;default:{let _=d.pop();L+=`one of ${d.join(", ")}, or ${_}`}}if(P==null)L+=`. Received ${P}`;else if(typeof P==="function"&&P.name)L+=`. Received function ${P.name}`;else if(typeof P==="object"){var i;if((i=P.constructor)!==null&&i!==void 0&&i.name)L+=`. Received an instance of ${P.constructor.name}`;else{let _=X(P,{depth:-1});L+=`. Received ${_}`}}else{let _=X(P,{colors:!1});if(_.length>25)_=`${_.slice(0,25)}...`;L+=`. Received type ${typeof P} (${_})`}return L},TypeError),H("ERR_INVALID_ARG_VALUE",(F,z,P="is invalid")=>{let L=X(z);if(L.length>128)L=L.slice(0,128)+"...";return`The ${F.includes(".")?"property":"argument"} '${F}' ${P}. Received ${L}`},TypeError),H("ERR_INVALID_RETURN_VALUE",(F,z,P)=>{var L;let N=P!==null&&P!==void 0&&(L=P.constructor)!==null&&L!==void 0&&L.name?`instance of ${P.constructor.name}`:`type ${typeof P}`;return`Expected ${F} to be returned from the "${z}" function but got ${N}.`},TypeError),H("ERR_MISSING_ARGS",(...F)=>{B(F.length>0,"At least one arg needs to be specified");let z,P=F.length;switch(F=(Array.isArray(F)?F:[F]).map((L)=>`"${L}"`).join(" or "),P){case 1:z+=`The ${F[0]} argument`;break;case 2:z+=`The ${F[0]} and ${F[1]} arguments`;break;default:{let L=F.pop();z+=`The ${F.join(", ")}, and ${L} arguments`}break}return`${z} must be specified`},TypeError),H("ERR_OUT_OF_RANGE",(F,z,P)=>{B(z,'Missing "range" argument');let L;if(Number.isInteger(P)&&Math.abs(P)>4294967296)L=j(String(P));else if(typeof P==="bigint"){L=String(P);let N=BigInt(2)**BigInt(32);if(P>N||P<-N)L=j(L);L+="n"}else L=X(P);return`The value of "${F}" is out of range. It must be ${z}. Received ${L}`},RangeError),H("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),H("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),H("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),H("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),H("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),H("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),H("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),H("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),H("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),H("ERR_STREAM_WRITE_AFTER_END","write after end",Error),H("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),J.exports={AbortError:w,aggregateTwoErrors:S(A),hideStackFrames:S,codes:G}}),rY=M0((Q,J)=>{Object.defineProperty(Q,"__esModule",{value:!0});var $=new WeakMap,X=new WeakMap;function K(v){let k=$.get(v);return console.assert(k!=null,"'this' is expected an Event object, but got",v),k}function Y(v){if(v.passiveListener!=null){if(typeof console<"u"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",v.passiveListener);return}if(!v.event.cancelable)return;if(v.canceled=!0,typeof v.event.preventDefault==="function")v.event.preventDefault()}function V(v,k){$.set(this,{eventTarget:v,event:k,eventPhase:2,currentTarget:v,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:k.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let O=Object.keys(k);for(let E=0;E<O.length;++E){let g=O[E];if(!(g in this))Object.defineProperty(this,g,q(g))}}if(V.prototype={get type(){return K(this).event.type},get target(){return K(this).eventTarget},get currentTarget(){return K(this).currentTarget},composedPath(){let v=K(this).currentTarget;if(v==null)return[];return[v]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return K(this).eventPhase},stopPropagation(){let v=K(this);if(v.stopped=!0,typeof v.event.stopPropagation==="function")v.event.stopPropagation()},stopImmediatePropagation(){let v=K(this);if(v.stopped=!0,v.immediateStopped=!0,typeof v.event.stopImmediatePropagation==="function")v.event.stopImmediatePropagation()},get bubbles(){return Boolean(K(this).event.bubbles)},get cancelable(){return Boolean(K(this).event.cancelable)},preventDefault(){Y(K(this))},get defaultPrevented(){return K(this).canceled},get composed(){return Boolean(K(this).event.composed)},get timeStamp(){return K(this).timeStamp},get srcElement(){return K(this).eventTarget},get cancelBubble(){return K(this).stopped},set cancelBubble(v){if(!v)return;let k=K(this);if(k.stopped=!0,typeof k.event.cancelBubble==="boolean")k.event.cancelBubble=!0},get returnValue(){return!K(this).canceled},set returnValue(v){if(!v)Y(K(this))},initEvent(){}},Object.defineProperty(V.prototype,"constructor",{value:V,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(V.prototype,window.Event.prototype),X.set(window.Event.prototype,V);function q(v){return{get(){return K(this).event[v]},set(k){K(this).event[v]=k},configurable:!0,enumerable:!0}}function U(v){return{value(){let k=K(this).event;return k[v].apply(k,arguments)},configurable:!0,enumerable:!0}}function G(v,k){let O=Object.keys(k);if(O.length===0)return v;function E(g,T){v.call(this,g,T)}E.prototype=Object.create(v.prototype,{constructor:{value:E,configurable:!0,writable:!0}});for(let g=0;g<O.length;++g){let T=O[g];if(!(T in v.prototype)){let o=typeof Object.getOwnPropertyDescriptor(k,T).value==="function";Object.defineProperty(E.prototype,T,o?U(T):q(T))}}return E}function B(v){if(v==null||v===Object.prototype)return V;let k=X.get(v);if(k==null)k=G(B(Object.getPrototypeOf(v)),v),X.set(v,k);return k}function j(v,k){return new(B(Object.getPrototypeOf(k)))(v,k)}function W(v){return K(v).immediateStopped}function H(v,k){K(v).eventPhase=k}function S(v,k){K(v).currentTarget=k}function A(v,k){K(v).passiveListener=k}var w=new WeakMap,F=1,z=2,P=3;function L(v){return v!==null&&typeof v==="object"}function N(v){let k=w.get(v);if(k==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return k}function x(v){return{get(){let k=N(this).get(v);while(k!=null){if(k.listenerType===P)return k.listener;k=k.next}return null},set(k){if(typeof k!=="function"&&!L(k))k=null;let O=N(this),E=null,g=O.get(v);while(g!=null){if(g.listenerType===P)if(E!==null)E.next=g.next;else if(g.next!==null)O.set(v,g.next);else O.delete(v);else E=g;g=g.next}if(k!==null){let T={listener:k,listenerType:P,passive:!1,once:!1,next:null};if(E===null)O.set(v,T);else E.next=T}},configurable:!0,enumerable:!0}}function d(v,k){Object.defineProperty(v,`on${k}`,x(k))}function i(v){function k(){_.call(this)}k.prototype=Object.create(_.prototype,{constructor:{value:k,configurable:!0,writable:!0}});for(let O=0;O<v.length;++O)d(k.prototype,v[O]);return k}function _(){if(this instanceof _){w.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return i(arguments[0]);if(arguments.length>0){let v=Array(arguments.length);for(let k=0;k<arguments.length;++k)v[k]=arguments[k];return i(v)}throw TypeError("Cannot call a class as a function")}if(_.prototype={addEventListener(v,k,O){if(k==null)return;if(typeof k!=="function"&&!L(k))throw TypeError("'listener' should be a function or an object.");let E=N(this),g=L(O),T=(g?Boolean(O.capture):Boolean(O))?F:z,o={listener:k,listenerType:T,passive:g&&Boolean(O.passive),once:g&&Boolean(O.once),next:null},e=E.get(v);if(e===void 0){E.set(v,o);return}let X0=null;while(e!=null){if(e.listener===k&&e.listenerType===T)return;X0=e,e=e.next}X0.next=o},removeEventListener(v,k,O){if(k==null)return;let E=N(this),g=(L(O)?Boolean(O.capture):Boolean(O))?F:z,T=null,o=E.get(v);while(o!=null){if(o.listener===k&&o.listenerType===g){if(T!==null)T.next=o.next;else if(o.next!==null)E.set(v,o.next);else E.delete(v);return}T=o,o=o.next}},dispatchEvent(v){if(v==null||typeof v.type!=="string")throw TypeError('"event.type" should be a string.');let k=N(this),O=v.type,E=k.get(O);if(E==null)return!0;let g=j(this,v),T=null;while(E!=null){if(E.once)if(T!==null)T.next=E.next;else if(E.next!==null)k.set(O,E.next);else k.delete(O);else T=E;if(A(g,E.passive?E.listener:null),typeof E.listener==="function")try{E.listener.call(this,g)}catch(o){if(typeof console<"u"&&typeof console.error==="function")console.error(o)}else if(E.listenerType!==P&&typeof E.listener.handleEvent==="function")E.listener.handleEvent(g);if(W(g))break;E=E.next}return A(g,null),H(g,0),S(g,null),!g.defaultPrevented}},Object.defineProperty(_.prototype,"constructor",{value:_,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(_.prototype,window.EventTarget.prototype);Q.defineEventAttribute=d,Q.EventTarget=_,Q.default=_,J.exports=_,J.exports.EventTarget=J.exports.default=_,J.exports.defineEventAttribute=d}),o1=M0((Q,J)=>{Object.defineProperty(Q,"__esModule",{value:!0});var $=rY();class X extends $.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let B=V.get(this);if(typeof B!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return B}}$.defineEventAttribute(X.prototype,"abort");function K(){let B=Object.create(X.prototype);return $.EventTarget.call(B),V.set(B,!1),B}function Y(B){if(V.get(B)!==!1)return;V.set(B,!0),B.dispatchEvent({type:"abort"})}var V=new WeakMap;if(Object.defineProperties(X.prototype,{aborted:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(X.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class q{constructor(){U.set(this,K())}get signal(){return G(this)}abort(){Y(G(this))}}var U=new WeakMap;function G(B){let j=U.get(B);if(j==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${B===null?"null":typeof B}`);return j}if(Object.defineProperties(q.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(q.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Q.AbortController=q,Q.AbortSignal=X,Q.default=q,J.exports=q,J.exports.AbortController=J.exports.default=q,J.exports.AbortSignal=X}),_0=M0((Q,J)=>{var $=(L2(),u0(M2)),{format:X,inspect:K}=p7(),{codes:{ERR_INVALID_ARG_TYPE:Y}}=x0(),{kResistStopPropagation:V,AggregateError:q,SymbolDispose:U}=N0(),G=globalThis.AbortSignal||o1().AbortSignal,B=globalThis.AbortController||o1().AbortController,j=Object.getPrototypeOf(async function(){}).constructor,W=globalThis.Blob||$.Blob,H=typeof W<"u"?function(w){return w instanceof W}:function(w){return!1},S=(w,F)=>{if(w!==void 0&&(w===null||typeof w!=="object"||!("aborted"in w)))throw new Y(F,"AbortSignal",w)},A=(w,F)=>{if(typeof w!=="function")throw new Y(F,"Function",w)};J.exports={AggregateError:q,kEmptyObject:Object.freeze({}),once(w){let F=!1;return function(...z){if(F)return;F=!0,w.apply(this,z)}},createDeferredPromise:function(){let w,F;return{promise:new Promise((z,P)=>{w=z,F=P}),resolve:w,reject:F}},promisify(w){return new Promise((F,z)=>{w((P,...L)=>{if(P)return z(P);return F(...L)})})},debuglog(){return function(){}},format:X,inspect:K,types:{isAsyncFunction(w){return w instanceof j},isArrayBufferView(w){return ArrayBuffer.isView(w)}},isBlob:H,deprecate(w,F){return w},addAbortListener:(r1(),u0(n1)).addAbortListener||function(w,F){if(w===void 0)throw new Y("signal","AbortSignal",w);S(w,"signal"),A(F,"listener");let z;if(w.aborted)queueMicrotask(()=>F());else w.addEventListener("abort",F,{__proto__:null,once:!0,[V]:!0}),z=()=>{w.removeEventListener("abort",F)};return{__proto__:null,[U](){var P;(P=z)===null||P===void 0||P()}}},AbortSignalAny:G.any||function(w){if(w.length===1)return w[0];let F=new B,z=()=>F.abort();return w.forEach((P)=>{S(P,"signals"),P.addEventListener("abort",z,{once:!0})}),F.signal.addEventListener("abort",()=>{w.forEach((P)=>P.removeEventListener("abort",z))},{once:!0}),F.signal}},J.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),a1=M0((Q,J)=>{var{ArrayIsArray:$,ArrayPrototypeIncludes:X,ArrayPrototypeJoin:K,ArrayPrototypeMap:Y,NumberIsInteger:V,NumberIsNaN:q,NumberMAX_SAFE_INTEGER:U,NumberMIN_SAFE_INTEGER:G,NumberParseInt:B,ObjectPrototypeHasOwnProperty:j,RegExpPrototypeExec:W,String:H,StringPrototypeToUpperCase:S,StringPrototypeTrim:A}=N0(),{hideStackFrames:w,codes:{ERR_SOCKET_BAD_PORT:F,ERR_INVALID_ARG_TYPE:z,ERR_INVALID_ARG_VALUE:P,ERR_OUT_OF_RANGE:L,ERR_UNKNOWN_SIGNAL:N}}=x0(),{normalizeEncoding:x}=_0(),{isAsyncFunction:d,isArrayBufferView:i}=_0().types,_={};function v(D){return D===(D|0)}function k(D){return D===D>>>0}var O=/^[0-7]+$/,E="must be a 32-bit unsigned integer or an octal string";function g(D,m,Q0){if(typeof D>"u")D=Q0;if(typeof D==="string"){if(W(O,D)===null)throw new P(m,D,E);D=B(D,8)}return e(D,m),D}var T=w((D,m,Q0=G,l=U)=>{if(typeof D!=="number")throw new z(m,"number",D);if(!V(D))throw new L(m,"an integer",D);if(D<Q0||D>l)throw new L(m,`>= ${Q0} && <= ${l}`,D)}),o=w((D,m,Q0=-2147483648,l=2147483647)=>{if(typeof D!=="number")throw new z(m,"number",D);if(!V(D))throw new L(m,"an integer",D);if(D<Q0||D>l)throw new L(m,`>= ${Q0} && <= ${l}`,D)}),e=w((D,m,Q0=!1)=>{if(typeof D!=="number")throw new z(m,"number",D);if(!V(D))throw new L(m,"an integer",D);let l=Q0?1:0,q0=4294967295;if(D<l||D>q0)throw new L(m,`>= ${l} && <= ${q0}`,D)});function X0(D,m){if(typeof D!=="string")throw new z(m,"string",D)}function W0(D,m,Q0=void 0,l){if(typeof D!=="number")throw new z(m,"number",D);if(Q0!=null&&D<Q0||l!=null&&D>l||(Q0!=null||l!=null)&&q(D))throw new L(m,`${Q0!=null?`>= ${Q0}`:""}${Q0!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,D)}var p=w((D,m,Q0)=>{if(!X(Q0,D)){let l="must be one of: "+K(Y(Q0,(q0)=>typeof q0==="string"?`'${q0}'`:H(q0)),", ");throw new P(m,D,l)}});function V0(D,m){if(typeof D!=="boolean")throw new z(m,"boolean",D)}function I(D,m,Q0){return D==null||!j(D,m)?Q0:D[m]}var c=w((D,m,Q0=null)=>{let l=I(Q0,"allowArray",!1),q0=I(Q0,"allowFunction",!1);if(!I(Q0,"nullable",!1)&&D===null||!l&&$(D)||typeof D!=="object"&&(!q0||typeof D!=="function"))throw new z(m,"Object",D)}),$0=w((D,m)=>{if(D!=null&&typeof D!=="object"&&typeof D!=="function")throw new z(m,"a dictionary",D)}),f=w((D,m,Q0=0)=>{if(!$(D))throw new z(m,"Array",D);if(D.length<Q0){let l=`must be longer than ${Q0}`;throw new P(m,D,l)}});function Y0(D,m){f(D,m);for(let Q0=0;Q0<D.length;Q0++)X0(D[Q0],`${m}[${Q0}]`)}function G0(D,m){f(D,m);for(let Q0=0;Q0<D.length;Q0++)V0(D[Q0],`${m}[${Q0}]`)}function H0(D,m){f(D,m);for(let Q0=0;Q0<D.length;Q0++){let l=D[Q0],q0=`${m}[${Q0}]`;if(l==null)throw new z(q0,"AbortSignal",l);U0(l,q0)}}function Z0(D,m="signal"){if(X0(D,m),_[D]===void 0){if(_[S(D)]!==void 0)throw new N(D+" (signals must use all capital letters)");throw new N(D)}}var b=w((D,m="buffer")=>{if(!i(D))throw new z(m,["Buffer","TypedArray","DataView"],D)});function u(D,m){let Q0=x(m),l=D.length;if(Q0==="hex"&&l%2!==0)throw new P("encoding",m,`is invalid for data of length ${l}`)}function a(D,m="Port",Q0=!0){if(typeof D!=="number"&&typeof D!=="string"||typeof D==="string"&&A(D).length===0||+D!==+D>>>0||D>65535||D===0&&!Q0)throw new F(m,D,Q0);return D|0}var U0=w((D,m)=>{if(D!==void 0&&(D===null||typeof D!=="object"||!("aborted"in D)))throw new z(m,"AbortSignal",D)}),z0=w((D,m)=>{if(typeof D!=="function")throw new z(m,"Function",D)}),C=w((D,m)=>{if(typeof D!=="function"||d(D))throw new z(m,"Function",D)}),R=w((D,m)=>{if(D!==void 0)throw new z(m,"undefined",D)});function h(D,m,Q0){if(!X(Q0,D))throw new z(m,`('${K(Q0,"|")}')`,D)}var r=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function t(D,m){if(typeof D>"u"||!W(r,D))throw new P(m,D,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function s(D){if(typeof D==="string")return t(D,"hints"),D;else if($(D)){let m=D.length,Q0="";if(m===0)return Q0;for(let l=0;l<m;l++){let q0=D[l];if(t(q0,"hints"),Q0+=q0,l!==m-1)Q0+=", "}return Q0}throw new P("hints",D,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}J.exports={isInt32:v,isUint32:k,parseFileMode:g,validateArray:f,validateStringArray:Y0,validateBooleanArray:G0,validateAbortSignalArray:H0,validateBoolean:V0,validateBuffer:b,validateDictionary:$0,validateEncoding:u,validateFunction:z0,validateInt32:o,validateInteger:T,validateNumber:W0,validateObject:c,validateOneOf:p,validatePlainFunction:C,validatePort:a,validateSignalName:Z0,validateString:X0,validateUint32:e,validateUndefined:R,validateUnion:h,validateAbortSignal:U0,validateLinkHeaderValue:s}}),o2=M0((Q,J)=>{J.exports=globalThis.process}),w2=M0((Q,J)=>{var{SymbolAsyncIterator:$,SymbolIterator:X,SymbolFor:K}=N0(),Y=K("nodejs.stream.destroyed"),V=K("nodejs.stream.errored"),q=K("nodejs.stream.readable"),U=K("nodejs.stream.writable"),G=K("nodejs.stream.disturbed"),B=K("nodejs.webstream.isClosedPromise"),j=K("nodejs.webstream.controllerErrorFunction");function W(I,c=!1){var $0;return!!(I&&typeof I.pipe==="function"&&typeof I.on==="function"&&(!c||typeof I.pause==="function"&&typeof I.resume==="function")&&(!I._writableState||(($0=I._readableState)===null||$0===void 0?void 0:$0.readable)!==!1)&&(!I._writableState||I._readableState))}function H(I){var c;return!!(I&&typeof I.write==="function"&&typeof I.on==="function"&&(!I._readableState||((c=I._writableState)===null||c===void 0?void 0:c.writable)!==!1))}function S(I){return!!(I&&typeof I.pipe==="function"&&I._readableState&&typeof I.on==="function"&&typeof I.write==="function")}function A(I){return I&&(I._readableState||I._writableState||typeof I.write==="function"&&typeof I.on==="function"||typeof I.pipe==="function"&&typeof I.on==="function")}function w(I){return!!(I&&!A(I)&&typeof I.pipeThrough==="function"&&typeof I.getReader==="function"&&typeof I.cancel==="function")}function F(I){return!!(I&&!A(I)&&typeof I.getWriter==="function"&&typeof I.abort==="function")}function z(I){return!!(I&&!A(I)&&typeof I.readable==="object"&&typeof I.writable==="object")}function P(I){return w(I)||F(I)||z(I)}function L(I,c){if(I==null)return!1;if(c===!0)return typeof I[$]==="function";if(c===!1)return typeof I[X]==="function";return typeof I[$]==="function"||typeof I[X]==="function"}function N(I){if(!A(I))return null;let{_writableState:c,_readableState:$0}=I,f=c||$0;return!!(I.destroyed||I[Y]||f!==null&&f!==void 0&&f.destroyed)}function x(I){if(!H(I))return null;if(I.writableEnded===!0)return!0;let c=I._writableState;if(c!==null&&c!==void 0&&c.errored)return!1;if(typeof(c===null||c===void 0?void 0:c.ended)!=="boolean")return null;return c.ended}function d(I,c){if(!H(I))return null;if(I.writableFinished===!0)return!0;let $0=I._writableState;if($0!==null&&$0!==void 0&&$0.errored)return!1;if(typeof($0===null||$0===void 0?void 0:$0.finished)!=="boolean")return null;return!!($0.finished||c===!1&&$0.ended===!0&&$0.length===0)}function i(I){if(!W(I))return null;if(I.readableEnded===!0)return!0;let c=I._readableState;if(!c||c.errored)return!1;if(typeof(c===null||c===void 0?void 0:c.ended)!=="boolean")return null;return c.ended}function _(I,c){if(!W(I))return null;let $0=I._readableState;if($0!==null&&$0!==void 0&&$0.errored)return!1;if(typeof($0===null||$0===void 0?void 0:$0.endEmitted)!=="boolean")return null;return!!($0.endEmitted||c===!1&&$0.ended===!0&&$0.length===0)}function v(I){if(I&&I[q]!=null)return I[q];if(typeof(I===null||I===void 0?void 0:I.readable)!=="boolean")return null;if(N(I))return!1;return W(I)&&I.readable&&!_(I)}function k(I){if(I&&I[U]!=null)return I[U];if(typeof(I===null||I===void 0?void 0:I.writable)!=="boolean")return null;if(N(I))return!1;return H(I)&&I.writable&&!x(I)}function O(I,c){if(!A(I))return null;if(N(I))return!0;if((c===null||c===void 0?void 0:c.readable)!==!1&&v(I))return!1;if((c===null||c===void 0?void 0:c.writable)!==!1&&k(I))return!1;return!0}function E(I){var c,$0;if(!A(I))return null;if(I.writableErrored)return I.writableErrored;return(c=($0=I._writableState)===null||$0===void 0?void 0:$0.errored)!==null&&c!==void 0?c:null}function g(I){var c,$0;if(!A(I))return null;if(I.readableErrored)return I.readableErrored;return(c=($0=I._readableState)===null||$0===void 0?void 0:$0.errored)!==null&&c!==void 0?c:null}function T(I){if(!A(I))return null;if(typeof I.closed==="boolean")return I.closed;let{_writableState:c,_readableState:$0}=I;if(typeof(c===null||c===void 0?void 0:c.closed)==="boolean"||typeof($0===null||$0===void 0?void 0:$0.closed)==="boolean")return(c===null||c===void 0?void 0:c.closed)||($0===null||$0===void 0?void 0:$0.closed);if(typeof I._closed==="boolean"&&o(I))return I._closed;return null}function o(I){return typeof I._closed==="boolean"&&typeof I._defaultKeepAlive==="boolean"&&typeof I._removedConnection==="boolean"&&typeof I._removedContLen==="boolean"}function e(I){return typeof I._sent100==="boolean"&&o(I)}function X0(I){var c;return typeof I._consuming==="boolean"&&typeof I._dumped==="boolean"&&((c=I.req)===null||c===void 0?void 0:c.upgradeOrConnect)===void 0}function W0(I){if(!A(I))return null;let{_writableState:c,_readableState:$0}=I,f=c||$0;return!f&&e(I)||!!(f&&f.autoDestroy&&f.emitClose&&f.closed===!1)}function p(I){var c;return!!(I&&((c=I[G])!==null&&c!==void 0?c:I.readableDidRead||I.readableAborted))}function V0(I){var c,$0,f,Y0,G0,H0,Z0,b,u,a;return!!(I&&((c=($0=(f=(Y0=(G0=(H0=I[V])!==null&&H0!==void 0?H0:I.readableErrored)!==null&&G0!==void 0?G0:I.writableErrored)!==null&&Y0!==void 0?Y0:(Z0=I._readableState)===null||Z0===void 0?void 0:Z0.errorEmitted)!==null&&f!==void 0?f:(b=I._writableState)===null||b===void 0?void 0:b.errorEmitted)!==null&&$0!==void 0?$0:(u=I._readableState)===null||u===void 0?void 0:u.errored)!==null&&c!==void 0?c:(a=I._writableState)===null||a===void 0?void 0:a.errored))}J.exports={isDestroyed:N,kIsDestroyed:Y,isDisturbed:p,kIsDisturbed:G,isErrored:V0,kIsErrored:V,isReadable:v,kIsReadable:q,kIsClosedPromise:B,kControllerErrorFunction:j,kIsWritable:U,isClosed:T,isDuplexNodeStream:S,isFinished:O,isIterable:L,isReadableNodeStream:W,isReadableStream:w,isReadableEnded:i,isReadableFinished:_,isReadableErrored:g,isNodeStream:A,isWebStream:P,isWritable:k,isWritableNodeStream:H,isWritableStream:F,isWritableEnded:x,isWritableFinished:d,isWritableErrored:E,isServerRequest:X0,isServerResponse:e,willEmitClose:W0,isTransformStream:z}}),k2=M0((Q,J)=>{var $=o2(),{AbortError:X,codes:K}=x0(),{ERR_INVALID_ARG_TYPE:Y,ERR_STREAM_PREMATURE_CLOSE:V}=K,{kEmptyObject:q,once:U}=_0(),{validateAbortSignal:G,validateFunction:B,validateObject:j,validateBoolean:W}=a1(),{Promise:H,PromisePrototypeThen:S,SymbolDispose:A}=N0(),{isClosed:w,isReadable:F,isReadableNodeStream:z,isReadableStream:P,isReadableFinished:L,isReadableErrored:N,isWritable:x,isWritableNodeStream:d,isWritableStream:i,isWritableFinished:_,isWritableErrored:v,isNodeStream:k,willEmitClose:O,kIsClosedPromise:E}=w2(),g;function T(p){return p.setHeader&&typeof p.abort==="function"}var o=()=>{};function e(p,V0,I){var c,$0;if(arguments.length===2)I=V0,V0=q;else if(V0==null)V0=q;else j(V0,"options");if(B(I,"callback"),G(V0.signal,"options.signal"),I=U(I),P(p)||i(p))return X0(p,V0,I);if(!k(p))throw new Y("stream",["ReadableStream","WritableStream","Stream"],p);let f=(c=V0.readable)!==null&&c!==void 0?c:z(p),Y0=($0=V0.writable)!==null&&$0!==void 0?$0:d(p),G0=p._writableState,H0=p._readableState,Z0=()=>{if(!p.writable)a()},b=O(p)&&z(p)===f&&d(p)===Y0,u=_(p,!1),a=()=>{if(u=!0,p.destroyed)b=!1;if(b&&(!p.readable||f))return;if(!f||U0)I.call(p)},U0=L(p,!1),z0=()=>{if(U0=!0,p.destroyed)b=!1;if(b&&(!p.writable||Y0))return;if(!Y0||u)I.call(p)},C=(D)=>{I.call(p,D)},R=w(p),h=()=>{R=!0;let D=v(p)||N(p);if(D&&typeof D!=="boolean")return I.call(p,D);if(f&&!U0&&z(p,!0)){if(!L(p,!1))return I.call(p,new V)}if(Y0&&!u){if(!_(p,!1))return I.call(p,new V)}I.call(p)},r=()=>{R=!0;let D=v(p)||N(p);if(D&&typeof D!=="boolean")return I.call(p,D);I.call(p)},t=()=>{p.req.on("finish",a)};if(T(p)){if(p.on("complete",a),!b)p.on("abort",h);if(p.req)t();else p.on("request",t)}else if(Y0&&!G0)p.on("end",Z0),p.on("close",Z0);if(!b&&typeof p.aborted==="boolean")p.on("aborted",h);if(p.on("end",z0),p.on("finish",a),V0.error!==!1)p.on("error",C);if(p.on("close",h),R)$.nextTick(h);else if(G0!==null&&G0!==void 0&&G0.errorEmitted||H0!==null&&H0!==void 0&&H0.errorEmitted){if(!b)$.nextTick(r)}else if(!f&&(!b||F(p))&&(u||x(p)===!1))$.nextTick(r);else if(!Y0&&(!b||x(p))&&(U0||F(p)===!1))$.nextTick(r);else if(H0&&p.req&&p.aborted)$.nextTick(r);let s=()=>{if(I=o,p.removeListener("aborted",h),p.removeListener("complete",a),p.removeListener("abort",h),p.removeListener("request",t),p.req)p.req.removeListener("finish",a);p.removeListener("end",Z0),p.removeListener("close",Z0),p.removeListener("finish",a),p.removeListener("end",z0),p.removeListener("error",C),p.removeListener("close",h)};if(V0.signal&&!R){let D=()=>{let m=I;s(),m.call(p,new X(void 0,{cause:V0.signal.reason}))};if(V0.signal.aborted)$.nextTick(D);else{g=g||_0().addAbortListener;let m=g(V0.signal,D),Q0=I;I=U((...l)=>{m[A](),Q0.apply(p,l)})}}return s}function X0(p,V0,I){let c=!1,$0=o;if(V0.signal)if($0=()=>{c=!0,I.call(p,new X(void 0,{cause:V0.signal.reason}))},V0.signal.aborted)$.nextTick($0);else{g=g||_0().addAbortListener;let Y0=g(V0.signal,$0),G0=I;I=U((...H0)=>{Y0[A](),G0.apply(p,H0)})}let f=(...Y0)=>{if(!c)$.nextTick(()=>I.apply(p,Y0))};return S(p[E].promise,f,f),o}function W0(p,V0){var I;let c=!1;if(V0===null)V0=q;if((I=V0)!==null&&I!==void 0&&I.cleanup)W(V0.cleanup,"cleanup"),c=V0.cleanup;return new H(($0,f)=>{let Y0=e(p,V0,(G0)=>{if(c)Y0();if(G0)f(G0);else $0()})})}J.exports=e,J.exports.finished=W0}),P1=M0((Q,J)=>{var $=o2(),{aggregateTwoErrors:X,codes:{ERR_MULTIPLE_CALLBACK:K},AbortError:Y}=x0(),{Symbol:V}=N0(),{kIsDestroyed:q,isDestroyed:U,isFinished:G,isServerRequest:B}=w2(),j=V("kDestroy"),W=V("kConstruct");function H(O,E,g){if(O){if(O.stack,E&&!E.errored)E.errored=O;if(g&&!g.errored)g.errored=O}}function S(O,E){let g=this._readableState,T=this._writableState,o=T||g;if(T!==null&&T!==void 0&&T.destroyed||g!==null&&g!==void 0&&g.destroyed){if(typeof E==="function")E();return this}if(H(O,T,g),T)T.destroyed=!0;if(g)g.destroyed=!0;if(!o.constructed)this.once(j,function(e){A(this,X(e,O),E)});else A(this,O,E);return this}function A(O,E,g){let T=!1;function o(e){if(T)return;T=!0;let{_readableState:X0,_writableState:W0}=O;if(H(e,W0,X0),W0)W0.closed=!0;if(X0)X0.closed=!0;if(typeof g==="function")g(e);if(e)$.nextTick(w,O,e);else $.nextTick(F,O)}try{O._destroy(E||null,o)}catch(e){o(e)}}function w(O,E){z(O,E),F(O)}function F(O){let{_readableState:E,_writableState:g}=O;if(g)g.closeEmitted=!0;if(E)E.closeEmitted=!0;if(g!==null&&g!==void 0&&g.emitClose||E!==null&&E!==void 0&&E.emitClose)O.emit("close")}function z(O,E){let{_readableState:g,_writableState:T}=O;if(T!==null&&T!==void 0&&T.errorEmitted||g!==null&&g!==void 0&&g.errorEmitted)return;if(T)T.errorEmitted=!0;if(g)g.errorEmitted=!0;O.emit("error",E)}function P(){let O=this._readableState,E=this._writableState;if(O)O.constructed=!0,O.closed=!1,O.closeEmitted=!1,O.destroyed=!1,O.errored=null,O.errorEmitted=!1,O.reading=!1,O.ended=O.readable===!1,O.endEmitted=O.readable===!1;if(E)E.constructed=!0,E.destroyed=!1,E.closed=!1,E.closeEmitted=!1,E.errored=null,E.errorEmitted=!1,E.finalCalled=!1,E.prefinished=!1,E.ended=E.writable===!1,E.ending=E.writable===!1,E.finished=E.writable===!1}function L(O,E,g){let{_readableState:T,_writableState:o}=O;if(o!==null&&o!==void 0&&o.destroyed||T!==null&&T!==void 0&&T.destroyed)return this;if(T!==null&&T!==void 0&&T.autoDestroy||o!==null&&o!==void 0&&o.autoDestroy)O.destroy(E);else if(E){if(E.stack,o&&!o.errored)o.errored=E;if(T&&!T.errored)T.errored=E;if(g)$.nextTick(z,O,E);else z(O,E)}}function N(O,E){if(typeof O._construct!=="function")return;let{_readableState:g,_writableState:T}=O;if(g)g.constructed=!1;if(T)T.constructed=!1;if(O.once(W,E),O.listenerCount(W)>1)return;$.nextTick(x,O)}function x(O){let E=!1;function g(T){if(E){L(O,T!==null&&T!==void 0?T:new K);return}E=!0;let{_readableState:o,_writableState:e}=O,X0=e||o;if(o)o.constructed=!0;if(e)e.constructed=!0;if(X0.destroyed)O.emit(j,T);else if(T)L(O,T,!0);else $.nextTick(d,O)}try{O._construct((T)=>{$.nextTick(g,T)})}catch(T){$.nextTick(g,T)}}function d(O){O.emit(W)}function i(O){return(O===null||O===void 0?void 0:O.setHeader)&&typeof O.abort==="function"}function _(O){O.emit("close")}function v(O,E){O.emit("error",E),$.nextTick(_,O)}function k(O,E){if(!O||U(O))return;if(!E&&!G(O))E=new Y;if(B(O))O.socket=null,O.destroy(E);else if(i(O))O.abort();else if(i(O.req))O.req.abort();else if(typeof O.destroy==="function")O.destroy(E);else if(typeof O.close==="function")O.close();else if(E)$.nextTick(v,O,E);else $.nextTick(_,O);if(!O.destroyed)O[q]=!0}J.exports={construct:N,destroyer:k,destroy:S,undestroy:P,errorOrDestroy:L}}),n8=M0((Q,J)=>{var{ArrayIsArray:$,ObjectSetPrototypeOf:X}=N0(),{EventEmitter:K}=(r1(),u0(n1));function Y(q){K.call(this,q)}X(Y.prototype,K.prototype),X(Y,K),Y.prototype.pipe=function(q,U){let G=this;function B(F){if(q.writable&&q.write(F)===!1&&G.pause)G.pause()}G.on("data",B);function j(){if(G.readable&&G.resume)G.resume()}if(q.on("drain",j),!q._isStdio&&(!U||U.end!==!1))G.on("end",H),G.on("close",S);let W=!1;function H(){if(W)return;W=!0,q.end()}function S(){if(W)return;if(W=!0,typeof q.destroy==="function")q.destroy()}function A(F){if(w(),K.listenerCount(this,"error")===0)this.emit("error",F)}V(G,"error",A),V(q,"error",A);function w(){G.removeListener("data",B),q.removeListener("drain",j),G.removeListener("end",H),G.removeListener("close",S),G.removeListener("error",A),q.removeListener("error",A),G.removeListener("end",w),G.removeListener("close",w),q.removeListener("close",w)}return G.on("end",w),G.on("close",w),q.on("close",w),q.emit("pipe",G),q};function V(q,U,G){if(typeof q.prependListener==="function")return q.prependListener(U,G);if(!q._events||!q._events[U])q.on(U,G);else if($(q._events[U]))q._events[U].unshift(G);else q._events[U]=[G,q._events[U]]}J.exports={Stream:Y,prependListener:V}}),x6=M0((Q,J)=>{var{SymbolDispose:$}=N0(),{AbortError:X,codes:K}=x0(),{isNodeStream:Y,isWebStream:V,kControllerErrorFunction:q}=w2(),U=k2(),{ERR_INVALID_ARG_TYPE:G}=K,B,j=(W,H)=>{if(typeof W!=="object"||!("aborted"in W))throw new G(H,"AbortSignal",W)};J.exports.addAbortSignal=function(W,H){if(j(W,"signal"),!Y(H)&&!V(H))throw new G("stream",["ReadableStream","WritableStream","Stream"],H);return J.exports.addAbortSignalNoValidate(W,H)},J.exports.addAbortSignalNoValidate=function(W,H){if(typeof W!=="object"||!("aborted"in W))return H;let S=Y(H)?()=>{H.destroy(new X(void 0,{cause:W.reason}))}:()=>{H[q](new X(void 0,{cause:W.reason}))};if(W.aborted)S();else{B=B||_0().addAbortListener;let A=B(W,S);U(H,A[$])}return H}}),oY=M0((Q,J)=>{var{StringPrototypeSlice:$,SymbolIterator:X,TypedArrayPrototypeSet:K,Uint8Array:Y}=N0(),{Buffer:V}=(L2(),u0(M2)),{inspect:q}=_0();J.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(U){let G={data:U,next:null};if(this.length>0)this.tail.next=G;else this.head=G;this.tail=G,++this.length}unshift(U){let G={data:U,next:this.head};if(this.length===0)this.tail=G;this.head=G,++this.length}shift(){if(this.length===0)return;let U=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,U}clear(){this.head=this.tail=null,this.length=0}join(U){if(this.length===0)return"";let G=this.head,B=""+G.data;while((G=G.next)!==null)B+=U+G.data;return B}concat(U){if(this.length===0)return V.alloc(0);let G=V.allocUnsafe(U>>>0),B=this.head,j=0;while(B)K(G,B.data,j),j+=B.data.length,B=B.next;return G}consume(U,G){let B=this.head.data;if(U<B.length){let j=B.slice(0,U);return this.head.data=B.slice(U),j}if(U===B.length)return this.shift();return G?this._getString(U):this._getBuffer(U)}first(){return this.head.data}*[X](){for(let U=this.head;U;U=U.next)yield U.data}_getString(U){let G="",B=this.head,j=0;do{let W=B.data;if(U>W.length)G+=W,U-=W.length;else{if(U===W.length)if(G+=W,++j,B.next)this.head=B.next;else this.head=this.tail=null;else G+=$(W,0,U),this.head=B,B.data=$(W,U);break}++j}while((B=B.next)!==null);return this.length-=j,G}_getBuffer(U){let G=V.allocUnsafe(U),B=U,j=this.head,W=0;do{let H=j.data;if(U>H.length)K(G,H,B-U),U-=H.length;else{if(U===H.length)if(K(G,H,B-U),++W,j.next)this.head=j.next;else this.head=this.tail=null;else K(G,new Y(H.buffer,H.byteOffset,U),B-U),this.head=j,j.data=H.slice(U);break}++W}while((j=j.next)!==null);return this.length-=W,G}[Symbol.for("nodejs.util.inspect.custom")](U,G){return q(this,{...G,depth:0,customInspect:!1})}}}),g6=M0((Q,J)=>{var{MathFloor:$,NumberIsInteger:X}=N0(),{validateInteger:K}=a1(),{ERR_INVALID_ARG_VALUE:Y}=x0().codes,V=16384,q=16;function U(W,H,S){return W.highWaterMark!=null?W.highWaterMark:H?W[S]:null}function G(W){return W?q:V}function B(W,H){if(K(H,"value",0),W)q=H;else V=H}function j(W,H,S,A){let w=U(H,A,S);if(w!=null){if(!X(w)||w<0){let F=A?`options.${S}`:"options.highWaterMark";throw new Y(F,w)}return $(w)}return G(W.objectMode)}J.exports={getHighWaterMark:j,getDefaultHighWaterMark:G,setDefaultHighWaterMark:B}}),aY=M0((Q,J)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var $=(L2(),u0(M2)),X=$.Buffer;function K(V,q){for(var U in V)q[U]=V[U]}if(X.from&&X.alloc&&X.allocUnsafe&&X.allocUnsafeSlow)J.exports=$;else K($,Q),Q.Buffer=Y;function Y(V,q,U){return X(V,q,U)}Y.prototype=Object.create(X.prototype),K(X,Y),Y.from=function(V,q,U){if(typeof V==="number")throw TypeError("Argument must not be a number");return X(V,q,U)},Y.alloc=function(V,q,U){if(typeof V!=="number")throw TypeError("Argument must be a number");var G=X(V);if(q!==void 0)if(typeof U==="string")G.fill(q,U);else G.fill(q);else G.fill(0);return G},Y.allocUnsafe=function(V){if(typeof V!=="number")throw TypeError("Argument must be a number");return X(V)},Y.allocUnsafeSlow=function(V){if(typeof V!=="number")throw TypeError("Argument must be a number");return $.SlowBuffer(V)}}),sY=M0((Q)=>{var J=aY().Buffer,$=J.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 X(z){if(!z)return"utf8";var P;while(!0)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(P)return;z=(""+z).toLowerCase(),P=!0}}function K(z){var P=X(z);if(typeof P!=="string"&&(J.isEncoding===$||!$(z)))throw Error("Unknown encoding: "+z);return P||z}Q.StringDecoder=Y;function Y(z){this.encoding=K(z);var P;switch(this.encoding){case"utf16le":this.text=W,this.end=H,P=4;break;case"utf8":this.fillLast=G,P=4;break;case"base64":this.text=S,this.end=A,P=3;break;default:this.write=w,this.end=F;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=J.allocUnsafe(P)}Y.prototype.write=function(z){if(z.length===0)return"";var P,L;if(this.lastNeed){if(P=this.fillLast(z),P===void 0)return"";L=this.lastNeed,this.lastNeed=0}else L=0;if(L<z.length)return P?P+this.text(z,L):this.text(z,L);return P||""},Y.prototype.end=j,Y.prototype.text=B,Y.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 V(z){if(z<=127)return 0;else if(z>>5===6)return 2;else if(z>>4===14)return 3;else if(z>>3===30)return 4;return z>>6===2?-1:-2}function q(z,P,L){var N=P.length-1;if(N<L)return 0;var x=V(P[N]);if(x>=0){if(x>0)z.lastNeed=x-1;return x}if(--N<L||x===-2)return 0;if(x=V(P[N]),x>=0){if(x>0)z.lastNeed=x-2;return x}if(--N<L||x===-2)return 0;if(x=V(P[N]),x>=0){if(x>0)if(x===2)x=0;else z.lastNeed=x-3;return x}return 0}function U(z,P,L){if((P[0]&192)!==128)return z.lastNeed=0,"�";if(z.lastNeed>1&&P.length>1){if((P[1]&192)!==128)return z.lastNeed=1,"�";if(z.lastNeed>2&&P.length>2){if((P[2]&192)!==128)return z.lastNeed=2,"�"}}}function G(z){var P=this.lastTotal-this.lastNeed,L=U(this,z,P);if(L!==void 0)return L;if(this.lastNeed<=z.length)return z.copy(this.lastChar,P,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);z.copy(this.lastChar,P,0,z.length),this.lastNeed-=z.length}function B(z,P){var L=q(this,z,P);if(!this.lastNeed)return z.toString("utf8",P);this.lastTotal=L;var N=z.length-(L-this.lastNeed);return z.copy(this.lastChar,0,N),z.toString("utf8",P,N)}function j(z){var P=z&&z.length?this.write(z):"";if(this.lastNeed)return P+"�";return P}function W(z,P){if((z.length-P)%2===0){var L=z.toString("utf16le",P);if(L){var N=L.charCodeAt(L.length-1);if(N>=55296&&N<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=z[z.length-2],this.lastChar[1]=z[z.length-1],L.slice(0,-1)}return L}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=z[z.length-1],z.toString("utf16le",P,z.length-1)}function H(z){var P=z&&z.length?this.write(z):"";if(this.lastNeed){var L=this.lastTotal-this.lastNeed;return P+this.lastChar.toString("utf16le",0,L)}return P}function S(z,P){var L=(z.length-P)%3;if(L===0)return z.toString("base64",P);if(this.lastNeed=3-L,this.lastTotal=3,L===1)this.lastChar[0]=z[z.length-1];else this.lastChar[0]=z[z.length-2],this.lastChar[1]=z[z.length-1];return z.toString("base64",P,z.length-L)}function A(z){var P=z&&z.length?this.write(z):"";if(this.lastNeed)return P+this.lastChar.toString("base64",0,3-this.lastNeed);return P}function w(z){return z.toString(this.encoding)}function F(z){return z&&z.length?this.write(z):""}}),c7=M0((Q,J)=>{var $=o2(),{PromisePrototypeThen:X,SymbolAsyncIterator:K,SymbolIterator:Y}=N0(),{Buffer:V}=(L2(),u0(M2)),{ERR_INVALID_ARG_TYPE:q,ERR_STREAM_NULL_VALUES:U}=x0().codes;function G(B,j,W){let H;if(typeof j==="string"||j instanceof V)return new B({objectMode:!0,...W,read(){this.push(j),this.push(null)}});let S;if(j&&j[K])S=!0,H=j[K]();else if(j&&j[Y])S=!1,H=j[Y]();else throw new q("iterable",["Iterable"],j);let A=new B({objectMode:!0,highWaterMark:1,...W}),w=!1;A._read=function(){if(!w)w=!0,z()},A._destroy=function(P,L){X(F(P),()=>$.nextTick(L,P),(N)=>$.nextTick(L,N||P))};async function F(P){let L=P!==void 0&&P!==null,N=typeof H.throw==="function";if(L&&N){let{value:x,done:d}=await H.throw(P);if(await x,d)return}if(typeof H.return==="function"){let{value:x}=await H.return();await x}}async function z(){for(;;){try{let{value:P,done:L}=S?await H.next():H.next();if(L)A.push(null);else{let N=P&&typeof P.then==="function"?await P:P;if(N===null)throw w=!1,new U;else if(A.push(N))continue;else w=!1}}catch(P){A.destroy(P)}break}}return A}J.exports=G}),y6=M0((Q,J)=>{var $=o2(),{ArrayPrototypeIndexOf:X,NumberIsInteger:K,NumberIsNaN:Y,NumberParseInt:V,ObjectDefineProperties:q,ObjectKeys:U,ObjectSetPrototypeOf:G,Promise:B,SafeSet:j,SymbolAsyncDispose:W,SymbolAsyncIterator:H,Symbol:S}=N0();J.exports=l,l.ReadableState=Q0;var{EventEmitter:A}=(r1(),u0(n1)),{Stream:w,prependListener:F}=n8(),{Buffer:z}=(L2(),u0(M2)),{addAbortSignal:P}=x6(),L=k2(),N=_0().debuglog("stream",(Z)=>{N=Z}),x=oY(),d=P1(),{getHighWaterMark:i,getDefaultHighWaterMark:_}=g6(),{aggregateTwoErrors:v,codes:{ERR_INVALID_ARG_TYPE:k,ERR_METHOD_NOT_IMPLEMENTED:O,ERR_OUT_OF_RANGE:E,ERR_STREAM_PUSH_AFTER_EOF:g,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:T},AbortError:o}=x0(),{validateObject:e}=a1(),X0=S("kPaused"),{StringDecoder:W0}=sY(),p=c7();G(l.prototype,w.prototype),G(l,w);var V0=()=>{},{errorOrDestroy:I}=d,c=1,$0=2,f=4,Y0=8,G0=16,H0=32,Z0=64,b=128,u=256,a=512,U0=1024,z0=2048,C=4096,R=8192,h=16384,r=32768,t=65536,s=131072,D=262144;function m(Z){return{enumerable:!1,get(){return(this.state&Z)!==0},set(M){if(M)this.state|=Z;else this.state&=~Z}}}q(Q0.prototype,{objectMode:m(c),ended:m($0),endEmitted:m(f),reading:m(Y0),constructed:m(G0),sync:m(H0),needReadable:m(Z0),emittedReadable:m(b),readableListening:m(u),resumeScheduled:m(a),errorEmitted:m(U0),emitClose:m(z0),autoDestroy:m(C),destroyed:m(R),closed:m(h),closeEmitted:m(r),multiAwaitDrain:m(t),readingMore:m(s),dataEmitted:m(D)});function Q0(Z,M,n){if(typeof n!=="boolean")n=M instanceof F2();if(this.state=z0|C|G0|H0,Z&&Z.objectMode)this.state|=c;if(n&&Z&&Z.readableObjectMode)this.state|=c;if(this.highWaterMark=Z?i(this,Z,"readableHighWaterMark",n):_(!1),this.buffer=new x,this.length=0,this.pipes=[],this.flowing=null,this[X0]=null,Z&&Z.emitClose===!1)this.state&=~z0;if(Z&&Z.autoDestroy===!1)this.state&=~C;if(this.errored=null,this.defaultEncoding=Z&&Z.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,Z&&Z.encoding)this.decoder=new W0(Z.encoding),this.encoding=Z.encoding}function l(Z){if(!(this instanceof l))return new l(Z);let M=this instanceof F2();if(this._readableState=new Q0(Z,this,M),Z){if(typeof Z.read==="function")this._read=Z.read;if(typeof Z.destroy==="function")this._destroy=Z.destroy;if(typeof Z.construct==="function")this._construct=Z.construct;if(Z.signal&&!M)P(Z.signal,this)}w.call(this,Z),d.construct(this,()=>{if(this._readableState.needReadable)z1(this,this._readableState)})}l.prototype.destroy=d.destroy,l.prototype._undestroy=d.undestroy,l.prototype._destroy=function(Z,M){M(Z)},l.prototype[A.captureRejectionSymbol]=function(Z){this.destroy(Z)},l.prototype[W]=function(){let Z;if(!this.destroyed)Z=this.readableEnded?null:new o,this.destroy(Z);return new B((M,n)=>L(this,(J0)=>J0&&J0!==Z?n(J0):M(null)))},l.prototype.push=function(Z,M){return q0(this,Z,M,!1)},l.prototype.unshift=function(Z,M){return q0(this,Z,M,!0)};function q0(Z,M,n,J0){N("readableAddChunk",M);let K0=Z._readableState,S0;if((K0.state&c)===0){if(typeof M==="string"){if(n=n||K0.defaultEncoding,K0.encoding!==n)if(J0&&K0.encoding)M=z.from(M,n).toString(K0.encoding);else M=z.from(M,n),n=""}else if(M instanceof z)n="";else if(w._isUint8Array(M))M=w._uint8ArrayToBuffer(M),n="";else if(M!=null)S0=new k("chunk",["string","Buffer","Uint8Array"],M)}if(S0)I(Z,S0);else if(M===null)K0.state&=~Y0,E0(Z,K0);else if((K0.state&c)!==0||M&&M.length>0)if(J0)if((K0.state&f)!==0)I(Z,new T);else if(K0.destroyed||K0.errored)return!1;else L0(Z,K0,M,!0);else if(K0.ended)I(Z,new g);else if(K0.destroyed||K0.errored)return!1;else if(K0.state&=~Y0,K0.decoder&&!n)if(M=K0.decoder.write(M),K0.objectMode||M.length!==0)L0(Z,K0,M,!1);else z1(Z,K0);else L0(Z,K0,M,!1);else if(!J0)K0.state&=~Y0,z1(Z,K0);return!K0.ended&&(K0.length<K0.highWaterMark||K0.length===0)}function L0(Z,M,n,J0){if(M.flowing&&M.length===0&&!M.sync&&Z.listenerCount("data")>0){if((M.state&t)!==0)M.awaitDrainWriters.clear();else M.awaitDrainWriters=null;M.dataEmitted=!0,Z.emit("data",n)}else{if(M.length+=M.objectMode?1:n.length,J0)M.buffer.unshift(n);else M.buffer.push(n);if((M.state&Z0)!==0)h0(Z)}z1(Z,M)}l.prototype.isPaused=function(){let Z=this._readableState;return Z[X0]===!0||Z.flowing===!1},l.prototype.setEncoding=function(Z){let M=new W0(Z);this._readableState.decoder=M,this._readableState.encoding=this._readableState.decoder.encoding;let n=this._readableState.buffer,J0="";for(let K0 of n)J0+=M.write(K0);if(n.clear(),J0!=="")n.push(J0);return this._readableState.length=J0.length,this};var d0=1073741824;function l0(Z){if(Z>d0)throw new E("size","<= 1GiB",Z);else Z--,Z|=Z>>>1,Z|=Z>>>2,Z|=Z>>>4,Z|=Z>>>8,Z|=Z>>>16,Z++;return Z}function p2(Z,M){if(Z<=0||M.length===0&&M.ended)return 0;if((M.state&c)!==0)return 1;if(Y(Z)){if(M.flowing&&M.length)return M.buffer.first().length;return M.length}if(Z<=M.length)return Z;return M.ended?M.length:0}l.prototype.read=function(Z){if(N("read",Z),Z===void 0)Z=NaN;else if(!K(Z))Z=V(Z,10);let M=this._readableState,n=Z;if(Z>M.highWaterMark)M.highWaterMark=l0(Z);if(Z!==0)M.state&=~b;if(Z===0&&M.needReadable&&((M.highWaterMark!==0?M.length>=M.highWaterMark:M.length>0)||M.ended)){if(N("read: emitReadable",M.length,M.ended),M.length===0&&M.ended)N8(this);else h0(this);return null}if(Z=p2(Z,M),Z===0&&M.ended){if(M.length===0)N8(this);return null}let J0=(M.state&Z0)!==0;if(N("need readable",J0),M.length===0||M.length-Z<M.highWaterMark)J0=!0,N("length less than watermark",J0);if(M.ended||M.reading||M.destroyed||M.errored||!M.constructed)J0=!1,N("reading, ended or constructing",J0);else if(J0){if(N("do read"),M.state|=Y0|H0,M.length===0)M.state|=Z0;try{this._read(M.highWaterMark)}catch(S0){I(this,S0)}if(M.state&=~H0,!M.reading)Z=p2(n,M)}let K0;if(Z>0)K0=F4(Z,M);else K0=null;if(K0===null)M.needReadable=M.length<=M.highWaterMark,Z=0;else if(M.length-=Z,M.multiAwaitDrain)M.awaitDrainWriters.clear();else M.awaitDrainWriters=null;if(M.length===0){if(!M.ended)M.needReadable=!0;if(n!==Z&&M.ended)N8(this)}if(K0!==null&&!M.errorEmitted&&!M.closeEmitted)M.dataEmitted=!0,this.emit("data",K0);return K0};function E0(Z,M){if(N("onEofChunk"),M.ended)return;if(M.decoder){let n=M.decoder.end();if(n&&n.length)M.buffer.push(n),M.length+=M.objectMode?1:n.length}if(M.ended=!0,M.sync)h0(Z);else M.needReadable=!1,M.emittedReadable=!0,U1(Z)}function h0(Z){let M=Z._readableState;if(N("emitReadable",M.needReadable,M.emittedReadable),M.needReadable=!1,!M.emittedReadable)N("emitReadable",M.flowing),M.emittedReadable=!0,$.nextTick(U1,Z)}function U1(Z){let M=Z._readableState;if(N("emitReadable_",M.destroyed,M.length,M.ended),!M.destroyed&&!M.errored&&(M.length||M.ended))Z.emit("readable"),M.emittedReadable=!1;M.needReadable=!M.flowing&&!M.ended&&M.length<=M.highWaterMark,M4(Z)}function z1(Z,M){if(!M.readingMore&&M.constructed)M.readingMore=!0,$.nextTick(X2,Z,M)}function X2(Z,M){while(!M.reading&&!M.ended&&(M.length<M.highWaterMark||M.flowing&&M.length===0)){let n=M.length;if(N("maybeReadMore read 0"),Z.read(0),n===M.length)break}M.readingMore=!1}l.prototype._read=function(Z){throw new O("_read()")},l.prototype.pipe=function(Z,M){let n=this,J0=this._readableState;if(J0.pipes.length===1){if(!J0.multiAwaitDrain)J0.multiAwaitDrain=!0,J0.awaitDrainWriters=new j(J0.awaitDrainWriters?[J0.awaitDrainWriters]:[])}J0.pipes.push(Z),N("pipe count=%d opts=%j",J0.pipes.length,M);let K0=(!M||M.end!==!1)&&Z!==$.stdout&&Z!==$.stderr?i0:_1;if(J0.endEmitted)$.nextTick(K0);else n.once("end",K0);Z.on("unpipe",S0);function S0(m2,j2){if(N("onunpipe"),m2===n){if(j2&&j2.hasUnpiped===!1)j2.hasUnpiped=!0,SX()}}function i0(){N("onend"),Z.end()}let c2,I4=!1;function SX(){if(N("cleanup"),Z.removeListener("close",D8),Z.removeListener("finish",A8),c2)Z.removeListener("drain",c2);if(Z.removeListener("error",C8),Z.removeListener("unpipe",S0),n.removeListener("end",i0),n.removeListener("end",_1),n.removeListener("data",O4),I4=!0,c2&&J0.awaitDrainWriters&&(!Z._writableState||Z._writableState.needDrain))c2()}function N4(){if(!I4){if(J0.pipes.length===1&&J0.pipes[0]===Z)N("false write response, pause",0),J0.awaitDrainWriters=Z,J0.multiAwaitDrain=!1;else if(J0.pipes.length>1&&J0.pipes.includes(Z))N("false write response, pause",J0.awaitDrainWriters.size),J0.awaitDrainWriters.add(Z);n.pause()}if(!c2)c2=CX(n,Z),Z.on("drain",c2)}n.on("data",O4);function O4(m2){N("ondata");let j2=Z.write(m2);if(N("dest.write",j2),j2===!1)N4()}function C8(m2){if(N("onerror",m2),_1(),Z.removeListener("error",C8),Z.listenerCount("error")===0){let j2=Z._writableState||Z._readableState;if(j2&&!j2.errorEmitted)I(Z,m2);else Z.emit("error",m2)}}F(Z,"error",C8);function D8(){Z.removeListener("finish",A8),_1()}Z.once("close",D8);function A8(){N("onfinish"),Z.removeListener("close",D8),_1()}Z.once("finish",A8);function _1(){N("unpipe"),n.unpipe(Z)}if(Z.emit("pipe",n),Z.writableNeedDrain===!0)N4();else if(!J0.flowing)N("pipe resume"),n.resume();return Z};function CX(Z,M){return function(){let n=Z._readableState;if(n.awaitDrainWriters===M)N("pipeOnDrain",1),n.awaitDrainWriters=null;else if(n.multiAwaitDrain)N("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(M);if((!n.awaitDrainWriters||n.awaitDrainWriters.size===0)&&Z.listenerCount("data"))Z.resume()}}l.prototype.unpipe=function(Z){let M=this._readableState,n={hasUnpiped:!1};if(M.pipes.length===0)return this;if(!Z){let K0=M.pipes;M.pipes=[],this.pause();for(let S0=0;S0<K0.length;S0++)K0[S0].emit("unpipe",this,{hasUnpiped:!1});return this}let J0=X(M.pipes,Z);if(J0===-1)return this;if(M.pipes.splice(J0,1),M.pipes.length===0)this.pause();return Z.emit("unpipe",this,n),this},l.prototype.on=function(Z,M){let n=w.prototype.on.call(this,Z,M),J0=this._readableState;if(Z==="data"){if(J0.readableListening=this.listenerCount("readable")>0,J0.flowing!==!1)this.resume()}else if(Z==="readable"){if(!J0.endEmitted&&!J0.readableListening){if(J0.readableListening=J0.needReadable=!0,J0.flowing=!1,J0.emittedReadable=!1,N("on readable",J0.length,J0.reading),J0.length)h0(this);else if(!J0.reading)$.nextTick(DX,this)}}return n},l.prototype.addListener=l.prototype.on,l.prototype.removeListener=function(Z,M){let n=w.prototype.removeListener.call(this,Z,M);if(Z==="readable")$.nextTick(P4,this);return n},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(Z){let M=w.prototype.removeAllListeners.apply(this,arguments);if(Z==="readable"||Z===void 0)$.nextTick(P4,this);return M};function P4(Z){let M=Z._readableState;if(M.readableListening=Z.listenerCount("readable")>0,M.resumeScheduled&&M[X0]===!1)M.flowing=!0;else if(Z.listenerCount("data")>0)Z.resume();else if(!M.readableListening)M.flowing=null}function DX(Z){N("readable nexttick read 0"),Z.read(0)}l.prototype.resume=function(){let Z=this._readableState;if(!Z.flowing)N("resume"),Z.flowing=!Z.readableListening,AX(this,Z);return Z[X0]=!1,this};function AX(Z,M){if(!M.resumeScheduled)M.resumeScheduled=!0,$.nextTick(RX,Z,M)}function RX(Z,M){if(N("resume",M.reading),!M.reading)Z.read(0);if(M.resumeScheduled=!1,Z.emit("resume"),M4(Z),M.flowing&&!M.reading)Z.read(0)}l.prototype.pause=function(){if(N("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)N("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[X0]=!0,this};function M4(Z){let M=Z._readableState;N("flow",M.flowing);while(M.flowing&&Z.read()!==null);}l.prototype.wrap=function(Z){let M=!1;Z.on("data",(J0)=>{if(!this.push(J0)&&Z.pause)M=!0,Z.pause()}),Z.on("end",()=>{this.push(null)}),Z.on("error",(J0)=>{I(this,J0)}),Z.on("close",()=>{this.destroy()}),Z.on("destroy",()=>{this.destroy()}),this._read=()=>{if(M&&Z.resume)M=!1,Z.resume()};let n=U(Z);for(let J0=1;J0<n.length;J0++){let K0=n[J0];if(this[K0]===void 0&&typeof Z[K0]==="function")this[K0]=Z[K0].bind(Z)}return this},l.prototype[H]=function(){return L4(this)},l.prototype.iterator=function(Z){if(Z!==void 0)e(Z,"options");return L4(this,Z)};function L4(Z,M){if(typeof Z.read!=="function")Z=l.wrap(Z,{objectMode:!0});let n=TX(Z,M);return n.stream=Z,n}async function*TX(Z,M){let n=V0;function J0(i0){if(this===Z)n(),n=V0;else n=i0}Z.on("readable",J0);let K0,S0=L(Z,{writable:!1},(i0)=>{K0=i0?v(K0,i0):null,n(),n=V0});try{while(!0){let i0=Z.destroyed?null:Z.read();if(i0!==null)yield i0;else if(K0)throw K0;else if(K0===null)return;else await new B(J0)}}catch(i0){throw K0=v(K0,i0),K0}finally{if((K0||(M===null||M===void 0?void 0:M.destroyOnReturn)!==!1)&&(K0===void 0||Z._readableState.autoDestroy))d.destroyer(Z,null);else Z.off("readable",J0),S0()}}q(l.prototype,{readable:{__proto__:null,get(){let Z=this._readableState;return!!Z&&Z.readable!==!1&&!Z.destroyed&&!Z.errorEmitted&&!Z.endEmitted},set(Z){if(this._readableState)this._readableState.readable=!!Z}},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(Z){if(this._readableState)this._readableState.flowing=Z}},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(Z){if(!this._readableState)return;this._readableState.destroyed=Z}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),q(Q0.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[X0]!==!1},set(Z){this[X0]=!!Z}}}),l._fromList=F4;function F4(Z,M){if(M.length===0)return null;let n;if(M.objectMode)n=M.buffer.shift();else if(!Z||Z>=M.length){if(M.decoder)n=M.buffer.join("");else if(M.buffer.length===1)n=M.buffer.first();else n=M.buffer.concat(M.length);M.buffer.clear()}else n=M.buffer.consume(Z,M.decoder);return n}function N8(Z){let M=Z._readableState;if(N("endReadable",M.endEmitted),!M.endEmitted)M.ended=!0,$.nextTick(kX,M,Z)}function kX(Z,M){if(N("endReadableNT",Z.endEmitted,Z.length),!Z.errored&&!Z.closeEmitted&&!Z.endEmitted&&Z.length===0){if(Z.endEmitted=!0,M.emit("end"),M.writable&&M.allowHalfOpen===!1)$.nextTick(EX,M);else if(Z.autoDestroy){let n=M._writableState;if(!n||n.autoDestroy&&(n.finished||n.writable===!1))M.destroy()}}}function EX(Z){if(Z.writable&&!Z.writableEnded&&!Z.destroyed)Z.end()}l.from=function(Z,M){return p(l,Z,M)};var O8;function w4(){if(O8===void 0)O8={};return O8}l.fromWeb=function(Z,M){return w4().newStreamReadableFromReadableStream(Z,M)},l.toWeb=function(Z,M){return w4().newReadableStreamFromStreamReadable(Z,M)},l.wrap=function(Z,M){var n,J0;return new l({objectMode:(n=(J0=Z.readableObjectMode)!==null&&J0!==void 0?J0:Z.objectMode)!==null&&n!==void 0?n:!0,...M,destroy(K0,S0){d.destroyer(Z,K0),S0(K0)}}).wrap(Z)}}),r8=M0((Q,J)=>{var $=o2(),{ArrayPrototypeSlice:X,Error:K,FunctionPrototypeSymbolHasInstance:Y,ObjectDefineProperty:V,ObjectDefineProperties:q,ObjectSetPrototypeOf:U,StringPrototypeToLowerCase:G,Symbol:B,SymbolHasInstance:j}=N0();J.exports=e,e.WritableState=T;var{EventEmitter:W}=(r1(),u0(n1)),H=n8().Stream,{Buffer:S}=(L2(),u0(M2)),A=P1(),{addAbortSignal:w}=x6(),{getHighWaterMark:F,getDefaultHighWaterMark:z}=g6(),{ERR_INVALID_ARG_TYPE:P,ERR_METHOD_NOT_IMPLEMENTED:L,ERR_MULTIPLE_CALLBACK:N,ERR_STREAM_CANNOT_PIPE:x,ERR_STREAM_DESTROYED:d,ERR_STREAM_ALREADY_FINISHED:i,ERR_STREAM_NULL_VALUES:_,ERR_STREAM_WRITE_AFTER_END:v,ERR_UNKNOWN_ENCODING:k}=x0().codes,{errorOrDestroy:O}=A;U(e.prototype,H.prototype),U(e,H);function E(){}var g=B("kOnFinished");function T(C,R,h){if(typeof h!=="boolean")h=R instanceof F2();if(this.objectMode=!!(C&&C.objectMode),h)this.objectMode=this.objectMode||!!(C&&C.writableObjectMode);this.highWaterMark=C?F(this,C,"writableHighWaterMark",h):z(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let r=!!(C&&C.decodeStrings===!1);this.decodeStrings=!r,this.defaultEncoding=C&&C.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=I.bind(void 0,R),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,o(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!C||C.emitClose!==!1,this.autoDestroy=!C||C.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[g]=[]}function o(C){C.buffered=[],C.bufferedIndex=0,C.allBuffers=!0,C.allNoop=!0}T.prototype.getBuffer=function(){return X(this.buffered,this.bufferedIndex)},V(T.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function e(C){let R=this instanceof F2();if(!R&&!Y(e,this))return new e(C);if(this._writableState=new T(C,this,R),C){if(typeof C.write==="function")this._write=C.write;if(typeof C.writev==="function")this._writev=C.writev;if(typeof C.destroy==="function")this._destroy=C.destroy;if(typeof C.final==="function")this._final=C.final;if(typeof C.construct==="function")this._construct=C.construct;if(C.signal)w(C.signal,this)}H.call(this,C),A.construct(this,()=>{let h=this._writableState;if(!h.writing)Y0(this,h);b(this,h)})}V(e,j,{__proto__:null,value:function(C){if(Y(this,C))return!0;if(this!==e)return!1;return C&&C._writableState instanceof T}}),e.prototype.pipe=function(){O(this,new x)};function X0(C,R,h,r){let t=C._writableState;if(typeof h==="function")r=h,h=t.defaultEncoding;else{if(!h)h=t.defaultEncoding;else if(h!=="buffer"&&!S.isEncoding(h))throw new k(h);if(typeof r!=="function")r=E}if(R===null)throw new _;else if(!t.objectMode)if(typeof R==="string"){if(t.decodeStrings!==!1)R=S.from(R,h),h="buffer"}else if(R instanceof S)h="buffer";else if(H._isUint8Array(R))R=H._uint8ArrayToBuffer(R),h="buffer";else throw new P("chunk",["string","Buffer","Uint8Array"],R);let s;if(t.ending)s=new v;else if(t.destroyed)s=new d("write");if(s)return $.nextTick(r,s),O(C,s,!0),s;return t.pendingcb++,W0(C,t,R,h,r)}e.prototype.write=function(C,R,h){return X0(this,C,R,h)===!0},e.prototype.cork=function(){this._writableState.corked++},e.prototype.uncork=function(){let C=this._writableState;if(C.corked){if(C.corked--,!C.writing)Y0(this,C)}},e.prototype.setDefaultEncoding=function(C){if(typeof C==="string")C=G(C);if(!S.isEncoding(C))throw new k(C);return this._writableState.defaultEncoding=C,this};function W0(C,R,h,r,t){let s=R.objectMode?1:h.length;R.length+=s;let D=R.length<R.highWaterMark;if(!D)R.needDrain=!0;if(R.writing||R.corked||R.errored||!R.constructed){if(R.buffered.push({chunk:h,encoding:r,callback:t}),R.allBuffers&&r!=="buffer")R.allBuffers=!1;if(R.allNoop&&t!==E)R.allNoop=!1}else R.writelen=s,R.writecb=t,R.writing=!0,R.sync=!0,C._write(h,r,R.onwrite),R.sync=!1;return D&&!R.errored&&!R.destroyed}function p(C,R,h,r,t,s,D){if(R.writelen=r,R.writecb=D,R.writing=!0,R.sync=!0,R.destroyed)R.onwrite(new d("write"));else if(h)C._writev(t,R.onwrite);else C._write(t,s,R.onwrite);R.sync=!1}function V0(C,R,h,r){--R.pendingcb,r(h),f(R),O(C,h)}function I(C,R){let h=C._writableState,r=h.sync,t=h.writecb;if(typeof t!=="function"){O(C,new N);return}if(h.writing=!1,h.writecb=null,h.length-=h.writelen,h.writelen=0,R){if(R.stack,!h.errored)h.errored=R;if(C._readableState&&!C._readableState.errored)C._readableState.errored=R;if(r)$.nextTick(V0,C,h,R,t);else V0(C,h,R,t)}else{if(h.buffered.length>h.bufferedIndex)Y0(C,h);if(r)if(h.afterWriteTickInfo!==null&&h.afterWriteTickInfo.cb===t)h.afterWriteTickInfo.count++;else h.afterWriteTickInfo={count:1,cb:t,stream:C,state:h},$.nextTick(c,h.afterWriteTickInfo);else $0(C,h,1,t)}}function c({stream:C,state:R,count:h,cb:r}){return R.afterWriteTickInfo=null,$0(C,R,h,r)}function $0(C,R,h,r){if(!R.ending&&!C.destroyed&&R.length===0&&R.needDrain)R.needDrain=!1,C.emit("drain");while(h-- >0)R.pendingcb--,r();if(R.destroyed)f(R);b(C,R)}function f(C){if(C.writing)return;for(let t=C.bufferedIndex;t<C.buffered.length;++t){var R;let{chunk:s,callback:D}=C.buffered[t],m=C.objectMode?1:s.length;C.length-=m,D((R=C.errored)!==null&&R!==void 0?R:new d("write"))}let h=C[g].splice(0);for(let t=0;t<h.length;t++){var r;h[t]((r=C.errored)!==null&&r!==void 0?r:new d("end"))}o(C)}function Y0(C,R){if(R.corked||R.bufferProcessing||R.destroyed||!R.constructed)return;let{buffered:h,bufferedIndex:r,objectMode:t}=R,s=h.length-r;if(!s)return;let D=r;if(R.bufferProcessing=!0,s>1&&C._writev){R.pendingcb-=s-1;let m=R.allNoop?E:(l)=>{for(let q0=D;q0<h.length;++q0)h[q0].callback(l)},Q0=R.allNoop&&D===0?h:X(h,D);Q0.allBuffers=R.allBuffers,p(C,R,!0,R.length,Q0,"",m),o(R)}else{do{let{chunk:m,encoding:Q0,callback:l}=h[D];h[D++]=null;let q0=t?1:m.length;p(C,R,!1,q0,m,Q0,l)}while(D<h.length&&!R.writing);if(D===h.length)o(R);else if(D>256)h.splice(0,D),R.bufferedIndex=0;else R.bufferedIndex=D}R.bufferProcessing=!1}e.prototype._write=function(C,R,h){if(this._writev)this._writev([{chunk:C,encoding:R}],h);else throw new L("_write()")},e.prototype._writev=null,e.prototype.end=function(C,R,h){let r=this._writableState;if(typeof C==="function")h=C,C=null,R=null;else if(typeof R==="function")h=R,R=null;let t;if(C!==null&&C!==void 0){let s=X0(this,C,R);if(s instanceof K)t=s}if(r.corked)r.corked=1,this.uncork();if(t);else if(!r.errored&&!r.ending)r.ending=!0,b(this,r,!0),r.ended=!0;else if(r.finished)t=new i("end");else if(r.destroyed)t=new d("end");if(typeof h==="function")if(t||r.finished)$.nextTick(h,t);else r[g].push(h);return this};function G0(C){return C.ending&&!C.destroyed&&C.constructed&&C.length===0&&!C.errored&&C.buffered.length===0&&!C.finished&&!C.writing&&!C.errorEmitted&&!C.closeEmitted}function H0(C,R){let h=!1;function r(t){if(h){O(C,t!==null&&t!==void 0?t:N());return}if(h=!0,R.pendingcb--,t){let s=R[g].splice(0);for(let D=0;D<s.length;D++)s[D](t);O(C,t,R.sync)}else if(G0(R))R.prefinished=!0,C.emit("prefinish"),R.pendingcb++,$.nextTick(u,C,R)}R.sync=!0,R.pendingcb++;try{C._final(r)}catch(t){r(t)}R.sync=!1}function Z0(C,R){if(!R.prefinished&&!R.finalCalled)if(typeof C._final==="function"&&!R.destroyed)R.finalCalled=!0,H0(C,R);else R.prefinished=!0,C.emit("prefinish")}function b(C,R,h){if(G0(R)){if(Z0(C,R),R.pendingcb===0){if(h)R.pendingcb++,$.nextTick((r,t)=>{if(G0(t))u(r,t);else t.pendingcb--},C,R);else if(G0(R))R.pendingcb++,u(C,R)}}}function u(C,R){R.pendingcb--,R.finished=!0;let h=R[g].splice(0);for(let r=0;r<h.length;r++)h[r]();if(C.emit("finish"),R.autoDestroy){let r=C._readableState;if(!r||r.autoDestroy&&(r.endEmitted||r.readable===!1))C.destroy()}}q(e.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(C){if(this._writableState)this._writableState.destroyed=C}},writable:{__proto__:null,get(){let C=this._writableState;return!!C&&C.writable!==!1&&!C.destroyed&&!C.errored&&!C.ending&&!C.ended},set(C){if(this._writableState)this._writableState.writable=!!C}},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 C=this._writableState;if(!C)return!1;return!C.destroyed&&!C.ending&&C.needDrain}},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 a=A.destroy;e.prototype.destroy=function(C,R){let h=this._writableState;if(!h.destroyed&&(h.bufferedIndex<h.buffered.length||h[g].length))$.nextTick(f,h);return a.call(this,C,R),this},e.prototype._undestroy=A.undestroy,e.prototype._destroy=function(C,R){R(C)},e.prototype[W.captureRejectionSymbol]=function(C){this.destroy(C)};var U0;function z0(){if(U0===void 0)U0={};return U0}e.fromWeb=function(C,R){return z0().newStreamWritableFromWritableStream(C,R)},e.toWeb=function(C){return z0().newWritableStreamFromStreamWritable(C)}}),tY=M0((Q,J)=>{var $=o2(),X=(L2(),u0(M2)),{isReadable:K,isWritable:Y,isIterable:V,isNodeStream:q,isReadableNodeStream:U,isWritableNodeStream:G,isDuplexNodeStream:B,isReadableStream:j,isWritableStream:W}=w2(),H=k2(),{AbortError:S,codes:{ERR_INVALID_ARG_TYPE:A,ERR_INVALID_RETURN_VALUE:w}}=x0(),{destroyer:F}=P1(),z=F2(),P=y6(),L=r8(),{createDeferredPromise:N}=_0(),x=c7(),d=globalThis.Blob||X.Blob,i=typeof d<"u"?function(g){return g instanceof d}:function(g){return!1},_=globalThis.AbortController||o1().AbortController,{FunctionPrototypeCall:v}=N0();class k extends z{constructor(g){super(g);if((g===null||g===void 0?void 0:g.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((g===null||g===void 0?void 0:g.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}J.exports=function g(T,o){if(B(T))return T;if(U(T))return E({readable:T});if(G(T))return E({writable:T});if(q(T))return E({writable:!1,readable:!1});if(j(T))return E({readable:P.fromWeb(T)});if(W(T))return E({writable:L.fromWeb(T)});if(typeof T==="function"){let{value:X0,write:W0,final:p,destroy:V0}=O(T);if(V(X0))return x(k,X0,{objectMode:!0,write:W0,final:p,destroy:V0});let I=X0===null||X0===void 0?void 0:X0.then;if(typeof I==="function"){let c,$0=v(I,X0,(f)=>{if(f!=null)throw new w("nully","body",f)},(f)=>{F(c,f)});return c=new k({objectMode:!0,readable:!1,write:W0,final(f){p(async()=>{try{await $0,$.nextTick(f,null)}catch(Y0){$.nextTick(f,Y0)}})},destroy:V0})}throw new w("Iterable, AsyncIterable or AsyncFunction",o,X0)}if(i(T))return g(T.arrayBuffer());if(V(T))return x(k,T,{objectMode:!0,writable:!1});if(j(T===null||T===void 0?void 0:T.readable)&&W(T===null||T===void 0?void 0:T.writable))return k.fromWeb(T);if(typeof(T===null||T===void 0?void 0:T.writable)==="object"||typeof(T===null||T===void 0?void 0:T.readable)==="object"){let X0=T!==null&&T!==void 0&&T.readable?U(T===null||T===void 0?void 0:T.readable)?T===null||T===void 0?void 0:T.readable:g(T.readable):void 0,W0=T!==null&&T!==void 0&&T.writable?G(T===null||T===void 0?void 0:T.writable)?T===null||T===void 0?void 0:T.writable:g(T.writable):void 0;return E({readable:X0,writable:W0})}let e=T===null||T===void 0?void 0:T.then;if(typeof e==="function"){let X0;return v(e,T,(W0)=>{if(W0!=null)X0.push(W0);X0.push(null)},(W0)=>{F(X0,W0)}),X0=new k({objectMode:!0,writable:!1,read(){}})}throw new A(o,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],T)};function O(g){let{promise:T,resolve:o}=N(),e=new _,X0=e.signal;return{value:g(async function*(){while(!0){let W0=T;T=null;let{chunk:p,done:V0,cb:I}=await W0;if($.nextTick(I),V0)return;if(X0.aborted)throw new S(void 0,{cause:X0.reason});({promise:T,resolve:o}=N()),yield p}}(),{signal:X0}),write(W0,p,V0){let I=o;o=null,I({chunk:W0,done:!1,cb:V0})},final(W0){let p=o;o=null,p({done:!0,cb:W0})},destroy(W0,p){e.abort(),p(W0)}}}function E(g){let T=g.readable&&typeof g.readable.read!=="function"?P.wrap(g.readable):g.readable,o=g.writable,e=!!K(T),X0=!!Y(o),W0,p,V0,I,c;function $0(f){let Y0=I;if(I=null,Y0)Y0(f);else if(f)c.destroy(f)}if(c=new k({readableObjectMode:!!(T!==null&&T!==void 0&&T.readableObjectMode),writableObjectMode:!!(o!==null&&o!==void 0&&o.writableObjectMode),readable:e,writable:X0}),X0)H(o,(f)=>{if(X0=!1,f)F(T,f);$0(f)}),c._write=function(f,Y0,G0){if(o.write(f,Y0))G0();else W0=G0},c._final=function(f){o.end(),p=f},o.on("drain",function(){if(W0){let f=W0;W0=null,f()}}),o.on("finish",function(){if(p){let f=p;p=null,f()}});if(e)H(T,(f)=>{if(e=!1,f)F(T,f);$0(f)}),T.on("readable",function(){if(V0){let f=V0;V0=null,f()}}),T.on("end",function(){c.push(null)}),c._read=function(){while(!0){let f=T.read();if(f===null){V0=c._read;return}if(!c.push(f))return}};return c._destroy=function(f,Y0){if(!f&&I!==null)f=new S;if(V0=null,W0=null,p=null,I===null)Y0(f);else I=Y0,F(o,f),F(T,f)},c}}),F2=M0((Q,J)=>{var{ObjectDefineProperties:$,ObjectGetOwnPropertyDescriptor:X,ObjectKeys:K,ObjectSetPrototypeOf:Y}=N0();J.exports=U;var V=y6(),q=r8();Y(U.prototype,V.prototype),Y(U,V);{let W=K(q.prototype);for(let H=0;H<W.length;H++){let S=W[H];if(!U.prototype[S])U.prototype[S]=q.prototype[S]}}function U(W){if(!(this instanceof U))return new U(W);if(V.call(this,W),q.call(this,W),W){if(this.allowHalfOpen=W.allowHalfOpen!==!1,W.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(W.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}$(U.prototype,{writable:{__proto__:null,...X(q.prototype,"writable")},writableHighWaterMark:{__proto__:null,...X(q.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...X(q.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...X(q.prototype,"writableBuffer")},writableLength:{__proto__:null,...X(q.prototype,"writableLength")},writableFinished:{__proto__:null,...X(q.prototype,"writableFinished")},writableCorked:{__proto__:null,...X(q.prototype,"writableCorked")},writableEnded:{__proto__:null,...X(q.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...X(q.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(W){if(this._readableState&&this._writableState)this._readableState.destroyed=W,this._writableState.destroyed=W}}});var G;function B(){if(G===void 0)G={};return G}U.fromWeb=function(W,H){return B().newStreamDuplexFromReadableWritablePair(W,H)},U.toWeb=function(W){return B().newReadableWritablePairFromDuplex(W)};var j;U.from=function(W){if(!j)j=tY();return j(W,"body")}}),m7=M0((Q,J)=>{var{ObjectSetPrototypeOf:$,Symbol:X}=N0();J.exports=U;var{ERR_METHOD_NOT_IMPLEMENTED:K}=x0().codes,Y=F2(),{getHighWaterMark:V}=g6();$(U.prototype,Y.prototype),$(U,Y);var q=X("kCallback");function U(j){if(!(this instanceof U))return new U(j);let W=j?V(this,j,"readableHighWaterMark",!0):null;if(W===0)j={...j,highWaterMark:null,readableHighWaterMark:W,writableHighWaterMark:j.writableHighWaterMark||0};if(Y.call(this,j),this._readableState.sync=!1,this[q]=null,j){if(typeof j.transform==="function")this._transform=j.transform;if(typeof j.flush==="function")this._flush=j.flush}this.on("prefinish",B)}function G(j){if(typeof this._flush==="function"&&!this.destroyed)this._flush((W,H)=>{if(W){if(j)j(W);else this.destroy(W);return}if(H!=null)this.push(H);if(this.push(null),j)j()});else if(this.push(null),j)j()}function B(){if(this._final!==G)G.call(this)}U.prototype._final=G,U.prototype._transform=function(j,W,H){throw new K("_transform()")},U.prototype._write=function(j,W,H){let S=this._readableState,A=this._writableState,w=S.length;this._transform(j,W,(F,z)=>{if(F){H(F);return}if(z!=null)this.push(z);if(A.ended||w===S.length||S.length<S.highWaterMark)H();else this[q]=H})},U.prototype._read=function(){if(this[q]){let j=this[q];this[q]=null,j()}}}),d7=M0((Q,J)=>{var{ObjectSetPrototypeOf:$}=N0();J.exports=K;var X=m7();$(K.prototype,X.prototype),$(K,X);function K(Y){if(!(this instanceof K))return new K(Y);X.call(this,Y)}K.prototype._transform=function(Y,V,q){q(null,Y)}}),o8=M0((Q,J)=>{var $=o2(),{ArrayIsArray:X,Promise:K,SymbolAsyncIterator:Y,SymbolDispose:V}=N0(),q=k2(),{once:U}=_0(),G=P1(),B=F2(),{aggregateTwoErrors:j,codes:{ERR_INVALID_ARG_TYPE:W,ERR_INVALID_RETURN_VALUE:H,ERR_MISSING_ARGS:S,ERR_STREAM_DESTROYED:A,ERR_STREAM_PREMATURE_CLOSE:w},AbortError:F}=x0(),{validateFunction:z,validateAbortSignal:P}=a1(),{isIterable:L,isReadable:N,isReadableNodeStream:x,isNodeStream:d,isTransformStream:i,isWebStream:_,isReadableStream:v,isReadableFinished:k}=w2(),O=globalThis.AbortController||o1().AbortController,E,g,T;function o(f,Y0,G0){let H0=!1;f.on("close",()=>{H0=!0});let Z0=q(f,{readable:Y0,writable:G0},(b)=>{H0=!b});return{destroy:(b)=>{if(H0)return;H0=!0,G.destroyer(f,b||new A("pipe"))},cleanup:Z0}}function e(f){return z(f[f.length-1],"streams[stream.length - 1]"),f.pop()}function X0(f){if(L(f))return f;else if(x(f))return W0(f);throw new W("val",["Readable","Iterable","AsyncIterable"],f)}async function*W0(f){if(!g)g=y6();yield*g.prototype[Y].call(f)}async function p(f,Y0,G0,{end:H0}){let Z0,b=null,u=(z0)=>{if(z0)Z0=z0;if(b){let C=b;b=null,C()}},a=()=>new K((z0,C)=>{if(Z0)C(Z0);else b=()=>{if(Z0)C(Z0);else z0()}});Y0.on("drain",u);let U0=q(Y0,{readable:!1},u);try{if(Y0.writableNeedDrain)await a();for await(let z0 of f)if(!Y0.write(z0))await a();if(H0)Y0.end(),await a();G0()}catch(z0){G0(Z0!==z0?j(Z0,z0):z0)}finally{U0(),Y0.off("drain",u)}}async function V0(f,Y0,G0,{end:H0}){if(i(Y0))Y0=Y0.writable;let Z0=Y0.getWriter();try{for await(let b of f)await Z0.ready,Z0.write(b).catch(()=>{});if(await Z0.ready,H0)await Z0.close();G0()}catch(b){try{await Z0.abort(b),G0(b)}catch(u){G0(u)}}}function I(...f){return c(f,U(e(f)))}function c(f,Y0,G0){if(f.length===1&&X(f[0]))f=f[0];if(f.length<2)throw new S("streams");let H0=new O,Z0=H0.signal,b=G0===null||G0===void 0?void 0:G0.signal,u=[];P(b,"options.signal");function a(){t(new F)}T=T||_0().addAbortListener;let U0;if(b)U0=T(b,a);let z0,C,R=[],h=0;function r(l){t(l,--h===0)}function t(l,q0){var L0;if(l&&(!z0||z0.code==="ERR_STREAM_PREMATURE_CLOSE"))z0=l;if(!z0&&!q0)return;while(R.length)R.shift()(z0);if((L0=U0)===null||L0===void 0||L0[V](),H0.abort(),q0){if(!z0)u.forEach((d0)=>d0());$.nextTick(Y0,z0,C)}}let s;for(let l=0;l<f.length;l++){let q0=f[l],L0=l<f.length-1,d0=l>0,l0=L0||(G0===null||G0===void 0?void 0:G0.end)!==!1,p2=l===f.length-1;if(d(q0)){let E0=function(h0){if(h0&&h0.name!=="AbortError"&&h0.code!=="ERR_STREAM_PREMATURE_CLOSE")r(h0)};var D=E0;if(l0){let{destroy:h0,cleanup:U1}=o(q0,L0,d0);if(R.push(h0),N(q0)&&p2)u.push(U1)}if(q0.on("error",E0),N(q0)&&p2)u.push(()=>{q0.removeListener("error",E0)})}if(l===0)if(typeof q0==="function"){if(s=q0({signal:Z0}),!L(s))throw new H("Iterable, AsyncIterable or Stream","source",s)}else if(L(q0)||x(q0)||i(q0))s=q0;else s=B.from(q0);else if(typeof q0==="function"){if(i(s)){var m;s=X0((m=s)===null||m===void 0?void 0:m.readable)}else s=X0(s);if(s=q0(s,{signal:Z0}),L0){if(!L(s,!0))throw new H("AsyncIterable",`transform[${l-1}]`,s)}else{var Q0;if(!E)E=d7();let E0=new E({objectMode:!0}),h0=(Q0=s)===null||Q0===void 0?void 0:Q0.then;if(typeof h0==="function")h++,h0.call(s,(X2)=>{if(C=X2,X2!=null)E0.write(X2);if(l0)E0.end();$.nextTick(r)},(X2)=>{E0.destroy(X2),$.nextTick(r,X2)});else if(L(s,!0))h++,p(s,E0,r,{end:l0});else if(v(s)||i(s)){let X2=s.readable||s;h++,p(X2,E0,r,{end:l0})}else throw new H("AsyncIterable or Promise","destination",s);s=E0;let{destroy:U1,cleanup:z1}=o(s,!1,!0);if(R.push(U1),p2)u.push(z1)}}else if(d(q0)){if(x(s)){h+=2;let E0=$0(s,q0,r,{end:l0});if(N(q0)&&p2)u.push(E0)}else if(i(s)||v(s)){let E0=s.readable||s;h++,p(E0,q0,r,{end:l0})}else if(L(s))h++,p(s,q0,r,{end:l0});else throw new W("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],s);s=q0}else if(_(q0)){if(x(s))h++,V0(X0(s),q0,r,{end:l0});else if(v(s)||L(s))h++,V0(s,q0,r,{end:l0});else if(i(s))h++,V0(s.readable,q0,r,{end:l0});else throw new W("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],s);s=q0}else s=B.from(q0)}if(Z0!==null&&Z0!==void 0&&Z0.aborted||b!==null&&b!==void 0&&b.aborted)$.nextTick(a);return s}function $0(f,Y0,G0,{end:H0}){let Z0=!1;if(Y0.on("close",()=>{if(!Z0)G0(new w)}),f.pipe(Y0,{end:!1}),H0){let u=function(){Z0=!0,Y0.end()};var b=u;if(k(f))$.nextTick(u);else f.once("end",u)}else G0();return q(f,{readable:!0,writable:!1},(u)=>{let a=f._readableState;if(u&&u.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted)f.once("end",G0).once("error",G0);else G0(u)}),q(Y0,{readable:!1,writable:!0},G0)}J.exports={pipelineImpl:c,pipeline:I}}),l7=M0((Q,J)=>{var{pipeline:$}=o8(),X=F2(),{destroyer:K}=P1(),{isNodeStream:Y,isReadable:V,isWritable:q,isWebStream:U,isTransformStream:G,isWritableStream:B,isReadableStream:j}=w2(),{AbortError:W,codes:{ERR_INVALID_ARG_VALUE:H,ERR_MISSING_ARGS:S}}=x0(),A=k2();J.exports=function(...w){if(w.length===0)throw new S("streams");if(w.length===1)return X.from(w[0]);let F=[...w];if(typeof w[0]==="function")w[0]=X.from(w[0]);if(typeof w[w.length-1]==="function"){let O=w.length-1;w[O]=X.from(w[O])}for(let O=0;O<w.length;++O){if(!Y(w[O])&&!U(w[O]))continue;if(O<w.length-1&&!(V(w[O])||j(w[O])||G(w[O])))throw new H(`streams[${O}]`,F[O],"must be readable");if(O>0&&!(q(w[O])||B(w[O])||G(w[O])))throw new H(`streams[${O}]`,F[O],"must be writable")}let z,P,L,N,x;function d(O){let E=N;if(N=null,E)E(O);else if(O)x.destroy(O);else if(!k&&!v)x.destroy()}let i=w[0],_=$(w,d),v=!!(q(i)||B(i)||G(i)),k=!!(V(_)||j(_)||G(_));if(x=new X({writableObjectMode:!!(i!==null&&i!==void 0&&i.writableObjectMode),readableObjectMode:!!(_!==null&&_!==void 0&&_.readableObjectMode),writable:v,readable:k}),v){if(Y(i))x._write=function(E,g,T){if(i.write(E,g))T();else z=T},x._final=function(E){i.end(),P=E},i.on("drain",function(){if(z){let E=z;z=null,E()}});else if(U(i)){let E=(G(i)?i.writable:i).getWriter();x._write=async function(g,T,o){try{await E.ready,E.write(g).catch(()=>{}),o()}catch(e){o(e)}},x._final=async function(g){try{await E.ready,E.close().catch(()=>{}),P=g}catch(T){g(T)}}}let O=G(_)?_.readable:_;A(O,()=>{if(P){let E=P;P=null,E()}})}if(k){if(Y(_))_.on("readable",function(){if(L){let O=L;L=null,O()}}),_.on("end",function(){x.push(null)}),x._read=function(){while(!0){let O=_.read();if(O===null){L=x._read;return}if(!x.push(O))return}};else if(U(_)){let O=(G(_)?_.readable:_).getReader();x._read=async function(){while(!0)try{let{value:E,done:g}=await O.read();if(!x.push(E))return;if(g){x.push(null);return}}catch{return}}}}return x._destroy=function(O,E){if(!O&&N!==null)O=new W;if(L=null,z=null,P=null,N===null)E(O);else if(N=E,Y(_))K(_,O)},x}}),eY=M0((Q,J)=>{var $=globalThis.AbortController||o1().AbortController,{codes:{ERR_INVALID_ARG_VALUE:X,ERR_INVALID_ARG_TYPE:K,ERR_MISSING_ARGS:Y,ERR_OUT_OF_RANGE:V},AbortError:q}=x0(),{validateAbortSignal:U,validateInteger:G,validateObject:B}=a1(),j=N0().Symbol("kWeak"),W=N0().Symbol("kResistStopPropagation"),{finished:H}=k2(),S=l7(),{addAbortSignalNoValidate:A}=x6(),{isWritable:w,isNodeStream:F}=w2(),{deprecate:z}=_0(),{ArrayPrototypePush:P,Boolean:L,MathFloor:N,Number:x,NumberIsNaN:d,Promise:i,PromiseReject:_,PromiseResolve:v,PromisePrototypeThen:k,Symbol:O}=N0(),E=O("kEmpty"),g=O("kEof");function T(b,u){if(u!=null)B(u,"options");if((u===null||u===void 0?void 0:u.signal)!=null)U(u.signal,"options.signal");if(F(b)&&!w(b))throw new X("stream",b,"must be writable");let a=S(this,b);if(u!==null&&u!==void 0&&u.signal)A(u.signal,a);return a}function o(b,u){if(typeof b!=="function")throw new K("fn",["Function","AsyncFunction"],b);if(u!=null)B(u,"options");if((u===null||u===void 0?void 0:u.signal)!=null)U(u.signal,"options.signal");let a=1;if((u===null||u===void 0?void 0:u.concurrency)!=null)a=N(u.concurrency);let U0=a-1;if((u===null||u===void 0?void 0:u.highWaterMark)!=null)U0=N(u.highWaterMark);return G(a,"options.concurrency",1),G(U0,"options.highWaterMark",0),U0+=a,async function*(){let z0=_0().AbortSignalAny([u===null||u===void 0?void 0:u.signal].filter(L)),C=this,R=[],h={signal:z0},r,t,s=!1,D=0;function m(){s=!0,Q0()}function Q0(){D-=1,l()}function l(){if(t&&!s&&D<a&&R.length<U0)t(),t=null}async function q0(){try{for await(let L0 of C){if(s)return;if(z0.aborted)throw new q;try{if(L0=b(L0,h),L0===E)continue;L0=v(L0)}catch(d0){L0=_(d0)}if(D+=1,k(L0,Q0,m),R.push(L0),r)r(),r=null;if(!s&&(R.length>=U0||D>=a))await new i((d0)=>{t=d0})}R.push(g)}catch(L0){let d0=_(L0);k(d0,Q0,m),R.push(d0)}finally{if(s=!0,r)r(),r=null}}q0();try{while(!0){while(R.length>0){let L0=await R[0];if(L0===g)return;if(z0.aborted)throw new q;if(L0!==E)yield L0;R.shift(),l()}await new i((L0)=>{r=L0})}}finally{if(s=!0,t)t(),t=null}}.call(this)}function e(b=void 0){if(b!=null)B(b,"options");if((b===null||b===void 0?void 0:b.signal)!=null)U(b.signal,"options.signal");return async function*(){let u=0;for await(let U0 of this){var a;if(b!==null&&b!==void 0&&(a=b.signal)!==null&&a!==void 0&&a.aborted)throw new q({cause:b.signal.reason});yield[u++,U0]}}.call(this)}async function X0(b,u=void 0){for await(let a of I.call(this,b,u))return!0;return!1}async function W0(b,u=void 0){if(typeof b!=="function")throw new K("fn",["Function","AsyncFunction"],b);return!await X0.call(this,async(...a)=>{return!await b(...a)},u)}async function p(b,u){for await(let a of I.call(this,b,u))return a;return}async function V0(b,u){if(typeof b!=="function")throw new K("fn",["Function","AsyncFunction"],b);async function a(U0,z0){return await b(U0,z0),E}for await(let U0 of o.call(this,a,u));}function I(b,u){if(typeof b!=="function")throw new K("fn",["Function","AsyncFunction"],b);async function a(U0,z0){if(await b(U0,z0))return U0;return E}return o.call(this,a,u)}class c extends Y{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function $0(b,u,a){var U0;if(typeof b!=="function")throw new K("reducer",["Function","AsyncFunction"],b);if(a!=null)B(a,"options");if((a===null||a===void 0?void 0:a.signal)!=null)U(a.signal,"options.signal");let z0=arguments.length>1;if(a!==null&&a!==void 0&&(U0=a.signal)!==null&&U0!==void 0&&U0.aborted){let t=new q(void 0,{cause:a.signal.reason});throw this.once("error",()=>{}),await H(this.destroy(t)),t}let C=new $,R=C.signal;if(a!==null&&a!==void 0&&a.signal){let t={once:!0,[j]:this,[W]:!0};a.signal.addEventListener("abort",()=>C.abort(),t)}let h=!1;try{for await(let t of this){var r;if(h=!0,a!==null&&a!==void 0&&(r=a.signal)!==null&&r!==void 0&&r.aborted)throw new q;if(!z0)u=t,z0=!0;else u=await b(u,t,{signal:R})}if(!h&&!z0)throw new c}finally{C.abort()}return u}async function f(b){if(b!=null)B(b,"options");if((b===null||b===void 0?void 0:b.signal)!=null)U(b.signal,"options.signal");let u=[];for await(let U0 of this){var a;if(b!==null&&b!==void 0&&(a=b.signal)!==null&&a!==void 0&&a.aborted)throw new q(void 0,{cause:b.signal.reason});P(u,U0)}return u}function Y0(b,u){let a=o.call(this,b,u);return async function*(){for await(let U0 of a)yield*U0}.call(this)}function G0(b){if(b=x(b),d(b))return 0;if(b<0)throw new V("number",">= 0",b);return b}function H0(b,u=void 0){if(u!=null)B(u,"options");if((u===null||u===void 0?void 0:u.signal)!=null)U(u.signal,"options.signal");return b=G0(b),async function*(){var a;if(u!==null&&u!==void 0&&(a=u.signal)!==null&&a!==void 0&&a.aborted)throw new q;for await(let z0 of this){var U0;if(u!==null&&u!==void 0&&(U0=u.signal)!==null&&U0!==void 0&&U0.aborted)throw new q;if(b--<=0)yield z0}}.call(this)}function Z0(b,u=void 0){if(u!=null)B(u,"options");if((u===null||u===void 0?void 0:u.signal)!=null)U(u.signal,"options.signal");return b=G0(b),async function*(){var a;if(u!==null&&u!==void 0&&(a=u.signal)!==null&&a!==void 0&&a.aborted)throw new q;for await(let z0 of this){var U0;if(u!==null&&u!==void 0&&(U0=u.signal)!==null&&U0!==void 0&&U0.aborted)throw new q;if(b-- >0)yield z0;if(b<=0)return}}.call(this)}J.exports.streamReturningOperators={asIndexedPairs:z(e,"readable.asIndexedPairs will be removed in a future version."),drop:H0,filter:I,flatMap:Y0,map:o,take:Z0,compose:T},J.exports.promiseReturningOperators={every:W0,forEach:V0,reduce:$0,toArray:f,some:X0,find:p}}),i7=M0((Q,J)=>{var{ArrayPrototypePop:$,Promise:X}=N0(),{isIterable:K,isNodeStream:Y,isWebStream:V}=w2(),{pipelineImpl:q}=o8(),{finished:U}=k2();n7();function G(...B){return new X((j,W)=>{let H,S,A=B[B.length-1];if(A&&typeof A==="object"&&!Y(A)&&!K(A)&&!V(A)){let w=$(B);H=w.signal,S=w.end}q(B,(w,F)=>{if(w)W(w);else j(F)},{signal:H,end:S})})}J.exports={finished:U,pipeline:G}}),n7=M0((Q,J)=>{var{Buffer:$}=(L2(),u0(M2)),{ObjectDefineProperty:X,ObjectKeys:K,ReflectApply:Y}=N0(),{promisify:{custom:V}}=_0(),{streamReturningOperators:q,promiseReturningOperators:U}=eY(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:G}}=x0(),B=l7(),{setDefaultHighWaterMark:j,getDefaultHighWaterMark:W}=g6(),{pipeline:H}=o8(),{destroyer:S}=P1(),A=k2(),w=i7(),F=w2(),z=J.exports=n8().Stream;z.isDestroyed=F.isDestroyed,z.isDisturbed=F.isDisturbed,z.isErrored=F.isErrored,z.isReadable=F.isReadable,z.isWritable=F.isWritable,z.Readable=y6();for(let L of K(q)){let N=function(...d){if(new.target)throw G();return z.Readable.from(Y(x,this,d))},x=q[L];X(N,"name",{__proto__:null,value:x.name}),X(N,"length",{__proto__:null,value:x.length}),X(z.Readable.prototype,L,{__proto__:null,value:N,enumerable:!1,configurable:!0,writable:!0})}for(let L of K(U)){let N=function(...d){if(new.target)throw G();return Y(x,this,d)},x=U[L];X(N,"name",{__proto__:null,value:x.name}),X(N,"length",{__proto__:null,value:x.length}),X(z.Readable.prototype,L,{__proto__:null,value:N,enumerable:!1,configurable:!0,writable:!0})}z.Writable=r8(),z.Duplex=F2(),z.Transform=m7(),z.PassThrough=d7(),z.pipeline=H;var{addAbortSignal:P}=x6();z.addAbortSignal=P,z.finished=A,z.destroy=S,z.compose=B,z.setDefaultHighWaterMark=j,z.getDefaultHighWaterMark=W,X(z,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return w}}),X(H,V,{__proto__:null,enumerable:!0,get(){return w.pipeline}}),X(A,V,{__proto__:null,enumerable:!0,get(){return w.finished}}),z.Stream=z,z._isUint8Array=function(L){return L instanceof Uint8Array},z._uint8ArrayToBuffer=function(L){return $.from(L.buffer,L.byteOffset,L.byteLength)}}),Q9=M0((Q,J)=>{var $=a8();{let X=n7(),K=i7(),Y=X.Readable.destroy;J.exports=X.Readable,J.exports._uint8ArrayToBuffer=X._uint8ArrayToBuffer,J.exports._isUint8Array=X._isUint8Array,J.exports.isDisturbed=X.isDisturbed,J.exports.isErrored=X.isErrored,J.exports.isReadable=X.isReadable,J.exports.Readable=X.Readable,J.exports.Writable=X.Writable,J.exports.Duplex=X.Duplex,J.exports.Transform=X.Transform,J.exports.PassThrough=X.PassThrough,J.exports.addAbortSignal=X.addAbortSignal,J.exports.finished=X.finished,J.exports.destroy=X.destroy,J.exports.destroy=Y,J.exports.pipeline=X.pipeline,J.exports.compose=X.compose,Object.defineProperty(X,"promises",{configurable:!0,enumerable:!0,get(){return K}}),J.exports.Stream=X.Stream}J.exports.default=J.exports});r7.exports=Q9()});var s8=B0((EB,o7)=>{o7.exports=a8()});var I2=B0((p0)=>{p0.base64=!0;p0.array=!0;p0.string=!0;p0.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";p0.nodebuffer=typeof Buffer<"u";p0.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")p0.blob=!1;else{h6=new ArrayBuffer(0);try{p0.blob=new Blob([h6],{type:"application/zip"}).size===0}catch(Q){try{t8=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,f6=new t8,f6.append(h6),p0.blob=f6.getBlob("application/zip").size===0}catch(J){p0.blob=!1}}}var h6,t8,f6;try{p0.nodestream=!!s8().Readable}catch(Q){p0.nodestream=!1}});var Q5=B0((e8)=>{var J9=O0(),$9=I2(),q2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e8.encode=function(Q){var J=[],$,X,K,Y,V,q,U,G=0,B=Q.length,j=B,W=J9.getTypeOf(Q)!=="string";while(G<Q.length){if(j=B-G,!W)$=Q.charCodeAt(G++),X=G<B?Q.charCodeAt(G++):0,K=G<B?Q.charCodeAt(G++):0;else $=Q[G++],X=G<B?Q[G++]:0,K=G<B?Q[G++]:0;Y=$>>2,V=($&3)<<4|X>>4,q=j>1?(X&15)<<2|K>>6:64,U=j>2?K&63:64,J.push(q2.charAt(Y)+q2.charAt(V)+q2.charAt(q)+q2.charAt(U))}return J.join("")};e8.decode=function(Q){var J,$,X,K,Y,V,q,U=0,G=0,B="data:";if(Q.substr(0,B.length)===B)throw Error("Invalid base64 input, it looks like a data url.");Q=Q.replace(/[^A-Za-z0-9+/=]/g,"");var j=Q.length*3/4;if(Q.charAt(Q.length-1)===q2.charAt(64))j--;if(Q.charAt(Q.length-2)===q2.charAt(64))j--;if(j%1!==0)throw Error("Invalid base64 input, bad content length.");var W;if($9.uint8array)W=new Uint8Array(j|0);else W=Array(j|0);while(U<Q.length){if(K=q2.indexOf(Q.charAt(U++)),Y=q2.indexOf(Q.charAt(U++)),V=q2.indexOf(Q.charAt(U++)),q=q2.indexOf(Q.charAt(U++)),J=K<<2|Y>>4,$=(Y&15)<<4|V>>2,X=(V&3)<<6|q,W[G++]=J,V!==64)W[G++]=$;if(q!==64)W[G++]=X}return W}});var s1=B0((xB,a7)=>{a7.exports={isNode:typeof Buffer<"u",newBufferFrom:function(Q,J){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(Q,J);else{if(typeof Q==="number")throw Error('The "data" argument must not be a number');return new Buffer(Q,J)}},allocBuffer:function(Q){if(Buffer.alloc)return Buffer.alloc(Q);else{var J=new Buffer(Q);return J.fill(0),J}},isBuffer:function(Q){return Buffer.isBuffer(Q)},isStream:function(Q){return Q&&typeof Q.on==="function"&&typeof Q.pause==="function"&&typeof Q.resume==="function"}}});var e7=B0((gB,t7)=>{var s7=global.MutationObserver||global.WebKitMutationObserver,t1;if(s7)b6=0,J5=new s7(_6),u6=global.document.createTextNode(""),J5.observe(u6,{characterData:!0}),t1=function(){u6.data=b6=++b6%2};else if(!global.setImmediate&&typeof global.MessageChannel<"u")p6=new global.MessageChannel,p6.port1.onmessage=_6,t1=function(){p6.port2.postMessage(0)};else if("document"in global&&"onreadystatechange"in global.document.createElement("script"))t1=function(){var Q=global.document.createElement("script");Q.onreadystatechange=function(){_6(),Q.onreadystatechange=null,Q.parentNode.removeChild(Q),Q=null},global.document.documentElement.appendChild(Q)};else t1=function(){setTimeout(_6,0)};var b6,J5,u6,p6,$5,e1=[];function _6(){$5=!0;var Q,J,$=e1.length;while($){J=e1,e1=[],Q=-1;while(++Q<$)J[Q]();$=e1.length}$5=!1}t7.exports=X9;function X9(Q){if(e1.push(Q)===1&&!$5)t1()}});var YQ=B0((yB,KQ)=>{var K9=e7();function M1(){}var v0={},QQ=["REJECTED"],X5=["FULFILLED"],JQ=["PENDING"];KQ.exports=E2;function E2(Q){if(typeof Q!=="function")throw TypeError("resolver must be a function");if(this.state=JQ,this.queue=[],this.outcome=void 0,Q!==M1)$Q(this,Q)}E2.prototype.finally=function(Q){if(typeof Q!=="function")return this;var J=this.constructor;return this.then($,X);function $(K){function Y(){return K}return J.resolve(Q()).then(Y)}function X(K){function Y(){throw K}return J.resolve(Q()).then(Y)}};E2.prototype.catch=function(Q){return this.then(null,Q)};E2.prototype.then=function(Q,J){if(typeof Q!=="function"&&this.state===X5||typeof J!=="function"&&this.state===QQ)return this;var $=new this.constructor(M1);if(this.state!==JQ){var X=this.state===X5?Q:J;K5($,X,this.outcome)}else this.queue.push(new Q6($,Q,J));return $};function Q6(Q,J,$){if(this.promise=Q,typeof J==="function")this.onFulfilled=J,this.callFulfilled=this.otherCallFulfilled;if(typeof $==="function")this.onRejected=$,this.callRejected=this.otherCallRejected}Q6.prototype.callFulfilled=function(Q){v0.resolve(this.promise,Q)};Q6.prototype.otherCallFulfilled=function(Q){K5(this.promise,this.onFulfilled,Q)};Q6.prototype.callRejected=function(Q){v0.reject(this.promise,Q)};Q6.prototype.otherCallRejected=function(Q){K5(this.promise,this.onRejected,Q)};function K5(Q,J,$){K9(function(){var X;try{X=J($)}catch(K){return v0.reject(Q,K)}if(X===Q)v0.reject(Q,TypeError("Cannot resolve promise with itself"));else v0.resolve(Q,X)})}v0.resolve=function(Q,J){var $=XQ(Y9,J);if($.status==="error")return v0.reject(Q,$.value);var X=$.value;if(X)$Q(Q,X);else{Q.state=X5,Q.outcome=J;var K=-1,Y=Q.queue.length;while(++K<Y)Q.queue[K].callFulfilled(J)}return Q};v0.reject=function(Q,J){Q.state=QQ,Q.outcome=J;var $=-1,X=Q.queue.length;while(++$<X)Q.queue[$].callRejected(J);return Q};function Y9(Q){var J=Q&&Q.then;if(Q&&(typeof Q==="object"||typeof Q==="function")&&typeof J==="function")return function(){J.apply(Q,arguments)}}function $Q(Q,J){var $=!1;function X(q){if($)return;$=!0,v0.reject(Q,q)}function K(q){if($)return;$=!0,v0.resolve(Q,q)}function Y(){J(K,X)}var V=XQ(Y);if(V.status==="error")X(V.value)}function XQ(Q,J){var $={};try{$.value=Q(J),$.status="success"}catch(X){$.status="error",$.value=X}return $}E2.resolve=V9;function V9(Q){if(Q instanceof this)return Q;return v0.resolve(new this(M1),Q)}E2.reject=q9;function q9(Q){var J=new this(M1);return v0.reject(J,Q)}E2.all=B9;function B9(Q){var J=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(TypeError("must be an array"));var $=Q.length,X=!1;if(!$)return this.resolve([]);var K=Array($),Y=0,V=-1,q=new this(M1);while(++V<$)U(Q[V],V);return q;function U(G,B){J.resolve(G).then(j,function(W){if(!X)X=!0,v0.reject(q,W)});function j(W){if(K[B]=W,++Y===$&&!X)X=!0,v0.resolve(q,K)}}}E2.race=G9;function G9(Q){var J=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(TypeError("must be an array"));var $=Q.length,X=!1;if(!$)return this.resolve([]);var K=-1,Y=new this(M1);while(++K<$)V(Q[K]);return Y;function V(q){J.resolve(q).then(function(U){if(!X)X=!0,v0.resolve(Y,U)},function(U){if(!X)X=!0,v0.reject(Y,U)})}}});var L1=B0((hB,VQ)=>{var Y5=null;if(typeof Promise<"u")Y5=Promise;else Y5=YQ();VQ.exports={Promise:Y5}});var BQ=B0((qQ)=>{(function(Q,J){if(Q.setImmediate)return;var $=1,X={},K=!1,Y=Q.document,V;function q(z){if(typeof z!=="function")z=Function(""+z);var P=Array(arguments.length-1);for(var L=0;L<P.length;L++)P[L]=arguments[L+1];var N={callback:z,args:P};return X[$]=N,V($),$++}function U(z){delete X[z]}function G(z){var{callback:P,args:L}=z;switch(L.length){case 0:P();break;case 1:P(L[0]);break;case 2:P(L[0],L[1]);break;case 3:P(L[0],L[1],L[2]);break;default:P.apply(J,L);break}}function B(z){if(K)setTimeout(B,0,z);else{var P=X[z];if(P){K=!0;try{G(P)}finally{U(z),K=!1}}}}function j(){V=function(z){process.nextTick(function(){B(z)})}}function W(){if(Q.postMessage&&!Q.importScripts){var z=!0,P=Q.onmessage;return Q.onmessage=function(){z=!1},Q.postMessage("","*"),Q.onmessage=P,z}}function H(){var z="setImmediate$"+Math.random()+"$",P=function(L){if(L.source===Q&&typeof L.data==="string"&&L.data.indexOf(z)===0)B(+L.data.slice(z.length))};if(Q.addEventListener)Q.addEventListener("message",P,!1);else Q.attachEvent("onmessage",P);V=function(L){Q.postMessage(z+L,"*")}}function S(){var z=new MessageChannel;z.port1.onmessage=function(P){var L=P.data;B(L)},V=function(P){z.port2.postMessage(P)}}function A(){var z=Y.documentElement;V=function(P){var L=Y.createElement("script");L.onreadystatechange=function(){B(P),L.onreadystatechange=null,z.removeChild(L),L=null},z.appendChild(L)}}function w(){V=function(z){setTimeout(B,0,z)}}var F=Object.getPrototypeOf&&Object.getPrototypeOf(Q);if(F=F&&F.setTimeout?F:Q,{}.toString.call(Q.process)==="[object process]")j();else if(W())H();else if(Q.MessageChannel)S();else if(Y&&"onreadystatechange"in Y.createElement("script"))A();else w();F.setImmediate=q,F.clearImmediate=U})(typeof self>"u"?typeof global>"u"?qQ:global:self)});var O0=B0((A0)=>{var S2=I2(),U9=Q5(),F1=s1(),V5=L1();BQ();function z9(Q){var J=null;if(S2.uint8array)J=new Uint8Array(Q.length);else J=Array(Q.length);return m6(Q,J)}A0.newBlob=function(Q,J){A0.checkSupport("blob");try{return new Blob([Q],{type:J})}catch(K){try{var $=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,X=new $;return X.append(Q),X.getBlob(J)}catch(Y){throw Error("Bug : can't construct the Blob.")}}};function J6(Q){return Q}function m6(Q,J){for(var $=0;$<Q.length;++$)J[$]=Q.charCodeAt($)&255;return J}var c6={stringifyByChunk:function(Q,J,$){var X=[],K=0,Y=Q.length;if(Y<=$)return String.fromCharCode.apply(null,Q);while(K<Y){if(J==="array"||J==="nodebuffer")X.push(String.fromCharCode.apply(null,Q.slice(K,Math.min(K+$,Y))));else X.push(String.fromCharCode.apply(null,Q.subarray(K,Math.min(K+$,Y))));K+=$}return X.join("")},stringifyByChar:function(Q){var J="";for(var $=0;$<Q.length;$++)J+=String.fromCharCode(Q[$]);return J},applyCanBeUsed:{uint8array:function(){try{return S2.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(Q){return!1}}(),nodebuffer:function(){try{return S2.nodebuffer&&String.fromCharCode.apply(null,F1.allocBuffer(1)).length===1}catch(Q){return!1}}()}};function $6(Q){var J=65536,$=A0.getTypeOf(Q),X=!0;if($==="uint8array")X=c6.applyCanBeUsed.uint8array;else if($==="nodebuffer")X=c6.applyCanBeUsed.nodebuffer;if(X)while(J>1)try{return c6.stringifyByChunk(Q,$,J)}catch(K){J=Math.floor(J/2)}return c6.stringifyByChar(Q)}A0.applyFromCharCode=$6;function d6(Q,J){for(var $=0;$<Q.length;$++)J[$]=Q[$];return J}var v2={};v2.string={string:J6,array:function(Q){return m6(Q,Array(Q.length))},arraybuffer:function(Q){return v2.string.uint8array(Q).buffer},uint8array:function(Q){return m6(Q,new Uint8Array(Q.length))},nodebuffer:function(Q){return m6(Q,F1.allocBuffer(Q.length))}};v2.array={string:$6,array:J6,arraybuffer:function(Q){return new Uint8Array(Q).buffer},uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return F1.newBufferFrom(Q)}};v2.arraybuffer={string:function(Q){return $6(new Uint8Array(Q))},array:function(Q){return d6(new Uint8Array(Q),Array(Q.byteLength))},arraybuffer:J6,uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return F1.newBufferFrom(new Uint8Array(Q))}};v2.uint8array={string:$6,array:function(Q){return d6(Q,Array(Q.length))},arraybuffer:function(Q){return Q.buffer},uint8array:J6,nodebuffer:function(Q){return F1.newBufferFrom(Q)}};v2.nodebuffer={string:$6,array:function(Q){return d6(Q,Array(Q.length))},arraybuffer:function(Q){return v2.nodebuffer.uint8array(Q).buffer},uint8array:function(Q){return d6(Q,new Uint8Array(Q.length))},nodebuffer:J6};A0.transformTo=function(Q,J){if(!J)J="";if(!Q)return J;A0.checkSupport(Q);var $=A0.getTypeOf(J),X=v2[$][Q](J);return X};A0.resolve=function(Q){var J=Q.split("/"),$=[];for(var X=0;X<J.length;X++){var K=J[X];if(K==="."||K===""&&X!==0&&X!==J.length-1)continue;else if(K==="..")$.pop();else $.push(K)}return $.join("/")};A0.getTypeOf=function(Q){if(typeof Q==="string")return"string";if(Object.prototype.toString.call(Q)==="[object Array]")return"array";if(S2.nodebuffer&&F1.isBuffer(Q))return"nodebuffer";if(S2.uint8array&&Q instanceof Uint8Array)return"uint8array";if(S2.arraybuffer&&Q instanceof ArrayBuffer)return"arraybuffer"};A0.checkSupport=function(Q){var J=S2[Q.toLowerCase()];if(!J)throw Error(Q+" is not supported by this platform")};A0.MAX_VALUE_16BITS=65535;A0.MAX_VALUE_32BITS=-1;A0.pretty=function(Q){var J="",$,X;for(X=0;X<(Q||"").length;X++)$=Q.charCodeAt(X),J+="\\x"+($<16?"0":"")+$.toString(16).toUpperCase();return J};A0.delay=function(Q,J,$){setImmediate(function(){Q.apply($||null,J||[])})};A0.inherits=function(Q,J){var $=function(){};$.prototype=J.prototype,Q.prototype=new $};A0.extend=function(){var Q={},J,$;for(J=0;J<arguments.length;J++)for($ in arguments[J])if(Object.prototype.hasOwnProperty.call(arguments[J],$)&&typeof Q[$]>"u")Q[$]=arguments[J][$];return Q};A0.prepareContent=function(Q,J,$,X,K){var Y=V5.Promise.resolve(J).then(function(V){var q=S2.blob&&(V instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(V))!==-1);if(q&&typeof FileReader<"u")return new V5.Promise(function(U,G){var B=new FileReader;B.onload=function(j){U(j.target.result)},B.onerror=function(j){G(j.target.error)},B.readAsArrayBuffer(V)});else return V});return Y.then(function(V){var q=A0.getTypeOf(V);if(!q)return V5.Promise.reject(Error("Can't read the data of '"+Q+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));if(q==="arraybuffer")V=A0.transformTo("uint8array",V);else if(q==="string"){if(K)V=U9.decode(V);else if($){if(X!==!0)V=z9(V)}}return V})}});var c0=B0((bB,UQ)=>{function GQ(Q){this.name=Q||"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}GQ.prototype={push:function(Q){this.emit("data",Q)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(Q){this.emit("error",Q)}return!0},error:function(Q){if(this.isFinished)return!1;if(this.isPaused)this.generatedError=Q;else{if(this.isFinished=!0,this.emit("error",Q),this.previous)this.previous.error(Q);this.cleanUp()}return!0},on:function(Q,J){return this._listeners[Q].push(J),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(Q,J){if(this._listeners[Q])for(var $=0;$<this._listeners[Q].length;$++)this._listeners[Q][$].call(this,J)},pipe:function(Q){return Q.registerPrevious(this)},registerPrevious:function(Q){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=Q.streamInfo,this.mergeStreamInfo(),this.previous=Q;var J=this;return Q.on("data",function($){J.processChunk($)}),Q.on("end",function(){J.end()}),Q.on("error",function($){J.error($)}),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 Q=!1;if(this.generatedError)this.error(this.generatedError),Q=!0;if(this.previous)this.previous.resume();return!Q},flush:function(){},processChunk:function(Q){this.push(Q)},withStreamInfo:function(Q,J){return this.extraStreamInfo[Q]=J,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var Q in this.extraStreamInfo){if(!Object.prototype.hasOwnProperty.call(this.extraStreamInfo,Q))continue;this.streamInfo[Q]=this.extraStreamInfo[Q]}},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");if(this.isLocked=!0,this.previous)this.previous.lock()},toString:function(){var Q="Worker "+this.name;if(this.previous)return this.previous+" -> "+Q;else return Q}};UQ.exports=GQ});var I1=B0((x2)=>{var w1=O0(),a2=I2(),Z9=s1(),l6=c0(),X6=Array(256);for(B2=0;B2<256;B2++)X6[B2]=B2>=252?6:B2>=248?5:B2>=240?4:B2>=224?3:B2>=192?2:1;var B2;X6[254]=X6[254]=1;var W9=function(Q){var J,$,X,K,Y,V=Q.length,q=0;for(K=0;K<V;K++){if($=Q.charCodeAt(K),($&64512)===55296&&K+1<V){if(X=Q.charCodeAt(K+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),K++}q+=$<128?1:$<2048?2:$<65536?3:4}if(a2.uint8array)J=new Uint8Array(q);else J=Array(q);for(Y=0,K=0;Y<q;K++){if($=Q.charCodeAt(K),($&64512)===55296&&K+1<V){if(X=Q.charCodeAt(K+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),K++}if($<128)J[Y++]=$;else if($<2048)J[Y++]=192|$>>>6,J[Y++]=128|$&63;else if($<65536)J[Y++]=224|$>>>12,J[Y++]=128|$>>>6&63,J[Y++]=128|$&63;else J[Y++]=240|$>>>18,J[Y++]=128|$>>>12&63,J[Y++]=128|$>>>6&63,J[Y++]=128|$&63}return J},H9=function(Q,J){var $;if(J=J||Q.length,J>Q.length)J=Q.length;$=J-1;while($>=0&&(Q[$]&192)===128)$--;if($<0)return J;if($===0)return J;return $+X6[Q[$]]>J?$:J},j9=function(Q){var J,$,X,K,Y=Q.length,V=Array(Y*2);for($=0,J=0;J<Y;){if(X=Q[J++],X<128){V[$++]=X;continue}if(K=X6[X],K>4){V[$++]=65533,J+=K-1;continue}X&=K===2?31:K===3?15:7;while(K>1&&J<Y)X=X<<6|Q[J++]&63,K--;if(K>1){V[$++]=65533;continue}if(X<65536)V[$++]=X;else X-=65536,V[$++]=55296|X>>10&1023,V[$++]=56320|X&1023}if(V.length!==$)if(V.subarray)V=V.subarray(0,$);else V.length=$;return w1.applyFromCharCode(V)};x2.utf8encode=function(J){if(a2.nodebuffer)return Z9.newBufferFrom(J,"utf-8");return W9(J)};x2.utf8decode=function(J){if(a2.nodebuffer)return w1.transformTo("nodebuffer",J).toString("utf-8");return J=w1.transformTo(a2.uint8array?"uint8array":"array",J),j9(J)};function i6(){l6.call(this,"utf-8 decode"),this.leftOver=null}w1.inherits(i6,l6);i6.prototype.processChunk=function(Q){var J=w1.transformTo(a2.uint8array?"uint8array":"array",Q.data);if(this.leftOver&&this.leftOver.length){if(a2.uint8array){var $=J;J=new Uint8Array($.length+this.leftOver.length),J.set(this.leftOver,0),J.set($,this.leftOver.length)}else J=this.leftOver.concat(J);this.leftOver=null}var X=H9(J),K=J;if(X!==J.length)if(a2.uint8array)K=J.subarray(0,X),this.leftOver=J.subarray(X,J.length);else K=J.slice(0,X),this.leftOver=J.slice(X,J.length);this.push({data:x2.utf8decode(K),meta:Q.meta})};i6.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:x2.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};x2.Utf8DecodeWorker=i6;function q5(){l6.call(this,"utf-8 encode")}w1.inherits(q5,l6);q5.prototype.processChunk=function(Q){this.push({data:x2.utf8encode(Q.data),meta:Q.meta})};x2.Utf8EncodeWorker=q5});var HQ=B0((pB,WQ)=>{var zQ=c0(),ZQ=O0();function B5(Q){zQ.call(this,"ConvertWorker to "+Q),this.destType=Q}ZQ.inherits(B5,zQ);B5.prototype.processChunk=function(Q){this.push({data:ZQ.transformTo(this.destType,Q.data),meta:Q.meta})};WQ.exports=B5});var MQ=B0((cB,PQ)=>{var jQ=s8().Readable,P9=O0();P9.inherits(G5,jQ);function G5(Q,J,$){jQ.call(this,J),this._helper=Q;var X=this;Q.on("data",function(K,Y){if(!X.push(K))X._helper.pause();if($)$(Y)}).on("error",function(K){X.emit("error",K)}).on("end",function(){X.push(null)})}G5.prototype._read=function(){this._helper.resume()};PQ.exports=G5});var U5=B0((mB,wQ)=>{var s2=O0(),M9=HQ(),L9=c0(),F9=Q5(),w9=I2(),I9=L1(),LQ=null;if(w9.nodestream)try{LQ=MQ()}catch(Q){}function N9(Q,J,$){switch(Q){case"blob":return s2.newBlob(s2.transformTo("arraybuffer",J),$);case"base64":return F9.encode(J);default:return s2.transformTo(Q,J)}}function O9(Q,J){var $,X=0,K=null,Y=0;for($=0;$<J.length;$++)Y+=J[$].length;switch(Q){case"string":return J.join("");case"array":return Array.prototype.concat.apply([],J);case"uint8array":K=new Uint8Array(Y);for($=0;$<J.length;$++)K.set(J[$],X),X+=J[$].length;return K;case"nodebuffer":return Buffer.concat(J);default:throw Error("concat : unsupported type '"+Q+"'")}}function C9(Q,J){return new I9.Promise(function($,X){var K=[],Y=Q._internalType,V=Q._outputType,q=Q._mimeType;Q.on("data",function(U,G){if(K.push(U),J)J(G)}).on("error",function(U){K=[],X(U)}).on("end",function(){try{var U=N9(V,O9(Y,K),q);$(U)}catch(G){X(G)}K=[]}).resume()})}function FQ(Q,J,$){var X=J;switch(J){case"blob":case"arraybuffer":X="uint8array";break;case"base64":X="string";break}try{this._internalType=X,this._outputType=J,this._mimeType=$,s2.checkSupport(X),this._worker=Q.pipe(new M9(X)),Q.lock()}catch(K){this._worker=new L9("error"),this._worker.error(K)}}FQ.prototype={accumulate:function(Q){return C9(this,Q)},on:function(Q,J){var $=this;if(Q==="data")this._worker.on(Q,function(X){J.call($,X.data,X.meta)});else this._worker.on(Q,function(){s2.delay(J,arguments,$)});return this},resume:function(){return s2.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(Q){if(s2.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw Error(this._outputType+" is not supported by this method");return new LQ(this,{objectMode:this._outputType!=="nodebuffer"},Q)}};wQ.exports=FQ});var z5=B0((t0)=>{t0.base64=!1;t0.binary=!1;t0.dir=!1;t0.createFolders=!0;t0.date=null;t0.compression=null;t0.compressionOptions=null;t0.comment=null;t0.unixPermissions=null;t0.dosPermissions=null});var Z5=B0((lB,IQ)=>{var n6=O0(),r6=c0(),D9=16384;function N1(Q){r6.call(this,"DataWorker");var J=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,Q.then(function($){if(J.dataIsReady=!0,J.data=$,J.max=$&&$.length||0,J.type=n6.getTypeOf($),!J.isPaused)J._tickAndRepeat()},function($){J.error($)})}n6.inherits(N1,r6);N1.prototype.cleanUp=function(){r6.prototype.cleanUp.call(this),this.data=null};N1.prototype.resume=function(){if(!r6.prototype.resume.call(this))return!1;if(!this._tickScheduled&&this.dataIsReady)this._tickScheduled=!0,n6.delay(this._tickAndRepeat,[],this);return!0};N1.prototype._tickAndRepeat=function(){if(this._tickScheduled=!1,this.isPaused||this.isFinished)return;if(this._tick(),!this.isFinished)n6.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0};N1.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var Q=D9,J=null,$=Math.min(this.max,this.index+Q);if(this.index>=this.max)return this.end();else{switch(this.type){case"string":J=this.data.substring(this.index,$);break;case"uint8array":J=this.data.subarray(this.index,$);break;case"array":case"nodebuffer":J=this.data.slice(this.index,$);break}return this.index=$,this.push({data:J,meta:{percent:this.max?this.index/this.max*100:0}})}};IQ.exports=N1});var o6=B0((iB,OQ)=>{var A9=O0();function R9(){var Q,J=[];for(var $=0;$<256;$++){Q=$;for(var X=0;X<8;X++)Q=Q&1?3988292384^Q>>>1:Q>>>1;J[$]=Q}return J}var NQ=R9();function T9(Q,J,$,X){var K=NQ,Y=X+$;Q=Q^-1;for(var V=X;V<Y;V++)Q=Q>>>8^K[(Q^J[V])&255];return Q^-1}function k9(Q,J,$,X){var K=NQ,Y=X+$;Q=Q^-1;for(var V=X;V<Y;V++)Q=Q>>>8^K[(Q^J.charCodeAt(V))&255];return Q^-1}OQ.exports=function(J,$){if(typeof J>"u"||!J.length)return 0;var X=A9.getTypeOf(J)!=="string";if(X)return T9($|0,J,J.length,0);else return k9($|0,J,J.length,0)}});var H5=B0((nB,DQ)=>{var CQ=c0(),E9=o6(),S9=O0();function W5(){CQ.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}S9.inherits(W5,CQ);W5.prototype.processChunk=function(Q){this.streamInfo.crc32=E9(Q.data,this.streamInfo.crc32||0),this.push(Q)};DQ.exports=W5});var RQ=B0((rB,AQ)=>{var v9=O0(),j5=c0();function P5(Q){j5.call(this,"DataLengthProbe for "+Q),this.propName=Q,this.withStreamInfo(Q,0)}v9.inherits(P5,j5);P5.prototype.processChunk=function(Q){if(Q){var J=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=J+Q.data.length}j5.prototype.processChunk.call(this,Q)};AQ.exports=P5});var a6=B0((oB,EQ)=>{var TQ=L1(),kQ=Z5(),x9=H5(),M5=RQ();function L5(Q,J,$,X,K){this.compressedSize=Q,this.uncompressedSize=J,this.crc32=$,this.compression=X,this.compressedContent=K}L5.prototype={getContentWorker:function(){var Q=new kQ(TQ.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new M5("data_length")),J=this;return Q.on("end",function(){if(this.streamInfo.data_length!==J.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),Q},getCompressedWorker:function(){return new kQ(TQ.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};L5.createWorkerFrom=function(Q,J,$){return Q.pipe(new x9).pipe(new M5("uncompressedSize")).pipe(J.compressWorker($)).pipe(new M5("compressedSize")).withStreamInfo("compression",J)};EQ.exports=L5});var gQ=B0((aB,xQ)=>{var g9=U5(),y9=Z5(),F5=I1(),w5=a6(),SQ=c0(),I5=function(Q,J,$){this.name=Q,this.dir=$.dir,this.date=$.date,this.comment=$.comment,this.unixPermissions=$.unixPermissions,this.dosPermissions=$.dosPermissions,this._data=J,this._dataBinary=$.binary,this.options={compression:$.compression,compressionOptions:$.compressionOptions}};I5.prototype={internalStream:function(Q){var J=null,$="string";try{if(!Q)throw Error("No output type specified.");$=Q.toLowerCase();var X=$==="string"||$==="text";if($==="binarystring"||$==="text")$="string";J=this._decompressWorker();var K=!this._dataBinary;if(K&&!X)J=J.pipe(new F5.Utf8EncodeWorker);if(!K&&X)J=J.pipe(new F5.Utf8DecodeWorker)}catch(Y){J=new SQ("error"),J.error(Y)}return new g9(J,$,"")},async:function(Q,J){return this.internalStream(Q).accumulate(J)},nodeStream:function(Q,J){return this.internalStream(Q||"nodebuffer").toNodejsStream(J)},_compressWorker:function(Q,J){if(this._data instanceof w5&&this._data.compression.magic===Q.magic)return this._data.getCompressedWorker();else{var $=this._decompressWorker();if(!this._dataBinary)$=$.pipe(new F5.Utf8EncodeWorker);return w5.createWorkerFrom($,Q,J)}},_decompressWorker:function(){if(this._data instanceof w5)return this._data.getContentWorker();else if(this._data instanceof SQ)return this._data;else return new y9(this._data)}};var vQ=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],h9=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(K6=0;K6<vQ.length;K6++)I5.prototype[vQ[K6]]=h9;var K6;xQ.exports=I5});var N2=B0((g0)=>{var f9=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function _9(Q,J){return Object.prototype.hasOwnProperty.call(Q,J)}g0.assign=function(Q){var J=Array.prototype.slice.call(arguments,1);while(J.length){var $=J.shift();if(!$)continue;if(typeof $!=="object")throw TypeError($+"must be non-object");for(var X in $)if(_9($,X))Q[X]=$[X]}return Q};g0.shrinkBuf=function(Q,J){if(Q.length===J)return Q;if(Q.subarray)return Q.subarray(0,J);return Q.length=J,Q};var b9={arraySet:function(Q,J,$,X,K){if(J.subarray&&Q.subarray){Q.set(J.subarray($,$+X),K);return}for(var Y=0;Y<X;Y++)Q[K+Y]=J[$+Y]},flattenChunks:function(Q){var J,$,X,K,Y,V;X=0;for(J=0,$=Q.length;J<$;J++)X+=Q[J].length;V=new Uint8Array(X),K=0;for(J=0,$=Q.length;J<$;J++)Y=Q[J],V.set(Y,K),K+=Y.length;return V}},u9={arraySet:function(Q,J,$,X,K){for(var Y=0;Y<X;Y++)Q[K+Y]=J[$+Y]},flattenChunks:function(Q){return[].concat.apply([],Q)}};g0.setTyped=function(Q){if(Q)g0.Buf8=Uint8Array,g0.Buf16=Uint16Array,g0.Buf32=Int32Array,g0.assign(g0,b9);else g0.Buf8=Array,g0.Buf16=Array,g0.Buf32=Array,g0.assign(g0,u9)};g0.setTyped(f9)});var XJ=B0((D1)=>{var p9=N2(),c9=4,yQ=0,hQ=1,m9=2;function C1(Q){var J=Q.length;while(--J>=0)Q[J]=0}var d9=0,cQ=1,l9=2,i9=3,n9=258,T5=29,U6=256,V6=U6+1+T5,O1=30,k5=19,mQ=2*V6+1,t2=15,N5=16,r9=7,E5=256,dQ=16,lQ=17,iQ=18,A5=[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],s6=[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],o9=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],nQ=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],a9=512,O2=Array((V6+2)*2);C1(O2);var Y6=Array(O1*2);C1(Y6);var q6=Array(a9);C1(q6);var B6=Array(n9-i9+1);C1(B6);var S5=Array(T5);C1(S5);var t6=Array(O1);C1(t6);function O5(Q,J,$,X,K){this.static_tree=Q,this.extra_bits=J,this.extra_base=$,this.elems=X,this.max_length=K,this.has_stree=Q&&Q.length}var rQ,oQ,aQ;function C5(Q,J){this.dyn_tree=Q,this.max_code=0,this.stat_desc=J}function sQ(Q){return Q<256?q6[Q]:q6[256+(Q>>>7)]}function G6(Q,J){Q.pending_buf[Q.pending++]=J&255,Q.pending_buf[Q.pending++]=J>>>8&255}function b0(Q,J,$){if(Q.bi_valid>N5-$)Q.bi_buf|=J<<Q.bi_valid&65535,G6(Q,Q.bi_buf),Q.bi_buf=J>>N5-Q.bi_valid,Q.bi_valid+=$-N5;else Q.bi_buf|=J<<Q.bi_valid&65535,Q.bi_valid+=$}function G2(Q,J,$){b0(Q,$[J*2],$[J*2+1])}function tQ(Q,J){var $=0;do $|=Q&1,Q>>>=1,$<<=1;while(--J>0);return $>>>1}function s9(Q){if(Q.bi_valid===16)G6(Q,Q.bi_buf),Q.bi_buf=0,Q.bi_valid=0;else if(Q.bi_valid>=8)Q.pending_buf[Q.pending++]=Q.bi_buf&255,Q.bi_buf>>=8,Q.bi_valid-=8}function t9(Q,J){var{dyn_tree:$,max_code:X}=J,K=J.stat_desc.static_tree,Y=J.stat_desc.has_stree,V=J.stat_desc.extra_bits,q=J.stat_desc.extra_base,U=J.stat_desc.max_length,G,B,j,W,H,S,A=0;for(W=0;W<=t2;W++)Q.bl_count[W]=0;$[Q.heap[Q.heap_max]*2+1]=0;for(G=Q.heap_max+1;G<mQ;G++){if(B=Q.heap[G],W=$[$[B*2+1]*2+1]+1,W>U)W=U,A++;if($[B*2+1]=W,B>X)continue;if(Q.bl_count[W]++,H=0,B>=q)H=V[B-q];if(S=$[B*2],Q.opt_len+=S*(W+H),Y)Q.static_len+=S*(K[B*2+1]+H)}if(A===0)return;do{W=U-1;while(Q.bl_count[W]===0)W--;Q.bl_count[W]--,Q.bl_count[W+1]+=2,Q.bl_count[U]--,A-=2}while(A>0);for(W=U;W!==0;W--){B=Q.bl_count[W];while(B!==0){if(j=Q.heap[--G],j>X)continue;if($[j*2+1]!==W)Q.opt_len+=(W-$[j*2+1])*$[j*2],$[j*2+1]=W;B--}}}function eQ(Q,J,$){var X=Array(t2+1),K=0,Y,V;for(Y=1;Y<=t2;Y++)X[Y]=K=K+$[Y-1]<<1;for(V=0;V<=J;V++){var q=Q[V*2+1];if(q===0)continue;Q[V*2]=tQ(X[q]++,q)}}function e9(){var Q,J,$,X,K,Y=Array(t2+1);$=0;for(X=0;X<T5-1;X++){S5[X]=$;for(Q=0;Q<1<<A5[X];Q++)B6[$++]=X}B6[$-1]=X,K=0;for(X=0;X<16;X++){t6[X]=K;for(Q=0;Q<1<<s6[X];Q++)q6[K++]=X}K>>=7;for(;X<O1;X++){t6[X]=K<<7;for(Q=0;Q<1<<s6[X]-7;Q++)q6[256+K++]=X}for(J=0;J<=t2;J++)Y[J]=0;Q=0;while(Q<=143)O2[Q*2+1]=8,Q++,Y[8]++;while(Q<=255)O2[Q*2+1]=9,Q++,Y[9]++;while(Q<=279)O2[Q*2+1]=7,Q++,Y[7]++;while(Q<=287)O2[Q*2+1]=8,Q++,Y[8]++;eQ(O2,V6+1,Y);for(Q=0;Q<O1;Q++)Y6[Q*2+1]=5,Y6[Q*2]=tQ(Q,5);rQ=new O5(O2,A5,U6+1,V6,t2),oQ=new O5(Y6,s6,0,O1,t2),aQ=new O5([],o9,0,k5,r9)}function QJ(Q){var J;for(J=0;J<V6;J++)Q.dyn_ltree[J*2]=0;for(J=0;J<O1;J++)Q.dyn_dtree[J*2]=0;for(J=0;J<k5;J++)Q.bl_tree[J*2]=0;Q.dyn_ltree[E5*2]=1,Q.opt_len=Q.static_len=0,Q.last_lit=Q.matches=0}function JJ(Q){if(Q.bi_valid>8)G6(Q,Q.bi_buf);else if(Q.bi_valid>0)Q.pending_buf[Q.pending++]=Q.bi_buf;Q.bi_buf=0,Q.bi_valid=0}function QV(Q,J,$,X){if(JJ(Q),X)G6(Q,$),G6(Q,~$);p9.arraySet(Q.pending_buf,Q.window,J,$,Q.pending),Q.pending+=$}function fQ(Q,J,$,X){var K=J*2,Y=$*2;return Q[K]<Q[Y]||Q[K]===Q[Y]&&X[J]<=X[$]}function D5(Q,J,$){var X=Q.heap[$],K=$<<1;while(K<=Q.heap_len){if(K<Q.heap_len&&fQ(J,Q.heap[K+1],Q.heap[K],Q.depth))K++;if(fQ(J,X,Q.heap[K],Q.depth))break;Q.heap[$]=Q.heap[K],$=K,K<<=1}Q.heap[$]=X}function _Q(Q,J,$){var X,K,Y=0,V,q;if(Q.last_lit!==0)do if(X=Q.pending_buf[Q.d_buf+Y*2]<<8|Q.pending_buf[Q.d_buf+Y*2+1],K=Q.pending_buf[Q.l_buf+Y],Y++,X===0)G2(Q,K,J);else{if(V=B6[K],G2(Q,V+U6+1,J),q=A5[V],q!==0)K-=S5[V],b0(Q,K,q);if(X--,V=sQ(X),G2(Q,V,$),q=s6[V],q!==0)X-=t6[V],b0(Q,X,q)}while(Y<Q.last_lit);G2(Q,E5,J)}function R5(Q,J){var $=J.dyn_tree,X=J.stat_desc.static_tree,K=J.stat_desc.has_stree,Y=J.stat_desc.elems,V,q,U=-1,G;Q.heap_len=0,Q.heap_max=mQ;for(V=0;V<Y;V++)if($[V*2]!==0)Q.heap[++Q.heap_len]=U=V,Q.depth[V]=0;else $[V*2+1]=0;while(Q.heap_len<2)if(G=Q.heap[++Q.heap_len]=U<2?++U:0,$[G*2]=1,Q.depth[G]=0,Q.opt_len--,K)Q.static_len-=X[G*2+1];J.max_code=U;for(V=Q.heap_len>>1;V>=1;V--)D5(Q,$,V);G=Y;do V=Q.heap[1],Q.heap[1]=Q.heap[Q.heap_len--],D5(Q,$,1),q=Q.heap[1],Q.heap[--Q.heap_max]=V,Q.heap[--Q.heap_max]=q,$[G*2]=$[V*2]+$[q*2],Q.depth[G]=(Q.depth[V]>=Q.depth[q]?Q.depth[V]:Q.depth[q])+1,$[V*2+1]=$[q*2+1]=G,Q.heap[1]=G++,D5(Q,$,1);while(Q.heap_len>=2);Q.heap[--Q.heap_max]=Q.heap[1],t9(Q,J),eQ($,U,Q.bl_count)}function bQ(Q,J,$){var X,K=-1,Y,V=J[1],q=0,U=7,G=4;if(V===0)U=138,G=3;J[($+1)*2+1]=65535;for(X=0;X<=$;X++){if(Y=V,V=J[(X+1)*2+1],++q<U&&Y===V)continue;else if(q<G)Q.bl_tree[Y*2]+=q;else if(Y!==0){if(Y!==K)Q.bl_tree[Y*2]++;Q.bl_tree[dQ*2]++}else if(q<=10)Q.bl_tree[lQ*2]++;else Q.bl_tree[iQ*2]++;if(q=0,K=Y,V===0)U=138,G=3;else if(Y===V)U=6,G=3;else U=7,G=4}}function uQ(Q,J,$){var X,K=-1,Y,V=J[1],q=0,U=7,G=4;if(V===0)U=138,G=3;for(X=0;X<=$;X++){if(Y=V,V=J[(X+1)*2+1],++q<U&&Y===V)continue;else if(q<G)do G2(Q,Y,Q.bl_tree);while(--q!==0);else if(Y!==0){if(Y!==K)G2(Q,Y,Q.bl_tree),q--;G2(Q,dQ,Q.bl_tree),b0(Q,q-3,2)}else if(q<=10)G2(Q,lQ,Q.bl_tree),b0(Q,q-3,3);else G2(Q,iQ,Q.bl_tree),b0(Q,q-11,7);if(q=0,K=Y,V===0)U=138,G=3;else if(Y===V)U=6,G=3;else U=7,G=4}}function JV(Q){var J;bQ(Q,Q.dyn_ltree,Q.l_desc.max_code),bQ(Q,Q.dyn_dtree,Q.d_desc.max_code),R5(Q,Q.bl_desc);for(J=k5-1;J>=3;J--)if(Q.bl_tree[nQ[J]*2+1]!==0)break;return Q.opt_len+=3*(J+1)+5+5+4,J}function $V(Q,J,$,X){var K;b0(Q,J-257,5),b0(Q,$-1,5),b0(Q,X-4,4);for(K=0;K<X;K++)b0(Q,Q.bl_tree[nQ[K]*2+1],3);uQ(Q,Q.dyn_ltree,J-1),uQ(Q,Q.dyn_dtree,$-1)}function XV(Q){var J=4093624447,$;for($=0;$<=31;$++,J>>>=1)if(J&1&&Q.dyn_ltree[$*2]!==0)return yQ;if(Q.dyn_ltree[18]!==0||Q.dyn_ltree[20]!==0||Q.dyn_ltree[26]!==0)return hQ;for($=32;$<U6;$++)if(Q.dyn_ltree[$*2]!==0)return hQ;return yQ}var pQ=!1;function KV(Q){if(!pQ)e9(),pQ=!0;Q.l_desc=new C5(Q.dyn_ltree,rQ),Q.d_desc=new C5(Q.dyn_dtree,oQ),Q.bl_desc=new C5(Q.bl_tree,aQ),Q.bi_buf=0,Q.bi_valid=0,QJ(Q)}function $J(Q,J,$,X){b0(Q,(d9<<1)+(X?1:0),3),QV(Q,J,$,!0)}function YV(Q){b0(Q,cQ<<1,3),G2(Q,E5,O2),s9(Q)}function VV(Q,J,$,X){var K,Y,V=0;if(Q.level>0){if(Q.strm.data_type===m9)Q.strm.data_type=XV(Q);if(R5(Q,Q.l_desc),R5(Q,Q.d_desc),V=JV(Q),K=Q.opt_len+3+7>>>3,Y=Q.static_len+3+7>>>3,Y<=K)K=Y}else K=Y=$+5;if($+4<=K&&J!==-1)$J(Q,J,$,X);else if(Q.strategy===c9||Y===K)b0(Q,(cQ<<1)+(X?1:0),3),_Q(Q,O2,Y6);else b0(Q,(l9<<1)+(X?1:0),3),$V(Q,Q.l_desc.max_code+1,Q.d_desc.max_code+1,V+1),_Q(Q,Q.dyn_ltree,Q.dyn_dtree);if(QJ(Q),X)JJ(Q)}function qV(Q,J,$){if(Q.pending_buf[Q.d_buf+Q.last_lit*2]=J>>>8&255,Q.pending_buf[Q.d_buf+Q.last_lit*2+1]=J&255,Q.pending_buf[Q.l_buf+Q.last_lit]=$&255,Q.last_lit++,J===0)Q.dyn_ltree[$*2]++;else Q.matches++,J--,Q.dyn_ltree[(B6[$]+U6+1)*2]++,Q.dyn_dtree[sQ(J)*2]++;return Q.last_lit===Q.lit_bufsize-1}D1._tr_init=KV;D1._tr_stored_block=$J;D1._tr_flush_block=VV;D1._tr_tally=qV;D1._tr_align=YV});var v5=B0((eB,KJ)=>{function BV(Q,J,$,X){var K=Q&65535|0,Y=Q>>>16&65535|0,V=0;while($!==0){V=$>2000?2000:$,$-=V;do K=K+J[X++]|0,Y=Y+K|0;while(--V);K%=65521,Y%=65521}return K|Y<<16|0}KJ.exports=BV});var x5=B0((QG,YJ)=>{function GV(){var Q,J=[];for(var $=0;$<256;$++){Q=$;for(var X=0;X<8;X++)Q=Q&1?3988292384^Q>>>1:Q>>>1;J[$]=Q}return J}var UV=GV();function zV(Q,J,$,X){var K=UV,Y=X+$;Q^=-1;for(var V=X;V<Y;V++)Q=Q>>>8^K[(Q^J[V])&255];return Q^-1}YJ.exports=zV});var e6=B0((JG,VJ)=>{VJ.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 jJ=B0((Z2)=>{var y0=N2(),r0=XJ(),UJ=v5(),g2=x5(),ZV=e6(),$1=0,WV=1,HV=3,b2=4,qJ=5,z2=0,BJ=1,o0=-2,jV=-3,g5=-5,PV=-1,MV=1,Q8=2,LV=3,FV=4,wV=0,IV=2,K8=8,NV=9,OV=15,CV=8,DV=29,AV=256,h5=AV+1+DV,RV=30,TV=19,kV=2*h5+1,EV=15,j0=3,f2=258,e0=f2+j0+1,SV=32,Y8=42,f5=69,J8=73,$8=91,X8=103,e2=113,Z6=666,R0=1,W6=2,Q1=3,T1=4,vV=3;function _2(Q,J){return Q.msg=ZV[J],J}function GJ(Q){return(Q<<1)-(Q>4?9:0)}function h2(Q){var J=Q.length;while(--J>=0)Q[J]=0}function y2(Q){var J=Q.state,$=J.pending;if($>Q.avail_out)$=Q.avail_out;if($===0)return;if(y0.arraySet(Q.output,J.pending_buf,J.pending_out,$,Q.next_out),Q.next_out+=$,J.pending_out+=$,Q.total_out+=$,Q.avail_out-=$,J.pending-=$,J.pending===0)J.pending_out=0}function k0(Q,J){r0._tr_flush_block(Q,Q.block_start>=0?Q.block_start:-1,Q.strstart-Q.block_start,J),Q.block_start=Q.strstart,y2(Q.strm)}function P0(Q,J){Q.pending_buf[Q.pending++]=J}function z6(Q,J){Q.pending_buf[Q.pending++]=J>>>8&255,Q.pending_buf[Q.pending++]=J&255}function xV(Q,J,$,X){var K=Q.avail_in;if(K>X)K=X;if(K===0)return 0;if(Q.avail_in-=K,y0.arraySet(J,Q.input,Q.next_in,K,$),Q.state.wrap===1)Q.adler=UJ(Q.adler,J,K,$);else if(Q.state.wrap===2)Q.adler=g2(Q.adler,J,K,$);return Q.next_in+=K,Q.total_in+=K,K}function zJ(Q,J){var{max_chain_length:$,strstart:X}=Q,K,Y,V=Q.prev_length,q=Q.nice_match,U=Q.strstart>Q.w_size-e0?Q.strstart-(Q.w_size-e0):0,G=Q.window,B=Q.w_mask,j=Q.prev,W=Q.strstart+f2,H=G[X+V-1],S=G[X+V];if(Q.prev_length>=Q.good_match)$>>=2;if(q>Q.lookahead)q=Q.lookahead;do{if(K=J,G[K+V]!==S||G[K+V-1]!==H||G[K]!==G[X]||G[++K]!==G[X+1])continue;X+=2,K++;do;while(G[++X]===G[++K]&&G[++X]===G[++K]&&G[++X]===G[++K]&&G[++X]===G[++K]&&G[++X]===G[++K]&&G[++X]===G[++K]&&G[++X]===G[++K]&&G[++X]===G[++K]&&X<W);if(Y=f2-(W-X),X=W-f2,Y>V){if(Q.match_start=J,V=Y,Y>=q)break;H=G[X+V-1],S=G[X+V]}}while((J=j[J&B])>U&&--$!==0);if(V<=Q.lookahead)return V;return Q.lookahead}function J1(Q){var J=Q.w_size,$,X,K,Y,V;do{if(Y=Q.window_size-Q.lookahead-Q.strstart,Q.strstart>=J+(J-e0)){y0.arraySet(Q.window,Q.window,J,J,0),Q.match_start-=J,Q.strstart-=J,Q.block_start-=J,X=Q.hash_size,$=X;do K=Q.head[--$],Q.head[$]=K>=J?K-J:0;while(--X);X=J,$=X;do K=Q.prev[--$],Q.prev[$]=K>=J?K-J:0;while(--X);Y+=J}if(Q.strm.avail_in===0)break;if(X=xV(Q.strm,Q.window,Q.strstart+Q.lookahead,Y),Q.lookahead+=X,Q.lookahead+Q.insert>=j0){V=Q.strstart-Q.insert,Q.ins_h=Q.window[V],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[V+1])&Q.hash_mask;while(Q.insert)if(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[V+j0-1])&Q.hash_mask,Q.prev[V&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=V,V++,Q.insert--,Q.lookahead+Q.insert<j0)break}}while(Q.lookahead<e0&&Q.strm.avail_in!==0)}function gV(Q,J){var $=65535;if($>Q.pending_buf_size-5)$=Q.pending_buf_size-5;for(;;){if(Q.lookahead<=1){if(J1(Q),Q.lookahead===0&&J===$1)return R0;if(Q.lookahead===0)break}Q.strstart+=Q.lookahead,Q.lookahead=0;var X=Q.block_start+$;if(Q.strstart===0||Q.strstart>=X){if(Q.lookahead=Q.strstart-X,Q.strstart=X,k0(Q,!1),Q.strm.avail_out===0)return R0}if(Q.strstart-Q.block_start>=Q.w_size-e0){if(k0(Q,!1),Q.strm.avail_out===0)return R0}}if(Q.insert=0,J===b2){if(k0(Q,!0),Q.strm.avail_out===0)return Q1;return T1}if(Q.strstart>Q.block_start){if(k0(Q,!1),Q.strm.avail_out===0)return R0}return R0}function y5(Q,J){var $,X;for(;;){if(Q.lookahead<e0){if(J1(Q),Q.lookahead<e0&&J===$1)return R0;if(Q.lookahead===0)break}if($=0,Q.lookahead>=j0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+j0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;if($!==0&&Q.strstart-$<=Q.w_size-e0)Q.match_length=zJ(Q,$);if(Q.match_length>=j0)if(X=r0._tr_tally(Q,Q.strstart-Q.match_start,Q.match_length-j0),Q.lookahead-=Q.match_length,Q.match_length<=Q.max_lazy_match&&Q.lookahead>=j0){Q.match_length--;do Q.strstart++,Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+j0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;while(--Q.match_length!==0);Q.strstart++}else Q.strstart+=Q.match_length,Q.match_length=0,Q.ins_h=Q.window[Q.strstart],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+1])&Q.hash_mask;else X=r0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(X){if(k0(Q,!1),Q.strm.avail_out===0)return R0}}if(Q.insert=Q.strstart<j0-1?Q.strstart:j0-1,J===b2){if(k0(Q,!0),Q.strm.avail_out===0)return Q1;return T1}if(Q.last_lit){if(k0(Q,!1),Q.strm.avail_out===0)return R0}return W6}function A1(Q,J){var $,X,K;for(;;){if(Q.lookahead<e0){if(J1(Q),Q.lookahead<e0&&J===$1)return R0;if(Q.lookahead===0)break}if($=0,Q.lookahead>=j0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+j0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;if(Q.prev_length=Q.match_length,Q.prev_match=Q.match_start,Q.match_length=j0-1,$!==0&&Q.prev_length<Q.max_lazy_match&&Q.strstart-$<=Q.w_size-e0){if(Q.match_length=zJ(Q,$),Q.match_length<=5&&(Q.strategy===MV||Q.match_length===j0&&Q.strstart-Q.match_start>4096))Q.match_length=j0-1}if(Q.prev_length>=j0&&Q.match_length<=Q.prev_length){K=Q.strstart+Q.lookahead-j0,X=r0._tr_tally(Q,Q.strstart-1-Q.prev_match,Q.prev_length-j0),Q.lookahead-=Q.prev_length-1,Q.prev_length-=2;do if(++Q.strstart<=K)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+j0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;while(--Q.prev_length!==0);if(Q.match_available=0,Q.match_length=j0-1,Q.strstart++,X){if(k0(Q,!1),Q.strm.avail_out===0)return R0}}else if(Q.match_available){if(X=r0._tr_tally(Q,0,Q.window[Q.strstart-1]),X)k0(Q,!1);if(Q.strstart++,Q.lookahead--,Q.strm.avail_out===0)return R0}else Q.match_available=1,Q.strstart++,Q.lookahead--}if(Q.match_available)X=r0._tr_tally(Q,0,Q.window[Q.strstart-1]),Q.match_available=0;if(Q.insert=Q.strstart<j0-1?Q.strstart:j0-1,J===b2){if(k0(Q,!0),Q.strm.avail_out===0)return Q1;return T1}if(Q.last_lit){if(k0(Q,!1),Q.strm.avail_out===0)return R0}return W6}function yV(Q,J){var $,X,K,Y,V=Q.window;for(;;){if(Q.lookahead<=f2){if(J1(Q),Q.lookahead<=f2&&J===$1)return R0;if(Q.lookahead===0)break}if(Q.match_length=0,Q.lookahead>=j0&&Q.strstart>0){if(K=Q.strstart-1,X=V[K],X===V[++K]&&X===V[++K]&&X===V[++K]){Y=Q.strstart+f2;do;while(X===V[++K]&&X===V[++K]&&X===V[++K]&&X===V[++K]&&X===V[++K]&&X===V[++K]&&X===V[++K]&&X===V[++K]&&K<Y);if(Q.match_length=f2-(Y-K),Q.match_length>Q.lookahead)Q.match_length=Q.lookahead}}if(Q.match_length>=j0)$=r0._tr_tally(Q,1,Q.match_length-j0),Q.lookahead-=Q.match_length,Q.strstart+=Q.match_length,Q.match_length=0;else $=r0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if($){if(k0(Q,!1),Q.strm.avail_out===0)return R0}}if(Q.insert=0,J===b2){if(k0(Q,!0),Q.strm.avail_out===0)return Q1;return T1}if(Q.last_lit){if(k0(Q,!1),Q.strm.avail_out===0)return R0}return W6}function hV(Q,J){var $;for(;;){if(Q.lookahead===0){if(J1(Q),Q.lookahead===0){if(J===$1)return R0;break}}if(Q.match_length=0,$=r0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++,$){if(k0(Q,!1),Q.strm.avail_out===0)return R0}}if(Q.insert=0,J===b2){if(k0(Q,!0),Q.strm.avail_out===0)return Q1;return T1}if(Q.last_lit){if(k0(Q,!1),Q.strm.avail_out===0)return R0}return W6}function U2(Q,J,$,X,K){this.good_length=Q,this.max_lazy=J,this.nice_length=$,this.max_chain=X,this.func=K}var R1;R1=[new U2(0,0,0,0,gV),new U2(4,4,8,4,y5),new U2(4,5,16,8,y5),new U2(4,6,32,32,y5),new U2(4,4,16,16,A1),new U2(8,16,32,32,A1),new U2(8,16,128,128,A1),new U2(8,32,128,256,A1),new U2(32,128,258,1024,A1),new U2(32,258,258,4096,A1)];function fV(Q){Q.window_size=2*Q.w_size,h2(Q.head),Q.max_lazy_match=R1[Q.level].max_lazy,Q.good_match=R1[Q.level].good_length,Q.nice_match=R1[Q.level].nice_length,Q.max_chain_length=R1[Q.level].max_chain,Q.strstart=0,Q.block_start=0,Q.lookahead=0,Q.insert=0,Q.match_length=Q.prev_length=j0-1,Q.match_available=0,Q.ins_h=0}function _V(){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=K8,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(kV*2),this.dyn_dtree=new y0.Buf16((2*RV+1)*2),this.bl_tree=new y0.Buf16((2*TV+1)*2),h2(this.dyn_ltree),h2(this.dyn_dtree),h2(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new y0.Buf16(EV+1),this.heap=new y0.Buf16(2*h5+1),h2(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new y0.Buf16(2*h5+1),h2(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 ZJ(Q){var J;if(!Q||!Q.state)return _2(Q,o0);if(Q.total_in=Q.total_out=0,Q.data_type=IV,J=Q.state,J.pending=0,J.pending_out=0,J.wrap<0)J.wrap=-J.wrap;return J.status=J.wrap?Y8:e2,Q.adler=J.wrap===2?0:1,J.last_flush=$1,r0._tr_init(J),z2}function WJ(Q){var J=ZJ(Q);if(J===z2)fV(Q.state);return J}function bV(Q,J){if(!Q||!Q.state)return o0;if(Q.state.wrap!==2)return o0;return Q.state.gzhead=J,z2}function HJ(Q,J,$,X,K,Y){if(!Q)return o0;var V=1;if(J===PV)J=6;if(X<0)V=0,X=-X;else if(X>15)V=2,X-=16;if(K<1||K>NV||$!==K8||X<8||X>15||J<0||J>9||Y<0||Y>FV)return _2(Q,o0);if(X===8)X=9;var q=new _V;return Q.state=q,q.strm=Q,q.wrap=V,q.gzhead=null,q.w_bits=X,q.w_size=1<<q.w_bits,q.w_mask=q.w_size-1,q.hash_bits=K+7,q.hash_size=1<<q.hash_bits,q.hash_mask=q.hash_size-1,q.hash_shift=~~((q.hash_bits+j0-1)/j0),q.window=new y0.Buf8(q.w_size*2),q.head=new y0.Buf16(q.hash_size),q.prev=new y0.Buf16(q.w_size),q.lit_bufsize=1<<K+6,q.pending_buf_size=q.lit_bufsize*4,q.pending_buf=new y0.Buf8(q.pending_buf_size),q.d_buf=1*q.lit_bufsize,q.l_buf=3*q.lit_bufsize,q.level=J,q.strategy=Y,q.method=$,WJ(Q)}function uV(Q,J){return HJ(Q,J,K8,OV,CV,wV)}function pV(Q,J){var $,X,K,Y;if(!Q||!Q.state||J>qJ||J<0)return Q?_2(Q,o0):o0;if(X=Q.state,!Q.output||!Q.input&&Q.avail_in!==0||X.status===Z6&&J!==b2)return _2(Q,Q.avail_out===0?g5:o0);if(X.strm=Q,$=X.last_flush,X.last_flush=J,X.status===Y8)if(X.wrap===2)if(Q.adler=0,P0(X,31),P0(X,139),P0(X,8),!X.gzhead)P0(X,0),P0(X,0),P0(X,0),P0(X,0),P0(X,0),P0(X,X.level===9?2:X.strategy>=Q8||X.level<2?4:0),P0(X,vV),X.status=e2;else{if(P0(X,(X.gzhead.text?1:0)+(X.gzhead.hcrc?2:0)+(!X.gzhead.extra?0:4)+(!X.gzhead.name?0:8)+(!X.gzhead.comment?0:16)),P0(X,X.gzhead.time&255),P0(X,X.gzhead.time>>8&255),P0(X,X.gzhead.time>>16&255),P0(X,X.gzhead.time>>24&255),P0(X,X.level===9?2:X.strategy>=Q8||X.level<2?4:0),P0(X,X.gzhead.os&255),X.gzhead.extra&&X.gzhead.extra.length)P0(X,X.gzhead.extra.length&255),P0(X,X.gzhead.extra.length>>8&255);if(X.gzhead.hcrc)Q.adler=g2(Q.adler,X.pending_buf,X.pending,0);X.gzindex=0,X.status=f5}else{var V=K8+(X.w_bits-8<<4)<<8,q=-1;if(X.strategy>=Q8||X.level<2)q=0;else if(X.level<6)q=1;else if(X.level===6)q=2;else q=3;if(V|=q<<6,X.strstart!==0)V|=SV;if(V+=31-V%31,X.status=e2,z6(X,V),X.strstart!==0)z6(X,Q.adler>>>16),z6(X,Q.adler&65535);Q.adler=1}if(X.status===f5)if(X.gzhead.extra){K=X.pending;while(X.gzindex<(X.gzhead.extra.length&65535)){if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>K)Q.adler=g2(Q.adler,X.pending_buf,X.pending-K,K);if(y2(Q),K=X.pending,X.pending===X.pending_buf_size)break}P0(X,X.gzhead.extra[X.gzindex]&255),X.gzindex++}if(X.gzhead.hcrc&&X.pending>K)Q.adler=g2(Q.adler,X.pending_buf,X.pending-K,K);if(X.gzindex===X.gzhead.extra.length)X.gzindex=0,X.status=J8}else X.status=J8;if(X.status===J8)if(X.gzhead.name){K=X.pending;do{if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>K)Q.adler=g2(Q.adler,X.pending_buf,X.pending-K,K);if(y2(Q),K=X.pending,X.pending===X.pending_buf_size){Y=1;break}}if(X.gzindex<X.gzhead.name.length)Y=X.gzhead.name.charCodeAt(X.gzindex++)&255;else Y=0;P0(X,Y)}while(Y!==0);if(X.gzhead.hcrc&&X.pending>K)Q.adler=g2(Q.adler,X.pending_buf,X.pending-K,K);if(Y===0)X.gzindex=0,X.status=$8}else X.status=$8;if(X.status===$8)if(X.gzhead.comment){K=X.pending;do{if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>K)Q.adler=g2(Q.adler,X.pending_buf,X.pending-K,K);if(y2(Q),K=X.pending,X.pending===X.pending_buf_size){Y=1;break}}if(X.gzindex<X.gzhead.comment.length)Y=X.gzhead.comment.charCodeAt(X.gzindex++)&255;else Y=0;P0(X,Y)}while(Y!==0);if(X.gzhead.hcrc&&X.pending>K)Q.adler=g2(Q.adler,X.pending_buf,X.pending-K,K);if(Y===0)X.status=X8}else X.status=X8;if(X.status===X8)if(X.gzhead.hcrc){if(X.pending+2>X.pending_buf_size)y2(Q);if(X.pending+2<=X.pending_buf_size)P0(X,Q.adler&255),P0(X,Q.adler>>8&255),Q.adler=0,X.status=e2}else X.status=e2;if(X.pending!==0){if(y2(Q),Q.avail_out===0)return X.last_flush=-1,z2}else if(Q.avail_in===0&&GJ(J)<=GJ($)&&J!==b2)return _2(Q,g5);if(X.status===Z6&&Q.avail_in!==0)return _2(Q,g5);if(Q.avail_in!==0||X.lookahead!==0||J!==$1&&X.status!==Z6){var U=X.strategy===Q8?hV(X,J):X.strategy===LV?yV(X,J):R1[X.level].func(X,J);if(U===Q1||U===T1)X.status=Z6;if(U===R0||U===Q1){if(Q.avail_out===0)X.last_flush=-1;return z2}if(U===W6){if(J===WV)r0._tr_align(X);else if(J!==qJ){if(r0._tr_stored_block(X,0,0,!1),J===HV){if(h2(X.head),X.lookahead===0)X.strstart=0,X.block_start=0,X.insert=0}}if(y2(Q),Q.avail_out===0)return X.last_flush=-1,z2}}if(J!==b2)return z2;if(X.wrap<=0)return BJ;if(X.wrap===2)P0(X,Q.adler&255),P0(X,Q.adler>>8&255),P0(X,Q.adler>>16&255),P0(X,Q.adler>>24&255),P0(X,Q.total_in&255),P0(X,Q.total_in>>8&255),P0(X,Q.total_in>>16&255),P0(X,Q.total_in>>24&255);else z6(X,Q.adler>>>16),z6(X,Q.adler&65535);if(y2(Q),X.wrap>0)X.wrap=-X.wrap;return X.pending!==0?z2:BJ}function cV(Q){var J;if(!Q||!Q.state)return o0;if(J=Q.state.status,J!==Y8&&J!==f5&&J!==J8&&J!==$8&&J!==X8&&J!==e2&&J!==Z6)return _2(Q,o0);return Q.state=null,J===e2?_2(Q,jV):z2}function mV(Q,J){var $=J.length,X,K,Y,V,q,U,G,B;if(!Q||!Q.state)return o0;if(X=Q.state,V=X.wrap,V===2||V===1&&X.status!==Y8||X.lookahead)return o0;if(V===1)Q.adler=UJ(Q.adler,J,$,0);if(X.wrap=0,$>=X.w_size){if(V===0)h2(X.head),X.strstart=0,X.block_start=0,X.insert=0;B=new y0.Buf8(X.w_size),y0.arraySet(B,J,$-X.w_size,X.w_size,0),J=B,$=X.w_size}q=Q.avail_in,U=Q.next_in,G=Q.input,Q.avail_in=$,Q.next_in=0,Q.input=J,J1(X);while(X.lookahead>=j0){K=X.strstart,Y=X.lookahead-(j0-1);do X.ins_h=(X.ins_h<<X.hash_shift^X.window[K+j0-1])&X.hash_mask,X.prev[K&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=K,K++;while(--Y);X.strstart=K,X.lookahead=j0-1,J1(X)}return X.strstart+=X.lookahead,X.block_start=X.strstart,X.insert=X.lookahead,X.lookahead=0,X.match_length=X.prev_length=j0-1,X.match_available=0,Q.next_in=U,Q.input=G,Q.avail_in=q,X.wrap=V,z2}Z2.deflateInit=uV;Z2.deflateInit2=HJ;Z2.deflateReset=WJ;Z2.deflateResetKeep=ZJ;Z2.deflateSetHeader=bV;Z2.deflate=pV;Z2.deflateEnd=cV;Z2.deflateSetDictionary=mV;Z2.deflateInfo="pako deflate (from Nodeca project)"});var _5=B0((k1)=>{var V8=N2(),PJ=!0,MJ=!0;try{String.fromCharCode.apply(null,[0])}catch(Q){PJ=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Q){MJ=!1}var H6=new V8.Buf8(256);for(W2=0;W2<256;W2++)H6[W2]=W2>=252?6:W2>=248?5:W2>=240?4:W2>=224?3:W2>=192?2:1;var W2;H6[254]=H6[254]=1;k1.string2buf=function(Q){var J,$,X,K,Y,V=Q.length,q=0;for(K=0;K<V;K++){if($=Q.charCodeAt(K),($&64512)===55296&&K+1<V){if(X=Q.charCodeAt(K+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),K++}q+=$<128?1:$<2048?2:$<65536?3:4}J=new V8.Buf8(q);for(Y=0,K=0;Y<q;K++){if($=Q.charCodeAt(K),($&64512)===55296&&K+1<V){if(X=Q.charCodeAt(K+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),K++}if($<128)J[Y++]=$;else if($<2048)J[Y++]=192|$>>>6,J[Y++]=128|$&63;else if($<65536)J[Y++]=224|$>>>12,J[Y++]=128|$>>>6&63,J[Y++]=128|$&63;else J[Y++]=240|$>>>18,J[Y++]=128|$>>>12&63,J[Y++]=128|$>>>6&63,J[Y++]=128|$&63}return J};function LJ(Q,J){if(J<65534){if(Q.subarray&&MJ||!Q.subarray&&PJ)return String.fromCharCode.apply(null,V8.shrinkBuf(Q,J))}var $="";for(var X=0;X<J;X++)$+=String.fromCharCode(Q[X]);return $}k1.buf2binstring=function(Q){return LJ(Q,Q.length)};k1.binstring2buf=function(Q){var J=new V8.Buf8(Q.length);for(var $=0,X=J.length;$<X;$++)J[$]=Q.charCodeAt($);return J};k1.buf2string=function(Q,J){var $,X,K,Y,V=J||Q.length,q=Array(V*2);for(X=0,$=0;$<V;){if(K=Q[$++],K<128){q[X++]=K;continue}if(Y=H6[K],Y>4){q[X++]=65533,$+=Y-1;continue}K&=Y===2?31:Y===3?15:7;while(Y>1&&$<V)K=K<<6|Q[$++]&63,Y--;if(Y>1){q[X++]=65533;continue}if(K<65536)q[X++]=K;else K-=65536,q[X++]=55296|K>>10&1023,q[X++]=56320|K&1023}return LJ(q,X)};k1.utf8border=function(Q,J){var $;if(J=J||Q.length,J>Q.length)J=Q.length;$=J-1;while($>=0&&(Q[$]&192)===128)$--;if($<0)return J;if($===0)return J;return $+H6[Q[$]]>J?$:J}});var b5=B0((KG,FJ)=>{function dV(){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}FJ.exports=dV});var OJ=B0((M6)=>{var j6=jJ(),P6=N2(),p5=_5(),c5=e6(),lV=b5(),NJ=Object.prototype.toString,iV=0,u5=4,E1=0,wJ=1,IJ=2,nV=-1,rV=0,oV=8;function X1(Q){if(!(this instanceof X1))return new X1(Q);this.options=P6.assign({level:nV,method:oV,chunkSize:16384,windowBits:15,memLevel:8,strategy:rV,to:""},Q||{});var J=this.options;if(J.raw&&J.windowBits>0)J.windowBits=-J.windowBits;else if(J.gzip&&J.windowBits>0&&J.windowBits<16)J.windowBits+=16;this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new lV,this.strm.avail_out=0;var $=j6.deflateInit2(this.strm,J.level,J.method,J.windowBits,J.memLevel,J.strategy);if($!==E1)throw Error(c5[$]);if(J.header)j6.deflateSetHeader(this.strm,J.header);if(J.dictionary){var X;if(typeof J.dictionary==="string")X=p5.string2buf(J.dictionary);else if(NJ.call(J.dictionary)==="[object ArrayBuffer]")X=new Uint8Array(J.dictionary);else X=J.dictionary;if($=j6.deflateSetDictionary(this.strm,X),$!==E1)throw Error(c5[$]);this._dict_set=!0}}X1.prototype.push=function(Q,J){var $=this.strm,X=this.options.chunkSize,K,Y;if(this.ended)return!1;if(Y=J===~~J?J:J===!0?u5:iV,typeof Q==="string")$.input=p5.string2buf(Q);else if(NJ.call(Q)==="[object ArrayBuffer]")$.input=new Uint8Array(Q);else $.input=Q;$.next_in=0,$.avail_in=$.input.length;do{if($.avail_out===0)$.output=new P6.Buf8(X),$.next_out=0,$.avail_out=X;if(K=j6.deflate($,Y),K!==wJ&&K!==E1)return this.onEnd(K),this.ended=!0,!1;if($.avail_out===0||$.avail_in===0&&(Y===u5||Y===IJ))if(this.options.to==="string")this.onData(p5.buf2binstring(P6.shrinkBuf($.output,$.next_out)));else this.onData(P6.shrinkBuf($.output,$.next_out))}while(($.avail_in>0||$.avail_out===0)&&K!==wJ);if(Y===u5)return K=j6.deflateEnd(this.strm),this.onEnd(K),this.ended=!0,K===E1;if(Y===IJ)return this.onEnd(E1),$.avail_out=0,!0;return!0};X1.prototype.onData=function(Q){this.chunks.push(Q)};X1.prototype.onEnd=function(Q){if(Q===E1)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=P6.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function m5(Q,J){var $=new X1(J);if($.push(Q,!0),$.err)throw $.msg||c5[$.err];return $.result}function aV(Q,J){return J=J||{},J.raw=!0,m5(Q,J)}function sV(Q,J){return J=J||{},J.gzip=!0,m5(Q,J)}M6.Deflate=X1;M6.deflate=m5;M6.deflateRaw=aV;M6.gzip=sV});var DJ=B0((VG,CJ)=>{var q8=30,tV=12;CJ.exports=function(J,$){var X,K,Y,V,q,U,G,B,j,W,H,S,A,w,F,z,P,L,N,x,d,i,_,v,k;X=J.state,K=J.next_in,v=J.input,Y=K+(J.avail_in-5),V=J.next_out,k=J.output,q=V-($-J.avail_out),U=V+(J.avail_out-257),G=X.dmax,B=X.wsize,j=X.whave,W=X.wnext,H=X.window,S=X.hold,A=X.bits,w=X.lencode,F=X.distcode,z=(1<<X.lenbits)-1,P=(1<<X.distbits)-1;Q:do{if(A<15)S+=v[K++]<<A,A+=8,S+=v[K++]<<A,A+=8;L=w[S&z];J:for(;;){if(N=L>>>24,S>>>=N,A-=N,N=L>>>16&255,N===0)k[V++]=L&65535;else if(N&16){if(x=L&65535,N&=15,N){if(A<N)S+=v[K++]<<A,A+=8;x+=S&(1<<N)-1,S>>>=N,A-=N}if(A<15)S+=v[K++]<<A,A+=8,S+=v[K++]<<A,A+=8;L=F[S&P];$:for(;;){if(N=L>>>24,S>>>=N,A-=N,N=L>>>16&255,N&16){if(d=L&65535,N&=15,A<N){if(S+=v[K++]<<A,A+=8,A<N)S+=v[K++]<<A,A+=8}if(d+=S&(1<<N)-1,d>G){J.msg="invalid distance too far back",X.mode=q8;break Q}if(S>>>=N,A-=N,N=V-q,d>N){if(N=d-N,N>j){if(X.sane){J.msg="invalid distance too far back",X.mode=q8;break Q}}if(i=0,_=H,W===0){if(i+=B-N,N<x){x-=N;do k[V++]=H[i++];while(--N);i=V-d,_=k}}else if(W<N){if(i+=B+W-N,N-=W,N<x){x-=N;do k[V++]=H[i++];while(--N);if(i=0,W<x){N=W,x-=N;do k[V++]=H[i++];while(--N);i=V-d,_=k}}}else if(i+=W-N,N<x){x-=N;do k[V++]=H[i++];while(--N);i=V-d,_=k}while(x>2)k[V++]=_[i++],k[V++]=_[i++],k[V++]=_[i++],x-=3;if(x){if(k[V++]=_[i++],x>1)k[V++]=_[i++]}}else{i=V-d;do k[V++]=k[i++],k[V++]=k[i++],k[V++]=k[i++],x-=3;while(x>2);if(x){if(k[V++]=k[i++],x>1)k[V++]=k[i++]}}}else if((N&64)===0){L=F[(L&65535)+(S&(1<<N)-1)];continue $}else{J.msg="invalid distance code",X.mode=q8;break Q}break}}else if((N&64)===0){L=w[(L&65535)+(S&(1<<N)-1)];continue J}else if(N&32){X.mode=tV;break Q}else{J.msg="invalid literal/length code",X.mode=q8;break Q}break}}while(K<Y&&V<U);x=A>>3,K-=x,A-=x<<3,S&=(1<<A)-1,J.next_in=K,J.next_out=V,J.avail_in=K<Y?5+(Y-K):5-(K-Y),J.avail_out=V<U?257+(U-V):257-(V-U),X.hold=S,X.bits=A;return}});var vJ=B0((qG,SJ)=>{var AJ=N2(),S1=15,RJ=852,TJ=592,kJ=0,d5=1,EJ=2,eV=[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],Qq=[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],Jq=[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],$q=[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];SJ.exports=function(J,$,X,K,Y,V,q,U){var G=U.bits,B=0,j=0,W=0,H=0,S=0,A=0,w=0,F=0,z=0,P=0,L,N,x,d,i,_=null,v=0,k,O=new AJ.Buf16(S1+1),E=new AJ.Buf16(S1+1),g=null,T=0,o,e,X0;for(B=0;B<=S1;B++)O[B]=0;for(j=0;j<K;j++)O[$[X+j]]++;S=G;for(H=S1;H>=1;H--)if(O[H]!==0)break;if(S>H)S=H;if(H===0)return Y[V++]=20971520,Y[V++]=20971520,U.bits=1,0;for(W=1;W<H;W++)if(O[W]!==0)break;if(S<W)S=W;F=1;for(B=1;B<=S1;B++)if(F<<=1,F-=O[B],F<0)return-1;if(F>0&&(J===kJ||H!==1))return-1;E[1]=0;for(B=1;B<S1;B++)E[B+1]=E[B]+O[B];for(j=0;j<K;j++)if($[X+j]!==0)q[E[$[X+j]]++]=j;if(J===kJ)_=g=q,k=19;else if(J===d5)_=eV,v-=257,g=Qq,T-=257,k=256;else _=Jq,g=$q,k=-1;if(P=0,j=0,B=W,i=V,A=S,w=0,x=-1,z=1<<S,d=z-1,J===d5&&z>RJ||J===EJ&&z>TJ)return 1;for(;;){if(o=B-w,q[j]<k)e=0,X0=q[j];else if(q[j]>k)e=g[T+q[j]],X0=_[v+q[j]];else e=96,X0=0;L=1<<B-w,N=1<<A,W=N;do N-=L,Y[i+(P>>w)+N]=o<<24|e<<16|X0|0;while(N!==0);L=1<<B-1;while(P&L)L>>=1;if(L!==0)P&=L-1,P+=L;else P=0;if(j++,--O[B]===0){if(B===H)break;B=$[X+q[j]]}if(B>S&&(P&d)!==x){if(w===0)w=S;i+=W,A=B-w,F=1<<A;while(A+w<H){if(F-=O[A+w],F<=0)break;A++,F<<=1}if(z+=1<<A,J===d5&&z>RJ||J===EJ&&z>TJ)return 1;x=P&d,Y[x]=S<<24|A<<16|i-V|0}}if(P!==0)Y[i+P]=B-w<<24|4194304|0;return U.bits=S,0}});var W$=B0((Q2)=>{var m0=N2(),a5=v5(),H2=x5(),Xq=DJ(),L6=vJ(),Kq=0,K$=1,Y$=2,xJ=4,Yq=5,B8=6,K1=0,Vq=1,qq=2,a0=-2,V$=-3,s5=-4,Bq=-5,gJ=8,q$=1,yJ=2,hJ=3,fJ=4,_J=5,bJ=6,uJ=7,pJ=8,cJ=9,mJ=10,z8=11,C2=12,l5=13,dJ=14,i5=15,lJ=16,iJ=17,nJ=18,rJ=19,G8=20,U8=21,oJ=22,aJ=23,sJ=24,tJ=25,eJ=26,n5=27,Q$=28,J$=29,I0=30,t5=31,Gq=32,Uq=852,zq=592,Zq=15,Wq=Zq;function $$(Q){return(Q>>>24&255)+(Q>>>8&65280)+((Q&65280)<<8)+((Q&255)<<24)}function Hq(){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 B$(Q){var J;if(!Q||!Q.state)return a0;if(J=Q.state,Q.total_in=Q.total_out=J.total=0,Q.msg="",J.wrap)Q.adler=J.wrap&1;return J.mode=q$,J.last=0,J.havedict=0,J.dmax=32768,J.head=null,J.hold=0,J.bits=0,J.lencode=J.lendyn=new m0.Buf32(Uq),J.distcode=J.distdyn=new m0.Buf32(zq),J.sane=1,J.back=-1,K1}function G$(Q){var J;if(!Q||!Q.state)return a0;return J=Q.state,J.wsize=0,J.whave=0,J.wnext=0,B$(Q)}function U$(Q,J){var $,X;if(!Q||!Q.state)return a0;if(X=Q.state,J<0)$=0,J=-J;else if($=(J>>4)+1,J<48)J&=15;if(J&&(J<8||J>15))return a0;if(X.window!==null&&X.wbits!==J)X.window=null;return X.wrap=$,X.wbits=J,G$(Q)}function z$(Q,J){var $,X;if(!Q)return a0;if(X=new Hq,Q.state=X,X.window=null,$=U$(Q,J),$!==K1)Q.state=null;return $}function jq(Q){return z$(Q,Wq)}var X$=!0,r5,o5;function Pq(Q){if(X$){var J;r5=new m0.Buf32(512),o5=new m0.Buf32(32),J=0;while(J<144)Q.lens[J++]=8;while(J<256)Q.lens[J++]=9;while(J<280)Q.lens[J++]=7;while(J<288)Q.lens[J++]=8;L6(K$,Q.lens,0,288,r5,0,Q.work,{bits:9}),J=0;while(J<32)Q.lens[J++]=5;L6(Y$,Q.lens,0,32,o5,0,Q.work,{bits:5}),X$=!1}Q.lencode=r5,Q.lenbits=9,Q.distcode=o5,Q.distbits=5}function Z$(Q,J,$,X){var K,Y=Q.state;if(Y.window===null)Y.wsize=1<<Y.wbits,Y.wnext=0,Y.whave=0,Y.window=new m0.Buf8(Y.wsize);if(X>=Y.wsize)m0.arraySet(Y.window,J,$-Y.wsize,Y.wsize,0),Y.wnext=0,Y.whave=Y.wsize;else{if(K=Y.wsize-Y.wnext,K>X)K=X;if(m0.arraySet(Y.window,J,$-X,K,Y.wnext),X-=K,X)m0.arraySet(Y.window,J,$-X,X,0),Y.wnext=X,Y.whave=Y.wsize;else{if(Y.wnext+=K,Y.wnext===Y.wsize)Y.wnext=0;if(Y.whave<Y.wsize)Y.whave+=K}}return 0}function Mq(Q,J){var $,X,K,Y,V,q,U,G,B,j,W,H,S,A,w=0,F,z,P,L,N,x,d,i,_=new m0.Buf8(4),v,k,O=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Q||!Q.state||!Q.output||!Q.input&&Q.avail_in!==0)return a0;if($=Q.state,$.mode===C2)$.mode=l5;V=Q.next_out,K=Q.output,U=Q.avail_out,Y=Q.next_in,X=Q.input,q=Q.avail_in,G=$.hold,B=$.bits,j=q,W=U,i=K1;Q:for(;;)switch($.mode){case q$:if($.wrap===0){$.mode=l5;break}while(B<16){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if($.wrap&2&&G===35615){$.check=0,_[0]=G&255,_[1]=G>>>8&255,$.check=H2($.check,_,2,0),G=0,B=0,$.mode=yJ;break}if($.flags=0,$.head)$.head.done=!1;if(!($.wrap&1)||(((G&255)<<8)+(G>>8))%31){Q.msg="incorrect header check",$.mode=I0;break}if((G&15)!==gJ){Q.msg="unknown compression method",$.mode=I0;break}if(G>>>=4,B-=4,d=(G&15)+8,$.wbits===0)$.wbits=d;else if(d>$.wbits){Q.msg="invalid window size",$.mode=I0;break}$.dmax=1<<d,Q.adler=$.check=1,$.mode=G&512?mJ:C2,G=0,B=0;break;case yJ:while(B<16){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if($.flags=G,($.flags&255)!==gJ){Q.msg="unknown compression method",$.mode=I0;break}if($.flags&57344){Q.msg="unknown header flags set",$.mode=I0;break}if($.head)$.head.text=G>>8&1;if($.flags&512)_[0]=G&255,_[1]=G>>>8&255,$.check=H2($.check,_,2,0);G=0,B=0,$.mode=hJ;case hJ:while(B<32){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if($.head)$.head.time=G;if($.flags&512)_[0]=G&255,_[1]=G>>>8&255,_[2]=G>>>16&255,_[3]=G>>>24&255,$.check=H2($.check,_,4,0);G=0,B=0,$.mode=fJ;case fJ:while(B<16){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if($.head)$.head.xflags=G&255,$.head.os=G>>8;if($.flags&512)_[0]=G&255,_[1]=G>>>8&255,$.check=H2($.check,_,2,0);G=0,B=0,$.mode=_J;case _J:if($.flags&1024){while(B<16){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if($.length=G,$.head)$.head.extra_len=G;if($.flags&512)_[0]=G&255,_[1]=G>>>8&255,$.check=H2($.check,_,2,0);G=0,B=0}else if($.head)$.head.extra=null;$.mode=bJ;case bJ:if($.flags&1024){if(H=$.length,H>q)H=q;if(H){if($.head){if(d=$.head.extra_len-$.length,!$.head.extra)$.head.extra=Array($.head.extra_len);m0.arraySet($.head.extra,X,Y,H,d)}if($.flags&512)$.check=H2($.check,X,H,Y);q-=H,Y+=H,$.length-=H}if($.length)break Q}$.length=0,$.mode=uJ;case uJ:if($.flags&2048){if(q===0)break Q;H=0;do if(d=X[Y+H++],$.head&&d&&$.length<65536)$.head.name+=String.fromCharCode(d);while(d&&H<q);if($.flags&512)$.check=H2($.check,X,H,Y);if(q-=H,Y+=H,d)break Q}else if($.head)$.head.name=null;$.length=0,$.mode=pJ;case pJ:if($.flags&4096){if(q===0)break Q;H=0;do if(d=X[Y+H++],$.head&&d&&$.length<65536)$.head.comment+=String.fromCharCode(d);while(d&&H<q);if($.flags&512)$.check=H2($.check,X,H,Y);if(q-=H,Y+=H,d)break Q}else if($.head)$.head.comment=null;$.mode=cJ;case cJ:if($.flags&512){while(B<16){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(G!==($.check&65535)){Q.msg="header crc mismatch",$.mode=I0;break}G=0,B=0}if($.head)$.head.hcrc=$.flags>>9&1,$.head.done=!0;Q.adler=$.check=0,$.mode=C2;break;case mJ:while(B<32){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}Q.adler=$.check=$$(G),G=0,B=0,$.mode=z8;case z8:if($.havedict===0)return Q.next_out=V,Q.avail_out=U,Q.next_in=Y,Q.avail_in=q,$.hold=G,$.bits=B,qq;Q.adler=$.check=1,$.mode=C2;case C2:if(J===Yq||J===B8)break Q;case l5:if($.last){G>>>=B&7,B-=B&7,$.mode=n5;break}while(B<3){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}switch($.last=G&1,G>>>=1,B-=1,G&3){case 0:$.mode=dJ;break;case 1:if(Pq($),$.mode=G8,J===B8){G>>>=2,B-=2;break Q}break;case 2:$.mode=iJ;break;case 3:Q.msg="invalid block type",$.mode=I0}G>>>=2,B-=2;break;case dJ:G>>>=B&7,B-=B&7;while(B<32){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if((G&65535)!==(G>>>16^65535)){Q.msg="invalid stored block lengths",$.mode=I0;break}if($.length=G&65535,G=0,B=0,$.mode=i5,J===B8)break Q;case i5:$.mode=lJ;case lJ:if(H=$.length,H){if(H>q)H=q;if(H>U)H=U;if(H===0)break Q;m0.arraySet(K,X,Y,H,V),q-=H,Y+=H,U-=H,V+=H,$.length-=H;break}$.mode=C2;break;case iJ:while(B<14){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if($.nlen=(G&31)+257,G>>>=5,B-=5,$.ndist=(G&31)+1,G>>>=5,B-=5,$.ncode=(G&15)+4,G>>>=4,B-=4,$.nlen>286||$.ndist>30){Q.msg="too many length or distance symbols",$.mode=I0;break}$.have=0,$.mode=nJ;case nJ:while($.have<$.ncode){while(B<3){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}$.lens[O[$.have++]]=G&7,G>>>=3,B-=3}while($.have<19)$.lens[O[$.have++]]=0;if($.lencode=$.lendyn,$.lenbits=7,v={bits:$.lenbits},i=L6(Kq,$.lens,0,19,$.lencode,0,$.work,v),$.lenbits=v.bits,i){Q.msg="invalid code lengths set",$.mode=I0;break}$.have=0,$.mode=rJ;case rJ:while($.have<$.nlen+$.ndist){for(;;){if(w=$.lencode[G&(1<<$.lenbits)-1],F=w>>>24,z=w>>>16&255,P=w&65535,F<=B)break;if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(P<16)G>>>=F,B-=F,$.lens[$.have++]=P;else{if(P===16){k=F+2;while(B<k){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(G>>>=F,B-=F,$.have===0){Q.msg="invalid bit length repeat",$.mode=I0;break}d=$.lens[$.have-1],H=3+(G&3),G>>>=2,B-=2}else if(P===17){k=F+3;while(B<k){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}G>>>=F,B-=F,d=0,H=3+(G&7),G>>>=3,B-=3}else{k=F+7;while(B<k){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}G>>>=F,B-=F,d=0,H=11+(G&127),G>>>=7,B-=7}if($.have+H>$.nlen+$.ndist){Q.msg="invalid bit length repeat",$.mode=I0;break}while(H--)$.lens[$.have++]=d}}if($.mode===I0)break;if($.lens[256]===0){Q.msg="invalid code -- missing end-of-block",$.mode=I0;break}if($.lenbits=9,v={bits:$.lenbits},i=L6(K$,$.lens,0,$.nlen,$.lencode,0,$.work,v),$.lenbits=v.bits,i){Q.msg="invalid literal/lengths set",$.mode=I0;break}if($.distbits=6,$.distcode=$.distdyn,v={bits:$.distbits},i=L6(Y$,$.lens,$.nlen,$.ndist,$.distcode,0,$.work,v),$.distbits=v.bits,i){Q.msg="invalid distances set",$.mode=I0;break}if($.mode=G8,J===B8)break Q;case G8:$.mode=U8;case U8:if(q>=6&&U>=258){if(Q.next_out=V,Q.avail_out=U,Q.next_in=Y,Q.avail_in=q,$.hold=G,$.bits=B,Xq(Q,W),V=Q.next_out,K=Q.output,U=Q.avail_out,Y=Q.next_in,X=Q.input,q=Q.avail_in,G=$.hold,B=$.bits,$.mode===C2)$.back=-1;break}$.back=0;for(;;){if(w=$.lencode[G&(1<<$.lenbits)-1],F=w>>>24,z=w>>>16&255,P=w&65535,F<=B)break;if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(z&&(z&240)===0){L=F,N=z,x=P;for(;;){if(w=$.lencode[x+((G&(1<<L+N)-1)>>L)],F=w>>>24,z=w>>>16&255,P=w&65535,L+F<=B)break;if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}G>>>=L,B-=L,$.back+=L}if(G>>>=F,B-=F,$.back+=F,$.length=P,z===0){$.mode=eJ;break}if(z&32){$.back=-1,$.mode=C2;break}if(z&64){Q.msg="invalid literal/length code",$.mode=I0;break}$.extra=z&15,$.mode=oJ;case oJ:if($.extra){k=$.extra;while(B<k){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}$.length+=G&(1<<$.extra)-1,G>>>=$.extra,B-=$.extra,$.back+=$.extra}$.was=$.length,$.mode=aJ;case aJ:for(;;){if(w=$.distcode[G&(1<<$.distbits)-1],F=w>>>24,z=w>>>16&255,P=w&65535,F<=B)break;if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if((z&240)===0){L=F,N=z,x=P;for(;;){if(w=$.distcode[x+((G&(1<<L+N)-1)>>L)],F=w>>>24,z=w>>>16&255,P=w&65535,L+F<=B)break;if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}G>>>=L,B-=L,$.back+=L}if(G>>>=F,B-=F,$.back+=F,z&64){Q.msg="invalid distance code",$.mode=I0;break}$.offset=P,$.extra=z&15,$.mode=sJ;case sJ:if($.extra){k=$.extra;while(B<k){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}$.offset+=G&(1<<$.extra)-1,G>>>=$.extra,B-=$.extra,$.back+=$.extra}if($.offset>$.dmax){Q.msg="invalid distance too far back",$.mode=I0;break}$.mode=tJ;case tJ:if(U===0)break Q;if(H=W-U,$.offset>H){if(H=$.offset-H,H>$.whave){if($.sane){Q.msg="invalid distance too far back",$.mode=I0;break}}if(H>$.wnext)H-=$.wnext,S=$.wsize-H;else S=$.wnext-H;if(H>$.length)H=$.length;A=$.window}else A=K,S=V-$.offset,H=$.length;if(H>U)H=U;U-=H,$.length-=H;do K[V++]=A[S++];while(--H);if($.length===0)$.mode=U8;break;case eJ:if(U===0)break Q;K[V++]=$.length,U--,$.mode=U8;break;case n5:if($.wrap){while(B<32){if(q===0)break Q;q--,G|=X[Y++]<<B,B+=8}if(W-=U,Q.total_out+=W,$.total+=W,W)Q.adler=$.check=$.flags?H2($.check,K,W,V-W):a5($.check,K,W,V-W);if(W=U,($.flags?G:$$(G))!==$.check){Q.msg="incorrect data check",$.mode=I0;break}G=0,B=0}$.mode=Q$;case Q$:if($.wrap&&$.flags){while(B<32){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(G!==($.total&4294967295)){Q.msg="incorrect length check",$.mode=I0;break}G=0,B=0}$.mode=J$;case J$:i=Vq;break Q;case I0:i=V$;break Q;case t5:return s5;case Gq:default:return a0}if(Q.next_out=V,Q.avail_out=U,Q.next_in=Y,Q.avail_in=q,$.hold=G,$.bits=B,$.wsize||W!==Q.avail_out&&$.mode<I0&&($.mode<n5||J!==xJ)){if(Z$(Q,Q.output,Q.next_out,W-Q.avail_out))return $.mode=t5,s5}if(j-=Q.avail_in,W-=Q.avail_out,Q.total_in+=j,Q.total_out+=W,$.total+=W,$.wrap&&W)Q.adler=$.check=$.flags?H2($.check,K,W,Q.next_out-W):a5($.check,K,W,Q.next_out-W);if(Q.data_type=$.bits+($.last?64:0)+($.mode===C2?128:0)+($.mode===G8||$.mode===i5?256:0),(j===0&&W===0||J===xJ)&&i===K1)i=Bq;return i}function Lq(Q){if(!Q||!Q.state)return a0;var J=Q.state;if(J.window)J.window=null;return Q.state=null,K1}function Fq(Q,J){var $;if(!Q||!Q.state)return a0;if($=Q.state,($.wrap&2)===0)return a0;return $.head=J,J.done=!1,K1}function wq(Q,J){var $=J.length,X,K,Y;if(!Q||!Q.state)return a0;if(X=Q.state,X.wrap!==0&&X.mode!==z8)return a0;if(X.mode===z8){if(K=1,K=a5(K,J,$,0),K!==X.check)return V$}if(Y=Z$(Q,J,$,$),Y)return X.mode=t5,s5;return X.havedict=1,K1}Q2.inflateReset=G$;Q2.inflateReset2=U$;Q2.inflateResetKeep=B$;Q2.inflateInit=jq;Q2.inflateInit2=z$;Q2.inflate=Mq;Q2.inflateEnd=Lq;Q2.inflateGetHeader=Fq;Q2.inflateSetDictionary=wq;Q2.inflateInfo="pako inflate (from Nodeca project)"});var e5=B0((GG,H$)=>{H$.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 P$=B0((UG,j$)=>{function Iq(){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}j$.exports=Iq});var L$=B0((w6)=>{var v1=W$(),F6=N2(),Z8=_5(),D0=e5(),Q4=e6(),Nq=b5(),Oq=P$(),M$=Object.prototype.toString;function Y1(Q){if(!(this instanceof Y1))return new Y1(Q);this.options=F6.assign({chunkSize:16384,windowBits:0,to:""},Q||{});var J=this.options;if(J.raw&&J.windowBits>=0&&J.windowBits<16){if(J.windowBits=-J.windowBits,J.windowBits===0)J.windowBits=-15}if(J.windowBits>=0&&J.windowBits<16&&!(Q&&Q.windowBits))J.windowBits+=32;if(J.windowBits>15&&J.windowBits<48){if((J.windowBits&15)===0)J.windowBits|=15}this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Nq,this.strm.avail_out=0;var $=v1.inflateInit2(this.strm,J.windowBits);if($!==D0.Z_OK)throw Error(Q4[$]);if(this.header=new Oq,v1.inflateGetHeader(this.strm,this.header),J.dictionary){if(typeof J.dictionary==="string")J.dictionary=Z8.string2buf(J.dictionary);else if(M$.call(J.dictionary)==="[object ArrayBuffer]")J.dictionary=new Uint8Array(J.dictionary);if(J.raw){if($=v1.inflateSetDictionary(this.strm,J.dictionary),$!==D0.Z_OK)throw Error(Q4[$])}}}Y1.prototype.push=function(Q,J){var $=this.strm,X=this.options.chunkSize,K=this.options.dictionary,Y,V,q,U,G,B=!1;if(this.ended)return!1;if(V=J===~~J?J:J===!0?D0.Z_FINISH:D0.Z_NO_FLUSH,typeof Q==="string")$.input=Z8.binstring2buf(Q);else if(M$.call(Q)==="[object ArrayBuffer]")$.input=new Uint8Array(Q);else $.input=Q;$.next_in=0,$.avail_in=$.input.length;do{if($.avail_out===0)$.output=new F6.Buf8(X),$.next_out=0,$.avail_out=X;if(Y=v1.inflate($,D0.Z_NO_FLUSH),Y===D0.Z_NEED_DICT&&K)Y=v1.inflateSetDictionary(this.strm,K);if(Y===D0.Z_BUF_ERROR&&B===!0)Y=D0.Z_OK,B=!1;if(Y!==D0.Z_STREAM_END&&Y!==D0.Z_OK)return this.onEnd(Y),this.ended=!0,!1;if($.next_out){if($.avail_out===0||Y===D0.Z_STREAM_END||$.avail_in===0&&(V===D0.Z_FINISH||V===D0.Z_SYNC_FLUSH))if(this.options.to==="string"){if(q=Z8.utf8border($.output,$.next_out),U=$.next_out-q,G=Z8.buf2string($.output,q),$.next_out=U,$.avail_out=X-U,U)F6.arraySet($.output,$.output,q,U,0);this.onData(G)}else this.onData(F6.shrinkBuf($.output,$.next_out))}if($.avail_in===0&&$.avail_out===0)B=!0}while(($.avail_in>0||$.avail_out===0)&&Y!==D0.Z_STREAM_END);if(Y===D0.Z_STREAM_END)V=D0.Z_FINISH;if(V===D0.Z_FINISH)return Y=v1.inflateEnd(this.strm),this.onEnd(Y),this.ended=!0,Y===D0.Z_OK;if(V===D0.Z_SYNC_FLUSH)return this.onEnd(D0.Z_OK),$.avail_out=0,!0;return!0};Y1.prototype.onData=function(Q){this.chunks.push(Q)};Y1.prototype.onEnd=function(Q){if(Q===D0.Z_OK)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=F6.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function J4(Q,J){var $=new Y1(J);if($.push(Q,!0),$.err)throw $.msg||Q4[$.err];return $.result}function Cq(Q,J){return J=J||{},J.raw=!0,J4(Q,J)}w6.Inflate=Y1;w6.inflate=J4;w6.inflateRaw=Cq;w6.ungzip=J4});var I$=B0((ZG,w$)=>{var Dq=N2().assign,Aq=OJ(),Rq=L$(),Tq=e5(),F$={};Dq(F$,Aq,Rq,Tq);w$.exports=F$});var O$=B0((H8)=>{var kq=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",Eq=I$(),N$=O0(),W8=c0(),Sq=kq?"uint8array":"array";H8.magic="\b\x00";function V1(Q,J){W8.call(this,"FlateWorker/"+Q),this._pako=null,this._pakoAction=Q,this._pakoOptions=J,this.meta={}}N$.inherits(V1,W8);V1.prototype.processChunk=function(Q){if(this.meta=Q.meta,this._pako===null)this._createPako();this._pako.push(N$.transformTo(Sq,Q.data),!1)};V1.prototype.flush=function(){if(W8.prototype.flush.call(this),this._pako===null)this._createPako();this._pako.push([],!0)};V1.prototype.cleanUp=function(){W8.prototype.cleanUp.call(this),this._pako=null};V1.prototype._createPako=function(){this._pako=new Eq[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var Q=this;this._pako.onData=function(J){Q.push({data:J,meta:Q.meta})}};H8.compressWorker=function(Q){return new V1("Deflate",Q)};H8.uncompressWorker=function(){return new V1("Inflate",{})}});var X4=B0(($4)=>{var C$=c0();$4.STORE={magic:"\x00\x00",compressWorker:function(){return new C$("STORE compression")},uncompressWorker:function(){return new C$("STORE decompression")}};$4.DEFLATE=O$()});var K4=B0((q1)=>{q1.LOCAL_FILE_HEADER="PK\x03\x04";q1.CENTRAL_FILE_HEADER="PK\x01\x02";q1.CENTRAL_DIRECTORY_END="PK\x05\x06";q1.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";q1.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";q1.DATA_DESCRIPTOR="PK\x07\b"});var T$=B0((PG,R$)=>{var x1=O0(),g1=c0(),Y4=I1(),D$=o6(),j8=K4(),F0=function(Q,J){var $="",X;for(X=0;X<J;X++)$+=String.fromCharCode(Q&255),Q=Q>>>8;return $},vq=function(Q,J){var $=Q;if(!Q)$=J?16893:33204;return($&65535)<<16},xq=function(Q){return(Q||0)&63},A$=function(Q,J,$,X,K,Y){var{file:V,compression:q}=Q,U=Y!==Y4.utf8encode,G=x1.transformTo("string",Y(V.name)),B=x1.transformTo("string",Y4.utf8encode(V.name)),j=V.comment,W=x1.transformTo("string",Y(j)),H=x1.transformTo("string",Y4.utf8encode(j)),S=B.length!==V.name.length,A=H.length!==j.length,w,F,z="",P="",L="",N=V.dir,x=V.date,d={crc32:0,compressedSize:0,uncompressedSize:0};if(!J||$)d.crc32=Q.crc32,d.compressedSize=Q.compressedSize,d.uncompressedSize=Q.uncompressedSize;var i=0;if(J)i|=8;if(!U&&(S||A))i|=2048;var _=0,v=0;if(N)_|=16;if(K==="UNIX")v=798,_|=vq(V.unixPermissions,N);else v=20,_|=xq(V.dosPermissions,N);if(w=x.getUTCHours(),w=w<<6,w=w|x.getUTCMinutes(),w=w<<5,w=w|x.getUTCSeconds()/2,F=x.getUTCFullYear()-1980,F=F<<4,F=F|x.getUTCMonth()+1,F=F<<5,F=F|x.getUTCDate(),S)P=F0(1,1)+F0(D$(G),4)+B,z+="up"+F0(P.length,2)+P;if(A)L=F0(1,1)+F0(D$(W),4)+H,z+="uc"+F0(L.length,2)+L;var k="";k+=`
3
- \x00`,k+=F0(i,2),k+=q.magic,k+=F0(w,2),k+=F0(F,2),k+=F0(d.crc32,4),k+=F0(d.compressedSize,4),k+=F0(d.uncompressedSize,4),k+=F0(G.length,2),k+=F0(z.length,2);var O=j8.LOCAL_FILE_HEADER+k+G+z,E=j8.CENTRAL_FILE_HEADER+F0(v,2)+k+F0(W.length,2)+"\x00\x00\x00\x00"+F0(_,4)+F0(X,4)+G+z+W;return{fileRecord:O,dirRecord:E}},gq=function(Q,J,$,X,K){var Y="",V=x1.transformTo("string",K(X));return Y=j8.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+F0(Q,2)+F0(Q,2)+F0(J,4)+F0($,4)+F0(V.length,2)+V,Y},yq=function(Q){var J="";return J=j8.DATA_DESCRIPTOR+F0(Q.crc32,4)+F0(Q.compressedSize,4)+F0(Q.uncompressedSize,4),J};function J2(Q,J,$,X){g1.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=J,this.zipPlatform=$,this.encodeFileName=X,this.streamFiles=Q,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}x1.inherits(J2,g1);J2.prototype.push=function(Q){var J=Q.meta.percent||0,$=this.entriesCount,X=this._sources.length;if(this.accumulate)this.contentBuffer.push(Q);else this.bytesWritten+=Q.data.length,g1.prototype.push.call(this,{data:Q.data,meta:{currentFile:this.currentFile,percent:$?(J+100*($-X-1))/$:100}})};J2.prototype.openedSource=function(Q){this.currentSourceOffset=this.bytesWritten,this.currentFile=Q.file.name;var J=this.streamFiles&&!Q.file.dir;if(J){var $=A$(Q,J,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:$.fileRecord,meta:{percent:0}})}else this.accumulate=!0};J2.prototype.closedSource=function(Q){this.accumulate=!1;var J=this.streamFiles&&!Q.file.dir,$=A$(Q,J,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push($.dirRecord),J)this.push({data:yq(Q),meta:{percent:100}});else{this.push({data:$.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};J2.prototype.flush=function(){var Q=this.bytesWritten;for(var J=0;J<this.dirRecords.length;J++)this.push({data:this.dirRecords[J],meta:{percent:100}});var $=this.bytesWritten-Q,X=gq(this.dirRecords.length,$,Q,this.zipComment,this.encodeFileName);this.push({data:X,meta:{percent:100}})};J2.prototype.prepareNextSource=function(){if(this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused)this.previous.pause();else this.previous.resume()};J2.prototype.registerPrevious=function(Q){this._sources.push(Q);var J=this;return Q.on("data",function($){J.processChunk($)}),Q.on("end",function(){if(J.closedSource(J.previous.streamInfo),J._sources.length)J.prepareNextSource();else J.end()}),Q.on("error",function($){J.error($)}),this};J2.prototype.resume=function(){if(!g1.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};J2.prototype.error=function(Q){var J=this._sources;if(!g1.prototype.error.call(this,Q))return!1;for(var $=0;$<J.length;$++)try{J[$].error(Q)}catch(X){}return!0};J2.prototype.lock=function(){g1.prototype.lock.call(this);var Q=this._sources;for(var J=0;J<Q.length;J++)Q[J].lock()};R$.exports=J2});var E$=B0((k$)=>{var hq=X4(),fq=T$(),_q=function(Q,J){var $=Q||J,X=hq[$];if(!X)throw Error($+" is not a valid compression method !");return X};k$.generateWorker=function(Q,J,$){var X=new fq(J.streamFiles,$,J.platform,J.encodeFileName),K=0;try{Q.forEach(function(Y,V){K++;var q=_q(V.options.compression,J.compression),U=V.options.compressionOptions||J.compressionOptions||{},G=V.dir,B=V.date;V._compressWorker(q,U).withStreamInfo("file",{name:Y,dir:G,date:B,comment:V.comment||"",unixPermissions:V.unixPermissions,dosPermissions:V.dosPermissions}).pipe(X)}),X.entriesCount=K}catch(Y){X.error(Y)}return X}});var v$=B0((LG,S$)=>{var bq=O0(),P8=c0();function I6(Q,J){P8.call(this,"Nodejs stream input adapter for "+Q),this._upstreamEnded=!1,this._bindStream(J)}bq.inherits(I6,P8);I6.prototype._bindStream=function(Q){var J=this;this._stream=Q,Q.pause(),Q.on("data",function($){J.push({data:$,meta:{percent:0}})}).on("error",function($){if(J.isPaused)this.generatedError=$;else J.error($)}).on("end",function(){if(J.isPaused)J._upstreamEnded=!0;else J.end()})};I6.prototype.pause=function(){if(!P8.prototype.pause.call(this))return!1;return this._stream.pause(),!0};I6.prototype.resume=function(){if(!P8.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};S$.exports=I6});var c$=B0((FG,p$)=>{var uq=I1(),N6=O0(),h$=c0(),pq=U5(),f$=z5(),x$=a6(),cq=gQ(),mq=E$(),g$=s1(),dq=v$(),_$=function(Q,J,$){var X=N6.getTypeOf(J),K,Y=N6.extend($||{},f$);if(Y.date=Y.date||new Date,Y.compression!==null)Y.compression=Y.compression.toUpperCase();if(typeof Y.unixPermissions==="string")Y.unixPermissions=parseInt(Y.unixPermissions,8);if(Y.unixPermissions&&Y.unixPermissions&16384)Y.dir=!0;if(Y.dosPermissions&&Y.dosPermissions&16)Y.dir=!0;if(Y.dir)Q=b$(Q);if(Y.createFolders&&(K=lq(Q)))u$.call(this,K,!0);var V=X==="string"&&Y.binary===!1&&Y.base64===!1;if(!$||typeof $.binary>"u")Y.binary=!V;var q=J instanceof x$&&J.uncompressedSize===0;if(q||Y.dir||!J||J.length===0)Y.base64=!1,Y.binary=!0,J="",Y.compression="STORE",X="string";var U=null;if(J instanceof x$||J instanceof h$)U=J;else if(g$.isNode&&g$.isStream(J))U=new dq(Q,J);else U=N6.prepareContent(Q,J,Y.binary,Y.optimizedBinaryString,Y.base64);var G=new cq(Q,U,Y);this.files[Q]=G},lq=function(Q){if(Q.slice(-1)==="/")Q=Q.substring(0,Q.length-1);var J=Q.lastIndexOf("/");return J>0?Q.substring(0,J):""},b$=function(Q){if(Q.slice(-1)!=="/")Q+="/";return Q},u$=function(Q,J){if(J=typeof J<"u"?J:f$.createFolders,Q=b$(Q),!this.files[Q])_$.call(this,Q,null,{dir:!0,createFolders:J});return this.files[Q]};function y$(Q){return Object.prototype.toString.call(Q)==="[object RegExp]"}var iq={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Q){var J,$,X;for(J in this.files)if(X=this.files[J],$=J.slice(this.root.length,J.length),$&&J.slice(0,this.root.length)===this.root)Q($,X)},filter:function(Q){var J=[];return this.forEach(function($,X){if(Q($,X))J.push(X)}),J},file:function(Q,J,$){if(arguments.length===1)if(y$(Q)){var X=Q;return this.filter(function(Y,V){return!V.dir&&X.test(Y)})}else{var K=this.files[this.root+Q];if(K&&!K.dir)return K;else return null}else Q=this.root+Q,_$.call(this,Q,J,$);return this},folder:function(Q){if(!Q)return this;if(y$(Q))return this.filter(function(K,Y){return Y.dir&&Q.test(K)});var J=this.root+Q,$=u$.call(this,J),X=this.clone();return X.root=$.name,X},remove:function(Q){Q=this.root+Q;var J=this.files[Q];if(!J){if(Q.slice(-1)!=="/")Q+="/";J=this.files[Q]}if(J&&!J.dir)delete this.files[Q];else{var $=this.filter(function(K,Y){return Y.name.slice(0,Q.length)===Q});for(var X=0;X<$.length;X++)delete this.files[$[X].name]}return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(Q){var J,$={};try{if($=N6.extend(Q||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:uq.utf8encode}),$.type=$.type.toLowerCase(),$.compression=$.compression.toUpperCase(),$.type==="binarystring")$.type="string";if(!$.type)throw Error("No output type specified.");if(N6.checkSupport($.type),$.platform==="darwin"||$.platform==="freebsd"||$.platform==="linux"||$.platform==="sunos")$.platform="UNIX";if($.platform==="win32")$.platform="DOS";var X=$.comment||this.comment||"";J=mq.generateWorker(this,$,X)}catch(K){J=new h$("error"),J.error(K)}return new pq(J,$.type||"string",$.mimeType)},generateAsync:function(Q,J){return this.generateInternalStream(Q).accumulate(J)},generateNodeStream:function(Q,J){if(Q=Q||{},!Q.type)Q.type="nodebuffer";return this.generateInternalStream(Q).toNodejsStream(J)}};p$.exports=iq});var V4=B0((wG,d$)=>{var nq=O0();function m$(Q){this.data=Q,this.length=Q.length,this.index=0,this.zero=0}m$.prototype={checkOffset:function(Q){this.checkIndex(this.index+Q)},checkIndex:function(Q){if(this.length<this.zero+Q||Q<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+Q+"). Corrupted zip ?")},setIndex:function(Q){this.checkIndex(Q),this.index=Q},skip:function(Q){this.setIndex(this.index+Q)},byteAt:function(){},readInt:function(Q){var J=0,$;this.checkOffset(Q);for($=this.index+Q-1;$>=this.index;$--)J=(J<<8)+this.byteAt($);return this.index+=Q,J},readString:function(Q){return nq.transformTo("string",this.readData(Q))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var Q=this.readInt(4);return new Date(Date.UTC((Q>>25&127)+1980,(Q>>21&15)-1,Q>>16&31,Q>>11&31,Q>>5&63,(Q&31)<<1))}};d$.exports=m$});var q4=B0((IG,i$)=>{var l$=V4(),rq=O0();function y1(Q){l$.call(this,Q);for(var J=0;J<this.data.length;J++)Q[J]=Q[J]&255}rq.inherits(y1,l$);y1.prototype.byteAt=function(Q){return this.data[this.zero+Q]};y1.prototype.lastIndexOfSignature=function(Q){var J=Q.charCodeAt(0),$=Q.charCodeAt(1),X=Q.charCodeAt(2),K=Q.charCodeAt(3);for(var Y=this.length-4;Y>=0;--Y)if(this.data[Y]===J&&this.data[Y+1]===$&&this.data[Y+2]===X&&this.data[Y+3]===K)return Y-this.zero;return-1};y1.prototype.readAndCheckSignature=function(Q){var J=Q.charCodeAt(0),$=Q.charCodeAt(1),X=Q.charCodeAt(2),K=Q.charCodeAt(3),Y=this.readData(4);return J===Y[0]&&$===Y[1]&&X===Y[2]&&K===Y[3]};y1.prototype.readData=function(Q){if(this.checkOffset(Q),Q===0)return[];var J=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,J};i$.exports=y1});var o$=B0((NG,r$)=>{var n$=V4(),oq=O0();function h1(Q){n$.call(this,Q)}oq.inherits(h1,n$);h1.prototype.byteAt=function(Q){return this.data.charCodeAt(this.zero+Q)};h1.prototype.lastIndexOfSignature=function(Q){return this.data.lastIndexOf(Q)-this.zero};h1.prototype.readAndCheckSignature=function(Q){var J=this.readData(4);return Q===J};h1.prototype.readData=function(Q){this.checkOffset(Q);var J=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,J};r$.exports=h1});var G4=B0((OG,s$)=>{var a$=q4(),aq=O0();function B4(Q){a$.call(this,Q)}aq.inherits(B4,a$);B4.prototype.readData=function(Q){if(this.checkOffset(Q),Q===0)return new Uint8Array(0);var J=this.data.subarray(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,J};s$.exports=B4});var QX=B0((CG,e$)=>{var t$=G4(),sq=O0();function U4(Q){t$.call(this,Q)}sq.inherits(U4,t$);U4.prototype.readData=function(Q){this.checkOffset(Q);var J=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,J};e$.exports=U4});var z4=B0((DG,$X)=>{var M8=O0(),JX=I2(),tq=q4(),eq=o$(),QB=QX(),JB=G4();$X.exports=function(Q){var J=M8.getTypeOf(Q);if(M8.checkSupport(J),J==="string"&&!JX.uint8array)return new eq(Q);if(J==="nodebuffer")return new QB(Q);if(JX.uint8array)return new JB(M8.transformTo("uint8array",Q));return new tq(M8.transformTo("array",Q))}});var VX=B0((AG,YX)=>{var Z4=z4(),u2=O0(),$B=a6(),XX=o6(),L8=I1(),F8=X4(),XB=I2(),KB=0,YB=3,VB=function(Q){for(var J in F8){if(!Object.prototype.hasOwnProperty.call(F8,J))continue;if(F8[J].magic===Q)return F8[J]}return null};function KX(Q,J){this.options=Q,this.loadOptions=J}KX.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(Q){var J,$;if(Q.skip(22),this.fileNameLength=Q.readInt(2),$=Q.readInt(2),this.fileName=Q.readData(this.fileNameLength),Q.skip($),this.compressedSize===-1||this.uncompressedSize===-1)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(J=VB(this.compressionMethod),J===null)throw Error("Corrupted zip : compression "+u2.pretty(this.compressionMethod)+" unknown (inner file : "+u2.transformTo("string",this.fileName)+")");this.decompressed=new $B(this.compressedSize,this.uncompressedSize,this.crc32,J,Q.readData(this.compressedSize))},readCentralPart:function(Q){this.versionMadeBy=Q.readInt(2),Q.skip(2),this.bitFlag=Q.readInt(2),this.compressionMethod=Q.readString(2),this.date=Q.readDate(),this.crc32=Q.readInt(4),this.compressedSize=Q.readInt(4),this.uncompressedSize=Q.readInt(4);var J=Q.readInt(2);if(this.extraFieldsLength=Q.readInt(2),this.fileCommentLength=Q.readInt(2),this.diskNumberStart=Q.readInt(2),this.internalFileAttributes=Q.readInt(2),this.externalFileAttributes=Q.readInt(4),this.localHeaderOffset=Q.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");Q.skip(J),this.readExtraFields(Q),this.parseZIP64ExtraField(Q),this.fileComment=Q.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var Q=this.versionMadeBy>>8;if(this.dir=this.externalFileAttributes&16?!0:!1,Q===KB)this.dosPermissions=this.externalFileAttributes&63;if(Q===YB)this.unixPermissions=this.externalFileAttributes>>16&65535;if(!this.dir&&this.fileNameStr.slice(-1)==="/")this.dir=!0},parseZIP64ExtraField:function(){if(!this.extraFields[1])return;var Q=Z4(this.extraFields[1].value);if(this.uncompressedSize===u2.MAX_VALUE_32BITS)this.uncompressedSize=Q.readInt(8);if(this.compressedSize===u2.MAX_VALUE_32BITS)this.compressedSize=Q.readInt(8);if(this.localHeaderOffset===u2.MAX_VALUE_32BITS)this.localHeaderOffset=Q.readInt(8);if(this.diskNumberStart===u2.MAX_VALUE_32BITS)this.diskNumberStart=Q.readInt(4)},readExtraFields:function(Q){var J=Q.index+this.extraFieldsLength,$,X,K;if(!this.extraFields)this.extraFields={};while(Q.index+4<J)$=Q.readInt(2),X=Q.readInt(2),K=Q.readData(X),this.extraFields[$]={id:$,length:X,value:K};Q.setIndex(J)},handleUTF8:function(){var Q=XB.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=L8.utf8decode(this.fileName),this.fileCommentStr=L8.utf8decode(this.fileComment);else{var J=this.findExtraFieldUnicodePath();if(J!==null)this.fileNameStr=J;else{var $=u2.transformTo(Q,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName($)}var X=this.findExtraFieldUnicodeComment();if(X!==null)this.fileCommentStr=X;else{var K=u2.transformTo(Q,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(K)}}},findExtraFieldUnicodePath:function(){var Q=this.extraFields[28789];if(Q){var J=Z4(Q.value);if(J.readInt(1)!==1)return null;if(XX(this.fileName)!==J.readInt(4))return null;return L8.utf8decode(J.readData(Q.length-5))}return null},findExtraFieldUnicodeComment:function(){var Q=this.extraFields[25461];if(Q){var J=Z4(Q.value);if(J.readInt(1)!==1)return null;if(XX(this.fileComment)!==J.readInt(4))return null;return L8.utf8decode(J.readData(Q.length-5))}return null}};YX.exports=KX});var GX=B0((RG,BX)=>{var qB=z4(),D2=O0(),$2=K4(),BB=VX(),GB=I2();function qX(Q){this.files=[],this.loadOptions=Q}qX.prototype={checkSignature:function(Q){if(!this.reader.readAndCheckSignature(Q)){this.reader.index-=4;var J=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+D2.pretty(J)+", expected "+D2.pretty(Q)+")")}},isSignature:function(Q,J){var $=this.reader.index;this.reader.setIndex(Q);var X=this.reader.readString(4),K=X===J;return this.reader.setIndex($),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 Q=this.reader.readData(this.zipCommentLength),J=GB.uint8array?"uint8array":"array",$=D2.transformTo(J,Q);this.zipComment=this.loadOptions.decodeFileName($)},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 Q=this.zip64EndOfCentralSize-44,J=0,$,X,K;while(J<Q)$=this.reader.readInt(2),X=this.reader.readInt(4),K=this.reader.readData(X),this.zip64ExtensibleData[$]={id:$,length:X,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 Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var Q,J;for(Q=0;Q<this.files.length;Q++)J=this.files[Q],this.reader.setIndex(J.localHeaderOffset),this.checkSignature($2.LOCAL_FILE_HEADER),J.readLocalPart(this.reader),J.handleUTF8(),J.processAttributes()},readCentralDir:function(){var Q;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature($2.CENTRAL_FILE_HEADER))Q=new BB({zip64:this.zip64},this.loadOptions),Q.readCentralPart(this.reader),this.files.push(Q);if(this.centralDirRecords!==this.files.length){if(this.centralDirRecords!==0&&this.files.length===0)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)}},readEndOfCentral:function(){var Q=this.reader.lastIndexOfSignature($2.CENTRAL_DIRECTORY_END);if(Q<0){var J=!this.isSignature(0,$2.LOCAL_FILE_HEADER);if(J)throw 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 Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(Q);var $=Q;if(this.checkSignature($2.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===D2.MAX_VALUE_16BITS||this.diskWithCentralDirStart===D2.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===D2.MAX_VALUE_16BITS||this.centralDirRecords===D2.MAX_VALUE_16BITS||this.centralDirSize===D2.MAX_VALUE_32BITS||this.centralDirOffset===D2.MAX_VALUE_32BITS){if(this.zip64=!0,Q=this.reader.lastIndexOfSignature($2.ZIP64_CENTRAL_DIRECTORY_LOCATOR),Q<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(Q),this.checkSignature($2.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,$2.ZIP64_CENTRAL_DIRECTORY_END)){if(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature($2.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory")}this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature($2.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var X=this.centralDirOffset+this.centralDirSize;if(this.zip64)X+=20,X+=12+this.zip64EndOfCentralSize;var K=$-X;if(K>0)if(this.isSignature($,$2.CENTRAL_FILE_HEADER));else this.reader.zero=K;else if(K<0)throw Error("Corrupted zip: missing "+Math.abs(K)+" bytes.")},prepareReader:function(Q){this.reader=qB(Q)},load:function(Q){this.prepareReader(Q),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};BX.exports=qX});var ZX=B0((TG,zX)=>{var W4=O0(),w8=L1(),UB=I1(),zB=GX(),ZB=H5(),UX=s1();function WB(Q){return new w8.Promise(function(J,$){var X=Q.decompressed.getContentWorker().pipe(new ZB);X.on("error",function(K){$(K)}).on("end",function(){if(X.streamInfo.crc32!==Q.decompressed.crc32)$(Error("Corrupted zip : CRC32 mismatch"));else J()}).resume()})}zX.exports=function(Q,J){var $=this;if(J=W4.extend(J||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:UB.utf8decode}),UX.isNode&&UX.isStream(Q))return w8.Promise.reject(Error("JSZip can't accept a stream when loading a zip file."));return W4.prepareContent("the loaded zip file",Q,!0,J.optimizedBinaryString,J.base64).then(function(X){var K=new zB(J);return K.load(X),K}).then(function(K){var Y=[w8.Promise.resolve(K)],V=K.files;if(J.checkCRC32)for(var q=0;q<V.length;q++)Y.push(WB(V[q]));return w8.Promise.all(Y)}).then(function(K){var Y=K.shift(),V=Y.files;for(var q=0;q<V.length;q++){var U=V[q],G=U.fileNameStr,B=W4.resolve(U.fileNameStr);if($.file(B,U.decompressed,{binary:!0,optimizedBinaryString:!0,date:U.date,dir:U.dir,comment:U.fileCommentStr.length?U.fileCommentStr:null,unixPermissions:U.unixPermissions,dosPermissions:U.dosPermissions,createFolders:J.createFolders}),!U.dir)$.file(B).unsafeOriginalName=G}if(Y.zipComment.length)$.comment=Y.zipComment;return $})}});var HX=B0((kG,WX)=>{function s0(){if(!(this instanceof s0))return new s0;if(arguments.length)throw 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 Q=new s0;for(var J in this)if(typeof this[J]!=="function")Q[J]=this[J];return Q}}s0.prototype=c$();s0.prototype.loadAsync=ZX();s0.support=I2();s0.defaults=z5();s0.version="3.10.1";s0.loadAsync=function(Q,J){return new s0().loadAsync(Q,J)};s0.external=L1();WX.exports=s0});var NB={};R8(NB,{downloadImages:()=>O6,capture:()=>j4});function T4(Q,J){let $=Q.label;if(Q.includeScaleInLabel)$+=`_@${Q.scale}x`;let X=`.${Q.format}`;if($+=X,!J.includes($))return J.push($),$;let K=/-(\d+)$/,Y=$.match(K);if(Y){let V=$.replace(K,""),q=parseInt(Y[1],10);while(J.includes(`${V}-${q}${X}`))q++;let U=`${V}-${q}${X}`;return J.push(U),U}else{let V=$.replace(X,""),q=2;while(J.includes(`${V}-${q}${X}`))q++;let U=`${V}-${q}${X}`;return J.push(U),U}}function hX(Q,J){return Q[13]=1,Q[14]=J>>8,Q[15]=J&255,Q[16]=J>>8,Q[17]=J&255,Q}var y4=112,h4=72,f4=89,_4=115,T8;function fX(){let Q=new Int32Array(256);for(let J=0;J<256;J++){let $=J;for(let X=0;X<8;X++)$=$&1?3988292384^$>>>1:$>>>1;Q[J]=$}return Q}function _X(Q){let J=-1;if(!T8)T8=fX();for(let $=0;$<Q.length;$++)J=T8[(J^Q[$])&255]^J>>>8;return J^-1}function bX(Q){let J=Q.length-1;for(let $=J;$>=4;$--)if(Q[$-4]===9&&Q[$-3]===y4&&Q[$-2]===h4&&Q[$-1]===f4&&Q[$]===_4)return $-3;return 0}function uX(Q,J,$=!1){let X=new Uint8Array(13);J*=39.3701,X[0]=y4,X[1]=h4,X[2]=f4,X[3]=_4,X[4]=J>>>24,X[5]=J>>>16,X[6]=J>>>8,X[7]=J&255,X[8]=X[4],X[9]=X[5],X[10]=X[6],X[11]=X[7],X[12]=1;let K=_X(X),Y=new Uint8Array(4);if(Y[0]=K>>>24,Y[1]=K>>>16,Y[2]=K>>>8,Y[3]=K&255,$){let V=bX(Q);return Q.set(X,V),Q.set(Y,V+13),Q}else{let V=new Uint8Array(4);V[0]=0,V[1]=0,V[2]=0,V[3]=9;let q=new Uint8Array(54);return q.set(Q,0),q.set(V,33),q.set(X,37),q.set(Y,50),q}}var pX="AAlwSFlz",cX="AAAJcEhZ",mX="AAAACXBI";function dX(Q){let J=Q.indexOf(pX);if(J===-1)J=Q.indexOf(cX);if(J===-1)J=Q.indexOf(mX);return J}var b4="[modern-screenshot]",A2=typeof window<"u",lX=A2&&"Worker"in window,iX=A2&&"atob"in window,nX=A2&&"btoa"in window,S8=A2?window.navigator?.userAgent:"",u4=S8.includes("Chrome"),D6=S8.includes("AppleWebKit")&&!u4,v8=S8.includes("Firefox"),rX=(Q)=>Q&&("__CONTEXT__"in Q),oX=(Q)=>Q.constructor.name==="CSSFontFaceRule",aX=(Q)=>Q.constructor.name==="CSSImportRule",sX=(Q)=>Q.constructor.name==="CSSLayerBlockRule",K2=(Q)=>Q.nodeType===1,m1=(Q)=>typeof Q.className==="object",p4=(Q)=>Q.tagName==="image",tX=(Q)=>Q.tagName==="use",u1=(Q)=>K2(Q)&&typeof Q.style<"u"&&!m1(Q),eX=(Q)=>Q.nodeType===8,QK=(Q)=>Q.nodeType===3,W1=(Q)=>Q.tagName==="IMG",A6=(Q)=>Q.tagName==="VIDEO",JK=(Q)=>Q.tagName==="CANVAS",$K=(Q)=>Q.tagName==="TEXTAREA",XK=(Q)=>Q.tagName==="INPUT",KK=(Q)=>Q.tagName==="STYLE",YK=(Q)=>Q.tagName==="SCRIPT",VK=(Q)=>Q.tagName==="SELECT",qK=(Q)=>Q.tagName==="SLOT",BK=(Q)=>Q.tagName==="IFRAME",GK=(...Q)=>console.warn(b4,...Q);function UK(Q){let J=Q?.createElement?.("canvas");if(J)J.height=J.width=1;return Boolean(J)&&"toDataURL"in J&&Boolean(J.toDataURL("image/webp").includes("image/webp"))}var k8=(Q)=>Q.startsWith("data:");function c4(Q,J){if(Q.match(/^[a-z]+:\/\//i))return Q;if(A2&&Q.match(/^\/\//))return window.location.protocol+Q;if(Q.match(/^[a-z]+:/i))return Q;if(!A2)return Q;let $=R6().implementation.createHTMLDocument(),X=$.createElement("base"),K=$.createElement("a");if($.head.appendChild(X),$.body.appendChild(K),J)X.href=J;return K.href=Q,K.href}function R6(Q){return(Q&&K2(Q)?Q?.ownerDocument:Q)??window.document}var T6="http://www.w3.org/2000/svg";function m4(Q,J,$){let X=R6($).createElementNS(T6,"svg");return X.setAttributeNS(null,"width",Q.toString()),X.setAttributeNS(null,"height",J.toString()),X.setAttributeNS(null,"viewBox",`0 0 ${Q} ${J}`),X}function d4(Q,J){let $=new XMLSerializer().serializeToString(Q);if(J)$=$.replace(/[\u0000-\u0008\v\f\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]/gu,"");return`data:image/svg+xml;charset=utf-8,${encodeURIComponent($)}`}function zK(Q,J){return new Promise(($,X)=>{let K=new FileReader;if(K.onload=()=>$(K.result),K.onerror=()=>X(K.error),K.onabort=()=>X(Error(`Failed read blob to ${J}`)),J==="dataUrl")K.readAsDataURL(Q);else if(J==="arrayBuffer")K.readAsArrayBuffer(Q)})}var ZK=(Q)=>zK(Q,"dataUrl");function Z1(Q,J){let $=R6(J).createElement("img");return $.decoding="sync",$.loading="eager",$.src=Q,$}function p1(Q,J){return new Promise(($)=>{let{timeout:X,ownerDocument:K,onError:Y,onWarn:V}=J??{},q=typeof Q==="string"?Z1(Q,R6(K)):Q,U=null,G=null;function B(){$(q),U&&clearTimeout(U),G?.()}if(X)U=setTimeout(B,X);if(A6(q)){let j=q.currentSrc||q.src;if(!j){if(q.poster)return p1(q.poster,J).then($);return B()}if(q.readyState>=2)return B();let W=B,H=(S)=>{V?.("Failed video load",j,S),Y?.(S),B()};G=()=>{q.removeEventListener("loadeddata",W),q.removeEventListener("error",H)},q.addEventListener("loadeddata",W,{once:!0}),q.addEventListener("error",H,{once:!0})}else{let j=p4(q)?q.href.baseVal:q.currentSrc||q.src;if(!j)return B();let W=async()=>{if(W1(q)&&"decode"in q)try{await q.decode()}catch(S){V?.("Failed to decode image, trying to render anyway",q.dataset.originalSrc||j,S)}B()},H=(S)=>{V?.("Failed image load",q.dataset.originalSrc||j,S),B()};if(W1(q)&&q.complete)return W();G=()=>{q.removeEventListener("load",W),q.removeEventListener("error",H)},q.addEventListener("load",W,{once:!0}),q.addEventListener("error",H,{once:!0})}})}async function WK(Q,J){if(u1(Q))if(W1(Q)||A6(Q))await p1(Q,J);else await Promise.all(["img","video"].flatMap(($)=>{return Array.from(Q.querySelectorAll($)).map((X)=>p1(X,J))}))}var l4=function(){let J=0,$=()=>`0000${(Math.random()*1679616<<0).toString(36)}`.slice(-4);return()=>{return J+=1,`u${$()}${J}`}}();function i4(Q){return Q?.split(",").map((J)=>J.trim().replace(/"|'/g,"").toLowerCase()).filter(Boolean)}var k4=0;function HK(Q){let J=`${b4}[#${k4}]`;return k4++,{time:($)=>Q&&console.time(`${J} ${$}`),timeEnd:($)=>Q&&console.timeEnd(`${J} ${$}`),warn:(...$)=>Q&&GK(...$)}}function jK(Q){return{cache:Q?"no-cache":"force-cache"}}async function d2(Q,J){return rX(Q)?Q:PK(Q,{...J,autoDestruct:!0})}async function PK(Q,J){let{scale:$=1,workerUrl:X,workerNumber:K=1}=J||{},Y=Boolean(J?.debug),V=J?.features??!0,q=Q.ownerDocument??(A2?window.document:void 0),U=Q.ownerDocument?.defaultView??(A2?window:void 0),G=new Map,B={width:0,height:0,quality:1,type:"image/png",scale:$,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:30000,progress:null,debug:Y,fetch:{requestInit:jK(J?.fetch?.bypassingCache),placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1,...J?.fetch},fetchFn:null,font:{},drawImageInterval:100,workerUrl:null,workerNumber:K,onCloneEachNode:null,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,includeStyleProperties:null,autoDestruct:!1,...J,__CONTEXT__:!0,log:HK(Y),node:Q,ownerDocument:q,ownerWindow:U,dpi:$===1?null:96*$,svgStyleElement:n4(q),svgDefsElement:q?.createElementNS(T6,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...Array.from({length:lX&&X&&K?K:0})].map(()=>{try{let H=new Worker(X);return H.onmessage=async(S)=>{let{url:A,result:w}=S.data;if(w)G.get(A)?.resolve?.(w);else G.get(A)?.reject?.(Error(`Error receiving message from worker: ${A}`))},H.onmessageerror=(S)=>{let{url:A}=S.data;G.get(A)?.reject?.(Error(`Error receiving message from worker: ${A}`))},H}catch(H){return B.log.warn("Failed to new Worker",H),null}}).filter(Boolean),fontFamilies:new Map,fontCssTexts:new Map,acceptOfImage:`${[UK(q)&&"image/webp","image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:G,drawImageCount:0,tasks:[],features:V,isEnable:(H)=>{if(H==="restoreScrollPosition")return typeof V==="boolean"?!1:V[H]??!1;if(typeof V==="boolean")return V;return V[H]??!0},shadowRoots:[]};B.log.time("wait until load"),await WK(Q,{timeout:B.timeout,onWarn:B.log.warn}),B.log.timeEnd("wait until load");let{width:j,height:W}=MK(Q,B);return B.width=j,B.height=W,B}function n4(Q){if(!Q)return;let J=Q.createElement("style"),$=J.ownerDocument.createTextNode(`
1
+ (()=>{var er=Object.create;var{getPrototypeOf:rr,defineProperty:Ct,getOwnPropertyNames:se,getOwnPropertyDescriptor:nr}=Object,Ht=Object.prototype.hasOwnProperty;function oe(t){return this[t]}var ir,ar,sr=(t,i,e)=>{var r=t!=null&&typeof t==="object";if(r){var o=i?ir??=new WeakMap:ar??=new WeakMap,n=o.get(t);if(n)return n}e=t!=null?er(rr(t)):{};let l=i||!t||!t.__esModule||!Ht.call(t,"default")?Ct(e,"default",{value:t,enumerable:!0}):e;if(t&&typeof t==="object"||typeof t==="function"){for(let s of se(t))if(!Ht.call(l,s))Ct(l,s,{get:oe.bind(t,s),enumerable:!0})}if(r)o.set(t,l);return l},or=(t)=>{var i=(ae??=new WeakMap).get(t),e;if(i)return i;if(i=Ct({},"__esModule",{value:!0}),t&&typeof t==="object"||typeof t==="function"){for(var r of se(t))if(!Ht.call(i,r))Ct(i,r,{get:oe.bind(t,r),enumerable:!(e=nr(t,r))||e.enumerable})}return ae.set(t,i),i},ae,lr=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports);var cr=(t)=>t;function ur(t,i){this[t]=cr.bind(null,i)}var fr=(t,i)=>{for(var e in i)Ct(t,e,{get:i[e],enumerable:!0,configurable:!0,set:ur.bind(i,e)})};var We=lr(function(Me,Kt){/*!
2
+
3
+ JSZip v3.10.1 - A JavaScript class for generating and reading zip files
4
+ <http://stuartk.com/jszip>
5
+
6
+ (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
7
+ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
8
+
9
+ JSZip uses the library pako released under the MIT license :
10
+ https://github.com/nodeca/pako/blob/main/LICENSE
11
+ */(function(t){if(typeof Me=="object"&&typeof Kt<"u")Kt.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=t()})(function(){return function t(i,e,r){function o(s,b){if(!e[s]){if(!i[s]){var m=__require;if(!b&&m)return m(s,!0);if(n)return n(s,!0);var d=Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var u=e[s]={exports:{}};i[s][0].call(u.exports,function(p){var f=i[s][1][p];return o(f||p)},u,u.exports,t,i,e,r)}return e[s].exports}for(var n=__require,l=0;l<r.length;l++)o(r[l]);return o}({1:[function(t,i,e){var r=t("./utils"),o=t("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.encode=function(l){for(var s,b,m,d,u,p,f,g=[],h=0,y=l.length,v=y,x=r.getTypeOf(l)!=="string";h<l.length;)v=y-h,m=x?(s=l[h++],b=h<y?l[h++]:0,h<y?l[h++]:0):(s=l.charCodeAt(h++),b=h<y?l.charCodeAt(h++):0,h<y?l.charCodeAt(h++):0),d=s>>2,u=(3&s)<<4|b>>4,p=1<v?(15&b)<<2|m>>6:64,f=2<v?63&m:64,g.push(n.charAt(d)+n.charAt(u)+n.charAt(p)+n.charAt(f));return g.join("")},e.decode=function(l){var s,b,m,d,u,p,f=0,g=0,h="data:";if(l.substr(0,h.length)===h)throw Error("Invalid base64 input, it looks like a data url.");var y,v=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===n.charAt(64)&&v--,l.charAt(l.length-2)===n.charAt(64)&&v--,v%1!=0)throw Error("Invalid base64 input, bad content length.");for(y=o.uint8array?new Uint8Array(0|v):Array(0|v);f<l.length;)s=n.indexOf(l.charAt(f++))<<2|(d=n.indexOf(l.charAt(f++)))>>4,b=(15&d)<<4|(u=n.indexOf(l.charAt(f++)))>>2,m=(3&u)<<6|(p=n.indexOf(l.charAt(f++))),y[g++]=s,u!==64&&(y[g++]=b),p!==64&&(y[g++]=m);return y}},{"./support":30,"./utils":32}],2:[function(t,i,e){var r=t("./external"),o=t("./stream/DataWorker"),n=t("./stream/Crc32Probe"),l=t("./stream/DataLengthProbe");function s(b,m,d,u,p){this.compressedSize=b,this.uncompressedSize=m,this.crc32=d,this.compression=u,this.compressedContent=p}s.prototype={getContentWorker:function(){var b=new o(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),m=this;return b.on("end",function(){if(this.streamInfo.data_length!==m.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),b},getCompressedWorker:function(){return new o(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(b,m,d){return b.pipe(new n).pipe(new l("uncompressedSize")).pipe(m.compressWorker(d)).pipe(new l("compressedSize")).withStreamInfo("compression",m)},i.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,i,e){var r=t("./stream/GenericWorker");e.STORE={magic:"\x00\x00",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},e.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,i,e){var r=t("./utils"),o=function(){for(var n,l=[],s=0;s<256;s++){n=s;for(var b=0;b<8;b++)n=1&n?3988292384^n>>>1:n>>>1;l[s]=n}return l}();i.exports=function(n,l){return n!==void 0&&n.length?r.getTypeOf(n)!=="string"?function(s,b,m,d){var u=o,p=d+m;s^=-1;for(var f=d;f<p;f++)s=s>>>8^u[255&(s^b[f])];return-1^s}(0|l,n,n.length,0):function(s,b,m,d){var u=o,p=d+m;s^=-1;for(var f=d;f<p;f++)s=s>>>8^u[255&(s^b.charCodeAt(f))];return-1^s}(0|l,n,n.length,0):0}},{"./utils":32}],5:[function(t,i,e){e.base64=!1,e.binary=!1,e.dir=!1,e.createFolders=!0,e.date=null,e.compression=null,e.compressionOptions=null,e.comment=null,e.unixPermissions=null,e.dosPermissions=null},{}],6:[function(t,i,e){var r=null;r=typeof Promise<"u"?Promise:t("lie"),i.exports={Promise:r}},{lie:37}],7:[function(t,i,e){var r=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=t("pako"),n=t("./utils"),l=t("./stream/GenericWorker"),s=r?"uint8array":"array";function b(m,d){l.call(this,"FlateWorker/"+m),this._pako=null,this._pakoAction=m,this._pakoOptions=d,this.meta={}}e.magic="\b\x00",n.inherits(b,l),b.prototype.processChunk=function(m){this.meta=m.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(s,m.data),!1)},b.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},b.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},b.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var m=this;this._pako.onData=function(d){m.push({data:d,meta:m.meta})}},e.compressWorker=function(m){return new b("Deflate",m)},e.uncompressWorker=function(){return new b("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,i,e){function r(u,p){var f,g="";for(f=0;f<p;f++)g+=String.fromCharCode(255&u),u>>>=8;return g}function o(u,p,f,g,h,y){var v,x,{file:S,compression:R}=u,O=y!==s.utf8encode,F=n.transformTo("string",y(S.name)),z=n.transformTo("string",s.utf8encode(S.name)),M=S.comment,Y=n.transformTo("string",y(M)),k=n.transformTo("string",s.utf8encode(M)),B=z.length!==S.name.length,c=k.length!==M.length,L="",J="",U="",{dir:Q,date:j}=S,K={crc32:0,compressedSize:0,uncompressedSize:0};p&&!f||(K.crc32=u.crc32,K.compressedSize=u.compressedSize,K.uncompressedSize=u.uncompressedSize);var A=0;p&&(A|=8),O||!B&&!c||(A|=2048);var I=0,X=0;Q&&(I|=16),h==="UNIX"?(X=798,I|=function(H,at){var ct=H;return H||(ct=at?16893:33204),(65535&ct)<<16}(S.unixPermissions,Q)):(X=20,I|=function(H){return 63&(H||0)}(S.dosPermissions)),v=j.getUTCHours(),v<<=6,v|=j.getUTCMinutes(),v<<=5,v|=j.getUTCSeconds()/2,x=j.getUTCFullYear()-1980,x<<=4,x|=j.getUTCMonth()+1,x<<=5,x|=j.getUTCDate(),B&&(J=r(1,1)+r(b(F),4)+z,L+="up"+r(J.length,2)+J),c&&(U=r(1,1)+r(b(Y),4)+k,L+="uc"+r(U.length,2)+U);var q="";return q+=`
12
+ \x00`,q+=r(A,2),q+=R.magic,q+=r(v,2),q+=r(x,2),q+=r(K.crc32,4),q+=r(K.compressedSize,4),q+=r(K.uncompressedSize,4),q+=r(F.length,2),q+=r(L.length,2),{fileRecord:m.LOCAL_FILE_HEADER+q+F+L,dirRecord:m.CENTRAL_FILE_HEADER+r(X,2)+q+r(Y.length,2)+"\x00\x00\x00\x00"+r(I,4)+r(g,4)+F+L+Y}}var n=t("../utils"),l=t("../stream/GenericWorker"),s=t("../utf8"),b=t("../crc32"),m=t("../signature");function d(u,p,f,g){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=f,this.encodeFileName=g,this.streamFiles=u,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(d,l),d.prototype.push=function(u){var p=u.meta.percent||0,f=this.entriesCount,g=this._sources.length;this.accumulate?this.contentBuffer.push(u):(this.bytesWritten+=u.data.length,l.prototype.push.call(this,{data:u.data,meta:{currentFile:this.currentFile,percent:f?(p+100*(f-g-1))/f:100}}))},d.prototype.openedSource=function(u){this.currentSourceOffset=this.bytesWritten,this.currentFile=u.file.name;var p=this.streamFiles&&!u.file.dir;if(p){var f=o(u,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:f.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(u){this.accumulate=!1;var p=this.streamFiles&&!u.file.dir,f=o(u,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(f.dirRecord),p)this.push({data:function(g){return m.DATA_DESCRIPTOR+r(g.crc32,4)+r(g.compressedSize,4)+r(g.uncompressedSize,4)}(u),meta:{percent:100}});else for(this.push({data:f.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var u=this.bytesWritten,p=0;p<this.dirRecords.length;p++)this.push({data:this.dirRecords[p],meta:{percent:100}});var f=this.bytesWritten-u,g=function(h,y,v,x,S){var R=n.transformTo("string",S(x));return m.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+r(h,2)+r(h,2)+r(y,4)+r(v,4)+r(R.length,2)+R}(this.dirRecords.length,f,u,this.zipComment,this.encodeFileName);this.push({data:g,meta:{percent:100}})},d.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},d.prototype.registerPrevious=function(u){this._sources.push(u);var p=this;return u.on("data",function(f){p.processChunk(f)}),u.on("end",function(){p.closedSource(p.previous.streamInfo),p._sources.length?p.prepareNextSource():p.end()}),u.on("error",function(f){p.error(f)}),this},d.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},d.prototype.error=function(u){var p=this._sources;if(!l.prototype.error.call(this,u))return!1;for(var f=0;f<p.length;f++)try{p[f].error(u)}catch(g){}return!0},d.prototype.lock=function(){l.prototype.lock.call(this);for(var u=this._sources,p=0;p<u.length;p++)u[p].lock()},i.exports=d},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,i,e){var r=t("../compressions"),o=t("./ZipFileWorker");e.generateWorker=function(n,l,s){var b=new o(l.streamFiles,s,l.platform,l.encodeFileName),m=0;try{n.forEach(function(d,u){m++;var p=function(y,v){var x=y||v,S=r[x];if(!S)throw Error(x+" is not a valid compression method !");return S}(u.options.compression,l.compression),f=u.options.compressionOptions||l.compressionOptions||{},{dir:g,date:h}=u;u._compressWorker(p,f).withStreamInfo("file",{name:d,dir:g,date:h,comment:u.comment||"",unixPermissions:u.unixPermissions,dosPermissions:u.dosPermissions}).pipe(b)}),b.entriesCount=m}catch(d){b.error(d)}return b}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,i,e){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw 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 o=new r;for(var n in this)typeof this[n]!="function"&&(o[n]=this[n]);return o}}(r.prototype=t("./object")).loadAsync=t("./load"),r.support=t("./support"),r.defaults=t("./defaults"),r.version="3.10.1",r.loadAsync=function(o,n){return new r().loadAsync(o,n)},r.external=t("./external"),i.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,i,e){var r=t("./utils"),o=t("./external"),n=t("./utf8"),l=t("./zipEntries"),s=t("./stream/Crc32Probe"),b=t("./nodejsUtils");function m(d){return new o.Promise(function(u,p){var f=d.decompressed.getContentWorker().pipe(new s);f.on("error",function(g){p(g)}).on("end",function(){f.streamInfo.crc32!==d.decompressed.crc32?p(Error("Corrupted zip : CRC32 mismatch")):u()}).resume()})}i.exports=function(d,u){var p=this;return u=r.extend(u||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),b.isNode&&b.isStream(d)?o.Promise.reject(Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",d,!0,u.optimizedBinaryString,u.base64).then(function(f){var g=new l(u);return g.load(f),g}).then(function(f){var g=[o.Promise.resolve(f)],h=f.files;if(u.checkCRC32)for(var y=0;y<h.length;y++)g.push(m(h[y]));return o.Promise.all(g)}).then(function(f){for(var g=f.shift(),h=g.files,y=0;y<h.length;y++){var v=h[y],x=v.fileNameStr,S=r.resolve(v.fileNameStr);p.file(S,v.decompressed,{binary:!0,optimizedBinaryString:!0,date:v.date,dir:v.dir,comment:v.fileCommentStr.length?v.fileCommentStr:null,unixPermissions:v.unixPermissions,dosPermissions:v.dosPermissions,createFolders:u.createFolders}),v.dir||(p.file(S).unsafeOriginalName=x)}return g.zipComment.length&&(p.comment=g.zipComment),p})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,i,e){var r=t("../utils"),o=t("../stream/GenericWorker");function n(l,s){o.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(s)}r.inherits(n,o),n.prototype._bindStream=function(l){var s=this;(this._stream=l).pause(),l.on("data",function(b){s.push({data:b,meta:{percent:0}})}).on("error",function(b){s.isPaused?this.generatedError=b:s.error(b)}).on("end",function(){s.isPaused?s._upstreamEnded=!0:s.end()})},n.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},i.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,i,e){var r=t("readable-stream").Readable;function o(n,l,s){r.call(this,l),this._helper=n;var b=this;n.on("data",function(m,d){b.push(m)||b._helper.pause(),s&&s(d)}).on("error",function(m){b.emit("error",m)}).on("end",function(){b.push(null)})}t("../utils").inherits(o,r),o.prototype._read=function(){this._helper.resume()},i.exports=o},{"../utils":32,"readable-stream":16}],14:[function(t,i,e){i.exports={isNode:typeof Buffer<"u",newBufferFrom:function(r,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(r,o);if(typeof r=="number")throw Error('The "data" argument must not be a number');return new Buffer(r,o)},allocBuffer:function(r){if(Buffer.alloc)return Buffer.alloc(r);var o=new Buffer(r);return o.fill(0),o},isBuffer:function(r){return Buffer.isBuffer(r)},isStream:function(r){return r&&typeof r.on=="function"&&typeof r.pause=="function"&&typeof r.resume=="function"}}},{}],15:[function(t,i,e){function r(S,R,O){var F,z=n.getTypeOf(R),M=n.extend(O||{},b);M.date=M.date||new Date,M.compression!==null&&(M.compression=M.compression.toUpperCase()),typeof M.unixPermissions=="string"&&(M.unixPermissions=parseInt(M.unixPermissions,8)),M.unixPermissions&&16384&M.unixPermissions&&(M.dir=!0),M.dosPermissions&&16&M.dosPermissions&&(M.dir=!0),M.dir&&(S=h(S)),M.createFolders&&(F=g(S))&&y.call(this,F,!0);var Y=z==="string"&&M.binary===!1&&M.base64===!1;O&&O.binary!==void 0||(M.binary=!Y),(R instanceof m&&R.uncompressedSize===0||M.dir||!R||R.length===0)&&(M.base64=!1,M.binary=!0,R="",M.compression="STORE",z="string");var k=null;k=R instanceof m||R instanceof l?R:p.isNode&&p.isStream(R)?new f(S,R):n.prepareContent(S,R,M.binary,M.optimizedBinaryString,M.base64);var B=new d(S,k,M);this.files[S]=B}var o=t("./utf8"),n=t("./utils"),l=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),b=t("./defaults"),m=t("./compressedObject"),d=t("./zipObject"),u=t("./generate"),p=t("./nodejsUtils"),f=t("./nodejs/NodejsStreamInputAdapter"),g=function(S){S.slice(-1)==="/"&&(S=S.substring(0,S.length-1));var R=S.lastIndexOf("/");return 0<R?S.substring(0,R):""},h=function(S){return S.slice(-1)!=="/"&&(S+="/"),S},y=function(S,R){return R=R!==void 0?R:b.createFolders,S=h(S),this.files[S]||r.call(this,S,null,{dir:!0,createFolders:R}),this.files[S]};function v(S){return Object.prototype.toString.call(S)==="[object RegExp]"}var x={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(S){var R,O,F;for(R in this.files)F=this.files[R],(O=R.slice(this.root.length,R.length))&&R.slice(0,this.root.length)===this.root&&S(O,F)},filter:function(S){var R=[];return this.forEach(function(O,F){S(O,F)&&R.push(F)}),R},file:function(S,R,O){if(arguments.length!==1)return S=this.root+S,r.call(this,S,R,O),this;if(v(S)){var F=S;return this.filter(function(M,Y){return!Y.dir&&F.test(M)})}var z=this.files[this.root+S];return z&&!z.dir?z:null},folder:function(S){if(!S)return this;if(v(S))return this.filter(function(z,M){return M.dir&&S.test(z)});var R=this.root+S,O=y.call(this,R),F=this.clone();return F.root=O.name,F},remove:function(S){S=this.root+S;var R=this.files[S];if(R||(S.slice(-1)!=="/"&&(S+="/"),R=this.files[S]),R&&!R.dir)delete this.files[S];else for(var O=this.filter(function(z,M){return M.name.slice(0,S.length)===S}),F=0;F<O.length;F++)delete this.files[O[F].name];return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(S){var R,O={};try{if((O=n.extend(S||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=O.type.toLowerCase(),O.compression=O.compression.toUpperCase(),O.type==="binarystring"&&(O.type="string"),!O.type)throw Error("No output type specified.");n.checkSupport(O.type),O.platform!=="darwin"&&O.platform!=="freebsd"&&O.platform!=="linux"&&O.platform!=="sunos"||(O.platform="UNIX"),O.platform==="win32"&&(O.platform="DOS");var F=O.comment||this.comment||"";R=u.generateWorker(this,O,F)}catch(z){(R=new l("error")).error(z)}return new s(R,O.type||"string",O.mimeType)},generateAsync:function(S,R){return this.generateInternalStream(S).accumulate(R)},generateNodeStream:function(S,R){return(S=S||{}).type||(S.type="nodebuffer"),this.generateInternalStream(S).toNodejsStream(R)}};i.exports=x},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,i,e){i.exports=t("stream")},{stream:void 0}],17:[function(t,i,e){var r=t("./DataReader");function o(n){r.call(this,n);for(var l=0;l<this.data.length;l++)n[l]=255&n[l]}t("../utils").inherits(o,r),o.prototype.byteAt=function(n){return this.data[this.zero+n]},o.prototype.lastIndexOfSignature=function(n){for(var l=n.charCodeAt(0),s=n.charCodeAt(1),b=n.charCodeAt(2),m=n.charCodeAt(3),d=this.length-4;0<=d;--d)if(this.data[d]===l&&this.data[d+1]===s&&this.data[d+2]===b&&this.data[d+3]===m)return d-this.zero;return-1},o.prototype.readAndCheckSignature=function(n){var l=n.charCodeAt(0),s=n.charCodeAt(1),b=n.charCodeAt(2),m=n.charCodeAt(3),d=this.readData(4);return l===d[0]&&s===d[1]&&b===d[2]&&m===d[3]},o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,l},i.exports=o},{"../utils":32,"./DataReader":18}],18:[function(t,i,e){var r=t("../utils");function o(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(n){this.checkIndex(this.index+n)},checkIndex:function(n){if(this.length<this.zero+n||n<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+n+"). Corrupted zip ?")},setIndex:function(n){this.checkIndex(n),this.index=n},skip:function(n){this.setIndex(this.index+n)},byteAt:function(){},readInt:function(n){var l,s=0;for(this.checkOffset(n),l=this.index+n-1;l>=this.index;l--)s=(s<<8)+this.byteAt(l);return this.index+=n,s},readString:function(n){return r.transformTo("string",this.readData(n))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var n=this.readInt(4);return new Date(Date.UTC(1980+(n>>25&127),(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1))}},i.exports=o},{"../utils":32}],19:[function(t,i,e){var r=t("./Uint8ArrayReader");function o(n){r.call(this,n)}t("../utils").inherits(o,r),o.prototype.readData=function(n){this.checkOffset(n);var l=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,l},i.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,i,e){var r=t("./DataReader");function o(n){r.call(this,n)}t("../utils").inherits(o,r),o.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},o.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},o.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},o.prototype.readData=function(n){this.checkOffset(n);var l=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,l},i.exports=o},{"../utils":32,"./DataReader":18}],21:[function(t,i,e){var r=t("./ArrayReader");function o(n){r.call(this,n)}t("../utils").inherits(o,r),o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,l},i.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(t,i,e){var r=t("../utils"),o=t("../support"),n=t("./ArrayReader"),l=t("./StringReader"),s=t("./NodeBufferReader"),b=t("./Uint8ArrayReader");i.exports=function(m){var d=r.getTypeOf(m);return r.checkSupport(d),d!=="string"||o.uint8array?d==="nodebuffer"?new s(m):o.uint8array?new b(r.transformTo("uint8array",m)):new n(r.transformTo("array",m)):new l(m)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,i,e){e.LOCAL_FILE_HEADER="PK\x03\x04",e.CENTRAL_FILE_HEADER="PK\x01\x02",e.CENTRAL_DIRECTORY_END="PK\x05\x06",e.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",e.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",e.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,i,e){var r=t("./GenericWorker"),o=t("../utils");function n(l){r.call(this,"ConvertWorker to "+l),this.destType=l}o.inherits(n,r),n.prototype.processChunk=function(l){this.push({data:o.transformTo(this.destType,l.data),meta:l.meta})},i.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(t,i,e){var r=t("./GenericWorker"),o=t("../crc32");function n(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(n,r),n.prototype.processChunk=function(l){this.streamInfo.crc32=o(l.data,this.streamInfo.crc32||0),this.push(l)},i.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,i,e){var r=t("../utils"),o=t("./GenericWorker");function n(l){o.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}r.inherits(n,o),n.prototype.processChunk=function(l){if(l){var s=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=s+l.data.length}o.prototype.processChunk.call(this,l)},i.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(t,i,e){var r=t("../utils"),o=t("./GenericWorker");function n(l){o.call(this,"DataWorker");var s=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(b){s.dataIsReady=!0,s.data=b,s.max=b&&b.length||0,s.type=r.getTypeOf(b),s.isPaused||s._tickAndRepeat()},function(b){s.error(b)})}r.inherits(n,o),n.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,s=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,s);break;case"uint8array":l=this.data.subarray(this.index,s);break;case"array":case"nodebuffer":l=this.data.slice(this.index,s)}return this.index=s,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(t,i,e){function r(o){this.name=o||"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}r.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,n){return this._listeners[o].push(n),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,n){if(this._listeners[o])for(var l=0;l<this._listeners[o].length;l++)this._listeners[o][l].call(this,n)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var n=this;return o.on("data",function(l){n.processChunk(l)}),o.on("end",function(){n.end()}),o.on("error",function(l){n.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,n){return this.extraStreamInfo[o]=n,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},i.exports=r},{}],29:[function(t,i,e){var r=t("../utils"),o=t("./ConvertWorker"),n=t("./GenericWorker"),l=t("../base64"),s=t("../support"),b=t("../external"),m=null;if(s.nodestream)try{m=t("../nodejs/NodejsStreamOutputAdapter")}catch(p){}function d(p,f){return new b.Promise(function(g,h){var y=[],{_internalType:v,_outputType:x,_mimeType:S}=p;p.on("data",function(R,O){y.push(R),f&&f(O)}).on("error",function(R){y=[],h(R)}).on("end",function(){try{var R=function(O,F,z){switch(O){case"blob":return r.newBlob(r.transformTo("arraybuffer",F),z);case"base64":return l.encode(F);default:return r.transformTo(O,F)}}(x,function(O,F){var z,M=0,Y=null,k=0;for(z=0;z<F.length;z++)k+=F[z].length;switch(O){case"string":return F.join("");case"array":return Array.prototype.concat.apply([],F);case"uint8array":for(Y=new Uint8Array(k),z=0;z<F.length;z++)Y.set(F[z],M),M+=F[z].length;return Y;case"nodebuffer":return Buffer.concat(F);default:throw Error("concat : unsupported type '"+O+"'")}}(v,y),S);g(R)}catch(O){h(O)}y=[]}).resume()})}function u(p,f,g){var h=f;switch(f){case"blob":case"arraybuffer":h="uint8array";break;case"base64":h="string"}try{this._internalType=h,this._outputType=f,this._mimeType=g,r.checkSupport(h),this._worker=p.pipe(new o(h)),p.lock()}catch(y){this._worker=new n("error"),this._worker.error(y)}}u.prototype={accumulate:function(p){return d(this,p)},on:function(p,f){var g=this;return p==="data"?this._worker.on(p,function(h){f.call(g,h.data,h.meta)}):this._worker.on(p,function(){r.delay(f,arguments,g)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(p){if(r.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw Error(this._outputType+" is not supported by this method");return new m(this,{objectMode:this._outputType!=="nodebuffer"},p)}},i.exports=u},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,i,e){if(e.base64=!0,e.array=!0,e.string=!0,e.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",e.nodebuffer=typeof Buffer<"u",e.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")e.blob=!1;else{var r=new ArrayBuffer(0);try{e.blob=new Blob([r],{type:"application/zip"}).size===0}catch(n){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(r),e.blob=o.getBlob("application/zip").size===0}catch(l){e.blob=!1}}}try{e.nodestream=!!t("readable-stream").Readable}catch(n){e.nodestream=!1}},{"readable-stream":16}],31:[function(t,i,e){for(var r=t("./utils"),o=t("./support"),n=t("./nodejsUtils"),l=t("./stream/GenericWorker"),s=Array(256),b=0;b<256;b++)s[b]=252<=b?6:248<=b?5:240<=b?4:224<=b?3:192<=b?2:1;s[254]=s[254]=1;function m(){l.call(this,"utf-8 decode"),this.leftOver=null}function d(){l.call(this,"utf-8 encode")}e.utf8encode=function(u){return o.nodebuffer?n.newBufferFrom(u,"utf-8"):function(p){var f,g,h,y,v,x=p.length,S=0;for(y=0;y<x;y++)(64512&(g=p.charCodeAt(y)))==55296&&y+1<x&&(64512&(h=p.charCodeAt(y+1)))==56320&&(g=65536+(g-55296<<10)+(h-56320),y++),S+=g<128?1:g<2048?2:g<65536?3:4;for(f=o.uint8array?new Uint8Array(S):Array(S),y=v=0;v<S;y++)(64512&(g=p.charCodeAt(y)))==55296&&y+1<x&&(64512&(h=p.charCodeAt(y+1)))==56320&&(g=65536+(g-55296<<10)+(h-56320),y++),g<128?f[v++]=g:(g<2048?f[v++]=192|g>>>6:(g<65536?f[v++]=224|g>>>12:(f[v++]=240|g>>>18,f[v++]=128|g>>>12&63),f[v++]=128|g>>>6&63),f[v++]=128|63&g);return f}(u)},e.utf8decode=function(u){return o.nodebuffer?r.transformTo("nodebuffer",u).toString("utf-8"):function(p){var f,g,h,y,v=p.length,x=Array(2*v);for(f=g=0;f<v;)if((h=p[f++])<128)x[g++]=h;else if(4<(y=s[h]))x[g++]=65533,f+=y-1;else{for(h&=y===2?31:y===3?15:7;1<y&&f<v;)h=h<<6|63&p[f++],y--;1<y?x[g++]=65533:h<65536?x[g++]=h:(h-=65536,x[g++]=55296|h>>10&1023,x[g++]=56320|1023&h)}return x.length!==g&&(x.subarray?x=x.subarray(0,g):x.length=g),r.applyFromCharCode(x)}(u=r.transformTo(o.uint8array?"uint8array":"array",u))},r.inherits(m,l),m.prototype.processChunk=function(u){var p=r.transformTo(o.uint8array?"uint8array":"array",u.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var f=p;(p=new Uint8Array(f.length+this.leftOver.length)).set(this.leftOver,0),p.set(f,this.leftOver.length)}else p=this.leftOver.concat(p);this.leftOver=null}var g=function(y,v){var x;for((v=v||y.length)>y.length&&(v=y.length),x=v-1;0<=x&&(192&y[x])==128;)x--;return x<0?v:x===0?v:x+s[y[x]]>v?x:v}(p),h=p;g!==p.length&&(o.uint8array?(h=p.subarray(0,g),this.leftOver=p.subarray(g,p.length)):(h=p.slice(0,g),this.leftOver=p.slice(g,p.length))),this.push({data:e.utf8decode(h),meta:u.meta})},m.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:e.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},e.Utf8DecodeWorker=m,r.inherits(d,l),d.prototype.processChunk=function(u){this.push({data:e.utf8encode(u.data),meta:u.meta})},e.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,i,e){var r=t("./support"),o=t("./base64"),n=t("./nodejsUtils"),l=t("./external");function s(f){return f}function b(f,g){for(var h=0;h<f.length;++h)g[h]=255&f.charCodeAt(h);return g}t("setimmediate"),e.newBlob=function(f,g){e.checkSupport("blob");try{return new Blob([f],{type:g})}catch(y){try{var h=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return h.append(f),h.getBlob(g)}catch(v){throw Error("Bug : can't construct the Blob.")}}};var m={stringifyByChunk:function(f,g,h){var y=[],v=0,x=f.length;if(x<=h)return String.fromCharCode.apply(null,f);for(;v<x;)g==="array"||g==="nodebuffer"?y.push(String.fromCharCode.apply(null,f.slice(v,Math.min(v+h,x)))):y.push(String.fromCharCode.apply(null,f.subarray(v,Math.min(v+h,x)))),v+=h;return y.join("")},stringifyByChar:function(f){for(var g="",h=0;h<f.length;h++)g+=String.fromCharCode(f[h]);return g},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(f){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&String.fromCharCode.apply(null,n.allocBuffer(1)).length===1}catch(f){return!1}}()}};function d(f){var g=65536,h=e.getTypeOf(f),y=!0;if(h==="uint8array"?y=m.applyCanBeUsed.uint8array:h==="nodebuffer"&&(y=m.applyCanBeUsed.nodebuffer),y)for(;1<g;)try{return m.stringifyByChunk(f,h,g)}catch(v){g=Math.floor(g/2)}return m.stringifyByChar(f)}function u(f,g){for(var h=0;h<f.length;h++)g[h]=f[h];return g}e.applyFromCharCode=d;var p={};p.string={string:s,array:function(f){return b(f,Array(f.length))},arraybuffer:function(f){return p.string.uint8array(f).buffer},uint8array:function(f){return b(f,new Uint8Array(f.length))},nodebuffer:function(f){return b(f,n.allocBuffer(f.length))}},p.array={string:d,array:s,arraybuffer:function(f){return new Uint8Array(f).buffer},uint8array:function(f){return new Uint8Array(f)},nodebuffer:function(f){return n.newBufferFrom(f)}},p.arraybuffer={string:function(f){return d(new Uint8Array(f))},array:function(f){return u(new Uint8Array(f),Array(f.byteLength))},arraybuffer:s,uint8array:function(f){return new Uint8Array(f)},nodebuffer:function(f){return n.newBufferFrom(new Uint8Array(f))}},p.uint8array={string:d,array:function(f){return u(f,Array(f.length))},arraybuffer:function(f){return f.buffer},uint8array:s,nodebuffer:function(f){return n.newBufferFrom(f)}},p.nodebuffer={string:d,array:function(f){return u(f,Array(f.length))},arraybuffer:function(f){return p.nodebuffer.uint8array(f).buffer},uint8array:function(f){return u(f,new Uint8Array(f.length))},nodebuffer:s},e.transformTo=function(f,g){if(g=g||"",!f)return g;e.checkSupport(f);var h=e.getTypeOf(g);return p[h][f](g)},e.resolve=function(f){for(var g=f.split("/"),h=[],y=0;y<g.length;y++){var v=g[y];v==="."||v===""&&y!==0&&y!==g.length-1||(v===".."?h.pop():h.push(v))}return h.join("/")},e.getTypeOf=function(f){return typeof f=="string"?"string":Object.prototype.toString.call(f)==="[object Array]"?"array":r.nodebuffer&&n.isBuffer(f)?"nodebuffer":r.uint8array&&f instanceof Uint8Array?"uint8array":r.arraybuffer&&f instanceof ArrayBuffer?"arraybuffer":void 0},e.checkSupport=function(f){if(!r[f.toLowerCase()])throw Error(f+" is not supported by this platform")},e.MAX_VALUE_16BITS=65535,e.MAX_VALUE_32BITS=-1,e.pretty=function(f){var g,h,y="";for(h=0;h<(f||"").length;h++)y+="\\x"+((g=f.charCodeAt(h))<16?"0":"")+g.toString(16).toUpperCase();return y},e.delay=function(f,g,h){setImmediate(function(){f.apply(h||null,g||[])})},e.inherits=function(f,g){function h(){}h.prototype=g.prototype,f.prototype=new h},e.extend=function(){var f,g,h={};for(f=0;f<arguments.length;f++)for(g in arguments[f])Object.prototype.hasOwnProperty.call(arguments[f],g)&&h[g]===void 0&&(h[g]=arguments[f][g]);return h},e.prepareContent=function(f,g,h,y,v){return l.Promise.resolve(g).then(function(x){return r.blob&&(x instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(x))!==-1)&&typeof FileReader<"u"?new l.Promise(function(S,R){var O=new FileReader;O.onload=function(F){S(F.target.result)},O.onerror=function(F){R(F.target.error)},O.readAsArrayBuffer(x)}):x}).then(function(x){var S=e.getTypeOf(x);return S?(S==="arraybuffer"?x=e.transformTo("uint8array",x):S==="string"&&(v?x=o.decode(x):h&&y!==!0&&(x=function(R){return b(R,r.uint8array?new Uint8Array(R.length):Array(R.length))}(x))),x):l.Promise.reject(Error("Can't read the data of '"+f+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,i,e){var r=t("./reader/readerFor"),o=t("./utils"),n=t("./signature"),l=t("./zipEntry"),s=t("./support");function b(m){this.files=[],this.loadOptions=m}b.prototype={checkSignature:function(m){if(!this.reader.readAndCheckSignature(m)){this.reader.index-=4;var d=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+o.pretty(d)+", expected "+o.pretty(m)+")")}},isSignature:function(m,d){var u=this.reader.index;this.reader.setIndex(m);var p=this.reader.readString(4)===d;return this.reader.setIndex(u),p},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 m=this.reader.readData(this.zipCommentLength),d=s.uint8array?"uint8array":"array",u=o.transformTo(d,m);this.zipComment=this.loadOptions.decodeFileName(u)},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={};for(var m,d,u,p=this.zip64EndOfCentralSize-44;0<p;)m=this.reader.readInt(2),d=this.reader.readInt(4),u=this.reader.readData(d),this.zip64ExtensibleData[m]={id:m,length:d,value:u}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var m,d;for(m=0;m<this.files.length;m++)d=this.files[m],this.reader.setIndex(d.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),d.readLocalPart(this.reader),d.handleUTF8(),d.processAttributes()},readCentralDir:function(){var m;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(m=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(m);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var m=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(m<0)throw!this.isSignature(0,n.LOCAL_FILE_HEADER)?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"):Error("Corrupted zip: can't find end of central directory");this.reader.setIndex(m);var d=m;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(m=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(m),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var u=this.centralDirOffset+this.centralDirSize;this.zip64&&(u+=20,u+=12+this.zip64EndOfCentralSize);var p=d-u;if(0<p)this.isSignature(d,n.CENTRAL_FILE_HEADER)||(this.reader.zero=p);else if(p<0)throw Error("Corrupted zip: missing "+Math.abs(p)+" bytes.")},prepareReader:function(m){this.reader=r(m)},load:function(m){this.prepareReader(m),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},i.exports=b},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,i,e){var r=t("./reader/readerFor"),o=t("./utils"),n=t("./compressedObject"),l=t("./crc32"),s=t("./utf8"),b=t("./compressions"),m=t("./support");function d(u,p){this.options=u,this.loadOptions=p}d.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(u){var p,f;if(u.skip(22),this.fileNameLength=u.readInt(2),f=u.readInt(2),this.fileName=u.readData(this.fileNameLength),u.skip(f),this.compressedSize===-1||this.uncompressedSize===-1)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((p=function(g){for(var h in b)if(Object.prototype.hasOwnProperty.call(b,h)&&b[h].magic===g)return b[h];return null}(this.compressionMethod))===null)throw Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,p,u.readData(this.compressedSize))},readCentralPart:function(u){this.versionMadeBy=u.readInt(2),u.skip(2),this.bitFlag=u.readInt(2),this.compressionMethod=u.readString(2),this.date=u.readDate(),this.crc32=u.readInt(4),this.compressedSize=u.readInt(4),this.uncompressedSize=u.readInt(4);var p=u.readInt(2);if(this.extraFieldsLength=u.readInt(2),this.fileCommentLength=u.readInt(2),this.diskNumberStart=u.readInt(2),this.internalFileAttributes=u.readInt(2),this.externalFileAttributes=u.readInt(4),this.localHeaderOffset=u.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");u.skip(p),this.readExtraFields(u),this.parseZIP64ExtraField(u),this.fileComment=u.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var u=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),u==0&&(this.dosPermissions=63&this.externalFileAttributes),u==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var u=r(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=u.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=u.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=u.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=u.readInt(4))}},readExtraFields:function(u){var p,f,g,h=u.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});u.index+4<h;)p=u.readInt(2),f=u.readInt(2),g=u.readData(f),this.extraFields[p]={id:p,length:f,value:g};u.setIndex(h)},handleUTF8:function(){var u=m.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var p=this.findExtraFieldUnicodePath();if(p!==null)this.fileNameStr=p;else{var f=o.transformTo(u,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(f)}var g=this.findExtraFieldUnicodeComment();if(g!==null)this.fileCommentStr=g;else{var h=o.transformTo(u,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(h)}}},findExtraFieldUnicodePath:function(){var u=this.extraFields[28789];if(u){var p=r(u.value);return p.readInt(1)!==1?null:l(this.fileName)!==p.readInt(4)?null:s.utf8decode(p.readData(u.length-5))}return null},findExtraFieldUnicodeComment:function(){var u=this.extraFields[25461];if(u){var p=r(u.value);return p.readInt(1)!==1?null:l(this.fileComment)!==p.readInt(4)?null:s.utf8decode(p.readData(u.length-5))}return null}},i.exports=d},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,i,e){function r(p,f,g){this.name=p,this.dir=g.dir,this.date=g.date,this.comment=g.comment,this.unixPermissions=g.unixPermissions,this.dosPermissions=g.dosPermissions,this._data=f,this._dataBinary=g.binary,this.options={compression:g.compression,compressionOptions:g.compressionOptions}}var o=t("./stream/StreamHelper"),n=t("./stream/DataWorker"),l=t("./utf8"),s=t("./compressedObject"),b=t("./stream/GenericWorker");r.prototype={internalStream:function(p){var f=null,g="string";try{if(!p)throw Error("No output type specified.");var h=(g=p.toLowerCase())==="string"||g==="text";g!=="binarystring"&&g!=="text"||(g="string"),f=this._decompressWorker();var y=!this._dataBinary;y&&!h&&(f=f.pipe(new l.Utf8EncodeWorker)),!y&&h&&(f=f.pipe(new l.Utf8DecodeWorker))}catch(v){(f=new b("error")).error(v)}return new o(f,g,"")},async:function(p,f){return this.internalStream(p).accumulate(f)},nodeStream:function(p,f){return this.internalStream(p||"nodebuffer").toNodejsStream(f)},_compressWorker:function(p,f){if(this._data instanceof s&&this._data.compression.magic===p.magic)return this._data.getCompressedWorker();var g=this._decompressWorker();return this._dataBinary||(g=g.pipe(new l.Utf8EncodeWorker)),s.createWorkerFrom(g,p,f)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof b?this._data:new n(this._data)}};for(var m=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],d=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},u=0;u<m.length;u++)r.prototype[m[u]]=d;i.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,i,e){(function(r){var o,n,l=r.MutationObserver||r.WebKitMutationObserver;if(l){var s=0,b=new l(p),m=r.document.createTextNode("");b.observe(m,{characterData:!0}),o=function(){m.data=s=++s%2}}else if(r.setImmediate||r.MessageChannel===void 0)o="document"in r&&"onreadystatechange"in r.document.createElement("script")?function(){var f=r.document.createElement("script");f.onreadystatechange=function(){p(),f.onreadystatechange=null,f.parentNode.removeChild(f),f=null},r.document.documentElement.appendChild(f)}:function(){setTimeout(p,0)};else{var d=new r.MessageChannel;d.port1.onmessage=p,o=function(){d.port2.postMessage(0)}}var u=[];function p(){var f,g;n=!0;for(var h=u.length;h;){for(g=u,u=[],f=-1;++f<h;)g[f]();h=u.length}n=!1}i.exports=function(f){u.push(f)!==1||n||o()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(t,i,e){var r=t("immediate");function o(){}var n={},l=["REJECTED"],s=["FULFILLED"],b=["PENDING"];function m(h){if(typeof h!="function")throw TypeError("resolver must be a function");this.state=b,this.queue=[],this.outcome=void 0,h!==o&&f(this,h)}function d(h,y,v){this.promise=h,typeof y=="function"&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),typeof v=="function"&&(this.onRejected=v,this.callRejected=this.otherCallRejected)}function u(h,y,v){r(function(){var x;try{x=y(v)}catch(S){return n.reject(h,S)}x===h?n.reject(h,TypeError("Cannot resolve promise with itself")):n.resolve(h,x)})}function p(h){var y=h&&h.then;if(h&&(typeof h=="object"||typeof h=="function")&&typeof y=="function")return function(){y.apply(h,arguments)}}function f(h,y){var v=!1;function x(O){v||(v=!0,n.reject(h,O))}function S(O){v||(v=!0,n.resolve(h,O))}var R=g(function(){y(S,x)});R.status==="error"&&x(R.value)}function g(h,y){var v={};try{v.value=h(y),v.status="success"}catch(x){v.status="error",v.value=x}return v}(i.exports=m).prototype.finally=function(h){if(typeof h!="function")return this;var y=this.constructor;return this.then(function(v){return y.resolve(h()).then(function(){return v})},function(v){return y.resolve(h()).then(function(){throw v})})},m.prototype.catch=function(h){return this.then(null,h)},m.prototype.then=function(h,y){if(typeof h!="function"&&this.state===s||typeof y!="function"&&this.state===l)return this;var v=new this.constructor(o);return this.state!==b?u(v,this.state===s?h:y,this.outcome):this.queue.push(new d(v,h,y)),v},d.prototype.callFulfilled=function(h){n.resolve(this.promise,h)},d.prototype.otherCallFulfilled=function(h){u(this.promise,this.onFulfilled,h)},d.prototype.callRejected=function(h){n.reject(this.promise,h)},d.prototype.otherCallRejected=function(h){u(this.promise,this.onRejected,h)},n.resolve=function(h,y){var v=g(p,y);if(v.status==="error")return n.reject(h,v.value);var x=v.value;if(x)f(h,x);else{h.state=s,h.outcome=y;for(var S=-1,R=h.queue.length;++S<R;)h.queue[S].callFulfilled(y)}return h},n.reject=function(h,y){h.state=l,h.outcome=y;for(var v=-1,x=h.queue.length;++v<x;)h.queue[v].callRejected(y);return h},m.resolve=function(h){if(h instanceof this)return h;return n.resolve(new this(o),h)},m.reject=function(h){var y=new this(o);return n.reject(y,h)},m.all=function(h){var y=this;if(Object.prototype.toString.call(h)!=="[object Array]")return this.reject(TypeError("must be an array"));var v=h.length,x=!1;if(!v)return this.resolve([]);var S=Array(v),R=0,O=-1,F=new this(o);for(;++O<v;)z(h[O],O);return F;function z(M,Y){y.resolve(M).then(function(k){S[Y]=k,++R!==v||x||(x=!0,n.resolve(F,S))},function(k){x||(x=!0,n.reject(F,k))})}},m.race=function(h){var y=this;if(Object.prototype.toString.call(h)!=="[object Array]")return this.reject(TypeError("must be an array"));var v=h.length,x=!1;if(!v)return this.resolve([]);var S=-1,R=new this(o);for(;++S<v;)O=h[S],y.resolve(O).then(function(F){x||(x=!0,n.resolve(R,F))},function(F){x||(x=!0,n.reject(R,F))});var O;return R}},{immediate:36}],38:[function(t,i,e){var r={};(0,t("./lib/utils/common").assign)(r,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),i.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,i,e){var r=t("./zlib/deflate"),o=t("./utils/common"),n=t("./utils/strings"),l=t("./zlib/messages"),s=t("./zlib/zstream"),b=Object.prototype.toString,m=0,d=-1,u=0,p=8;function f(h){if(!(this instanceof f))return new f(h);this.options=o.assign({level:d,method:p,chunkSize:16384,windowBits:15,memLevel:8,strategy:u,to:""},h||{});var y=this.options;y.raw&&0<y.windowBits?y.windowBits=-y.windowBits:y.gzip&&0<y.windowBits&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var v=r.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(v!==m)throw Error(l[v]);if(y.header&&r.deflateSetHeader(this.strm,y.header),y.dictionary){var x;if(x=typeof y.dictionary=="string"?n.string2buf(y.dictionary):b.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,(v=r.deflateSetDictionary(this.strm,x))!==m)throw Error(l[v]);this._dict_set=!0}}function g(h,y){var v=new f(y);if(v.push(h,!0),v.err)throw v.msg||l[v.err];return v.result}f.prototype.push=function(h,y){var v,x,S=this.strm,R=this.options.chunkSize;if(this.ended)return!1;x=y===~~y?y:y===!0?4:0,typeof h=="string"?S.input=n.string2buf(h):b.call(h)==="[object ArrayBuffer]"?S.input=new Uint8Array(h):S.input=h,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new o.Buf8(R),S.next_out=0,S.avail_out=R),(v=r.deflate(S,x))!==1&&v!==m)return this.onEnd(v),!(this.ended=!0);S.avail_out!==0&&(S.avail_in!==0||x!==4&&x!==2)||(this.options.to==="string"?this.onData(n.buf2binstring(o.shrinkBuf(S.output,S.next_out))):this.onData(o.shrinkBuf(S.output,S.next_out)))}while((0<S.avail_in||S.avail_out===0)&&v!==1);return x===4?(v=r.deflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===m):x!==2||(this.onEnd(m),!(S.avail_out=0))},f.prototype.onData=function(h){this.chunks.push(h)},f.prototype.onEnd=function(h){h===m&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=h,this.msg=this.strm.msg},e.Deflate=f,e.deflate=g,e.deflateRaw=function(h,y){return(y=y||{}).raw=!0,g(h,y)},e.gzip=function(h,y){return(y=y||{}).gzip=!0,g(h,y)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,i,e){var r=t("./zlib/inflate"),o=t("./utils/common"),n=t("./utils/strings"),l=t("./zlib/constants"),s=t("./zlib/messages"),b=t("./zlib/zstream"),m=t("./zlib/gzheader"),d=Object.prototype.toString;function u(f){if(!(this instanceof u))return new u(f);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},f||{});var g=this.options;g.raw&&0<=g.windowBits&&g.windowBits<16&&(g.windowBits=-g.windowBits,g.windowBits===0&&(g.windowBits=-15)),!(0<=g.windowBits&&g.windowBits<16)||f&&f.windowBits||(g.windowBits+=32),15<g.windowBits&&g.windowBits<48&&(15&g.windowBits)==0&&(g.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new b,this.strm.avail_out=0;var h=r.inflateInit2(this.strm,g.windowBits);if(h!==l.Z_OK)throw Error(s[h]);this.header=new m,r.inflateGetHeader(this.strm,this.header)}function p(f,g){var h=new u(g);if(h.push(f,!0),h.err)throw h.msg||s[h.err];return h.result}u.prototype.push=function(f,g){var h,y,v,x,S,R,O=this.strm,F=this.options.chunkSize,z=this.options.dictionary,M=!1;if(this.ended)return!1;y=g===~~g?g:g===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof f=="string"?O.input=n.binstring2buf(f):d.call(f)==="[object ArrayBuffer]"?O.input=new Uint8Array(f):O.input=f,O.next_in=0,O.avail_in=O.input.length;do{if(O.avail_out===0&&(O.output=new o.Buf8(F),O.next_out=0,O.avail_out=F),(h=r.inflate(O,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&z&&(R=typeof z=="string"?n.string2buf(z):d.call(z)==="[object ArrayBuffer]"?new Uint8Array(z):z,h=r.inflateSetDictionary(this.strm,R)),h===l.Z_BUF_ERROR&&M===!0&&(h=l.Z_OK,M=!1),h!==l.Z_STREAM_END&&h!==l.Z_OK)return this.onEnd(h),!(this.ended=!0);O.next_out&&(O.avail_out!==0&&h!==l.Z_STREAM_END&&(O.avail_in!==0||y!==l.Z_FINISH&&y!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(v=n.utf8border(O.output,O.next_out),x=O.next_out-v,S=n.buf2string(O.output,v),O.next_out=x,O.avail_out=F-x,x&&o.arraySet(O.output,O.output,v,x,0),this.onData(S)):this.onData(o.shrinkBuf(O.output,O.next_out)))),O.avail_in===0&&O.avail_out===0&&(M=!0)}while((0<O.avail_in||O.avail_out===0)&&h!==l.Z_STREAM_END);return h===l.Z_STREAM_END&&(y=l.Z_FINISH),y===l.Z_FINISH?(h=r.inflateEnd(this.strm),this.onEnd(h),this.ended=!0,h===l.Z_OK):y!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(O.avail_out=0))},u.prototype.onData=function(f){this.chunks.push(f)},u.prototype.onEnd=function(f){f===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg},e.Inflate=u,e.inflate=p,e.inflateRaw=function(f,g){return(g=g||{}).raw=!0,p(f,g)},e.ungzip=p},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,i,e){var r=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";e.assign=function(l){for(var s=Array.prototype.slice.call(arguments,1);s.length;){var b=s.shift();if(b){if(typeof b!="object")throw TypeError(b+"must be non-object");for(var m in b)b.hasOwnProperty(m)&&(l[m]=b[m])}}return l},e.shrinkBuf=function(l,s){return l.length===s?l:l.subarray?l.subarray(0,s):(l.length=s,l)};var o={arraySet:function(l,s,b,m,d){if(s.subarray&&l.subarray)l.set(s.subarray(b,b+m),d);else for(var u=0;u<m;u++)l[d+u]=s[b+u]},flattenChunks:function(l){var s,b,m,d,u,p;for(s=m=0,b=l.length;s<b;s++)m+=l[s].length;for(p=new Uint8Array(m),s=d=0,b=l.length;s<b;s++)u=l[s],p.set(u,d),d+=u.length;return p}},n={arraySet:function(l,s,b,m,d){for(var u=0;u<m;u++)l[d+u]=s[b+u]},flattenChunks:function(l){return[].concat.apply([],l)}};e.setTyped=function(l){l?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,n))},e.setTyped(r)},{}],42:[function(t,i,e){var r=t("./common"),o=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch(m){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(m){n=!1}for(var l=new r.Buf8(256),s=0;s<256;s++)l[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function b(m,d){if(d<65537&&(m.subarray&&n||!m.subarray&&o))return String.fromCharCode.apply(null,r.shrinkBuf(m,d));for(var u="",p=0;p<d;p++)u+=String.fromCharCode(m[p]);return u}l[254]=l[254]=1,e.string2buf=function(m){var d,u,p,f,g,h=m.length,y=0;for(f=0;f<h;f++)(64512&(u=m.charCodeAt(f)))==55296&&f+1<h&&(64512&(p=m.charCodeAt(f+1)))==56320&&(u=65536+(u-55296<<10)+(p-56320),f++),y+=u<128?1:u<2048?2:u<65536?3:4;for(d=new r.Buf8(y),f=g=0;g<y;f++)(64512&(u=m.charCodeAt(f)))==55296&&f+1<h&&(64512&(p=m.charCodeAt(f+1)))==56320&&(u=65536+(u-55296<<10)+(p-56320),f++),u<128?d[g++]=u:(u<2048?d[g++]=192|u>>>6:(u<65536?d[g++]=224|u>>>12:(d[g++]=240|u>>>18,d[g++]=128|u>>>12&63),d[g++]=128|u>>>6&63),d[g++]=128|63&u);return d},e.buf2binstring=function(m){return b(m,m.length)},e.binstring2buf=function(m){for(var d=new r.Buf8(m.length),u=0,p=d.length;u<p;u++)d[u]=m.charCodeAt(u);return d},e.buf2string=function(m,d){var u,p,f,g,h=d||m.length,y=Array(2*h);for(u=p=0;u<h;)if((f=m[u++])<128)y[p++]=f;else if(4<(g=l[f]))y[p++]=65533,u+=g-1;else{for(f&=g===2?31:g===3?15:7;1<g&&u<h;)f=f<<6|63&m[u++],g--;1<g?y[p++]=65533:f<65536?y[p++]=f:(f-=65536,y[p++]=55296|f>>10&1023,y[p++]=56320|1023&f)}return b(y,p)},e.utf8border=function(m,d){var u;for((d=d||m.length)>m.length&&(d=m.length),u=d-1;0<=u&&(192&m[u])==128;)u--;return u<0?d:u===0?d:u+l[m[u]]>d?u:d}},{"./common":41}],43:[function(t,i,e){i.exports=function(r,o,n,l){for(var s=65535&r|0,b=r>>>16&65535|0,m=0;n!==0;){for(n-=m=2000<n?2000:n;b=b+(s=s+o[l++]|0)|0,--m;);s%=65521,b%=65521}return s|b<<16|0}},{}],44:[function(t,i,e){i.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}},{}],45:[function(t,i,e){var r=function(){for(var o,n=[],l=0;l<256;l++){o=l;for(var s=0;s<8;s++)o=1&o?3988292384^o>>>1:o>>>1;n[l]=o}return n}();i.exports=function(o,n,l,s){var b=r,m=s+l;o^=-1;for(var d=s;d<m;d++)o=o>>>8^b[255&(o^n[d])];return-1^o}},{}],46:[function(t,i,e){var r,o=t("../utils/common"),n=t("./trees"),l=t("./adler32"),s=t("./crc32"),b=t("./messages"),m=0,d=4,u=0,p=-2,f=-1,g=4,h=2,y=8,v=9,x=286,S=30,R=19,O=2*x+1,F=15,z=3,M=258,Y=M+z+1,k=42,B=113,c=1,L=2,J=3,U=4;function Q(a,N){return a.msg=b[N],N}function j(a){return(a<<1)-(4<a?9:0)}function K(a){for(var N=a.length;0<=--N;)a[N]=0}function A(a){var N=a.state,T=N.pending;T>a.avail_out&&(T=a.avail_out),T!==0&&(o.arraySet(a.output,N.pending_buf,N.pending_out,T,a.next_out),a.next_out+=T,N.pending_out+=T,a.total_out+=T,a.avail_out-=T,N.pending-=T,N.pending===0&&(N.pending_out=0))}function I(a,N){n._tr_flush_block(a,0<=a.block_start?a.block_start:-1,a.strstart-a.block_start,N),a.block_start=a.strstart,A(a.strm)}function X(a,N){a.pending_buf[a.pending++]=N}function q(a,N){a.pending_buf[a.pending++]=N>>>8&255,a.pending_buf[a.pending++]=255&N}function H(a,N){var T,_,{max_chain_length:w,strstart:E,prev_length:D,nice_match:P}=a,C=a.strstart>a.w_size-Y?a.strstart-(a.w_size-Y):0,{window:W,w_mask:G,prev:Z}=a,V=a.strstart+M,nt=W[E+D-1],et=W[E+D];a.prev_length>=a.good_match&&(w>>=2),P>a.lookahead&&(P=a.lookahead);do if(W[(T=N)+D]===et&&W[T+D-1]===nt&&W[T]===W[E]&&W[++T]===W[E+1]){E+=2,T++;do;while(W[++E]===W[++T]&&W[++E]===W[++T]&&W[++E]===W[++T]&&W[++E]===W[++T]&&W[++E]===W[++T]&&W[++E]===W[++T]&&W[++E]===W[++T]&&W[++E]===W[++T]&&E<V);if(_=M-(V-E),E=V-M,D<_){if(a.match_start=N,P<=(D=_))break;nt=W[E+D-1],et=W[E+D]}}while((N=Z[N&G])>C&&--w!=0);return D<=a.lookahead?D:a.lookahead}function at(a){var N,T,_,w,E,D,P,C,W,G,Z=a.w_size;do{if(w=a.window_size-a.lookahead-a.strstart,a.strstart>=Z+(Z-Y)){for(o.arraySet(a.window,a.window,Z,Z,0),a.match_start-=Z,a.strstart-=Z,a.block_start-=Z,N=T=a.hash_size;_=a.head[--N],a.head[N]=Z<=_?_-Z:0,--T;);for(N=T=Z;_=a.prev[--N],a.prev[N]=Z<=_?_-Z:0,--T;);w+=Z}if(a.strm.avail_in===0)break;if(D=a.strm,P=a.window,C=a.strstart+a.lookahead,W=w,G=void 0,G=D.avail_in,W<G&&(G=W),T=G===0?0:(D.avail_in-=G,o.arraySet(P,D.input,D.next_in,G,C),D.state.wrap===1?D.adler=l(D.adler,P,G,C):D.state.wrap===2&&(D.adler=s(D.adler,P,G,C)),D.next_in+=G,D.total_in+=G,G),a.lookahead+=T,a.lookahead+a.insert>=z)for(E=a.strstart-a.insert,a.ins_h=a.window[E],a.ins_h=(a.ins_h<<a.hash_shift^a.window[E+1])&a.hash_mask;a.insert&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[E+z-1])&a.hash_mask,a.prev[E&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=E,E++,a.insert--,!(a.lookahead+a.insert<z)););}while(a.lookahead<Y&&a.strm.avail_in!==0)}function ct(a,N){for(var T,_;;){if(a.lookahead<Y){if(at(a),a.lookahead<Y&&N===m)return c;if(a.lookahead===0)break}if(T=0,a.lookahead>=z&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+z-1])&a.hash_mask,T=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),T!==0&&a.strstart-T<=a.w_size-Y&&(a.match_length=H(a,T)),a.match_length>=z)if(_=n._tr_tally(a,a.strstart-a.match_start,a.match_length-z),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=z){for(a.match_length--;a.strstart++,a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+z-1])&a.hash_mask,T=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart,--a.match_length!=0;);a.strstart++}else a.strstart+=a.match_length,a.match_length=0,a.ins_h=a.window[a.strstart],a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+1])&a.hash_mask;else _=n._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++;if(_&&(I(a,!1),a.strm.avail_out===0))return c}return a.insert=a.strstart<z-1?a.strstart:z-1,N===d?(I(a,!0),a.strm.avail_out===0?J:U):a.last_lit&&(I(a,!1),a.strm.avail_out===0)?c:L}function tt(a,N){for(var T,_,w;;){if(a.lookahead<Y){if(at(a),a.lookahead<Y&&N===m)return c;if(a.lookahead===0)break}if(T=0,a.lookahead>=z&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+z-1])&a.hash_mask,T=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),a.prev_length=a.match_length,a.prev_match=a.match_start,a.match_length=z-1,T!==0&&a.prev_length<a.max_lazy_match&&a.strstart-T<=a.w_size-Y&&(a.match_length=H(a,T),a.match_length<=5&&(a.strategy===1||a.match_length===z&&4096<a.strstart-a.match_start)&&(a.match_length=z-1)),a.prev_length>=z&&a.match_length<=a.prev_length){for(w=a.strstart+a.lookahead-z,_=n._tr_tally(a,a.strstart-1-a.prev_match,a.prev_length-z),a.lookahead-=a.prev_length-1,a.prev_length-=2;++a.strstart<=w&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+z-1])&a.hash_mask,T=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),--a.prev_length!=0;);if(a.match_available=0,a.match_length=z-1,a.strstart++,_&&(I(a,!1),a.strm.avail_out===0))return c}else if(a.match_available){if((_=n._tr_tally(a,0,a.window[a.strstart-1]))&&I(a,!1),a.strstart++,a.lookahead--,a.strm.avail_out===0)return c}else a.match_available=1,a.strstart++,a.lookahead--}return a.match_available&&(_=n._tr_tally(a,0,a.window[a.strstart-1]),a.match_available=0),a.insert=a.strstart<z-1?a.strstart:z-1,N===d?(I(a,!0),a.strm.avail_out===0?J:U):a.last_lit&&(I(a,!1),a.strm.avail_out===0)?c:L}function rt(a,N,T,_,w){this.good_length=a,this.max_lazy=N,this.nice_length=T,this.max_chain=_,this.func=w}function lt(){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=y,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 o.Buf16(2*O),this.dyn_dtree=new o.Buf16(2*(2*S+1)),this.bl_tree=new o.Buf16(2*(2*R+1)),K(this.dyn_ltree),K(this.dyn_dtree),K(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(F+1),this.heap=new o.Buf16(2*x+1),K(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*x+1),K(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 st(a){var N;return a&&a.state?(a.total_in=a.total_out=0,a.data_type=h,(N=a.state).pending=0,N.pending_out=0,N.wrap<0&&(N.wrap=-N.wrap),N.status=N.wrap?k:B,a.adler=N.wrap===2?0:1,N.last_flush=m,n._tr_init(N),u):Q(a,p)}function ht(a){var N=st(a);return N===u&&function(T){T.window_size=2*T.w_size,K(T.head),T.max_lazy_match=r[T.level].max_lazy,T.good_match=r[T.level].good_length,T.nice_match=r[T.level].nice_length,T.max_chain_length=r[T.level].max_chain,T.strstart=0,T.block_start=0,T.lookahead=0,T.insert=0,T.match_length=T.prev_length=z-1,T.match_available=0,T.ins_h=0}(a.state),N}function ft(a,N,T,_,w,E){if(!a)return p;var D=1;if(N===f&&(N=6),_<0?(D=0,_=-_):15<_&&(D=2,_-=16),w<1||v<w||T!==y||_<8||15<_||N<0||9<N||E<0||g<E)return Q(a,p);_===8&&(_=9);var P=new lt;return(a.state=P).strm=a,P.wrap=D,P.gzhead=null,P.w_bits=_,P.w_size=1<<P.w_bits,P.w_mask=P.w_size-1,P.hash_bits=w+7,P.hash_size=1<<P.hash_bits,P.hash_mask=P.hash_size-1,P.hash_shift=~~((P.hash_bits+z-1)/z),P.window=new o.Buf8(2*P.w_size),P.head=new o.Buf16(P.hash_size),P.prev=new o.Buf16(P.w_size),P.lit_bufsize=1<<w+6,P.pending_buf_size=4*P.lit_bufsize,P.pending_buf=new o.Buf8(P.pending_buf_size),P.d_buf=1*P.lit_bufsize,P.l_buf=3*P.lit_bufsize,P.level=N,P.strategy=E,P.method=T,ht(a)}r=[new rt(0,0,0,0,function(a,N){var T=65535;for(T>a.pending_buf_size-5&&(T=a.pending_buf_size-5);;){if(a.lookahead<=1){if(at(a),a.lookahead===0&&N===m)return c;if(a.lookahead===0)break}a.strstart+=a.lookahead,a.lookahead=0;var _=a.block_start+T;if((a.strstart===0||a.strstart>=_)&&(a.lookahead=a.strstart-_,a.strstart=_,I(a,!1),a.strm.avail_out===0))return c;if(a.strstart-a.block_start>=a.w_size-Y&&(I(a,!1),a.strm.avail_out===0))return c}return a.insert=0,N===d?(I(a,!0),a.strm.avail_out===0?J:U):(a.strstart>a.block_start&&(I(a,!1),a.strm.avail_out),c)}),new rt(4,4,8,4,ct),new rt(4,5,16,8,ct),new rt(4,6,32,32,ct),new rt(4,4,16,16,tt),new rt(8,16,32,32,tt),new rt(8,16,128,128,tt),new rt(8,32,128,256,tt),new rt(32,128,258,1024,tt),new rt(32,258,258,4096,tt)],e.deflateInit=function(a,N){return ft(a,N,y,15,8,0)},e.deflateInit2=ft,e.deflateReset=ht,e.deflateResetKeep=st,e.deflateSetHeader=function(a,N){return a&&a.state?a.state.wrap!==2?p:(a.state.gzhead=N,u):p},e.deflate=function(a,N){var T,_,w,E;if(!a||!a.state||5<N||N<0)return a?Q(a,p):p;if(_=a.state,!a.output||!a.input&&a.avail_in!==0||_.status===666&&N!==d)return Q(a,a.avail_out===0?-5:p);if(_.strm=a,T=_.last_flush,_.last_flush=N,_.status===k)if(_.wrap===2)a.adler=0,X(_,31),X(_,139),X(_,8),_.gzhead?(X(_,(_.gzhead.text?1:0)+(_.gzhead.hcrc?2:0)+(_.gzhead.extra?4:0)+(_.gzhead.name?8:0)+(_.gzhead.comment?16:0)),X(_,255&_.gzhead.time),X(_,_.gzhead.time>>8&255),X(_,_.gzhead.time>>16&255),X(_,_.gzhead.time>>24&255),X(_,_.level===9?2:2<=_.strategy||_.level<2?4:0),X(_,255&_.gzhead.os),_.gzhead.extra&&_.gzhead.extra.length&&(X(_,255&_.gzhead.extra.length),X(_,_.gzhead.extra.length>>8&255)),_.gzhead.hcrc&&(a.adler=s(a.adler,_.pending_buf,_.pending,0)),_.gzindex=0,_.status=69):(X(_,0),X(_,0),X(_,0),X(_,0),X(_,0),X(_,_.level===9?2:2<=_.strategy||_.level<2?4:0),X(_,3),_.status=B);else{var D=y+(_.w_bits-8<<4)<<8;D|=(2<=_.strategy||_.level<2?0:_.level<6?1:_.level===6?2:3)<<6,_.strstart!==0&&(D|=32),D+=31-D%31,_.status=B,q(_,D),_.strstart!==0&&(q(_,a.adler>>>16),q(_,65535&a.adler)),a.adler=1}if(_.status===69)if(_.gzhead.extra){for(w=_.pending;_.gzindex<(65535&_.gzhead.extra.length)&&(_.pending!==_.pending_buf_size||(_.gzhead.hcrc&&_.pending>w&&(a.adler=s(a.adler,_.pending_buf,_.pending-w,w)),A(a),w=_.pending,_.pending!==_.pending_buf_size));)X(_,255&_.gzhead.extra[_.gzindex]),_.gzindex++;_.gzhead.hcrc&&_.pending>w&&(a.adler=s(a.adler,_.pending_buf,_.pending-w,w)),_.gzindex===_.gzhead.extra.length&&(_.gzindex=0,_.status=73)}else _.status=73;if(_.status===73)if(_.gzhead.name){w=_.pending;do{if(_.pending===_.pending_buf_size&&(_.gzhead.hcrc&&_.pending>w&&(a.adler=s(a.adler,_.pending_buf,_.pending-w,w)),A(a),w=_.pending,_.pending===_.pending_buf_size)){E=1;break}E=_.gzindex<_.gzhead.name.length?255&_.gzhead.name.charCodeAt(_.gzindex++):0,X(_,E)}while(E!==0);_.gzhead.hcrc&&_.pending>w&&(a.adler=s(a.adler,_.pending_buf,_.pending-w,w)),E===0&&(_.gzindex=0,_.status=91)}else _.status=91;if(_.status===91)if(_.gzhead.comment){w=_.pending;do{if(_.pending===_.pending_buf_size&&(_.gzhead.hcrc&&_.pending>w&&(a.adler=s(a.adler,_.pending_buf,_.pending-w,w)),A(a),w=_.pending,_.pending===_.pending_buf_size)){E=1;break}E=_.gzindex<_.gzhead.comment.length?255&_.gzhead.comment.charCodeAt(_.gzindex++):0,X(_,E)}while(E!==0);_.gzhead.hcrc&&_.pending>w&&(a.adler=s(a.adler,_.pending_buf,_.pending-w,w)),E===0&&(_.status=103)}else _.status=103;if(_.status===103&&(_.gzhead.hcrc?(_.pending+2>_.pending_buf_size&&A(a),_.pending+2<=_.pending_buf_size&&(X(_,255&a.adler),X(_,a.adler>>8&255),a.adler=0,_.status=B)):_.status=B),_.pending!==0){if(A(a),a.avail_out===0)return _.last_flush=-1,u}else if(a.avail_in===0&&j(N)<=j(T)&&N!==d)return Q(a,-5);if(_.status===666&&a.avail_in!==0)return Q(a,-5);if(a.avail_in!==0||_.lookahead!==0||N!==m&&_.status!==666){var P=_.strategy===2?function(C,W){for(var G;;){if(C.lookahead===0&&(at(C),C.lookahead===0)){if(W===m)return c;break}if(C.match_length=0,G=n._tr_tally(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++,G&&(I(C,!1),C.strm.avail_out===0))return c}return C.insert=0,W===d?(I(C,!0),C.strm.avail_out===0?J:U):C.last_lit&&(I(C,!1),C.strm.avail_out===0)?c:L}(_,N):_.strategy===3?function(C,W){for(var G,Z,V,nt,et=C.window;;){if(C.lookahead<=M){if(at(C),C.lookahead<=M&&W===m)return c;if(C.lookahead===0)break}if(C.match_length=0,C.lookahead>=z&&0<C.strstart&&(Z=et[V=C.strstart-1])===et[++V]&&Z===et[++V]&&Z===et[++V]){nt=C.strstart+M;do;while(Z===et[++V]&&Z===et[++V]&&Z===et[++V]&&Z===et[++V]&&Z===et[++V]&&Z===et[++V]&&Z===et[++V]&&Z===et[++V]&&V<nt);C.match_length=M-(nt-V),C.match_length>C.lookahead&&(C.match_length=C.lookahead)}if(C.match_length>=z?(G=n._tr_tally(C,1,C.match_length-z),C.lookahead-=C.match_length,C.strstart+=C.match_length,C.match_length=0):(G=n._tr_tally(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++),G&&(I(C,!1),C.strm.avail_out===0))return c}return C.insert=0,W===d?(I(C,!0),C.strm.avail_out===0?J:U):C.last_lit&&(I(C,!1),C.strm.avail_out===0)?c:L}(_,N):r[_.level].func(_,N);if(P!==J&&P!==U||(_.status=666),P===c||P===J)return a.avail_out===0&&(_.last_flush=-1),u;if(P===L&&(N===1?n._tr_align(_):N!==5&&(n._tr_stored_block(_,0,0,!1),N===3&&(K(_.head),_.lookahead===0&&(_.strstart=0,_.block_start=0,_.insert=0))),A(a),a.avail_out===0))return _.last_flush=-1,u}return N!==d?u:_.wrap<=0?1:(_.wrap===2?(X(_,255&a.adler),X(_,a.adler>>8&255),X(_,a.adler>>16&255),X(_,a.adler>>24&255),X(_,255&a.total_in),X(_,a.total_in>>8&255),X(_,a.total_in>>16&255),X(_,a.total_in>>24&255)):(q(_,a.adler>>>16),q(_,65535&a.adler)),A(a),0<_.wrap&&(_.wrap=-_.wrap),_.pending!==0?u:1)},e.deflateEnd=function(a){var N;return a&&a.state?(N=a.state.status)!==k&&N!==69&&N!==73&&N!==91&&N!==103&&N!==B&&N!==666?Q(a,p):(a.state=null,N===B?Q(a,-3):u):p},e.deflateSetDictionary=function(a,N){var T,_,w,E,D,P,C,W,G=N.length;if(!a||!a.state)return p;if((E=(T=a.state).wrap)===2||E===1&&T.status!==k||T.lookahead)return p;for(E===1&&(a.adler=l(a.adler,N,G,0)),T.wrap=0,G>=T.w_size&&(E===0&&(K(T.head),T.strstart=0,T.block_start=0,T.insert=0),W=new o.Buf8(T.w_size),o.arraySet(W,N,G-T.w_size,T.w_size,0),N=W,G=T.w_size),D=a.avail_in,P=a.next_in,C=a.input,a.avail_in=G,a.next_in=0,a.input=N,at(T);T.lookahead>=z;){for(_=T.strstart,w=T.lookahead-(z-1);T.ins_h=(T.ins_h<<T.hash_shift^T.window[_+z-1])&T.hash_mask,T.prev[_&T.w_mask]=T.head[T.ins_h],T.head[T.ins_h]=_,_++,--w;);T.strstart=_,T.lookahead=z-1,at(T)}return T.strstart+=T.lookahead,T.block_start=T.strstart,T.insert=T.lookahead,T.lookahead=0,T.match_length=T.prev_length=z-1,T.match_available=0,a.next_in=P,a.input=C,a.avail_in=D,T.wrap=E,u},e.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,i,e){i.exports=function(){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}},{}],48:[function(t,i,e){i.exports=function(r,o){var n,l,s,b,m,d,u,p,f,g,h,y,v,x,S,R,O,F,z,M,Y,k,B,c,L;n=r.state,l=r.next_in,c=r.input,s=l+(r.avail_in-5),b=r.next_out,L=r.output,m=b-(o-r.avail_out),d=b+(r.avail_out-257),u=n.dmax,p=n.wsize,f=n.whave,g=n.wnext,h=n.window,y=n.hold,v=n.bits,x=n.lencode,S=n.distcode,R=(1<<n.lenbits)-1,O=(1<<n.distbits)-1;t:do{v<15&&(y+=c[l++]<<v,v+=8,y+=c[l++]<<v,v+=8),F=x[y&R];e:for(;;){if(y>>>=z=F>>>24,v-=z,(z=F>>>16&255)===0)L[b++]=65535&F;else{if(!(16&z)){if((64&z)==0){F=x[(65535&F)+(y&(1<<z)-1)];continue e}if(32&z){n.mode=12;break t}r.msg="invalid literal/length code",n.mode=30;break t}M=65535&F,(z&=15)&&(v<z&&(y+=c[l++]<<v,v+=8),M+=y&(1<<z)-1,y>>>=z,v-=z),v<15&&(y+=c[l++]<<v,v+=8,y+=c[l++]<<v,v+=8),F=S[y&O];r:for(;;){if(y>>>=z=F>>>24,v-=z,!(16&(z=F>>>16&255))){if((64&z)==0){F=S[(65535&F)+(y&(1<<z)-1)];continue r}r.msg="invalid distance code",n.mode=30;break t}if(Y=65535&F,v<(z&=15)&&(y+=c[l++]<<v,(v+=8)<z&&(y+=c[l++]<<v,v+=8)),u<(Y+=y&(1<<z)-1)){r.msg="invalid distance too far back",n.mode=30;break t}if(y>>>=z,v-=z,(z=b-m)<Y){if(f<(z=Y-z)&&n.sane){r.msg="invalid distance too far back",n.mode=30;break t}if(B=h,(k=0)===g){if(k+=p-z,z<M){for(M-=z;L[b++]=h[k++],--z;);k=b-Y,B=L}}else if(g<z){if(k+=p+g-z,(z-=g)<M){for(M-=z;L[b++]=h[k++],--z;);if(k=0,g<M){for(M-=z=g;L[b++]=h[k++],--z;);k=b-Y,B=L}}}else if(k+=g-z,z<M){for(M-=z;L[b++]=h[k++],--z;);k=b-Y,B=L}for(;2<M;)L[b++]=B[k++],L[b++]=B[k++],L[b++]=B[k++],M-=3;M&&(L[b++]=B[k++],1<M&&(L[b++]=B[k++]))}else{for(k=b-Y;L[b++]=L[k++],L[b++]=L[k++],L[b++]=L[k++],2<(M-=3););M&&(L[b++]=L[k++],1<M&&(L[b++]=L[k++]))}break}}break}}while(l<s&&b<d);l-=M=v>>3,y&=(1<<(v-=M<<3))-1,r.next_in=l,r.next_out=b,r.avail_in=l<s?s-l+5:5-(l-s),r.avail_out=b<d?d-b+257:257-(b-d),n.hold=y,n.bits=v}},{}],49:[function(t,i,e){var r=t("../utils/common"),o=t("./adler32"),n=t("./crc32"),l=t("./inffast"),s=t("./inftrees"),b=1,m=2,d=0,u=-2,p=1,f=852,g=592;function h(k){return(k>>>24&255)+(k>>>8&65280)+((65280&k)<<8)+((255&k)<<24)}function y(){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 r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(k){var B;return k&&k.state?(B=k.state,k.total_in=k.total_out=B.total=0,k.msg="",B.wrap&&(k.adler=1&B.wrap),B.mode=p,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new r.Buf32(f),B.distcode=B.distdyn=new r.Buf32(g),B.sane=1,B.back=-1,d):u}function x(k){var B;return k&&k.state?((B=k.state).wsize=0,B.whave=0,B.wnext=0,v(k)):u}function S(k,B){var c,L;return k&&k.state?(L=k.state,B<0?(c=0,B=-B):(c=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?u:(L.window!==null&&L.wbits!==B&&(L.window=null),L.wrap=c,L.wbits=B,x(k))):u}function R(k,B){var c,L;return k?(L=new y,(k.state=L).window=null,(c=S(k,B))!==d&&(k.state=null),c):u}var O,F,z=!0;function M(k){if(z){var B;for(O=new r.Buf32(512),F=new r.Buf32(32),B=0;B<144;)k.lens[B++]=8;for(;B<256;)k.lens[B++]=9;for(;B<280;)k.lens[B++]=7;for(;B<288;)k.lens[B++]=8;for(s(b,k.lens,0,288,O,0,k.work,{bits:9}),B=0;B<32;)k.lens[B++]=5;s(m,k.lens,0,32,F,0,k.work,{bits:5}),z=!1}k.lencode=O,k.lenbits=9,k.distcode=F,k.distbits=5}function Y(k,B,c,L){var J,U=k.state;return U.window===null&&(U.wsize=1<<U.wbits,U.wnext=0,U.whave=0,U.window=new r.Buf8(U.wsize)),L>=U.wsize?(r.arraySet(U.window,B,c-U.wsize,U.wsize,0),U.wnext=0,U.whave=U.wsize):(L<(J=U.wsize-U.wnext)&&(J=L),r.arraySet(U.window,B,c-L,J,U.wnext),(L-=J)?(r.arraySet(U.window,B,c-L,L,0),U.wnext=L,U.whave=U.wsize):(U.wnext+=J,U.wnext===U.wsize&&(U.wnext=0),U.whave<U.wsize&&(U.whave+=J))),0}e.inflateReset=x,e.inflateReset2=S,e.inflateResetKeep=v,e.inflateInit=function(k){return R(k,15)},e.inflateInit2=R,e.inflate=function(k,B){var c,L,J,U,Q,j,K,A,I,X,q,H,at,ct,tt,rt,lt,st,ht,ft,a,N,T,_,w=0,E=new r.Buf8(4),D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!k||!k.state||!k.output||!k.input&&k.avail_in!==0)return u;(c=k.state).mode===12&&(c.mode=13),Q=k.next_out,J=k.output,K=k.avail_out,U=k.next_in,L=k.input,j=k.avail_in,A=c.hold,I=c.bits,X=j,q=K,N=d;t:for(;;)switch(c.mode){case p:if(c.wrap===0){c.mode=13;break}for(;I<16;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}if(2&c.wrap&&A===35615){E[c.check=0]=255&A,E[1]=A>>>8&255,c.check=n(c.check,E,2,0),I=A=0,c.mode=2;break}if(c.flags=0,c.head&&(c.head.done=!1),!(1&c.wrap)||(((255&A)<<8)+(A>>8))%31){k.msg="incorrect header check",c.mode=30;break}if((15&A)!=8){k.msg="unknown compression method",c.mode=30;break}if(I-=4,a=8+(15&(A>>>=4)),c.wbits===0)c.wbits=a;else if(a>c.wbits){k.msg="invalid window size",c.mode=30;break}c.dmax=1<<a,k.adler=c.check=1,c.mode=512&A?10:12,I=A=0;break;case 2:for(;I<16;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}if(c.flags=A,(255&c.flags)!=8){k.msg="unknown compression method",c.mode=30;break}if(57344&c.flags){k.msg="unknown header flags set",c.mode=30;break}c.head&&(c.head.text=A>>8&1),512&c.flags&&(E[0]=255&A,E[1]=A>>>8&255,c.check=n(c.check,E,2,0)),I=A=0,c.mode=3;case 3:for(;I<32;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}c.head&&(c.head.time=A),512&c.flags&&(E[0]=255&A,E[1]=A>>>8&255,E[2]=A>>>16&255,E[3]=A>>>24&255,c.check=n(c.check,E,4,0)),I=A=0,c.mode=4;case 4:for(;I<16;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}c.head&&(c.head.xflags=255&A,c.head.os=A>>8),512&c.flags&&(E[0]=255&A,E[1]=A>>>8&255,c.check=n(c.check,E,2,0)),I=A=0,c.mode=5;case 5:if(1024&c.flags){for(;I<16;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}c.length=A,c.head&&(c.head.extra_len=A),512&c.flags&&(E[0]=255&A,E[1]=A>>>8&255,c.check=n(c.check,E,2,0)),I=A=0}else c.head&&(c.head.extra=null);c.mode=6;case 6:if(1024&c.flags&&(j<(H=c.length)&&(H=j),H&&(c.head&&(a=c.head.extra_len-c.length,c.head.extra||(c.head.extra=Array(c.head.extra_len)),r.arraySet(c.head.extra,L,U,H,a)),512&c.flags&&(c.check=n(c.check,L,H,U)),j-=H,U+=H,c.length-=H),c.length))break t;c.length=0,c.mode=7;case 7:if(2048&c.flags){if(j===0)break t;for(H=0;a=L[U+H++],c.head&&a&&c.length<65536&&(c.head.name+=String.fromCharCode(a)),a&&H<j;);if(512&c.flags&&(c.check=n(c.check,L,H,U)),j-=H,U+=H,a)break t}else c.head&&(c.head.name=null);c.length=0,c.mode=8;case 8:if(4096&c.flags){if(j===0)break t;for(H=0;a=L[U+H++],c.head&&a&&c.length<65536&&(c.head.comment+=String.fromCharCode(a)),a&&H<j;);if(512&c.flags&&(c.check=n(c.check,L,H,U)),j-=H,U+=H,a)break t}else c.head&&(c.head.comment=null);c.mode=9;case 9:if(512&c.flags){for(;I<16;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}if(A!==(65535&c.check)){k.msg="header crc mismatch",c.mode=30;break}I=A=0}c.head&&(c.head.hcrc=c.flags>>9&1,c.head.done=!0),k.adler=c.check=0,c.mode=12;break;case 10:for(;I<32;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}k.adler=c.check=h(A),I=A=0,c.mode=11;case 11:if(c.havedict===0)return k.next_out=Q,k.avail_out=K,k.next_in=U,k.avail_in=j,c.hold=A,c.bits=I,2;k.adler=c.check=1,c.mode=12;case 12:if(B===5||B===6)break t;case 13:if(c.last){A>>>=7&I,I-=7&I,c.mode=27;break}for(;I<3;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}switch(c.last=1&A,I-=1,3&(A>>>=1)){case 0:c.mode=14;break;case 1:if(M(c),c.mode=20,B!==6)break;A>>>=2,I-=2;break t;case 2:c.mode=17;break;case 3:k.msg="invalid block type",c.mode=30}A>>>=2,I-=2;break;case 14:for(A>>>=7&I,I-=7&I;I<32;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}if((65535&A)!=(A>>>16^65535)){k.msg="invalid stored block lengths",c.mode=30;break}if(c.length=65535&A,I=A=0,c.mode=15,B===6)break t;case 15:c.mode=16;case 16:if(H=c.length){if(j<H&&(H=j),K<H&&(H=K),H===0)break t;r.arraySet(J,L,U,H,Q),j-=H,U+=H,K-=H,Q+=H,c.length-=H;break}c.mode=12;break;case 17:for(;I<14;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}if(c.nlen=257+(31&A),A>>>=5,I-=5,c.ndist=1+(31&A),A>>>=5,I-=5,c.ncode=4+(15&A),A>>>=4,I-=4,286<c.nlen||30<c.ndist){k.msg="too many length or distance symbols",c.mode=30;break}c.have=0,c.mode=18;case 18:for(;c.have<c.ncode;){for(;I<3;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}c.lens[D[c.have++]]=7&A,A>>>=3,I-=3}for(;c.have<19;)c.lens[D[c.have++]]=0;if(c.lencode=c.lendyn,c.lenbits=7,T={bits:c.lenbits},N=s(0,c.lens,0,19,c.lencode,0,c.work,T),c.lenbits=T.bits,N){k.msg="invalid code lengths set",c.mode=30;break}c.have=0,c.mode=19;case 19:for(;c.have<c.nlen+c.ndist;){for(;rt=(w=c.lencode[A&(1<<c.lenbits)-1])>>>16&255,lt=65535&w,!((tt=w>>>24)<=I);){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}if(lt<16)A>>>=tt,I-=tt,c.lens[c.have++]=lt;else{if(lt===16){for(_=tt+2;I<_;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}if(A>>>=tt,I-=tt,c.have===0){k.msg="invalid bit length repeat",c.mode=30;break}a=c.lens[c.have-1],H=3+(3&A),A>>>=2,I-=2}else if(lt===17){for(_=tt+3;I<_;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}I-=tt,a=0,H=3+(7&(A>>>=tt)),A>>>=3,I-=3}else{for(_=tt+7;I<_;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}I-=tt,a=0,H=11+(127&(A>>>=tt)),A>>>=7,I-=7}if(c.have+H>c.nlen+c.ndist){k.msg="invalid bit length repeat",c.mode=30;break}for(;H--;)c.lens[c.have++]=a}}if(c.mode===30)break;if(c.lens[256]===0){k.msg="invalid code -- missing end-of-block",c.mode=30;break}if(c.lenbits=9,T={bits:c.lenbits},N=s(b,c.lens,0,c.nlen,c.lencode,0,c.work,T),c.lenbits=T.bits,N){k.msg="invalid literal/lengths set",c.mode=30;break}if(c.distbits=6,c.distcode=c.distdyn,T={bits:c.distbits},N=s(m,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,T),c.distbits=T.bits,N){k.msg="invalid distances set",c.mode=30;break}if(c.mode=20,B===6)break t;case 20:c.mode=21;case 21:if(6<=j&&258<=K){k.next_out=Q,k.avail_out=K,k.next_in=U,k.avail_in=j,c.hold=A,c.bits=I,l(k,q),Q=k.next_out,J=k.output,K=k.avail_out,U=k.next_in,L=k.input,j=k.avail_in,A=c.hold,I=c.bits,c.mode===12&&(c.back=-1);break}for(c.back=0;rt=(w=c.lencode[A&(1<<c.lenbits)-1])>>>16&255,lt=65535&w,!((tt=w>>>24)<=I);){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}if(rt&&(240&rt)==0){for(st=tt,ht=rt,ft=lt;rt=(w=c.lencode[ft+((A&(1<<st+ht)-1)>>st)])>>>16&255,lt=65535&w,!(st+(tt=w>>>24)<=I);){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}A>>>=st,I-=st,c.back+=st}if(A>>>=tt,I-=tt,c.back+=tt,c.length=lt,rt===0){c.mode=26;break}if(32&rt){c.back=-1,c.mode=12;break}if(64&rt){k.msg="invalid literal/length code",c.mode=30;break}c.extra=15&rt,c.mode=22;case 22:if(c.extra){for(_=c.extra;I<_;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}c.length+=A&(1<<c.extra)-1,A>>>=c.extra,I-=c.extra,c.back+=c.extra}c.was=c.length,c.mode=23;case 23:for(;rt=(w=c.distcode[A&(1<<c.distbits)-1])>>>16&255,lt=65535&w,!((tt=w>>>24)<=I);){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}if((240&rt)==0){for(st=tt,ht=rt,ft=lt;rt=(w=c.distcode[ft+((A&(1<<st+ht)-1)>>st)])>>>16&255,lt=65535&w,!(st+(tt=w>>>24)<=I);){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}A>>>=st,I-=st,c.back+=st}if(A>>>=tt,I-=tt,c.back+=tt,64&rt){k.msg="invalid distance code",c.mode=30;break}c.offset=lt,c.extra=15&rt,c.mode=24;case 24:if(c.extra){for(_=c.extra;I<_;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}c.offset+=A&(1<<c.extra)-1,A>>>=c.extra,I-=c.extra,c.back+=c.extra}if(c.offset>c.dmax){k.msg="invalid distance too far back",c.mode=30;break}c.mode=25;case 25:if(K===0)break t;if(H=q-K,c.offset>H){if((H=c.offset-H)>c.whave&&c.sane){k.msg="invalid distance too far back",c.mode=30;break}at=H>c.wnext?(H-=c.wnext,c.wsize-H):c.wnext-H,H>c.length&&(H=c.length),ct=c.window}else ct=J,at=Q-c.offset,H=c.length;for(K<H&&(H=K),K-=H,c.length-=H;J[Q++]=ct[at++],--H;);c.length===0&&(c.mode=21);break;case 26:if(K===0)break t;J[Q++]=c.length,K--,c.mode=21;break;case 27:if(c.wrap){for(;I<32;){if(j===0)break t;j--,A|=L[U++]<<I,I+=8}if(q-=K,k.total_out+=q,c.total+=q,q&&(k.adler=c.check=c.flags?n(c.check,J,q,Q-q):o(c.check,J,q,Q-q)),q=K,(c.flags?A:h(A))!==c.check){k.msg="incorrect data check",c.mode=30;break}I=A=0}c.mode=28;case 28:if(c.wrap&&c.flags){for(;I<32;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}if(A!==(4294967295&c.total)){k.msg="incorrect length check",c.mode=30;break}I=A=0}c.mode=29;case 29:N=1;break t;case 30:N=-3;break t;case 31:return-4;case 32:default:return u}return k.next_out=Q,k.avail_out=K,k.next_in=U,k.avail_in=j,c.hold=A,c.bits=I,(c.wsize||q!==k.avail_out&&c.mode<30&&(c.mode<27||B!==4))&&Y(k,k.output,k.next_out,q-k.avail_out)?(c.mode=31,-4):(X-=k.avail_in,q-=k.avail_out,k.total_in+=X,k.total_out+=q,c.total+=q,c.wrap&&q&&(k.adler=c.check=c.flags?n(c.check,J,q,k.next_out-q):o(c.check,J,q,k.next_out-q)),k.data_type=c.bits+(c.last?64:0)+(c.mode===12?128:0)+(c.mode===20||c.mode===15?256:0),(X==0&&q===0||B===4)&&N===d&&(N=-5),N)},e.inflateEnd=function(k){if(!k||!k.state)return u;var B=k.state;return B.window&&(B.window=null),k.state=null,d},e.inflateGetHeader=function(k,B){var c;return k&&k.state?(2&(c=k.state).wrap)==0?u:((c.head=B).done=!1,d):u},e.inflateSetDictionary=function(k,B){var c,L=B.length;return k&&k.state?(c=k.state).wrap!==0&&c.mode!==11?u:c.mode===11&&o(1,B,L,0)!==c.check?-3:Y(k,B,L,L)?(c.mode=31,-4):(c.havedict=1,d):u},e.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,i,e){var r=t("../utils/common"),o=[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],n=[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],l=[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],s=[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];i.exports=function(b,m,d,u,p,f,g,h){var y,v,x,S,R,O,F,z,M,Y=h.bits,k=0,B=0,c=0,L=0,J=0,U=0,Q=0,j=0,K=0,A=0,I=null,X=0,q=new r.Buf16(16),H=new r.Buf16(16),at=null,ct=0;for(k=0;k<=15;k++)q[k]=0;for(B=0;B<u;B++)q[m[d+B]]++;for(J=Y,L=15;1<=L&&q[L]===0;L--);if(L<J&&(J=L),L===0)return p[f++]=20971520,p[f++]=20971520,h.bits=1,0;for(c=1;c<L&&q[c]===0;c++);for(J<c&&(J=c),k=j=1;k<=15;k++)if(j<<=1,(j-=q[k])<0)return-1;if(0<j&&(b===0||L!==1))return-1;for(H[1]=0,k=1;k<15;k++)H[k+1]=H[k]+q[k];for(B=0;B<u;B++)m[d+B]!==0&&(g[H[m[d+B]]++]=B);if(O=b===0?(I=at=g,19):b===1?(I=o,X-=257,at=n,ct-=257,256):(I=l,at=s,-1),k=c,R=f,Q=B=A=0,x=-1,S=(K=1<<(U=J))-1,b===1&&852<K||b===2&&592<K)return 1;for(;;){for(F=k-Q,M=g[B]<O?(z=0,g[B]):g[B]>O?(z=at[ct+g[B]],I[X+g[B]]):(z=96,0),y=1<<k-Q,c=v=1<<U;p[R+(A>>Q)+(v-=y)]=F<<24|z<<16|M|0,v!==0;);for(y=1<<k-1;A&y;)y>>=1;if(y!==0?(A&=y-1,A+=y):A=0,B++,--q[k]==0){if(k===L)break;k=m[d+g[B]]}if(J<k&&(A&S)!==x){for(Q===0&&(Q=J),R+=c,j=1<<(U=k-Q);U+Q<L&&!((j-=q[U+Q])<=0);)U++,j<<=1;if(K+=1<<U,b===1&&852<K||b===2&&592<K)return 1;p[x=A&S]=J<<24|U<<16|R-f|0}}return A!==0&&(p[R+A]=k-Q<<24|4194304|0),h.bits=J,0}},{"../utils/common":41}],51:[function(t,i,e){i.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"}},{}],52:[function(t,i,e){var r=t("../utils/common"),o=0,n=1;function l(w){for(var E=w.length;0<=--E;)w[E]=0}var s=0,b=29,m=256,d=m+1+b,u=30,p=19,f=2*d+1,g=15,h=16,y=7,v=256,x=16,S=17,R=18,O=[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],F=[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],z=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Y=Array(2*(d+2));l(Y);var k=Array(2*u);l(k);var B=Array(512);l(B);var c=Array(256);l(c);var L=Array(b);l(L);var J,U,Q,j=Array(u);function K(w,E,D,P,C){this.static_tree=w,this.extra_bits=E,this.extra_base=D,this.elems=P,this.max_length=C,this.has_stree=w&&w.length}function A(w,E){this.dyn_tree=w,this.max_code=0,this.stat_desc=E}function I(w){return w<256?B[w]:B[256+(w>>>7)]}function X(w,E){w.pending_buf[w.pending++]=255&E,w.pending_buf[w.pending++]=E>>>8&255}function q(w,E,D){w.bi_valid>h-D?(w.bi_buf|=E<<w.bi_valid&65535,X(w,w.bi_buf),w.bi_buf=E>>h-w.bi_valid,w.bi_valid+=D-h):(w.bi_buf|=E<<w.bi_valid&65535,w.bi_valid+=D)}function H(w,E,D){q(w,D[2*E],D[2*E+1])}function at(w,E){for(var D=0;D|=1&w,w>>>=1,D<<=1,0<--E;);return D>>>1}function ct(w,E,D){var P,C,W=Array(g+1),G=0;for(P=1;P<=g;P++)W[P]=G=G+D[P-1]<<1;for(C=0;C<=E;C++){var Z=w[2*C+1];Z!==0&&(w[2*C]=at(W[Z]++,Z))}}function tt(w){var E;for(E=0;E<d;E++)w.dyn_ltree[2*E]=0;for(E=0;E<u;E++)w.dyn_dtree[2*E]=0;for(E=0;E<p;E++)w.bl_tree[2*E]=0;w.dyn_ltree[2*v]=1,w.opt_len=w.static_len=0,w.last_lit=w.matches=0}function rt(w){8<w.bi_valid?X(w,w.bi_buf):0<w.bi_valid&&(w.pending_buf[w.pending++]=w.bi_buf),w.bi_buf=0,w.bi_valid=0}function lt(w,E,D,P){var C=2*E,W=2*D;return w[C]<w[W]||w[C]===w[W]&&P[E]<=P[D]}function st(w,E,D){for(var P=w.heap[D],C=D<<1;C<=w.heap_len&&(C<w.heap_len&&lt(E,w.heap[C+1],w.heap[C],w.depth)&&C++,!lt(E,P,w.heap[C],w.depth));)w.heap[D]=w.heap[C],D=C,C<<=1;w.heap[D]=P}function ht(w,E,D){var P,C,W,G,Z=0;if(w.last_lit!==0)for(;P=w.pending_buf[w.d_buf+2*Z]<<8|w.pending_buf[w.d_buf+2*Z+1],C=w.pending_buf[w.l_buf+Z],Z++,P===0?H(w,C,E):(H(w,(W=c[C])+m+1,E),(G=O[W])!==0&&q(w,C-=L[W],G),H(w,W=I(--P),D),(G=F[W])!==0&&q(w,P-=j[W],G)),Z<w.last_lit;);H(w,v,E)}function ft(w,E){var D,P,C,W=E.dyn_tree,G=E.stat_desc.static_tree,Z=E.stat_desc.has_stree,V=E.stat_desc.elems,nt=-1;for(w.heap_len=0,w.heap_max=f,D=0;D<V;D++)W[2*D]!==0?(w.heap[++w.heap_len]=nt=D,w.depth[D]=0):W[2*D+1]=0;for(;w.heap_len<2;)W[2*(C=w.heap[++w.heap_len]=nt<2?++nt:0)]=1,w.depth[C]=0,w.opt_len--,Z&&(w.static_len-=G[2*C+1]);for(E.max_code=nt,D=w.heap_len>>1;1<=D;D--)st(w,W,D);for(C=V;D=w.heap[1],w.heap[1]=w.heap[w.heap_len--],st(w,W,1),P=w.heap[1],w.heap[--w.heap_max]=D,w.heap[--w.heap_max]=P,W[2*C]=W[2*D]+W[2*P],w.depth[C]=(w.depth[D]>=w.depth[P]?w.depth[D]:w.depth[P])+1,W[2*D+1]=W[2*P+1]=C,w.heap[1]=C++,st(w,W,1),2<=w.heap_len;);w.heap[--w.heap_max]=w.heap[1],function(et,ut){var St,dt,Et,ot,Bt,Zt,{dyn_tree:mt,max_code:ne}=ut,Je=ut.stat_desc.static_tree,Qe=ut.stat_desc.has_stree,tr=ut.stat_desc.extra_bits,ie=ut.stat_desc.extra_base,xt=ut.stat_desc.max_length,Nt=0;for(ot=0;ot<=g;ot++)et.bl_count[ot]=0;for(mt[2*et.heap[et.heap_max]+1]=0,St=et.heap_max+1;St<f;St++)xt<(ot=mt[2*mt[2*(dt=et.heap[St])+1]+1]+1)&&(ot=xt,Nt++),mt[2*dt+1]=ot,ne<dt||(et.bl_count[ot]++,Bt=0,ie<=dt&&(Bt=tr[dt-ie]),Zt=mt[2*dt],et.opt_len+=Zt*(ot+Bt),Qe&&(et.static_len+=Zt*(Je[2*dt+1]+Bt)));if(Nt!==0){do{for(ot=xt-1;et.bl_count[ot]===0;)ot--;et.bl_count[ot]--,et.bl_count[ot+1]+=2,et.bl_count[xt]--,Nt-=2}while(0<Nt);for(ot=xt;ot!==0;ot--)for(dt=et.bl_count[ot];dt!==0;)ne<(Et=et.heap[--St])||(mt[2*Et+1]!==ot&&(et.opt_len+=(ot-mt[2*Et+1])*mt[2*Et],mt[2*Et+1]=ot),dt--)}}(w,E),ct(W,nt,w.bl_count)}function a(w,E,D){var P,C,W=-1,G=E[1],Z=0,V=7,nt=4;for(G===0&&(V=138,nt=3),E[2*(D+1)+1]=65535,P=0;P<=D;P++)C=G,G=E[2*(P+1)+1],++Z<V&&C===G||(Z<nt?w.bl_tree[2*C]+=Z:C!==0?(C!==W&&w.bl_tree[2*C]++,w.bl_tree[2*x]++):Z<=10?w.bl_tree[2*S]++:w.bl_tree[2*R]++,W=C,nt=(Z=0)===G?(V=138,3):C===G?(V=6,3):(V=7,4))}function N(w,E,D){var P,C,W=-1,G=E[1],Z=0,V=7,nt=4;for(G===0&&(V=138,nt=3),P=0;P<=D;P++)if(C=G,G=E[2*(P+1)+1],!(++Z<V&&C===G)){if(Z<nt)for(;H(w,C,w.bl_tree),--Z!=0;);else C!==0?(C!==W&&(H(w,C,w.bl_tree),Z--),H(w,x,w.bl_tree),q(w,Z-3,2)):Z<=10?(H(w,S,w.bl_tree),q(w,Z-3,3)):(H(w,R,w.bl_tree),q(w,Z-11,7));W=C,nt=(Z=0)===G?(V=138,3):C===G?(V=6,3):(V=7,4)}}l(j);var T=!1;function _(w,E,D,P){q(w,(s<<1)+(P?1:0),3),function(C,W,G,Z){rt(C),Z&&(X(C,G),X(C,~G)),r.arraySet(C.pending_buf,C.window,W,G,C.pending),C.pending+=G}(w,E,D,!0)}e._tr_init=function(w){T||(function(){var E,D,P,C,W,G=Array(g+1);for(C=P=0;C<b-1;C++)for(L[C]=P,E=0;E<1<<O[C];E++)c[P++]=C;for(c[P-1]=C,C=W=0;C<16;C++)for(j[C]=W,E=0;E<1<<F[C];E++)B[W++]=C;for(W>>=7;C<u;C++)for(j[C]=W<<7,E=0;E<1<<F[C]-7;E++)B[256+W++]=C;for(D=0;D<=g;D++)G[D]=0;for(E=0;E<=143;)Y[2*E+1]=8,E++,G[8]++;for(;E<=255;)Y[2*E+1]=9,E++,G[9]++;for(;E<=279;)Y[2*E+1]=7,E++,G[7]++;for(;E<=287;)Y[2*E+1]=8,E++,G[8]++;for(ct(Y,d+1,G),E=0;E<u;E++)k[2*E+1]=5,k[2*E]=at(E,5);J=new K(Y,O,m+1,d,g),U=new K(k,F,0,u,g),Q=new K([],z,0,p,y)}(),T=!0),w.l_desc=new A(w.dyn_ltree,J),w.d_desc=new A(w.dyn_dtree,U),w.bl_desc=new A(w.bl_tree,Q),w.bi_buf=0,w.bi_valid=0,tt(w)},e._tr_stored_block=_,e._tr_flush_block=function(w,E,D,P){var C,W,G=0;0<w.level?(w.strm.data_type===2&&(w.strm.data_type=function(Z){var V,nt=4093624447;for(V=0;V<=31;V++,nt>>>=1)if(1&nt&&Z.dyn_ltree[2*V]!==0)return o;if(Z.dyn_ltree[18]!==0||Z.dyn_ltree[20]!==0||Z.dyn_ltree[26]!==0)return n;for(V=32;V<m;V++)if(Z.dyn_ltree[2*V]!==0)return n;return o}(w)),ft(w,w.l_desc),ft(w,w.d_desc),G=function(Z){var V;for(a(Z,Z.dyn_ltree,Z.l_desc.max_code),a(Z,Z.dyn_dtree,Z.d_desc.max_code),ft(Z,Z.bl_desc),V=p-1;3<=V&&Z.bl_tree[2*M[V]+1]===0;V--);return Z.opt_len+=3*(V+1)+5+5+4,V}(w),C=w.opt_len+3+7>>>3,(W=w.static_len+3+7>>>3)<=C&&(C=W)):C=W=D+5,D+4<=C&&E!==-1?_(w,E,D,P):w.strategy===4||W===C?(q(w,2+(P?1:0),3),ht(w,Y,k)):(q(w,4+(P?1:0),3),function(Z,V,nt,et){var ut;for(q(Z,V-257,5),q(Z,nt-1,5),q(Z,et-4,4),ut=0;ut<et;ut++)q(Z,Z.bl_tree[2*M[ut]+1],3);N(Z,Z.dyn_ltree,V-1),N(Z,Z.dyn_dtree,nt-1)}(w,w.l_desc.max_code+1,w.d_desc.max_code+1,G+1),ht(w,w.dyn_ltree,w.dyn_dtree)),tt(w),P&&rt(w)},e._tr_tally=function(w,E,D){return w.pending_buf[w.d_buf+2*w.last_lit]=E>>>8&255,w.pending_buf[w.d_buf+2*w.last_lit+1]=255&E,w.pending_buf[w.l_buf+w.last_lit]=255&D,w.last_lit++,E===0?w.dyn_ltree[2*D]++:(w.matches++,E--,w.dyn_ltree[2*(c[D]+m+1)]++,w.dyn_dtree[2*I(E)]++),w.last_lit===w.lit_bufsize-1},e._tr_align=function(w){q(w,2,3),H(w,v,Y),function(E){E.bi_valid===16?(X(E,E.bi_buf),E.bi_buf=0,E.bi_valid=0):8<=E.bi_valid&&(E.pending_buf[E.pending++]=255&E.bi_buf,E.bi_buf>>=8,E.bi_valid-=8)}(w)}},{"../utils/common":41}],53:[function(t,i,e){i.exports=function(){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}},{}],54:[function(t,i,e){(function(r){(function(o,n){if(!o.setImmediate){var l,s,b,m,d=1,u={},p=!1,f=o.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(o);g=g&&g.setTimeout?g:o,l={}.toString.call(o.process)==="[object process]"?function(x){process.nextTick(function(){y(x)})}:function(){if(o.postMessage&&!o.importScripts){var x=!0,S=o.onmessage;return o.onmessage=function(){x=!1},o.postMessage("","*"),o.onmessage=S,x}}()?(m="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",v,!1):o.attachEvent("onmessage",v),function(x){o.postMessage(m+x,"*")}):o.MessageChannel?((b=new MessageChannel).port1.onmessage=function(x){y(x.data)},function(x){b.port2.postMessage(x)}):f&&("onreadystatechange"in f.createElement("script"))?(s=f.documentElement,function(x){var S=f.createElement("script");S.onreadystatechange=function(){y(x),S.onreadystatechange=null,s.removeChild(S),S=null},s.appendChild(S)}):function(x){setTimeout(y,0,x)},g.setImmediate=function(x){typeof x!="function"&&(x=Function(""+x));for(var S=Array(arguments.length-1),R=0;R<S.length;R++)S[R]=arguments[R+1];var O={callback:x,args:S};return u[d]=O,l(d),d++},g.clearImmediate=h}function h(x){delete u[x]}function y(x){if(p)setTimeout(y,0,x);else{var S=u[x];if(S){p=!0;try{(function(R){var{callback:O,args:F}=R;switch(F.length){case 0:O();break;case 1:O(F[0]);break;case 2:O(F[0],F[1]);break;case 3:O(F[0],F[1],F[2]);break;default:O.apply(n,F)}})(S)}finally{h(x),p=!1}}}}function v(x){x.source===o&&typeof x.data=="string"&&x.data.indexOf(m)===0&&y(+x.data.slice(m.length))}})(typeof self>"u"?r===void 0?this:r:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})});var jn={};fr(jn,{capture:()=>ee,copyImageToClipboard:()=>re,downloadImages:()=>Ot});function Lt(t,i){if(!i.has(t))return i.add(t),t;let e=t.lastIndexOf("."),r=e!==-1?t.slice(0,e):t,o=e!==-1?t.slice(e):"",n=r.match(/-(\d+)$/),l=r,s=2;if(n)l=r.slice(0,-n[0].length),s=parseInt(n[1],10)+1;let b=`${l}-${s}${o}`;while(i.has(b))s++,b=`${l}-${s}${o}`;return i.add(b),b}function le(t,i){let e=t.label;if(t.includeScaleInLabel)e+=`_@${t.scale}x`;return e+=`.${t.format}`,Lt(e,i)}function hr(t,i){return t[13]=1,t[14]=i>>8,t[15]=i&255,t[16]=i>>8,t[17]=i&255,t}var me=112,ge=72,be=89,we=115,$t;function dr(){let t=new Int32Array(256);for(let i=0;i<256;i++){let e=i;for(let r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[i]=e}return t}function pr(t){let i=-1;if(!$t)$t=dr();for(let e=0;e<t.length;e++)i=$t[(i^t[e])&255]^i>>>8;return i^-1}function mr(t){let i=t.length-1;for(let e=i;e>=4;e--)if(t[e-4]===9&&t[e-3]===me&&t[e-2]===ge&&t[e-1]===be&&t[e]===we)return e-3;return 0}function gr(t,i,e=!1){let r=new Uint8Array(13);i*=39.3701,r[0]=me,r[1]=ge,r[2]=be,r[3]=we,r[4]=i>>>24,r[5]=i>>>16,r[6]=i>>>8,r[7]=i&255,r[8]=r[4],r[9]=r[5],r[10]=r[6],r[11]=r[7],r[12]=1;let o=pr(r),n=new Uint8Array(4);if(n[0]=o>>>24,n[1]=o>>>16,n[2]=o>>>8,n[3]=o&255,e){let l=mr(t);return t.set(r,l),t.set(n,l+13),t}else{let l=new Uint8Array(4);l[0]=0,l[1]=0,l[2]=0,l[3]=9;let s=new Uint8Array(54);return s.set(t,0),s.set(l,33),s.set(r,37),s.set(n,50),s}}var br="AAlwSFlz",wr="AAAJcEhZ",yr="AAAACXBI";function _r(t){let i=t.indexOf(br);if(i===-1)i=t.indexOf(wr);if(i===-1)i=t.indexOf(yr);return i}var ye="[modern-screenshot]",gt=typeof window<"u",vr=gt&&"Worker"in window,kr=gt&&"atob"in window,Sr=gt&&"btoa"in window,Vt=gt?window.navigator?.userAgent:"",_e=Vt.includes("Chrome"),Dt=Vt.includes("AppleWebKit")&&!_e,Xt=Vt.includes("Firefox"),Er=(t)=>t&&("__CONTEXT__"in t),xr=(t)=>t.constructor.name==="CSSFontFaceRule",Cr=(t)=>t.constructor.name==="CSSImportRule",Ir=(t)=>t.constructor.name==="CSSLayerBlockRule",pt=(t)=>t.nodeType===1,zt=(t)=>typeof t.className==="object",ve=(t)=>t.tagName==="image",Ar=(t)=>t.tagName==="use",It=(t)=>pt(t)&&typeof t.style<"u"&&!zt(t),Tr=(t)=>t.nodeType===8,zr=(t)=>t.nodeType===3,vt=(t)=>t.tagName==="IMG",Ft=(t)=>t.tagName==="VIDEO",Or=(t)=>t.tagName==="CANVAS",Rr=(t)=>t.tagName==="TEXTAREA",Br=(t)=>t.tagName==="INPUT",Nr=(t)=>t.tagName==="STYLE",Lr=(t)=>t.tagName==="SCRIPT",Dr=(t)=>t.tagName==="SELECT",Fr=(t)=>t.tagName==="SLOT",Pr=(t)=>t.tagName==="IFRAME",Ur=(...t)=>console.warn(ye,...t);function jr(t){let i=t?.createElement?.("canvas");if(i)i.height=i.width=1;return Boolean(i)&&"toDataURL"in i&&Boolean(i.toDataURL("image/webp").includes("image/webp"))}var qt=(t)=>t.startsWith("data:");function ke(t,i){if(t.match(/^[a-z]+:\/\//i))return t;if(gt&&t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;if(!gt)return t;let e=Pt().implementation.createHTMLDocument(),r=e.createElement("base"),o=e.createElement("a");if(e.head.appendChild(r),e.body.appendChild(o),i)r.href=i;return o.href=t,o.href}function Pt(t){return(t&&pt(t)?t?.ownerDocument:t)??window.document}var Ut="http://www.w3.org/2000/svg";function Se(t,i,e){let r=Pt(e).createElementNS(Ut,"svg");return r.setAttributeNS(null,"width",t.toString()),r.setAttributeNS(null,"height",i.toString()),r.setAttributeNS(null,"viewBox",`0 0 ${t} ${i}`),r}function Ee(t,i){let e=new XMLSerializer().serializeToString(t);if(i)e=e.replace(/[\u0000-\u0008\v\f\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]/gu,"");return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`}function Mr(t,i){return new Promise((e,r)=>{let o=new FileReader;if(o.onload=()=>e(o.result),o.onerror=()=>r(o.error),o.onabort=()=>r(Error(`Failed read blob to ${i}`)),i==="dataUrl")o.readAsDataURL(t);else if(i==="arrayBuffer")o.readAsArrayBuffer(t)})}var Wr=(t)=>Mr(t,"dataUrl");function _t(t,i){let e=Pt(i).createElement("img");return e.decoding="sync",e.loading="eager",e.src=t,e}function At(t,i){return new Promise((e)=>{let{timeout:r,ownerDocument:o,onError:n,onWarn:l}=i??{},s=typeof t==="string"?_t(t,Pt(o)):t,b=null,m=null;function d(){e(s),b&&clearTimeout(b),m?.()}if(r)b=setTimeout(d,r);if(Ft(s)){let u=s.currentSrc||s.src;if(!u){if(s.poster)return At(s.poster,i).then(e);return d()}if(s.readyState>=2)return d();let p=d,f=(g)=>{l?.("Failed video load",u,g),n?.(g),d()};m=()=>{s.removeEventListener("loadeddata",p),s.removeEventListener("error",f)},s.addEventListener("loadeddata",p,{once:!0}),s.addEventListener("error",f,{once:!0})}else{let u=ve(s)?s.href.baseVal:s.currentSrc||s.src;if(!u)return d();let p=async()=>{if(vt(s)&&"decode"in s)try{await s.decode()}catch(g){l?.("Failed to decode image, trying to render anyway",s.dataset.originalSrc||u,g)}d()},f=(g)=>{l?.("Failed image load",s.dataset.originalSrc||u,g),d()};if(vt(s)&&s.complete)return p();m=()=>{s.removeEventListener("load",p),s.removeEventListener("error",f)},s.addEventListener("load",p,{once:!0}),s.addEventListener("error",f,{once:!0})}})}async function Zr(t,i){if(It(t))if(vt(t)||Ft(t))await At(t,i);else await Promise.all(["img","video"].flatMap((e)=>Array.from(t.querySelectorAll(e)).map((r)=>At(r,i))))}var xe=function(){let i=0,e=()=>`0000${(Math.random()*1679616<<0).toString(36)}`.slice(-4);return()=>(i+=1,`u${e()}${i}`)}();function Ce(t){return t?.split(",").map((i)=>i.trim().replace(/"|'/g,"").toLowerCase()).filter(Boolean)}var ce=0;function Hr(t){let i=`${ye}[#${ce}]`;return ce++,{time:(e)=>t&&console.time(`${i} ${e}`),timeEnd:(e)=>t&&console.timeEnd(`${i} ${e}`),warn:(...e)=>t&&Ur(...e)}}function $r(t){return{cache:t?"no-cache":"force-cache"}}async function bt(t,i){return Er(t)?t:qr(t,{...i,autoDestruct:!0})}async function qr(t,i){let{scale:e=1,workerUrl:r,workerNumber:o=1}=i||{},n=Boolean(i?.debug),l=i?.features??!0,s=t.ownerDocument??(gt?window.document:void 0),b=t.ownerDocument?.defaultView??(gt?window:void 0),m=new Map,d={width:0,height:0,quality:1,type:"image/png",scale:e,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:30000,progress:null,debug:n,fetch:{requestInit:$r(i?.fetch?.bypassingCache),placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1,...i?.fetch},fetchFn:null,font:{},drawImageInterval:100,workerUrl:null,workerNumber:o,onCloneEachNode:null,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,includeStyleProperties:null,autoDestruct:!1,...i,__CONTEXT__:!0,log:Hr(n),node:t,ownerDocument:s,ownerWindow:b,dpi:e===1?null:96*e,svgStyleElement:Ie(s),svgDefsElement:s?.createElementNS(Ut,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...Array.from({length:vr&&r&&o?o:0})].map(()=>{try{let f=new Worker(r);return f.onmessage=async(g)=>{let{url:h,result:y}=g.data;if(y)m.get(h)?.resolve?.(y);else m.get(h)?.reject?.(Error(`Error receiving message from worker: ${h}`))},f.onmessageerror=(g)=>{let{url:h}=g.data;m.get(h)?.reject?.(Error(`Error receiving message from worker: ${h}`))},f}catch(f){return d.log.warn("Failed to new Worker",f),null}}).filter(Boolean),fontFamilies:new Map,fontCssTexts:new Map,acceptOfImage:`${[jr(s)&&"image/webp","image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:m,drawImageCount:0,tasks:[],features:l,isEnable:(f)=>{if(f==="restoreScrollPosition")return typeof l==="boolean"?!1:l[f]??!1;if(typeof l==="boolean")return l;return l[f]??!0},shadowRoots:[]};d.log.time("wait until load"),await Zr(t,{timeout:d.timeout,onWarn:d.log.warn}),d.log.timeEnd("wait until load");let{width:u,height:p}=Gr(t,d);return d.width=u,d.height=p,d}function Ie(t){if(!t)return;let i=t.createElement("style"),e=i.ownerDocument.createTextNode(`
4
13
  .______background-clip--text {
5
14
  background-clip: text;
6
15
  -webkit-background-clip: text;
7
16
  }
8
- `);return J.appendChild($),J}function MK(Q,J){let{width:$,height:X}=J;if(K2(Q)&&(!$||!X)){let K=Q.getBoundingClientRect();$=$||K.width||Number(Q.getAttribute("width"))||0,X=X||K.height||Number(Q.getAttribute("height"))||0}return{width:$,height:X}}async function LK(Q,J){let{log:$,timeout:X,drawImageCount:K,drawImageInterval:Y}=J;$.time("image to canvas");let V=await p1(Q,{timeout:X,onWarn:J.log.warn}),{canvas:q,context2d:U}=FK(Q.ownerDocument,J),G=()=>{try{U?.drawImage(V,0,0,q.width,q.height)}catch(B){J.log.warn("Failed to drawImage",B)}};if(G(),J.isEnable("fixSvgXmlDecode"))for(let B=0;B<K;B++)await new Promise((j)=>{setTimeout(()=>{U?.clearRect(0,0,q.width,q.height),G(),j()},B+Y)});return J.drawImageCount=0,$.timeEnd("image to canvas"),q}function FK(Q,J){let{width:$,height:X,scale:K,backgroundColor:Y,maximumCanvasSize:V}=J,q=Q.createElement("canvas");if(q.width=Math.floor($*K),q.height=Math.floor(X*K),q.style.width=`${$}px`,q.style.height=`${X}px`,V){if(q.width>V||q.height>V)if(q.width>V&&q.height>V)if(q.width>q.height)q.height*=V/q.width,q.width=V;else q.width*=V/q.height,q.height=V;else if(q.width>V)q.height*=V/q.width,q.width=V;else q.width*=V/q.height,q.height=V}let U=q.getContext("2d");if(U&&Y)U.fillStyle=Y,U.fillRect(0,0,q.width,q.height);return{canvas:q,context2d:U}}function r4(Q,J){if(Q.ownerDocument)try{let Y=Q.toDataURL();if(Y!=="data:,")return Z1(Y,Q.ownerDocument)}catch(Y){J.log.warn("Failed to clone canvas",Y)}let $=Q.cloneNode(!1),X=Q.getContext("2d"),K=$.getContext("2d");try{if(X&&K)K.putImageData(X.getImageData(0,0,Q.width,Q.height),0,0);return $}catch(Y){J.log.warn("Failed to clone canvas",Y)}return $}function wK(Q,J){try{if(Q?.contentDocument?.body)return x8(Q.contentDocument.body,J)}catch($){J.log.warn("Failed to clone iframe",$)}return Q.cloneNode(!1)}function IK(Q){let J=Q.cloneNode(!1);if(Q.currentSrc&&Q.currentSrc!==Q.src)J.src=Q.currentSrc,J.srcset="";if(J.loading==="lazy")J.loading="eager";return J}async function NK(Q,J){if(Q.ownerDocument&&!Q.currentSrc&&Q.poster)return Z1(Q.poster,Q.ownerDocument);let $=Q.cloneNode(!1);if($.crossOrigin="anonymous",Q.currentSrc&&Q.currentSrc!==Q.src)$.src=Q.currentSrc;let X=$.ownerDocument;if(X){let K=!0;if(await p1($,{onError:()=>K=!1,onWarn:J.log.warn}),!K){if(Q.poster)return Z1(Q.poster,Q.ownerDocument);return $}$.currentTime=Q.currentTime,await new Promise((V)=>{$.addEventListener("seeked",V,{once:!0})});let Y=X.createElement("canvas");Y.width=Q.offsetWidth,Y.height=Q.offsetHeight;try{let V=Y.getContext("2d");if(V)V.drawImage($,0,0,Y.width,Y.height)}catch(V){if(J.log.warn("Failed to clone video",V),Q.poster)return Z1(Q.poster,Q.ownerDocument);return $}return r4(Y,J)}return $}function OK(Q,J){if(JK(Q))return r4(Q,J);if(BK(Q))return wK(Q,J);if(W1(Q))return IK(Q);if(A6(Q))return NK(Q,J);return Q.cloneNode(!1)}function CK(Q){let J=Q.sandbox;if(!J){let{ownerDocument:$}=Q;try{if($)J=$.createElement("iframe"),J.id=`__SANDBOX__${l4()}`,J.width="0",J.height="0",J.style.visibility="hidden",J.style.position="fixed",$.body.appendChild(J),J.srcdoc='<!DOCTYPE html><meta charset="UTF-8"><title></title><body>',Q.sandbox=J}catch(X){Q.log.warn("Failed to getSandBox",X)}}return J}var DK=["width","height","-webkit-text-fill-color"],AK=["stroke","fill"];function o4(Q,J,$){let{defaultComputedStyles:X}=$,K=Q.nodeName.toLowerCase(),Y=m1(Q)&&K!=="svg",V=Y?AK.map((A)=>[A,Q.getAttribute(A)]).filter(([,A])=>A!==null):[],q=[Y&&"svg",K,V.map((A,w)=>`${A}=${w}`).join(","),J].filter(Boolean).join(":");if(X.has(q))return X.get(q);let G=CK($)?.contentWindow;if(!G)return new Map;let B=G?.document,j,W;if(Y)j=B.createElementNS(T6,"svg"),W=j.ownerDocument.createElementNS(j.namespaceURI,K),V.forEach(([A,w])=>{W.setAttributeNS(null,A,w)}),j.appendChild(W);else j=W=B.createElement(K);W.textContent=" ",B.body.appendChild(j);let H=G.getComputedStyle(W,J),S=new Map;for(let A=H.length,w=0;w<A;w++){let F=H.item(w);if(DK.includes(F))continue;S.set(F,H.getPropertyValue(F))}return B.body.removeChild(j),X.set(q,S),S}function a4(Q,J,$){let X=new Map,K=[],Y=new Map;if($)for(let q of $)V(q);else for(let q=Q.length,U=0;U<q;U++){let G=Q.item(U);V(G)}for(let q=K.length,U=0;U<q;U++)Y.get(K[U])?.forEach((G,B)=>X.set(B,G));function V(q){let U=Q.getPropertyValue(q),G=Q.getPropertyPriority(q),B=q.lastIndexOf("-"),j=B>-1?q.substring(0,B):void 0;if(j){let W=Y.get(j);if(!W)W=new Map,Y.set(j,W);W.set(q,[U,G])}if(J.get(q)===U&&!G)return;if(j)K.push(j);else X.set(q,[U,G])}return X}function RK(Q,J,$,X){let{ownerWindow:K,includeStyleProperties:Y,currentParentNodeStyle:V}=X,q=J.style,U=K.getComputedStyle(Q),G=o4(Q,null,X);V?.forEach((j,W)=>{G.delete(W)});let B=a4(U,G,Y);if(B.delete("transition-property"),B.delete("all"),B.delete("d"),B.delete("content"),$)B.delete("margin-top"),B.delete("margin-right"),B.delete("margin-bottom"),B.delete("margin-left"),B.delete("margin-block-start"),B.delete("margin-block-end"),B.delete("margin-inline-start"),B.delete("margin-inline-end"),B.set("box-sizing",["border-box",""]);if(B.get("background-clip")?.[0]==="text")J.classList.add("______background-clip--text");if(u4){if(!B.has("font-kerning"))B.set("font-kerning",["normal",""]);if((B.get("overflow-x")?.[0]==="hidden"||B.get("overflow-y")?.[0]==="hidden")&&B.get("text-overflow")?.[0]==="ellipsis"&&Q.scrollWidth===Q.clientWidth)B.set("text-overflow",["clip",""])}for(let j=q.length,W=0;W<j;W++)q.removeProperty(q.item(W));return B.forEach(([j,W],H)=>{q.setProperty(H,j,W)}),B}function TK(Q,J){if($K(Q)||XK(Q)||VK(Q))J.setAttribute("value",Q.value)}var kK=["::before","::after"],EK=["::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::-webkit-scrollbar-corner","::-webkit-resizer"];function SK(Q,J,$,X,K){let{ownerWindow:Y,svgStyleElement:V,svgStyles:q,currentNodeStyle:U}=X;if(!V||!Y)return;function G(B){let j=Y.getComputedStyle(Q,B),W=j.getPropertyValue("content");if(!W||W==="none")return;K?.(W),W=W.replace(/(')|(")|(counter\(.+\))/g,"");let H=[l4()],S=o4(Q,B,X);U?.forEach((P,L)=>{S.delete(L)});let A=a4(j,S,X.includeStyleProperties);if(A.delete("content"),A.delete("-webkit-locale"),A.get("background-clip")?.[0]==="text")J.classList.add("______background-clip--text");let w=[`content: '${W}';`];if(A.forEach(([P,L],N)=>{w.push(`${N}: ${P}${L?" !important":""};`)}),w.length===1)return;try{J.className=[J.className,...H].join(" ")}catch(P){X.log.warn("Failed to copyPseudoClass",P);return}let F=w.join(`
9
- `),z=q.get(F);if(!z)z=[],q.set(F,z);z.push(`.${H[0]}${B}`)}if(kK.forEach(G),$)EK.forEach(G)}var E4=new Set(["symbol"]);async function S4(Q,J,$,X,K){if(K2($)&&(KK($)||YK($)))return;if(X.filter&&!X.filter($))return;if(E4.has(J.nodeName)||E4.has($.nodeName))X.currentParentNodeStyle=void 0;else X.currentParentNodeStyle=X.currentNodeStyle;let Y=await x8($,X,!1,K);if(X.isEnable("restoreScrollPosition"))vK(Q,Y);J.appendChild(Y)}async function v4(Q,J,$,X){let K=Q.firstChild;if(K2(Q)){if(Q.shadowRoot)K=Q.shadowRoot?.firstChild,$.shadowRoots.push(Q.shadowRoot)}for(let Y=K;Y;Y=Y.nextSibling){if(eX(Y))continue;if(K2(Y)&&qK(Y)&&typeof Y.assignedNodes==="function"){let V=Y.assignedNodes();for(let q=0;q<V.length;q++)await S4(Q,J,V[q],$,X)}else await S4(Q,J,Y,$,X)}}function vK(Q,J){if(!u1(Q)||!u1(J))return;let{scrollTop:$,scrollLeft:X}=Q;if(!$&&!X)return;let{transform:K}=J.style,Y=new DOMMatrix(K),{a:V,b:q,c:U,d:G}=Y;Y.a=1,Y.b=0,Y.c=0,Y.d=1,Y.translateSelf(-X,-$),Y.a=V,Y.b=q,Y.c=U,Y.d=G,J.style.transform=Y.toString()}function xK(Q,J){let{backgroundColor:$,width:X,height:K,style:Y}=J,V=Q.style;if($)V.setProperty("background-color",$,"important");if(X)V.setProperty("width",`${X}px`,"important");if(K)V.setProperty("height",`${K}px`,"important");if(Y)for(let q in Y)V[q]=Y[q]}var gK=/^[\w-:]+$/;async function x8(Q,J,$=!1,X){let{ownerDocument:K,ownerWindow:Y,fontFamilies:V,onCloneEachNode:q}=J;if(K&&QK(Q)){if(X&&/\S/.test(Q.data))X(Q.data);return K.createTextNode(Q.data)}if(K&&Y&&K2(Q)&&(u1(Q)||m1(Q))){let G=await OK(Q,J);if(J.isEnable("removeAbnormalAttributes")){let A=G.getAttributeNames();for(let w=A.length,F=0;F<w;F++){let z=A[F];if(!gK.test(z))G.removeAttribute(z)}}let B=J.currentNodeStyle=RK(Q,G,$,J);if($)xK(G,J);let j=!1;if(J.isEnable("copyScrollbar")){let A=[B.get("overflow-x")?.[0],B.get("overflow-y")?.[0]];j=A.includes("scroll")||(A.includes("auto")||A.includes("overlay"))&&(Q.scrollHeight>Q.clientHeight||Q.scrollWidth>Q.clientWidth)}let W=B.get("text-transform")?.[0],H=i4(B.get("font-family")?.[0]),S=H?(A)=>{if(W==="uppercase")A=A.toUpperCase();else if(W==="lowercase")A=A.toLowerCase();else if(W==="capitalize")A=A[0].toUpperCase()+A.substring(1);H.forEach((w)=>{let F=V.get(w);if(!F)V.set(w,F=new Set);A.split("").forEach((z)=>F.add(z))})}:void 0;if(SK(Q,G,j,J,S),TK(Q,G),!A6(Q))await v4(Q,G,J,S);return await q?.(G),G}let U=Q.cloneNode(!1);return await v4(Q,U,J),await q?.(U),U}function yK(Q){if(Q.ownerDocument=void 0,Q.ownerWindow=void 0,Q.svgStyleElement=void 0,Q.svgDefsElement=void 0,Q.svgStyles.clear(),Q.defaultComputedStyles.clear(),Q.sandbox){try{Q.sandbox.remove()}catch(J){Q.log.warn("Failed to destroyContext",J)}Q.sandbox=void 0}Q.workers=[],Q.fontFamilies.clear(),Q.fontCssTexts.clear(),Q.requests.clear(),Q.tasks=[],Q.shadowRoots=[]}function hK(Q){let{url:J,timeout:$,responseType:X,...K}=Q,Y=new AbortController,V=$?setTimeout(()=>Y.abort(),$):void 0;return fetch(J,{signal:Y.signal,...K}).then((q)=>{if(!q.ok)throw Error("Failed fetch, not 2xx response",{cause:q});switch(X){case"arrayBuffer":return q.arrayBuffer();case"dataUrl":return q.blob().then(ZK);case"text":default:return q.text()}}).finally(()=>clearTimeout(V))}function c1(Q,J){let{url:$,requestType:X="text",responseType:K="text",imageDom:Y}=J,V=$,{timeout:q,acceptOfImage:U,requests:G,fetchFn:B,fetch:{requestInit:j,bypassingCache:W,placeholderImage:H},font:S,workers:A,fontFamilies:w}=Q;if(X==="image"&&(D6||v8))Q.drawImageCount++;let F=G.get($);if(!F){if(W){if(W instanceof RegExp&&W.test(V))V+=(/\?/.test(V)?"&":"?")+new Date().getTime()}let z=X.startsWith("font")&&S&&S.minify,P=new Set;if(z)X.split(";")[1].split(",").forEach((d)=>{if(!w.has(d))return;w.get(d).forEach((i)=>P.add(i))});let L=z&&P.size,N={url:V,timeout:q,responseType:L?"arrayBuffer":K,headers:X==="image"?{accept:U}:void 0,...j};F={type:X,resolve:void 0,reject:void 0,response:null},F.response=(async()=>{if(B&&X==="image"){let x=await B($);if(x)return x}if(!D6&&$.startsWith("http")&&A.length)return new Promise((x,d)=>{A[G.size&A.length-1].postMessage({rawUrl:$,...N}),F.resolve=x,F.reject=d});return hK(N)})().catch((x)=>{if(G.delete($),X==="image"&&H)return Q.log.warn("Failed to fetch image base64, trying to use placeholder image",V),typeof H==="string"?H:H(Y);throw x}),G.set($,F)}return F.response}async function s4(Q,J,$,X){if(!t4(Q))return Q;for(let[K,Y]of fK(Q,J))try{let V=await c1($,{url:Y,requestType:X?"image":"text",responseType:"dataUrl"});Q=Q.replace(_K(K),`$1${V}$3`)}catch(V){$.log.warn("Failed to fetch css data url",K,V)}return Q}function t4(Q){return/url\((['"]?)([^'"]+?)\1\)/.test(Q)}var e4=/url\((['"]?)([^'"]+?)\1\)/g;function fK(Q,J){let $=[];return Q.replace(e4,(X,K,Y)=>{return $.push([Y,c4(Y,J)]),X}),$.filter(([X])=>!k8(X))}function _K(Q){let J=Q.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${J})(['"]?\\))`,"g")}var bK=["background-image","border-image-source","-webkit-border-image","-webkit-mask-image","list-style-image"];function uK(Q,J){return bK.map(($)=>{let X=Q.getPropertyValue($);if(!X||X==="none")return null;if(D6||v8)J.drawImageCount++;return s4(X,null,J,!0).then((K)=>{if(!K||X===K)return;Q.setProperty($,K,Q.getPropertyPriority($))})}).filter(Boolean)}function pK(Q,J){if(W1(Q)){let $=Q.currentSrc||Q.src;if(!k8($))return[c1(J,{url:$,imageDom:Q,requestType:"image",responseType:"dataUrl"}).then((X)=>{if(!X)return;Q.srcset="",Q.dataset.originalSrc=$,Q.src=X||""})];if(D6||v8)J.drawImageCount++}else if(m1(Q)&&!k8(Q.href.baseVal)){let $=Q.href.baseVal;return[c1(J,{url:$,imageDom:Q,requestType:"image",responseType:"dataUrl"}).then((X)=>{if(!X)return;Q.dataset.originalSrc=$,Q.href.baseVal=X||""})]}return[]}function cK(Q,J){let{ownerDocument:$,svgDefsElement:X}=J,K=Q.getAttribute("href")??Q.getAttribute("xlink:href");if(!K)return[];let[Y,V]=K.split("#");if(V){let q=`#${V}`,U=J.shadowRoots.reduce((G,B)=>{return G??B.querySelector(`svg ${q}`)},$?.querySelector(`svg ${q}`));if(Y)Q.setAttribute("href",q);if(X?.querySelector(q))return[];if(U)return X?.appendChild(U.cloneNode(!0)),[];else if(Y)return[c1(J,{url:Y,responseType:"text"}).then((G)=>{X?.insertAdjacentHTML("beforeend",G)})]}return[]}function Q7(Q,J){let{tasks:$}=J;if(K2(Q)){if(W1(Q)||p4(Q))$.push(...pK(Q,J));if(tX(Q))$.push(...cK(Q,J))}if(u1(Q))$.push(...uK(Q.style,J));Q.childNodes.forEach((X)=>{Q7(X,J)})}async function mK(Q,J){let{ownerDocument:$,svgStyleElement:X,fontFamilies:K,fontCssTexts:Y,tasks:V,font:q}=J;if(!$||!X||!K.size)return;if(q&&q.cssText){let U=g4(q.cssText,J);X.appendChild($.createTextNode(`${U}
10
- `))}else{let U=Array.from($.styleSheets).filter((B)=>{try{return"cssRules"in B&&Boolean(B.cssRules.length)}catch(j){return J.log.warn(`Error while reading CSS rules from ${B.href}`,j),!1}});await Promise.all(U.flatMap((B)=>{return Array.from(B.cssRules).map(async(j,W)=>{if(aX(j)){let H=W+1,S=j.href,A="";try{A=await c1(J,{url:S,requestType:"text",responseType:"text"})}catch(F){J.log.warn(`Error fetch remote css import from ${S}`,F)}let w=A.replace(e4,(F,z,P)=>F.replace(P,c4(P,S)));for(let F of lK(w))try{B.insertRule(F,F.startsWith("@import")?H+=1:B.cssRules.length)}catch(z){J.log.warn("Error inserting rule from remote css import",{rule:F,error:z})}}})}));let G=[];U.forEach((B)=>{E8(B.cssRules,G)}),G.filter((B)=>oX(B)&&t4(B.style.getPropertyValue("src"))&&i4(B.style.getPropertyValue("font-family"))?.some((j)=>K.has(j))).forEach((B)=>{let j=B,W=Y.get(j.cssText);if(W)X.appendChild($.createTextNode(`${W}
11
- `));else V.push(s4(j.cssText,j.parentStyleSheet?j.parentStyleSheet.href:null,J).then((H)=>{H=g4(H,J),Y.set(j.cssText,H),X.appendChild($.createTextNode(`${H}
12
- `))}))})}}var dK=/(\/\*[\s\S]*?\*\/)/g,x4=/((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi;function lK(Q){if(Q==null)return[];let J=[],$=Q.replace(dK,"");while(!0){let Y=x4.exec($);if(!Y)break;J.push(Y[0])}$=$.replace(x4,"");let X=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,K=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");while(!0){let Y=X.exec($);if(!Y)if(Y=K.exec($),!Y)break;else X.lastIndex=K.lastIndex;else K.lastIndex=X.lastIndex;J.push(Y[0])}return J}var iK=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,nK=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function g4(Q,J){let{font:$}=J,X=$?$?.preferredFormat:void 0;return X?Q.replace(nK,(K)=>{while(!0){let[Y,,V]=iK.exec(K)||[];if(!V)return"";if(V===X)return`src: ${Y};`}}):Q}function E8(Q,J=[]){for(let $ of Array.from(Q))if(sX($))J.push(...E8($.cssRules));else if("cssRules"in $)E8($.cssRules,J);else J.push($);return J}async function rK(Q,J){let $=await d2(Q,J);if(K2($.node)&&m1($.node))return $.node;let{ownerDocument:X,log:K,tasks:Y,svgStyleElement:V,svgDefsElement:q,svgStyles:U,font:G,progress:B,autoDestruct:j,onCloneNode:W,onEmbedNode:H,onCreateForeignObjectSvg:S}=$;K.time("clone node");let A=await x8($.node,$,!0);if(V&&X){let L="";U.forEach((N,x)=>{L+=`${N.join(`,
17
+ `);return i.appendChild(e),i}function Gr(t,i){let{width:e,height:r}=i;if(pt(t)&&(!e||!r)){let o=t.getBoundingClientRect();e=e||o.width||Number(t.getAttribute("width"))||0,r=r||o.height||Number(t.getAttribute("height"))||0}return{width:e,height:r}}async function Vr(t,i){let{log:e,timeout:r,drawImageCount:o,drawImageInterval:n}=i;e.time("image to canvas");let l=await At(t,{timeout:r,onWarn:i.log.warn}),{canvas:s,context2d:b}=Xr(t.ownerDocument,i),m=()=>{try{b?.drawImage(l,0,0,s.width,s.height)}catch(d){i.log.warn("Failed to drawImage",d)}};if(m(),i.isEnable("fixSvgXmlDecode"))for(let d=0;d<o;d++)await new Promise((u)=>{setTimeout(()=>{b?.clearRect(0,0,s.width,s.height),m(),u()},d+n)});return i.drawImageCount=0,e.timeEnd("image to canvas"),s}function Xr(t,i){let{width:e,height:r,scale:o,backgroundColor:n,maximumCanvasSize:l}=i,s=t.createElement("canvas");if(s.width=Math.floor(e*o),s.height=Math.floor(r*o),s.style.width=`${e}px`,s.style.height=`${r}px`,l){if(s.width>l||s.height>l)if(s.width>l&&s.height>l)if(s.width>s.height)s.height*=l/s.width,s.width=l;else s.width*=l/s.height,s.height=l;else if(s.width>l)s.height*=l/s.width,s.width=l;else s.width*=l/s.height,s.height=l}let b=s.getContext("2d");if(b&&n)b.fillStyle=n,b.fillRect(0,0,s.width,s.height);return{canvas:s,context2d:b}}function Ae(t,i){if(t.ownerDocument)try{let n=t.toDataURL();if(n!=="data:,")return _t(n,t.ownerDocument)}catch(n){i.log.warn("Failed to clone canvas",n)}let e=t.cloneNode(!1),r=t.getContext("2d"),o=e.getContext("2d");try{if(r&&o)o.putImageData(r.getImageData(0,0,t.width,t.height),0,0);return e}catch(n){i.log.warn("Failed to clone canvas",n)}return e}function Yr(t,i){try{if(t?.contentDocument?.body)return Yt(t.contentDocument.body,i)}catch(e){i.log.warn("Failed to clone iframe",e)}return t.cloneNode(!1)}function Kr(t){let i=t.cloneNode(!1);if(t.currentSrc&&t.currentSrc!==t.src)i.src=t.currentSrc,i.srcset="";if(i.loading==="lazy")i.loading="eager";return i}async function Jr(t,i){if(t.ownerDocument&&!t.currentSrc&&t.poster)return _t(t.poster,t.ownerDocument);let e=t.cloneNode(!1);if(e.crossOrigin="anonymous",t.currentSrc&&t.currentSrc!==t.src)e.src=t.currentSrc;let r=e.ownerDocument;if(r){let o=!0;if(await At(e,{onError:()=>o=!1,onWarn:i.log.warn}),!o){if(t.poster)return _t(t.poster,t.ownerDocument);return e}e.currentTime=t.currentTime,await new Promise((l)=>{e.addEventListener("seeked",l,{once:!0})});let n=r.createElement("canvas");n.width=t.offsetWidth,n.height=t.offsetHeight;try{let l=n.getContext("2d");if(l)l.drawImage(e,0,0,n.width,n.height)}catch(l){if(i.log.warn("Failed to clone video",l),t.poster)return _t(t.poster,t.ownerDocument);return e}return Ae(n,i)}return e}function Qr(t,i){if(Or(t))return Ae(t,i);if(Pr(t))return Yr(t,i);if(vt(t))return Kr(t);if(Ft(t))return Jr(t,i);return t.cloneNode(!1)}function tn(t){let i=t.sandbox;if(!i){let{ownerDocument:e}=t;try{if(e)i=e.createElement("iframe"),i.id=`__SANDBOX__${xe()}`,i.width="0",i.height="0",i.style.visibility="hidden",i.style.position="fixed",e.body.appendChild(i),i.srcdoc='<!DOCTYPE html><meta charset="UTF-8"><title></title><body>',t.sandbox=i}catch(r){t.log.warn("Failed to getSandBox",r)}}return i}var en=["width","height","-webkit-text-fill-color"],rn=["stroke","fill"];function Te(t,i,e){let{defaultComputedStyles:r}=e,o=t.nodeName.toLowerCase(),n=zt(t)&&o!=="svg",l=n?rn.map((h)=>[h,t.getAttribute(h)]).filter(([,h])=>h!==null):[],s=[n&&"svg",o,l.map((h,y)=>`${h}=${y}`).join(","),i].filter(Boolean).join(":");if(r.has(s))return r.get(s);let m=tn(e)?.contentWindow;if(!m)return new Map;let d=m?.document,u,p;if(n)u=d.createElementNS(Ut,"svg"),p=u.ownerDocument.createElementNS(u.namespaceURI,o),l.forEach(([h,y])=>{p.setAttributeNS(null,h,y)}),u.appendChild(p);else u=p=d.createElement(o);p.textContent=" ",d.body.appendChild(u);let f=m.getComputedStyle(p,i),g=new Map;for(let h=f.length,y=0;y<h;y++){let v=f.item(y);if(en.includes(v))continue;g.set(v,f.getPropertyValue(v))}return d.body.removeChild(u),r.set(s,g),g}function ze(t,i,e){let r=new Map,o=[],n=new Map;if(e)for(let s of e)l(s);else for(let s=t.length,b=0;b<s;b++){let m=t.item(b);l(m)}for(let s=o.length,b=0;b<s;b++)n.get(o[b])?.forEach((m,d)=>r.set(d,m));function l(s){let b=t.getPropertyValue(s),m=t.getPropertyPriority(s),d=s.lastIndexOf("-"),u=d>-1?s.substring(0,d):void 0;if(u){let p=n.get(u);if(!p)p=new Map,n.set(u,p);p.set(s,[b,m])}if(i.get(s)===b&&!m)return;if(u)o.push(u);else r.set(s,[b,m])}return r}function nn(t,i,e,r){let{ownerWindow:o,includeStyleProperties:n,currentParentNodeStyle:l}=r,s=i.style,b=o.getComputedStyle(t),m=Te(t,null,r);l?.forEach((u,p)=>{m.delete(p)});let d=ze(b,m,n);if(d.delete("transition-property"),d.delete("all"),d.delete("d"),d.delete("content"),e)d.delete("margin-top"),d.delete("margin-right"),d.delete("margin-bottom"),d.delete("margin-left"),d.delete("margin-block-start"),d.delete("margin-block-end"),d.delete("margin-inline-start"),d.delete("margin-inline-end"),d.set("box-sizing",["border-box",""]);if(d.get("background-clip")?.[0]==="text")i.classList.add("______background-clip--text");if(_e){if(!d.has("font-kerning"))d.set("font-kerning",["normal",""]);if((d.get("overflow-x")?.[0]==="hidden"||d.get("overflow-y")?.[0]==="hidden")&&d.get("text-overflow")?.[0]==="ellipsis"&&t.scrollWidth===t.clientWidth)d.set("text-overflow",["clip",""])}for(let u=s.length,p=0;p<u;p++)s.removeProperty(s.item(p));return d.forEach(([u,p],f)=>{s.setProperty(f,u,p)}),d}function an(t,i){if(Rr(t)||Br(t)||Dr(t))i.setAttribute("value",t.value)}var sn=["::before","::after"],on=["::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::-webkit-scrollbar-corner","::-webkit-resizer"];function ln(t,i,e,r,o){let{ownerWindow:n,svgStyleElement:l,svgStyles:s,currentNodeStyle:b}=r;if(!l||!n)return;function m(d){let u=n.getComputedStyle(t,d),p=u.getPropertyValue("content");if(!p||p==="none")return;o?.(p),p=p.replace(/(')|(")|(counter\(.+\))/g,"");let f=[xe()],g=Te(t,d,r);b?.forEach((S,R)=>{g.delete(R)});let h=ze(u,g,r.includeStyleProperties);if(h.delete("content"),h.delete("-webkit-locale"),h.get("background-clip")?.[0]==="text")i.classList.add("______background-clip--text");let y=[`content: '${p}';`];if(h.forEach(([S,R],O)=>{y.push(`${O}: ${S}${R?" !important":""};`)}),y.length===1)return;try{i.className=[i.className,...f].join(" ")}catch(S){r.log.warn("Failed to copyPseudoClass",S);return}let v=y.join(`
18
+ `),x=s.get(v);if(!x)x=[],s.set(v,x);x.push(`.${f[0]}${d}`)}if(sn.forEach(m),e)on.forEach(m)}var ue=new Set(["symbol"]);async function fe(t,i,e,r,o){if(pt(e)&&(Nr(e)||Lr(e)))return;if(r.filter&&!r.filter(e))return;if(ue.has(i.nodeName)||ue.has(e.nodeName))r.currentParentNodeStyle=void 0;else r.currentParentNodeStyle=r.currentNodeStyle;let n=await Yt(e,r,!1,o);if(r.isEnable("restoreScrollPosition"))cn(t,n);i.appendChild(n)}async function he(t,i,e,r){let o=t.firstChild;if(pt(t)){if(t.shadowRoot)o=t.shadowRoot?.firstChild,e.shadowRoots.push(t.shadowRoot)}for(let n=o;n;n=n.nextSibling){if(Tr(n))continue;if(pt(n)&&Fr(n)&&typeof n.assignedNodes==="function"){let l=n.assignedNodes();for(let s=0;s<l.length;s++)await fe(t,i,l[s],e,r)}else await fe(t,i,n,e,r)}}function cn(t,i){if(!It(t)||!It(i))return;let{scrollTop:e,scrollLeft:r}=t;if(!e&&!r)return;let{transform:o}=i.style,n=new DOMMatrix(o),{a:l,b:s,c:b,d:m}=n;n.a=1,n.b=0,n.c=0,n.d=1,n.translateSelf(-r,-e),n.a=l,n.b=s,n.c=b,n.d=m,i.style.transform=n.toString()}function un(t,i){let{backgroundColor:e,width:r,height:o,style:n}=i,l=t.style;if(e)l.setProperty("background-color",e,"important");if(r)l.setProperty("width",`${r}px`,"important");if(o)l.setProperty("height",`${o}px`,"important");if(n)for(let s in n)l[s]=n[s]}var fn=/^[\w-:]+$/;async function Yt(t,i,e=!1,r){let{ownerDocument:o,ownerWindow:n,fontFamilies:l,onCloneEachNode:s}=i;if(o&&zr(t)){if(r&&/\S/.test(t.data))r(t.data);return o.createTextNode(t.data)}if(o&&n&&pt(t)&&(It(t)||zt(t))){let m=await Qr(t,i);if(i.isEnable("removeAbnormalAttributes")){let h=m.getAttributeNames();for(let y=h.length,v=0;v<y;v++){let x=h[v];if(!fn.test(x))m.removeAttribute(x)}}let d=i.currentNodeStyle=nn(t,m,e,i);if(e)un(m,i);let u=!1;if(i.isEnable("copyScrollbar")){let h=[d.get("overflow-x")?.[0],d.get("overflow-y")?.[0]];u=h.includes("scroll")||(h.includes("auto")||h.includes("overlay"))&&(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)}let p=d.get("text-transform")?.[0],f=Ce(d.get("font-family")?.[0]),g=f?(h)=>{if(p==="uppercase")h=h.toUpperCase();else if(p==="lowercase")h=h.toLowerCase();else if(p==="capitalize")h=h[0].toUpperCase()+h.substring(1);f.forEach((y)=>{let v=l.get(y);if(!v)l.set(y,v=new Set);h.split("").forEach((x)=>v.add(x))})}:void 0;if(ln(t,m,u,i,g),an(t,m),!Ft(t))await he(t,m,i,g);return await s?.(m),m}let b=t.cloneNode(!1);return await he(t,b,i),await s?.(b),b}function hn(t){if(t.ownerDocument=void 0,t.ownerWindow=void 0,t.svgStyleElement=void 0,t.svgDefsElement=void 0,t.svgStyles.clear(),t.defaultComputedStyles.clear(),t.sandbox){try{t.sandbox.remove()}catch(i){t.log.warn("Failed to destroyContext",i)}t.sandbox=void 0}t.workers=[],t.fontFamilies.clear(),t.fontCssTexts.clear(),t.requests.clear(),t.tasks=[],t.shadowRoots=[]}function dn(t){let{url:i,timeout:e,responseType:r,...o}=t,n=new AbortController,l=e?setTimeout(()=>n.abort(),e):void 0;return fetch(i,{signal:n.signal,...o}).then((s)=>{if(!s.ok)throw Error("Failed fetch, not 2xx response",{cause:s});switch(r){case"arrayBuffer":return s.arrayBuffer();case"dataUrl":return s.blob().then(Wr);case"text":default:return s.text()}}).finally(()=>clearTimeout(l))}function Tt(t,i){let{url:e,requestType:r="text",responseType:o="text",imageDom:n}=i,l=e,{timeout:s,acceptOfImage:b,requests:m,fetchFn:d,fetch:{requestInit:u,bypassingCache:p,placeholderImage:f},font:g,workers:h,fontFamilies:y}=t;if(r==="image"&&(Dt||Xt))t.drawImageCount++;let v=m.get(e);if(!v){if(p){if(p instanceof RegExp&&p.test(l))l+=(/\?/.test(l)?"&":"?")+new Date().getTime()}let x=r.startsWith("font")&&g&&g.minify,S=new Set;if(x)r.split(";")[1].split(",").forEach((z)=>{if(!y.has(z))return;y.get(z).forEach((M)=>S.add(M))});let R=x&&S.size,O={url:l,timeout:s,responseType:R?"arrayBuffer":o,headers:r==="image"?{accept:b}:void 0,...u};v={type:r,resolve:void 0,reject:void 0,response:null},v.response=(async()=>{if(d&&r==="image"){let F=await d(e);if(F)return F}if(!Dt&&e.startsWith("http")&&h.length)return new Promise((F,z)=>{h[m.size&h.length-1].postMessage({rawUrl:e,...O}),v.resolve=F,v.reject=z});return dn(O)})().catch((F)=>{if(m.delete(e),r==="image"&&f)return t.log.warn("Failed to fetch image base64, trying to use placeholder image",l),typeof f==="string"?f:f(n);throw F}),m.set(e,v)}return v.response}async function Oe(t,i,e,r){if(!Re(t))return t;for(let[o,n]of pn(t,i))try{let l=await Tt(e,{url:n,requestType:r?"image":"text",responseType:"dataUrl"});t=t.replace(mn(o),`$1${l}$3`)}catch(l){e.log.warn("Failed to fetch css data url",o,l)}return t}function Re(t){return/url\((['"]?)([^'"]+?)\1\)/.test(t)}var Be=/url\((['"]?)([^'"]+?)\1\)/g;function pn(t,i){let e=[];return t.replace(Be,(r,o,n)=>(e.push([n,ke(n,i)]),r)),e.filter(([r])=>!qt(r))}function mn(t){let i=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${i})(['"]?\\))`,"g")}var gn=["background-image","border-image-source","-webkit-border-image","-webkit-mask-image","list-style-image"];function bn(t,i){return gn.map((e)=>{let r=t.getPropertyValue(e);if(!r||r==="none")return null;if(Dt||Xt)i.drawImageCount++;return Oe(r,null,i,!0).then((o)=>{if(!o||r===o)return;t.setProperty(e,o,t.getPropertyPriority(e))})}).filter(Boolean)}function wn(t,i){if(vt(t)){let e=t.currentSrc||t.src;if(!qt(e))return[Tt(i,{url:e,imageDom:t,requestType:"image",responseType:"dataUrl"}).then((r)=>{if(!r)return;t.srcset="",t.dataset.originalSrc=e,t.src=r||""})];if(Dt||Xt)i.drawImageCount++}else if(zt(t)&&!qt(t.href.baseVal)){let e=t.href.baseVal;return[Tt(i,{url:e,imageDom:t,requestType:"image",responseType:"dataUrl"}).then((r)=>{if(!r)return;t.dataset.originalSrc=e,t.href.baseVal=r||""})]}return[]}function yn(t,i){let{ownerDocument:e,svgDefsElement:r}=i,o=t.getAttribute("href")??t.getAttribute("xlink:href");if(!o)return[];let[n,l]=o.split("#");if(l){let s=`#${l}`,b=i.shadowRoots.reduce((m,d)=>m??d.querySelector(`svg ${s}`),e?.querySelector(`svg ${s}`));if(n)t.setAttribute("href",s);if(r?.querySelector(s))return[];if(b)return r?.appendChild(b.cloneNode(!0)),[];else if(n)return[Tt(i,{url:n,responseType:"text"}).then((m)=>{r?.insertAdjacentHTML("beforeend",m)})]}return[]}function Ne(t,i){let{tasks:e}=i;if(pt(t)){if(vt(t)||ve(t))e.push(...wn(t,i));if(Ar(t))e.push(...yn(t,i))}if(It(t))e.push(...bn(t.style,i));t.childNodes.forEach((r)=>{Ne(r,i)})}async function _n(t,i){let{ownerDocument:e,svgStyleElement:r,fontFamilies:o,fontCssTexts:n,tasks:l,font:s}=i;if(!e||!r||!o.size)return;if(s&&s.cssText){let b=pe(s.cssText,i);r.appendChild(e.createTextNode(`${b}
19
+ `))}else{let b=Array.from(e.styleSheets).filter((d)=>{try{return"cssRules"in d&&Boolean(d.cssRules.length)}catch(u){return i.log.warn(`Error while reading CSS rules from ${d.href}`,u),!1}});await Promise.all(b.flatMap((d)=>Array.from(d.cssRules).map(async(u,p)=>{if(Cr(u)){let f=p+1,g=u.href,h="";try{h=await Tt(i,{url:g,requestType:"text",responseType:"text"})}catch(v){i.log.warn(`Error fetch remote css import from ${g}`,v)}let y=h.replace(Be,(v,x,S)=>v.replace(S,ke(S,g)));for(let v of kn(y))try{d.insertRule(v,v.startsWith("@import")?f+=1:d.cssRules.length)}catch(x){i.log.warn("Error inserting rule from remote css import",{rule:v,error:x})}}})));let m=[];b.forEach((d)=>{Gt(d.cssRules,m)}),m.filter((d)=>xr(d)&&Re(d.style.getPropertyValue("src"))&&Ce(d.style.getPropertyValue("font-family"))?.some((u)=>o.has(u))).forEach((d)=>{let u=d,p=n.get(u.cssText);if(p)r.appendChild(e.createTextNode(`${p}
20
+ `));else l.push(Oe(u.cssText,u.parentStyleSheet?u.parentStyleSheet.href:null,i).then((f)=>{f=pe(f,i),n.set(u.cssText,f),r.appendChild(e.createTextNode(`${f}
21
+ `))}))})}}var vn=/(\/\*[\s\S]*?\*\/)/g,de=/((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi;function kn(t){if(t==null)return[];let i=[],e=t.replace(vn,"");while(!0){let n=de.exec(e);if(!n)break;i.push(n[0])}e=e.replace(de,"");let r=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");while(!0){let n=r.exec(e);if(!n)if(n=o.exec(e),!n)break;else r.lastIndex=o.lastIndex;else o.lastIndex=r.lastIndex;i.push(n[0])}return i}var Sn=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,En=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function pe(t,i){let{font:e}=i,r=e?e?.preferredFormat:void 0;return r?t.replace(En,(o)=>{while(!0){let[n,,l]=Sn.exec(o)||[];if(!l)return"";if(l===r)return`src: ${n};`}}):t}function Gt(t,i=[]){for(let e of Array.from(t))if(Ir(e))i.push(...Gt(e.cssRules));else if("cssRules"in e)Gt(e.cssRules,i);else i.push(e);return i}async function xn(t,i){let e=await bt(t,i);if(pt(e.node)&&zt(e.node))return e.node;let{ownerDocument:r,log:o,tasks:n,svgStyleElement:l,svgDefsElement:s,svgStyles:b,font:m,progress:d,autoDestruct:u,onCloneNode:p,onEmbedNode:f,onCreateForeignObjectSvg:g}=e;o.time("clone node");let h=await Yt(e.node,e,!0);if(l&&r){let R="";b.forEach((O,F)=>{R+=`${O.join(`,
13
22
  `)} {
14
- ${x}
23
+ ${F}
15
24
  }
16
- `}),V.appendChild(X.createTextNode(L))}if(K.timeEnd("clone node"),await W?.(A),G!==!1&&K2(A))K.time("embed web font"),await mK(A,$),K.timeEnd("embed web font");K.time("embed node"),Q7(A,$);let w=Y.length,F=0,z=async()=>{while(!0){let L=Y.pop();if(!L)break;try{await L}catch(N){$.log.warn("Failed to run task",N)}B?.(++F,w)}};B?.(F,w),await Promise.all([...Array.from({length:4})].map(z)),K.timeEnd("embed node"),await H?.(A);let P=oK(A,$);return q&&P.insertBefore(q,P.children[0]),V&&P.insertBefore(V,P.children[0]),j&&yK($),await S?.(P),P}function oK(Q,J){let{width:$,height:X}=J,K=m4($,X,Q.ownerDocument),Y=K.ownerDocument.createElementNS(K.namespaceURI,"foreignObject");return Y.setAttributeNS(null,"x","0%"),Y.setAttributeNS(null,"y","0%"),Y.setAttributeNS(null,"width","100%"),Y.setAttributeNS(null,"height","100%"),Y.append(Q),K.appendChild(Y),K}async function aK(Q,J){let $=await d2(Q,J),X=await rK($),K=d4(X,$.isEnable("removeControlCharacter"));if(!$.autoDestruct)$.svgStyleElement=n4($.ownerDocument),$.svgDefsElement=$.ownerDocument?.createElementNS(T6,"defs"),$.svgStyles.clear();let Y=Z1(K,X.ownerDocument);return await LK(Y,$)}async function k6(Q,J){let $=await d2(Q,J),{log:X,quality:K,type:Y,dpi:V}=$,q=await aK($);X.time("canvas to data url");let U=q.toDataURL(Y,K);if(["image/png","image/jpeg"].includes(Y)&&V&&iX&&nX){let[G,B]=U.split(","),j=0,W=!1;if(Y==="image/png"){let P=dX(B);if(P>=0)j=Math.ceil((P+28)/3)*4,W=!0;else j=44}else if(Y==="image/jpeg")j=24;let H=B.substring(0,j),S=B.substring(j),A=window.atob(H),w=new Uint8Array(A.length);for(let P=0;P<w.length;P++)w[P]=A.charCodeAt(P);let F=Y==="image/png"?uX(w,V,W):hX(w,V),z=window.btoa(String.fromCharCode(...F));U=[G,",",z,S].join("")}return X.timeEnd("canvas to data url"),U}async function J7(Q,J){let $=await d2(Q,J),{width:X,height:K,ownerDocument:Y}=$,V=await k6($),q=m4(X,K,Y),U=q.ownerDocument.createElementNS(q.namespaceURI,"image");return U.setAttributeNS(null,"href",V),U.setAttributeNS(null,"height","100%"),U.setAttributeNS(null,"width","100%"),q.appendChild(U),d4(q,$.isEnable("removeControlCharacter"))}async function $7(Q,J){return k6(await d2(Q,{...J,type:"image/jpeg"}))}async function X7(Q,J){return k6(await d2(Q,{...J,type:"image/png"}))}async function K7(Q,J){return k6(await d2(Q,{...J,type:"image/webp"}))}async function g8(Q,J,$){try{let X="",K={quality:J.quality,scale:J.scale,filter:tK},Y=getComputedStyle(Q),V=Y.backgroundColor,q=Y.backgroundImage,U=!1;if(V==="rgba(0, 0, 0, 0)"&&q==="none"&&J.format==="jpg")Q.style.backgroundColor="#FFFFFF",U=!0;switch(J.format){case"jpg":X=await $7(Q,K);break;case"png":X=await X7(Q,K);break;case"svg":X=await J7(Q,K);break;case"webp":X=await K7(Q,K);break}if(U)Q.style.backgroundColor="",Q.style.backgroundImage="";return{dataURL:X,fileName:T4(J,$)}}catch(X){return console.error("ImageExporter: Error in captureImage",X),{dataURL:"",fileName:""}}}var tK=(Q)=>{if(Q instanceof HTMLElement)return!Q.hasAttribute("data-ignore-capture");return!0};var PX=yX(HX(),1);var HB={label:"image",format:"jpg",scale:1,quality:1,includeScaleInLabel:!1},B1={...HB,downloadImages:!0,defaultImageLabel:"image",zipLabel:"images",corsProxyBaseUrl:"",enableWindowLogging:!0,loggingLevel:"none"};async function O6(Q,J=B1){let $=J?{...B1,...J}:B1,X=MB(Q);if(X.length===1){let K=X[0];jX(K.dataURL,K.fileName)}else if(X.length>1){let K=await jB(X);if(K)jX(K,PB($))}}function jX(Q,J){let $=typeof Q==="string"?Q:URL.createObjectURL(Q),X=document.createElement("a");if(X.href=$,X.download=J,X.style.display="none",document.body.appendChild(X),X.click(),document.body.removeChild(X),typeof Q!=="string")setTimeout(()=>URL.revokeObjectURL($),250)}async function jB(Q){let J=new PX.default;try{Q.forEach(($)=>{let X=$.dataURL.split(",")[1];J.file($.fileName,X,{base64:!0})})}catch($){console.error("Image Exporter - Error adding images to ZIP:",$);return}try{return await J.generateAsync({type:"blob"})}catch($){console.error("Image Exporter - Error generating ZIP:",$);return}}function PB(Q){try{let J=Q.zipLabel;return J=J.replace(/\s+/g,"-"),J.replace(/[^a-zA-Z0-9-_]/g,"")}catch(J){return console.error(J),"images"}}function MB(Q){let J=new Map;return Q.map(($)=>{let{fileName:X}=$,K=X.lastIndexOf("."),Y=K!==-1?X.substring(0,K):X,V=K!==-1?X.substring(K):"";if(!J.has(X))return J.set(X,1),$;let q=J.get(X)+1;J.set(X,q);let U=`${Y}-${q}${V}`;return{...$,fileName:U}})}var C0={info:(...Q)=>C6(Q,"info"),error:(...Q)=>C6(Q,"error"),verbose:(...Q)=>C6(Q,"verbose"),progress:(Q,J)=>LB(Q,J),group:{open:(...Q)=>C6(Q,"group"),close:(...Q)=>C6(Q,"groupEnd")}};async function C6(Q,J="info"){let $=Q.map((X)=>typeof X==="object"?JSON.stringify(X):X).join(" ");switch(J){case"info":if(G1==="info"||G1==="verbose")console.log(...Q);break;case"error":if(G1==="error"||G1==="verbose")console.error(...Q);break;case"verbose":if(G1==="verbose")console.log(...Q);break;case"group":console.group(...Q);break;case"groupEnd":console.groupEnd();break}if(I8)window.imageExporterLogs.push({message:$,type:J})}async function LB(Q,J){if(I8)window.imageExporterProgress.push([Q,J])}window.imageExporterLogs=[];window.imageExporterProgress=[];function f1(Q){try{let J=new URL(Q);if(J.protocol==="data:")return!1;if(J.protocol!=="http:"&&J.protocol!=="https:")return!1;return!0}catch(J){return!1}}async function MX(Q){let J=document.querySelectorAll('link[rel="stylesheet"]');C0.verbose("stylesheet elements to proxy",J.length);for(let $ of J){let X=$.getAttribute("href");if(!X)continue;if(X.startsWith("data:"))continue;if(X.startsWith(Q.corsProxyBaseUrl))continue;if(!f1(X))continue;$.setAttribute("crossorigin","anonymous");let K=Q.corsProxyBaseUrl+encodeURIComponent(X);try{let V=await(await fetch(K)).text(),q=document.createElement("style");q.textContent=V,q.setAttribute("original-link-element",encodeURIComponent($.outerHTML)),$.insertAdjacentElement("afterend",q),$.remove(),C0.verbose("Proxied: ",X)}catch(Y){console.error("Error fetching CSS:",Y)}}}async function LX(Q,J){try{let $=Array.from(J);if(!$.length)return;C0.verbose("images to proxy",$.length);for(let X of $){let K=Array.from(X.querySelectorAll("img"));for(let Y of K)if(f1(Y.src)&&!Y.src.startsWith(Q.corsProxyBaseUrl))Y.setAttribute("original-src",Y.src),Y.src=Q.corsProxyBaseUrl+encodeURIComponent(Y.src),C0.verbose("Proxied: ",Y.src)}}catch($){console.error("ImageExporter: Error in proxyImages",$);return}}async function FX(Q,J){try{if(C0.verbose("running CORS proxy"),!Q.corsProxyBaseUrl||!f1(Q.corsProxyBaseUrl))return;await MX(Q),await LX(Q,J)}catch($){console.error("ImageExporter: Error in runCorsProxy",$)}}async function wX(){await FB(),await wB()}async function FB(){let Q=document.querySelectorAll("style[original-link-element]");for(let J of Q){let $=decodeURIComponent(J.getAttribute("original-link-element")),X=document.createElement("div");X.innerHTML=$,J.parentNode.insertBefore(X.firstChild,J),J.remove(),C0.verbose("Restored: ",$)}}async function wB(){let Q=document.querySelectorAll("img[original-src]");for(let J of Q){let $=J.getAttribute("original-src");J.src=$,J.removeAttribute("original-src"),C0.verbose("Restored: ",$)}}var H4={run:FX,cleanUp:wX};async function IX(Q,J){return{label:$(),format:X(),scale:K(),quality:Y(),includeScaleInLabel:V()};function $(){try{let q=Q.dataset.label||J.defaultImageLabel;if(q==="")return J.defaultImageLabel;let U=/@\d+x$/.test(q),G=q,B=/[^a-zA-Z0-9-_]/g;if(U){let j=q.match(/@\d+x$/);if(!j)return J.defaultImageLabel;G=q.slice(0,-j[0].length).replace(B,"")+j[0]}else G=q.replace(B,"");return G}catch(q){return console.error(q),J.defaultImageLabel}}function X(){try{let q=Q.dataset.format||J.format;if(q=q.trim().toLowerCase(),q==="jpg"||q==="png"||q==="svg"||q==="webp")return q;else throw Error(`ImageExporter: provided format is not valid.
17
- Provided: ${q}
18
- Element: ${Q}
19
- Accepted values: jpg, png, svg,
20
- Defaulting to: ${J.format}`)}catch(q){return console.error(q),J.format}}function K(){try{let q=Q.dataset.scale;if(!q)return J.scale;if(q.includes(",")){let U=q.trim().split(",").map((G)=>parseFloat(G));if(U.some((G)=>isNaN(G)))throw Error(`ImageExporter: provided scale is not valid.
21
- Provided: ${q}
22
- Element: ${Q}
25
+ `}),l.appendChild(r.createTextNode(R))}if(o.timeEnd("clone node"),await p?.(h),m!==!1&&pt(h))o.time("embed web font"),await _n(h,e),o.timeEnd("embed web font");o.time("embed node"),Ne(h,e);let y=n.length,v=0,x=async()=>{while(!0){let R=n.pop();if(!R)break;try{await R}catch(O){e.log.warn("Failed to run task",O)}d?.(++v,y)}};d?.(v,y),await Promise.all([...Array.from({length:4})].map(x)),o.timeEnd("embed node"),await f?.(h);let S=Cn(h,e);return s&&S.insertBefore(s,S.children[0]),l&&S.insertBefore(l,S.children[0]),u&&hn(e),await g?.(S),S}function Cn(t,i){let{width:e,height:r}=i,o=Se(e,r,t.ownerDocument),n=o.ownerDocument.createElementNS(o.namespaceURI,"foreignObject");return n.setAttributeNS(null,"x","0%"),n.setAttributeNS(null,"y","0%"),n.setAttributeNS(null,"width","100%"),n.setAttributeNS(null,"height","100%"),n.append(t),o.appendChild(n),o}async function In(t,i){let e=await bt(t,i),r=await xn(e),o=Ee(r,e.isEnable("removeControlCharacter"));if(!e.autoDestruct)e.svgStyleElement=Ie(e.ownerDocument),e.svgDefsElement=e.ownerDocument?.createElementNS(Ut,"defs"),e.svgStyles.clear();let n=_t(o,r.ownerDocument);return await Vr(n,e)}async function jt(t,i){let e=await bt(t,i),{log:r,quality:o,type:n,dpi:l}=e,s=await In(e);r.time("canvas to data url");let b=s.toDataURL(n,o);if(["image/png","image/jpeg"].includes(n)&&l&&kr&&Sr){let[m,d]=b.split(","),u=0,p=!1;if(n==="image/png"){let S=_r(d);if(S>=0)u=Math.ceil((S+28)/3)*4,p=!0;else u=44}else if(n==="image/jpeg")u=24;let f=d.substring(0,u),g=d.substring(u),h=window.atob(f),y=new Uint8Array(h.length);for(let S=0;S<y.length;S++)y[S]=h.charCodeAt(S);let v=n==="image/png"?gr(y,l,p):hr(y,l),x=window.btoa(String.fromCharCode(...v));b=[m,",",x,g].join("")}return r.timeEnd("canvas to data url"),b}async function Le(t,i){let e=await bt(t,i),{width:r,height:o,ownerDocument:n}=e,l=await jt(e),s=Se(r,o,n),b=s.ownerDocument.createElementNS(s.namespaceURI,"image");return b.setAttributeNS(null,"href",l),b.setAttributeNS(null,"height","100%"),b.setAttributeNS(null,"width","100%"),s.appendChild(b),Ee(s,e.isEnable("removeControlCharacter"))}async function De(t,i){return jt(await bt(t,{...i,type:"image/jpeg"}))}async function Fe(t,i){return jt(await bt(t,{...i,type:"image/png"}))}async function Pe(t,i){return jt(await bt(t,{...i,type:"image/webp"}))}async function je(t,i,e,r){let o=!1;try{let n="",l=r?.filter,s=t.getBoundingClientRect(),b={width:Ue(s.width),height:Ue(s.height),...r,quality:i.quality,scale:i.scale,filter:(p)=>Tn(p)&&(l?l(p):!0)},m=getComputedStyle(t),{backgroundColor:d,backgroundImage:u}=m;if(d==="rgba(0, 0, 0, 0)"&&u==="none"&&i.format==="jpg")t.style.backgroundColor="#FFFFFF",o=!0;switch(i.format){case"jpg":n=await De(t,b);break;case"png":n=await Fe(t,b);break;case"svg":n=await Le(t,b);break;case"webp":n=await Pe(t,b);break}return{dataURL:n,fileName:le(i,e)}}catch(n){throw Error(`ImageExporter: failed to capture element as ${i.format}`,{cause:n})}finally{if(o)t.style.backgroundColor="",t.style.backgroundImage=""}}var Ue=(t)=>{let i=Math.round(t);return Math.abs(t-i)<0.01?i:t},Tn=(t)=>{if(t instanceof HTMLElement)return!t.hasAttribute("data-ignore-capture");return!0};var He=sr(We(),1);var zn={label:"image",format:"jpg",scale:1,quality:1,includeScaleInLabel:!1},wt={...zn,downloadImages:!0,defaultImageLabel:"image",zipLabel:"images",corsProxyBaseUrl:"",enableWindowLogging:!0,loggingLevel:"none"};async function Ot(t,i=wt){let e=i?{...wt,...i}:wt,r=Bn(t);if(r.length===1){let o=r[0];Ze(o.blob??o.dataURL,o.fileName)}else if(r.length>1){let o=await On(r);if(o)Ze(o,Rn(e))}}function Ze(t,i){let e=typeof t==="string"?t:URL.createObjectURL(t),r=document.createElement("a");if(r.href=e,r.download=i,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),typeof t!=="string")setTimeout(()=>URL.revokeObjectURL(e),250)}async function On(t){let i=new He.default;try{t.forEach((e)=>{if(e.blob)i.file(e.fileName,e.blob);else{let r=e.dataURL.split(",")[1];i.file(e.fileName,r,{base64:!0})}})}catch(e){console.error("Image Exporter - Error adding images to ZIP:",e);return}try{return await i.generateAsync({type:"blob"})}catch(e){console.error("Image Exporter - Error generating ZIP:",e);return}}function Rn(t){try{let i=t.zipLabel;return i=i.replace(/\s+/g,"-"),i.replace(/[^a-zA-Z0-9-_]/g,"")}catch(i){return console.error(i),"images"}}function Bn(t){let i=new Set;return t.map((e)=>{let r=Lt(e.fileName,i);return r===e.fileName?e:{...e,fileName:r}})}var Jt=typeof window<"u",it={info:(...t)=>Rt(t,"info"),error:(...t)=>Rt(t,"error"),verbose:(...t)=>Rt(t,"verbose"),progress:(t,i)=>Nn(t,i),group:{open:(...t)=>Rt(t,"group"),close:(...t)=>Rt(t,"groupEnd")}};async function Rt(t,i="info"){let e=t.map((r)=>typeof r==="object"?JSON.stringify(r):r).join(" ");switch(i){case"info":if(yt==="info"||yt==="verbose")console.log(...t);break;case"error":if(yt==="error"||yt==="verbose")console.error(...t);break;case"verbose":if(yt==="verbose")console.log(...t);break;case"group":console.group(...t);break;case"groupEnd":console.groupEnd();break}if(Mt&&Jt)window.imageExporterLogs.push({message:e,type:i})}async function Nn(t,i){if(Mt&&Jt)window.imageExporterProgress.push([t,i])}if(Jt)window.imageExporterLogs=[],window.imageExporterProgress=[];function kt(t){try{let i=new URL(t);if(i.protocol==="data:")return!1;if(i.protocol!=="http:"&&i.protocol!=="https:")return!1;return!0}catch{return!1}}async function $e(t){let i=document.querySelectorAll('link[rel="stylesheet"]');it.verbose("stylesheet elements to proxy",i.length);for(let e of i){let r=e.getAttribute("href");if(!r)continue;if(r.startsWith("data:"))continue;if(r.startsWith(t.corsProxyBaseUrl))continue;if(!kt(r))continue;e.setAttribute("crossorigin","anonymous");let o=t.corsProxyBaseUrl+encodeURIComponent(r);try{let l=await(await fetch(o)).text(),s=document.createElement("style");s.textContent=l,s.setAttribute("original-link-element",encodeURIComponent(e.outerHTML)),e.insertAdjacentElement("afterend",s),e.remove(),it.verbose("Proxied: ",r)}catch(n){console.error("Error fetching CSS:",n)}}}async function qe(t,i){try{let e=Array.from(i);if(!e.length)return;it.verbose("images to proxy",e.length);for(let r of e){let o=Array.from(r.querySelectorAll("img"));for(let n of o)if(kt(n.src)&&!n.src.startsWith(t.corsProxyBaseUrl))n.setAttribute("original-src",n.src),n.src=t.corsProxyBaseUrl+encodeURIComponent(n.src),it.verbose("Proxied: ",n.src)}}catch(e){console.error("ImageExporter: Error in proxyImages",e);return}}async function Ge(t,i){try{if(it.verbose("running CORS proxy"),!t.corsProxyBaseUrl||!kt(t.corsProxyBaseUrl))return;await $e(t),await qe(t,i)}catch(e){console.error("ImageExporter: Error in runCorsProxy",e)}}async function Ve(){await Ln(),await Dn()}async function Ln(){let t=document.querySelectorAll("style[original-link-element]");for(let i of t){let e=decodeURIComponent(i.getAttribute("original-link-element")),r=document.createElement("div");r.innerHTML=e,i.parentNode.insertBefore(r.firstChild,i),i.remove(),it.verbose("Restored: ",e)}}async function Dn(){let t=document.querySelectorAll("img[original-src]");for(let i of t){let e=i.getAttribute("original-src");i.src=e,i.removeAttribute("original-src"),it.verbose("Restored: ",e)}}var Qt={run:Ge,cleanUp:Ve};function Wt(t){let i=t.indexOf(","),e=t.slice(0,i),r=t.slice(i+1),o=e.match(/^data:([^;]+)/),n=o?o[1]:"";if(e.includes(";base64")){let l=atob(r),s=new Uint8Array(l.length);for(let b=0;b<l.length;b++)s[b]=l.charCodeAt(b);return new Blob([s],{type:n})}return new Blob([decodeURIComponent(r)],{type:n})}async function Xe(t,i){return{label:e(),format:r(),scale:o(),quality:n(),includeScaleInLabel:l()};function e(){try{let s=t.dataset.label||i.defaultImageLabel;if(s==="")return i.defaultImageLabel;let b=/@\d+x$/.test(s),m=s,d=/[^a-zA-Z0-9-_]/g;if(b){let u=s.match(/@\d+x$/);if(!u)return i.defaultImageLabel;m=s.slice(0,-u[0].length).replace(d,"")+u[0]}else m=s.replace(d,"");return m}catch(s){return console.error(s),i.defaultImageLabel}}function r(){try{let s=t.dataset.format||i.format;if(s=s.trim().toLowerCase(),s==="jpg"||s==="png"||s==="svg"||s==="webp")return s;else throw Error(`ImageExporter: provided format is not valid.
26
+ Provided: ${s}
27
+ Element: ${t}
28
+ Accepted values: jpg, png, svg, webp
29
+ Defaulting to: ${i.format}`)}catch(s){return console.error(s),i.format}}function o(){try{let s=t.dataset.scale;if(!s)return i.scale;if(s.includes(",")){let b=s.trim().split(",").map((m)=>parseFloat(m));if(b.some((m)=>isNaN(m)))throw Error(`ImageExporter: provided scale is not valid.
30
+ Provided: ${s}
31
+ Element: ${t}
23
32
  Accepted values: number or csv numbers e.g. (1,2)
24
- Defaulting to ${J.scale}`);return U}else{let U=parseFloat(q.trim());if(isNaN(U))throw Error(`ImageExporter: provided scale is not valid.
25
- Provided: ${q}
26
- Element: ${Q}
33
+ Defaulting to ${i.scale}`);return b}else{let b=parseFloat(s.trim());if(isNaN(b))throw Error(`ImageExporter: provided scale is not valid.
34
+ Provided: ${s}
35
+ Element: ${t}
27
36
  Accepted values: number or csv numbers e.g. (1,2)
28
- Defaulting to: ${J.scale}`);return U}}catch(q){return console.error(q),J.scale}}function Y(){try{let q=Q.dataset.quality;if(!q)return J.quality;let U=parseFloat(q.trim());if(isNaN(U))throw Error(`ImageExporter: provided quality is not valid.
29
- Provided: ${q}
30
- Element: ${Q}
37
+ Defaulting to: ${i.scale}`);return b}}catch(s){return console.error(s),i.scale}}function n(){try{let s=t.dataset.quality;if(!s)return i.quality;let b=parseFloat(s.trim());if(isNaN(b))throw Error(`ImageExporter: provided quality is not valid.
38
+ Provided: ${s}
39
+ Element: ${t}
31
40
  Accepted values: number
32
- Defaulting to: ${J.quality}`);return U}catch(q){return console.error(q),J.quality}}function V(){try{let q=Q.dataset.includeScaleInLabel;if(!q)return J.includeScaleInLabel;if(q=q.trim(),q==="true"||q==="false")return q==="true";else throw Error(`ImageExporter: provided includeScaleInLabel is not valid.
33
- Provided: ${q}
34
- Element: ${Q}
41
+ Defaulting to: ${i.quality}`);return b}catch(s){return console.error(s),i.quality}}function l(){try{let s=t.dataset.includeScaleInLabel;if(!s)return i.includeScaleInLabel;if(s=s.trim(),s==="true"||s==="false")return s==="true";else throw Error(`ImageExporter: provided includeScaleInLabel is not valid.
42
+ Provided: ${s}
43
+ Element: ${t}
35
44
  Accepted values: true or false
36
- Defaulting to: ${J.includeScaleInLabel}`)}catch(q){return console.error(q),J.includeScaleInLabel}}}function NX(Q){return Q=Array.from(Q),Q.filter((J)=>IB(J))}function IB(Q){let J=window.getComputedStyle(Q);return Q.offsetParent!==null&&Q.style.display!=="none"&&J.visibility==="visible"&&J.opacity!=="0"&&J.width!=="0"&&J.height!=="0"}async function OX(Q){try{let J=0;for(let $ of Q){let X=$.dataset.scale;if(!X)continue;if(X.includes(",")){let K=X.trim().split(",").map((Y)=>parseFloat(Y));if(K.some((Y)=>isNaN(Y)))continue;J+=K.length}else{let K=parseFloat(X.trim());if(isNaN(K))continue;else J++}}return J}catch(J){return 1}}var I8=!0,G1="none";async function j4(Q,J=B1){C0.group.open("image-exporter");try{let $={...B1,...J};if(I8=$.enableWindowLogging,G1=$.loggingLevel,C0.verbose("config",$),Q instanceof HTMLElement)Q=[Q];let X=Q.length;Q=NX(Q);let K=await OX(Q);if(X!==Q.length)C0.verbose("Skipping capture of hidden elements: ",X-Q.length);if(C0.verbose("Element to capture",Q.length),J.corsProxyBaseUrl)await H4.run($,Q);let Y=[],V=[],q=1;for(let U of Q){let G=await IX(U,$);if(C0.verbose("Image options",G),G.scale instanceof Array){C0.verbose("Multi-scale capture"),G.includeScaleInLabel=!0;for(let B of G.scale){C0.progress(q++,K);let j=await g8(U,{...G,scale:B},V);Y.push(j)}}else if(typeof G.scale==="number"){C0.progress(q++,K),C0.verbose("Single-scale capture");let B=await g8(U,G,V);Y.push(B)}}if($.downloadImages)await O6(Y,$);if(J.corsProxyBaseUrl)await H4.cleanUp();return Y}catch($){return C0.error($),null}finally{C0.group.close()}}if(typeof window<"u")window.imageExporter=j4,window.imageExporterDownload=O6;})();
45
+ Defaulting to: ${i.includeScaleInLabel}`)}catch(s){return console.error(s),i.includeScaleInLabel}}}function Ye(t){return t=Array.from(t),t.filter((i)=>Fn(i))}function Fn(t){let i=window.getComputedStyle(t);return t.offsetParent!==null&&t.style.display!=="none"&&i.visibility==="visible"&&i.opacity!=="0"&&i.width!=="0"&&i.height!=="0"}async function Ke(t,i){try{let e=0;for(let r of Array.from(t))e+=Pn(r,i);return e}catch{return 1}}function Pn(t,i){let e=t.dataset.scale;if(!e)return te(i);if(e.includes(",")){let o=e.trim().split(",").map((n)=>parseFloat(n));if(o.some((n)=>isNaN(n)))return te(i);return o.length}let r=parseFloat(e.trim());if(isNaN(r))return te(i);return 1}function te(t){return Array.isArray(t.scale)?t.scale.length:1}var Mt=!0,yt="none";async function ee(t,i=wt){it.group.open("image-exporter");try{let e={...wt,...i};if(Mt=e.enableWindowLogging,yt=e.loggingLevel,it.verbose("config",e),t instanceof HTMLElement)t=[t];let r=t.length;t=Ye(t);let o=await Ke(t,e);if(r!==t.length)it.verbose("Skipping capture of hidden elements: ",r-t.length);if(it.verbose("Element to capture",t.length),i.corsProxyBaseUrl)await Qt.run(e,t);let n=[],l=new Set,s=1,b=async(m,d)=>{try{let u=await je(m,d,l,e.screenshotOptions);n.push(Un(u,e.output))}catch(u){it.error(u)}finally{let u=s++;it.progress(u,o),e.onProgress?.(u,o)}};t:for(let m of t){if(e.signal?.aborted)break;let d=await Xe(m,e);if(it.verbose("Image options",d),d.scale instanceof Array){it.verbose("Multi-scale capture"),d.includeScaleInLabel=!0;for(let u of d.scale){if(e.signal?.aborted)break t;await b(m,{...d,scale:u})}}else if(typeof d.scale==="number")it.verbose("Single-scale capture"),await b(m,d)}if(e.signal?.aborted)return it.verbose("Capture aborted; returning",n.length,"image(s)"),n;if(e.downloadImages)await Ot(n,e);return n}catch(e){return it.error(e),null}finally{if(i.corsProxyBaseUrl)await Qt.cleanUp();it.group.close()}}function Un(t,i){if(!i||i==="dataurl")return t;let e=Wt(t.dataURL);if(i==="blob")return{...t,dataURL:"",blob:e};return{...t,blob:e}}async function re(t){let i=t.blob??Wt(t.dataURL);await navigator.clipboard.write([new ClipboardItem({[i.type]:i})])}if(typeof window<"u")window.imageExporter=ee,window.imageExporterDownload=Ot,window.imageExporterCopyToClipboard=re;})();
37
46
 
38
- //# debugId=9273D815BF8FE02C64756E2164756E21
47
+ //# debugId=774AF6E6EC26240864756E2164756E21