@checksum-ai/runtime 1.1.0 → 1.1.2

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.
@@ -1,20 +1,20 @@
1
- var ik=Object.create;var Pa=Object.defineProperty;var nk=Object.getOwnPropertyDescriptor;var ak=Object.getOwnPropertyNames;var ok=Object.getPrototypeOf,sk=Object.prototype.hasOwnProperty;var $m=e=>{throw TypeError(e)};var n=(e,t)=>Pa(e,"name",{value:t,configurable:!0});var Da=(e,t)=>()=>(e&&(t=e(e=0)),t);var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ym=(e,t)=>{for(var r in t)Pa(e,r,{get:t[r],enumerable:!0})},Gm=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ak(t))!sk.call(e,a)&&a!==r&&Pa(e,a,{get:()=>t[a],enumerable:!(i=nk(t,a))||i.enumerable});return e};var tt=(e,t,r)=>(r=e!=null?ik(ok(e)):{},Gm(t||!e||!e.__esModule?Pa(r,"default",{value:e,enumerable:!0}):r,e)),lk=e=>Gm(Pa({},"__esModule",{value:!0}),e);var Vm=(e,t,r)=>t.has(e)||$m("Cannot "+r);var ue=(e,t,r)=>(Vm(e,t,"read from private field"),r?r.call(e):t.get(e)),yt=(e,t,r)=>t.has(e)?$m("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),We=(e,t,r,i)=>(Vm(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r);var Jm=R((Fs,Xm)=>{(function(e,t){typeof Fs=="object"&&typeof Xm<"u"?t(Fs):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.WebStreamsPolyfill={}))})(Fs,function(e){"use strict";function t(){}n(t,"noop");function r(o){return typeof o=="object"&&o!==null||typeof o=="function"}n(r,"typeIsObject");let i=t;function a(o,f){try{Object.defineProperty(o,"name",{value:f,configurable:!0})}catch{}}n(a,"setFunctionName");let s=Promise,l=Promise.prototype.then,d=Promise.reject.bind(s);function p(o){return new s(o)}n(p,"newPromise");function u(o){return p(f=>f(o))}n(u,"promiseResolvedWith");function c(o){return d(o)}n(c,"promiseRejectedWith");function E(o,f,h){return l.call(o,f,h)}n(E,"PerformPromiseThen");function g(o,f,h){E(E(o,f,h),void 0,i)}n(g,"uponPromise");function _(o,f){g(o,f)}n(_,"uponFulfillment");function b(o,f){g(o,void 0,f)}n(b,"uponRejection");function A(o,f,h){return E(o,f,h)}n(A,"transformPromiseWith");function T(o){E(o,void 0,i)}n(T,"setPromiseIsHandledToTrue");let y=n(o=>{if(typeof queueMicrotask=="function")y=queueMicrotask;else{let f=u(void 0);y=n(h=>E(f,h),"_queueMicrotask")}return y(o)},"_queueMicrotask");function x(o,f,h){if(typeof o!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(o,f,h)}n(x,"reflectCall");function C(o,f,h){try{return u(x(o,f,h))}catch(m){return c(m)}}n(C,"promiseCall");let w=16384,_u=class _u{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(f){let h=this._back,m=h;h._elements.length===w-1&&(m={_elements:[],_next:void 0}),h._elements.push(f),m!==h&&(this._back=m,h._next=m),++this._size}shift(){let f=this._front,h=f,m=this._cursor,v=m+1,k=f._elements,I=k[m];return v===w&&(h=f._next,v=0),--this._size,this._cursor=v,f!==h&&(this._front=h),k[m]=void 0,I}forEach(f){let h=this._cursor,m=this._front,v=m._elements;for(;(h!==v.length||m._next!==void 0)&&!(h===v.length&&(m=m._next,v=m._elements,h=0,v.length===0));)f(v[h]),++h}peek(){let f=this._front,h=this._cursor;return f._elements[h]}};n(_u,"SimpleQueue");let S=_u,P=Symbol("[[AbortSteps]]"),B=Symbol("[[ErrorSteps]]"),D=Symbol("[[CancelSteps]]"),F=Symbol("[[PullSteps]]"),z=Symbol("[[ReleaseSteps]]");function O(o,f){o._ownerReadableStream=f,f._reader=o,f._state==="readable"?er(o):f._state==="closed"?ht(o):Or(o,f._storedError)}n(O,"ReadableStreamReaderGenericInitialize");function G(o,f){let h=o._ownerReadableStream;return vt(h,f)}n(G,"ReadableStreamReaderGenericCancel");function se(o){let f=o._ownerReadableStream;f._state==="readable"?Ne(o,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):p1(o,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),f._readableStreamController[z](),f._reader=void 0,o._ownerReadableStream=void 0}n(se,"ReadableStreamReaderGenericRelease");function Be(o){return new TypeError("Cannot "+o+" a stream using a released reader")}n(Be,"readerLockException");function er(o){o._closedPromise=p((f,h)=>{o._closedPromise_resolve=f,o._closedPromise_reject=h})}n(er,"defaultReaderClosedPromiseInitialize");function Or(o,f){er(o),Ne(o,f)}n(Or,"defaultReaderClosedPromiseInitializeAsRejected");function ht(o){er(o),Dp(o)}n(ht,"defaultReaderClosedPromiseInitializeAsResolved");function Ne(o,f){o._closedPromise_reject!==void 0&&(T(o._closedPromise),o._closedPromise_reject(f),o._closedPromise_resolve=void 0,o._closedPromise_reject=void 0)}n(Ne,"defaultReaderClosedPromiseReject");function p1(o,f){Or(o,f)}n(p1,"defaultReaderClosedPromiseResetToRejected");function Dp(o){o._closedPromise_resolve!==void 0&&(o._closedPromise_resolve(void 0),o._closedPromise_resolve=void 0,o._closedPromise_reject=void 0)}n(Dp,"defaultReaderClosedPromiseResolve");let Bp=Number.isFinite||function(o){return typeof o=="number"&&isFinite(o)},m1=Math.trunc||function(o){return o<0?Math.ceil(o):Math.floor(o)};function g1(o){return typeof o=="object"||typeof o=="function"}n(g1,"isDictionary");function Pt(o,f){if(o!==void 0&&!g1(o))throw new TypeError(`${f} is not an object.`)}n(Pt,"assertDictionary");function Je(o,f){if(typeof o!="function")throw new TypeError(`${f} is not a function.`)}n(Je,"assertFunction");function _1(o){return typeof o=="object"&&o!==null||typeof o=="function"}n(_1,"isObject");function Fp(o,f){if(!_1(o))throw new TypeError(`${f} is not an object.`)}n(Fp,"assertObject");function tr(o,f,h){if(o===void 0)throw new TypeError(`Parameter ${f} is required in '${h}'.`)}n(tr,"assertRequiredArgument");function zf(o,f,h){if(o===void 0)throw new TypeError(`${f} is required in '${h}'.`)}n(zf,"assertRequiredField");function qf(o){return Number(o)}n(qf,"convertUnrestrictedDouble");function Lp(o){return o===0?0:o}n(Lp,"censorNegativeZero");function v1(o){return Lp(m1(o))}n(v1,"integerPart");function Mf(o,f){let m=Number.MAX_SAFE_INTEGER,v=Number(o);if(v=Lp(v),!Bp(v))throw new TypeError(`${f} is not a finite number`);if(v=v1(v),v<0||v>m)throw new TypeError(`${f} is outside the accepted range of 0 to ${m}, inclusive`);return!Bp(v)||v===0?0:v}n(Mf,"convertUnsignedLongLongWithEnforceRange");function Nf(o,f){if(!Lr(o))throw new TypeError(`${f} is not a ReadableStream.`)}n(Nf,"assertReadableStream");function Qi(o){return new Dt(o)}n(Qi,"AcquireReadableStreamDefaultReader");function zp(o,f){o._reader._readRequests.push(f)}n(zp,"ReadableStreamAddReadRequest");function Uf(o,f,h){let v=o._reader._readRequests.shift();h?v._closeSteps():v._chunkSteps(f)}n(Uf,"ReadableStreamFulfillReadRequest");function ls(o){return o._reader._readRequests.length}n(ls,"ReadableStreamGetNumReadRequests");function qp(o){let f=o._reader;return!(f===void 0||!Pr(f))}n(qp,"ReadableStreamHasDefaultReader");let vu=class vu{constructor(f){if(tr(f,1,"ReadableStreamDefaultReader"),Nf(f,"First parameter"),zr(f))throw new TypeError("This stream has already been locked for exclusive reading by another reader");O(this,f),this._readRequests=new S}get closed(){return Pr(this)?this._closedPromise:c(fs("closed"))}cancel(f=void 0){return Pr(this)?this._ownerReadableStream===void 0?c(Be("cancel")):G(this,f):c(fs("cancel"))}read(){if(!Pr(this))return c(fs("read"));if(this._ownerReadableStream===void 0)return c(Be("read from"));let f,h,m=p((k,I)=>{f=k,h=I});return Sa(this,{_chunkSteps:n(k=>f({value:k,done:!1}),"_chunkSteps"),_closeSteps:n(()=>f({value:void 0,done:!0}),"_closeSteps"),_errorSteps:n(k=>h(k),"_errorSteps")}),m}releaseLock(){if(!Pr(this))throw fs("releaseLock");this._ownerReadableStream!==void 0&&b1(this)}};n(vu,"ReadableStreamDefaultReader");let Dt=vu;Object.defineProperties(Dt.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),a(Dt.prototype.cancel,"cancel"),a(Dt.prototype.read,"read"),a(Dt.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Dt.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function Pr(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_readRequests")?!1:o instanceof Dt}n(Pr,"IsReadableStreamDefaultReader");function Sa(o,f){let h=o._ownerReadableStream;h._disturbed=!0,h._state==="closed"?f._closeSteps():h._state==="errored"?f._errorSteps(h._storedError):h._readableStreamController[F](f)}n(Sa,"ReadableStreamDefaultReaderRead");function b1(o){se(o);let f=new TypeError("Reader was released");Mp(o,f)}n(b1,"ReadableStreamDefaultReaderRelease");function Mp(o,f){let h=o._readRequests;o._readRequests=new S,h.forEach(m=>{m._errorSteps(f)})}n(Mp,"ReadableStreamDefaultReaderErrorReadRequests");function fs(o){return new TypeError(`ReadableStreamDefaultReader.prototype.${o} can only be used on a ReadableStreamDefaultReader`)}n(fs,"defaultReaderBrandCheckException");let y1=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype),bu=class bu{constructor(f,h){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=f,this._preventCancel=h}next(){let f=n(()=>this._nextSteps(),"nextSteps");return this._ongoingPromise=this._ongoingPromise?A(this._ongoingPromise,f,f):f(),this._ongoingPromise}return(f){let h=n(()=>this._returnSteps(f),"returnSteps");return this._ongoingPromise?A(this._ongoingPromise,h,h):h()}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});let f=this._reader,h,m,v=p((I,L)=>{h=I,m=L});return Sa(f,{_chunkSteps:n(I=>{this._ongoingPromise=void 0,y(()=>h({value:I,done:!1}))},"_chunkSteps"),_closeSteps:n(()=>{this._ongoingPromise=void 0,this._isFinished=!0,se(f),h({value:void 0,done:!0})},"_closeSteps"),_errorSteps:n(I=>{this._ongoingPromise=void 0,this._isFinished=!0,se(f),m(I)},"_errorSteps")}),v}_returnSteps(f){if(this._isFinished)return Promise.resolve({value:f,done:!0});this._isFinished=!0;let h=this._reader;if(!this._preventCancel){let m=G(h,f);return se(h),A(m,()=>({value:f,done:!0}))}return se(h),u({value:f,done:!0})}};n(bu,"ReadableStreamAsyncIteratorImpl");let us=bu,Np={next(){return Up(this)?this._asyncIteratorImpl.next():c(Wp("next"))},return(o){return Up(this)?this._asyncIteratorImpl.return(o):c(Wp("return"))}};Object.setPrototypeOf(Np,y1);function w1(o,f){let h=Qi(o),m=new us(h,f),v=Object.create(Np);return v._asyncIteratorImpl=m,v}n(w1,"AcquireReadableStreamAsyncIterator");function Up(o){if(!r(o)||!Object.prototype.hasOwnProperty.call(o,"_asyncIteratorImpl"))return!1;try{return o._asyncIteratorImpl instanceof us}catch{return!1}}n(Up,"IsReadableStreamAsyncIterator");function Wp(o){return new TypeError(`ReadableStreamAsyncIterator.${o} can only be used on a ReadableSteamAsyncIterator`)}n(Wp,"streamAsyncIteratorBrandCheckException");let jp=Number.isNaN||function(o){return o!==o};var Wf,jf,Zf;function xa(o){return o.slice()}n(xa,"CreateArrayFromList");function Zp(o,f,h,m,v){new Uint8Array(o).set(new Uint8Array(h,m,v),f)}n(Zp,"CopyDataBlockBytes");let rr=n(o=>(typeof o.transfer=="function"?rr=n(f=>f.transfer(),"TransferArrayBuffer"):typeof structuredClone=="function"?rr=n(f=>structuredClone(f,{transfer:[f]}),"TransferArrayBuffer"):rr=n(f=>f,"TransferArrayBuffer"),rr(o)),"TransferArrayBuffer"),Dr=n(o=>(typeof o.detached=="boolean"?Dr=n(f=>f.detached,"IsDetachedBuffer"):Dr=n(f=>f.byteLength===0,"IsDetachedBuffer"),Dr(o)),"IsDetachedBuffer");function Hp(o,f,h){if(o.slice)return o.slice(f,h);let m=h-f,v=new ArrayBuffer(m);return Zp(v,0,o,f,m),v}n(Hp,"ArrayBufferSlice");function ds(o,f){let h=o[f];if(h!=null){if(typeof h!="function")throw new TypeError(`${String(f)} is not a function`);return h}}n(ds,"GetMethod");function S1(o){let f={[Symbol.iterator]:()=>o.iterator},h=async function*(){return yield*f}(),m=h.next;return{iterator:h,nextMethod:m,done:!1}}n(S1,"CreateAsyncFromSyncIterator");let Hf=(Zf=(Wf=Symbol.asyncIterator)!==null&&Wf!==void 0?Wf:(jf=Symbol.for)===null||jf===void 0?void 0:jf.call(Symbol,"Symbol.asyncIterator"))!==null&&Zf!==void 0?Zf:"@@asyncIterator";function $p(o,f="sync",h){if(h===void 0)if(f==="async"){if(h=ds(o,Hf),h===void 0){let k=ds(o,Symbol.iterator),I=$p(o,"sync",k);return S1(I)}}else h=ds(o,Symbol.iterator);if(h===void 0)throw new TypeError("The object is not iterable");let m=x(h,o,[]);if(!r(m))throw new TypeError("The iterator method must return an object");let v=m.next;return{iterator:m,nextMethod:v,done:!1}}n($p,"GetIterator");function x1(o){let f=x(o.nextMethod,o.iterator,[]);if(!r(f))throw new TypeError("The iterator.next() method must return an object");return f}n(x1,"IteratorNext");function E1(o){return!!o.done}n(E1,"IteratorComplete");function k1(o){return o.value}n(k1,"IteratorValue");function T1(o){return!(typeof o!="number"||jp(o)||o<0)}n(T1,"IsNonNegativeNumber");function Yp(o){let f=Hp(o.buffer,o.byteOffset,o.byteOffset+o.byteLength);return new Uint8Array(f)}n(Yp,"CloneAsUint8Array");function $f(o){let f=o._queue.shift();return o._queueTotalSize-=f.size,o._queueTotalSize<0&&(o._queueTotalSize=0),f.value}n($f,"DequeueValue");function Yf(o,f,h){if(!T1(h)||h===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");o._queue.push({value:f,size:h}),o._queueTotalSize+=h}n(Yf,"EnqueueValueWithSize");function R1(o){return o._queue.peek().value}n(R1,"PeekQueueValue");function Br(o){o._queue=new S,o._queueTotalSize=0}n(Br,"ResetQueue");function Gp(o){return o===DataView}n(Gp,"isDataViewConstructor");function A1(o){return Gp(o.constructor)}n(A1,"isDataView");function C1(o){return Gp(o)?1:o.BYTES_PER_ELEMENT}n(C1,"arrayBufferViewElementSize");let yu=class yu{constructor(){throw new TypeError("Illegal constructor")}get view(){if(!Gf(this))throw Qf("view");return this._view}respond(f){if(!Gf(this))throw Qf("respond");if(tr(f,1,"respond"),f=Mf(f,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Dr(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");ms(this._associatedReadableByteStreamController,f)}respondWithNewView(f){if(!Gf(this))throw Qf("respondWithNewView");if(tr(f,1,"respondWithNewView"),!ArrayBuffer.isView(f))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Dr(f.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");gs(this._associatedReadableByteStreamController,f)}};n(yu,"ReadableStreamBYOBRequest");let ir=yu;Object.defineProperties(ir.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),a(ir.prototype.respond,"respond"),a(ir.prototype.respondWithNewView,"respondWithNewView"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(ir.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});let wu=class wu{constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!ui(this))throw ka("byobRequest");return Jf(this)}get desiredSize(){if(!ui(this))throw ka("desiredSize");return nm(this)}close(){if(!ui(this))throw ka("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");let f=this._controlledReadableByteStream._state;if(f!=="readable")throw new TypeError(`The stream (in ${f} state) is not in the readable state and cannot be closed`);Ea(this)}enqueue(f){if(!ui(this))throw ka("enqueue");if(tr(f,1,"enqueue"),!ArrayBuffer.isView(f))throw new TypeError("chunk must be an array buffer view");if(f.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(f.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");let h=this._controlledReadableByteStream._state;if(h!=="readable")throw new TypeError(`The stream (in ${h} state) is not in the readable state and cannot be enqueued to`);ps(this,f)}error(f=void 0){if(!ui(this))throw ka("error");Qe(this,f)}[D](f){Vp(this),Br(this);let h=this._cancelAlgorithm(f);return hs(this),h}[F](f){let h=this._controlledReadableByteStream;if(this._queueTotalSize>0){im(this,f);return}let m=this._autoAllocateChunkSize;if(m!==void 0){let v;try{v=new ArrayBuffer(m)}catch(I){f._errorSteps(I);return}let k={buffer:v,bufferByteLength:m,byteOffset:0,byteLength:m,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(k)}zp(h,f),di(this)}[z](){if(this._pendingPullIntos.length>0){let f=this._pendingPullIntos.peek();f.readerType="none",this._pendingPullIntos=new S,this._pendingPullIntos.push(f)}}};n(wu,"ReadableByteStreamController");let pt=wu;Object.defineProperties(pt.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),a(pt.prototype.close,"close"),a(pt.prototype.enqueue,"enqueue"),a(pt.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(pt.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function ui(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_controlledReadableByteStream")?!1:o instanceof pt}n(ui,"IsReadableByteStreamController");function Gf(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_associatedReadableByteStreamController")?!1:o instanceof ir}n(Gf,"IsReadableStreamBYOBRequest");function di(o){if(!B1(o))return;if(o._pulling){o._pullAgain=!0;return}o._pulling=!0;let h=o._pullAlgorithm();g(h,()=>(o._pulling=!1,o._pullAgain&&(o._pullAgain=!1,di(o)),null),m=>(Qe(o,m),null))}n(di,"ReadableByteStreamControllerCallPullIfNeeded");function Vp(o){Kf(o),o._pendingPullIntos=new S}n(Vp,"ReadableByteStreamControllerClearPendingPullIntos");function Vf(o,f){let h=!1;o._state==="closed"&&(h=!0);let m=Kp(f);f.readerType==="default"?Uf(o,m,h):N1(o,m,h)}n(Vf,"ReadableByteStreamControllerCommitPullIntoDescriptor");function Kp(o){let f=o.bytesFilled,h=o.elementSize;return new o.viewConstructor(o.buffer,o.byteOffset,f/h)}n(Kp,"ReadableByteStreamControllerConvertPullIntoDescriptor");function cs(o,f,h,m){o._queue.push({buffer:f,byteOffset:h,byteLength:m}),o._queueTotalSize+=m}n(cs,"ReadableByteStreamControllerEnqueueChunkToQueue");function Xp(o,f,h,m){let v;try{v=Hp(f,h,h+m)}catch(k){throw Qe(o,k),k}cs(o,v,0,m)}n(Xp,"ReadableByteStreamControllerEnqueueClonedChunkToQueue");function Jp(o,f){f.bytesFilled>0&&Xp(o,f.buffer,f.byteOffset,f.bytesFilled),en(o)}n(Jp,"ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue");function Qp(o,f){let h=Math.min(o._queueTotalSize,f.byteLength-f.bytesFilled),m=f.bytesFilled+h,v=h,k=!1,I=m%f.elementSize,L=m-I;L>=f.minimumFill&&(v=L-f.bytesFilled,k=!0);let N=o._queue;for(;v>0;){let q=N.peek(),U=Math.min(v,q.byteLength),W=f.byteOffset+f.bytesFilled;Zp(f.buffer,W,q.buffer,q.byteOffset,U),q.byteLength===U?N.shift():(q.byteOffset+=U,q.byteLength-=U),o._queueTotalSize-=U,em(o,U,f),v-=U}return k}n(Qp,"ReadableByteStreamControllerFillPullIntoDescriptorFromQueue");function em(o,f,h){h.bytesFilled+=f}n(em,"ReadableByteStreamControllerFillHeadPullIntoDescriptor");function tm(o){o._queueTotalSize===0&&o._closeRequested?(hs(o),Oa(o._controlledReadableByteStream)):di(o)}n(tm,"ReadableByteStreamControllerHandleQueueDrain");function Kf(o){o._byobRequest!==null&&(o._byobRequest._associatedReadableByteStreamController=void 0,o._byobRequest._view=null,o._byobRequest=null)}n(Kf,"ReadableByteStreamControllerInvalidateBYOBRequest");function Xf(o){for(;o._pendingPullIntos.length>0;){if(o._queueTotalSize===0)return;let f=o._pendingPullIntos.peek();Qp(o,f)&&(en(o),Vf(o._controlledReadableByteStream,f))}}n(Xf,"ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue");function I1(o){let f=o._controlledReadableByteStream._reader;for(;f._readRequests.length>0;){if(o._queueTotalSize===0)return;let h=f._readRequests.shift();im(o,h)}}n(I1,"ReadableByteStreamControllerProcessReadRequestsUsingQueue");function O1(o,f,h,m){let v=o._controlledReadableByteStream,k=f.constructor,I=C1(k),{byteOffset:L,byteLength:N}=f,q=h*I,U;try{U=rr(f.buffer)}catch(J){m._errorSteps(J);return}let W={buffer:U,bufferByteLength:U.byteLength,byteOffset:L,byteLength:N,bytesFilled:0,minimumFill:q,elementSize:I,viewConstructor:k,readerType:"byob"};if(o._pendingPullIntos.length>0){o._pendingPullIntos.push(W),sm(v,m);return}if(v._state==="closed"){let J=new k(W.buffer,W.byteOffset,0);m._closeSteps(J);return}if(o._queueTotalSize>0){if(Qp(o,W)){let J=Kp(W);tm(o),m._chunkSteps(J);return}if(o._closeRequested){let J=new TypeError("Insufficient bytes to fill elements in the given buffer");Qe(o,J),m._errorSteps(J);return}}o._pendingPullIntos.push(W),sm(v,m),di(o)}n(O1,"ReadableByteStreamControllerPullInto");function P1(o,f){f.readerType==="none"&&en(o);let h=o._controlledReadableByteStream;if(eu(h))for(;lm(h)>0;){let m=en(o);Vf(h,m)}}n(P1,"ReadableByteStreamControllerRespondInClosedState");function D1(o,f,h){if(em(o,f,h),h.readerType==="none"){Jp(o,h),Xf(o);return}if(h.bytesFilled<h.minimumFill)return;en(o);let m=h.bytesFilled%h.elementSize;if(m>0){let v=h.byteOffset+h.bytesFilled;Xp(o,h.buffer,v-m,m)}h.bytesFilled-=m,Vf(o._controlledReadableByteStream,h),Xf(o)}n(D1,"ReadableByteStreamControllerRespondInReadableState");function rm(o,f){let h=o._pendingPullIntos.peek();Kf(o),o._controlledReadableByteStream._state==="closed"?P1(o,h):D1(o,f,h),di(o)}n(rm,"ReadableByteStreamControllerRespondInternal");function en(o){return o._pendingPullIntos.shift()}n(en,"ReadableByteStreamControllerShiftPendingPullInto");function B1(o){let f=o._controlledReadableByteStream;return f._state!=="readable"||o._closeRequested||!o._started?!1:!!(qp(f)&&ls(f)>0||eu(f)&&lm(f)>0||nm(o)>0)}n(B1,"ReadableByteStreamControllerShouldCallPull");function hs(o){o._pullAlgorithm=void 0,o._cancelAlgorithm=void 0}n(hs,"ReadableByteStreamControllerClearAlgorithms");function Ea(o){let f=o._controlledReadableByteStream;if(!(o._closeRequested||f._state!=="readable")){if(o._queueTotalSize>0){o._closeRequested=!0;return}if(o._pendingPullIntos.length>0){let h=o._pendingPullIntos.peek();if(h.bytesFilled%h.elementSize!==0){let m=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Qe(o,m),m}}hs(o),Oa(f)}}n(Ea,"ReadableByteStreamControllerClose");function ps(o,f){let h=o._controlledReadableByteStream;if(o._closeRequested||h._state!=="readable")return;let{buffer:m,byteOffset:v,byteLength:k}=f;if(Dr(m))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");let I=rr(m);if(o._pendingPullIntos.length>0){let L=o._pendingPullIntos.peek();if(Dr(L.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");Kf(o),L.buffer=rr(L.buffer),L.readerType==="none"&&Jp(o,L)}if(qp(h))if(I1(o),ls(h)===0)cs(o,I,v,k);else{o._pendingPullIntos.length>0&&en(o);let L=new Uint8Array(I,v,k);Uf(h,L,!1)}else eu(h)?(cs(o,I,v,k),Xf(o)):cs(o,I,v,k);di(o)}n(ps,"ReadableByteStreamControllerEnqueue");function Qe(o,f){let h=o._controlledReadableByteStream;h._state==="readable"&&(Vp(o),Br(o),hs(o),Pm(h,f))}n(Qe,"ReadableByteStreamControllerError");function im(o,f){let h=o._queue.shift();o._queueTotalSize-=h.byteLength,tm(o);let m=new Uint8Array(h.buffer,h.byteOffset,h.byteLength);f._chunkSteps(m)}n(im,"ReadableByteStreamControllerFillReadRequestFromQueue");function Jf(o){if(o._byobRequest===null&&o._pendingPullIntos.length>0){let f=o._pendingPullIntos.peek(),h=new Uint8Array(f.buffer,f.byteOffset+f.bytesFilled,f.byteLength-f.bytesFilled),m=Object.create(ir.prototype);L1(m,o,h),o._byobRequest=m}return o._byobRequest}n(Jf,"ReadableByteStreamControllerGetBYOBRequest");function nm(o){let f=o._controlledReadableByteStream._state;return f==="errored"?null:f==="closed"?0:o._strategyHWM-o._queueTotalSize}n(nm,"ReadableByteStreamControllerGetDesiredSize");function ms(o,f){let h=o._pendingPullIntos.peek();if(o._controlledReadableByteStream._state==="closed"){if(f!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(f===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(h.bytesFilled+f>h.byteLength)throw new RangeError("bytesWritten out of range")}h.buffer=rr(h.buffer),rm(o,f)}n(ms,"ReadableByteStreamControllerRespond");function gs(o,f){let h=o._pendingPullIntos.peek();if(o._controlledReadableByteStream._state==="closed"){if(f.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(f.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(h.byteOffset+h.bytesFilled!==f.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(h.bufferByteLength!==f.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(h.bytesFilled+f.byteLength>h.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");let v=f.byteLength;h.buffer=rr(f.buffer),rm(o,v)}n(gs,"ReadableByteStreamControllerRespondWithNewView");function am(o,f,h,m,v,k,I){f._controlledReadableByteStream=o,f._pullAgain=!1,f._pulling=!1,f._byobRequest=null,f._queue=f._queueTotalSize=void 0,Br(f),f._closeRequested=!1,f._started=!1,f._strategyHWM=k,f._pullAlgorithm=m,f._cancelAlgorithm=v,f._autoAllocateChunkSize=I,f._pendingPullIntos=new S,o._readableStreamController=f;let L=h();g(u(L),()=>(f._started=!0,di(f),null),N=>(Qe(f,N),null))}n(am,"SetUpReadableByteStreamController");function F1(o,f,h){let m=Object.create(pt.prototype),v,k,I;f.start!==void 0?v=n(()=>f.start(m),"startAlgorithm"):v=n(()=>{},"startAlgorithm"),f.pull!==void 0?k=n(()=>f.pull(m),"pullAlgorithm"):k=n(()=>u(void 0),"pullAlgorithm"),f.cancel!==void 0?I=n(N=>f.cancel(N),"cancelAlgorithm"):I=n(()=>u(void 0),"cancelAlgorithm");let L=f.autoAllocateChunkSize;if(L===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");am(o,m,v,k,I,h,L)}n(F1,"SetUpReadableByteStreamControllerFromUnderlyingSource");function L1(o,f,h){o._associatedReadableByteStreamController=f,o._view=h}n(L1,"SetUpReadableStreamBYOBRequest");function Qf(o){return new TypeError(`ReadableStreamBYOBRequest.prototype.${o} can only be used on a ReadableStreamBYOBRequest`)}n(Qf,"byobRequestBrandCheckException");function ka(o){return new TypeError(`ReadableByteStreamController.prototype.${o} can only be used on a ReadableByteStreamController`)}n(ka,"byteStreamControllerBrandCheckException");function z1(o,f){Pt(o,f);let h=o==null?void 0:o.mode;return{mode:h===void 0?void 0:q1(h,`${f} has member 'mode' that`)}}n(z1,"convertReaderOptions");function q1(o,f){if(o=`${o}`,o!=="byob")throw new TypeError(`${f} '${o}' is not a valid enumeration value for ReadableStreamReaderMode`);return o}n(q1,"convertReadableStreamReaderMode");function M1(o,f){var h;Pt(o,f);let m=(h=o==null?void 0:o.min)!==null&&h!==void 0?h:1;return{min:Mf(m,`${f} has member 'min' that`)}}n(M1,"convertByobReadOptions");function om(o){return new Bt(o)}n(om,"AcquireReadableStreamBYOBReader");function sm(o,f){o._reader._readIntoRequests.push(f)}n(sm,"ReadableStreamAddReadIntoRequest");function N1(o,f,h){let v=o._reader._readIntoRequests.shift();h?v._closeSteps(f):v._chunkSteps(f)}n(N1,"ReadableStreamFulfillReadIntoRequest");function lm(o){return o._reader._readIntoRequests.length}n(lm,"ReadableStreamGetNumReadIntoRequests");function eu(o){let f=o._reader;return!(f===void 0||!ci(f))}n(eu,"ReadableStreamHasBYOBReader");let Su=class Su{constructor(f){if(tr(f,1,"ReadableStreamBYOBReader"),Nf(f,"First parameter"),zr(f))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!ui(f._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");O(this,f),this._readIntoRequests=new S}get closed(){return ci(this)?this._closedPromise:c(_s("closed"))}cancel(f=void 0){return ci(this)?this._ownerReadableStream===void 0?c(Be("cancel")):G(this,f):c(_s("cancel"))}read(f,h={}){if(!ci(this))return c(_s("read"));if(!ArrayBuffer.isView(f))return c(new TypeError("view must be an array buffer view"));if(f.byteLength===0)return c(new TypeError("view must have non-zero byteLength"));if(f.buffer.byteLength===0)return c(new TypeError("view's buffer must have non-zero byteLength"));if(Dr(f.buffer))return c(new TypeError("view's buffer has been detached"));let m;try{m=M1(h,"options")}catch(q){return c(q)}let v=m.min;if(v===0)return c(new TypeError("options.min must be greater than 0"));if(A1(f)){if(v>f.byteLength)return c(new RangeError("options.min must be less than or equal to view's byteLength"))}else if(v>f.length)return c(new RangeError("options.min must be less than or equal to view's length"));if(this._ownerReadableStream===void 0)return c(Be("read from"));let k,I,L=p((q,U)=>{k=q,I=U});return fm(this,f,v,{_chunkSteps:n(q=>k({value:q,done:!1}),"_chunkSteps"),_closeSteps:n(q=>k({value:q,done:!0}),"_closeSteps"),_errorSteps:n(q=>I(q),"_errorSteps")}),L}releaseLock(){if(!ci(this))throw _s("releaseLock");this._ownerReadableStream!==void 0&&U1(this)}};n(Su,"ReadableStreamBYOBReader");let Bt=Su;Object.defineProperties(Bt.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),a(Bt.prototype.cancel,"cancel"),a(Bt.prototype.read,"read"),a(Bt.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Bt.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function ci(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_readIntoRequests")?!1:o instanceof Bt}n(ci,"IsReadableStreamBYOBReader");function fm(o,f,h,m){let v=o._ownerReadableStream;v._disturbed=!0,v._state==="errored"?m._errorSteps(v._storedError):O1(v._readableStreamController,f,h,m)}n(fm,"ReadableStreamBYOBReaderRead");function U1(o){se(o);let f=new TypeError("Reader was released");um(o,f)}n(U1,"ReadableStreamBYOBReaderRelease");function um(o,f){let h=o._readIntoRequests;o._readIntoRequests=new S,h.forEach(m=>{m._errorSteps(f)})}n(um,"ReadableStreamBYOBReaderErrorReadIntoRequests");function _s(o){return new TypeError(`ReadableStreamBYOBReader.prototype.${o} can only be used on a ReadableStreamBYOBReader`)}n(_s,"byobReaderBrandCheckException");function Ta(o,f){let{highWaterMark:h}=o;if(h===void 0)return f;if(jp(h)||h<0)throw new RangeError("Invalid highWaterMark");return h}n(Ta,"ExtractHighWaterMark");function vs(o){let{size:f}=o;return f||(()=>1)}n(vs,"ExtractSizeAlgorithm");function bs(o,f){Pt(o,f);let h=o==null?void 0:o.highWaterMark,m=o==null?void 0:o.size;return{highWaterMark:h===void 0?void 0:qf(h),size:m===void 0?void 0:W1(m,`${f} has member 'size' that`)}}n(bs,"convertQueuingStrategy");function W1(o,f){return Je(o,f),h=>qf(o(h))}n(W1,"convertQueuingStrategySize");function j1(o,f){Pt(o,f);let h=o==null?void 0:o.abort,m=o==null?void 0:o.close,v=o==null?void 0:o.start,k=o==null?void 0:o.type,I=o==null?void 0:o.write;return{abort:h===void 0?void 0:Z1(h,o,`${f} has member 'abort' that`),close:m===void 0?void 0:H1(m,o,`${f} has member 'close' that`),start:v===void 0?void 0:$1(v,o,`${f} has member 'start' that`),write:I===void 0?void 0:Y1(I,o,`${f} has member 'write' that`),type:k}}n(j1,"convertUnderlyingSink");function Z1(o,f,h){return Je(o,h),m=>C(o,f,[m])}n(Z1,"convertUnderlyingSinkAbortCallback");function H1(o,f,h){return Je(o,h),()=>C(o,f,[])}n(H1,"convertUnderlyingSinkCloseCallback");function $1(o,f,h){return Je(o,h),m=>x(o,f,[m])}n($1,"convertUnderlyingSinkStartCallback");function Y1(o,f,h){return Je(o,h),(m,v)=>C(o,f,[m,v])}n(Y1,"convertUnderlyingSinkWriteCallback");function dm(o,f){if(!tn(o))throw new TypeError(`${f} is not a WritableStream.`)}n(dm,"assertWritableStream");function G1(o){if(typeof o!="object"||o===null)return!1;try{return typeof o.aborted=="boolean"}catch{return!1}}n(G1,"isAbortSignal");let V1=typeof AbortController=="function";function K1(){if(V1)return new AbortController}n(K1,"createAbortController");let xu=class xu{constructor(f={},h={}){f===void 0?f=null:Fp(f,"First parameter");let m=bs(h,"Second parameter"),v=j1(f,"First parameter");if(hm(this),v.type!==void 0)throw new RangeError("Invalid type is specified");let I=vs(m),L=Ta(m,1);uE(this,v,L,I)}get locked(){if(!tn(this))throw Es("locked");return rn(this)}abort(f=void 0){return tn(this)?rn(this)?c(new TypeError("Cannot abort a stream that already has a writer")):ys(this,f):c(Es("abort"))}close(){return tn(this)?rn(this)?c(new TypeError("Cannot close a stream that already has a writer")):Lt(this)?c(new TypeError("Cannot close an already-closing stream")):pm(this):c(Es("close"))}getWriter(){if(!tn(this))throw Es("getWriter");return cm(this)}};n(xu,"WritableStream");let Ft=xu;Object.defineProperties(Ft.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),a(Ft.prototype.abort,"abort"),a(Ft.prototype.close,"close"),a(Ft.prototype.getWriter,"getWriter"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Ft.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});function cm(o){return new mt(o)}n(cm,"AcquireWritableStreamDefaultWriter");function X1(o,f,h,m,v=1,k=()=>1){let I=Object.create(Ft.prototype);hm(I);let L=Object.create(Fr.prototype);return ym(I,L,o,f,h,m,v,k),I}n(X1,"CreateWritableStream");function hm(o){o._state="writable",o._storedError=void 0,o._writer=void 0,o._writableStreamController=void 0,o._writeRequests=new S,o._inFlightWriteRequest=void 0,o._closeRequest=void 0,o._inFlightCloseRequest=void 0,o._pendingAbortRequest=void 0,o._backpressure=!1}n(hm,"InitializeWritableStream");function tn(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_writableStreamController")?!1:o instanceof Ft}n(tn,"IsWritableStream");function rn(o){return o._writer!==void 0}n(rn,"IsWritableStreamLocked");function ys(o,f){var h;if(o._state==="closed"||o._state==="errored")return u(void 0);o._writableStreamController._abortReason=f,(h=o._writableStreamController._abortController)===null||h===void 0||h.abort(f);let m=o._state;if(m==="closed"||m==="errored")return u(void 0);if(o._pendingAbortRequest!==void 0)return o._pendingAbortRequest._promise;let v=!1;m==="erroring"&&(v=!0,f=void 0);let k=p((I,L)=>{o._pendingAbortRequest={_promise:void 0,_resolve:I,_reject:L,_reason:f,_wasAlreadyErroring:v}});return o._pendingAbortRequest._promise=k,v||ru(o,f),k}n(ys,"WritableStreamAbort");function pm(o){let f=o._state;if(f==="closed"||f==="errored")return c(new TypeError(`The stream (in ${f} state) is not in the writable state and cannot be closed`));let h=p((v,k)=>{let I={_resolve:v,_reject:k};o._closeRequest=I}),m=o._writer;return m!==void 0&&o._backpressure&&f==="writable"&&uu(m),dE(o._writableStreamController),h}n(pm,"WritableStreamClose");function J1(o){return p((h,m)=>{let v={_resolve:h,_reject:m};o._writeRequests.push(v)})}n(J1,"WritableStreamAddWriteRequest");function tu(o,f){if(o._state==="writable"){ru(o,f);return}iu(o)}n(tu,"WritableStreamDealWithRejection");function ru(o,f){let h=o._writableStreamController;o._state="erroring",o._storedError=f;let m=o._writer;m!==void 0&&gm(m,f),!iE(o)&&h._started&&iu(o)}n(ru,"WritableStreamStartErroring");function iu(o){o._state="errored",o._writableStreamController[B]();let f=o._storedError;if(o._writeRequests.forEach(v=>{v._reject(f)}),o._writeRequests=new S,o._pendingAbortRequest===void 0){ws(o);return}let h=o._pendingAbortRequest;if(o._pendingAbortRequest=void 0,h._wasAlreadyErroring){h._reject(f),ws(o);return}let m=o._writableStreamController[P](h._reason);g(m,()=>(h._resolve(),ws(o),null),v=>(h._reject(v),ws(o),null))}n(iu,"WritableStreamFinishErroring");function Q1(o){o._inFlightWriteRequest._resolve(void 0),o._inFlightWriteRequest=void 0}n(Q1,"WritableStreamFinishInFlightWrite");function eE(o,f){o._inFlightWriteRequest._reject(f),o._inFlightWriteRequest=void 0,tu(o,f)}n(eE,"WritableStreamFinishInFlightWriteWithError");function tE(o){o._inFlightCloseRequest._resolve(void 0),o._inFlightCloseRequest=void 0,o._state==="erroring"&&(o._storedError=void 0,o._pendingAbortRequest!==void 0&&(o._pendingAbortRequest._resolve(),o._pendingAbortRequest=void 0)),o._state="closed";let h=o._writer;h!==void 0&&Em(h)}n(tE,"WritableStreamFinishInFlightClose");function rE(o,f){o._inFlightCloseRequest._reject(f),o._inFlightCloseRequest=void 0,o._pendingAbortRequest!==void 0&&(o._pendingAbortRequest._reject(f),o._pendingAbortRequest=void 0),tu(o,f)}n(rE,"WritableStreamFinishInFlightCloseWithError");function Lt(o){return!(o._closeRequest===void 0&&o._inFlightCloseRequest===void 0)}n(Lt,"WritableStreamCloseQueuedOrInFlight");function iE(o){return!(o._inFlightWriteRequest===void 0&&o._inFlightCloseRequest===void 0)}n(iE,"WritableStreamHasOperationMarkedInFlight");function nE(o){o._inFlightCloseRequest=o._closeRequest,o._closeRequest=void 0}n(nE,"WritableStreamMarkCloseRequestInFlight");function aE(o){o._inFlightWriteRequest=o._writeRequests.shift()}n(aE,"WritableStreamMarkFirstWriteRequestInFlight");function ws(o){o._closeRequest!==void 0&&(o._closeRequest._reject(o._storedError),o._closeRequest=void 0);let f=o._writer;f!==void 0&&lu(f,o._storedError)}n(ws,"WritableStreamRejectCloseAndClosedPromiseIfNeeded");function nu(o,f){let h=o._writer;h!==void 0&&f!==o._backpressure&&(f?vE(h):uu(h)),o._backpressure=f}n(nu,"WritableStreamUpdateBackpressure");let Eu=class Eu{constructor(f){if(tr(f,1,"WritableStreamDefaultWriter"),dm(f,"First parameter"),rn(f))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=f,f._writer=this;let h=f._state;if(h==="writable")!Lt(f)&&f._backpressure?Ts(this):km(this),ks(this);else if(h==="erroring")fu(this,f._storedError),ks(this);else if(h==="closed")km(this),gE(this);else{let m=f._storedError;fu(this,m),xm(this,m)}}get closed(){return hi(this)?this._closedPromise:c(pi("closed"))}get desiredSize(){if(!hi(this))throw pi("desiredSize");if(this._ownerWritableStream===void 0)throw Aa("desiredSize");return fE(this)}get ready(){return hi(this)?this._readyPromise:c(pi("ready"))}abort(f=void 0){return hi(this)?this._ownerWritableStream===void 0?c(Aa("abort")):oE(this,f):c(pi("abort"))}close(){if(!hi(this))return c(pi("close"));let f=this._ownerWritableStream;return f===void 0?c(Aa("close")):Lt(f)?c(new TypeError("Cannot close an already-closing stream")):mm(this)}releaseLock(){if(!hi(this))throw pi("releaseLock");this._ownerWritableStream!==void 0&&_m(this)}write(f=void 0){return hi(this)?this._ownerWritableStream===void 0?c(Aa("write to")):vm(this,f):c(pi("write"))}};n(Eu,"WritableStreamDefaultWriter");let mt=Eu;Object.defineProperties(mt.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),a(mt.prototype.abort,"abort"),a(mt.prototype.close,"close"),a(mt.prototype.releaseLock,"releaseLock"),a(mt.prototype.write,"write"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(mt.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function hi(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_ownerWritableStream")?!1:o instanceof mt}n(hi,"IsWritableStreamDefaultWriter");function oE(o,f){let h=o._ownerWritableStream;return ys(h,f)}n(oE,"WritableStreamDefaultWriterAbort");function mm(o){let f=o._ownerWritableStream;return pm(f)}n(mm,"WritableStreamDefaultWriterClose");function sE(o){let f=o._ownerWritableStream,h=f._state;return Lt(f)||h==="closed"?u(void 0):h==="errored"?c(f._storedError):mm(o)}n(sE,"WritableStreamDefaultWriterCloseWithErrorPropagation");function lE(o,f){o._closedPromiseState==="pending"?lu(o,f):_E(o,f)}n(lE,"WritableStreamDefaultWriterEnsureClosedPromiseRejected");function gm(o,f){o._readyPromiseState==="pending"?Tm(o,f):bE(o,f)}n(gm,"WritableStreamDefaultWriterEnsureReadyPromiseRejected");function fE(o){let f=o._ownerWritableStream,h=f._state;return h==="errored"||h==="erroring"?null:h==="closed"?0:wm(f._writableStreamController)}n(fE,"WritableStreamDefaultWriterGetDesiredSize");function _m(o){let f=o._ownerWritableStream,h=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");gm(o,h),lE(o,h),f._writer=void 0,o._ownerWritableStream=void 0}n(_m,"WritableStreamDefaultWriterRelease");function vm(o,f){let h=o._ownerWritableStream,m=h._writableStreamController,v=cE(m,f);if(h!==o._ownerWritableStream)return c(Aa("write to"));let k=h._state;if(k==="errored")return c(h._storedError);if(Lt(h)||k==="closed")return c(new TypeError("The stream is closing or closed and cannot be written to"));if(k==="erroring")return c(h._storedError);let I=J1(h);return hE(m,f,v),I}n(vm,"WritableStreamDefaultWriterWrite");let bm={},ku=class ku{constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!au(this))throw su("abortReason");return this._abortReason}get signal(){if(!au(this))throw su("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(f=void 0){if(!au(this))throw su("error");this._controlledWritableStream._state==="writable"&&Sm(this,f)}[P](f){let h=this._abortAlgorithm(f);return Ss(this),h}[B](){Br(this)}};n(ku,"WritableStreamDefaultController");let Fr=ku;Object.defineProperties(Fr.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Fr.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function au(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_controlledWritableStream")?!1:o instanceof Fr}n(au,"IsWritableStreamDefaultController");function ym(o,f,h,m,v,k,I,L){f._controlledWritableStream=o,o._writableStreamController=f,f._queue=void 0,f._queueTotalSize=void 0,Br(f),f._abortReason=void 0,f._abortController=K1(),f._started=!1,f._strategySizeAlgorithm=L,f._strategyHWM=I,f._writeAlgorithm=m,f._closeAlgorithm=v,f._abortAlgorithm=k;let N=ou(f);nu(o,N);let q=h(),U=u(q);g(U,()=>(f._started=!0,xs(f),null),W=>(f._started=!0,tu(o,W),null))}n(ym,"SetUpWritableStreamDefaultController");function uE(o,f,h,m){let v=Object.create(Fr.prototype),k,I,L,N;f.start!==void 0?k=n(()=>f.start(v),"startAlgorithm"):k=n(()=>{},"startAlgorithm"),f.write!==void 0?I=n(q=>f.write(q,v),"writeAlgorithm"):I=n(()=>u(void 0),"writeAlgorithm"),f.close!==void 0?L=n(()=>f.close(),"closeAlgorithm"):L=n(()=>u(void 0),"closeAlgorithm"),f.abort!==void 0?N=n(q=>f.abort(q),"abortAlgorithm"):N=n(()=>u(void 0),"abortAlgorithm"),ym(o,v,k,I,L,N,h,m)}n(uE,"SetUpWritableStreamDefaultControllerFromUnderlyingSink");function Ss(o){o._writeAlgorithm=void 0,o._closeAlgorithm=void 0,o._abortAlgorithm=void 0,o._strategySizeAlgorithm=void 0}n(Ss,"WritableStreamDefaultControllerClearAlgorithms");function dE(o){Yf(o,bm,0),xs(o)}n(dE,"WritableStreamDefaultControllerClose");function cE(o,f){try{return o._strategySizeAlgorithm(f)}catch(h){return Ra(o,h),1}}n(cE,"WritableStreamDefaultControllerGetChunkSize");function wm(o){return o._strategyHWM-o._queueTotalSize}n(wm,"WritableStreamDefaultControllerGetDesiredSize");function hE(o,f,h){try{Yf(o,f,h)}catch(v){Ra(o,v);return}let m=o._controlledWritableStream;if(!Lt(m)&&m._state==="writable"){let v=ou(o);nu(m,v)}xs(o)}n(hE,"WritableStreamDefaultControllerWrite");function xs(o){let f=o._controlledWritableStream;if(!o._started||f._inFlightWriteRequest!==void 0)return;if(f._state==="erroring"){iu(f);return}if(o._queue.length===0)return;let m=R1(o);m===bm?pE(o):mE(o,m)}n(xs,"WritableStreamDefaultControllerAdvanceQueueIfNeeded");function Ra(o,f){o._controlledWritableStream._state==="writable"&&Sm(o,f)}n(Ra,"WritableStreamDefaultControllerErrorIfNeeded");function pE(o){let f=o._controlledWritableStream;nE(f),$f(o);let h=o._closeAlgorithm();Ss(o),g(h,()=>(tE(f),null),m=>(rE(f,m),null))}n(pE,"WritableStreamDefaultControllerProcessClose");function mE(o,f){let h=o._controlledWritableStream;aE(h);let m=o._writeAlgorithm(f);g(m,()=>{Q1(h);let v=h._state;if($f(o),!Lt(h)&&v==="writable"){let k=ou(o);nu(h,k)}return xs(o),null},v=>(h._state==="writable"&&Ss(o),eE(h,v),null))}n(mE,"WritableStreamDefaultControllerProcessWrite");function ou(o){return wm(o)<=0}n(ou,"WritableStreamDefaultControllerGetBackpressure");function Sm(o,f){let h=o._controlledWritableStream;Ss(o),ru(h,f)}n(Sm,"WritableStreamDefaultControllerError");function Es(o){return new TypeError(`WritableStream.prototype.${o} can only be used on a WritableStream`)}n(Es,"streamBrandCheckException$2");function su(o){return new TypeError(`WritableStreamDefaultController.prototype.${o} can only be used on a WritableStreamDefaultController`)}n(su,"defaultControllerBrandCheckException$2");function pi(o){return new TypeError(`WritableStreamDefaultWriter.prototype.${o} can only be used on a WritableStreamDefaultWriter`)}n(pi,"defaultWriterBrandCheckException");function Aa(o){return new TypeError("Cannot "+o+" a stream using a released writer")}n(Aa,"defaultWriterLockException");function ks(o){o._closedPromise=p((f,h)=>{o._closedPromise_resolve=f,o._closedPromise_reject=h,o._closedPromiseState="pending"})}n(ks,"defaultWriterClosedPromiseInitialize");function xm(o,f){ks(o),lu(o,f)}n(xm,"defaultWriterClosedPromiseInitializeAsRejected");function gE(o){ks(o),Em(o)}n(gE,"defaultWriterClosedPromiseInitializeAsResolved");function lu(o,f){o._closedPromise_reject!==void 0&&(T(o._closedPromise),o._closedPromise_reject(f),o._closedPromise_resolve=void 0,o._closedPromise_reject=void 0,o._closedPromiseState="rejected")}n(lu,"defaultWriterClosedPromiseReject");function _E(o,f){xm(o,f)}n(_E,"defaultWriterClosedPromiseResetToRejected");function Em(o){o._closedPromise_resolve!==void 0&&(o._closedPromise_resolve(void 0),o._closedPromise_resolve=void 0,o._closedPromise_reject=void 0,o._closedPromiseState="resolved")}n(Em,"defaultWriterClosedPromiseResolve");function Ts(o){o._readyPromise=p((f,h)=>{o._readyPromise_resolve=f,o._readyPromise_reject=h}),o._readyPromiseState="pending"}n(Ts,"defaultWriterReadyPromiseInitialize");function fu(o,f){Ts(o),Tm(o,f)}n(fu,"defaultWriterReadyPromiseInitializeAsRejected");function km(o){Ts(o),uu(o)}n(km,"defaultWriterReadyPromiseInitializeAsResolved");function Tm(o,f){o._readyPromise_reject!==void 0&&(T(o._readyPromise),o._readyPromise_reject(f),o._readyPromise_resolve=void 0,o._readyPromise_reject=void 0,o._readyPromiseState="rejected")}n(Tm,"defaultWriterReadyPromiseReject");function vE(o){Ts(o)}n(vE,"defaultWriterReadyPromiseReset");function bE(o,f){fu(o,f)}n(bE,"defaultWriterReadyPromiseResetToRejected");function uu(o){o._readyPromise_resolve!==void 0&&(o._readyPromise_resolve(void 0),o._readyPromise_resolve=void 0,o._readyPromise_reject=void 0,o._readyPromiseState="fulfilled")}n(uu,"defaultWriterReadyPromiseResolve");function yE(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof global<"u")return global}n(yE,"getGlobals");let du=yE();function wE(o){if(!(typeof o=="function"||typeof o=="object")||o.name!=="DOMException")return!1;try{return new o,!0}catch{return!1}}n(wE,"isDOMExceptionConstructor");function SE(){let o=du==null?void 0:du.DOMException;return wE(o)?o:void 0}n(SE,"getFromGlobal");function xE(){let o=n(function(h,m){this.message=h||"",this.name=m||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)},"DOMException");return a(o,"DOMException"),o.prototype=Object.create(Error.prototype),Object.defineProperty(o.prototype,"constructor",{value:o,writable:!0,configurable:!0}),o}n(xE,"createPolyfill");let EE=SE()||xE();function Rm(o,f,h,m,v,k){let I=Qi(o),L=cm(f);o._disturbed=!0;let N=!1,q=u(void 0);return p((U,W)=>{let J;if(k!==void 0){if(J=n(()=>{let M=k.reason!==void 0?k.reason:new EE("Aborted","AbortError"),j=[];m||j.push(()=>f._state==="writable"?ys(f,M):u(void 0)),v||j.push(()=>o._state==="readable"?vt(o,M):u(void 0)),Fe(()=>Promise.all(j.map(Q=>Q())),!0,M)},"abortAlgorithm"),k.aborted){J();return}k.addEventListener("abort",J)}function bt(){return p((M,j)=>{function Q(Ue){Ue?M():E(un(),Q,j)}n(Q,"next"),Q(!1)})}n(bt,"pipeLoop");function un(){return N?u(!0):E(L._readyPromise,()=>p((M,j)=>{Sa(I,{_chunkSteps:n(Q=>{q=E(vm(L,Q),void 0,t),M(!1)},"_chunkSteps"),_closeSteps:n(()=>M(!0),"_closeSteps"),_errorSteps:j})}))}if(n(un,"pipeStep"),nr(o,I._closedPromise,M=>(m?et(!0,M):Fe(()=>ys(f,M),!0,M),null)),nr(f,L._closedPromise,M=>(v?et(!0,M):Fe(()=>vt(o,M),!0,M),null)),Ce(o,I._closedPromise,()=>(h?et():Fe(()=>sE(L)),null)),Lt(f)||f._state==="closed"){let M=new TypeError("the destination writable stream closed before all data could be piped to it");v?et(!0,M):Fe(()=>vt(o,M),!0,M)}T(bt());function qr(){let M=q;return E(q,()=>M!==q?qr():void 0)}n(qr,"waitForWritesToFinish");function nr(M,j,Q){M._state==="errored"?Q(M._storedError):b(j,Q)}n(nr,"isOrBecomesErrored");function Ce(M,j,Q){M._state==="closed"?Q():_(j,Q)}n(Ce,"isOrBecomesClosed");function Fe(M,j,Q){if(N)return;N=!0,f._state==="writable"&&!Lt(f)?_(qr(),Ue):Ue();function Ue(){return g(M(),()=>ar(j,Q),dn=>ar(!0,dn)),null}n(Ue,"doTheRest")}n(Fe,"shutdownWithAction");function et(M,j){N||(N=!0,f._state==="writable"&&!Lt(f)?_(qr(),()=>ar(M,j)):ar(M,j))}n(et,"shutdown");function ar(M,j){return _m(L),se(I),k!==void 0&&k.removeEventListener("abort",J),M?W(j):U(void 0),null}n(ar,"finalize")})}n(Rm,"ReadableStreamPipeTo");let Tu=class Tu{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Rs(this))throw Cs("desiredSize");return cu(this)}close(){if(!Rs(this))throw Cs("close");if(!an(this))throw new TypeError("The stream is not in a state that permits close");mi(this)}enqueue(f=void 0){if(!Rs(this))throw Cs("enqueue");if(!an(this))throw new TypeError("The stream is not in a state that permits enqueue");return nn(this,f)}error(f=void 0){if(!Rs(this))throw Cs("error");_t(this,f)}[D](f){Br(this);let h=this._cancelAlgorithm(f);return As(this),h}[F](f){let h=this._controlledReadableStream;if(this._queue.length>0){let m=$f(this);this._closeRequested&&this._queue.length===0?(As(this),Oa(h)):Ca(this),f._chunkSteps(m)}else zp(h,f),Ca(this)}[z](){}};n(Tu,"ReadableStreamDefaultController");let gt=Tu;Object.defineProperties(gt.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),a(gt.prototype.close,"close"),a(gt.prototype.enqueue,"enqueue"),a(gt.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(gt.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function Rs(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_controlledReadableStream")?!1:o instanceof gt}n(Rs,"IsReadableStreamDefaultController");function Ca(o){if(!Am(o))return;if(o._pulling){o._pullAgain=!0;return}o._pulling=!0;let h=o._pullAlgorithm();g(h,()=>(o._pulling=!1,o._pullAgain&&(o._pullAgain=!1,Ca(o)),null),m=>(_t(o,m),null))}n(Ca,"ReadableStreamDefaultControllerCallPullIfNeeded");function Am(o){let f=o._controlledReadableStream;return!an(o)||!o._started?!1:!!(zr(f)&&ls(f)>0||cu(o)>0)}n(Am,"ReadableStreamDefaultControllerShouldCallPull");function As(o){o._pullAlgorithm=void 0,o._cancelAlgorithm=void 0,o._strategySizeAlgorithm=void 0}n(As,"ReadableStreamDefaultControllerClearAlgorithms");function mi(o){if(!an(o))return;let f=o._controlledReadableStream;o._closeRequested=!0,o._queue.length===0&&(As(o),Oa(f))}n(mi,"ReadableStreamDefaultControllerClose");function nn(o,f){if(!an(o))return;let h=o._controlledReadableStream;if(zr(h)&&ls(h)>0)Uf(h,f,!1);else{let m;try{m=o._strategySizeAlgorithm(f)}catch(v){throw _t(o,v),v}try{Yf(o,f,m)}catch(v){throw _t(o,v),v}}Ca(o)}n(nn,"ReadableStreamDefaultControllerEnqueue");function _t(o,f){let h=o._controlledReadableStream;h._state==="readable"&&(Br(o),As(o),Pm(h,f))}n(_t,"ReadableStreamDefaultControllerError");function cu(o){let f=o._controlledReadableStream._state;return f==="errored"?null:f==="closed"?0:o._strategyHWM-o._queueTotalSize}n(cu,"ReadableStreamDefaultControllerGetDesiredSize");function kE(o){return!Am(o)}n(kE,"ReadableStreamDefaultControllerHasBackpressure");function an(o){let f=o._controlledReadableStream._state;return!o._closeRequested&&f==="readable"}n(an,"ReadableStreamDefaultControllerCanCloseOrEnqueue");function Cm(o,f,h,m,v,k,I){f._controlledReadableStream=o,f._queue=void 0,f._queueTotalSize=void 0,Br(f),f._started=!1,f._closeRequested=!1,f._pullAgain=!1,f._pulling=!1,f._strategySizeAlgorithm=I,f._strategyHWM=k,f._pullAlgorithm=m,f._cancelAlgorithm=v,o._readableStreamController=f;let L=h();g(u(L),()=>(f._started=!0,Ca(f),null),N=>(_t(f,N),null))}n(Cm,"SetUpReadableStreamDefaultController");function TE(o,f,h,m){let v=Object.create(gt.prototype),k,I,L;f.start!==void 0?k=n(()=>f.start(v),"startAlgorithm"):k=n(()=>{},"startAlgorithm"),f.pull!==void 0?I=n(()=>f.pull(v),"pullAlgorithm"):I=n(()=>u(void 0),"pullAlgorithm"),f.cancel!==void 0?L=n(N=>f.cancel(N),"cancelAlgorithm"):L=n(()=>u(void 0),"cancelAlgorithm"),Cm(o,v,k,I,L,h,m)}n(TE,"SetUpReadableStreamDefaultControllerFromUnderlyingSource");function Cs(o){return new TypeError(`ReadableStreamDefaultController.prototype.${o} can only be used on a ReadableStreamDefaultController`)}n(Cs,"defaultControllerBrandCheckException$1");function RE(o,f){return ui(o._readableStreamController)?CE(o):AE(o)}n(RE,"ReadableStreamTee");function AE(o,f){let h=Qi(o),m=!1,v=!1,k=!1,I=!1,L,N,q,U,W,J=p(Ce=>{W=Ce});function bt(){return m?(v=!0,u(void 0)):(m=!0,Sa(h,{_chunkSteps:n(Fe=>{y(()=>{v=!1;let et=Fe,ar=Fe;k||nn(q._readableStreamController,et),I||nn(U._readableStreamController,ar),m=!1,v&&bt()})},"_chunkSteps"),_closeSteps:n(()=>{m=!1,k||mi(q._readableStreamController),I||mi(U._readableStreamController),(!k||!I)&&W(void 0)},"_closeSteps"),_errorSteps:n(()=>{m=!1},"_errorSteps")}),u(void 0))}n(bt,"pullAlgorithm");function un(Ce){if(k=!0,L=Ce,I){let Fe=xa([L,N]),et=vt(o,Fe);W(et)}return J}n(un,"cancel1Algorithm");function qr(Ce){if(I=!0,N=Ce,k){let Fe=xa([L,N]),et=vt(o,Fe);W(et)}return J}n(qr,"cancel2Algorithm");function nr(){}return n(nr,"startAlgorithm"),q=Ia(nr,bt,un),U=Ia(nr,bt,qr),b(h._closedPromise,Ce=>(_t(q._readableStreamController,Ce),_t(U._readableStreamController,Ce),(!k||!I)&&W(void 0),null)),[q,U]}n(AE,"ReadableStreamDefaultTee");function CE(o){let f=Qi(o),h=!1,m=!1,v=!1,k=!1,I=!1,L,N,q,U,W,J=p(M=>{W=M});function bt(M){b(M._closedPromise,j=>(M!==f||(Qe(q._readableStreamController,j),Qe(U._readableStreamController,j),(!k||!I)&&W(void 0)),null))}n(bt,"forwardReaderError");function un(){ci(f)&&(se(f),f=Qi(o),bt(f)),Sa(f,{_chunkSteps:n(j=>{y(()=>{m=!1,v=!1;let Q=j,Ue=j;if(!k&&!I)try{Ue=Yp(j)}catch(dn){Qe(q._readableStreamController,dn),Qe(U._readableStreamController,dn),W(vt(o,dn));return}k||ps(q._readableStreamController,Q),I||ps(U._readableStreamController,Ue),h=!1,m?nr():v&&Ce()})},"_chunkSteps"),_closeSteps:n(()=>{h=!1,k||Ea(q._readableStreamController),I||Ea(U._readableStreamController),q._readableStreamController._pendingPullIntos.length>0&&ms(q._readableStreamController,0),U._readableStreamController._pendingPullIntos.length>0&&ms(U._readableStreamController,0),(!k||!I)&&W(void 0)},"_closeSteps"),_errorSteps:n(()=>{h=!1},"_errorSteps")})}n(un,"pullWithDefaultReader");function qr(M,j){Pr(f)&&(se(f),f=om(o),bt(f));let Q=j?U:q,Ue=j?q:U;fm(f,M,1,{_chunkSteps:n(cn=>{y(()=>{m=!1,v=!1;let hn=j?I:k;if(j?k:I)hn||gs(Q._readableStreamController,cn);else{let Hm;try{Hm=Yp(cn)}catch(Pu){Qe(Q._readableStreamController,Pu),Qe(Ue._readableStreamController,Pu),W(vt(o,Pu));return}hn||gs(Q._readableStreamController,cn),ps(Ue._readableStreamController,Hm)}h=!1,m?nr():v&&Ce()})},"_chunkSteps"),_closeSteps:n(cn=>{h=!1;let hn=j?I:k,Bs=j?k:I;hn||Ea(Q._readableStreamController),Bs||Ea(Ue._readableStreamController),cn!==void 0&&(hn||gs(Q._readableStreamController,cn),!Bs&&Ue._readableStreamController._pendingPullIntos.length>0&&ms(Ue._readableStreamController,0)),(!hn||!Bs)&&W(void 0)},"_closeSteps"),_errorSteps:n(()=>{h=!1},"_errorSteps")})}n(qr,"pullWithBYOBReader");function nr(){if(h)return m=!0,u(void 0);h=!0;let M=Jf(q._readableStreamController);return M===null?un():qr(M._view,!1),u(void 0)}n(nr,"pull1Algorithm");function Ce(){if(h)return v=!0,u(void 0);h=!0;let M=Jf(U._readableStreamController);return M===null?un():qr(M._view,!0),u(void 0)}n(Ce,"pull2Algorithm");function Fe(M){if(k=!0,L=M,I){let j=xa([L,N]),Q=vt(o,j);W(Q)}return J}n(Fe,"cancel1Algorithm");function et(M){if(I=!0,N=M,k){let j=xa([L,N]),Q=vt(o,j);W(Q)}return J}n(et,"cancel2Algorithm");function ar(){}return n(ar,"startAlgorithm"),q=Om(ar,nr,Fe),U=Om(ar,Ce,et),bt(f),[q,U]}n(CE,"ReadableByteStreamTee");function IE(o){return r(o)&&typeof o.getReader<"u"}n(IE,"isReadableStreamLike");function OE(o){return IE(o)?DE(o.getReader()):PE(o)}n(OE,"ReadableStreamFrom");function PE(o){let f,h=$p(o,"async"),m=t;function v(){let I;try{I=x1(h)}catch(N){return c(N)}let L=u(I);return A(L,N=>{if(!r(N))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(E1(N))mi(f._readableStreamController);else{let U=k1(N);nn(f._readableStreamController,U)}})}n(v,"pullAlgorithm");function k(I){let L=h.iterator,N;try{N=ds(L,"return")}catch(W){return c(W)}if(N===void 0)return u(void 0);let q;try{q=x(N,L,[I])}catch(W){return c(W)}let U=u(q);return A(U,W=>{if(!r(W))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})}return n(k,"cancelAlgorithm"),f=Ia(m,v,k,0),f}n(PE,"ReadableStreamFromIterable");function DE(o){let f,h=t;function m(){let k;try{k=o.read()}catch(I){return c(I)}return A(k,I=>{if(!r(I))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if(I.done)mi(f._readableStreamController);else{let L=I.value;nn(f._readableStreamController,L)}})}n(m,"pullAlgorithm");function v(k){try{return u(o.cancel(k))}catch(I){return c(I)}}return n(v,"cancelAlgorithm"),f=Ia(h,m,v,0),f}n(DE,"ReadableStreamFromDefaultReader");function BE(o,f){Pt(o,f);let h=o,m=h==null?void 0:h.autoAllocateChunkSize,v=h==null?void 0:h.cancel,k=h==null?void 0:h.pull,I=h==null?void 0:h.start,L=h==null?void 0:h.type;return{autoAllocateChunkSize:m===void 0?void 0:Mf(m,`${f} has member 'autoAllocateChunkSize' that`),cancel:v===void 0?void 0:FE(v,h,`${f} has member 'cancel' that`),pull:k===void 0?void 0:LE(k,h,`${f} has member 'pull' that`),start:I===void 0?void 0:zE(I,h,`${f} has member 'start' that`),type:L===void 0?void 0:qE(L,`${f} has member 'type' that`)}}n(BE,"convertUnderlyingDefaultOrByteSource");function FE(o,f,h){return Je(o,h),m=>C(o,f,[m])}n(FE,"convertUnderlyingSourceCancelCallback");function LE(o,f,h){return Je(o,h),m=>C(o,f,[m])}n(LE,"convertUnderlyingSourcePullCallback");function zE(o,f,h){return Je(o,h),m=>x(o,f,[m])}n(zE,"convertUnderlyingSourceStartCallback");function qE(o,f){if(o=`${o}`,o!=="bytes")throw new TypeError(`${f} '${o}' is not a valid enumeration value for ReadableStreamType`);return o}n(qE,"convertReadableStreamType");function ME(o,f){return Pt(o,f),{preventCancel:!!(o==null?void 0:o.preventCancel)}}n(ME,"convertIteratorOptions");function Im(o,f){Pt(o,f);let h=o==null?void 0:o.preventAbort,m=o==null?void 0:o.preventCancel,v=o==null?void 0:o.preventClose,k=o==null?void 0:o.signal;return k!==void 0&&NE(k,`${f} has member 'signal' that`),{preventAbort:!!h,preventCancel:!!m,preventClose:!!v,signal:k}}n(Im,"convertPipeOptions");function NE(o,f){if(!G1(o))throw new TypeError(`${f} is not an AbortSignal.`)}n(NE,"assertAbortSignal");function UE(o,f){Pt(o,f);let h=o==null?void 0:o.readable;zf(h,"readable","ReadableWritablePair"),Nf(h,`${f} has member 'readable' that`);let m=o==null?void 0:o.writable;return zf(m,"writable","ReadableWritablePair"),dm(m,`${f} has member 'writable' that`),{readable:h,writable:m}}n(UE,"convertReadableWritablePair");let Ru=class Ru{constructor(f={},h={}){f===void 0?f=null:Fp(f,"First parameter");let m=bs(h,"Second parameter"),v=BE(f,"First parameter");if(hu(this),v.type==="bytes"){if(m.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");let k=Ta(m,0);F1(this,v,k)}else{let k=vs(m),I=Ta(m,1);TE(this,v,I,k)}}get locked(){if(!Lr(this))throw gi("locked");return zr(this)}cancel(f=void 0){return Lr(this)?zr(this)?c(new TypeError("Cannot cancel a stream that already has a reader")):vt(this,f):c(gi("cancel"))}getReader(f=void 0){if(!Lr(this))throw gi("getReader");return z1(f,"First parameter").mode===void 0?Qi(this):om(this)}pipeThrough(f,h={}){if(!Lr(this))throw gi("pipeThrough");tr(f,1,"pipeThrough");let m=UE(f,"First parameter"),v=Im(h,"Second parameter");if(zr(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(rn(m.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");let k=Rm(this,m.writable,v.preventClose,v.preventAbort,v.preventCancel,v.signal);return T(k),m.readable}pipeTo(f,h={}){if(!Lr(this))return c(gi("pipeTo"));if(f===void 0)return c("Parameter 1 is required in 'pipeTo'.");if(!tn(f))return c(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let m;try{m=Im(h,"Second parameter")}catch(v){return c(v)}return zr(this)?c(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):rn(f)?c(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Rm(this,f,m.preventClose,m.preventAbort,m.preventCancel,m.signal)}tee(){if(!Lr(this))throw gi("tee");let f=RE(this);return xa(f)}values(f=void 0){if(!Lr(this))throw gi("values");let h=ME(f,"First parameter");return w1(this,h.preventCancel)}[Hf](f){return this.values(f)}static from(f){return OE(f)}};n(Ru,"ReadableStream");let be=Ru;Object.defineProperties(be,{from:{enumerable:!0}}),Object.defineProperties(be.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),a(be.from,"from"),a(be.prototype.cancel,"cancel"),a(be.prototype.getReader,"getReader"),a(be.prototype.pipeThrough,"pipeThrough"),a(be.prototype.pipeTo,"pipeTo"),a(be.prototype.tee,"tee"),a(be.prototype.values,"values"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(be.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(be.prototype,Hf,{value:be.prototype.values,writable:!0,configurable:!0});function Ia(o,f,h,m=1,v=()=>1){let k=Object.create(be.prototype);hu(k);let I=Object.create(gt.prototype);return Cm(k,I,o,f,h,m,v),k}n(Ia,"CreateReadableStream");function Om(o,f,h){let m=Object.create(be.prototype);hu(m);let v=Object.create(pt.prototype);return am(m,v,o,f,h,0,void 0),m}n(Om,"CreateReadableByteStream");function hu(o){o._state="readable",o._reader=void 0,o._storedError=void 0,o._disturbed=!1}n(hu,"InitializeReadableStream");function Lr(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_readableStreamController")?!1:o instanceof be}n(Lr,"IsReadableStream");function zr(o){return o._reader!==void 0}n(zr,"IsReadableStreamLocked");function vt(o,f){if(o._disturbed=!0,o._state==="closed")return u(void 0);if(o._state==="errored")return c(o._storedError);Oa(o);let h=o._reader;if(h!==void 0&&ci(h)){let v=h._readIntoRequests;h._readIntoRequests=new S,v.forEach(k=>{k._closeSteps(void 0)})}let m=o._readableStreamController[D](f);return A(m,t)}n(vt,"ReadableStreamCancel");function Oa(o){o._state="closed";let f=o._reader;if(f!==void 0&&(Dp(f),Pr(f))){let h=f._readRequests;f._readRequests=new S,h.forEach(m=>{m._closeSteps()})}}n(Oa,"ReadableStreamClose");function Pm(o,f){o._state="errored",o._storedError=f;let h=o._reader;h!==void 0&&(Ne(h,f),Pr(h)?Mp(h,f):um(h,f))}n(Pm,"ReadableStreamError");function gi(o){return new TypeError(`ReadableStream.prototype.${o} can only be used on a ReadableStream`)}n(gi,"streamBrandCheckException$1");function Dm(o,f){Pt(o,f);let h=o==null?void 0:o.highWaterMark;return zf(h,"highWaterMark","QueuingStrategyInit"),{highWaterMark:qf(h)}}n(Dm,"convertQueuingStrategyInit");let Bm=n(o=>o.byteLength,"byteLengthSizeFunction");a(Bm,"size");let Au=class Au{constructor(f){tr(f,1,"ByteLengthQueuingStrategy"),f=Dm(f,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=f.highWaterMark}get highWaterMark(){if(!Lm(this))throw Fm("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!Lm(this))throw Fm("size");return Bm}};n(Au,"ByteLengthQueuingStrategy");let on=Au;Object.defineProperties(on.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(on.prototype,Symbol.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function Fm(o){return new TypeError(`ByteLengthQueuingStrategy.prototype.${o} can only be used on a ByteLengthQueuingStrategy`)}n(Fm,"byteLengthBrandCheckException");function Lm(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_byteLengthQueuingStrategyHighWaterMark")?!1:o instanceof on}n(Lm,"IsByteLengthQueuingStrategy");let zm=n(()=>1,"countSizeFunction");a(zm,"size");let Cu=class Cu{constructor(f){tr(f,1,"CountQueuingStrategy"),f=Dm(f,"First parameter"),this._countQueuingStrategyHighWaterMark=f.highWaterMark}get highWaterMark(){if(!Mm(this))throw qm("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!Mm(this))throw qm("size");return zm}};n(Cu,"CountQueuingStrategy");let sn=Cu;Object.defineProperties(sn.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(sn.prototype,Symbol.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function qm(o){return new TypeError(`CountQueuingStrategy.prototype.${o} can only be used on a CountQueuingStrategy`)}n(qm,"countBrandCheckException");function Mm(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_countQueuingStrategyHighWaterMark")?!1:o instanceof sn}n(Mm,"IsCountQueuingStrategy");function WE(o,f){Pt(o,f);let h=o==null?void 0:o.cancel,m=o==null?void 0:o.flush,v=o==null?void 0:o.readableType,k=o==null?void 0:o.start,I=o==null?void 0:o.transform,L=o==null?void 0:o.writableType;return{cancel:h===void 0?void 0:$E(h,o,`${f} has member 'cancel' that`),flush:m===void 0?void 0:jE(m,o,`${f} has member 'flush' that`),readableType:v,start:k===void 0?void 0:ZE(k,o,`${f} has member 'start' that`),transform:I===void 0?void 0:HE(I,o,`${f} has member 'transform' that`),writableType:L}}n(WE,"convertTransformer");function jE(o,f,h){return Je(o,h),m=>C(o,f,[m])}n(jE,"convertTransformerFlushCallback");function ZE(o,f,h){return Je(o,h),m=>x(o,f,[m])}n(ZE,"convertTransformerStartCallback");function HE(o,f,h){return Je(o,h),(m,v)=>C(o,f,[m,v])}n(HE,"convertTransformerTransformCallback");function $E(o,f,h){return Je(o,h),m=>C(o,f,[m])}n($E,"convertTransformerCancelCallback");let Iu=class Iu{constructor(f={},h={},m={}){f===void 0&&(f=null);let v=bs(h,"Second parameter"),k=bs(m,"Third parameter"),I=WE(f,"First parameter");if(I.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(I.writableType!==void 0)throw new RangeError("Invalid writableType specified");let L=Ta(k,0),N=vs(k),q=Ta(v,1),U=vs(v),W,J=p(bt=>{W=bt});YE(this,J,q,U,L,N),VE(this,I),I.start!==void 0?W(I.start(this._transformStreamController)):W(void 0)}get readable(){if(!Nm(this))throw Zm("readable");return this._readable}get writable(){if(!Nm(this))throw Zm("writable");return this._writable}};n(Iu,"TransformStream");let ln=Iu;Object.defineProperties(ln.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(ln.prototype,Symbol.toStringTag,{value:"TransformStream",configurable:!0});function YE(o,f,h,m,v,k){function I(){return f}n(I,"startAlgorithm");function L(J){return JE(o,J)}n(L,"writeAlgorithm");function N(J){return QE(o,J)}n(N,"abortAlgorithm");function q(){return ek(o)}n(q,"closeAlgorithm"),o._writable=X1(I,L,q,N,h,m);function U(){return tk(o)}n(U,"pullAlgorithm");function W(J){return rk(o,J)}n(W,"cancelAlgorithm"),o._readable=Ia(I,U,W,v,k),o._backpressure=void 0,o._backpressureChangePromise=void 0,o._backpressureChangePromise_resolve=void 0,Is(o,!0),o._transformStreamController=void 0}n(YE,"InitializeTransformStream");function Nm(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_transformStreamController")?!1:o instanceof ln}n(Nm,"IsTransformStream");function Um(o,f){_t(o._readable._readableStreamController,f),pu(o,f)}n(Um,"TransformStreamError");function pu(o,f){Ps(o._transformStreamController),Ra(o._writable._writableStreamController,f),mu(o)}n(pu,"TransformStreamErrorWritableAndUnblockWrite");function mu(o){o._backpressure&&Is(o,!1)}n(mu,"TransformStreamUnblockWrite");function Is(o,f){o._backpressureChangePromise!==void 0&&o._backpressureChangePromise_resolve(),o._backpressureChangePromise=p(h=>{o._backpressureChangePromise_resolve=h}),o._backpressure=f}n(Is,"TransformStreamSetBackpressure");let Ou=class Ou{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Os(this))throw Ds("desiredSize");let f=this._controlledTransformStream._readable._readableStreamController;return cu(f)}enqueue(f=void 0){if(!Os(this))throw Ds("enqueue");Wm(this,f)}error(f=void 0){if(!Os(this))throw Ds("error");KE(this,f)}terminate(){if(!Os(this))throw Ds("terminate");XE(this)}};n(Ou,"TransformStreamDefaultController");let zt=Ou;Object.defineProperties(zt.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),a(zt.prototype.enqueue,"enqueue"),a(zt.prototype.error,"error"),a(zt.prototype.terminate,"terminate"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(zt.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function Os(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_controlledTransformStream")?!1:o instanceof zt}n(Os,"IsTransformStreamDefaultController");function GE(o,f,h,m,v){f._controlledTransformStream=o,o._transformStreamController=f,f._transformAlgorithm=h,f._flushAlgorithm=m,f._cancelAlgorithm=v,f._finishPromise=void 0,f._finishPromise_resolve=void 0,f._finishPromise_reject=void 0}n(GE,"SetUpTransformStreamDefaultController");function VE(o,f){let h=Object.create(zt.prototype),m,v,k;f.transform!==void 0?m=n(I=>f.transform(I,h),"transformAlgorithm"):m=n(I=>{try{return Wm(h,I),u(void 0)}catch(L){return c(L)}},"transformAlgorithm"),f.flush!==void 0?v=n(()=>f.flush(h),"flushAlgorithm"):v=n(()=>u(void 0),"flushAlgorithm"),f.cancel!==void 0?k=n(I=>f.cancel(I),"cancelAlgorithm"):k=n(()=>u(void 0),"cancelAlgorithm"),GE(o,h,m,v,k)}n(VE,"SetUpTransformStreamDefaultControllerFromTransformer");function Ps(o){o._transformAlgorithm=void 0,o._flushAlgorithm=void 0,o._cancelAlgorithm=void 0}n(Ps,"TransformStreamDefaultControllerClearAlgorithms");function Wm(o,f){let h=o._controlledTransformStream,m=h._readable._readableStreamController;if(!an(m))throw new TypeError("Readable side is not in a state that permits enqueue");try{nn(m,f)}catch(k){throw pu(h,k),h._readable._storedError}kE(m)!==h._backpressure&&Is(h,!0)}n(Wm,"TransformStreamDefaultControllerEnqueue");function KE(o,f){Um(o._controlledTransformStream,f)}n(KE,"TransformStreamDefaultControllerError");function jm(o,f){let h=o._transformAlgorithm(f);return A(h,void 0,m=>{throw Um(o._controlledTransformStream,m),m})}n(jm,"TransformStreamDefaultControllerPerformTransform");function XE(o){let f=o._controlledTransformStream,h=f._readable._readableStreamController;mi(h);let m=new TypeError("TransformStream terminated");pu(f,m)}n(XE,"TransformStreamDefaultControllerTerminate");function JE(o,f){let h=o._transformStreamController;if(o._backpressure){let m=o._backpressureChangePromise;return A(m,()=>{let v=o._writable;if(v._state==="erroring")throw v._storedError;return jm(h,f)})}return jm(h,f)}n(JE,"TransformStreamDefaultSinkWriteAlgorithm");function QE(o,f){let h=o._transformStreamController;if(h._finishPromise!==void 0)return h._finishPromise;let m=o._readable;h._finishPromise=p((k,I)=>{h._finishPromise_resolve=k,h._finishPromise_reject=I});let v=h._cancelAlgorithm(f);return Ps(h),g(v,()=>(m._state==="errored"?fn(h,m._storedError):(_t(m._readableStreamController,f),gu(h)),null),k=>(_t(m._readableStreamController,k),fn(h,k),null)),h._finishPromise}n(QE,"TransformStreamDefaultSinkAbortAlgorithm");function ek(o){let f=o._transformStreamController;if(f._finishPromise!==void 0)return f._finishPromise;let h=o._readable;f._finishPromise=p((v,k)=>{f._finishPromise_resolve=v,f._finishPromise_reject=k});let m=f._flushAlgorithm();return Ps(f),g(m,()=>(h._state==="errored"?fn(f,h._storedError):(mi(h._readableStreamController),gu(f)),null),v=>(_t(h._readableStreamController,v),fn(f,v),null)),f._finishPromise}n(ek,"TransformStreamDefaultSinkCloseAlgorithm");function tk(o){return Is(o,!1),o._backpressureChangePromise}n(tk,"TransformStreamDefaultSourcePullAlgorithm");function rk(o,f){let h=o._transformStreamController;if(h._finishPromise!==void 0)return h._finishPromise;let m=o._writable;h._finishPromise=p((k,I)=>{h._finishPromise_resolve=k,h._finishPromise_reject=I});let v=h._cancelAlgorithm(f);return Ps(h),g(v,()=>(m._state==="errored"?fn(h,m._storedError):(Ra(m._writableStreamController,f),mu(o),gu(h)),null),k=>(Ra(m._writableStreamController,k),mu(o),fn(h,k),null)),h._finishPromise}n(rk,"TransformStreamDefaultSourceCancelAlgorithm");function Ds(o){return new TypeError(`TransformStreamDefaultController.prototype.${o} can only be used on a TransformStreamDefaultController`)}n(Ds,"defaultControllerBrandCheckException");function gu(o){o._finishPromise_resolve!==void 0&&(o._finishPromise_resolve(),o._finishPromise_resolve=void 0,o._finishPromise_reject=void 0)}n(gu,"defaultControllerFinishPromiseResolve");function fn(o,f){o._finishPromise_reject!==void 0&&(T(o._finishPromise),o._finishPromise_reject(f),o._finishPromise_resolve=void 0,o._finishPromise_reject=void 0)}n(fn,"defaultControllerFinishPromiseReject");function Zm(o){return new TypeError(`TransformStream.prototype.${o} can only be used on a TransformStream`)}n(Zm,"streamBrandCheckException"),e.ByteLengthQueuingStrategy=on,e.CountQueuingStrategy=sn,e.ReadableByteStreamController=pt,e.ReadableStream=be,e.ReadableStreamBYOBReader=Bt,e.ReadableStreamBYOBRequest=ir,e.ReadableStreamDefaultController=gt,e.ReadableStreamDefaultReader=Dt,e.TransformStream=ln,e.TransformStreamDefaultController=zt,e.WritableStream=Ft,e.WritableStreamDefaultController=Fr,e.WritableStreamDefaultWriter=mt})});var Qm=R(()=>{if(!globalThis.ReadableStream)try{let e=require("process"),{emitWarning:t}=e;try{e.emitWarning=()=>{},Object.assign(globalThis,require("stream/web")),e.emitWarning=t}catch(r){throw e.emitWarning=t,r}}catch{Object.assign(globalThis,Jm())}try{let{Blob:e}=require("buffer");e&&!e.prototype.stream&&(e.prototype.stream=n(function(r){let i=0,a=this;return new ReadableStream({type:"bytes",async pull(s){let d=await a.slice(i,Math.min(a.size,i+65536)).arrayBuffer();i+=d.byteLength,s.enqueue(new Uint8Array(d)),i===a.size&&s.close()}})},"name"))}catch{}});async function*Du(e,t=!0){for(let r of e)if("stream"in r)yield*r.stream();else if(ArrayBuffer.isView(r))if(t){let i=r.byteOffset,a=r.byteOffset+r.byteLength;for(;i!==a;){let s=Math.min(a-i,eg),l=r.buffer.slice(i,i+s);i+=l.byteLength,yield new Uint8Array(l)}}else yield r;else{let i=0,a=r;for(;i!==a.size;){let l=await a.slice(i,Math.min(a.size,i+eg)).arrayBuffer();i+=l.byteLength,yield new Uint8Array(l)}}}var XD,eg,or,Ba,pn,Ls,Mr,tg,uk,sr,Fa=Da(()=>{XD=tt(Qm(),1);eg=65536;n(Du,"toIterator");tg=(Mr=class{constructor(t=[],r={}){yt(this,or,[]);yt(this,Ba,"");yt(this,pn,0);yt(this,Ls,"transparent");if(typeof t!="object"||t===null)throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");if(typeof t[Symbol.iterator]!="function")throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");if(typeof r!="object"&&typeof r!="function")throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");r===null&&(r={});let i=new TextEncoder;for(let s of t){let l;ArrayBuffer.isView(s)?l=new Uint8Array(s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength)):s instanceof ArrayBuffer?l=new Uint8Array(s.slice(0)):s instanceof Mr?l=s:l=i.encode(`${s}`),We(this,pn,ue(this,pn)+(ArrayBuffer.isView(l)?l.byteLength:l.size)),ue(this,or).push(l)}We(this,Ls,`${r.endings===void 0?"transparent":r.endings}`);let a=r.type===void 0?"":String(r.type);We(this,Ba,/^[\x20-\x7E]*$/.test(a)?a:"")}get size(){return ue(this,pn)}get type(){return ue(this,Ba)}async text(){let t=new TextDecoder,r="";for await(let i of Du(ue(this,or),!1))r+=t.decode(i,{stream:!0});return r+=t.decode(),r}async arrayBuffer(){let t=new Uint8Array(this.size),r=0;for await(let i of Du(ue(this,or),!1))t.set(i,r),r+=i.length;return t.buffer}stream(){let t=Du(ue(this,or),!0);return new globalThis.ReadableStream({type:"bytes",async pull(r){let i=await t.next();i.done?r.close():r.enqueue(i.value)},async cancel(){await t.return()}})}slice(t=0,r=this.size,i=""){let{size:a}=this,s=t<0?Math.max(a+t,0):Math.min(t,a),l=r<0?Math.max(a+r,0):Math.min(r,a),d=Math.max(l-s,0),p=ue(this,or),u=[],c=0;for(let g of p){if(c>=d)break;let _=ArrayBuffer.isView(g)?g.byteLength:g.size;if(s&&_<=s)s-=_,l-=_;else{let b;ArrayBuffer.isView(g)?(b=g.subarray(s,Math.min(_,l)),c+=b.byteLength):(b=g.slice(s,Math.min(_,l)),c+=b.size),l-=_,u.push(b),s=0}}let E=new Mr([],{type:String(i).toLowerCase()});return We(E,pn,d),We(E,or,u),E}get[Symbol.toStringTag](){return"Blob"}static[Symbol.hasInstance](t){return t&&typeof t=="object"&&typeof t.constructor=="function"&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&/^(Blob|File)$/.test(t[Symbol.toStringTag])}},or=new WeakMap,Ba=new WeakMap,pn=new WeakMap,Ls=new WeakMap,n(Mr,"Blob"),Mr);Object.defineProperties(tg.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}});uk=tg,sr=uk});var La,za,mn,dk,ck,gn,Bu=Da(()=>{Fa();dk=(mn=class extends sr{constructor(r,i,a={}){if(arguments.length<2)throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);super(r,a);yt(this,La,0);yt(this,za,"");a===null&&(a={});let s=a.lastModified===void 0?Date.now():Number(a.lastModified);Number.isNaN(s)||We(this,La,s),We(this,za,String(i))}get name(){return ue(this,za)}get lastModified(){return ue(this,La)}get[Symbol.toStringTag](){return"File"}static[Symbol.hasInstance](r){return!!r&&r instanceof sr&&/^(File)$/.test(r[Symbol.toStringTag])}},La=new WeakMap,za=new WeakMap,n(mn,"File"),mn),ck=dk,gn=ck});function ng(e,t=sr){var r=`${rg()}${rg()}`.replace(/\./g,"").slice(-28).padStart(32,"-"),i=[],a=`--${r}\r
2
- Content-Disposition: form-data; name="`;return e.forEach((s,l)=>typeof s=="string"?i.push(a+Fu(l)+`"\r
1
+ var KE=Object.create;var Ia=Object.defineProperty;var XE=Object.getOwnPropertyDescriptor;var JE=Object.getOwnPropertyNames;var QE=Object.getPrototypeOf,ek=Object.prototype.hasOwnProperty;var W_=e=>{throw TypeError(e)};var n=(e,t)=>Ia(e,"name",{value:t,configurable:!0});var Oa=(e,t)=>()=>(e&&(t=e(e=0)),t);var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),j_=(e,t)=>{for(var r in t)Ia(e,r,{get:t[r],enumerable:!0})},Z_=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of JE(t))!ek.call(e,a)&&a!==r&&Ia(e,a,{get:()=>t[a],enumerable:!(i=XE(t,a))||i.enumerable});return e};var tt=(e,t,r)=>(r=e!=null?KE(QE(e)):{},Z_(t||!e||!e.__esModule?Ia(r,"default",{value:e,enumerable:!0}):r,e)),tk=e=>Z_(Ia({},"__esModule",{value:!0}),e);var H_=(e,t,r)=>t.has(e)||W_("Cannot "+r);var ue=(e,t,r)=>(H_(e,t,"read from private field"),r?r.call(e):t.get(e)),yt=(e,t,r)=>t.has(e)?W_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),We=(e,t,r,i)=>(H_(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r);var G_=R((Bs,Y_)=>{(function(e,t){typeof Bs=="object"&&typeof Y_<"u"?t(Bs):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.WebStreamsPolyfill={}))})(Bs,function(e){"use strict";function t(){}n(t,"noop");function r(o){return typeof o=="object"&&o!==null||typeof o=="function"}n(r,"typeIsObject");let i=t;function a(o,f){try{Object.defineProperty(o,"name",{value:f,configurable:!0})}catch{}}n(a,"setFunctionName");let s=Promise,l=Promise.prototype.then,d=Promise.reject.bind(s);function p(o){return new s(o)}n(p,"newPromise");function u(o){return p(f=>f(o))}n(u,"promiseResolvedWith");function c(o){return d(o)}n(c,"promiseRejectedWith");function E(o,f,h){return l.call(o,f,h)}n(E,"PerformPromiseThen");function m(o,f,h){E(E(o,f,h),void 0,i)}n(m,"uponPromise");function g(o,f){m(o,f)}n(g,"uponFulfillment");function b(o,f){m(o,void 0,f)}n(b,"uponRejection");function A(o,f,h){return E(o,f,h)}n(A,"transformPromiseWith");function T(o){E(o,void 0,i)}n(T,"setPromiseIsHandledToTrue");let y=n(o=>{if(typeof queueMicrotask=="function")y=queueMicrotask;else{let f=u(void 0);y=n(h=>E(f,h),"_queueMicrotask")}return y(o)},"_queueMicrotask");function x(o,f,h){if(typeof o!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(o,f,h)}n(x,"reflectCall");function C(o,f,h){try{return u(x(o,f,h))}catch(_){return c(_)}}n(C,"promiseCall");let w=16384,pu=class pu{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(f){let h=this._back,_=h;h._elements.length===w-1&&(_={_elements:[],_next:void 0}),h._elements.push(f),_!==h&&(this._back=_,h._next=_),++this._size}shift(){let f=this._front,h=f,_=this._cursor,v=_+1,k=f._elements,I=k[_];return v===w&&(h=f._next,v=0),--this._size,this._cursor=v,f!==h&&(this._front=h),k[_]=void 0,I}forEach(f){let h=this._cursor,_=this._front,v=_._elements;for(;(h!==v.length||_._next!==void 0)&&!(h===v.length&&(_=_._next,v=_._elements,h=0,v.length===0));)f(v[h]),++h}peek(){let f=this._front,h=this._cursor;return f._elements[h]}};n(pu,"SimpleQueue");let S=pu,P=Symbol("[[AbortSteps]]"),B=Symbol("[[ErrorSteps]]"),D=Symbol("[[CancelSteps]]"),F=Symbol("[[PullSteps]]"),z=Symbol("[[ReleaseSteps]]");function O(o,f){o._ownerReadableStream=f,f._reader=o,f._state==="readable"?er(o):f._state==="closed"?ht(o):Ir(o,f._storedError)}n(O,"ReadableStreamReaderGenericInitialize");function G(o,f){let h=o._ownerReadableStream;return vt(h,f)}n(G,"ReadableStreamReaderGenericCancel");function se(o){let f=o._ownerReadableStream;f._state==="readable"?Ne(o,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):s1(o,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),f._readableStreamController[z](),f._reader=void 0,o._ownerReadableStream=void 0}n(se,"ReadableStreamReaderGenericRelease");function Be(o){return new TypeError("Cannot "+o+" a stream using a released reader")}n(Be,"readerLockException");function er(o){o._closedPromise=p((f,h)=>{o._closedPromise_resolve=f,o._closedPromise_reject=h})}n(er,"defaultReaderClosedPromiseInitialize");function Ir(o,f){er(o),Ne(o,f)}n(Ir,"defaultReaderClosedPromiseInitializeAsRejected");function ht(o){er(o),Cp(o)}n(ht,"defaultReaderClosedPromiseInitializeAsResolved");function Ne(o,f){o._closedPromise_reject!==void 0&&(T(o._closedPromise),o._closedPromise_reject(f),o._closedPromise_resolve=void 0,o._closedPromise_reject=void 0)}n(Ne,"defaultReaderClosedPromiseReject");function s1(o,f){Ir(o,f)}n(s1,"defaultReaderClosedPromiseResetToRejected");function Cp(o){o._closedPromise_resolve!==void 0&&(o._closedPromise_resolve(void 0),o._closedPromise_resolve=void 0,o._closedPromise_reject=void 0)}n(Cp,"defaultReaderClosedPromiseResolve");let Ip=Number.isFinite||function(o){return typeof o=="number"&&isFinite(o)},l1=Math.trunc||function(o){return o<0?Math.ceil(o):Math.floor(o)};function f1(o){return typeof o=="object"||typeof o=="function"}n(f1,"isDictionary");function Pt(o,f){if(o!==void 0&&!f1(o))throw new TypeError(`${f} is not an object.`)}n(Pt,"assertDictionary");function Je(o,f){if(typeof o!="function")throw new TypeError(`${f} is not a function.`)}n(Je,"assertFunction");function u1(o){return typeof o=="object"&&o!==null||typeof o=="function"}n(u1,"isObject");function Op(o,f){if(!u1(o))throw new TypeError(`${f} is not an object.`)}n(Op,"assertObject");function tr(o,f,h){if(o===void 0)throw new TypeError(`Parameter ${f} is required in '${h}'.`)}n(tr,"assertRequiredArgument");function Bf(o,f,h){if(o===void 0)throw new TypeError(`${f} is required in '${h}'.`)}n(Bf,"assertRequiredField");function Ff(o){return Number(o)}n(Ff,"convertUnrestrictedDouble");function Pp(o){return o===0?0:o}n(Pp,"censorNegativeZero");function d1(o){return Pp(l1(o))}n(d1,"integerPart");function Lf(o,f){let _=Number.MAX_SAFE_INTEGER,v=Number(o);if(v=Pp(v),!Ip(v))throw new TypeError(`${f} is not a finite number`);if(v=d1(v),v<0||v>_)throw new TypeError(`${f} is outside the accepted range of 0 to ${_}, inclusive`);return!Ip(v)||v===0?0:v}n(Lf,"convertUnsignedLongLongWithEnforceRange");function zf(o,f){if(!Fr(o))throw new TypeError(`${f} is not a ReadableStream.`)}n(zf,"assertReadableStream");function Ji(o){return new Dt(o)}n(Ji,"AcquireReadableStreamDefaultReader");function Dp(o,f){o._reader._readRequests.push(f)}n(Dp,"ReadableStreamAddReadRequest");function qf(o,f,h){let v=o._reader._readRequests.shift();h?v._closeSteps():v._chunkSteps(f)}n(qf,"ReadableStreamFulfillReadRequest");function ss(o){return o._reader._readRequests.length}n(ss,"ReadableStreamGetNumReadRequests");function Bp(o){let f=o._reader;return!(f===void 0||!Or(f))}n(Bp,"ReadableStreamHasDefaultReader");let _u=class _u{constructor(f){if(tr(f,1,"ReadableStreamDefaultReader"),zf(f,"First parameter"),Lr(f))throw new TypeError("This stream has already been locked for exclusive reading by another reader");O(this,f),this._readRequests=new S}get closed(){return Or(this)?this._closedPromise:c(ls("closed"))}cancel(f=void 0){return Or(this)?this._ownerReadableStream===void 0?c(Be("cancel")):G(this,f):c(ls("cancel"))}read(){if(!Or(this))return c(ls("read"));if(this._ownerReadableStream===void 0)return c(Be("read from"));let f,h,_=p((k,I)=>{f=k,h=I});return ya(this,{_chunkSteps:n(k=>f({value:k,done:!1}),"_chunkSteps"),_closeSteps:n(()=>f({value:void 0,done:!0}),"_closeSteps"),_errorSteps:n(k=>h(k),"_errorSteps")}),_}releaseLock(){if(!Or(this))throw ls("releaseLock");this._ownerReadableStream!==void 0&&c1(this)}};n(_u,"ReadableStreamDefaultReader");let Dt=_u;Object.defineProperties(Dt.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),a(Dt.prototype.cancel,"cancel"),a(Dt.prototype.read,"read"),a(Dt.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Dt.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function Or(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_readRequests")?!1:o instanceof Dt}n(Or,"IsReadableStreamDefaultReader");function ya(o,f){let h=o._ownerReadableStream;h._disturbed=!0,h._state==="closed"?f._closeSteps():h._state==="errored"?f._errorSteps(h._storedError):h._readableStreamController[F](f)}n(ya,"ReadableStreamDefaultReaderRead");function c1(o){se(o);let f=new TypeError("Reader was released");Fp(o,f)}n(c1,"ReadableStreamDefaultReaderRelease");function Fp(o,f){let h=o._readRequests;o._readRequests=new S,h.forEach(_=>{_._errorSteps(f)})}n(Fp,"ReadableStreamDefaultReaderErrorReadRequests");function ls(o){return new TypeError(`ReadableStreamDefaultReader.prototype.${o} can only be used on a ReadableStreamDefaultReader`)}n(ls,"defaultReaderBrandCheckException");let h1=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype),mu=class mu{constructor(f,h){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=f,this._preventCancel=h}next(){let f=n(()=>this._nextSteps(),"nextSteps");return this._ongoingPromise=this._ongoingPromise?A(this._ongoingPromise,f,f):f(),this._ongoingPromise}return(f){let h=n(()=>this._returnSteps(f),"returnSteps");return this._ongoingPromise?A(this._ongoingPromise,h,h):h()}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});let f=this._reader,h,_,v=p((I,L)=>{h=I,_=L});return ya(f,{_chunkSteps:n(I=>{this._ongoingPromise=void 0,y(()=>h({value:I,done:!1}))},"_chunkSteps"),_closeSteps:n(()=>{this._ongoingPromise=void 0,this._isFinished=!0,se(f),h({value:void 0,done:!0})},"_closeSteps"),_errorSteps:n(I=>{this._ongoingPromise=void 0,this._isFinished=!0,se(f),_(I)},"_errorSteps")}),v}_returnSteps(f){if(this._isFinished)return Promise.resolve({value:f,done:!0});this._isFinished=!0;let h=this._reader;if(!this._preventCancel){let _=G(h,f);return se(h),A(_,()=>({value:f,done:!0}))}return se(h),u({value:f,done:!0})}};n(mu,"ReadableStreamAsyncIteratorImpl");let fs=mu,Lp={next(){return zp(this)?this._asyncIteratorImpl.next():c(qp("next"))},return(o){return zp(this)?this._asyncIteratorImpl.return(o):c(qp("return"))}};Object.setPrototypeOf(Lp,h1);function p1(o,f){let h=Ji(o),_=new fs(h,f),v=Object.create(Lp);return v._asyncIteratorImpl=_,v}n(p1,"AcquireReadableStreamAsyncIterator");function zp(o){if(!r(o)||!Object.prototype.hasOwnProperty.call(o,"_asyncIteratorImpl"))return!1;try{return o._asyncIteratorImpl instanceof fs}catch{return!1}}n(zp,"IsReadableStreamAsyncIterator");function qp(o){return new TypeError(`ReadableStreamAsyncIterator.${o} can only be used on a ReadableSteamAsyncIterator`)}n(qp,"streamAsyncIteratorBrandCheckException");let Mp=Number.isNaN||function(o){return o!==o};var Mf,Nf,Uf;function wa(o){return o.slice()}n(wa,"CreateArrayFromList");function Np(o,f,h,_,v){new Uint8Array(o).set(new Uint8Array(h,_,v),f)}n(Np,"CopyDataBlockBytes");let rr=n(o=>(typeof o.transfer=="function"?rr=n(f=>f.transfer(),"TransferArrayBuffer"):typeof structuredClone=="function"?rr=n(f=>structuredClone(f,{transfer:[f]}),"TransferArrayBuffer"):rr=n(f=>f,"TransferArrayBuffer"),rr(o)),"TransferArrayBuffer"),Pr=n(o=>(typeof o.detached=="boolean"?Pr=n(f=>f.detached,"IsDetachedBuffer"):Pr=n(f=>f.byteLength===0,"IsDetachedBuffer"),Pr(o)),"IsDetachedBuffer");function Up(o,f,h){if(o.slice)return o.slice(f,h);let _=h-f,v=new ArrayBuffer(_);return Np(v,0,o,f,_),v}n(Up,"ArrayBufferSlice");function us(o,f){let h=o[f];if(h!=null){if(typeof h!="function")throw new TypeError(`${String(f)} is not a function`);return h}}n(us,"GetMethod");function _1(o){let f={[Symbol.iterator]:()=>o.iterator},h=async function*(){return yield*f}(),_=h.next;return{iterator:h,nextMethod:_,done:!1}}n(_1,"CreateAsyncFromSyncIterator");let Wf=(Uf=(Mf=Symbol.asyncIterator)!==null&&Mf!==void 0?Mf:(Nf=Symbol.for)===null||Nf===void 0?void 0:Nf.call(Symbol,"Symbol.asyncIterator"))!==null&&Uf!==void 0?Uf:"@@asyncIterator";function Wp(o,f="sync",h){if(h===void 0)if(f==="async"){if(h=us(o,Wf),h===void 0){let k=us(o,Symbol.iterator),I=Wp(o,"sync",k);return _1(I)}}else h=us(o,Symbol.iterator);if(h===void 0)throw new TypeError("The object is not iterable");let _=x(h,o,[]);if(!r(_))throw new TypeError("The iterator method must return an object");let v=_.next;return{iterator:_,nextMethod:v,done:!1}}n(Wp,"GetIterator");function m1(o){let f=x(o.nextMethod,o.iterator,[]);if(!r(f))throw new TypeError("The iterator.next() method must return an object");return f}n(m1,"IteratorNext");function g1(o){return!!o.done}n(g1,"IteratorComplete");function v1(o){return o.value}n(v1,"IteratorValue");function b1(o){return!(typeof o!="number"||Mp(o)||o<0)}n(b1,"IsNonNegativeNumber");function jp(o){let f=Up(o.buffer,o.byteOffset,o.byteOffset+o.byteLength);return new Uint8Array(f)}n(jp,"CloneAsUint8Array");function jf(o){let f=o._queue.shift();return o._queueTotalSize-=f.size,o._queueTotalSize<0&&(o._queueTotalSize=0),f.value}n(jf,"DequeueValue");function Zf(o,f,h){if(!b1(h)||h===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");o._queue.push({value:f,size:h}),o._queueTotalSize+=h}n(Zf,"EnqueueValueWithSize");function y1(o){return o._queue.peek().value}n(y1,"PeekQueueValue");function Dr(o){o._queue=new S,o._queueTotalSize=0}n(Dr,"ResetQueue");function Zp(o){return o===DataView}n(Zp,"isDataViewConstructor");function w1(o){return Zp(o.constructor)}n(w1,"isDataView");function S1(o){return Zp(o)?1:o.BYTES_PER_ELEMENT}n(S1,"arrayBufferViewElementSize");let gu=class gu{constructor(){throw new TypeError("Illegal constructor")}get view(){if(!Hf(this))throw Kf("view");return this._view}respond(f){if(!Hf(this))throw Kf("respond");if(tr(f,1,"respond"),f=Lf(f,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Pr(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");ps(this._associatedReadableByteStreamController,f)}respondWithNewView(f){if(!Hf(this))throw Kf("respondWithNewView");if(tr(f,1,"respondWithNewView"),!ArrayBuffer.isView(f))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Pr(f.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");_s(this._associatedReadableByteStreamController,f)}};n(gu,"ReadableStreamBYOBRequest");let ir=gu;Object.defineProperties(ir.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),a(ir.prototype.respond,"respond"),a(ir.prototype.respondWithNewView,"respondWithNewView"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(ir.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});let vu=class vu{constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!fi(this))throw xa("byobRequest");return Vf(this)}get desiredSize(){if(!fi(this))throw xa("desiredSize");return e_(this)}close(){if(!fi(this))throw xa("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");let f=this._controlledReadableByteStream._state;if(f!=="readable")throw new TypeError(`The stream (in ${f} state) is not in the readable state and cannot be closed`);Sa(this)}enqueue(f){if(!fi(this))throw xa("enqueue");if(tr(f,1,"enqueue"),!ArrayBuffer.isView(f))throw new TypeError("chunk must be an array buffer view");if(f.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(f.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");let h=this._controlledReadableByteStream._state;if(h!=="readable")throw new TypeError(`The stream (in ${h} state) is not in the readable state and cannot be enqueued to`);hs(this,f)}error(f=void 0){if(!fi(this))throw xa("error");Qe(this,f)}[D](f){Hp(this),Dr(this);let h=this._cancelAlgorithm(f);return cs(this),h}[F](f){let h=this._controlledReadableByteStream;if(this._queueTotalSize>0){Qp(this,f);return}let _=this._autoAllocateChunkSize;if(_!==void 0){let v;try{v=new ArrayBuffer(_)}catch(I){f._errorSteps(I);return}let k={buffer:v,bufferByteLength:_,byteOffset:0,byteLength:_,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(k)}Dp(h,f),ui(this)}[z](){if(this._pendingPullIntos.length>0){let f=this._pendingPullIntos.peek();f.readerType="none",this._pendingPullIntos=new S,this._pendingPullIntos.push(f)}}};n(vu,"ReadableByteStreamController");let pt=vu;Object.defineProperties(pt.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),a(pt.prototype.close,"close"),a(pt.prototype.enqueue,"enqueue"),a(pt.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(pt.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function fi(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_controlledReadableByteStream")?!1:o instanceof pt}n(fi,"IsReadableByteStreamController");function Hf(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_associatedReadableByteStreamController")?!1:o instanceof ir}n(Hf,"IsReadableStreamBYOBRequest");function ui(o){if(!R1(o))return;if(o._pulling){o._pullAgain=!0;return}o._pulling=!0;let h=o._pullAlgorithm();m(h,()=>(o._pulling=!1,o._pullAgain&&(o._pullAgain=!1,ui(o)),null),_=>(Qe(o,_),null))}n(ui,"ReadableByteStreamControllerCallPullIfNeeded");function Hp(o){Yf(o),o._pendingPullIntos=new S}n(Hp,"ReadableByteStreamControllerClearPendingPullIntos");function $f(o,f){let h=!1;o._state==="closed"&&(h=!0);let _=$p(f);f.readerType==="default"?qf(o,_,h):D1(o,_,h)}n($f,"ReadableByteStreamControllerCommitPullIntoDescriptor");function $p(o){let f=o.bytesFilled,h=o.elementSize;return new o.viewConstructor(o.buffer,o.byteOffset,f/h)}n($p,"ReadableByteStreamControllerConvertPullIntoDescriptor");function ds(o,f,h,_){o._queue.push({buffer:f,byteOffset:h,byteLength:_}),o._queueTotalSize+=_}n(ds,"ReadableByteStreamControllerEnqueueChunkToQueue");function Yp(o,f,h,_){let v;try{v=Up(f,h,h+_)}catch(k){throw Qe(o,k),k}ds(o,v,0,_)}n(Yp,"ReadableByteStreamControllerEnqueueClonedChunkToQueue");function Gp(o,f){f.bytesFilled>0&&Yp(o,f.buffer,f.byteOffset,f.bytesFilled),Qi(o)}n(Gp,"ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue");function Vp(o,f){let h=Math.min(o._queueTotalSize,f.byteLength-f.bytesFilled),_=f.bytesFilled+h,v=h,k=!1,I=_%f.elementSize,L=_-I;L>=f.minimumFill&&(v=L-f.bytesFilled,k=!0);let N=o._queue;for(;v>0;){let q=N.peek(),U=Math.min(v,q.byteLength),W=f.byteOffset+f.bytesFilled;Np(f.buffer,W,q.buffer,q.byteOffset,U),q.byteLength===U?N.shift():(q.byteOffset+=U,q.byteLength-=U),o._queueTotalSize-=U,Kp(o,U,f),v-=U}return k}n(Vp,"ReadableByteStreamControllerFillPullIntoDescriptorFromQueue");function Kp(o,f,h){h.bytesFilled+=f}n(Kp,"ReadableByteStreamControllerFillHeadPullIntoDescriptor");function Xp(o){o._queueTotalSize===0&&o._closeRequested?(cs(o),Ca(o._controlledReadableByteStream)):ui(o)}n(Xp,"ReadableByteStreamControllerHandleQueueDrain");function Yf(o){o._byobRequest!==null&&(o._byobRequest._associatedReadableByteStreamController=void 0,o._byobRequest._view=null,o._byobRequest=null)}n(Yf,"ReadableByteStreamControllerInvalidateBYOBRequest");function Gf(o){for(;o._pendingPullIntos.length>0;){if(o._queueTotalSize===0)return;let f=o._pendingPullIntos.peek();Vp(o,f)&&(Qi(o),$f(o._controlledReadableByteStream,f))}}n(Gf,"ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue");function x1(o){let f=o._controlledReadableByteStream._reader;for(;f._readRequests.length>0;){if(o._queueTotalSize===0)return;let h=f._readRequests.shift();Qp(o,h)}}n(x1,"ReadableByteStreamControllerProcessReadRequestsUsingQueue");function E1(o,f,h,_){let v=o._controlledReadableByteStream,k=f.constructor,I=S1(k),{byteOffset:L,byteLength:N}=f,q=h*I,U;try{U=rr(f.buffer)}catch(J){_._errorSteps(J);return}let W={buffer:U,bufferByteLength:U.byteLength,byteOffset:L,byteLength:N,bytesFilled:0,minimumFill:q,elementSize:I,viewConstructor:k,readerType:"byob"};if(o._pendingPullIntos.length>0){o._pendingPullIntos.push(W),i_(v,_);return}if(v._state==="closed"){let J=new k(W.buffer,W.byteOffset,0);_._closeSteps(J);return}if(o._queueTotalSize>0){if(Vp(o,W)){let J=$p(W);Xp(o),_._chunkSteps(J);return}if(o._closeRequested){let J=new TypeError("Insufficient bytes to fill elements in the given buffer");Qe(o,J),_._errorSteps(J);return}}o._pendingPullIntos.push(W),i_(v,_),ui(o)}n(E1,"ReadableByteStreamControllerPullInto");function k1(o,f){f.readerType==="none"&&Qi(o);let h=o._controlledReadableByteStream;if(Xf(h))for(;n_(h)>0;){let _=Qi(o);$f(h,_)}}n(k1,"ReadableByteStreamControllerRespondInClosedState");function T1(o,f,h){if(Kp(o,f,h),h.readerType==="none"){Gp(o,h),Gf(o);return}if(h.bytesFilled<h.minimumFill)return;Qi(o);let _=h.bytesFilled%h.elementSize;if(_>0){let v=h.byteOffset+h.bytesFilled;Yp(o,h.buffer,v-_,_)}h.bytesFilled-=_,$f(o._controlledReadableByteStream,h),Gf(o)}n(T1,"ReadableByteStreamControllerRespondInReadableState");function Jp(o,f){let h=o._pendingPullIntos.peek();Yf(o),o._controlledReadableByteStream._state==="closed"?k1(o,h):T1(o,f,h),ui(o)}n(Jp,"ReadableByteStreamControllerRespondInternal");function Qi(o){return o._pendingPullIntos.shift()}n(Qi,"ReadableByteStreamControllerShiftPendingPullInto");function R1(o){let f=o._controlledReadableByteStream;return f._state!=="readable"||o._closeRequested||!o._started?!1:!!(Bp(f)&&ss(f)>0||Xf(f)&&n_(f)>0||e_(o)>0)}n(R1,"ReadableByteStreamControllerShouldCallPull");function cs(o){o._pullAlgorithm=void 0,o._cancelAlgorithm=void 0}n(cs,"ReadableByteStreamControllerClearAlgorithms");function Sa(o){let f=o._controlledReadableByteStream;if(!(o._closeRequested||f._state!=="readable")){if(o._queueTotalSize>0){o._closeRequested=!0;return}if(o._pendingPullIntos.length>0){let h=o._pendingPullIntos.peek();if(h.bytesFilled%h.elementSize!==0){let _=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Qe(o,_),_}}cs(o),Ca(f)}}n(Sa,"ReadableByteStreamControllerClose");function hs(o,f){let h=o._controlledReadableByteStream;if(o._closeRequested||h._state!=="readable")return;let{buffer:_,byteOffset:v,byteLength:k}=f;if(Pr(_))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");let I=rr(_);if(o._pendingPullIntos.length>0){let L=o._pendingPullIntos.peek();if(Pr(L.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");Yf(o),L.buffer=rr(L.buffer),L.readerType==="none"&&Gp(o,L)}if(Bp(h))if(x1(o),ss(h)===0)ds(o,I,v,k);else{o._pendingPullIntos.length>0&&Qi(o);let L=new Uint8Array(I,v,k);qf(h,L,!1)}else Xf(h)?(ds(o,I,v,k),Gf(o)):ds(o,I,v,k);ui(o)}n(hs,"ReadableByteStreamControllerEnqueue");function Qe(o,f){let h=o._controlledReadableByteStream;h._state==="readable"&&(Hp(o),Dr(o),cs(o),A_(h,f))}n(Qe,"ReadableByteStreamControllerError");function Qp(o,f){let h=o._queue.shift();o._queueTotalSize-=h.byteLength,Xp(o);let _=new Uint8Array(h.buffer,h.byteOffset,h.byteLength);f._chunkSteps(_)}n(Qp,"ReadableByteStreamControllerFillReadRequestFromQueue");function Vf(o){if(o._byobRequest===null&&o._pendingPullIntos.length>0){let f=o._pendingPullIntos.peek(),h=new Uint8Array(f.buffer,f.byteOffset+f.bytesFilled,f.byteLength-f.bytesFilled),_=Object.create(ir.prototype);C1(_,o,h),o._byobRequest=_}return o._byobRequest}n(Vf,"ReadableByteStreamControllerGetBYOBRequest");function e_(o){let f=o._controlledReadableByteStream._state;return f==="errored"?null:f==="closed"?0:o._strategyHWM-o._queueTotalSize}n(e_,"ReadableByteStreamControllerGetDesiredSize");function ps(o,f){let h=o._pendingPullIntos.peek();if(o._controlledReadableByteStream._state==="closed"){if(f!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(f===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(h.bytesFilled+f>h.byteLength)throw new RangeError("bytesWritten out of range")}h.buffer=rr(h.buffer),Jp(o,f)}n(ps,"ReadableByteStreamControllerRespond");function _s(o,f){let h=o._pendingPullIntos.peek();if(o._controlledReadableByteStream._state==="closed"){if(f.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(f.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(h.byteOffset+h.bytesFilled!==f.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(h.bufferByteLength!==f.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(h.bytesFilled+f.byteLength>h.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");let v=f.byteLength;h.buffer=rr(f.buffer),Jp(o,v)}n(_s,"ReadableByteStreamControllerRespondWithNewView");function t_(o,f,h,_,v,k,I){f._controlledReadableByteStream=o,f._pullAgain=!1,f._pulling=!1,f._byobRequest=null,f._queue=f._queueTotalSize=void 0,Dr(f),f._closeRequested=!1,f._started=!1,f._strategyHWM=k,f._pullAlgorithm=_,f._cancelAlgorithm=v,f._autoAllocateChunkSize=I,f._pendingPullIntos=new S,o._readableStreamController=f;let L=h();m(u(L),()=>(f._started=!0,ui(f),null),N=>(Qe(f,N),null))}n(t_,"SetUpReadableByteStreamController");function A1(o,f,h){let _=Object.create(pt.prototype),v,k,I;f.start!==void 0?v=n(()=>f.start(_),"startAlgorithm"):v=n(()=>{},"startAlgorithm"),f.pull!==void 0?k=n(()=>f.pull(_),"pullAlgorithm"):k=n(()=>u(void 0),"pullAlgorithm"),f.cancel!==void 0?I=n(N=>f.cancel(N),"cancelAlgorithm"):I=n(()=>u(void 0),"cancelAlgorithm");let L=f.autoAllocateChunkSize;if(L===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");t_(o,_,v,k,I,h,L)}n(A1,"SetUpReadableByteStreamControllerFromUnderlyingSource");function C1(o,f,h){o._associatedReadableByteStreamController=f,o._view=h}n(C1,"SetUpReadableStreamBYOBRequest");function Kf(o){return new TypeError(`ReadableStreamBYOBRequest.prototype.${o} can only be used on a ReadableStreamBYOBRequest`)}n(Kf,"byobRequestBrandCheckException");function xa(o){return new TypeError(`ReadableByteStreamController.prototype.${o} can only be used on a ReadableByteStreamController`)}n(xa,"byteStreamControllerBrandCheckException");function I1(o,f){Pt(o,f);let h=o==null?void 0:o.mode;return{mode:h===void 0?void 0:O1(h,`${f} has member 'mode' that`)}}n(I1,"convertReaderOptions");function O1(o,f){if(o=`${o}`,o!=="byob")throw new TypeError(`${f} '${o}' is not a valid enumeration value for ReadableStreamReaderMode`);return o}n(O1,"convertReadableStreamReaderMode");function P1(o,f){var h;Pt(o,f);let _=(h=o==null?void 0:o.min)!==null&&h!==void 0?h:1;return{min:Lf(_,`${f} has member 'min' that`)}}n(P1,"convertByobReadOptions");function r_(o){return new Bt(o)}n(r_,"AcquireReadableStreamBYOBReader");function i_(o,f){o._reader._readIntoRequests.push(f)}n(i_,"ReadableStreamAddReadIntoRequest");function D1(o,f,h){let v=o._reader._readIntoRequests.shift();h?v._closeSteps(f):v._chunkSteps(f)}n(D1,"ReadableStreamFulfillReadIntoRequest");function n_(o){return o._reader._readIntoRequests.length}n(n_,"ReadableStreamGetNumReadIntoRequests");function Xf(o){let f=o._reader;return!(f===void 0||!di(f))}n(Xf,"ReadableStreamHasBYOBReader");let bu=class bu{constructor(f){if(tr(f,1,"ReadableStreamBYOBReader"),zf(f,"First parameter"),Lr(f))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!fi(f._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");O(this,f),this._readIntoRequests=new S}get closed(){return di(this)?this._closedPromise:c(ms("closed"))}cancel(f=void 0){return di(this)?this._ownerReadableStream===void 0?c(Be("cancel")):G(this,f):c(ms("cancel"))}read(f,h={}){if(!di(this))return c(ms("read"));if(!ArrayBuffer.isView(f))return c(new TypeError("view must be an array buffer view"));if(f.byteLength===0)return c(new TypeError("view must have non-zero byteLength"));if(f.buffer.byteLength===0)return c(new TypeError("view's buffer must have non-zero byteLength"));if(Pr(f.buffer))return c(new TypeError("view's buffer has been detached"));let _;try{_=P1(h,"options")}catch(q){return c(q)}let v=_.min;if(v===0)return c(new TypeError("options.min must be greater than 0"));if(w1(f)){if(v>f.byteLength)return c(new RangeError("options.min must be less than or equal to view's byteLength"))}else if(v>f.length)return c(new RangeError("options.min must be less than or equal to view's length"));if(this._ownerReadableStream===void 0)return c(Be("read from"));let k,I,L=p((q,U)=>{k=q,I=U});return a_(this,f,v,{_chunkSteps:n(q=>k({value:q,done:!1}),"_chunkSteps"),_closeSteps:n(q=>k({value:q,done:!0}),"_closeSteps"),_errorSteps:n(q=>I(q),"_errorSteps")}),L}releaseLock(){if(!di(this))throw ms("releaseLock");this._ownerReadableStream!==void 0&&B1(this)}};n(bu,"ReadableStreamBYOBReader");let Bt=bu;Object.defineProperties(Bt.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),a(Bt.prototype.cancel,"cancel"),a(Bt.prototype.read,"read"),a(Bt.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Bt.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function di(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_readIntoRequests")?!1:o instanceof Bt}n(di,"IsReadableStreamBYOBReader");function a_(o,f,h,_){let v=o._ownerReadableStream;v._disturbed=!0,v._state==="errored"?_._errorSteps(v._storedError):E1(v._readableStreamController,f,h,_)}n(a_,"ReadableStreamBYOBReaderRead");function B1(o){se(o);let f=new TypeError("Reader was released");o_(o,f)}n(B1,"ReadableStreamBYOBReaderRelease");function o_(o,f){let h=o._readIntoRequests;o._readIntoRequests=new S,h.forEach(_=>{_._errorSteps(f)})}n(o_,"ReadableStreamBYOBReaderErrorReadIntoRequests");function ms(o){return new TypeError(`ReadableStreamBYOBReader.prototype.${o} can only be used on a ReadableStreamBYOBReader`)}n(ms,"byobReaderBrandCheckException");function Ea(o,f){let{highWaterMark:h}=o;if(h===void 0)return f;if(Mp(h)||h<0)throw new RangeError("Invalid highWaterMark");return h}n(Ea,"ExtractHighWaterMark");function gs(o){let{size:f}=o;return f||(()=>1)}n(gs,"ExtractSizeAlgorithm");function vs(o,f){Pt(o,f);let h=o==null?void 0:o.highWaterMark,_=o==null?void 0:o.size;return{highWaterMark:h===void 0?void 0:Ff(h),size:_===void 0?void 0:F1(_,`${f} has member 'size' that`)}}n(vs,"convertQueuingStrategy");function F1(o,f){return Je(o,f),h=>Ff(o(h))}n(F1,"convertQueuingStrategySize");function L1(o,f){Pt(o,f);let h=o==null?void 0:o.abort,_=o==null?void 0:o.close,v=o==null?void 0:o.start,k=o==null?void 0:o.type,I=o==null?void 0:o.write;return{abort:h===void 0?void 0:z1(h,o,`${f} has member 'abort' that`),close:_===void 0?void 0:q1(_,o,`${f} has member 'close' that`),start:v===void 0?void 0:M1(v,o,`${f} has member 'start' that`),write:I===void 0?void 0:N1(I,o,`${f} has member 'write' that`),type:k}}n(L1,"convertUnderlyingSink");function z1(o,f,h){return Je(o,h),_=>C(o,f,[_])}n(z1,"convertUnderlyingSinkAbortCallback");function q1(o,f,h){return Je(o,h),()=>C(o,f,[])}n(q1,"convertUnderlyingSinkCloseCallback");function M1(o,f,h){return Je(o,h),_=>x(o,f,[_])}n(M1,"convertUnderlyingSinkStartCallback");function N1(o,f,h){return Je(o,h),(_,v)=>C(o,f,[_,v])}n(N1,"convertUnderlyingSinkWriteCallback");function s_(o,f){if(!en(o))throw new TypeError(`${f} is not a WritableStream.`)}n(s_,"assertWritableStream");function U1(o){if(typeof o!="object"||o===null)return!1;try{return typeof o.aborted=="boolean"}catch{return!1}}n(U1,"isAbortSignal");let W1=typeof AbortController=="function";function j1(){if(W1)return new AbortController}n(j1,"createAbortController");let yu=class yu{constructor(f={},h={}){f===void 0?f=null:Op(f,"First parameter");let _=vs(h,"Second parameter"),v=L1(f,"First parameter");if(f_(this),v.type!==void 0)throw new RangeError("Invalid type is specified");let I=gs(_),L=Ea(_,1);iE(this,v,L,I)}get locked(){if(!en(this))throw xs("locked");return tn(this)}abort(f=void 0){return en(this)?tn(this)?c(new TypeError("Cannot abort a stream that already has a writer")):bs(this,f):c(xs("abort"))}close(){return en(this)?tn(this)?c(new TypeError("Cannot close a stream that already has a writer")):Lt(this)?c(new TypeError("Cannot close an already-closing stream")):u_(this):c(xs("close"))}getWriter(){if(!en(this))throw xs("getWriter");return l_(this)}};n(yu,"WritableStream");let Ft=yu;Object.defineProperties(Ft.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),a(Ft.prototype.abort,"abort"),a(Ft.prototype.close,"close"),a(Ft.prototype.getWriter,"getWriter"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Ft.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});function l_(o){return new _t(o)}n(l_,"AcquireWritableStreamDefaultWriter");function Z1(o,f,h,_,v=1,k=()=>1){let I=Object.create(Ft.prototype);f_(I);let L=Object.create(Br.prototype);return m_(I,L,o,f,h,_,v,k),I}n(Z1,"CreateWritableStream");function f_(o){o._state="writable",o._storedError=void 0,o._writer=void 0,o._writableStreamController=void 0,o._writeRequests=new S,o._inFlightWriteRequest=void 0,o._closeRequest=void 0,o._inFlightCloseRequest=void 0,o._pendingAbortRequest=void 0,o._backpressure=!1}n(f_,"InitializeWritableStream");function en(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_writableStreamController")?!1:o instanceof Ft}n(en,"IsWritableStream");function tn(o){return o._writer!==void 0}n(tn,"IsWritableStreamLocked");function bs(o,f){var h;if(o._state==="closed"||o._state==="errored")return u(void 0);o._writableStreamController._abortReason=f,(h=o._writableStreamController._abortController)===null||h===void 0||h.abort(f);let _=o._state;if(_==="closed"||_==="errored")return u(void 0);if(o._pendingAbortRequest!==void 0)return o._pendingAbortRequest._promise;let v=!1;_==="erroring"&&(v=!0,f=void 0);let k=p((I,L)=>{o._pendingAbortRequest={_promise:void 0,_resolve:I,_reject:L,_reason:f,_wasAlreadyErroring:v}});return o._pendingAbortRequest._promise=k,v||Qf(o,f),k}n(bs,"WritableStreamAbort");function u_(o){let f=o._state;if(f==="closed"||f==="errored")return c(new TypeError(`The stream (in ${f} state) is not in the writable state and cannot be closed`));let h=p((v,k)=>{let I={_resolve:v,_reject:k};o._closeRequest=I}),_=o._writer;return _!==void 0&&o._backpressure&&f==="writable"&&su(_),nE(o._writableStreamController),h}n(u_,"WritableStreamClose");function H1(o){return p((h,_)=>{let v={_resolve:h,_reject:_};o._writeRequests.push(v)})}n(H1,"WritableStreamAddWriteRequest");function Jf(o,f){if(o._state==="writable"){Qf(o,f);return}eu(o)}n(Jf,"WritableStreamDealWithRejection");function Qf(o,f){let h=o._writableStreamController;o._state="erroring",o._storedError=f;let _=o._writer;_!==void 0&&c_(_,f),!K1(o)&&h._started&&eu(o)}n(Qf,"WritableStreamStartErroring");function eu(o){o._state="errored",o._writableStreamController[B]();let f=o._storedError;if(o._writeRequests.forEach(v=>{v._reject(f)}),o._writeRequests=new S,o._pendingAbortRequest===void 0){ys(o);return}let h=o._pendingAbortRequest;if(o._pendingAbortRequest=void 0,h._wasAlreadyErroring){h._reject(f),ys(o);return}let _=o._writableStreamController[P](h._reason);m(_,()=>(h._resolve(),ys(o),null),v=>(h._reject(v),ys(o),null))}n(eu,"WritableStreamFinishErroring");function $1(o){o._inFlightWriteRequest._resolve(void 0),o._inFlightWriteRequest=void 0}n($1,"WritableStreamFinishInFlightWrite");function Y1(o,f){o._inFlightWriteRequest._reject(f),o._inFlightWriteRequest=void 0,Jf(o,f)}n(Y1,"WritableStreamFinishInFlightWriteWithError");function G1(o){o._inFlightCloseRequest._resolve(void 0),o._inFlightCloseRequest=void 0,o._state==="erroring"&&(o._storedError=void 0,o._pendingAbortRequest!==void 0&&(o._pendingAbortRequest._resolve(),o._pendingAbortRequest=void 0)),o._state="closed";let h=o._writer;h!==void 0&&y_(h)}n(G1,"WritableStreamFinishInFlightClose");function V1(o,f){o._inFlightCloseRequest._reject(f),o._inFlightCloseRequest=void 0,o._pendingAbortRequest!==void 0&&(o._pendingAbortRequest._reject(f),o._pendingAbortRequest=void 0),Jf(o,f)}n(V1,"WritableStreamFinishInFlightCloseWithError");function Lt(o){return!(o._closeRequest===void 0&&o._inFlightCloseRequest===void 0)}n(Lt,"WritableStreamCloseQueuedOrInFlight");function K1(o){return!(o._inFlightWriteRequest===void 0&&o._inFlightCloseRequest===void 0)}n(K1,"WritableStreamHasOperationMarkedInFlight");function X1(o){o._inFlightCloseRequest=o._closeRequest,o._closeRequest=void 0}n(X1,"WritableStreamMarkCloseRequestInFlight");function J1(o){o._inFlightWriteRequest=o._writeRequests.shift()}n(J1,"WritableStreamMarkFirstWriteRequestInFlight");function ys(o){o._closeRequest!==void 0&&(o._closeRequest._reject(o._storedError),o._closeRequest=void 0);let f=o._writer;f!==void 0&&au(f,o._storedError)}n(ys,"WritableStreamRejectCloseAndClosedPromiseIfNeeded");function tu(o,f){let h=o._writer;h!==void 0&&f!==o._backpressure&&(f?dE(h):su(h)),o._backpressure=f}n(tu,"WritableStreamUpdateBackpressure");let wu=class wu{constructor(f){if(tr(f,1,"WritableStreamDefaultWriter"),s_(f,"First parameter"),tn(f))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=f,f._writer=this;let h=f._state;if(h==="writable")!Lt(f)&&f._backpressure?ks(this):w_(this),Es(this);else if(h==="erroring")ou(this,f._storedError),Es(this);else if(h==="closed")w_(this),fE(this);else{let _=f._storedError;ou(this,_),b_(this,_)}}get closed(){return ci(this)?this._closedPromise:c(hi("closed"))}get desiredSize(){if(!ci(this))throw hi("desiredSize");if(this._ownerWritableStream===void 0)throw Ta("desiredSize");return rE(this)}get ready(){return ci(this)?this._readyPromise:c(hi("ready"))}abort(f=void 0){return ci(this)?this._ownerWritableStream===void 0?c(Ta("abort")):Q1(this,f):c(hi("abort"))}close(){if(!ci(this))return c(hi("close"));let f=this._ownerWritableStream;return f===void 0?c(Ta("close")):Lt(f)?c(new TypeError("Cannot close an already-closing stream")):d_(this)}releaseLock(){if(!ci(this))throw hi("releaseLock");this._ownerWritableStream!==void 0&&h_(this)}write(f=void 0){return ci(this)?this._ownerWritableStream===void 0?c(Ta("write to")):p_(this,f):c(hi("write"))}};n(wu,"WritableStreamDefaultWriter");let _t=wu;Object.defineProperties(_t.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),a(_t.prototype.abort,"abort"),a(_t.prototype.close,"close"),a(_t.prototype.releaseLock,"releaseLock"),a(_t.prototype.write,"write"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(_t.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function ci(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_ownerWritableStream")?!1:o instanceof _t}n(ci,"IsWritableStreamDefaultWriter");function Q1(o,f){let h=o._ownerWritableStream;return bs(h,f)}n(Q1,"WritableStreamDefaultWriterAbort");function d_(o){let f=o._ownerWritableStream;return u_(f)}n(d_,"WritableStreamDefaultWriterClose");function eE(o){let f=o._ownerWritableStream,h=f._state;return Lt(f)||h==="closed"?u(void 0):h==="errored"?c(f._storedError):d_(o)}n(eE,"WritableStreamDefaultWriterCloseWithErrorPropagation");function tE(o,f){o._closedPromiseState==="pending"?au(o,f):uE(o,f)}n(tE,"WritableStreamDefaultWriterEnsureClosedPromiseRejected");function c_(o,f){o._readyPromiseState==="pending"?S_(o,f):cE(o,f)}n(c_,"WritableStreamDefaultWriterEnsureReadyPromiseRejected");function rE(o){let f=o._ownerWritableStream,h=f._state;return h==="errored"||h==="erroring"?null:h==="closed"?0:g_(f._writableStreamController)}n(rE,"WritableStreamDefaultWriterGetDesiredSize");function h_(o){let f=o._ownerWritableStream,h=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");c_(o,h),tE(o,h),f._writer=void 0,o._ownerWritableStream=void 0}n(h_,"WritableStreamDefaultWriterRelease");function p_(o,f){let h=o._ownerWritableStream,_=h._writableStreamController,v=aE(_,f);if(h!==o._ownerWritableStream)return c(Ta("write to"));let k=h._state;if(k==="errored")return c(h._storedError);if(Lt(h)||k==="closed")return c(new TypeError("The stream is closing or closed and cannot be written to"));if(k==="erroring")return c(h._storedError);let I=H1(h);return oE(_,f,v),I}n(p_,"WritableStreamDefaultWriterWrite");let __={},Su=class Su{constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!ru(this))throw nu("abortReason");return this._abortReason}get signal(){if(!ru(this))throw nu("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(f=void 0){if(!ru(this))throw nu("error");this._controlledWritableStream._state==="writable"&&v_(this,f)}[P](f){let h=this._abortAlgorithm(f);return ws(this),h}[B](){Dr(this)}};n(Su,"WritableStreamDefaultController");let Br=Su;Object.defineProperties(Br.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Br.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function ru(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_controlledWritableStream")?!1:o instanceof Br}n(ru,"IsWritableStreamDefaultController");function m_(o,f,h,_,v,k,I,L){f._controlledWritableStream=o,o._writableStreamController=f,f._queue=void 0,f._queueTotalSize=void 0,Dr(f),f._abortReason=void 0,f._abortController=j1(),f._started=!1,f._strategySizeAlgorithm=L,f._strategyHWM=I,f._writeAlgorithm=_,f._closeAlgorithm=v,f._abortAlgorithm=k;let N=iu(f);tu(o,N);let q=h(),U=u(q);m(U,()=>(f._started=!0,Ss(f),null),W=>(f._started=!0,Jf(o,W),null))}n(m_,"SetUpWritableStreamDefaultController");function iE(o,f,h,_){let v=Object.create(Br.prototype),k,I,L,N;f.start!==void 0?k=n(()=>f.start(v),"startAlgorithm"):k=n(()=>{},"startAlgorithm"),f.write!==void 0?I=n(q=>f.write(q,v),"writeAlgorithm"):I=n(()=>u(void 0),"writeAlgorithm"),f.close!==void 0?L=n(()=>f.close(),"closeAlgorithm"):L=n(()=>u(void 0),"closeAlgorithm"),f.abort!==void 0?N=n(q=>f.abort(q),"abortAlgorithm"):N=n(()=>u(void 0),"abortAlgorithm"),m_(o,v,k,I,L,N,h,_)}n(iE,"SetUpWritableStreamDefaultControllerFromUnderlyingSink");function ws(o){o._writeAlgorithm=void 0,o._closeAlgorithm=void 0,o._abortAlgorithm=void 0,o._strategySizeAlgorithm=void 0}n(ws,"WritableStreamDefaultControllerClearAlgorithms");function nE(o){Zf(o,__,0),Ss(o)}n(nE,"WritableStreamDefaultControllerClose");function aE(o,f){try{return o._strategySizeAlgorithm(f)}catch(h){return ka(o,h),1}}n(aE,"WritableStreamDefaultControllerGetChunkSize");function g_(o){return o._strategyHWM-o._queueTotalSize}n(g_,"WritableStreamDefaultControllerGetDesiredSize");function oE(o,f,h){try{Zf(o,f,h)}catch(v){ka(o,v);return}let _=o._controlledWritableStream;if(!Lt(_)&&_._state==="writable"){let v=iu(o);tu(_,v)}Ss(o)}n(oE,"WritableStreamDefaultControllerWrite");function Ss(o){let f=o._controlledWritableStream;if(!o._started||f._inFlightWriteRequest!==void 0)return;if(f._state==="erroring"){eu(f);return}if(o._queue.length===0)return;let _=y1(o);_===__?sE(o):lE(o,_)}n(Ss,"WritableStreamDefaultControllerAdvanceQueueIfNeeded");function ka(o,f){o._controlledWritableStream._state==="writable"&&v_(o,f)}n(ka,"WritableStreamDefaultControllerErrorIfNeeded");function sE(o){let f=o._controlledWritableStream;X1(f),jf(o);let h=o._closeAlgorithm();ws(o),m(h,()=>(G1(f),null),_=>(V1(f,_),null))}n(sE,"WritableStreamDefaultControllerProcessClose");function lE(o,f){let h=o._controlledWritableStream;J1(h);let _=o._writeAlgorithm(f);m(_,()=>{$1(h);let v=h._state;if(jf(o),!Lt(h)&&v==="writable"){let k=iu(o);tu(h,k)}return Ss(o),null},v=>(h._state==="writable"&&ws(o),Y1(h,v),null))}n(lE,"WritableStreamDefaultControllerProcessWrite");function iu(o){return g_(o)<=0}n(iu,"WritableStreamDefaultControllerGetBackpressure");function v_(o,f){let h=o._controlledWritableStream;ws(o),Qf(h,f)}n(v_,"WritableStreamDefaultControllerError");function xs(o){return new TypeError(`WritableStream.prototype.${o} can only be used on a WritableStream`)}n(xs,"streamBrandCheckException$2");function nu(o){return new TypeError(`WritableStreamDefaultController.prototype.${o} can only be used on a WritableStreamDefaultController`)}n(nu,"defaultControllerBrandCheckException$2");function hi(o){return new TypeError(`WritableStreamDefaultWriter.prototype.${o} can only be used on a WritableStreamDefaultWriter`)}n(hi,"defaultWriterBrandCheckException");function Ta(o){return new TypeError("Cannot "+o+" a stream using a released writer")}n(Ta,"defaultWriterLockException");function Es(o){o._closedPromise=p((f,h)=>{o._closedPromise_resolve=f,o._closedPromise_reject=h,o._closedPromiseState="pending"})}n(Es,"defaultWriterClosedPromiseInitialize");function b_(o,f){Es(o),au(o,f)}n(b_,"defaultWriterClosedPromiseInitializeAsRejected");function fE(o){Es(o),y_(o)}n(fE,"defaultWriterClosedPromiseInitializeAsResolved");function au(o,f){o._closedPromise_reject!==void 0&&(T(o._closedPromise),o._closedPromise_reject(f),o._closedPromise_resolve=void 0,o._closedPromise_reject=void 0,o._closedPromiseState="rejected")}n(au,"defaultWriterClosedPromiseReject");function uE(o,f){b_(o,f)}n(uE,"defaultWriterClosedPromiseResetToRejected");function y_(o){o._closedPromise_resolve!==void 0&&(o._closedPromise_resolve(void 0),o._closedPromise_resolve=void 0,o._closedPromise_reject=void 0,o._closedPromiseState="resolved")}n(y_,"defaultWriterClosedPromiseResolve");function ks(o){o._readyPromise=p((f,h)=>{o._readyPromise_resolve=f,o._readyPromise_reject=h}),o._readyPromiseState="pending"}n(ks,"defaultWriterReadyPromiseInitialize");function ou(o,f){ks(o),S_(o,f)}n(ou,"defaultWriterReadyPromiseInitializeAsRejected");function w_(o){ks(o),su(o)}n(w_,"defaultWriterReadyPromiseInitializeAsResolved");function S_(o,f){o._readyPromise_reject!==void 0&&(T(o._readyPromise),o._readyPromise_reject(f),o._readyPromise_resolve=void 0,o._readyPromise_reject=void 0,o._readyPromiseState="rejected")}n(S_,"defaultWriterReadyPromiseReject");function dE(o){ks(o)}n(dE,"defaultWriterReadyPromiseReset");function cE(o,f){ou(o,f)}n(cE,"defaultWriterReadyPromiseResetToRejected");function su(o){o._readyPromise_resolve!==void 0&&(o._readyPromise_resolve(void 0),o._readyPromise_resolve=void 0,o._readyPromise_reject=void 0,o._readyPromiseState="fulfilled")}n(su,"defaultWriterReadyPromiseResolve");function hE(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof global<"u")return global}n(hE,"getGlobals");let lu=hE();function pE(o){if(!(typeof o=="function"||typeof o=="object")||o.name!=="DOMException")return!1;try{return new o,!0}catch{return!1}}n(pE,"isDOMExceptionConstructor");function _E(){let o=lu==null?void 0:lu.DOMException;return pE(o)?o:void 0}n(_E,"getFromGlobal");function mE(){let o=n(function(h,_){this.message=h||"",this.name=_||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)},"DOMException");return a(o,"DOMException"),o.prototype=Object.create(Error.prototype),Object.defineProperty(o.prototype,"constructor",{value:o,writable:!0,configurable:!0}),o}n(mE,"createPolyfill");let gE=_E()||mE();function x_(o,f,h,_,v,k){let I=Ji(o),L=l_(f);o._disturbed=!0;let N=!1,q=u(void 0);return p((U,W)=>{let J;if(k!==void 0){if(J=n(()=>{let M=k.reason!==void 0?k.reason:new gE("Aborted","AbortError"),j=[];_||j.push(()=>f._state==="writable"?bs(f,M):u(void 0)),v||j.push(()=>o._state==="readable"?vt(o,M):u(void 0)),Fe(()=>Promise.all(j.map(Q=>Q())),!0,M)},"abortAlgorithm"),k.aborted){J();return}k.addEventListener("abort",J)}function bt(){return p((M,j)=>{function Q(Ue){Ue?M():E(fn(),Q,j)}n(Q,"next"),Q(!1)})}n(bt,"pipeLoop");function fn(){return N?u(!0):E(L._readyPromise,()=>p((M,j)=>{ya(I,{_chunkSteps:n(Q=>{q=E(p_(L,Q),void 0,t),M(!1)},"_chunkSteps"),_closeSteps:n(()=>M(!0),"_closeSteps"),_errorSteps:j})}))}if(n(fn,"pipeStep"),nr(o,I._closedPromise,M=>(_?et(!0,M):Fe(()=>bs(f,M),!0,M),null)),nr(f,L._closedPromise,M=>(v?et(!0,M):Fe(()=>vt(o,M),!0,M),null)),Ce(o,I._closedPromise,()=>(h?et():Fe(()=>eE(L)),null)),Lt(f)||f._state==="closed"){let M=new TypeError("the destination writable stream closed before all data could be piped to it");v?et(!0,M):Fe(()=>vt(o,M),!0,M)}T(bt());function zr(){let M=q;return E(q,()=>M!==q?zr():void 0)}n(zr,"waitForWritesToFinish");function nr(M,j,Q){M._state==="errored"?Q(M._storedError):b(j,Q)}n(nr,"isOrBecomesErrored");function Ce(M,j,Q){M._state==="closed"?Q():g(j,Q)}n(Ce,"isOrBecomesClosed");function Fe(M,j,Q){if(N)return;N=!0,f._state==="writable"&&!Lt(f)?g(zr(),Ue):Ue();function Ue(){return m(M(),()=>ar(j,Q),un=>ar(!0,un)),null}n(Ue,"doTheRest")}n(Fe,"shutdownWithAction");function et(M,j){N||(N=!0,f._state==="writable"&&!Lt(f)?g(zr(),()=>ar(M,j)):ar(M,j))}n(et,"shutdown");function ar(M,j){return h_(L),se(I),k!==void 0&&k.removeEventListener("abort",J),M?W(j):U(void 0),null}n(ar,"finalize")})}n(x_,"ReadableStreamPipeTo");let xu=class xu{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Ts(this))throw As("desiredSize");return fu(this)}close(){if(!Ts(this))throw As("close");if(!nn(this))throw new TypeError("The stream is not in a state that permits close");pi(this)}enqueue(f=void 0){if(!Ts(this))throw As("enqueue");if(!nn(this))throw new TypeError("The stream is not in a state that permits enqueue");return rn(this,f)}error(f=void 0){if(!Ts(this))throw As("error");gt(this,f)}[D](f){Dr(this);let h=this._cancelAlgorithm(f);return Rs(this),h}[F](f){let h=this._controlledReadableStream;if(this._queue.length>0){let _=jf(this);this._closeRequested&&this._queue.length===0?(Rs(this),Ca(h)):Ra(this),f._chunkSteps(_)}else Dp(h,f),Ra(this)}[z](){}};n(xu,"ReadableStreamDefaultController");let mt=xu;Object.defineProperties(mt.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),a(mt.prototype.close,"close"),a(mt.prototype.enqueue,"enqueue"),a(mt.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(mt.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function Ts(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_controlledReadableStream")?!1:o instanceof mt}n(Ts,"IsReadableStreamDefaultController");function Ra(o){if(!E_(o))return;if(o._pulling){o._pullAgain=!0;return}o._pulling=!0;let h=o._pullAlgorithm();m(h,()=>(o._pulling=!1,o._pullAgain&&(o._pullAgain=!1,Ra(o)),null),_=>(gt(o,_),null))}n(Ra,"ReadableStreamDefaultControllerCallPullIfNeeded");function E_(o){let f=o._controlledReadableStream;return!nn(o)||!o._started?!1:!!(Lr(f)&&ss(f)>0||fu(o)>0)}n(E_,"ReadableStreamDefaultControllerShouldCallPull");function Rs(o){o._pullAlgorithm=void 0,o._cancelAlgorithm=void 0,o._strategySizeAlgorithm=void 0}n(Rs,"ReadableStreamDefaultControllerClearAlgorithms");function pi(o){if(!nn(o))return;let f=o._controlledReadableStream;o._closeRequested=!0,o._queue.length===0&&(Rs(o),Ca(f))}n(pi,"ReadableStreamDefaultControllerClose");function rn(o,f){if(!nn(o))return;let h=o._controlledReadableStream;if(Lr(h)&&ss(h)>0)qf(h,f,!1);else{let _;try{_=o._strategySizeAlgorithm(f)}catch(v){throw gt(o,v),v}try{Zf(o,f,_)}catch(v){throw gt(o,v),v}}Ra(o)}n(rn,"ReadableStreamDefaultControllerEnqueue");function gt(o,f){let h=o._controlledReadableStream;h._state==="readable"&&(Dr(o),Rs(o),A_(h,f))}n(gt,"ReadableStreamDefaultControllerError");function fu(o){let f=o._controlledReadableStream._state;return f==="errored"?null:f==="closed"?0:o._strategyHWM-o._queueTotalSize}n(fu,"ReadableStreamDefaultControllerGetDesiredSize");function vE(o){return!E_(o)}n(vE,"ReadableStreamDefaultControllerHasBackpressure");function nn(o){let f=o._controlledReadableStream._state;return!o._closeRequested&&f==="readable"}n(nn,"ReadableStreamDefaultControllerCanCloseOrEnqueue");function k_(o,f,h,_,v,k,I){f._controlledReadableStream=o,f._queue=void 0,f._queueTotalSize=void 0,Dr(f),f._started=!1,f._closeRequested=!1,f._pullAgain=!1,f._pulling=!1,f._strategySizeAlgorithm=I,f._strategyHWM=k,f._pullAlgorithm=_,f._cancelAlgorithm=v,o._readableStreamController=f;let L=h();m(u(L),()=>(f._started=!0,Ra(f),null),N=>(gt(f,N),null))}n(k_,"SetUpReadableStreamDefaultController");function bE(o,f,h,_){let v=Object.create(mt.prototype),k,I,L;f.start!==void 0?k=n(()=>f.start(v),"startAlgorithm"):k=n(()=>{},"startAlgorithm"),f.pull!==void 0?I=n(()=>f.pull(v),"pullAlgorithm"):I=n(()=>u(void 0),"pullAlgorithm"),f.cancel!==void 0?L=n(N=>f.cancel(N),"cancelAlgorithm"):L=n(()=>u(void 0),"cancelAlgorithm"),k_(o,v,k,I,L,h,_)}n(bE,"SetUpReadableStreamDefaultControllerFromUnderlyingSource");function As(o){return new TypeError(`ReadableStreamDefaultController.prototype.${o} can only be used on a ReadableStreamDefaultController`)}n(As,"defaultControllerBrandCheckException$1");function yE(o,f){return fi(o._readableStreamController)?SE(o):wE(o)}n(yE,"ReadableStreamTee");function wE(o,f){let h=Ji(o),_=!1,v=!1,k=!1,I=!1,L,N,q,U,W,J=p(Ce=>{W=Ce});function bt(){return _?(v=!0,u(void 0)):(_=!0,ya(h,{_chunkSteps:n(Fe=>{y(()=>{v=!1;let et=Fe,ar=Fe;k||rn(q._readableStreamController,et),I||rn(U._readableStreamController,ar),_=!1,v&&bt()})},"_chunkSteps"),_closeSteps:n(()=>{_=!1,k||pi(q._readableStreamController),I||pi(U._readableStreamController),(!k||!I)&&W(void 0)},"_closeSteps"),_errorSteps:n(()=>{_=!1},"_errorSteps")}),u(void 0))}n(bt,"pullAlgorithm");function fn(Ce){if(k=!0,L=Ce,I){let Fe=wa([L,N]),et=vt(o,Fe);W(et)}return J}n(fn,"cancel1Algorithm");function zr(Ce){if(I=!0,N=Ce,k){let Fe=wa([L,N]),et=vt(o,Fe);W(et)}return J}n(zr,"cancel2Algorithm");function nr(){}return n(nr,"startAlgorithm"),q=Aa(nr,bt,fn),U=Aa(nr,bt,zr),b(h._closedPromise,Ce=>(gt(q._readableStreamController,Ce),gt(U._readableStreamController,Ce),(!k||!I)&&W(void 0),null)),[q,U]}n(wE,"ReadableStreamDefaultTee");function SE(o){let f=Ji(o),h=!1,_=!1,v=!1,k=!1,I=!1,L,N,q,U,W,J=p(M=>{W=M});function bt(M){b(M._closedPromise,j=>(M!==f||(Qe(q._readableStreamController,j),Qe(U._readableStreamController,j),(!k||!I)&&W(void 0)),null))}n(bt,"forwardReaderError");function fn(){di(f)&&(se(f),f=Ji(o),bt(f)),ya(f,{_chunkSteps:n(j=>{y(()=>{_=!1,v=!1;let Q=j,Ue=j;if(!k&&!I)try{Ue=jp(j)}catch(un){Qe(q._readableStreamController,un),Qe(U._readableStreamController,un),W(vt(o,un));return}k||hs(q._readableStreamController,Q),I||hs(U._readableStreamController,Ue),h=!1,_?nr():v&&Ce()})},"_chunkSteps"),_closeSteps:n(()=>{h=!1,k||Sa(q._readableStreamController),I||Sa(U._readableStreamController),q._readableStreamController._pendingPullIntos.length>0&&ps(q._readableStreamController,0),U._readableStreamController._pendingPullIntos.length>0&&ps(U._readableStreamController,0),(!k||!I)&&W(void 0)},"_closeSteps"),_errorSteps:n(()=>{h=!1},"_errorSteps")})}n(fn,"pullWithDefaultReader");function zr(M,j){Or(f)&&(se(f),f=r_(o),bt(f));let Q=j?U:q,Ue=j?q:U;a_(f,M,1,{_chunkSteps:n(dn=>{y(()=>{_=!1,v=!1;let cn=j?I:k;if(j?k:I)cn||_s(Q._readableStreamController,dn);else{let U_;try{U_=jp(dn)}catch(Cu){Qe(Q._readableStreamController,Cu),Qe(Ue._readableStreamController,Cu),W(vt(o,Cu));return}cn||_s(Q._readableStreamController,dn),hs(Ue._readableStreamController,U_)}h=!1,_?nr():v&&Ce()})},"_chunkSteps"),_closeSteps:n(dn=>{h=!1;let cn=j?I:k,Ds=j?k:I;cn||Sa(Q._readableStreamController),Ds||Sa(Ue._readableStreamController),dn!==void 0&&(cn||_s(Q._readableStreamController,dn),!Ds&&Ue._readableStreamController._pendingPullIntos.length>0&&ps(Ue._readableStreamController,0)),(!cn||!Ds)&&W(void 0)},"_closeSteps"),_errorSteps:n(()=>{h=!1},"_errorSteps")})}n(zr,"pullWithBYOBReader");function nr(){if(h)return _=!0,u(void 0);h=!0;let M=Vf(q._readableStreamController);return M===null?fn():zr(M._view,!1),u(void 0)}n(nr,"pull1Algorithm");function Ce(){if(h)return v=!0,u(void 0);h=!0;let M=Vf(U._readableStreamController);return M===null?fn():zr(M._view,!0),u(void 0)}n(Ce,"pull2Algorithm");function Fe(M){if(k=!0,L=M,I){let j=wa([L,N]),Q=vt(o,j);W(Q)}return J}n(Fe,"cancel1Algorithm");function et(M){if(I=!0,N=M,k){let j=wa([L,N]),Q=vt(o,j);W(Q)}return J}n(et,"cancel2Algorithm");function ar(){}return n(ar,"startAlgorithm"),q=R_(ar,nr,Fe),U=R_(ar,Ce,et),bt(f),[q,U]}n(SE,"ReadableByteStreamTee");function xE(o){return r(o)&&typeof o.getReader<"u"}n(xE,"isReadableStreamLike");function EE(o){return xE(o)?TE(o.getReader()):kE(o)}n(EE,"ReadableStreamFrom");function kE(o){let f,h=Wp(o,"async"),_=t;function v(){let I;try{I=m1(h)}catch(N){return c(N)}let L=u(I);return A(L,N=>{if(!r(N))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(g1(N))pi(f._readableStreamController);else{let U=v1(N);rn(f._readableStreamController,U)}})}n(v,"pullAlgorithm");function k(I){let L=h.iterator,N;try{N=us(L,"return")}catch(W){return c(W)}if(N===void 0)return u(void 0);let q;try{q=x(N,L,[I])}catch(W){return c(W)}let U=u(q);return A(U,W=>{if(!r(W))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})}return n(k,"cancelAlgorithm"),f=Aa(_,v,k,0),f}n(kE,"ReadableStreamFromIterable");function TE(o){let f,h=t;function _(){let k;try{k=o.read()}catch(I){return c(I)}return A(k,I=>{if(!r(I))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if(I.done)pi(f._readableStreamController);else{let L=I.value;rn(f._readableStreamController,L)}})}n(_,"pullAlgorithm");function v(k){try{return u(o.cancel(k))}catch(I){return c(I)}}return n(v,"cancelAlgorithm"),f=Aa(h,_,v,0),f}n(TE,"ReadableStreamFromDefaultReader");function RE(o,f){Pt(o,f);let h=o,_=h==null?void 0:h.autoAllocateChunkSize,v=h==null?void 0:h.cancel,k=h==null?void 0:h.pull,I=h==null?void 0:h.start,L=h==null?void 0:h.type;return{autoAllocateChunkSize:_===void 0?void 0:Lf(_,`${f} has member 'autoAllocateChunkSize' that`),cancel:v===void 0?void 0:AE(v,h,`${f} has member 'cancel' that`),pull:k===void 0?void 0:CE(k,h,`${f} has member 'pull' that`),start:I===void 0?void 0:IE(I,h,`${f} has member 'start' that`),type:L===void 0?void 0:OE(L,`${f} has member 'type' that`)}}n(RE,"convertUnderlyingDefaultOrByteSource");function AE(o,f,h){return Je(o,h),_=>C(o,f,[_])}n(AE,"convertUnderlyingSourceCancelCallback");function CE(o,f,h){return Je(o,h),_=>C(o,f,[_])}n(CE,"convertUnderlyingSourcePullCallback");function IE(o,f,h){return Je(o,h),_=>x(o,f,[_])}n(IE,"convertUnderlyingSourceStartCallback");function OE(o,f){if(o=`${o}`,o!=="bytes")throw new TypeError(`${f} '${o}' is not a valid enumeration value for ReadableStreamType`);return o}n(OE,"convertReadableStreamType");function PE(o,f){return Pt(o,f),{preventCancel:!!(o==null?void 0:o.preventCancel)}}n(PE,"convertIteratorOptions");function T_(o,f){Pt(o,f);let h=o==null?void 0:o.preventAbort,_=o==null?void 0:o.preventCancel,v=o==null?void 0:o.preventClose,k=o==null?void 0:o.signal;return k!==void 0&&DE(k,`${f} has member 'signal' that`),{preventAbort:!!h,preventCancel:!!_,preventClose:!!v,signal:k}}n(T_,"convertPipeOptions");function DE(o,f){if(!U1(o))throw new TypeError(`${f} is not an AbortSignal.`)}n(DE,"assertAbortSignal");function BE(o,f){Pt(o,f);let h=o==null?void 0:o.readable;Bf(h,"readable","ReadableWritablePair"),zf(h,`${f} has member 'readable' that`);let _=o==null?void 0:o.writable;return Bf(_,"writable","ReadableWritablePair"),s_(_,`${f} has member 'writable' that`),{readable:h,writable:_}}n(BE,"convertReadableWritablePair");let Eu=class Eu{constructor(f={},h={}){f===void 0?f=null:Op(f,"First parameter");let _=vs(h,"Second parameter"),v=RE(f,"First parameter");if(uu(this),v.type==="bytes"){if(_.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");let k=Ea(_,0);A1(this,v,k)}else{let k=gs(_),I=Ea(_,1);bE(this,v,I,k)}}get locked(){if(!Fr(this))throw _i("locked");return Lr(this)}cancel(f=void 0){return Fr(this)?Lr(this)?c(new TypeError("Cannot cancel a stream that already has a reader")):vt(this,f):c(_i("cancel"))}getReader(f=void 0){if(!Fr(this))throw _i("getReader");return I1(f,"First parameter").mode===void 0?Ji(this):r_(this)}pipeThrough(f,h={}){if(!Fr(this))throw _i("pipeThrough");tr(f,1,"pipeThrough");let _=BE(f,"First parameter"),v=T_(h,"Second parameter");if(Lr(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(tn(_.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");let k=x_(this,_.writable,v.preventClose,v.preventAbort,v.preventCancel,v.signal);return T(k),_.readable}pipeTo(f,h={}){if(!Fr(this))return c(_i("pipeTo"));if(f===void 0)return c("Parameter 1 is required in 'pipeTo'.");if(!en(f))return c(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let _;try{_=T_(h,"Second parameter")}catch(v){return c(v)}return Lr(this)?c(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):tn(f)?c(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):x_(this,f,_.preventClose,_.preventAbort,_.preventCancel,_.signal)}tee(){if(!Fr(this))throw _i("tee");let f=yE(this);return wa(f)}values(f=void 0){if(!Fr(this))throw _i("values");let h=PE(f,"First parameter");return p1(this,h.preventCancel)}[Wf](f){return this.values(f)}static from(f){return EE(f)}};n(Eu,"ReadableStream");let be=Eu;Object.defineProperties(be,{from:{enumerable:!0}}),Object.defineProperties(be.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),a(be.from,"from"),a(be.prototype.cancel,"cancel"),a(be.prototype.getReader,"getReader"),a(be.prototype.pipeThrough,"pipeThrough"),a(be.prototype.pipeTo,"pipeTo"),a(be.prototype.tee,"tee"),a(be.prototype.values,"values"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(be.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(be.prototype,Wf,{value:be.prototype.values,writable:!0,configurable:!0});function Aa(o,f,h,_=1,v=()=>1){let k=Object.create(be.prototype);uu(k);let I=Object.create(mt.prototype);return k_(k,I,o,f,h,_,v),k}n(Aa,"CreateReadableStream");function R_(o,f,h){let _=Object.create(be.prototype);uu(_);let v=Object.create(pt.prototype);return t_(_,v,o,f,h,0,void 0),_}n(R_,"CreateReadableByteStream");function uu(o){o._state="readable",o._reader=void 0,o._storedError=void 0,o._disturbed=!1}n(uu,"InitializeReadableStream");function Fr(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_readableStreamController")?!1:o instanceof be}n(Fr,"IsReadableStream");function Lr(o){return o._reader!==void 0}n(Lr,"IsReadableStreamLocked");function vt(o,f){if(o._disturbed=!0,o._state==="closed")return u(void 0);if(o._state==="errored")return c(o._storedError);Ca(o);let h=o._reader;if(h!==void 0&&di(h)){let v=h._readIntoRequests;h._readIntoRequests=new S,v.forEach(k=>{k._closeSteps(void 0)})}let _=o._readableStreamController[D](f);return A(_,t)}n(vt,"ReadableStreamCancel");function Ca(o){o._state="closed";let f=o._reader;if(f!==void 0&&(Cp(f),Or(f))){let h=f._readRequests;f._readRequests=new S,h.forEach(_=>{_._closeSteps()})}}n(Ca,"ReadableStreamClose");function A_(o,f){o._state="errored",o._storedError=f;let h=o._reader;h!==void 0&&(Ne(h,f),Or(h)?Fp(h,f):o_(h,f))}n(A_,"ReadableStreamError");function _i(o){return new TypeError(`ReadableStream.prototype.${o} can only be used on a ReadableStream`)}n(_i,"streamBrandCheckException$1");function C_(o,f){Pt(o,f);let h=o==null?void 0:o.highWaterMark;return Bf(h,"highWaterMark","QueuingStrategyInit"),{highWaterMark:Ff(h)}}n(C_,"convertQueuingStrategyInit");let I_=n(o=>o.byteLength,"byteLengthSizeFunction");a(I_,"size");let ku=class ku{constructor(f){tr(f,1,"ByteLengthQueuingStrategy"),f=C_(f,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=f.highWaterMark}get highWaterMark(){if(!P_(this))throw O_("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!P_(this))throw O_("size");return I_}};n(ku,"ByteLengthQueuingStrategy");let an=ku;Object.defineProperties(an.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(an.prototype,Symbol.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function O_(o){return new TypeError(`ByteLengthQueuingStrategy.prototype.${o} can only be used on a ByteLengthQueuingStrategy`)}n(O_,"byteLengthBrandCheckException");function P_(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_byteLengthQueuingStrategyHighWaterMark")?!1:o instanceof an}n(P_,"IsByteLengthQueuingStrategy");let D_=n(()=>1,"countSizeFunction");a(D_,"size");let Tu=class Tu{constructor(f){tr(f,1,"CountQueuingStrategy"),f=C_(f,"First parameter"),this._countQueuingStrategyHighWaterMark=f.highWaterMark}get highWaterMark(){if(!F_(this))throw B_("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!F_(this))throw B_("size");return D_}};n(Tu,"CountQueuingStrategy");let on=Tu;Object.defineProperties(on.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(on.prototype,Symbol.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function B_(o){return new TypeError(`CountQueuingStrategy.prototype.${o} can only be used on a CountQueuingStrategy`)}n(B_,"countBrandCheckException");function F_(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_countQueuingStrategyHighWaterMark")?!1:o instanceof on}n(F_,"IsCountQueuingStrategy");function FE(o,f){Pt(o,f);let h=o==null?void 0:o.cancel,_=o==null?void 0:o.flush,v=o==null?void 0:o.readableType,k=o==null?void 0:o.start,I=o==null?void 0:o.transform,L=o==null?void 0:o.writableType;return{cancel:h===void 0?void 0:ME(h,o,`${f} has member 'cancel' that`),flush:_===void 0?void 0:LE(_,o,`${f} has member 'flush' that`),readableType:v,start:k===void 0?void 0:zE(k,o,`${f} has member 'start' that`),transform:I===void 0?void 0:qE(I,o,`${f} has member 'transform' that`),writableType:L}}n(FE,"convertTransformer");function LE(o,f,h){return Je(o,h),_=>C(o,f,[_])}n(LE,"convertTransformerFlushCallback");function zE(o,f,h){return Je(o,h),_=>x(o,f,[_])}n(zE,"convertTransformerStartCallback");function qE(o,f,h){return Je(o,h),(_,v)=>C(o,f,[_,v])}n(qE,"convertTransformerTransformCallback");function ME(o,f,h){return Je(o,h),_=>C(o,f,[_])}n(ME,"convertTransformerCancelCallback");let Ru=class Ru{constructor(f={},h={},_={}){f===void 0&&(f=null);let v=vs(h,"Second parameter"),k=vs(_,"Third parameter"),I=FE(f,"First parameter");if(I.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(I.writableType!==void 0)throw new RangeError("Invalid writableType specified");let L=Ea(k,0),N=gs(k),q=Ea(v,1),U=gs(v),W,J=p(bt=>{W=bt});NE(this,J,q,U,L,N),WE(this,I),I.start!==void 0?W(I.start(this._transformStreamController)):W(void 0)}get readable(){if(!L_(this))throw N_("readable");return this._readable}get writable(){if(!L_(this))throw N_("writable");return this._writable}};n(Ru,"TransformStream");let sn=Ru;Object.defineProperties(sn.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(sn.prototype,Symbol.toStringTag,{value:"TransformStream",configurable:!0});function NE(o,f,h,_,v,k){function I(){return f}n(I,"startAlgorithm");function L(J){return HE(o,J)}n(L,"writeAlgorithm");function N(J){return $E(o,J)}n(N,"abortAlgorithm");function q(){return YE(o)}n(q,"closeAlgorithm"),o._writable=Z1(I,L,q,N,h,_);function U(){return GE(o)}n(U,"pullAlgorithm");function W(J){return VE(o,J)}n(W,"cancelAlgorithm"),o._readable=Aa(I,U,W,v,k),o._backpressure=void 0,o._backpressureChangePromise=void 0,o._backpressureChangePromise_resolve=void 0,Cs(o,!0),o._transformStreamController=void 0}n(NE,"InitializeTransformStream");function L_(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_transformStreamController")?!1:o instanceof sn}n(L_,"IsTransformStream");function z_(o,f){gt(o._readable._readableStreamController,f),du(o,f)}n(z_,"TransformStreamError");function du(o,f){Os(o._transformStreamController),ka(o._writable._writableStreamController,f),cu(o)}n(du,"TransformStreamErrorWritableAndUnblockWrite");function cu(o){o._backpressure&&Cs(o,!1)}n(cu,"TransformStreamUnblockWrite");function Cs(o,f){o._backpressureChangePromise!==void 0&&o._backpressureChangePromise_resolve(),o._backpressureChangePromise=p(h=>{o._backpressureChangePromise_resolve=h}),o._backpressure=f}n(Cs,"TransformStreamSetBackpressure");let Au=class Au{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Is(this))throw Ps("desiredSize");let f=this._controlledTransformStream._readable._readableStreamController;return fu(f)}enqueue(f=void 0){if(!Is(this))throw Ps("enqueue");q_(this,f)}error(f=void 0){if(!Is(this))throw Ps("error");jE(this,f)}terminate(){if(!Is(this))throw Ps("terminate");ZE(this)}};n(Au,"TransformStreamDefaultController");let zt=Au;Object.defineProperties(zt.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),a(zt.prototype.enqueue,"enqueue"),a(zt.prototype.error,"error"),a(zt.prototype.terminate,"terminate"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(zt.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function Is(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_controlledTransformStream")?!1:o instanceof zt}n(Is,"IsTransformStreamDefaultController");function UE(o,f,h,_,v){f._controlledTransformStream=o,o._transformStreamController=f,f._transformAlgorithm=h,f._flushAlgorithm=_,f._cancelAlgorithm=v,f._finishPromise=void 0,f._finishPromise_resolve=void 0,f._finishPromise_reject=void 0}n(UE,"SetUpTransformStreamDefaultController");function WE(o,f){let h=Object.create(zt.prototype),_,v,k;f.transform!==void 0?_=n(I=>f.transform(I,h),"transformAlgorithm"):_=n(I=>{try{return q_(h,I),u(void 0)}catch(L){return c(L)}},"transformAlgorithm"),f.flush!==void 0?v=n(()=>f.flush(h),"flushAlgorithm"):v=n(()=>u(void 0),"flushAlgorithm"),f.cancel!==void 0?k=n(I=>f.cancel(I),"cancelAlgorithm"):k=n(()=>u(void 0),"cancelAlgorithm"),UE(o,h,_,v,k)}n(WE,"SetUpTransformStreamDefaultControllerFromTransformer");function Os(o){o._transformAlgorithm=void 0,o._flushAlgorithm=void 0,o._cancelAlgorithm=void 0}n(Os,"TransformStreamDefaultControllerClearAlgorithms");function q_(o,f){let h=o._controlledTransformStream,_=h._readable._readableStreamController;if(!nn(_))throw new TypeError("Readable side is not in a state that permits enqueue");try{rn(_,f)}catch(k){throw du(h,k),h._readable._storedError}vE(_)!==h._backpressure&&Cs(h,!0)}n(q_,"TransformStreamDefaultControllerEnqueue");function jE(o,f){z_(o._controlledTransformStream,f)}n(jE,"TransformStreamDefaultControllerError");function M_(o,f){let h=o._transformAlgorithm(f);return A(h,void 0,_=>{throw z_(o._controlledTransformStream,_),_})}n(M_,"TransformStreamDefaultControllerPerformTransform");function ZE(o){let f=o._controlledTransformStream,h=f._readable._readableStreamController;pi(h);let _=new TypeError("TransformStream terminated");du(f,_)}n(ZE,"TransformStreamDefaultControllerTerminate");function HE(o,f){let h=o._transformStreamController;if(o._backpressure){let _=o._backpressureChangePromise;return A(_,()=>{let v=o._writable;if(v._state==="erroring")throw v._storedError;return M_(h,f)})}return M_(h,f)}n(HE,"TransformStreamDefaultSinkWriteAlgorithm");function $E(o,f){let h=o._transformStreamController;if(h._finishPromise!==void 0)return h._finishPromise;let _=o._readable;h._finishPromise=p((k,I)=>{h._finishPromise_resolve=k,h._finishPromise_reject=I});let v=h._cancelAlgorithm(f);return Os(h),m(v,()=>(_._state==="errored"?ln(h,_._storedError):(gt(_._readableStreamController,f),hu(h)),null),k=>(gt(_._readableStreamController,k),ln(h,k),null)),h._finishPromise}n($E,"TransformStreamDefaultSinkAbortAlgorithm");function YE(o){let f=o._transformStreamController;if(f._finishPromise!==void 0)return f._finishPromise;let h=o._readable;f._finishPromise=p((v,k)=>{f._finishPromise_resolve=v,f._finishPromise_reject=k});let _=f._flushAlgorithm();return Os(f),m(_,()=>(h._state==="errored"?ln(f,h._storedError):(pi(h._readableStreamController),hu(f)),null),v=>(gt(h._readableStreamController,v),ln(f,v),null)),f._finishPromise}n(YE,"TransformStreamDefaultSinkCloseAlgorithm");function GE(o){return Cs(o,!1),o._backpressureChangePromise}n(GE,"TransformStreamDefaultSourcePullAlgorithm");function VE(o,f){let h=o._transformStreamController;if(h._finishPromise!==void 0)return h._finishPromise;let _=o._writable;h._finishPromise=p((k,I)=>{h._finishPromise_resolve=k,h._finishPromise_reject=I});let v=h._cancelAlgorithm(f);return Os(h),m(v,()=>(_._state==="errored"?ln(h,_._storedError):(ka(_._writableStreamController,f),cu(o),hu(h)),null),k=>(ka(_._writableStreamController,k),cu(o),ln(h,k),null)),h._finishPromise}n(VE,"TransformStreamDefaultSourceCancelAlgorithm");function Ps(o){return new TypeError(`TransformStreamDefaultController.prototype.${o} can only be used on a TransformStreamDefaultController`)}n(Ps,"defaultControllerBrandCheckException");function hu(o){o._finishPromise_resolve!==void 0&&(o._finishPromise_resolve(),o._finishPromise_resolve=void 0,o._finishPromise_reject=void 0)}n(hu,"defaultControllerFinishPromiseResolve");function ln(o,f){o._finishPromise_reject!==void 0&&(T(o._finishPromise),o._finishPromise_reject(f),o._finishPromise_resolve=void 0,o._finishPromise_reject=void 0)}n(ln,"defaultControllerFinishPromiseReject");function N_(o){return new TypeError(`TransformStream.prototype.${o} can only be used on a TransformStream`)}n(N_,"streamBrandCheckException"),e.ByteLengthQueuingStrategy=an,e.CountQueuingStrategy=on,e.ReadableByteStreamController=pt,e.ReadableStream=be,e.ReadableStreamBYOBReader=Bt,e.ReadableStreamBYOBRequest=ir,e.ReadableStreamDefaultController=mt,e.ReadableStreamDefaultReader=Dt,e.TransformStream=sn,e.TransformStreamDefaultController=zt,e.WritableStream=Ft,e.WritableStreamDefaultController=Br,e.WritableStreamDefaultWriter=_t})});var V_=R(()=>{if(!globalThis.ReadableStream)try{let e=require("process"),{emitWarning:t}=e;try{e.emitWarning=()=>{},Object.assign(globalThis,require("stream/web")),e.emitWarning=t}catch(r){throw e.emitWarning=t,r}}catch{Object.assign(globalThis,G_())}try{let{Blob:e}=require("buffer");e&&!e.prototype.stream&&(e.prototype.stream=n(function(r){let i=0,a=this;return new ReadableStream({type:"bytes",async pull(s){let d=await a.slice(i,Math.min(a.size,i+65536)).arrayBuffer();i+=d.byteLength,s.enqueue(new Uint8Array(d)),i===a.size&&s.close()}})},"name"))}catch{}});async function*Iu(e,t=!0){for(let r of e)if("stream"in r)yield*r.stream();else if(ArrayBuffer.isView(r))if(t){let i=r.byteOffset,a=r.byteOffset+r.byteLength;for(;i!==a;){let s=Math.min(a-i,K_),l=r.buffer.slice(i,i+s);i+=l.byteLength,yield new Uint8Array(l)}}else yield r;else{let i=0,a=r;for(;i!==a.size;){let l=await a.slice(i,Math.min(a.size,i+K_)).arrayBuffer();i+=l.byteLength,yield new Uint8Array(l)}}}var ZD,K_,or,Pa,hn,Fs,qr,X_,ik,sr,Da=Oa(()=>{ZD=tt(V_(),1);K_=65536;n(Iu,"toIterator");X_=(qr=class{constructor(t=[],r={}){yt(this,or,[]);yt(this,Pa,"");yt(this,hn,0);yt(this,Fs,"transparent");if(typeof t!="object"||t===null)throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");if(typeof t[Symbol.iterator]!="function")throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");if(typeof r!="object"&&typeof r!="function")throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");r===null&&(r={});let i=new TextEncoder;for(let s of t){let l;ArrayBuffer.isView(s)?l=new Uint8Array(s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength)):s instanceof ArrayBuffer?l=new Uint8Array(s.slice(0)):s instanceof qr?l=s:l=i.encode(`${s}`),We(this,hn,ue(this,hn)+(ArrayBuffer.isView(l)?l.byteLength:l.size)),ue(this,or).push(l)}We(this,Fs,`${r.endings===void 0?"transparent":r.endings}`);let a=r.type===void 0?"":String(r.type);We(this,Pa,/^[\x20-\x7E]*$/.test(a)?a:"")}get size(){return ue(this,hn)}get type(){return ue(this,Pa)}async text(){let t=new TextDecoder,r="";for await(let i of Iu(ue(this,or),!1))r+=t.decode(i,{stream:!0});return r+=t.decode(),r}async arrayBuffer(){let t=new Uint8Array(this.size),r=0;for await(let i of Iu(ue(this,or),!1))t.set(i,r),r+=i.length;return t.buffer}stream(){let t=Iu(ue(this,or),!0);return new globalThis.ReadableStream({type:"bytes",async pull(r){let i=await t.next();i.done?r.close():r.enqueue(i.value)},async cancel(){await t.return()}})}slice(t=0,r=this.size,i=""){let{size:a}=this,s=t<0?Math.max(a+t,0):Math.min(t,a),l=r<0?Math.max(a+r,0):Math.min(r,a),d=Math.max(l-s,0),p=ue(this,or),u=[],c=0;for(let m of p){if(c>=d)break;let g=ArrayBuffer.isView(m)?m.byteLength:m.size;if(s&&g<=s)s-=g,l-=g;else{let b;ArrayBuffer.isView(m)?(b=m.subarray(s,Math.min(g,l)),c+=b.byteLength):(b=m.slice(s,Math.min(g,l)),c+=b.size),l-=g,u.push(b),s=0}}let E=new qr([],{type:String(i).toLowerCase()});return We(E,hn,d),We(E,or,u),E}get[Symbol.toStringTag](){return"Blob"}static[Symbol.hasInstance](t){return t&&typeof t=="object"&&typeof t.constructor=="function"&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&/^(Blob|File)$/.test(t[Symbol.toStringTag])}},or=new WeakMap,Pa=new WeakMap,hn=new WeakMap,Fs=new WeakMap,n(qr,"Blob"),qr);Object.defineProperties(X_.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}});ik=X_,sr=ik});var Ba,Fa,pn,nk,ak,_n,Ou=Oa(()=>{Da();nk=(pn=class extends sr{constructor(r,i,a={}){if(arguments.length<2)throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);super(r,a);yt(this,Ba,0);yt(this,Fa,"");a===null&&(a={});let s=a.lastModified===void 0?Date.now():Number(a.lastModified);Number.isNaN(s)||We(this,Ba,s),We(this,Fa,String(i))}get name(){return ue(this,Fa)}get lastModified(){return ue(this,Ba)}get[Symbol.toStringTag](){return"File"}static[Symbol.hasInstance](r){return!!r&&r instanceof sr&&/^(File)$/.test(r[Symbol.toStringTag])}},Ba=new WeakMap,Fa=new WeakMap,n(pn,"File"),pn),ak=nk,_n=ak});function em(e,t=sr){var r=`${J_()}${J_()}`.replace(/\./g,"").slice(-28).padStart(32,"-"),i=[],a=`--${r}\r
2
+ Content-Disposition: form-data; name="`;return e.forEach((s,l)=>typeof s=="string"?i.push(a+Pu(l)+`"\r
3
3
  \r
4
4
  ${s.replace(/\r(?!\n)|(?<!\r)\n/g,`\r
5
5
  `)}\r
6
- `):i.push(a+Fu(l)+`"; filename="${Fu(s.name,1)}"\r
6
+ `):i.push(a+Pu(l)+`"; filename="${Pu(s.name,1)}"\r
7
7
  Content-Type: ${s.type||"application/octet-stream"}\r
8
8
  \r
9
9
  `,s,`\r
10
- `)),i.push(`--${r}--`),new t(i,{type:"multipart/form-data; boundary="+r})}var qa,hk,pk,rg,mk,ig,Fu,_i,rt,_n,vi,zs=Da(()=>{Fa();Bu();({toStringTag:qa,iterator:hk,hasInstance:pk}=Symbol),rg=Math.random,mk="append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(","),ig=n((e,t,r)=>(e+="",/^(Blob|File)$/.test(t&&t[qa])?[(r=r!==void 0?r+"":t[qa]=="File"?t.name:"blob",e),t.name!==r||t[qa]=="blob"?new gn([t],r,t):t]:[e,t+""]),"f"),Fu=n((e,t)=>(t?e:e.replace(/\r?\n|\r/g,`\r
11
- `)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"e"),_i=n((e,t,r)=>{if(t.length<r)throw new TypeError(`Failed to execute '${e}' on 'FormData': ${r} arguments required, but only ${t.length} present.`)},"x"),vi=(_n=class{constructor(...t){yt(this,rt,[]);if(t.length)throw new TypeError("Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.")}get[qa](){return"FormData"}[hk](){return this.entries()}static[pk](t){return t&&typeof t=="object"&&t[qa]==="FormData"&&!mk.some(r=>typeof t[r]!="function")}append(...t){_i("append",arguments,2),ue(this,rt).push(ig(...t))}delete(t){_i("delete",arguments,1),t+="",We(this,rt,ue(this,rt).filter(([r])=>r!==t))}get(t){_i("get",arguments,1),t+="";for(var r=ue(this,rt),i=r.length,a=0;a<i;a++)if(r[a][0]===t)return r[a][1];return null}getAll(t,r){return _i("getAll",arguments,1),r=[],t+="",ue(this,rt).forEach(i=>i[0]===t&&r.push(i[1])),r}has(t){return _i("has",arguments,1),t+="",ue(this,rt).some(r=>r[0]===t)}forEach(t,r){_i("forEach",arguments,1);for(var[i,a]of this)t.call(r,a,i,this)}set(...t){_i("set",arguments,2);var r=[],i=!0;t=ig(...t),ue(this,rt).forEach(a=>{a[0]===t[0]?i&&(i=!r.push(t)):r.push(a)}),i&&r.push(t),We(this,rt,r)}*entries(){yield*ue(this,rt)}*keys(){for(var[t]of this)yield t}*values(){for(var[,t]of this)yield t}},rt=new WeakMap,n(_n,"FormData"),_n);n(ng,"formDataToBlob")});var fg=R((pB,lg)=>{if(!globalThis.DOMException)try{let{MessageChannel:e}=require("worker_threads"),t=new e().port1,r=new ArrayBuffer;t.postMessage(r,[r,r])}catch(e){e.constructor.name==="DOMException"&&(globalThis.DOMException=e.constructor)}lg.exports=globalThis.DOMException});var Ms,gk,_B,Mu=Da(()=>{Ms=require("fs"),gk=tt(fg(),1);Bu();Fa();({stat:_B}=Ms.promises)});var dg={};Ym(dg,{toFormData:()=>xk});function Sk(e){let t=e.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!t)return;let r=t[2]||t[3]||"",i=r.slice(r.lastIndexOf("\\")+1);return i=i.replace(/%22/g,'"'),i=i.replace(/&#(\d{4});/g,(a,s)=>String.fromCharCode(s)),i}async function xk(e,t){if(!/multipart/i.test(t))throw new TypeError("Failed to fetch");let r=t.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!r)throw new TypeError("no or bad content-type header, no multipart boundary");let i=new Nu(r[1]||r[2]),a,s,l,d,p,u,c=[],E=new vi,g=n(y=>{l+=T.decode(y,{stream:!0})},"onPartData"),_=n(y=>{c.push(y)},"appendToFile"),b=n(()=>{let y=new gn(c,u,{type:p});E.append(d,y)},"appendFileToFormData"),A=n(()=>{E.append(d,l)},"appendEntryToFormData"),T=new TextDecoder("utf-8");T.decode(),i.onPartBegin=function(){i.onPartData=g,i.onPartEnd=A,a="",s="",l="",d="",p="",u=null,c.length=0},i.onHeaderField=function(y){a+=T.decode(y,{stream:!0})},i.onHeaderValue=function(y){s+=T.decode(y,{stream:!0})},i.onHeaderEnd=function(){if(s+=T.decode(),a=a.toLowerCase(),a==="content-disposition"){let y=s.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);y&&(d=y[2]||y[3]||""),u=Sk(s),u&&(i.onPartData=_,i.onPartEnd=b)}else a==="content-type"&&(p=s);s="",a=""};for await(let y of e)i.write(y);return i.end(),E}var qt,ee,ug,Nr,Ns,Us,_k,Na,vk,bk,yk,wk,bi,Uu,Nu,cg=Da(()=>{Mu();zs();qt=0,ee={START_BOUNDARY:qt++,HEADER_FIELD_START:qt++,HEADER_FIELD:qt++,HEADER_VALUE_START:qt++,HEADER_VALUE:qt++,HEADER_VALUE_ALMOST_DONE:qt++,HEADERS_ALMOST_DONE:qt++,PART_DATA_START:qt++,PART_DATA:qt++,END:qt++},ug=1,Nr={PART_BOUNDARY:ug,LAST_BOUNDARY:ug*=2},Ns=10,Us=13,_k=32,Na=45,vk=58,bk=97,yk=122,wk=n(e=>e|32,"lower"),bi=n(()=>{},"noop"),Uu=class Uu{constructor(t){this.index=0,this.flags=0,this.onHeaderEnd=bi,this.onHeaderField=bi,this.onHeadersEnd=bi,this.onHeaderValue=bi,this.onPartBegin=bi,this.onPartData=bi,this.onPartEnd=bi,this.boundaryChars={},t=`\r
12
- --`+t;let r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i),this.boundaryChars[r[i]]=!0;this.boundary=r,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=ee.START_BOUNDARY}write(t){let r=0,i=t.length,a=this.index,{lookbehind:s,boundary:l,boundaryChars:d,index:p,state:u,flags:c}=this,E=this.boundary.length,g=E-1,_=t.length,b,A,T=n(w=>{this[w+"Mark"]=r},"mark"),y=n(w=>{delete this[w+"Mark"]},"clear"),x=n((w,S,P,B)=>{(S===void 0||S!==P)&&this[w](B&&B.subarray(S,P))},"callback"),C=n((w,S)=>{let P=w+"Mark";P in this&&(S?(x(w,this[P],r,t),delete this[P]):(x(w,this[P],t.length,t),this[P]=0))},"dataCallback");for(r=0;r<i;r++)switch(b=t[r],u){case ee.START_BOUNDARY:if(p===l.length-2){if(b===Na)c|=Nr.LAST_BOUNDARY;else if(b!==Us)return;p++;break}else if(p-1===l.length-2){if(c&Nr.LAST_BOUNDARY&&b===Na)u=ee.END,c=0;else if(!(c&Nr.LAST_BOUNDARY)&&b===Ns)p=0,x("onPartBegin"),u=ee.HEADER_FIELD_START;else return;break}b!==l[p+2]&&(p=-2),b===l[p+2]&&p++;break;case ee.HEADER_FIELD_START:u=ee.HEADER_FIELD,T("onHeaderField"),p=0;case ee.HEADER_FIELD:if(b===Us){y("onHeaderField"),u=ee.HEADERS_ALMOST_DONE;break}if(p++,b===Na)break;if(b===vk){if(p===1)return;C("onHeaderField",!0),u=ee.HEADER_VALUE_START;break}if(A=wk(b),A<bk||A>yk)return;break;case ee.HEADER_VALUE_START:if(b===_k)break;T("onHeaderValue"),u=ee.HEADER_VALUE;case ee.HEADER_VALUE:b===Us&&(C("onHeaderValue",!0),x("onHeaderEnd"),u=ee.HEADER_VALUE_ALMOST_DONE);break;case ee.HEADER_VALUE_ALMOST_DONE:if(b!==Ns)return;u=ee.HEADER_FIELD_START;break;case ee.HEADERS_ALMOST_DONE:if(b!==Ns)return;x("onHeadersEnd"),u=ee.PART_DATA_START;break;case ee.PART_DATA_START:u=ee.PART_DATA,T("onPartData");case ee.PART_DATA:if(a=p,p===0){for(r+=g;r<_&&!(t[r]in d);)r+=E;r-=g,b=t[r]}if(p<l.length)l[p]===b?(p===0&&C("onPartData",!0),p++):p=0;else if(p===l.length)p++,b===Us?c|=Nr.PART_BOUNDARY:b===Na?c|=Nr.LAST_BOUNDARY:p=0;else if(p-1===l.length)if(c&Nr.PART_BOUNDARY){if(p=0,b===Ns){c&=~Nr.PART_BOUNDARY,x("onPartEnd"),x("onPartBegin"),u=ee.HEADER_FIELD_START;break}}else c&Nr.LAST_BOUNDARY&&b===Na?(x("onPartEnd"),u=ee.END,c=0):p=0;if(p>0)s[p-1]=b;else if(a>0){let w=new Uint8Array(s.buffer,s.byteOffset,s.byteLength);x("onPartData",0,a,w),a=0,T("onPartData"),r--}break;case ee.END:break;default:throw new Error(`Unexpected state entered: ${u}`)}C("onHeaderField"),C("onHeaderValue"),C("onPartData"),this.index=p,this.state=u,this.flags=c}end(){if(this.state===ee.HEADER_FIELD_START&&this.index===0||this.state===ee.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==ee.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}};n(Uu,"MultipartParser");Nu=Uu;n(Sk,"_fileName");n(xk,"toFormData")});var Za=R((_F,Yu)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Yu.exports={nextTick:Ok}:Yu.exports=process;function Ok(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var a=arguments.length,s,l;switch(a){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(n(function(){e.call(null,t)},"afterTickOne"));case 3:return process.nextTick(n(function(){e.call(null,t,r)},"afterTickTwo"));case 4:return process.nextTick(n(function(){e.call(null,t,r,i)},"afterTickThree"));default:for(s=new Array(a-1),l=0;l<s.length;)s[l++]=arguments[l];return process.nextTick(n(function(){e.apply(null,s)},"afterTick"))}}n(Ok,"nextTick")});var Ig=R((bF,Cg)=>{var Pk={}.toString;Cg.exports=Array.isArray||function(e){return Pk.call(e)=="[object Array]"}});var Gu=R((yF,Og)=>{Og.exports=require("stream")});var Ha=R((Vu,Dg)=>{var Vs=require("buffer"),ur=Vs.Buffer;function Pg(e,t){for(var r in e)t[r]=e[r]}n(Pg,"copyProps");ur.from&&ur.alloc&&ur.allocUnsafe&&ur.allocUnsafeSlow?Dg.exports=Vs:(Pg(Vs,Vu),Vu.Buffer=yn);function yn(e,t,r){return ur(e,t,r)}n(yn,"SafeBuffer");Pg(ur,yn);yn.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ur(e,t,r)};yn.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=ur(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};yn.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ur(e)};yn.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Vs.SlowBuffer(e)}});var wn=R(ke=>{function Dk(e){return Array.isArray?Array.isArray(e):Ks(e)==="[object Array]"}n(Dk,"isArray");ke.isArray=Dk;function Bk(e){return typeof e=="boolean"}n(Bk,"isBoolean");ke.isBoolean=Bk;function Fk(e){return e===null}n(Fk,"isNull");ke.isNull=Fk;function Lk(e){return e==null}n(Lk,"isNullOrUndefined");ke.isNullOrUndefined=Lk;function zk(e){return typeof e=="number"}n(zk,"isNumber");ke.isNumber=zk;function qk(e){return typeof e=="string"}n(qk,"isString");ke.isString=qk;function Mk(e){return typeof e=="symbol"}n(Mk,"isSymbol");ke.isSymbol=Mk;function Nk(e){return e===void 0}n(Nk,"isUndefined");ke.isUndefined=Nk;function Uk(e){return Ks(e)==="[object RegExp]"}n(Uk,"isRegExp");ke.isRegExp=Uk;function Wk(e){return typeof e=="object"&&e!==null}n(Wk,"isObject");ke.isObject=Wk;function jk(e){return Ks(e)==="[object Date]"}n(jk,"isDate");ke.isDate=jk;function Zk(e){return Ks(e)==="[object Error]"||e instanceof Error}n(Zk,"isError");ke.isError=Zk;function Hk(e){return typeof e=="function"}n(Hk,"isFunction");ke.isFunction=Hk;function $k(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}n($k,"isPrimitive");ke.isPrimitive=$k;ke.isBuffer=require("buffer").Buffer.isBuffer;function Ks(e){return Object.prototype.toString.call(e)}n(Ks,"objectToString")});var Bg=R((EF,Ku)=>{typeof Object.create=="function"?Ku.exports=n(function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):Ku.exports=n(function(t,r){if(r){t.super_=r;var i=n(function(){},"TempCtor");i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}},"inherits")});var Sn=R((TF,Ju)=>{try{if(Xu=require("util"),typeof Xu.inherits!="function")throw"";Ju.exports=Xu.inherits}catch{Ju.exports=Bg()}var Xu});var Lg=R((RF,Qu)=>{"use strict";function Yk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n(Yk,"_classCallCheck");var Fg=Ha().Buffer,$a=require("util");function Gk(e,t,r){e.copy(t,r)}n(Gk,"copyBuffer");Qu.exports=function(){function e(){Yk(this,e),this.head=null,this.tail=null,this.length=0}return n(e,"BufferList"),e.prototype.push=n(function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},"push"),e.prototype.unshift=n(function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},"unshift"),e.prototype.shift=n(function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},"shift"),e.prototype.clear=n(function(){this.head=this.tail=null,this.length=0},"clear"),e.prototype.join=n(function(r){if(this.length===0)return"";for(var i=this.head,a=""+i.data;i=i.next;)a+=r+i.data;return a},"join"),e.prototype.concat=n(function(r){if(this.length===0)return Fg.alloc(0);for(var i=Fg.allocUnsafe(r>>>0),a=this.head,s=0;a;)Gk(a.data,i,s),s+=a.data.length,a=a.next;return i},"concat"),e}();$a&&$a.inspect&&$a.inspect.custom&&(Qu.exports.prototype[$a.inspect.custom]=function(){var e=$a.inspect({length:this.length});return this.constructor.name+" "+e})});var ed=R((CF,zg)=>{"use strict";var Xs=Za();function Vk(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Xs.nextTick(Js,this,e)):Xs.nextTick(Js,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,Xs.nextTick(Js,r,s)):Xs.nextTick(Js,r,s):t&&t(s)}),this)}n(Vk,"destroy");function Kk(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}n(Kk,"undestroy");function Js(e,t){e.emit("error",t)}n(Js,"emitErrorNT");zg.exports={destroy:Vk,undestroy:Kk}});var Mg=R((OF,qg)=>{qg.exports=require("util").deprecate});var rd=R((PF,Yg)=>{"use strict";var xi=Za();Yg.exports=he;function Ug(e){var t=this;this.next=null,this.entry=null,this.finish=function(){pT(t,e)}}n(Ug,"CorkedRequest");var Xk=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:xi.nextTick,xn;he.WritableState=Ga;var Wg=Object.create(wn());Wg.inherits=Sn();var Jk={deprecate:Mg()},jg=Gu(),el=Ha().Buffer,Qk=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function eT(e){return el.from(e)}n(eT,"_uint8ArrayToBuffer");function tT(e){return el.isBuffer(e)||e instanceof Qk}n(tT,"_isUint8Array");var Zg=ed();Wg.inherits(he,jg);function rT(){}n(rT,"nop");function Ga(e,t){xn=xn||Ei(),e=e||{};var r=t instanceof xn;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,a=e.writableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(a||a===0)?this.highWaterMark=a:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=e.decodeStrings===!1;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(d){fT(t,d)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ug(this)}n(Ga,"WritableState");Ga.prototype.getBuffer=n(function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r},"getBuffer");(function(){try{Object.defineProperty(Ga.prototype,"buffer",{get:Jk.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Qs;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Qs=Function.prototype[Symbol.hasInstance],Object.defineProperty(he,Symbol.hasInstance,{value:n(function(e){return Qs.call(this,e)?!0:this!==he?!1:e&&e._writableState instanceof Ga},"value")})):Qs=n(function(e){return e instanceof this},"realHasInstance");function he(e){if(xn=xn||Ei(),!Qs.call(he,this)&&!(this instanceof xn))return new he(e);this._writableState=new Ga(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),jg.call(this)}n(he,"Writable");he.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function iT(e,t){var r=new Error("write after end");e.emit("error",r),xi.nextTick(t,r)}n(iT,"writeAfterEnd");function nT(e,t,r,i){var a=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),xi.nextTick(i,s),a=!1),a}n(nT,"validChunk");he.prototype.write=function(e,t,r){var i=this._writableState,a=!1,s=!i.objectMode&&tT(e);return s&&!el.isBuffer(e)&&(e=eT(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=rT),i.ended?iT(this,r):(s||nT(this,i,e,r))&&(i.pendingcb++,a=oT(this,i,s,e,t,r)),a};he.prototype.cork=function(){var e=this._writableState;e.corked++};he.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Hg(this,e))};he.prototype.setDefaultEncoding=n(function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},"setDefaultEncoding");function aT(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=el.from(t,r)),t}n(aT,"decodeChunk");Object.defineProperty(he.prototype,"writableHighWaterMark",{enumerable:!1,get:n(function(){return this._writableState.highWaterMark},"get")});function oT(e,t,r,i,a,s){if(!r){var l=aT(t,i,a);i!==l&&(r=!0,a="buffer",i=l)}var d=t.objectMode?1:i.length;t.length+=d;var p=t.length<t.highWaterMark;if(p||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:a,isBuf:r,callback:s,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else td(e,t,!1,d,i,a,s);return p}n(oT,"writeOrBuffer");function td(e,t,r,i,a,s,l){t.writelen=i,t.writecb=l,t.writing=!0,t.sync=!0,r?e._writev(a,t.onwrite):e._write(a,s,t.onwrite),t.sync=!1}n(td,"doWrite");function sT(e,t,r,i,a){--t.pendingcb,r?(xi.nextTick(a,i),xi.nextTick(Ya,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(a(i),e._writableState.errorEmitted=!0,e.emit("error",i),Ya(e,t))}n(sT,"onwriteError");function lT(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}n(lT,"onwriteStateUpdate");function fT(e,t){var r=e._writableState,i=r.sync,a=r.writecb;if(lT(r),t)sT(e,r,i,t,a);else{var s=$g(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Hg(e,r),i?Xk(Ng,e,r,s,a):Ng(e,r,s,a)}}n(fT,"onwrite");function Ng(e,t,r,i){r||uT(e,t),t.pendingcb--,i(),Ya(e,t)}n(Ng,"afterWrite");function uT(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}n(uT,"onwriteDrain");function Hg(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,a=new Array(i),s=t.corkedRequestsFree;s.entry=r;for(var l=0,d=!0;r;)a[l]=r,r.isBuf||(d=!1),r=r.next,l+=1;a.allBuffers=d,td(e,t,!0,t.length,a,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new Ug(t),t.bufferedRequestCount=0}else{for(;r;){var p=r.chunk,u=r.encoding,c=r.callback,E=t.objectMode?1:p.length;if(td(e,t,!1,E,p,u,c),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}n(Hg,"clearBuffer");he.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};he.prototype._writev=null;he.prototype.end=function(e,t,r){var i=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||hT(this,i,r)};function $g(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}n($g,"needFinish");function dT(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),Ya(e,t)})}n(dT,"callFinal");function cT(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,xi.nextTick(dT,e,t)):(t.prefinished=!0,e.emit("prefinish")))}n(cT,"prefinish");function Ya(e,t){var r=$g(t);return r&&(cT(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}n(Ya,"finishMaybe");function hT(e,t,r){t.ending=!0,Ya(e,t),r&&(t.finished?xi.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}n(hT,"endWritable");function pT(e,t,r){var i=e.entry;for(e.entry=null;i;){var a=i.callback;t.pendingcb--,a(r),i=i.next}t.corkedRequestsFree.next=e}n(pT,"onCorkedFinish");Object.defineProperty(he.prototype,"destroyed",{get:n(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get"),set:n(function(e){this._writableState&&(this._writableState.destroyed=e)},"set")});he.prototype.destroy=Zg.destroy;he.prototype._undestroy=Zg.undestroy;he.prototype._destroy=function(e,t){this.end(),t(e)}});var Ei=R((BF,Xg)=>{"use strict";var Gg=Za(),mT=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Xg.exports=dr;var Vg=Object.create(wn());Vg.inherits=Sn();var Kg=ad(),nd=rd();Vg.inherits(dr,Kg);for(id=mT(nd.prototype),tl=0;tl<id.length;tl++)rl=id[tl],dr.prototype[rl]||(dr.prototype[rl]=nd.prototype[rl]);var id,rl,tl;function dr(e){if(!(this instanceof dr))return new dr(e);Kg.call(this,e),nd.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",gT)}n(dr,"Duplex");Object.defineProperty(dr.prototype,"writableHighWaterMark",{enumerable:!1,get:n(function(){return this._writableState.highWaterMark},"get")});function gT(){this.allowHalfOpen||this._writableState.ended||Gg.nextTick(_T,this)}n(gT,"onend");function _T(e){e.end()}n(_T,"onEndNT");Object.defineProperty(dr.prototype,"destroyed",{get:n(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get"),set:n(function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)},"set")});dr.prototype._destroy=function(e,t){this.push(null),this.end(),Gg.nextTick(t,e)}});var ld=R(Qg=>{"use strict";var sd=Ha().Buffer,Jg=sd.isEncoding||function(e){switch(e=""+e,e&&e.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 vT(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}n(vT,"_normalizeEncoding");function bT(e){var t=vT(e);if(typeof t!="string"&&(sd.isEncoding===Jg||!Jg(e)))throw new Error("Unknown encoding: "+e);return t||e}n(bT,"normalizeEncoding");Qg.StringDecoder=Va;function Va(e){this.encoding=bT(e);var t;switch(this.encoding){case"utf16le":this.text=kT,this.end=TT,t=4;break;case"utf8":this.fillLast=ST,t=4;break;case"base64":this.text=RT,this.end=AT,t=3;break;default:this.write=CT,this.end=IT;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=sd.allocUnsafe(t)}n(Va,"StringDecoder");Va.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};Va.prototype.end=ET;Va.prototype.text=xT;Va.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function od(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}n(od,"utf8CheckByte");function yT(e,t,r){var i=t.length-1;if(i<r)return 0;var a=od(t[i]);return a>=0?(a>0&&(e.lastNeed=a-1),a):--i<r||a===-2?0:(a=od(t[i]),a>=0?(a>0&&(e.lastNeed=a-2),a):--i<r||a===-2?0:(a=od(t[i]),a>=0?(a>0&&(a===2?a=0:e.lastNeed=a-3),a):0))}n(yT,"utf8CheckIncomplete");function wT(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}n(wT,"utf8CheckExtraBytes");function ST(e){var t=this.lastTotal-this.lastNeed,r=wT(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}n(ST,"utf8FillLast");function xT(e,t){var r=yT(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}n(xT,"utf8Text");function ET(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}n(ET,"utf8End");function kT(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}n(kT,"utf16Text");function TT(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}n(TT,"utf16End");function RT(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}n(RT,"base64Text");function AT(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}n(AT,"base64End");function CT(e){return e.toString(this.encoding)}n(CT,"simpleWrite");function IT(e){return e&&e.length?this.write(e):""}n(IT,"simpleEnd")});var ad=R((MF,d_)=>{"use strict";var kn=Za();d_.exports=ie;var OT=Ig(),Ka;ie.ReadableState=o_;var qF=require("events").EventEmitter,i_=n(function(e,t){return e.listeners(t).length},"EElistenerCount"),hd=Gu(),Xa=Ha().Buffer,PT=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function DT(e){return Xa.from(e)}n(DT,"_uint8ArrayToBuffer");function BT(e){return Xa.isBuffer(e)||e instanceof PT}n(BT,"_isUint8Array");var n_=Object.create(wn());n_.inherits=Sn();var fd=require("util"),V=void 0;fd&&fd.debuglog?V=fd.debuglog("stream"):V=n(function(){},"debug");var FT=Lg(),a_=ed(),En;n_.inherits(ie,hd);var ud=["error","close","destroy","pause","resume"];function LT(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):OT(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}n(LT,"prependListener");function o_(e,t){Ka=Ka||Ei(),e=e||{};var r=t instanceof Ka;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(a||a===0)?this.highWaterMark=a:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new FT,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(En||(En=ld().StringDecoder),this.decoder=new En(e.encoding),this.encoding=e.encoding)}n(o_,"ReadableState");function ie(e){if(Ka=Ka||Ei(),!(this instanceof ie))return new ie(e);this._readableState=new o_(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),hd.call(this)}n(ie,"Readable");Object.defineProperty(ie.prototype,"destroyed",{get:n(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get"),set:n(function(e){this._readableState&&(this._readableState.destroyed=e)},"set")});ie.prototype.destroy=a_.destroy;ie.prototype._undestroy=a_.undestroy;ie.prototype._destroy=function(e,t){this.push(null),t(e)};ie.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Xa.from(e,t),t=""),i=!0),s_(this,e,t,!1,i)};ie.prototype.unshift=function(e){return s_(this,e,null,!0,!1)};function s_(e,t,r,i,a){var s=e._readableState;if(t===null)s.reading=!1,NT(e,s);else{var l;a||(l=zT(s,t)),l?e.emit("error",l):s.objectMode||t&&t.length>0?(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==Xa.prototype&&(t=DT(t)),i?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):dd(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?dd(e,s,t,!1):l_(e,s)):dd(e,s,t,!1))):i||(s.reading=!1)}return qT(s)}n(s_,"readableAddChunk");function dd(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&il(e)),l_(e,t)}n(dd,"addChunk");function zT(e,t){var r;return!BT(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}n(zT,"chunkInvalid");function qT(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}n(qT,"needMoreData");ie.prototype.isPaused=function(){return this._readableState.flowing===!1};ie.prototype.setEncoding=function(e){return En||(En=ld().StringDecoder),this._readableState.decoder=new En(e),this._readableState.encoding=e,this};var e_=8388608;function MT(e){return e>=e_?e=e_:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}n(MT,"computeNewHighWaterMark");function t_(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=MT(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}n(t_,"howMuchToRead");ie.prototype.read=function(e){V("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return V("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?cd(this):il(this),null;if(e=t_(e,t),e===0&&t.ended)return t.length===0&&cd(this),null;var i=t.needReadable;V("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,V("length less than watermark",i)),t.ended||t.reading?(i=!1,V("reading or ended",i)):i&&(V("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=t_(r,t)));var a;return e>0?a=f_(e,t):a=null,a===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&cd(this)),a!==null&&this.emit("data",a),a};function NT(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,il(e)}}n(NT,"onEofChunk");function il(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(V("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?kn.nextTick(r_,e):r_(e))}n(il,"emitReadable");function r_(e){V("emit readable"),e.emit("readable"),pd(e)}n(r_,"emitReadable_");function l_(e,t){t.readingMore||(t.readingMore=!0,kn.nextTick(UT,e,t))}n(l_,"maybeReadMore");function UT(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(V("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}n(UT,"maybeReadMore_");ie.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};ie.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,V("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=a?d:T;i.endEmitted?kn.nextTick(s):r.once("end",s),e.on("unpipe",l);function l(y,x){V("onunpipe"),y===r&&x&&x.hasUnpiped===!1&&(x.hasUnpiped=!0,c())}n(l,"onunpipe");function d(){V("onend"),e.end()}n(d,"onend");var p=WT(r);e.on("drain",p);var u=!1;function c(){V("cleanup"),e.removeListener("close",b),e.removeListener("finish",A),e.removeListener("drain",p),e.removeListener("error",_),e.removeListener("unpipe",l),r.removeListener("end",d),r.removeListener("end",T),r.removeListener("data",g),u=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&p()}n(c,"cleanup");var E=!1;r.on("data",g);function g(y){V("ondata"),E=!1;var x=e.write(y);x===!1&&!E&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&u_(i.pipes,e)!==-1)&&!u&&(V("false write response, pause",i.awaitDrain),i.awaitDrain++,E=!0),r.pause())}n(g,"ondata");function _(y){V("onerror",y),T(),e.removeListener("error",_),i_(e,"error")===0&&e.emit("error",y)}n(_,"onerror"),LT(e,"error",_);function b(){e.removeListener("finish",A),T()}n(b,"onclose"),e.once("close",b);function A(){V("onfinish"),e.removeListener("close",b),T()}n(A,"onfinish"),e.once("finish",A);function T(){V("unpipe"),r.unpipe(e)}return n(T,"unpipe"),e.emit("pipe",r),i.flowing||(V("pipe resume"),r.resume()),e};function WT(e){return function(){var t=e._readableState;V("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&i_(e,"data")&&(t.flowing=!0,pd(e))}}n(WT,"pipeOnDrain");ie.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<a;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var l=u_(t.pipes,e);return l===-1?this:(t.pipes.splice(l,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};ie.prototype.on=function(e,t){var r=hd.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&il(this):kn.nextTick(jT,this))}return r};ie.prototype.addListener=ie.prototype.on;function jT(e){V("readable nexttick read 0"),e.read(0)}n(jT,"nReadingNextTick");ie.prototype.resume=function(){var e=this._readableState;return e.flowing||(V("resume"),e.flowing=!0,ZT(this,e)),this};function ZT(e,t){t.resumeScheduled||(t.resumeScheduled=!0,kn.nextTick(HT,e,t))}n(ZT,"resume");function HT(e,t){t.reading||(V("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),pd(e),t.flowing&&!t.reading&&e.read(0)}n(HT,"resume_");ie.prototype.pause=function(){return V("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(V("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function pd(e){var t=e._readableState;for(V("flow",t.flowing);t.flowing&&e.read()!==null;);}n(pd,"flow");ie.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(V("wrapped end"),r.decoder&&!r.ended){var l=r.decoder.end();l&&l.length&&t.push(l)}t.push(null)}),e.on("data",function(l){if(V("wrapped data"),r.decoder&&(l=r.decoder.write(l)),!(r.objectMode&&l==null)&&!(!r.objectMode&&(!l||!l.length))){var d=t.push(l);d||(i=!0,e.pause())}});for(var a in e)this[a]===void 0&&typeof e[a]=="function"&&(this[a]=function(l){return function(){return e[l].apply(e,arguments)}}(a));for(var s=0;s<ud.length;s++)e.on(ud[s],this.emit.bind(this,ud[s]));return this._read=function(l){V("wrapped _read",l),i&&(i=!1,e.resume())},this};Object.defineProperty(ie.prototype,"readableHighWaterMark",{enumerable:!1,get:n(function(){return this._readableState.highWaterMark},"get")});ie._fromList=f_;function f_(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=$T(e,t.buffer,t.decoder),r}n(f_,"fromList");function $T(e,t,r){var i;return e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?i=t.shift():i=r?YT(e,t):GT(e,t),i}n($T,"fromListPartial");function YT(e,t){var r=t.head,i=1,a=r.data;for(e-=a.length;r=r.next;){var s=r.data,l=e>s.length?s.length:e;if(l===s.length?a+=s:a+=s.slice(0,e),e-=l,e===0){l===s.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(l));break}++i}return t.length-=i,a}n(YT,"copyFromBufferString");function GT(e,t){var r=Xa.allocUnsafe(e),i=t.head,a=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var s=i.data,l=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,l),e-=l,e===0){l===s.length?(++a,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=s.slice(l));break}++a}return t.length-=a,r}n(GT,"copyFromBuffer");function cd(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,kn.nextTick(VT,t,e))}n(cd,"endReadable");function VT(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}n(VT,"endReadableNT");function u_(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}n(u_,"indexOf")});var md=R((UF,p_)=>{"use strict";p_.exports=cr;var nl=Ei(),h_=Object.create(wn());h_.inherits=Sn();h_.inherits(cr,nl);function KT(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}n(KT,"afterTransform");function cr(e){if(!(this instanceof cr))return new cr(e);nl.call(this,e),this._transformState={afterTransform:KT.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",XT)}n(cr,"Transform");function XT(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){c_(e,t,r)}):c_(this,null,null)}n(XT,"prefinish");cr.prototype.push=function(e,t){return this._transformState.needTransform=!1,nl.prototype.push.call(this,e,t)};cr.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};cr.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};cr.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};cr.prototype._destroy=function(e,t){var r=this;nl.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function c_(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}n(c_,"done")});var v_=R((jF,__)=>{"use strict";__.exports=Ja;var m_=md(),g_=Object.create(wn());g_.inherits=Sn();g_.inherits(Ja,m_);function Ja(e){if(!(this instanceof Ja))return new Ja(e);m_.call(this,e)}n(Ja,"PassThrough");Ja.prototype._transform=function(e,t,r){r(null,e)}});var gd=R((we,al)=>{var Nt=require("stream");process.env.READABLE_STREAM==="disable"&&Nt?(al.exports=Nt,we=al.exports=Nt.Readable,we.Readable=Nt.Readable,we.Writable=Nt.Writable,we.Duplex=Nt.Duplex,we.Transform=Nt.Transform,we.PassThrough=Nt.PassThrough,we.Stream=Nt):(we=al.exports=ad(),we.Stream=Nt||we,we.Readable=we,we.Writable=rd(),we.Duplex=Ei(),we.Transform=md(),we.PassThrough=v_())});var hr=R($e=>{"use strict";$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";if(typeof ArrayBuffer>"u")$e.blob=!1;else{_d=new ArrayBuffer(0);try{$e.blob=new Blob([_d],{type:"application/zip"}).size===0}catch{try{b_=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,vd=new b_,vd.append(_d),$e.blob=vd.getBlob("application/zip").size===0}catch{$e.blob=!1}}}var _d,b_,vd;try{$e.nodestream=!!gd().Readable}catch{$e.nodestream=!1}});var yd=R(bd=>{"use strict";var JT=le(),QT=hr(),Ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";bd.encode=function(e){for(var t=[],r,i,a,s,l,d,p,u=0,c=e.length,E=c,g=JT.getTypeOf(e)!=="string";u<e.length;)E=c-u,g?(r=e[u++],i=u<c?e[u++]:0,a=u<c?e[u++]:0):(r=e.charCodeAt(u++),i=u<c?e.charCodeAt(u++):0,a=u<c?e.charCodeAt(u++):0),s=r>>2,l=(r&3)<<4|i>>4,d=E>1?(i&15)<<2|a>>6:64,p=E>2?a&63:64,t.push(Ut.charAt(s)+Ut.charAt(l)+Ut.charAt(d)+Ut.charAt(p));return t.join("")};bd.decode=function(e){var t,r,i,a,s,l,d,p=0,u=0,c="data:";if(e.substr(0,c.length)===c)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var E=e.length*3/4;if(e.charAt(e.length-1)===Ut.charAt(64)&&E--,e.charAt(e.length-2)===Ut.charAt(64)&&E--,E%1!==0)throw new Error("Invalid base64 input, bad content length.");var g;for(QT.uint8array?g=new Uint8Array(E|0):g=new Array(E|0);p<e.length;)a=Ut.indexOf(e.charAt(p++)),s=Ut.indexOf(e.charAt(p++)),l=Ut.indexOf(e.charAt(p++)),d=Ut.indexOf(e.charAt(p++)),t=a<<2|s>>4,r=(s&15)<<4|l>>2,i=(l&3)<<6|d,g[u++]=t,l!==64&&(g[u++]=r),d!==64&&(g[u++]=i);return g}});var Qa=R((YF,y_)=>{"use strict";y_.exports={isNode:typeof Buffer<"u",newBufferFrom:n(function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e=="number")throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},"newBufferFrom"),allocBuffer:n(function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},"allocBuffer"),isBuffer:n(function(e){return Buffer.isBuffer(e)},"isBuffer"),isStream:n(function(e){return e&&typeof e.on=="function"&&typeof e.pause=="function"&&typeof e.resume=="function"},"isStream")}});var E_=R((VF,x_)=>{"use strict";var w_=global.MutationObserver||global.WebKitMutationObserver,Tn;process.browser?w_?(wd=0,S_=new w_(eo),Sd=global.document.createTextNode(""),S_.observe(Sd,{characterData:!0}),Tn=n(function(){Sd.data=wd=++wd%2},"scheduleDrain")):!global.setImmediate&&typeof global.MessageChannel<"u"?(xd=new global.MessageChannel,xd.port1.onmessage=eo,Tn=n(function(){xd.port2.postMessage(0)},"scheduleDrain")):"document"in global&&"onreadystatechange"in global.document.createElement("script")?Tn=n(function(){var e=global.document.createElement("script");e.onreadystatechange=function(){eo(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},global.document.documentElement.appendChild(e)},"scheduleDrain"):Tn=n(function(){setTimeout(eo,0)},"scheduleDrain"):Tn=n(function(){process.nextTick(eo)},"scheduleDrain");var wd,S_,Sd,xd,Ed,to=[];function eo(){Ed=!0;for(var e,t,r=to.length;r;){for(t=to,to=[],e=-1;++e<r;)t[e]();r=to.length}Ed=!1}n(eo,"nextTick");x_.exports=eR;function eR(e){to.push(e)===1&&!Ed&&Tn()}n(eR,"immediate")});var O_=R((XF,I_)=>{"use strict";var k_=E_();function Rn(){}n(Rn,"INTERNAL");var Te={},T_=["REJECTED"],kd=["FULFILLED"],R_=["PENDING"];process.browser||(ro=["UNHANDLED"]);var ro;I_.exports=Ur;function Ur(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=R_,this.queue=[],this.outcome=void 0,process.browser||(this.handled=ro),e!==Rn&&A_(this,e)}n(Ur,"Promise");Ur.prototype.finally=function(e){if(typeof e!="function")return this;var t=this.constructor;return this.then(r,i);function r(a){function s(){return a}return n(s,"yes"),t.resolve(e()).then(s)}function i(a){function s(){throw a}return n(s,"no"),t.resolve(e()).then(s)}};Ur.prototype.catch=function(e){return this.then(null,e)};Ur.prototype.then=function(e,t){if(typeof e!="function"&&this.state===kd||typeof t!="function"&&this.state===T_)return this;var r=new this.constructor(Rn);if(process.browser||this.handled===ro&&(this.handled=null),this.state!==R_){var i=this.state===kd?e:t;Td(r,i,this.outcome)}else this.queue.push(new io(r,e,t));return r};function io(e,t,r){this.promise=e,typeof t=="function"&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),typeof r=="function"&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}n(io,"QueueItem");io.prototype.callFulfilled=function(e){Te.resolve(this.promise,e)};io.prototype.otherCallFulfilled=function(e){Td(this.promise,this.onFulfilled,e)};io.prototype.callRejected=function(e){Te.reject(this.promise,e)};io.prototype.otherCallRejected=function(e){Td(this.promise,this.onRejected,e)};function Td(e,t,r){k_(function(){var i;try{i=t(r)}catch(a){return Te.reject(e,a)}i===e?Te.reject(e,new TypeError("Cannot resolve promise with itself")):Te.resolve(e,i)})}n(Td,"unwrap");Te.resolve=function(e,t){var r=C_(tR,t);if(r.status==="error")return Te.reject(e,r.value);var i=r.value;if(i)A_(e,i);else{e.state=kd,e.outcome=t;for(var a=-1,s=e.queue.length;++a<s;)e.queue[a].callFulfilled(t)}return e};Te.reject=function(e,t){e.state=T_,e.outcome=t,process.browser||e.handled===ro&&k_(function(){e.handled===ro&&process.emit("unhandledRejection",t,e)});for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e};function tR(e){var t=e&&e.then;if(e&&(typeof e=="object"||typeof e=="function")&&typeof t=="function")return n(function(){t.apply(e,arguments)},"appyThen")}n(tR,"getThen");function A_(e,t){var r=!1;function i(d){r||(r=!0,Te.reject(e,d))}n(i,"onError");function a(d){r||(r=!0,Te.resolve(e,d))}n(a,"onSuccess");function s(){t(a,i)}n(s,"tryToUnwrap");var l=C_(s);l.status==="error"&&i(l.value)}n(A_,"safelyResolveThenable");function C_(e,t){var r={};try{r.value=e(t),r.status="success"}catch(i){r.status="error",r.value=i}return r}n(C_,"tryCatch");Ur.resolve=rR;function rR(e){return e instanceof this?e:Te.resolve(new this(Rn),e)}n(rR,"resolve");Ur.reject=iR;function iR(e){var t=new this(Rn);return Te.reject(t,e)}n(iR,"reject");Ur.all=nR;function nR(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var a=new Array(r),s=0,l=-1,d=new this(Rn);++l<r;)p(e[l],l);return d;function p(u,c){t.resolve(u).then(E,function(g){i||(i=!0,Te.reject(d,g))});function E(g){a[c]=g,++s===r&&!i&&(i=!0,Te.resolve(d,a))}n(E,"resolveFromAll")}}n(nR,"all");Ur.race=aR;function aR(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var a=-1,s=new this(Rn);++a<r;)l(e[a]);return s;function l(d){t.resolve(d).then(function(p){i||(i=!0,Te.resolve(s,p))},function(p){i||(i=!0,Te.reject(s,p))})}}n(aR,"race")});var An=R((QF,P_)=>{"use strict";var Rd=null;typeof Promise<"u"?Rd=Promise:Rd=O_();P_.exports={Promise:Rd}});var B_=R(D_=>{(function(e,t){"use strict";if(e.setImmediate)return;var r=1,i={},a=!1,s=e.document,l;function d(x){typeof x!="function"&&(x=new Function(""+x));for(var C=new Array(arguments.length-1),w=0;w<C.length;w++)C[w]=arguments[w+1];var S={callback:x,args:C};return i[r]=S,l(r),r++}n(d,"setImmediate");function p(x){delete i[x]}n(p,"clearImmediate");function u(x){var C=x.callback,w=x.args;switch(w.length){case 0:C();break;case 1:C(w[0]);break;case 2:C(w[0],w[1]);break;case 3:C(w[0],w[1],w[2]);break;default:C.apply(t,w);break}}n(u,"run");function c(x){if(a)setTimeout(c,0,x);else{var C=i[x];if(C){a=!0;try{u(C)}finally{p(x),a=!1}}}}n(c,"runIfPresent");function E(){l=n(function(x){process.nextTick(function(){c(x)})},"registerImmediate")}n(E,"installNextTickImplementation");function g(){if(e.postMessage&&!e.importScripts){var x=!0,C=e.onmessage;return e.onmessage=function(){x=!1},e.postMessage("","*"),e.onmessage=C,x}}n(g,"canUsePostMessage");function _(){var x="setImmediate$"+Math.random()+"$",C=n(function(w){w.source===e&&typeof w.data=="string"&&w.data.indexOf(x)===0&&c(+w.data.slice(x.length))},"onGlobalMessage");e.addEventListener?e.addEventListener("message",C,!1):e.attachEvent("onmessage",C),l=n(function(w){e.postMessage(x+w,"*")},"registerImmediate")}n(_,"installPostMessageImplementation");function b(){var x=new MessageChannel;x.port1.onmessage=function(C){var w=C.data;c(w)},l=n(function(C){x.port2.postMessage(C)},"registerImmediate")}n(b,"installMessageChannelImplementation");function A(){var x=s.documentElement;l=n(function(C){var w=s.createElement("script");w.onreadystatechange=function(){c(C),w.onreadystatechange=null,x.removeChild(w),w=null},x.appendChild(w)},"registerImmediate")}n(A,"installReadyStateChangeImplementation");function T(){l=n(function(x){setTimeout(c,0,x)},"registerImmediate")}n(T,"installSetTimeoutImplementation");var y=Object.getPrototypeOf&&Object.getPrototypeOf(e);y=y&&y.setTimeout?y:e,{}.toString.call(e.process)==="[object process]"?E():g()?_():e.MessageChannel?b():s&&"onreadystatechange"in s.createElement("script")?A():T(),y.setImmediate=d,y.clearImmediate=p})(typeof self>"u"?typeof global>"u"?D_:global:self)});var le=R(pe=>{"use strict";var Wr=hr(),oR=yd(),Cn=Qa(),Ad=An();B_();function sR(e){var t=null;return Wr.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),sl(e,t)}n(sR,"string2binary");pe.newBlob=function(e,t){pe.checkSupport("blob");try{return new Blob([e],{type:t})}catch{try{var r=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,i=new r;return i.append(e),i.getBlob(t)}catch{throw new Error("Bug : can't construct the Blob.")}}};function no(e){return e}n(no,"identity");function sl(e,t){for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)&255;return t}n(sl,"stringToArrayLike");var ol={stringifyByChunk:n(function(e,t,r){var i=[],a=0,s=e.length;if(s<=r)return String.fromCharCode.apply(null,e);for(;a<s;)t==="array"||t==="nodebuffer"?i.push(String.fromCharCode.apply(null,e.slice(a,Math.min(a+r,s)))):i.push(String.fromCharCode.apply(null,e.subarray(a,Math.min(a+r,s)))),a+=r;return i.join("")},"stringifyByChunk"),stringifyByChar:n(function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},"stringifyByChar"),applyCanBeUsed:{uint8array:function(){try{return Wr.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return Wr.nodebuffer&&String.fromCharCode.apply(null,Cn.allocBuffer(1)).length===1}catch{return!1}}()}};function ao(e){var t=65536,r=pe.getTypeOf(e),i=!0;if(r==="uint8array"?i=ol.applyCanBeUsed.uint8array:r==="nodebuffer"&&(i=ol.applyCanBeUsed.nodebuffer),i)for(;t>1;)try{return ol.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return ol.stringifyByChar(e)}n(ao,"arrayLikeToString");pe.applyFromCharCode=ao;function ll(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}n(ll,"arrayLikeToArrayLike");var jr={};jr.string={string:no,array:n(function(e){return sl(e,new Array(e.length))},"array"),arraybuffer:n(function(e){return jr.string.uint8array(e).buffer},"arraybuffer"),uint8array:n(function(e){return sl(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:n(function(e){return sl(e,Cn.allocBuffer(e.length))},"nodebuffer")};jr.array={string:ao,array:no,arraybuffer:n(function(e){return new Uint8Array(e).buffer},"arraybuffer"),uint8array:n(function(e){return new Uint8Array(e)},"uint8array"),nodebuffer:n(function(e){return Cn.newBufferFrom(e)},"nodebuffer")};jr.arraybuffer={string:n(function(e){return ao(new Uint8Array(e))},"string"),array:n(function(e){return ll(new Uint8Array(e),new Array(e.byteLength))},"array"),arraybuffer:no,uint8array:n(function(e){return new Uint8Array(e)},"uint8array"),nodebuffer:n(function(e){return Cn.newBufferFrom(new Uint8Array(e))},"nodebuffer")};jr.uint8array={string:ao,array:n(function(e){return ll(e,new Array(e.length))},"array"),arraybuffer:n(function(e){return e.buffer},"arraybuffer"),uint8array:no,nodebuffer:n(function(e){return Cn.newBufferFrom(e)},"nodebuffer")};jr.nodebuffer={string:ao,array:n(function(e){return ll(e,new Array(e.length))},"array"),arraybuffer:n(function(e){return jr.nodebuffer.uint8array(e).buffer},"arraybuffer"),uint8array:n(function(e){return ll(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:no};pe.transformTo=function(e,t){if(t||(t=""),!e)return t;pe.checkSupport(e);var r=pe.getTypeOf(t),i=jr[r][e](t);return i};pe.resolve=function(e){for(var t=e.split("/"),r=[],i=0;i<t.length;i++){var a=t[i];a==="."||a===""&&i!==0&&i!==t.length-1||(a===".."?r.pop():r.push(a))}return r.join("/")};pe.getTypeOf=function(e){if(typeof e=="string")return"string";if(Object.prototype.toString.call(e)==="[object Array]")return"array";if(Wr.nodebuffer&&Cn.isBuffer(e))return"nodebuffer";if(Wr.uint8array&&e instanceof Uint8Array)return"uint8array";if(Wr.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer"};pe.checkSupport=function(e){var t=Wr[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this platform")};pe.MAX_VALUE_16BITS=65535;pe.MAX_VALUE_32BITS=-1;pe.pretty=function(e){var t="",r,i;for(i=0;i<(e||"").length;i++)r=e.charCodeAt(i),t+="\\x"+(r<16?"0":"")+r.toString(16).toUpperCase();return t};pe.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})};pe.inherits=function(e,t){var r=n(function(){},"Obj");r.prototype=t.prototype,e.prototype=new r};pe.extend=function(){var e={},t,r;for(t=0;t<arguments.length;t++)for(r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&typeof e[r]>"u"&&(e[r]=arguments[t][r]);return e};pe.prepareContent=function(e,t,r,i,a){var s=Ad.Promise.resolve(t).then(function(l){var d=Wr.blob&&(l instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(l))!==-1);return d&&typeof FileReader<"u"?new Ad.Promise(function(p,u){var c=new FileReader;c.onload=function(E){p(E.target.result)},c.onerror=function(E){u(E.target.error)},c.readAsArrayBuffer(l)}):l});return s.then(function(l){var d=pe.getTypeOf(l);return d?(d==="arraybuffer"?l=pe.transformTo("uint8array",l):d==="string"&&(a?l=oR.decode(l):r&&i!==!0&&(l=sR(l))),l):Ad.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}});var Ye=R((n8,L_)=>{"use strict";function F_(e){this.name=e||"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}n(F_,"GenericWorker");F_.prototype={push:n(function(e){this.emit("data",e)},"push"),end:n(function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},"end"),error:n(function(e){return this.isFinished?!1:(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},"error"),on:n(function(e,t){return this._listeners[e].push(t),this},"on"),cleanUp:n(function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},"cleanUp"),emit:n(function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},"emit"),pipe:n(function(e){return e.registerPrevious(this)},"pipe"),registerPrevious:n(function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.end()}),e.on("error",function(r){t.error(r)}),this},"registerPrevious"),pause:n(function(){return this.isPaused||this.isFinished?!1:(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},"pause"),resume:n(function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},"resume"),flush:n(function(){},"flush"),processChunk:n(function(e){this.push(e)},"processChunk"),withStreamInfo:n(function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},"withStreamInfo"),mergeStreamInfo:n(function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},"mergeStreamInfo"),lock:n(function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},"lock"),toString:n(function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e},"toString")};L_.exports=F_});var On=R(Zr=>{"use strict";var In=le(),ki=hr(),lR=Qa(),fl=Ye(),oo=new Array(256);for(pr=0;pr<256;pr++)oo[pr]=pr>=252?6:pr>=248?5:pr>=240?4:pr>=224?3:pr>=192?2:1;var pr;oo[254]=oo[254]=1;var fR=n(function(e){var t,r,i,a,s,l=e.length,d=0;for(a=0;a<l;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<l&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),d+=r<128?1:r<2048?2:r<65536?3:4;for(ki.uint8array?t=new Uint8Array(d):t=new Array(d),s=0,a=0;s<d;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<l&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[s++]=r:r<2048?(t[s++]=192|r>>>6,t[s++]=128|r&63):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|r&63):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|r&63);return t},"string2buf"),uR=n(function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+oo[e[r]]>t?r:t},"utf8border"),dR=n(function(e){var t,r,i,a,s=e.length,l=new Array(s*2);for(r=0,t=0;t<s;){if(i=e[t++],i<128){l[r++]=i;continue}if(a=oo[i],a>4){l[r++]=65533,t+=a-1;continue}for(i&=a===2?31:a===3?15:7;a>1&&t<s;)i=i<<6|e[t++]&63,a--;if(a>1){l[r++]=65533;continue}i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|i&1023)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),In.applyFromCharCode(l)},"buf2string");Zr.utf8encode=n(function(t){return ki.nodebuffer?lR.newBufferFrom(t,"utf-8"):fR(t)},"utf8encode");Zr.utf8decode=n(function(t){return ki.nodebuffer?In.transformTo("nodebuffer",t).toString("utf-8"):(t=In.transformTo(ki.uint8array?"uint8array":"array",t),dR(t))},"utf8decode");function ul(){fl.call(this,"utf-8 decode"),this.leftOver=null}n(ul,"Utf8DecodeWorker");In.inherits(ul,fl);ul.prototype.processChunk=function(e){var t=In.transformTo(ki.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(ki.uint8array){var r=t;t=new Uint8Array(r.length+this.leftOver.length),t.set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var i=uR(t),a=t;i!==t.length&&(ki.uint8array?(a=t.subarray(0,i),this.leftOver=t.subarray(i,t.length)):(a=t.slice(0,i),this.leftOver=t.slice(i,t.length))),this.push({data:Zr.utf8decode(a),meta:e.meta})};ul.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:Zr.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};Zr.Utf8DecodeWorker=ul;function Cd(){fl.call(this,"utf-8 encode")}n(Cd,"Utf8EncodeWorker");In.inherits(Cd,fl);Cd.prototype.processChunk=function(e){this.push({data:Zr.utf8encode(e.data),meta:e.meta})};Zr.Utf8EncodeWorker=Cd});var N_=R((l8,M_)=>{"use strict";var z_=Ye(),q_=le();function Id(e){z_.call(this,"ConvertWorker to "+e),this.destType=e}n(Id,"ConvertWorker");q_.inherits(Id,z_);Id.prototype.processChunk=function(e){this.push({data:q_.transformTo(this.destType,e.data),meta:e.meta})};M_.exports=Id});var j_=R((u8,W_)=>{"use strict";var U_=gd().Readable,cR=le();cR.inherits(Od,U_);function Od(e,t,r){U_.call(this,t),this._helper=e;var i=this;e.on("data",function(a,s){i.push(a)||i._helper.pause(),r&&r(s)}).on("error",function(a){i.emit("error",a)}).on("end",function(){i.push(null)})}n(Od,"NodejsStreamOutputAdapter");Od.prototype._read=function(){this._helper.resume()};W_.exports=Od});var Pd=R((c8,$_)=>{"use strict";var Ti=le(),hR=N_(),pR=Ye(),mR=yd(),gR=hr(),_R=An(),Z_=null;if(gR.nodestream)try{Z_=j_()}catch{}function vR(e,t,r){switch(e){case"blob":return Ti.newBlob(Ti.transformTo("arraybuffer",t),r);case"base64":return mR.encode(t);default:return Ti.transformTo(e,t)}}n(vR,"transformZipOutput");function bR(e,t){var r,i=0,a=null,s=0;for(r=0;r<t.length;r++)s+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(a=new Uint8Array(s),r=0;r<t.length;r++)a.set(t[r],i),i+=t[r].length;return a;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}n(bR,"concat");function yR(e,t){return new _R.Promise(function(r,i){var a=[],s=e._internalType,l=e._outputType,d=e._mimeType;e.on("data",function(p,u){a.push(p),t&&t(u)}).on("error",function(p){a=[],i(p)}).on("end",function(){try{var p=vR(l,bR(s,a),d);r(p)}catch(u){i(u)}a=[]}).resume()})}n(yR,"accumulate");function H_(e,t,r){var i=t;switch(t){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string";break}try{this._internalType=i,this._outputType=t,this._mimeType=r,Ti.checkSupport(i),this._worker=e.pipe(new hR(i)),e.lock()}catch(a){this._worker=new pR("error"),this._worker.error(a)}}n(H_,"StreamHelper");H_.prototype={accumulate:n(function(e){return yR(this,e)},"accumulate"),on:n(function(e,t){var r=this;return e==="data"?this._worker.on(e,function(i){t.call(r,i.data,i.meta)}):this._worker.on(e,function(){Ti.delay(t,arguments,r)}),this},"on"),resume:n(function(){return Ti.delay(this._worker.resume,[],this._worker),this},"resume"),pause:n(function(){return this._worker.pause(),this},"pause"),toNodejsStream:n(function(e){if(Ti.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new Z_(this,{objectMode:this._outputType!=="nodebuffer"},e)},"toNodejsStream")};$_.exports=H_});var Dd=R(St=>{"use strict";St.base64=!1;St.binary=!1;St.dir=!1;St.createFolders=!0;St.date=null;St.compression=null;St.compressionOptions=null;St.comment=null;St.unixPermissions=null;St.dosPermissions=null});var Bd=R((m8,Y_)=>{"use strict";var dl=le(),cl=Ye(),wR=16*1024;function Pn(e){cl.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(r){t.dataIsReady=!0,t.data=r,t.max=r&&r.length||0,t.type=dl.getTypeOf(r),t.isPaused||t._tickAndRepeat()},function(r){t.error(r)})}n(Pn,"DataWorker");dl.inherits(Pn,cl);Pn.prototype.cleanUp=function(){cl.prototype.cleanUp.call(this),this.data=null};Pn.prototype.resume=function(){return cl.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,dl.delay(this._tickAndRepeat,[],this)),!0):!1};Pn.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(dl.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};Pn.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=wR,t=null,r=Math.min(this.max,this.index+e);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,r);break;case"uint8array":t=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":t=this.data.slice(this.index,r);break}return this.index=r,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})};Y_.exports=Pn});var hl=R((_8,V_)=>{"use strict";var SR=le();function xR(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}n(xR,"makeTable");var G_=xR();function ER(e,t,r,i){var a=G_,s=i+r;e=e^-1;for(var l=i;l<s;l++)e=e>>>8^a[(e^t[l])&255];return e^-1}n(ER,"crc32");function kR(e,t,r,i){var a=G_,s=i+r;e=e^-1;for(var l=i;l<s;l++)e=e>>>8^a[(e^t.charCodeAt(l))&255];return e^-1}n(kR,"crc32str");V_.exports=n(function(t,r){if(typeof t>"u"||!t.length)return 0;var i=SR.getTypeOf(t)!=="string";return i?ER(r|0,t,t.length,0):kR(r|0,t,t.length,0)},"crc32wrapper")});var Ld=R((b8,X_)=>{"use strict";var K_=Ye(),TR=hl(),RR=le();function Fd(){K_.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n(Fd,"Crc32Probe");RR.inherits(Fd,K_);Fd.prototype.processChunk=function(e){this.streamInfo.crc32=TR(e.data,this.streamInfo.crc32||0),this.push(e)};X_.exports=Fd});var Q_=R((w8,J_)=>{"use strict";var AR=le(),zd=Ye();function qd(e){zd.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n(qd,"DataLengthProbe");AR.inherits(qd,zd);qd.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}zd.prototype.processChunk.call(this,e)};J_.exports=qd});var pl=R((x8,r0)=>{"use strict";var e0=An(),t0=Bd(),CR=Ld(),Md=Q_();function Nd(e,t,r,i,a){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=a}n(Nd,"CompressedObject");Nd.prototype={getContentWorker:n(function(){var e=new t0(e0.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new Md("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},"getContentWorker"),getCompressedWorker:n(function(){return new t0(e0.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)},"getCompressedWorker")};Nd.createWorkerFrom=function(e,t,r){return e.pipe(new CR).pipe(new Md("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new Md("compressedSize")).withStreamInfo("compression",t)};r0.exports=Nd});var o0=R((k8,a0)=>{"use strict";var IR=Pd(),OR=Bd(),Ud=On(),Wd=pl(),i0=Ye(),jd=n(function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}},"ZipObject");jd.prototype={internalStream:n(function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");r=e.toLowerCase();var i=r==="string"||r==="text";(r==="binarystring"||r==="text")&&(r="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!i&&(t=t.pipe(new Ud.Utf8EncodeWorker)),!a&&i&&(t=t.pipe(new Ud.Utf8DecodeWorker))}catch(s){t=new i0("error"),t.error(s)}return new IR(t,r,"")},"internalStream"),async:n(function(e,t){return this.internalStream(e).accumulate(t)},"async"),nodeStream:n(function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},"nodeStream"),_compressWorker:n(function(e,t){if(this._data instanceof Wd&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new Ud.Utf8EncodeWorker)),Wd.createWorkerFrom(r,e,t)},"_compressWorker"),_decompressWorker:n(function(){return this._data instanceof Wd?this._data.getContentWorker():this._data instanceof i0?this._data:new OR(this._data)},"_decompressWorker")};var n0=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],PR=n(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"removedFn");for(ml=0;ml<n0.length;ml++)jd.prototype[n0[ml]]=PR;var ml;a0.exports=jd});var mr=R(Ie=>{"use strict";var DR=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function BR(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n(BR,"_has");Ie.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(var i in r)BR(r,i)&&(e[i]=r[i])}}return e};Ie.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var FR={arraySet:n(function(e,t,r,i,a){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+i),a);return}for(var s=0;s<i;s++)e[a+s]=t[r+s]},"arraySet"),flattenChunks:n(function(e){var t,r,i,a,s,l;for(i=0,t=0,r=e.length;t<r;t++)i+=e[t].length;for(l=new Uint8Array(i),a=0,t=0,r=e.length;t<r;t++)s=e[t],l.set(s,a),a+=s.length;return l},"flattenChunks")},LR={arraySet:n(function(e,t,r,i,a){for(var s=0;s<i;s++)e[a+s]=t[r+s]},"arraySet"),flattenChunks:n(function(e){return[].concat.apply([],e)},"flattenChunks")};Ie.setTyped=function(e){e?(Ie.Buf8=Uint8Array,Ie.Buf16=Uint16Array,Ie.Buf32=Int32Array,Ie.assign(Ie,FR)):(Ie.Buf8=Array,Ie.Buf16=Array,Ie.Buf32=Array,Ie.assign(Ie,LR))};Ie.setTyped(DR)});var C0=R(Fn=>{"use strict";var zR=mr(),qR=4,s0=0,l0=1,MR=2;function Bn(e){for(var t=e.length;--t>=0;)e[t]=0}n(Bn,"zero");var NR=0,p0=1,UR=2,WR=3,jR=258,Kd=29,ho=256,lo=ho+1+Kd,Dn=30,Xd=19,m0=2*lo+1,Ri=15,Zd=16,ZR=7,Jd=256,g0=16,_0=17,v0=18,Gd=[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],gl=[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],HR=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],b0=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$R=512,gr=new Array((lo+2)*2);Bn(gr);var so=new Array(Dn*2);Bn(so);var fo=new Array($R);Bn(fo);var uo=new Array(jR-WR+1);Bn(uo);var Qd=new Array(Kd);Bn(Qd);var _l=new Array(Dn);Bn(_l);function Hd(e,t,r,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}n(Hd,"StaticTreeDesc");var y0,w0,S0;function $d(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}n($d,"TreeDesc");function x0(e){return e<256?fo[e]:fo[256+(e>>>7)]}n(x0,"d_code");function co(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}n(co,"put_short");function qe(e,t,r){e.bi_valid>Zd-r?(e.bi_buf|=t<<e.bi_valid&65535,co(e,e.bi_buf),e.bi_buf=t>>Zd-e.bi_valid,e.bi_valid+=r-Zd):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}n(qe,"send_bits");function Wt(e,t,r){qe(e,r[t*2],r[t*2+1])}n(Wt,"send_code");function E0(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}n(E0,"bi_reverse");function YR(e){e.bi_valid===16?(co(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}n(YR,"bi_flush");function GR(e,t){var r=t.dyn_tree,i=t.max_code,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,u,c,E,g,_,b,A=0;for(g=0;g<=Ri;g++)e.bl_count[g]=0;for(r[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;u<m0;u++)c=e.heap[u],g=r[r[c*2+1]*2+1]+1,g>p&&(g=p,A++),r[c*2+1]=g,!(c>i)&&(e.bl_count[g]++,_=0,c>=d&&(_=l[c-d]),b=r[c*2],e.opt_len+=b*(g+_),s&&(e.static_len+=b*(a[c*2+1]+_)));if(A!==0){do{for(g=p-1;e.bl_count[g]===0;)g--;e.bl_count[g]--,e.bl_count[g+1]+=2,e.bl_count[p]--,A-=2}while(A>0);for(g=p;g!==0;g--)for(c=e.bl_count[g];c!==0;)E=e.heap[--u],!(E>i)&&(r[E*2+1]!==g&&(e.opt_len+=(g-r[E*2+1])*r[E*2],r[E*2+1]=g),c--)}}n(GR,"gen_bitlen");function k0(e,t,r){var i=new Array(Ri+1),a=0,s,l;for(s=1;s<=Ri;s++)i[s]=a=a+r[s-1]<<1;for(l=0;l<=t;l++){var d=e[l*2+1];d!==0&&(e[l*2]=E0(i[d]++,d))}}n(k0,"gen_codes");function VR(){var e,t,r,i,a,s=new Array(Ri+1);for(r=0,i=0;i<Kd-1;i++)for(Qd[i]=r,e=0;e<1<<Gd[i];e++)uo[r++]=i;for(uo[r-1]=i,a=0,i=0;i<16;i++)for(_l[i]=a,e=0;e<1<<gl[i];e++)fo[a++]=i;for(a>>=7;i<Dn;i++)for(_l[i]=a<<7,e=0;e<1<<gl[i]-7;e++)fo[256+a++]=i;for(t=0;t<=Ri;t++)s[t]=0;for(e=0;e<=143;)gr[e*2+1]=8,e++,s[8]++;for(;e<=255;)gr[e*2+1]=9,e++,s[9]++;for(;e<=279;)gr[e*2+1]=7,e++,s[7]++;for(;e<=287;)gr[e*2+1]=8,e++,s[8]++;for(k0(gr,lo+1,s),e=0;e<Dn;e++)so[e*2+1]=5,so[e*2]=E0(e,5);y0=new Hd(gr,Gd,ho+1,lo,Ri),w0=new Hd(so,gl,0,Dn,Ri),S0=new Hd(new Array(0),HR,0,Xd,ZR)}n(VR,"tr_static_init");function T0(e){var t;for(t=0;t<lo;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Dn;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Xd;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Jd*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}n(T0,"init_block");function R0(e){e.bi_valid>8?co(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}n(R0,"bi_windup");function KR(e,t,r,i){R0(e),i&&(co(e,r),co(e,~r)),zR.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}n(KR,"copy_block");function f0(e,t,r,i){var a=t*2,s=r*2;return e[a]<e[s]||e[a]===e[s]&&i[t]<=i[r]}n(f0,"smaller");function Yd(e,t,r){for(var i=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&f0(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!f0(t,i,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=i}n(Yd,"pqdownheap");function u0(e,t,r){var i,a,s=0,l,d;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+s*2]<<8|e.pending_buf[e.d_buf+s*2+1],a=e.pending_buf[e.l_buf+s],s++,i===0?Wt(e,a,t):(l=uo[a],Wt(e,l+ho+1,t),d=Gd[l],d!==0&&(a-=Qd[l],qe(e,a,d)),i--,l=x0(i),Wt(e,l,r),d=gl[l],d!==0&&(i-=_l[l],qe(e,i,d)));while(s<e.last_lit);Wt(e,Jd,t)}n(u0,"compress_block");function Vd(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,s=t.stat_desc.elems,l,d,p=-1,u;for(e.heap_len=0,e.heap_max=m0,l=0;l<s;l++)r[l*2]!==0?(e.heap[++e.heap_len]=p=l,e.depth[l]=0):r[l*2+1]=0;for(;e.heap_len<2;)u=e.heap[++e.heap_len]=p<2?++p:0,r[u*2]=1,e.depth[u]=0,e.opt_len--,a&&(e.static_len-=i[u*2+1]);for(t.max_code=p,l=e.heap_len>>1;l>=1;l--)Yd(e,r,l);u=s;do l=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Yd(e,r,1),d=e.heap[1],e.heap[--e.heap_max]=l,e.heap[--e.heap_max]=d,r[u*2]=r[l*2]+r[d*2],e.depth[u]=(e.depth[l]>=e.depth[d]?e.depth[l]:e.depth[d])+1,r[l*2+1]=r[d*2+1]=u,e.heap[1]=u++,Yd(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],GR(e,t),k0(r,p,e.bl_count)}n(Vd,"build_tree");function d0(e,t,r){var i,a=-1,s,l=t[0*2+1],d=0,p=7,u=4;for(l===0&&(p=138,u=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)s=l,l=t[(i+1)*2+1],!(++d<p&&s===l)&&(d<u?e.bl_tree[s*2]+=d:s!==0?(s!==a&&e.bl_tree[s*2]++,e.bl_tree[g0*2]++):d<=10?e.bl_tree[_0*2]++:e.bl_tree[v0*2]++,d=0,a=s,l===0?(p=138,u=3):s===l?(p=6,u=3):(p=7,u=4))}n(d0,"scan_tree");function c0(e,t,r){var i,a=-1,s,l=t[0*2+1],d=0,p=7,u=4;for(l===0&&(p=138,u=3),i=0;i<=r;i++)if(s=l,l=t[(i+1)*2+1],!(++d<p&&s===l)){if(d<u)do Wt(e,s,e.bl_tree);while(--d!==0);else s!==0?(s!==a&&(Wt(e,s,e.bl_tree),d--),Wt(e,g0,e.bl_tree),qe(e,d-3,2)):d<=10?(Wt(e,_0,e.bl_tree),qe(e,d-3,3)):(Wt(e,v0,e.bl_tree),qe(e,d-11,7));d=0,a=s,l===0?(p=138,u=3):s===l?(p=6,u=3):(p=7,u=4)}}n(c0,"send_tree");function XR(e){var t;for(d0(e,e.dyn_ltree,e.l_desc.max_code),d0(e,e.dyn_dtree,e.d_desc.max_code),Vd(e,e.bl_desc),t=Xd-1;t>=3&&e.bl_tree[b0[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}n(XR,"build_bl_tree");function JR(e,t,r,i){var a;for(qe(e,t-257,5),qe(e,r-1,5),qe(e,i-4,4),a=0;a<i;a++)qe(e,e.bl_tree[b0[a]*2+1],3);c0(e,e.dyn_ltree,t-1),c0(e,e.dyn_dtree,r-1)}n(JR,"send_all_trees");function QR(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return s0;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return l0;for(r=32;r<ho;r++)if(e.dyn_ltree[r*2]!==0)return l0;return s0}n(QR,"detect_data_type");var h0=!1;function eA(e){h0||(VR(),h0=!0),e.l_desc=new $d(e.dyn_ltree,y0),e.d_desc=new $d(e.dyn_dtree,w0),e.bl_desc=new $d(e.bl_tree,S0),e.bi_buf=0,e.bi_valid=0,T0(e)}n(eA,"_tr_init");function A0(e,t,r,i){qe(e,(NR<<1)+(i?1:0),3),KR(e,t,r,!0)}n(A0,"_tr_stored_block");function tA(e){qe(e,p0<<1,3),Wt(e,Jd,gr),YR(e)}n(tA,"_tr_align");function rA(e,t,r,i){var a,s,l=0;e.level>0?(e.strm.data_type===MR&&(e.strm.data_type=QR(e)),Vd(e,e.l_desc),Vd(e,e.d_desc),l=XR(e),a=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=a&&(a=s)):a=s=r+5,r+4<=a&&t!==-1?A0(e,t,r,i):e.strategy===qR||s===a?(qe(e,(p0<<1)+(i?1:0),3),u0(e,gr,so)):(qe(e,(UR<<1)+(i?1:0),3),JR(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),u0(e,e.dyn_ltree,e.dyn_dtree)),T0(e),i&&R0(e)}n(rA,"_tr_flush_block");function iA(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(uo[r]+ho+1)*2]++,e.dyn_dtree[x0(t)*2]++),e.last_lit===e.lit_bufsize-1}n(iA,"_tr_tally");Fn._tr_init=eA;Fn._tr_stored_block=A0;Fn._tr_flush_block=rA;Fn._tr_tally=iA;Fn._tr_align=tA});var ec=R((O8,I0)=>{"use strict";function nA(e,t,r,i){for(var a=e&65535|0,s=e>>>16&65535|0,l=0;r!==0;){l=r>2e3?2e3:r,r-=l;do a=a+t[i++]|0,s=s+a|0;while(--l);a%=65521,s%=65521}return a|s<<16|0}n(nA,"adler32");I0.exports=nA});var tc=R((D8,O0)=>{"use strict";function aA(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}n(aA,"makeTable");var oA=aA();function sA(e,t,r,i){var a=oA,s=i+r;e^=-1;for(var l=i;l<s;l++)e=e>>>8^a[(e^t[l])&255];return e^-1}n(sA,"crc32");O0.exports=sA});var vl=R((F8,P0)=>{"use strict";P0.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 U0=R(Ht=>{"use strict";var Oe=mr(),at=C0(),L0=ec(),Hr=tc(),lA=vl(),Oi=0,fA=1,uA=3,Kr=4,D0=5,Zt=0,B0=1,ot=-2,dA=-3,rc=-5,cA=-1,hA=1,bl=2,pA=3,mA=4,gA=0,_A=2,xl=8,vA=9,bA=15,yA=8,wA=29,SA=256,nc=SA+1+wA,xA=30,EA=19,kA=2*nc+1,TA=15,Z=3,Gr=258,xt=Gr+Z+1,RA=32,El=42,ac=69,yl=73,wl=91,Sl=103,Ai=113,mo=666,_e=1,go=2,Ci=3,qn=4,AA=3;function Vr(e,t){return e.msg=lA[t],t}n(Vr,"err");function F0(e){return(e<<1)-(e>4?9:0)}n(F0,"rank");function Yr(e){for(var t=e.length;--t>=0;)e[t]=0}n(Yr,"zero");function $r(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(Oe.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}n($r,"flush_pending");function Se(e,t){at._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,$r(e.strm)}n(Se,"flush_block_only");function $(e,t){e.pending_buf[e.pending++]=t}n($,"put_byte");function po(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}n(po,"putShortMSB");function CA(e,t,r,i){var a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,Oe.arraySet(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=L0(e.adler,t,a,r):e.state.wrap===2&&(e.adler=Hr(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}n(CA,"read_buf");function z0(e,t){var r=e.max_chain_length,i=e.strstart,a,s,l=e.prev_length,d=e.nice_match,p=e.strstart>e.w_size-xt?e.strstart-(e.w_size-xt):0,u=e.window,c=e.w_mask,E=e.prev,g=e.strstart+Gr,_=u[i+l-1],b=u[i+l];e.prev_length>=e.good_match&&(r>>=2),d>e.lookahead&&(d=e.lookahead);do if(a=t,!(u[a+l]!==b||u[a+l-1]!==_||u[a]!==u[i]||u[++a]!==u[i+1])){i+=2,a++;do;while(u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&i<g);if(s=Gr-(g-i),i=g-Gr,s>l){if(e.match_start=t,l=s,s>=d)break;_=u[i+l-1],b=u[i+l]}}while((t=E[t&c])>p&&--r!==0);return l<=e.lookahead?l:e.lookahead}n(z0,"longest_match");function Ii(e){var t=e.w_size,r,i,a,s,l;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-xt)){Oe.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=t?a-t:0;while(--i);i=t,r=i;do a=e.prev[--r],e.prev[r]=a>=t?a-t:0;while(--i);s+=t}if(e.strm.avail_in===0)break;if(i=CA(e.strm,e.window,e.strstart+e.lookahead,s),e.lookahead+=i,e.lookahead+e.insert>=Z)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+Z-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<Z)););}while(e.lookahead<xt&&e.strm.avail_in!==0)}n(Ii,"fill_window");function IA(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Ii(e),e.lookahead===0&&t===Oi)return _e;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,Se(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-xt&&(Se(e,!1),e.strm.avail_out===0))return _e}return e.insert=0,t===Kr?(Se(e,!0),e.strm.avail_out===0?Ci:qn):(e.strstart>e.block_start&&(Se(e,!1),e.strm.avail_out===0),_e)}n(IA,"deflate_stored");function ic(e,t){for(var r,i;;){if(e.lookahead<xt){if(Ii(e),e.lookahead<xt&&t===Oi)return _e;if(e.lookahead===0)break}if(r=0,e.lookahead>=Z&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Z-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-xt&&(e.match_length=z0(e,r)),e.match_length>=Z)if(i=at._tr_tally(e,e.strstart-e.match_start,e.match_length-Z),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Z){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Z-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=at._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Se(e,!1),e.strm.avail_out===0))return _e}return e.insert=e.strstart<Z-1?e.strstart:Z-1,t===Kr?(Se(e,!0),e.strm.avail_out===0?Ci:qn):e.last_lit&&(Se(e,!1),e.strm.avail_out===0)?_e:go}n(ic,"deflate_fast");function Ln(e,t){for(var r,i,a;;){if(e.lookahead<xt){if(Ii(e),e.lookahead<xt&&t===Oi)return _e;if(e.lookahead===0)break}if(r=0,e.lookahead>=Z&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Z-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Z-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-xt&&(e.match_length=z0(e,r),e.match_length<=5&&(e.strategy===hA||e.match_length===Z&&e.strstart-e.match_start>4096)&&(e.match_length=Z-1)),e.prev_length>=Z&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-Z,i=at._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-Z),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Z-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Z-1,e.strstart++,i&&(Se(e,!1),e.strm.avail_out===0))return _e}else if(e.match_available){if(i=at._tr_tally(e,0,e.window[e.strstart-1]),i&&Se(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return _e}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=at._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Z-1?e.strstart:Z-1,t===Kr?(Se(e,!0),e.strm.avail_out===0?Ci:qn):e.last_lit&&(Se(e,!1),e.strm.avail_out===0)?_e:go}n(Ln,"deflate_slow");function OA(e,t){for(var r,i,a,s,l=e.window;;){if(e.lookahead<=Gr){if(Ii(e),e.lookahead<=Gr&&t===Oi)return _e;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Z&&e.strstart>0&&(a=e.strstart-1,i=l[a],i===l[++a]&&i===l[++a]&&i===l[++a])){s=e.strstart+Gr;do;while(i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&a<s);e.match_length=Gr-(s-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Z?(r=at._tr_tally(e,1,e.match_length-Z),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=at._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Se(e,!1),e.strm.avail_out===0))return _e}return e.insert=0,t===Kr?(Se(e,!0),e.strm.avail_out===0?Ci:qn):e.last_lit&&(Se(e,!1),e.strm.avail_out===0)?_e:go}n(OA,"deflate_rle");function PA(e,t){for(var r;;){if(e.lookahead===0&&(Ii(e),e.lookahead===0)){if(t===Oi)return _e;break}if(e.match_length=0,r=at._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Se(e,!1),e.strm.avail_out===0))return _e}return e.insert=0,t===Kr?(Se(e,!0),e.strm.avail_out===0?Ci:qn):e.last_lit&&(Se(e,!1),e.strm.avail_out===0)?_e:go}n(PA,"deflate_huff");function jt(e,t,r,i,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=a}n(jt,"Config");var zn;zn=[new jt(0,0,0,0,IA),new jt(4,4,8,4,ic),new jt(4,5,16,8,ic),new jt(4,6,32,32,ic),new jt(4,4,16,16,Ln),new jt(8,16,32,32,Ln),new jt(8,16,128,128,Ln),new jt(8,32,128,256,Ln),new jt(32,128,258,1024,Ln),new jt(32,258,258,4096,Ln)];function DA(e){e.window_size=2*e.w_size,Yr(e.head),e.max_lazy_match=zn[e.level].max_lazy,e.good_match=zn[e.level].good_length,e.nice_match=zn[e.level].nice_length,e.max_chain_length=zn[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Z-1,e.match_available=0,e.ins_h=0}n(DA,"lm_init");function BA(){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=xl,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 Oe.Buf16(kA*2),this.dyn_dtree=new Oe.Buf16((2*xA+1)*2),this.bl_tree=new Oe.Buf16((2*EA+1)*2),Yr(this.dyn_ltree),Yr(this.dyn_dtree),Yr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Oe.Buf16(TA+1),this.heap=new Oe.Buf16(2*nc+1),Yr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Oe.Buf16(2*nc+1),Yr(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}n(BA,"DeflateState");function q0(e){var t;return!e||!e.state?Vr(e,ot):(e.total_in=e.total_out=0,e.data_type=_A,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?El:Ai,e.adler=t.wrap===2?0:1,t.last_flush=Oi,at._tr_init(t),Zt)}n(q0,"deflateResetKeep");function M0(e){var t=q0(e);return t===Zt&&DA(e.state),t}n(M0,"deflateReset");function FA(e,t){return!e||!e.state||e.state.wrap!==2?ot:(e.state.gzhead=t,Zt)}n(FA,"deflateSetHeader");function N0(e,t,r,i,a,s){if(!e)return ot;var l=1;if(t===cA&&(t=6),i<0?(l=0,i=-i):i>15&&(l=2,i-=16),a<1||a>vA||r!==xl||i<8||i>15||t<0||t>9||s<0||s>mA)return Vr(e,ot);i===8&&(i=9);var d=new BA;return e.state=d,d.strm=e,d.wrap=l,d.gzhead=null,d.w_bits=i,d.w_size=1<<d.w_bits,d.w_mask=d.w_size-1,d.hash_bits=a+7,d.hash_size=1<<d.hash_bits,d.hash_mask=d.hash_size-1,d.hash_shift=~~((d.hash_bits+Z-1)/Z),d.window=new Oe.Buf8(d.w_size*2),d.head=new Oe.Buf16(d.hash_size),d.prev=new Oe.Buf16(d.w_size),d.lit_bufsize=1<<a+6,d.pending_buf_size=d.lit_bufsize*4,d.pending_buf=new Oe.Buf8(d.pending_buf_size),d.d_buf=1*d.lit_bufsize,d.l_buf=3*d.lit_bufsize,d.level=t,d.strategy=s,d.method=r,M0(e)}n(N0,"deflateInit2");function LA(e,t){return N0(e,t,xl,bA,yA,gA)}n(LA,"deflateInit");function zA(e,t){var r,i,a,s;if(!e||!e.state||t>D0||t<0)return e?Vr(e,ot):ot;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===mo&&t!==Kr)return Vr(e,e.avail_out===0?rc:ot);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===El)if(i.wrap===2)e.adler=0,$(i,31),$(i,139),$(i,8),i.gzhead?($(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),$(i,i.gzhead.time&255),$(i,i.gzhead.time>>8&255),$(i,i.gzhead.time>>16&255),$(i,i.gzhead.time>>24&255),$(i,i.level===9?2:i.strategy>=bl||i.level<2?4:0),$(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&($(i,i.gzhead.extra.length&255),$(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Hr(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=ac):($(i,0),$(i,0),$(i,0),$(i,0),$(i,0),$(i,i.level===9?2:i.strategy>=bl||i.level<2?4:0),$(i,AA),i.status=Ai);else{var l=xl+(i.w_bits-8<<4)<<8,d=-1;i.strategy>=bl||i.level<2?d=0:i.level<6?d=1:i.level===6?d=2:d=3,l|=d<<6,i.strstart!==0&&(l|=RA),l+=31-l%31,i.status=Ai,po(i,l),i.strstart!==0&&(po(i,e.adler>>>16),po(i,e.adler&65535)),e.adler=1}if(i.status===ac)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Hr(e.adler,i.pending_buf,i.pending-a,a)),$r(e),a=i.pending,i.pending===i.pending_buf_size));)$(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=Hr(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=yl)}else i.status=yl;if(i.status===yl)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Hr(e.adler,i.pending_buf,i.pending-a,a)),$r(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.name.length?s=i.gzhead.name.charCodeAt(i.gzindex++)&255:s=0,$(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=Hr(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.gzindex=0,i.status=wl)}else i.status=wl;if(i.status===wl)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Hr(e.adler,i.pending_buf,i.pending-a,a)),$r(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.comment.length?s=i.gzhead.comment.charCodeAt(i.gzindex++)&255:s=0,$(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=Hr(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.status=Sl)}else i.status=Sl;if(i.status===Sl&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&$r(e),i.pending+2<=i.pending_buf_size&&($(i,e.adler&255),$(i,e.adler>>8&255),e.adler=0,i.status=Ai)):i.status=Ai),i.pending!==0){if($r(e),e.avail_out===0)return i.last_flush=-1,Zt}else if(e.avail_in===0&&F0(t)<=F0(r)&&t!==Kr)return Vr(e,rc);if(i.status===mo&&e.avail_in!==0)return Vr(e,rc);if(e.avail_in!==0||i.lookahead!==0||t!==Oi&&i.status!==mo){var p=i.strategy===bl?PA(i,t):i.strategy===pA?OA(i,t):zn[i.level].func(i,t);if((p===Ci||p===qn)&&(i.status=mo),p===_e||p===Ci)return e.avail_out===0&&(i.last_flush=-1),Zt;if(p===go&&(t===fA?at._tr_align(i):t!==D0&&(at._tr_stored_block(i,0,0,!1),t===uA&&(Yr(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),$r(e),e.avail_out===0))return i.last_flush=-1,Zt}return t!==Kr?Zt:i.wrap<=0?B0:(i.wrap===2?($(i,e.adler&255),$(i,e.adler>>8&255),$(i,e.adler>>16&255),$(i,e.adler>>24&255),$(i,e.total_in&255),$(i,e.total_in>>8&255),$(i,e.total_in>>16&255),$(i,e.total_in>>24&255)):(po(i,e.adler>>>16),po(i,e.adler&65535)),$r(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Zt:B0)}n(zA,"deflate");function qA(e){var t;return!e||!e.state?ot:(t=e.state.status,t!==El&&t!==ac&&t!==yl&&t!==wl&&t!==Sl&&t!==Ai&&t!==mo?Vr(e,ot):(e.state=null,t===Ai?Vr(e,dA):Zt))}n(qA,"deflateEnd");function MA(e,t){var r=t.length,i,a,s,l,d,p,u,c;if(!e||!e.state||(i=e.state,l=i.wrap,l===2||l===1&&i.status!==El||i.lookahead))return ot;for(l===1&&(e.adler=L0(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(l===0&&(Yr(i.head),i.strstart=0,i.block_start=0,i.insert=0),c=new Oe.Buf8(i.w_size),Oe.arraySet(c,t,r-i.w_size,i.w_size,0),t=c,r=i.w_size),d=e.avail_in,p=e.next_in,u=e.input,e.avail_in=r,e.next_in=0,e.input=t,Ii(i);i.lookahead>=Z;){a=i.strstart,s=i.lookahead-(Z-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[a+Z-1])&i.hash_mask,i.prev[a&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=a,a++;while(--s);i.strstart=a,i.lookahead=Z-1,Ii(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=Z-1,i.match_available=0,e.next_in=p,e.input=u,e.avail_in=d,i.wrap=l,Zt}n(MA,"deflateSetDictionary");Ht.deflateInit=LA;Ht.deflateInit2=N0;Ht.deflateReset=M0;Ht.deflateResetKeep=q0;Ht.deflateSetHeader=FA;Ht.deflate=zA;Ht.deflateEnd=qA;Ht.deflateSetDictionary=MA;Ht.deflateInfo="pako deflate (from Nodeca project)"});var oc=R(Mn=>{"use strict";var kl=mr(),W0=!0,j0=!0;try{String.fromCharCode.apply(null,[0])}catch{W0=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{j0=!1}var _o=new kl.Buf8(256);for(_r=0;_r<256;_r++)_o[_r]=_r>=252?6:_r>=248?5:_r>=240?4:_r>=224?3:_r>=192?2:1;var _r;_o[254]=_o[254]=1;Mn.string2buf=function(e){var t,r,i,a,s,l=e.length,d=0;for(a=0;a<l;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<l&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),d+=r<128?1:r<2048?2:r<65536?3:4;for(t=new kl.Buf8(d),s=0,a=0;s<d;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<l&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[s++]=r:r<2048?(t[s++]=192|r>>>6,t[s++]=128|r&63):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|r&63):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|r&63);return t};function Z0(e,t){if(t<65534&&(e.subarray&&j0||!e.subarray&&W0))return String.fromCharCode.apply(null,kl.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}n(Z0,"buf2binstring");Mn.buf2binstring=function(e){return Z0(e,e.length)};Mn.binstring2buf=function(e){for(var t=new kl.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};Mn.buf2string=function(e,t){var r,i,a,s,l=t||e.length,d=new Array(l*2);for(i=0,r=0;r<l;){if(a=e[r++],a<128){d[i++]=a;continue}if(s=_o[a],s>4){d[i++]=65533,r+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&r<l;)a=a<<6|e[r++]&63,s--;if(s>1){d[i++]=65533;continue}a<65536?d[i++]=a:(a-=65536,d[i++]=55296|a>>10&1023,d[i++]=56320|a&1023)}return Z0(d,i)};Mn.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+_o[e[r]]>t?r:t}});var sc=R((N8,H0)=>{"use strict";function NA(){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}n(NA,"ZStream");H0.exports=NA});var V0=R(yo=>{"use strict";var vo=U0(),bo=mr(),fc=oc(),uc=vl(),UA=sc(),G0=Object.prototype.toString,WA=0,lc=4,Nn=0,$0=1,Y0=2,jA=-1,ZA=0,HA=8;function Pi(e){if(!(this instanceof Pi))return new Pi(e);this.options=bo.assign({level:jA,method:HA,chunkSize:16384,windowBits:15,memLevel:8,strategy:ZA,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new UA,this.strm.avail_out=0;var r=vo.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Nn)throw new Error(uc[r]);if(t.header&&vo.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=fc.string2buf(t.dictionary):G0.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=vo.deflateSetDictionary(this.strm,i),r!==Nn)throw new Error(uc[r]);this._dict_set=!0}}n(Pi,"Deflate");Pi.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a,s;if(this.ended)return!1;s=t===~~t?t:t===!0?lc:WA,typeof e=="string"?r.input=fc.string2buf(e):G0.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new bo.Buf8(i),r.next_out=0,r.avail_out=i),a=vo.deflate(r,s),a!==$0&&a!==Nn)return this.onEnd(a),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(s===lc||s===Y0))&&(this.options.to==="string"?this.onData(fc.buf2binstring(bo.shrinkBuf(r.output,r.next_out))):this.onData(bo.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&a!==$0);return s===lc?(a=vo.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Nn):(s===Y0&&(this.onEnd(Nn),r.avail_out=0),!0)};Pi.prototype.onData=function(e){this.chunks.push(e)};Pi.prototype.onEnd=function(e){e===Nn&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=bo.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function dc(e,t){var r=new Pi(t);if(r.push(e,!0),r.err)throw r.msg||uc[r.err];return r.result}n(dc,"deflate");function $A(e,t){return t=t||{},t.raw=!0,dc(e,t)}n($A,"deflateRaw");function YA(e,t){return t=t||{},t.gzip=!0,dc(e,t)}n(YA,"gzip");yo.Deflate=Pi;yo.deflate=dc;yo.deflateRaw=$A;yo.gzip=YA});var X0=R((Z8,K0)=>{"use strict";var Tl=30,GA=12;K0.exports=n(function(t,r){var i,a,s,l,d,p,u,c,E,g,_,b,A,T,y,x,C,w,S,P,B,D,F,z,O;i=t.state,a=t.next_in,z=t.input,s=a+(t.avail_in-5),l=t.next_out,O=t.output,d=l-(r-t.avail_out),p=l+(t.avail_out-257),u=i.dmax,c=i.wsize,E=i.whave,g=i.wnext,_=i.window,b=i.hold,A=i.bits,T=i.lencode,y=i.distcode,x=(1<<i.lenbits)-1,C=(1<<i.distbits)-1;e:do{A<15&&(b+=z[a++]<<A,A+=8,b+=z[a++]<<A,A+=8),w=T[b&x];t:for(;;){if(S=w>>>24,b>>>=S,A-=S,S=w>>>16&255,S===0)O[l++]=w&65535;else if(S&16){P=w&65535,S&=15,S&&(A<S&&(b+=z[a++]<<A,A+=8),P+=b&(1<<S)-1,b>>>=S,A-=S),A<15&&(b+=z[a++]<<A,A+=8,b+=z[a++]<<A,A+=8),w=y[b&C];r:for(;;){if(S=w>>>24,b>>>=S,A-=S,S=w>>>16&255,S&16){if(B=w&65535,S&=15,A<S&&(b+=z[a++]<<A,A+=8,A<S&&(b+=z[a++]<<A,A+=8)),B+=b&(1<<S)-1,B>u){t.msg="invalid distance too far back",i.mode=Tl;break e}if(b>>>=S,A-=S,S=l-d,B>S){if(S=B-S,S>E&&i.sane){t.msg="invalid distance too far back",i.mode=Tl;break e}if(D=0,F=_,g===0){if(D+=c-S,S<P){P-=S;do O[l++]=_[D++];while(--S);D=l-B,F=O}}else if(g<S){if(D+=c+g-S,S-=g,S<P){P-=S;do O[l++]=_[D++];while(--S);if(D=0,g<P){S=g,P-=S;do O[l++]=_[D++];while(--S);D=l-B,F=O}}}else if(D+=g-S,S<P){P-=S;do O[l++]=_[D++];while(--S);D=l-B,F=O}for(;P>2;)O[l++]=F[D++],O[l++]=F[D++],O[l++]=F[D++],P-=3;P&&(O[l++]=F[D++],P>1&&(O[l++]=F[D++]))}else{D=l-B;do O[l++]=O[D++],O[l++]=O[D++],O[l++]=O[D++],P-=3;while(P>2);P&&(O[l++]=O[D++],P>1&&(O[l++]=O[D++]))}}else if(S&64){t.msg="invalid distance code",i.mode=Tl;break e}else{w=y[(w&65535)+(b&(1<<S)-1)];continue r}break}}else if(S&64)if(S&32){i.mode=GA;break e}else{t.msg="invalid literal/length code",i.mode=Tl;break e}else{w=T[(w&65535)+(b&(1<<S)-1)];continue t}break}}while(a<s&&l<p);P=A>>3,a-=P,A-=P<<3,b&=(1<<A)-1,t.next_in=a,t.next_out=l,t.avail_in=a<s?5+(s-a):5-(a-s),t.avail_out=l<p?257+(p-l):257-(l-p),i.hold=b,i.bits=A},"inflate_fast")});var nv=R(($8,iv)=>{"use strict";var J0=mr(),Un=15,Q0=852,ev=592,tv=0,cc=1,rv=2,VA=[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],KA=[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],XA=[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],JA=[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];iv.exports=n(function(t,r,i,a,s,l,d,p){var u=p.bits,c=0,E=0,g=0,_=0,b=0,A=0,T=0,y=0,x=0,C=0,w,S,P,B,D,F=null,z=0,O,G=new J0.Buf16(Un+1),se=new J0.Buf16(Un+1),Be=null,er=0,Or,ht,Ne;for(c=0;c<=Un;c++)G[c]=0;for(E=0;E<a;E++)G[r[i+E]]++;for(b=u,_=Un;_>=1&&G[_]===0;_--);if(b>_&&(b=_),_===0)return s[l++]=1<<24|64<<16|0,s[l++]=1<<24|64<<16|0,p.bits=1,0;for(g=1;g<_&&G[g]===0;g++);for(b<g&&(b=g),y=1,c=1;c<=Un;c++)if(y<<=1,y-=G[c],y<0)return-1;if(y>0&&(t===tv||_!==1))return-1;for(se[1]=0,c=1;c<Un;c++)se[c+1]=se[c]+G[c];for(E=0;E<a;E++)r[i+E]!==0&&(d[se[r[i+E]]++]=E);if(t===tv?(F=Be=d,O=19):t===cc?(F=VA,z-=257,Be=KA,er-=257,O=256):(F=XA,Be=JA,O=-1),C=0,E=0,c=g,D=l,A=b,T=0,P=-1,x=1<<b,B=x-1,t===cc&&x>Q0||t===rv&&x>ev)return 1;for(;;){Or=c-T,d[E]<O?(ht=0,Ne=d[E]):d[E]>O?(ht=Be[er+d[E]],Ne=F[z+d[E]]):(ht=96,Ne=0),w=1<<c-T,S=1<<A,g=S;do S-=w,s[D+(C>>T)+S]=Or<<24|ht<<16|Ne|0;while(S!==0);for(w=1<<c-1;C&w;)w>>=1;if(w!==0?(C&=w-1,C+=w):C=0,E++,--G[c]===0){if(c===_)break;c=r[i+d[E]]}if(c>b&&(C&B)!==P){for(T===0&&(T=b),D+=g,A=c-T,y=1<<A;A+T<_&&(y-=G[A+T],!(y<=0));)A++,y<<=1;if(x+=1<<A,t===cc&&x>Q0||t===rv&&x>ev)return 1;P=C&B,s[P]=b<<24|A<<16|D-l|0}}return C!==0&&(s[D+C]=c-T<<24|64<<16|0),p.bits=b,0},"inflate_table")});var Mv=R(Et=>{"use strict";var Ge=mr(),vc=ec(),$t=tc(),QA=X0(),wo=nv(),eC=0,Iv=1,Ov=2,av=4,tC=5,Rl=6,Di=0,rC=1,iC=2,st=-2,Pv=-3,bc=-4,nC=-5,ov=8,Dv=1,sv=2,lv=3,fv=4,uv=5,dv=6,cv=7,hv=8,pv=9,mv=10,Il=11,vr=12,hc=13,gv=14,pc=15,_v=16,vv=17,bv=18,yv=19,Al=20,Cl=21,wv=22,Sv=23,xv=24,Ev=25,kv=26,mc=27,Tv=28,Rv=29,ae=30,yc=31,aC=32,oC=852,sC=592,lC=15,fC=lC;function Av(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}n(Av,"zswap32");function uC(){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 Ge.Buf16(320),this.work=new Ge.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}n(uC,"InflateState");function Bv(e){var t;return!e||!e.state?st:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Dv,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Ge.Buf32(oC),t.distcode=t.distdyn=new Ge.Buf32(sC),t.sane=1,t.back=-1,Di)}n(Bv,"inflateResetKeep");function Fv(e){var t;return!e||!e.state?st:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Bv(e))}n(Fv,"inflateReset");function Lv(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?st:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,Fv(e))}n(Lv,"inflateReset2");function zv(e,t){var r,i;return e?(i=new uC,e.state=i,i.window=null,r=Lv(e,t),r!==Di&&(e.state=null),r):st}n(zv,"inflateInit2");function dC(e){return zv(e,fC)}n(dC,"inflateInit");var Cv=!0,gc,_c;function cC(e){if(Cv){var t;for(gc=new Ge.Buf32(512),_c=new Ge.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(wo(Iv,e.lens,0,288,gc,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;wo(Ov,e.lens,0,32,_c,0,e.work,{bits:5}),Cv=!1}e.lencode=gc,e.lenbits=9,e.distcode=_c,e.distbits=5}n(cC,"fixedtables");function qv(e,t,r,i){var a,s=e.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Ge.Buf8(s.wsize)),i>=s.wsize?(Ge.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(a=s.wsize-s.wnext,a>i&&(a=i),Ge.arraySet(s.window,t,r-i,a,s.wnext),i-=a,i?(Ge.arraySet(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=a))),0}n(qv,"updatewindow");function hC(e,t){var r,i,a,s,l,d,p,u,c,E,g,_,b,A,T=0,y,x,C,w,S,P,B,D,F=new Ge.Buf8(4),z,O,G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return st;r=e.state,r.mode===vr&&(r.mode=hc),l=e.next_out,a=e.output,p=e.avail_out,s=e.next_in,i=e.input,d=e.avail_in,u=r.hold,c=r.bits,E=d,g=p,D=Di;e:for(;;)switch(r.mode){case Dv:if(r.wrap===0){r.mode=hc;break}for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(r.wrap&2&&u===35615){r.check=0,F[0]=u&255,F[1]=u>>>8&255,r.check=$t(r.check,F,2,0),u=0,c=0,r.mode=sv;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",r.mode=ae;break}if((u&15)!==ov){e.msg="unknown compression method",r.mode=ae;break}if(u>>>=4,c-=4,B=(u&15)+8,r.wbits===0)r.wbits=B;else if(B>r.wbits){e.msg="invalid window size",r.mode=ae;break}r.dmax=1<<B,e.adler=r.check=1,r.mode=u&512?mv:vr,u=0,c=0;break;case sv:for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(r.flags=u,(r.flags&255)!==ov){e.msg="unknown compression method",r.mode=ae;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=ae;break}r.head&&(r.head.text=u>>8&1),r.flags&512&&(F[0]=u&255,F[1]=u>>>8&255,r.check=$t(r.check,F,2,0)),u=0,c=0,r.mode=lv;case lv:for(;c<32;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.head&&(r.head.time=u),r.flags&512&&(F[0]=u&255,F[1]=u>>>8&255,F[2]=u>>>16&255,F[3]=u>>>24&255,r.check=$t(r.check,F,4,0)),u=0,c=0,r.mode=fv;case fv:for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.head&&(r.head.xflags=u&255,r.head.os=u>>8),r.flags&512&&(F[0]=u&255,F[1]=u>>>8&255,r.check=$t(r.check,F,2,0)),u=0,c=0,r.mode=uv;case uv:if(r.flags&1024){for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.length=u,r.head&&(r.head.extra_len=u),r.flags&512&&(F[0]=u&255,F[1]=u>>>8&255,r.check=$t(r.check,F,2,0)),u=0,c=0}else r.head&&(r.head.extra=null);r.mode=dv;case dv:if(r.flags&1024&&(_=r.length,_>d&&(_=d),_&&(r.head&&(B=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),Ge.arraySet(r.head.extra,i,s,_,B)),r.flags&512&&(r.check=$t(r.check,i,_,s)),d-=_,s+=_,r.length-=_),r.length))break e;r.length=0,r.mode=cv;case cv:if(r.flags&2048){if(d===0)break e;_=0;do B=i[s+_++],r.head&&B&&r.length<65536&&(r.head.name+=String.fromCharCode(B));while(B&&_<d);if(r.flags&512&&(r.check=$t(r.check,i,_,s)),d-=_,s+=_,B)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=hv;case hv:if(r.flags&4096){if(d===0)break e;_=0;do B=i[s+_++],r.head&&B&&r.length<65536&&(r.head.comment+=String.fromCharCode(B));while(B&&_<d);if(r.flags&512&&(r.check=$t(r.check,i,_,s)),d-=_,s+=_,B)break e}else r.head&&(r.head.comment=null);r.mode=pv;case pv:if(r.flags&512){for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(u!==(r.check&65535)){e.msg="header crc mismatch",r.mode=ae;break}u=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=vr;break;case mv:for(;c<32;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}e.adler=r.check=Av(u),u=0,c=0,r.mode=Il;case Il:if(r.havedict===0)return e.next_out=l,e.avail_out=p,e.next_in=s,e.avail_in=d,r.hold=u,r.bits=c,iC;e.adler=r.check=1,r.mode=vr;case vr:if(t===tC||t===Rl)break e;case hc:if(r.last){u>>>=c&7,c-=c&7,r.mode=mc;break}for(;c<3;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}switch(r.last=u&1,u>>>=1,c-=1,u&3){case 0:r.mode=gv;break;case 1:if(cC(r),r.mode=Al,t===Rl){u>>>=2,c-=2;break e}break;case 2:r.mode=vv;break;case 3:e.msg="invalid block type",r.mode=ae}u>>>=2,c-=2;break;case gv:for(u>>>=c&7,c-=c&7;c<32;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if((u&65535)!==(u>>>16^65535)){e.msg="invalid stored block lengths",r.mode=ae;break}if(r.length=u&65535,u=0,c=0,r.mode=pc,t===Rl)break e;case pc:r.mode=_v;case _v:if(_=r.length,_){if(_>d&&(_=d),_>p&&(_=p),_===0)break e;Ge.arraySet(a,i,s,_,l),d-=_,s+=_,p-=_,l+=_,r.length-=_;break}r.mode=vr;break;case vv:for(;c<14;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(r.nlen=(u&31)+257,u>>>=5,c-=5,r.ndist=(u&31)+1,u>>>=5,c-=5,r.ncode=(u&15)+4,u>>>=4,c-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=ae;break}r.have=0,r.mode=bv;case bv:for(;r.have<r.ncode;){for(;c<3;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.lens[G[r.have++]]=u&7,u>>>=3,c-=3}for(;r.have<19;)r.lens[G[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,z={bits:r.lenbits},D=wo(eC,r.lens,0,19,r.lencode,0,r.work,z),r.lenbits=z.bits,D){e.msg="invalid code lengths set",r.mode=ae;break}r.have=0,r.mode=yv;case yv:for(;r.have<r.nlen+r.ndist;){for(;T=r.lencode[u&(1<<r.lenbits)-1],y=T>>>24,x=T>>>16&255,C=T&65535,!(y<=c);){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(C<16)u>>>=y,c-=y,r.lens[r.have++]=C;else{if(C===16){for(O=y+2;c<O;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(u>>>=y,c-=y,r.have===0){e.msg="invalid bit length repeat",r.mode=ae;break}B=r.lens[r.have-1],_=3+(u&3),u>>>=2,c-=2}else if(C===17){for(O=y+3;c<O;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}u>>>=y,c-=y,B=0,_=3+(u&7),u>>>=3,c-=3}else{for(O=y+7;c<O;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}u>>>=y,c-=y,B=0,_=11+(u&127),u>>>=7,c-=7}if(r.have+_>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=ae;break}for(;_--;)r.lens[r.have++]=B}}if(r.mode===ae)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=ae;break}if(r.lenbits=9,z={bits:r.lenbits},D=wo(Iv,r.lens,0,r.nlen,r.lencode,0,r.work,z),r.lenbits=z.bits,D){e.msg="invalid literal/lengths set",r.mode=ae;break}if(r.distbits=6,r.distcode=r.distdyn,z={bits:r.distbits},D=wo(Ov,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,z),r.distbits=z.bits,D){e.msg="invalid distances set",r.mode=ae;break}if(r.mode=Al,t===Rl)break e;case Al:r.mode=Cl;case Cl:if(d>=6&&p>=258){e.next_out=l,e.avail_out=p,e.next_in=s,e.avail_in=d,r.hold=u,r.bits=c,QA(e,g),l=e.next_out,a=e.output,p=e.avail_out,s=e.next_in,i=e.input,d=e.avail_in,u=r.hold,c=r.bits,r.mode===vr&&(r.back=-1);break}for(r.back=0;T=r.lencode[u&(1<<r.lenbits)-1],y=T>>>24,x=T>>>16&255,C=T&65535,!(y<=c);){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(x&&!(x&240)){for(w=y,S=x,P=C;T=r.lencode[P+((u&(1<<w+S)-1)>>w)],y=T>>>24,x=T>>>16&255,C=T&65535,!(w+y<=c);){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}u>>>=w,c-=w,r.back+=w}if(u>>>=y,c-=y,r.back+=y,r.length=C,x===0){r.mode=kv;break}if(x&32){r.back=-1,r.mode=vr;break}if(x&64){e.msg="invalid literal/length code",r.mode=ae;break}r.extra=x&15,r.mode=wv;case wv:if(r.extra){for(O=r.extra;c<O;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=Sv;case Sv:for(;T=r.distcode[u&(1<<r.distbits)-1],y=T>>>24,x=T>>>16&255,C=T&65535,!(y<=c);){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(!(x&240)){for(w=y,S=x,P=C;T=r.distcode[P+((u&(1<<w+S)-1)>>w)],y=T>>>24,x=T>>>16&255,C=T&65535,!(w+y<=c);){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}u>>>=w,c-=w,r.back+=w}if(u>>>=y,c-=y,r.back+=y,x&64){e.msg="invalid distance code",r.mode=ae;break}r.offset=C,r.extra=x&15,r.mode=xv;case xv:if(r.extra){for(O=r.extra;c<O;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=ae;break}r.mode=Ev;case Ev:if(p===0)break e;if(_=g-p,r.offset>_){if(_=r.offset-_,_>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=ae;break}_>r.wnext?(_-=r.wnext,b=r.wsize-_):b=r.wnext-_,_>r.length&&(_=r.length),A=r.window}else A=a,b=l-r.offset,_=r.length;_>p&&(_=p),p-=_,r.length-=_;do a[l++]=A[b++];while(--_);r.length===0&&(r.mode=Cl);break;case kv:if(p===0)break e;a[l++]=r.length,p--,r.mode=Cl;break;case mc:if(r.wrap){for(;c<32;){if(d===0)break e;d--,u|=i[s++]<<c,c+=8}if(g-=p,e.total_out+=g,r.total+=g,g&&(e.adler=r.check=r.flags?$t(r.check,a,g,l-g):vc(r.check,a,g,l-g)),g=p,(r.flags?u:Av(u))!==r.check){e.msg="incorrect data check",r.mode=ae;break}u=0,c=0}r.mode=Tv;case Tv:if(r.wrap&&r.flags){for(;c<32;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(u!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=ae;break}u=0,c=0}r.mode=Rv;case Rv:D=rC;break e;case ae:D=Pv;break e;case yc:return bc;case aC:default:return st}return e.next_out=l,e.avail_out=p,e.next_in=s,e.avail_in=d,r.hold=u,r.bits=c,(r.wsize||g!==e.avail_out&&r.mode<ae&&(r.mode<mc||t!==av))&&qv(e,e.output,e.next_out,g-e.avail_out)?(r.mode=yc,bc):(E-=e.avail_in,g-=e.avail_out,e.total_in+=E,e.total_out+=g,r.total+=g,r.wrap&&g&&(e.adler=r.check=r.flags?$t(r.check,a,g,e.next_out-g):vc(r.check,a,g,e.next_out-g)),e.data_type=r.bits+(r.last?64:0)+(r.mode===vr?128:0)+(r.mode===Al||r.mode===pc?256:0),(E===0&&g===0||t===av)&&D===Di&&(D=nC),D)}n(hC,"inflate");function pC(e){if(!e||!e.state)return st;var t=e.state;return t.window&&(t.window=null),e.state=null,Di}n(pC,"inflateEnd");function mC(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?st:(r.head=t,t.done=!1,Di)}n(mC,"inflateGetHeader");function gC(e,t){var r=t.length,i,a,s;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==Il)?st:i.mode===Il&&(a=1,a=vc(a,t,r,0),a!==i.check)?Pv:(s=qv(e,t,r,r),s?(i.mode=yc,bc):(i.havedict=1,Di))}n(gC,"inflateSetDictionary");Et.inflateReset=Fv;Et.inflateReset2=Lv;Et.inflateResetKeep=Bv;Et.inflateInit=dC;Et.inflateInit2=zv;Et.inflate=hC;Et.inflateEnd=pC;Et.inflateGetHeader=mC;Et.inflateSetDictionary=gC;Et.inflateInfo="pako inflate (from Nodeca project)"});var wc=R((K8,Nv)=>{"use strict";Nv.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 Wv=R((X8,Uv)=>{"use strict";function _C(){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}n(_C,"GZheader");Uv.exports=_C});var Zv=R(xo=>{"use strict";var Wn=Mv(),So=mr(),Ol=oc(),de=wc(),Sc=vl(),vC=sc(),bC=Wv(),jv=Object.prototype.toString;function Bi(e){if(!(this instanceof Bi))return new Bi(e);this.options=So.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new vC,this.strm.avail_out=0;var r=Wn.inflateInit2(this.strm,t.windowBits);if(r!==de.Z_OK)throw new Error(Sc[r]);if(this.header=new bC,Wn.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Ol.string2buf(t.dictionary):jv.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Wn.inflateSetDictionary(this.strm,t.dictionary),r!==de.Z_OK)))throw new Error(Sc[r])}n(Bi,"Inflate");Bi.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a=this.options.dictionary,s,l,d,p,u,c=!1;if(this.ended)return!1;l=t===~~t?t:t===!0?de.Z_FINISH:de.Z_NO_FLUSH,typeof e=="string"?r.input=Ol.binstring2buf(e):jv.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new So.Buf8(i),r.next_out=0,r.avail_out=i),s=Wn.inflate(r,de.Z_NO_FLUSH),s===de.Z_NEED_DICT&&a&&(s=Wn.inflateSetDictionary(this.strm,a)),s===de.Z_BUF_ERROR&&c===!0&&(s=de.Z_OK,c=!1),s!==de.Z_STREAM_END&&s!==de.Z_OK)return this.onEnd(s),this.ended=!0,!1;r.next_out&&(r.avail_out===0||s===de.Z_STREAM_END||r.avail_in===0&&(l===de.Z_FINISH||l===de.Z_SYNC_FLUSH))&&(this.options.to==="string"?(d=Ol.utf8border(r.output,r.next_out),p=r.next_out-d,u=Ol.buf2string(r.output,d),r.next_out=p,r.avail_out=i-p,p&&So.arraySet(r.output,r.output,d,p,0),this.onData(u)):this.onData(So.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(c=!0)}while((r.avail_in>0||r.avail_out===0)&&s!==de.Z_STREAM_END);return s===de.Z_STREAM_END&&(l=de.Z_FINISH),l===de.Z_FINISH?(s=Wn.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===de.Z_OK):(l===de.Z_SYNC_FLUSH&&(this.onEnd(de.Z_OK),r.avail_out=0),!0)};Bi.prototype.onData=function(e){this.chunks.push(e)};Bi.prototype.onEnd=function(e){e===de.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=So.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function xc(e,t){var r=new Bi(t);if(r.push(e,!0),r.err)throw r.msg||Sc[r.err];return r.result}n(xc,"inflate");function yC(e,t){return t=t||{},t.raw=!0,xc(e,t)}n(yC,"inflateRaw");xo.Inflate=Bi;xo.inflate=xc;xo.inflateRaw=yC;xo.ungzip=xc});var Yv=R((tL,$v)=>{"use strict";var wC=mr().assign,SC=V0(),xC=Zv(),EC=wc(),Hv={};wC(Hv,SC,xC,EC);$v.exports=Hv});var Vv=R(Dl=>{"use strict";var kC=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",TC=Yv(),Gv=le(),Pl=Ye(),RC=kC?"uint8array":"array";Dl.magic="\b\0";function Fi(e,t){Pl.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n(Fi,"FlateWorker");Gv.inherits(Fi,Pl);Fi.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(Gv.transformTo(RC,e.data),!1)};Fi.prototype.flush=function(){Pl.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};Fi.prototype.cleanUp=function(){Pl.prototype.cleanUp.call(this),this._pako=null};Fi.prototype._createPako=function(){this._pako=new TC[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};Dl.compressWorker=function(e){return new Fi("Deflate",e)};Dl.uncompressWorker=function(){return new Fi("Inflate",{})}});var kc=R(Ec=>{"use strict";var Kv=Ye();Ec.STORE={magic:"\0\0",compressWorker:n(function(){return new Kv("STORE compression")},"compressWorker"),uncompressWorker:n(function(){return new Kv("STORE decompression")},"uncompressWorker")};Ec.DEFLATE=Vv()});var Tc=R(Li=>{"use strict";Li.LOCAL_FILE_HEADER="PK";Li.CENTRAL_FILE_HEADER="PK";Li.CENTRAL_DIRECTORY_END="PK";Li.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";Li.ZIP64_CENTRAL_DIRECTORY_END="PK";Li.DATA_DESCRIPTOR="PK\x07\b"});var eb=R((sL,Qv)=>{"use strict";var jn=le(),Zn=Ye(),Rc=On(),Xv=hl(),Bl=Tc(),te=n(function(e,t){var r="",i;for(i=0;i<t;i++)r+=String.fromCharCode(e&255),e=e>>>8;return r},"decToHex"),AC=n(function(e,t){var r=e;return e||(r=t?16893:33204),(r&65535)<<16},"generateUnixExternalFileAttr"),CC=n(function(e){return(e||0)&63},"generateDosExternalFileAttr"),Jv=n(function(e,t,r,i,a,s){var l=e.file,d=e.compression,p=s!==Rc.utf8encode,u=jn.transformTo("string",s(l.name)),c=jn.transformTo("string",Rc.utf8encode(l.name)),E=l.comment,g=jn.transformTo("string",s(E)),_=jn.transformTo("string",Rc.utf8encode(E)),b=c.length!==l.name.length,A=_.length!==E.length,T,y,x="",C="",w="",S=l.dir,P=l.date,B={crc32:0,compressedSize:0,uncompressedSize:0};(!t||r)&&(B.crc32=e.crc32,B.compressedSize=e.compressedSize,B.uncompressedSize=e.uncompressedSize);var D=0;t&&(D|=8),!p&&(b||A)&&(D|=2048);var F=0,z=0;S&&(F|=16),a==="UNIX"?(z=798,F|=AC(l.unixPermissions,S)):(z=20,F|=CC(l.dosPermissions,S)),T=P.getUTCHours(),T=T<<6,T=T|P.getUTCMinutes(),T=T<<5,T=T|P.getUTCSeconds()/2,y=P.getUTCFullYear()-1980,y=y<<4,y=y|P.getUTCMonth()+1,y=y<<5,y=y|P.getUTCDate(),b&&(C=te(1,1)+te(Xv(u),4)+c,x+="up"+te(C.length,2)+C),A&&(w=te(1,1)+te(Xv(g),4)+_,x+="uc"+te(w.length,2)+w);var O="";O+=`
13
- \0`,O+=te(D,2),O+=d.magic,O+=te(T,2),O+=te(y,2),O+=te(B.crc32,4),O+=te(B.compressedSize,4),O+=te(B.uncompressedSize,4),O+=te(u.length,2),O+=te(x.length,2);var G=Bl.LOCAL_FILE_HEADER+O+u+x,se=Bl.CENTRAL_FILE_HEADER+te(z,2)+O+te(g.length,2)+"\0\0\0\0"+te(F,4)+te(i,4)+u+x+g;return{fileRecord:G,dirRecord:se}},"generateZipParts"),IC=n(function(e,t,r,i,a){var s="",l=jn.transformTo("string",a(i));return s=Bl.CENTRAL_DIRECTORY_END+"\0\0\0\0"+te(e,2)+te(e,2)+te(t,4)+te(r,4)+te(l.length,2)+l,s},"generateCentralDirectoryEnd"),OC=n(function(e){var t="";return t=Bl.DATA_DESCRIPTOR+te(e.crc32,4)+te(e.compressedSize,4)+te(e.uncompressedSize,4),t},"generateDataDescriptors");function kt(e,t,r,i){Zn.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n(kt,"ZipFileWorker");jn.inherits(kt,Zn);kt.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,Zn.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-i-1))/r:100}}))};kt.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=Jv(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0};kt.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=Jv(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:OC(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null};kt.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,i=IC(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})};kt.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()};kt.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(r){t.error(r)}),this};kt.prototype.resume=function(){if(!Zn.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};kt.prototype.error=function(e){var t=this._sources;if(!Zn.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch{}return!0};kt.prototype.lock=function(){Zn.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};Qv.exports=kt});var rb=R(tb=>{"use strict";var PC=kc(),DC=eb(),BC=n(function(e,t){var r=e||t,i=PC[r];if(!i)throw new Error(r+" is not a valid compression method !");return i},"getCompression");tb.generateWorker=function(e,t,r){var i=new DC(t.streamFiles,r,t.platform,t.encodeFileName),a=0;try{e.forEach(function(s,l){a++;var d=BC(l.options.compression,t.compression),p=l.options.compressionOptions||t.compressionOptions||{},u=l.dir,c=l.date;l._compressWorker(d,p).withStreamInfo("file",{name:s,dir:u,date:c,comment:l.comment||"",unixPermissions:l.unixPermissions,dosPermissions:l.dosPermissions}).pipe(i)}),i.entriesCount=a}catch(s){i.error(s)}return i}});var nb=R((dL,ib)=>{"use strict";var FC=le(),Fl=Ye();function Eo(e,t){Fl.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n(Eo,"NodejsStreamInputAdapter");FC.inherits(Eo,Fl);Eo.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",function(r){t.push({data:r,meta:{percent:0}})}).on("error",function(r){t.isPaused?this.generatedError=r:t.error(r)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})};Eo.prototype.pause=function(){return Fl.prototype.pause.call(this)?(this._stream.pause(),!0):!1};Eo.prototype.resume=function(){return Fl.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};ib.exports=Eo});var pb=R((hL,hb)=>{"use strict";var LC=On(),ko=le(),lb=Ye(),zC=Pd(),fb=Dd(),ab=pl(),qC=o0(),MC=rb(),ob=Qa(),NC=nb(),ub=n(function(e,t,r){var i=ko.getTypeOf(t),a,s=ko.extend(r||{},fb);s.date=s.date||new Date,s.compression!==null&&(s.compression=s.compression.toUpperCase()),typeof s.unixPermissions=="string"&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&s.unixPermissions&16384&&(s.dir=!0),s.dosPermissions&&s.dosPermissions&16&&(s.dir=!0),s.dir&&(e=db(e)),s.createFolders&&(a=UC(e))&&cb.call(this,a,!0);var l=i==="string"&&s.binary===!1&&s.base64===!1;(!r||typeof r.binary>"u")&&(s.binary=!l);var d=t instanceof ab&&t.uncompressedSize===0;(d||s.dir||!t||t.length===0)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var p=null;t instanceof ab||t instanceof lb?p=t:ob.isNode&&ob.isStream(t)?p=new NC(e,t):p=ko.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var u=new qC(e,p,s);this.files[e]=u},"fileAdd"),UC=n(function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},"parentFolder"),db=n(function(e){return e.slice(-1)!=="/"&&(e+="/"),e},"forceTrailingSlash"),cb=n(function(e,t){return t=typeof t<"u"?t:fb.createFolders,e=db(e),this.files[e]||ub.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},"folderAdd");function sb(e){return Object.prototype.toString.call(e)==="[object RegExp]"}n(sb,"isRegExp");var WC={load:n(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"load"),forEach:n(function(e){var t,r,i;for(t in this.files)i=this.files[t],r=t.slice(this.root.length,t.length),r&&t.slice(0,this.root.length)===this.root&&e(r,i)},"forEach"),filter:n(function(e){var t=[];return this.forEach(function(r,i){e(r,i)&&t.push(i)}),t},"filter"),file:n(function(e,t,r){if(arguments.length===1)if(sb(e)){var i=e;return this.filter(function(s,l){return!l.dir&&i.test(s)})}else{var a=this.files[this.root+e];return a&&!a.dir?a:null}else e=this.root+e,ub.call(this,e,t,r);return this},"file"),folder:n(function(e){if(!e)return this;if(sb(e))return this.filter(function(a,s){return s.dir&&e.test(a)});var t=this.root+e,r=cb.call(this,t),i=this.clone();return i.root=r.name,i},"folder"),remove:n(function(e){e=this.root+e;var t=this.files[e];if(t||(e.slice(-1)!=="/"&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(a,s){return s.name.slice(0,e.length)===e}),i=0;i<r.length;i++)delete this.files[r[i].name];return this},"remove"),generate:n(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"generate"),generateInternalStream:n(function(e){var t,r={};try{if(r=ko.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:LC.utf8encode}),r.type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),r.type==="binarystring"&&(r.type="string"),!r.type)throw new Error("No output type specified.");ko.checkSupport(r.type),(r.platform==="darwin"||r.platform==="freebsd"||r.platform==="linux"||r.platform==="sunos")&&(r.platform="UNIX"),r.platform==="win32"&&(r.platform="DOS");var i=r.comment||this.comment||"";t=MC.generateWorker(this,r,i)}catch(a){t=new lb("error"),t.error(a)}return new zC(t,r.type||"string",r.mimeType)},"generateInternalStream"),generateAsync:n(function(e,t){return this.generateInternalStream(e).accumulate(t)},"generateAsync"),generateNodeStream:n(function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)},"generateNodeStream")};hb.exports=WC});var Ac=R((mL,gb)=>{"use strict";var jC=le();function mb(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}n(mb,"DataReader");mb.prototype={checkOffset:n(function(e){this.checkIndex(this.index+e)},"checkOffset"),checkIndex:n(function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},"checkIndex"),setIndex:n(function(e){this.checkIndex(e),this.index=e},"setIndex"),skip:n(function(e){this.setIndex(this.index+e)},"skip"),byteAt:n(function(){},"byteAt"),readInt:n(function(e){var t=0,r;for(this.checkOffset(e),r=this.index+e-1;r>=this.index;r--)t=(t<<8)+this.byteAt(r);return this.index+=e,t},"readInt"),readString:n(function(e){return jC.transformTo("string",this.readData(e))},"readString"),readData:n(function(){},"readData"),lastIndexOfSignature:n(function(){},"lastIndexOfSignature"),readAndCheckSignature:n(function(){},"readAndCheckSignature"),readDate:n(function(){var e=this.readInt(4);return new Date(Date.UTC((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1))},"readDate")};gb.exports=mb});var Cc=R((_L,vb)=>{"use strict";var _b=Ac(),ZC=le();function Hn(e){_b.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}n(Hn,"ArrayReader");ZC.inherits(Hn,_b);Hn.prototype.byteAt=function(e){return this.data[this.zero+e]};Hn.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),a=e.charCodeAt(3),s=this.length-4;s>=0;--s)if(this.data[s]===t&&this.data[s+1]===r&&this.data[s+2]===i&&this.data[s+3]===a)return s-this.zero;return-1};Hn.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),a=e.charCodeAt(3),s=this.readData(4);return t===s[0]&&r===s[1]&&i===s[2]&&a===s[3]};Hn.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};vb.exports=Hn});var wb=R((bL,yb)=>{"use strict";var bb=Ac(),HC=le();function $n(e){bb.call(this,e)}n($n,"StringReader");HC.inherits($n,bb);$n.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};$n.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};$n.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};$n.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};yb.exports=$n});var Oc=R((wL,xb)=>{"use strict";var Sb=Cc(),$C=le();function Ic(e){Sb.call(this,e)}n(Ic,"Uint8ArrayReader");$C.inherits(Ic,Sb);Ic.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};xb.exports=Ic});var Tb=R((xL,kb)=>{"use strict";var Eb=Oc(),YC=le();function Pc(e){Eb.call(this,e)}n(Pc,"NodeBufferReader");YC.inherits(Pc,Eb);Pc.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};kb.exports=Pc});var Dc=R((kL,Ab)=>{"use strict";var Ll=le(),Rb=hr(),GC=Cc(),VC=wb(),KC=Tb(),XC=Oc();Ab.exports=function(e){var t=Ll.getTypeOf(e);return Ll.checkSupport(t),t==="string"&&!Rb.uint8array?new VC(e):t==="nodebuffer"?new KC(e):Rb.uint8array?new XC(Ll.transformTo("uint8array",e)):new GC(Ll.transformTo("array",e))}});var Pb=R((TL,Ob)=>{"use strict";var Bc=Dc(),Xr=le(),JC=pl(),Cb=hl(),zl=On(),ql=kc(),QC=hr(),e2=0,t2=3,r2=n(function(e){for(var t in ql)if(Object.prototype.hasOwnProperty.call(ql,t)&&ql[t].magic===e)return ql[t];return null},"findCompression");function Ib(e,t){this.options=e,this.loadOptions=t}n(Ib,"ZipEntry");Ib.prototype={isEncrypted:n(function(){return(this.bitFlag&1)===1},"isEncrypted"),useUTF8:n(function(){return(this.bitFlag&2048)===2048},"useUTF8"),readLocalPart:n(function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(t=r2(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+Xr.pretty(this.compressionMethod)+" unknown (inner file : "+Xr.transformTo("string",this.fileName)+")");this.decompressed=new JC(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},"readLocalPart"),readCentralPart:n(function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},"readCentralPart"),processAttributes:n(function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),e===e2&&(this.dosPermissions=this.externalFileAttributes&63),e===t2&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},"processAttributes"),parseZIP64ExtraField:n(function(){if(this.extraFields[1]){var e=Bc(this.extraFields[1].value);this.uncompressedSize===Xr.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===Xr.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===Xr.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===Xr.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},"parseZIP64ExtraField"),readExtraFields:n(function(e){var t=e.index+this.extraFieldsLength,r,i,a;for(this.extraFields||(this.extraFields={});e.index+4<t;)r=e.readInt(2),i=e.readInt(2),a=e.readData(i),this.extraFields[r]={id:r,length:i,value:a};e.setIndex(t)},"readExtraFields"),handleUTF8:n(function(){var e=QC.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=zl.utf8decode(this.fileName),this.fileCommentStr=zl.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var r=Xr.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var i=this.findExtraFieldUnicodeComment();if(i!==null)this.fileCommentStr=i;else{var a=Xr.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},"handleUTF8"),findExtraFieldUnicodePath:n(function(){var e=this.extraFields[28789];if(e){var t=Bc(e.value);return t.readInt(1)!==1||Cb(this.fileName)!==t.readInt(4)?null:zl.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodePath"),findExtraFieldUnicodeComment:n(function(){var e=this.extraFields[25461];if(e){var t=Bc(e.value);return t.readInt(1)!==1||Cb(this.fileComment)!==t.readInt(4)?null:zl.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodeComment")};Ob.exports=Ib});var Fb=R((AL,Bb)=>{"use strict";var i2=Dc(),br=le(),Tt=Tc(),n2=Pb(),a2=hr();function Db(e){this.files=[],this.loadOptions=e}n(Db,"ZipEntries");Db.prototype={checkSignature:n(function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+br.pretty(t)+", expected "+br.pretty(e)+")")}},"checkSignature"),isSignature:n(function(e,t){var r=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4),a=i===t;return this.reader.setIndex(r),a},"isSignature"),readBlockEndOfCentral:n(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 e=this.reader.readData(this.zipCommentLength),t=a2.uint8array?"uint8array":"array",r=br.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},"readBlockEndOfCentral"),readBlockZip64EndOfCentral:n(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 e=this.zip64EndOfCentralSize-44,t=0,r,i,a;t<e;)r=this.reader.readInt(2),i=this.reader.readInt(4),a=this.reader.readData(i),this.zip64ExtensibleData[r]={id:r,length:i,value:a}},"readBlockZip64EndOfCentral"),readBlockZip64EndOfCentralLocator:n(function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},"readBlockZip64EndOfCentralLocator"),readLocalFiles:n(function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(Tt.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},"readLocalFiles"),readCentralDir:n(function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(Tt.CENTRAL_FILE_HEADER);)e=new n2({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},"readCentralDir"),readEndOfCentral:n(function(){var e=this.reader.lastIndexOfSignature(Tt.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,Tt.LOCAL_FILE_HEADER);throw t?new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(e);var r=e;if(this.checkSignature(Tt.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===br.MAX_VALUE_16BITS||this.diskWithCentralDirStart===br.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===br.MAX_VALUE_16BITS||this.centralDirRecords===br.MAX_VALUE_16BITS||this.centralDirSize===br.MAX_VALUE_32BITS||this.centralDirOffset===br.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(Tt.ZIP64_CENTRAL_DIRECTORY_LOCATOR),e<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(Tt.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,Tt.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(Tt.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(Tt.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var a=r-i;if(a>0)this.isSignature(r,Tt.CENTRAL_FILE_HEADER)||(this.reader.zero=a);else if(a<0)throw new Error("Corrupted zip: missing "+Math.abs(a)+" bytes.")},"readEndOfCentral"),prepareReader:n(function(e){this.reader=i2(e)},"prepareReader"),load:n(function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()},"load")};Bb.exports=Db});var qb=R((IL,zb)=>{"use strict";var Fc=le(),Ml=An(),o2=On(),s2=Fb(),l2=Ld(),Lb=Qa();function f2(e){return new Ml.Promise(function(t,r){var i=e.decompressed.getContentWorker().pipe(new l2);i.on("error",function(a){r(a)}).on("end",function(){i.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}n(f2,"checkEntryCRC32");zb.exports=function(e,t){var r=this;return t=Fc.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o2.utf8decode}),Lb.isNode&&Lb.isStream(e)?Ml.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Fc.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(i){var a=new s2(t);return a.load(i),a}).then(n(function(a){var s=[Ml.Promise.resolve(a)],l=a.files;if(t.checkCRC32)for(var d=0;d<l.length;d++)s.push(f2(l[d]));return Ml.Promise.all(s)},"checkCRC32")).then(n(function(a){for(var s=a.shift(),l=s.files,d=0;d<l.length;d++){var p=l[d],u=p.fileNameStr,c=Fc.resolve(p.fileNameStr);r.file(c,p.decompressed,{binary:!0,optimizedBinaryString:!0,date:p.date,dir:p.dir,comment:p.fileCommentStr.length?p.fileCommentStr:null,unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions,createFolders:t.createFolders}),p.dir||(r.file(c).unsafeOriginalName=u)}return s.zipComment.length&&(r.comment=s.zipComment),r},"addFiles"))}});var Nb=R((PL,Mb)=>{"use strict";function lt(){if(!(this instanceof lt))return new lt;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new lt;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}n(lt,"JSZip");lt.prototype=pb();lt.prototype.loadAsync=qb();lt.support=hr();lt.defaults=Dd();lt.version="3.10.1";lt.loadAsync=function(e,t){return new lt().loadAsync(e,t)};lt.external=An();Mb.exports=lt});var To=R((zL,zc)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?zc.exports={nextTick:u2}:zc.exports=process;function u2(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var a=arguments.length,s,l;switch(a){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(n(function(){e.call(null,t)},"afterTickOne"));case 3:return process.nextTick(n(function(){e.call(null,t,r)},"afterTickTwo"));case 4:return process.nextTick(n(function(){e.call(null,t,r,i)},"afterTickThree"));default:for(s=new Array(a-1),l=0;l<s.length;)s[l++]=arguments[l];return process.nextTick(n(function(){e.apply(null,s)},"afterTick"))}}n(u2,"nextTick")});var Hb=R((ML,Zb)=>{var d2={}.toString;Zb.exports=Array.isArray||function(e){return d2.call(e)=="[object Array]"}});var qc=R((NL,$b)=>{$b.exports=require("stream")});var Wl=R((Mc,Gb)=>{var Ul=require("buffer"),yr=Ul.Buffer;function Yb(e,t){for(var r in e)t[r]=e[r]}n(Yb,"copyProps");yr.from&&yr.alloc&&yr.allocUnsafe&&yr.allocUnsafeSlow?Gb.exports=Ul:(Yb(Ul,Mc),Mc.Buffer=Yn);function Yn(e,t,r){return yr(e,t,r)}n(Yn,"SafeBuffer");Yb(yr,Yn);Yn.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return yr(e,t,r)};Yn.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=yr(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Yn.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return yr(e)};Yn.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Ul.SlowBuffer(e)}});var Gn=R(Re=>{function c2(e){return Array.isArray?Array.isArray(e):jl(e)==="[object Array]"}n(c2,"isArray");Re.isArray=c2;function h2(e){return typeof e=="boolean"}n(h2,"isBoolean");Re.isBoolean=h2;function p2(e){return e===null}n(p2,"isNull");Re.isNull=p2;function m2(e){return e==null}n(m2,"isNullOrUndefined");Re.isNullOrUndefined=m2;function g2(e){return typeof e=="number"}n(g2,"isNumber");Re.isNumber=g2;function _2(e){return typeof e=="string"}n(_2,"isString");Re.isString=_2;function v2(e){return typeof e=="symbol"}n(v2,"isSymbol");Re.isSymbol=v2;function b2(e){return e===void 0}n(b2,"isUndefined");Re.isUndefined=b2;function y2(e){return jl(e)==="[object RegExp]"}n(y2,"isRegExp");Re.isRegExp=y2;function w2(e){return typeof e=="object"&&e!==null}n(w2,"isObject");Re.isObject=w2;function S2(e){return jl(e)==="[object Date]"}n(S2,"isDate");Re.isDate=S2;function x2(e){return jl(e)==="[object Error]"||e instanceof Error}n(x2,"isError");Re.isError=x2;function E2(e){return typeof e=="function"}n(E2,"isFunction");Re.isFunction=E2;function k2(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}n(k2,"isPrimitive");Re.isPrimitive=k2;Re.isBuffer=require("buffer").Buffer.isBuffer;function jl(e){return Object.prototype.toString.call(e)}n(jl,"objectToString")});var Vb=R((ZL,Nc)=>{typeof Object.create=="function"?Nc.exports=n(function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):Nc.exports=n(function(t,r){if(r){t.super_=r;var i=n(function(){},"TempCtor");i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}},"inherits")});var Vn=R(($L,Wc)=>{try{if(Uc=require("util"),typeof Uc.inherits!="function")throw"";Wc.exports=Uc.inherits}catch{Wc.exports=Vb()}var Uc});var Xb=R((YL,jc)=>{"use strict";function T2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n(T2,"_classCallCheck");var Kb=Wl().Buffer,Ro=require("util");function R2(e,t,r){e.copy(t,r)}n(R2,"copyBuffer");jc.exports=function(){function e(){T2(this,e),this.head=null,this.tail=null,this.length=0}return n(e,"BufferList"),e.prototype.push=n(function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},"push"),e.prototype.unshift=n(function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},"unshift"),e.prototype.shift=n(function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},"shift"),e.prototype.clear=n(function(){this.head=this.tail=null,this.length=0},"clear"),e.prototype.join=n(function(r){if(this.length===0)return"";for(var i=this.head,a=""+i.data;i=i.next;)a+=r+i.data;return a},"join"),e.prototype.concat=n(function(r){if(this.length===0)return Kb.alloc(0);for(var i=Kb.allocUnsafe(r>>>0),a=this.head,s=0;a;)R2(a.data,i,s),s+=a.data.length,a=a.next;return i},"concat"),e}();Ro&&Ro.inspect&&Ro.inspect.custom&&(jc.exports.prototype[Ro.inspect.custom]=function(){var e=Ro.inspect({length:this.length});return this.constructor.name+" "+e})});var Zc=R((VL,Jb)=>{"use strict";var Zl=To();function A2(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Zl.nextTick(Hl,this,e)):Zl.nextTick(Hl,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,Zl.nextTick(Hl,r,s)):Zl.nextTick(Hl,r,s):t&&t(s)}),this)}n(A2,"destroy");function C2(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}n(C2,"undestroy");function Hl(e,t){e.emit("error",t)}n(Hl,"emitErrorNT");Jb.exports={destroy:A2,undestroy:C2}});var ey=R((XL,Qb)=>{Qb.exports=require("util").deprecate});var $c=R((JL,ly)=>{"use strict";var zi=To();ly.exports=me;function ry(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Y2(t,e)}}n(ry,"CorkedRequest");var I2=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:zi.nextTick,Kn;me.WritableState=Co;var iy=Object.create(Gn());iy.inherits=Vn();var O2={deprecate:ey()},ny=qc(),Yl=Wl().Buffer,P2=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function D2(e){return Yl.from(e)}n(D2,"_uint8ArrayToBuffer");function B2(e){return Yl.isBuffer(e)||e instanceof P2}n(B2,"_isUint8Array");var ay=Zc();iy.inherits(me,ny);function F2(){}n(F2,"nop");function Co(e,t){Kn=Kn||qi(),e=e||{};var r=t instanceof Kn;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,a=e.writableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(a||a===0)?this.highWaterMark=a:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=e.decodeStrings===!1;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(d){W2(t,d)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new ry(this)}n(Co,"WritableState");Co.prototype.getBuffer=n(function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r},"getBuffer");(function(){try{Object.defineProperty(Co.prototype,"buffer",{get:O2.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var $l;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?($l=Function.prototype[Symbol.hasInstance],Object.defineProperty(me,Symbol.hasInstance,{value:n(function(e){return $l.call(this,e)?!0:this!==me?!1:e&&e._writableState instanceof Co},"value")})):$l=n(function(e){return e instanceof this},"realHasInstance");function me(e){if(Kn=Kn||qi(),!$l.call(me,this)&&!(this instanceof Kn))return new me(e);this._writableState=new Co(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),ny.call(this)}n(me,"Writable");me.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function L2(e,t){var r=new Error("write after end");e.emit("error",r),zi.nextTick(t,r)}n(L2,"writeAfterEnd");function z2(e,t,r,i){var a=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),zi.nextTick(i,s),a=!1),a}n(z2,"validChunk");me.prototype.write=function(e,t,r){var i=this._writableState,a=!1,s=!i.objectMode&&B2(e);return s&&!Yl.isBuffer(e)&&(e=D2(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=F2),i.ended?L2(this,r):(s||z2(this,i,e,r))&&(i.pendingcb++,a=M2(this,i,s,e,t,r)),a};me.prototype.cork=function(){var e=this._writableState;e.corked++};me.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&oy(this,e))};me.prototype.setDefaultEncoding=n(function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},"setDefaultEncoding");function q2(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Yl.from(t,r)),t}n(q2,"decodeChunk");Object.defineProperty(me.prototype,"writableHighWaterMark",{enumerable:!1,get:n(function(){return this._writableState.highWaterMark},"get")});function M2(e,t,r,i,a,s){if(!r){var l=q2(t,i,a);i!==l&&(r=!0,a="buffer",i=l)}var d=t.objectMode?1:i.length;t.length+=d;var p=t.length<t.highWaterMark;if(p||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:a,isBuf:r,callback:s,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Hc(e,t,!1,d,i,a,s);return p}n(M2,"writeOrBuffer");function Hc(e,t,r,i,a,s,l){t.writelen=i,t.writecb=l,t.writing=!0,t.sync=!0,r?e._writev(a,t.onwrite):e._write(a,s,t.onwrite),t.sync=!1}n(Hc,"doWrite");function N2(e,t,r,i,a){--t.pendingcb,r?(zi.nextTick(a,i),zi.nextTick(Ao,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(a(i),e._writableState.errorEmitted=!0,e.emit("error",i),Ao(e,t))}n(N2,"onwriteError");function U2(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}n(U2,"onwriteStateUpdate");function W2(e,t){var r=e._writableState,i=r.sync,a=r.writecb;if(U2(r),t)N2(e,r,i,t,a);else{var s=sy(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&oy(e,r),i?I2(ty,e,r,s,a):ty(e,r,s,a)}}n(W2,"onwrite");function ty(e,t,r,i){r||j2(e,t),t.pendingcb--,i(),Ao(e,t)}n(ty,"afterWrite");function j2(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}n(j2,"onwriteDrain");function oy(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,a=new Array(i),s=t.corkedRequestsFree;s.entry=r;for(var l=0,d=!0;r;)a[l]=r,r.isBuf||(d=!1),r=r.next,l+=1;a.allBuffers=d,Hc(e,t,!0,t.length,a,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new ry(t),t.bufferedRequestCount=0}else{for(;r;){var p=r.chunk,u=r.encoding,c=r.callback,E=t.objectMode?1:p.length;if(Hc(e,t,!1,E,p,u,c),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}n(oy,"clearBuffer");me.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};me.prototype._writev=null;me.prototype.end=function(e,t,r){var i=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||$2(this,i,r)};function sy(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}n(sy,"needFinish");function Z2(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),Ao(e,t)})}n(Z2,"callFinal");function H2(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,zi.nextTick(Z2,e,t)):(t.prefinished=!0,e.emit("prefinish")))}n(H2,"prefinish");function Ao(e,t){var r=sy(t);return r&&(H2(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}n(Ao,"finishMaybe");function $2(e,t,r){t.ending=!0,Ao(e,t),r&&(t.finished?zi.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}n($2,"endWritable");function Y2(e,t,r){var i=e.entry;for(e.entry=null;i;){var a=i.callback;t.pendingcb--,a(r),i=i.next}t.corkedRequestsFree.next=e}n(Y2,"onCorkedFinish");Object.defineProperty(me.prototype,"destroyed",{get:n(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get"),set:n(function(e){this._writableState&&(this._writableState.destroyed=e)},"set")});me.prototype.destroy=ay.destroy;me.prototype._undestroy=ay.undestroy;me.prototype._destroy=function(e,t){this.end(),t(e)}});var qi=R((ez,cy)=>{"use strict";var fy=To(),G2=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};cy.exports=wr;var uy=Object.create(Gn());uy.inherits=Vn();var dy=Vc(),Gc=$c();uy.inherits(wr,dy);for(Yc=G2(Gc.prototype),Gl=0;Gl<Yc.length;Gl++)Vl=Yc[Gl],wr.prototype[Vl]||(wr.prototype[Vl]=Gc.prototype[Vl]);var Yc,Vl,Gl;function wr(e){if(!(this instanceof wr))return new wr(e);dy.call(this,e),Gc.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",V2)}n(wr,"Duplex");Object.defineProperty(wr.prototype,"writableHighWaterMark",{enumerable:!1,get:n(function(){return this._writableState.highWaterMark},"get")});function V2(){this.allowHalfOpen||this._writableState.ended||fy.nextTick(K2,this)}n(V2,"onend");function K2(e){e.end()}n(K2,"onEndNT");Object.defineProperty(wr.prototype,"destroyed",{get:n(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get"),set:n(function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)},"set")});wr.prototype._destroy=function(e,t){this.push(null),this.end(),fy.nextTick(t,e)}});var my=R((Kc,py)=>{var Kl=require("buffer"),Sr=Kl.Buffer;function hy(e,t){for(var r in e)t[r]=e[r]}n(hy,"copyProps");Sr.from&&Sr.alloc&&Sr.allocUnsafe&&Sr.allocUnsafeSlow?py.exports=Kl:(hy(Kl,Kc),Kc.Buffer=Xn);function Xn(e,t,r){return Sr(e,t,r)}n(Xn,"SafeBuffer");hy(Sr,Xn);Xn.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Sr(e,t,r)};Xn.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Sr(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Xn.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Sr(e)};Xn.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Kl.SlowBuffer(e)}});var Qc=R(_y=>{"use strict";var Jc=my().Buffer,gy=Jc.isEncoding||function(e){switch(e=""+e,e&&e.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 X2(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}n(X2,"_normalizeEncoding");function J2(e){var t=X2(e);if(typeof t!="string"&&(Jc.isEncoding===gy||!gy(e)))throw new Error("Unknown encoding: "+e);return t||e}n(J2,"normalizeEncoding");_y.StringDecoder=Io;function Io(e){this.encoding=J2(e);var t;switch(this.encoding){case"utf16le":this.text=nI,this.end=aI,t=4;break;case"utf8":this.fillLast=tI,t=4;break;case"base64":this.text=oI,this.end=sI,t=3;break;default:this.write=lI,this.end=fI;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Jc.allocUnsafe(t)}n(Io,"StringDecoder");Io.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};Io.prototype.end=iI;Io.prototype.text=rI;Io.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Xc(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}n(Xc,"utf8CheckByte");function Q2(e,t,r){var i=t.length-1;if(i<r)return 0;var a=Xc(t[i]);return a>=0?(a>0&&(e.lastNeed=a-1),a):--i<r||a===-2?0:(a=Xc(t[i]),a>=0?(a>0&&(e.lastNeed=a-2),a):--i<r||a===-2?0:(a=Xc(t[i]),a>=0?(a>0&&(a===2?a=0:e.lastNeed=a-3),a):0))}n(Q2,"utf8CheckIncomplete");function eI(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}n(eI,"utf8CheckExtraBytes");function tI(e){var t=this.lastTotal-this.lastNeed,r=eI(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}n(tI,"utf8FillLast");function rI(e,t){var r=Q2(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}n(rI,"utf8Text");function iI(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}n(iI,"utf8End");function nI(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}n(nI,"utf16Text");function aI(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}n(aI,"utf16End");function oI(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}n(oI,"base64Text");function sI(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}n(sI,"base64End");function lI(e){return e.toString(this.encoding)}n(lI,"simpleWrite");function fI(e){return e&&e.length?this.write(e):""}n(fI,"simpleEnd")});var Vc=R((oz,Cy)=>{"use strict";var Qn=To();Cy.exports=ne;var uI=Hb(),Oo;ne.ReadableState=Ey;var az=require("events").EventEmitter,wy=n(function(e,t){return e.listeners(t).length},"EElistenerCount"),nh=qc(),Po=Wl().Buffer,dI=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function cI(e){return Po.from(e)}n(cI,"_uint8ArrayToBuffer");function hI(e){return Po.isBuffer(e)||e instanceof dI}n(hI,"_isUint8Array");var Sy=Object.create(Gn());Sy.inherits=Vn();var eh=require("util"),K=void 0;eh&&eh.debuglog?K=eh.debuglog("stream"):K=n(function(){},"debug");var pI=Xb(),xy=Zc(),Jn;Sy.inherits(ne,nh);var th=["error","close","destroy","pause","resume"];function mI(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):uI(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}n(mI,"prependListener");function Ey(e,t){Oo=Oo||qi(),e=e||{};var r=t instanceof Oo;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(a||a===0)?this.highWaterMark=a:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new pI,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Jn||(Jn=Qc().StringDecoder),this.decoder=new Jn(e.encoding),this.encoding=e.encoding)}n(Ey,"ReadableState");function ne(e){if(Oo=Oo||qi(),!(this instanceof ne))return new ne(e);this._readableState=new Ey(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),nh.call(this)}n(ne,"Readable");Object.defineProperty(ne.prototype,"destroyed",{get:n(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get"),set:n(function(e){this._readableState&&(this._readableState.destroyed=e)},"set")});ne.prototype.destroy=xy.destroy;ne.prototype._undestroy=xy.undestroy;ne.prototype._destroy=function(e,t){this.push(null),t(e)};ne.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Po.from(e,t),t=""),i=!0),ky(this,e,t,!1,i)};ne.prototype.unshift=function(e){return ky(this,e,null,!0,!1)};function ky(e,t,r,i,a){var s=e._readableState;if(t===null)s.reading=!1,bI(e,s);else{var l;a||(l=gI(s,t)),l?e.emit("error",l):s.objectMode||t&&t.length>0?(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==Po.prototype&&(t=cI(t)),i?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):rh(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?rh(e,s,t,!1):Ty(e,s)):rh(e,s,t,!1))):i||(s.reading=!1)}return _I(s)}n(ky,"readableAddChunk");function rh(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&Xl(e)),Ty(e,t)}n(rh,"addChunk");function gI(e,t){var r;return!hI(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}n(gI,"chunkInvalid");function _I(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}n(_I,"needMoreData");ne.prototype.isPaused=function(){return this._readableState.flowing===!1};ne.prototype.setEncoding=function(e){return Jn||(Jn=Qc().StringDecoder),this._readableState.decoder=new Jn(e),this._readableState.encoding=e,this};var vy=8388608;function vI(e){return e>=vy?e=vy:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}n(vI,"computeNewHighWaterMark");function by(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=vI(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}n(by,"howMuchToRead");ne.prototype.read=function(e){K("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return K("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?ih(this):Xl(this),null;if(e=by(e,t),e===0&&t.ended)return t.length===0&&ih(this),null;var i=t.needReadable;K("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,K("length less than watermark",i)),t.ended||t.reading?(i=!1,K("reading or ended",i)):i&&(K("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=by(r,t)));var a;return e>0?a=Ry(e,t):a=null,a===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&ih(this)),a!==null&&this.emit("data",a),a};function bI(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,Xl(e)}}n(bI,"onEofChunk");function Xl(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(K("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Qn.nextTick(yy,e):yy(e))}n(Xl,"emitReadable");function yy(e){K("emit readable"),e.emit("readable"),ah(e)}n(yy,"emitReadable_");function Ty(e,t){t.readingMore||(t.readingMore=!0,Qn.nextTick(yI,e,t))}n(Ty,"maybeReadMore");function yI(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(K("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}n(yI,"maybeReadMore_");ne.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};ne.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,K("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=a?d:T;i.endEmitted?Qn.nextTick(s):r.once("end",s),e.on("unpipe",l);function l(y,x){K("onunpipe"),y===r&&x&&x.hasUnpiped===!1&&(x.hasUnpiped=!0,c())}n(l,"onunpipe");function d(){K("onend"),e.end()}n(d,"onend");var p=wI(r);e.on("drain",p);var u=!1;function c(){K("cleanup"),e.removeListener("close",b),e.removeListener("finish",A),e.removeListener("drain",p),e.removeListener("error",_),e.removeListener("unpipe",l),r.removeListener("end",d),r.removeListener("end",T),r.removeListener("data",g),u=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&p()}n(c,"cleanup");var E=!1;r.on("data",g);function g(y){K("ondata"),E=!1;var x=e.write(y);x===!1&&!E&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&Ay(i.pipes,e)!==-1)&&!u&&(K("false write response, pause",i.awaitDrain),i.awaitDrain++,E=!0),r.pause())}n(g,"ondata");function _(y){K("onerror",y),T(),e.removeListener("error",_),wy(e,"error")===0&&e.emit("error",y)}n(_,"onerror"),mI(e,"error",_);function b(){e.removeListener("finish",A),T()}n(b,"onclose"),e.once("close",b);function A(){K("onfinish"),e.removeListener("close",b),T()}n(A,"onfinish"),e.once("finish",A);function T(){K("unpipe"),r.unpipe(e)}return n(T,"unpipe"),e.emit("pipe",r),i.flowing||(K("pipe resume"),r.resume()),e};function wI(e){return function(){var t=e._readableState;K("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&wy(e,"data")&&(t.flowing=!0,ah(e))}}n(wI,"pipeOnDrain");ne.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<a;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var l=Ay(t.pipes,e);return l===-1?this:(t.pipes.splice(l,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};ne.prototype.on=function(e,t){var r=nh.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&Xl(this):Qn.nextTick(SI,this))}return r};ne.prototype.addListener=ne.prototype.on;function SI(e){K("readable nexttick read 0"),e.read(0)}n(SI,"nReadingNextTick");ne.prototype.resume=function(){var e=this._readableState;return e.flowing||(K("resume"),e.flowing=!0,xI(this,e)),this};function xI(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Qn.nextTick(EI,e,t))}n(xI,"resume");function EI(e,t){t.reading||(K("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),ah(e),t.flowing&&!t.reading&&e.read(0)}n(EI,"resume_");ne.prototype.pause=function(){return K("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(K("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function ah(e){var t=e._readableState;for(K("flow",t.flowing);t.flowing&&e.read()!==null;);}n(ah,"flow");ne.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(K("wrapped end"),r.decoder&&!r.ended){var l=r.decoder.end();l&&l.length&&t.push(l)}t.push(null)}),e.on("data",function(l){if(K("wrapped data"),r.decoder&&(l=r.decoder.write(l)),!(r.objectMode&&l==null)&&!(!r.objectMode&&(!l||!l.length))){var d=t.push(l);d||(i=!0,e.pause())}});for(var a in e)this[a]===void 0&&typeof e[a]=="function"&&(this[a]=function(l){return function(){return e[l].apply(e,arguments)}}(a));for(var s=0;s<th.length;s++)e.on(th[s],this.emit.bind(this,th[s]));return this._read=function(l){K("wrapped _read",l),i&&(i=!1,e.resume())},this};Object.defineProperty(ne.prototype,"readableHighWaterMark",{enumerable:!1,get:n(function(){return this._readableState.highWaterMark},"get")});ne._fromList=Ry;function Ry(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=kI(e,t.buffer,t.decoder),r}n(Ry,"fromList");function kI(e,t,r){var i;return e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?i=t.shift():i=r?TI(e,t):RI(e,t),i}n(kI,"fromListPartial");function TI(e,t){var r=t.head,i=1,a=r.data;for(e-=a.length;r=r.next;){var s=r.data,l=e>s.length?s.length:e;if(l===s.length?a+=s:a+=s.slice(0,e),e-=l,e===0){l===s.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(l));break}++i}return t.length-=i,a}n(TI,"copyFromBufferString");function RI(e,t){var r=Po.allocUnsafe(e),i=t.head,a=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var s=i.data,l=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,l),e-=l,e===0){l===s.length?(++a,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=s.slice(l));break}++a}return t.length-=a,r}n(RI,"copyFromBuffer");function ih(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Qn.nextTick(AI,t,e))}n(ih,"endReadable");function AI(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}n(AI,"endReadableNT");function Ay(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}n(Ay,"indexOf")});var oh=R((lz,Py)=>{"use strict";Py.exports=xr;var Jl=qi(),Oy=Object.create(Gn());Oy.inherits=Vn();Oy.inherits(xr,Jl);function CI(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}n(CI,"afterTransform");function xr(e){if(!(this instanceof xr))return new xr(e);Jl.call(this,e),this._transformState={afterTransform:CI.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",II)}n(xr,"Transform");function II(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){Iy(e,t,r)}):Iy(this,null,null)}n(II,"prefinish");xr.prototype.push=function(e,t){return this._transformState.needTransform=!1,Jl.prototype.push.call(this,e,t)};xr.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};xr.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};xr.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};xr.prototype._destroy=function(e,t){var r=this;Jl.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function Iy(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}n(Iy,"done")});var Ly=R((uz,Fy)=>{"use strict";Fy.exports=Do;var Dy=oh(),By=Object.create(Gn());By.inherits=Vn();By.inherits(Do,Dy);function Do(e){if(!(this instanceof Do))return new Do(e);Dy.call(this,e)}n(Do,"PassThrough");Do.prototype._transform=function(e,t,r){r(null,e)}});var sh=R((xe,Ql)=>{var Yt=require("stream");process.env.READABLE_STREAM==="disable"&&Yt?(Ql.exports=Yt,xe=Ql.exports=Yt.Readable,xe.Readable=Yt.Readable,xe.Writable=Yt.Writable,xe.Duplex=Yt.Duplex,xe.Transform=Yt.Transform,xe.PassThrough=Yt.PassThrough,xe.Stream=Yt):(xe=Ql.exports=Vc(),xe.Stream=Yt||xe,xe.Readable=xe,xe.Writable=$c(),xe.Duplex=qi(),xe.Transform=oh(),xe.PassThrough=Ly())});var Er=R(Ve=>{"use strict";Ve.base64=!0;Ve.array=!0;Ve.string=!0;Ve.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";Ve.nodebuffer=typeof Buffer<"u";Ve.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")Ve.blob=!1;else{lh=new ArrayBuffer(0);try{Ve.blob=new Blob([lh],{type:"application/zip"}).size===0}catch{try{zy=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,fh=new zy,fh.append(lh),Ve.blob=fh.getBlob("application/zip").size===0}catch{Ve.blob=!1}}}var lh,zy,fh;try{Ve.nodestream=!!sh().Readable}catch{Ve.nodestream=!1}});var dh=R(uh=>{"use strict";var OI=fe(),PI=Er(),Gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";uh.encode=function(e){for(var t=[],r,i,a,s,l,d,p,u=0,c=e.length,E=c,g=OI.getTypeOf(e)!=="string";u<e.length;)E=c-u,g?(r=e[u++],i=u<c?e[u++]:0,a=u<c?e[u++]:0):(r=e.charCodeAt(u++),i=u<c?e.charCodeAt(u++):0,a=u<c?e.charCodeAt(u++):0),s=r>>2,l=(r&3)<<4|i>>4,d=E>1?(i&15)<<2|a>>6:64,p=E>2?a&63:64,t.push(Gt.charAt(s)+Gt.charAt(l)+Gt.charAt(d)+Gt.charAt(p));return t.join("")};uh.decode=function(e){var t,r,i,a,s,l,d,p=0,u=0,c="data:";if(e.substr(0,c.length)===c)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var E=e.length*3/4;if(e.charAt(e.length-1)===Gt.charAt(64)&&E--,e.charAt(e.length-2)===Gt.charAt(64)&&E--,E%1!==0)throw new Error("Invalid base64 input, bad content length.");var g;for(PI.uint8array?g=new Uint8Array(E|0):g=new Array(E|0);p<e.length;)a=Gt.indexOf(e.charAt(p++)),s=Gt.indexOf(e.charAt(p++)),l=Gt.indexOf(e.charAt(p++)),d=Gt.indexOf(e.charAt(p++)),t=a<<2|s>>4,r=(s&15)<<4|l>>2,i=(l&3)<<6|d,g[u++]=t,l!==64&&(g[u++]=r),d!==64&&(g[u++]=i);return g}});var Bo=R((pz,qy)=>{"use strict";qy.exports={isNode:typeof Buffer<"u",newBufferFrom:n(function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e=="number")throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},"newBufferFrom"),allocBuffer:n(function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},"allocBuffer"),isBuffer:n(function(e){return Buffer.isBuffer(e)},"isBuffer"),isStream:n(function(e){return e&&typeof e.on=="function"&&typeof e.pause=="function"&&typeof e.resume=="function"},"isStream")}});var Wy=R((gz,Uy)=>{"use strict";var My=global.MutationObserver||global.WebKitMutationObserver,ea;process.browser?My?(ch=0,Ny=new My(Fo),hh=global.document.createTextNode(""),Ny.observe(hh,{characterData:!0}),ea=n(function(){hh.data=ch=++ch%2},"scheduleDrain")):!global.setImmediate&&typeof global.MessageChannel<"u"?(ph=new global.MessageChannel,ph.port1.onmessage=Fo,ea=n(function(){ph.port2.postMessage(0)},"scheduleDrain")):"document"in global&&"onreadystatechange"in global.document.createElement("script")?ea=n(function(){var e=global.document.createElement("script");e.onreadystatechange=function(){Fo(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},global.document.documentElement.appendChild(e)},"scheduleDrain"):ea=n(function(){setTimeout(Fo,0)},"scheduleDrain"):ea=n(function(){process.nextTick(Fo)},"scheduleDrain");var ch,Ny,hh,ph,mh,Lo=[];function Fo(){mh=!0;for(var e,t,r=Lo.length;r;){for(t=Lo,Lo=[],e=-1;++e<r;)t[e]();r=Lo.length}mh=!1}n(Fo,"nextTick");Uy.exports=DI;function DI(e){Lo.push(e)===1&&!mh&&ea()}n(DI,"immediate")});var Vy=R((vz,Gy)=>{"use strict";var jy=Wy();function ta(){}n(ta,"INTERNAL");var Ae={},Zy=["REJECTED"],gh=["FULFILLED"],Hy=["PENDING"];process.browser||(zo=["UNHANDLED"]);var zo;Gy.exports=Jr;function Jr(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=Hy,this.queue=[],this.outcome=void 0,process.browser||(this.handled=zo),e!==ta&&$y(this,e)}n(Jr,"Promise");Jr.prototype.finally=function(e){if(typeof e!="function")return this;var t=this.constructor;return this.then(r,i);function r(a){function s(){return a}return n(s,"yes"),t.resolve(e()).then(s)}function i(a){function s(){throw a}return n(s,"no"),t.resolve(e()).then(s)}};Jr.prototype.catch=function(e){return this.then(null,e)};Jr.prototype.then=function(e,t){if(typeof e!="function"&&this.state===gh||typeof t!="function"&&this.state===Zy)return this;var r=new this.constructor(ta);if(process.browser||this.handled===zo&&(this.handled=null),this.state!==Hy){var i=this.state===gh?e:t;_h(r,i,this.outcome)}else this.queue.push(new qo(r,e,t));return r};function qo(e,t,r){this.promise=e,typeof t=="function"&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),typeof r=="function"&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}n(qo,"QueueItem");qo.prototype.callFulfilled=function(e){Ae.resolve(this.promise,e)};qo.prototype.otherCallFulfilled=function(e){_h(this.promise,this.onFulfilled,e)};qo.prototype.callRejected=function(e){Ae.reject(this.promise,e)};qo.prototype.otherCallRejected=function(e){_h(this.promise,this.onRejected,e)};function _h(e,t,r){jy(function(){var i;try{i=t(r)}catch(a){return Ae.reject(e,a)}i===e?Ae.reject(e,new TypeError("Cannot resolve promise with itself")):Ae.resolve(e,i)})}n(_h,"unwrap");Ae.resolve=function(e,t){var r=Yy(BI,t);if(r.status==="error")return Ae.reject(e,r.value);var i=r.value;if(i)$y(e,i);else{e.state=gh,e.outcome=t;for(var a=-1,s=e.queue.length;++a<s;)e.queue[a].callFulfilled(t)}return e};Ae.reject=function(e,t){e.state=Zy,e.outcome=t,process.browser||e.handled===zo&&jy(function(){e.handled===zo&&process.emit("unhandledRejection",t,e)});for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e};function BI(e){var t=e&&e.then;if(e&&(typeof e=="object"||typeof e=="function")&&typeof t=="function")return n(function(){t.apply(e,arguments)},"appyThen")}n(BI,"getThen");function $y(e,t){var r=!1;function i(d){r||(r=!0,Ae.reject(e,d))}n(i,"onError");function a(d){r||(r=!0,Ae.resolve(e,d))}n(a,"onSuccess");function s(){t(a,i)}n(s,"tryToUnwrap");var l=Yy(s);l.status==="error"&&i(l.value)}n($y,"safelyResolveThenable");function Yy(e,t){var r={};try{r.value=e(t),r.status="success"}catch(i){r.status="error",r.value=i}return r}n(Yy,"tryCatch");Jr.resolve=FI;function FI(e){return e instanceof this?e:Ae.resolve(new this(ta),e)}n(FI,"resolve");Jr.reject=LI;function LI(e){var t=new this(ta);return Ae.reject(t,e)}n(LI,"reject");Jr.all=zI;function zI(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var a=new Array(r),s=0,l=-1,d=new this(ta);++l<r;)p(e[l],l);return d;function p(u,c){t.resolve(u).then(E,function(g){i||(i=!0,Ae.reject(d,g))});function E(g){a[c]=g,++s===r&&!i&&(i=!0,Ae.resolve(d,a))}n(E,"resolveFromAll")}}n(zI,"all");Jr.race=qI;function qI(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var a=-1,s=new this(ta);++a<r;)l(e[a]);return s;function l(d){t.resolve(d).then(function(p){i||(i=!0,Ae.resolve(s,p))},function(p){i||(i=!0,Ae.reject(s,p))})}}n(qI,"race")});var ra=R((yz,Ky)=>{"use strict";var vh=null;typeof Promise<"u"?vh=Promise:vh=Vy();Ky.exports={Promise:vh}});var Jy=R(Xy=>{(function(e,t){"use strict";if(e.setImmediate)return;var r=1,i={},a=!1,s=e.document,l;function d(x){typeof x!="function"&&(x=new Function(""+x));for(var C=new Array(arguments.length-1),w=0;w<C.length;w++)C[w]=arguments[w+1];var S={callback:x,args:C};return i[r]=S,l(r),r++}n(d,"setImmediate");function p(x){delete i[x]}n(p,"clearImmediate");function u(x){var C=x.callback,w=x.args;switch(w.length){case 0:C();break;case 1:C(w[0]);break;case 2:C(w[0],w[1]);break;case 3:C(w[0],w[1],w[2]);break;default:C.apply(t,w);break}}n(u,"run");function c(x){if(a)setTimeout(c,0,x);else{var C=i[x];if(C){a=!0;try{u(C)}finally{p(x),a=!1}}}}n(c,"runIfPresent");function E(){l=n(function(x){process.nextTick(function(){c(x)})},"registerImmediate")}n(E,"installNextTickImplementation");function g(){if(e.postMessage&&!e.importScripts){var x=!0,C=e.onmessage;return e.onmessage=function(){x=!1},e.postMessage("","*"),e.onmessage=C,x}}n(g,"canUsePostMessage");function _(){var x="setImmediate$"+Math.random()+"$",C=n(function(w){w.source===e&&typeof w.data=="string"&&w.data.indexOf(x)===0&&c(+w.data.slice(x.length))},"onGlobalMessage");e.addEventListener?e.addEventListener("message",C,!1):e.attachEvent("onmessage",C),l=n(function(w){e.postMessage(x+w,"*")},"registerImmediate")}n(_,"installPostMessageImplementation");function b(){var x=new MessageChannel;x.port1.onmessage=function(C){var w=C.data;c(w)},l=n(function(C){x.port2.postMessage(C)},"registerImmediate")}n(b,"installMessageChannelImplementation");function A(){var x=s.documentElement;l=n(function(C){var w=s.createElement("script");w.onreadystatechange=function(){c(C),w.onreadystatechange=null,x.removeChild(w),w=null},x.appendChild(w)},"registerImmediate")}n(A,"installReadyStateChangeImplementation");function T(){l=n(function(x){setTimeout(c,0,x)},"registerImmediate")}n(T,"installSetTimeoutImplementation");var y=Object.getPrototypeOf&&Object.getPrototypeOf(e);y=y&&y.setTimeout?y:e,{}.toString.call(e.process)==="[object process]"?E():g()?_():e.MessageChannel?b():s&&"onreadystatechange"in s.createElement("script")?A():T(),y.setImmediate=d,y.clearImmediate=p})(typeof self>"u"?typeof global>"u"?Xy:global:self)});var fe=R(ge=>{"use strict";var Qr=Er(),MI=dh(),ia=Bo(),bh=ra();Jy();function NI(e){var t=null;return Qr.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),tf(e,t)}n(NI,"string2binary");ge.newBlob=function(e,t){ge.checkSupport("blob");try{return new Blob([e],{type:t})}catch{try{var r=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,i=new r;return i.append(e),i.getBlob(t)}catch{throw new Error("Bug : can't construct the Blob.")}}};function Mo(e){return e}n(Mo,"identity");function tf(e,t){for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)&255;return t}n(tf,"stringToArrayLike");var ef={stringifyByChunk:n(function(e,t,r){var i=[],a=0,s=e.length;if(s<=r)return String.fromCharCode.apply(null,e);for(;a<s;)t==="array"||t==="nodebuffer"?i.push(String.fromCharCode.apply(null,e.slice(a,Math.min(a+r,s)))):i.push(String.fromCharCode.apply(null,e.subarray(a,Math.min(a+r,s)))),a+=r;return i.join("")},"stringifyByChunk"),stringifyByChar:n(function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},"stringifyByChar"),applyCanBeUsed:{uint8array:function(){try{return Qr.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return Qr.nodebuffer&&String.fromCharCode.apply(null,ia.allocBuffer(1)).length===1}catch{return!1}}()}};function No(e){var t=65536,r=ge.getTypeOf(e),i=!0;if(r==="uint8array"?i=ef.applyCanBeUsed.uint8array:r==="nodebuffer"&&(i=ef.applyCanBeUsed.nodebuffer),i)for(;t>1;)try{return ef.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return ef.stringifyByChar(e)}n(No,"arrayLikeToString");ge.applyFromCharCode=No;function rf(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}n(rf,"arrayLikeToArrayLike");var ei={};ei.string={string:Mo,array:n(function(e){return tf(e,new Array(e.length))},"array"),arraybuffer:n(function(e){return ei.string.uint8array(e).buffer},"arraybuffer"),uint8array:n(function(e){return tf(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:n(function(e){return tf(e,ia.allocBuffer(e.length))},"nodebuffer")};ei.array={string:No,array:Mo,arraybuffer:n(function(e){return new Uint8Array(e).buffer},"arraybuffer"),uint8array:n(function(e){return new Uint8Array(e)},"uint8array"),nodebuffer:n(function(e){return ia.newBufferFrom(e)},"nodebuffer")};ei.arraybuffer={string:n(function(e){return No(new Uint8Array(e))},"string"),array:n(function(e){return rf(new Uint8Array(e),new Array(e.byteLength))},"array"),arraybuffer:Mo,uint8array:n(function(e){return new Uint8Array(e)},"uint8array"),nodebuffer:n(function(e){return ia.newBufferFrom(new Uint8Array(e))},"nodebuffer")};ei.uint8array={string:No,array:n(function(e){return rf(e,new Array(e.length))},"array"),arraybuffer:n(function(e){return e.buffer},"arraybuffer"),uint8array:Mo,nodebuffer:n(function(e){return ia.newBufferFrom(e)},"nodebuffer")};ei.nodebuffer={string:No,array:n(function(e){return rf(e,new Array(e.length))},"array"),arraybuffer:n(function(e){return ei.nodebuffer.uint8array(e).buffer},"arraybuffer"),uint8array:n(function(e){return rf(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:Mo};ge.transformTo=function(e,t){if(t||(t=""),!e)return t;ge.checkSupport(e);var r=ge.getTypeOf(t),i=ei[r][e](t);return i};ge.resolve=function(e){for(var t=e.split("/"),r=[],i=0;i<t.length;i++){var a=t[i];a==="."||a===""&&i!==0&&i!==t.length-1||(a===".."?r.pop():r.push(a))}return r.join("/")};ge.getTypeOf=function(e){if(typeof e=="string")return"string";if(Object.prototype.toString.call(e)==="[object Array]")return"array";if(Qr.nodebuffer&&ia.isBuffer(e))return"nodebuffer";if(Qr.uint8array&&e instanceof Uint8Array)return"uint8array";if(Qr.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer"};ge.checkSupport=function(e){var t=Qr[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this platform")};ge.MAX_VALUE_16BITS=65535;ge.MAX_VALUE_32BITS=-1;ge.pretty=function(e){var t="",r,i;for(i=0;i<(e||"").length;i++)r=e.charCodeAt(i),t+="\\x"+(r<16?"0":"")+r.toString(16).toUpperCase();return t};ge.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})};ge.inherits=function(e,t){var r=n(function(){},"Obj");r.prototype=t.prototype,e.prototype=new r};ge.extend=function(){var e={},t,r;for(t=0;t<arguments.length;t++)for(r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&typeof e[r]>"u"&&(e[r]=arguments[t][r]);return e};ge.prepareContent=function(e,t,r,i,a){var s=bh.Promise.resolve(t).then(function(l){var d=Qr.blob&&(l instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(l))!==-1);return d&&typeof FileReader<"u"?new bh.Promise(function(p,u){var c=new FileReader;c.onload=function(E){p(E.target.result)},c.onerror=function(E){u(E.target.error)},c.readAsArrayBuffer(l)}):l});return s.then(function(l){var d=ge.getTypeOf(l);return d?(d==="arraybuffer"?l=ge.transformTo("uint8array",l):d==="string"&&(a?l=MI.decode(l):r&&i!==!0&&(l=NI(l))),l):bh.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}});var Ke=R((kz,ew)=>{"use strict";function Qy(e){this.name=e||"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}n(Qy,"GenericWorker");Qy.prototype={push:n(function(e){this.emit("data",e)},"push"),end:n(function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},"end"),error:n(function(e){return this.isFinished?!1:(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},"error"),on:n(function(e,t){return this._listeners[e].push(t),this},"on"),cleanUp:n(function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},"cleanUp"),emit:n(function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},"emit"),pipe:n(function(e){return e.registerPrevious(this)},"pipe"),registerPrevious:n(function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.end()}),e.on("error",function(r){t.error(r)}),this},"registerPrevious"),pause:n(function(){return this.isPaused||this.isFinished?!1:(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},"pause"),resume:n(function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},"resume"),flush:n(function(){},"flush"),processChunk:n(function(e){this.push(e)},"processChunk"),withStreamInfo:n(function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},"withStreamInfo"),mergeStreamInfo:n(function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},"mergeStreamInfo"),lock:n(function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},"lock"),toString:n(function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e},"toString")};ew.exports=Qy});var aa=R(ti=>{"use strict";var na=fe(),Mi=Er(),UI=Bo(),nf=Ke(),Uo=new Array(256);for(kr=0;kr<256;kr++)Uo[kr]=kr>=252?6:kr>=248?5:kr>=240?4:kr>=224?3:kr>=192?2:1;var kr;Uo[254]=Uo[254]=1;var WI=n(function(e){var t,r,i,a,s,l=e.length,d=0;for(a=0;a<l;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<l&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),d+=r<128?1:r<2048?2:r<65536?3:4;for(Mi.uint8array?t=new Uint8Array(d):t=new Array(d),s=0,a=0;s<d;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<l&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[s++]=r:r<2048?(t[s++]=192|r>>>6,t[s++]=128|r&63):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|r&63):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|r&63);return t},"string2buf"),jI=n(function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+Uo[e[r]]>t?r:t},"utf8border"),ZI=n(function(e){var t,r,i,a,s=e.length,l=new Array(s*2);for(r=0,t=0;t<s;){if(i=e[t++],i<128){l[r++]=i;continue}if(a=Uo[i],a>4){l[r++]=65533,t+=a-1;continue}for(i&=a===2?31:a===3?15:7;a>1&&t<s;)i=i<<6|e[t++]&63,a--;if(a>1){l[r++]=65533;continue}i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|i&1023)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),na.applyFromCharCode(l)},"buf2string");ti.utf8encode=n(function(t){return Mi.nodebuffer?UI.newBufferFrom(t,"utf-8"):WI(t)},"utf8encode");ti.utf8decode=n(function(t){return Mi.nodebuffer?na.transformTo("nodebuffer",t).toString("utf-8"):(t=na.transformTo(Mi.uint8array?"uint8array":"array",t),ZI(t))},"utf8decode");function af(){nf.call(this,"utf-8 decode"),this.leftOver=null}n(af,"Utf8DecodeWorker");na.inherits(af,nf);af.prototype.processChunk=function(e){var t=na.transformTo(Mi.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(Mi.uint8array){var r=t;t=new Uint8Array(r.length+this.leftOver.length),t.set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var i=jI(t),a=t;i!==t.length&&(Mi.uint8array?(a=t.subarray(0,i),this.leftOver=t.subarray(i,t.length)):(a=t.slice(0,i),this.leftOver=t.slice(i,t.length))),this.push({data:ti.utf8decode(a),meta:e.meta})};af.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ti.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};ti.Utf8DecodeWorker=af;function yh(){nf.call(this,"utf-8 encode")}n(yh,"Utf8EncodeWorker");na.inherits(yh,nf);yh.prototype.processChunk=function(e){this.push({data:ti.utf8encode(e.data),meta:e.meta})};ti.Utf8EncodeWorker=yh});var nw=R((Cz,iw)=>{"use strict";var tw=Ke(),rw=fe();function wh(e){tw.call(this,"ConvertWorker to "+e),this.destType=e}n(wh,"ConvertWorker");rw.inherits(wh,tw);wh.prototype.processChunk=function(e){this.push({data:rw.transformTo(this.destType,e.data),meta:e.meta})};iw.exports=wh});var sw=R((Oz,ow)=>{"use strict";var aw=sh().Readable,HI=fe();HI.inherits(Sh,aw);function Sh(e,t,r){aw.call(this,t),this._helper=e;var i=this;e.on("data",function(a,s){i.push(a)||i._helper.pause(),r&&r(s)}).on("error",function(a){i.emit("error",a)}).on("end",function(){i.push(null)})}n(Sh,"NodejsStreamOutputAdapter");Sh.prototype._read=function(){this._helper.resume()};ow.exports=Sh});var xh=R((Dz,uw)=>{"use strict";var Ni=fe(),$I=nw(),YI=Ke(),GI=dh(),VI=Er(),KI=ra(),lw=null;if(VI.nodestream)try{lw=sw()}catch{}function XI(e,t,r){switch(e){case"blob":return Ni.newBlob(Ni.transformTo("arraybuffer",t),r);case"base64":return GI.encode(t);default:return Ni.transformTo(e,t)}}n(XI,"transformZipOutput");function JI(e,t){var r,i=0,a=null,s=0;for(r=0;r<t.length;r++)s+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(a=new Uint8Array(s),r=0;r<t.length;r++)a.set(t[r],i),i+=t[r].length;return a;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}n(JI,"concat");function QI(e,t){return new KI.Promise(function(r,i){var a=[],s=e._internalType,l=e._outputType,d=e._mimeType;e.on("data",function(p,u){a.push(p),t&&t(u)}).on("error",function(p){a=[],i(p)}).on("end",function(){try{var p=XI(l,JI(s,a),d);r(p)}catch(u){i(u)}a=[]}).resume()})}n(QI,"accumulate");function fw(e,t,r){var i=t;switch(t){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string";break}try{this._internalType=i,this._outputType=t,this._mimeType=r,Ni.checkSupport(i),this._worker=e.pipe(new $I(i)),e.lock()}catch(a){this._worker=new YI("error"),this._worker.error(a)}}n(fw,"StreamHelper");fw.prototype={accumulate:n(function(e){return QI(this,e)},"accumulate"),on:n(function(e,t){var r=this;return e==="data"?this._worker.on(e,function(i){t.call(r,i.data,i.meta)}):this._worker.on(e,function(){Ni.delay(t,arguments,r)}),this},"on"),resume:n(function(){return Ni.delay(this._worker.resume,[],this._worker),this},"resume"),pause:n(function(){return this._worker.pause(),this},"pause"),toNodejsStream:n(function(e){if(Ni.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new lw(this,{objectMode:this._outputType!=="nodebuffer"},e)},"toNodejsStream")};uw.exports=fw});var Eh=R(Rt=>{"use strict";Rt.base64=!1;Rt.binary=!1;Rt.dir=!1;Rt.createFolders=!0;Rt.date=null;Rt.compression=null;Rt.compressionOptions=null;Rt.comment=null;Rt.unixPermissions=null;Rt.dosPermissions=null});var kh=R((Lz,dw)=>{"use strict";var of=fe(),sf=Ke(),eO=16*1024;function oa(e){sf.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(r){t.dataIsReady=!0,t.data=r,t.max=r&&r.length||0,t.type=of.getTypeOf(r),t.isPaused||t._tickAndRepeat()},function(r){t.error(r)})}n(oa,"DataWorker");of.inherits(oa,sf);oa.prototype.cleanUp=function(){sf.prototype.cleanUp.call(this),this.data=null};oa.prototype.resume=function(){return sf.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,of.delay(this._tickAndRepeat,[],this)),!0):!1};oa.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(of.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};oa.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=eO,t=null,r=Math.min(this.max,this.index+e);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,r);break;case"uint8array":t=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":t=this.data.slice(this.index,r);break}return this.index=r,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})};dw.exports=oa});var lf=R((qz,hw)=>{"use strict";var tO=fe();function rO(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}n(rO,"makeTable");var cw=rO();function iO(e,t,r,i){var a=cw,s=i+r;e=e^-1;for(var l=i;l<s;l++)e=e>>>8^a[(e^t[l])&255];return e^-1}n(iO,"crc32");function nO(e,t,r,i){var a=cw,s=i+r;e=e^-1;for(var l=i;l<s;l++)e=e>>>8^a[(e^t.charCodeAt(l))&255];return e^-1}n(nO,"crc32str");hw.exports=n(function(t,r){if(typeof t>"u"||!t.length)return 0;var i=tO.getTypeOf(t)!=="string";return i?iO(r|0,t,t.length,0):nO(r|0,t,t.length,0)},"crc32wrapper")});var Rh=R((Nz,mw)=>{"use strict";var pw=Ke(),aO=lf(),oO=fe();function Th(){pw.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n(Th,"Crc32Probe");oO.inherits(Th,pw);Th.prototype.processChunk=function(e){this.streamInfo.crc32=aO(e.data,this.streamInfo.crc32||0),this.push(e)};mw.exports=Th});var _w=R((Wz,gw)=>{"use strict";var sO=fe(),Ah=Ke();function Ch(e){Ah.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n(Ch,"DataLengthProbe");sO.inherits(Ch,Ah);Ch.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}Ah.prototype.processChunk.call(this,e)};gw.exports=Ch});var ff=R((Zz,yw)=>{"use strict";var vw=ra(),bw=kh(),lO=Rh(),Ih=_w();function Oh(e,t,r,i,a){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=a}n(Oh,"CompressedObject");Oh.prototype={getContentWorker:n(function(){var e=new bw(vw.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new Ih("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},"getContentWorker"),getCompressedWorker:n(function(){return new bw(vw.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)},"getCompressedWorker")};Oh.createWorkerFrom=function(e,t,r){return e.pipe(new lO).pipe(new Ih("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new Ih("compressedSize")).withStreamInfo("compression",t)};yw.exports=Oh});var Ew=R(($z,xw)=>{"use strict";var fO=xh(),uO=kh(),Ph=aa(),Dh=ff(),ww=Ke(),Bh=n(function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}},"ZipObject");Bh.prototype={internalStream:n(function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");r=e.toLowerCase();var i=r==="string"||r==="text";(r==="binarystring"||r==="text")&&(r="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!i&&(t=t.pipe(new Ph.Utf8EncodeWorker)),!a&&i&&(t=t.pipe(new Ph.Utf8DecodeWorker))}catch(s){t=new ww("error"),t.error(s)}return new fO(t,r,"")},"internalStream"),async:n(function(e,t){return this.internalStream(e).accumulate(t)},"async"),nodeStream:n(function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},"nodeStream"),_compressWorker:n(function(e,t){if(this._data instanceof Dh&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new Ph.Utf8EncodeWorker)),Dh.createWorkerFrom(r,e,t)},"_compressWorker"),_decompressWorker:n(function(){return this._data instanceof Dh?this._data.getContentWorker():this._data instanceof ww?this._data:new uO(this._data)},"_decompressWorker")};var Sw=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],dO=n(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"removedFn");for(uf=0;uf<Sw.length;uf++)Bh.prototype[Sw[uf]]=dO;var uf;xw.exports=Bh});var Tr=R(Pe=>{"use strict";var cO=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function hO(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n(hO,"_has");Pe.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(var i in r)hO(r,i)&&(e[i]=r[i])}}return e};Pe.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var pO={arraySet:n(function(e,t,r,i,a){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+i),a);return}for(var s=0;s<i;s++)e[a+s]=t[r+s]},"arraySet"),flattenChunks:n(function(e){var t,r,i,a,s,l;for(i=0,t=0,r=e.length;t<r;t++)i+=e[t].length;for(l=new Uint8Array(i),a=0,t=0,r=e.length;t<r;t++)s=e[t],l.set(s,a),a+=s.length;return l},"flattenChunks")},mO={arraySet:n(function(e,t,r,i,a){for(var s=0;s<i;s++)e[a+s]=t[r+s]},"arraySet"),flattenChunks:n(function(e){return[].concat.apply([],e)},"flattenChunks")};Pe.setTyped=function(e){e?(Pe.Buf8=Uint8Array,Pe.Buf16=Uint16Array,Pe.Buf32=Int32Array,Pe.assign(Pe,pO)):(Pe.Buf8=Array,Pe.Buf16=Array,Pe.Buf32=Array,Pe.assign(Pe,mO))};Pe.setTyped(cO)});var Yw=R(fa=>{"use strict";var gO=Tr(),_O=4,kw=0,Tw=1,vO=2;function la(e){for(var t=e.length;--t>=0;)e[t]=0}n(la,"zero");var bO=0,Pw=1,yO=2,wO=3,SO=258,Uh=29,Yo=256,jo=Yo+1+Uh,sa=30,Wh=19,Dw=2*jo+1,Ui=15,Fh=16,xO=7,jh=256,Bw=16,Fw=17,Lw=18,Mh=[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],df=[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],EO=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],zw=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],kO=512,Rr=new Array((jo+2)*2);la(Rr);var Wo=new Array(sa*2);la(Wo);var Zo=new Array(kO);la(Zo);var Ho=new Array(SO-wO+1);la(Ho);var Zh=new Array(Uh);la(Zh);var cf=new Array(sa);la(cf);function Lh(e,t,r,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}n(Lh,"StaticTreeDesc");var qw,Mw,Nw;function zh(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}n(zh,"TreeDesc");function Uw(e){return e<256?Zo[e]:Zo[256+(e>>>7)]}n(Uw,"d_code");function $o(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}n($o,"put_short");function Me(e,t,r){e.bi_valid>Fh-r?(e.bi_buf|=t<<e.bi_valid&65535,$o(e,e.bi_buf),e.bi_buf=t>>Fh-e.bi_valid,e.bi_valid+=r-Fh):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}n(Me,"send_bits");function Vt(e,t,r){Me(e,r[t*2],r[t*2+1])}n(Vt,"send_code");function Ww(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}n(Ww,"bi_reverse");function TO(e){e.bi_valid===16?($o(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}n(TO,"bi_flush");function RO(e,t){var r=t.dyn_tree,i=t.max_code,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,u,c,E,g,_,b,A=0;for(g=0;g<=Ui;g++)e.bl_count[g]=0;for(r[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;u<Dw;u++)c=e.heap[u],g=r[r[c*2+1]*2+1]+1,g>p&&(g=p,A++),r[c*2+1]=g,!(c>i)&&(e.bl_count[g]++,_=0,c>=d&&(_=l[c-d]),b=r[c*2],e.opt_len+=b*(g+_),s&&(e.static_len+=b*(a[c*2+1]+_)));if(A!==0){do{for(g=p-1;e.bl_count[g]===0;)g--;e.bl_count[g]--,e.bl_count[g+1]+=2,e.bl_count[p]--,A-=2}while(A>0);for(g=p;g!==0;g--)for(c=e.bl_count[g];c!==0;)E=e.heap[--u],!(E>i)&&(r[E*2+1]!==g&&(e.opt_len+=(g-r[E*2+1])*r[E*2],r[E*2+1]=g),c--)}}n(RO,"gen_bitlen");function jw(e,t,r){var i=new Array(Ui+1),a=0,s,l;for(s=1;s<=Ui;s++)i[s]=a=a+r[s-1]<<1;for(l=0;l<=t;l++){var d=e[l*2+1];d!==0&&(e[l*2]=Ww(i[d]++,d))}}n(jw,"gen_codes");function AO(){var e,t,r,i,a,s=new Array(Ui+1);for(r=0,i=0;i<Uh-1;i++)for(Zh[i]=r,e=0;e<1<<Mh[i];e++)Ho[r++]=i;for(Ho[r-1]=i,a=0,i=0;i<16;i++)for(cf[i]=a,e=0;e<1<<df[i];e++)Zo[a++]=i;for(a>>=7;i<sa;i++)for(cf[i]=a<<7,e=0;e<1<<df[i]-7;e++)Zo[256+a++]=i;for(t=0;t<=Ui;t++)s[t]=0;for(e=0;e<=143;)Rr[e*2+1]=8,e++,s[8]++;for(;e<=255;)Rr[e*2+1]=9,e++,s[9]++;for(;e<=279;)Rr[e*2+1]=7,e++,s[7]++;for(;e<=287;)Rr[e*2+1]=8,e++,s[8]++;for(jw(Rr,jo+1,s),e=0;e<sa;e++)Wo[e*2+1]=5,Wo[e*2]=Ww(e,5);qw=new Lh(Rr,Mh,Yo+1,jo,Ui),Mw=new Lh(Wo,df,0,sa,Ui),Nw=new Lh(new Array(0),EO,0,Wh,xO)}n(AO,"tr_static_init");function Zw(e){var t;for(t=0;t<jo;t++)e.dyn_ltree[t*2]=0;for(t=0;t<sa;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Wh;t++)e.bl_tree[t*2]=0;e.dyn_ltree[jh*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}n(Zw,"init_block");function Hw(e){e.bi_valid>8?$o(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}n(Hw,"bi_windup");function CO(e,t,r,i){Hw(e),i&&($o(e,r),$o(e,~r)),gO.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}n(CO,"copy_block");function Rw(e,t,r,i){var a=t*2,s=r*2;return e[a]<e[s]||e[a]===e[s]&&i[t]<=i[r]}n(Rw,"smaller");function qh(e,t,r){for(var i=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&Rw(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!Rw(t,i,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=i}n(qh,"pqdownheap");function Aw(e,t,r){var i,a,s=0,l,d;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+s*2]<<8|e.pending_buf[e.d_buf+s*2+1],a=e.pending_buf[e.l_buf+s],s++,i===0?Vt(e,a,t):(l=Ho[a],Vt(e,l+Yo+1,t),d=Mh[l],d!==0&&(a-=Zh[l],Me(e,a,d)),i--,l=Uw(i),Vt(e,l,r),d=df[l],d!==0&&(i-=cf[l],Me(e,i,d)));while(s<e.last_lit);Vt(e,jh,t)}n(Aw,"compress_block");function Nh(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,s=t.stat_desc.elems,l,d,p=-1,u;for(e.heap_len=0,e.heap_max=Dw,l=0;l<s;l++)r[l*2]!==0?(e.heap[++e.heap_len]=p=l,e.depth[l]=0):r[l*2+1]=0;for(;e.heap_len<2;)u=e.heap[++e.heap_len]=p<2?++p:0,r[u*2]=1,e.depth[u]=0,e.opt_len--,a&&(e.static_len-=i[u*2+1]);for(t.max_code=p,l=e.heap_len>>1;l>=1;l--)qh(e,r,l);u=s;do l=e.heap[1],e.heap[1]=e.heap[e.heap_len--],qh(e,r,1),d=e.heap[1],e.heap[--e.heap_max]=l,e.heap[--e.heap_max]=d,r[u*2]=r[l*2]+r[d*2],e.depth[u]=(e.depth[l]>=e.depth[d]?e.depth[l]:e.depth[d])+1,r[l*2+1]=r[d*2+1]=u,e.heap[1]=u++,qh(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],RO(e,t),jw(r,p,e.bl_count)}n(Nh,"build_tree");function Cw(e,t,r){var i,a=-1,s,l=t[0*2+1],d=0,p=7,u=4;for(l===0&&(p=138,u=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)s=l,l=t[(i+1)*2+1],!(++d<p&&s===l)&&(d<u?e.bl_tree[s*2]+=d:s!==0?(s!==a&&e.bl_tree[s*2]++,e.bl_tree[Bw*2]++):d<=10?e.bl_tree[Fw*2]++:e.bl_tree[Lw*2]++,d=0,a=s,l===0?(p=138,u=3):s===l?(p=6,u=3):(p=7,u=4))}n(Cw,"scan_tree");function Iw(e,t,r){var i,a=-1,s,l=t[0*2+1],d=0,p=7,u=4;for(l===0&&(p=138,u=3),i=0;i<=r;i++)if(s=l,l=t[(i+1)*2+1],!(++d<p&&s===l)){if(d<u)do Vt(e,s,e.bl_tree);while(--d!==0);else s!==0?(s!==a&&(Vt(e,s,e.bl_tree),d--),Vt(e,Bw,e.bl_tree),Me(e,d-3,2)):d<=10?(Vt(e,Fw,e.bl_tree),Me(e,d-3,3)):(Vt(e,Lw,e.bl_tree),Me(e,d-11,7));d=0,a=s,l===0?(p=138,u=3):s===l?(p=6,u=3):(p=7,u=4)}}n(Iw,"send_tree");function IO(e){var t;for(Cw(e,e.dyn_ltree,e.l_desc.max_code),Cw(e,e.dyn_dtree,e.d_desc.max_code),Nh(e,e.bl_desc),t=Wh-1;t>=3&&e.bl_tree[zw[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}n(IO,"build_bl_tree");function OO(e,t,r,i){var a;for(Me(e,t-257,5),Me(e,r-1,5),Me(e,i-4,4),a=0;a<i;a++)Me(e,e.bl_tree[zw[a]*2+1],3);Iw(e,e.dyn_ltree,t-1),Iw(e,e.dyn_dtree,r-1)}n(OO,"send_all_trees");function PO(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return kw;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Tw;for(r=32;r<Yo;r++)if(e.dyn_ltree[r*2]!==0)return Tw;return kw}n(PO,"detect_data_type");var Ow=!1;function DO(e){Ow||(AO(),Ow=!0),e.l_desc=new zh(e.dyn_ltree,qw),e.d_desc=new zh(e.dyn_dtree,Mw),e.bl_desc=new zh(e.bl_tree,Nw),e.bi_buf=0,e.bi_valid=0,Zw(e)}n(DO,"_tr_init");function $w(e,t,r,i){Me(e,(bO<<1)+(i?1:0),3),CO(e,t,r,!0)}n($w,"_tr_stored_block");function BO(e){Me(e,Pw<<1,3),Vt(e,jh,Rr),TO(e)}n(BO,"_tr_align");function FO(e,t,r,i){var a,s,l=0;e.level>0?(e.strm.data_type===vO&&(e.strm.data_type=PO(e)),Nh(e,e.l_desc),Nh(e,e.d_desc),l=IO(e),a=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=a&&(a=s)):a=s=r+5,r+4<=a&&t!==-1?$w(e,t,r,i):e.strategy===_O||s===a?(Me(e,(Pw<<1)+(i?1:0),3),Aw(e,Rr,Wo)):(Me(e,(yO<<1)+(i?1:0),3),OO(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),Aw(e,e.dyn_ltree,e.dyn_dtree)),Zw(e),i&&Hw(e)}n(FO,"_tr_flush_block");function LO(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(Ho[r]+Yo+1)*2]++,e.dyn_dtree[Uw(t)*2]++),e.last_lit===e.lit_bufsize-1}n(LO,"_tr_tally");fa._tr_init=DO;fa._tr_stored_block=$w;fa._tr_flush_block=FO;fa._tr_tally=LO;fa._tr_align=BO});var Hh=R((Jz,Gw)=>{"use strict";function zO(e,t,r,i){for(var a=e&65535|0,s=e>>>16&65535|0,l=0;r!==0;){l=r>2e3?2e3:r,r-=l;do a=a+t[i++]|0,s=s+a|0;while(--l);a%=65521,s%=65521}return a|s<<16|0}n(zO,"adler32");Gw.exports=zO});var $h=R((eq,Vw)=>{"use strict";function qO(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}n(qO,"makeTable");var MO=qO();function NO(e,t,r,i){var a=MO,s=i+r;e^=-1;for(var l=i;l<s;l++)e=e>>>8^a[(e^t[l])&255];return e^-1}n(NO,"crc32");Vw.exports=NO});var hf=R((rq,Kw)=>{"use strict";Kw.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 aS=R(Jt=>{"use strict";var De=Tr(),ft=Yw(),eS=Hh(),ri=$h(),UO=hf(),Hi=0,WO=1,jO=3,si=4,Xw=5,Xt=0,Jw=1,ut=-2,ZO=-3,Yh=-5,HO=-1,$O=1,pf=2,YO=3,GO=4,VO=0,KO=2,vf=8,XO=9,JO=15,QO=8,eP=29,tP=256,Vh=tP+1+eP,rP=30,iP=19,nP=2*Vh+1,aP=15,H=3,ai=258,At=ai+H+1,oP=32,bf=42,Kh=69,mf=73,gf=91,_f=103,Wi=113,Vo=666,ve=1,Ko=2,ji=3,ca=4,sP=3;function oi(e,t){return e.msg=UO[t],t}n(oi,"err");function Qw(e){return(e<<1)-(e>4?9:0)}n(Qw,"rank");function ni(e){for(var t=e.length;--t>=0;)e[t]=0}n(ni,"zero");function ii(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(De.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}n(ii,"flush_pending");function Ee(e,t){ft._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ii(e.strm)}n(Ee,"flush_block_only");function Y(e,t){e.pending_buf[e.pending++]=t}n(Y,"put_byte");function Go(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}n(Go,"putShortMSB");function lP(e,t,r,i){var a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,De.arraySet(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=eS(e.adler,t,a,r):e.state.wrap===2&&(e.adler=ri(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}n(lP,"read_buf");function tS(e,t){var r=e.max_chain_length,i=e.strstart,a,s,l=e.prev_length,d=e.nice_match,p=e.strstart>e.w_size-At?e.strstart-(e.w_size-At):0,u=e.window,c=e.w_mask,E=e.prev,g=e.strstart+ai,_=u[i+l-1],b=u[i+l];e.prev_length>=e.good_match&&(r>>=2),d>e.lookahead&&(d=e.lookahead);do if(a=t,!(u[a+l]!==b||u[a+l-1]!==_||u[a]!==u[i]||u[++a]!==u[i+1])){i+=2,a++;do;while(u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&i<g);if(s=ai-(g-i),i=g-ai,s>l){if(e.match_start=t,l=s,s>=d)break;_=u[i+l-1],b=u[i+l]}}while((t=E[t&c])>p&&--r!==0);return l<=e.lookahead?l:e.lookahead}n(tS,"longest_match");function Zi(e){var t=e.w_size,r,i,a,s,l;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-At)){De.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=t?a-t:0;while(--i);i=t,r=i;do a=e.prev[--r],e.prev[r]=a>=t?a-t:0;while(--i);s+=t}if(e.strm.avail_in===0)break;if(i=lP(e.strm,e.window,e.strstart+e.lookahead,s),e.lookahead+=i,e.lookahead+e.insert>=H)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+H-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<H)););}while(e.lookahead<At&&e.strm.avail_in!==0)}n(Zi,"fill_window");function fP(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Zi(e),e.lookahead===0&&t===Hi)return ve;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,Ee(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-At&&(Ee(e,!1),e.strm.avail_out===0))return ve}return e.insert=0,t===si?(Ee(e,!0),e.strm.avail_out===0?ji:ca):(e.strstart>e.block_start&&(Ee(e,!1),e.strm.avail_out===0),ve)}n(fP,"deflate_stored");function Gh(e,t){for(var r,i;;){if(e.lookahead<At){if(Zi(e),e.lookahead<At&&t===Hi)return ve;if(e.lookahead===0)break}if(r=0,e.lookahead>=H&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+H-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-At&&(e.match_length=tS(e,r)),e.match_length>=H)if(i=ft._tr_tally(e,e.strstart-e.match_start,e.match_length-H),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=H){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+H-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=ft._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Ee(e,!1),e.strm.avail_out===0))return ve}return e.insert=e.strstart<H-1?e.strstart:H-1,t===si?(Ee(e,!0),e.strm.avail_out===0?ji:ca):e.last_lit&&(Ee(e,!1),e.strm.avail_out===0)?ve:Ko}n(Gh,"deflate_fast");function ua(e,t){for(var r,i,a;;){if(e.lookahead<At){if(Zi(e),e.lookahead<At&&t===Hi)return ve;if(e.lookahead===0)break}if(r=0,e.lookahead>=H&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+H-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=H-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-At&&(e.match_length=tS(e,r),e.match_length<=5&&(e.strategy===$O||e.match_length===H&&e.strstart-e.match_start>4096)&&(e.match_length=H-1)),e.prev_length>=H&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-H,i=ft._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-H),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+H-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=H-1,e.strstart++,i&&(Ee(e,!1),e.strm.avail_out===0))return ve}else if(e.match_available){if(i=ft._tr_tally(e,0,e.window[e.strstart-1]),i&&Ee(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return ve}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=ft._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<H-1?e.strstart:H-1,t===si?(Ee(e,!0),e.strm.avail_out===0?ji:ca):e.last_lit&&(Ee(e,!1),e.strm.avail_out===0)?ve:Ko}n(ua,"deflate_slow");function uP(e,t){for(var r,i,a,s,l=e.window;;){if(e.lookahead<=ai){if(Zi(e),e.lookahead<=ai&&t===Hi)return ve;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=H&&e.strstart>0&&(a=e.strstart-1,i=l[a],i===l[++a]&&i===l[++a]&&i===l[++a])){s=e.strstart+ai;do;while(i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&a<s);e.match_length=ai-(s-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=H?(r=ft._tr_tally(e,1,e.match_length-H),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=ft._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Ee(e,!1),e.strm.avail_out===0))return ve}return e.insert=0,t===si?(Ee(e,!0),e.strm.avail_out===0?ji:ca):e.last_lit&&(Ee(e,!1),e.strm.avail_out===0)?ve:Ko}n(uP,"deflate_rle");function dP(e,t){for(var r;;){if(e.lookahead===0&&(Zi(e),e.lookahead===0)){if(t===Hi)return ve;break}if(e.match_length=0,r=ft._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Ee(e,!1),e.strm.avail_out===0))return ve}return e.insert=0,t===si?(Ee(e,!0),e.strm.avail_out===0?ji:ca):e.last_lit&&(Ee(e,!1),e.strm.avail_out===0)?ve:Ko}n(dP,"deflate_huff");function Kt(e,t,r,i,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=a}n(Kt,"Config");var da;da=[new Kt(0,0,0,0,fP),new Kt(4,4,8,4,Gh),new Kt(4,5,16,8,Gh),new Kt(4,6,32,32,Gh),new Kt(4,4,16,16,ua),new Kt(8,16,32,32,ua),new Kt(8,16,128,128,ua),new Kt(8,32,128,256,ua),new Kt(32,128,258,1024,ua),new Kt(32,258,258,4096,ua)];function cP(e){e.window_size=2*e.w_size,ni(e.head),e.max_lazy_match=da[e.level].max_lazy,e.good_match=da[e.level].good_length,e.nice_match=da[e.level].nice_length,e.max_chain_length=da[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=H-1,e.match_available=0,e.ins_h=0}n(cP,"lm_init");function hP(){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=vf,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 De.Buf16(nP*2),this.dyn_dtree=new De.Buf16((2*rP+1)*2),this.bl_tree=new De.Buf16((2*iP+1)*2),ni(this.dyn_ltree),ni(this.dyn_dtree),ni(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new De.Buf16(aP+1),this.heap=new De.Buf16(2*Vh+1),ni(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new De.Buf16(2*Vh+1),ni(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}n(hP,"DeflateState");function rS(e){var t;return!e||!e.state?oi(e,ut):(e.total_in=e.total_out=0,e.data_type=KO,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?bf:Wi,e.adler=t.wrap===2?0:1,t.last_flush=Hi,ft._tr_init(t),Xt)}n(rS,"deflateResetKeep");function iS(e){var t=rS(e);return t===Xt&&cP(e.state),t}n(iS,"deflateReset");function pP(e,t){return!e||!e.state||e.state.wrap!==2?ut:(e.state.gzhead=t,Xt)}n(pP,"deflateSetHeader");function nS(e,t,r,i,a,s){if(!e)return ut;var l=1;if(t===HO&&(t=6),i<0?(l=0,i=-i):i>15&&(l=2,i-=16),a<1||a>XO||r!==vf||i<8||i>15||t<0||t>9||s<0||s>GO)return oi(e,ut);i===8&&(i=9);var d=new hP;return e.state=d,d.strm=e,d.wrap=l,d.gzhead=null,d.w_bits=i,d.w_size=1<<d.w_bits,d.w_mask=d.w_size-1,d.hash_bits=a+7,d.hash_size=1<<d.hash_bits,d.hash_mask=d.hash_size-1,d.hash_shift=~~((d.hash_bits+H-1)/H),d.window=new De.Buf8(d.w_size*2),d.head=new De.Buf16(d.hash_size),d.prev=new De.Buf16(d.w_size),d.lit_bufsize=1<<a+6,d.pending_buf_size=d.lit_bufsize*4,d.pending_buf=new De.Buf8(d.pending_buf_size),d.d_buf=1*d.lit_bufsize,d.l_buf=3*d.lit_bufsize,d.level=t,d.strategy=s,d.method=r,iS(e)}n(nS,"deflateInit2");function mP(e,t){return nS(e,t,vf,JO,QO,VO)}n(mP,"deflateInit");function gP(e,t){var r,i,a,s;if(!e||!e.state||t>Xw||t<0)return e?oi(e,ut):ut;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===Vo&&t!==si)return oi(e,e.avail_out===0?Yh:ut);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===bf)if(i.wrap===2)e.adler=0,Y(i,31),Y(i,139),Y(i,8),i.gzhead?(Y(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),Y(i,i.gzhead.time&255),Y(i,i.gzhead.time>>8&255),Y(i,i.gzhead.time>>16&255),Y(i,i.gzhead.time>>24&255),Y(i,i.level===9?2:i.strategy>=pf||i.level<2?4:0),Y(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(Y(i,i.gzhead.extra.length&255),Y(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=ri(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Kh):(Y(i,0),Y(i,0),Y(i,0),Y(i,0),Y(i,0),Y(i,i.level===9?2:i.strategy>=pf||i.level<2?4:0),Y(i,sP),i.status=Wi);else{var l=vf+(i.w_bits-8<<4)<<8,d=-1;i.strategy>=pf||i.level<2?d=0:i.level<6?d=1:i.level===6?d=2:d=3,l|=d<<6,i.strstart!==0&&(l|=oP),l+=31-l%31,i.status=Wi,Go(i,l),i.strstart!==0&&(Go(i,e.adler>>>16),Go(i,e.adler&65535)),e.adler=1}if(i.status===Kh)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=ri(e.adler,i.pending_buf,i.pending-a,a)),ii(e),a=i.pending,i.pending===i.pending_buf_size));)Y(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=ri(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=mf)}else i.status=mf;if(i.status===mf)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=ri(e.adler,i.pending_buf,i.pending-a,a)),ii(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.name.length?s=i.gzhead.name.charCodeAt(i.gzindex++)&255:s=0,Y(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=ri(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.gzindex=0,i.status=gf)}else i.status=gf;if(i.status===gf)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=ri(e.adler,i.pending_buf,i.pending-a,a)),ii(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.comment.length?s=i.gzhead.comment.charCodeAt(i.gzindex++)&255:s=0,Y(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=ri(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.status=_f)}else i.status=_f;if(i.status===_f&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ii(e),i.pending+2<=i.pending_buf_size&&(Y(i,e.adler&255),Y(i,e.adler>>8&255),e.adler=0,i.status=Wi)):i.status=Wi),i.pending!==0){if(ii(e),e.avail_out===0)return i.last_flush=-1,Xt}else if(e.avail_in===0&&Qw(t)<=Qw(r)&&t!==si)return oi(e,Yh);if(i.status===Vo&&e.avail_in!==0)return oi(e,Yh);if(e.avail_in!==0||i.lookahead!==0||t!==Hi&&i.status!==Vo){var p=i.strategy===pf?dP(i,t):i.strategy===YO?uP(i,t):da[i.level].func(i,t);if((p===ji||p===ca)&&(i.status=Vo),p===ve||p===ji)return e.avail_out===0&&(i.last_flush=-1),Xt;if(p===Ko&&(t===WO?ft._tr_align(i):t!==Xw&&(ft._tr_stored_block(i,0,0,!1),t===jO&&(ni(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),ii(e),e.avail_out===0))return i.last_flush=-1,Xt}return t!==si?Xt:i.wrap<=0?Jw:(i.wrap===2?(Y(i,e.adler&255),Y(i,e.adler>>8&255),Y(i,e.adler>>16&255),Y(i,e.adler>>24&255),Y(i,e.total_in&255),Y(i,e.total_in>>8&255),Y(i,e.total_in>>16&255),Y(i,e.total_in>>24&255)):(Go(i,e.adler>>>16),Go(i,e.adler&65535)),ii(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Xt:Jw)}n(gP,"deflate");function _P(e){var t;return!e||!e.state?ut:(t=e.state.status,t!==bf&&t!==Kh&&t!==mf&&t!==gf&&t!==_f&&t!==Wi&&t!==Vo?oi(e,ut):(e.state=null,t===Wi?oi(e,ZO):Xt))}n(_P,"deflateEnd");function vP(e,t){var r=t.length,i,a,s,l,d,p,u,c;if(!e||!e.state||(i=e.state,l=i.wrap,l===2||l===1&&i.status!==bf||i.lookahead))return ut;for(l===1&&(e.adler=eS(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(l===0&&(ni(i.head),i.strstart=0,i.block_start=0,i.insert=0),c=new De.Buf8(i.w_size),De.arraySet(c,t,r-i.w_size,i.w_size,0),t=c,r=i.w_size),d=e.avail_in,p=e.next_in,u=e.input,e.avail_in=r,e.next_in=0,e.input=t,Zi(i);i.lookahead>=H;){a=i.strstart,s=i.lookahead-(H-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[a+H-1])&i.hash_mask,i.prev[a&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=a,a++;while(--s);i.strstart=a,i.lookahead=H-1,Zi(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=H-1,i.match_available=0,e.next_in=p,e.input=u,e.avail_in=d,i.wrap=l,Xt}n(vP,"deflateSetDictionary");Jt.deflateInit=mP;Jt.deflateInit2=nS;Jt.deflateReset=iS;Jt.deflateResetKeep=rS;Jt.deflateSetHeader=pP;Jt.deflate=gP;Jt.deflateEnd=_P;Jt.deflateSetDictionary=vP;Jt.deflateInfo="pako deflate (from Nodeca project)"});var Xh=R(ha=>{"use strict";var yf=Tr(),oS=!0,sS=!0;try{String.fromCharCode.apply(null,[0])}catch{oS=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{sS=!1}var Xo=new yf.Buf8(256);for(Ar=0;Ar<256;Ar++)Xo[Ar]=Ar>=252?6:Ar>=248?5:Ar>=240?4:Ar>=224?3:Ar>=192?2:1;var Ar;Xo[254]=Xo[254]=1;ha.string2buf=function(e){var t,r,i,a,s,l=e.length,d=0;for(a=0;a<l;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<l&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),d+=r<128?1:r<2048?2:r<65536?3:4;for(t=new yf.Buf8(d),s=0,a=0;s<d;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<l&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[s++]=r:r<2048?(t[s++]=192|r>>>6,t[s++]=128|r&63):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|r&63):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|r&63);return t};function lS(e,t){if(t<65534&&(e.subarray&&sS||!e.subarray&&oS))return String.fromCharCode.apply(null,yf.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}n(lS,"buf2binstring");ha.buf2binstring=function(e){return lS(e,e.length)};ha.binstring2buf=function(e){for(var t=new yf.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};ha.buf2string=function(e,t){var r,i,a,s,l=t||e.length,d=new Array(l*2);for(i=0,r=0;r<l;){if(a=e[r++],a<128){d[i++]=a;continue}if(s=Xo[a],s>4){d[i++]=65533,r+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&r<l;)a=a<<6|e[r++]&63,s--;if(s>1){d[i++]=65533;continue}a<65536?d[i++]=a:(a-=65536,d[i++]=55296|a>>10&1023,d[i++]=56320|a&1023)}return lS(d,i)};ha.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+Xo[e[r]]>t?r:t}});var Jh=R((sq,fS)=>{"use strict";function bP(){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}n(bP,"ZStream");fS.exports=bP});var hS=R(es=>{"use strict";var Jo=aS(),Qo=Tr(),ep=Xh(),tp=hf(),yP=Jh(),cS=Object.prototype.toString,wP=0,Qh=4,pa=0,uS=1,dS=2,SP=-1,xP=0,EP=8;function $i(e){if(!(this instanceof $i))return new $i(e);this.options=Qo.assign({level:SP,method:EP,chunkSize:16384,windowBits:15,memLevel:8,strategy:xP,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new yP,this.strm.avail_out=0;var r=Jo.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==pa)throw new Error(tp[r]);if(t.header&&Jo.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=ep.string2buf(t.dictionary):cS.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=Jo.deflateSetDictionary(this.strm,i),r!==pa)throw new Error(tp[r]);this._dict_set=!0}}n($i,"Deflate");$i.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a,s;if(this.ended)return!1;s=t===~~t?t:t===!0?Qh:wP,typeof e=="string"?r.input=ep.string2buf(e):cS.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Qo.Buf8(i),r.next_out=0,r.avail_out=i),a=Jo.deflate(r,s),a!==uS&&a!==pa)return this.onEnd(a),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(s===Qh||s===dS))&&(this.options.to==="string"?this.onData(ep.buf2binstring(Qo.shrinkBuf(r.output,r.next_out))):this.onData(Qo.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&a!==uS);return s===Qh?(a=Jo.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===pa):(s===dS&&(this.onEnd(pa),r.avail_out=0),!0)};$i.prototype.onData=function(e){this.chunks.push(e)};$i.prototype.onEnd=function(e){e===pa&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Qo.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function rp(e,t){var r=new $i(t);if(r.push(e,!0),r.err)throw r.msg||tp[r.err];return r.result}n(rp,"deflate");function kP(e,t){return t=t||{},t.raw=!0,rp(e,t)}n(kP,"deflateRaw");function TP(e,t){return t=t||{},t.gzip=!0,rp(e,t)}n(TP,"gzip");es.Deflate=$i;es.deflate=rp;es.deflateRaw=kP;es.gzip=TP});var mS=R((dq,pS)=>{"use strict";var wf=30,RP=12;pS.exports=n(function(t,r){var i,a,s,l,d,p,u,c,E,g,_,b,A,T,y,x,C,w,S,P,B,D,F,z,O;i=t.state,a=t.next_in,z=t.input,s=a+(t.avail_in-5),l=t.next_out,O=t.output,d=l-(r-t.avail_out),p=l+(t.avail_out-257),u=i.dmax,c=i.wsize,E=i.whave,g=i.wnext,_=i.window,b=i.hold,A=i.bits,T=i.lencode,y=i.distcode,x=(1<<i.lenbits)-1,C=(1<<i.distbits)-1;e:do{A<15&&(b+=z[a++]<<A,A+=8,b+=z[a++]<<A,A+=8),w=T[b&x];t:for(;;){if(S=w>>>24,b>>>=S,A-=S,S=w>>>16&255,S===0)O[l++]=w&65535;else if(S&16){P=w&65535,S&=15,S&&(A<S&&(b+=z[a++]<<A,A+=8),P+=b&(1<<S)-1,b>>>=S,A-=S),A<15&&(b+=z[a++]<<A,A+=8,b+=z[a++]<<A,A+=8),w=y[b&C];r:for(;;){if(S=w>>>24,b>>>=S,A-=S,S=w>>>16&255,S&16){if(B=w&65535,S&=15,A<S&&(b+=z[a++]<<A,A+=8,A<S&&(b+=z[a++]<<A,A+=8)),B+=b&(1<<S)-1,B>u){t.msg="invalid distance too far back",i.mode=wf;break e}if(b>>>=S,A-=S,S=l-d,B>S){if(S=B-S,S>E&&i.sane){t.msg="invalid distance too far back",i.mode=wf;break e}if(D=0,F=_,g===0){if(D+=c-S,S<P){P-=S;do O[l++]=_[D++];while(--S);D=l-B,F=O}}else if(g<S){if(D+=c+g-S,S-=g,S<P){P-=S;do O[l++]=_[D++];while(--S);if(D=0,g<P){S=g,P-=S;do O[l++]=_[D++];while(--S);D=l-B,F=O}}}else if(D+=g-S,S<P){P-=S;do O[l++]=_[D++];while(--S);D=l-B,F=O}for(;P>2;)O[l++]=F[D++],O[l++]=F[D++],O[l++]=F[D++],P-=3;P&&(O[l++]=F[D++],P>1&&(O[l++]=F[D++]))}else{D=l-B;do O[l++]=O[D++],O[l++]=O[D++],O[l++]=O[D++],P-=3;while(P>2);P&&(O[l++]=O[D++],P>1&&(O[l++]=O[D++]))}}else if(S&64){t.msg="invalid distance code",i.mode=wf;break e}else{w=y[(w&65535)+(b&(1<<S)-1)];continue r}break}}else if(S&64)if(S&32){i.mode=RP;break e}else{t.msg="invalid literal/length code",i.mode=wf;break e}else{w=T[(w&65535)+(b&(1<<S)-1)];continue t}break}}while(a<s&&l<p);P=A>>3,a-=P,A-=P<<3,b&=(1<<A)-1,t.next_in=a,t.next_out=l,t.avail_in=a<s?5+(s-a):5-(a-s),t.avail_out=l<p?257+(p-l):257-(l-p),i.hold=b,i.bits=A},"inflate_fast")});var SS=R((hq,wS)=>{"use strict";var gS=Tr(),ma=15,_S=852,vS=592,bS=0,ip=1,yS=2,AP=[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],CP=[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],IP=[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],OP=[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];wS.exports=n(function(t,r,i,a,s,l,d,p){var u=p.bits,c=0,E=0,g=0,_=0,b=0,A=0,T=0,y=0,x=0,C=0,w,S,P,B,D,F=null,z=0,O,G=new gS.Buf16(ma+1),se=new gS.Buf16(ma+1),Be=null,er=0,Or,ht,Ne;for(c=0;c<=ma;c++)G[c]=0;for(E=0;E<a;E++)G[r[i+E]]++;for(b=u,_=ma;_>=1&&G[_]===0;_--);if(b>_&&(b=_),_===0)return s[l++]=1<<24|64<<16|0,s[l++]=1<<24|64<<16|0,p.bits=1,0;for(g=1;g<_&&G[g]===0;g++);for(b<g&&(b=g),y=1,c=1;c<=ma;c++)if(y<<=1,y-=G[c],y<0)return-1;if(y>0&&(t===bS||_!==1))return-1;for(se[1]=0,c=1;c<ma;c++)se[c+1]=se[c]+G[c];for(E=0;E<a;E++)r[i+E]!==0&&(d[se[r[i+E]]++]=E);if(t===bS?(F=Be=d,O=19):t===ip?(F=AP,z-=257,Be=CP,er-=257,O=256):(F=IP,Be=OP,O=-1),C=0,E=0,c=g,D=l,A=b,T=0,P=-1,x=1<<b,B=x-1,t===ip&&x>_S||t===yS&&x>vS)return 1;for(;;){Or=c-T,d[E]<O?(ht=0,Ne=d[E]):d[E]>O?(ht=Be[er+d[E]],Ne=F[z+d[E]]):(ht=96,Ne=0),w=1<<c-T,S=1<<A,g=S;do S-=w,s[D+(C>>T)+S]=Or<<24|ht<<16|Ne|0;while(S!==0);for(w=1<<c-1;C&w;)w>>=1;if(w!==0?(C&=w-1,C+=w):C=0,E++,--G[c]===0){if(c===_)break;c=r[i+d[E]]}if(c>b&&(C&B)!==P){for(T===0&&(T=b),D+=g,A=c-T,y=1<<A;A+T<_&&(y-=G[A+T],!(y<=0));)A++,y<<=1;if(x+=1<<A,t===ip&&x>_S||t===yS&&x>vS)return 1;P=C&B,s[P]=b<<24|A<<16|D-l|0}}return C!==0&&(s[D+C]=c-T<<24|64<<16|0),p.bits=b,0},"inflate_table")});var ix=R(Ct=>{"use strict";var Xe=Tr(),fp=Hh(),Qt=$h(),PP=mS(),ts=SS(),DP=0,GS=1,VS=2,xS=4,BP=5,Sf=6,Yi=0,FP=1,LP=2,dt=-2,KS=-3,up=-4,zP=-5,ES=8,XS=1,kS=2,TS=3,RS=4,AS=5,CS=6,IS=7,OS=8,PS=9,DS=10,kf=11,Cr=12,np=13,BS=14,ap=15,FS=16,LS=17,zS=18,qS=19,xf=20,Ef=21,MS=22,NS=23,US=24,WS=25,jS=26,op=27,ZS=28,HS=29,oe=30,dp=31,qP=32,MP=852,NP=592,UP=15,WP=UP;function $S(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}n($S,"zswap32");function jP(){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 Xe.Buf16(320),this.work=new Xe.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}n(jP,"InflateState");function JS(e){var t;return!e||!e.state?dt:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=XS,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Xe.Buf32(MP),t.distcode=t.distdyn=new Xe.Buf32(NP),t.sane=1,t.back=-1,Yi)}n(JS,"inflateResetKeep");function QS(e){var t;return!e||!e.state?dt:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,JS(e))}n(QS,"inflateReset");function ex(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?dt:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,QS(e))}n(ex,"inflateReset2");function tx(e,t){var r,i;return e?(i=new jP,e.state=i,i.window=null,r=ex(e,t),r!==Yi&&(e.state=null),r):dt}n(tx,"inflateInit2");function ZP(e){return tx(e,WP)}n(ZP,"inflateInit");var YS=!0,sp,lp;function HP(e){if(YS){var t;for(sp=new Xe.Buf32(512),lp=new Xe.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(ts(GS,e.lens,0,288,sp,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;ts(VS,e.lens,0,32,lp,0,e.work,{bits:5}),YS=!1}e.lencode=sp,e.lenbits=9,e.distcode=lp,e.distbits=5}n(HP,"fixedtables");function rx(e,t,r,i){var a,s=e.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Xe.Buf8(s.wsize)),i>=s.wsize?(Xe.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(a=s.wsize-s.wnext,a>i&&(a=i),Xe.arraySet(s.window,t,r-i,a,s.wnext),i-=a,i?(Xe.arraySet(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=a))),0}n(rx,"updatewindow");function $P(e,t){var r,i,a,s,l,d,p,u,c,E,g,_,b,A,T=0,y,x,C,w,S,P,B,D,F=new Xe.Buf8(4),z,O,G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return dt;r=e.state,r.mode===Cr&&(r.mode=np),l=e.next_out,a=e.output,p=e.avail_out,s=e.next_in,i=e.input,d=e.avail_in,u=r.hold,c=r.bits,E=d,g=p,D=Yi;e:for(;;)switch(r.mode){case XS:if(r.wrap===0){r.mode=np;break}for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(r.wrap&2&&u===35615){r.check=0,F[0]=u&255,F[1]=u>>>8&255,r.check=Qt(r.check,F,2,0),u=0,c=0,r.mode=kS;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",r.mode=oe;break}if((u&15)!==ES){e.msg="unknown compression method",r.mode=oe;break}if(u>>>=4,c-=4,B=(u&15)+8,r.wbits===0)r.wbits=B;else if(B>r.wbits){e.msg="invalid window size",r.mode=oe;break}r.dmax=1<<B,e.adler=r.check=1,r.mode=u&512?DS:Cr,u=0,c=0;break;case kS:for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(r.flags=u,(r.flags&255)!==ES){e.msg="unknown compression method",r.mode=oe;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=oe;break}r.head&&(r.head.text=u>>8&1),r.flags&512&&(F[0]=u&255,F[1]=u>>>8&255,r.check=Qt(r.check,F,2,0)),u=0,c=0,r.mode=TS;case TS:for(;c<32;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.head&&(r.head.time=u),r.flags&512&&(F[0]=u&255,F[1]=u>>>8&255,F[2]=u>>>16&255,F[3]=u>>>24&255,r.check=Qt(r.check,F,4,0)),u=0,c=0,r.mode=RS;case RS:for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.head&&(r.head.xflags=u&255,r.head.os=u>>8),r.flags&512&&(F[0]=u&255,F[1]=u>>>8&255,r.check=Qt(r.check,F,2,0)),u=0,c=0,r.mode=AS;case AS:if(r.flags&1024){for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.length=u,r.head&&(r.head.extra_len=u),r.flags&512&&(F[0]=u&255,F[1]=u>>>8&255,r.check=Qt(r.check,F,2,0)),u=0,c=0}else r.head&&(r.head.extra=null);r.mode=CS;case CS:if(r.flags&1024&&(_=r.length,_>d&&(_=d),_&&(r.head&&(B=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),Xe.arraySet(r.head.extra,i,s,_,B)),r.flags&512&&(r.check=Qt(r.check,i,_,s)),d-=_,s+=_,r.length-=_),r.length))break e;r.length=0,r.mode=IS;case IS:if(r.flags&2048){if(d===0)break e;_=0;do B=i[s+_++],r.head&&B&&r.length<65536&&(r.head.name+=String.fromCharCode(B));while(B&&_<d);if(r.flags&512&&(r.check=Qt(r.check,i,_,s)),d-=_,s+=_,B)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=OS;case OS:if(r.flags&4096){if(d===0)break e;_=0;do B=i[s+_++],r.head&&B&&r.length<65536&&(r.head.comment+=String.fromCharCode(B));while(B&&_<d);if(r.flags&512&&(r.check=Qt(r.check,i,_,s)),d-=_,s+=_,B)break e}else r.head&&(r.head.comment=null);r.mode=PS;case PS:if(r.flags&512){for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(u!==(r.check&65535)){e.msg="header crc mismatch",r.mode=oe;break}u=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Cr;break;case DS:for(;c<32;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}e.adler=r.check=$S(u),u=0,c=0,r.mode=kf;case kf:if(r.havedict===0)return e.next_out=l,e.avail_out=p,e.next_in=s,e.avail_in=d,r.hold=u,r.bits=c,LP;e.adler=r.check=1,r.mode=Cr;case Cr:if(t===BP||t===Sf)break e;case np:if(r.last){u>>>=c&7,c-=c&7,r.mode=op;break}for(;c<3;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}switch(r.last=u&1,u>>>=1,c-=1,u&3){case 0:r.mode=BS;break;case 1:if(HP(r),r.mode=xf,t===Sf){u>>>=2,c-=2;break e}break;case 2:r.mode=LS;break;case 3:e.msg="invalid block type",r.mode=oe}u>>>=2,c-=2;break;case BS:for(u>>>=c&7,c-=c&7;c<32;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if((u&65535)!==(u>>>16^65535)){e.msg="invalid stored block lengths",r.mode=oe;break}if(r.length=u&65535,u=0,c=0,r.mode=ap,t===Sf)break e;case ap:r.mode=FS;case FS:if(_=r.length,_){if(_>d&&(_=d),_>p&&(_=p),_===0)break e;Xe.arraySet(a,i,s,_,l),d-=_,s+=_,p-=_,l+=_,r.length-=_;break}r.mode=Cr;break;case LS:for(;c<14;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(r.nlen=(u&31)+257,u>>>=5,c-=5,r.ndist=(u&31)+1,u>>>=5,c-=5,r.ncode=(u&15)+4,u>>>=4,c-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=oe;break}r.have=0,r.mode=zS;case zS:for(;r.have<r.ncode;){for(;c<3;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.lens[G[r.have++]]=u&7,u>>>=3,c-=3}for(;r.have<19;)r.lens[G[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,z={bits:r.lenbits},D=ts(DP,r.lens,0,19,r.lencode,0,r.work,z),r.lenbits=z.bits,D){e.msg="invalid code lengths set",r.mode=oe;break}r.have=0,r.mode=qS;case qS:for(;r.have<r.nlen+r.ndist;){for(;T=r.lencode[u&(1<<r.lenbits)-1],y=T>>>24,x=T>>>16&255,C=T&65535,!(y<=c);){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(C<16)u>>>=y,c-=y,r.lens[r.have++]=C;else{if(C===16){for(O=y+2;c<O;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(u>>>=y,c-=y,r.have===0){e.msg="invalid bit length repeat",r.mode=oe;break}B=r.lens[r.have-1],_=3+(u&3),u>>>=2,c-=2}else if(C===17){for(O=y+3;c<O;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}u>>>=y,c-=y,B=0,_=3+(u&7),u>>>=3,c-=3}else{for(O=y+7;c<O;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}u>>>=y,c-=y,B=0,_=11+(u&127),u>>>=7,c-=7}if(r.have+_>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=oe;break}for(;_--;)r.lens[r.have++]=B}}if(r.mode===oe)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=oe;break}if(r.lenbits=9,z={bits:r.lenbits},D=ts(GS,r.lens,0,r.nlen,r.lencode,0,r.work,z),r.lenbits=z.bits,D){e.msg="invalid literal/lengths set",r.mode=oe;break}if(r.distbits=6,r.distcode=r.distdyn,z={bits:r.distbits},D=ts(VS,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,z),r.distbits=z.bits,D){e.msg="invalid distances set",r.mode=oe;break}if(r.mode=xf,t===Sf)break e;case xf:r.mode=Ef;case Ef:if(d>=6&&p>=258){e.next_out=l,e.avail_out=p,e.next_in=s,e.avail_in=d,r.hold=u,r.bits=c,PP(e,g),l=e.next_out,a=e.output,p=e.avail_out,s=e.next_in,i=e.input,d=e.avail_in,u=r.hold,c=r.bits,r.mode===Cr&&(r.back=-1);break}for(r.back=0;T=r.lencode[u&(1<<r.lenbits)-1],y=T>>>24,x=T>>>16&255,C=T&65535,!(y<=c);){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(x&&!(x&240)){for(w=y,S=x,P=C;T=r.lencode[P+((u&(1<<w+S)-1)>>w)],y=T>>>24,x=T>>>16&255,C=T&65535,!(w+y<=c);){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}u>>>=w,c-=w,r.back+=w}if(u>>>=y,c-=y,r.back+=y,r.length=C,x===0){r.mode=jS;break}if(x&32){r.back=-1,r.mode=Cr;break}if(x&64){e.msg="invalid literal/length code",r.mode=oe;break}r.extra=x&15,r.mode=MS;case MS:if(r.extra){for(O=r.extra;c<O;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=NS;case NS:for(;T=r.distcode[u&(1<<r.distbits)-1],y=T>>>24,x=T>>>16&255,C=T&65535,!(y<=c);){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(!(x&240)){for(w=y,S=x,P=C;T=r.distcode[P+((u&(1<<w+S)-1)>>w)],y=T>>>24,x=T>>>16&255,C=T&65535,!(w+y<=c);){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}u>>>=w,c-=w,r.back+=w}if(u>>>=y,c-=y,r.back+=y,x&64){e.msg="invalid distance code",r.mode=oe;break}r.offset=C,r.extra=x&15,r.mode=US;case US:if(r.extra){for(O=r.extra;c<O;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=oe;break}r.mode=WS;case WS:if(p===0)break e;if(_=g-p,r.offset>_){if(_=r.offset-_,_>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=oe;break}_>r.wnext?(_-=r.wnext,b=r.wsize-_):b=r.wnext-_,_>r.length&&(_=r.length),A=r.window}else A=a,b=l-r.offset,_=r.length;_>p&&(_=p),p-=_,r.length-=_;do a[l++]=A[b++];while(--_);r.length===0&&(r.mode=Ef);break;case jS:if(p===0)break e;a[l++]=r.length,p--,r.mode=Ef;break;case op:if(r.wrap){for(;c<32;){if(d===0)break e;d--,u|=i[s++]<<c,c+=8}if(g-=p,e.total_out+=g,r.total+=g,g&&(e.adler=r.check=r.flags?Qt(r.check,a,g,l-g):fp(r.check,a,g,l-g)),g=p,(r.flags?u:$S(u))!==r.check){e.msg="incorrect data check",r.mode=oe;break}u=0,c=0}r.mode=ZS;case ZS:if(r.wrap&&r.flags){for(;c<32;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(u!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=oe;break}u=0,c=0}r.mode=HS;case HS:D=FP;break e;case oe:D=KS;break e;case dp:return up;case qP:default:return dt}return e.next_out=l,e.avail_out=p,e.next_in=s,e.avail_in=d,r.hold=u,r.bits=c,(r.wsize||g!==e.avail_out&&r.mode<oe&&(r.mode<op||t!==xS))&&rx(e,e.output,e.next_out,g-e.avail_out)?(r.mode=dp,up):(E-=e.avail_in,g-=e.avail_out,e.total_in+=E,e.total_out+=g,r.total+=g,r.wrap&&g&&(e.adler=r.check=r.flags?Qt(r.check,a,g,e.next_out-g):fp(r.check,a,g,e.next_out-g)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Cr?128:0)+(r.mode===xf||r.mode===ap?256:0),(E===0&&g===0||t===xS)&&D===Yi&&(D=zP),D)}n($P,"inflate");function YP(e){if(!e||!e.state)return dt;var t=e.state;return t.window&&(t.window=null),e.state=null,Yi}n(YP,"inflateEnd");function GP(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?dt:(r.head=t,t.done=!1,Yi)}n(GP,"inflateGetHeader");function VP(e,t){var r=t.length,i,a,s;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==kf)?dt:i.mode===kf&&(a=1,a=fp(a,t,r,0),a!==i.check)?KS:(s=rx(e,t,r,r),s?(i.mode=dp,up):(i.havedict=1,Yi))}n(VP,"inflateSetDictionary");Ct.inflateReset=QS;Ct.inflateReset2=ex;Ct.inflateResetKeep=JS;Ct.inflateInit=ZP;Ct.inflateInit2=tx;Ct.inflate=$P;Ct.inflateEnd=YP;Ct.inflateGetHeader=GP;Ct.inflateSetDictionary=VP;Ct.inflateInfo="pako inflate (from Nodeca project)"});var cp=R((_q,nx)=>{"use strict";nx.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 ox=R((vq,ax)=>{"use strict";function KP(){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}n(KP,"GZheader");ax.exports=KP});var lx=R(is=>{"use strict";var ga=ix(),rs=Tr(),Tf=Xh(),ce=cp(),hp=hf(),XP=Jh(),JP=ox(),sx=Object.prototype.toString;function Gi(e){if(!(this instanceof Gi))return new Gi(e);this.options=rs.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new XP,this.strm.avail_out=0;var r=ga.inflateInit2(this.strm,t.windowBits);if(r!==ce.Z_OK)throw new Error(hp[r]);if(this.header=new JP,ga.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Tf.string2buf(t.dictionary):sx.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=ga.inflateSetDictionary(this.strm,t.dictionary),r!==ce.Z_OK)))throw new Error(hp[r])}n(Gi,"Inflate");Gi.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a=this.options.dictionary,s,l,d,p,u,c=!1;if(this.ended)return!1;l=t===~~t?t:t===!0?ce.Z_FINISH:ce.Z_NO_FLUSH,typeof e=="string"?r.input=Tf.binstring2buf(e):sx.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new rs.Buf8(i),r.next_out=0,r.avail_out=i),s=ga.inflate(r,ce.Z_NO_FLUSH),s===ce.Z_NEED_DICT&&a&&(s=ga.inflateSetDictionary(this.strm,a)),s===ce.Z_BUF_ERROR&&c===!0&&(s=ce.Z_OK,c=!1),s!==ce.Z_STREAM_END&&s!==ce.Z_OK)return this.onEnd(s),this.ended=!0,!1;r.next_out&&(r.avail_out===0||s===ce.Z_STREAM_END||r.avail_in===0&&(l===ce.Z_FINISH||l===ce.Z_SYNC_FLUSH))&&(this.options.to==="string"?(d=Tf.utf8border(r.output,r.next_out),p=r.next_out-d,u=Tf.buf2string(r.output,d),r.next_out=p,r.avail_out=i-p,p&&rs.arraySet(r.output,r.output,d,p,0),this.onData(u)):this.onData(rs.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(c=!0)}while((r.avail_in>0||r.avail_out===0)&&s!==ce.Z_STREAM_END);return s===ce.Z_STREAM_END&&(l=ce.Z_FINISH),l===ce.Z_FINISH?(s=ga.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===ce.Z_OK):(l===ce.Z_SYNC_FLUSH&&(this.onEnd(ce.Z_OK),r.avail_out=0),!0)};Gi.prototype.onData=function(e){this.chunks.push(e)};Gi.prototype.onEnd=function(e){e===ce.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=rs.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function pp(e,t){var r=new Gi(t);if(r.push(e,!0),r.err)throw r.msg||hp[r.err];return r.result}n(pp,"inflate");function QP(e,t){return t=t||{},t.raw=!0,pp(e,t)}n(QP,"inflateRaw");is.Inflate=Gi;is.inflate=pp;is.inflateRaw=QP;is.ungzip=pp});var dx=R((Sq,ux)=>{"use strict";var eD=Tr().assign,tD=hS(),rD=lx(),iD=cp(),fx={};eD(fx,tD,rD,iD);ux.exports=fx});var hx=R(Af=>{"use strict";var nD=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",aD=dx(),cx=fe(),Rf=Ke(),oD=nD?"uint8array":"array";Af.magic="\b\0";function Vi(e,t){Rf.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n(Vi,"FlateWorker");cx.inherits(Vi,Rf);Vi.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(cx.transformTo(oD,e.data),!1)};Vi.prototype.flush=function(){Rf.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};Vi.prototype.cleanUp=function(){Rf.prototype.cleanUp.call(this),this._pako=null};Vi.prototype._createPako=function(){this._pako=new aD[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};Af.compressWorker=function(e){return new Vi("Deflate",e)};Af.uncompressWorker=function(){return new Vi("Inflate",{})}});var gp=R(mp=>{"use strict";var px=Ke();mp.STORE={magic:"\0\0",compressWorker:n(function(){return new px("STORE compression")},"compressWorker"),uncompressWorker:n(function(){return new px("STORE decompression")},"uncompressWorker")};mp.DEFLATE=hx()});var _p=R(Ki=>{"use strict";Ki.LOCAL_FILE_HEADER="PK";Ki.CENTRAL_FILE_HEADER="PK";Ki.CENTRAL_DIRECTORY_END="PK";Ki.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";Ki.ZIP64_CENTRAL_DIRECTORY_END="PK";Ki.DATA_DESCRIPTOR="PK\x07\b"});var vx=R((Aq,_x)=>{"use strict";var _a=fe(),va=Ke(),vp=aa(),mx=lf(),Cf=_p(),re=n(function(e,t){var r="",i;for(i=0;i<t;i++)r+=String.fromCharCode(e&255),e=e>>>8;return r},"decToHex"),sD=n(function(e,t){var r=e;return e||(r=t?16893:33204),(r&65535)<<16},"generateUnixExternalFileAttr"),lD=n(function(e){return(e||0)&63},"generateDosExternalFileAttr"),gx=n(function(e,t,r,i,a,s){var l=e.file,d=e.compression,p=s!==vp.utf8encode,u=_a.transformTo("string",s(l.name)),c=_a.transformTo("string",vp.utf8encode(l.name)),E=l.comment,g=_a.transformTo("string",s(E)),_=_a.transformTo("string",vp.utf8encode(E)),b=c.length!==l.name.length,A=_.length!==E.length,T,y,x="",C="",w="",S=l.dir,P=l.date,B={crc32:0,compressedSize:0,uncompressedSize:0};(!t||r)&&(B.crc32=e.crc32,B.compressedSize=e.compressedSize,B.uncompressedSize=e.uncompressedSize);var D=0;t&&(D|=8),!p&&(b||A)&&(D|=2048);var F=0,z=0;S&&(F|=16),a==="UNIX"?(z=798,F|=sD(l.unixPermissions,S)):(z=20,F|=lD(l.dosPermissions,S)),T=P.getUTCHours(),T=T<<6,T=T|P.getUTCMinutes(),T=T<<5,T=T|P.getUTCSeconds()/2,y=P.getUTCFullYear()-1980,y=y<<4,y=y|P.getUTCMonth()+1,y=y<<5,y=y|P.getUTCDate(),b&&(C=re(1,1)+re(mx(u),4)+c,x+="up"+re(C.length,2)+C),A&&(w=re(1,1)+re(mx(g),4)+_,x+="uc"+re(w.length,2)+w);var O="";O+=`
14
- \0`,O+=re(D,2),O+=d.magic,O+=re(T,2),O+=re(y,2),O+=re(B.crc32,4),O+=re(B.compressedSize,4),O+=re(B.uncompressedSize,4),O+=re(u.length,2),O+=re(x.length,2);var G=Cf.LOCAL_FILE_HEADER+O+u+x,se=Cf.CENTRAL_FILE_HEADER+re(z,2)+O+re(g.length,2)+"\0\0\0\0"+re(F,4)+re(i,4)+u+x+g;return{fileRecord:G,dirRecord:se}},"generateZipParts"),fD=n(function(e,t,r,i,a){var s="",l=_a.transformTo("string",a(i));return s=Cf.CENTRAL_DIRECTORY_END+"\0\0\0\0"+re(e,2)+re(e,2)+re(t,4)+re(r,4)+re(l.length,2)+l,s},"generateCentralDirectoryEnd"),uD=n(function(e){var t="";return t=Cf.DATA_DESCRIPTOR+re(e.crc32,4)+re(e.compressedSize,4)+re(e.uncompressedSize,4),t},"generateDataDescriptors");function It(e,t,r,i){va.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n(It,"ZipFileWorker");_a.inherits(It,va);It.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,va.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-i-1))/r:100}}))};It.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=gx(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0};It.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=gx(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:uD(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null};It.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,i=fD(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})};It.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()};It.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(r){t.error(r)}),this};It.prototype.resume=function(){if(!va.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};It.prototype.error=function(e){var t=this._sources;if(!va.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch{}return!0};It.prototype.lock=function(){va.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};_x.exports=It});var yx=R(bx=>{"use strict";var dD=gp(),cD=vx(),hD=n(function(e,t){var r=e||t,i=dD[r];if(!i)throw new Error(r+" is not a valid compression method !");return i},"getCompression");bx.generateWorker=function(e,t,r){var i=new cD(t.streamFiles,r,t.platform,t.encodeFileName),a=0;try{e.forEach(function(s,l){a++;var d=hD(l.options.compression,t.compression),p=l.options.compressionOptions||t.compressionOptions||{},u=l.dir,c=l.date;l._compressWorker(d,p).withStreamInfo("file",{name:s,dir:u,date:c,comment:l.comment||"",unixPermissions:l.unixPermissions,dosPermissions:l.dosPermissions}).pipe(i)}),i.entriesCount=a}catch(s){i.error(s)}return i}});var Sx=R((Pq,wx)=>{"use strict";var pD=fe(),If=Ke();function ns(e,t){If.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n(ns,"NodejsStreamInputAdapter");pD.inherits(ns,If);ns.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",function(r){t.push({data:r,meta:{percent:0}})}).on("error",function(r){t.isPaused?this.generatedError=r:t.error(r)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})};ns.prototype.pause=function(){return If.prototype.pause.call(this)?(this._stream.pause(),!0):!1};ns.prototype.resume=function(){return If.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};wx.exports=ns});var Px=R((Bq,Ox)=>{"use strict";var mD=aa(),as=fe(),Tx=Ke(),gD=xh(),Rx=Eh(),xx=ff(),_D=Ew(),vD=yx(),Ex=Bo(),bD=Sx(),Ax=n(function(e,t,r){var i=as.getTypeOf(t),a,s=as.extend(r||{},Rx);s.date=s.date||new Date,s.compression!==null&&(s.compression=s.compression.toUpperCase()),typeof s.unixPermissions=="string"&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&s.unixPermissions&16384&&(s.dir=!0),s.dosPermissions&&s.dosPermissions&16&&(s.dir=!0),s.dir&&(e=Cx(e)),s.createFolders&&(a=yD(e))&&Ix.call(this,a,!0);var l=i==="string"&&s.binary===!1&&s.base64===!1;(!r||typeof r.binary>"u")&&(s.binary=!l);var d=t instanceof xx&&t.uncompressedSize===0;(d||s.dir||!t||t.length===0)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var p=null;t instanceof xx||t instanceof Tx?p=t:Ex.isNode&&Ex.isStream(t)?p=new bD(e,t):p=as.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var u=new _D(e,p,s);this.files[e]=u},"fileAdd"),yD=n(function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},"parentFolder"),Cx=n(function(e){return e.slice(-1)!=="/"&&(e+="/"),e},"forceTrailingSlash"),Ix=n(function(e,t){return t=typeof t<"u"?t:Rx.createFolders,e=Cx(e),this.files[e]||Ax.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},"folderAdd");function kx(e){return Object.prototype.toString.call(e)==="[object RegExp]"}n(kx,"isRegExp");var wD={load:n(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"load"),forEach:n(function(e){var t,r,i;for(t in this.files)i=this.files[t],r=t.slice(this.root.length,t.length),r&&t.slice(0,this.root.length)===this.root&&e(r,i)},"forEach"),filter:n(function(e){var t=[];return this.forEach(function(r,i){e(r,i)&&t.push(i)}),t},"filter"),file:n(function(e,t,r){if(arguments.length===1)if(kx(e)){var i=e;return this.filter(function(s,l){return!l.dir&&i.test(s)})}else{var a=this.files[this.root+e];return a&&!a.dir?a:null}else e=this.root+e,Ax.call(this,e,t,r);return this},"file"),folder:n(function(e){if(!e)return this;if(kx(e))return this.filter(function(a,s){return s.dir&&e.test(a)});var t=this.root+e,r=Ix.call(this,t),i=this.clone();return i.root=r.name,i},"folder"),remove:n(function(e){e=this.root+e;var t=this.files[e];if(t||(e.slice(-1)!=="/"&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(a,s){return s.name.slice(0,e.length)===e}),i=0;i<r.length;i++)delete this.files[r[i].name];return this},"remove"),generate:n(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"generate"),generateInternalStream:n(function(e){var t,r={};try{if(r=as.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:mD.utf8encode}),r.type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),r.type==="binarystring"&&(r.type="string"),!r.type)throw new Error("No output type specified.");as.checkSupport(r.type),(r.platform==="darwin"||r.platform==="freebsd"||r.platform==="linux"||r.platform==="sunos")&&(r.platform="UNIX"),r.platform==="win32"&&(r.platform="DOS");var i=r.comment||this.comment||"";t=vD.generateWorker(this,r,i)}catch(a){t=new Tx("error"),t.error(a)}return new gD(t,r.type||"string",r.mimeType)},"generateInternalStream"),generateAsync:n(function(e,t){return this.generateInternalStream(e).accumulate(t)},"generateAsync"),generateNodeStream:n(function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)},"generateNodeStream")};Ox.exports=wD});var bp=R((Lq,Bx)=>{"use strict";var SD=fe();function Dx(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}n(Dx,"DataReader");Dx.prototype={checkOffset:n(function(e){this.checkIndex(this.index+e)},"checkOffset"),checkIndex:n(function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},"checkIndex"),setIndex:n(function(e){this.checkIndex(e),this.index=e},"setIndex"),skip:n(function(e){this.setIndex(this.index+e)},"skip"),byteAt:n(function(){},"byteAt"),readInt:n(function(e){var t=0,r;for(this.checkOffset(e),r=this.index+e-1;r>=this.index;r--)t=(t<<8)+this.byteAt(r);return this.index+=e,t},"readInt"),readString:n(function(e){return SD.transformTo("string",this.readData(e))},"readString"),readData:n(function(){},"readData"),lastIndexOfSignature:n(function(){},"lastIndexOfSignature"),readAndCheckSignature:n(function(){},"readAndCheckSignature"),readDate:n(function(){var e=this.readInt(4);return new Date(Date.UTC((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1))},"readDate")};Bx.exports=Dx});var yp=R((qq,Lx)=>{"use strict";var Fx=bp(),xD=fe();function ba(e){Fx.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}n(ba,"ArrayReader");xD.inherits(ba,Fx);ba.prototype.byteAt=function(e){return this.data[this.zero+e]};ba.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),a=e.charCodeAt(3),s=this.length-4;s>=0;--s)if(this.data[s]===t&&this.data[s+1]===r&&this.data[s+2]===i&&this.data[s+3]===a)return s-this.zero;return-1};ba.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),a=e.charCodeAt(3),s=this.readData(4);return t===s[0]&&r===s[1]&&i===s[2]&&a===s[3]};ba.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Lx.exports=ba});var Mx=R((Nq,qx)=>{"use strict";var zx=bp(),ED=fe();function ya(e){zx.call(this,e)}n(ya,"StringReader");ED.inherits(ya,zx);ya.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};ya.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};ya.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};ya.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};qx.exports=ya});var Sp=R((Wq,Ux)=>{"use strict";var Nx=yp(),kD=fe();function wp(e){Nx.call(this,e)}n(wp,"Uint8ArrayReader");kD.inherits(wp,Nx);wp.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Ux.exports=wp});var Zx=R((Zq,jx)=>{"use strict";var Wx=Sp(),TD=fe();function xp(e){Wx.call(this,e)}n(xp,"NodeBufferReader");TD.inherits(xp,Wx);xp.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};jx.exports=xp});var Ep=R(($q,$x)=>{"use strict";var Of=fe(),Hx=Er(),RD=yp(),AD=Mx(),CD=Zx(),ID=Sp();$x.exports=function(e){var t=Of.getTypeOf(e);return Of.checkSupport(t),t==="string"&&!Hx.uint8array?new AD(e):t==="nodebuffer"?new CD(e):Hx.uint8array?new ID(Of.transformTo("uint8array",e)):new RD(Of.transformTo("array",e))}});var Kx=R((Yq,Vx)=>{"use strict";var kp=Ep(),li=fe(),OD=ff(),Yx=lf(),Pf=aa(),Df=gp(),PD=Er(),DD=0,BD=3,FD=n(function(e){for(var t in Df)if(Object.prototype.hasOwnProperty.call(Df,t)&&Df[t].magic===e)return Df[t];return null},"findCompression");function Gx(e,t){this.options=e,this.loadOptions=t}n(Gx,"ZipEntry");Gx.prototype={isEncrypted:n(function(){return(this.bitFlag&1)===1},"isEncrypted"),useUTF8:n(function(){return(this.bitFlag&2048)===2048},"useUTF8"),readLocalPart:n(function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(t=FD(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+li.pretty(this.compressionMethod)+" unknown (inner file : "+li.transformTo("string",this.fileName)+")");this.decompressed=new OD(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},"readLocalPart"),readCentralPart:n(function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},"readCentralPart"),processAttributes:n(function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),e===DD&&(this.dosPermissions=this.externalFileAttributes&63),e===BD&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},"processAttributes"),parseZIP64ExtraField:n(function(){if(this.extraFields[1]){var e=kp(this.extraFields[1].value);this.uncompressedSize===li.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===li.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===li.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===li.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},"parseZIP64ExtraField"),readExtraFields:n(function(e){var t=e.index+this.extraFieldsLength,r,i,a;for(this.extraFields||(this.extraFields={});e.index+4<t;)r=e.readInt(2),i=e.readInt(2),a=e.readData(i),this.extraFields[r]={id:r,length:i,value:a};e.setIndex(t)},"readExtraFields"),handleUTF8:n(function(){var e=PD.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Pf.utf8decode(this.fileName),this.fileCommentStr=Pf.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var r=li.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var i=this.findExtraFieldUnicodeComment();if(i!==null)this.fileCommentStr=i;else{var a=li.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},"handleUTF8"),findExtraFieldUnicodePath:n(function(){var e=this.extraFields[28789];if(e){var t=kp(e.value);return t.readInt(1)!==1||Yx(this.fileName)!==t.readInt(4)?null:Pf.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodePath"),findExtraFieldUnicodeComment:n(function(){var e=this.extraFields[25461];if(e){var t=kp(e.value);return t.readInt(1)!==1||Yx(this.fileComment)!==t.readInt(4)?null:Pf.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodeComment")};Vx.exports=Gx});var Qx=R((Vq,Jx)=>{"use strict";var LD=Ep(),Ir=fe(),Ot=_p(),zD=Kx(),qD=Er();function Xx(e){this.files=[],this.loadOptions=e}n(Xx,"ZipEntries");Xx.prototype={checkSignature:n(function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+Ir.pretty(t)+", expected "+Ir.pretty(e)+")")}},"checkSignature"),isSignature:n(function(e,t){var r=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4),a=i===t;return this.reader.setIndex(r),a},"isSignature"),readBlockEndOfCentral:n(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 e=this.reader.readData(this.zipCommentLength),t=qD.uint8array?"uint8array":"array",r=Ir.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},"readBlockEndOfCentral"),readBlockZip64EndOfCentral:n(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 e=this.zip64EndOfCentralSize-44,t=0,r,i,a;t<e;)r=this.reader.readInt(2),i=this.reader.readInt(4),a=this.reader.readData(i),this.zip64ExtensibleData[r]={id:r,length:i,value:a}},"readBlockZip64EndOfCentral"),readBlockZip64EndOfCentralLocator:n(function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},"readBlockZip64EndOfCentralLocator"),readLocalFiles:n(function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(Ot.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},"readLocalFiles"),readCentralDir:n(function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(Ot.CENTRAL_FILE_HEADER);)e=new zD({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},"readCentralDir"),readEndOfCentral:n(function(){var e=this.reader.lastIndexOfSignature(Ot.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,Ot.LOCAL_FILE_HEADER);throw t?new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(e);var r=e;if(this.checkSignature(Ot.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===Ir.MAX_VALUE_16BITS||this.diskWithCentralDirStart===Ir.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===Ir.MAX_VALUE_16BITS||this.centralDirRecords===Ir.MAX_VALUE_16BITS||this.centralDirSize===Ir.MAX_VALUE_32BITS||this.centralDirOffset===Ir.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(Ot.ZIP64_CENTRAL_DIRECTORY_LOCATOR),e<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(Ot.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,Ot.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(Ot.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(Ot.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var a=r-i;if(a>0)this.isSignature(r,Ot.CENTRAL_FILE_HEADER)||(this.reader.zero=a);else if(a<0)throw new Error("Corrupted zip: missing "+Math.abs(a)+" bytes.")},"readEndOfCentral"),prepareReader:n(function(e){this.reader=LD(e)},"prepareReader"),load:n(function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()},"load")};Jx.exports=Xx});var r1=R((Xq,t1)=>{"use strict";var Tp=fe(),Bf=ra(),MD=aa(),ND=Qx(),UD=Rh(),e1=Bo();function WD(e){return new Bf.Promise(function(t,r){var i=e.decompressed.getContentWorker().pipe(new UD);i.on("error",function(a){r(a)}).on("end",function(){i.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}n(WD,"checkEntryCRC32");t1.exports=function(e,t){var r=this;return t=Tp.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:MD.utf8decode}),e1.isNode&&e1.isStream(e)?Bf.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Tp.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(i){var a=new ND(t);return a.load(i),a}).then(n(function(a){var s=[Bf.Promise.resolve(a)],l=a.files;if(t.checkCRC32)for(var d=0;d<l.length;d++)s.push(WD(l[d]));return Bf.Promise.all(s)},"checkCRC32")).then(n(function(a){for(var s=a.shift(),l=s.files,d=0;d<l.length;d++){var p=l[d],u=p.fileNameStr,c=Tp.resolve(p.fileNameStr);r.file(c,p.decompressed,{binary:!0,optimizedBinaryString:!0,date:p.date,dir:p.dir,comment:p.fileCommentStr.length?p.fileCommentStr:null,unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions,createFolders:t.createFolders}),p.dir||(r.file(c).unsafeOriginalName=u)}return s.zipComment.length&&(r.comment=s.zipComment),r},"addFiles"))}});var Rp=R((Qq,i1)=>{"use strict";function ct(){if(!(this instanceof ct))return new ct;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new ct;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}n(ct,"JSZip");ct.prototype=Px();ct.prototype.loadAsync=r1();ct.support=Er();ct.defaults=Eh();ct.version="3.10.1";ct.loadAsync=function(e,t){return new ct().loadAsync(e,t)};ct.external=ra();i1.exports=ct});var jD={};Ym(jD,{TestRunMonitor:()=>Lf});module.exports=lk(jD);var u1=tt(require("net")),wa=require("fs");var Rg=tt(require("http"),1),Ag=tt(require("https"),1),Si=tt(require("zlib"),1),He=tt(require("stream"),1),ja=require("buffer");function fk(e){if(!/^data:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,"");let t=e.indexOf(",");if(t===-1||t<=4)throw new TypeError("malformed data: URI");let r=e.substring(5,t).split(";"),i="",a=!1,s=r[0]||"text/plain",l=s;for(let c=1;c<r.length;c++)r[c]==="base64"?a=!0:r[c]&&(l+=`;${r[c]}`,r[c].indexOf("charset=")===0&&(i=r[c].substring(8)));!r[0]&&!i.length&&(l+=";charset=US-ASCII",i="US-ASCII");let d=a?"base64":"ascii",p=unescape(e.substring(t+1)),u=Buffer.from(p,d);return u.type=s,u.typeFull=l,u.charset=i,u}n(fk,"dataUriToBuffer");var Km=fk;var it=tt(require("stream"),1),fr=require("util"),je=require("buffer");Fa();zs();var Lu=class Lu extends Error{constructor(t,r){super(t),Error.captureStackTrace(this,this.constructor),this.type=r}get name(){return this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}};n(Lu,"FetchBaseError");var lr=Lu;var zu=class zu extends lr{constructor(t,r,i){super(t,r),i&&(this.code=this.errno=i.code,this.erroredSysCall=i.syscall)}};n(zu,"FetchError");var Le=zu;var qs=Symbol.toStringTag,qu=n(e=>typeof e=="object"&&typeof e.append=="function"&&typeof e.delete=="function"&&typeof e.get=="function"&&typeof e.getAll=="function"&&typeof e.has=="function"&&typeof e.set=="function"&&typeof e.sort=="function"&&e[qs]==="URLSearchParams","isURLSearchParameters"),Ma=n(e=>e&&typeof e=="object"&&typeof e.arrayBuffer=="function"&&typeof e.type=="string"&&typeof e.stream=="function"&&typeof e.constructor=="function"&&/^(Blob|File)$/.test(e[qs]),"isBlob"),ag=n(e=>typeof e=="object"&&(e[qs]==="AbortSignal"||e[qs]==="EventTarget"),"isAbortSignal"),og=n((e,t)=>{let r=new URL(t).hostname,i=new URL(e).hostname;return r===i||r.endsWith(`.${i}`)},"isDomainOrSubdomain"),sg=n((e,t)=>{let r=new URL(t).protocol,i=new URL(e).protocol;return r===i},"isSameProtocol");var Ek=(0,fr.promisify)(it.default.pipeline),ze=Symbol("Body internals"),ju=class ju{constructor(t,{size:r=0}={}){let i=null;t===null?t=null:qu(t)?t=je.Buffer.from(t.toString()):Ma(t)||je.Buffer.isBuffer(t)||(fr.types.isAnyArrayBuffer(t)?t=je.Buffer.from(t):ArrayBuffer.isView(t)?t=je.Buffer.from(t.buffer,t.byteOffset,t.byteLength):t instanceof it.default||(t instanceof vi?(t=ng(t),i=t.type.split("=")[1]):t=je.Buffer.from(String(t))));let a=t;je.Buffer.isBuffer(t)?a=it.default.Readable.from(t):Ma(t)&&(a=it.default.Readable.from(t.stream())),this[ze]={body:t,stream:a,boundary:i,disturbed:!1,error:null},this.size=r,t instanceof it.default&&t.on("error",s=>{let l=s instanceof lr?s:new Le(`Invalid response body while trying to fetch ${this.url}: ${s.message}`,"system",s);this[ze].error=l})}get body(){return this[ze].stream}get bodyUsed(){return this[ze].disturbed}async arrayBuffer(){let{buffer:t,byteOffset:r,byteLength:i}=await Wu(this);return t.slice(r,r+i)}async formData(){let t=this.headers.get("content-type");if(t.startsWith("application/x-www-form-urlencoded")){let i=new vi,a=new URLSearchParams(await this.text());for(let[s,l]of a)i.append(s,l);return i}let{toFormData:r}=await Promise.resolve().then(()=>(cg(),dg));return r(this.body,t)}async blob(){let t=this.headers&&this.headers.get("content-type")||this[ze].body&&this[ze].body.type||"",r=await this.arrayBuffer();return new sr([r],{type:t})}async json(){let t=await this.text();return JSON.parse(t)}async text(){let t=await Wu(this);return new TextDecoder().decode(t)}buffer(){return Wu(this)}};n(ju,"Body");var Mt=ju;Mt.prototype.buffer=(0,fr.deprecate)(Mt.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer");Object.defineProperties(Mt.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:(0,fr.deprecate)(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});async function Wu(e){if(e[ze].disturbed)throw new TypeError(`body used already for: ${e.url}`);if(e[ze].disturbed=!0,e[ze].error)throw e[ze].error;let{body:t}=e;if(t===null)return je.Buffer.alloc(0);if(!(t instanceof it.default))return je.Buffer.alloc(0);let r=[],i=0;try{for await(let a of t){if(e.size>0&&i+a.length>e.size){let s=new Le(`content size at ${e.url} over limit: ${e.size}`,"max-size");throw t.destroy(s),s}i+=a.length,r.push(a)}}catch(a){throw a instanceof lr?a:new Le(`Invalid response body while trying to fetch ${e.url}: ${a.message}`,"system",a)}if(t.readableEnded===!0||t._readableState.ended===!0)try{return r.every(a=>typeof a=="string")?je.Buffer.from(r.join("")):je.Buffer.concat(r,i)}catch(a){throw new Le(`Could not create Buffer from response body for ${e.url}: ${a.message}`,"system",a)}else throw new Le(`Premature close of server response while trying to fetch ${e.url}`)}n(Wu,"consumeBody");var vn=n((e,t)=>{let r,i,{body:a}=e[ze];if(e.bodyUsed)throw new Error("cannot clone body after it is used");return a instanceof it.default&&typeof a.getBoundary!="function"&&(r=new it.PassThrough({highWaterMark:t}),i=new it.PassThrough({highWaterMark:t}),a.pipe(r),a.pipe(i),e[ze].stream=r,a=i),a},"clone"),kk=(0,fr.deprecate)(e=>e.getBoundary(),"form-data doesn't follow the spec and requires special treatment. Use alternative package","https://github.com/node-fetch/node-fetch/issues/1167"),Ws=n((e,t)=>e===null?null:typeof e=="string"?"text/plain;charset=UTF-8":qu(e)?"application/x-www-form-urlencoded;charset=UTF-8":Ma(e)?e.type||null:je.Buffer.isBuffer(e)||fr.types.isAnyArrayBuffer(e)||ArrayBuffer.isView(e)?null:e instanceof vi?`multipart/form-data; boundary=${t[ze].boundary}`:e&&typeof e.getBoundary=="function"?`multipart/form-data;boundary=${kk(e)}`:e instanceof it.default?null:"text/plain;charset=UTF-8","extractContentType"),hg=n(e=>{let{body:t}=e[ze];return t===null?0:Ma(t)?t.size:je.Buffer.isBuffer(t)?t.length:t&&typeof t.getLengthSync=="function"&&t.hasKnownLength&&t.hasKnownLength()?t.getLengthSync():null},"getTotalBytes"),pg=n(async(e,{body:t})=>{t===null?e.end():await Ek(t,e)},"writeToStream");var Zu=require("util"),Ua=tt(require("http"),1);var js=typeof Ua.default.validateHeaderName=="function"?Ua.default.validateHeaderName:e=>{if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(e)){let t=new TypeError(`Header name must be a valid HTTP token [${e}]`);throw Object.defineProperty(t,"code",{value:"ERR_INVALID_HTTP_TOKEN"}),t}},Hu=typeof Ua.default.validateHeaderValue=="function"?Ua.default.validateHeaderValue:(e,t)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(t)){let r=new TypeError(`Invalid character in header content ["${e}"]`);throw Object.defineProperty(r,"code",{value:"ERR_INVALID_CHAR"}),r}},Zs=class Zs extends URLSearchParams{constructor(t){let r=[];if(t instanceof Zs){let i=t.raw();for(let[a,s]of Object.entries(i))r.push(...s.map(l=>[a,l]))}else if(t!=null)if(typeof t=="object"&&!Zu.types.isBoxedPrimitive(t)){let i=t[Symbol.iterator];if(i==null)r.push(...Object.entries(t));else{if(typeof i!="function")throw new TypeError("Header pairs must be iterable");r=[...t].map(a=>{if(typeof a!="object"||Zu.types.isBoxedPrimitive(a))throw new TypeError("Each header pair must be an iterable object");return[...a]}).map(a=>{if(a.length!==2)throw new TypeError("Each header pair must be a name/value tuple");return[...a]})}}else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence<sequence<ByteString>> or record<ByteString, ByteString>)");return r=r.length>0?r.map(([i,a])=>(js(i),Hu(i,String(a)),[String(i).toLowerCase(),String(a)])):void 0,super(r),new Proxy(this,{get(i,a,s){switch(a){case"append":case"set":return(l,d)=>(js(l),Hu(l,String(d)),URLSearchParams.prototype[a].call(i,String(l).toLowerCase(),String(d)));case"delete":case"has":case"getAll":return l=>(js(l),URLSearchParams.prototype[a].call(i,String(l).toLowerCase()));case"keys":return()=>(i.sort(),new Set(URLSearchParams.prototype.keys.call(i)).keys());default:return Reflect.get(i,a,s)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(t){let r=this.getAll(t);if(r.length===0)return null;let i=r.join(", ");return/^content-encoding$/i.test(t)&&(i=i.toLowerCase()),i}forEach(t,r=void 0){for(let i of this.keys())Reflect.apply(t,r,[this.get(i),i,this])}*values(){for(let t of this.keys())yield this.get(t)}*entries(){for(let t of this.keys())yield[t,this.get(t)]}[Symbol.iterator](){return this.entries()}raw(){return[...this.keys()].reduce((t,r)=>(t[r]=this.getAll(r),t),{})}[Symbol.for("nodejs.util.inspect.custom")](){return[...this.keys()].reduce((t,r)=>{let i=this.getAll(r);return r==="host"?t[r]=i[0]:t[r]=i.length>1?i:i[0],t},{})}};n(Zs,"Headers");var Ze=Zs;Object.defineProperties(Ze.prototype,["get","entries","forEach","values"].reduce((e,t)=>(e[t]={enumerable:!0},e),{}));function mg(e=[]){return new Ze(e.reduce((t,r,i,a)=>(i%2===0&&t.push(a.slice(i,i+2)),t),[]).filter(([t,r])=>{try{return js(t),Hu(t,String(r)),!0}catch{return!1}}))}n(mg,"fromRawHeaders");var Tk=new Set([301,302,303,307,308]),Hs=n(e=>Tk.has(e),"isRedirect");var wt=Symbol("Response internals"),yi=class yi extends Mt{constructor(t=null,r={}){super(t,r);let i=r.status!=null?r.status:200,a=new Ze(r.headers);if(t!==null&&!a.has("Content-Type")){let s=Ws(t,this);s&&a.append("Content-Type",s)}this[wt]={type:"default",url:r.url,status:i,statusText:r.statusText||"",headers:a,counter:r.counter,highWaterMark:r.highWaterMark}}get type(){return this[wt].type}get url(){return this[wt].url||""}get status(){return this[wt].status}get ok(){return this[wt].status>=200&&this[wt].status<300}get redirected(){return this[wt].counter>0}get statusText(){return this[wt].statusText}get headers(){return this[wt].headers}get highWaterMark(){return this[wt].highWaterMark}clone(){return new yi(vn(this,this.highWaterMark),{type:this.type,url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,size:this.size,highWaterMark:this.highWaterMark})}static redirect(t,r=302){if(!Hs(r))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new yi(null,{headers:{location:new URL(t).toString()},status:r})}static error(){let t=new yi(null,{status:0,statusText:""});return t[wt].type="error",t}static json(t=void 0,r={}){let i=JSON.stringify(t);if(i===void 0)throw new TypeError("data is not JSON serializable");let a=new Ze(r&&r.headers);return a.has("content-type")||a.set("content-type","application/json"),new yi(i,{...r,headers:a})}get[Symbol.toStringTag](){return"Response"}};n(yi,"Response");var nt=yi;Object.defineProperties(nt.prototype,{type:{enumerable:!0},url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}});var Eg=require("url"),kg=require("util");var gg=n(e=>{if(e.search)return e.search;let t=e.href.length-1,r=e.hash||(e.href[t]==="#"?"#":"");return e.href[t-r.length]==="?"?"?":""},"getSearch");var vg=require("net");function _g(e,t=!1){return e==null||(e=new URL(e),/^(about|blob|data):$/.test(e.protocol))?"no-referrer":(e.username="",e.password="",e.hash="",t&&(e.pathname="",e.search=""),e)}n(_g,"stripURLForUseAsAReferrer");var bg=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),yg="strict-origin-when-cross-origin";function wg(e){if(!bg.has(e))throw new TypeError(`Invalid referrerPolicy: ${e}`);return e}n(wg,"validateReferrerPolicy");function Rk(e){if(/^(http|ws)s:$/.test(e.protocol))return!0;let t=e.host.replace(/(^\[)|(]$)/g,""),r=(0,vg.isIP)(t);return r===4&&/^127\./.test(t)||r===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(t)?!0:e.host==="localhost"||e.host.endsWith(".localhost")?!1:e.protocol==="file:"}n(Rk,"isOriginPotentiallyTrustworthy");function bn(e){return/^about:(blank|srcdoc)$/.test(e)||e.protocol==="data:"||/^(blob|filesystem):$/.test(e.protocol)?!0:Rk(e)}n(bn,"isUrlPotentiallyTrustworthy");function Sg(e,{referrerURLCallback:t,referrerOriginCallback:r}={}){if(e.referrer==="no-referrer"||e.referrerPolicy==="")return null;let i=e.referrerPolicy;if(e.referrer==="about:client")return"no-referrer";let a=e.referrer,s=_g(a),l=_g(a,!0);s.toString().length>4096&&(s=l),t&&(s=t(s)),r&&(l=r(l));let d=new URL(e.url);switch(i){case"no-referrer":return"no-referrer";case"origin":return l;case"unsafe-url":return s;case"strict-origin":return bn(s)&&!bn(d)?"no-referrer":l.toString();case"strict-origin-when-cross-origin":return s.origin===d.origin?s:bn(s)&&!bn(d)?"no-referrer":l;case"same-origin":return s.origin===d.origin?s:"no-referrer";case"origin-when-cross-origin":return s.origin===d.origin?s:l;case"no-referrer-when-downgrade":return bn(s)&&!bn(d)?"no-referrer":s;default:throw new TypeError(`Invalid referrerPolicy: ${i}`)}}n(Sg,"determineRequestsReferrer");function xg(e){let t=(e.get("referrer-policy")||"").split(/[,\s]+/),r="";for(let i of t)i&&bg.has(i)&&(r=i);return r}n(xg,"parseReferrerPolicyFromHeader");var ye=Symbol("Request internals"),Wa=n(e=>typeof e=="object"&&typeof e[ye]=="object","isRequest"),Ak=(0,kg.deprecate)(()=>{},".data is not a valid RequestInit property, use .body instead","https://github.com/node-fetch/node-fetch/issues/1000 (request)"),$s=class $s extends Mt{constructor(t,r={}){let i;if(Wa(t)?i=new URL(t.url):(i=new URL(t),t={}),i.username!==""||i.password!=="")throw new TypeError(`${i} is an url with embedded credentials.`);let a=r.method||t.method||"GET";if(/^(delete|get|head|options|post|put)$/i.test(a)&&(a=a.toUpperCase()),!Wa(r)&&"data"in r&&Ak(),(r.body!=null||Wa(t)&&t.body!==null)&&(a==="GET"||a==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let s=r.body?r.body:Wa(t)&&t.body!==null?vn(t):null;super(s,{size:r.size||t.size||0});let l=new Ze(r.headers||t.headers||{});if(s!==null&&!l.has("Content-Type")){let u=Ws(s,this);u&&l.set("Content-Type",u)}let d=Wa(t)?t.signal:null;if("signal"in r&&(d=r.signal),d!=null&&!ag(d))throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");let p=r.referrer==null?t.referrer:r.referrer;if(p==="")p="no-referrer";else if(p){let u=new URL(p);p=/^about:(\/\/)?client$/.test(u)?"client":u}else p=void 0;this[ye]={method:a,redirect:r.redirect||t.redirect||"follow",headers:l,parsedURL:i,signal:d,referrer:p},this.follow=r.follow===void 0?t.follow===void 0?20:t.follow:r.follow,this.compress=r.compress===void 0?t.compress===void 0?!0:t.compress:r.compress,this.counter=r.counter||t.counter||0,this.agent=r.agent||t.agent,this.highWaterMark=r.highWaterMark||t.highWaterMark||16384,this.insecureHTTPParser=r.insecureHTTPParser||t.insecureHTTPParser||!1,this.referrerPolicy=r.referrerPolicy||t.referrerPolicy||""}get method(){return this[ye].method}get url(){return(0,Eg.format)(this[ye].parsedURL)}get headers(){return this[ye].headers}get redirect(){return this[ye].redirect}get signal(){return this[ye].signal}get referrer(){if(this[ye].referrer==="no-referrer")return"";if(this[ye].referrer==="client")return"about:client";if(this[ye].referrer)return this[ye].referrer.toString()}get referrerPolicy(){return this[ye].referrerPolicy}set referrerPolicy(t){this[ye].referrerPolicy=wg(t)}clone(){return new $s(this)}get[Symbol.toStringTag](){return"Request"}};n($s,"Request");var wi=$s;Object.defineProperties(wi.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0},referrer:{enumerable:!0},referrerPolicy:{enumerable:!0}});var Tg=n(e=>{let{parsedURL:t}=e[ye],r=new Ze(e[ye].headers);r.has("Accept")||r.set("Accept","*/*");let i=null;if(e.body===null&&/^(post|put)$/i.test(e.method)&&(i="0"),e.body!==null){let d=hg(e);typeof d=="number"&&!Number.isNaN(d)&&(i=String(d))}i&&r.set("Content-Length",i),e.referrerPolicy===""&&(e.referrerPolicy=yg),e.referrer&&e.referrer!=="no-referrer"?e[ye].referrer=Sg(e):e[ye].referrer="no-referrer",e[ye].referrer instanceof URL&&r.set("Referer",e.referrer),r.has("User-Agent")||r.set("User-Agent","node-fetch"),e.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip, deflate, br");let{agent:a}=e;typeof a=="function"&&(a=a(t));let s=gg(t),l={path:t.pathname+s,method:e.method,headers:r[Symbol.for("nodejs.util.inspect.custom")](),insecureHTTPParser:e.insecureHTTPParser,agent:a};return{parsedURL:t,options:l}},"getNodeRequestOptions");var $u=class $u extends lr{constructor(t,r="aborted"){super(t,r)}};n($u,"AbortError");var Ys=$u;zs();Mu();var Ck=new Set(["data:","http:","https:"]);async function Gs(e,t){return new Promise((r,i)=>{let a=new wi(e,t),{parsedURL:s,options:l}=Tg(a);if(!Ck.has(s.protocol))throw new TypeError(`node-fetch cannot load ${e}. URL scheme "${s.protocol.replace(/:$/,"")}" is not supported.`);if(s.protocol==="data:"){let b=Km(a.url),A=new nt(b,{headers:{"Content-Type":b.typeFull}});r(A);return}let d=(s.protocol==="https:"?Ag.default:Rg.default).request,{signal:p}=a,u=null,c=n(()=>{let b=new Ys("The operation was aborted.");i(b),a.body&&a.body instanceof He.default.Readable&&a.body.destroy(b),!(!u||!u.body)&&u.body.emit("error",b)},"abort");if(p&&p.aborted){c();return}let E=n(()=>{c(),_()},"abortAndFinalize"),g=d(s.toString(),l);p&&p.addEventListener("abort",E);let _=n(()=>{g.abort(),p&&p.removeEventListener("abort",E)},"finalize");g.on("error",b=>{i(new Le(`request to ${a.url} failed, reason: ${b.message}`,"system",b)),_()}),Ik(g,b=>{u&&u.body&&u.body.destroy(b)}),process.version<"v14"&&g.on("socket",b=>{let A;b.prependListener("end",()=>{A=b._eventsCount}),b.prependListener("close",T=>{if(u&&A<b._eventsCount&&!T){let y=new Error("Premature close");y.code="ERR_STREAM_PREMATURE_CLOSE",u.body.emit("error",y)}})}),g.on("response",b=>{g.setTimeout(0);let A=mg(b.rawHeaders);if(Hs(b.statusCode)){let w=A.get("Location"),S=null;try{S=w===null?null:new URL(w,a.url)}catch{if(a.redirect!=="manual"){i(new Le(`uri requested responds with an invalid redirect URL: ${w}`,"invalid-redirect")),_();return}}switch(a.redirect){case"error":i(new Le(`uri requested responds with a redirect, redirect mode is set to error: ${a.url}`,"no-redirect")),_();return;case"manual":break;case"follow":{if(S===null)break;if(a.counter>=a.follow){i(new Le(`maximum redirect reached at: ${a.url}`,"max-redirect")),_();return}let P={headers:new Ze(a.headers),follow:a.follow,counter:a.counter+1,agent:a.agent,compress:a.compress,method:a.method,body:vn(a),signal:a.signal,size:a.size,referrer:a.referrer,referrerPolicy:a.referrerPolicy};if(!og(a.url,S)||!sg(a.url,S))for(let D of["authorization","www-authenticate","cookie","cookie2"])P.headers.delete(D);if(b.statusCode!==303&&a.body&&t.body instanceof He.default.Readable){i(new Le("Cannot follow redirect with body being a readable stream","unsupported-redirect")),_();return}(b.statusCode===303||(b.statusCode===301||b.statusCode===302)&&a.method==="POST")&&(P.method="GET",P.body=void 0,P.headers.delete("content-length"));let B=xg(A);B&&(P.referrerPolicy=B),r(Gs(new wi(S,P))),_();return}default:return i(new TypeError(`Redirect option '${a.redirect}' is not a valid value of RequestRedirect`))}}p&&b.once("end",()=>{p.removeEventListener("abort",E)});let T=(0,He.pipeline)(b,new He.PassThrough,w=>{w&&i(w)});process.version<"v12.10"&&b.on("aborted",E);let y={url:a.url,status:b.statusCode,statusText:b.statusMessage,headers:A,size:a.size,counter:a.counter,highWaterMark:a.highWaterMark},x=A.get("Content-Encoding");if(!a.compress||a.method==="HEAD"||x===null||b.statusCode===204||b.statusCode===304){u=new nt(T,y),r(u);return}let C={flush:Si.default.Z_SYNC_FLUSH,finishFlush:Si.default.Z_SYNC_FLUSH};if(x==="gzip"||x==="x-gzip"){T=(0,He.pipeline)(T,Si.default.createGunzip(C),w=>{w&&i(w)}),u=new nt(T,y),r(u);return}if(x==="deflate"||x==="x-deflate"){let w=(0,He.pipeline)(b,new He.PassThrough,S=>{S&&i(S)});w.once("data",S=>{(S[0]&15)===8?T=(0,He.pipeline)(T,Si.default.createInflate(),P=>{P&&i(P)}):T=(0,He.pipeline)(T,Si.default.createInflateRaw(),P=>{P&&i(P)}),u=new nt(T,y),r(u)}),w.once("end",()=>{u||(u=new nt(T,y),r(u))});return}if(x==="br"){T=(0,He.pipeline)(T,Si.default.createBrotliDecompress(),w=>{w&&i(w)}),u=new nt(T,y),r(u);return}u=new nt(T,y),r(u)}),pg(g,a).catch(i)})}n(Gs,"fetch");function Ik(e,t){let r=ja.Buffer.from(`0\r
10
+ `)),i.push(`--${r}--`),new t(i,{type:"multipart/form-data; boundary="+r})}var La,ok,sk,J_,lk,Q_,Pu,mi,rt,mn,gi,Ls=Oa(()=>{Da();Ou();({toStringTag:La,iterator:ok,hasInstance:sk}=Symbol),J_=Math.random,lk="append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(","),Q_=n((e,t,r)=>(e+="",/^(Blob|File)$/.test(t&&t[La])?[(r=r!==void 0?r+"":t[La]=="File"?t.name:"blob",e),t.name!==r||t[La]=="blob"?new _n([t],r,t):t]:[e,t+""]),"f"),Pu=n((e,t)=>(t?e:e.replace(/\r?\n|\r/g,`\r
11
+ `)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"e"),mi=n((e,t,r)=>{if(t.length<r)throw new TypeError(`Failed to execute '${e}' on 'FormData': ${r} arguments required, but only ${t.length} present.`)},"x"),gi=(mn=class{constructor(...t){yt(this,rt,[]);if(t.length)throw new TypeError("Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.")}get[La](){return"FormData"}[ok](){return this.entries()}static[sk](t){return t&&typeof t=="object"&&t[La]==="FormData"&&!lk.some(r=>typeof t[r]!="function")}append(...t){mi("append",arguments,2),ue(this,rt).push(Q_(...t))}delete(t){mi("delete",arguments,1),t+="",We(this,rt,ue(this,rt).filter(([r])=>r!==t))}get(t){mi("get",arguments,1),t+="";for(var r=ue(this,rt),i=r.length,a=0;a<i;a++)if(r[a][0]===t)return r[a][1];return null}getAll(t,r){return mi("getAll",arguments,1),r=[],t+="",ue(this,rt).forEach(i=>i[0]===t&&r.push(i[1])),r}has(t){return mi("has",arguments,1),t+="",ue(this,rt).some(r=>r[0]===t)}forEach(t,r){mi("forEach",arguments,1);for(var[i,a]of this)t.call(r,a,i,this)}set(...t){mi("set",arguments,2);var r=[],i=!0;t=Q_(...t),ue(this,rt).forEach(a=>{a[0]===t[0]?i&&(i=!r.push(t)):r.push(a)}),i&&r.push(t),We(this,rt,r)}*entries(){yield*ue(this,rt)}*keys(){for(var[t]of this)yield t}*values(){for(var[,t]of this)yield t}},rt=new WeakMap,n(mn,"FormData"),mn);n(em,"formDataToBlob")});var am=R((sB,nm)=>{if(!globalThis.DOMException)try{let{MessageChannel:e}=require("worker_threads"),t=new e().port1,r=new ArrayBuffer;t.postMessage(r,[r,r])}catch(e){e.constructor.name==="DOMException"&&(globalThis.DOMException=e.constructor)}nm.exports=globalThis.DOMException});var qs,fk,uB,Lu=Oa(()=>{qs=require("fs"),fk=tt(am(),1);Ou();Da();({stat:uB}=qs.promises)});var sm={};j_(sm,{toFormData:()=>mk});function _k(e){let t=e.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!t)return;let r=t[2]||t[3]||"",i=r.slice(r.lastIndexOf("\\")+1);return i=i.replace(/%22/g,'"'),i=i.replace(/&#(\d{4});/g,(a,s)=>String.fromCharCode(s)),i}async function mk(e,t){if(!/multipart/i.test(t))throw new TypeError("Failed to fetch");let r=t.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!r)throw new TypeError("no or bad content-type header, no multipart boundary");let i=new zu(r[1]||r[2]),a,s,l,d,p,u,c=[],E=new gi,m=n(y=>{l+=T.decode(y,{stream:!0})},"onPartData"),g=n(y=>{c.push(y)},"appendToFile"),b=n(()=>{let y=new _n(c,u,{type:p});E.append(d,y)},"appendFileToFormData"),A=n(()=>{E.append(d,l)},"appendEntryToFormData"),T=new TextDecoder("utf-8");T.decode(),i.onPartBegin=function(){i.onPartData=m,i.onPartEnd=A,a="",s="",l="",d="",p="",u=null,c.length=0},i.onHeaderField=function(y){a+=T.decode(y,{stream:!0})},i.onHeaderValue=function(y){s+=T.decode(y,{stream:!0})},i.onHeaderEnd=function(){if(s+=T.decode(),a=a.toLowerCase(),a==="content-disposition"){let y=s.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);y&&(d=y[2]||y[3]||""),u=_k(s),u&&(i.onPartData=g,i.onPartEnd=b)}else a==="content-type"&&(p=s);s="",a=""};for await(let y of e)i.write(y);return i.end(),E}var qt,ee,om,Mr,Ms,Ns,uk,qa,dk,ck,hk,pk,vi,qu,zu,lm=Oa(()=>{Lu();Ls();qt=0,ee={START_BOUNDARY:qt++,HEADER_FIELD_START:qt++,HEADER_FIELD:qt++,HEADER_VALUE_START:qt++,HEADER_VALUE:qt++,HEADER_VALUE_ALMOST_DONE:qt++,HEADERS_ALMOST_DONE:qt++,PART_DATA_START:qt++,PART_DATA:qt++,END:qt++},om=1,Mr={PART_BOUNDARY:om,LAST_BOUNDARY:om*=2},Ms=10,Ns=13,uk=32,qa=45,dk=58,ck=97,hk=122,pk=n(e=>e|32,"lower"),vi=n(()=>{},"noop"),qu=class qu{constructor(t){this.index=0,this.flags=0,this.onHeaderEnd=vi,this.onHeaderField=vi,this.onHeadersEnd=vi,this.onHeaderValue=vi,this.onPartBegin=vi,this.onPartData=vi,this.onPartEnd=vi,this.boundaryChars={},t=`\r
12
+ --`+t;let r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i),this.boundaryChars[r[i]]=!0;this.boundary=r,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=ee.START_BOUNDARY}write(t){let r=0,i=t.length,a=this.index,{lookbehind:s,boundary:l,boundaryChars:d,index:p,state:u,flags:c}=this,E=this.boundary.length,m=E-1,g=t.length,b,A,T=n(w=>{this[w+"Mark"]=r},"mark"),y=n(w=>{delete this[w+"Mark"]},"clear"),x=n((w,S,P,B)=>{(S===void 0||S!==P)&&this[w](B&&B.subarray(S,P))},"callback"),C=n((w,S)=>{let P=w+"Mark";P in this&&(S?(x(w,this[P],r,t),delete this[P]):(x(w,this[P],t.length,t),this[P]=0))},"dataCallback");for(r=0;r<i;r++)switch(b=t[r],u){case ee.START_BOUNDARY:if(p===l.length-2){if(b===qa)c|=Mr.LAST_BOUNDARY;else if(b!==Ns)return;p++;break}else if(p-1===l.length-2){if(c&Mr.LAST_BOUNDARY&&b===qa)u=ee.END,c=0;else if(!(c&Mr.LAST_BOUNDARY)&&b===Ms)p=0,x("onPartBegin"),u=ee.HEADER_FIELD_START;else return;break}b!==l[p+2]&&(p=-2),b===l[p+2]&&p++;break;case ee.HEADER_FIELD_START:u=ee.HEADER_FIELD,T("onHeaderField"),p=0;case ee.HEADER_FIELD:if(b===Ns){y("onHeaderField"),u=ee.HEADERS_ALMOST_DONE;break}if(p++,b===qa)break;if(b===dk){if(p===1)return;C("onHeaderField",!0),u=ee.HEADER_VALUE_START;break}if(A=pk(b),A<ck||A>hk)return;break;case ee.HEADER_VALUE_START:if(b===uk)break;T("onHeaderValue"),u=ee.HEADER_VALUE;case ee.HEADER_VALUE:b===Ns&&(C("onHeaderValue",!0),x("onHeaderEnd"),u=ee.HEADER_VALUE_ALMOST_DONE);break;case ee.HEADER_VALUE_ALMOST_DONE:if(b!==Ms)return;u=ee.HEADER_FIELD_START;break;case ee.HEADERS_ALMOST_DONE:if(b!==Ms)return;x("onHeadersEnd"),u=ee.PART_DATA_START;break;case ee.PART_DATA_START:u=ee.PART_DATA,T("onPartData");case ee.PART_DATA:if(a=p,p===0){for(r+=m;r<g&&!(t[r]in d);)r+=E;r-=m,b=t[r]}if(p<l.length)l[p]===b?(p===0&&C("onPartData",!0),p++):p=0;else if(p===l.length)p++,b===Ns?c|=Mr.PART_BOUNDARY:b===qa?c|=Mr.LAST_BOUNDARY:p=0;else if(p-1===l.length)if(c&Mr.PART_BOUNDARY){if(p=0,b===Ms){c&=~Mr.PART_BOUNDARY,x("onPartEnd"),x("onPartBegin"),u=ee.HEADER_FIELD_START;break}}else c&Mr.LAST_BOUNDARY&&b===qa?(x("onPartEnd"),u=ee.END,c=0):p=0;if(p>0)s[p-1]=b;else if(a>0){let w=new Uint8Array(s.buffer,s.byteOffset,s.byteLength);x("onPartData",0,a,w),a=0,T("onPartData"),r--}break;case ee.END:break;default:throw new Error(`Unexpected state entered: ${u}`)}C("onHeaderField"),C("onHeaderValue"),C("onPartData"),this.index=p,this.state=u,this.flags=c}end(){if(this.state===ee.HEADER_FIELD_START&&this.index===0||this.state===ee.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==ee.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}};n(qu,"MultipartParser");zu=qu;n(_k,"_fileName");n(mk,"toFormData")});var Wa=R((uF,Zu)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Zu.exports={nextTick:Ek}:Zu.exports=process;function Ek(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var a=arguments.length,s,l;switch(a){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(n(function(){e.call(null,t)},"afterTickOne"));case 3:return process.nextTick(n(function(){e.call(null,t,r)},"afterTickTwo"));case 4:return process.nextTick(n(function(){e.call(null,t,r,i)},"afterTickThree"));default:for(s=new Array(a-1),l=0;l<s.length;)s[l++]=arguments[l];return process.nextTick(n(function(){e.apply(null,s)},"afterTick"))}}n(Ek,"nextTick")});var Tm=R((cF,km)=>{var kk={}.toString;km.exports=Array.isArray||function(e){return kk.call(e)=="[object Array]"}});var Hu=R((hF,Rm)=>{Rm.exports=require("stream")});var ja=R(($u,Cm)=>{var Gs=require("buffer"),ur=Gs.Buffer;function Am(e,t){for(var r in e)t[r]=e[r]}n(Am,"copyProps");ur.from&&ur.alloc&&ur.allocUnsafe&&ur.allocUnsafeSlow?Cm.exports=Gs:(Am(Gs,$u),$u.Buffer=bn);function bn(e,t,r){return ur(e,t,r)}n(bn,"SafeBuffer");Am(ur,bn);bn.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ur(e,t,r)};bn.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=ur(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};bn.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ur(e)};bn.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Gs.SlowBuffer(e)}});var yn=R(ke=>{function Tk(e){return Array.isArray?Array.isArray(e):Vs(e)==="[object Array]"}n(Tk,"isArray");ke.isArray=Tk;function Rk(e){return typeof e=="boolean"}n(Rk,"isBoolean");ke.isBoolean=Rk;function Ak(e){return e===null}n(Ak,"isNull");ke.isNull=Ak;function Ck(e){return e==null}n(Ck,"isNullOrUndefined");ke.isNullOrUndefined=Ck;function Ik(e){return typeof e=="number"}n(Ik,"isNumber");ke.isNumber=Ik;function Ok(e){return typeof e=="string"}n(Ok,"isString");ke.isString=Ok;function Pk(e){return typeof e=="symbol"}n(Pk,"isSymbol");ke.isSymbol=Pk;function Dk(e){return e===void 0}n(Dk,"isUndefined");ke.isUndefined=Dk;function Bk(e){return Vs(e)==="[object RegExp]"}n(Bk,"isRegExp");ke.isRegExp=Bk;function Fk(e){return typeof e=="object"&&e!==null}n(Fk,"isObject");ke.isObject=Fk;function Lk(e){return Vs(e)==="[object Date]"}n(Lk,"isDate");ke.isDate=Lk;function zk(e){return Vs(e)==="[object Error]"||e instanceof Error}n(zk,"isError");ke.isError=zk;function qk(e){return typeof e=="function"}n(qk,"isFunction");ke.isFunction=qk;function Mk(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}n(Mk,"isPrimitive");ke.isPrimitive=Mk;ke.isBuffer=require("buffer").Buffer.isBuffer;function Vs(e){return Object.prototype.toString.call(e)}n(Vs,"objectToString")});var Im=R((gF,Yu)=>{typeof Object.create=="function"?Yu.exports=n(function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):Yu.exports=n(function(t,r){if(r){t.super_=r;var i=n(function(){},"TempCtor");i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}},"inherits")});var wn=R((bF,Vu)=>{try{if(Gu=require("util"),typeof Gu.inherits!="function")throw"";Vu.exports=Gu.inherits}catch{Vu.exports=Im()}var Gu});var Pm=R((yF,Ku)=>{"use strict";function Nk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n(Nk,"_classCallCheck");var Om=ja().Buffer,Za=require("util");function Uk(e,t,r){e.copy(t,r)}n(Uk,"copyBuffer");Ku.exports=function(){function e(){Nk(this,e),this.head=null,this.tail=null,this.length=0}return n(e,"BufferList"),e.prototype.push=n(function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},"push"),e.prototype.unshift=n(function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},"unshift"),e.prototype.shift=n(function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},"shift"),e.prototype.clear=n(function(){this.head=this.tail=null,this.length=0},"clear"),e.prototype.join=n(function(r){if(this.length===0)return"";for(var i=this.head,a=""+i.data;i=i.next;)a+=r+i.data;return a},"join"),e.prototype.concat=n(function(r){if(this.length===0)return Om.alloc(0);for(var i=Om.allocUnsafe(r>>>0),a=this.head,s=0;a;)Uk(a.data,i,s),s+=a.data.length,a=a.next;return i},"concat"),e}();Za&&Za.inspect&&Za.inspect.custom&&(Ku.exports.prototype[Za.inspect.custom]=function(){var e=Za.inspect({length:this.length});return this.constructor.name+" "+e})});var Xu=R((SF,Dm)=>{"use strict";var Ks=Wa();function Wk(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Ks.nextTick(Xs,this,e)):Ks.nextTick(Xs,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,Ks.nextTick(Xs,r,s)):Ks.nextTick(Xs,r,s):t&&t(s)}),this)}n(Wk,"destroy");function jk(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}n(jk,"undestroy");function Xs(e,t){e.emit("error",t)}n(Xs,"emitErrorNT");Dm.exports={destroy:Wk,undestroy:jk}});var Fm=R((EF,Bm)=>{Bm.exports=require("util").deprecate});var Qu=R((kF,jm)=>{"use strict";var Si=Wa();jm.exports=he;function zm(e){var t=this;this.next=null,this.entry=null,this.finish=function(){sT(t,e)}}n(zm,"CorkedRequest");var Zk=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Si.nextTick,Sn;he.WritableState=$a;var qm=Object.create(yn());qm.inherits=wn();var Hk={deprecate:Fm()},Mm=Hu(),Qs=ja().Buffer,$k=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Yk(e){return Qs.from(e)}n(Yk,"_uint8ArrayToBuffer");function Gk(e){return Qs.isBuffer(e)||e instanceof $k}n(Gk,"_isUint8Array");var Nm=Xu();qm.inherits(he,Mm);function Vk(){}n(Vk,"nop");function $a(e,t){Sn=Sn||xi(),e=e||{};var r=t instanceof Sn;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,a=e.writableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(a||a===0)?this.highWaterMark=a:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=e.decodeStrings===!1;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(d){rT(t,d)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new zm(this)}n($a,"WritableState");$a.prototype.getBuffer=n(function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r},"getBuffer");(function(){try{Object.defineProperty($a.prototype,"buffer",{get:Hk.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Js;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Js=Function.prototype[Symbol.hasInstance],Object.defineProperty(he,Symbol.hasInstance,{value:n(function(e){return Js.call(this,e)?!0:this!==he?!1:e&&e._writableState instanceof $a},"value")})):Js=n(function(e){return e instanceof this},"realHasInstance");function he(e){if(Sn=Sn||xi(),!Js.call(he,this)&&!(this instanceof Sn))return new he(e);this._writableState=new $a(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Mm.call(this)}n(he,"Writable");he.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Kk(e,t){var r=new Error("write after end");e.emit("error",r),Si.nextTick(t,r)}n(Kk,"writeAfterEnd");function Xk(e,t,r,i){var a=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),Si.nextTick(i,s),a=!1),a}n(Xk,"validChunk");he.prototype.write=function(e,t,r){var i=this._writableState,a=!1,s=!i.objectMode&&Gk(e);return s&&!Qs.isBuffer(e)&&(e=Yk(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=Vk),i.ended?Kk(this,r):(s||Xk(this,i,e,r))&&(i.pendingcb++,a=Qk(this,i,s,e,t,r)),a};he.prototype.cork=function(){var e=this._writableState;e.corked++};he.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Um(this,e))};he.prototype.setDefaultEncoding=n(function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},"setDefaultEncoding");function Jk(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Qs.from(t,r)),t}n(Jk,"decodeChunk");Object.defineProperty(he.prototype,"writableHighWaterMark",{enumerable:!1,get:n(function(){return this._writableState.highWaterMark},"get")});function Qk(e,t,r,i,a,s){if(!r){var l=Jk(t,i,a);i!==l&&(r=!0,a="buffer",i=l)}var d=t.objectMode?1:i.length;t.length+=d;var p=t.length<t.highWaterMark;if(p||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:a,isBuf:r,callback:s,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Ju(e,t,!1,d,i,a,s);return p}n(Qk,"writeOrBuffer");function Ju(e,t,r,i,a,s,l){t.writelen=i,t.writecb=l,t.writing=!0,t.sync=!0,r?e._writev(a,t.onwrite):e._write(a,s,t.onwrite),t.sync=!1}n(Ju,"doWrite");function eT(e,t,r,i,a){--t.pendingcb,r?(Si.nextTick(a,i),Si.nextTick(Ha,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(a(i),e._writableState.errorEmitted=!0,e.emit("error",i),Ha(e,t))}n(eT,"onwriteError");function tT(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}n(tT,"onwriteStateUpdate");function rT(e,t){var r=e._writableState,i=r.sync,a=r.writecb;if(tT(r),t)eT(e,r,i,t,a);else{var s=Wm(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Um(e,r),i?Zk(Lm,e,r,s,a):Lm(e,r,s,a)}}n(rT,"onwrite");function Lm(e,t,r,i){r||iT(e,t),t.pendingcb--,i(),Ha(e,t)}n(Lm,"afterWrite");function iT(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}n(iT,"onwriteDrain");function Um(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,a=new Array(i),s=t.corkedRequestsFree;s.entry=r;for(var l=0,d=!0;r;)a[l]=r,r.isBuf||(d=!1),r=r.next,l+=1;a.allBuffers=d,Ju(e,t,!0,t.length,a,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new zm(t),t.bufferedRequestCount=0}else{for(;r;){var p=r.chunk,u=r.encoding,c=r.callback,E=t.objectMode?1:p.length;if(Ju(e,t,!1,E,p,u,c),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}n(Um,"clearBuffer");he.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};he.prototype._writev=null;he.prototype.end=function(e,t,r){var i=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||oT(this,i,r)};function Wm(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}n(Wm,"needFinish");function nT(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),Ha(e,t)})}n(nT,"callFinal");function aT(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Si.nextTick(nT,e,t)):(t.prefinished=!0,e.emit("prefinish")))}n(aT,"prefinish");function Ha(e,t){var r=Wm(t);return r&&(aT(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}n(Ha,"finishMaybe");function oT(e,t,r){t.ending=!0,Ha(e,t),r&&(t.finished?Si.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}n(oT,"endWritable");function sT(e,t,r){var i=e.entry;for(e.entry=null;i;){var a=i.callback;t.pendingcb--,a(r),i=i.next}t.corkedRequestsFree.next=e}n(sT,"onCorkedFinish");Object.defineProperty(he.prototype,"destroyed",{get:n(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get"),set:n(function(e){this._writableState&&(this._writableState.destroyed=e)},"set")});he.prototype.destroy=Nm.destroy;he.prototype._undestroy=Nm.undestroy;he.prototype._destroy=function(e,t){this.end(),t(e)}});var xi=R((RF,Ym)=>{"use strict";var Zm=Wa(),lT=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Ym.exports=dr;var Hm=Object.create(yn());Hm.inherits=wn();var $m=rd(),td=Qu();Hm.inherits(dr,$m);for(ed=lT(td.prototype),el=0;el<ed.length;el++)tl=ed[el],dr.prototype[tl]||(dr.prototype[tl]=td.prototype[tl]);var ed,tl,el;function dr(e){if(!(this instanceof dr))return new dr(e);$m.call(this,e),td.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",fT)}n(dr,"Duplex");Object.defineProperty(dr.prototype,"writableHighWaterMark",{enumerable:!1,get:n(function(){return this._writableState.highWaterMark},"get")});function fT(){this.allowHalfOpen||this._writableState.ended||Zm.nextTick(uT,this)}n(fT,"onend");function uT(e){e.end()}n(uT,"onEndNT");Object.defineProperty(dr.prototype,"destroyed",{get:n(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get"),set:n(function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)},"set")});dr.prototype._destroy=function(e,t){this.push(null),this.end(),Zm.nextTick(t,e)}});var ad=R(Vm=>{"use strict";var nd=ja().Buffer,Gm=nd.isEncoding||function(e){switch(e=""+e,e&&e.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 dT(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}n(dT,"_normalizeEncoding");function cT(e){var t=dT(e);if(typeof t!="string"&&(nd.isEncoding===Gm||!Gm(e)))throw new Error("Unknown encoding: "+e);return t||e}n(cT,"normalizeEncoding");Vm.StringDecoder=Ya;function Ya(e){this.encoding=cT(e);var t;switch(this.encoding){case"utf16le":this.text=vT,this.end=bT,t=4;break;case"utf8":this.fillLast=_T,t=4;break;case"base64":this.text=yT,this.end=wT,t=3;break;default:this.write=ST,this.end=xT;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=nd.allocUnsafe(t)}n(Ya,"StringDecoder");Ya.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};Ya.prototype.end=gT;Ya.prototype.text=mT;Ya.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function id(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}n(id,"utf8CheckByte");function hT(e,t,r){var i=t.length-1;if(i<r)return 0;var a=id(t[i]);return a>=0?(a>0&&(e.lastNeed=a-1),a):--i<r||a===-2?0:(a=id(t[i]),a>=0?(a>0&&(e.lastNeed=a-2),a):--i<r||a===-2?0:(a=id(t[i]),a>=0?(a>0&&(a===2?a=0:e.lastNeed=a-3),a):0))}n(hT,"utf8CheckIncomplete");function pT(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}n(pT,"utf8CheckExtraBytes");function _T(e){var t=this.lastTotal-this.lastNeed,r=pT(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}n(_T,"utf8FillLast");function mT(e,t){var r=hT(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}n(mT,"utf8Text");function gT(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}n(gT,"utf8End");function vT(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}n(vT,"utf16Text");function bT(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}n(bT,"utf16End");function yT(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}n(yT,"base64Text");function wT(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}n(wT,"base64End");function ST(e){return e.toString(this.encoding)}n(ST,"simpleWrite");function xT(e){return e&&e.length?this.write(e):""}n(xT,"simpleEnd")});var rd=R((PF,sg)=>{"use strict";var En=Wa();sg.exports=ie;var ET=Tm(),Ga;ie.ReadableState=rg;var OF=require("events").EventEmitter,Qm=n(function(e,t){return e.listeners(t).length},"EElistenerCount"),ud=Hu(),Va=ja().Buffer,kT=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function TT(e){return Va.from(e)}n(TT,"_uint8ArrayToBuffer");function RT(e){return Va.isBuffer(e)||e instanceof kT}n(RT,"_isUint8Array");var eg=Object.create(yn());eg.inherits=wn();var od=require("util"),V=void 0;od&&od.debuglog?V=od.debuglog("stream"):V=n(function(){},"debug");var AT=Pm(),tg=Xu(),xn;eg.inherits(ie,ud);var sd=["error","close","destroy","pause","resume"];function CT(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):ET(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}n(CT,"prependListener");function rg(e,t){Ga=Ga||xi(),e=e||{};var r=t instanceof Ga;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(a||a===0)?this.highWaterMark=a:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new AT,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(xn||(xn=ad().StringDecoder),this.decoder=new xn(e.encoding),this.encoding=e.encoding)}n(rg,"ReadableState");function ie(e){if(Ga=Ga||xi(),!(this instanceof ie))return new ie(e);this._readableState=new rg(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),ud.call(this)}n(ie,"Readable");Object.defineProperty(ie.prototype,"destroyed",{get:n(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get"),set:n(function(e){this._readableState&&(this._readableState.destroyed=e)},"set")});ie.prototype.destroy=tg.destroy;ie.prototype._undestroy=tg.undestroy;ie.prototype._destroy=function(e,t){this.push(null),t(e)};ie.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Va.from(e,t),t=""),i=!0),ig(this,e,t,!1,i)};ie.prototype.unshift=function(e){return ig(this,e,null,!0,!1)};function ig(e,t,r,i,a){var s=e._readableState;if(t===null)s.reading=!1,DT(e,s);else{var l;a||(l=IT(s,t)),l?e.emit("error",l):s.objectMode||t&&t.length>0?(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==Va.prototype&&(t=TT(t)),i?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):ld(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?ld(e,s,t,!1):ng(e,s)):ld(e,s,t,!1))):i||(s.reading=!1)}return OT(s)}n(ig,"readableAddChunk");function ld(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&rl(e)),ng(e,t)}n(ld,"addChunk");function IT(e,t){var r;return!RT(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}n(IT,"chunkInvalid");function OT(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}n(OT,"needMoreData");ie.prototype.isPaused=function(){return this._readableState.flowing===!1};ie.prototype.setEncoding=function(e){return xn||(xn=ad().StringDecoder),this._readableState.decoder=new xn(e),this._readableState.encoding=e,this};var Km=8388608;function PT(e){return e>=Km?e=Km:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}n(PT,"computeNewHighWaterMark");function Xm(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=PT(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}n(Xm,"howMuchToRead");ie.prototype.read=function(e){V("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return V("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?fd(this):rl(this),null;if(e=Xm(e,t),e===0&&t.ended)return t.length===0&&fd(this),null;var i=t.needReadable;V("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,V("length less than watermark",i)),t.ended||t.reading?(i=!1,V("reading or ended",i)):i&&(V("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Xm(r,t)));var a;return e>0?a=ag(e,t):a=null,a===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&fd(this)),a!==null&&this.emit("data",a),a};function DT(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,rl(e)}}n(DT,"onEofChunk");function rl(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(V("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?En.nextTick(Jm,e):Jm(e))}n(rl,"emitReadable");function Jm(e){V("emit readable"),e.emit("readable"),dd(e)}n(Jm,"emitReadable_");function ng(e,t){t.readingMore||(t.readingMore=!0,En.nextTick(BT,e,t))}n(ng,"maybeReadMore");function BT(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(V("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}n(BT,"maybeReadMore_");ie.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};ie.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,V("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=a?d:T;i.endEmitted?En.nextTick(s):r.once("end",s),e.on("unpipe",l);function l(y,x){V("onunpipe"),y===r&&x&&x.hasUnpiped===!1&&(x.hasUnpiped=!0,c())}n(l,"onunpipe");function d(){V("onend"),e.end()}n(d,"onend");var p=FT(r);e.on("drain",p);var u=!1;function c(){V("cleanup"),e.removeListener("close",b),e.removeListener("finish",A),e.removeListener("drain",p),e.removeListener("error",g),e.removeListener("unpipe",l),r.removeListener("end",d),r.removeListener("end",T),r.removeListener("data",m),u=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&p()}n(c,"cleanup");var E=!1;r.on("data",m);function m(y){V("ondata"),E=!1;var x=e.write(y);x===!1&&!E&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&og(i.pipes,e)!==-1)&&!u&&(V("false write response, pause",i.awaitDrain),i.awaitDrain++,E=!0),r.pause())}n(m,"ondata");function g(y){V("onerror",y),T(),e.removeListener("error",g),Qm(e,"error")===0&&e.emit("error",y)}n(g,"onerror"),CT(e,"error",g);function b(){e.removeListener("finish",A),T()}n(b,"onclose"),e.once("close",b);function A(){V("onfinish"),e.removeListener("close",b),T()}n(A,"onfinish"),e.once("finish",A);function T(){V("unpipe"),r.unpipe(e)}return n(T,"unpipe"),e.emit("pipe",r),i.flowing||(V("pipe resume"),r.resume()),e};function FT(e){return function(){var t=e._readableState;V("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&Qm(e,"data")&&(t.flowing=!0,dd(e))}}n(FT,"pipeOnDrain");ie.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<a;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var l=og(t.pipes,e);return l===-1?this:(t.pipes.splice(l,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};ie.prototype.on=function(e,t){var r=ud.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&rl(this):En.nextTick(LT,this))}return r};ie.prototype.addListener=ie.prototype.on;function LT(e){V("readable nexttick read 0"),e.read(0)}n(LT,"nReadingNextTick");ie.prototype.resume=function(){var e=this._readableState;return e.flowing||(V("resume"),e.flowing=!0,zT(this,e)),this};function zT(e,t){t.resumeScheduled||(t.resumeScheduled=!0,En.nextTick(qT,e,t))}n(zT,"resume");function qT(e,t){t.reading||(V("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),dd(e),t.flowing&&!t.reading&&e.read(0)}n(qT,"resume_");ie.prototype.pause=function(){return V("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(V("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function dd(e){var t=e._readableState;for(V("flow",t.flowing);t.flowing&&e.read()!==null;);}n(dd,"flow");ie.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(V("wrapped end"),r.decoder&&!r.ended){var l=r.decoder.end();l&&l.length&&t.push(l)}t.push(null)}),e.on("data",function(l){if(V("wrapped data"),r.decoder&&(l=r.decoder.write(l)),!(r.objectMode&&l==null)&&!(!r.objectMode&&(!l||!l.length))){var d=t.push(l);d||(i=!0,e.pause())}});for(var a in e)this[a]===void 0&&typeof e[a]=="function"&&(this[a]=function(l){return function(){return e[l].apply(e,arguments)}}(a));for(var s=0;s<sd.length;s++)e.on(sd[s],this.emit.bind(this,sd[s]));return this._read=function(l){V("wrapped _read",l),i&&(i=!1,e.resume())},this};Object.defineProperty(ie.prototype,"readableHighWaterMark",{enumerable:!1,get:n(function(){return this._readableState.highWaterMark},"get")});ie._fromList=ag;function ag(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=MT(e,t.buffer,t.decoder),r}n(ag,"fromList");function MT(e,t,r){var i;return e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?i=t.shift():i=r?NT(e,t):UT(e,t),i}n(MT,"fromListPartial");function NT(e,t){var r=t.head,i=1,a=r.data;for(e-=a.length;r=r.next;){var s=r.data,l=e>s.length?s.length:e;if(l===s.length?a+=s:a+=s.slice(0,e),e-=l,e===0){l===s.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(l));break}++i}return t.length-=i,a}n(NT,"copyFromBufferString");function UT(e,t){var r=Va.allocUnsafe(e),i=t.head,a=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var s=i.data,l=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,l),e-=l,e===0){l===s.length?(++a,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=s.slice(l));break}++a}return t.length-=a,r}n(UT,"copyFromBuffer");function fd(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,En.nextTick(WT,t,e))}n(fd,"endReadable");function WT(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}n(WT,"endReadableNT");function og(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}n(og,"indexOf")});var cd=R((BF,ug)=>{"use strict";ug.exports=cr;var il=xi(),fg=Object.create(yn());fg.inherits=wn();fg.inherits(cr,il);function jT(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}n(jT,"afterTransform");function cr(e){if(!(this instanceof cr))return new cr(e);il.call(this,e),this._transformState={afterTransform:jT.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",ZT)}n(cr,"Transform");function ZT(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){lg(e,t,r)}):lg(this,null,null)}n(ZT,"prefinish");cr.prototype.push=function(e,t){return this._transformState.needTransform=!1,il.prototype.push.call(this,e,t)};cr.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};cr.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};cr.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};cr.prototype._destroy=function(e,t){var r=this;il.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function lg(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}n(lg,"done")});var pg=R((LF,hg)=>{"use strict";hg.exports=Ka;var dg=cd(),cg=Object.create(yn());cg.inherits=wn();cg.inherits(Ka,dg);function Ka(e){if(!(this instanceof Ka))return new Ka(e);dg.call(this,e)}n(Ka,"PassThrough");Ka.prototype._transform=function(e,t,r){r(null,e)}});var hd=R((we,nl)=>{var Nt=require("stream");process.env.READABLE_STREAM==="disable"&&Nt?(nl.exports=Nt,we=nl.exports=Nt.Readable,we.Readable=Nt.Readable,we.Writable=Nt.Writable,we.Duplex=Nt.Duplex,we.Transform=Nt.Transform,we.PassThrough=Nt.PassThrough,we.Stream=Nt):(we=nl.exports=rd(),we.Stream=Nt||we,we.Readable=we,we.Writable=Qu(),we.Duplex=xi(),we.Transform=cd(),we.PassThrough=pg())});var hr=R($e=>{"use strict";$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";if(typeof ArrayBuffer>"u")$e.blob=!1;else{pd=new ArrayBuffer(0);try{$e.blob=new Blob([pd],{type:"application/zip"}).size===0}catch{try{_g=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,_d=new _g,_d.append(pd),$e.blob=_d.getBlob("application/zip").size===0}catch{$e.blob=!1}}}var pd,_g,_d;try{$e.nodestream=!!hd().Readable}catch{$e.nodestream=!1}});var gd=R(md=>{"use strict";var HT=le(),$T=hr(),Ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";md.encode=function(e){for(var t=[],r,i,a,s,l,d,p,u=0,c=e.length,E=c,m=HT.getTypeOf(e)!=="string";u<e.length;)E=c-u,m?(r=e[u++],i=u<c?e[u++]:0,a=u<c?e[u++]:0):(r=e.charCodeAt(u++),i=u<c?e.charCodeAt(u++):0,a=u<c?e.charCodeAt(u++):0),s=r>>2,l=(r&3)<<4|i>>4,d=E>1?(i&15)<<2|a>>6:64,p=E>2?a&63:64,t.push(Ut.charAt(s)+Ut.charAt(l)+Ut.charAt(d)+Ut.charAt(p));return t.join("")};md.decode=function(e){var t,r,i,a,s,l,d,p=0,u=0,c="data:";if(e.substr(0,c.length)===c)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var E=e.length*3/4;if(e.charAt(e.length-1)===Ut.charAt(64)&&E--,e.charAt(e.length-2)===Ut.charAt(64)&&E--,E%1!==0)throw new Error("Invalid base64 input, bad content length.");var m;for($T.uint8array?m=new Uint8Array(E|0):m=new Array(E|0);p<e.length;)a=Ut.indexOf(e.charAt(p++)),s=Ut.indexOf(e.charAt(p++)),l=Ut.indexOf(e.charAt(p++)),d=Ut.indexOf(e.charAt(p++)),t=a<<2|s>>4,r=(s&15)<<4|l>>2,i=(l&3)<<6|d,m[u++]=t,l!==64&&(m[u++]=r),d!==64&&(m[u++]=i);return m}});var Xa=R((NF,mg)=>{"use strict";mg.exports={isNode:typeof Buffer<"u",newBufferFrom:n(function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e=="number")throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},"newBufferFrom"),allocBuffer:n(function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},"allocBuffer"),isBuffer:n(function(e){return Buffer.isBuffer(e)},"isBuffer"),isStream:n(function(e){return e&&typeof e.on=="function"&&typeof e.pause=="function"&&typeof e.resume=="function"},"isStream")}});var yg=R((WF,bg)=>{"use strict";var gg=global.MutationObserver||global.WebKitMutationObserver,kn;process.browser?gg?(vd=0,vg=new gg(Ja),bd=global.document.createTextNode(""),vg.observe(bd,{characterData:!0}),kn=n(function(){bd.data=vd=++vd%2},"scheduleDrain")):!global.setImmediate&&typeof global.MessageChannel<"u"?(yd=new global.MessageChannel,yd.port1.onmessage=Ja,kn=n(function(){yd.port2.postMessage(0)},"scheduleDrain")):"document"in global&&"onreadystatechange"in global.document.createElement("script")?kn=n(function(){var e=global.document.createElement("script");e.onreadystatechange=function(){Ja(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},global.document.documentElement.appendChild(e)},"scheduleDrain"):kn=n(function(){setTimeout(Ja,0)},"scheduleDrain"):kn=n(function(){process.nextTick(Ja)},"scheduleDrain");var vd,vg,bd,yd,wd,Qa=[];function Ja(){wd=!0;for(var e,t,r=Qa.length;r;){for(t=Qa,Qa=[],e=-1;++e<r;)t[e]();r=Qa.length}wd=!1}n(Ja,"nextTick");bg.exports=YT;function YT(e){Qa.push(e)===1&&!wd&&kn()}n(YT,"immediate")});var Rg=R((ZF,Tg)=>{"use strict";var wg=yg();function Tn(){}n(Tn,"INTERNAL");var Te={},Sg=["REJECTED"],Sd=["FULFILLED"],xg=["PENDING"];process.browser||(eo=["UNHANDLED"]);var eo;Tg.exports=Nr;function Nr(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=xg,this.queue=[],this.outcome=void 0,process.browser||(this.handled=eo),e!==Tn&&Eg(this,e)}n(Nr,"Promise");Nr.prototype.finally=function(e){if(typeof e!="function")return this;var t=this.constructor;return this.then(r,i);function r(a){function s(){return a}return n(s,"yes"),t.resolve(e()).then(s)}function i(a){function s(){throw a}return n(s,"no"),t.resolve(e()).then(s)}};Nr.prototype.catch=function(e){return this.then(null,e)};Nr.prototype.then=function(e,t){if(typeof e!="function"&&this.state===Sd||typeof t!="function"&&this.state===Sg)return this;var r=new this.constructor(Tn);if(process.browser||this.handled===eo&&(this.handled=null),this.state!==xg){var i=this.state===Sd?e:t;xd(r,i,this.outcome)}else this.queue.push(new to(r,e,t));return r};function to(e,t,r){this.promise=e,typeof t=="function"&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),typeof r=="function"&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}n(to,"QueueItem");to.prototype.callFulfilled=function(e){Te.resolve(this.promise,e)};to.prototype.otherCallFulfilled=function(e){xd(this.promise,this.onFulfilled,e)};to.prototype.callRejected=function(e){Te.reject(this.promise,e)};to.prototype.otherCallRejected=function(e){xd(this.promise,this.onRejected,e)};function xd(e,t,r){wg(function(){var i;try{i=t(r)}catch(a){return Te.reject(e,a)}i===e?Te.reject(e,new TypeError("Cannot resolve promise with itself")):Te.resolve(e,i)})}n(xd,"unwrap");Te.resolve=function(e,t){var r=kg(GT,t);if(r.status==="error")return Te.reject(e,r.value);var i=r.value;if(i)Eg(e,i);else{e.state=Sd,e.outcome=t;for(var a=-1,s=e.queue.length;++a<s;)e.queue[a].callFulfilled(t)}return e};Te.reject=function(e,t){e.state=Sg,e.outcome=t,process.browser||e.handled===eo&&wg(function(){e.handled===eo&&process.emit("unhandledRejection",t,e)});for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e};function GT(e){var t=e&&e.then;if(e&&(typeof e=="object"||typeof e=="function")&&typeof t=="function")return n(function(){t.apply(e,arguments)},"appyThen")}n(GT,"getThen");function Eg(e,t){var r=!1;function i(d){r||(r=!0,Te.reject(e,d))}n(i,"onError");function a(d){r||(r=!0,Te.resolve(e,d))}n(a,"onSuccess");function s(){t(a,i)}n(s,"tryToUnwrap");var l=kg(s);l.status==="error"&&i(l.value)}n(Eg,"safelyResolveThenable");function kg(e,t){var r={};try{r.value=e(t),r.status="success"}catch(i){r.status="error",r.value=i}return r}n(kg,"tryCatch");Nr.resolve=VT;function VT(e){return e instanceof this?e:Te.resolve(new this(Tn),e)}n(VT,"resolve");Nr.reject=KT;function KT(e){var t=new this(Tn);return Te.reject(t,e)}n(KT,"reject");Nr.all=XT;function XT(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var a=new Array(r),s=0,l=-1,d=new this(Tn);++l<r;)p(e[l],l);return d;function p(u,c){t.resolve(u).then(E,function(m){i||(i=!0,Te.reject(d,m))});function E(m){a[c]=m,++s===r&&!i&&(i=!0,Te.resolve(d,a))}n(E,"resolveFromAll")}}n(XT,"all");Nr.race=JT;function JT(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var a=-1,s=new this(Tn);++a<r;)l(e[a]);return s;function l(d){t.resolve(d).then(function(p){i||(i=!0,Te.resolve(s,p))},function(p){i||(i=!0,Te.reject(s,p))})}}n(JT,"race")});var Rn=R(($F,Ag)=>{"use strict";var Ed=null;typeof Promise<"u"?Ed=Promise:Ed=Rg();Ag.exports={Promise:Ed}});var Ig=R(Cg=>{(function(e,t){"use strict";if(e.setImmediate)return;var r=1,i={},a=!1,s=e.document,l;function d(x){typeof x!="function"&&(x=new Function(""+x));for(var C=new Array(arguments.length-1),w=0;w<C.length;w++)C[w]=arguments[w+1];var S={callback:x,args:C};return i[r]=S,l(r),r++}n(d,"setImmediate");function p(x){delete i[x]}n(p,"clearImmediate");function u(x){var C=x.callback,w=x.args;switch(w.length){case 0:C();break;case 1:C(w[0]);break;case 2:C(w[0],w[1]);break;case 3:C(w[0],w[1],w[2]);break;default:C.apply(t,w);break}}n(u,"run");function c(x){if(a)setTimeout(c,0,x);else{var C=i[x];if(C){a=!0;try{u(C)}finally{p(x),a=!1}}}}n(c,"runIfPresent");function E(){l=n(function(x){process.nextTick(function(){c(x)})},"registerImmediate")}n(E,"installNextTickImplementation");function m(){if(e.postMessage&&!e.importScripts){var x=!0,C=e.onmessage;return e.onmessage=function(){x=!1},e.postMessage("","*"),e.onmessage=C,x}}n(m,"canUsePostMessage");function g(){var x="setImmediate$"+Math.random()+"$",C=n(function(w){w.source===e&&typeof w.data=="string"&&w.data.indexOf(x)===0&&c(+w.data.slice(x.length))},"onGlobalMessage");e.addEventListener?e.addEventListener("message",C,!1):e.attachEvent("onmessage",C),l=n(function(w){e.postMessage(x+w,"*")},"registerImmediate")}n(g,"installPostMessageImplementation");function b(){var x=new MessageChannel;x.port1.onmessage=function(C){var w=C.data;c(w)},l=n(function(C){x.port2.postMessage(C)},"registerImmediate")}n(b,"installMessageChannelImplementation");function A(){var x=s.documentElement;l=n(function(C){var w=s.createElement("script");w.onreadystatechange=function(){c(C),w.onreadystatechange=null,x.removeChild(w),w=null},x.appendChild(w)},"registerImmediate")}n(A,"installReadyStateChangeImplementation");function T(){l=n(function(x){setTimeout(c,0,x)},"registerImmediate")}n(T,"installSetTimeoutImplementation");var y=Object.getPrototypeOf&&Object.getPrototypeOf(e);y=y&&y.setTimeout?y:e,{}.toString.call(e.process)==="[object process]"?E():m()?g():e.MessageChannel?b():s&&"onreadystatechange"in s.createElement("script")?A():T(),y.setImmediate=d,y.clearImmediate=p})(typeof self>"u"?typeof global>"u"?Cg:global:self)});var le=R(pe=>{"use strict";var Ur=hr(),QT=gd(),An=Xa(),kd=Rn();Ig();function eR(e){var t=null;return Ur.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),ol(e,t)}n(eR,"string2binary");pe.newBlob=function(e,t){pe.checkSupport("blob");try{return new Blob([e],{type:t})}catch{try{var r=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,i=new r;return i.append(e),i.getBlob(t)}catch{throw new Error("Bug : can't construct the Blob.")}}};function ro(e){return e}n(ro,"identity");function ol(e,t){for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)&255;return t}n(ol,"stringToArrayLike");var al={stringifyByChunk:n(function(e,t,r){var i=[],a=0,s=e.length;if(s<=r)return String.fromCharCode.apply(null,e);for(;a<s;)t==="array"||t==="nodebuffer"?i.push(String.fromCharCode.apply(null,e.slice(a,Math.min(a+r,s)))):i.push(String.fromCharCode.apply(null,e.subarray(a,Math.min(a+r,s)))),a+=r;return i.join("")},"stringifyByChunk"),stringifyByChar:n(function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},"stringifyByChar"),applyCanBeUsed:{uint8array:function(){try{return Ur.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return Ur.nodebuffer&&String.fromCharCode.apply(null,An.allocBuffer(1)).length===1}catch{return!1}}()}};function io(e){var t=65536,r=pe.getTypeOf(e),i=!0;if(r==="uint8array"?i=al.applyCanBeUsed.uint8array:r==="nodebuffer"&&(i=al.applyCanBeUsed.nodebuffer),i)for(;t>1;)try{return al.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return al.stringifyByChar(e)}n(io,"arrayLikeToString");pe.applyFromCharCode=io;function sl(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}n(sl,"arrayLikeToArrayLike");var Wr={};Wr.string={string:ro,array:n(function(e){return ol(e,new Array(e.length))},"array"),arraybuffer:n(function(e){return Wr.string.uint8array(e).buffer},"arraybuffer"),uint8array:n(function(e){return ol(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:n(function(e){return ol(e,An.allocBuffer(e.length))},"nodebuffer")};Wr.array={string:io,array:ro,arraybuffer:n(function(e){return new Uint8Array(e).buffer},"arraybuffer"),uint8array:n(function(e){return new Uint8Array(e)},"uint8array"),nodebuffer:n(function(e){return An.newBufferFrom(e)},"nodebuffer")};Wr.arraybuffer={string:n(function(e){return io(new Uint8Array(e))},"string"),array:n(function(e){return sl(new Uint8Array(e),new Array(e.byteLength))},"array"),arraybuffer:ro,uint8array:n(function(e){return new Uint8Array(e)},"uint8array"),nodebuffer:n(function(e){return An.newBufferFrom(new Uint8Array(e))},"nodebuffer")};Wr.uint8array={string:io,array:n(function(e){return sl(e,new Array(e.length))},"array"),arraybuffer:n(function(e){return e.buffer},"arraybuffer"),uint8array:ro,nodebuffer:n(function(e){return An.newBufferFrom(e)},"nodebuffer")};Wr.nodebuffer={string:io,array:n(function(e){return sl(e,new Array(e.length))},"array"),arraybuffer:n(function(e){return Wr.nodebuffer.uint8array(e).buffer},"arraybuffer"),uint8array:n(function(e){return sl(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:ro};pe.transformTo=function(e,t){if(t||(t=""),!e)return t;pe.checkSupport(e);var r=pe.getTypeOf(t),i=Wr[r][e](t);return i};pe.resolve=function(e){for(var t=e.split("/"),r=[],i=0;i<t.length;i++){var a=t[i];a==="."||a===""&&i!==0&&i!==t.length-1||(a===".."?r.pop():r.push(a))}return r.join("/")};pe.getTypeOf=function(e){if(typeof e=="string")return"string";if(Object.prototype.toString.call(e)==="[object Array]")return"array";if(Ur.nodebuffer&&An.isBuffer(e))return"nodebuffer";if(Ur.uint8array&&e instanceof Uint8Array)return"uint8array";if(Ur.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer"};pe.checkSupport=function(e){var t=Ur[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this platform")};pe.MAX_VALUE_16BITS=65535;pe.MAX_VALUE_32BITS=-1;pe.pretty=function(e){var t="",r,i;for(i=0;i<(e||"").length;i++)r=e.charCodeAt(i),t+="\\x"+(r<16?"0":"")+r.toString(16).toUpperCase();return t};pe.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})};pe.inherits=function(e,t){var r=n(function(){},"Obj");r.prototype=t.prototype,e.prototype=new r};pe.extend=function(){var e={},t,r;for(t=0;t<arguments.length;t++)for(r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&typeof e[r]>"u"&&(e[r]=arguments[t][r]);return e};pe.prepareContent=function(e,t,r,i,a){var s=kd.Promise.resolve(t).then(function(l){var d=Ur.blob&&(l instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(l))!==-1);return d&&typeof FileReader<"u"?new kd.Promise(function(p,u){var c=new FileReader;c.onload=function(E){p(E.target.result)},c.onerror=function(E){u(E.target.error)},c.readAsArrayBuffer(l)}):l});return s.then(function(l){var d=pe.getTypeOf(l);return d?(d==="arraybuffer"?l=pe.transformTo("uint8array",l):d==="string"&&(a?l=QT.decode(l):r&&i!==!0&&(l=eR(l))),l):kd.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}});var Ye=R((XF,Pg)=>{"use strict";function Og(e){this.name=e||"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}n(Og,"GenericWorker");Og.prototype={push:n(function(e){this.emit("data",e)},"push"),end:n(function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},"end"),error:n(function(e){return this.isFinished?!1:(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},"error"),on:n(function(e,t){return this._listeners[e].push(t),this},"on"),cleanUp:n(function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},"cleanUp"),emit:n(function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},"emit"),pipe:n(function(e){return e.registerPrevious(this)},"pipe"),registerPrevious:n(function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.end()}),e.on("error",function(r){t.error(r)}),this},"registerPrevious"),pause:n(function(){return this.isPaused||this.isFinished?!1:(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},"pause"),resume:n(function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},"resume"),flush:n(function(){},"flush"),processChunk:n(function(e){this.push(e)},"processChunk"),withStreamInfo:n(function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},"withStreamInfo"),mergeStreamInfo:n(function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},"mergeStreamInfo"),lock:n(function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},"lock"),toString:n(function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e},"toString")};Pg.exports=Og});var In=R(jr=>{"use strict";var Cn=le(),Ei=hr(),tR=Xa(),ll=Ye(),no=new Array(256);for(pr=0;pr<256;pr++)no[pr]=pr>=252?6:pr>=248?5:pr>=240?4:pr>=224?3:pr>=192?2:1;var pr;no[254]=no[254]=1;var rR=n(function(e){var t,r,i,a,s,l=e.length,d=0;for(a=0;a<l;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<l&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),d+=r<128?1:r<2048?2:r<65536?3:4;for(Ei.uint8array?t=new Uint8Array(d):t=new Array(d),s=0,a=0;s<d;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<l&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[s++]=r:r<2048?(t[s++]=192|r>>>6,t[s++]=128|r&63):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|r&63):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|r&63);return t},"string2buf"),iR=n(function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+no[e[r]]>t?r:t},"utf8border"),nR=n(function(e){var t,r,i,a,s=e.length,l=new Array(s*2);for(r=0,t=0;t<s;){if(i=e[t++],i<128){l[r++]=i;continue}if(a=no[i],a>4){l[r++]=65533,t+=a-1;continue}for(i&=a===2?31:a===3?15:7;a>1&&t<s;)i=i<<6|e[t++]&63,a--;if(a>1){l[r++]=65533;continue}i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|i&1023)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),Cn.applyFromCharCode(l)},"buf2string");jr.utf8encode=n(function(t){return Ei.nodebuffer?tR.newBufferFrom(t,"utf-8"):rR(t)},"utf8encode");jr.utf8decode=n(function(t){return Ei.nodebuffer?Cn.transformTo("nodebuffer",t).toString("utf-8"):(t=Cn.transformTo(Ei.uint8array?"uint8array":"array",t),nR(t))},"utf8decode");function fl(){ll.call(this,"utf-8 decode"),this.leftOver=null}n(fl,"Utf8DecodeWorker");Cn.inherits(fl,ll);fl.prototype.processChunk=function(e){var t=Cn.transformTo(Ei.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(Ei.uint8array){var r=t;t=new Uint8Array(r.length+this.leftOver.length),t.set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var i=iR(t),a=t;i!==t.length&&(Ei.uint8array?(a=t.subarray(0,i),this.leftOver=t.subarray(i,t.length)):(a=t.slice(0,i),this.leftOver=t.slice(i,t.length))),this.push({data:jr.utf8decode(a),meta:e.meta})};fl.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:jr.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};jr.Utf8DecodeWorker=fl;function Td(){ll.call(this,"utf-8 encode")}n(Td,"Utf8EncodeWorker");Cn.inherits(Td,ll);Td.prototype.processChunk=function(e){this.push({data:jr.utf8encode(e.data),meta:e.meta})};jr.Utf8EncodeWorker=Td});var Lg=R((t8,Fg)=>{"use strict";var Dg=Ye(),Bg=le();function Rd(e){Dg.call(this,"ConvertWorker to "+e),this.destType=e}n(Rd,"ConvertWorker");Bg.inherits(Rd,Dg);Rd.prototype.processChunk=function(e){this.push({data:Bg.transformTo(this.destType,e.data),meta:e.meta})};Fg.exports=Rd});var Mg=R((i8,qg)=>{"use strict";var zg=hd().Readable,aR=le();aR.inherits(Ad,zg);function Ad(e,t,r){zg.call(this,t),this._helper=e;var i=this;e.on("data",function(a,s){i.push(a)||i._helper.pause(),r&&r(s)}).on("error",function(a){i.emit("error",a)}).on("end",function(){i.push(null)})}n(Ad,"NodejsStreamOutputAdapter");Ad.prototype._read=function(){this._helper.resume()};qg.exports=Ad});var Cd=R((a8,Wg)=>{"use strict";var ki=le(),oR=Lg(),sR=Ye(),lR=gd(),fR=hr(),uR=Rn(),Ng=null;if(fR.nodestream)try{Ng=Mg()}catch{}function dR(e,t,r){switch(e){case"blob":return ki.newBlob(ki.transformTo("arraybuffer",t),r);case"base64":return lR.encode(t);default:return ki.transformTo(e,t)}}n(dR,"transformZipOutput");function cR(e,t){var r,i=0,a=null,s=0;for(r=0;r<t.length;r++)s+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(a=new Uint8Array(s),r=0;r<t.length;r++)a.set(t[r],i),i+=t[r].length;return a;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}n(cR,"concat");function hR(e,t){return new uR.Promise(function(r,i){var a=[],s=e._internalType,l=e._outputType,d=e._mimeType;e.on("data",function(p,u){a.push(p),t&&t(u)}).on("error",function(p){a=[],i(p)}).on("end",function(){try{var p=dR(l,cR(s,a),d);r(p)}catch(u){i(u)}a=[]}).resume()})}n(hR,"accumulate");function Ug(e,t,r){var i=t;switch(t){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string";break}try{this._internalType=i,this._outputType=t,this._mimeType=r,ki.checkSupport(i),this._worker=e.pipe(new oR(i)),e.lock()}catch(a){this._worker=new sR("error"),this._worker.error(a)}}n(Ug,"StreamHelper");Ug.prototype={accumulate:n(function(e){return hR(this,e)},"accumulate"),on:n(function(e,t){var r=this;return e==="data"?this._worker.on(e,function(i){t.call(r,i.data,i.meta)}):this._worker.on(e,function(){ki.delay(t,arguments,r)}),this},"on"),resume:n(function(){return ki.delay(this._worker.resume,[],this._worker),this},"resume"),pause:n(function(){return this._worker.pause(),this},"pause"),toNodejsStream:n(function(e){if(ki.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new Ng(this,{objectMode:this._outputType!=="nodebuffer"},e)},"toNodejsStream")};Wg.exports=Ug});var Id=R(St=>{"use strict";St.base64=!1;St.binary=!1;St.dir=!1;St.createFolders=!0;St.date=null;St.compression=null;St.compressionOptions=null;St.comment=null;St.unixPermissions=null;St.dosPermissions=null});var Od=R((l8,jg)=>{"use strict";var ul=le(),dl=Ye(),pR=16*1024;function On(e){dl.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(r){t.dataIsReady=!0,t.data=r,t.max=r&&r.length||0,t.type=ul.getTypeOf(r),t.isPaused||t._tickAndRepeat()},function(r){t.error(r)})}n(On,"DataWorker");ul.inherits(On,dl);On.prototype.cleanUp=function(){dl.prototype.cleanUp.call(this),this.data=null};On.prototype.resume=function(){return dl.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,ul.delay(this._tickAndRepeat,[],this)),!0):!1};On.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(ul.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};On.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=pR,t=null,r=Math.min(this.max,this.index+e);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,r);break;case"uint8array":t=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":t=this.data.slice(this.index,r);break}return this.index=r,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})};jg.exports=On});var cl=R((u8,Hg)=>{"use strict";var _R=le();function mR(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}n(mR,"makeTable");var Zg=mR();function gR(e,t,r,i){var a=Zg,s=i+r;e=e^-1;for(var l=i;l<s;l++)e=e>>>8^a[(e^t[l])&255];return e^-1}n(gR,"crc32");function vR(e,t,r,i){var a=Zg,s=i+r;e=e^-1;for(var l=i;l<s;l++)e=e>>>8^a[(e^t.charCodeAt(l))&255];return e^-1}n(vR,"crc32str");Hg.exports=n(function(t,r){if(typeof t>"u"||!t.length)return 0;var i=_R.getTypeOf(t)!=="string";return i?gR(r|0,t,t.length,0):vR(r|0,t,t.length,0)},"crc32wrapper")});var Dd=R((c8,Yg)=>{"use strict";var $g=Ye(),bR=cl(),yR=le();function Pd(){$g.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n(Pd,"Crc32Probe");yR.inherits(Pd,$g);Pd.prototype.processChunk=function(e){this.streamInfo.crc32=bR(e.data,this.streamInfo.crc32||0),this.push(e)};Yg.exports=Pd});var Vg=R((p8,Gg)=>{"use strict";var wR=le(),Bd=Ye();function Fd(e){Bd.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n(Fd,"DataLengthProbe");wR.inherits(Fd,Bd);Fd.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}Bd.prototype.processChunk.call(this,e)};Gg.exports=Fd});var hl=R((m8,Jg)=>{"use strict";var Kg=Rn(),Xg=Od(),SR=Dd(),Ld=Vg();function zd(e,t,r,i,a){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=a}n(zd,"CompressedObject");zd.prototype={getContentWorker:n(function(){var e=new Xg(Kg.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new Ld("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},"getContentWorker"),getCompressedWorker:n(function(){return new Xg(Kg.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)},"getCompressedWorker")};zd.createWorkerFrom=function(e,t,r){return e.pipe(new SR).pipe(new Ld("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new Ld("compressedSize")).withStreamInfo("compression",t)};Jg.exports=zd});var r0=R((v8,t0)=>{"use strict";var xR=Cd(),ER=Od(),qd=In(),Md=hl(),Qg=Ye(),Nd=n(function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}},"ZipObject");Nd.prototype={internalStream:n(function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");r=e.toLowerCase();var i=r==="string"||r==="text";(r==="binarystring"||r==="text")&&(r="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!i&&(t=t.pipe(new qd.Utf8EncodeWorker)),!a&&i&&(t=t.pipe(new qd.Utf8DecodeWorker))}catch(s){t=new Qg("error"),t.error(s)}return new xR(t,r,"")},"internalStream"),async:n(function(e,t){return this.internalStream(e).accumulate(t)},"async"),nodeStream:n(function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},"nodeStream"),_compressWorker:n(function(e,t){if(this._data instanceof Md&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new qd.Utf8EncodeWorker)),Md.createWorkerFrom(r,e,t)},"_compressWorker"),_decompressWorker:n(function(){return this._data instanceof Md?this._data.getContentWorker():this._data instanceof Qg?this._data:new ER(this._data)},"_decompressWorker")};var e0=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],kR=n(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"removedFn");for(pl=0;pl<e0.length;pl++)Nd.prototype[e0[pl]]=kR;var pl;t0.exports=Nd});var _r=R(Ie=>{"use strict";var TR=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function RR(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n(RR,"_has");Ie.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(var i in r)RR(r,i)&&(e[i]=r[i])}}return e};Ie.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var AR={arraySet:n(function(e,t,r,i,a){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+i),a);return}for(var s=0;s<i;s++)e[a+s]=t[r+s]},"arraySet"),flattenChunks:n(function(e){var t,r,i,a,s,l;for(i=0,t=0,r=e.length;t<r;t++)i+=e[t].length;for(l=new Uint8Array(i),a=0,t=0,r=e.length;t<r;t++)s=e[t],l.set(s,a),a+=s.length;return l},"flattenChunks")},CR={arraySet:n(function(e,t,r,i,a){for(var s=0;s<i;s++)e[a+s]=t[r+s]},"arraySet"),flattenChunks:n(function(e){return[].concat.apply([],e)},"flattenChunks")};Ie.setTyped=function(e){e?(Ie.Buf8=Uint8Array,Ie.Buf16=Uint16Array,Ie.Buf32=Int32Array,Ie.assign(Ie,AR)):(Ie.Buf8=Array,Ie.Buf16=Array,Ie.Buf32=Array,Ie.assign(Ie,CR))};Ie.setTyped(TR)});var k0=R(Bn=>{"use strict";var IR=_r(),OR=4,i0=0,n0=1,PR=2;function Dn(e){for(var t=e.length;--t>=0;)e[t]=0}n(Dn,"zero");var DR=0,u0=1,BR=2,FR=3,LR=258,Yd=29,uo=256,oo=uo+1+Yd,Pn=30,Gd=19,d0=2*oo+1,Ti=15,Ud=16,zR=7,Vd=256,c0=16,h0=17,p0=18,Hd=[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],_l=[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],qR=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],_0=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],MR=512,mr=new Array((oo+2)*2);Dn(mr);var ao=new Array(Pn*2);Dn(ao);var so=new Array(MR);Dn(so);var lo=new Array(LR-FR+1);Dn(lo);var Kd=new Array(Yd);Dn(Kd);var ml=new Array(Pn);Dn(ml);function Wd(e,t,r,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}n(Wd,"StaticTreeDesc");var m0,g0,v0;function jd(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}n(jd,"TreeDesc");function b0(e){return e<256?so[e]:so[256+(e>>>7)]}n(b0,"d_code");function fo(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}n(fo,"put_short");function qe(e,t,r){e.bi_valid>Ud-r?(e.bi_buf|=t<<e.bi_valid&65535,fo(e,e.bi_buf),e.bi_buf=t>>Ud-e.bi_valid,e.bi_valid+=r-Ud):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}n(qe,"send_bits");function Wt(e,t,r){qe(e,r[t*2],r[t*2+1])}n(Wt,"send_code");function y0(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}n(y0,"bi_reverse");function NR(e){e.bi_valid===16?(fo(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}n(NR,"bi_flush");function UR(e,t){var r=t.dyn_tree,i=t.max_code,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,u,c,E,m,g,b,A=0;for(m=0;m<=Ti;m++)e.bl_count[m]=0;for(r[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;u<d0;u++)c=e.heap[u],m=r[r[c*2+1]*2+1]+1,m>p&&(m=p,A++),r[c*2+1]=m,!(c>i)&&(e.bl_count[m]++,g=0,c>=d&&(g=l[c-d]),b=r[c*2],e.opt_len+=b*(m+g),s&&(e.static_len+=b*(a[c*2+1]+g)));if(A!==0){do{for(m=p-1;e.bl_count[m]===0;)m--;e.bl_count[m]--,e.bl_count[m+1]+=2,e.bl_count[p]--,A-=2}while(A>0);for(m=p;m!==0;m--)for(c=e.bl_count[m];c!==0;)E=e.heap[--u],!(E>i)&&(r[E*2+1]!==m&&(e.opt_len+=(m-r[E*2+1])*r[E*2],r[E*2+1]=m),c--)}}n(UR,"gen_bitlen");function w0(e,t,r){var i=new Array(Ti+1),a=0,s,l;for(s=1;s<=Ti;s++)i[s]=a=a+r[s-1]<<1;for(l=0;l<=t;l++){var d=e[l*2+1];d!==0&&(e[l*2]=y0(i[d]++,d))}}n(w0,"gen_codes");function WR(){var e,t,r,i,a,s=new Array(Ti+1);for(r=0,i=0;i<Yd-1;i++)for(Kd[i]=r,e=0;e<1<<Hd[i];e++)lo[r++]=i;for(lo[r-1]=i,a=0,i=0;i<16;i++)for(ml[i]=a,e=0;e<1<<_l[i];e++)so[a++]=i;for(a>>=7;i<Pn;i++)for(ml[i]=a<<7,e=0;e<1<<_l[i]-7;e++)so[256+a++]=i;for(t=0;t<=Ti;t++)s[t]=0;for(e=0;e<=143;)mr[e*2+1]=8,e++,s[8]++;for(;e<=255;)mr[e*2+1]=9,e++,s[9]++;for(;e<=279;)mr[e*2+1]=7,e++,s[7]++;for(;e<=287;)mr[e*2+1]=8,e++,s[8]++;for(w0(mr,oo+1,s),e=0;e<Pn;e++)ao[e*2+1]=5,ao[e*2]=y0(e,5);m0=new Wd(mr,Hd,uo+1,oo,Ti),g0=new Wd(ao,_l,0,Pn,Ti),v0=new Wd(new Array(0),qR,0,Gd,zR)}n(WR,"tr_static_init");function S0(e){var t;for(t=0;t<oo;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Pn;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Gd;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Vd*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}n(S0,"init_block");function x0(e){e.bi_valid>8?fo(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}n(x0,"bi_windup");function jR(e,t,r,i){x0(e),i&&(fo(e,r),fo(e,~r)),IR.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}n(jR,"copy_block");function a0(e,t,r,i){var a=t*2,s=r*2;return e[a]<e[s]||e[a]===e[s]&&i[t]<=i[r]}n(a0,"smaller");function Zd(e,t,r){for(var i=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&a0(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!a0(t,i,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=i}n(Zd,"pqdownheap");function o0(e,t,r){var i,a,s=0,l,d;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+s*2]<<8|e.pending_buf[e.d_buf+s*2+1],a=e.pending_buf[e.l_buf+s],s++,i===0?Wt(e,a,t):(l=lo[a],Wt(e,l+uo+1,t),d=Hd[l],d!==0&&(a-=Kd[l],qe(e,a,d)),i--,l=b0(i),Wt(e,l,r),d=_l[l],d!==0&&(i-=ml[l],qe(e,i,d)));while(s<e.last_lit);Wt(e,Vd,t)}n(o0,"compress_block");function $d(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,s=t.stat_desc.elems,l,d,p=-1,u;for(e.heap_len=0,e.heap_max=d0,l=0;l<s;l++)r[l*2]!==0?(e.heap[++e.heap_len]=p=l,e.depth[l]=0):r[l*2+1]=0;for(;e.heap_len<2;)u=e.heap[++e.heap_len]=p<2?++p:0,r[u*2]=1,e.depth[u]=0,e.opt_len--,a&&(e.static_len-=i[u*2+1]);for(t.max_code=p,l=e.heap_len>>1;l>=1;l--)Zd(e,r,l);u=s;do l=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Zd(e,r,1),d=e.heap[1],e.heap[--e.heap_max]=l,e.heap[--e.heap_max]=d,r[u*2]=r[l*2]+r[d*2],e.depth[u]=(e.depth[l]>=e.depth[d]?e.depth[l]:e.depth[d])+1,r[l*2+1]=r[d*2+1]=u,e.heap[1]=u++,Zd(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],UR(e,t),w0(r,p,e.bl_count)}n($d,"build_tree");function s0(e,t,r){var i,a=-1,s,l=t[0*2+1],d=0,p=7,u=4;for(l===0&&(p=138,u=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)s=l,l=t[(i+1)*2+1],!(++d<p&&s===l)&&(d<u?e.bl_tree[s*2]+=d:s!==0?(s!==a&&e.bl_tree[s*2]++,e.bl_tree[c0*2]++):d<=10?e.bl_tree[h0*2]++:e.bl_tree[p0*2]++,d=0,a=s,l===0?(p=138,u=3):s===l?(p=6,u=3):(p=7,u=4))}n(s0,"scan_tree");function l0(e,t,r){var i,a=-1,s,l=t[0*2+1],d=0,p=7,u=4;for(l===0&&(p=138,u=3),i=0;i<=r;i++)if(s=l,l=t[(i+1)*2+1],!(++d<p&&s===l)){if(d<u)do Wt(e,s,e.bl_tree);while(--d!==0);else s!==0?(s!==a&&(Wt(e,s,e.bl_tree),d--),Wt(e,c0,e.bl_tree),qe(e,d-3,2)):d<=10?(Wt(e,h0,e.bl_tree),qe(e,d-3,3)):(Wt(e,p0,e.bl_tree),qe(e,d-11,7));d=0,a=s,l===0?(p=138,u=3):s===l?(p=6,u=3):(p=7,u=4)}}n(l0,"send_tree");function ZR(e){var t;for(s0(e,e.dyn_ltree,e.l_desc.max_code),s0(e,e.dyn_dtree,e.d_desc.max_code),$d(e,e.bl_desc),t=Gd-1;t>=3&&e.bl_tree[_0[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}n(ZR,"build_bl_tree");function HR(e,t,r,i){var a;for(qe(e,t-257,5),qe(e,r-1,5),qe(e,i-4,4),a=0;a<i;a++)qe(e,e.bl_tree[_0[a]*2+1],3);l0(e,e.dyn_ltree,t-1),l0(e,e.dyn_dtree,r-1)}n(HR,"send_all_trees");function $R(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return i0;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return n0;for(r=32;r<uo;r++)if(e.dyn_ltree[r*2]!==0)return n0;return i0}n($R,"detect_data_type");var f0=!1;function YR(e){f0||(WR(),f0=!0),e.l_desc=new jd(e.dyn_ltree,m0),e.d_desc=new jd(e.dyn_dtree,g0),e.bl_desc=new jd(e.bl_tree,v0),e.bi_buf=0,e.bi_valid=0,S0(e)}n(YR,"_tr_init");function E0(e,t,r,i){qe(e,(DR<<1)+(i?1:0),3),jR(e,t,r,!0)}n(E0,"_tr_stored_block");function GR(e){qe(e,u0<<1,3),Wt(e,Vd,mr),NR(e)}n(GR,"_tr_align");function VR(e,t,r,i){var a,s,l=0;e.level>0?(e.strm.data_type===PR&&(e.strm.data_type=$R(e)),$d(e,e.l_desc),$d(e,e.d_desc),l=ZR(e),a=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=a&&(a=s)):a=s=r+5,r+4<=a&&t!==-1?E0(e,t,r,i):e.strategy===OR||s===a?(qe(e,(u0<<1)+(i?1:0),3),o0(e,mr,ao)):(qe(e,(BR<<1)+(i?1:0),3),HR(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),o0(e,e.dyn_ltree,e.dyn_dtree)),S0(e),i&&x0(e)}n(VR,"_tr_flush_block");function KR(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(lo[r]+uo+1)*2]++,e.dyn_dtree[b0(t)*2]++),e.last_lit===e.lit_bufsize-1}n(KR,"_tr_tally");Bn._tr_init=YR;Bn._tr_stored_block=E0;Bn._tr_flush_block=VR;Bn._tr_tally=KR;Bn._tr_align=GR});var Xd=R((E8,T0)=>{"use strict";function XR(e,t,r,i){for(var a=e&65535|0,s=e>>>16&65535|0,l=0;r!==0;){l=r>2e3?2e3:r,r-=l;do a=a+t[i++]|0,s=s+a|0;while(--l);a%=65521,s%=65521}return a|s<<16|0}n(XR,"adler32");T0.exports=XR});var Jd=R((T8,R0)=>{"use strict";function JR(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}n(JR,"makeTable");var QR=JR();function eA(e,t,r,i){var a=QR,s=i+r;e^=-1;for(var l=i;l<s;l++)e=e>>>8^a[(e^t[l])&255];return e^-1}n(eA,"crc32");R0.exports=eA});var gl=R((A8,A0)=>{"use strict";A0.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 z0=R(Ht=>{"use strict";var Oe=_r(),at=k0(),P0=Xd(),Zr=Jd(),tA=gl(),Ii=0,rA=1,iA=3,Vr=4,C0=5,Zt=0,I0=1,ot=-2,nA=-3,Qd=-5,aA=-1,oA=1,vl=2,sA=3,lA=4,fA=0,uA=2,Sl=8,dA=9,cA=15,hA=8,pA=29,_A=256,tc=_A+1+pA,mA=30,gA=19,vA=2*tc+1,bA=15,Z=3,Yr=258,xt=Yr+Z+1,yA=32,xl=42,rc=69,bl=73,yl=91,wl=103,Ri=113,ho=666,ge=1,po=2,Ai=3,zn=4,wA=3;function Gr(e,t){return e.msg=tA[t],t}n(Gr,"err");function O0(e){return(e<<1)-(e>4?9:0)}n(O0,"rank");function $r(e){for(var t=e.length;--t>=0;)e[t]=0}n($r,"zero");function Hr(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(Oe.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}n(Hr,"flush_pending");function Se(e,t){at._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Hr(e.strm)}n(Se,"flush_block_only");function $(e,t){e.pending_buf[e.pending++]=t}n($,"put_byte");function co(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}n(co,"putShortMSB");function SA(e,t,r,i){var a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,Oe.arraySet(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=P0(e.adler,t,a,r):e.state.wrap===2&&(e.adler=Zr(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}n(SA,"read_buf");function D0(e,t){var r=e.max_chain_length,i=e.strstart,a,s,l=e.prev_length,d=e.nice_match,p=e.strstart>e.w_size-xt?e.strstart-(e.w_size-xt):0,u=e.window,c=e.w_mask,E=e.prev,m=e.strstart+Yr,g=u[i+l-1],b=u[i+l];e.prev_length>=e.good_match&&(r>>=2),d>e.lookahead&&(d=e.lookahead);do if(a=t,!(u[a+l]!==b||u[a+l-1]!==g||u[a]!==u[i]||u[++a]!==u[i+1])){i+=2,a++;do;while(u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&i<m);if(s=Yr-(m-i),i=m-Yr,s>l){if(e.match_start=t,l=s,s>=d)break;g=u[i+l-1],b=u[i+l]}}while((t=E[t&c])>p&&--r!==0);return l<=e.lookahead?l:e.lookahead}n(D0,"longest_match");function Ci(e){var t=e.w_size,r,i,a,s,l;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-xt)){Oe.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=t?a-t:0;while(--i);i=t,r=i;do a=e.prev[--r],e.prev[r]=a>=t?a-t:0;while(--i);s+=t}if(e.strm.avail_in===0)break;if(i=SA(e.strm,e.window,e.strstart+e.lookahead,s),e.lookahead+=i,e.lookahead+e.insert>=Z)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+Z-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<Z)););}while(e.lookahead<xt&&e.strm.avail_in!==0)}n(Ci,"fill_window");function xA(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Ci(e),e.lookahead===0&&t===Ii)return ge;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,Se(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-xt&&(Se(e,!1),e.strm.avail_out===0))return ge}return e.insert=0,t===Vr?(Se(e,!0),e.strm.avail_out===0?Ai:zn):(e.strstart>e.block_start&&(Se(e,!1),e.strm.avail_out===0),ge)}n(xA,"deflate_stored");function ec(e,t){for(var r,i;;){if(e.lookahead<xt){if(Ci(e),e.lookahead<xt&&t===Ii)return ge;if(e.lookahead===0)break}if(r=0,e.lookahead>=Z&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Z-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-xt&&(e.match_length=D0(e,r)),e.match_length>=Z)if(i=at._tr_tally(e,e.strstart-e.match_start,e.match_length-Z),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Z){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Z-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=at._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Se(e,!1),e.strm.avail_out===0))return ge}return e.insert=e.strstart<Z-1?e.strstart:Z-1,t===Vr?(Se(e,!0),e.strm.avail_out===0?Ai:zn):e.last_lit&&(Se(e,!1),e.strm.avail_out===0)?ge:po}n(ec,"deflate_fast");function Fn(e,t){for(var r,i,a;;){if(e.lookahead<xt){if(Ci(e),e.lookahead<xt&&t===Ii)return ge;if(e.lookahead===0)break}if(r=0,e.lookahead>=Z&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Z-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Z-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-xt&&(e.match_length=D0(e,r),e.match_length<=5&&(e.strategy===oA||e.match_length===Z&&e.strstart-e.match_start>4096)&&(e.match_length=Z-1)),e.prev_length>=Z&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-Z,i=at._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-Z),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Z-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Z-1,e.strstart++,i&&(Se(e,!1),e.strm.avail_out===0))return ge}else if(e.match_available){if(i=at._tr_tally(e,0,e.window[e.strstart-1]),i&&Se(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return ge}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=at._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Z-1?e.strstart:Z-1,t===Vr?(Se(e,!0),e.strm.avail_out===0?Ai:zn):e.last_lit&&(Se(e,!1),e.strm.avail_out===0)?ge:po}n(Fn,"deflate_slow");function EA(e,t){for(var r,i,a,s,l=e.window;;){if(e.lookahead<=Yr){if(Ci(e),e.lookahead<=Yr&&t===Ii)return ge;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Z&&e.strstart>0&&(a=e.strstart-1,i=l[a],i===l[++a]&&i===l[++a]&&i===l[++a])){s=e.strstart+Yr;do;while(i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&a<s);e.match_length=Yr-(s-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Z?(r=at._tr_tally(e,1,e.match_length-Z),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=at._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Se(e,!1),e.strm.avail_out===0))return ge}return e.insert=0,t===Vr?(Se(e,!0),e.strm.avail_out===0?Ai:zn):e.last_lit&&(Se(e,!1),e.strm.avail_out===0)?ge:po}n(EA,"deflate_rle");function kA(e,t){for(var r;;){if(e.lookahead===0&&(Ci(e),e.lookahead===0)){if(t===Ii)return ge;break}if(e.match_length=0,r=at._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Se(e,!1),e.strm.avail_out===0))return ge}return e.insert=0,t===Vr?(Se(e,!0),e.strm.avail_out===0?Ai:zn):e.last_lit&&(Se(e,!1),e.strm.avail_out===0)?ge:po}n(kA,"deflate_huff");function jt(e,t,r,i,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=a}n(jt,"Config");var Ln;Ln=[new jt(0,0,0,0,xA),new jt(4,4,8,4,ec),new jt(4,5,16,8,ec),new jt(4,6,32,32,ec),new jt(4,4,16,16,Fn),new jt(8,16,32,32,Fn),new jt(8,16,128,128,Fn),new jt(8,32,128,256,Fn),new jt(32,128,258,1024,Fn),new jt(32,258,258,4096,Fn)];function TA(e){e.window_size=2*e.w_size,$r(e.head),e.max_lazy_match=Ln[e.level].max_lazy,e.good_match=Ln[e.level].good_length,e.nice_match=Ln[e.level].nice_length,e.max_chain_length=Ln[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Z-1,e.match_available=0,e.ins_h=0}n(TA,"lm_init");function RA(){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=Sl,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 Oe.Buf16(vA*2),this.dyn_dtree=new Oe.Buf16((2*mA+1)*2),this.bl_tree=new Oe.Buf16((2*gA+1)*2),$r(this.dyn_ltree),$r(this.dyn_dtree),$r(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Oe.Buf16(bA+1),this.heap=new Oe.Buf16(2*tc+1),$r(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Oe.Buf16(2*tc+1),$r(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}n(RA,"DeflateState");function B0(e){var t;return!e||!e.state?Gr(e,ot):(e.total_in=e.total_out=0,e.data_type=uA,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?xl:Ri,e.adler=t.wrap===2?0:1,t.last_flush=Ii,at._tr_init(t),Zt)}n(B0,"deflateResetKeep");function F0(e){var t=B0(e);return t===Zt&&TA(e.state),t}n(F0,"deflateReset");function AA(e,t){return!e||!e.state||e.state.wrap!==2?ot:(e.state.gzhead=t,Zt)}n(AA,"deflateSetHeader");function L0(e,t,r,i,a,s){if(!e)return ot;var l=1;if(t===aA&&(t=6),i<0?(l=0,i=-i):i>15&&(l=2,i-=16),a<1||a>dA||r!==Sl||i<8||i>15||t<0||t>9||s<0||s>lA)return Gr(e,ot);i===8&&(i=9);var d=new RA;return e.state=d,d.strm=e,d.wrap=l,d.gzhead=null,d.w_bits=i,d.w_size=1<<d.w_bits,d.w_mask=d.w_size-1,d.hash_bits=a+7,d.hash_size=1<<d.hash_bits,d.hash_mask=d.hash_size-1,d.hash_shift=~~((d.hash_bits+Z-1)/Z),d.window=new Oe.Buf8(d.w_size*2),d.head=new Oe.Buf16(d.hash_size),d.prev=new Oe.Buf16(d.w_size),d.lit_bufsize=1<<a+6,d.pending_buf_size=d.lit_bufsize*4,d.pending_buf=new Oe.Buf8(d.pending_buf_size),d.d_buf=1*d.lit_bufsize,d.l_buf=3*d.lit_bufsize,d.level=t,d.strategy=s,d.method=r,F0(e)}n(L0,"deflateInit2");function CA(e,t){return L0(e,t,Sl,cA,hA,fA)}n(CA,"deflateInit");function IA(e,t){var r,i,a,s;if(!e||!e.state||t>C0||t<0)return e?Gr(e,ot):ot;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===ho&&t!==Vr)return Gr(e,e.avail_out===0?Qd:ot);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===xl)if(i.wrap===2)e.adler=0,$(i,31),$(i,139),$(i,8),i.gzhead?($(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),$(i,i.gzhead.time&255),$(i,i.gzhead.time>>8&255),$(i,i.gzhead.time>>16&255),$(i,i.gzhead.time>>24&255),$(i,i.level===9?2:i.strategy>=vl||i.level<2?4:0),$(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&($(i,i.gzhead.extra.length&255),$(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Zr(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=rc):($(i,0),$(i,0),$(i,0),$(i,0),$(i,0),$(i,i.level===9?2:i.strategy>=vl||i.level<2?4:0),$(i,wA),i.status=Ri);else{var l=Sl+(i.w_bits-8<<4)<<8,d=-1;i.strategy>=vl||i.level<2?d=0:i.level<6?d=1:i.level===6?d=2:d=3,l|=d<<6,i.strstart!==0&&(l|=yA),l+=31-l%31,i.status=Ri,co(i,l),i.strstart!==0&&(co(i,e.adler>>>16),co(i,e.adler&65535)),e.adler=1}if(i.status===rc)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Zr(e.adler,i.pending_buf,i.pending-a,a)),Hr(e),a=i.pending,i.pending===i.pending_buf_size));)$(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=Zr(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=bl)}else i.status=bl;if(i.status===bl)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Zr(e.adler,i.pending_buf,i.pending-a,a)),Hr(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.name.length?s=i.gzhead.name.charCodeAt(i.gzindex++)&255:s=0,$(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=Zr(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.gzindex=0,i.status=yl)}else i.status=yl;if(i.status===yl)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Zr(e.adler,i.pending_buf,i.pending-a,a)),Hr(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.comment.length?s=i.gzhead.comment.charCodeAt(i.gzindex++)&255:s=0,$(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=Zr(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.status=wl)}else i.status=wl;if(i.status===wl&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&Hr(e),i.pending+2<=i.pending_buf_size&&($(i,e.adler&255),$(i,e.adler>>8&255),e.adler=0,i.status=Ri)):i.status=Ri),i.pending!==0){if(Hr(e),e.avail_out===0)return i.last_flush=-1,Zt}else if(e.avail_in===0&&O0(t)<=O0(r)&&t!==Vr)return Gr(e,Qd);if(i.status===ho&&e.avail_in!==0)return Gr(e,Qd);if(e.avail_in!==0||i.lookahead!==0||t!==Ii&&i.status!==ho){var p=i.strategy===vl?kA(i,t):i.strategy===sA?EA(i,t):Ln[i.level].func(i,t);if((p===Ai||p===zn)&&(i.status=ho),p===ge||p===Ai)return e.avail_out===0&&(i.last_flush=-1),Zt;if(p===po&&(t===rA?at._tr_align(i):t!==C0&&(at._tr_stored_block(i,0,0,!1),t===iA&&($r(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),Hr(e),e.avail_out===0))return i.last_flush=-1,Zt}return t!==Vr?Zt:i.wrap<=0?I0:(i.wrap===2?($(i,e.adler&255),$(i,e.adler>>8&255),$(i,e.adler>>16&255),$(i,e.adler>>24&255),$(i,e.total_in&255),$(i,e.total_in>>8&255),$(i,e.total_in>>16&255),$(i,e.total_in>>24&255)):(co(i,e.adler>>>16),co(i,e.adler&65535)),Hr(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Zt:I0)}n(IA,"deflate");function OA(e){var t;return!e||!e.state?ot:(t=e.state.status,t!==xl&&t!==rc&&t!==bl&&t!==yl&&t!==wl&&t!==Ri&&t!==ho?Gr(e,ot):(e.state=null,t===Ri?Gr(e,nA):Zt))}n(OA,"deflateEnd");function PA(e,t){var r=t.length,i,a,s,l,d,p,u,c;if(!e||!e.state||(i=e.state,l=i.wrap,l===2||l===1&&i.status!==xl||i.lookahead))return ot;for(l===1&&(e.adler=P0(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(l===0&&($r(i.head),i.strstart=0,i.block_start=0,i.insert=0),c=new Oe.Buf8(i.w_size),Oe.arraySet(c,t,r-i.w_size,i.w_size,0),t=c,r=i.w_size),d=e.avail_in,p=e.next_in,u=e.input,e.avail_in=r,e.next_in=0,e.input=t,Ci(i);i.lookahead>=Z;){a=i.strstart,s=i.lookahead-(Z-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[a+Z-1])&i.hash_mask,i.prev[a&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=a,a++;while(--s);i.strstart=a,i.lookahead=Z-1,Ci(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=Z-1,i.match_available=0,e.next_in=p,e.input=u,e.avail_in=d,i.wrap=l,Zt}n(PA,"deflateSetDictionary");Ht.deflateInit=CA;Ht.deflateInit2=L0;Ht.deflateReset=F0;Ht.deflateResetKeep=B0;Ht.deflateSetHeader=AA;Ht.deflate=IA;Ht.deflateEnd=OA;Ht.deflateSetDictionary=PA;Ht.deflateInfo="pako deflate (from Nodeca project)"});var ic=R(qn=>{"use strict";var El=_r(),q0=!0,M0=!0;try{String.fromCharCode.apply(null,[0])}catch{q0=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{M0=!1}var _o=new El.Buf8(256);for(gr=0;gr<256;gr++)_o[gr]=gr>=252?6:gr>=248?5:gr>=240?4:gr>=224?3:gr>=192?2:1;var gr;_o[254]=_o[254]=1;qn.string2buf=function(e){var t,r,i,a,s,l=e.length,d=0;for(a=0;a<l;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<l&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),d+=r<128?1:r<2048?2:r<65536?3:4;for(t=new El.Buf8(d),s=0,a=0;s<d;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<l&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[s++]=r:r<2048?(t[s++]=192|r>>>6,t[s++]=128|r&63):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|r&63):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|r&63);return t};function N0(e,t){if(t<65534&&(e.subarray&&M0||!e.subarray&&q0))return String.fromCharCode.apply(null,El.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}n(N0,"buf2binstring");qn.buf2binstring=function(e){return N0(e,e.length)};qn.binstring2buf=function(e){for(var t=new El.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};qn.buf2string=function(e,t){var r,i,a,s,l=t||e.length,d=new Array(l*2);for(i=0,r=0;r<l;){if(a=e[r++],a<128){d[i++]=a;continue}if(s=_o[a],s>4){d[i++]=65533,r+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&r<l;)a=a<<6|e[r++]&63,s--;if(s>1){d[i++]=65533;continue}a<65536?d[i++]=a:(a-=65536,d[i++]=55296|a>>10&1023,d[i++]=56320|a&1023)}return N0(d,i)};qn.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+_o[e[r]]>t?r:t}});var nc=R((D8,U0)=>{"use strict";function DA(){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}n(DA,"ZStream");U0.exports=DA});var H0=R(vo=>{"use strict";var mo=z0(),go=_r(),oc=ic(),sc=gl(),BA=nc(),Z0=Object.prototype.toString,FA=0,ac=4,Mn=0,W0=1,j0=2,LA=-1,zA=0,qA=8;function Oi(e){if(!(this instanceof Oi))return new Oi(e);this.options=go.assign({level:LA,method:qA,chunkSize:16384,windowBits:15,memLevel:8,strategy:zA,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new BA,this.strm.avail_out=0;var r=mo.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Mn)throw new Error(sc[r]);if(t.header&&mo.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=oc.string2buf(t.dictionary):Z0.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=mo.deflateSetDictionary(this.strm,i),r!==Mn)throw new Error(sc[r]);this._dict_set=!0}}n(Oi,"Deflate");Oi.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a,s;if(this.ended)return!1;s=t===~~t?t:t===!0?ac:FA,typeof e=="string"?r.input=oc.string2buf(e):Z0.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new go.Buf8(i),r.next_out=0,r.avail_out=i),a=mo.deflate(r,s),a!==W0&&a!==Mn)return this.onEnd(a),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(s===ac||s===j0))&&(this.options.to==="string"?this.onData(oc.buf2binstring(go.shrinkBuf(r.output,r.next_out))):this.onData(go.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&a!==W0);return s===ac?(a=mo.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Mn):(s===j0&&(this.onEnd(Mn),r.avail_out=0),!0)};Oi.prototype.onData=function(e){this.chunks.push(e)};Oi.prototype.onEnd=function(e){e===Mn&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=go.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function lc(e,t){var r=new Oi(t);if(r.push(e,!0),r.err)throw r.msg||sc[r.err];return r.result}n(lc,"deflate");function MA(e,t){return t=t||{},t.raw=!0,lc(e,t)}n(MA,"deflateRaw");function NA(e,t){return t=t||{},t.gzip=!0,lc(e,t)}n(NA,"gzip");vo.Deflate=Oi;vo.deflate=lc;vo.deflateRaw=MA;vo.gzip=NA});var Y0=R((z8,$0)=>{"use strict";var kl=30,UA=12;$0.exports=n(function(t,r){var i,a,s,l,d,p,u,c,E,m,g,b,A,T,y,x,C,w,S,P,B,D,F,z,O;i=t.state,a=t.next_in,z=t.input,s=a+(t.avail_in-5),l=t.next_out,O=t.output,d=l-(r-t.avail_out),p=l+(t.avail_out-257),u=i.dmax,c=i.wsize,E=i.whave,m=i.wnext,g=i.window,b=i.hold,A=i.bits,T=i.lencode,y=i.distcode,x=(1<<i.lenbits)-1,C=(1<<i.distbits)-1;e:do{A<15&&(b+=z[a++]<<A,A+=8,b+=z[a++]<<A,A+=8),w=T[b&x];t:for(;;){if(S=w>>>24,b>>>=S,A-=S,S=w>>>16&255,S===0)O[l++]=w&65535;else if(S&16){P=w&65535,S&=15,S&&(A<S&&(b+=z[a++]<<A,A+=8),P+=b&(1<<S)-1,b>>>=S,A-=S),A<15&&(b+=z[a++]<<A,A+=8,b+=z[a++]<<A,A+=8),w=y[b&C];r:for(;;){if(S=w>>>24,b>>>=S,A-=S,S=w>>>16&255,S&16){if(B=w&65535,S&=15,A<S&&(b+=z[a++]<<A,A+=8,A<S&&(b+=z[a++]<<A,A+=8)),B+=b&(1<<S)-1,B>u){t.msg="invalid distance too far back",i.mode=kl;break e}if(b>>>=S,A-=S,S=l-d,B>S){if(S=B-S,S>E&&i.sane){t.msg="invalid distance too far back",i.mode=kl;break e}if(D=0,F=g,m===0){if(D+=c-S,S<P){P-=S;do O[l++]=g[D++];while(--S);D=l-B,F=O}}else if(m<S){if(D+=c+m-S,S-=m,S<P){P-=S;do O[l++]=g[D++];while(--S);if(D=0,m<P){S=m,P-=S;do O[l++]=g[D++];while(--S);D=l-B,F=O}}}else if(D+=m-S,S<P){P-=S;do O[l++]=g[D++];while(--S);D=l-B,F=O}for(;P>2;)O[l++]=F[D++],O[l++]=F[D++],O[l++]=F[D++],P-=3;P&&(O[l++]=F[D++],P>1&&(O[l++]=F[D++]))}else{D=l-B;do O[l++]=O[D++],O[l++]=O[D++],O[l++]=O[D++],P-=3;while(P>2);P&&(O[l++]=O[D++],P>1&&(O[l++]=O[D++]))}}else if(S&64){t.msg="invalid distance code",i.mode=kl;break e}else{w=y[(w&65535)+(b&(1<<S)-1)];continue r}break}}else if(S&64)if(S&32){i.mode=UA;break e}else{t.msg="invalid literal/length code",i.mode=kl;break e}else{w=T[(w&65535)+(b&(1<<S)-1)];continue t}break}}while(a<s&&l<p);P=A>>3,a-=P,A-=P<<3,b&=(1<<A)-1,t.next_in=a,t.next_out=l,t.avail_in=a<s?5+(s-a):5-(a-s),t.avail_out=l<p?257+(p-l):257-(l-p),i.hold=b,i.bits=A},"inflate_fast")});var ev=R((M8,Q0)=>{"use strict";var G0=_r(),Nn=15,V0=852,K0=592,X0=0,fc=1,J0=2,WA=[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],jA=[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],ZA=[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],HA=[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];Q0.exports=n(function(t,r,i,a,s,l,d,p){var u=p.bits,c=0,E=0,m=0,g=0,b=0,A=0,T=0,y=0,x=0,C=0,w,S,P,B,D,F=null,z=0,O,G=new G0.Buf16(Nn+1),se=new G0.Buf16(Nn+1),Be=null,er=0,Ir,ht,Ne;for(c=0;c<=Nn;c++)G[c]=0;for(E=0;E<a;E++)G[r[i+E]]++;for(b=u,g=Nn;g>=1&&G[g]===0;g--);if(b>g&&(b=g),g===0)return s[l++]=1<<24|64<<16|0,s[l++]=1<<24|64<<16|0,p.bits=1,0;for(m=1;m<g&&G[m]===0;m++);for(b<m&&(b=m),y=1,c=1;c<=Nn;c++)if(y<<=1,y-=G[c],y<0)return-1;if(y>0&&(t===X0||g!==1))return-1;for(se[1]=0,c=1;c<Nn;c++)se[c+1]=se[c]+G[c];for(E=0;E<a;E++)r[i+E]!==0&&(d[se[r[i+E]]++]=E);if(t===X0?(F=Be=d,O=19):t===fc?(F=WA,z-=257,Be=jA,er-=257,O=256):(F=ZA,Be=HA,O=-1),C=0,E=0,c=m,D=l,A=b,T=0,P=-1,x=1<<b,B=x-1,t===fc&&x>V0||t===J0&&x>K0)return 1;for(;;){Ir=c-T,d[E]<O?(ht=0,Ne=d[E]):d[E]>O?(ht=Be[er+d[E]],Ne=F[z+d[E]]):(ht=96,Ne=0),w=1<<c-T,S=1<<A,m=S;do S-=w,s[D+(C>>T)+S]=Ir<<24|ht<<16|Ne|0;while(S!==0);for(w=1<<c-1;C&w;)w>>=1;if(w!==0?(C&=w-1,C+=w):C=0,E++,--G[c]===0){if(c===g)break;c=r[i+d[E]]}if(c>b&&(C&B)!==P){for(T===0&&(T=b),D+=m,A=c-T,y=1<<A;A+T<g&&(y-=G[A+T],!(y<=0));)A++,y<<=1;if(x+=1<<A,t===fc&&x>V0||t===J0&&x>K0)return 1;P=C&B,s[P]=b<<24|A<<16|D-l|0}}return C!==0&&(s[D+C]=c-T<<24|64<<16|0),p.bits=b,0},"inflate_table")});var Fv=R(Et=>{"use strict";var Ge=_r(),_c=Xd(),$t=Jd(),$A=Y0(),bo=ev(),YA=0,Tv=1,Rv=2,tv=4,GA=5,Tl=6,Pi=0,VA=1,KA=2,st=-2,Av=-3,mc=-4,XA=-5,rv=8,Cv=1,iv=2,nv=3,av=4,ov=5,sv=6,lv=7,fv=8,uv=9,dv=10,Cl=11,vr=12,uc=13,cv=14,dc=15,hv=16,pv=17,_v=18,mv=19,Rl=20,Al=21,gv=22,vv=23,bv=24,yv=25,wv=26,cc=27,Sv=28,xv=29,ae=30,gc=31,JA=32,QA=852,eC=592,tC=15,rC=tC;function Ev(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}n(Ev,"zswap32");function iC(){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 Ge.Buf16(320),this.work=new Ge.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}n(iC,"InflateState");function Iv(e){var t;return!e||!e.state?st:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Cv,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Ge.Buf32(QA),t.distcode=t.distdyn=new Ge.Buf32(eC),t.sane=1,t.back=-1,Pi)}n(Iv,"inflateResetKeep");function Ov(e){var t;return!e||!e.state?st:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Iv(e))}n(Ov,"inflateReset");function Pv(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?st:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,Ov(e))}n(Pv,"inflateReset2");function Dv(e,t){var r,i;return e?(i=new iC,e.state=i,i.window=null,r=Pv(e,t),r!==Pi&&(e.state=null),r):st}n(Dv,"inflateInit2");function nC(e){return Dv(e,rC)}n(nC,"inflateInit");var kv=!0,hc,pc;function aC(e){if(kv){var t;for(hc=new Ge.Buf32(512),pc=new Ge.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(bo(Tv,e.lens,0,288,hc,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;bo(Rv,e.lens,0,32,pc,0,e.work,{bits:5}),kv=!1}e.lencode=hc,e.lenbits=9,e.distcode=pc,e.distbits=5}n(aC,"fixedtables");function Bv(e,t,r,i){var a,s=e.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Ge.Buf8(s.wsize)),i>=s.wsize?(Ge.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(a=s.wsize-s.wnext,a>i&&(a=i),Ge.arraySet(s.window,t,r-i,a,s.wnext),i-=a,i?(Ge.arraySet(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=a))),0}n(Bv,"updatewindow");function oC(e,t){var r,i,a,s,l,d,p,u,c,E,m,g,b,A,T=0,y,x,C,w,S,P,B,D,F=new Ge.Buf8(4),z,O,G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return st;r=e.state,r.mode===vr&&(r.mode=uc),l=e.next_out,a=e.output,p=e.avail_out,s=e.next_in,i=e.input,d=e.avail_in,u=r.hold,c=r.bits,E=d,m=p,D=Pi;e:for(;;)switch(r.mode){case Cv:if(r.wrap===0){r.mode=uc;break}for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(r.wrap&2&&u===35615){r.check=0,F[0]=u&255,F[1]=u>>>8&255,r.check=$t(r.check,F,2,0),u=0,c=0,r.mode=iv;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",r.mode=ae;break}if((u&15)!==rv){e.msg="unknown compression method",r.mode=ae;break}if(u>>>=4,c-=4,B=(u&15)+8,r.wbits===0)r.wbits=B;else if(B>r.wbits){e.msg="invalid window size",r.mode=ae;break}r.dmax=1<<B,e.adler=r.check=1,r.mode=u&512?dv:vr,u=0,c=0;break;case iv:for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(r.flags=u,(r.flags&255)!==rv){e.msg="unknown compression method",r.mode=ae;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=ae;break}r.head&&(r.head.text=u>>8&1),r.flags&512&&(F[0]=u&255,F[1]=u>>>8&255,r.check=$t(r.check,F,2,0)),u=0,c=0,r.mode=nv;case nv:for(;c<32;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.head&&(r.head.time=u),r.flags&512&&(F[0]=u&255,F[1]=u>>>8&255,F[2]=u>>>16&255,F[3]=u>>>24&255,r.check=$t(r.check,F,4,0)),u=0,c=0,r.mode=av;case av:for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.head&&(r.head.xflags=u&255,r.head.os=u>>8),r.flags&512&&(F[0]=u&255,F[1]=u>>>8&255,r.check=$t(r.check,F,2,0)),u=0,c=0,r.mode=ov;case ov:if(r.flags&1024){for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.length=u,r.head&&(r.head.extra_len=u),r.flags&512&&(F[0]=u&255,F[1]=u>>>8&255,r.check=$t(r.check,F,2,0)),u=0,c=0}else r.head&&(r.head.extra=null);r.mode=sv;case sv:if(r.flags&1024&&(g=r.length,g>d&&(g=d),g&&(r.head&&(B=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),Ge.arraySet(r.head.extra,i,s,g,B)),r.flags&512&&(r.check=$t(r.check,i,g,s)),d-=g,s+=g,r.length-=g),r.length))break e;r.length=0,r.mode=lv;case lv:if(r.flags&2048){if(d===0)break e;g=0;do B=i[s+g++],r.head&&B&&r.length<65536&&(r.head.name+=String.fromCharCode(B));while(B&&g<d);if(r.flags&512&&(r.check=$t(r.check,i,g,s)),d-=g,s+=g,B)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=fv;case fv:if(r.flags&4096){if(d===0)break e;g=0;do B=i[s+g++],r.head&&B&&r.length<65536&&(r.head.comment+=String.fromCharCode(B));while(B&&g<d);if(r.flags&512&&(r.check=$t(r.check,i,g,s)),d-=g,s+=g,B)break e}else r.head&&(r.head.comment=null);r.mode=uv;case uv:if(r.flags&512){for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(u!==(r.check&65535)){e.msg="header crc mismatch",r.mode=ae;break}u=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=vr;break;case dv:for(;c<32;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}e.adler=r.check=Ev(u),u=0,c=0,r.mode=Cl;case Cl:if(r.havedict===0)return e.next_out=l,e.avail_out=p,e.next_in=s,e.avail_in=d,r.hold=u,r.bits=c,KA;e.adler=r.check=1,r.mode=vr;case vr:if(t===GA||t===Tl)break e;case uc:if(r.last){u>>>=c&7,c-=c&7,r.mode=cc;break}for(;c<3;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}switch(r.last=u&1,u>>>=1,c-=1,u&3){case 0:r.mode=cv;break;case 1:if(aC(r),r.mode=Rl,t===Tl){u>>>=2,c-=2;break e}break;case 2:r.mode=pv;break;case 3:e.msg="invalid block type",r.mode=ae}u>>>=2,c-=2;break;case cv:for(u>>>=c&7,c-=c&7;c<32;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if((u&65535)!==(u>>>16^65535)){e.msg="invalid stored block lengths",r.mode=ae;break}if(r.length=u&65535,u=0,c=0,r.mode=dc,t===Tl)break e;case dc:r.mode=hv;case hv:if(g=r.length,g){if(g>d&&(g=d),g>p&&(g=p),g===0)break e;Ge.arraySet(a,i,s,g,l),d-=g,s+=g,p-=g,l+=g,r.length-=g;break}r.mode=vr;break;case pv:for(;c<14;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(r.nlen=(u&31)+257,u>>>=5,c-=5,r.ndist=(u&31)+1,u>>>=5,c-=5,r.ncode=(u&15)+4,u>>>=4,c-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=ae;break}r.have=0,r.mode=_v;case _v:for(;r.have<r.ncode;){for(;c<3;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.lens[G[r.have++]]=u&7,u>>>=3,c-=3}for(;r.have<19;)r.lens[G[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,z={bits:r.lenbits},D=bo(YA,r.lens,0,19,r.lencode,0,r.work,z),r.lenbits=z.bits,D){e.msg="invalid code lengths set",r.mode=ae;break}r.have=0,r.mode=mv;case mv:for(;r.have<r.nlen+r.ndist;){for(;T=r.lencode[u&(1<<r.lenbits)-1],y=T>>>24,x=T>>>16&255,C=T&65535,!(y<=c);){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(C<16)u>>>=y,c-=y,r.lens[r.have++]=C;else{if(C===16){for(O=y+2;c<O;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(u>>>=y,c-=y,r.have===0){e.msg="invalid bit length repeat",r.mode=ae;break}B=r.lens[r.have-1],g=3+(u&3),u>>>=2,c-=2}else if(C===17){for(O=y+3;c<O;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}u>>>=y,c-=y,B=0,g=3+(u&7),u>>>=3,c-=3}else{for(O=y+7;c<O;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}u>>>=y,c-=y,B=0,g=11+(u&127),u>>>=7,c-=7}if(r.have+g>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=ae;break}for(;g--;)r.lens[r.have++]=B}}if(r.mode===ae)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=ae;break}if(r.lenbits=9,z={bits:r.lenbits},D=bo(Tv,r.lens,0,r.nlen,r.lencode,0,r.work,z),r.lenbits=z.bits,D){e.msg="invalid literal/lengths set",r.mode=ae;break}if(r.distbits=6,r.distcode=r.distdyn,z={bits:r.distbits},D=bo(Rv,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,z),r.distbits=z.bits,D){e.msg="invalid distances set",r.mode=ae;break}if(r.mode=Rl,t===Tl)break e;case Rl:r.mode=Al;case Al:if(d>=6&&p>=258){e.next_out=l,e.avail_out=p,e.next_in=s,e.avail_in=d,r.hold=u,r.bits=c,$A(e,m),l=e.next_out,a=e.output,p=e.avail_out,s=e.next_in,i=e.input,d=e.avail_in,u=r.hold,c=r.bits,r.mode===vr&&(r.back=-1);break}for(r.back=0;T=r.lencode[u&(1<<r.lenbits)-1],y=T>>>24,x=T>>>16&255,C=T&65535,!(y<=c);){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(x&&!(x&240)){for(w=y,S=x,P=C;T=r.lencode[P+((u&(1<<w+S)-1)>>w)],y=T>>>24,x=T>>>16&255,C=T&65535,!(w+y<=c);){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}u>>>=w,c-=w,r.back+=w}if(u>>>=y,c-=y,r.back+=y,r.length=C,x===0){r.mode=wv;break}if(x&32){r.back=-1,r.mode=vr;break}if(x&64){e.msg="invalid literal/length code",r.mode=ae;break}r.extra=x&15,r.mode=gv;case gv:if(r.extra){for(O=r.extra;c<O;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=vv;case vv:for(;T=r.distcode[u&(1<<r.distbits)-1],y=T>>>24,x=T>>>16&255,C=T&65535,!(y<=c);){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(!(x&240)){for(w=y,S=x,P=C;T=r.distcode[P+((u&(1<<w+S)-1)>>w)],y=T>>>24,x=T>>>16&255,C=T&65535,!(w+y<=c);){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}u>>>=w,c-=w,r.back+=w}if(u>>>=y,c-=y,r.back+=y,x&64){e.msg="invalid distance code",r.mode=ae;break}r.offset=C,r.extra=x&15,r.mode=bv;case bv:if(r.extra){for(O=r.extra;c<O;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=ae;break}r.mode=yv;case yv:if(p===0)break e;if(g=m-p,r.offset>g){if(g=r.offset-g,g>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=ae;break}g>r.wnext?(g-=r.wnext,b=r.wsize-g):b=r.wnext-g,g>r.length&&(g=r.length),A=r.window}else A=a,b=l-r.offset,g=r.length;g>p&&(g=p),p-=g,r.length-=g;do a[l++]=A[b++];while(--g);r.length===0&&(r.mode=Al);break;case wv:if(p===0)break e;a[l++]=r.length,p--,r.mode=Al;break;case cc:if(r.wrap){for(;c<32;){if(d===0)break e;d--,u|=i[s++]<<c,c+=8}if(m-=p,e.total_out+=m,r.total+=m,m&&(e.adler=r.check=r.flags?$t(r.check,a,m,l-m):_c(r.check,a,m,l-m)),m=p,(r.flags?u:Ev(u))!==r.check){e.msg="incorrect data check",r.mode=ae;break}u=0,c=0}r.mode=Sv;case Sv:if(r.wrap&&r.flags){for(;c<32;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(u!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=ae;break}u=0,c=0}r.mode=xv;case xv:D=VA;break e;case ae:D=Av;break e;case gc:return mc;case JA:default:return st}return e.next_out=l,e.avail_out=p,e.next_in=s,e.avail_in=d,r.hold=u,r.bits=c,(r.wsize||m!==e.avail_out&&r.mode<ae&&(r.mode<cc||t!==tv))&&Bv(e,e.output,e.next_out,m-e.avail_out)?(r.mode=gc,mc):(E-=e.avail_in,m-=e.avail_out,e.total_in+=E,e.total_out+=m,r.total+=m,r.wrap&&m&&(e.adler=r.check=r.flags?$t(r.check,a,m,e.next_out-m):_c(r.check,a,m,e.next_out-m)),e.data_type=r.bits+(r.last?64:0)+(r.mode===vr?128:0)+(r.mode===Rl||r.mode===dc?256:0),(E===0&&m===0||t===tv)&&D===Pi&&(D=XA),D)}n(oC,"inflate");function sC(e){if(!e||!e.state)return st;var t=e.state;return t.window&&(t.window=null),e.state=null,Pi}n(sC,"inflateEnd");function lC(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?st:(r.head=t,t.done=!1,Pi)}n(lC,"inflateGetHeader");function fC(e,t){var r=t.length,i,a,s;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==Cl)?st:i.mode===Cl&&(a=1,a=_c(a,t,r,0),a!==i.check)?Av:(s=Bv(e,t,r,r),s?(i.mode=gc,mc):(i.havedict=1,Pi))}n(fC,"inflateSetDictionary");Et.inflateReset=Ov;Et.inflateReset2=Pv;Et.inflateResetKeep=Iv;Et.inflateInit=nC;Et.inflateInit2=Dv;Et.inflate=oC;Et.inflateEnd=sC;Et.inflateGetHeader=lC;Et.inflateSetDictionary=fC;Et.inflateInfo="pako inflate (from Nodeca project)"});var vc=R((j8,Lv)=>{"use strict";Lv.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 qv=R((Z8,zv)=>{"use strict";function uC(){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}n(uC,"GZheader");zv.exports=uC});var Nv=R(wo=>{"use strict";var Un=Fv(),yo=_r(),Il=ic(),de=vc(),bc=gl(),dC=nc(),cC=qv(),Mv=Object.prototype.toString;function Di(e){if(!(this instanceof Di))return new Di(e);this.options=yo.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new dC,this.strm.avail_out=0;var r=Un.inflateInit2(this.strm,t.windowBits);if(r!==de.Z_OK)throw new Error(bc[r]);if(this.header=new cC,Un.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Il.string2buf(t.dictionary):Mv.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Un.inflateSetDictionary(this.strm,t.dictionary),r!==de.Z_OK)))throw new Error(bc[r])}n(Di,"Inflate");Di.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a=this.options.dictionary,s,l,d,p,u,c=!1;if(this.ended)return!1;l=t===~~t?t:t===!0?de.Z_FINISH:de.Z_NO_FLUSH,typeof e=="string"?r.input=Il.binstring2buf(e):Mv.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new yo.Buf8(i),r.next_out=0,r.avail_out=i),s=Un.inflate(r,de.Z_NO_FLUSH),s===de.Z_NEED_DICT&&a&&(s=Un.inflateSetDictionary(this.strm,a)),s===de.Z_BUF_ERROR&&c===!0&&(s=de.Z_OK,c=!1),s!==de.Z_STREAM_END&&s!==de.Z_OK)return this.onEnd(s),this.ended=!0,!1;r.next_out&&(r.avail_out===0||s===de.Z_STREAM_END||r.avail_in===0&&(l===de.Z_FINISH||l===de.Z_SYNC_FLUSH))&&(this.options.to==="string"?(d=Il.utf8border(r.output,r.next_out),p=r.next_out-d,u=Il.buf2string(r.output,d),r.next_out=p,r.avail_out=i-p,p&&yo.arraySet(r.output,r.output,d,p,0),this.onData(u)):this.onData(yo.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(c=!0)}while((r.avail_in>0||r.avail_out===0)&&s!==de.Z_STREAM_END);return s===de.Z_STREAM_END&&(l=de.Z_FINISH),l===de.Z_FINISH?(s=Un.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===de.Z_OK):(l===de.Z_SYNC_FLUSH&&(this.onEnd(de.Z_OK),r.avail_out=0),!0)};Di.prototype.onData=function(e){this.chunks.push(e)};Di.prototype.onEnd=function(e){e===de.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=yo.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function yc(e,t){var r=new Di(t);if(r.push(e,!0),r.err)throw r.msg||bc[r.err];return r.result}n(yc,"inflate");function hC(e,t){return t=t||{},t.raw=!0,yc(e,t)}n(hC,"inflateRaw");wo.Inflate=Di;wo.inflate=yc;wo.inflateRaw=hC;wo.ungzip=yc});var jv=R((G8,Wv)=>{"use strict";var pC=_r().assign,_C=H0(),mC=Nv(),gC=vc(),Uv={};pC(Uv,_C,mC,gC);Wv.exports=Uv});var Hv=R(Pl=>{"use strict";var vC=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",bC=jv(),Zv=le(),Ol=Ye(),yC=vC?"uint8array":"array";Pl.magic="\b\0";function Bi(e,t){Ol.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n(Bi,"FlateWorker");Zv.inherits(Bi,Ol);Bi.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(Zv.transformTo(yC,e.data),!1)};Bi.prototype.flush=function(){Ol.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};Bi.prototype.cleanUp=function(){Ol.prototype.cleanUp.call(this),this._pako=null};Bi.prototype._createPako=function(){this._pako=new bC[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};Pl.compressWorker=function(e){return new Bi("Deflate",e)};Pl.uncompressWorker=function(){return new Bi("Inflate",{})}});var Sc=R(wc=>{"use strict";var $v=Ye();wc.STORE={magic:"\0\0",compressWorker:n(function(){return new $v("STORE compression")},"compressWorker"),uncompressWorker:n(function(){return new $v("STORE decompression")},"uncompressWorker")};wc.DEFLATE=Hv()});var xc=R(Fi=>{"use strict";Fi.LOCAL_FILE_HEADER="PK";Fi.CENTRAL_FILE_HEADER="PK";Fi.CENTRAL_DIRECTORY_END="PK";Fi.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";Fi.ZIP64_CENTRAL_DIRECTORY_END="PK";Fi.DATA_DESCRIPTOR="PK\x07\b"});var Kv=R((eL,Vv)=>{"use strict";var Wn=le(),jn=Ye(),Ec=In(),Yv=cl(),Dl=xc(),te=n(function(e,t){var r="",i;for(i=0;i<t;i++)r+=String.fromCharCode(e&255),e=e>>>8;return r},"decToHex"),wC=n(function(e,t){var r=e;return e||(r=t?16893:33204),(r&65535)<<16},"generateUnixExternalFileAttr"),SC=n(function(e){return(e||0)&63},"generateDosExternalFileAttr"),Gv=n(function(e,t,r,i,a,s){var l=e.file,d=e.compression,p=s!==Ec.utf8encode,u=Wn.transformTo("string",s(l.name)),c=Wn.transformTo("string",Ec.utf8encode(l.name)),E=l.comment,m=Wn.transformTo("string",s(E)),g=Wn.transformTo("string",Ec.utf8encode(E)),b=c.length!==l.name.length,A=g.length!==E.length,T,y,x="",C="",w="",S=l.dir,P=l.date,B={crc32:0,compressedSize:0,uncompressedSize:0};(!t||r)&&(B.crc32=e.crc32,B.compressedSize=e.compressedSize,B.uncompressedSize=e.uncompressedSize);var D=0;t&&(D|=8),!p&&(b||A)&&(D|=2048);var F=0,z=0;S&&(F|=16),a==="UNIX"?(z=798,F|=wC(l.unixPermissions,S)):(z=20,F|=SC(l.dosPermissions,S)),T=P.getUTCHours(),T=T<<6,T=T|P.getUTCMinutes(),T=T<<5,T=T|P.getUTCSeconds()/2,y=P.getUTCFullYear()-1980,y=y<<4,y=y|P.getUTCMonth()+1,y=y<<5,y=y|P.getUTCDate(),b&&(C=te(1,1)+te(Yv(u),4)+c,x+="up"+te(C.length,2)+C),A&&(w=te(1,1)+te(Yv(m),4)+g,x+="uc"+te(w.length,2)+w);var O="";O+=`
13
+ \0`,O+=te(D,2),O+=d.magic,O+=te(T,2),O+=te(y,2),O+=te(B.crc32,4),O+=te(B.compressedSize,4),O+=te(B.uncompressedSize,4),O+=te(u.length,2),O+=te(x.length,2);var G=Dl.LOCAL_FILE_HEADER+O+u+x,se=Dl.CENTRAL_FILE_HEADER+te(z,2)+O+te(m.length,2)+"\0\0\0\0"+te(F,4)+te(i,4)+u+x+m;return{fileRecord:G,dirRecord:se}},"generateZipParts"),xC=n(function(e,t,r,i,a){var s="",l=Wn.transformTo("string",a(i));return s=Dl.CENTRAL_DIRECTORY_END+"\0\0\0\0"+te(e,2)+te(e,2)+te(t,4)+te(r,4)+te(l.length,2)+l,s},"generateCentralDirectoryEnd"),EC=n(function(e){var t="";return t=Dl.DATA_DESCRIPTOR+te(e.crc32,4)+te(e.compressedSize,4)+te(e.uncompressedSize,4),t},"generateDataDescriptors");function kt(e,t,r,i){jn.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n(kt,"ZipFileWorker");Wn.inherits(kt,jn);kt.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,jn.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-i-1))/r:100}}))};kt.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=Gv(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0};kt.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=Gv(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:EC(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null};kt.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,i=xC(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})};kt.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()};kt.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(r){t.error(r)}),this};kt.prototype.resume=function(){if(!jn.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};kt.prototype.error=function(e){var t=this._sources;if(!jn.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch{}return!0};kt.prototype.lock=function(){jn.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};Vv.exports=kt});var Jv=R(Xv=>{"use strict";var kC=Sc(),TC=Kv(),RC=n(function(e,t){var r=e||t,i=kC[r];if(!i)throw new Error(r+" is not a valid compression method !");return i},"getCompression");Xv.generateWorker=function(e,t,r){var i=new TC(t.streamFiles,r,t.platform,t.encodeFileName),a=0;try{e.forEach(function(s,l){a++;var d=RC(l.options.compression,t.compression),p=l.options.compressionOptions||t.compressionOptions||{},u=l.dir,c=l.date;l._compressWorker(d,p).withStreamInfo("file",{name:s,dir:u,date:c,comment:l.comment||"",unixPermissions:l.unixPermissions,dosPermissions:l.dosPermissions}).pipe(i)}),i.entriesCount=a}catch(s){i.error(s)}return i}});var eb=R((nL,Qv)=>{"use strict";var AC=le(),Bl=Ye();function So(e,t){Bl.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n(So,"NodejsStreamInputAdapter");AC.inherits(So,Bl);So.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",function(r){t.push({data:r,meta:{percent:0}})}).on("error",function(r){t.isPaused?this.generatedError=r:t.error(r)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})};So.prototype.pause=function(){return Bl.prototype.pause.call(this)?(this._stream.pause(),!0):!1};So.prototype.resume=function(){return Bl.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};Qv.exports=So});var ub=R((oL,fb)=>{"use strict";var CC=In(),xo=le(),nb=Ye(),IC=Cd(),ab=Id(),tb=hl(),OC=r0(),PC=Jv(),rb=Xa(),DC=eb(),ob=n(function(e,t,r){var i=xo.getTypeOf(t),a,s=xo.extend(r||{},ab);s.date=s.date||new Date,s.compression!==null&&(s.compression=s.compression.toUpperCase()),typeof s.unixPermissions=="string"&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&s.unixPermissions&16384&&(s.dir=!0),s.dosPermissions&&s.dosPermissions&16&&(s.dir=!0),s.dir&&(e=sb(e)),s.createFolders&&(a=BC(e))&&lb.call(this,a,!0);var l=i==="string"&&s.binary===!1&&s.base64===!1;(!r||typeof r.binary>"u")&&(s.binary=!l);var d=t instanceof tb&&t.uncompressedSize===0;(d||s.dir||!t||t.length===0)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var p=null;t instanceof tb||t instanceof nb?p=t:rb.isNode&&rb.isStream(t)?p=new DC(e,t):p=xo.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var u=new OC(e,p,s);this.files[e]=u},"fileAdd"),BC=n(function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},"parentFolder"),sb=n(function(e){return e.slice(-1)!=="/"&&(e+="/"),e},"forceTrailingSlash"),lb=n(function(e,t){return t=typeof t<"u"?t:ab.createFolders,e=sb(e),this.files[e]||ob.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},"folderAdd");function ib(e){return Object.prototype.toString.call(e)==="[object RegExp]"}n(ib,"isRegExp");var FC={load:n(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"load"),forEach:n(function(e){var t,r,i;for(t in this.files)i=this.files[t],r=t.slice(this.root.length,t.length),r&&t.slice(0,this.root.length)===this.root&&e(r,i)},"forEach"),filter:n(function(e){var t=[];return this.forEach(function(r,i){e(r,i)&&t.push(i)}),t},"filter"),file:n(function(e,t,r){if(arguments.length===1)if(ib(e)){var i=e;return this.filter(function(s,l){return!l.dir&&i.test(s)})}else{var a=this.files[this.root+e];return a&&!a.dir?a:null}else e=this.root+e,ob.call(this,e,t,r);return this},"file"),folder:n(function(e){if(!e)return this;if(ib(e))return this.filter(function(a,s){return s.dir&&e.test(a)});var t=this.root+e,r=lb.call(this,t),i=this.clone();return i.root=r.name,i},"folder"),remove:n(function(e){e=this.root+e;var t=this.files[e];if(t||(e.slice(-1)!=="/"&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(a,s){return s.name.slice(0,e.length)===e}),i=0;i<r.length;i++)delete this.files[r[i].name];return this},"remove"),generate:n(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"generate"),generateInternalStream:n(function(e){var t,r={};try{if(r=xo.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:CC.utf8encode}),r.type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),r.type==="binarystring"&&(r.type="string"),!r.type)throw new Error("No output type specified.");xo.checkSupport(r.type),(r.platform==="darwin"||r.platform==="freebsd"||r.platform==="linux"||r.platform==="sunos")&&(r.platform="UNIX"),r.platform==="win32"&&(r.platform="DOS");var i=r.comment||this.comment||"";t=PC.generateWorker(this,r,i)}catch(a){t=new nb("error"),t.error(a)}return new IC(t,r.type||"string",r.mimeType)},"generateInternalStream"),generateAsync:n(function(e,t){return this.generateInternalStream(e).accumulate(t)},"generateAsync"),generateNodeStream:n(function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)},"generateNodeStream")};fb.exports=FC});var kc=R((lL,cb)=>{"use strict";var LC=le();function db(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}n(db,"DataReader");db.prototype={checkOffset:n(function(e){this.checkIndex(this.index+e)},"checkOffset"),checkIndex:n(function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},"checkIndex"),setIndex:n(function(e){this.checkIndex(e),this.index=e},"setIndex"),skip:n(function(e){this.setIndex(this.index+e)},"skip"),byteAt:n(function(){},"byteAt"),readInt:n(function(e){var t=0,r;for(this.checkOffset(e),r=this.index+e-1;r>=this.index;r--)t=(t<<8)+this.byteAt(r);return this.index+=e,t},"readInt"),readString:n(function(e){return LC.transformTo("string",this.readData(e))},"readString"),readData:n(function(){},"readData"),lastIndexOfSignature:n(function(){},"lastIndexOfSignature"),readAndCheckSignature:n(function(){},"readAndCheckSignature"),readDate:n(function(){var e=this.readInt(4);return new Date(Date.UTC((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1))},"readDate")};cb.exports=db});var Tc=R((uL,pb)=>{"use strict";var hb=kc(),zC=le();function Zn(e){hb.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}n(Zn,"ArrayReader");zC.inherits(Zn,hb);Zn.prototype.byteAt=function(e){return this.data[this.zero+e]};Zn.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),a=e.charCodeAt(3),s=this.length-4;s>=0;--s)if(this.data[s]===t&&this.data[s+1]===r&&this.data[s+2]===i&&this.data[s+3]===a)return s-this.zero;return-1};Zn.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),a=e.charCodeAt(3),s=this.readData(4);return t===s[0]&&r===s[1]&&i===s[2]&&a===s[3]};Zn.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};pb.exports=Zn});var gb=R((cL,mb)=>{"use strict";var _b=kc(),qC=le();function Hn(e){_b.call(this,e)}n(Hn,"StringReader");qC.inherits(Hn,_b);Hn.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};Hn.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};Hn.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};Hn.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};mb.exports=Hn});var Ac=R((pL,bb)=>{"use strict";var vb=Tc(),MC=le();function Rc(e){vb.call(this,e)}n(Rc,"Uint8ArrayReader");MC.inherits(Rc,vb);Rc.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};bb.exports=Rc});var Sb=R((mL,wb)=>{"use strict";var yb=Ac(),NC=le();function Cc(e){yb.call(this,e)}n(Cc,"NodeBufferReader");NC.inherits(Cc,yb);Cc.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};wb.exports=Cc});var Ic=R((vL,Eb)=>{"use strict";var Fl=le(),xb=hr(),UC=Tc(),WC=gb(),jC=Sb(),ZC=Ac();Eb.exports=function(e){var t=Fl.getTypeOf(e);return Fl.checkSupport(t),t==="string"&&!xb.uint8array?new WC(e):t==="nodebuffer"?new jC(e):xb.uint8array?new ZC(Fl.transformTo("uint8array",e)):new UC(Fl.transformTo("array",e))}});var Ab=R((bL,Rb)=>{"use strict";var Oc=Ic(),Kr=le(),HC=hl(),kb=cl(),Ll=In(),zl=Sc(),$C=hr(),YC=0,GC=3,VC=n(function(e){for(var t in zl)if(Object.prototype.hasOwnProperty.call(zl,t)&&zl[t].magic===e)return zl[t];return null},"findCompression");function Tb(e,t){this.options=e,this.loadOptions=t}n(Tb,"ZipEntry");Tb.prototype={isEncrypted:n(function(){return(this.bitFlag&1)===1},"isEncrypted"),useUTF8:n(function(){return(this.bitFlag&2048)===2048},"useUTF8"),readLocalPart:n(function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(t=VC(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+Kr.pretty(this.compressionMethod)+" unknown (inner file : "+Kr.transformTo("string",this.fileName)+")");this.decompressed=new HC(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},"readLocalPart"),readCentralPart:n(function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},"readCentralPart"),processAttributes:n(function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),e===YC&&(this.dosPermissions=this.externalFileAttributes&63),e===GC&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},"processAttributes"),parseZIP64ExtraField:n(function(){if(this.extraFields[1]){var e=Oc(this.extraFields[1].value);this.uncompressedSize===Kr.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===Kr.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===Kr.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===Kr.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},"parseZIP64ExtraField"),readExtraFields:n(function(e){var t=e.index+this.extraFieldsLength,r,i,a;for(this.extraFields||(this.extraFields={});e.index+4<t;)r=e.readInt(2),i=e.readInt(2),a=e.readData(i),this.extraFields[r]={id:r,length:i,value:a};e.setIndex(t)},"readExtraFields"),handleUTF8:n(function(){var e=$C.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Ll.utf8decode(this.fileName),this.fileCommentStr=Ll.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var r=Kr.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var i=this.findExtraFieldUnicodeComment();if(i!==null)this.fileCommentStr=i;else{var a=Kr.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},"handleUTF8"),findExtraFieldUnicodePath:n(function(){var e=this.extraFields[28789];if(e){var t=Oc(e.value);return t.readInt(1)!==1||kb(this.fileName)!==t.readInt(4)?null:Ll.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodePath"),findExtraFieldUnicodeComment:n(function(){var e=this.extraFields[25461];if(e){var t=Oc(e.value);return t.readInt(1)!==1||kb(this.fileComment)!==t.readInt(4)?null:Ll.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodeComment")};Rb.exports=Tb});var Ob=R((wL,Ib)=>{"use strict";var KC=Ic(),br=le(),Tt=xc(),XC=Ab(),JC=hr();function Cb(e){this.files=[],this.loadOptions=e}n(Cb,"ZipEntries");Cb.prototype={checkSignature:n(function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+br.pretty(t)+", expected "+br.pretty(e)+")")}},"checkSignature"),isSignature:n(function(e,t){var r=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4),a=i===t;return this.reader.setIndex(r),a},"isSignature"),readBlockEndOfCentral:n(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 e=this.reader.readData(this.zipCommentLength),t=JC.uint8array?"uint8array":"array",r=br.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},"readBlockEndOfCentral"),readBlockZip64EndOfCentral:n(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 e=this.zip64EndOfCentralSize-44,t=0,r,i,a;t<e;)r=this.reader.readInt(2),i=this.reader.readInt(4),a=this.reader.readData(i),this.zip64ExtensibleData[r]={id:r,length:i,value:a}},"readBlockZip64EndOfCentral"),readBlockZip64EndOfCentralLocator:n(function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},"readBlockZip64EndOfCentralLocator"),readLocalFiles:n(function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(Tt.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},"readLocalFiles"),readCentralDir:n(function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(Tt.CENTRAL_FILE_HEADER);)e=new XC({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},"readCentralDir"),readEndOfCentral:n(function(){var e=this.reader.lastIndexOfSignature(Tt.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,Tt.LOCAL_FILE_HEADER);throw t?new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(e);var r=e;if(this.checkSignature(Tt.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===br.MAX_VALUE_16BITS||this.diskWithCentralDirStart===br.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===br.MAX_VALUE_16BITS||this.centralDirRecords===br.MAX_VALUE_16BITS||this.centralDirSize===br.MAX_VALUE_32BITS||this.centralDirOffset===br.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(Tt.ZIP64_CENTRAL_DIRECTORY_LOCATOR),e<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(Tt.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,Tt.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(Tt.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(Tt.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var a=r-i;if(a>0)this.isSignature(r,Tt.CENTRAL_FILE_HEADER)||(this.reader.zero=a);else if(a<0)throw new Error("Corrupted zip: missing "+Math.abs(a)+" bytes.")},"readEndOfCentral"),prepareReader:n(function(e){this.reader=KC(e)},"prepareReader"),load:n(function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()},"load")};Ib.exports=Cb});var Bb=R((xL,Db)=>{"use strict";var Pc=le(),ql=Rn(),QC=In(),e2=Ob(),t2=Dd(),Pb=Xa();function r2(e){return new ql.Promise(function(t,r){var i=e.decompressed.getContentWorker().pipe(new t2);i.on("error",function(a){r(a)}).on("end",function(){i.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}n(r2,"checkEntryCRC32");Db.exports=function(e,t){var r=this;return t=Pc.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:QC.utf8decode}),Pb.isNode&&Pb.isStream(e)?ql.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Pc.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(i){var a=new e2(t);return a.load(i),a}).then(n(function(a){var s=[ql.Promise.resolve(a)],l=a.files;if(t.checkCRC32)for(var d=0;d<l.length;d++)s.push(r2(l[d]));return ql.Promise.all(s)},"checkCRC32")).then(n(function(a){for(var s=a.shift(),l=s.files,d=0;d<l.length;d++){var p=l[d],u=p.fileNameStr,c=Pc.resolve(p.fileNameStr);r.file(c,p.decompressed,{binary:!0,optimizedBinaryString:!0,date:p.date,dir:p.dir,comment:p.fileCommentStr.length?p.fileCommentStr:null,unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions,createFolders:t.createFolders}),p.dir||(r.file(c).unsafeOriginalName=u)}return s.zipComment.length&&(r.comment=s.zipComment),r},"addFiles"))}});var Lb=R((kL,Fb)=>{"use strict";function lt(){if(!(this instanceof lt))return new lt;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new lt;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}n(lt,"JSZip");lt.prototype=ub();lt.prototype.loadAsync=Bb();lt.support=hr();lt.defaults=Id();lt.version="3.10.1";lt.loadAsync=function(e,t){return new lt().loadAsync(e,t)};lt.external=Rn();Fb.exports=lt});var Eo=R((IL,Bc)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Bc.exports={nextTick:i2}:Bc.exports=process;function i2(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var a=arguments.length,s,l;switch(a){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(n(function(){e.call(null,t)},"afterTickOne"));case 3:return process.nextTick(n(function(){e.call(null,t,r)},"afterTickTwo"));case 4:return process.nextTick(n(function(){e.call(null,t,r,i)},"afterTickThree"));default:for(s=new Array(a-1),l=0;l<s.length;)s[l++]=arguments[l];return process.nextTick(n(function(){e.apply(null,s)},"afterTick"))}}n(i2,"nextTick")});var Ub=R((PL,Nb)=>{var n2={}.toString;Nb.exports=Array.isArray||function(e){return n2.call(e)=="[object Array]"}});var Fc=R((DL,Wb)=>{Wb.exports=require("stream")});var ko=R((Lc,Zb)=>{var Nl=require("buffer"),yr=Nl.Buffer;function jb(e,t){for(var r in e)t[r]=e[r]}n(jb,"copyProps");yr.from&&yr.alloc&&yr.allocUnsafe&&yr.allocUnsafeSlow?Zb.exports=Nl:(jb(Nl,Lc),Lc.Buffer=$n);function $n(e,t,r){return yr(e,t,r)}n($n,"SafeBuffer");jb(yr,$n);$n.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return yr(e,t,r)};$n.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=yr(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};$n.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return yr(e)};$n.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Nl.SlowBuffer(e)}});var Yn=R(Re=>{function a2(e){return Array.isArray?Array.isArray(e):Ul(e)==="[object Array]"}n(a2,"isArray");Re.isArray=a2;function o2(e){return typeof e=="boolean"}n(o2,"isBoolean");Re.isBoolean=o2;function s2(e){return e===null}n(s2,"isNull");Re.isNull=s2;function l2(e){return e==null}n(l2,"isNullOrUndefined");Re.isNullOrUndefined=l2;function f2(e){return typeof e=="number"}n(f2,"isNumber");Re.isNumber=f2;function u2(e){return typeof e=="string"}n(u2,"isString");Re.isString=u2;function d2(e){return typeof e=="symbol"}n(d2,"isSymbol");Re.isSymbol=d2;function c2(e){return e===void 0}n(c2,"isUndefined");Re.isUndefined=c2;function h2(e){return Ul(e)==="[object RegExp]"}n(h2,"isRegExp");Re.isRegExp=h2;function p2(e){return typeof e=="object"&&e!==null}n(p2,"isObject");Re.isObject=p2;function _2(e){return Ul(e)==="[object Date]"}n(_2,"isDate");Re.isDate=_2;function m2(e){return Ul(e)==="[object Error]"||e instanceof Error}n(m2,"isError");Re.isError=m2;function g2(e){return typeof e=="function"}n(g2,"isFunction");Re.isFunction=g2;function v2(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}n(v2,"isPrimitive");Re.isPrimitive=v2;Re.isBuffer=require("buffer").Buffer.isBuffer;function Ul(e){return Object.prototype.toString.call(e)}n(Ul,"objectToString")});var Hb=R((zL,zc)=>{typeof Object.create=="function"?zc.exports=n(function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):zc.exports=n(function(t,r){if(r){t.super_=r;var i=n(function(){},"TempCtor");i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}},"inherits")});var Gn=R((ML,Mc)=>{try{if(qc=require("util"),typeof qc.inherits!="function")throw"";Mc.exports=qc.inherits}catch{Mc.exports=Hb()}var qc});var Yb=R((NL,Nc)=>{"use strict";function b2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n(b2,"_classCallCheck");var $b=ko().Buffer,To=require("util");function y2(e,t,r){e.copy(t,r)}n(y2,"copyBuffer");Nc.exports=function(){function e(){b2(this,e),this.head=null,this.tail=null,this.length=0}return n(e,"BufferList"),e.prototype.push=n(function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},"push"),e.prototype.unshift=n(function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},"unshift"),e.prototype.shift=n(function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},"shift"),e.prototype.clear=n(function(){this.head=this.tail=null,this.length=0},"clear"),e.prototype.join=n(function(r){if(this.length===0)return"";for(var i=this.head,a=""+i.data;i=i.next;)a+=r+i.data;return a},"join"),e.prototype.concat=n(function(r){if(this.length===0)return $b.alloc(0);for(var i=$b.allocUnsafe(r>>>0),a=this.head,s=0;a;)y2(a.data,i,s),s+=a.data.length,a=a.next;return i},"concat"),e}();To&&To.inspect&&To.inspect.custom&&(Nc.exports.prototype[To.inspect.custom]=function(){var e=To.inspect({length:this.length});return this.constructor.name+" "+e})});var Uc=R((WL,Gb)=>{"use strict";var Wl=Eo();function w2(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Wl.nextTick(jl,this,e)):Wl.nextTick(jl,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,Wl.nextTick(jl,r,s)):Wl.nextTick(jl,r,s):t&&t(s)}),this)}n(w2,"destroy");function S2(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}n(S2,"undestroy");function jl(e,t){e.emit("error",t)}n(jl,"emitErrorNT");Gb.exports={destroy:w2,undestroy:S2}});var Kb=R((ZL,Vb)=>{Vb.exports=require("util").deprecate});var jc=R((HL,ny)=>{"use strict";var Li=Eo();ny.exports=_e;function Jb(e){var t=this;this.next=null,this.entry=null,this.finish=function(){N2(t,e)}}n(Jb,"CorkedRequest");var x2=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Li.nextTick,Vn;_e.WritableState=Ao;var Qb=Object.create(Yn());Qb.inherits=Gn();var E2={deprecate:Kb()},ey=Fc(),Hl=ko().Buffer,k2=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function T2(e){return Hl.from(e)}n(T2,"_uint8ArrayToBuffer");function R2(e){return Hl.isBuffer(e)||e instanceof k2}n(R2,"_isUint8Array");var ty=Uc();Qb.inherits(_e,ey);function A2(){}n(A2,"nop");function Ao(e,t){Vn=Vn||zi(),e=e||{};var r=t instanceof Vn;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,a=e.writableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(a||a===0)?this.highWaterMark=a:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=e.decodeStrings===!1;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(d){F2(t,d)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Jb(this)}n(Ao,"WritableState");Ao.prototype.getBuffer=n(function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r},"getBuffer");(function(){try{Object.defineProperty(Ao.prototype,"buffer",{get:E2.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Zl;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Zl=Function.prototype[Symbol.hasInstance],Object.defineProperty(_e,Symbol.hasInstance,{value:n(function(e){return Zl.call(this,e)?!0:this!==_e?!1:e&&e._writableState instanceof Ao},"value")})):Zl=n(function(e){return e instanceof this},"realHasInstance");function _e(e){if(Vn=Vn||zi(),!Zl.call(_e,this)&&!(this instanceof Vn))return new _e(e);this._writableState=new Ao(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),ey.call(this)}n(_e,"Writable");_e.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function C2(e,t){var r=new Error("write after end");e.emit("error",r),Li.nextTick(t,r)}n(C2,"writeAfterEnd");function I2(e,t,r,i){var a=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),Li.nextTick(i,s),a=!1),a}n(I2,"validChunk");_e.prototype.write=function(e,t,r){var i=this._writableState,a=!1,s=!i.objectMode&&R2(e);return s&&!Hl.isBuffer(e)&&(e=T2(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=A2),i.ended?C2(this,r):(s||I2(this,i,e,r))&&(i.pendingcb++,a=P2(this,i,s,e,t,r)),a};_e.prototype.cork=function(){var e=this._writableState;e.corked++};_e.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&ry(this,e))};_e.prototype.setDefaultEncoding=n(function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},"setDefaultEncoding");function O2(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Hl.from(t,r)),t}n(O2,"decodeChunk");Object.defineProperty(_e.prototype,"writableHighWaterMark",{enumerable:!1,get:n(function(){return this._writableState.highWaterMark},"get")});function P2(e,t,r,i,a,s){if(!r){var l=O2(t,i,a);i!==l&&(r=!0,a="buffer",i=l)}var d=t.objectMode?1:i.length;t.length+=d;var p=t.length<t.highWaterMark;if(p||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:a,isBuf:r,callback:s,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Wc(e,t,!1,d,i,a,s);return p}n(P2,"writeOrBuffer");function Wc(e,t,r,i,a,s,l){t.writelen=i,t.writecb=l,t.writing=!0,t.sync=!0,r?e._writev(a,t.onwrite):e._write(a,s,t.onwrite),t.sync=!1}n(Wc,"doWrite");function D2(e,t,r,i,a){--t.pendingcb,r?(Li.nextTick(a,i),Li.nextTick(Ro,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(a(i),e._writableState.errorEmitted=!0,e.emit("error",i),Ro(e,t))}n(D2,"onwriteError");function B2(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}n(B2,"onwriteStateUpdate");function F2(e,t){var r=e._writableState,i=r.sync,a=r.writecb;if(B2(r),t)D2(e,r,i,t,a);else{var s=iy(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&ry(e,r),i?x2(Xb,e,r,s,a):Xb(e,r,s,a)}}n(F2,"onwrite");function Xb(e,t,r,i){r||L2(e,t),t.pendingcb--,i(),Ro(e,t)}n(Xb,"afterWrite");function L2(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}n(L2,"onwriteDrain");function ry(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,a=new Array(i),s=t.corkedRequestsFree;s.entry=r;for(var l=0,d=!0;r;)a[l]=r,r.isBuf||(d=!1),r=r.next,l+=1;a.allBuffers=d,Wc(e,t,!0,t.length,a,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new Jb(t),t.bufferedRequestCount=0}else{for(;r;){var p=r.chunk,u=r.encoding,c=r.callback,E=t.objectMode?1:p.length;if(Wc(e,t,!1,E,p,u,c),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}n(ry,"clearBuffer");_e.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};_e.prototype._writev=null;_e.prototype.end=function(e,t,r){var i=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||M2(this,i,r)};function iy(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}n(iy,"needFinish");function z2(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),Ro(e,t)})}n(z2,"callFinal");function q2(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Li.nextTick(z2,e,t)):(t.prefinished=!0,e.emit("prefinish")))}n(q2,"prefinish");function Ro(e,t){var r=iy(t);return r&&(q2(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}n(Ro,"finishMaybe");function M2(e,t,r){t.ending=!0,Ro(e,t),r&&(t.finished?Li.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}n(M2,"endWritable");function N2(e,t,r){var i=e.entry;for(e.entry=null;i;){var a=i.callback;t.pendingcb--,a(r),i=i.next}t.corkedRequestsFree.next=e}n(N2,"onCorkedFinish");Object.defineProperty(_e.prototype,"destroyed",{get:n(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get"),set:n(function(e){this._writableState&&(this._writableState.destroyed=e)},"set")});_e.prototype.destroy=ty.destroy;_e.prototype._undestroy=ty.undestroy;_e.prototype._destroy=function(e,t){this.end(),t(e)}});var zi=R((YL,ly)=>{"use strict";var ay=Eo(),U2=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};ly.exports=wr;var oy=Object.create(Yn());oy.inherits=Gn();var sy=$c(),Hc=jc();oy.inherits(wr,sy);for(Zc=U2(Hc.prototype),$l=0;$l<Zc.length;$l++)Yl=Zc[$l],wr.prototype[Yl]||(wr.prototype[Yl]=Hc.prototype[Yl]);var Zc,Yl,$l;function wr(e){if(!(this instanceof wr))return new wr(e);sy.call(this,e),Hc.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",W2)}n(wr,"Duplex");Object.defineProperty(wr.prototype,"writableHighWaterMark",{enumerable:!1,get:n(function(){return this._writableState.highWaterMark},"get")});function W2(){this.allowHalfOpen||this._writableState.ended||ay.nextTick(j2,this)}n(W2,"onend");function j2(e){e.end()}n(j2,"onEndNT");Object.defineProperty(wr.prototype,"destroyed",{get:n(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get"),set:n(function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)},"set")});wr.prototype._destroy=function(e,t){this.push(null),this.end(),ay.nextTick(t,e)}});var Vc=R(uy=>{"use strict";var Gc=ko().Buffer,fy=Gc.isEncoding||function(e){switch(e=""+e,e&&e.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 Z2(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}n(Z2,"_normalizeEncoding");function H2(e){var t=Z2(e);if(typeof t!="string"&&(Gc.isEncoding===fy||!fy(e)))throw new Error("Unknown encoding: "+e);return t||e}n(H2,"normalizeEncoding");uy.StringDecoder=Co;function Co(e){this.encoding=H2(e);var t;switch(this.encoding){case"utf16le":this.text=X2,this.end=J2,t=4;break;case"utf8":this.fillLast=G2,t=4;break;case"base64":this.text=Q2,this.end=eI,t=3;break;default:this.write=tI,this.end=rI;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Gc.allocUnsafe(t)}n(Co,"StringDecoder");Co.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};Co.prototype.end=K2;Co.prototype.text=V2;Co.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Yc(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}n(Yc,"utf8CheckByte");function $2(e,t,r){var i=t.length-1;if(i<r)return 0;var a=Yc(t[i]);return a>=0?(a>0&&(e.lastNeed=a-1),a):--i<r||a===-2?0:(a=Yc(t[i]),a>=0?(a>0&&(e.lastNeed=a-2),a):--i<r||a===-2?0:(a=Yc(t[i]),a>=0?(a>0&&(a===2?a=0:e.lastNeed=a-3),a):0))}n($2,"utf8CheckIncomplete");function Y2(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}n(Y2,"utf8CheckExtraBytes");function G2(e){var t=this.lastTotal-this.lastNeed,r=Y2(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}n(G2,"utf8FillLast");function V2(e,t){var r=$2(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}n(V2,"utf8Text");function K2(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}n(K2,"utf8End");function X2(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}n(X2,"utf16Text");function J2(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}n(J2,"utf16End");function Q2(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}n(Q2,"base64Text");function eI(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}n(eI,"base64End");function tI(e){return e.toString(this.encoding)}n(tI,"simpleWrite");function rI(e){return e&&e.length?this.write(e):""}n(rI,"simpleEnd")});var $c=R((JL,Sy)=>{"use strict";var Xn=Eo();Sy.exports=ne;var iI=Ub(),Io;ne.ReadableState=gy;var XL=require("events").EventEmitter,py=n(function(e,t){return e.listeners(t).length},"EElistenerCount"),eh=Fc(),Oo=ko().Buffer,nI=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function aI(e){return Oo.from(e)}n(aI,"_uint8ArrayToBuffer");function oI(e){return Oo.isBuffer(e)||e instanceof nI}n(oI,"_isUint8Array");var _y=Object.create(Yn());_y.inherits=Gn();var Kc=require("util"),K=void 0;Kc&&Kc.debuglog?K=Kc.debuglog("stream"):K=n(function(){},"debug");var sI=Yb(),my=Uc(),Kn;_y.inherits(ne,eh);var Xc=["error","close","destroy","pause","resume"];function lI(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):iI(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}n(lI,"prependListener");function gy(e,t){Io=Io||zi(),e=e||{};var r=t instanceof Io;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(a||a===0)?this.highWaterMark=a:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new sI,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Kn||(Kn=Vc().StringDecoder),this.decoder=new Kn(e.encoding),this.encoding=e.encoding)}n(gy,"ReadableState");function ne(e){if(Io=Io||zi(),!(this instanceof ne))return new ne(e);this._readableState=new gy(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),eh.call(this)}n(ne,"Readable");Object.defineProperty(ne.prototype,"destroyed",{get:n(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get"),set:n(function(e){this._readableState&&(this._readableState.destroyed=e)},"set")});ne.prototype.destroy=my.destroy;ne.prototype._undestroy=my.undestroy;ne.prototype._destroy=function(e,t){this.push(null),t(e)};ne.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Oo.from(e,t),t=""),i=!0),vy(this,e,t,!1,i)};ne.prototype.unshift=function(e){return vy(this,e,null,!0,!1)};function vy(e,t,r,i,a){var s=e._readableState;if(t===null)s.reading=!1,cI(e,s);else{var l;a||(l=fI(s,t)),l?e.emit("error",l):s.objectMode||t&&t.length>0?(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==Oo.prototype&&(t=aI(t)),i?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Jc(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?Jc(e,s,t,!1):by(e,s)):Jc(e,s,t,!1))):i||(s.reading=!1)}return uI(s)}n(vy,"readableAddChunk");function Jc(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&Gl(e)),by(e,t)}n(Jc,"addChunk");function fI(e,t){var r;return!oI(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}n(fI,"chunkInvalid");function uI(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}n(uI,"needMoreData");ne.prototype.isPaused=function(){return this._readableState.flowing===!1};ne.prototype.setEncoding=function(e){return Kn||(Kn=Vc().StringDecoder),this._readableState.decoder=new Kn(e),this._readableState.encoding=e,this};var dy=8388608;function dI(e){return e>=dy?e=dy:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}n(dI,"computeNewHighWaterMark");function cy(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=dI(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}n(cy,"howMuchToRead");ne.prototype.read=function(e){K("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return K("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Qc(this):Gl(this),null;if(e=cy(e,t),e===0&&t.ended)return t.length===0&&Qc(this),null;var i=t.needReadable;K("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,K("length less than watermark",i)),t.ended||t.reading?(i=!1,K("reading or ended",i)):i&&(K("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=cy(r,t)));var a;return e>0?a=yy(e,t):a=null,a===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Qc(this)),a!==null&&this.emit("data",a),a};function cI(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,Gl(e)}}n(cI,"onEofChunk");function Gl(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(K("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Xn.nextTick(hy,e):hy(e))}n(Gl,"emitReadable");function hy(e){K("emit readable"),e.emit("readable"),th(e)}n(hy,"emitReadable_");function by(e,t){t.readingMore||(t.readingMore=!0,Xn.nextTick(hI,e,t))}n(by,"maybeReadMore");function hI(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(K("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}n(hI,"maybeReadMore_");ne.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};ne.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,K("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=a?d:T;i.endEmitted?Xn.nextTick(s):r.once("end",s),e.on("unpipe",l);function l(y,x){K("onunpipe"),y===r&&x&&x.hasUnpiped===!1&&(x.hasUnpiped=!0,c())}n(l,"onunpipe");function d(){K("onend"),e.end()}n(d,"onend");var p=pI(r);e.on("drain",p);var u=!1;function c(){K("cleanup"),e.removeListener("close",b),e.removeListener("finish",A),e.removeListener("drain",p),e.removeListener("error",g),e.removeListener("unpipe",l),r.removeListener("end",d),r.removeListener("end",T),r.removeListener("data",m),u=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&p()}n(c,"cleanup");var E=!1;r.on("data",m);function m(y){K("ondata"),E=!1;var x=e.write(y);x===!1&&!E&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&wy(i.pipes,e)!==-1)&&!u&&(K("false write response, pause",i.awaitDrain),i.awaitDrain++,E=!0),r.pause())}n(m,"ondata");function g(y){K("onerror",y),T(),e.removeListener("error",g),py(e,"error")===0&&e.emit("error",y)}n(g,"onerror"),lI(e,"error",g);function b(){e.removeListener("finish",A),T()}n(b,"onclose"),e.once("close",b);function A(){K("onfinish"),e.removeListener("close",b),T()}n(A,"onfinish"),e.once("finish",A);function T(){K("unpipe"),r.unpipe(e)}return n(T,"unpipe"),e.emit("pipe",r),i.flowing||(K("pipe resume"),r.resume()),e};function pI(e){return function(){var t=e._readableState;K("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&py(e,"data")&&(t.flowing=!0,th(e))}}n(pI,"pipeOnDrain");ne.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<a;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var l=wy(t.pipes,e);return l===-1?this:(t.pipes.splice(l,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};ne.prototype.on=function(e,t){var r=eh.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&Gl(this):Xn.nextTick(_I,this))}return r};ne.prototype.addListener=ne.prototype.on;function _I(e){K("readable nexttick read 0"),e.read(0)}n(_I,"nReadingNextTick");ne.prototype.resume=function(){var e=this._readableState;return e.flowing||(K("resume"),e.flowing=!0,mI(this,e)),this};function mI(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Xn.nextTick(gI,e,t))}n(mI,"resume");function gI(e,t){t.reading||(K("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),th(e),t.flowing&&!t.reading&&e.read(0)}n(gI,"resume_");ne.prototype.pause=function(){return K("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(K("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function th(e){var t=e._readableState;for(K("flow",t.flowing);t.flowing&&e.read()!==null;);}n(th,"flow");ne.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(K("wrapped end"),r.decoder&&!r.ended){var l=r.decoder.end();l&&l.length&&t.push(l)}t.push(null)}),e.on("data",function(l){if(K("wrapped data"),r.decoder&&(l=r.decoder.write(l)),!(r.objectMode&&l==null)&&!(!r.objectMode&&(!l||!l.length))){var d=t.push(l);d||(i=!0,e.pause())}});for(var a in e)this[a]===void 0&&typeof e[a]=="function"&&(this[a]=function(l){return function(){return e[l].apply(e,arguments)}}(a));for(var s=0;s<Xc.length;s++)e.on(Xc[s],this.emit.bind(this,Xc[s]));return this._read=function(l){K("wrapped _read",l),i&&(i=!1,e.resume())},this};Object.defineProperty(ne.prototype,"readableHighWaterMark",{enumerable:!1,get:n(function(){return this._readableState.highWaterMark},"get")});ne._fromList=yy;function yy(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=vI(e,t.buffer,t.decoder),r}n(yy,"fromList");function vI(e,t,r){var i;return e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?i=t.shift():i=r?bI(e,t):yI(e,t),i}n(vI,"fromListPartial");function bI(e,t){var r=t.head,i=1,a=r.data;for(e-=a.length;r=r.next;){var s=r.data,l=e>s.length?s.length:e;if(l===s.length?a+=s:a+=s.slice(0,e),e-=l,e===0){l===s.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(l));break}++i}return t.length-=i,a}n(bI,"copyFromBufferString");function yI(e,t){var r=Oo.allocUnsafe(e),i=t.head,a=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var s=i.data,l=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,l),e-=l,e===0){l===s.length?(++a,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=s.slice(l));break}++a}return t.length-=a,r}n(yI,"copyFromBuffer");function Qc(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Xn.nextTick(wI,t,e))}n(Qc,"endReadable");function wI(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}n(wI,"endReadableNT");function wy(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}n(wy,"indexOf")});var rh=R((ez,ky)=>{"use strict";ky.exports=Sr;var Vl=zi(),Ey=Object.create(Yn());Ey.inherits=Gn();Ey.inherits(Sr,Vl);function SI(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}n(SI,"afterTransform");function Sr(e){if(!(this instanceof Sr))return new Sr(e);Vl.call(this,e),this._transformState={afterTransform:SI.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",xI)}n(Sr,"Transform");function xI(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){xy(e,t,r)}):xy(this,null,null)}n(xI,"prefinish");Sr.prototype.push=function(e,t){return this._transformState.needTransform=!1,Vl.prototype.push.call(this,e,t)};Sr.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Sr.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};Sr.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Sr.prototype._destroy=function(e,t){var r=this;Vl.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function xy(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}n(xy,"done")});var Cy=R((rz,Ay)=>{"use strict";Ay.exports=Po;var Ty=rh(),Ry=Object.create(Yn());Ry.inherits=Gn();Ry.inherits(Po,Ty);function Po(e){if(!(this instanceof Po))return new Po(e);Ty.call(this,e)}n(Po,"PassThrough");Po.prototype._transform=function(e,t,r){r(null,e)}});var ih=R((xe,Kl)=>{var Yt=require("stream");process.env.READABLE_STREAM==="disable"&&Yt?(Kl.exports=Yt,xe=Kl.exports=Yt.Readable,xe.Readable=Yt.Readable,xe.Writable=Yt.Writable,xe.Duplex=Yt.Duplex,xe.Transform=Yt.Transform,xe.PassThrough=Yt.PassThrough,xe.Stream=Yt):(xe=Kl.exports=$c(),xe.Stream=Yt||xe,xe.Readable=xe,xe.Writable=jc(),xe.Duplex=zi(),xe.Transform=rh(),xe.PassThrough=Cy())});var xr=R(Ve=>{"use strict";Ve.base64=!0;Ve.array=!0;Ve.string=!0;Ve.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";Ve.nodebuffer=typeof Buffer<"u";Ve.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")Ve.blob=!1;else{nh=new ArrayBuffer(0);try{Ve.blob=new Blob([nh],{type:"application/zip"}).size===0}catch{try{Iy=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,ah=new Iy,ah.append(nh),Ve.blob=ah.getBlob("application/zip").size===0}catch{Ve.blob=!1}}}var nh,Iy,ah;try{Ve.nodestream=!!ih().Readable}catch{Ve.nodestream=!1}});var sh=R(oh=>{"use strict";var EI=fe(),kI=xr(),Gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";oh.encode=function(e){for(var t=[],r,i,a,s,l,d,p,u=0,c=e.length,E=c,m=EI.getTypeOf(e)!=="string";u<e.length;)E=c-u,m?(r=e[u++],i=u<c?e[u++]:0,a=u<c?e[u++]:0):(r=e.charCodeAt(u++),i=u<c?e.charCodeAt(u++):0,a=u<c?e.charCodeAt(u++):0),s=r>>2,l=(r&3)<<4|i>>4,d=E>1?(i&15)<<2|a>>6:64,p=E>2?a&63:64,t.push(Gt.charAt(s)+Gt.charAt(l)+Gt.charAt(d)+Gt.charAt(p));return t.join("")};oh.decode=function(e){var t,r,i,a,s,l,d,p=0,u=0,c="data:";if(e.substr(0,c.length)===c)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var E=e.length*3/4;if(e.charAt(e.length-1)===Gt.charAt(64)&&E--,e.charAt(e.length-2)===Gt.charAt(64)&&E--,E%1!==0)throw new Error("Invalid base64 input, bad content length.");var m;for(kI.uint8array?m=new Uint8Array(E|0):m=new Array(E|0);p<e.length;)a=Gt.indexOf(e.charAt(p++)),s=Gt.indexOf(e.charAt(p++)),l=Gt.indexOf(e.charAt(p++)),d=Gt.indexOf(e.charAt(p++)),t=a<<2|s>>4,r=(s&15)<<4|l>>2,i=(l&3)<<6|d,m[u++]=t,l!==64&&(m[u++]=r),d!==64&&(m[u++]=i);return m}});var Do=R((oz,Oy)=>{"use strict";Oy.exports={isNode:typeof Buffer<"u",newBufferFrom:n(function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e=="number")throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},"newBufferFrom"),allocBuffer:n(function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},"allocBuffer"),isBuffer:n(function(e){return Buffer.isBuffer(e)},"isBuffer"),isStream:n(function(e){return e&&typeof e.on=="function"&&typeof e.pause=="function"&&typeof e.resume=="function"},"isStream")}});var Fy=R((lz,By)=>{"use strict";var Py=global.MutationObserver||global.WebKitMutationObserver,Jn;process.browser?Py?(lh=0,Dy=new Py(Bo),fh=global.document.createTextNode(""),Dy.observe(fh,{characterData:!0}),Jn=n(function(){fh.data=lh=++lh%2},"scheduleDrain")):!global.setImmediate&&typeof global.MessageChannel<"u"?(uh=new global.MessageChannel,uh.port1.onmessage=Bo,Jn=n(function(){uh.port2.postMessage(0)},"scheduleDrain")):"document"in global&&"onreadystatechange"in global.document.createElement("script")?Jn=n(function(){var e=global.document.createElement("script");e.onreadystatechange=function(){Bo(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},global.document.documentElement.appendChild(e)},"scheduleDrain"):Jn=n(function(){setTimeout(Bo,0)},"scheduleDrain"):Jn=n(function(){process.nextTick(Bo)},"scheduleDrain");var lh,Dy,fh,uh,dh,Fo=[];function Bo(){dh=!0;for(var e,t,r=Fo.length;r;){for(t=Fo,Fo=[],e=-1;++e<r;)t[e]();r=Fo.length}dh=!1}n(Bo,"nextTick");By.exports=TI;function TI(e){Fo.push(e)===1&&!dh&&Jn()}n(TI,"immediate")});var Wy=R((uz,Uy)=>{"use strict";var Ly=Fy();function Qn(){}n(Qn,"INTERNAL");var Ae={},zy=["REJECTED"],ch=["FULFILLED"],qy=["PENDING"];process.browser||(Lo=["UNHANDLED"]);var Lo;Uy.exports=Xr;function Xr(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=qy,this.queue=[],this.outcome=void 0,process.browser||(this.handled=Lo),e!==Qn&&My(this,e)}n(Xr,"Promise");Xr.prototype.finally=function(e){if(typeof e!="function")return this;var t=this.constructor;return this.then(r,i);function r(a){function s(){return a}return n(s,"yes"),t.resolve(e()).then(s)}function i(a){function s(){throw a}return n(s,"no"),t.resolve(e()).then(s)}};Xr.prototype.catch=function(e){return this.then(null,e)};Xr.prototype.then=function(e,t){if(typeof e!="function"&&this.state===ch||typeof t!="function"&&this.state===zy)return this;var r=new this.constructor(Qn);if(process.browser||this.handled===Lo&&(this.handled=null),this.state!==qy){var i=this.state===ch?e:t;hh(r,i,this.outcome)}else this.queue.push(new zo(r,e,t));return r};function zo(e,t,r){this.promise=e,typeof t=="function"&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),typeof r=="function"&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}n(zo,"QueueItem");zo.prototype.callFulfilled=function(e){Ae.resolve(this.promise,e)};zo.prototype.otherCallFulfilled=function(e){hh(this.promise,this.onFulfilled,e)};zo.prototype.callRejected=function(e){Ae.reject(this.promise,e)};zo.prototype.otherCallRejected=function(e){hh(this.promise,this.onRejected,e)};function hh(e,t,r){Ly(function(){var i;try{i=t(r)}catch(a){return Ae.reject(e,a)}i===e?Ae.reject(e,new TypeError("Cannot resolve promise with itself")):Ae.resolve(e,i)})}n(hh,"unwrap");Ae.resolve=function(e,t){var r=Ny(RI,t);if(r.status==="error")return Ae.reject(e,r.value);var i=r.value;if(i)My(e,i);else{e.state=ch,e.outcome=t;for(var a=-1,s=e.queue.length;++a<s;)e.queue[a].callFulfilled(t)}return e};Ae.reject=function(e,t){e.state=zy,e.outcome=t,process.browser||e.handled===Lo&&Ly(function(){e.handled===Lo&&process.emit("unhandledRejection",t,e)});for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e};function RI(e){var t=e&&e.then;if(e&&(typeof e=="object"||typeof e=="function")&&typeof t=="function")return n(function(){t.apply(e,arguments)},"appyThen")}n(RI,"getThen");function My(e,t){var r=!1;function i(d){r||(r=!0,Ae.reject(e,d))}n(i,"onError");function a(d){r||(r=!0,Ae.resolve(e,d))}n(a,"onSuccess");function s(){t(a,i)}n(s,"tryToUnwrap");var l=Ny(s);l.status==="error"&&i(l.value)}n(My,"safelyResolveThenable");function Ny(e,t){var r={};try{r.value=e(t),r.status="success"}catch(i){r.status="error",r.value=i}return r}n(Ny,"tryCatch");Xr.resolve=AI;function AI(e){return e instanceof this?e:Ae.resolve(new this(Qn),e)}n(AI,"resolve");Xr.reject=CI;function CI(e){var t=new this(Qn);return Ae.reject(t,e)}n(CI,"reject");Xr.all=II;function II(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var a=new Array(r),s=0,l=-1,d=new this(Qn);++l<r;)p(e[l],l);return d;function p(u,c){t.resolve(u).then(E,function(m){i||(i=!0,Ae.reject(d,m))});function E(m){a[c]=m,++s===r&&!i&&(i=!0,Ae.resolve(d,a))}n(E,"resolveFromAll")}}n(II,"all");Xr.race=OI;function OI(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var a=-1,s=new this(Qn);++a<r;)l(e[a]);return s;function l(d){t.resolve(d).then(function(p){i||(i=!0,Ae.resolve(s,p))},function(p){i||(i=!0,Ae.reject(s,p))})}}n(OI,"race")});var ea=R((cz,jy)=>{"use strict";var ph=null;typeof Promise<"u"?ph=Promise:ph=Wy();jy.exports={Promise:ph}});var Hy=R(Zy=>{(function(e,t){"use strict";if(e.setImmediate)return;var r=1,i={},a=!1,s=e.document,l;function d(x){typeof x!="function"&&(x=new Function(""+x));for(var C=new Array(arguments.length-1),w=0;w<C.length;w++)C[w]=arguments[w+1];var S={callback:x,args:C};return i[r]=S,l(r),r++}n(d,"setImmediate");function p(x){delete i[x]}n(p,"clearImmediate");function u(x){var C=x.callback,w=x.args;switch(w.length){case 0:C();break;case 1:C(w[0]);break;case 2:C(w[0],w[1]);break;case 3:C(w[0],w[1],w[2]);break;default:C.apply(t,w);break}}n(u,"run");function c(x){if(a)setTimeout(c,0,x);else{var C=i[x];if(C){a=!0;try{u(C)}finally{p(x),a=!1}}}}n(c,"runIfPresent");function E(){l=n(function(x){process.nextTick(function(){c(x)})},"registerImmediate")}n(E,"installNextTickImplementation");function m(){if(e.postMessage&&!e.importScripts){var x=!0,C=e.onmessage;return e.onmessage=function(){x=!1},e.postMessage("","*"),e.onmessage=C,x}}n(m,"canUsePostMessage");function g(){var x="setImmediate$"+Math.random()+"$",C=n(function(w){w.source===e&&typeof w.data=="string"&&w.data.indexOf(x)===0&&c(+w.data.slice(x.length))},"onGlobalMessage");e.addEventListener?e.addEventListener("message",C,!1):e.attachEvent("onmessage",C),l=n(function(w){e.postMessage(x+w,"*")},"registerImmediate")}n(g,"installPostMessageImplementation");function b(){var x=new MessageChannel;x.port1.onmessage=function(C){var w=C.data;c(w)},l=n(function(C){x.port2.postMessage(C)},"registerImmediate")}n(b,"installMessageChannelImplementation");function A(){var x=s.documentElement;l=n(function(C){var w=s.createElement("script");w.onreadystatechange=function(){c(C),w.onreadystatechange=null,x.removeChild(w),w=null},x.appendChild(w)},"registerImmediate")}n(A,"installReadyStateChangeImplementation");function T(){l=n(function(x){setTimeout(c,0,x)},"registerImmediate")}n(T,"installSetTimeoutImplementation");var y=Object.getPrototypeOf&&Object.getPrototypeOf(e);y=y&&y.setTimeout?y:e,{}.toString.call(e.process)==="[object process]"?E():m()?g():e.MessageChannel?b():s&&"onreadystatechange"in s.createElement("script")?A():T(),y.setImmediate=d,y.clearImmediate=p})(typeof self>"u"?typeof global>"u"?Zy:global:self)});var fe=R(me=>{"use strict";var Jr=xr(),PI=sh(),ta=Do(),_h=ea();Hy();function DI(e){var t=null;return Jr.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),Jl(e,t)}n(DI,"string2binary");me.newBlob=function(e,t){me.checkSupport("blob");try{return new Blob([e],{type:t})}catch{try{var r=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,i=new r;return i.append(e),i.getBlob(t)}catch{throw new Error("Bug : can't construct the Blob.")}}};function qo(e){return e}n(qo,"identity");function Jl(e,t){for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)&255;return t}n(Jl,"stringToArrayLike");var Xl={stringifyByChunk:n(function(e,t,r){var i=[],a=0,s=e.length;if(s<=r)return String.fromCharCode.apply(null,e);for(;a<s;)t==="array"||t==="nodebuffer"?i.push(String.fromCharCode.apply(null,e.slice(a,Math.min(a+r,s)))):i.push(String.fromCharCode.apply(null,e.subarray(a,Math.min(a+r,s)))),a+=r;return i.join("")},"stringifyByChunk"),stringifyByChar:n(function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},"stringifyByChar"),applyCanBeUsed:{uint8array:function(){try{return Jr.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return Jr.nodebuffer&&String.fromCharCode.apply(null,ta.allocBuffer(1)).length===1}catch{return!1}}()}};function Mo(e){var t=65536,r=me.getTypeOf(e),i=!0;if(r==="uint8array"?i=Xl.applyCanBeUsed.uint8array:r==="nodebuffer"&&(i=Xl.applyCanBeUsed.nodebuffer),i)for(;t>1;)try{return Xl.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return Xl.stringifyByChar(e)}n(Mo,"arrayLikeToString");me.applyFromCharCode=Mo;function Ql(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}n(Ql,"arrayLikeToArrayLike");var Qr={};Qr.string={string:qo,array:n(function(e){return Jl(e,new Array(e.length))},"array"),arraybuffer:n(function(e){return Qr.string.uint8array(e).buffer},"arraybuffer"),uint8array:n(function(e){return Jl(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:n(function(e){return Jl(e,ta.allocBuffer(e.length))},"nodebuffer")};Qr.array={string:Mo,array:qo,arraybuffer:n(function(e){return new Uint8Array(e).buffer},"arraybuffer"),uint8array:n(function(e){return new Uint8Array(e)},"uint8array"),nodebuffer:n(function(e){return ta.newBufferFrom(e)},"nodebuffer")};Qr.arraybuffer={string:n(function(e){return Mo(new Uint8Array(e))},"string"),array:n(function(e){return Ql(new Uint8Array(e),new Array(e.byteLength))},"array"),arraybuffer:qo,uint8array:n(function(e){return new Uint8Array(e)},"uint8array"),nodebuffer:n(function(e){return ta.newBufferFrom(new Uint8Array(e))},"nodebuffer")};Qr.uint8array={string:Mo,array:n(function(e){return Ql(e,new Array(e.length))},"array"),arraybuffer:n(function(e){return e.buffer},"arraybuffer"),uint8array:qo,nodebuffer:n(function(e){return ta.newBufferFrom(e)},"nodebuffer")};Qr.nodebuffer={string:Mo,array:n(function(e){return Ql(e,new Array(e.length))},"array"),arraybuffer:n(function(e){return Qr.nodebuffer.uint8array(e).buffer},"arraybuffer"),uint8array:n(function(e){return Ql(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:qo};me.transformTo=function(e,t){if(t||(t=""),!e)return t;me.checkSupport(e);var r=me.getTypeOf(t),i=Qr[r][e](t);return i};me.resolve=function(e){for(var t=e.split("/"),r=[],i=0;i<t.length;i++){var a=t[i];a==="."||a===""&&i!==0&&i!==t.length-1||(a===".."?r.pop():r.push(a))}return r.join("/")};me.getTypeOf=function(e){if(typeof e=="string")return"string";if(Object.prototype.toString.call(e)==="[object Array]")return"array";if(Jr.nodebuffer&&ta.isBuffer(e))return"nodebuffer";if(Jr.uint8array&&e instanceof Uint8Array)return"uint8array";if(Jr.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer"};me.checkSupport=function(e){var t=Jr[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this platform")};me.MAX_VALUE_16BITS=65535;me.MAX_VALUE_32BITS=-1;me.pretty=function(e){var t="",r,i;for(i=0;i<(e||"").length;i++)r=e.charCodeAt(i),t+="\\x"+(r<16?"0":"")+r.toString(16).toUpperCase();return t};me.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})};me.inherits=function(e,t){var r=n(function(){},"Obj");r.prototype=t.prototype,e.prototype=new r};me.extend=function(){var e={},t,r;for(t=0;t<arguments.length;t++)for(r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&typeof e[r]>"u"&&(e[r]=arguments[t][r]);return e};me.prepareContent=function(e,t,r,i,a){var s=_h.Promise.resolve(t).then(function(l){var d=Jr.blob&&(l instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(l))!==-1);return d&&typeof FileReader<"u"?new _h.Promise(function(p,u){var c=new FileReader;c.onload=function(E){p(E.target.result)},c.onerror=function(E){u(E.target.error)},c.readAsArrayBuffer(l)}):l});return s.then(function(l){var d=me.getTypeOf(l);return d?(d==="arraybuffer"?l=me.transformTo("uint8array",l):d==="string"&&(a?l=PI.decode(l):r&&i!==!0&&(l=DI(l))),l):_h.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}});var Ke=R((gz,Yy)=>{"use strict";function $y(e){this.name=e||"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}n($y,"GenericWorker");$y.prototype={push:n(function(e){this.emit("data",e)},"push"),end:n(function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},"end"),error:n(function(e){return this.isFinished?!1:(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},"error"),on:n(function(e,t){return this._listeners[e].push(t),this},"on"),cleanUp:n(function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},"cleanUp"),emit:n(function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},"emit"),pipe:n(function(e){return e.registerPrevious(this)},"pipe"),registerPrevious:n(function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.end()}),e.on("error",function(r){t.error(r)}),this},"registerPrevious"),pause:n(function(){return this.isPaused||this.isFinished?!1:(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},"pause"),resume:n(function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},"resume"),flush:n(function(){},"flush"),processChunk:n(function(e){this.push(e)},"processChunk"),withStreamInfo:n(function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},"withStreamInfo"),mergeStreamInfo:n(function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},"mergeStreamInfo"),lock:n(function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},"lock"),toString:n(function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e},"toString")};Yy.exports=$y});var ia=R(ei=>{"use strict";var ra=fe(),qi=xr(),BI=Do(),ef=Ke(),No=new Array(256);for(Er=0;Er<256;Er++)No[Er]=Er>=252?6:Er>=248?5:Er>=240?4:Er>=224?3:Er>=192?2:1;var Er;No[254]=No[254]=1;var FI=n(function(e){var t,r,i,a,s,l=e.length,d=0;for(a=0;a<l;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<l&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),d+=r<128?1:r<2048?2:r<65536?3:4;for(qi.uint8array?t=new Uint8Array(d):t=new Array(d),s=0,a=0;s<d;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<l&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[s++]=r:r<2048?(t[s++]=192|r>>>6,t[s++]=128|r&63):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|r&63):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|r&63);return t},"string2buf"),LI=n(function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+No[e[r]]>t?r:t},"utf8border"),zI=n(function(e){var t,r,i,a,s=e.length,l=new Array(s*2);for(r=0,t=0;t<s;){if(i=e[t++],i<128){l[r++]=i;continue}if(a=No[i],a>4){l[r++]=65533,t+=a-1;continue}for(i&=a===2?31:a===3?15:7;a>1&&t<s;)i=i<<6|e[t++]&63,a--;if(a>1){l[r++]=65533;continue}i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|i&1023)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),ra.applyFromCharCode(l)},"buf2string");ei.utf8encode=n(function(t){return qi.nodebuffer?BI.newBufferFrom(t,"utf-8"):FI(t)},"utf8encode");ei.utf8decode=n(function(t){return qi.nodebuffer?ra.transformTo("nodebuffer",t).toString("utf-8"):(t=ra.transformTo(qi.uint8array?"uint8array":"array",t),zI(t))},"utf8decode");function tf(){ef.call(this,"utf-8 decode"),this.leftOver=null}n(tf,"Utf8DecodeWorker");ra.inherits(tf,ef);tf.prototype.processChunk=function(e){var t=ra.transformTo(qi.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(qi.uint8array){var r=t;t=new Uint8Array(r.length+this.leftOver.length),t.set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var i=LI(t),a=t;i!==t.length&&(qi.uint8array?(a=t.subarray(0,i),this.leftOver=t.subarray(i,t.length)):(a=t.slice(0,i),this.leftOver=t.slice(i,t.length))),this.push({data:ei.utf8decode(a),meta:e.meta})};tf.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ei.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};ei.Utf8DecodeWorker=tf;function mh(){ef.call(this,"utf-8 encode")}n(mh,"Utf8EncodeWorker");ra.inherits(mh,ef);mh.prototype.processChunk=function(e){this.push({data:ei.utf8encode(e.data),meta:e.meta})};ei.Utf8EncodeWorker=mh});var Xy=R((wz,Ky)=>{"use strict";var Gy=Ke(),Vy=fe();function gh(e){Gy.call(this,"ConvertWorker to "+e),this.destType=e}n(gh,"ConvertWorker");Vy.inherits(gh,Gy);gh.prototype.processChunk=function(e){this.push({data:Vy.transformTo(this.destType,e.data),meta:e.meta})};Ky.exports=gh});var ew=R((xz,Qy)=>{"use strict";var Jy=ih().Readable,qI=fe();qI.inherits(vh,Jy);function vh(e,t,r){Jy.call(this,t),this._helper=e;var i=this;e.on("data",function(a,s){i.push(a)||i._helper.pause(),r&&r(s)}).on("error",function(a){i.emit("error",a)}).on("end",function(){i.push(null)})}n(vh,"NodejsStreamOutputAdapter");vh.prototype._read=function(){this._helper.resume()};Qy.exports=vh});var bh=R((kz,iw)=>{"use strict";var Mi=fe(),MI=Xy(),NI=Ke(),UI=sh(),WI=xr(),jI=ea(),tw=null;if(WI.nodestream)try{tw=ew()}catch{}function ZI(e,t,r){switch(e){case"blob":return Mi.newBlob(Mi.transformTo("arraybuffer",t),r);case"base64":return UI.encode(t);default:return Mi.transformTo(e,t)}}n(ZI,"transformZipOutput");function HI(e,t){var r,i=0,a=null,s=0;for(r=0;r<t.length;r++)s+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(a=new Uint8Array(s),r=0;r<t.length;r++)a.set(t[r],i),i+=t[r].length;return a;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}n(HI,"concat");function $I(e,t){return new jI.Promise(function(r,i){var a=[],s=e._internalType,l=e._outputType,d=e._mimeType;e.on("data",function(p,u){a.push(p),t&&t(u)}).on("error",function(p){a=[],i(p)}).on("end",function(){try{var p=ZI(l,HI(s,a),d);r(p)}catch(u){i(u)}a=[]}).resume()})}n($I,"accumulate");function rw(e,t,r){var i=t;switch(t){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string";break}try{this._internalType=i,this._outputType=t,this._mimeType=r,Mi.checkSupport(i),this._worker=e.pipe(new MI(i)),e.lock()}catch(a){this._worker=new NI("error"),this._worker.error(a)}}n(rw,"StreamHelper");rw.prototype={accumulate:n(function(e){return $I(this,e)},"accumulate"),on:n(function(e,t){var r=this;return e==="data"?this._worker.on(e,function(i){t.call(r,i.data,i.meta)}):this._worker.on(e,function(){Mi.delay(t,arguments,r)}),this},"on"),resume:n(function(){return Mi.delay(this._worker.resume,[],this._worker),this},"resume"),pause:n(function(){return this._worker.pause(),this},"pause"),toNodejsStream:n(function(e){if(Mi.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new tw(this,{objectMode:this._outputType!=="nodebuffer"},e)},"toNodejsStream")};iw.exports=rw});var yh=R(Rt=>{"use strict";Rt.base64=!1;Rt.binary=!1;Rt.dir=!1;Rt.createFolders=!0;Rt.date=null;Rt.compression=null;Rt.compressionOptions=null;Rt.comment=null;Rt.unixPermissions=null;Rt.dosPermissions=null});var wh=R((Az,nw)=>{"use strict";var rf=fe(),nf=Ke(),YI=16*1024;function na(e){nf.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(r){t.dataIsReady=!0,t.data=r,t.max=r&&r.length||0,t.type=rf.getTypeOf(r),t.isPaused||t._tickAndRepeat()},function(r){t.error(r)})}n(na,"DataWorker");rf.inherits(na,nf);na.prototype.cleanUp=function(){nf.prototype.cleanUp.call(this),this.data=null};na.prototype.resume=function(){return nf.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,rf.delay(this._tickAndRepeat,[],this)),!0):!1};na.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(rf.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};na.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=YI,t=null,r=Math.min(this.max,this.index+e);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,r);break;case"uint8array":t=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":t=this.data.slice(this.index,r);break}return this.index=r,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})};nw.exports=na});var af=R((Iz,ow)=>{"use strict";var GI=fe();function VI(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}n(VI,"makeTable");var aw=VI();function KI(e,t,r,i){var a=aw,s=i+r;e=e^-1;for(var l=i;l<s;l++)e=e>>>8^a[(e^t[l])&255];return e^-1}n(KI,"crc32");function XI(e,t,r,i){var a=aw,s=i+r;e=e^-1;for(var l=i;l<s;l++)e=e>>>8^a[(e^t.charCodeAt(l))&255];return e^-1}n(XI,"crc32str");ow.exports=n(function(t,r){if(typeof t>"u"||!t.length)return 0;var i=GI.getTypeOf(t)!=="string";return i?KI(r|0,t,t.length,0):XI(r|0,t,t.length,0)},"crc32wrapper")});var xh=R((Pz,lw)=>{"use strict";var sw=Ke(),JI=af(),QI=fe();function Sh(){sw.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n(Sh,"Crc32Probe");QI.inherits(Sh,sw);Sh.prototype.processChunk=function(e){this.streamInfo.crc32=JI(e.data,this.streamInfo.crc32||0),this.push(e)};lw.exports=Sh});var uw=R((Bz,fw)=>{"use strict";var eO=fe(),Eh=Ke();function kh(e){Eh.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n(kh,"DataLengthProbe");eO.inherits(kh,Eh);kh.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}Eh.prototype.processChunk.call(this,e)};fw.exports=kh});var of=R((Lz,hw)=>{"use strict";var dw=ea(),cw=wh(),tO=xh(),Th=uw();function Rh(e,t,r,i,a){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=a}n(Rh,"CompressedObject");Rh.prototype={getContentWorker:n(function(){var e=new cw(dw.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new Th("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},"getContentWorker"),getCompressedWorker:n(function(){return new cw(dw.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)},"getCompressedWorker")};Rh.createWorkerFrom=function(e,t,r){return e.pipe(new tO).pipe(new Th("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new Th("compressedSize")).withStreamInfo("compression",t)};hw.exports=Rh});var gw=R((qz,mw)=>{"use strict";var rO=bh(),iO=wh(),Ah=ia(),Ch=of(),pw=Ke(),Ih=n(function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}},"ZipObject");Ih.prototype={internalStream:n(function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");r=e.toLowerCase();var i=r==="string"||r==="text";(r==="binarystring"||r==="text")&&(r="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!i&&(t=t.pipe(new Ah.Utf8EncodeWorker)),!a&&i&&(t=t.pipe(new Ah.Utf8DecodeWorker))}catch(s){t=new pw("error"),t.error(s)}return new rO(t,r,"")},"internalStream"),async:n(function(e,t){return this.internalStream(e).accumulate(t)},"async"),nodeStream:n(function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},"nodeStream"),_compressWorker:n(function(e,t){if(this._data instanceof Ch&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new Ah.Utf8EncodeWorker)),Ch.createWorkerFrom(r,e,t)},"_compressWorker"),_decompressWorker:n(function(){return this._data instanceof Ch?this._data.getContentWorker():this._data instanceof pw?this._data:new iO(this._data)},"_decompressWorker")};var _w=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],nO=n(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"removedFn");for(sf=0;sf<_w.length;sf++)Ih.prototype[_w[sf]]=nO;var sf;mw.exports=Ih});var kr=R(Pe=>{"use strict";var aO=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function oO(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n(oO,"_has");Pe.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(var i in r)oO(r,i)&&(e[i]=r[i])}}return e};Pe.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var sO={arraySet:n(function(e,t,r,i,a){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+i),a);return}for(var s=0;s<i;s++)e[a+s]=t[r+s]},"arraySet"),flattenChunks:n(function(e){var t,r,i,a,s,l;for(i=0,t=0,r=e.length;t<r;t++)i+=e[t].length;for(l=new Uint8Array(i),a=0,t=0,r=e.length;t<r;t++)s=e[t],l.set(s,a),a+=s.length;return l},"flattenChunks")},lO={arraySet:n(function(e,t,r,i,a){for(var s=0;s<i;s++)e[a+s]=t[r+s]},"arraySet"),flattenChunks:n(function(e){return[].concat.apply([],e)},"flattenChunks")};Pe.setTyped=function(e){e?(Pe.Buf8=Uint8Array,Pe.Buf16=Uint16Array,Pe.Buf32=Int32Array,Pe.assign(Pe,sO)):(Pe.Buf8=Array,Pe.Buf16=Array,Pe.Buf32=Array,Pe.assign(Pe,lO))};Pe.setTyped(aO)});var Nw=R(sa=>{"use strict";var fO=kr(),uO=4,vw=0,bw=1,dO=2;function oa(e){for(var t=e.length;--t>=0;)e[t]=0}n(oa,"zero");var cO=0,kw=1,hO=2,pO=3,_O=258,zh=29,$o=256,Wo=$o+1+zh,aa=30,qh=19,Tw=2*Wo+1,Ni=15,Oh=16,mO=7,Mh=256,Rw=16,Aw=17,Cw=18,Fh=[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],lf=[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],gO=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Iw=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],vO=512,Tr=new Array((Wo+2)*2);oa(Tr);var Uo=new Array(aa*2);oa(Uo);var jo=new Array(vO);oa(jo);var Zo=new Array(_O-pO+1);oa(Zo);var Nh=new Array(zh);oa(Nh);var ff=new Array(aa);oa(ff);function Ph(e,t,r,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}n(Ph,"StaticTreeDesc");var Ow,Pw,Dw;function Dh(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}n(Dh,"TreeDesc");function Bw(e){return e<256?jo[e]:jo[256+(e>>>7)]}n(Bw,"d_code");function Ho(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}n(Ho,"put_short");function Me(e,t,r){e.bi_valid>Oh-r?(e.bi_buf|=t<<e.bi_valid&65535,Ho(e,e.bi_buf),e.bi_buf=t>>Oh-e.bi_valid,e.bi_valid+=r-Oh):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}n(Me,"send_bits");function Vt(e,t,r){Me(e,r[t*2],r[t*2+1])}n(Vt,"send_code");function Fw(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}n(Fw,"bi_reverse");function bO(e){e.bi_valid===16?(Ho(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}n(bO,"bi_flush");function yO(e,t){var r=t.dyn_tree,i=t.max_code,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,u,c,E,m,g,b,A=0;for(m=0;m<=Ni;m++)e.bl_count[m]=0;for(r[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;u<Tw;u++)c=e.heap[u],m=r[r[c*2+1]*2+1]+1,m>p&&(m=p,A++),r[c*2+1]=m,!(c>i)&&(e.bl_count[m]++,g=0,c>=d&&(g=l[c-d]),b=r[c*2],e.opt_len+=b*(m+g),s&&(e.static_len+=b*(a[c*2+1]+g)));if(A!==0){do{for(m=p-1;e.bl_count[m]===0;)m--;e.bl_count[m]--,e.bl_count[m+1]+=2,e.bl_count[p]--,A-=2}while(A>0);for(m=p;m!==0;m--)for(c=e.bl_count[m];c!==0;)E=e.heap[--u],!(E>i)&&(r[E*2+1]!==m&&(e.opt_len+=(m-r[E*2+1])*r[E*2],r[E*2+1]=m),c--)}}n(yO,"gen_bitlen");function Lw(e,t,r){var i=new Array(Ni+1),a=0,s,l;for(s=1;s<=Ni;s++)i[s]=a=a+r[s-1]<<1;for(l=0;l<=t;l++){var d=e[l*2+1];d!==0&&(e[l*2]=Fw(i[d]++,d))}}n(Lw,"gen_codes");function wO(){var e,t,r,i,a,s=new Array(Ni+1);for(r=0,i=0;i<zh-1;i++)for(Nh[i]=r,e=0;e<1<<Fh[i];e++)Zo[r++]=i;for(Zo[r-1]=i,a=0,i=0;i<16;i++)for(ff[i]=a,e=0;e<1<<lf[i];e++)jo[a++]=i;for(a>>=7;i<aa;i++)for(ff[i]=a<<7,e=0;e<1<<lf[i]-7;e++)jo[256+a++]=i;for(t=0;t<=Ni;t++)s[t]=0;for(e=0;e<=143;)Tr[e*2+1]=8,e++,s[8]++;for(;e<=255;)Tr[e*2+1]=9,e++,s[9]++;for(;e<=279;)Tr[e*2+1]=7,e++,s[7]++;for(;e<=287;)Tr[e*2+1]=8,e++,s[8]++;for(Lw(Tr,Wo+1,s),e=0;e<aa;e++)Uo[e*2+1]=5,Uo[e*2]=Fw(e,5);Ow=new Ph(Tr,Fh,$o+1,Wo,Ni),Pw=new Ph(Uo,lf,0,aa,Ni),Dw=new Ph(new Array(0),gO,0,qh,mO)}n(wO,"tr_static_init");function zw(e){var t;for(t=0;t<Wo;t++)e.dyn_ltree[t*2]=0;for(t=0;t<aa;t++)e.dyn_dtree[t*2]=0;for(t=0;t<qh;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Mh*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}n(zw,"init_block");function qw(e){e.bi_valid>8?Ho(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}n(qw,"bi_windup");function SO(e,t,r,i){qw(e),i&&(Ho(e,r),Ho(e,~r)),fO.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}n(SO,"copy_block");function yw(e,t,r,i){var a=t*2,s=r*2;return e[a]<e[s]||e[a]===e[s]&&i[t]<=i[r]}n(yw,"smaller");function Bh(e,t,r){for(var i=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&yw(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!yw(t,i,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=i}n(Bh,"pqdownheap");function ww(e,t,r){var i,a,s=0,l,d;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+s*2]<<8|e.pending_buf[e.d_buf+s*2+1],a=e.pending_buf[e.l_buf+s],s++,i===0?Vt(e,a,t):(l=Zo[a],Vt(e,l+$o+1,t),d=Fh[l],d!==0&&(a-=Nh[l],Me(e,a,d)),i--,l=Bw(i),Vt(e,l,r),d=lf[l],d!==0&&(i-=ff[l],Me(e,i,d)));while(s<e.last_lit);Vt(e,Mh,t)}n(ww,"compress_block");function Lh(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,s=t.stat_desc.elems,l,d,p=-1,u;for(e.heap_len=0,e.heap_max=Tw,l=0;l<s;l++)r[l*2]!==0?(e.heap[++e.heap_len]=p=l,e.depth[l]=0):r[l*2+1]=0;for(;e.heap_len<2;)u=e.heap[++e.heap_len]=p<2?++p:0,r[u*2]=1,e.depth[u]=0,e.opt_len--,a&&(e.static_len-=i[u*2+1]);for(t.max_code=p,l=e.heap_len>>1;l>=1;l--)Bh(e,r,l);u=s;do l=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Bh(e,r,1),d=e.heap[1],e.heap[--e.heap_max]=l,e.heap[--e.heap_max]=d,r[u*2]=r[l*2]+r[d*2],e.depth[u]=(e.depth[l]>=e.depth[d]?e.depth[l]:e.depth[d])+1,r[l*2+1]=r[d*2+1]=u,e.heap[1]=u++,Bh(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],yO(e,t),Lw(r,p,e.bl_count)}n(Lh,"build_tree");function Sw(e,t,r){var i,a=-1,s,l=t[0*2+1],d=0,p=7,u=4;for(l===0&&(p=138,u=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)s=l,l=t[(i+1)*2+1],!(++d<p&&s===l)&&(d<u?e.bl_tree[s*2]+=d:s!==0?(s!==a&&e.bl_tree[s*2]++,e.bl_tree[Rw*2]++):d<=10?e.bl_tree[Aw*2]++:e.bl_tree[Cw*2]++,d=0,a=s,l===0?(p=138,u=3):s===l?(p=6,u=3):(p=7,u=4))}n(Sw,"scan_tree");function xw(e,t,r){var i,a=-1,s,l=t[0*2+1],d=0,p=7,u=4;for(l===0&&(p=138,u=3),i=0;i<=r;i++)if(s=l,l=t[(i+1)*2+1],!(++d<p&&s===l)){if(d<u)do Vt(e,s,e.bl_tree);while(--d!==0);else s!==0?(s!==a&&(Vt(e,s,e.bl_tree),d--),Vt(e,Rw,e.bl_tree),Me(e,d-3,2)):d<=10?(Vt(e,Aw,e.bl_tree),Me(e,d-3,3)):(Vt(e,Cw,e.bl_tree),Me(e,d-11,7));d=0,a=s,l===0?(p=138,u=3):s===l?(p=6,u=3):(p=7,u=4)}}n(xw,"send_tree");function xO(e){var t;for(Sw(e,e.dyn_ltree,e.l_desc.max_code),Sw(e,e.dyn_dtree,e.d_desc.max_code),Lh(e,e.bl_desc),t=qh-1;t>=3&&e.bl_tree[Iw[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}n(xO,"build_bl_tree");function EO(e,t,r,i){var a;for(Me(e,t-257,5),Me(e,r-1,5),Me(e,i-4,4),a=0;a<i;a++)Me(e,e.bl_tree[Iw[a]*2+1],3);xw(e,e.dyn_ltree,t-1),xw(e,e.dyn_dtree,r-1)}n(EO,"send_all_trees");function kO(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return vw;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return bw;for(r=32;r<$o;r++)if(e.dyn_ltree[r*2]!==0)return bw;return vw}n(kO,"detect_data_type");var Ew=!1;function TO(e){Ew||(wO(),Ew=!0),e.l_desc=new Dh(e.dyn_ltree,Ow),e.d_desc=new Dh(e.dyn_dtree,Pw),e.bl_desc=new Dh(e.bl_tree,Dw),e.bi_buf=0,e.bi_valid=0,zw(e)}n(TO,"_tr_init");function Mw(e,t,r,i){Me(e,(cO<<1)+(i?1:0),3),SO(e,t,r,!0)}n(Mw,"_tr_stored_block");function RO(e){Me(e,kw<<1,3),Vt(e,Mh,Tr),bO(e)}n(RO,"_tr_align");function AO(e,t,r,i){var a,s,l=0;e.level>0?(e.strm.data_type===dO&&(e.strm.data_type=kO(e)),Lh(e,e.l_desc),Lh(e,e.d_desc),l=xO(e),a=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=a&&(a=s)):a=s=r+5,r+4<=a&&t!==-1?Mw(e,t,r,i):e.strategy===uO||s===a?(Me(e,(kw<<1)+(i?1:0),3),ww(e,Tr,Uo)):(Me(e,(hO<<1)+(i?1:0),3),EO(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),ww(e,e.dyn_ltree,e.dyn_dtree)),zw(e),i&&qw(e)}n(AO,"_tr_flush_block");function CO(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(Zo[r]+$o+1)*2]++,e.dyn_dtree[Bw(t)*2]++),e.last_lit===e.lit_bufsize-1}n(CO,"_tr_tally");sa._tr_init=TO;sa._tr_stored_block=Mw;sa._tr_flush_block=AO;sa._tr_tally=CO;sa._tr_align=RO});var Uh=R((Zz,Uw)=>{"use strict";function IO(e,t,r,i){for(var a=e&65535|0,s=e>>>16&65535|0,l=0;r!==0;){l=r>2e3?2e3:r,r-=l;do a=a+t[i++]|0,s=s+a|0;while(--l);a%=65521,s%=65521}return a|s<<16|0}n(IO,"adler32");Uw.exports=IO});var Wh=R(($z,Ww)=>{"use strict";function OO(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}n(OO,"makeTable");var PO=OO();function DO(e,t,r,i){var a=PO,s=i+r;e^=-1;for(var l=i;l<s;l++)e=e>>>8^a[(e^t[l])&255];return e^-1}n(DO,"crc32");Ww.exports=DO});var uf=R((Gz,jw)=>{"use strict";jw.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 Jw=R(Jt=>{"use strict";var De=kr(),ft=Nw(),Yw=Uh(),ti=Wh(),BO=uf(),Zi=0,FO=1,LO=3,oi=4,Zw=5,Xt=0,Hw=1,ut=-2,zO=-3,jh=-5,qO=-1,MO=1,df=2,NO=3,UO=4,WO=0,jO=2,_f=8,ZO=9,HO=15,$O=8,YO=29,GO=256,Hh=GO+1+YO,VO=30,KO=19,XO=2*Hh+1,JO=15,H=3,ni=258,At=ni+H+1,QO=32,mf=42,$h=69,cf=73,hf=91,pf=103,Ui=113,Go=666,ve=1,Vo=2,Wi=3,ua=4,eP=3;function ai(e,t){return e.msg=BO[t],t}n(ai,"err");function $w(e){return(e<<1)-(e>4?9:0)}n($w,"rank");function ii(e){for(var t=e.length;--t>=0;)e[t]=0}n(ii,"zero");function ri(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(De.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}n(ri,"flush_pending");function Ee(e,t){ft._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ri(e.strm)}n(Ee,"flush_block_only");function Y(e,t){e.pending_buf[e.pending++]=t}n(Y,"put_byte");function Yo(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}n(Yo,"putShortMSB");function tP(e,t,r,i){var a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,De.arraySet(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=Yw(e.adler,t,a,r):e.state.wrap===2&&(e.adler=ti(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}n(tP,"read_buf");function Gw(e,t){var r=e.max_chain_length,i=e.strstart,a,s,l=e.prev_length,d=e.nice_match,p=e.strstart>e.w_size-At?e.strstart-(e.w_size-At):0,u=e.window,c=e.w_mask,E=e.prev,m=e.strstart+ni,g=u[i+l-1],b=u[i+l];e.prev_length>=e.good_match&&(r>>=2),d>e.lookahead&&(d=e.lookahead);do if(a=t,!(u[a+l]!==b||u[a+l-1]!==g||u[a]!==u[i]||u[++a]!==u[i+1])){i+=2,a++;do;while(u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&u[++i]===u[++a]&&i<m);if(s=ni-(m-i),i=m-ni,s>l){if(e.match_start=t,l=s,s>=d)break;g=u[i+l-1],b=u[i+l]}}while((t=E[t&c])>p&&--r!==0);return l<=e.lookahead?l:e.lookahead}n(Gw,"longest_match");function ji(e){var t=e.w_size,r,i,a,s,l;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-At)){De.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=t?a-t:0;while(--i);i=t,r=i;do a=e.prev[--r],e.prev[r]=a>=t?a-t:0;while(--i);s+=t}if(e.strm.avail_in===0)break;if(i=tP(e.strm,e.window,e.strstart+e.lookahead,s),e.lookahead+=i,e.lookahead+e.insert>=H)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+H-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<H)););}while(e.lookahead<At&&e.strm.avail_in!==0)}n(ji,"fill_window");function rP(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(ji(e),e.lookahead===0&&t===Zi)return ve;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,Ee(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-At&&(Ee(e,!1),e.strm.avail_out===0))return ve}return e.insert=0,t===oi?(Ee(e,!0),e.strm.avail_out===0?Wi:ua):(e.strstart>e.block_start&&(Ee(e,!1),e.strm.avail_out===0),ve)}n(rP,"deflate_stored");function Zh(e,t){for(var r,i;;){if(e.lookahead<At){if(ji(e),e.lookahead<At&&t===Zi)return ve;if(e.lookahead===0)break}if(r=0,e.lookahead>=H&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+H-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-At&&(e.match_length=Gw(e,r)),e.match_length>=H)if(i=ft._tr_tally(e,e.strstart-e.match_start,e.match_length-H),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=H){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+H-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=ft._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Ee(e,!1),e.strm.avail_out===0))return ve}return e.insert=e.strstart<H-1?e.strstart:H-1,t===oi?(Ee(e,!0),e.strm.avail_out===0?Wi:ua):e.last_lit&&(Ee(e,!1),e.strm.avail_out===0)?ve:Vo}n(Zh,"deflate_fast");function la(e,t){for(var r,i,a;;){if(e.lookahead<At){if(ji(e),e.lookahead<At&&t===Zi)return ve;if(e.lookahead===0)break}if(r=0,e.lookahead>=H&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+H-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=H-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-At&&(e.match_length=Gw(e,r),e.match_length<=5&&(e.strategy===MO||e.match_length===H&&e.strstart-e.match_start>4096)&&(e.match_length=H-1)),e.prev_length>=H&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-H,i=ft._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-H),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+H-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=H-1,e.strstart++,i&&(Ee(e,!1),e.strm.avail_out===0))return ve}else if(e.match_available){if(i=ft._tr_tally(e,0,e.window[e.strstart-1]),i&&Ee(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return ve}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=ft._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<H-1?e.strstart:H-1,t===oi?(Ee(e,!0),e.strm.avail_out===0?Wi:ua):e.last_lit&&(Ee(e,!1),e.strm.avail_out===0)?ve:Vo}n(la,"deflate_slow");function iP(e,t){for(var r,i,a,s,l=e.window;;){if(e.lookahead<=ni){if(ji(e),e.lookahead<=ni&&t===Zi)return ve;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=H&&e.strstart>0&&(a=e.strstart-1,i=l[a],i===l[++a]&&i===l[++a]&&i===l[++a])){s=e.strstart+ni;do;while(i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&i===l[++a]&&a<s);e.match_length=ni-(s-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=H?(r=ft._tr_tally(e,1,e.match_length-H),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=ft._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Ee(e,!1),e.strm.avail_out===0))return ve}return e.insert=0,t===oi?(Ee(e,!0),e.strm.avail_out===0?Wi:ua):e.last_lit&&(Ee(e,!1),e.strm.avail_out===0)?ve:Vo}n(iP,"deflate_rle");function nP(e,t){for(var r;;){if(e.lookahead===0&&(ji(e),e.lookahead===0)){if(t===Zi)return ve;break}if(e.match_length=0,r=ft._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Ee(e,!1),e.strm.avail_out===0))return ve}return e.insert=0,t===oi?(Ee(e,!0),e.strm.avail_out===0?Wi:ua):e.last_lit&&(Ee(e,!1),e.strm.avail_out===0)?ve:Vo}n(nP,"deflate_huff");function Kt(e,t,r,i,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=a}n(Kt,"Config");var fa;fa=[new Kt(0,0,0,0,rP),new Kt(4,4,8,4,Zh),new Kt(4,5,16,8,Zh),new Kt(4,6,32,32,Zh),new Kt(4,4,16,16,la),new Kt(8,16,32,32,la),new Kt(8,16,128,128,la),new Kt(8,32,128,256,la),new Kt(32,128,258,1024,la),new Kt(32,258,258,4096,la)];function aP(e){e.window_size=2*e.w_size,ii(e.head),e.max_lazy_match=fa[e.level].max_lazy,e.good_match=fa[e.level].good_length,e.nice_match=fa[e.level].nice_length,e.max_chain_length=fa[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=H-1,e.match_available=0,e.ins_h=0}n(aP,"lm_init");function oP(){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=_f,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 De.Buf16(XO*2),this.dyn_dtree=new De.Buf16((2*VO+1)*2),this.bl_tree=new De.Buf16((2*KO+1)*2),ii(this.dyn_ltree),ii(this.dyn_dtree),ii(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new De.Buf16(JO+1),this.heap=new De.Buf16(2*Hh+1),ii(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new De.Buf16(2*Hh+1),ii(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}n(oP,"DeflateState");function Vw(e){var t;return!e||!e.state?ai(e,ut):(e.total_in=e.total_out=0,e.data_type=jO,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?mf:Ui,e.adler=t.wrap===2?0:1,t.last_flush=Zi,ft._tr_init(t),Xt)}n(Vw,"deflateResetKeep");function Kw(e){var t=Vw(e);return t===Xt&&aP(e.state),t}n(Kw,"deflateReset");function sP(e,t){return!e||!e.state||e.state.wrap!==2?ut:(e.state.gzhead=t,Xt)}n(sP,"deflateSetHeader");function Xw(e,t,r,i,a,s){if(!e)return ut;var l=1;if(t===qO&&(t=6),i<0?(l=0,i=-i):i>15&&(l=2,i-=16),a<1||a>ZO||r!==_f||i<8||i>15||t<0||t>9||s<0||s>UO)return ai(e,ut);i===8&&(i=9);var d=new oP;return e.state=d,d.strm=e,d.wrap=l,d.gzhead=null,d.w_bits=i,d.w_size=1<<d.w_bits,d.w_mask=d.w_size-1,d.hash_bits=a+7,d.hash_size=1<<d.hash_bits,d.hash_mask=d.hash_size-1,d.hash_shift=~~((d.hash_bits+H-1)/H),d.window=new De.Buf8(d.w_size*2),d.head=new De.Buf16(d.hash_size),d.prev=new De.Buf16(d.w_size),d.lit_bufsize=1<<a+6,d.pending_buf_size=d.lit_bufsize*4,d.pending_buf=new De.Buf8(d.pending_buf_size),d.d_buf=1*d.lit_bufsize,d.l_buf=3*d.lit_bufsize,d.level=t,d.strategy=s,d.method=r,Kw(e)}n(Xw,"deflateInit2");function lP(e,t){return Xw(e,t,_f,HO,$O,WO)}n(lP,"deflateInit");function fP(e,t){var r,i,a,s;if(!e||!e.state||t>Zw||t<0)return e?ai(e,ut):ut;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===Go&&t!==oi)return ai(e,e.avail_out===0?jh:ut);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===mf)if(i.wrap===2)e.adler=0,Y(i,31),Y(i,139),Y(i,8),i.gzhead?(Y(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),Y(i,i.gzhead.time&255),Y(i,i.gzhead.time>>8&255),Y(i,i.gzhead.time>>16&255),Y(i,i.gzhead.time>>24&255),Y(i,i.level===9?2:i.strategy>=df||i.level<2?4:0),Y(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(Y(i,i.gzhead.extra.length&255),Y(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=ti(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=$h):(Y(i,0),Y(i,0),Y(i,0),Y(i,0),Y(i,0),Y(i,i.level===9?2:i.strategy>=df||i.level<2?4:0),Y(i,eP),i.status=Ui);else{var l=_f+(i.w_bits-8<<4)<<8,d=-1;i.strategy>=df||i.level<2?d=0:i.level<6?d=1:i.level===6?d=2:d=3,l|=d<<6,i.strstart!==0&&(l|=QO),l+=31-l%31,i.status=Ui,Yo(i,l),i.strstart!==0&&(Yo(i,e.adler>>>16),Yo(i,e.adler&65535)),e.adler=1}if(i.status===$h)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=ti(e.adler,i.pending_buf,i.pending-a,a)),ri(e),a=i.pending,i.pending===i.pending_buf_size));)Y(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=ti(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=cf)}else i.status=cf;if(i.status===cf)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=ti(e.adler,i.pending_buf,i.pending-a,a)),ri(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.name.length?s=i.gzhead.name.charCodeAt(i.gzindex++)&255:s=0,Y(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=ti(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.gzindex=0,i.status=hf)}else i.status=hf;if(i.status===hf)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=ti(e.adler,i.pending_buf,i.pending-a,a)),ri(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.comment.length?s=i.gzhead.comment.charCodeAt(i.gzindex++)&255:s=0,Y(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=ti(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.status=pf)}else i.status=pf;if(i.status===pf&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ri(e),i.pending+2<=i.pending_buf_size&&(Y(i,e.adler&255),Y(i,e.adler>>8&255),e.adler=0,i.status=Ui)):i.status=Ui),i.pending!==0){if(ri(e),e.avail_out===0)return i.last_flush=-1,Xt}else if(e.avail_in===0&&$w(t)<=$w(r)&&t!==oi)return ai(e,jh);if(i.status===Go&&e.avail_in!==0)return ai(e,jh);if(e.avail_in!==0||i.lookahead!==0||t!==Zi&&i.status!==Go){var p=i.strategy===df?nP(i,t):i.strategy===NO?iP(i,t):fa[i.level].func(i,t);if((p===Wi||p===ua)&&(i.status=Go),p===ve||p===Wi)return e.avail_out===0&&(i.last_flush=-1),Xt;if(p===Vo&&(t===FO?ft._tr_align(i):t!==Zw&&(ft._tr_stored_block(i,0,0,!1),t===LO&&(ii(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),ri(e),e.avail_out===0))return i.last_flush=-1,Xt}return t!==oi?Xt:i.wrap<=0?Hw:(i.wrap===2?(Y(i,e.adler&255),Y(i,e.adler>>8&255),Y(i,e.adler>>16&255),Y(i,e.adler>>24&255),Y(i,e.total_in&255),Y(i,e.total_in>>8&255),Y(i,e.total_in>>16&255),Y(i,e.total_in>>24&255)):(Yo(i,e.adler>>>16),Yo(i,e.adler&65535)),ri(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Xt:Hw)}n(fP,"deflate");function uP(e){var t;return!e||!e.state?ut:(t=e.state.status,t!==mf&&t!==$h&&t!==cf&&t!==hf&&t!==pf&&t!==Ui&&t!==Go?ai(e,ut):(e.state=null,t===Ui?ai(e,zO):Xt))}n(uP,"deflateEnd");function dP(e,t){var r=t.length,i,a,s,l,d,p,u,c;if(!e||!e.state||(i=e.state,l=i.wrap,l===2||l===1&&i.status!==mf||i.lookahead))return ut;for(l===1&&(e.adler=Yw(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(l===0&&(ii(i.head),i.strstart=0,i.block_start=0,i.insert=0),c=new De.Buf8(i.w_size),De.arraySet(c,t,r-i.w_size,i.w_size,0),t=c,r=i.w_size),d=e.avail_in,p=e.next_in,u=e.input,e.avail_in=r,e.next_in=0,e.input=t,ji(i);i.lookahead>=H;){a=i.strstart,s=i.lookahead-(H-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[a+H-1])&i.hash_mask,i.prev[a&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=a,a++;while(--s);i.strstart=a,i.lookahead=H-1,ji(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=H-1,i.match_available=0,e.next_in=p,e.input=u,e.avail_in=d,i.wrap=l,Xt}n(dP,"deflateSetDictionary");Jt.deflateInit=lP;Jt.deflateInit2=Xw;Jt.deflateReset=Kw;Jt.deflateResetKeep=Vw;Jt.deflateSetHeader=sP;Jt.deflate=fP;Jt.deflateEnd=uP;Jt.deflateSetDictionary=dP;Jt.deflateInfo="pako deflate (from Nodeca project)"});var Yh=R(da=>{"use strict";var gf=kr(),Qw=!0,eS=!0;try{String.fromCharCode.apply(null,[0])}catch{Qw=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{eS=!1}var Ko=new gf.Buf8(256);for(Rr=0;Rr<256;Rr++)Ko[Rr]=Rr>=252?6:Rr>=248?5:Rr>=240?4:Rr>=224?3:Rr>=192?2:1;var Rr;Ko[254]=Ko[254]=1;da.string2buf=function(e){var t,r,i,a,s,l=e.length,d=0;for(a=0;a<l;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<l&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),d+=r<128?1:r<2048?2:r<65536?3:4;for(t=new gf.Buf8(d),s=0,a=0;s<d;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<l&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[s++]=r:r<2048?(t[s++]=192|r>>>6,t[s++]=128|r&63):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|r&63):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|r&63);return t};function tS(e,t){if(t<65534&&(e.subarray&&eS||!e.subarray&&Qw))return String.fromCharCode.apply(null,gf.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}n(tS,"buf2binstring");da.buf2binstring=function(e){return tS(e,e.length)};da.binstring2buf=function(e){for(var t=new gf.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};da.buf2string=function(e,t){var r,i,a,s,l=t||e.length,d=new Array(l*2);for(i=0,r=0;r<l;){if(a=e[r++],a<128){d[i++]=a;continue}if(s=Ko[a],s>4){d[i++]=65533,r+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&r<l;)a=a<<6|e[r++]&63,s--;if(s>1){d[i++]=65533;continue}a<65536?d[i++]=a:(a-=65536,d[i++]=55296|a>>10&1023,d[i++]=56320|a&1023)}return tS(d,i)};da.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+Ko[e[r]]>t?r:t}});var Gh=R((Qz,rS)=>{"use strict";function cP(){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}n(cP,"ZStream");rS.exports=cP});var oS=R(Qo=>{"use strict";var Xo=Jw(),Jo=kr(),Kh=Yh(),Xh=uf(),hP=Gh(),aS=Object.prototype.toString,pP=0,Vh=4,ca=0,iS=1,nS=2,_P=-1,mP=0,gP=8;function Hi(e){if(!(this instanceof Hi))return new Hi(e);this.options=Jo.assign({level:_P,method:gP,chunkSize:16384,windowBits:15,memLevel:8,strategy:mP,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new hP,this.strm.avail_out=0;var r=Xo.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==ca)throw new Error(Xh[r]);if(t.header&&Xo.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=Kh.string2buf(t.dictionary):aS.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=Xo.deflateSetDictionary(this.strm,i),r!==ca)throw new Error(Xh[r]);this._dict_set=!0}}n(Hi,"Deflate");Hi.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a,s;if(this.ended)return!1;s=t===~~t?t:t===!0?Vh:pP,typeof e=="string"?r.input=Kh.string2buf(e):aS.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Jo.Buf8(i),r.next_out=0,r.avail_out=i),a=Xo.deflate(r,s),a!==iS&&a!==ca)return this.onEnd(a),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(s===Vh||s===nS))&&(this.options.to==="string"?this.onData(Kh.buf2binstring(Jo.shrinkBuf(r.output,r.next_out))):this.onData(Jo.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&a!==iS);return s===Vh?(a=Xo.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===ca):(s===nS&&(this.onEnd(ca),r.avail_out=0),!0)};Hi.prototype.onData=function(e){this.chunks.push(e)};Hi.prototype.onEnd=function(e){e===ca&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Jo.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Jh(e,t){var r=new Hi(t);if(r.push(e,!0),r.err)throw r.msg||Xh[r.err];return r.result}n(Jh,"deflate");function vP(e,t){return t=t||{},t.raw=!0,Jh(e,t)}n(vP,"deflateRaw");function bP(e,t){return t=t||{},t.gzip=!0,Jh(e,t)}n(bP,"gzip");Qo.Deflate=Hi;Qo.deflate=Jh;Qo.deflateRaw=vP;Qo.gzip=bP});var lS=R((iq,sS)=>{"use strict";var vf=30,yP=12;sS.exports=n(function(t,r){var i,a,s,l,d,p,u,c,E,m,g,b,A,T,y,x,C,w,S,P,B,D,F,z,O;i=t.state,a=t.next_in,z=t.input,s=a+(t.avail_in-5),l=t.next_out,O=t.output,d=l-(r-t.avail_out),p=l+(t.avail_out-257),u=i.dmax,c=i.wsize,E=i.whave,m=i.wnext,g=i.window,b=i.hold,A=i.bits,T=i.lencode,y=i.distcode,x=(1<<i.lenbits)-1,C=(1<<i.distbits)-1;e:do{A<15&&(b+=z[a++]<<A,A+=8,b+=z[a++]<<A,A+=8),w=T[b&x];t:for(;;){if(S=w>>>24,b>>>=S,A-=S,S=w>>>16&255,S===0)O[l++]=w&65535;else if(S&16){P=w&65535,S&=15,S&&(A<S&&(b+=z[a++]<<A,A+=8),P+=b&(1<<S)-1,b>>>=S,A-=S),A<15&&(b+=z[a++]<<A,A+=8,b+=z[a++]<<A,A+=8),w=y[b&C];r:for(;;){if(S=w>>>24,b>>>=S,A-=S,S=w>>>16&255,S&16){if(B=w&65535,S&=15,A<S&&(b+=z[a++]<<A,A+=8,A<S&&(b+=z[a++]<<A,A+=8)),B+=b&(1<<S)-1,B>u){t.msg="invalid distance too far back",i.mode=vf;break e}if(b>>>=S,A-=S,S=l-d,B>S){if(S=B-S,S>E&&i.sane){t.msg="invalid distance too far back",i.mode=vf;break e}if(D=0,F=g,m===0){if(D+=c-S,S<P){P-=S;do O[l++]=g[D++];while(--S);D=l-B,F=O}}else if(m<S){if(D+=c+m-S,S-=m,S<P){P-=S;do O[l++]=g[D++];while(--S);if(D=0,m<P){S=m,P-=S;do O[l++]=g[D++];while(--S);D=l-B,F=O}}}else if(D+=m-S,S<P){P-=S;do O[l++]=g[D++];while(--S);D=l-B,F=O}for(;P>2;)O[l++]=F[D++],O[l++]=F[D++],O[l++]=F[D++],P-=3;P&&(O[l++]=F[D++],P>1&&(O[l++]=F[D++]))}else{D=l-B;do O[l++]=O[D++],O[l++]=O[D++],O[l++]=O[D++],P-=3;while(P>2);P&&(O[l++]=O[D++],P>1&&(O[l++]=O[D++]))}}else if(S&64){t.msg="invalid distance code",i.mode=vf;break e}else{w=y[(w&65535)+(b&(1<<S)-1)];continue r}break}}else if(S&64)if(S&32){i.mode=yP;break e}else{t.msg="invalid literal/length code",i.mode=vf;break e}else{w=T[(w&65535)+(b&(1<<S)-1)];continue t}break}}while(a<s&&l<p);P=A>>3,a-=P,A-=P<<3,b&=(1<<A)-1,t.next_in=a,t.next_out=l,t.avail_in=a<s?5+(s-a):5-(a-s),t.avail_out=l<p?257+(p-l):257-(l-p),i.hold=b,i.bits=A},"inflate_fast")});var _S=R((aq,pS)=>{"use strict";var fS=kr(),ha=15,uS=852,dS=592,cS=0,Qh=1,hS=2,wP=[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],SP=[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],xP=[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],EP=[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];pS.exports=n(function(t,r,i,a,s,l,d,p){var u=p.bits,c=0,E=0,m=0,g=0,b=0,A=0,T=0,y=0,x=0,C=0,w,S,P,B,D,F=null,z=0,O,G=new fS.Buf16(ha+1),se=new fS.Buf16(ha+1),Be=null,er=0,Ir,ht,Ne;for(c=0;c<=ha;c++)G[c]=0;for(E=0;E<a;E++)G[r[i+E]]++;for(b=u,g=ha;g>=1&&G[g]===0;g--);if(b>g&&(b=g),g===0)return s[l++]=1<<24|64<<16|0,s[l++]=1<<24|64<<16|0,p.bits=1,0;for(m=1;m<g&&G[m]===0;m++);for(b<m&&(b=m),y=1,c=1;c<=ha;c++)if(y<<=1,y-=G[c],y<0)return-1;if(y>0&&(t===cS||g!==1))return-1;for(se[1]=0,c=1;c<ha;c++)se[c+1]=se[c]+G[c];for(E=0;E<a;E++)r[i+E]!==0&&(d[se[r[i+E]]++]=E);if(t===cS?(F=Be=d,O=19):t===Qh?(F=wP,z-=257,Be=SP,er-=257,O=256):(F=xP,Be=EP,O=-1),C=0,E=0,c=m,D=l,A=b,T=0,P=-1,x=1<<b,B=x-1,t===Qh&&x>uS||t===hS&&x>dS)return 1;for(;;){Ir=c-T,d[E]<O?(ht=0,Ne=d[E]):d[E]>O?(ht=Be[er+d[E]],Ne=F[z+d[E]]):(ht=96,Ne=0),w=1<<c-T,S=1<<A,m=S;do S-=w,s[D+(C>>T)+S]=Ir<<24|ht<<16|Ne|0;while(S!==0);for(w=1<<c-1;C&w;)w>>=1;if(w!==0?(C&=w-1,C+=w):C=0,E++,--G[c]===0){if(c===g)break;c=r[i+d[E]]}if(c>b&&(C&B)!==P){for(T===0&&(T=b),D+=m,A=c-T,y=1<<A;A+T<g&&(y-=G[A+T],!(y<=0));)A++,y<<=1;if(x+=1<<A,t===Qh&&x>uS||t===hS&&x>dS)return 1;P=C&B,s[P]=b<<24|A<<16|D-l|0}}return C!==0&&(s[D+C]=c-T<<24|64<<16|0),p.bits=b,0},"inflate_table")});var KS=R(Ct=>{"use strict";var Xe=kr(),ap=Uh(),Qt=Wh(),kP=lS(),es=_S(),TP=0,US=1,WS=2,mS=4,RP=5,bf=6,$i=0,AP=1,CP=2,dt=-2,jS=-3,op=-4,IP=-5,gS=8,ZS=1,vS=2,bS=3,yS=4,wS=5,SS=6,xS=7,ES=8,kS=9,TS=10,Sf=11,Ar=12,ep=13,RS=14,tp=15,AS=16,CS=17,IS=18,OS=19,yf=20,wf=21,PS=22,DS=23,BS=24,FS=25,LS=26,rp=27,zS=28,qS=29,oe=30,sp=31,OP=32,PP=852,DP=592,BP=15,FP=BP;function MS(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}n(MS,"zswap32");function LP(){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 Xe.Buf16(320),this.work=new Xe.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}n(LP,"InflateState");function HS(e){var t;return!e||!e.state?dt:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=ZS,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Xe.Buf32(PP),t.distcode=t.distdyn=new Xe.Buf32(DP),t.sane=1,t.back=-1,$i)}n(HS,"inflateResetKeep");function $S(e){var t;return!e||!e.state?dt:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,HS(e))}n($S,"inflateReset");function YS(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?dt:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,$S(e))}n(YS,"inflateReset2");function GS(e,t){var r,i;return e?(i=new LP,e.state=i,i.window=null,r=YS(e,t),r!==$i&&(e.state=null),r):dt}n(GS,"inflateInit2");function zP(e){return GS(e,FP)}n(zP,"inflateInit");var NS=!0,ip,np;function qP(e){if(NS){var t;for(ip=new Xe.Buf32(512),np=new Xe.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(es(US,e.lens,0,288,ip,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;es(WS,e.lens,0,32,np,0,e.work,{bits:5}),NS=!1}e.lencode=ip,e.lenbits=9,e.distcode=np,e.distbits=5}n(qP,"fixedtables");function VS(e,t,r,i){var a,s=e.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Xe.Buf8(s.wsize)),i>=s.wsize?(Xe.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(a=s.wsize-s.wnext,a>i&&(a=i),Xe.arraySet(s.window,t,r-i,a,s.wnext),i-=a,i?(Xe.arraySet(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=a))),0}n(VS,"updatewindow");function MP(e,t){var r,i,a,s,l,d,p,u,c,E,m,g,b,A,T=0,y,x,C,w,S,P,B,D,F=new Xe.Buf8(4),z,O,G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return dt;r=e.state,r.mode===Ar&&(r.mode=ep),l=e.next_out,a=e.output,p=e.avail_out,s=e.next_in,i=e.input,d=e.avail_in,u=r.hold,c=r.bits,E=d,m=p,D=$i;e:for(;;)switch(r.mode){case ZS:if(r.wrap===0){r.mode=ep;break}for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(r.wrap&2&&u===35615){r.check=0,F[0]=u&255,F[1]=u>>>8&255,r.check=Qt(r.check,F,2,0),u=0,c=0,r.mode=vS;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",r.mode=oe;break}if((u&15)!==gS){e.msg="unknown compression method",r.mode=oe;break}if(u>>>=4,c-=4,B=(u&15)+8,r.wbits===0)r.wbits=B;else if(B>r.wbits){e.msg="invalid window size",r.mode=oe;break}r.dmax=1<<B,e.adler=r.check=1,r.mode=u&512?TS:Ar,u=0,c=0;break;case vS:for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(r.flags=u,(r.flags&255)!==gS){e.msg="unknown compression method",r.mode=oe;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=oe;break}r.head&&(r.head.text=u>>8&1),r.flags&512&&(F[0]=u&255,F[1]=u>>>8&255,r.check=Qt(r.check,F,2,0)),u=0,c=0,r.mode=bS;case bS:for(;c<32;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.head&&(r.head.time=u),r.flags&512&&(F[0]=u&255,F[1]=u>>>8&255,F[2]=u>>>16&255,F[3]=u>>>24&255,r.check=Qt(r.check,F,4,0)),u=0,c=0,r.mode=yS;case yS:for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.head&&(r.head.xflags=u&255,r.head.os=u>>8),r.flags&512&&(F[0]=u&255,F[1]=u>>>8&255,r.check=Qt(r.check,F,2,0)),u=0,c=0,r.mode=wS;case wS:if(r.flags&1024){for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.length=u,r.head&&(r.head.extra_len=u),r.flags&512&&(F[0]=u&255,F[1]=u>>>8&255,r.check=Qt(r.check,F,2,0)),u=0,c=0}else r.head&&(r.head.extra=null);r.mode=SS;case SS:if(r.flags&1024&&(g=r.length,g>d&&(g=d),g&&(r.head&&(B=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),Xe.arraySet(r.head.extra,i,s,g,B)),r.flags&512&&(r.check=Qt(r.check,i,g,s)),d-=g,s+=g,r.length-=g),r.length))break e;r.length=0,r.mode=xS;case xS:if(r.flags&2048){if(d===0)break e;g=0;do B=i[s+g++],r.head&&B&&r.length<65536&&(r.head.name+=String.fromCharCode(B));while(B&&g<d);if(r.flags&512&&(r.check=Qt(r.check,i,g,s)),d-=g,s+=g,B)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=ES;case ES:if(r.flags&4096){if(d===0)break e;g=0;do B=i[s+g++],r.head&&B&&r.length<65536&&(r.head.comment+=String.fromCharCode(B));while(B&&g<d);if(r.flags&512&&(r.check=Qt(r.check,i,g,s)),d-=g,s+=g,B)break e}else r.head&&(r.head.comment=null);r.mode=kS;case kS:if(r.flags&512){for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(u!==(r.check&65535)){e.msg="header crc mismatch",r.mode=oe;break}u=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Ar;break;case TS:for(;c<32;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}e.adler=r.check=MS(u),u=0,c=0,r.mode=Sf;case Sf:if(r.havedict===0)return e.next_out=l,e.avail_out=p,e.next_in=s,e.avail_in=d,r.hold=u,r.bits=c,CP;e.adler=r.check=1,r.mode=Ar;case Ar:if(t===RP||t===bf)break e;case ep:if(r.last){u>>>=c&7,c-=c&7,r.mode=rp;break}for(;c<3;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}switch(r.last=u&1,u>>>=1,c-=1,u&3){case 0:r.mode=RS;break;case 1:if(qP(r),r.mode=yf,t===bf){u>>>=2,c-=2;break e}break;case 2:r.mode=CS;break;case 3:e.msg="invalid block type",r.mode=oe}u>>>=2,c-=2;break;case RS:for(u>>>=c&7,c-=c&7;c<32;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if((u&65535)!==(u>>>16^65535)){e.msg="invalid stored block lengths",r.mode=oe;break}if(r.length=u&65535,u=0,c=0,r.mode=tp,t===bf)break e;case tp:r.mode=AS;case AS:if(g=r.length,g){if(g>d&&(g=d),g>p&&(g=p),g===0)break e;Xe.arraySet(a,i,s,g,l),d-=g,s+=g,p-=g,l+=g,r.length-=g;break}r.mode=Ar;break;case CS:for(;c<14;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(r.nlen=(u&31)+257,u>>>=5,c-=5,r.ndist=(u&31)+1,u>>>=5,c-=5,r.ncode=(u&15)+4,u>>>=4,c-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=oe;break}r.have=0,r.mode=IS;case IS:for(;r.have<r.ncode;){for(;c<3;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.lens[G[r.have++]]=u&7,u>>>=3,c-=3}for(;r.have<19;)r.lens[G[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,z={bits:r.lenbits},D=es(TP,r.lens,0,19,r.lencode,0,r.work,z),r.lenbits=z.bits,D){e.msg="invalid code lengths set",r.mode=oe;break}r.have=0,r.mode=OS;case OS:for(;r.have<r.nlen+r.ndist;){for(;T=r.lencode[u&(1<<r.lenbits)-1],y=T>>>24,x=T>>>16&255,C=T&65535,!(y<=c);){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(C<16)u>>>=y,c-=y,r.lens[r.have++]=C;else{if(C===16){for(O=y+2;c<O;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(u>>>=y,c-=y,r.have===0){e.msg="invalid bit length repeat",r.mode=oe;break}B=r.lens[r.have-1],g=3+(u&3),u>>>=2,c-=2}else if(C===17){for(O=y+3;c<O;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}u>>>=y,c-=y,B=0,g=3+(u&7),u>>>=3,c-=3}else{for(O=y+7;c<O;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}u>>>=y,c-=y,B=0,g=11+(u&127),u>>>=7,c-=7}if(r.have+g>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=oe;break}for(;g--;)r.lens[r.have++]=B}}if(r.mode===oe)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=oe;break}if(r.lenbits=9,z={bits:r.lenbits},D=es(US,r.lens,0,r.nlen,r.lencode,0,r.work,z),r.lenbits=z.bits,D){e.msg="invalid literal/lengths set",r.mode=oe;break}if(r.distbits=6,r.distcode=r.distdyn,z={bits:r.distbits},D=es(WS,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,z),r.distbits=z.bits,D){e.msg="invalid distances set",r.mode=oe;break}if(r.mode=yf,t===bf)break e;case yf:r.mode=wf;case wf:if(d>=6&&p>=258){e.next_out=l,e.avail_out=p,e.next_in=s,e.avail_in=d,r.hold=u,r.bits=c,kP(e,m),l=e.next_out,a=e.output,p=e.avail_out,s=e.next_in,i=e.input,d=e.avail_in,u=r.hold,c=r.bits,r.mode===Ar&&(r.back=-1);break}for(r.back=0;T=r.lencode[u&(1<<r.lenbits)-1],y=T>>>24,x=T>>>16&255,C=T&65535,!(y<=c);){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(x&&!(x&240)){for(w=y,S=x,P=C;T=r.lencode[P+((u&(1<<w+S)-1)>>w)],y=T>>>24,x=T>>>16&255,C=T&65535,!(w+y<=c);){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}u>>>=w,c-=w,r.back+=w}if(u>>>=y,c-=y,r.back+=y,r.length=C,x===0){r.mode=LS;break}if(x&32){r.back=-1,r.mode=Ar;break}if(x&64){e.msg="invalid literal/length code",r.mode=oe;break}r.extra=x&15,r.mode=PS;case PS:if(r.extra){for(O=r.extra;c<O;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=DS;case DS:for(;T=r.distcode[u&(1<<r.distbits)-1],y=T>>>24,x=T>>>16&255,C=T&65535,!(y<=c);){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(!(x&240)){for(w=y,S=x,P=C;T=r.distcode[P+((u&(1<<w+S)-1)>>w)],y=T>>>24,x=T>>>16&255,C=T&65535,!(w+y<=c);){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}u>>>=w,c-=w,r.back+=w}if(u>>>=y,c-=y,r.back+=y,x&64){e.msg="invalid distance code",r.mode=oe;break}r.offset=C,r.extra=x&15,r.mode=BS;case BS:if(r.extra){for(O=r.extra;c<O;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=oe;break}r.mode=FS;case FS:if(p===0)break e;if(g=m-p,r.offset>g){if(g=r.offset-g,g>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=oe;break}g>r.wnext?(g-=r.wnext,b=r.wsize-g):b=r.wnext-g,g>r.length&&(g=r.length),A=r.window}else A=a,b=l-r.offset,g=r.length;g>p&&(g=p),p-=g,r.length-=g;do a[l++]=A[b++];while(--g);r.length===0&&(r.mode=wf);break;case LS:if(p===0)break e;a[l++]=r.length,p--,r.mode=wf;break;case rp:if(r.wrap){for(;c<32;){if(d===0)break e;d--,u|=i[s++]<<c,c+=8}if(m-=p,e.total_out+=m,r.total+=m,m&&(e.adler=r.check=r.flags?Qt(r.check,a,m,l-m):ap(r.check,a,m,l-m)),m=p,(r.flags?u:MS(u))!==r.check){e.msg="incorrect data check",r.mode=oe;break}u=0,c=0}r.mode=zS;case zS:if(r.wrap&&r.flags){for(;c<32;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(u!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=oe;break}u=0,c=0}r.mode=qS;case qS:D=AP;break e;case oe:D=jS;break e;case sp:return op;case OP:default:return dt}return e.next_out=l,e.avail_out=p,e.next_in=s,e.avail_in=d,r.hold=u,r.bits=c,(r.wsize||m!==e.avail_out&&r.mode<oe&&(r.mode<rp||t!==mS))&&VS(e,e.output,e.next_out,m-e.avail_out)?(r.mode=sp,op):(E-=e.avail_in,m-=e.avail_out,e.total_in+=E,e.total_out+=m,r.total+=m,r.wrap&&m&&(e.adler=r.check=r.flags?Qt(r.check,a,m,e.next_out-m):ap(r.check,a,m,e.next_out-m)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Ar?128:0)+(r.mode===yf||r.mode===tp?256:0),(E===0&&m===0||t===mS)&&D===$i&&(D=IP),D)}n(MP,"inflate");function NP(e){if(!e||!e.state)return dt;var t=e.state;return t.window&&(t.window=null),e.state=null,$i}n(NP,"inflateEnd");function UP(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?dt:(r.head=t,t.done=!1,$i)}n(UP,"inflateGetHeader");function WP(e,t){var r=t.length,i,a,s;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==Sf)?dt:i.mode===Sf&&(a=1,a=ap(a,t,r,0),a!==i.check)?jS:(s=VS(e,t,r,r),s?(i.mode=sp,op):(i.havedict=1,$i))}n(WP,"inflateSetDictionary");Ct.inflateReset=$S;Ct.inflateReset2=YS;Ct.inflateResetKeep=HS;Ct.inflateInit=zP;Ct.inflateInit2=GS;Ct.inflate=MP;Ct.inflateEnd=NP;Ct.inflateGetHeader=UP;Ct.inflateSetDictionary=WP;Ct.inflateInfo="pako inflate (from Nodeca project)"});var lp=R((fq,XS)=>{"use strict";XS.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 QS=R((uq,JS)=>{"use strict";function jP(){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}n(jP,"GZheader");JS.exports=jP});var tx=R(rs=>{"use strict";var pa=KS(),ts=kr(),xf=Yh(),ce=lp(),fp=uf(),ZP=Gh(),HP=QS(),ex=Object.prototype.toString;function Yi(e){if(!(this instanceof Yi))return new Yi(e);this.options=ts.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ZP,this.strm.avail_out=0;var r=pa.inflateInit2(this.strm,t.windowBits);if(r!==ce.Z_OK)throw new Error(fp[r]);if(this.header=new HP,pa.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=xf.string2buf(t.dictionary):ex.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=pa.inflateSetDictionary(this.strm,t.dictionary),r!==ce.Z_OK)))throw new Error(fp[r])}n(Yi,"Inflate");Yi.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a=this.options.dictionary,s,l,d,p,u,c=!1;if(this.ended)return!1;l=t===~~t?t:t===!0?ce.Z_FINISH:ce.Z_NO_FLUSH,typeof e=="string"?r.input=xf.binstring2buf(e):ex.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new ts.Buf8(i),r.next_out=0,r.avail_out=i),s=pa.inflate(r,ce.Z_NO_FLUSH),s===ce.Z_NEED_DICT&&a&&(s=pa.inflateSetDictionary(this.strm,a)),s===ce.Z_BUF_ERROR&&c===!0&&(s=ce.Z_OK,c=!1),s!==ce.Z_STREAM_END&&s!==ce.Z_OK)return this.onEnd(s),this.ended=!0,!1;r.next_out&&(r.avail_out===0||s===ce.Z_STREAM_END||r.avail_in===0&&(l===ce.Z_FINISH||l===ce.Z_SYNC_FLUSH))&&(this.options.to==="string"?(d=xf.utf8border(r.output,r.next_out),p=r.next_out-d,u=xf.buf2string(r.output,d),r.next_out=p,r.avail_out=i-p,p&&ts.arraySet(r.output,r.output,d,p,0),this.onData(u)):this.onData(ts.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(c=!0)}while((r.avail_in>0||r.avail_out===0)&&s!==ce.Z_STREAM_END);return s===ce.Z_STREAM_END&&(l=ce.Z_FINISH),l===ce.Z_FINISH?(s=pa.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===ce.Z_OK):(l===ce.Z_SYNC_FLUSH&&(this.onEnd(ce.Z_OK),r.avail_out=0),!0)};Yi.prototype.onData=function(e){this.chunks.push(e)};Yi.prototype.onEnd=function(e){e===ce.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ts.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function up(e,t){var r=new Yi(t);if(r.push(e,!0),r.err)throw r.msg||fp[r.err];return r.result}n(up,"inflate");function $P(e,t){return t=t||{},t.raw=!0,up(e,t)}n($P,"inflateRaw");rs.Inflate=Yi;rs.inflate=up;rs.inflateRaw=$P;rs.ungzip=up});var nx=R((pq,ix)=>{"use strict";var YP=kr().assign,GP=oS(),VP=tx(),KP=lp(),rx={};YP(rx,GP,VP,KP);ix.exports=rx});var ox=R(kf=>{"use strict";var XP=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",JP=nx(),ax=fe(),Ef=Ke(),QP=XP?"uint8array":"array";kf.magic="\b\0";function Gi(e,t){Ef.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n(Gi,"FlateWorker");ax.inherits(Gi,Ef);Gi.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(ax.transformTo(QP,e.data),!1)};Gi.prototype.flush=function(){Ef.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};Gi.prototype.cleanUp=function(){Ef.prototype.cleanUp.call(this),this._pako=null};Gi.prototype._createPako=function(){this._pako=new JP[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};kf.compressWorker=function(e){return new Gi("Deflate",e)};kf.uncompressWorker=function(){return new Gi("Inflate",{})}});var cp=R(dp=>{"use strict";var sx=Ke();dp.STORE={magic:"\0\0",compressWorker:n(function(){return new sx("STORE compression")},"compressWorker"),uncompressWorker:n(function(){return new sx("STORE decompression")},"uncompressWorker")};dp.DEFLATE=ox()});var hp=R(Vi=>{"use strict";Vi.LOCAL_FILE_HEADER="PK";Vi.CENTRAL_FILE_HEADER="PK";Vi.CENTRAL_DIRECTORY_END="PK";Vi.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";Vi.ZIP64_CENTRAL_DIRECTORY_END="PK";Vi.DATA_DESCRIPTOR="PK\x07\b"});var dx=R((yq,ux)=>{"use strict";var _a=fe(),ma=Ke(),pp=ia(),lx=af(),Tf=hp(),re=n(function(e,t){var r="",i;for(i=0;i<t;i++)r+=String.fromCharCode(e&255),e=e>>>8;return r},"decToHex"),eD=n(function(e,t){var r=e;return e||(r=t?16893:33204),(r&65535)<<16},"generateUnixExternalFileAttr"),tD=n(function(e){return(e||0)&63},"generateDosExternalFileAttr"),fx=n(function(e,t,r,i,a,s){var l=e.file,d=e.compression,p=s!==pp.utf8encode,u=_a.transformTo("string",s(l.name)),c=_a.transformTo("string",pp.utf8encode(l.name)),E=l.comment,m=_a.transformTo("string",s(E)),g=_a.transformTo("string",pp.utf8encode(E)),b=c.length!==l.name.length,A=g.length!==E.length,T,y,x="",C="",w="",S=l.dir,P=l.date,B={crc32:0,compressedSize:0,uncompressedSize:0};(!t||r)&&(B.crc32=e.crc32,B.compressedSize=e.compressedSize,B.uncompressedSize=e.uncompressedSize);var D=0;t&&(D|=8),!p&&(b||A)&&(D|=2048);var F=0,z=0;S&&(F|=16),a==="UNIX"?(z=798,F|=eD(l.unixPermissions,S)):(z=20,F|=tD(l.dosPermissions,S)),T=P.getUTCHours(),T=T<<6,T=T|P.getUTCMinutes(),T=T<<5,T=T|P.getUTCSeconds()/2,y=P.getUTCFullYear()-1980,y=y<<4,y=y|P.getUTCMonth()+1,y=y<<5,y=y|P.getUTCDate(),b&&(C=re(1,1)+re(lx(u),4)+c,x+="up"+re(C.length,2)+C),A&&(w=re(1,1)+re(lx(m),4)+g,x+="uc"+re(w.length,2)+w);var O="";O+=`
14
+ \0`,O+=re(D,2),O+=d.magic,O+=re(T,2),O+=re(y,2),O+=re(B.crc32,4),O+=re(B.compressedSize,4),O+=re(B.uncompressedSize,4),O+=re(u.length,2),O+=re(x.length,2);var G=Tf.LOCAL_FILE_HEADER+O+u+x,se=Tf.CENTRAL_FILE_HEADER+re(z,2)+O+re(m.length,2)+"\0\0\0\0"+re(F,4)+re(i,4)+u+x+m;return{fileRecord:G,dirRecord:se}},"generateZipParts"),rD=n(function(e,t,r,i,a){var s="",l=_a.transformTo("string",a(i));return s=Tf.CENTRAL_DIRECTORY_END+"\0\0\0\0"+re(e,2)+re(e,2)+re(t,4)+re(r,4)+re(l.length,2)+l,s},"generateCentralDirectoryEnd"),iD=n(function(e){var t="";return t=Tf.DATA_DESCRIPTOR+re(e.crc32,4)+re(e.compressedSize,4)+re(e.uncompressedSize,4),t},"generateDataDescriptors");function It(e,t,r,i){ma.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n(It,"ZipFileWorker");_a.inherits(It,ma);It.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,ma.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-i-1))/r:100}}))};It.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=fx(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0};It.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=fx(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:iD(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null};It.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,i=rD(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})};It.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()};It.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(r){t.error(r)}),this};It.prototype.resume=function(){if(!ma.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};It.prototype.error=function(e){var t=this._sources;if(!ma.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch{}return!0};It.prototype.lock=function(){ma.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};ux.exports=It});var hx=R(cx=>{"use strict";var nD=cp(),aD=dx(),oD=n(function(e,t){var r=e||t,i=nD[r];if(!i)throw new Error(r+" is not a valid compression method !");return i},"getCompression");cx.generateWorker=function(e,t,r){var i=new aD(t.streamFiles,r,t.platform,t.encodeFileName),a=0;try{e.forEach(function(s,l){a++;var d=oD(l.options.compression,t.compression),p=l.options.compressionOptions||t.compressionOptions||{},u=l.dir,c=l.date;l._compressWorker(d,p).withStreamInfo("file",{name:s,dir:u,date:c,comment:l.comment||"",unixPermissions:l.unixPermissions,dosPermissions:l.dosPermissions}).pipe(i)}),i.entriesCount=a}catch(s){i.error(s)}return i}});var _x=R((Eq,px)=>{"use strict";var sD=fe(),Rf=Ke();function is(e,t){Rf.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n(is,"NodejsStreamInputAdapter");sD.inherits(is,Rf);is.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",function(r){t.push({data:r,meta:{percent:0}})}).on("error",function(r){t.isPaused?this.generatedError=r:t.error(r)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})};is.prototype.pause=function(){return Rf.prototype.pause.call(this)?(this._stream.pause(),!0):!1};is.prototype.resume=function(){return Rf.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};px.exports=is});var kx=R((Tq,Ex)=>{"use strict";var lD=ia(),ns=fe(),bx=Ke(),fD=bh(),yx=yh(),mx=of(),uD=gw(),dD=hx(),gx=Do(),cD=_x(),wx=n(function(e,t,r){var i=ns.getTypeOf(t),a,s=ns.extend(r||{},yx);s.date=s.date||new Date,s.compression!==null&&(s.compression=s.compression.toUpperCase()),typeof s.unixPermissions=="string"&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&s.unixPermissions&16384&&(s.dir=!0),s.dosPermissions&&s.dosPermissions&16&&(s.dir=!0),s.dir&&(e=Sx(e)),s.createFolders&&(a=hD(e))&&xx.call(this,a,!0);var l=i==="string"&&s.binary===!1&&s.base64===!1;(!r||typeof r.binary>"u")&&(s.binary=!l);var d=t instanceof mx&&t.uncompressedSize===0;(d||s.dir||!t||t.length===0)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var p=null;t instanceof mx||t instanceof bx?p=t:gx.isNode&&gx.isStream(t)?p=new cD(e,t):p=ns.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var u=new uD(e,p,s);this.files[e]=u},"fileAdd"),hD=n(function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},"parentFolder"),Sx=n(function(e){return e.slice(-1)!=="/"&&(e+="/"),e},"forceTrailingSlash"),xx=n(function(e,t){return t=typeof t<"u"?t:yx.createFolders,e=Sx(e),this.files[e]||wx.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},"folderAdd");function vx(e){return Object.prototype.toString.call(e)==="[object RegExp]"}n(vx,"isRegExp");var pD={load:n(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"load"),forEach:n(function(e){var t,r,i;for(t in this.files)i=this.files[t],r=t.slice(this.root.length,t.length),r&&t.slice(0,this.root.length)===this.root&&e(r,i)},"forEach"),filter:n(function(e){var t=[];return this.forEach(function(r,i){e(r,i)&&t.push(i)}),t},"filter"),file:n(function(e,t,r){if(arguments.length===1)if(vx(e)){var i=e;return this.filter(function(s,l){return!l.dir&&i.test(s)})}else{var a=this.files[this.root+e];return a&&!a.dir?a:null}else e=this.root+e,wx.call(this,e,t,r);return this},"file"),folder:n(function(e){if(!e)return this;if(vx(e))return this.filter(function(a,s){return s.dir&&e.test(a)});var t=this.root+e,r=xx.call(this,t),i=this.clone();return i.root=r.name,i},"folder"),remove:n(function(e){e=this.root+e;var t=this.files[e];if(t||(e.slice(-1)!=="/"&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(a,s){return s.name.slice(0,e.length)===e}),i=0;i<r.length;i++)delete this.files[r[i].name];return this},"remove"),generate:n(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"generate"),generateInternalStream:n(function(e){var t,r={};try{if(r=ns.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:lD.utf8encode}),r.type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),r.type==="binarystring"&&(r.type="string"),!r.type)throw new Error("No output type specified.");ns.checkSupport(r.type),(r.platform==="darwin"||r.platform==="freebsd"||r.platform==="linux"||r.platform==="sunos")&&(r.platform="UNIX"),r.platform==="win32"&&(r.platform="DOS");var i=r.comment||this.comment||"";t=dD.generateWorker(this,r,i)}catch(a){t=new bx("error"),t.error(a)}return new fD(t,r.type||"string",r.mimeType)},"generateInternalStream"),generateAsync:n(function(e,t){return this.generateInternalStream(e).accumulate(t)},"generateAsync"),generateNodeStream:n(function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)},"generateNodeStream")};Ex.exports=pD});var _p=R((Aq,Rx)=>{"use strict";var _D=fe();function Tx(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}n(Tx,"DataReader");Tx.prototype={checkOffset:n(function(e){this.checkIndex(this.index+e)},"checkOffset"),checkIndex:n(function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},"checkIndex"),setIndex:n(function(e){this.checkIndex(e),this.index=e},"setIndex"),skip:n(function(e){this.setIndex(this.index+e)},"skip"),byteAt:n(function(){},"byteAt"),readInt:n(function(e){var t=0,r;for(this.checkOffset(e),r=this.index+e-1;r>=this.index;r--)t=(t<<8)+this.byteAt(r);return this.index+=e,t},"readInt"),readString:n(function(e){return _D.transformTo("string",this.readData(e))},"readString"),readData:n(function(){},"readData"),lastIndexOfSignature:n(function(){},"lastIndexOfSignature"),readAndCheckSignature:n(function(){},"readAndCheckSignature"),readDate:n(function(){var e=this.readInt(4);return new Date(Date.UTC((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1))},"readDate")};Rx.exports=Tx});var mp=R((Iq,Cx)=>{"use strict";var Ax=_p(),mD=fe();function ga(e){Ax.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}n(ga,"ArrayReader");mD.inherits(ga,Ax);ga.prototype.byteAt=function(e){return this.data[this.zero+e]};ga.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),a=e.charCodeAt(3),s=this.length-4;s>=0;--s)if(this.data[s]===t&&this.data[s+1]===r&&this.data[s+2]===i&&this.data[s+3]===a)return s-this.zero;return-1};ga.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),a=e.charCodeAt(3),s=this.readData(4);return t===s[0]&&r===s[1]&&i===s[2]&&a===s[3]};ga.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Cx.exports=ga});var Px=R((Pq,Ox)=>{"use strict";var Ix=_p(),gD=fe();function va(e){Ix.call(this,e)}n(va,"StringReader");gD.inherits(va,Ix);va.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};va.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};va.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};va.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Ox.exports=va});var vp=R((Bq,Bx)=>{"use strict";var Dx=mp(),vD=fe();function gp(e){Dx.call(this,e)}n(gp,"Uint8ArrayReader");vD.inherits(gp,Dx);gp.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Bx.exports=gp});var zx=R((Lq,Lx)=>{"use strict";var Fx=vp(),bD=fe();function bp(e){Fx.call(this,e)}n(bp,"NodeBufferReader");bD.inherits(bp,Fx);bp.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Lx.exports=bp});var yp=R((qq,Mx)=>{"use strict";var Af=fe(),qx=xr(),yD=mp(),wD=Px(),SD=zx(),xD=vp();Mx.exports=function(e){var t=Af.getTypeOf(e);return Af.checkSupport(t),t==="string"&&!qx.uint8array?new wD(e):t==="nodebuffer"?new SD(e):qx.uint8array?new xD(Af.transformTo("uint8array",e)):new yD(Af.transformTo("array",e))}});var jx=R((Mq,Wx)=>{"use strict";var wp=yp(),si=fe(),ED=of(),Nx=af(),Cf=ia(),If=cp(),kD=xr(),TD=0,RD=3,AD=n(function(e){for(var t in If)if(Object.prototype.hasOwnProperty.call(If,t)&&If[t].magic===e)return If[t];return null},"findCompression");function Ux(e,t){this.options=e,this.loadOptions=t}n(Ux,"ZipEntry");Ux.prototype={isEncrypted:n(function(){return(this.bitFlag&1)===1},"isEncrypted"),useUTF8:n(function(){return(this.bitFlag&2048)===2048},"useUTF8"),readLocalPart:n(function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(t=AD(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+si.pretty(this.compressionMethod)+" unknown (inner file : "+si.transformTo("string",this.fileName)+")");this.decompressed=new ED(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},"readLocalPart"),readCentralPart:n(function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},"readCentralPart"),processAttributes:n(function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),e===TD&&(this.dosPermissions=this.externalFileAttributes&63),e===RD&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},"processAttributes"),parseZIP64ExtraField:n(function(){if(this.extraFields[1]){var e=wp(this.extraFields[1].value);this.uncompressedSize===si.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===si.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===si.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===si.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},"parseZIP64ExtraField"),readExtraFields:n(function(e){var t=e.index+this.extraFieldsLength,r,i,a;for(this.extraFields||(this.extraFields={});e.index+4<t;)r=e.readInt(2),i=e.readInt(2),a=e.readData(i),this.extraFields[r]={id:r,length:i,value:a};e.setIndex(t)},"readExtraFields"),handleUTF8:n(function(){var e=kD.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Cf.utf8decode(this.fileName),this.fileCommentStr=Cf.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var r=si.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var i=this.findExtraFieldUnicodeComment();if(i!==null)this.fileCommentStr=i;else{var a=si.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},"handleUTF8"),findExtraFieldUnicodePath:n(function(){var e=this.extraFields[28789];if(e){var t=wp(e.value);return t.readInt(1)!==1||Nx(this.fileName)!==t.readInt(4)?null:Cf.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodePath"),findExtraFieldUnicodeComment:n(function(){var e=this.extraFields[25461];if(e){var t=wp(e.value);return t.readInt(1)!==1||Nx(this.fileComment)!==t.readInt(4)?null:Cf.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodeComment")};Wx.exports=Ux});var $x=R((Uq,Hx)=>{"use strict";var CD=yp(),Cr=fe(),Ot=hp(),ID=jx(),OD=xr();function Zx(e){this.files=[],this.loadOptions=e}n(Zx,"ZipEntries");Zx.prototype={checkSignature:n(function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+Cr.pretty(t)+", expected "+Cr.pretty(e)+")")}},"checkSignature"),isSignature:n(function(e,t){var r=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4),a=i===t;return this.reader.setIndex(r),a},"isSignature"),readBlockEndOfCentral:n(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 e=this.reader.readData(this.zipCommentLength),t=OD.uint8array?"uint8array":"array",r=Cr.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},"readBlockEndOfCentral"),readBlockZip64EndOfCentral:n(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 e=this.zip64EndOfCentralSize-44,t=0,r,i,a;t<e;)r=this.reader.readInt(2),i=this.reader.readInt(4),a=this.reader.readData(i),this.zip64ExtensibleData[r]={id:r,length:i,value:a}},"readBlockZip64EndOfCentral"),readBlockZip64EndOfCentralLocator:n(function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},"readBlockZip64EndOfCentralLocator"),readLocalFiles:n(function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(Ot.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},"readLocalFiles"),readCentralDir:n(function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(Ot.CENTRAL_FILE_HEADER);)e=new ID({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},"readCentralDir"),readEndOfCentral:n(function(){var e=this.reader.lastIndexOfSignature(Ot.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,Ot.LOCAL_FILE_HEADER);throw t?new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(e);var r=e;if(this.checkSignature(Ot.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===Cr.MAX_VALUE_16BITS||this.diskWithCentralDirStart===Cr.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===Cr.MAX_VALUE_16BITS||this.centralDirRecords===Cr.MAX_VALUE_16BITS||this.centralDirSize===Cr.MAX_VALUE_32BITS||this.centralDirOffset===Cr.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(Ot.ZIP64_CENTRAL_DIRECTORY_LOCATOR),e<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(Ot.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,Ot.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(Ot.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(Ot.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var a=r-i;if(a>0)this.isSignature(r,Ot.CENTRAL_FILE_HEADER)||(this.reader.zero=a);else if(a<0)throw new Error("Corrupted zip: missing "+Math.abs(a)+" bytes.")},"readEndOfCentral"),prepareReader:n(function(e){this.reader=CD(e)},"prepareReader"),load:n(function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()},"load")};Hx.exports=Zx});var Vx=R((jq,Gx)=>{"use strict";var Sp=fe(),Of=ea(),PD=ia(),DD=$x(),BD=xh(),Yx=Do();function FD(e){return new Of.Promise(function(t,r){var i=e.decompressed.getContentWorker().pipe(new BD);i.on("error",function(a){r(a)}).on("end",function(){i.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}n(FD,"checkEntryCRC32");Gx.exports=function(e,t){var r=this;return t=Sp.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:PD.utf8decode}),Yx.isNode&&Yx.isStream(e)?Of.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Sp.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(i){var a=new DD(t);return a.load(i),a}).then(n(function(a){var s=[Of.Promise.resolve(a)],l=a.files;if(t.checkCRC32)for(var d=0;d<l.length;d++)s.push(FD(l[d]));return Of.Promise.all(s)},"checkCRC32")).then(n(function(a){for(var s=a.shift(),l=s.files,d=0;d<l.length;d++){var p=l[d],u=p.fileNameStr,c=Sp.resolve(p.fileNameStr);r.file(c,p.decompressed,{binary:!0,optimizedBinaryString:!0,date:p.date,dir:p.dir,comment:p.fileCommentStr.length?p.fileCommentStr:null,unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions,createFolders:t.createFolders}),p.dir||(r.file(c).unsafeOriginalName=u)}return s.zipComment.length&&(r.comment=s.zipComment),r},"addFiles"))}});var xp=R((Hq,Kx)=>{"use strict";function ct(){if(!(this instanceof ct))return new ct;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new ct;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}n(ct,"JSZip");ct.prototype=kx();ct.prototype.loadAsync=Vx();ct.support=xr();ct.defaults=yh();ct.version="3.10.1";ct.loadAsync=function(e,t){return new ct().loadAsync(e,t)};ct.external=ea();Kx.exports=ct});var LD={};j_(LD,{TestRunMonitor:()=>Df});module.exports=tk(LD);var i1=tt(require("net")),ba=require("fs");var xm=tt(require("http"),1),Em=tt(require("https"),1),wi=tt(require("zlib"),1),He=tt(require("stream"),1),Ua=require("buffer");function rk(e){if(!/^data:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,"");let t=e.indexOf(",");if(t===-1||t<=4)throw new TypeError("malformed data: URI");let r=e.substring(5,t).split(";"),i="",a=!1,s=r[0]||"text/plain",l=s;for(let c=1;c<r.length;c++)r[c]==="base64"?a=!0:r[c]&&(l+=`;${r[c]}`,r[c].indexOf("charset=")===0&&(i=r[c].substring(8)));!r[0]&&!i.length&&(l+=";charset=US-ASCII",i="US-ASCII");let d=a?"base64":"ascii",p=unescape(e.substring(t+1)),u=Buffer.from(p,d);return u.type=s,u.typeFull=l,u.charset=i,u}n(rk,"dataUriToBuffer");var $_=rk;var it=tt(require("stream"),1),fr=require("util"),je=require("buffer");Da();Ls();var Du=class Du extends Error{constructor(t,r){super(t),Error.captureStackTrace(this,this.constructor),this.type=r}get name(){return this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}};n(Du,"FetchBaseError");var lr=Du;var Bu=class Bu extends lr{constructor(t,r,i){super(t,r),i&&(this.code=this.errno=i.code,this.erroredSysCall=i.syscall)}};n(Bu,"FetchError");var Le=Bu;var zs=Symbol.toStringTag,Fu=n(e=>typeof e=="object"&&typeof e.append=="function"&&typeof e.delete=="function"&&typeof e.get=="function"&&typeof e.getAll=="function"&&typeof e.has=="function"&&typeof e.set=="function"&&typeof e.sort=="function"&&e[zs]==="URLSearchParams","isURLSearchParameters"),za=n(e=>e&&typeof e=="object"&&typeof e.arrayBuffer=="function"&&typeof e.type=="string"&&typeof e.stream=="function"&&typeof e.constructor=="function"&&/^(Blob|File)$/.test(e[zs]),"isBlob"),tm=n(e=>typeof e=="object"&&(e[zs]==="AbortSignal"||e[zs]==="EventTarget"),"isAbortSignal"),rm=n((e,t)=>{let r=new URL(t).hostname,i=new URL(e).hostname;return r===i||r.endsWith(`.${i}`)},"isDomainOrSubdomain"),im=n((e,t)=>{let r=new URL(t).protocol,i=new URL(e).protocol;return r===i},"isSameProtocol");var gk=(0,fr.promisify)(it.default.pipeline),ze=Symbol("Body internals"),Nu=class Nu{constructor(t,{size:r=0}={}){let i=null;t===null?t=null:Fu(t)?t=je.Buffer.from(t.toString()):za(t)||je.Buffer.isBuffer(t)||(fr.types.isAnyArrayBuffer(t)?t=je.Buffer.from(t):ArrayBuffer.isView(t)?t=je.Buffer.from(t.buffer,t.byteOffset,t.byteLength):t instanceof it.default||(t instanceof gi?(t=em(t),i=t.type.split("=")[1]):t=je.Buffer.from(String(t))));let a=t;je.Buffer.isBuffer(t)?a=it.default.Readable.from(t):za(t)&&(a=it.default.Readable.from(t.stream())),this[ze]={body:t,stream:a,boundary:i,disturbed:!1,error:null},this.size=r,t instanceof it.default&&t.on("error",s=>{let l=s instanceof lr?s:new Le(`Invalid response body while trying to fetch ${this.url}: ${s.message}`,"system",s);this[ze].error=l})}get body(){return this[ze].stream}get bodyUsed(){return this[ze].disturbed}async arrayBuffer(){let{buffer:t,byteOffset:r,byteLength:i}=await Mu(this);return t.slice(r,r+i)}async formData(){let t=this.headers.get("content-type");if(t.startsWith("application/x-www-form-urlencoded")){let i=new gi,a=new URLSearchParams(await this.text());for(let[s,l]of a)i.append(s,l);return i}let{toFormData:r}=await Promise.resolve().then(()=>(lm(),sm));return r(this.body,t)}async blob(){let t=this.headers&&this.headers.get("content-type")||this[ze].body&&this[ze].body.type||"",r=await this.arrayBuffer();return new sr([r],{type:t})}async json(){let t=await this.text();return JSON.parse(t)}async text(){let t=await Mu(this);return new TextDecoder().decode(t)}buffer(){return Mu(this)}};n(Nu,"Body");var Mt=Nu;Mt.prototype.buffer=(0,fr.deprecate)(Mt.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer");Object.defineProperties(Mt.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:(0,fr.deprecate)(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});async function Mu(e){if(e[ze].disturbed)throw new TypeError(`body used already for: ${e.url}`);if(e[ze].disturbed=!0,e[ze].error)throw e[ze].error;let{body:t}=e;if(t===null)return je.Buffer.alloc(0);if(!(t instanceof it.default))return je.Buffer.alloc(0);let r=[],i=0;try{for await(let a of t){if(e.size>0&&i+a.length>e.size){let s=new Le(`content size at ${e.url} over limit: ${e.size}`,"max-size");throw t.destroy(s),s}i+=a.length,r.push(a)}}catch(a){throw a instanceof lr?a:new Le(`Invalid response body while trying to fetch ${e.url}: ${a.message}`,"system",a)}if(t.readableEnded===!0||t._readableState.ended===!0)try{return r.every(a=>typeof a=="string")?je.Buffer.from(r.join("")):je.Buffer.concat(r,i)}catch(a){throw new Le(`Could not create Buffer from response body for ${e.url}: ${a.message}`,"system",a)}else throw new Le(`Premature close of server response while trying to fetch ${e.url}`)}n(Mu,"consumeBody");var gn=n((e,t)=>{let r,i,{body:a}=e[ze];if(e.bodyUsed)throw new Error("cannot clone body after it is used");return a instanceof it.default&&typeof a.getBoundary!="function"&&(r=new it.PassThrough({highWaterMark:t}),i=new it.PassThrough({highWaterMark:t}),a.pipe(r),a.pipe(i),e[ze].stream=r,a=i),a},"clone"),vk=(0,fr.deprecate)(e=>e.getBoundary(),"form-data doesn't follow the spec and requires special treatment. Use alternative package","https://github.com/node-fetch/node-fetch/issues/1167"),Us=n((e,t)=>e===null?null:typeof e=="string"?"text/plain;charset=UTF-8":Fu(e)?"application/x-www-form-urlencoded;charset=UTF-8":za(e)?e.type||null:je.Buffer.isBuffer(e)||fr.types.isAnyArrayBuffer(e)||ArrayBuffer.isView(e)?null:e instanceof gi?`multipart/form-data; boundary=${t[ze].boundary}`:e&&typeof e.getBoundary=="function"?`multipart/form-data;boundary=${vk(e)}`:e instanceof it.default?null:"text/plain;charset=UTF-8","extractContentType"),fm=n(e=>{let{body:t}=e[ze];return t===null?0:za(t)?t.size:je.Buffer.isBuffer(t)?t.length:t&&typeof t.getLengthSync=="function"&&t.hasKnownLength&&t.hasKnownLength()?t.getLengthSync():null},"getTotalBytes"),um=n(async(e,{body:t})=>{t===null?e.end():await gk(t,e)},"writeToStream");var Uu=require("util"),Ma=tt(require("http"),1);var Ws=typeof Ma.default.validateHeaderName=="function"?Ma.default.validateHeaderName:e=>{if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(e)){let t=new TypeError(`Header name must be a valid HTTP token [${e}]`);throw Object.defineProperty(t,"code",{value:"ERR_INVALID_HTTP_TOKEN"}),t}},Wu=typeof Ma.default.validateHeaderValue=="function"?Ma.default.validateHeaderValue:(e,t)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(t)){let r=new TypeError(`Invalid character in header content ["${e}"]`);throw Object.defineProperty(r,"code",{value:"ERR_INVALID_CHAR"}),r}},js=class js extends URLSearchParams{constructor(t){let r=[];if(t instanceof js){let i=t.raw();for(let[a,s]of Object.entries(i))r.push(...s.map(l=>[a,l]))}else if(t!=null)if(typeof t=="object"&&!Uu.types.isBoxedPrimitive(t)){let i=t[Symbol.iterator];if(i==null)r.push(...Object.entries(t));else{if(typeof i!="function")throw new TypeError("Header pairs must be iterable");r=[...t].map(a=>{if(typeof a!="object"||Uu.types.isBoxedPrimitive(a))throw new TypeError("Each header pair must be an iterable object");return[...a]}).map(a=>{if(a.length!==2)throw new TypeError("Each header pair must be a name/value tuple");return[...a]})}}else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence<sequence<ByteString>> or record<ByteString, ByteString>)");return r=r.length>0?r.map(([i,a])=>(Ws(i),Wu(i,String(a)),[String(i).toLowerCase(),String(a)])):void 0,super(r),new Proxy(this,{get(i,a,s){switch(a){case"append":case"set":return(l,d)=>(Ws(l),Wu(l,String(d)),URLSearchParams.prototype[a].call(i,String(l).toLowerCase(),String(d)));case"delete":case"has":case"getAll":return l=>(Ws(l),URLSearchParams.prototype[a].call(i,String(l).toLowerCase()));case"keys":return()=>(i.sort(),new Set(URLSearchParams.prototype.keys.call(i)).keys());default:return Reflect.get(i,a,s)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(t){let r=this.getAll(t);if(r.length===0)return null;let i=r.join(", ");return/^content-encoding$/i.test(t)&&(i=i.toLowerCase()),i}forEach(t,r=void 0){for(let i of this.keys())Reflect.apply(t,r,[this.get(i),i,this])}*values(){for(let t of this.keys())yield this.get(t)}*entries(){for(let t of this.keys())yield[t,this.get(t)]}[Symbol.iterator](){return this.entries()}raw(){return[...this.keys()].reduce((t,r)=>(t[r]=this.getAll(r),t),{})}[Symbol.for("nodejs.util.inspect.custom")](){return[...this.keys()].reduce((t,r)=>{let i=this.getAll(r);return r==="host"?t[r]=i[0]:t[r]=i.length>1?i:i[0],t},{})}};n(js,"Headers");var Ze=js;Object.defineProperties(Ze.prototype,["get","entries","forEach","values"].reduce((e,t)=>(e[t]={enumerable:!0},e),{}));function dm(e=[]){return new Ze(e.reduce((t,r,i,a)=>(i%2===0&&t.push(a.slice(i,i+2)),t),[]).filter(([t,r])=>{try{return Ws(t),Wu(t,String(r)),!0}catch{return!1}}))}n(dm,"fromRawHeaders");var bk=new Set([301,302,303,307,308]),Zs=n(e=>bk.has(e),"isRedirect");var wt=Symbol("Response internals"),bi=class bi extends Mt{constructor(t=null,r={}){super(t,r);let i=r.status!=null?r.status:200,a=new Ze(r.headers);if(t!==null&&!a.has("Content-Type")){let s=Us(t,this);s&&a.append("Content-Type",s)}this[wt]={type:"default",url:r.url,status:i,statusText:r.statusText||"",headers:a,counter:r.counter,highWaterMark:r.highWaterMark}}get type(){return this[wt].type}get url(){return this[wt].url||""}get status(){return this[wt].status}get ok(){return this[wt].status>=200&&this[wt].status<300}get redirected(){return this[wt].counter>0}get statusText(){return this[wt].statusText}get headers(){return this[wt].headers}get highWaterMark(){return this[wt].highWaterMark}clone(){return new bi(gn(this,this.highWaterMark),{type:this.type,url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,size:this.size,highWaterMark:this.highWaterMark})}static redirect(t,r=302){if(!Zs(r))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new bi(null,{headers:{location:new URL(t).toString()},status:r})}static error(){let t=new bi(null,{status:0,statusText:""});return t[wt].type="error",t}static json(t=void 0,r={}){let i=JSON.stringify(t);if(i===void 0)throw new TypeError("data is not JSON serializable");let a=new Ze(r&&r.headers);return a.has("content-type")||a.set("content-type","application/json"),new bi(i,{...r,headers:a})}get[Symbol.toStringTag](){return"Response"}};n(bi,"Response");var nt=bi;Object.defineProperties(nt.prototype,{type:{enumerable:!0},url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}});var ym=require("url"),wm=require("util");var cm=n(e=>{if(e.search)return e.search;let t=e.href.length-1,r=e.hash||(e.href[t]==="#"?"#":"");return e.href[t-r.length]==="?"?"?":""},"getSearch");var pm=require("net");function hm(e,t=!1){return e==null||(e=new URL(e),/^(about|blob|data):$/.test(e.protocol))?"no-referrer":(e.username="",e.password="",e.hash="",t&&(e.pathname="",e.search=""),e)}n(hm,"stripURLForUseAsAReferrer");var _m=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),mm="strict-origin-when-cross-origin";function gm(e){if(!_m.has(e))throw new TypeError(`Invalid referrerPolicy: ${e}`);return e}n(gm,"validateReferrerPolicy");function yk(e){if(/^(http|ws)s:$/.test(e.protocol))return!0;let t=e.host.replace(/(^\[)|(]$)/g,""),r=(0,pm.isIP)(t);return r===4&&/^127\./.test(t)||r===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(t)?!0:e.host==="localhost"||e.host.endsWith(".localhost")?!1:e.protocol==="file:"}n(yk,"isOriginPotentiallyTrustworthy");function vn(e){return/^about:(blank|srcdoc)$/.test(e)||e.protocol==="data:"||/^(blob|filesystem):$/.test(e.protocol)?!0:yk(e)}n(vn,"isUrlPotentiallyTrustworthy");function vm(e,{referrerURLCallback:t,referrerOriginCallback:r}={}){if(e.referrer==="no-referrer"||e.referrerPolicy==="")return null;let i=e.referrerPolicy;if(e.referrer==="about:client")return"no-referrer";let a=e.referrer,s=hm(a),l=hm(a,!0);s.toString().length>4096&&(s=l),t&&(s=t(s)),r&&(l=r(l));let d=new URL(e.url);switch(i){case"no-referrer":return"no-referrer";case"origin":return l;case"unsafe-url":return s;case"strict-origin":return vn(s)&&!vn(d)?"no-referrer":l.toString();case"strict-origin-when-cross-origin":return s.origin===d.origin?s:vn(s)&&!vn(d)?"no-referrer":l;case"same-origin":return s.origin===d.origin?s:"no-referrer";case"origin-when-cross-origin":return s.origin===d.origin?s:l;case"no-referrer-when-downgrade":return vn(s)&&!vn(d)?"no-referrer":s;default:throw new TypeError(`Invalid referrerPolicy: ${i}`)}}n(vm,"determineRequestsReferrer");function bm(e){let t=(e.get("referrer-policy")||"").split(/[,\s]+/),r="";for(let i of t)i&&_m.has(i)&&(r=i);return r}n(bm,"parseReferrerPolicyFromHeader");var ye=Symbol("Request internals"),Na=n(e=>typeof e=="object"&&typeof e[ye]=="object","isRequest"),wk=(0,wm.deprecate)(()=>{},".data is not a valid RequestInit property, use .body instead","https://github.com/node-fetch/node-fetch/issues/1000 (request)"),Hs=class Hs extends Mt{constructor(t,r={}){let i;if(Na(t)?i=new URL(t.url):(i=new URL(t),t={}),i.username!==""||i.password!=="")throw new TypeError(`${i} is an url with embedded credentials.`);let a=r.method||t.method||"GET";if(/^(delete|get|head|options|post|put)$/i.test(a)&&(a=a.toUpperCase()),!Na(r)&&"data"in r&&wk(),(r.body!=null||Na(t)&&t.body!==null)&&(a==="GET"||a==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let s=r.body?r.body:Na(t)&&t.body!==null?gn(t):null;super(s,{size:r.size||t.size||0});let l=new Ze(r.headers||t.headers||{});if(s!==null&&!l.has("Content-Type")){let u=Us(s,this);u&&l.set("Content-Type",u)}let d=Na(t)?t.signal:null;if("signal"in r&&(d=r.signal),d!=null&&!tm(d))throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");let p=r.referrer==null?t.referrer:r.referrer;if(p==="")p="no-referrer";else if(p){let u=new URL(p);p=/^about:(\/\/)?client$/.test(u)?"client":u}else p=void 0;this[ye]={method:a,redirect:r.redirect||t.redirect||"follow",headers:l,parsedURL:i,signal:d,referrer:p},this.follow=r.follow===void 0?t.follow===void 0?20:t.follow:r.follow,this.compress=r.compress===void 0?t.compress===void 0?!0:t.compress:r.compress,this.counter=r.counter||t.counter||0,this.agent=r.agent||t.agent,this.highWaterMark=r.highWaterMark||t.highWaterMark||16384,this.insecureHTTPParser=r.insecureHTTPParser||t.insecureHTTPParser||!1,this.referrerPolicy=r.referrerPolicy||t.referrerPolicy||""}get method(){return this[ye].method}get url(){return(0,ym.format)(this[ye].parsedURL)}get headers(){return this[ye].headers}get redirect(){return this[ye].redirect}get signal(){return this[ye].signal}get referrer(){if(this[ye].referrer==="no-referrer")return"";if(this[ye].referrer==="client")return"about:client";if(this[ye].referrer)return this[ye].referrer.toString()}get referrerPolicy(){return this[ye].referrerPolicy}set referrerPolicy(t){this[ye].referrerPolicy=gm(t)}clone(){return new Hs(this)}get[Symbol.toStringTag](){return"Request"}};n(Hs,"Request");var yi=Hs;Object.defineProperties(yi.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0},referrer:{enumerable:!0},referrerPolicy:{enumerable:!0}});var Sm=n(e=>{let{parsedURL:t}=e[ye],r=new Ze(e[ye].headers);r.has("Accept")||r.set("Accept","*/*");let i=null;if(e.body===null&&/^(post|put)$/i.test(e.method)&&(i="0"),e.body!==null){let d=fm(e);typeof d=="number"&&!Number.isNaN(d)&&(i=String(d))}i&&r.set("Content-Length",i),e.referrerPolicy===""&&(e.referrerPolicy=mm),e.referrer&&e.referrer!=="no-referrer"?e[ye].referrer=vm(e):e[ye].referrer="no-referrer",e[ye].referrer instanceof URL&&r.set("Referer",e.referrer),r.has("User-Agent")||r.set("User-Agent","node-fetch"),e.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip, deflate, br");let{agent:a}=e;typeof a=="function"&&(a=a(t));let s=cm(t),l={path:t.pathname+s,method:e.method,headers:r[Symbol.for("nodejs.util.inspect.custom")](),insecureHTTPParser:e.insecureHTTPParser,agent:a};return{parsedURL:t,options:l}},"getNodeRequestOptions");var ju=class ju extends lr{constructor(t,r="aborted"){super(t,r)}};n(ju,"AbortError");var $s=ju;Ls();Lu();var Sk=new Set(["data:","http:","https:"]);async function Ys(e,t){return new Promise((r,i)=>{let a=new yi(e,t),{parsedURL:s,options:l}=Sm(a);if(!Sk.has(s.protocol))throw new TypeError(`node-fetch cannot load ${e}. URL scheme "${s.protocol.replace(/:$/,"")}" is not supported.`);if(s.protocol==="data:"){let b=$_(a.url),A=new nt(b,{headers:{"Content-Type":b.typeFull}});r(A);return}let d=(s.protocol==="https:"?Em.default:xm.default).request,{signal:p}=a,u=null,c=n(()=>{let b=new $s("The operation was aborted.");i(b),a.body&&a.body instanceof He.default.Readable&&a.body.destroy(b),!(!u||!u.body)&&u.body.emit("error",b)},"abort");if(p&&p.aborted){c();return}let E=n(()=>{c(),g()},"abortAndFinalize"),m=d(s.toString(),l);p&&p.addEventListener("abort",E);let g=n(()=>{m.abort(),p&&p.removeEventListener("abort",E)},"finalize");m.on("error",b=>{i(new Le(`request to ${a.url} failed, reason: ${b.message}`,"system",b)),g()}),xk(m,b=>{u&&u.body&&u.body.destroy(b)}),process.version<"v14"&&m.on("socket",b=>{let A;b.prependListener("end",()=>{A=b._eventsCount}),b.prependListener("close",T=>{if(u&&A<b._eventsCount&&!T){let y=new Error("Premature close");y.code="ERR_STREAM_PREMATURE_CLOSE",u.body.emit("error",y)}})}),m.on("response",b=>{m.setTimeout(0);let A=dm(b.rawHeaders);if(Zs(b.statusCode)){let w=A.get("Location"),S=null;try{S=w===null?null:new URL(w,a.url)}catch{if(a.redirect!=="manual"){i(new Le(`uri requested responds with an invalid redirect URL: ${w}`,"invalid-redirect")),g();return}}switch(a.redirect){case"error":i(new Le(`uri requested responds with a redirect, redirect mode is set to error: ${a.url}`,"no-redirect")),g();return;case"manual":break;case"follow":{if(S===null)break;if(a.counter>=a.follow){i(new Le(`maximum redirect reached at: ${a.url}`,"max-redirect")),g();return}let P={headers:new Ze(a.headers),follow:a.follow,counter:a.counter+1,agent:a.agent,compress:a.compress,method:a.method,body:gn(a),signal:a.signal,size:a.size,referrer:a.referrer,referrerPolicy:a.referrerPolicy};if(!rm(a.url,S)||!im(a.url,S))for(let D of["authorization","www-authenticate","cookie","cookie2"])P.headers.delete(D);if(b.statusCode!==303&&a.body&&t.body instanceof He.default.Readable){i(new Le("Cannot follow redirect with body being a readable stream","unsupported-redirect")),g();return}(b.statusCode===303||(b.statusCode===301||b.statusCode===302)&&a.method==="POST")&&(P.method="GET",P.body=void 0,P.headers.delete("content-length"));let B=bm(A);B&&(P.referrerPolicy=B),r(Ys(new yi(S,P))),g();return}default:return i(new TypeError(`Redirect option '${a.redirect}' is not a valid value of RequestRedirect`))}}p&&b.once("end",()=>{p.removeEventListener("abort",E)});let T=(0,He.pipeline)(b,new He.PassThrough,w=>{w&&i(w)});process.version<"v12.10"&&b.on("aborted",E);let y={url:a.url,status:b.statusCode,statusText:b.statusMessage,headers:A,size:a.size,counter:a.counter,highWaterMark:a.highWaterMark},x=A.get("Content-Encoding");if(!a.compress||a.method==="HEAD"||x===null||b.statusCode===204||b.statusCode===304){u=new nt(T,y),r(u);return}let C={flush:wi.default.Z_SYNC_FLUSH,finishFlush:wi.default.Z_SYNC_FLUSH};if(x==="gzip"||x==="x-gzip"){T=(0,He.pipeline)(T,wi.default.createGunzip(C),w=>{w&&i(w)}),u=new nt(T,y),r(u);return}if(x==="deflate"||x==="x-deflate"){let w=(0,He.pipeline)(b,new He.PassThrough,S=>{S&&i(S)});w.once("data",S=>{(S[0]&15)===8?T=(0,He.pipeline)(T,wi.default.createInflate(),P=>{P&&i(P)}):T=(0,He.pipeline)(T,wi.default.createInflateRaw(),P=>{P&&i(P)}),u=new nt(T,y),r(u)}),w.once("end",()=>{u||(u=new nt(T,y),r(u))});return}if(x==="br"){T=(0,He.pipeline)(T,wi.default.createBrotliDecompress(),w=>{w&&i(w)}),u=new nt(T,y),r(u);return}u=new nt(T,y),r(u)}),um(m,a).catch(i)})}n(Ys,"fetch");function xk(e,t){let r=Ua.Buffer.from(`0\r
15
15
  \r
16
- `),i=!1,a=!1,s;e.on("response",l=>{let{headers:d}=l;i=d["transfer-encoding"]==="chunked"&&!d["content-length"]}),e.on("socket",l=>{let d=n(()=>{if(i&&!a){let u=new Error("Premature close");u.code="ERR_STREAM_PREMATURE_CLOSE",t(u)}},"onSocketClose"),p=n(u=>{a=ja.Buffer.compare(u.slice(-5),r)===0,!a&&s&&(a=ja.Buffer.compare(s.slice(-3),r.slice(0,3))===0&&ja.Buffer.compare(u.slice(-2),r.slice(3))===0),s=u},"onData");l.prependListener("close",d),l.on("data",p),e.on("close",()=>{l.removeListener("close",d),l.removeListener("data",p)})})}n(Ik,"fixResponseChunkedTransferBadEnding");var ss=require("path");var Ub=require("fs"),Wb=require("jsdom"),jb=tt(Nb());var Lc=class Lc{constructor(t,r,i,a={}){this.reportHTMLFilePath=t;this.testRunUUID=r;this.pwTestIdToChecksumTestId=i;this.supportVideo=!1;this.config={hosted:!0,assetsBaseURL:"https://api.checksum.ai/api/test-runs"};this.config={...this.config,...a}}async process(){this.config.hosted&&(await this.initializeDOM(),this.makeLightModeOnly(),await this.editZipFile(),await this.writeFile())}async initializeDOM(){return this.dom=await Wb.JSDOM.fromFile(this.reportHTMLFilePath,{resources:"usable",runScripts:"dangerously"}),new Promise(t=>this.dom.window.addEventListener("load",t))}async writeFile(){let t=this.dom.serialize();t=t.replace(/window.playwrightReportBase64 = ".*";/,`window.playwrightReportBase64 = "${this.newBase64Zip}";`),(0,Ub.writeFileSync)(this.getProcessedFilePath(),t)}getProcessedFilePath(){return this.reportHTMLFilePath.replace(".html",`.${this.testRunUUID}.html`)}makeLightModeOnly(){try{this.dom.window.document.querySelector('meta[name="color-scheme"]').setAttribute("content","light");let r=this.dom.window.document.querySelector("head style"),i=r.innerHTML,a=/@media\s*\(prefers-color-scheme:\s*dark\)\s*{[^}]*}/g,s=i.replace(a,"");r.innerHTML=s}catch{}}async editZipFile(){let t=this.dom.window.playwrightReportBase64.replace("data:application/zip;base64,",""),r=await(0,jb.loadAsync)(t,{base64:!0});for(let a of Object.keys(r.files)){let s=r.file(a);if(s){let l=await s.async("string"),d=JSON.parse(l);a.startsWith("report")?this.handleReportJSON(d):this.handleFileReportJSON(d),r.file(a,JSON.stringify(d))}}let i=await r.generateAsync({type:"base64",compression:"DEFLATE"});this.newBase64Zip=`data:application/zip;base64,${i}`}getCloudPath(t){return`${this.config.assetsBaseURL}/${this.testRunUUID}/${this.pwTestIdToChecksumTestId[t]}`}handleReportJSON(t){t.files.forEach(r=>r.tests.forEach(i=>{i.results.forEach(a=>{this.processAttachments(a.attachments,i.testId)})}))}handleFileReportJSON(t){var r;(r=t.tests)==null||r.forEach(i=>{var a;(a=i.results)==null||a.forEach(s=>{this.processAttachments(s.attachments,i.testId)})})}processAttachments(t,r){if(t.forEach(i=>this.updateAttachment(i,r)),!this.supportVideo){let i=t.findIndex(a=>a.name==="video");i!==-1&&t.splice(i,1)}}updateAttachment(t,r){["trace","video"].includes(t.name)&&(t.path=`${this.getCloudPath(r)}/${t.name}`)}};n(Lc,"PlaywrightReportProcessor");var Nl=Lc;var d1=require("http");var X=require("fs"),Cp=tt(Rp()),Ip=require("stream/promises"),n1=require("crypto"),Xi=require("path");var Ap,Op=class Op{constructor(t,r,i,a,s=!1){this.mode=t;this.traceDir=r;this.outputZipFilePath=i;this.frontendLogPrefix=a;this.deleteOriginalFiles=s;this.wallTimesToBeRemoved={};this.callIdsRemovals={};this.consoleLogGUIDs=[];this.numberOfLinesPerFile={};this.unarchiveFolder=(0,n1.randomUUID)();this.resourcesFolder=(0,Xi.join)(this.unarchiveFolder,"resources");this.runningIndexes={trace:0,network:0,stacks:0};this.generationAllowedAPIName=["page.goto","page.waitForNavigation","page.waitForTimeout","locator.fill","locator.click","locator.hover","locator.check","locator.uncheck","locator.dblclick","locator.dragTo"];let{createInterface:l}=require("readline/promises");Ap=l}async process(){if(this.mode==="runtime")return!1;try{if(!(0,X.existsSync)(this.traceDir))return!1;let r=(0,X.readdirSync)(this.traceDir).filter(i=>i.endsWith(".zip")).sort((i,a)=>{let s=n(p=>{try{let u=p.split(".");return parseInt(u[u.length-2])}catch{return 0}},"getIndex"),l=s(i),d=s(a);return l-d});if(!r.length)return!1;(0,X.mkdirSync)(this.unarchiveFolder),(0,X.mkdirSync)(this.resourcesFolder);for(let i of r)await this.processOne((0,Xi.join)(this.traceDir,i));if(await this.reZip(),(0,X.rmdirSync)(this.unarchiveFolder,{recursive:!0}),this.deleteOriginalFiles)for(let i of r)(0,X.rmSync)((0,Xi.join)(this.traceDir,i))}catch(t){return console.log("There was an error processing the trace files",t),!1}return!0}async processOne(t){let i=(await this.unzipAndWriteFiles(t)).trace.map(s=>(0,Xi.join)(this.unarchiveFolder,s));for(let s of i)await this.preprocessFile(s);let a=[...i];for(;a.length>0;)for(let s of a)await this.processFile(s,a)}async unzipAndWriteFiles(t){let r=(0,X.readFileSync)(t),i=await(0,Cp.loadAsync)(r),a={trace:[],network:[],stacks:[]},s=n(l=>{let d=n((p,u)=>(a[u].push(p),p),"addToUnarchivedFiles");return l.endsWith(".trace")?d(`trace${this.runningIndexes.trace++}.trace`,"trace"):l.endsWith(".network")?d(`trace${this.runningIndexes.network++}.network`,"network"):l.endsWith(".stacks")?d(`trace${this.runningIndexes.stacks++}.stacks`,"stacks"):null},"getNewFileName");for(let l of Object.keys(i.files)){let d=s(l);if(!d)continue;let p=i.file(l).nodeStream(),u=(0,X.createWriteStream)(`${this.unarchiveFolder}/${d}`);await(0,Ip.pipeline)(p,u)}for(let l of Object.keys(i.files)){if(!l.startsWith("resources/"))continue;let d=l.replace("resources/",""),p=`${this.resourcesFolder}/${d}`;if(this.mode==="generation"&&d.startsWith("src@")||(0,X.existsSync)(p))continue;let u=i.file(l).nodeStream(),c=(0,X.createWriteStream)(p);await(0,Ip.pipeline)(u,c)}return a}async reZip(){let t=await(0,Cp.loadAsync)("UEsFBgAAAAAAAAAAAAAAAAAAAAAAAA==",{base64:!0});for(let a of(0,X.readdirSync)(this.unarchiveFolder))if(a.endsWith(".network")||this.shouldIncludeStacksFiles()&&a.endsWith(".stacks")||a.endsWith(".trace")){let s=(0,X.readFileSync)((0,Xi.join)(this.unarchiveFolder,a));t.file(a,s)}let r=t.folder("resources");for(let a of(0,X.readdirSync)(this.resourcesFolder)){let s=(0,X.readFileSync)((0,Xi.join)(this.resourcesFolder,a));r.file(a,s)}let i=await t.generateAsync({type:"nodebuffer",compression:"DEFLATE"});(0,X.existsSync)(this.outputZipFilePath)&&(0,X.rmSync)(this.outputZipFilePath),(0,X.writeFileSync)(this.outputZipFilePath,i)}async preprocessFile(t){this.callIdsRemovals[t]={callIdsToBeRemoved:{},arrayOfCallIdsToBeRemoved:new Set};let r=(0,X.createReadStream)(t),i=Ap({input:r,crlfDelay:1/0}),a=0;for await(let s of i){a++;let l=JSON.parse(s);this.shouldLineBeRemoved(l)&&(l.wallTime&&(this.wallTimesToBeRemoved[l.wallTime]=!0),l.callId&&(this.callIdsRemovals[t].callIdsToBeRemoved[l.callId]=!0,this.callIdsRemovals[t].arrayOfCallIdsToBeRemoved.add(l.callId)))}this.numberOfLinesPerFile[t]=a}async processFile(t,r){var d,p;let i=[],a=(0,X.createReadStream)(t),s=Ap({input:a,crlfDelay:1/0}),l=t;for await(let u of s){let c=JSON.parse(u),E=!1;if(this.frontendLogPrefix){if(this.isChecksumConsoleLog(c)){this.consoleLogGUIDs.push(c.guid);continue}if(this.isConsoleLogMetadata(c)&&this.consoleLogGUIDs.includes((p=(d=c.params)==null?void 0:d.message)==null?void 0:p.guid))continue}if(this.lineCanBeRemoved(c)&&(this.wallTimesToBeRemoved[c.wallTime]||this.callIdsRemovals[l].callIdsToBeRemoved[c.callId]||Array.from(this.callIdsRemovals[l].arrayOfCallIdsToBeRemoved).some(g=>u.includes(`"${g}"`)))&&(E=!0),E){c.callId&&(this.callIdsRemovals[l].callIdsToBeRemoved[c.callId]=!0,this.callIdsRemovals[l].arrayOfCallIdsToBeRemoved.add(c.callId));continue}i.push(u)}if(i.length===this.numberOfLinesPerFile[l]){let u=r.indexOf(l);u>-1&&r.splice(u,1)}else this.numberOfLinesPerFile[l]=i.length,(0,X.writeFileSync)(t,i.join(`
17
- `))}isChecksumConsoleLog(t){var r,i;return t.class==="ConsoleMessage"&&((i=(r=t.initializer)==null?void 0:r.text)==null?void 0:i.startsWith(this.frontendLogPrefix))||t.type==="console"&&t.text.startsWith(this.frontendLogPrefix)}isConsoleLogMetadata(t){return t.class==="BrowserContext"&&t.method==="console"}lineCanBeRemoved(t){return!["frame-snapshot"].includes(t.type)}shouldLineBeRemoved(t){switch(this.mode){case"runtime":return this.shouldLineBeRemoved_runtime(t);case"generation":return this.shouldLineBeRemoved_generation(t)}return!1}shouldLineBeRemoved_runtime(t){return!1}shouldIncludeStacksFiles(){return this.mode==="runtime"}shouldLineBeRemoved_generation(t){return!!t.apiName&&!this.generationAllowedAPIName.includes(t.apiName)}};n(Op,"PlaywrightTraceProcessor");var Ff=Op;var a1=tt(Rp()),Ji=require("path"),fi=require("fs");async function o1(e,t){let r=await(0,fi.readdirSync)(t);await Promise.all(r.map(async i=>{let a=(0,Ji.join)(t,i);if((await(0,fi.statSync)(a)).isDirectory()){let l=e.folder(i);await o1(l,a)}else{let l=await(0,fi.readFileSync)(a);e.file(i,l)}}))}n(o1,"addFolderToZip");async function s1(e){let t=await(0,a1.loadAsync)("UEsFBgAAAAAAAAAAAAAAAAAAAAAAAA==",{base64:!0});try{await o1(t,e);let r=await t.generateAsync({type:"nodebuffer",compression:"DEFLATE"}),i=(0,Ji.join)((0,Ji.dirname)(e),`${(0,Ji.basename)(e)}.zip`);return(0,fi.writeFileSync)(i,r),i}catch(r){return console.error("Error creating zip:",r),null}}n(s1,"zipFolder");var c1=require("request");var os=n(e=>new Promise(t=>setTimeout(t,e)),"awaitSleep"),l1=n(async(e,t=1e3,r="guardReturnTimedOut")=>{let i="guard-timed-out",a=n(async()=>(await os(t+1e3),i),"guard"),s=await Promise.race([e,a()]);if(typeof s=="string"&&s===i)throw new Error(r);return s},"guardReturn");var Pp=class Pp{constructor(t,r=!1){this.config=t;this.isolationMode=r;this.MAX_UPLOADS=5;this.MONITOR_INTERVAL=2500;this.UPLOAD_TIMEOUT=10*60*1e3;this.WATCH_TIMEOUT=2*60*1e3;this.assets=[];this.watchAssets=[];this.stats={passed:0,failed:0,healed:0};this.reportComplete=!1;this.processingInProgress=!1;this.pwTestIdToChecksumTestId={};this.outstandingUploads=[];setInterval(this.monitorUploads.bind(this),this.MONITOR_INTERVAL),this.listenForMessages(),this.startServer()}listenForMessages(){process.stdin.on("data",async t=>{let r=t.toString().trim();if(!r.startsWith("cli:"))return;let[i,a]=r.substring(4).split("=");switch(i){case"report":this.testRunEndTime=Date.now(),await this.handleReport(a),this.monitorUploadsCompletion();break;case"shutdown":this.shutdown();break}})}sendMessage(t){setTimeout(()=>{console.log(`monitor:${t}`)},100)}async handleReport(t){console.log(`Handling report ${this.isolationMode?"(isolation mode)":""}`,t);try{let r=new Nl(t,this.config.sessionId,this.pwTestIdToChecksumTestId,{hosted:!this.isolationMode});await r.process(),this.reportAsset=this.initAsset({type:"report",path:r.getProcessedFilePath()}),this.isolationMode?this.reportAsset.complete=!0:this.uploadAsset(this.reportAsset)}catch(r){console.log("Error processing report",r),this.reportAsset.error=!0}}shutdown(){console.log("Received shutdown message from CLI"),this.server.close(),process.exit(0)}async monitorUploadsCompletion(){var t;if(!this.reportComplete&&this.reportAsset&&(this.reportAsset.complete||this.reportAsset.error)){this.reportComplete=!0;let r="{}";try{r=JSON.stringify(this.stats)}catch(i){console.log("Error stringifying stats",i)}this.sendMessage(`report-complete=${(t=this.reportAsset)!=null&&t.complete?"true":"false"}:${r}`)}if(!this.processingInProgress&&this.reportComplete&&this.assets.filter(r=>r.complete||r.error).length===this.assets.length&&(this.watchAssets.length===0||this.testRunEndTime&&Date.now()-this.testRunEndTime>this.WATCH_TIMEOUT)){this.sendMessage(this.assets.find(r=>r.error)?"complete-with-errors":"complete");return}await os(1e3),this.monitorUploadsCompletion()}async startServer(){let t=await this.acquirePortNumber();this.sendMessage(`port=${t}`),this.server=(0,d1.createServer)((r,i)=>{let a=n(l=>{i.writeHead(400,{"Content-Type":"text/plain"}),i.end(l)},"returnErrorWithMessage");if(r.method!=="POST"){i.writeHead(404,{"Content-Type":"text/plain"}),i.end("Method not allowed");return}let s="";r.on("data",l=>{s+=l.toString()}),r.on("end",()=>{let l;try{l=JSON.parse(s)}catch{return a("Invalid body")}let{type:d,payload:p,watch:u}=l;switch(console.log("Server received message",d,p),d){case"asset":if(!p.path||!p.type)return a("Missing arguments");u?this.watchAsset(p):this.processAsset(p);break;case"testInfo":if(!p.pwTestId||!p.checksumTestId)return a("Missing arguments");this.pwTestIdToChecksumTestId[p.pwTestId]=p.checksumTestId;break;case"testStats":this.stats[p.passed?"passed":"failed"]++,p.healed&&this.stats.healed++;break;case"playwrightConfig":this.sendMessage(`playwrightConfig=${JSON.stringify(p)}`);break;default:return a("Invalid message type")}i.writeHead(200,{"Content-Type":"text/plain"}),i.end("OK")})}),this.server.listen(t)}monitorUploads(){let{totalSize:t,totalUploaded:r}=this.calculateUploadProgress();if(t>0){let s=(r/t*100).toFixed(2);this.sendMessage(`upload-progress=${s}`)}let i=n(()=>this.assets.filter(s=>s.response&&!s.complete&&!s.error),"getActiveUploads"),a=this.assets.filter(s=>!s.response);if(a.length!==0&&!(i().length>=this.MAX_UPLOADS))for(;a.length>0&&i().length<this.MAX_UPLOADS;){let s=a.pop();this.uploadAsset(s)}}calculateUploadProgress(){let{totalSize:t,totalUploaded:r}=this.outstandingUploads.reduce((i,{size:a,request:s})=>(i.totalSize+=a,i.totalUploaded+=s.req.connection._bytesDispatched,i),{totalSize:0,totalUploaded:0});return{totalSize:t,totalUploaded:Math.min(t,r)}}getUploadLogMessage(t){switch(t.info.type){case"report":return"Uploading report";case"har":return`Uploading har file for test ${t.info.testId}`;case"trace":return`Uploading trace file for test ${t.info.testId}`;case"esra":return`Uploading metadata file for test ${t.info.testId}`;case"test-files":return`Uploading auto-healed test code for file ${t.info.path}`}}async uploadAsset(t){try{if(this.isolationMode){t.response=new Promise(p=>{setTimeout(()=>{t.complete=!0,p({statusCode:200,ok:!0,body:"OK"})},10)});return}let{path:r}=t.info;console.log("Uploading file",r);let i=this.getUploadLogMessage(t);if(i&&this.sendMessage(`log=${i}`),await this.getSignedURLForUpload(t),!t.uploadURL){console.log("Error getting signed URL for asset",r),t.error=!0;return}let s=(0,wa.statSync)(r).size,l=(0,wa.createReadStream)(r),d=l1(new Promise((p,u)=>{let c=(0,c1.put)(t.uploadURL,{body:l},(E,g)=>{E&&u(E),p(g)});this.outstandingUploads.push({request:c,size:s})}),this.UPLOAD_TIMEOUT);d.then(p=>{if(p.statusCode!==200)throw new Error("Upload failed");console.log("File uploaded successfully",r),t.complete=!0}).catch(p=>{console.log("Error uploading asset",r,p),t.error=!0}),t.response=d}catch{t.error=!0}}async getSignedURLForUpload(t){try{let{apiKey:r,sessionId:i,checksumApiURL:a}=this.config,s=t.info,l=await Gs(`${a}/client-api/test-runs/${i}/get-upload-url`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",ChecksumAppCode:r},body:JSON.stringify(s)}),{url:d}=await l.json();t.uploadURL=d}catch(r){return console.log("Error getting signed URL for artifact",r),null}}watchAsset(t){console.log("Watching file",t.path),this.watchAssets.push({...t,addedAt:Date.now()});let r=(0,ss.dirname)(t.path),i=(0,ss.basename)(t.path),a=(0,wa.watch)(r,(s,l)=>{l===i&&(console.log("Watched file changed",t.path),this.processAsset(t),a.close(),this.watchAssets=this.watchAssets.filter(d=>d.path!==t.path))})}processAsset(t){switch(t.type){case"trace":return this.processTrace(t.path,t.testId);case"har":return this.processHar(t.path,t.testId);case"esra":case"test-files":return this.addAsset(t)}}async processHar(t,r){await os(1e3);let i=await s1(t);if(console.log("Processed har, sending for upload"),i)return this.addAsset({type:"har",path:i,testId:r})}async processTrace(t,r){try{this.processingInProgress=!0,await os(1e3);let i=t.replace(".zip",".processed.zip"),a=await new Ff("runtime",(0,ss.dirname)(t),i,"$checksum").process();console.log("Processed trace files, adding assets"),a?(this.addAsset({type:"trace",path:i,testId:r}),this.addAsset({type:"trace-backup-file",path:t,testId:r})):this.addAsset({type:"trace",path:t,testId:r})}catch(i){console.log("Error processing trace file",i)}finally{this.processingInProgress=!1}}addAsset(t){console.log("Adding file",t.path);let r=this.initAsset(t);return this.assets.push(r),r}initAsset(t){return{complete:!1,error:!1,response:void 0,info:t}}async acquirePortNumber(){return await new Promise((t,r)=>{let i=u1.createServer();i.unref(),i.on("error",r),i.listen(0,()=>{let a=i.address().port;i.close(()=>{t(a)})})})}};n(Pp,"TestRunMonitor");var Lf=Pp,h1;try{h1=JSON.parse(process.argv[2])}catch(e){console.log("Error starting test run monitor",e),process.exit(1)}var f1;new Lf(h1,((f1=process.argv)==null?void 0:f1[3])==="isolated");0&&(module.exports={TestRunMonitor});
16
+ `),i=!1,a=!1,s;e.on("response",l=>{let{headers:d}=l;i=d["transfer-encoding"]==="chunked"&&!d["content-length"]}),e.on("socket",l=>{let d=n(()=>{if(i&&!a){let u=new Error("Premature close");u.code="ERR_STREAM_PREMATURE_CLOSE",t(u)}},"onSocketClose"),p=n(u=>{a=Ua.Buffer.compare(u.slice(-5),r)===0,!a&&s&&(a=Ua.Buffer.compare(s.slice(-3),r.slice(0,3))===0&&Ua.Buffer.compare(u.slice(-2),r.slice(3))===0),s=u},"onData");l.prependListener("close",d),l.on("data",p),e.on("close",()=>{l.removeListener("close",d),l.removeListener("data",p)})})}n(xk,"fixResponseChunkedTransferBadEnding");var os=require("path");var zb=require("fs"),qb=require("jsdom"),Mb=tt(Lb());var Dc=class Dc{constructor(t,r,i,a={}){this.reportHTMLFilePath=t;this.testRunUUID=r;this.pwTestIdToChecksumTestId=i;this.supportVideo=!1;this.config={hosted:!0,assetsBaseURL:"https://api.checksum.ai/api/test-runs"};this.config={...this.config,...a}}async process(){this.config.hosted&&(await this.initializeDOM(),this.makeLightModeOnly(),await this.editZipFile(),await this.writeFile())}async initializeDOM(){return this.dom=await qb.JSDOM.fromFile(this.reportHTMLFilePath,{resources:"usable",runScripts:"dangerously"}),new Promise(t=>this.dom.window.addEventListener("load",t))}async writeFile(){let t=this.dom.serialize();t=t.replace(/window.playwrightReportBase64 = ".*";/,`window.playwrightReportBase64 = "${this.newBase64Zip}";`),(0,zb.writeFileSync)(this.getProcessedFilePath(),t)}getProcessedFilePath(){return this.reportHTMLFilePath.replace(".html",`.${this.testRunUUID}.html`)}makeLightModeOnly(){try{this.dom.window.document.querySelector('meta[name="color-scheme"]').setAttribute("content","light");let r=this.dom.window.document.querySelector("head style"),i=r.innerHTML,a=/@media\s*\(prefers-color-scheme:\s*dark\)\s*{[^}]*}/g,s=i.replace(a,"");r.innerHTML=s}catch{}}async editZipFile(){let t=this.dom.window.playwrightReportBase64.replace("data:application/zip;base64,",""),r=await(0,Mb.loadAsync)(t,{base64:!0});for(let a of Object.keys(r.files)){let s=r.file(a);if(s){let l=await s.async("string"),d=JSON.parse(l);a.startsWith("report")?this.handleReportJSON(d):this.handleFileReportJSON(d),r.file(a,JSON.stringify(d))}}let i=await r.generateAsync({type:"base64",compression:"DEFLATE"});this.newBase64Zip=`data:application/zip;base64,${i}`}getCloudPath(t){return`${this.config.assetsBaseURL}/${this.testRunUUID}/${this.pwTestIdToChecksumTestId[t]}`}handleReportJSON(t){t.files.forEach(r=>r.tests.forEach(i=>{i.results.forEach(a=>{this.processAttachments(a.attachments,i.testId)})}))}handleFileReportJSON(t){var r;(r=t.tests)==null||r.forEach(i=>{var a;(a=i.results)==null||a.forEach(s=>{this.processAttachments(s.attachments,i.testId)})})}processAttachments(t,r){if(t.forEach(i=>this.updateAttachment(i,r)),!this.supportVideo){let i=t.findIndex(a=>a.name==="video");i!==-1&&t.splice(i,1)}}updateAttachment(t,r){["trace","video"].includes(t.name)&&(t.path=`${this.getCloudPath(r)}/${t.name}`)}};n(Dc,"PlaywrightReportProcessor");var Ml=Dc;var n1=require("http");var X=require("fs"),kp=tt(xp()),Tp=require("stream/promises"),Xx=require("crypto"),Ki=require("path");var Ep,Rp=class Rp{constructor(t,r,i,a,s=!1){this.mode=t;this.traceDir=r;this.outputZipFilePath=i;this.frontendLogPrefix=a;this.deleteOriginalFiles=s;this.wallTimesToBeRemoved={};this.callIdsRemovals={};this.consoleLogGUIDs=[];this.numberOfLinesPerFile={};this.unarchiveFolder=(0,Xx.randomUUID)();this.resourcesFolder=(0,Ki.join)(this.unarchiveFolder,"resources");this.runningIndexes={trace:0,network:0,stacks:0};this.generationAllowedAPIName=["page.goto","page.waitForNavigation","page.waitForTimeout","locator.fill","locator.click","locator.hover","locator.check","locator.uncheck","locator.dblclick","locator.dragTo"];let{createInterface:l}=require("readline/promises");Ep=l}async process(){if(this.mode==="runtime")return!1;try{if(!(0,X.existsSync)(this.traceDir))return!1;let r=(0,X.readdirSync)(this.traceDir).filter(i=>i.endsWith(".zip")).sort((i,a)=>{let s=n(p=>{try{let u=p.split(".");return parseInt(u[u.length-2])}catch{return 0}},"getIndex"),l=s(i),d=s(a);return l-d});if(!r.length)return!1;(0,X.mkdirSync)(this.unarchiveFolder),(0,X.mkdirSync)(this.resourcesFolder);for(let i of r)await this.processOne((0,Ki.join)(this.traceDir,i));if(await this.reZip(),(0,X.rmdirSync)(this.unarchiveFolder,{recursive:!0}),this.deleteOriginalFiles)for(let i of r)(0,X.rmSync)((0,Ki.join)(this.traceDir,i))}catch(t){return console.log("There was an error processing the trace files",t),!1}return!0}async processOne(t){let i=(await this.unzipAndWriteFiles(t)).trace.map(s=>(0,Ki.join)(this.unarchiveFolder,s));for(let s of i)await this.preprocessFile(s);let a=[...i];for(;a.length>0;)for(let s of a)await this.processFile(s,a)}async unzipAndWriteFiles(t){let r=(0,X.readFileSync)(t),i=await(0,kp.loadAsync)(r),a={trace:[],network:[],stacks:[]},s=n(l=>{let d=n((p,u)=>(a[u].push(p),p),"addToUnarchivedFiles");return l.endsWith(".trace")?d(`trace${this.runningIndexes.trace++}.trace`,"trace"):l.endsWith(".network")?d(`trace${this.runningIndexes.network++}.network`,"network"):l.endsWith(".stacks")?d(`trace${this.runningIndexes.stacks++}.stacks`,"stacks"):null},"getNewFileName");for(let l of Object.keys(i.files)){let d=s(l);if(!d)continue;let p=i.file(l).nodeStream(),u=(0,X.createWriteStream)(`${this.unarchiveFolder}/${d}`);await(0,Tp.pipeline)(p,u)}for(let l of Object.keys(i.files)){if(!l.startsWith("resources/"))continue;let d=l.replace("resources/",""),p=`${this.resourcesFolder}/${d}`;if(this.mode==="generation"&&d.startsWith("src@")||(0,X.existsSync)(p))continue;let u=i.file(l).nodeStream(),c=(0,X.createWriteStream)(p);await(0,Tp.pipeline)(u,c)}return a}async reZip(){let t=await(0,kp.loadAsync)("UEsFBgAAAAAAAAAAAAAAAAAAAAAAAA==",{base64:!0});for(let a of(0,X.readdirSync)(this.unarchiveFolder))if(a.endsWith(".network")||this.shouldIncludeStacksFiles()&&a.endsWith(".stacks")||a.endsWith(".trace")){let s=(0,X.readFileSync)((0,Ki.join)(this.unarchiveFolder,a));t.file(a,s)}let r=t.folder("resources");for(let a of(0,X.readdirSync)(this.resourcesFolder)){let s=(0,X.readFileSync)((0,Ki.join)(this.resourcesFolder,a));r.file(a,s)}let i=await t.generateAsync({type:"nodebuffer",compression:"DEFLATE"});(0,X.existsSync)(this.outputZipFilePath)&&(0,X.rmSync)(this.outputZipFilePath),(0,X.writeFileSync)(this.outputZipFilePath,i)}async preprocessFile(t){this.callIdsRemovals[t]={callIdsToBeRemoved:{},arrayOfCallIdsToBeRemoved:new Set};let r=(0,X.createReadStream)(t),i=Ep({input:r,crlfDelay:1/0}),a=0;for await(let s of i){a++;let l=JSON.parse(s);this.shouldLineBeRemoved(l)&&(l.wallTime&&(this.wallTimesToBeRemoved[l.wallTime]=!0),l.callId&&(this.callIdsRemovals[t].callIdsToBeRemoved[l.callId]=!0,this.callIdsRemovals[t].arrayOfCallIdsToBeRemoved.add(l.callId)))}this.numberOfLinesPerFile[t]=a}async processFile(t,r){var d,p;let i=[],a=(0,X.createReadStream)(t),s=Ep({input:a,crlfDelay:1/0}),l=t;for await(let u of s){let c=JSON.parse(u),E=!1;if(this.frontendLogPrefix){if(this.isChecksumConsoleLog(c)){this.consoleLogGUIDs.push(c.guid);continue}if(this.isConsoleLogMetadata(c)&&this.consoleLogGUIDs.includes((p=(d=c.params)==null?void 0:d.message)==null?void 0:p.guid))continue}if(this.lineCanBeRemoved(c)&&(this.wallTimesToBeRemoved[c.wallTime]||this.callIdsRemovals[l].callIdsToBeRemoved[c.callId]||Array.from(this.callIdsRemovals[l].arrayOfCallIdsToBeRemoved).some(m=>u.includes(`"${m}"`)))&&(E=!0),E){c.callId&&(this.callIdsRemovals[l].callIdsToBeRemoved[c.callId]=!0,this.callIdsRemovals[l].arrayOfCallIdsToBeRemoved.add(c.callId));continue}i.push(u)}if(i.length===this.numberOfLinesPerFile[l]){let u=r.indexOf(l);u>-1&&r.splice(u,1)}else this.numberOfLinesPerFile[l]=i.length,(0,X.writeFileSync)(t,i.join(`
17
+ `))}isChecksumConsoleLog(t){var r,i;return t.class==="ConsoleMessage"&&((i=(r=t.initializer)==null?void 0:r.text)==null?void 0:i.startsWith(this.frontendLogPrefix))||t.type==="console"&&t.text.startsWith(this.frontendLogPrefix)}isConsoleLogMetadata(t){return t.class==="BrowserContext"&&t.method==="console"}lineCanBeRemoved(t){return!["frame-snapshot"].includes(t.type)}shouldLineBeRemoved(t){switch(this.mode){case"runtime":return this.shouldLineBeRemoved_runtime(t);case"generation":return this.shouldLineBeRemoved_generation(t)}return!1}shouldLineBeRemoved_runtime(t){return!1}shouldIncludeStacksFiles(){return this.mode==="runtime"}shouldLineBeRemoved_generation(t){return!!t.apiName&&!this.generationAllowedAPIName.includes(t.apiName)}};n(Rp,"PlaywrightTraceProcessor");var Pf=Rp;var Jx=tt(xp()),Xi=require("path"),li=require("fs");async function Qx(e,t){let r=await(0,li.readdirSync)(t);await Promise.all(r.map(async i=>{let a=(0,Xi.join)(t,i);if((await(0,li.statSync)(a)).isDirectory()){let l=e.folder(i);await Qx(l,a)}else{let l=await(0,li.readFileSync)(a);e.file(i,l)}}))}n(Qx,"addFolderToZip");async function e1(e){let t=await(0,Jx.loadAsync)("UEsFBgAAAAAAAAAAAAAAAAAAAAAAAA==",{base64:!0});try{await Qx(t,e);let r=await t.generateAsync({type:"nodebuffer",compression:"DEFLATE"}),i=(0,Xi.join)((0,Xi.dirname)(e),`${(0,Xi.basename)(e)}.zip`);return(0,li.writeFileSync)(i,r),i}catch(r){return console.error("Error creating zip:",r),null}}n(e1,"zipFolder");var a1=require("request");var as=n(e=>new Promise(t=>setTimeout(t,e)),"awaitSleep"),t1=n(async(e,t=1e3,r="guardReturnTimedOut")=>{let i="guard-timed-out",a=n(async()=>(await as(t+1e3),i),"guard"),s=await Promise.race([e,a()]);if(typeof s=="string"&&s===i)throw new Error(r);return s},"guardReturn");var Ap=class Ap{constructor(t,r=!1){this.config=t;this.isolationMode=r;this.MAX_UPLOADS=5;this.MONITOR_INTERVAL=2500;this.UPLOAD_TIMEOUT=10*60*1e3;this.WATCH_TIMEOUT=2*60*1e3;this.assets=[];this.watchAssets=[];this.stats={passed:0,failed:0,healed:0};this.reportComplete=!1;this.processingInProgress=!1;this.pwTestIdToChecksumTestId={};this.outstandingUploads=[];setInterval(this.monitorUploads.bind(this),this.MONITOR_INTERVAL),this.listenForMessages(),this.startServer()}listenForMessages(){process.stdin.on("data",async t=>{let r=t.toString().trim();if(!r.startsWith("cli:"))return;let[i,a]=r.substring(4).split("=");switch(i){case"report":this.testRunEndTime=Date.now(),await this.handleReport(a),this.monitorUploadsCompletion();break;case"shutdown":this.shutdown();break}})}sendMessage(t){setTimeout(()=>{console.log(`monitor:${t}`)},100)}async handleReport(t){console.log(`Handling report ${this.isolationMode?"(isolation mode)":""}`,t);try{let r=new Ml(t,this.config.sessionId,this.pwTestIdToChecksumTestId,{hosted:!this.isolationMode});await r.process(),this.reportAsset=this.initAsset({type:"report",path:r.getProcessedFilePath()}),this.isolationMode?this.reportAsset.complete=!0:this.uploadAsset(this.reportAsset)}catch(r){console.log("Error processing report",r),this.reportAsset.error=!0}}shutdown(){console.log("Received shutdown message from CLI"),this.server.close(),process.exit(0)}async monitorUploadsCompletion(){var t;if(!this.reportComplete&&this.reportAsset&&(this.reportAsset.complete||this.reportAsset.error)){this.reportComplete=!0;let r="{}";try{r=JSON.stringify(this.stats)}catch(i){console.log("Error stringifying stats",i)}this.sendMessage(`report-complete=${(t=this.reportAsset)!=null&&t.complete?"true":"false"}:${r}`)}if(!this.processingInProgress&&this.reportComplete&&this.assets.filter(r=>r.complete||r.error).length===this.assets.length&&(this.watchAssets.length===0||this.testRunEndTime&&Date.now()-this.testRunEndTime>this.WATCH_TIMEOUT)){this.sendMessage(this.assets.find(r=>r.error)?"complete-with-errors":"complete");return}await as(1e3),this.monitorUploadsCompletion()}async startServer(){let t=await this.acquirePortNumber();this.sendMessage(`port=${t}`),this.server=(0,n1.createServer)((r,i)=>{let a=n(l=>{i.writeHead(400,{"Content-Type":"text/plain"}),i.end(l)},"returnErrorWithMessage");if(r.method!=="POST"){i.writeHead(404,{"Content-Type":"text/plain"}),i.end("Method not allowed");return}let s="";r.on("data",l=>{s+=l.toString()}),r.on("end",()=>{let l;try{l=JSON.parse(s)}catch{return a("Invalid body")}let{type:d,payload:p,watch:u}=l;switch(console.log("Server received message",d,p),d){case"asset":if(!p.path||!p.type)return a("Missing arguments");u?this.watchAsset(p):this.processAsset(p);break;case"testInfo":if(!p.pwTestId||!p.checksumTestId)return a("Missing arguments");this.pwTestIdToChecksumTestId[p.pwTestId]=p.checksumTestId;break;case"testStats":this.stats[p.passed?"passed":"failed"]++,p.healed&&this.stats.healed++;break;case"playwrightConfig":this.sendMessage(`playwrightConfig=${JSON.stringify(p)}`);break;default:return a("Invalid message type")}i.writeHead(200,{"Content-Type":"text/plain"}),i.end("OK")})}),this.server.listen(t)}monitorUploads(){let{totalSize:t,totalUploaded:r}=this.calculateUploadProgress();if(t>0){let s=(r/t*100).toFixed(2);this.sendMessage(`upload-progress=${s}`)}let i=n(()=>this.assets.filter(s=>s.response&&!s.complete&&!s.error),"getActiveUploads"),a=this.assets.filter(s=>!s.response);if(a.length!==0&&!(i().length>=this.MAX_UPLOADS))for(;a.length>0&&i().length<this.MAX_UPLOADS;){let s=a.pop();this.uploadAsset(s)}}calculateUploadProgress(){let{totalSize:t,totalUploaded:r}=this.outstandingUploads.reduce((i,{size:a,request:s})=>(i.totalSize+=a,i.totalUploaded+=s.req.connection._bytesDispatched,i),{totalSize:0,totalUploaded:0});return{totalSize:t,totalUploaded:Math.min(t,r)}}getUploadLogMessage(t){switch(t.info.type){case"report":return"Uploading report";case"har":return`Uploading har file for test ${t.info.testId}`;case"trace":return`Uploading trace file for test ${t.info.testId}`;case"esra":return`Uploading metadata file for test ${t.info.testId}`;case"test-files":return`Uploading auto-healed test code for file ${t.info.path}`}}async uploadAsset(t){try{if(this.isolationMode){t.response=new Promise(p=>{setTimeout(()=>{t.complete=!0,p({statusCode:200,ok:!0,body:"OK"})},10)});return}let{path:r}=t.info;console.log("Uploading file",r);let i=this.getUploadLogMessage(t);if(i&&this.sendMessage(`log=${i}`),await this.getSignedURLForUpload(t),!t.uploadURL){console.log("Error getting signed URL for asset",r),t.error=!0;return}let s=(0,ba.statSync)(r).size,l=(0,ba.createReadStream)(r),d=t1(new Promise((p,u)=>{let c=(0,a1.put)(t.uploadURL,{body:l},(E,m)=>{E&&u(E),p(m)});this.outstandingUploads.push({request:c,size:s})}),this.UPLOAD_TIMEOUT);d.then(p=>{if(p.statusCode!==200)throw new Error("Upload failed");console.log("File uploaded successfully",r),t.complete=!0}).catch(p=>{console.log("Error uploading asset",r,p),t.error=!0}),t.response=d}catch{t.error=!0}}async getSignedURLForUpload(t){try{let{apiKey:r,sessionId:i,checksumApiURL:a}=this.config,s=t.info,l=await Ys(`${a}/client-api/test-runs/${i}/get-upload-url`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",ChecksumAppCode:r},body:JSON.stringify(s)}),{url:d}=await l.json();t.uploadURL=d}catch(r){return console.log("Error getting signed URL for artifact",r),null}}watchAsset(t){console.log("Watching file",t.path),this.watchAssets.push({...t,addedAt:Date.now()});let r=(0,os.dirname)(t.path),i=(0,os.basename)(t.path),a=(0,ba.watch)(r,(s,l)=>{l===i&&(console.log("Watched file changed",t.path),this.processAsset(t),a.close(),this.watchAssets=this.watchAssets.filter(d=>d.path!==t.path))})}processAsset(t){switch(t.type){case"trace":return this.processTrace(t.path,t.testId);case"har":return this.processHar(t.path,t.testId);case"esra":case"test-files":return this.addAsset(t)}}async processHar(t,r){await as(1e3);let i=await e1(t);if(console.log("Processed har, sending for upload"),i)return this.addAsset({type:"har",path:i,testId:r})}async processTrace(t,r){try{this.processingInProgress=!0,await as(1e3);let i=t.replace(".zip",".processed.zip"),a=await new Pf("runtime",(0,os.dirname)(t),i,"$checksum").process();console.log("Processed trace files, adding assets"),a?(this.addAsset({type:"trace",path:i,testId:r}),this.addAsset({type:"trace-backup-file",path:t,testId:r})):this.addAsset({type:"trace",path:t,testId:r})}catch(i){console.log("Error processing trace file",i)}finally{this.processingInProgress=!1}}addAsset(t){console.log("Adding file",t.path);let r=this.initAsset(t);return this.assets.push(r),r}initAsset(t){return{complete:!1,error:!1,response:void 0,info:t}}async acquirePortNumber(){return await new Promise((t,r)=>{let i=i1.createServer();i.unref(),i.on("error",r),i.listen(0,()=>{let a=i.address().port;i.close(()=>{t(a)})})})}};n(Ap,"TestRunMonitor");var Df=Ap,o1;try{o1=JSON.parse(process.argv[2])}catch(e){console.log("Error starting test run monitor",e),process.exit(1)}var r1;new Df(o1,((r1=process.argv)==null?void 0:r1[3])==="isolated");0&&(module.exports={TestRunMonitor});
18
18
  /*! Bundled license information:
19
19
 
20
20
  web-streams-polyfill/dist/ponyfill.es2018.js: