@checksum-ai/runtime 1.1.10 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/checksum-root/playwright.config.ts +7 -1
- package/checksumlib.js +104 -3
- package/cli.js +31 -58
- package/index.d.ts +19 -0
- package/index.js +130 -248
- package/package.json +5 -5
- package/repl.js +1 -1
- package/scripts/patch.js +36 -325
- package/scripts/playwright_patches/1.41.2.js +310 -0
- package/scripts/playwright_patches/1.46.0.js +305 -0
- package/test-run-monitor.js +12 -13
- package/.DS_Store +0 -0
package/test-run-monitor.js
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
var QE=Object.create;var Ca=Object.defineProperty;var ek=Object.getOwnPropertyDescriptor;var tk=Object.getOwnPropertyNames;var rk=Object.getPrototypeOf,ik=Object.prototype.hasOwnProperty;var Z_=e=>{throw TypeError(e)};var n=(e,t)=>Ca(e,"name",{value:t,configurable:!0});var Ia=(e,t)=>()=>(e&&(t=e(e=0)),t);var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),H_=(e,t)=>{for(var r in t)Ca(e,r,{get:t[r],enumerable:!0})},$_=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of tk(t))!ik.call(e,a)&&a!==r&&Ca(e,a,{get:()=>t[a],enumerable:!(i=ek(t,a))||i.enumerable});return e};var tt=(e,t,r)=>(r=e!=null?QE(rk(e)):{},$_(t||!e||!e.__esModule?Ca(r,"default",{value:e,enumerable:!0}):r,e)),nk=e=>$_(Ca({},"__esModule",{value:!0}),e);var Y_=(e,t,r)=>t.has(e)||Z_("Cannot "+r);var ue=(e,t,r)=>(Y_(e,t,"read from private field"),r?r.call(e):t.get(e)),yt=(e,t,r)=>t.has(e)?Z_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),We=(e,t,r,i)=>(Y_(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r);var K_=R((Bs,V_)=>{(function(e,t){typeof Bs=="object"&&typeof V_<"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,_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,_=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(_u,"SimpleQueue");let S=_u,P=Symbol("[[AbortSteps]]"),D=Symbol("[[ErrorSteps]]"),B=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"?Ue(o,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):u1(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 De(o){return new TypeError("Cannot "+o+" a stream using a released reader")}n(De,"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),Ue(o,f)}n(Ir,"defaultReaderClosedPromiseInitializeAsRejected");function ht(o){er(o),Op(o)}n(ht,"defaultReaderClosedPromiseInitializeAsResolved");function Ue(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(Ue,"defaultReaderClosedPromiseReject");function u1(o,f){Ir(o,f)}n(u1,"defaultReaderClosedPromiseResetToRejected");function Op(o){o._closedPromise_resolve!==void 0&&(o._closedPromise_resolve(void 0),o._closedPromise_resolve=void 0,o._closedPromise_reject=void 0)}n(Op,"defaultReaderClosedPromiseResolve");let Pp=Number.isFinite||function(o){return typeof o=="number"&&isFinite(o)},d1=Math.trunc||function(o){return o<0?Math.ceil(o):Math.floor(o)};function c1(o){return typeof o=="object"||typeof o=="function"}n(c1,"isDictionary");function Pt(o,f){if(o!==void 0&&!c1(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 h1(o){return typeof o=="object"&&o!==null||typeof o=="function"}n(h1,"isObject");function Bp(o,f){if(!h1(o))throw new TypeError(`${f} is not an object.`)}n(Bp,"assertObject");function tr(o,f,h){if(o===void 0)throw new TypeError(`Parameter ${f} is required in '${h}'.`)}n(tr,"assertRequiredArgument");function Ff(o,f,h){if(o===void 0)throw new TypeError(`${f} is required in '${h}'.`)}n(Ff,"assertRequiredField");function Lf(o){return Number(o)}n(Lf,"convertUnrestrictedDouble");function Dp(o){return o===0?0:o}n(Dp,"censorNegativeZero");function p1(o){return Dp(d1(o))}n(p1,"integerPart");function zf(o,f){let _=Number.MAX_SAFE_INTEGER,v=Number(o);if(v=Dp(v),!Pp(v))throw new TypeError(`${f} is not a finite number`);if(v=p1(v),v<0||v>_)throw new TypeError(`${f} is outside the accepted range of 0 to ${_}, inclusive`);return!Pp(v)||v===0?0:v}n(zf,"convertUnsignedLongLongWithEnforceRange");function qf(o,f){if(!Fr(o))throw new TypeError(`${f} is not a ReadableStream.`)}n(qf,"assertReadableStream");function Ji(o){return new Bt(o)}n(Ji,"AcquireReadableStreamDefaultReader");function Fp(o,f){o._reader._readRequests.push(f)}n(Fp,"ReadableStreamAddReadRequest");function Mf(o,f,h){let v=o._reader._readRequests.shift();h?v._closeSteps():v._chunkSteps(f)}n(Mf,"ReadableStreamFulfillReadRequest");function os(o){return o._reader._readRequests.length}n(os,"ReadableStreamGetNumReadRequests");function Lp(o){let f=o._reader;return!(f===void 0||!Or(f))}n(Lp,"ReadableStreamHasDefaultReader");let mu=class mu{constructor(f){if(tr(f,1,"ReadableStreamDefaultReader"),qf(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(ss("closed"))}cancel(f=void 0){return Or(this)?this._ownerReadableStream===void 0?c(De("cancel")):G(this,f):c(ss("cancel"))}read(){if(!Or(this))return c(ss("read"));if(this._ownerReadableStream===void 0)return c(De("read from"));let f,h,_=p((k,I)=>{f=k,h=I});return ba(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 ss("releaseLock");this._ownerReadableStream!==void 0&&_1(this)}};n(mu,"ReadableStreamDefaultReader");let Bt=mu;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:"ReadableStreamDefaultReader",configurable:!0});function Or(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_readRequests")?!1:o instanceof Bt}n(Or,"IsReadableStreamDefaultReader");function ba(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(ba,"ReadableStreamDefaultReaderRead");function _1(o){se(o);let f=new TypeError("Reader was released");zp(o,f)}n(_1,"ReadableStreamDefaultReaderRelease");function zp(o,f){let h=o._readRequests;o._readRequests=new S,h.forEach(_=>{_._errorSteps(f)})}n(zp,"ReadableStreamDefaultReaderErrorReadRequests");function ss(o){return new TypeError(`ReadableStreamDefaultReader.prototype.${o} can only be used on a ReadableStreamDefaultReader`)}n(ss,"defaultReaderBrandCheckException");let m1=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype),gu=class gu{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 ba(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(gu,"ReadableStreamAsyncIteratorImpl");let ls=gu,qp={next(){return Mp(this)?this._asyncIteratorImpl.next():c(Up("next"))},return(o){return Mp(this)?this._asyncIteratorImpl.return(o):c(Up("return"))}};Object.setPrototypeOf(qp,m1);function g1(o,f){let h=Ji(o),_=new ls(h,f),v=Object.create(qp);return v._asyncIteratorImpl=_,v}n(g1,"AcquireReadableStreamAsyncIterator");function Mp(o){if(!r(o)||!Object.prototype.hasOwnProperty.call(o,"_asyncIteratorImpl"))return!1;try{return o._asyncIteratorImpl instanceof ls}catch{return!1}}n(Mp,"IsReadableStreamAsyncIterator");function Up(o){return new TypeError(`ReadableStreamAsyncIterator.${o} can only be used on a ReadableSteamAsyncIterator`)}n(Up,"streamAsyncIteratorBrandCheckException");let Np=Number.isNaN||function(o){return o!==o};var Uf,Nf,Wf;function ya(o){return o.slice()}n(ya,"CreateArrayFromList");function Wp(o,f,h,_,v){new Uint8Array(o).set(new Uint8Array(h,_,v),f)}n(Wp,"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 jp(o,f,h){if(o.slice)return o.slice(f,h);let _=h-f,v=new ArrayBuffer(_);return Wp(v,0,o,f,_),v}n(jp,"ArrayBufferSlice");function fs(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(fs,"GetMethod");function v1(o){let f={[Symbol.iterator]:()=>o.iterator},h=async function*(){return yield*f}(),_=h.next;return{iterator:h,nextMethod:_,done:!1}}n(v1,"CreateAsyncFromSyncIterator");let jf=(Wf=(Uf=Symbol.asyncIterator)!==null&&Uf!==void 0?Uf:(Nf=Symbol.for)===null||Nf===void 0?void 0:Nf.call(Symbol,"Symbol.asyncIterator"))!==null&&Wf!==void 0?Wf:"@@asyncIterator";function Zp(o,f="sync",h){if(h===void 0)if(f==="async"){if(h=fs(o,jf),h===void 0){let k=fs(o,Symbol.iterator),I=Zp(o,"sync",k);return v1(I)}}else h=fs(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(Zp,"GetIterator");function b1(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(b1,"IteratorNext");function y1(o){return!!o.done}n(y1,"IteratorComplete");function w1(o){return o.value}n(w1,"IteratorValue");function S1(o){return!(typeof o!="number"||Np(o)||o<0)}n(S1,"IsNonNegativeNumber");function Hp(o){let f=jp(o.buffer,o.byteOffset,o.byteOffset+o.byteLength);return new Uint8Array(f)}n(Hp,"CloneAsUint8Array");function Zf(o){let f=o._queue.shift();return o._queueTotalSize-=f.size,o._queueTotalSize<0&&(o._queueTotalSize=0),f.value}n(Zf,"DequeueValue");function Hf(o,f,h){if(!S1(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(Hf,"EnqueueValueWithSize");function x1(o){return o._queue.peek().value}n(x1,"PeekQueueValue");function Br(o){o._queue=new S,o._queueTotalSize=0}n(Br,"ResetQueue");function $p(o){return o===DataView}n($p,"isDataViewConstructor");function E1(o){return $p(o.constructor)}n(E1,"isDataView");function k1(o){return $p(o)?1:o.BYTES_PER_ELEMENT}n(k1,"arrayBufferViewElementSize");let vu=class vu{constructor(){throw new TypeError("Illegal constructor")}get view(){if(!$f(this))throw Xf("view");return this._view}respond(f){if(!$f(this))throw Xf("respond");if(tr(f,1,"respond"),f=zf(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");hs(this._associatedReadableByteStreamController,f)}respondWithNewView(f){if(!$f(this))throw Xf("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");ps(this._associatedReadableByteStreamController,f)}};n(vu,"ReadableStreamBYOBRequest");let ir=vu;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 bu=class bu{constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!fi(this))throw Sa("byobRequest");return Kf(this)}get desiredSize(){if(!fi(this))throw Sa("desiredSize");return r_(this)}close(){if(!fi(this))throw Sa("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`);wa(this)}enqueue(f){if(!fi(this))throw Sa("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`);cs(this,f)}error(f=void 0){if(!fi(this))throw Sa("error");Qe(this,f)}[B](f){Yp(this),Br(this);let h=this._cancelAlgorithm(f);return ds(this),h}[F](f){let h=this._controlledReadableByteStream;if(this._queueTotalSize>0){t_(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)}Fp(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(bu,"ReadableByteStreamController");let pt=bu;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 $f(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_associatedReadableByteStreamController")?!1:o instanceof ir}n($f,"IsReadableStreamBYOBRequest");function ui(o){if(!I1(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 Yp(o){Gf(o),o._pendingPullIntos=new S}n(Yp,"ReadableByteStreamControllerClearPendingPullIntos");function Yf(o,f){let h=!1;o._state==="closed"&&(h=!0);let _=Gp(f);f.readerType==="default"?Mf(o,_,h):L1(o,_,h)}n(Yf,"ReadableByteStreamControllerCommitPullIntoDescriptor");function Gp(o){let f=o.bytesFilled,h=o.elementSize;return new o.viewConstructor(o.buffer,o.byteOffset,f/h)}n(Gp,"ReadableByteStreamControllerConvertPullIntoDescriptor");function us(o,f,h,_){o._queue.push({buffer:f,byteOffset:h,byteLength:_}),o._queueTotalSize+=_}n(us,"ReadableByteStreamControllerEnqueueChunkToQueue");function Vp(o,f,h,_){let v;try{v=jp(f,h,h+_)}catch(k){throw Qe(o,k),k}us(o,v,0,_)}n(Vp,"ReadableByteStreamControllerEnqueueClonedChunkToQueue");function Kp(o,f){f.bytesFilled>0&&Vp(o,f.buffer,f.byteOffset,f.bytesFilled),Qi(o)}n(Kp,"ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue");function Xp(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 U=o._queue;for(;v>0;){let q=U.peek(),N=Math.min(v,q.byteLength),W=f.byteOffset+f.bytesFilled;Wp(f.buffer,W,q.buffer,q.byteOffset,N),q.byteLength===N?U.shift():(q.byteOffset+=N,q.byteLength-=N),o._queueTotalSize-=N,Jp(o,N,f),v-=N}return k}n(Xp,"ReadableByteStreamControllerFillPullIntoDescriptorFromQueue");function Jp(o,f,h){h.bytesFilled+=f}n(Jp,"ReadableByteStreamControllerFillHeadPullIntoDescriptor");function Qp(o){o._queueTotalSize===0&&o._closeRequested?(ds(o),Aa(o._controlledReadableByteStream)):ui(o)}n(Qp,"ReadableByteStreamControllerHandleQueueDrain");function Gf(o){o._byobRequest!==null&&(o._byobRequest._associatedReadableByteStreamController=void 0,o._byobRequest._view=null,o._byobRequest=null)}n(Gf,"ReadableByteStreamControllerInvalidateBYOBRequest");function Vf(o){for(;o._pendingPullIntos.length>0;){if(o._queueTotalSize===0)return;let f=o._pendingPullIntos.peek();Xp(o,f)&&(Qi(o),Yf(o._controlledReadableByteStream,f))}}n(Vf,"ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue");function T1(o){let f=o._controlledReadableByteStream._reader;for(;f._readRequests.length>0;){if(o._queueTotalSize===0)return;let h=f._readRequests.shift();t_(o,h)}}n(T1,"ReadableByteStreamControllerProcessReadRequestsUsingQueue");function R1(o,f,h,_){let v=o._controlledReadableByteStream,k=f.constructor,I=k1(k),{byteOffset:L,byteLength:U}=f,q=h*I,N;try{N=rr(f.buffer)}catch(J){_._errorSteps(J);return}let W={buffer:N,bufferByteLength:N.byteLength,byteOffset:L,byteLength:U,bytesFilled:0,minimumFill:q,elementSize:I,viewConstructor:k,readerType:"byob"};if(o._pendingPullIntos.length>0){o._pendingPullIntos.push(W),a_(v,_);return}if(v._state==="closed"){let J=new k(W.buffer,W.byteOffset,0);_._closeSteps(J);return}if(o._queueTotalSize>0){if(Xp(o,W)){let J=Gp(W);Qp(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),a_(v,_),ui(o)}n(R1,"ReadableByteStreamControllerPullInto");function A1(o,f){f.readerType==="none"&&Qi(o);let h=o._controlledReadableByteStream;if(Jf(h))for(;o_(h)>0;){let _=Qi(o);Yf(h,_)}}n(A1,"ReadableByteStreamControllerRespondInClosedState");function C1(o,f,h){if(Jp(o,f,h),h.readerType==="none"){Kp(o,h),Vf(o);return}if(h.bytesFilled<h.minimumFill)return;Qi(o);let _=h.bytesFilled%h.elementSize;if(_>0){let v=h.byteOffset+h.bytesFilled;Vp(o,h.buffer,v-_,_)}h.bytesFilled-=_,Yf(o._controlledReadableByteStream,h),Vf(o)}n(C1,"ReadableByteStreamControllerRespondInReadableState");function e_(o,f){let h=o._pendingPullIntos.peek();Gf(o),o._controlledReadableByteStream._state==="closed"?A1(o,h):C1(o,f,h),ui(o)}n(e_,"ReadableByteStreamControllerRespondInternal");function Qi(o){return o._pendingPullIntos.shift()}n(Qi,"ReadableByteStreamControllerShiftPendingPullInto");function I1(o){let f=o._controlledReadableByteStream;return f._state!=="readable"||o._closeRequested||!o._started?!1:!!(Lp(f)&&os(f)>0||Jf(f)&&o_(f)>0||r_(o)>0)}n(I1,"ReadableByteStreamControllerShouldCallPull");function ds(o){o._pullAlgorithm=void 0,o._cancelAlgorithm=void 0}n(ds,"ReadableByteStreamControllerClearAlgorithms");function wa(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,_),_}}ds(o),Aa(f)}}n(wa,"ReadableByteStreamControllerClose");function cs(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");Gf(o),L.buffer=rr(L.buffer),L.readerType==="none"&&Kp(o,L)}if(Lp(h))if(T1(o),os(h)===0)us(o,I,v,k);else{o._pendingPullIntos.length>0&&Qi(o);let L=new Uint8Array(I,v,k);Mf(h,L,!1)}else Jf(h)?(us(o,I,v,k),Vf(o)):us(o,I,v,k);ui(o)}n(cs,"ReadableByteStreamControllerEnqueue");function Qe(o,f){let h=o._controlledReadableByteStream;h._state==="readable"&&(Yp(o),Br(o),ds(o),I_(h,f))}n(Qe,"ReadableByteStreamControllerError");function t_(o,f){let h=o._queue.shift();o._queueTotalSize-=h.byteLength,Qp(o);let _=new Uint8Array(h.buffer,h.byteOffset,h.byteLength);f._chunkSteps(_)}n(t_,"ReadableByteStreamControllerFillReadRequestFromQueue");function Kf(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);P1(_,o,h),o._byobRequest=_}return o._byobRequest}n(Kf,"ReadableByteStreamControllerGetBYOBRequest");function r_(o){let f=o._controlledReadableByteStream._state;return f==="errored"?null:f==="closed"?0:o._strategyHWM-o._queueTotalSize}n(r_,"ReadableByteStreamControllerGetDesiredSize");function hs(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),e_(o,f)}n(hs,"ReadableByteStreamControllerRespond");function ps(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),e_(o,v)}n(ps,"ReadableByteStreamControllerRespondWithNewView");function i_(o,f,h,_,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=_,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),U=>(Qe(f,U),null))}n(i_,"SetUpReadableByteStreamController");function O1(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(U=>f.cancel(U),"cancelAlgorithm"):I=n(()=>u(void 0),"cancelAlgorithm");let L=f.autoAllocateChunkSize;if(L===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");i_(o,_,v,k,I,h,L)}n(O1,"SetUpReadableByteStreamControllerFromUnderlyingSource");function P1(o,f,h){o._associatedReadableByteStreamController=f,o._view=h}n(P1,"SetUpReadableStreamBYOBRequest");function Xf(o){return new TypeError(`ReadableStreamBYOBRequest.prototype.${o} can only be used on a ReadableStreamBYOBRequest`)}n(Xf,"byobRequestBrandCheckException");function Sa(o){return new TypeError(`ReadableByteStreamController.prototype.${o} can only be used on a ReadableByteStreamController`)}n(Sa,"byteStreamControllerBrandCheckException");function B1(o,f){Pt(o,f);let h=o==null?void 0:o.mode;return{mode:h===void 0?void 0:D1(h,`${f} has member 'mode' that`)}}n(B1,"convertReaderOptions");function D1(o,f){if(o=`${o}`,o!=="byob")throw new TypeError(`${f} '${o}' is not a valid enumeration value for ReadableStreamReaderMode`);return o}n(D1,"convertReadableStreamReaderMode");function F1(o,f){var h;Pt(o,f);let _=(h=o==null?void 0:o.min)!==null&&h!==void 0?h:1;return{min:zf(_,`${f} has member 'min' that`)}}n(F1,"convertByobReadOptions");function n_(o){return new Dt(o)}n(n_,"AcquireReadableStreamBYOBReader");function a_(o,f){o._reader._readIntoRequests.push(f)}n(a_,"ReadableStreamAddReadIntoRequest");function L1(o,f,h){let v=o._reader._readIntoRequests.shift();h?v._closeSteps(f):v._chunkSteps(f)}n(L1,"ReadableStreamFulfillReadIntoRequest");function o_(o){return o._reader._readIntoRequests.length}n(o_,"ReadableStreamGetNumReadIntoRequests");function Jf(o){let f=o._reader;return!(f===void 0||!di(f))}n(Jf,"ReadableStreamHasBYOBReader");let yu=class yu{constructor(f){if(tr(f,1,"ReadableStreamBYOBReader"),qf(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(_s("closed"))}cancel(f=void 0){return di(this)?this._ownerReadableStream===void 0?c(De("cancel")):G(this,f):c(_s("cancel"))}read(f,h={}){if(!di(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(Pr(f.buffer))return c(new TypeError("view's buffer has been detached"));let _;try{_=F1(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(E1(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(De("read from"));let k,I,L=p((q,N)=>{k=q,I=N});return s_(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 _s("releaseLock");this._ownerReadableStream!==void 0&&z1(this)}};n(yu,"ReadableStreamBYOBReader");let Dt=yu;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:"ReadableStreamBYOBReader",configurable:!0});function di(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_readIntoRequests")?!1:o instanceof Dt}n(di,"IsReadableStreamBYOBReader");function s_(o,f,h,_){let v=o._ownerReadableStream;v._disturbed=!0,v._state==="errored"?_._errorSteps(v._storedError):R1(v._readableStreamController,f,h,_)}n(s_,"ReadableStreamBYOBReaderRead");function z1(o){se(o);let f=new TypeError("Reader was released");l_(o,f)}n(z1,"ReadableStreamBYOBReaderRelease");function l_(o,f){let h=o._readIntoRequests;o._readIntoRequests=new S,h.forEach(_=>{_._errorSteps(f)})}n(l_,"ReadableStreamBYOBReaderErrorReadIntoRequests");function _s(o){return new TypeError(`ReadableStreamBYOBReader.prototype.${o} can only be used on a ReadableStreamBYOBReader`)}n(_s,"byobReaderBrandCheckException");function xa(o,f){let{highWaterMark:h}=o;if(h===void 0)return f;if(Np(h)||h<0)throw new RangeError("Invalid highWaterMark");return h}n(xa,"ExtractHighWaterMark");function ms(o){let{size:f}=o;return f||(()=>1)}n(ms,"ExtractSizeAlgorithm");function gs(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:Lf(h),size:_===void 0?void 0:q1(_,`${f} has member 'size' that`)}}n(gs,"convertQueuingStrategy");function q1(o,f){return Je(o,f),h=>Lf(o(h))}n(q1,"convertQueuingStrategySize");function M1(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:U1(h,o,`${f} has member 'abort' that`),close:_===void 0?void 0:N1(_,o,`${f} has member 'close' that`),start:v===void 0?void 0:W1(v,o,`${f} has member 'start' that`),write:I===void 0?void 0:j1(I,o,`${f} has member 'write' that`),type:k}}n(M1,"convertUnderlyingSink");function U1(o,f,h){return Je(o,h),_=>C(o,f,[_])}n(U1,"convertUnderlyingSinkAbortCallback");function N1(o,f,h){return Je(o,h),()=>C(o,f,[])}n(N1,"convertUnderlyingSinkCloseCallback");function W1(o,f,h){return Je(o,h),_=>x(o,f,[_])}n(W1,"convertUnderlyingSinkStartCallback");function j1(o,f,h){return Je(o,h),(_,v)=>C(o,f,[_,v])}n(j1,"convertUnderlyingSinkWriteCallback");function f_(o,f){if(!en(o))throw new TypeError(`${f} is not a WritableStream.`)}n(f_,"assertWritableStream");function Z1(o){if(typeof o!="object"||o===null)return!1;try{return typeof o.aborted=="boolean"}catch{return!1}}n(Z1,"isAbortSignal");let H1=typeof AbortController=="function";function $1(){if(H1)return new AbortController}n($1,"createAbortController");let wu=class wu{constructor(f={},h={}){f===void 0?f=null:Bp(f,"First parameter");let _=gs(h,"Second parameter"),v=M1(f,"First parameter");if(d_(this),v.type!==void 0)throw new RangeError("Invalid type is specified");let I=ms(_),L=xa(_,1);oE(this,v,L,I)}get locked(){if(!en(this))throw Ss("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")):vs(this,f):c(Ss("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")):c_(this):c(Ss("close"))}getWriter(){if(!en(this))throw Ss("getWriter");return u_(this)}};n(wu,"WritableStream");let Ft=wu;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 u_(o){return new _t(o)}n(u_,"AcquireWritableStreamDefaultWriter");function Y1(o,f,h,_,v=1,k=()=>1){let I=Object.create(Ft.prototype);d_(I);let L=Object.create(Dr.prototype);return v_(I,L,o,f,h,_,v,k),I}n(Y1,"CreateWritableStream");function d_(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(d_,"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 vs(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||eu(o,f),k}n(vs,"WritableStreamAbort");function c_(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"&&lu(_),sE(o._writableStreamController),h}n(c_,"WritableStreamClose");function G1(o){return p((h,_)=>{let v={_resolve:h,_reject:_};o._writeRequests.push(v)})}n(G1,"WritableStreamAddWriteRequest");function Qf(o,f){if(o._state==="writable"){eu(o,f);return}tu(o)}n(Qf,"WritableStreamDealWithRejection");function eu(o,f){let h=o._writableStreamController;o._state="erroring",o._storedError=f;let _=o._writer;_!==void 0&&p_(_,f),!Q1(o)&&h._started&&tu(o)}n(eu,"WritableStreamStartErroring");function tu(o){o._state="errored",o._writableStreamController[D]();let f=o._storedError;if(o._writeRequests.forEach(v=>{v._reject(f)}),o._writeRequests=new S,o._pendingAbortRequest===void 0){bs(o);return}let h=o._pendingAbortRequest;if(o._pendingAbortRequest=void 0,h._wasAlreadyErroring){h._reject(f),bs(o);return}let _=o._writableStreamController[P](h._reason);m(_,()=>(h._resolve(),bs(o),null),v=>(h._reject(v),bs(o),null))}n(tu,"WritableStreamFinishErroring");function V1(o){o._inFlightWriteRequest._resolve(void 0),o._inFlightWriteRequest=void 0}n(V1,"WritableStreamFinishInFlightWrite");function K1(o,f){o._inFlightWriteRequest._reject(f),o._inFlightWriteRequest=void 0,Qf(o,f)}n(K1,"WritableStreamFinishInFlightWriteWithError");function X1(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&&S_(h)}n(X1,"WritableStreamFinishInFlightClose");function J1(o,f){o._inFlightCloseRequest._reject(f),o._inFlightCloseRequest=void 0,o._pendingAbortRequest!==void 0&&(o._pendingAbortRequest._reject(f),o._pendingAbortRequest=void 0),Qf(o,f)}n(J1,"WritableStreamFinishInFlightCloseWithError");function Lt(o){return!(o._closeRequest===void 0&&o._inFlightCloseRequest===void 0)}n(Lt,"WritableStreamCloseQueuedOrInFlight");function Q1(o){return!(o._inFlightWriteRequest===void 0&&o._inFlightCloseRequest===void 0)}n(Q1,"WritableStreamHasOperationMarkedInFlight");function eE(o){o._inFlightCloseRequest=o._closeRequest,o._closeRequest=void 0}n(eE,"WritableStreamMarkCloseRequestInFlight");function tE(o){o._inFlightWriteRequest=o._writeRequests.shift()}n(tE,"WritableStreamMarkFirstWriteRequestInFlight");function bs(o){o._closeRequest!==void 0&&(o._closeRequest._reject(o._storedError),o._closeRequest=void 0);let f=o._writer;f!==void 0&&ou(f,o._storedError)}n(bs,"WritableStreamRejectCloseAndClosedPromiseIfNeeded");function ru(o,f){let h=o._writer;h!==void 0&&f!==o._backpressure&&(f?pE(h):lu(h)),o._backpressure=f}n(ru,"WritableStreamUpdateBackpressure");let Su=class Su{constructor(f){if(tr(f,1,"WritableStreamDefaultWriter"),f_(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?Es(this):x_(this),xs(this);else if(h==="erroring")su(this,f._storedError),xs(this);else if(h==="closed")x_(this),cE(this);else{let _=f._storedError;su(this,_),w_(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 ka("desiredSize");return aE(this)}get ready(){return ci(this)?this._readyPromise:c(hi("ready"))}abort(f=void 0){return ci(this)?this._ownerWritableStream===void 0?c(ka("abort")):rE(this,f):c(hi("abort"))}close(){if(!ci(this))return c(hi("close"));let f=this._ownerWritableStream;return f===void 0?c(ka("close")):Lt(f)?c(new TypeError("Cannot close an already-closing stream")):h_(this)}releaseLock(){if(!ci(this))throw hi("releaseLock");this._ownerWritableStream!==void 0&&__(this)}write(f=void 0){return ci(this)?this._ownerWritableStream===void 0?c(ka("write to")):m_(this,f):c(hi("write"))}};n(Su,"WritableStreamDefaultWriter");let _t=Su;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 rE(o,f){let h=o._ownerWritableStream;return vs(h,f)}n(rE,"WritableStreamDefaultWriterAbort");function h_(o){let f=o._ownerWritableStream;return c_(f)}n(h_,"WritableStreamDefaultWriterClose");function iE(o){let f=o._ownerWritableStream,h=f._state;return Lt(f)||h==="closed"?u(void 0):h==="errored"?c(f._storedError):h_(o)}n(iE,"WritableStreamDefaultWriterCloseWithErrorPropagation");function nE(o,f){o._closedPromiseState==="pending"?ou(o,f):hE(o,f)}n(nE,"WritableStreamDefaultWriterEnsureClosedPromiseRejected");function p_(o,f){o._readyPromiseState==="pending"?E_(o,f):_E(o,f)}n(p_,"WritableStreamDefaultWriterEnsureReadyPromiseRejected");function aE(o){let f=o._ownerWritableStream,h=f._state;return h==="errored"||h==="erroring"?null:h==="closed"?0:b_(f._writableStreamController)}n(aE,"WritableStreamDefaultWriterGetDesiredSize");function __(o){let f=o._ownerWritableStream,h=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");p_(o,h),nE(o,h),f._writer=void 0,o._ownerWritableStream=void 0}n(__,"WritableStreamDefaultWriterRelease");function m_(o,f){let h=o._ownerWritableStream,_=h._writableStreamController,v=lE(_,f);if(h!==o._ownerWritableStream)return c(ka("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=G1(h);return fE(_,f,v),I}n(m_,"WritableStreamDefaultWriterWrite");let g_={},xu=class xu{constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!iu(this))throw au("abortReason");return this._abortReason}get signal(){if(!iu(this))throw au("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(f=void 0){if(!iu(this))throw au("error");this._controlledWritableStream._state==="writable"&&y_(this,f)}[P](f){let h=this._abortAlgorithm(f);return ys(this),h}[D](){Br(this)}};n(xu,"WritableStreamDefaultController");let Dr=xu;Object.defineProperties(Dr.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Dr.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function iu(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_controlledWritableStream")?!1:o instanceof Dr}n(iu,"IsWritableStreamDefaultController");function v_(o,f,h,_,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=$1(),f._started=!1,f._strategySizeAlgorithm=L,f._strategyHWM=I,f._writeAlgorithm=_,f._closeAlgorithm=v,f._abortAlgorithm=k;let U=nu(f);ru(o,U);let q=h(),N=u(q);m(N,()=>(f._started=!0,ws(f),null),W=>(f._started=!0,Qf(o,W),null))}n(v_,"SetUpWritableStreamDefaultController");function oE(o,f,h,_){let v=Object.create(Dr.prototype),k,I,L,U;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?U=n(q=>f.abort(q),"abortAlgorithm"):U=n(()=>u(void 0),"abortAlgorithm"),v_(o,v,k,I,L,U,h,_)}n(oE,"SetUpWritableStreamDefaultControllerFromUnderlyingSink");function ys(o){o._writeAlgorithm=void 0,o._closeAlgorithm=void 0,o._abortAlgorithm=void 0,o._strategySizeAlgorithm=void 0}n(ys,"WritableStreamDefaultControllerClearAlgorithms");function sE(o){Hf(o,g_,0),ws(o)}n(sE,"WritableStreamDefaultControllerClose");function lE(o,f){try{return o._strategySizeAlgorithm(f)}catch(h){return Ea(o,h),1}}n(lE,"WritableStreamDefaultControllerGetChunkSize");function b_(o){return o._strategyHWM-o._queueTotalSize}n(b_,"WritableStreamDefaultControllerGetDesiredSize");function fE(o,f,h){try{Hf(o,f,h)}catch(v){Ea(o,v);return}let _=o._controlledWritableStream;if(!Lt(_)&&_._state==="writable"){let v=nu(o);ru(_,v)}ws(o)}n(fE,"WritableStreamDefaultControllerWrite");function ws(o){let f=o._controlledWritableStream;if(!o._started||f._inFlightWriteRequest!==void 0)return;if(f._state==="erroring"){tu(f);return}if(o._queue.length===0)return;let _=x1(o);_===g_?uE(o):dE(o,_)}n(ws,"WritableStreamDefaultControllerAdvanceQueueIfNeeded");function Ea(o,f){o._controlledWritableStream._state==="writable"&&y_(o,f)}n(Ea,"WritableStreamDefaultControllerErrorIfNeeded");function uE(o){let f=o._controlledWritableStream;eE(f),Zf(o);let h=o._closeAlgorithm();ys(o),m(h,()=>(X1(f),null),_=>(J1(f,_),null))}n(uE,"WritableStreamDefaultControllerProcessClose");function dE(o,f){let h=o._controlledWritableStream;tE(h);let _=o._writeAlgorithm(f);m(_,()=>{V1(h);let v=h._state;if(Zf(o),!Lt(h)&&v==="writable"){let k=nu(o);ru(h,k)}return ws(o),null},v=>(h._state==="writable"&&ys(o),K1(h,v),null))}n(dE,"WritableStreamDefaultControllerProcessWrite");function nu(o){return b_(o)<=0}n(nu,"WritableStreamDefaultControllerGetBackpressure");function y_(o,f){let h=o._controlledWritableStream;ys(o),eu(h,f)}n(y_,"WritableStreamDefaultControllerError");function Ss(o){return new TypeError(`WritableStream.prototype.${o} can only be used on a WritableStream`)}n(Ss,"streamBrandCheckException$2");function au(o){return new TypeError(`WritableStreamDefaultController.prototype.${o} can only be used on a WritableStreamDefaultController`)}n(au,"defaultControllerBrandCheckException$2");function hi(o){return new TypeError(`WritableStreamDefaultWriter.prototype.${o} can only be used on a WritableStreamDefaultWriter`)}n(hi,"defaultWriterBrandCheckException");function ka(o){return new TypeError("Cannot "+o+" a stream using a released writer")}n(ka,"defaultWriterLockException");function xs(o){o._closedPromise=p((f,h)=>{o._closedPromise_resolve=f,o._closedPromise_reject=h,o._closedPromiseState="pending"})}n(xs,"defaultWriterClosedPromiseInitialize");function w_(o,f){xs(o),ou(o,f)}n(w_,"defaultWriterClosedPromiseInitializeAsRejected");function cE(o){xs(o),S_(o)}n(cE,"defaultWriterClosedPromiseInitializeAsResolved");function ou(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(ou,"defaultWriterClosedPromiseReject");function hE(o,f){w_(o,f)}n(hE,"defaultWriterClosedPromiseResetToRejected");function S_(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(S_,"defaultWriterClosedPromiseResolve");function Es(o){o._readyPromise=p((f,h)=>{o._readyPromise_resolve=f,o._readyPromise_reject=h}),o._readyPromiseState="pending"}n(Es,"defaultWriterReadyPromiseInitialize");function su(o,f){Es(o),E_(o,f)}n(su,"defaultWriterReadyPromiseInitializeAsRejected");function x_(o){Es(o),lu(o)}n(x_,"defaultWriterReadyPromiseInitializeAsResolved");function E_(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(E_,"defaultWriterReadyPromiseReject");function pE(o){Es(o)}n(pE,"defaultWriterReadyPromiseReset");function _E(o,f){su(o,f)}n(_E,"defaultWriterReadyPromiseResetToRejected");function lu(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(lu,"defaultWriterReadyPromiseResolve");function mE(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof global<"u")return global}n(mE,"getGlobals");let fu=mE();function gE(o){if(!(typeof o=="function"||typeof o=="object")||o.name!=="DOMException")return!1;try{return new o,!0}catch{return!1}}n(gE,"isDOMExceptionConstructor");function vE(){let o=fu==null?void 0:fu.DOMException;return gE(o)?o:void 0}n(vE,"getFromGlobal");function bE(){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(bE,"createPolyfill");let yE=vE()||bE();function k_(o,f,h,_,v,k){let I=Ji(o),L=u_(f);o._disturbed=!0;let U=!1,q=u(void 0);return p((N,W)=>{let J;if(k!==void 0){if(J=n(()=>{let M=k.reason!==void 0?k.reason:new yE("Aborted","AbortError"),j=[];_||j.push(()=>f._state==="writable"?vs(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(Ne){Ne?M():E(fn(),Q,j)}n(Q,"next"),Q(!1)})}n(bt,"pipeLoop");function fn(){return U?u(!0):E(L._readyPromise,()=>p((M,j)=>{ba(I,{_chunkSteps:n(Q=>{q=E(m_(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(()=>vs(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(()=>iE(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(U)return;U=!0,f._state==="writable"&&!Lt(f)?g(zr(),Ne):Ne();function Ne(){return m(M(),()=>ar(j,Q),un=>ar(!0,un)),null}n(Ne,"doTheRest")}n(Fe,"shutdownWithAction");function et(M,j){U||(U=!0,f._state==="writable"&&!Lt(f)?g(zr(),()=>ar(M,j)):ar(M,j))}n(et,"shutdown");function ar(M,j){return __(L),se(I),k!==void 0&&k.removeEventListener("abort",J),M?W(j):N(void 0),null}n(ar,"finalize")})}n(k_,"ReadableStreamPipeTo");let Eu=class Eu{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!ks(this))throw Rs("desiredSize");return uu(this)}close(){if(!ks(this))throw Rs("close");if(!nn(this))throw new TypeError("The stream is not in a state that permits close");pi(this)}enqueue(f=void 0){if(!ks(this))throw Rs("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(!ks(this))throw Rs("error");gt(this,f)}[B](f){Br(this);let h=this._cancelAlgorithm(f);return Ts(this),h}[F](f){let h=this._controlledReadableStream;if(this._queue.length>0){let _=Zf(this);this._closeRequested&&this._queue.length===0?(Ts(this),Aa(h)):Ta(this),f._chunkSteps(_)}else Fp(h,f),Ta(this)}[z](){}};n(Eu,"ReadableStreamDefaultController");let mt=Eu;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 ks(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_controlledReadableStream")?!1:o instanceof mt}n(ks,"IsReadableStreamDefaultController");function Ta(o){if(!T_(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,Ta(o)),null),_=>(gt(o,_),null))}n(Ta,"ReadableStreamDefaultControllerCallPullIfNeeded");function T_(o){let f=o._controlledReadableStream;return!nn(o)||!o._started?!1:!!(Lr(f)&&os(f)>0||uu(o)>0)}n(T_,"ReadableStreamDefaultControllerShouldCallPull");function Ts(o){o._pullAlgorithm=void 0,o._cancelAlgorithm=void 0,o._strategySizeAlgorithm=void 0}n(Ts,"ReadableStreamDefaultControllerClearAlgorithms");function pi(o){if(!nn(o))return;let f=o._controlledReadableStream;o._closeRequested=!0,o._queue.length===0&&(Ts(o),Aa(f))}n(pi,"ReadableStreamDefaultControllerClose");function rn(o,f){if(!nn(o))return;let h=o._controlledReadableStream;if(Lr(h)&&os(h)>0)Mf(h,f,!1);else{let _;try{_=o._strategySizeAlgorithm(f)}catch(v){throw gt(o,v),v}try{Hf(o,f,_)}catch(v){throw gt(o,v),v}}Ta(o)}n(rn,"ReadableStreamDefaultControllerEnqueue");function gt(o,f){let h=o._controlledReadableStream;h._state==="readable"&&(Br(o),Ts(o),I_(h,f))}n(gt,"ReadableStreamDefaultControllerError");function uu(o){let f=o._controlledReadableStream._state;return f==="errored"?null:f==="closed"?0:o._strategyHWM-o._queueTotalSize}n(uu,"ReadableStreamDefaultControllerGetDesiredSize");function wE(o){return!T_(o)}n(wE,"ReadableStreamDefaultControllerHasBackpressure");function nn(o){let f=o._controlledReadableStream._state;return!o._closeRequested&&f==="readable"}n(nn,"ReadableStreamDefaultControllerCanCloseOrEnqueue");function R_(o,f,h,_,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=_,f._cancelAlgorithm=v,o._readableStreamController=f;let L=h();m(u(L),()=>(f._started=!0,Ta(f),null),U=>(gt(f,U),null))}n(R_,"SetUpReadableStreamDefaultController");function SE(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(U=>f.cancel(U),"cancelAlgorithm"):L=n(()=>u(void 0),"cancelAlgorithm"),R_(o,v,k,I,L,h,_)}n(SE,"SetUpReadableStreamDefaultControllerFromUnderlyingSource");function Rs(o){return new TypeError(`ReadableStreamDefaultController.prototype.${o} can only be used on a ReadableStreamDefaultController`)}n(Rs,"defaultControllerBrandCheckException$1");function xE(o,f){return fi(o._readableStreamController)?kE(o):EE(o)}n(xE,"ReadableStreamTee");function EE(o,f){let h=Ji(o),_=!1,v=!1,k=!1,I=!1,L,U,q,N,W,J=p(Ce=>{W=Ce});function bt(){return _?(v=!0,u(void 0)):(_=!0,ba(h,{_chunkSteps:n(Fe=>{y(()=>{v=!1;let et=Fe,ar=Fe;k||rn(q._readableStreamController,et),I||rn(N._readableStreamController,ar),_=!1,v&&bt()})},"_chunkSteps"),_closeSteps:n(()=>{_=!1,k||pi(q._readableStreamController),I||pi(N._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=ya([L,U]),et=vt(o,Fe);W(et)}return J}n(fn,"cancel1Algorithm");function zr(Ce){if(I=!0,U=Ce,k){let Fe=ya([L,U]),et=vt(o,Fe);W(et)}return J}n(zr,"cancel2Algorithm");function nr(){}return n(nr,"startAlgorithm"),q=Ra(nr,bt,fn),N=Ra(nr,bt,zr),b(h._closedPromise,Ce=>(gt(q._readableStreamController,Ce),gt(N._readableStreamController,Ce),(!k||!I)&&W(void 0),null)),[q,N]}n(EE,"ReadableStreamDefaultTee");function kE(o){let f=Ji(o),h=!1,_=!1,v=!1,k=!1,I=!1,L,U,q,N,W,J=p(M=>{W=M});function bt(M){b(M._closedPromise,j=>(M!==f||(Qe(q._readableStreamController,j),Qe(N._readableStreamController,j),(!k||!I)&&W(void 0)),null))}n(bt,"forwardReaderError");function fn(){di(f)&&(se(f),f=Ji(o),bt(f)),ba(f,{_chunkSteps:n(j=>{y(()=>{_=!1,v=!1;let Q=j,Ne=j;if(!k&&!I)try{Ne=Hp(j)}catch(un){Qe(q._readableStreamController,un),Qe(N._readableStreamController,un),W(vt(o,un));return}k||cs(q._readableStreamController,Q),I||cs(N._readableStreamController,Ne),h=!1,_?nr():v&&Ce()})},"_chunkSteps"),_closeSteps:n(()=>{h=!1,k||wa(q._readableStreamController),I||wa(N._readableStreamController),q._readableStreamController._pendingPullIntos.length>0&&hs(q._readableStreamController,0),N._readableStreamController._pendingPullIntos.length>0&&hs(N._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=n_(o),bt(f));let Q=j?N:q,Ne=j?q:N;s_(f,M,1,{_chunkSteps:n(dn=>{y(()=>{_=!1,v=!1;let cn=j?I:k;if(j?k:I)cn||ps(Q._readableStreamController,dn);else{let j_;try{j_=Hp(dn)}catch(Iu){Qe(Q._readableStreamController,Iu),Qe(Ne._readableStreamController,Iu),W(vt(o,Iu));return}cn||ps(Q._readableStreamController,dn),cs(Ne._readableStreamController,j_)}h=!1,_?nr():v&&Ce()})},"_chunkSteps"),_closeSteps:n(dn=>{h=!1;let cn=j?I:k,Ps=j?k:I;cn||wa(Q._readableStreamController),Ps||wa(Ne._readableStreamController),dn!==void 0&&(cn||ps(Q._readableStreamController,dn),!Ps&&Ne._readableStreamController._pendingPullIntos.length>0&&hs(Ne._readableStreamController,0)),(!cn||!Ps)&&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=Kf(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=Kf(N._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=ya([L,U]),Q=vt(o,j);W(Q)}return J}n(Fe,"cancel1Algorithm");function et(M){if(I=!0,U=M,k){let j=ya([L,U]),Q=vt(o,j);W(Q)}return J}n(et,"cancel2Algorithm");function ar(){}return n(ar,"startAlgorithm"),q=C_(ar,nr,Fe),N=C_(ar,Ce,et),bt(f),[q,N]}n(kE,"ReadableByteStreamTee");function TE(o){return r(o)&&typeof o.getReader<"u"}n(TE,"isReadableStreamLike");function RE(o){return TE(o)?CE(o.getReader()):AE(o)}n(RE,"ReadableStreamFrom");function AE(o){let f,h=Zp(o,"async"),_=t;function v(){let I;try{I=b1(h)}catch(U){return c(U)}let L=u(I);return A(L,U=>{if(!r(U))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(y1(U))pi(f._readableStreamController);else{let N=w1(U);rn(f._readableStreamController,N)}})}n(v,"pullAlgorithm");function k(I){let L=h.iterator,U;try{U=fs(L,"return")}catch(W){return c(W)}if(U===void 0)return u(void 0);let q;try{q=x(U,L,[I])}catch(W){return c(W)}let N=u(q);return A(N,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=Ra(_,v,k,0),f}n(AE,"ReadableStreamFromIterable");function CE(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=Ra(h,_,v,0),f}n(CE,"ReadableStreamFromDefaultReader");function IE(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:zf(_,`${f} has member 'autoAllocateChunkSize' that`),cancel:v===void 0?void 0:OE(v,h,`${f} has member 'cancel' that`),pull:k===void 0?void 0:PE(k,h,`${f} has member 'pull' that`),start:I===void 0?void 0:BE(I,h,`${f} has member 'start' that`),type:L===void 0?void 0:DE(L,`${f} has member 'type' that`)}}n(IE,"convertUnderlyingDefaultOrByteSource");function OE(o,f,h){return Je(o,h),_=>C(o,f,[_])}n(OE,"convertUnderlyingSourceCancelCallback");function PE(o,f,h){return Je(o,h),_=>C(o,f,[_])}n(PE,"convertUnderlyingSourcePullCallback");function BE(o,f,h){return Je(o,h),_=>x(o,f,[_])}n(BE,"convertUnderlyingSourceStartCallback");function DE(o,f){if(o=`${o}`,o!=="bytes")throw new TypeError(`${f} '${o}' is not a valid enumeration value for ReadableStreamType`);return o}n(DE,"convertReadableStreamType");function FE(o,f){return Pt(o,f),{preventCancel:!!(o==null?void 0:o.preventCancel)}}n(FE,"convertIteratorOptions");function A_(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&&LE(k,`${f} has member 'signal' that`),{preventAbort:!!h,preventCancel:!!_,preventClose:!!v,signal:k}}n(A_,"convertPipeOptions");function LE(o,f){if(!Z1(o))throw new TypeError(`${f} is not an AbortSignal.`)}n(LE,"assertAbortSignal");function zE(o,f){Pt(o,f);let h=o==null?void 0:o.readable;Ff(h,"readable","ReadableWritablePair"),qf(h,`${f} has member 'readable' that`);let _=o==null?void 0:o.writable;return Ff(_,"writable","ReadableWritablePair"),f_(_,`${f} has member 'writable' that`),{readable:h,writable:_}}n(zE,"convertReadableWritablePair");let ku=class ku{constructor(f={},h={}){f===void 0?f=null:Bp(f,"First parameter");let _=gs(h,"Second parameter"),v=IE(f,"First parameter");if(du(this),v.type==="bytes"){if(_.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");let k=xa(_,0);O1(this,v,k)}else{let k=ms(_),I=xa(_,1);SE(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 B1(f,"First parameter").mode===void 0?Ji(this):n_(this)}pipeThrough(f,h={}){if(!Fr(this))throw _i("pipeThrough");tr(f,1,"pipeThrough");let _=zE(f,"First parameter"),v=A_(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=k_(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{_=A_(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")):k_(this,f,_.preventClose,_.preventAbort,_.preventCancel,_.signal)}tee(){if(!Fr(this))throw _i("tee");let f=xE(this);return ya(f)}values(f=void 0){if(!Fr(this))throw _i("values");let h=FE(f,"First parameter");return g1(this,h.preventCancel)}[jf](f){return this.values(f)}static from(f){return RE(f)}};n(ku,"ReadableStream");let be=ku;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,jf,{value:be.prototype.values,writable:!0,configurable:!0});function Ra(o,f,h,_=1,v=()=>1){let k=Object.create(be.prototype);du(k);let I=Object.create(mt.prototype);return R_(k,I,o,f,h,_,v),k}n(Ra,"CreateReadableStream");function C_(o,f,h){let _=Object.create(be.prototype);du(_);let v=Object.create(pt.prototype);return i_(_,v,o,f,h,0,void 0),_}n(C_,"CreateReadableByteStream");function du(o){o._state="readable",o._reader=void 0,o._storedError=void 0,o._disturbed=!1}n(du,"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);Aa(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[B](f);return A(_,t)}n(vt,"ReadableStreamCancel");function Aa(o){o._state="closed";let f=o._reader;if(f!==void 0&&(Op(f),Or(f))){let h=f._readRequests;f._readRequests=new S,h.forEach(_=>{_._closeSteps()})}}n(Aa,"ReadableStreamClose");function I_(o,f){o._state="errored",o._storedError=f;let h=o._reader;h!==void 0&&(Ue(h,f),Or(h)?zp(h,f):l_(h,f))}n(I_,"ReadableStreamError");function _i(o){return new TypeError(`ReadableStream.prototype.${o} can only be used on a ReadableStream`)}n(_i,"streamBrandCheckException$1");function O_(o,f){Pt(o,f);let h=o==null?void 0:o.highWaterMark;return Ff(h,"highWaterMark","QueuingStrategyInit"),{highWaterMark:Lf(h)}}n(O_,"convertQueuingStrategyInit");let P_=n(o=>o.byteLength,"byteLengthSizeFunction");a(P_,"size");let Tu=class Tu{constructor(f){tr(f,1,"ByteLengthQueuingStrategy"),f=O_(f,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=f.highWaterMark}get highWaterMark(){if(!D_(this))throw B_("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!D_(this))throw B_("size");return P_}};n(Tu,"ByteLengthQueuingStrategy");let an=Tu;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 B_(o){return new TypeError(`ByteLengthQueuingStrategy.prototype.${o} can only be used on a ByteLengthQueuingStrategy`)}n(B_,"byteLengthBrandCheckException");function D_(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_byteLengthQueuingStrategyHighWaterMark")?!1:o instanceof an}n(D_,"IsByteLengthQueuingStrategy");let F_=n(()=>1,"countSizeFunction");a(F_,"size");let Ru=class Ru{constructor(f){tr(f,1,"CountQueuingStrategy"),f=O_(f,"First parameter"),this._countQueuingStrategyHighWaterMark=f.highWaterMark}get highWaterMark(){if(!z_(this))throw L_("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!z_(this))throw L_("size");return F_}};n(Ru,"CountQueuingStrategy");let on=Ru;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 L_(o){return new TypeError(`CountQueuingStrategy.prototype.${o} can only be used on a CountQueuingStrategy`)}n(L_,"countBrandCheckException");function z_(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_countQueuingStrategyHighWaterMark")?!1:o instanceof on}n(z_,"IsCountQueuingStrategy");function qE(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:WE(h,o,`${f} has member 'cancel' that`),flush:_===void 0?void 0:ME(_,o,`${f} has member 'flush' that`),readableType:v,start:k===void 0?void 0:UE(k,o,`${f} has member 'start' that`),transform:I===void 0?void 0:NE(I,o,`${f} has member 'transform' that`),writableType:L}}n(qE,"convertTransformer");function ME(o,f,h){return Je(o,h),_=>C(o,f,[_])}n(ME,"convertTransformerFlushCallback");function UE(o,f,h){return Je(o,h),_=>x(o,f,[_])}n(UE,"convertTransformerStartCallback");function NE(o,f,h){return Je(o,h),(_,v)=>C(o,f,[_,v])}n(NE,"convertTransformerTransformCallback");function WE(o,f,h){return Je(o,h),_=>C(o,f,[_])}n(WE,"convertTransformerCancelCallback");let Au=class Au{constructor(f={},h={},_={}){f===void 0&&(f=null);let v=gs(h,"Second parameter"),k=gs(_,"Third parameter"),I=qE(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=xa(k,0),U=ms(k),q=xa(v,1),N=ms(v),W,J=p(bt=>{W=bt});jE(this,J,q,N,L,U),HE(this,I),I.start!==void 0?W(I.start(this._transformStreamController)):W(void 0)}get readable(){if(!q_(this))throw W_("readable");return this._readable}get writable(){if(!q_(this))throw W_("writable");return this._writable}};n(Au,"TransformStream");let sn=Au;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 jE(o,f,h,_,v,k){function I(){return f}n(I,"startAlgorithm");function L(J){return GE(o,J)}n(L,"writeAlgorithm");function U(J){return VE(o,J)}n(U,"abortAlgorithm");function q(){return KE(o)}n(q,"closeAlgorithm"),o._writable=Y1(I,L,q,U,h,_);function N(){return XE(o)}n(N,"pullAlgorithm");function W(J){return JE(o,J)}n(W,"cancelAlgorithm"),o._readable=Ra(I,N,W,v,k),o._backpressure=void 0,o._backpressureChangePromise=void 0,o._backpressureChangePromise_resolve=void 0,As(o,!0),o._transformStreamController=void 0}n(jE,"InitializeTransformStream");function q_(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_transformStreamController")?!1:o instanceof sn}n(q_,"IsTransformStream");function M_(o,f){gt(o._readable._readableStreamController,f),cu(o,f)}n(M_,"TransformStreamError");function cu(o,f){Is(o._transformStreamController),Ea(o._writable._writableStreamController,f),hu(o)}n(cu,"TransformStreamErrorWritableAndUnblockWrite");function hu(o){o._backpressure&&As(o,!1)}n(hu,"TransformStreamUnblockWrite");function As(o,f){o._backpressureChangePromise!==void 0&&o._backpressureChangePromise_resolve(),o._backpressureChangePromise=p(h=>{o._backpressureChangePromise_resolve=h}),o._backpressure=f}n(As,"TransformStreamSetBackpressure");let Cu=class Cu{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Cs(this))throw Os("desiredSize");let f=this._controlledTransformStream._readable._readableStreamController;return uu(f)}enqueue(f=void 0){if(!Cs(this))throw Os("enqueue");U_(this,f)}error(f=void 0){if(!Cs(this))throw Os("error");$E(this,f)}terminate(){if(!Cs(this))throw Os("terminate");YE(this)}};n(Cu,"TransformStreamDefaultController");let zt=Cu;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 Cs(o){return!r(o)||!Object.prototype.hasOwnProperty.call(o,"_controlledTransformStream")?!1:o instanceof zt}n(Cs,"IsTransformStreamDefaultController");function ZE(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(ZE,"SetUpTransformStreamDefaultController");function HE(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 U_(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"),ZE(o,h,_,v,k)}n(HE,"SetUpTransformStreamDefaultControllerFromTransformer");function Is(o){o._transformAlgorithm=void 0,o._flushAlgorithm=void 0,o._cancelAlgorithm=void 0}n(Is,"TransformStreamDefaultControllerClearAlgorithms");function U_(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 cu(h,k),h._readable._storedError}wE(_)!==h._backpressure&&As(h,!0)}n(U_,"TransformStreamDefaultControllerEnqueue");function $E(o,f){M_(o._controlledTransformStream,f)}n($E,"TransformStreamDefaultControllerError");function N_(o,f){let h=o._transformAlgorithm(f);return A(h,void 0,_=>{throw M_(o._controlledTransformStream,_),_})}n(N_,"TransformStreamDefaultControllerPerformTransform");function YE(o){let f=o._controlledTransformStream,h=f._readable._readableStreamController;pi(h);let _=new TypeError("TransformStream terminated");cu(f,_)}n(YE,"TransformStreamDefaultControllerTerminate");function GE(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 N_(h,f)})}return N_(h,f)}n(GE,"TransformStreamDefaultSinkWriteAlgorithm");function VE(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 Is(h),m(v,()=>(_._state==="errored"?ln(h,_._storedError):(gt(_._readableStreamController,f),pu(h)),null),k=>(gt(_._readableStreamController,k),ln(h,k),null)),h._finishPromise}n(VE,"TransformStreamDefaultSinkAbortAlgorithm");function KE(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 Is(f),m(_,()=>(h._state==="errored"?ln(f,h._storedError):(pi(h._readableStreamController),pu(f)),null),v=>(gt(h._readableStreamController,v),ln(f,v),null)),f._finishPromise}n(KE,"TransformStreamDefaultSinkCloseAlgorithm");function XE(o){return As(o,!1),o._backpressureChangePromise}n(XE,"TransformStreamDefaultSourcePullAlgorithm");function JE(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 Is(h),m(v,()=>(_._state==="errored"?ln(h,_._storedError):(Ea(_._writableStreamController,f),hu(o),pu(h)),null),k=>(Ea(_._writableStreamController,k),hu(o),ln(h,k),null)),h._finishPromise}n(JE,"TransformStreamDefaultSourceCancelAlgorithm");function Os(o){return new TypeError(`TransformStreamDefaultController.prototype.${o} can only be used on a TransformStreamDefaultController`)}n(Os,"defaultControllerBrandCheckException");function pu(o){o._finishPromise_resolve!==void 0&&(o._finishPromise_resolve(),o._finishPromise_resolve=void 0,o._finishPromise_reject=void 0)}n(pu,"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 W_(o){return new TypeError(`TransformStream.prototype.${o} can only be used on a TransformStream`)}n(W_,"streamBrandCheckException"),e.ByteLengthQueuingStrategy=an,e.CountQueuingStrategy=on,e.ReadableByteStreamController=pt,e.ReadableStream=be,e.ReadableStreamBYOBReader=Dt,e.ReadableStreamBYOBRequest=ir,e.ReadableStreamDefaultController=mt,e.ReadableStreamDefaultReader=Bt,e.TransformStream=sn,e.TransformStreamDefaultController=zt,e.WritableStream=Ft,e.WritableStreamDefaultController=Dr,e.WritableStreamDefaultWriter=_t})});var X_=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,K_())}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*Ou(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,J_),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+J_)).arrayBuffer();i+=l.byteLength,yield new Uint8Array(l)}}}var YB,J_,or,Oa,hn,Ds,qr,Q_,ok,sr,Pa=Ia(()=>{YB=tt(X_(),1);J_=65536;n(Ou,"toIterator");Q_=(qr=class{constructor(t=[],r={}){yt(this,or,[]);yt(this,Oa,"");yt(this,hn,0);yt(this,Ds,"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,Ds,`${r.endings===void 0?"transparent":r.endings}`);let a=r.type===void 0?"":String(r.type);We(this,Oa,/^[\x20-\x7E]*$/.test(a)?a:"")}get size(){return ue(this,hn)}get type(){return ue(this,Oa)}async text(){let t=new TextDecoder,r="";for await(let i of Ou(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 Ou(ue(this,or),!1))t.set(i,r),r+=i.length;return t.buffer}stream(){let t=Ou(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,Oa=new WeakMap,hn=new WeakMap,Ds=new WeakMap,n(qr,"Blob"),qr);Object.defineProperties(Q_.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}});ok=Q_,sr=ok});var Ba,Da,pn,sk,lk,_n,Pu=Ia(()=>{Pa();sk=(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,Da,"");a===null&&(a={});let s=a.lastModified===void 0?Date.now():Number(a.lastModified);Number.isNaN(s)||We(this,Ba,s),We(this,Da,String(i))}get name(){return ue(this,Da)}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,Da=new WeakMap,n(pn,"File"),pn),lk=sk,_n=lk});function rm(e,t=sr){var r=`${em()}${em()}`.replace(/\./g,"").slice(-28).padStart(32,"-"),i=[],a=`--${r}\r
|
|
2
|
-
Content-Disposition: form-data; name="`;return e.forEach((
|
|
1
|
+
"use strict";var Db=Object.create;var zn=Object.defineProperty;var Lb=Object.getOwnPropertyDescriptor;var qb=Object.getOwnPropertyNames;var zb=Object.getPrototypeOf,Mb=Object.prototype.hasOwnProperty;var zf=e=>{throw TypeError(e)};var a=(e,t)=>zn(e,"name",{value:t,configurable:!0});var Mn=(e,t)=>()=>(e&&(t=e(e=0)),t);var P=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Mf=(e,t)=>{for(var r in t)zn(e,r,{get:t[r],enumerable:!0})},Uf=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of qb(t))!Mb.call(e,o)&&o!==r&&zn(e,o,{get:()=>t[o],enumerable:!(n=Lb(t,o))||n.enumerable});return e};var Oe=(e,t,r)=>(r=e!=null?Db(zb(e)):{},Uf(t||!e||!e.__esModule?zn(r,"default",{value:e,enumerable:!0}):r,e)),Ub=e=>Uf(zn({},"__esModule",{value:!0}),e);var Wf=(e,t,r)=>t.has(e)||zf("Cannot "+r);var te=(e,t,r)=>(Wf(e,t,"read from private field"),r?r.call(e):t.get(e)),$e=(e,t,r)=>t.has(e)?zf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Se=(e,t,r,n)=>(Wf(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Hf=P((oa,jf)=>{(function(e,t){typeof oa=="object"&&typeof jf<"u"?t(oa):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.WebStreamsPolyfill={}))})(oa,function(e){"use strict";function t(){}a(t,"noop");function r(i){return typeof i=="object"&&i!==null||typeof i=="function"}a(r,"typeIsObject");let n=t;function o(i,s){try{Object.defineProperty(i,"name",{value:s,configurable:!0})}catch{}}a(o,"setFunctionName");let l=Promise,f=Promise.prototype.then,c=Promise.reject.bind(l);function m(i){return new l(i)}a(m,"newPromise");function d(i){return m(s=>s(i))}a(d,"promiseResolvedWith");function h(i){return c(i)}a(h,"promiseRejectedWith");function x(i,s,u){return f.call(i,s,u)}a(x,"PerformPromiseThen");function _(i,s,u){x(x(i,s,u),void 0,n)}a(_,"uponPromise");function w(i,s){_(i,s)}a(w,"uponFulfillment");function v(i,s){_(i,void 0,s)}a(v,"uponRejection");function k(i,s,u){return x(i,s,u)}a(k,"transformPromiseWith");function E(i){x(i,void 0,n)}a(E,"setPromiseIsHandledToTrue");let S=a(i=>{if(typeof queueMicrotask=="function")S=queueMicrotask;else{let s=d(void 0);S=a(u=>x(s,u),"_queueMicrotask")}return S(i)},"_queueMicrotask");function A(i,s,u){if(typeof i!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(i,s,u)}a(A,"reflectCall");function C(i,s,u){try{return d(A(i,s,u))}catch(p){return h(p)}}a(C,"promiseCall");let R=16384,Qo=class Qo{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(s){let u=this._back,p=u;u._elements.length===R-1&&(p={_elements:[],_next:void 0}),u._elements.push(s),p!==u&&(this._back=p,u._next=p),++this._size}shift(){let s=this._front,u=s,p=this._cursor,g=p+1,b=s._elements,y=b[p];return g===R&&(u=s._next,g=0),--this._size,this._cursor=g,s!==u&&(this._front=u),b[p]=void 0,y}forEach(s){let u=this._cursor,p=this._front,g=p._elements;for(;(u!==g.length||p._next!==void 0)&&!(u===g.length&&(p=p._next,g=p._elements,u=0,g.length===0));)s(g[u]),++u}peek(){let s=this._front,u=this._cursor;return s._elements[u]}};a(Qo,"SimpleQueue");let T=Qo,O=Symbol("[[AbortSteps]]"),q=Symbol("[[ErrorSteps]]"),D=Symbol("[[CancelSteps]]"),U=Symbol("[[PullSteps]]"),$=Symbol("[[ReleaseSteps]]");function F(i,s){i._ownerReadableStream=s,s._reader=i,s._state==="readable"?Ir(i):s._state==="closed"?Or(i):En(i,s._storedError)}a(F,"ReadableStreamReaderGenericInitialize");function le(i,s){let u=i._ownerReadableStream;return He(u,s)}a(le,"ReadableStreamReaderGenericCancel");function de(i){let s=i._ownerReadableStream;s._state==="readable"?Bt(i,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):$m(i,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),s._readableStreamController[$](),s._reader=void 0,i._ownerReadableStream=void 0}a(de,"ReadableStreamReaderGenericRelease");function pt(i){return new TypeError("Cannot "+i+" a stream using a released reader")}a(pt,"readerLockException");function Ir(i){i._closedPromise=m((s,u)=>{i._closedPromise_resolve=s,i._closedPromise_reject=u})}a(Ir,"defaultReaderClosedPromiseInitialize");function En(i,s){Ir(i),Bt(i,s)}a(En,"defaultReaderClosedPromiseInitializeAsRejected");function Or(i){Ir(i),Tu(i)}a(Or,"defaultReaderClosedPromiseInitializeAsResolved");function Bt(i,s){i._closedPromise_reject!==void 0&&(E(i._closedPromise),i._closedPromise_reject(s),i._closedPromise_resolve=void 0,i._closedPromise_reject=void 0)}a(Bt,"defaultReaderClosedPromiseReject");function $m(i,s){En(i,s)}a($m,"defaultReaderClosedPromiseResetToRejected");function Tu(i){i._closedPromise_resolve!==void 0&&(i._closedPromise_resolve(void 0),i._closedPromise_resolve=void 0,i._closedPromise_reject=void 0)}a(Tu,"defaultReaderClosedPromiseResolve");let xu=Number.isFinite||function(i){return typeof i=="number"&&isFinite(i)},Vm=Math.trunc||function(i){return i<0?Math.ceil(i):Math.floor(i)};function Ym(i){return typeof i=="object"||typeof i=="function"}a(Ym,"isDictionary");function Je(i,s){if(i!==void 0&&!Ym(i))throw new TypeError(`${s} is not an object.`)}a(Je,"assertDictionary");function Ce(i,s){if(typeof i!="function")throw new TypeError(`${s} is not a function.`)}a(Ce,"assertFunction");function Gm(i){return typeof i=="object"&&i!==null||typeof i=="function"}a(Gm,"isObject");function Au(i,s){if(!Gm(i))throw new TypeError(`${s} is not an object.`)}a(Au,"assertObject");function mt(i,s,u){if(i===void 0)throw new TypeError(`Parameter ${s} is required in '${u}'.`)}a(mt,"assertRequiredArgument");function _o(i,s,u){if(i===void 0)throw new TypeError(`${s} is required in '${u}'.`)}a(_o,"assertRequiredField");function yo(i){return Number(i)}a(yo,"convertUnrestrictedDouble");function Eu(i){return i===0?0:i}a(Eu,"censorNegativeZero");function Km(i){return Eu(Vm(i))}a(Km,"integerPart");function vo(i,s){let p=Number.MAX_SAFE_INTEGER,g=Number(i);if(g=Eu(g),!xu(g))throw new TypeError(`${s} is not a finite number`);if(g=Km(g),g<0||g>p)throw new TypeError(`${s} is outside the accepted range of 0 to ${p}, inclusive`);return!xu(g)||g===0?0:g}a(vo,"convertUnsignedLongLongWithEnforceRange");function wo(i,s){if(!Mt(i))throw new TypeError(`${s} is not a ReadableStream.`)}a(wo,"assertReadableStream");function Fr(i){return new et(i)}a(Fr,"AcquireReadableStreamDefaultReader");function ku(i,s){i._reader._readRequests.push(s)}a(ku,"ReadableStreamAddReadRequest");function So(i,s,u){let g=i._reader._readRequests.shift();u?g._closeSteps():g._chunkSteps(s)}a(So,"ReadableStreamFulfillReadRequest");function Fi(i){return i._reader._readRequests.length}a(Fi,"ReadableStreamGetNumReadRequests");function Cu(i){let s=i._reader;return!(s===void 0||!Dt(s))}a(Cu,"ReadableStreamHasDefaultReader");let Jo=class Jo{constructor(s){if(mt(s,1,"ReadableStreamDefaultReader"),wo(s,"First parameter"),Ut(s))throw new TypeError("This stream has already been locked for exclusive reading by another reader");F(this,s),this._readRequests=new T}get closed(){return Dt(this)?this._closedPromise:h(Bi("closed"))}cancel(s=void 0){return Dt(this)?this._ownerReadableStream===void 0?h(pt("cancel")):le(this,s):h(Bi("cancel"))}read(){if(!Dt(this))return h(Bi("read"));if(this._ownerReadableStream===void 0)return h(pt("read from"));let s,u,p=m((b,y)=>{s=b,u=y});return kn(this,{_chunkSteps:a(b=>s({value:b,done:!1}),"_chunkSteps"),_closeSteps:a(()=>s({value:void 0,done:!0}),"_closeSteps"),_errorSteps:a(b=>u(b),"_errorSteps")}),p}releaseLock(){if(!Dt(this))throw Bi("releaseLock");this._ownerReadableStream!==void 0&&Xm(this)}};a(Jo,"ReadableStreamDefaultReader");let et=Jo;Object.defineProperties(et.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),o(et.prototype.cancel,"cancel"),o(et.prototype.read,"read"),o(et.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(et.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function Dt(i){return!r(i)||!Object.prototype.hasOwnProperty.call(i,"_readRequests")?!1:i instanceof et}a(Dt,"IsReadableStreamDefaultReader");function kn(i,s){let u=i._ownerReadableStream;u._disturbed=!0,u._state==="closed"?s._closeSteps():u._state==="errored"?s._errorSteps(u._storedError):u._readableStreamController[U](s)}a(kn,"ReadableStreamDefaultReaderRead");function Xm(i){de(i);let s=new TypeError("Reader was released");Pu(i,s)}a(Xm,"ReadableStreamDefaultReaderRelease");function Pu(i,s){let u=i._readRequests;i._readRequests=new T,u.forEach(p=>{p._errorSteps(s)})}a(Pu,"ReadableStreamDefaultReaderErrorReadRequests");function Bi(i){return new TypeError(`ReadableStreamDefaultReader.prototype.${i} can only be used on a ReadableStreamDefaultReader`)}a(Bi,"defaultReaderBrandCheckException");let Qm=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype),es=class es{constructor(s,u){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=s,this._preventCancel=u}next(){let s=a(()=>this._nextSteps(),"nextSteps");return this._ongoingPromise=this._ongoingPromise?k(this._ongoingPromise,s,s):s(),this._ongoingPromise}return(s){let u=a(()=>this._returnSteps(s),"returnSteps");return this._ongoingPromise?k(this._ongoingPromise,u,u):u()}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});let s=this._reader,u,p,g=m((y,I)=>{u=y,p=I});return kn(s,{_chunkSteps:a(y=>{this._ongoingPromise=void 0,S(()=>u({value:y,done:!1}))},"_chunkSteps"),_closeSteps:a(()=>{this._ongoingPromise=void 0,this._isFinished=!0,de(s),u({value:void 0,done:!0})},"_closeSteps"),_errorSteps:a(y=>{this._ongoingPromise=void 0,this._isFinished=!0,de(s),p(y)},"_errorSteps")}),g}_returnSteps(s){if(this._isFinished)return Promise.resolve({value:s,done:!0});this._isFinished=!0;let u=this._reader;if(!this._preventCancel){let p=le(u,s);return de(u),k(p,()=>({value:s,done:!0}))}return de(u),d({value:s,done:!0})}};a(es,"ReadableStreamAsyncIteratorImpl");let Di=es,Iu={next(){return Ou(this)?this._asyncIteratorImpl.next():h(Fu("next"))},return(i){return Ou(this)?this._asyncIteratorImpl.return(i):h(Fu("return"))}};Object.setPrototypeOf(Iu,Qm);function Jm(i,s){let u=Fr(i),p=new Di(u,s),g=Object.create(Iu);return g._asyncIteratorImpl=p,g}a(Jm,"AcquireReadableStreamAsyncIterator");function Ou(i){if(!r(i)||!Object.prototype.hasOwnProperty.call(i,"_asyncIteratorImpl"))return!1;try{return i._asyncIteratorImpl instanceof Di}catch{return!1}}a(Ou,"IsReadableStreamAsyncIterator");function Fu(i){return new TypeError(`ReadableStreamAsyncIterator.${i} can only be used on a ReadableSteamAsyncIterator`)}a(Fu,"streamAsyncIteratorBrandCheckException");let Bu=Number.isNaN||function(i){return i!==i};var Ro,To,xo;function Cn(i){return i.slice()}a(Cn,"CreateArrayFromList");function Du(i,s,u,p,g){new Uint8Array(i).set(new Uint8Array(u,p,g),s)}a(Du,"CopyDataBlockBytes");let gt=a(i=>(typeof i.transfer=="function"?gt=a(s=>s.transfer(),"TransferArrayBuffer"):typeof structuredClone=="function"?gt=a(s=>structuredClone(s,{transfer:[s]}),"TransferArrayBuffer"):gt=a(s=>s,"TransferArrayBuffer"),gt(i)),"TransferArrayBuffer"),Lt=a(i=>(typeof i.detached=="boolean"?Lt=a(s=>s.detached,"IsDetachedBuffer"):Lt=a(s=>s.byteLength===0,"IsDetachedBuffer"),Lt(i)),"IsDetachedBuffer");function Lu(i,s,u){if(i.slice)return i.slice(s,u);let p=u-s,g=new ArrayBuffer(p);return Du(g,0,i,s,p),g}a(Lu,"ArrayBufferSlice");function Li(i,s){let u=i[s];if(u!=null){if(typeof u!="function")throw new TypeError(`${String(s)} is not a function`);return u}}a(Li,"GetMethod");function eg(i){let s={[Symbol.iterator]:()=>i.iterator},u=async function*(){return yield*s}(),p=u.next;return{iterator:u,nextMethod:p,done:!1}}a(eg,"CreateAsyncFromSyncIterator");let Ao=(xo=(Ro=Symbol.asyncIterator)!==null&&Ro!==void 0?Ro:(To=Symbol.for)===null||To===void 0?void 0:To.call(Symbol,"Symbol.asyncIterator"))!==null&&xo!==void 0?xo:"@@asyncIterator";function qu(i,s="sync",u){if(u===void 0)if(s==="async"){if(u=Li(i,Ao),u===void 0){let b=Li(i,Symbol.iterator),y=qu(i,"sync",b);return eg(y)}}else u=Li(i,Symbol.iterator);if(u===void 0)throw new TypeError("The object is not iterable");let p=A(u,i,[]);if(!r(p))throw new TypeError("The iterator method must return an object");let g=p.next;return{iterator:p,nextMethod:g,done:!1}}a(qu,"GetIterator");function tg(i){let s=A(i.nextMethod,i.iterator,[]);if(!r(s))throw new TypeError("The iterator.next() method must return an object");return s}a(tg,"IteratorNext");function rg(i){return!!i.done}a(rg,"IteratorComplete");function ng(i){return i.value}a(ng,"IteratorValue");function ig(i){return!(typeof i!="number"||Bu(i)||i<0)}a(ig,"IsNonNegativeNumber");function zu(i){let s=Lu(i.buffer,i.byteOffset,i.byteOffset+i.byteLength);return new Uint8Array(s)}a(zu,"CloneAsUint8Array");function Eo(i){let s=i._queue.shift();return i._queueTotalSize-=s.size,i._queueTotalSize<0&&(i._queueTotalSize=0),s.value}a(Eo,"DequeueValue");function ko(i,s,u){if(!ig(u)||u===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");i._queue.push({value:s,size:u}),i._queueTotalSize+=u}a(ko,"EnqueueValueWithSize");function ag(i){return i._queue.peek().value}a(ag,"PeekQueueValue");function qt(i){i._queue=new T,i._queueTotalSize=0}a(qt,"ResetQueue");function Mu(i){return i===DataView}a(Mu,"isDataViewConstructor");function og(i){return Mu(i.constructor)}a(og,"isDataView");function sg(i){return Mu(i)?1:i.BYTES_PER_ELEMENT}a(sg,"arrayBufferViewElementSize");let ts=class ts{constructor(){throw new TypeError("Illegal constructor")}get view(){if(!Co(this))throw Bo("view");return this._view}respond(s){if(!Co(this))throw Bo("respond");if(mt(s,1,"respond"),s=vo(s,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Lt(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");Ui(this._associatedReadableByteStreamController,s)}respondWithNewView(s){if(!Co(this))throw Bo("respondWithNewView");if(mt(s,1,"respondWithNewView"),!ArrayBuffer.isView(s))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(Lt(s.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");Wi(this._associatedReadableByteStreamController,s)}};a(ts,"ReadableStreamBYOBRequest");let bt=ts;Object.defineProperties(bt.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),o(bt.prototype.respond,"respond"),o(bt.prototype.respondWithNewView,"respondWithNewView"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(bt.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});let rs=class rs{constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!rr(this))throw In("byobRequest");return Fo(this)}get desiredSize(){if(!rr(this))throw In("desiredSize");return Gu(this)}close(){if(!rr(this))throw In("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");let s=this._controlledReadableByteStream._state;if(s!=="readable")throw new TypeError(`The stream (in ${s} state) is not in the readable state and cannot be closed`);Pn(this)}enqueue(s){if(!rr(this))throw In("enqueue");if(mt(s,1,"enqueue"),!ArrayBuffer.isView(s))throw new TypeError("chunk must be an array buffer view");if(s.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(s.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 u=this._controlledReadableByteStream._state;if(u!=="readable")throw new TypeError(`The stream (in ${u} state) is not in the readable state and cannot be enqueued to`);Mi(this,s)}error(s=void 0){if(!rr(this))throw In("error");Pe(this,s)}[D](s){Uu(this),qt(this);let u=this._cancelAlgorithm(s);return zi(this),u}[U](s){let u=this._controlledReadableByteStream;if(this._queueTotalSize>0){Yu(this,s);return}let p=this._autoAllocateChunkSize;if(p!==void 0){let g;try{g=new ArrayBuffer(p)}catch(y){s._errorSteps(y);return}let b={buffer:g,bufferByteLength:p,byteOffset:0,byteLength:p,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(b)}ku(u,s),nr(this)}[$](){if(this._pendingPullIntos.length>0){let s=this._pendingPullIntos.peek();s.readerType="none",this._pendingPullIntos=new T,this._pendingPullIntos.push(s)}}};a(rs,"ReadableByteStreamController");let Ue=rs;Object.defineProperties(Ue.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),o(Ue.prototype.close,"close"),o(Ue.prototype.enqueue,"enqueue"),o(Ue.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Ue.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function rr(i){return!r(i)||!Object.prototype.hasOwnProperty.call(i,"_controlledReadableByteStream")?!1:i instanceof Ue}a(rr,"IsReadableByteStreamController");function Co(i){return!r(i)||!Object.prototype.hasOwnProperty.call(i,"_associatedReadableByteStreamController")?!1:i instanceof bt}a(Co,"IsReadableStreamBYOBRequest");function nr(i){if(!cg(i))return;if(i._pulling){i._pullAgain=!0;return}i._pulling=!0;let u=i._pullAlgorithm();_(u,()=>(i._pulling=!1,i._pullAgain&&(i._pullAgain=!1,nr(i)),null),p=>(Pe(i,p),null))}a(nr,"ReadableByteStreamControllerCallPullIfNeeded");function Uu(i){Io(i),i._pendingPullIntos=new T}a(Uu,"ReadableByteStreamControllerClearPendingPullIntos");function Po(i,s){let u=!1;i._state==="closed"&&(u=!0);let p=Wu(s);s.readerType==="default"?So(i,p,u):_g(i,p,u)}a(Po,"ReadableByteStreamControllerCommitPullIntoDescriptor");function Wu(i){let s=i.bytesFilled,u=i.elementSize;return new i.viewConstructor(i.buffer,i.byteOffset,s/u)}a(Wu,"ReadableByteStreamControllerConvertPullIntoDescriptor");function qi(i,s,u,p){i._queue.push({buffer:s,byteOffset:u,byteLength:p}),i._queueTotalSize+=p}a(qi,"ReadableByteStreamControllerEnqueueChunkToQueue");function Nu(i,s,u,p){let g;try{g=Lu(s,u,u+p)}catch(b){throw Pe(i,b),b}qi(i,g,0,p)}a(Nu,"ReadableByteStreamControllerEnqueueClonedChunkToQueue");function ju(i,s){s.bytesFilled>0&&Nu(i,s.buffer,s.byteOffset,s.bytesFilled),Br(i)}a(ju,"ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue");function Hu(i,s){let u=Math.min(i._queueTotalSize,s.byteLength-s.bytesFilled),p=s.bytesFilled+u,g=u,b=!1,y=p%s.elementSize,I=p-y;I>=s.minimumFill&&(g=I-s.bytesFilled,b=!0);let z=i._queue;for(;g>0;){let B=z.peek(),M=Math.min(g,B.byteLength),W=s.byteOffset+s.bytesFilled;Du(s.buffer,W,B.buffer,B.byteOffset,M),B.byteLength===M?z.shift():(B.byteOffset+=M,B.byteLength-=M),i._queueTotalSize-=M,Zu(i,M,s),g-=M}return b}a(Hu,"ReadableByteStreamControllerFillPullIntoDescriptorFromQueue");function Zu(i,s,u){u.bytesFilled+=s}a(Zu,"ReadableByteStreamControllerFillHeadPullIntoDescriptor");function $u(i){i._queueTotalSize===0&&i._closeRequested?(zi(i),qn(i._controlledReadableByteStream)):nr(i)}a($u,"ReadableByteStreamControllerHandleQueueDrain");function Io(i){i._byobRequest!==null&&(i._byobRequest._associatedReadableByteStreamController=void 0,i._byobRequest._view=null,i._byobRequest=null)}a(Io,"ReadableByteStreamControllerInvalidateBYOBRequest");function Oo(i){for(;i._pendingPullIntos.length>0;){if(i._queueTotalSize===0)return;let s=i._pendingPullIntos.peek();Hu(i,s)&&(Br(i),Po(i._controlledReadableByteStream,s))}}a(Oo,"ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue");function lg(i){let s=i._controlledReadableByteStream._reader;for(;s._readRequests.length>0;){if(i._queueTotalSize===0)return;let u=s._readRequests.shift();Yu(i,u)}}a(lg,"ReadableByteStreamControllerProcessReadRequestsUsingQueue");function ug(i,s,u,p){let g=i._controlledReadableByteStream,b=s.constructor,y=sg(b),{byteOffset:I,byteLength:z}=s,B=u*y,M;try{M=gt(s.buffer)}catch(Y){p._errorSteps(Y);return}let W={buffer:M,bufferByteLength:M.byteLength,byteOffset:I,byteLength:z,bytesFilled:0,minimumFill:B,elementSize:y,viewConstructor:b,readerType:"byob"};if(i._pendingPullIntos.length>0){i._pendingPullIntos.push(W),Qu(g,p);return}if(g._state==="closed"){let Y=new b(W.buffer,W.byteOffset,0);p._closeSteps(Y);return}if(i._queueTotalSize>0){if(Hu(i,W)){let Y=Wu(W);$u(i),p._chunkSteps(Y);return}if(i._closeRequested){let Y=new TypeError("Insufficient bytes to fill elements in the given buffer");Pe(i,Y),p._errorSteps(Y);return}}i._pendingPullIntos.push(W),Qu(g,p),nr(i)}a(ug,"ReadableByteStreamControllerPullInto");function fg(i,s){s.readerType==="none"&&Br(i);let u=i._controlledReadableByteStream;if(Do(u))for(;Ju(u)>0;){let p=Br(i);Po(u,p)}}a(fg,"ReadableByteStreamControllerRespondInClosedState");function dg(i,s,u){if(Zu(i,s,u),u.readerType==="none"){ju(i,u),Oo(i);return}if(u.bytesFilled<u.minimumFill)return;Br(i);let p=u.bytesFilled%u.elementSize;if(p>0){let g=u.byteOffset+u.bytesFilled;Nu(i,u.buffer,g-p,p)}u.bytesFilled-=p,Po(i._controlledReadableByteStream,u),Oo(i)}a(dg,"ReadableByteStreamControllerRespondInReadableState");function Vu(i,s){let u=i._pendingPullIntos.peek();Io(i),i._controlledReadableByteStream._state==="closed"?fg(i,u):dg(i,s,u),nr(i)}a(Vu,"ReadableByteStreamControllerRespondInternal");function Br(i){return i._pendingPullIntos.shift()}a(Br,"ReadableByteStreamControllerShiftPendingPullInto");function cg(i){let s=i._controlledReadableByteStream;return s._state!=="readable"||i._closeRequested||!i._started?!1:!!(Cu(s)&&Fi(s)>0||Do(s)&&Ju(s)>0||Gu(i)>0)}a(cg,"ReadableByteStreamControllerShouldCallPull");function zi(i){i._pullAlgorithm=void 0,i._cancelAlgorithm=void 0}a(zi,"ReadableByteStreamControllerClearAlgorithms");function Pn(i){let s=i._controlledReadableByteStream;if(!(i._closeRequested||s._state!=="readable")){if(i._queueTotalSize>0){i._closeRequested=!0;return}if(i._pendingPullIntos.length>0){let u=i._pendingPullIntos.peek();if(u.bytesFilled%u.elementSize!==0){let p=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Pe(i,p),p}}zi(i),qn(s)}}a(Pn,"ReadableByteStreamControllerClose");function Mi(i,s){let u=i._controlledReadableByteStream;if(i._closeRequested||u._state!=="readable")return;let{buffer:p,byteOffset:g,byteLength:b}=s;if(Lt(p))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");let y=gt(p);if(i._pendingPullIntos.length>0){let I=i._pendingPullIntos.peek();if(Lt(I.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");Io(i),I.buffer=gt(I.buffer),I.readerType==="none"&&ju(i,I)}if(Cu(u))if(lg(i),Fi(u)===0)qi(i,y,g,b);else{i._pendingPullIntos.length>0&&Br(i);let I=new Uint8Array(y,g,b);So(u,I,!1)}else Do(u)?(qi(i,y,g,b),Oo(i)):qi(i,y,g,b);nr(i)}a(Mi,"ReadableByteStreamControllerEnqueue");function Pe(i,s){let u=i._controlledReadableByteStream;u._state==="readable"&&(Uu(i),qt(i),zi(i),Tf(u,s))}a(Pe,"ReadableByteStreamControllerError");function Yu(i,s){let u=i._queue.shift();i._queueTotalSize-=u.byteLength,$u(i);let p=new Uint8Array(u.buffer,u.byteOffset,u.byteLength);s._chunkSteps(p)}a(Yu,"ReadableByteStreamControllerFillReadRequestFromQueue");function Fo(i){if(i._byobRequest===null&&i._pendingPullIntos.length>0){let s=i._pendingPullIntos.peek(),u=new Uint8Array(s.buffer,s.byteOffset+s.bytesFilled,s.byteLength-s.bytesFilled),p=Object.create(bt.prototype);pg(p,i,u),i._byobRequest=p}return i._byobRequest}a(Fo,"ReadableByteStreamControllerGetBYOBRequest");function Gu(i){let s=i._controlledReadableByteStream._state;return s==="errored"?null:s==="closed"?0:i._strategyHWM-i._queueTotalSize}a(Gu,"ReadableByteStreamControllerGetDesiredSize");function Ui(i,s){let u=i._pendingPullIntos.peek();if(i._controlledReadableByteStream._state==="closed"){if(s!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(s===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(u.bytesFilled+s>u.byteLength)throw new RangeError("bytesWritten out of range")}u.buffer=gt(u.buffer),Vu(i,s)}a(Ui,"ReadableByteStreamControllerRespond");function Wi(i,s){let u=i._pendingPullIntos.peek();if(i._controlledReadableByteStream._state==="closed"){if(s.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(s.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(u.byteOffset+u.bytesFilled!==s.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(u.bufferByteLength!==s.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(u.bytesFilled+s.byteLength>u.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");let g=s.byteLength;u.buffer=gt(s.buffer),Vu(i,g)}a(Wi,"ReadableByteStreamControllerRespondWithNewView");function Ku(i,s,u,p,g,b,y){s._controlledReadableByteStream=i,s._pullAgain=!1,s._pulling=!1,s._byobRequest=null,s._queue=s._queueTotalSize=void 0,qt(s),s._closeRequested=!1,s._started=!1,s._strategyHWM=b,s._pullAlgorithm=p,s._cancelAlgorithm=g,s._autoAllocateChunkSize=y,s._pendingPullIntos=new T,i._readableStreamController=s;let I=u();_(d(I),()=>(s._started=!0,nr(s),null),z=>(Pe(s,z),null))}a(Ku,"SetUpReadableByteStreamController");function hg(i,s,u){let p=Object.create(Ue.prototype),g,b,y;s.start!==void 0?g=a(()=>s.start(p),"startAlgorithm"):g=a(()=>{},"startAlgorithm"),s.pull!==void 0?b=a(()=>s.pull(p),"pullAlgorithm"):b=a(()=>d(void 0),"pullAlgorithm"),s.cancel!==void 0?y=a(z=>s.cancel(z),"cancelAlgorithm"):y=a(()=>d(void 0),"cancelAlgorithm");let I=s.autoAllocateChunkSize;if(I===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");Ku(i,p,g,b,y,u,I)}a(hg,"SetUpReadableByteStreamControllerFromUnderlyingSource");function pg(i,s,u){i._associatedReadableByteStreamController=s,i._view=u}a(pg,"SetUpReadableStreamBYOBRequest");function Bo(i){return new TypeError(`ReadableStreamBYOBRequest.prototype.${i} can only be used on a ReadableStreamBYOBRequest`)}a(Bo,"byobRequestBrandCheckException");function In(i){return new TypeError(`ReadableByteStreamController.prototype.${i} can only be used on a ReadableByteStreamController`)}a(In,"byteStreamControllerBrandCheckException");function mg(i,s){Je(i,s);let u=i==null?void 0:i.mode;return{mode:u===void 0?void 0:gg(u,`${s} has member 'mode' that`)}}a(mg,"convertReaderOptions");function gg(i,s){if(i=`${i}`,i!=="byob")throw new TypeError(`${s} '${i}' is not a valid enumeration value for ReadableStreamReaderMode`);return i}a(gg,"convertReadableStreamReaderMode");function bg(i,s){var u;Je(i,s);let p=(u=i==null?void 0:i.min)!==null&&u!==void 0?u:1;return{min:vo(p,`${s} has member 'min' that`)}}a(bg,"convertByobReadOptions");function Xu(i){return new tt(i)}a(Xu,"AcquireReadableStreamBYOBReader");function Qu(i,s){i._reader._readIntoRequests.push(s)}a(Qu,"ReadableStreamAddReadIntoRequest");function _g(i,s,u){let g=i._reader._readIntoRequests.shift();u?g._closeSteps(s):g._chunkSteps(s)}a(_g,"ReadableStreamFulfillReadIntoRequest");function Ju(i){return i._reader._readIntoRequests.length}a(Ju,"ReadableStreamGetNumReadIntoRequests");function Do(i){let s=i._reader;return!(s===void 0||!ir(s))}a(Do,"ReadableStreamHasBYOBReader");let ns=class ns{constructor(s){if(mt(s,1,"ReadableStreamBYOBReader"),wo(s,"First parameter"),Ut(s))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!rr(s._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");F(this,s),this._readIntoRequests=new T}get closed(){return ir(this)?this._closedPromise:h(Ni("closed"))}cancel(s=void 0){return ir(this)?this._ownerReadableStream===void 0?h(pt("cancel")):le(this,s):h(Ni("cancel"))}read(s,u={}){if(!ir(this))return h(Ni("read"));if(!ArrayBuffer.isView(s))return h(new TypeError("view must be an array buffer view"));if(s.byteLength===0)return h(new TypeError("view must have non-zero byteLength"));if(s.buffer.byteLength===0)return h(new TypeError("view's buffer must have non-zero byteLength"));if(Lt(s.buffer))return h(new TypeError("view's buffer has been detached"));let p;try{p=bg(u,"options")}catch(B){return h(B)}let g=p.min;if(g===0)return h(new TypeError("options.min must be greater than 0"));if(og(s)){if(g>s.byteLength)return h(new RangeError("options.min must be less than or equal to view's byteLength"))}else if(g>s.length)return h(new RangeError("options.min must be less than or equal to view's length"));if(this._ownerReadableStream===void 0)return h(pt("read from"));let b,y,I=m((B,M)=>{b=B,y=M});return ef(this,s,g,{_chunkSteps:a(B=>b({value:B,done:!1}),"_chunkSteps"),_closeSteps:a(B=>b({value:B,done:!0}),"_closeSteps"),_errorSteps:a(B=>y(B),"_errorSteps")}),I}releaseLock(){if(!ir(this))throw Ni("releaseLock");this._ownerReadableStream!==void 0&&yg(this)}};a(ns,"ReadableStreamBYOBReader");let tt=ns;Object.defineProperties(tt.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),o(tt.prototype.cancel,"cancel"),o(tt.prototype.read,"read"),o(tt.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(tt.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function ir(i){return!r(i)||!Object.prototype.hasOwnProperty.call(i,"_readIntoRequests")?!1:i instanceof tt}a(ir,"IsReadableStreamBYOBReader");function ef(i,s,u,p){let g=i._ownerReadableStream;g._disturbed=!0,g._state==="errored"?p._errorSteps(g._storedError):ug(g._readableStreamController,s,u,p)}a(ef,"ReadableStreamBYOBReaderRead");function yg(i){de(i);let s=new TypeError("Reader was released");tf(i,s)}a(yg,"ReadableStreamBYOBReaderRelease");function tf(i,s){let u=i._readIntoRequests;i._readIntoRequests=new T,u.forEach(p=>{p._errorSteps(s)})}a(tf,"ReadableStreamBYOBReaderErrorReadIntoRequests");function Ni(i){return new TypeError(`ReadableStreamBYOBReader.prototype.${i} can only be used on a ReadableStreamBYOBReader`)}a(Ni,"byobReaderBrandCheckException");function On(i,s){let{highWaterMark:u}=i;if(u===void 0)return s;if(Bu(u)||u<0)throw new RangeError("Invalid highWaterMark");return u}a(On,"ExtractHighWaterMark");function ji(i){let{size:s}=i;return s||(()=>1)}a(ji,"ExtractSizeAlgorithm");function Hi(i,s){Je(i,s);let u=i==null?void 0:i.highWaterMark,p=i==null?void 0:i.size;return{highWaterMark:u===void 0?void 0:yo(u),size:p===void 0?void 0:vg(p,`${s} has member 'size' that`)}}a(Hi,"convertQueuingStrategy");function vg(i,s){return Ce(i,s),u=>yo(i(u))}a(vg,"convertQueuingStrategySize");function wg(i,s){Je(i,s);let u=i==null?void 0:i.abort,p=i==null?void 0:i.close,g=i==null?void 0:i.start,b=i==null?void 0:i.type,y=i==null?void 0:i.write;return{abort:u===void 0?void 0:Sg(u,i,`${s} has member 'abort' that`),close:p===void 0?void 0:Rg(p,i,`${s} has member 'close' that`),start:g===void 0?void 0:Tg(g,i,`${s} has member 'start' that`),write:y===void 0?void 0:xg(y,i,`${s} has member 'write' that`),type:b}}a(wg,"convertUnderlyingSink");function Sg(i,s,u){return Ce(i,u),p=>C(i,s,[p])}a(Sg,"convertUnderlyingSinkAbortCallback");function Rg(i,s,u){return Ce(i,u),()=>C(i,s,[])}a(Rg,"convertUnderlyingSinkCloseCallback");function Tg(i,s,u){return Ce(i,u),p=>A(i,s,[p])}a(Tg,"convertUnderlyingSinkStartCallback");function xg(i,s,u){return Ce(i,u),(p,g)=>C(i,s,[p,g])}a(xg,"convertUnderlyingSinkWriteCallback");function rf(i,s){if(!Dr(i))throw new TypeError(`${s} is not a WritableStream.`)}a(rf,"assertWritableStream");function Ag(i){if(typeof i!="object"||i===null)return!1;try{return typeof i.aborted=="boolean"}catch{return!1}}a(Ag,"isAbortSignal");let Eg=typeof AbortController=="function";function kg(){if(Eg)return new AbortController}a(kg,"createAbortController");let is=class is{constructor(s={},u={}){s===void 0?s=null:Au(s,"First parameter");let p=Hi(u,"Second parameter"),g=wg(s,"First parameter");if(af(this),g.type!==void 0)throw new RangeError("Invalid type is specified");let y=ji(p),I=On(p,1);Ng(this,g,I,y)}get locked(){if(!Dr(this))throw Gi("locked");return Lr(this)}abort(s=void 0){return Dr(this)?Lr(this)?h(new TypeError("Cannot abort a stream that already has a writer")):Zi(this,s):h(Gi("abort"))}close(){return Dr(this)?Lr(this)?h(new TypeError("Cannot close a stream that already has a writer")):nt(this)?h(new TypeError("Cannot close an already-closing stream")):of(this):h(Gi("close"))}getWriter(){if(!Dr(this))throw Gi("getWriter");return nf(this)}};a(is,"WritableStream");let rt=is;Object.defineProperties(rt.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),o(rt.prototype.abort,"abort"),o(rt.prototype.close,"close"),o(rt.prototype.getWriter,"getWriter"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(rt.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});function nf(i){return new We(i)}a(nf,"AcquireWritableStreamDefaultWriter");function Cg(i,s,u,p,g=1,b=()=>1){let y=Object.create(rt.prototype);af(y);let I=Object.create(zt.prototype);return cf(y,I,i,s,u,p,g,b),y}a(Cg,"CreateWritableStream");function af(i){i._state="writable",i._storedError=void 0,i._writer=void 0,i._writableStreamController=void 0,i._writeRequests=new T,i._inFlightWriteRequest=void 0,i._closeRequest=void 0,i._inFlightCloseRequest=void 0,i._pendingAbortRequest=void 0,i._backpressure=!1}a(af,"InitializeWritableStream");function Dr(i){return!r(i)||!Object.prototype.hasOwnProperty.call(i,"_writableStreamController")?!1:i instanceof rt}a(Dr,"IsWritableStream");function Lr(i){return i._writer!==void 0}a(Lr,"IsWritableStreamLocked");function Zi(i,s){var u;if(i._state==="closed"||i._state==="errored")return d(void 0);i._writableStreamController._abortReason=s,(u=i._writableStreamController._abortController)===null||u===void 0||u.abort(s);let p=i._state;if(p==="closed"||p==="errored")return d(void 0);if(i._pendingAbortRequest!==void 0)return i._pendingAbortRequest._promise;let g=!1;p==="erroring"&&(g=!0,s=void 0);let b=m((y,I)=>{i._pendingAbortRequest={_promise:void 0,_resolve:y,_reject:I,_reason:s,_wasAlreadyErroring:g}});return i._pendingAbortRequest._promise=b,g||qo(i,s),b}a(Zi,"WritableStreamAbort");function of(i){let s=i._state;if(s==="closed"||s==="errored")return h(new TypeError(`The stream (in ${s} state) is not in the writable state and cannot be closed`));let u=m((g,b)=>{let y={_resolve:g,_reject:b};i._closeRequest=y}),p=i._writer;return p!==void 0&&i._backpressure&&s==="writable"&&Zo(p),jg(i._writableStreamController),u}a(of,"WritableStreamClose");function Pg(i){return m((u,p)=>{let g={_resolve:u,_reject:p};i._writeRequests.push(g)})}a(Pg,"WritableStreamAddWriteRequest");function Lo(i,s){if(i._state==="writable"){qo(i,s);return}zo(i)}a(Lo,"WritableStreamDealWithRejection");function qo(i,s){let u=i._writableStreamController;i._state="erroring",i._storedError=s;let p=i._writer;p!==void 0&&lf(p,s),!Dg(i)&&u._started&&zo(i)}a(qo,"WritableStreamStartErroring");function zo(i){i._state="errored",i._writableStreamController[q]();let s=i._storedError;if(i._writeRequests.forEach(g=>{g._reject(s)}),i._writeRequests=new T,i._pendingAbortRequest===void 0){$i(i);return}let u=i._pendingAbortRequest;if(i._pendingAbortRequest=void 0,u._wasAlreadyErroring){u._reject(s),$i(i);return}let p=i._writableStreamController[O](u._reason);_(p,()=>(u._resolve(),$i(i),null),g=>(u._reject(g),$i(i),null))}a(zo,"WritableStreamFinishErroring");function Ig(i){i._inFlightWriteRequest._resolve(void 0),i._inFlightWriteRequest=void 0}a(Ig,"WritableStreamFinishInFlightWrite");function Og(i,s){i._inFlightWriteRequest._reject(s),i._inFlightWriteRequest=void 0,Lo(i,s)}a(Og,"WritableStreamFinishInFlightWriteWithError");function Fg(i){i._inFlightCloseRequest._resolve(void 0),i._inFlightCloseRequest=void 0,i._state==="erroring"&&(i._storedError=void 0,i._pendingAbortRequest!==void 0&&(i._pendingAbortRequest._resolve(),i._pendingAbortRequest=void 0)),i._state="closed";let u=i._writer;u!==void 0&&gf(u)}a(Fg,"WritableStreamFinishInFlightClose");function Bg(i,s){i._inFlightCloseRequest._reject(s),i._inFlightCloseRequest=void 0,i._pendingAbortRequest!==void 0&&(i._pendingAbortRequest._reject(s),i._pendingAbortRequest=void 0),Lo(i,s)}a(Bg,"WritableStreamFinishInFlightCloseWithError");function nt(i){return!(i._closeRequest===void 0&&i._inFlightCloseRequest===void 0)}a(nt,"WritableStreamCloseQueuedOrInFlight");function Dg(i){return!(i._inFlightWriteRequest===void 0&&i._inFlightCloseRequest===void 0)}a(Dg,"WritableStreamHasOperationMarkedInFlight");function Lg(i){i._inFlightCloseRequest=i._closeRequest,i._closeRequest=void 0}a(Lg,"WritableStreamMarkCloseRequestInFlight");function qg(i){i._inFlightWriteRequest=i._writeRequests.shift()}a(qg,"WritableStreamMarkFirstWriteRequestInFlight");function $i(i){i._closeRequest!==void 0&&(i._closeRequest._reject(i._storedError),i._closeRequest=void 0);let s=i._writer;s!==void 0&&jo(s,i._storedError)}a($i,"WritableStreamRejectCloseAndClosedPromiseIfNeeded");function Mo(i,s){let u=i._writer;u!==void 0&&s!==i._backpressure&&(s?Kg(u):Zo(u)),i._backpressure=s}a(Mo,"WritableStreamUpdateBackpressure");let as=class as{constructor(s){if(mt(s,1,"WritableStreamDefaultWriter"),rf(s,"First parameter"),Lr(s))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=s,s._writer=this;let u=s._state;if(u==="writable")!nt(s)&&s._backpressure?Xi(this):bf(this),Ki(this);else if(u==="erroring")Ho(this,s._storedError),Ki(this);else if(u==="closed")bf(this),Yg(this);else{let p=s._storedError;Ho(this,p),mf(this,p)}}get closed(){return ar(this)?this._closedPromise:h(or("closed"))}get desiredSize(){if(!ar(this))throw or("desiredSize");if(this._ownerWritableStream===void 0)throw Bn("desiredSize");return Wg(this)}get ready(){return ar(this)?this._readyPromise:h(or("ready"))}abort(s=void 0){return ar(this)?this._ownerWritableStream===void 0?h(Bn("abort")):zg(this,s):h(or("abort"))}close(){if(!ar(this))return h(or("close"));let s=this._ownerWritableStream;return s===void 0?h(Bn("close")):nt(s)?h(new TypeError("Cannot close an already-closing stream")):sf(this)}releaseLock(){if(!ar(this))throw or("releaseLock");this._ownerWritableStream!==void 0&&uf(this)}write(s=void 0){return ar(this)?this._ownerWritableStream===void 0?h(Bn("write to")):ff(this,s):h(or("write"))}};a(as,"WritableStreamDefaultWriter");let We=as;Object.defineProperties(We.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),o(We.prototype.abort,"abort"),o(We.prototype.close,"close"),o(We.prototype.releaseLock,"releaseLock"),o(We.prototype.write,"write"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(We.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function ar(i){return!r(i)||!Object.prototype.hasOwnProperty.call(i,"_ownerWritableStream")?!1:i instanceof We}a(ar,"IsWritableStreamDefaultWriter");function zg(i,s){let u=i._ownerWritableStream;return Zi(u,s)}a(zg,"WritableStreamDefaultWriterAbort");function sf(i){let s=i._ownerWritableStream;return of(s)}a(sf,"WritableStreamDefaultWriterClose");function Mg(i){let s=i._ownerWritableStream,u=s._state;return nt(s)||u==="closed"?d(void 0):u==="errored"?h(s._storedError):sf(i)}a(Mg,"WritableStreamDefaultWriterCloseWithErrorPropagation");function Ug(i,s){i._closedPromiseState==="pending"?jo(i,s):Gg(i,s)}a(Ug,"WritableStreamDefaultWriterEnsureClosedPromiseRejected");function lf(i,s){i._readyPromiseState==="pending"?_f(i,s):Xg(i,s)}a(lf,"WritableStreamDefaultWriterEnsureReadyPromiseRejected");function Wg(i){let s=i._ownerWritableStream,u=s._state;return u==="errored"||u==="erroring"?null:u==="closed"?0:hf(s._writableStreamController)}a(Wg,"WritableStreamDefaultWriterGetDesiredSize");function uf(i){let s=i._ownerWritableStream,u=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");lf(i,u),Ug(i,u),s._writer=void 0,i._ownerWritableStream=void 0}a(uf,"WritableStreamDefaultWriterRelease");function ff(i,s){let u=i._ownerWritableStream,p=u._writableStreamController,g=Hg(p,s);if(u!==i._ownerWritableStream)return h(Bn("write to"));let b=u._state;if(b==="errored")return h(u._storedError);if(nt(u)||b==="closed")return h(new TypeError("The stream is closing or closed and cannot be written to"));if(b==="erroring")return h(u._storedError);let y=Pg(u);return Zg(p,s,g),y}a(ff,"WritableStreamDefaultWriterWrite");let df={},os=class os{constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!Uo(this))throw No("abortReason");return this._abortReason}get signal(){if(!Uo(this))throw No("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(s=void 0){if(!Uo(this))throw No("error");this._controlledWritableStream._state==="writable"&&pf(this,s)}[O](s){let u=this._abortAlgorithm(s);return Vi(this),u}[q](){qt(this)}};a(os,"WritableStreamDefaultController");let zt=os;Object.defineProperties(zt.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(zt.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function Uo(i){return!r(i)||!Object.prototype.hasOwnProperty.call(i,"_controlledWritableStream")?!1:i instanceof zt}a(Uo,"IsWritableStreamDefaultController");function cf(i,s,u,p,g,b,y,I){s._controlledWritableStream=i,i._writableStreamController=s,s._queue=void 0,s._queueTotalSize=void 0,qt(s),s._abortReason=void 0,s._abortController=kg(),s._started=!1,s._strategySizeAlgorithm=I,s._strategyHWM=y,s._writeAlgorithm=p,s._closeAlgorithm=g,s._abortAlgorithm=b;let z=Wo(s);Mo(i,z);let B=u(),M=d(B);_(M,()=>(s._started=!0,Yi(s),null),W=>(s._started=!0,Lo(i,W),null))}a(cf,"SetUpWritableStreamDefaultController");function Ng(i,s,u,p){let g=Object.create(zt.prototype),b,y,I,z;s.start!==void 0?b=a(()=>s.start(g),"startAlgorithm"):b=a(()=>{},"startAlgorithm"),s.write!==void 0?y=a(B=>s.write(B,g),"writeAlgorithm"):y=a(()=>d(void 0),"writeAlgorithm"),s.close!==void 0?I=a(()=>s.close(),"closeAlgorithm"):I=a(()=>d(void 0),"closeAlgorithm"),s.abort!==void 0?z=a(B=>s.abort(B),"abortAlgorithm"):z=a(()=>d(void 0),"abortAlgorithm"),cf(i,g,b,y,I,z,u,p)}a(Ng,"SetUpWritableStreamDefaultControllerFromUnderlyingSink");function Vi(i){i._writeAlgorithm=void 0,i._closeAlgorithm=void 0,i._abortAlgorithm=void 0,i._strategySizeAlgorithm=void 0}a(Vi,"WritableStreamDefaultControllerClearAlgorithms");function jg(i){ko(i,df,0),Yi(i)}a(jg,"WritableStreamDefaultControllerClose");function Hg(i,s){try{return i._strategySizeAlgorithm(s)}catch(u){return Fn(i,u),1}}a(Hg,"WritableStreamDefaultControllerGetChunkSize");function hf(i){return i._strategyHWM-i._queueTotalSize}a(hf,"WritableStreamDefaultControllerGetDesiredSize");function Zg(i,s,u){try{ko(i,s,u)}catch(g){Fn(i,g);return}let p=i._controlledWritableStream;if(!nt(p)&&p._state==="writable"){let g=Wo(i);Mo(p,g)}Yi(i)}a(Zg,"WritableStreamDefaultControllerWrite");function Yi(i){let s=i._controlledWritableStream;if(!i._started||s._inFlightWriteRequest!==void 0)return;if(s._state==="erroring"){zo(s);return}if(i._queue.length===0)return;let p=ag(i);p===df?$g(i):Vg(i,p)}a(Yi,"WritableStreamDefaultControllerAdvanceQueueIfNeeded");function Fn(i,s){i._controlledWritableStream._state==="writable"&&pf(i,s)}a(Fn,"WritableStreamDefaultControllerErrorIfNeeded");function $g(i){let s=i._controlledWritableStream;Lg(s),Eo(i);let u=i._closeAlgorithm();Vi(i),_(u,()=>(Fg(s),null),p=>(Bg(s,p),null))}a($g,"WritableStreamDefaultControllerProcessClose");function Vg(i,s){let u=i._controlledWritableStream;qg(u);let p=i._writeAlgorithm(s);_(p,()=>{Ig(u);let g=u._state;if(Eo(i),!nt(u)&&g==="writable"){let b=Wo(i);Mo(u,b)}return Yi(i),null},g=>(u._state==="writable"&&Vi(i),Og(u,g),null))}a(Vg,"WritableStreamDefaultControllerProcessWrite");function Wo(i){return hf(i)<=0}a(Wo,"WritableStreamDefaultControllerGetBackpressure");function pf(i,s){let u=i._controlledWritableStream;Vi(i),qo(u,s)}a(pf,"WritableStreamDefaultControllerError");function Gi(i){return new TypeError(`WritableStream.prototype.${i} can only be used on a WritableStream`)}a(Gi,"streamBrandCheckException$2");function No(i){return new TypeError(`WritableStreamDefaultController.prototype.${i} can only be used on a WritableStreamDefaultController`)}a(No,"defaultControllerBrandCheckException$2");function or(i){return new TypeError(`WritableStreamDefaultWriter.prototype.${i} can only be used on a WritableStreamDefaultWriter`)}a(or,"defaultWriterBrandCheckException");function Bn(i){return new TypeError("Cannot "+i+" a stream using a released writer")}a(Bn,"defaultWriterLockException");function Ki(i){i._closedPromise=m((s,u)=>{i._closedPromise_resolve=s,i._closedPromise_reject=u,i._closedPromiseState="pending"})}a(Ki,"defaultWriterClosedPromiseInitialize");function mf(i,s){Ki(i),jo(i,s)}a(mf,"defaultWriterClosedPromiseInitializeAsRejected");function Yg(i){Ki(i),gf(i)}a(Yg,"defaultWriterClosedPromiseInitializeAsResolved");function jo(i,s){i._closedPromise_reject!==void 0&&(E(i._closedPromise),i._closedPromise_reject(s),i._closedPromise_resolve=void 0,i._closedPromise_reject=void 0,i._closedPromiseState="rejected")}a(jo,"defaultWriterClosedPromiseReject");function Gg(i,s){mf(i,s)}a(Gg,"defaultWriterClosedPromiseResetToRejected");function gf(i){i._closedPromise_resolve!==void 0&&(i._closedPromise_resolve(void 0),i._closedPromise_resolve=void 0,i._closedPromise_reject=void 0,i._closedPromiseState="resolved")}a(gf,"defaultWriterClosedPromiseResolve");function Xi(i){i._readyPromise=m((s,u)=>{i._readyPromise_resolve=s,i._readyPromise_reject=u}),i._readyPromiseState="pending"}a(Xi,"defaultWriterReadyPromiseInitialize");function Ho(i,s){Xi(i),_f(i,s)}a(Ho,"defaultWriterReadyPromiseInitializeAsRejected");function bf(i){Xi(i),Zo(i)}a(bf,"defaultWriterReadyPromiseInitializeAsResolved");function _f(i,s){i._readyPromise_reject!==void 0&&(E(i._readyPromise),i._readyPromise_reject(s),i._readyPromise_resolve=void 0,i._readyPromise_reject=void 0,i._readyPromiseState="rejected")}a(_f,"defaultWriterReadyPromiseReject");function Kg(i){Xi(i)}a(Kg,"defaultWriterReadyPromiseReset");function Xg(i,s){Ho(i,s)}a(Xg,"defaultWriterReadyPromiseResetToRejected");function Zo(i){i._readyPromise_resolve!==void 0&&(i._readyPromise_resolve(void 0),i._readyPromise_resolve=void 0,i._readyPromise_reject=void 0,i._readyPromiseState="fulfilled")}a(Zo,"defaultWriterReadyPromiseResolve");function Qg(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof global<"u")return global}a(Qg,"getGlobals");let $o=Qg();function Jg(i){if(!(typeof i=="function"||typeof i=="object")||i.name!=="DOMException")return!1;try{return new i,!0}catch{return!1}}a(Jg,"isDOMExceptionConstructor");function eb(){let i=$o==null?void 0:$o.DOMException;return Jg(i)?i:void 0}a(eb,"getFromGlobal");function tb(){let i=a(function(u,p){this.message=u||"",this.name=p||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)},"DOMException");return o(i,"DOMException"),i.prototype=Object.create(Error.prototype),Object.defineProperty(i.prototype,"constructor",{value:i,writable:!0,configurable:!0}),i}a(tb,"createPolyfill");let rb=eb()||tb();function yf(i,s,u,p,g,b){let y=Fr(i),I=nf(s);i._disturbed=!0;let z=!1,B=d(void 0);return m((M,W)=>{let Y;if(b!==void 0){if(Y=a(()=>{let L=b.reason!==void 0?b.reason:new rb("Aborted","AbortError"),N=[];p||N.push(()=>s._state==="writable"?Zi(s,L):d(void 0)),g||N.push(()=>i._state==="readable"?He(i,L):d(void 0)),be(()=>Promise.all(N.map(G=>G())),!0,L)},"abortAlgorithm"),b.aborted){Y();return}b.addEventListener("abort",Y)}function Ze(){return m((L,N)=>{function G(we){we?L():x(jr(),G,N)}a(G,"next"),G(!1)})}a(Ze,"pipeLoop");function jr(){return z?d(!0):x(I._readyPromise,()=>m((L,N)=>{kn(y,{_chunkSteps:a(G=>{B=x(ff(I,G),void 0,t),L(!1)},"_chunkSteps"),_closeSteps:a(()=>L(!0),"_closeSteps"),_errorSteps:N})}))}if(a(jr,"pipeStep"),_t(i,y._closedPromise,L=>(p?Ie(!0,L):be(()=>Zi(s,L),!0,L),null)),_t(s,I._closedPromise,L=>(g?Ie(!0,L):be(()=>He(i,L),!0,L),null)),pe(i,y._closedPromise,()=>(u?Ie():be(()=>Mg(I)),null)),nt(s)||s._state==="closed"){let L=new TypeError("the destination writable stream closed before all data could be piped to it");g?Ie(!0,L):be(()=>He(i,L),!0,L)}E(Ze());function Wt(){let L=B;return x(B,()=>L!==B?Wt():void 0)}a(Wt,"waitForWritesToFinish");function _t(L,N,G){L._state==="errored"?G(L._storedError):v(N,G)}a(_t,"isOrBecomesErrored");function pe(L,N,G){L._state==="closed"?G():w(N,G)}a(pe,"isOrBecomesClosed");function be(L,N,G){if(z)return;z=!0,s._state==="writable"&&!nt(s)?w(Wt(),we):we();function we(){return _(L(),()=>yt(N,G),Hr=>yt(!0,Hr)),null}a(we,"doTheRest")}a(be,"shutdownWithAction");function Ie(L,N){z||(z=!0,s._state==="writable"&&!nt(s)?w(Wt(),()=>yt(L,N)):yt(L,N))}a(Ie,"shutdown");function yt(L,N){return uf(I),de(y),b!==void 0&&b.removeEventListener("abort",Y),L?W(N):M(void 0),null}a(yt,"finalize")})}a(yf,"ReadableStreamPipeTo");let ss=class ss{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Qi(this))throw ea("desiredSize");return Vo(this)}close(){if(!Qi(this))throw ea("close");if(!zr(this))throw new TypeError("The stream is not in a state that permits close");sr(this)}enqueue(s=void 0){if(!Qi(this))throw ea("enqueue");if(!zr(this))throw new TypeError("The stream is not in a state that permits enqueue");return qr(this,s)}error(s=void 0){if(!Qi(this))throw ea("error");je(this,s)}[D](s){qt(this);let u=this._cancelAlgorithm(s);return Ji(this),u}[U](s){let u=this._controlledReadableStream;if(this._queue.length>0){let p=Eo(this);this._closeRequested&&this._queue.length===0?(Ji(this),qn(u)):Dn(this),s._chunkSteps(p)}else ku(u,s),Dn(this)}[$](){}};a(ss,"ReadableStreamDefaultController");let Ne=ss;Object.defineProperties(Ne.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),o(Ne.prototype.close,"close"),o(Ne.prototype.enqueue,"enqueue"),o(Ne.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Ne.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function Qi(i){return!r(i)||!Object.prototype.hasOwnProperty.call(i,"_controlledReadableStream")?!1:i instanceof Ne}a(Qi,"IsReadableStreamDefaultController");function Dn(i){if(!vf(i))return;if(i._pulling){i._pullAgain=!0;return}i._pulling=!0;let u=i._pullAlgorithm();_(u,()=>(i._pulling=!1,i._pullAgain&&(i._pullAgain=!1,Dn(i)),null),p=>(je(i,p),null))}a(Dn,"ReadableStreamDefaultControllerCallPullIfNeeded");function vf(i){let s=i._controlledReadableStream;return!zr(i)||!i._started?!1:!!(Ut(s)&&Fi(s)>0||Vo(i)>0)}a(vf,"ReadableStreamDefaultControllerShouldCallPull");function Ji(i){i._pullAlgorithm=void 0,i._cancelAlgorithm=void 0,i._strategySizeAlgorithm=void 0}a(Ji,"ReadableStreamDefaultControllerClearAlgorithms");function sr(i){if(!zr(i))return;let s=i._controlledReadableStream;i._closeRequested=!0,i._queue.length===0&&(Ji(i),qn(s))}a(sr,"ReadableStreamDefaultControllerClose");function qr(i,s){if(!zr(i))return;let u=i._controlledReadableStream;if(Ut(u)&&Fi(u)>0)So(u,s,!1);else{let p;try{p=i._strategySizeAlgorithm(s)}catch(g){throw je(i,g),g}try{ko(i,s,p)}catch(g){throw je(i,g),g}}Dn(i)}a(qr,"ReadableStreamDefaultControllerEnqueue");function je(i,s){let u=i._controlledReadableStream;u._state==="readable"&&(qt(i),Ji(i),Tf(u,s))}a(je,"ReadableStreamDefaultControllerError");function Vo(i){let s=i._controlledReadableStream._state;return s==="errored"?null:s==="closed"?0:i._strategyHWM-i._queueTotalSize}a(Vo,"ReadableStreamDefaultControllerGetDesiredSize");function nb(i){return!vf(i)}a(nb,"ReadableStreamDefaultControllerHasBackpressure");function zr(i){let s=i._controlledReadableStream._state;return!i._closeRequested&&s==="readable"}a(zr,"ReadableStreamDefaultControllerCanCloseOrEnqueue");function wf(i,s,u,p,g,b,y){s._controlledReadableStream=i,s._queue=void 0,s._queueTotalSize=void 0,qt(s),s._started=!1,s._closeRequested=!1,s._pullAgain=!1,s._pulling=!1,s._strategySizeAlgorithm=y,s._strategyHWM=b,s._pullAlgorithm=p,s._cancelAlgorithm=g,i._readableStreamController=s;let I=u();_(d(I),()=>(s._started=!0,Dn(s),null),z=>(je(s,z),null))}a(wf,"SetUpReadableStreamDefaultController");function ib(i,s,u,p){let g=Object.create(Ne.prototype),b,y,I;s.start!==void 0?b=a(()=>s.start(g),"startAlgorithm"):b=a(()=>{},"startAlgorithm"),s.pull!==void 0?y=a(()=>s.pull(g),"pullAlgorithm"):y=a(()=>d(void 0),"pullAlgorithm"),s.cancel!==void 0?I=a(z=>s.cancel(z),"cancelAlgorithm"):I=a(()=>d(void 0),"cancelAlgorithm"),wf(i,g,b,y,I,u,p)}a(ib,"SetUpReadableStreamDefaultControllerFromUnderlyingSource");function ea(i){return new TypeError(`ReadableStreamDefaultController.prototype.${i} can only be used on a ReadableStreamDefaultController`)}a(ea,"defaultControllerBrandCheckException$1");function ab(i,s){return rr(i._readableStreamController)?sb(i):ob(i)}a(ab,"ReadableStreamTee");function ob(i,s){let u=Fr(i),p=!1,g=!1,b=!1,y=!1,I,z,B,M,W,Y=m(pe=>{W=pe});function Ze(){return p?(g=!0,d(void 0)):(p=!0,kn(u,{_chunkSteps:a(be=>{S(()=>{g=!1;let Ie=be,yt=be;b||qr(B._readableStreamController,Ie),y||qr(M._readableStreamController,yt),p=!1,g&&Ze()})},"_chunkSteps"),_closeSteps:a(()=>{p=!1,b||sr(B._readableStreamController),y||sr(M._readableStreamController),(!b||!y)&&W(void 0)},"_closeSteps"),_errorSteps:a(()=>{p=!1},"_errorSteps")}),d(void 0))}a(Ze,"pullAlgorithm");function jr(pe){if(b=!0,I=pe,y){let be=Cn([I,z]),Ie=He(i,be);W(Ie)}return Y}a(jr,"cancel1Algorithm");function Wt(pe){if(y=!0,z=pe,b){let be=Cn([I,z]),Ie=He(i,be);W(Ie)}return Y}a(Wt,"cancel2Algorithm");function _t(){}return a(_t,"startAlgorithm"),B=Ln(_t,Ze,jr),M=Ln(_t,Ze,Wt),v(u._closedPromise,pe=>(je(B._readableStreamController,pe),je(M._readableStreamController,pe),(!b||!y)&&W(void 0),null)),[B,M]}a(ob,"ReadableStreamDefaultTee");function sb(i){let s=Fr(i),u=!1,p=!1,g=!1,b=!1,y=!1,I,z,B,M,W,Y=m(L=>{W=L});function Ze(L){v(L._closedPromise,N=>(L!==s||(Pe(B._readableStreamController,N),Pe(M._readableStreamController,N),(!b||!y)&&W(void 0)),null))}a(Ze,"forwardReaderError");function jr(){ir(s)&&(de(s),s=Fr(i),Ze(s)),kn(s,{_chunkSteps:a(N=>{S(()=>{p=!1,g=!1;let G=N,we=N;if(!b&&!y)try{we=zu(N)}catch(Hr){Pe(B._readableStreamController,Hr),Pe(M._readableStreamController,Hr),W(He(i,Hr));return}b||Mi(B._readableStreamController,G),y||Mi(M._readableStreamController,we),u=!1,p?_t():g&&pe()})},"_chunkSteps"),_closeSteps:a(()=>{u=!1,b||Pn(B._readableStreamController),y||Pn(M._readableStreamController),B._readableStreamController._pendingPullIntos.length>0&&Ui(B._readableStreamController,0),M._readableStreamController._pendingPullIntos.length>0&&Ui(M._readableStreamController,0),(!b||!y)&&W(void 0)},"_closeSteps"),_errorSteps:a(()=>{u=!1},"_errorSteps")})}a(jr,"pullWithDefaultReader");function Wt(L,N){Dt(s)&&(de(s),s=Xu(i),Ze(s));let G=N?M:B,we=N?B:M;ef(s,L,1,{_chunkSteps:a(Zr=>{S(()=>{p=!1,g=!1;let $r=N?y:b;if(N?b:y)$r||Wi(G._readableStreamController,Zr);else{let qf;try{qf=zu(Zr)}catch(hs){Pe(G._readableStreamController,hs),Pe(we._readableStreamController,hs),W(He(i,hs));return}$r||Wi(G._readableStreamController,Zr),Mi(we._readableStreamController,qf)}u=!1,p?_t():g&&pe()})},"_chunkSteps"),_closeSteps:a(Zr=>{u=!1;let $r=N?y:b,aa=N?b:y;$r||Pn(G._readableStreamController),aa||Pn(we._readableStreamController),Zr!==void 0&&($r||Wi(G._readableStreamController,Zr),!aa&&we._readableStreamController._pendingPullIntos.length>0&&Ui(we._readableStreamController,0)),(!$r||!aa)&&W(void 0)},"_closeSteps"),_errorSteps:a(()=>{u=!1},"_errorSteps")})}a(Wt,"pullWithBYOBReader");function _t(){if(u)return p=!0,d(void 0);u=!0;let L=Fo(B._readableStreamController);return L===null?jr():Wt(L._view,!1),d(void 0)}a(_t,"pull1Algorithm");function pe(){if(u)return g=!0,d(void 0);u=!0;let L=Fo(M._readableStreamController);return L===null?jr():Wt(L._view,!0),d(void 0)}a(pe,"pull2Algorithm");function be(L){if(b=!0,I=L,y){let N=Cn([I,z]),G=He(i,N);W(G)}return Y}a(be,"cancel1Algorithm");function Ie(L){if(y=!0,z=L,b){let N=Cn([I,z]),G=He(i,N);W(G)}return Y}a(Ie,"cancel2Algorithm");function yt(){}return a(yt,"startAlgorithm"),B=Rf(yt,_t,be),M=Rf(yt,pe,Ie),Ze(s),[B,M]}a(sb,"ReadableByteStreamTee");function lb(i){return r(i)&&typeof i.getReader<"u"}a(lb,"isReadableStreamLike");function ub(i){return lb(i)?db(i.getReader()):fb(i)}a(ub,"ReadableStreamFrom");function fb(i){let s,u=qu(i,"async"),p=t;function g(){let y;try{y=tg(u)}catch(z){return h(z)}let I=d(y);return k(I,z=>{if(!r(z))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(rg(z))sr(s._readableStreamController);else{let M=ng(z);qr(s._readableStreamController,M)}})}a(g,"pullAlgorithm");function b(y){let I=u.iterator,z;try{z=Li(I,"return")}catch(W){return h(W)}if(z===void 0)return d(void 0);let B;try{B=A(z,I,[y])}catch(W){return h(W)}let M=d(B);return k(M,W=>{if(!r(W))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})}return a(b,"cancelAlgorithm"),s=Ln(p,g,b,0),s}a(fb,"ReadableStreamFromIterable");function db(i){let s,u=t;function p(){let b;try{b=i.read()}catch(y){return h(y)}return k(b,y=>{if(!r(y))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if(y.done)sr(s._readableStreamController);else{let I=y.value;qr(s._readableStreamController,I)}})}a(p,"pullAlgorithm");function g(b){try{return d(i.cancel(b))}catch(y){return h(y)}}return a(g,"cancelAlgorithm"),s=Ln(u,p,g,0),s}a(db,"ReadableStreamFromDefaultReader");function cb(i,s){Je(i,s);let u=i,p=u==null?void 0:u.autoAllocateChunkSize,g=u==null?void 0:u.cancel,b=u==null?void 0:u.pull,y=u==null?void 0:u.start,I=u==null?void 0:u.type;return{autoAllocateChunkSize:p===void 0?void 0:vo(p,`${s} has member 'autoAllocateChunkSize' that`),cancel:g===void 0?void 0:hb(g,u,`${s} has member 'cancel' that`),pull:b===void 0?void 0:pb(b,u,`${s} has member 'pull' that`),start:y===void 0?void 0:mb(y,u,`${s} has member 'start' that`),type:I===void 0?void 0:gb(I,`${s} has member 'type' that`)}}a(cb,"convertUnderlyingDefaultOrByteSource");function hb(i,s,u){return Ce(i,u),p=>C(i,s,[p])}a(hb,"convertUnderlyingSourceCancelCallback");function pb(i,s,u){return Ce(i,u),p=>C(i,s,[p])}a(pb,"convertUnderlyingSourcePullCallback");function mb(i,s,u){return Ce(i,u),p=>A(i,s,[p])}a(mb,"convertUnderlyingSourceStartCallback");function gb(i,s){if(i=`${i}`,i!=="bytes")throw new TypeError(`${s} '${i}' is not a valid enumeration value for ReadableStreamType`);return i}a(gb,"convertReadableStreamType");function bb(i,s){return Je(i,s),{preventCancel:!!(i==null?void 0:i.preventCancel)}}a(bb,"convertIteratorOptions");function Sf(i,s){Je(i,s);let u=i==null?void 0:i.preventAbort,p=i==null?void 0:i.preventCancel,g=i==null?void 0:i.preventClose,b=i==null?void 0:i.signal;return b!==void 0&&_b(b,`${s} has member 'signal' that`),{preventAbort:!!u,preventCancel:!!p,preventClose:!!g,signal:b}}a(Sf,"convertPipeOptions");function _b(i,s){if(!Ag(i))throw new TypeError(`${s} is not an AbortSignal.`)}a(_b,"assertAbortSignal");function yb(i,s){Je(i,s);let u=i==null?void 0:i.readable;_o(u,"readable","ReadableWritablePair"),wo(u,`${s} has member 'readable' that`);let p=i==null?void 0:i.writable;return _o(p,"writable","ReadableWritablePair"),rf(p,`${s} has member 'writable' that`),{readable:u,writable:p}}a(yb,"convertReadableWritablePair");let ls=class ls{constructor(s={},u={}){s===void 0?s=null:Au(s,"First parameter");let p=Hi(u,"Second parameter"),g=cb(s,"First parameter");if(Yo(this),g.type==="bytes"){if(p.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");let b=On(p,0);hg(this,g,b)}else{let b=ji(p),y=On(p,1);ib(this,g,y,b)}}get locked(){if(!Mt(this))throw lr("locked");return Ut(this)}cancel(s=void 0){return Mt(this)?Ut(this)?h(new TypeError("Cannot cancel a stream that already has a reader")):He(this,s):h(lr("cancel"))}getReader(s=void 0){if(!Mt(this))throw lr("getReader");return mg(s,"First parameter").mode===void 0?Fr(this):Xu(this)}pipeThrough(s,u={}){if(!Mt(this))throw lr("pipeThrough");mt(s,1,"pipeThrough");let p=yb(s,"First parameter"),g=Sf(u,"Second parameter");if(Ut(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(Lr(p.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");let b=yf(this,p.writable,g.preventClose,g.preventAbort,g.preventCancel,g.signal);return E(b),p.readable}pipeTo(s,u={}){if(!Mt(this))return h(lr("pipeTo"));if(s===void 0)return h("Parameter 1 is required in 'pipeTo'.");if(!Dr(s))return h(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let p;try{p=Sf(u,"Second parameter")}catch(g){return h(g)}return Ut(this)?h(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):Lr(s)?h(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):yf(this,s,p.preventClose,p.preventAbort,p.preventCancel,p.signal)}tee(){if(!Mt(this))throw lr("tee");let s=ab(this);return Cn(s)}values(s=void 0){if(!Mt(this))throw lr("values");let u=bb(s,"First parameter");return Jm(this,u.preventCancel)}[Ao](s){return this.values(s)}static from(s){return ub(s)}};a(ls,"ReadableStream");let oe=ls;Object.defineProperties(oe,{from:{enumerable:!0}}),Object.defineProperties(oe.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),o(oe.from,"from"),o(oe.prototype.cancel,"cancel"),o(oe.prototype.getReader,"getReader"),o(oe.prototype.pipeThrough,"pipeThrough"),o(oe.prototype.pipeTo,"pipeTo"),o(oe.prototype.tee,"tee"),o(oe.prototype.values,"values"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(oe.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(oe.prototype,Ao,{value:oe.prototype.values,writable:!0,configurable:!0});function Ln(i,s,u,p=1,g=()=>1){let b=Object.create(oe.prototype);Yo(b);let y=Object.create(Ne.prototype);return wf(b,y,i,s,u,p,g),b}a(Ln,"CreateReadableStream");function Rf(i,s,u){let p=Object.create(oe.prototype);Yo(p);let g=Object.create(Ue.prototype);return Ku(p,g,i,s,u,0,void 0),p}a(Rf,"CreateReadableByteStream");function Yo(i){i._state="readable",i._reader=void 0,i._storedError=void 0,i._disturbed=!1}a(Yo,"InitializeReadableStream");function Mt(i){return!r(i)||!Object.prototype.hasOwnProperty.call(i,"_readableStreamController")?!1:i instanceof oe}a(Mt,"IsReadableStream");function Ut(i){return i._reader!==void 0}a(Ut,"IsReadableStreamLocked");function He(i,s){if(i._disturbed=!0,i._state==="closed")return d(void 0);if(i._state==="errored")return h(i._storedError);qn(i);let u=i._reader;if(u!==void 0&&ir(u)){let g=u._readIntoRequests;u._readIntoRequests=new T,g.forEach(b=>{b._closeSteps(void 0)})}let p=i._readableStreamController[D](s);return k(p,t)}a(He,"ReadableStreamCancel");function qn(i){i._state="closed";let s=i._reader;if(s!==void 0&&(Tu(s),Dt(s))){let u=s._readRequests;s._readRequests=new T,u.forEach(p=>{p._closeSteps()})}}a(qn,"ReadableStreamClose");function Tf(i,s){i._state="errored",i._storedError=s;let u=i._reader;u!==void 0&&(Bt(u,s),Dt(u)?Pu(u,s):tf(u,s))}a(Tf,"ReadableStreamError");function lr(i){return new TypeError(`ReadableStream.prototype.${i} can only be used on a ReadableStream`)}a(lr,"streamBrandCheckException$1");function xf(i,s){Je(i,s);let u=i==null?void 0:i.highWaterMark;return _o(u,"highWaterMark","QueuingStrategyInit"),{highWaterMark:yo(u)}}a(xf,"convertQueuingStrategyInit");let Af=a(i=>i.byteLength,"byteLengthSizeFunction");o(Af,"size");let us=class us{constructor(s){mt(s,1,"ByteLengthQueuingStrategy"),s=xf(s,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=s.highWaterMark}get highWaterMark(){if(!kf(this))throw Ef("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!kf(this))throw Ef("size");return Af}};a(us,"ByteLengthQueuingStrategy");let Mr=us;Object.defineProperties(Mr.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Mr.prototype,Symbol.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function Ef(i){return new TypeError(`ByteLengthQueuingStrategy.prototype.${i} can only be used on a ByteLengthQueuingStrategy`)}a(Ef,"byteLengthBrandCheckException");function kf(i){return!r(i)||!Object.prototype.hasOwnProperty.call(i,"_byteLengthQueuingStrategyHighWaterMark")?!1:i instanceof Mr}a(kf,"IsByteLengthQueuingStrategy");let Cf=a(()=>1,"countSizeFunction");o(Cf,"size");let fs=class fs{constructor(s){mt(s,1,"CountQueuingStrategy"),s=xf(s,"First parameter"),this._countQueuingStrategyHighWaterMark=s.highWaterMark}get highWaterMark(){if(!If(this))throw Pf("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!If(this))throw Pf("size");return Cf}};a(fs,"CountQueuingStrategy");let Ur=fs;Object.defineProperties(Ur.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Ur.prototype,Symbol.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function Pf(i){return new TypeError(`CountQueuingStrategy.prototype.${i} can only be used on a CountQueuingStrategy`)}a(Pf,"countBrandCheckException");function If(i){return!r(i)||!Object.prototype.hasOwnProperty.call(i,"_countQueuingStrategyHighWaterMark")?!1:i instanceof Ur}a(If,"IsCountQueuingStrategy");function vb(i,s){Je(i,s);let u=i==null?void 0:i.cancel,p=i==null?void 0:i.flush,g=i==null?void 0:i.readableType,b=i==null?void 0:i.start,y=i==null?void 0:i.transform,I=i==null?void 0:i.writableType;return{cancel:u===void 0?void 0:Tb(u,i,`${s} has member 'cancel' that`),flush:p===void 0?void 0:wb(p,i,`${s} has member 'flush' that`),readableType:g,start:b===void 0?void 0:Sb(b,i,`${s} has member 'start' that`),transform:y===void 0?void 0:Rb(y,i,`${s} has member 'transform' that`),writableType:I}}a(vb,"convertTransformer");function wb(i,s,u){return Ce(i,u),p=>C(i,s,[p])}a(wb,"convertTransformerFlushCallback");function Sb(i,s,u){return Ce(i,u),p=>A(i,s,[p])}a(Sb,"convertTransformerStartCallback");function Rb(i,s,u){return Ce(i,u),(p,g)=>C(i,s,[p,g])}a(Rb,"convertTransformerTransformCallback");function Tb(i,s,u){return Ce(i,u),p=>C(i,s,[p])}a(Tb,"convertTransformerCancelCallback");let ds=class ds{constructor(s={},u={},p={}){s===void 0&&(s=null);let g=Hi(u,"Second parameter"),b=Hi(p,"Third parameter"),y=vb(s,"First parameter");if(y.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(y.writableType!==void 0)throw new RangeError("Invalid writableType specified");let I=On(b,0),z=ji(b),B=On(g,1),M=ji(g),W,Y=m(Ze=>{W=Ze});xb(this,Y,B,M,I,z),Eb(this,y),y.start!==void 0?W(y.start(this._transformStreamController)):W(void 0)}get readable(){if(!Of(this))throw Lf("readable");return this._readable}get writable(){if(!Of(this))throw Lf("writable");return this._writable}};a(ds,"TransformStream");let Wr=ds;Object.defineProperties(Wr.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Wr.prototype,Symbol.toStringTag,{value:"TransformStream",configurable:!0});function xb(i,s,u,p,g,b){function y(){return s}a(y,"startAlgorithm");function I(Y){return Pb(i,Y)}a(I,"writeAlgorithm");function z(Y){return Ib(i,Y)}a(z,"abortAlgorithm");function B(){return Ob(i)}a(B,"closeAlgorithm"),i._writable=Cg(y,I,B,z,u,p);function M(){return Fb(i)}a(M,"pullAlgorithm");function W(Y){return Bb(i,Y)}a(W,"cancelAlgorithm"),i._readable=Ln(y,M,W,g,b),i._backpressure=void 0,i._backpressureChangePromise=void 0,i._backpressureChangePromise_resolve=void 0,ta(i,!0),i._transformStreamController=void 0}a(xb,"InitializeTransformStream");function Of(i){return!r(i)||!Object.prototype.hasOwnProperty.call(i,"_transformStreamController")?!1:i instanceof Wr}a(Of,"IsTransformStream");function Ff(i,s){je(i._readable._readableStreamController,s),Go(i,s)}a(Ff,"TransformStreamError");function Go(i,s){na(i._transformStreamController),Fn(i._writable._writableStreamController,s),Ko(i)}a(Go,"TransformStreamErrorWritableAndUnblockWrite");function Ko(i){i._backpressure&&ta(i,!1)}a(Ko,"TransformStreamUnblockWrite");function ta(i,s){i._backpressureChangePromise!==void 0&&i._backpressureChangePromise_resolve(),i._backpressureChangePromise=m(u=>{i._backpressureChangePromise_resolve=u}),i._backpressure=s}a(ta,"TransformStreamSetBackpressure");let cs=class cs{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!ra(this))throw ia("desiredSize");let s=this._controlledTransformStream._readable._readableStreamController;return Vo(s)}enqueue(s=void 0){if(!ra(this))throw ia("enqueue");Bf(this,s)}error(s=void 0){if(!ra(this))throw ia("error");kb(this,s)}terminate(){if(!ra(this))throw ia("terminate");Cb(this)}};a(cs,"TransformStreamDefaultController");let it=cs;Object.defineProperties(it.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),o(it.prototype.enqueue,"enqueue"),o(it.prototype.error,"error"),o(it.prototype.terminate,"terminate"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(it.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function ra(i){return!r(i)||!Object.prototype.hasOwnProperty.call(i,"_controlledTransformStream")?!1:i instanceof it}a(ra,"IsTransformStreamDefaultController");function Ab(i,s,u,p,g){s._controlledTransformStream=i,i._transformStreamController=s,s._transformAlgorithm=u,s._flushAlgorithm=p,s._cancelAlgorithm=g,s._finishPromise=void 0,s._finishPromise_resolve=void 0,s._finishPromise_reject=void 0}a(Ab,"SetUpTransformStreamDefaultController");function Eb(i,s){let u=Object.create(it.prototype),p,g,b;s.transform!==void 0?p=a(y=>s.transform(y,u),"transformAlgorithm"):p=a(y=>{try{return Bf(u,y),d(void 0)}catch(I){return h(I)}},"transformAlgorithm"),s.flush!==void 0?g=a(()=>s.flush(u),"flushAlgorithm"):g=a(()=>d(void 0),"flushAlgorithm"),s.cancel!==void 0?b=a(y=>s.cancel(y),"cancelAlgorithm"):b=a(()=>d(void 0),"cancelAlgorithm"),Ab(i,u,p,g,b)}a(Eb,"SetUpTransformStreamDefaultControllerFromTransformer");function na(i){i._transformAlgorithm=void 0,i._flushAlgorithm=void 0,i._cancelAlgorithm=void 0}a(na,"TransformStreamDefaultControllerClearAlgorithms");function Bf(i,s){let u=i._controlledTransformStream,p=u._readable._readableStreamController;if(!zr(p))throw new TypeError("Readable side is not in a state that permits enqueue");try{qr(p,s)}catch(b){throw Go(u,b),u._readable._storedError}nb(p)!==u._backpressure&&ta(u,!0)}a(Bf,"TransformStreamDefaultControllerEnqueue");function kb(i,s){Ff(i._controlledTransformStream,s)}a(kb,"TransformStreamDefaultControllerError");function Df(i,s){let u=i._transformAlgorithm(s);return k(u,void 0,p=>{throw Ff(i._controlledTransformStream,p),p})}a(Df,"TransformStreamDefaultControllerPerformTransform");function Cb(i){let s=i._controlledTransformStream,u=s._readable._readableStreamController;sr(u);let p=new TypeError("TransformStream terminated");Go(s,p)}a(Cb,"TransformStreamDefaultControllerTerminate");function Pb(i,s){let u=i._transformStreamController;if(i._backpressure){let p=i._backpressureChangePromise;return k(p,()=>{let g=i._writable;if(g._state==="erroring")throw g._storedError;return Df(u,s)})}return Df(u,s)}a(Pb,"TransformStreamDefaultSinkWriteAlgorithm");function Ib(i,s){let u=i._transformStreamController;if(u._finishPromise!==void 0)return u._finishPromise;let p=i._readable;u._finishPromise=m((b,y)=>{u._finishPromise_resolve=b,u._finishPromise_reject=y});let g=u._cancelAlgorithm(s);return na(u),_(g,()=>(p._state==="errored"?Nr(u,p._storedError):(je(p._readableStreamController,s),Xo(u)),null),b=>(je(p._readableStreamController,b),Nr(u,b),null)),u._finishPromise}a(Ib,"TransformStreamDefaultSinkAbortAlgorithm");function Ob(i){let s=i._transformStreamController;if(s._finishPromise!==void 0)return s._finishPromise;let u=i._readable;s._finishPromise=m((g,b)=>{s._finishPromise_resolve=g,s._finishPromise_reject=b});let p=s._flushAlgorithm();return na(s),_(p,()=>(u._state==="errored"?Nr(s,u._storedError):(sr(u._readableStreamController),Xo(s)),null),g=>(je(u._readableStreamController,g),Nr(s,g),null)),s._finishPromise}a(Ob,"TransformStreamDefaultSinkCloseAlgorithm");function Fb(i){return ta(i,!1),i._backpressureChangePromise}a(Fb,"TransformStreamDefaultSourcePullAlgorithm");function Bb(i,s){let u=i._transformStreamController;if(u._finishPromise!==void 0)return u._finishPromise;let p=i._writable;u._finishPromise=m((b,y)=>{u._finishPromise_resolve=b,u._finishPromise_reject=y});let g=u._cancelAlgorithm(s);return na(u),_(g,()=>(p._state==="errored"?Nr(u,p._storedError):(Fn(p._writableStreamController,s),Ko(i),Xo(u)),null),b=>(Fn(p._writableStreamController,b),Ko(i),Nr(u,b),null)),u._finishPromise}a(Bb,"TransformStreamDefaultSourceCancelAlgorithm");function ia(i){return new TypeError(`TransformStreamDefaultController.prototype.${i} can only be used on a TransformStreamDefaultController`)}a(ia,"defaultControllerBrandCheckException");function Xo(i){i._finishPromise_resolve!==void 0&&(i._finishPromise_resolve(),i._finishPromise_resolve=void 0,i._finishPromise_reject=void 0)}a(Xo,"defaultControllerFinishPromiseResolve");function Nr(i,s){i._finishPromise_reject!==void 0&&(E(i._finishPromise),i._finishPromise_reject(s),i._finishPromise_resolve=void 0,i._finishPromise_reject=void 0)}a(Nr,"defaultControllerFinishPromiseReject");function Lf(i){return new TypeError(`TransformStream.prototype.${i} can only be used on a TransformStream`)}a(Lf,"streamBrandCheckException"),e.ByteLengthQueuingStrategy=Mr,e.CountQueuingStrategy=Ur,e.ReadableByteStreamController=Ue,e.ReadableStream=oe,e.ReadableStreamBYOBReader=tt,e.ReadableStreamBYOBRequest=bt,e.ReadableStreamDefaultController=Ne,e.ReadableStreamDefaultReader=et,e.TransformStream=Wr,e.TransformStreamDefaultController=it,e.WritableStream=rt,e.WritableStreamDefaultController=zt,e.WritableStreamDefaultWriter=We})});var Zf=P(()=>{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,Hf())}try{let{Blob:e}=require("buffer");e&&!e.prototype.stream&&(e.prototype.stream=a(function(r){let n=0,o=this;return new ReadableStream({type:"bytes",async pull(l){let c=await o.slice(n,Math.min(o.size,n+65536)).arrayBuffer();n+=c.byteLength,l.enqueue(new Uint8Array(c)),n===o.size&&l.close()}})},"name"))}catch{}});async function*ps(e,t=!0){for(let r of e)if("stream"in r)yield*r.stream();else if(ArrayBuffer.isView(r))if(t){let n=r.byteOffset,o=r.byteOffset+r.byteLength;for(;n!==o;){let l=Math.min(o-n,$f),f=r.buffer.slice(n,n+l);n+=f.byteLength,yield new Uint8Array(f)}}else yield r;else{let n=0,o=r;for(;n!==o.size;){let f=await o.slice(n,Math.min(o.size,n+$f)).arrayBuffer();n+=f.byteLength,yield new Uint8Array(f)}}}var Kw,$f,vt,Un,Vr,sa,Nt,Vf,Nb,wt,Wn=Mn(()=>{Kw=Oe(Zf(),1);$f=65536;a(ps,"toIterator");Vf=(Nt=class{constructor(t=[],r={}){$e(this,vt,[]);$e(this,Un,"");$e(this,Vr,0);$e(this,sa,"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 n=new TextEncoder;for(let l of t){let f;ArrayBuffer.isView(l)?f=new Uint8Array(l.buffer.slice(l.byteOffset,l.byteOffset+l.byteLength)):l instanceof ArrayBuffer?f=new Uint8Array(l.slice(0)):l instanceof Nt?f=l:f=n.encode(`${l}`),Se(this,Vr,te(this,Vr)+(ArrayBuffer.isView(f)?f.byteLength:f.size)),te(this,vt).push(f)}Se(this,sa,`${r.endings===void 0?"transparent":r.endings}`);let o=r.type===void 0?"":String(r.type);Se(this,Un,/^[\x20-\x7E]*$/.test(o)?o:"")}get size(){return te(this,Vr)}get type(){return te(this,Un)}async text(){let t=new TextDecoder,r="";for await(let n of ps(te(this,vt),!1))r+=t.decode(n,{stream:!0});return r+=t.decode(),r}async arrayBuffer(){let t=new Uint8Array(this.size),r=0;for await(let n of ps(te(this,vt),!1))t.set(n,r),r+=n.length;return t.buffer}stream(){let t=ps(te(this,vt),!0);return new globalThis.ReadableStream({type:"bytes",async pull(r){let n=await t.next();n.done?r.close():r.enqueue(n.value)},async cancel(){await t.return()}})}slice(t=0,r=this.size,n=""){let{size:o}=this,l=t<0?Math.max(o+t,0):Math.min(t,o),f=r<0?Math.max(o+r,0):Math.min(r,o),c=Math.max(f-l,0),m=te(this,vt),d=[],h=0;for(let _ of m){if(h>=c)break;let w=ArrayBuffer.isView(_)?_.byteLength:_.size;if(l&&w<=l)l-=w,f-=w;else{let v;ArrayBuffer.isView(_)?(v=_.subarray(l,Math.min(w,f)),h+=v.byteLength):(v=_.slice(l,Math.min(w,f)),h+=v.size),f-=w,d.push(v),l=0}}let x=new Nt([],{type:String(n).toLowerCase()});return Se(x,Vr,c),Se(x,vt,d),x}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])}},vt=new WeakMap,Un=new WeakMap,Vr=new WeakMap,sa=new WeakMap,a(Nt,"Blob"),Nt);Object.defineProperties(Vf.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}});Nb=Vf,wt=Nb});var Nn,jn,Yr,jb,Hb,Gr,ms=Mn(()=>{Wn();jb=(Yr=class extends wt{constructor(r,n,o={}){if(arguments.length<2)throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);super(r,o);$e(this,Nn,0);$e(this,jn,"");o===null&&(o={});let l=o.lastModified===void 0?Date.now():Number(o.lastModified);Number.isNaN(l)||Se(this,Nn,l),Se(this,jn,String(n))}get name(){return te(this,jn)}get lastModified(){return te(this,Nn)}get[Symbol.toStringTag](){return"File"}static[Symbol.hasInstance](r){return!!r&&r instanceof wt&&/^(File)$/.test(r[Symbol.toStringTag])}},Nn=new WeakMap,jn=new WeakMap,a(Yr,"File"),Yr),Hb=jb,Gr=Hb});function Kf(e,t=wt){var r=`${Yf()}${Yf()}`.replace(/\./g,"").slice(-28).padStart(32,"-"),n=[],o=`--${r}\r
|
|
2
|
+
Content-Disposition: form-data; name="`;return e.forEach((l,f)=>typeof l=="string"?n.push(o+gs(f)+`"\r
|
|
3
3
|
\r
|
|
4
|
-
${
|
|
4
|
+
${l.replace(/\r(?!\n)|(?<!\r)\n/g,`\r
|
|
5
5
|
`)}\r
|
|
6
|
-
`):
|
|
7
|
-
Content-Type: ${
|
|
6
|
+
`):n.push(o+gs(f)+`"; filename="${gs(l.name,1)}"\r
|
|
7
|
+
Content-Type: ${l.type||"application/octet-stream"}\r
|
|
8
8
|
\r
|
|
9
|
-
`,
|
|
10
|
-
`)),
|
|
11
|
-
`)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"e"),
|
|
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,D)=>{(S===void 0||S!==P)&&this[w](D&&D.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===za)c|=Mr.LAST_BOUNDARY;else if(b!==Ms)return;p++;break}else if(p-1===l.length-2){if(c&Mr.LAST_BOUNDARY&&b===za)u=ee.END,c=0;else if(!(c&Mr.LAST_BOUNDARY)&&b===qs)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===Ms){y("onHeaderField"),u=ee.HEADERS_ALMOST_DONE;break}if(p++,b===za)break;if(b===pk){if(p===1)return;C("onHeaderField",!0),u=ee.HEADER_VALUE_START;break}if(A=gk(b),A<_k||A>mk)return;break;case ee.HEADER_VALUE_START:if(b===hk)break;T("onHeaderValue"),u=ee.HEADER_VALUE;case ee.HEADER_VALUE:b===Ms&&(C("onHeaderValue",!0),x("onHeaderEnd"),u=ee.HEADER_VALUE_ALMOST_DONE);break;case ee.HEADER_VALUE_ALMOST_DONE:if(b!==qs)return;u=ee.HEADER_FIELD_START;break;case ee.HEADERS_ALMOST_DONE:if(b!==qs)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===Ms?c|=Mr.PART_BOUNDARY:b===za?c|=Mr.LAST_BOUNDARY:p=0;else if(p-1===l.length)if(c&Mr.PART_BOUNDARY){if(p=0,b===qs){c&=~Mr.PART_BOUNDARY,x("onPartEnd"),x("onPartBegin"),u=ee.HEADER_FIELD_START;break}}else c&Mr.LAST_BOUNDARY&&b===za?(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(Mu,"MultipartParser");qu=Mu;n(vk,"_fileName");n(bk,"toFormData")});var Na=R((hF,Hu)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Hu.exports={nextTick:Rk}:Hu.exports=process;function Rk(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(Rk,"nextTick")});var Am=R((_F,Rm)=>{var Ak={}.toString;Rm.exports=Array.isArray||function(e){return Ak.call(e)=="[object Array]"}});var $u=R((mF,Cm)=>{Cm.exports=require("stream")});var Wa=R((Yu,Om)=>{var Ys=require("buffer"),ur=Ys.Buffer;function Im(e,t){for(var r in e)t[r]=e[r]}n(Im,"copyProps");ur.from&&ur.alloc&&ur.allocUnsafe&&ur.allocUnsafeSlow?Om.exports=Ys:(Im(Ys,Yu),Yu.Buffer=bn);function bn(e,t,r){return ur(e,t,r)}n(bn,"SafeBuffer");Im(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 Ys.SlowBuffer(e)}});var yn=R(ke=>{function Ck(e){return Array.isArray?Array.isArray(e):Gs(e)==="[object Array]"}n(Ck,"isArray");ke.isArray=Ck;function Ik(e){return typeof e=="boolean"}n(Ik,"isBoolean");ke.isBoolean=Ik;function Ok(e){return e===null}n(Ok,"isNull");ke.isNull=Ok;function Pk(e){return e==null}n(Pk,"isNullOrUndefined");ke.isNullOrUndefined=Pk;function Bk(e){return typeof e=="number"}n(Bk,"isNumber");ke.isNumber=Bk;function Dk(e){return typeof e=="string"}n(Dk,"isString");ke.isString=Dk;function Fk(e){return typeof e=="symbol"}n(Fk,"isSymbol");ke.isSymbol=Fk;function Lk(e){return e===void 0}n(Lk,"isUndefined");ke.isUndefined=Lk;function zk(e){return Gs(e)==="[object RegExp]"}n(zk,"isRegExp");ke.isRegExp=zk;function qk(e){return typeof e=="object"&&e!==null}n(qk,"isObject");ke.isObject=qk;function Mk(e){return Gs(e)==="[object Date]"}n(Mk,"isDate");ke.isDate=Mk;function Uk(e){return Gs(e)==="[object Error]"||e instanceof Error}n(Uk,"isError");ke.isError=Uk;function Nk(e){return typeof e=="function"}n(Nk,"isFunction");ke.isFunction=Nk;function Wk(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}n(Wk,"isPrimitive");ke.isPrimitive=Wk;ke.isBuffer=require("buffer").Buffer.isBuffer;function Gs(e){return Object.prototype.toString.call(e)}n(Gs,"objectToString")});var Pm=R((yF,Gu)=>{typeof Object.create=="function"?Gu.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"):Gu.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((SF,Ku)=>{try{if(Vu=require("util"),typeof Vu.inherits!="function")throw"";Ku.exports=Vu.inherits}catch{Ku.exports=Pm()}var Vu});var Dm=R((xF,Xu)=>{"use strict";function jk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n(jk,"_classCallCheck");var Bm=Wa().Buffer,ja=require("util");function Zk(e,t,r){e.copy(t,r)}n(Zk,"copyBuffer");Xu.exports=function(){function e(){jk(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 Bm.alloc(0);for(var i=Bm.allocUnsafe(r>>>0),a=this.head,s=0;a;)Zk(a.data,i,s),s+=a.data.length,a=a.next;return i},"concat"),e}();ja&&ja.inspect&&ja.inspect.custom&&(Xu.exports.prototype[ja.inspect.custom]=function(){var e=ja.inspect({length:this.length});return this.constructor.name+" "+e})});var Ju=R((kF,Fm)=>{"use strict";var Vs=Na();function Hk(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,Vs.nextTick(Ks,this,e)):Vs.nextTick(Ks,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,Vs.nextTick(Ks,r,s)):Vs.nextTick(Ks,r,s):t&&t(s)}),this)}n(Hk,"destroy");function $k(){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($k,"undestroy");function Ks(e,t){e.emit("error",t)}n(Ks,"emitErrorNT");Fm.exports={destroy:Hk,undestroy:$k}});var zm=R((RF,Lm)=>{Lm.exports=require("util").deprecate});var ed=R((AF,Hm)=>{"use strict";var Si=Na();Hm.exports=he;function Mm(e){var t=this;this.next=null,this.entry=null,this.finish=function(){uT(t,e)}}n(Mm,"CorkedRequest");var Yk=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Si.nextTick,Sn;he.WritableState=Ha;var Um=Object.create(yn());Um.inherits=wn();var Gk={deprecate:zm()},Nm=$u(),Js=Wa().Buffer,Vk=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Kk(e){return Js.from(e)}n(Kk,"_uint8ArrayToBuffer");function Xk(e){return Js.isBuffer(e)||e instanceof Vk}n(Xk,"_isUint8Array");var Wm=Ju();Um.inherits(he,Nm);function Jk(){}n(Jk,"nop");function Ha(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){aT(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 Mm(this)}n(Ha,"WritableState");Ha.prototype.getBuffer=n(function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r},"getBuffer");(function(){try{Object.defineProperty(Ha.prototype,"buffer",{get:Gk.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Xs;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Xs=Function.prototype[Symbol.hasInstance],Object.defineProperty(he,Symbol.hasInstance,{value:n(function(e){return Xs.call(this,e)?!0:this!==he?!1:e&&e._writableState instanceof Ha},"value")})):Xs=n(function(e){return e instanceof this},"realHasInstance");function he(e){if(Sn=Sn||xi(),!Xs.call(he,this)&&!(this instanceof Sn))return new he(e);this._writableState=new Ha(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)),Nm.call(this)}n(he,"Writable");he.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Qk(e,t){var r=new Error("write after end");e.emit("error",r),Si.nextTick(t,r)}n(Qk,"writeAfterEnd");function eT(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(eT,"validChunk");he.prototype.write=function(e,t,r){var i=this._writableState,a=!1,s=!i.objectMode&&Xk(e);return s&&!Js.isBuffer(e)&&(e=Kk(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=Jk),i.ended?Qk(this,r):(s||eT(this,i,e,r))&&(i.pendingcb++,a=rT(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&&jm(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 tT(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Js.from(t,r)),t}n(tT,"decodeChunk");Object.defineProperty(he.prototype,"writableHighWaterMark",{enumerable:!1,get:n(function(){return this._writableState.highWaterMark},"get")});function rT(e,t,r,i,a,s){if(!r){var l=tT(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 Qu(e,t,!1,d,i,a,s);return p}n(rT,"writeOrBuffer");function Qu(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(Qu,"doWrite");function iT(e,t,r,i,a){--t.pendingcb,r?(Si.nextTick(a,i),Si.nextTick(Za,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(a(i),e._writableState.errorEmitted=!0,e.emit("error",i),Za(e,t))}n(iT,"onwriteError");function nT(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}n(nT,"onwriteStateUpdate");function aT(e,t){var r=e._writableState,i=r.sync,a=r.writecb;if(nT(r),t)iT(e,r,i,t,a);else{var s=Zm(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&jm(e,r),i?Yk(qm,e,r,s,a):qm(e,r,s,a)}}n(aT,"onwrite");function qm(e,t,r,i){r||oT(e,t),t.pendingcb--,i(),Za(e,t)}n(qm,"afterWrite");function oT(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}n(oT,"onwriteDrain");function jm(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,Qu(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 Mm(t),t.bufferedRequestCount=0}else{for(;r;){var p=r.chunk,u=r.encoding,c=r.callback,E=t.objectMode?1:p.length;if(Qu(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(jm,"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||fT(this,i,r)};function Zm(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}n(Zm,"needFinish");function sT(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),Za(e,t)})}n(sT,"callFinal");function lT(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Si.nextTick(sT,e,t)):(t.prefinished=!0,e.emit("prefinish")))}n(lT,"prefinish");function Za(e,t){var r=Zm(t);return r&&(lT(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}n(Za,"finishMaybe");function fT(e,t,r){t.ending=!0,Za(e,t),r&&(t.finished?Si.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}n(fT,"endWritable");function uT(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(uT,"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=Wm.destroy;he.prototype._undestroy=Wm.undestroy;he.prototype._destroy=function(e,t){this.end(),t(e)}});var xi=R((IF,Vm)=>{"use strict";var $m=Na(),dT=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Vm.exports=dr;var Ym=Object.create(yn());Ym.inherits=wn();var Gm=id(),rd=ed();Ym.inherits(dr,Gm);for(td=dT(rd.prototype),Qs=0;Qs<td.length;Qs++)el=td[Qs],dr.prototype[el]||(dr.prototype[el]=rd.prototype[el]);var td,el,Qs;function dr(e){if(!(this instanceof dr))return new dr(e);Gm.call(this,e),rd.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",cT)}n(dr,"Duplex");Object.defineProperty(dr.prototype,"writableHighWaterMark",{enumerable:!1,get:n(function(){return this._writableState.highWaterMark},"get")});function cT(){this.allowHalfOpen||this._writableState.ended||$m.nextTick(hT,this)}n(cT,"onend");function hT(e){e.end()}n(hT,"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(),$m.nextTick(t,e)}});var od=R(Xm=>{"use strict";var ad=Wa().Buffer,Km=ad.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 pT(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(pT,"_normalizeEncoding");function _T(e){var t=pT(e);if(typeof t!="string"&&(ad.isEncoding===Km||!Km(e)))throw new Error("Unknown encoding: "+e);return t||e}n(_T,"normalizeEncoding");Xm.StringDecoder=$a;function $a(e){this.encoding=_T(e);var t;switch(this.encoding){case"utf16le":this.text=wT,this.end=ST,t=4;break;case"utf8":this.fillLast=vT,t=4;break;case"base64":this.text=xT,this.end=ET,t=3;break;default:this.write=kT,this.end=TT;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ad.allocUnsafe(t)}n($a,"StringDecoder");$a.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||""};$a.prototype.end=yT;$a.prototype.text=bT;$a.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 nd(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}n(nd,"utf8CheckByte");function mT(e,t,r){var i=t.length-1;if(i<r)return 0;var a=nd(t[i]);return a>=0?(a>0&&(e.lastNeed=a-1),a):--i<r||a===-2?0:(a=nd(t[i]),a>=0?(a>0&&(e.lastNeed=a-2),a):--i<r||a===-2?0:(a=nd(t[i]),a>=0?(a>0&&(a===2?a=0:e.lastNeed=a-3),a):0))}n(mT,"utf8CheckIncomplete");function gT(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(gT,"utf8CheckExtraBytes");function vT(e){var t=this.lastTotal-this.lastNeed,r=gT(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(vT,"utf8FillLast");function bT(e,t){var r=mT(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(bT,"utf8Text");function yT(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}n(yT,"utf8End");function wT(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(wT,"utf16Text");function ST(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(ST,"utf16End");function xT(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(xT,"base64Text");function ET(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}n(ET,"base64End");function kT(e){return e.toString(this.encoding)}n(kT,"simpleWrite");function TT(e){return e&&e.length?this.write(e):""}n(TT,"simpleEnd")});var id=R((FF,fg)=>{"use strict";var En=Na();fg.exports=ie;var RT=Am(),Ya;ie.ReadableState=ng;var DF=require("events").EventEmitter,tg=n(function(e,t){return e.listeners(t).length},"EElistenerCount"),dd=$u(),Ga=Wa().Buffer,AT=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function CT(e){return Ga.from(e)}n(CT,"_uint8ArrayToBuffer");function IT(e){return Ga.isBuffer(e)||e instanceof AT}n(IT,"_isUint8Array");var rg=Object.create(yn());rg.inherits=wn();var sd=require("util"),V=void 0;sd&&sd.debuglog?V=sd.debuglog("stream"):V=n(function(){},"debug");var OT=Dm(),ig=Ju(),xn;rg.inherits(ie,dd);var ld=["error","close","destroy","pause","resume"];function PT(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):RT(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}n(PT,"prependListener");function ng(e,t){Ya=Ya||xi(),e=e||{};var r=t instanceof Ya;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 OT,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=od().StringDecoder),this.decoder=new xn(e.encoding),this.encoding=e.encoding)}n(ng,"ReadableState");function ie(e){if(Ya=Ya||xi(),!(this instanceof ie))return new ie(e);this._readableState=new ng(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),dd.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=ig.destroy;ie.prototype._undestroy=ig.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=Ga.from(e,t),t=""),i=!0),ag(this,e,t,!1,i)};ie.prototype.unshift=function(e){return ag(this,e,null,!0,!1)};function ag(e,t,r,i,a){var s=e._readableState;if(t===null)s.reading=!1,LT(e,s);else{var l;a||(l=BT(s,t)),l?e.emit("error",l):s.objectMode||t&&t.length>0?(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==Ga.prototype&&(t=CT(t)),i?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):fd(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?fd(e,s,t,!1):og(e,s)):fd(e,s,t,!1))):i||(s.reading=!1)}return DT(s)}n(ag,"readableAddChunk");function fd(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&&tl(e)),og(e,t)}n(fd,"addChunk");function BT(e,t){var r;return!IT(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}n(BT,"chunkInvalid");function DT(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}n(DT,"needMoreData");ie.prototype.isPaused=function(){return this._readableState.flowing===!1};ie.prototype.setEncoding=function(e){return xn||(xn=od().StringDecoder),this._readableState.decoder=new xn(e),this._readableState.encoding=e,this};var Jm=8388608;function FT(e){return e>=Jm?e=Jm:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}n(FT,"computeNewHighWaterMark");function Qm(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=FT(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}n(Qm,"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?ud(this):tl(this),null;if(e=Qm(e,t),e===0&&t.ended)return t.length===0&&ud(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=Qm(r,t)));var a;return e>0?a=sg(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&&ud(this)),a!==null&&this.emit("data",a),a};function LT(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,tl(e)}}n(LT,"onEofChunk");function tl(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(V("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?En.nextTick(eg,e):eg(e))}n(tl,"emitReadable");function eg(e){V("emit readable"),e.emit("readable"),cd(e)}n(eg,"emitReadable_");function og(e,t){t.readingMore||(t.readingMore=!0,En.nextTick(zT,e,t))}n(og,"maybeReadMore");function zT(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(zT,"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=qT(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&&lg(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),tg(e,"error")===0&&e.emit("error",y)}n(g,"onerror"),PT(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 qT(e){return function(){var t=e._readableState;V("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&tg(e,"data")&&(t.flowing=!0,cd(e))}}n(qT,"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=lg(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=dd.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&&tl(this):En.nextTick(MT,this))}return r};ie.prototype.addListener=ie.prototype.on;function MT(e){V("readable nexttick read 0"),e.read(0)}n(MT,"nReadingNextTick");ie.prototype.resume=function(){var e=this._readableState;return e.flowing||(V("resume"),e.flowing=!0,UT(this,e)),this};function UT(e,t){t.resumeScheduled||(t.resumeScheduled=!0,En.nextTick(NT,e,t))}n(UT,"resume");function NT(e,t){t.reading||(V("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),cd(e),t.flowing&&!t.reading&&e.read(0)}n(NT,"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 cd(e){var t=e._readableState;for(V("flow",t.flowing);t.flowing&&e.read()!==null;);}n(cd,"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<ld.length;s++)e.on(ld[s],this.emit.bind(this,ld[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=sg;function sg(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=WT(e,t.buffer,t.decoder),r}n(sg,"fromList");function WT(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?jT(e,t):ZT(e,t),i}n(WT,"fromListPartial");function jT(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(jT,"copyFromBufferString");function ZT(e,t){var r=Ga.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(ZT,"copyFromBuffer");function ud(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(HT,t,e))}n(ud,"endReadable");function HT(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}n(HT,"endReadableNT");function lg(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}n(lg,"indexOf")});var hd=R((zF,cg)=>{"use strict";cg.exports=cr;var rl=xi(),dg=Object.create(yn());dg.inherits=wn();dg.inherits(cr,rl);function $T(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($T,"afterTransform");function cr(e){if(!(this instanceof cr))return new cr(e);rl.call(this,e),this._transformState={afterTransform:$T.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",YT)}n(cr,"Transform");function YT(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){ug(e,t,r)}):ug(this,null,null)}n(YT,"prefinish");cr.prototype.push=function(e,t){return this._transformState.needTransform=!1,rl.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;rl.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function ug(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(ug,"done")});var mg=R((MF,_g)=>{"use strict";_g.exports=Va;var hg=hd(),pg=Object.create(yn());pg.inherits=wn();pg.inherits(Va,hg);function Va(e){if(!(this instanceof Va))return new Va(e);hg.call(this,e)}n(Va,"PassThrough");Va.prototype._transform=function(e,t,r){r(null,e)}});var pd=R((we,il)=>{var Ut=require("stream");process.env.READABLE_STREAM==="disable"&&Ut?(il.exports=Ut,we=il.exports=Ut.Readable,we.Readable=Ut.Readable,we.Writable=Ut.Writable,we.Duplex=Ut.Duplex,we.Transform=Ut.Transform,we.PassThrough=Ut.PassThrough,we.Stream=Ut):(we=il.exports=id(),we.Stream=Ut||we,we.Readable=we,we.Writable=ed(),we.Duplex=xi(),we.Transform=hd(),we.PassThrough=mg())});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{gg=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,md=new gg,md.append(_d),$e.blob=md.getBlob("application/zip").size===0}catch{$e.blob=!1}}}var _d,gg,md;try{$e.nodestream=!!pd().Readable}catch{$e.nodestream=!1}});var vd=R(gd=>{"use strict";var GT=le(),VT=hr(),Nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";gd.encode=function(e){for(var t=[],r,i,a,s,l,d,p,u=0,c=e.length,E=c,m=GT.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(Nt.charAt(s)+Nt.charAt(l)+Nt.charAt(d)+Nt.charAt(p));return t.join("")};gd.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)===Nt.charAt(64)&&E--,e.charAt(e.length-2)===Nt.charAt(64)&&E--,E%1!==0)throw new Error("Invalid base64 input, bad content length.");var m;for(VT.uint8array?m=new Uint8Array(E|0):m=new Array(E|0);p<e.length;)a=Nt.indexOf(e.charAt(p++)),s=Nt.indexOf(e.charAt(p++)),l=Nt.indexOf(e.charAt(p++)),d=Nt.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 Ka=R((jF,vg)=>{"use strict";vg.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 Sg=R((HF,wg)=>{"use strict";var bg=global.MutationObserver||global.WebKitMutationObserver,kn;process.browser?bg?(bd=0,yg=new bg(Xa),yd=global.document.createTextNode(""),yg.observe(yd,{characterData:!0}),kn=n(function(){yd.data=bd=++bd%2},"scheduleDrain")):!global.setImmediate&&typeof global.MessageChannel<"u"?(wd=new global.MessageChannel,wd.port1.onmessage=Xa,kn=n(function(){wd.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(){Xa(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},global.document.documentElement.appendChild(e)},"scheduleDrain"):kn=n(function(){setTimeout(Xa,0)},"scheduleDrain"):kn=n(function(){process.nextTick(Xa)},"scheduleDrain");var bd,yg,yd,wd,Sd,Ja=[];function Xa(){Sd=!0;for(var e,t,r=Ja.length;r;){for(t=Ja,Ja=[],e=-1;++e<r;)t[e]();r=Ja.length}Sd=!1}n(Xa,"nextTick");wg.exports=KT;function KT(e){Ja.push(e)===1&&!Sd&&kn()}n(KT,"immediate")});var Cg=R((YF,Ag)=>{"use strict";var xg=Sg();function Tn(){}n(Tn,"INTERNAL");var Te={},Eg=["REJECTED"],xd=["FULFILLED"],kg=["PENDING"];process.browser||(Qa=["UNHANDLED"]);var Qa;Ag.exports=Ur;function Ur(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=kg,this.queue=[],this.outcome=void 0,process.browser||(this.handled=Qa),e!==Tn&&Tg(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===xd||typeof t!="function"&&this.state===Eg)return this;var r=new this.constructor(Tn);if(process.browser||this.handled===Qa&&(this.handled=null),this.state!==kg){var i=this.state===xd?e:t;Ed(r,i,this.outcome)}else this.queue.push(new eo(r,e,t));return r};function eo(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(eo,"QueueItem");eo.prototype.callFulfilled=function(e){Te.resolve(this.promise,e)};eo.prototype.otherCallFulfilled=function(e){Ed(this.promise,this.onFulfilled,e)};eo.prototype.callRejected=function(e){Te.reject(this.promise,e)};eo.prototype.otherCallRejected=function(e){Ed(this.promise,this.onRejected,e)};function Ed(e,t,r){xg(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(Ed,"unwrap");Te.resolve=function(e,t){var r=Rg(XT,t);if(r.status==="error")return Te.reject(e,r.value);var i=r.value;if(i)Tg(e,i);else{e.state=xd,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=Eg,e.outcome=t,process.browser||e.handled===Qa&&xg(function(){e.handled===Qa&&process.emit("unhandledRejection",t,e)});for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e};function XT(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(XT,"getThen");function Tg(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=Rg(s);l.status==="error"&&i(l.value)}n(Tg,"safelyResolveThenable");function Rg(e,t){var r={};try{r.value=e(t),r.status="success"}catch(i){r.status="error",r.value=i}return r}n(Rg,"tryCatch");Ur.resolve=JT;function JT(e){return e instanceof this?e:Te.resolve(new this(Tn),e)}n(JT,"resolve");Ur.reject=QT;function QT(e){var t=new this(Tn);return Te.reject(t,e)}n(QT,"reject");Ur.all=eR;function eR(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(eR,"all");Ur.race=tR;function tR(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(tR,"race")});var Rn=R((VF,Ig)=>{"use strict";var kd=null;typeof Promise<"u"?kd=Promise:kd=Cg();Ig.exports={Promise:kd}});var Pg=R(Og=>{(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"?Og:global:self)});var le=R(pe=>{"use strict";var Nr=hr(),rR=vd(),An=Ka(),Td=Rn();Pg();function iR(e){var t=null;return Nr.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),al(e,t)}n(iR,"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 to(e){return e}n(to,"identity");function al(e,t){for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)&255;return t}n(al,"stringToArrayLike");var nl={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 Nr.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return Nr.nodebuffer&&String.fromCharCode.apply(null,An.allocBuffer(1)).length===1}catch{return!1}}()}};function ro(e){var t=65536,r=pe.getTypeOf(e),i=!0;if(r==="uint8array"?i=nl.applyCanBeUsed.uint8array:r==="nodebuffer"&&(i=nl.applyCanBeUsed.nodebuffer),i)for(;t>1;)try{return nl.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return nl.stringifyByChar(e)}n(ro,"arrayLikeToString");pe.applyFromCharCode=ro;function ol(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}n(ol,"arrayLikeToArrayLike");var Wr={};Wr.string={string:to,array:n(function(e){return al(e,new Array(e.length))},"array"),arraybuffer:n(function(e){return Wr.string.uint8array(e).buffer},"arraybuffer"),uint8array:n(function(e){return al(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:n(function(e){return al(e,An.allocBuffer(e.length))},"nodebuffer")};Wr.array={string:ro,array:to,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 ro(new Uint8Array(e))},"string"),array:n(function(e){return ol(new Uint8Array(e),new Array(e.byteLength))},"array"),arraybuffer:to,uint8array:n(function(e){return new Uint8Array(e)},"uint8array"),nodebuffer:n(function(e){return An.newBufferFrom(new Uint8Array(e))},"nodebuffer")};Wr.uint8array={string:ro,array:n(function(e){return ol(e,new Array(e.length))},"array"),arraybuffer:n(function(e){return e.buffer},"arraybuffer"),uint8array:to,nodebuffer:n(function(e){return An.newBufferFrom(e)},"nodebuffer")};Wr.nodebuffer={string:ro,array:n(function(e){return ol(e,new Array(e.length))},"array"),arraybuffer:n(function(e){return Wr.nodebuffer.uint8array(e).buffer},"arraybuffer"),uint8array:n(function(e){return ol(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:to};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(Nr.nodebuffer&&An.isBuffer(e))return"nodebuffer";if(Nr.uint8array&&e instanceof Uint8Array)return"uint8array";if(Nr.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer"};pe.checkSupport=function(e){var t=Nr[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=Td.Promise.resolve(t).then(function(l){var d=Nr.blob&&(l instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(l))!==-1);return d&&typeof FileReader<"u"?new Td.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=rR.decode(l):r&&i!==!0&&(l=iR(l))),l):Td.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((e8,Dg)=>{"use strict";function Bg(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(Bg,"GenericWorker");Bg.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")};Dg.exports=Bg});var In=R(jr=>{"use strict";var Cn=le(),Ei=hr(),nR=Ka(),sl=Ye(),io=new Array(256);for(pr=0;pr<256;pr++)io[pr]=pr>=252?6:pr>=248?5:pr>=240?4:pr>=224?3:pr>=192?2:1;var pr;io[254]=io[254]=1;var aR=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"),oR=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+io[e[r]]>t?r:t},"utf8border"),sR=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=io[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?nR.newBufferFrom(t,"utf-8"):aR(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),sR(t))},"utf8decode");function ll(){sl.call(this,"utf-8 decode"),this.leftOver=null}n(ll,"Utf8DecodeWorker");Cn.inherits(ll,sl);ll.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=oR(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})};ll.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:jr.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};jr.Utf8DecodeWorker=ll;function Rd(){sl.call(this,"utf-8 encode")}n(Rd,"Utf8EncodeWorker");Cn.inherits(Rd,sl);Rd.prototype.processChunk=function(e){this.push({data:jr.utf8encode(e.data),meta:e.meta})};jr.Utf8EncodeWorker=Rd});var qg=R((n8,zg)=>{"use strict";var Fg=Ye(),Lg=le();function Ad(e){Fg.call(this,"ConvertWorker to "+e),this.destType=e}n(Ad,"ConvertWorker");Lg.inherits(Ad,Fg);Ad.prototype.processChunk=function(e){this.push({data:Lg.transformTo(this.destType,e.data),meta:e.meta})};zg.exports=Ad});var Ng=R((o8,Ug)=>{"use strict";var Mg=pd().Readable,lR=le();lR.inherits(Cd,Mg);function Cd(e,t,r){Mg.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(Cd,"NodejsStreamOutputAdapter");Cd.prototype._read=function(){this._helper.resume()};Ug.exports=Cd});var Id=R((l8,Zg)=>{"use strict";var ki=le(),fR=qg(),uR=Ye(),dR=vd(),cR=hr(),hR=Rn(),Wg=null;if(cR.nodestream)try{Wg=Ng()}catch{}function pR(e,t,r){switch(e){case"blob":return ki.newBlob(ki.transformTo("arraybuffer",t),r);case"base64":return dR.encode(t);default:return ki.transformTo(e,t)}}n(pR,"transformZipOutput");function _R(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(_R,"concat");function mR(e,t){return new hR.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=pR(l,_R(s,a),d);r(p)}catch(u){i(u)}a=[]}).resume()})}n(mR,"accumulate");function jg(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 fR(i)),e.lock()}catch(a){this._worker=new uR("error"),this._worker.error(a)}}n(jg,"StreamHelper");jg.prototype={accumulate:n(function(e){return mR(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 Wg(this,{objectMode:this._outputType!=="nodebuffer"},e)},"toNodejsStream")};Zg.exports=jg});var Od=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 Pd=R((d8,Hg)=>{"use strict";var fl=le(),ul=Ye(),gR=16*1024;function On(e){ul.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=fl.getTypeOf(r),t.isPaused||t._tickAndRepeat()},function(r){t.error(r)})}n(On,"DataWorker");fl.inherits(On,ul);On.prototype.cleanUp=function(){ul.prototype.cleanUp.call(this),this.data=null};On.prototype.resume=function(){return ul.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,fl.delay(this._tickAndRepeat,[],this)),!0):!1};On.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(fl.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};On.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=gR,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}})};Hg.exports=On});var dl=R((h8,Yg)=>{"use strict";var vR=le();function bR(){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(bR,"makeTable");var $g=bR();function yR(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(yR,"crc32");function wR(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(wR,"crc32str");Yg.exports=n(function(t,r){if(typeof t>"u"||!t.length)return 0;var i=vR.getTypeOf(t)!=="string";return i?yR(r|0,t,t.length,0):wR(r|0,t,t.length,0)},"crc32wrapper")});var Dd=R((_8,Vg)=>{"use strict";var Gg=Ye(),SR=dl(),xR=le();function Bd(){Gg.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n(Bd,"Crc32Probe");xR.inherits(Bd,Gg);Bd.prototype.processChunk=function(e){this.streamInfo.crc32=SR(e.data,this.streamInfo.crc32||0),this.push(e)};Vg.exports=Bd});var Xg=R((g8,Kg)=>{"use strict";var ER=le(),Fd=Ye();function Ld(e){Fd.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n(Ld,"DataLengthProbe");ER.inherits(Ld,Fd);Ld.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}Fd.prototype.processChunk.call(this,e)};Kg.exports=Ld});var cl=R((b8,e0)=>{"use strict";var Jg=Rn(),Qg=Pd(),kR=Dd(),zd=Xg();function qd(e,t,r,i,a){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=a}n(qd,"CompressedObject");qd.prototype={getContentWorker:n(function(){var e=new Qg(Jg.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new zd("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 Qg(Jg.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)},"getCompressedWorker")};qd.createWorkerFrom=function(e,t,r){return e.pipe(new kR).pipe(new zd("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new zd("compressedSize")).withStreamInfo("compression",t)};e0.exports=qd});var n0=R((w8,i0)=>{"use strict";var TR=Id(),RR=Pd(),Md=In(),Ud=cl(),t0=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 Md.Utf8EncodeWorker)),!a&&i&&(t=t.pipe(new Md.Utf8DecodeWorker))}catch(s){t=new t0("error"),t.error(s)}return new TR(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 Ud&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new Md.Utf8EncodeWorker)),Ud.createWorkerFrom(r,e,t)},"_compressWorker"),_decompressWorker:n(function(){return this._data instanceof Ud?this._data.getContentWorker():this._data instanceof t0?this._data:new RR(this._data)},"_decompressWorker")};var r0=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],AR=n(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"removedFn");for(hl=0;hl<r0.length;hl++)Nd.prototype[r0[hl]]=AR;var hl;i0.exports=Nd});var _r=R(Ie=>{"use strict";var CR=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function IR(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n(IR,"_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)IR(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 OR={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")},PR={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,OR)):(Ie.Buf8=Array,Ie.Buf16=Array,Ie.Buf32=Array,Ie.assign(Ie,PR))};Ie.setTyped(CR)});var R0=R(Dn=>{"use strict";var BR=_r(),DR=4,a0=0,o0=1,FR=2;function Bn(e){for(var t=e.length;--t>=0;)e[t]=0}n(Bn,"zero");var LR=0,c0=1,zR=2,qR=3,MR=258,Gd=29,fo=256,ao=fo+1+Gd,Pn=30,Vd=19,h0=2*ao+1,Ti=15,Wd=16,UR=7,Kd=256,p0=16,_0=17,m0=18,$d=[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],pl=[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],NR=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],g0=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],WR=512,mr=new Array((ao+2)*2);Bn(mr);var no=new Array(Pn*2);Bn(no);var oo=new Array(WR);Bn(oo);var so=new Array(MR-qR+1);Bn(so);var Xd=new Array(Gd);Bn(Xd);var _l=new Array(Pn);Bn(_l);function jd(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(jd,"StaticTreeDesc");var v0,b0,y0;function Zd(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}n(Zd,"TreeDesc");function w0(e){return e<256?oo[e]:oo[256+(e>>>7)]}n(w0,"d_code");function lo(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}n(lo,"put_short");function qe(e,t,r){e.bi_valid>Wd-r?(e.bi_buf|=t<<e.bi_valid&65535,lo(e,e.bi_buf),e.bi_buf=t>>Wd-e.bi_valid,e.bi_valid+=r-Wd):(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 S0(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}n(S0,"bi_reverse");function jR(e){e.bi_valid===16?(lo(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(jR,"bi_flush");function ZR(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<h0;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(ZR,"gen_bitlen");function x0(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]=S0(i[d]++,d))}}n(x0,"gen_codes");function HR(){var e,t,r,i,a,s=new Array(Ti+1);for(r=0,i=0;i<Gd-1;i++)for(Xd[i]=r,e=0;e<1<<$d[i];e++)so[r++]=i;for(so[r-1]=i,a=0,i=0;i<16;i++)for(_l[i]=a,e=0;e<1<<pl[i];e++)oo[a++]=i;for(a>>=7;i<Pn;i++)for(_l[i]=a<<7,e=0;e<1<<pl[i]-7;e++)oo[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(x0(mr,ao+1,s),e=0;e<Pn;e++)no[e*2+1]=5,no[e*2]=S0(e,5);v0=new jd(mr,$d,fo+1,ao,Ti),b0=new jd(no,pl,0,Pn,Ti),y0=new jd(new Array(0),NR,0,Vd,UR)}n(HR,"tr_static_init");function E0(e){var t;for(t=0;t<ao;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Pn;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Vd;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Kd*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}n(E0,"init_block");function k0(e){e.bi_valid>8?lo(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(k0,"bi_windup");function $R(e,t,r,i){k0(e),i&&(lo(e,r),lo(e,~r)),BR.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}n($R,"copy_block");function s0(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(s0,"smaller");function Hd(e,t,r){for(var i=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&s0(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!s0(t,i,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=i}n(Hd,"pqdownheap");function l0(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=so[a],Wt(e,l+fo+1,t),d=$d[l],d!==0&&(a-=Xd[l],qe(e,a,d)),i--,l=w0(i),Wt(e,l,r),d=pl[l],d!==0&&(i-=_l[l],qe(e,i,d)));while(s<e.last_lit);Wt(e,Kd,t)}n(l0,"compress_block");function Yd(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=h0,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--)Hd(e,r,l);u=s;do l=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Hd(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++,Hd(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],ZR(e,t),x0(r,p,e.bl_count)}n(Yd,"build_tree");function f0(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[p0*2]++):d<=10?e.bl_tree[_0*2]++:e.bl_tree[m0*2]++,d=0,a=s,l===0?(p=138,u=3):s===l?(p=6,u=3):(p=7,u=4))}n(f0,"scan_tree");function u0(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,p0,e.bl_tree),qe(e,d-3,2)):d<=10?(Wt(e,_0,e.bl_tree),qe(e,d-3,3)):(Wt(e,m0,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(u0,"send_tree");function YR(e){var t;for(f0(e,e.dyn_ltree,e.l_desc.max_code),f0(e,e.dyn_dtree,e.d_desc.max_code),Yd(e,e.bl_desc),t=Vd-1;t>=3&&e.bl_tree[g0[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}n(YR,"build_bl_tree");function GR(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[g0[a]*2+1],3);u0(e,e.dyn_ltree,t-1),u0(e,e.dyn_dtree,r-1)}n(GR,"send_all_trees");function VR(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return a0;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return o0;for(r=32;r<fo;r++)if(e.dyn_ltree[r*2]!==0)return o0;return a0}n(VR,"detect_data_type");var d0=!1;function KR(e){d0||(HR(),d0=!0),e.l_desc=new Zd(e.dyn_ltree,v0),e.d_desc=new Zd(e.dyn_dtree,b0),e.bl_desc=new Zd(e.bl_tree,y0),e.bi_buf=0,e.bi_valid=0,E0(e)}n(KR,"_tr_init");function T0(e,t,r,i){qe(e,(LR<<1)+(i?1:0),3),$R(e,t,r,!0)}n(T0,"_tr_stored_block");function XR(e){qe(e,c0<<1,3),Wt(e,Kd,mr),jR(e)}n(XR,"_tr_align");function JR(e,t,r,i){var a,s,l=0;e.level>0?(e.strm.data_type===FR&&(e.strm.data_type=VR(e)),Yd(e,e.l_desc),Yd(e,e.d_desc),l=YR(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?T0(e,t,r,i):e.strategy===DR||s===a?(qe(e,(c0<<1)+(i?1:0),3),l0(e,mr,no)):(qe(e,(zR<<1)+(i?1:0),3),GR(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),l0(e,e.dyn_ltree,e.dyn_dtree)),E0(e),i&&k0(e)}n(JR,"_tr_flush_block");function QR(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[(so[r]+fo+1)*2]++,e.dyn_dtree[w0(t)*2]++),e.last_lit===e.lit_bufsize-1}n(QR,"_tr_tally");Dn._tr_init=KR;Dn._tr_stored_block=T0;Dn._tr_flush_block=JR;Dn._tr_tally=QR;Dn._tr_align=XR});var Jd=R((R8,A0)=>{"use strict";function eA(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(eA,"adler32");A0.exports=eA});var Qd=R((C8,C0)=>{"use strict";function tA(){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(tA,"makeTable");var rA=tA();function iA(e,t,r,i){var a=rA,s=i+r;e^=-1;for(var l=i;l<s;l++)e=e>>>8^a[(e^t[l])&255];return e^-1}n(iA,"crc32");C0.exports=iA});var ml=R((O8,I0)=>{"use strict";I0.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 M0=R(Ht=>{"use strict";var Oe=_r(),at=R0(),D0=Jd(),Zr=Qd(),nA=ml(),Ii=0,aA=1,oA=3,Vr=4,O0=5,Zt=0,P0=1,ot=-2,sA=-3,ec=-5,lA=-1,fA=1,gl=2,uA=3,dA=4,cA=0,hA=2,wl=8,pA=9,_A=15,mA=8,gA=29,vA=256,rc=vA+1+gA,bA=30,yA=19,wA=2*rc+1,SA=15,Z=3,Yr=258,xt=Yr+Z+1,xA=32,Sl=42,ic=69,vl=73,bl=91,yl=103,Ri=113,co=666,ge=1,ho=2,Ai=3,zn=4,EA=3;function Gr(e,t){return e.msg=nA[t],t}n(Gr,"err");function B0(e){return(e<<1)-(e>4?9:0)}n(B0,"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 uo(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}n(uo,"putShortMSB");function kA(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=D0(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(kA,"read_buf");function F0(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(F0,"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=kA(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 TA(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(TA,"deflate_stored");function tc(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=F0(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:ho}n(tc,"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=F0(e,r),e.match_length<=5&&(e.strategy===fA||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:ho}n(Fn,"deflate_slow");function RA(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:ho}n(RA,"deflate_rle");function AA(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:ho}n(AA,"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,TA),new jt(4,4,8,4,tc),new jt(4,5,16,8,tc),new jt(4,6,32,32,tc),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 CA(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(CA,"lm_init");function IA(){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=wl,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(wA*2),this.dyn_dtree=new Oe.Buf16((2*bA+1)*2),this.bl_tree=new Oe.Buf16((2*yA+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(SA+1),this.heap=new Oe.Buf16(2*rc+1),$r(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Oe.Buf16(2*rc+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(IA,"DeflateState");function L0(e){var t;return!e||!e.state?Gr(e,ot):(e.total_in=e.total_out=0,e.data_type=hA,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?Sl:Ri,e.adler=t.wrap===2?0:1,t.last_flush=Ii,at._tr_init(t),Zt)}n(L0,"deflateResetKeep");function z0(e){var t=L0(e);return t===Zt&&CA(e.state),t}n(z0,"deflateReset");function OA(e,t){return!e||!e.state||e.state.wrap!==2?ot:(e.state.gzhead=t,Zt)}n(OA,"deflateSetHeader");function q0(e,t,r,i,a,s){if(!e)return ot;var l=1;if(t===lA&&(t=6),i<0?(l=0,i=-i):i>15&&(l=2,i-=16),a<1||a>pA||r!==wl||i<8||i>15||t<0||t>9||s<0||s>dA)return Gr(e,ot);i===8&&(i=9);var d=new IA;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,z0(e)}n(q0,"deflateInit2");function PA(e,t){return q0(e,t,wl,_A,mA,cA)}n(PA,"deflateInit");function BA(e,t){var r,i,a,s;if(!e||!e.state||t>O0||t<0)return e?Gr(e,ot):ot;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===co&&t!==Vr)return Gr(e,e.avail_out===0?ec:ot);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===Sl)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>=gl||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=ic):($(i,0),$(i,0),$(i,0),$(i,0),$(i,0),$(i,i.level===9?2:i.strategy>=gl||i.level<2?4:0),$(i,EA),i.status=Ri);else{var l=wl+(i.w_bits-8<<4)<<8,d=-1;i.strategy>=gl||i.level<2?d=0:i.level<6?d=1:i.level===6?d=2:d=3,l|=d<<6,i.strstart!==0&&(l|=xA),l+=31-l%31,i.status=Ri,uo(i,l),i.strstart!==0&&(uo(i,e.adler>>>16),uo(i,e.adler&65535)),e.adler=1}if(i.status===ic)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=vl)}else i.status=vl;if(i.status===vl)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=bl)}else i.status=bl;if(i.status===bl)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=yl)}else i.status=yl;if(i.status===yl&&(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&&B0(t)<=B0(r)&&t!==Vr)return Gr(e,ec);if(i.status===co&&e.avail_in!==0)return Gr(e,ec);if(e.avail_in!==0||i.lookahead!==0||t!==Ii&&i.status!==co){var p=i.strategy===gl?AA(i,t):i.strategy===uA?RA(i,t):Ln[i.level].func(i,t);if((p===Ai||p===zn)&&(i.status=co),p===ge||p===Ai)return e.avail_out===0&&(i.last_flush=-1),Zt;if(p===ho&&(t===aA?at._tr_align(i):t!==O0&&(at._tr_stored_block(i,0,0,!1),t===oA&&($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?P0:(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)):(uo(i,e.adler>>>16),uo(i,e.adler&65535)),Hr(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Zt:P0)}n(BA,"deflate");function DA(e){var t;return!e||!e.state?ot:(t=e.state.status,t!==Sl&&t!==ic&&t!==vl&&t!==bl&&t!==yl&&t!==Ri&&t!==co?Gr(e,ot):(e.state=null,t===Ri?Gr(e,sA):Zt))}n(DA,"deflateEnd");function FA(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!==Sl||i.lookahead))return ot;for(l===1&&(e.adler=D0(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(FA,"deflateSetDictionary");Ht.deflateInit=PA;Ht.deflateInit2=q0;Ht.deflateReset=z0;Ht.deflateResetKeep=L0;Ht.deflateSetHeader=OA;Ht.deflate=BA;Ht.deflateEnd=DA;Ht.deflateSetDictionary=FA;Ht.deflateInfo="pako deflate (from Nodeca project)"});var nc=R(qn=>{"use strict";var xl=_r(),U0=!0,N0=!0;try{String.fromCharCode.apply(null,[0])}catch{U0=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{N0=!1}var po=new xl.Buf8(256);for(gr=0;gr<256;gr++)po[gr]=gr>=252?6:gr>=248?5:gr>=240?4:gr>=224?3:gr>=192?2:1;var gr;po[254]=po[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 xl.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 W0(e,t){if(t<65534&&(e.subarray&&N0||!e.subarray&&U0))return String.fromCharCode.apply(null,xl.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}n(W0,"buf2binstring");qn.buf2binstring=function(e){return W0(e,e.length)};qn.binstring2buf=function(e){for(var t=new xl.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=po[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 W0(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+po[e[r]]>t?r:t}});var ac=R((L8,j0)=>{"use strict";function LA(){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(LA,"ZStream");j0.exports=LA});var Y0=R(go=>{"use strict";var _o=M0(),mo=_r(),sc=nc(),lc=ml(),zA=ac(),$0=Object.prototype.toString,qA=0,oc=4,Mn=0,Z0=1,H0=2,MA=-1,UA=0,NA=8;function Oi(e){if(!(this instanceof Oi))return new Oi(e);this.options=mo.assign({level:MA,method:NA,chunkSize:16384,windowBits:15,memLevel:8,strategy:UA,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 zA,this.strm.avail_out=0;var r=_o.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Mn)throw new Error(lc[r]);if(t.header&&_o.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=sc.string2buf(t.dictionary):$0.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=_o.deflateSetDictionary(this.strm,i),r!==Mn)throw new Error(lc[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?oc:qA,typeof e=="string"?r.input=sc.string2buf(e):$0.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 mo.Buf8(i),r.next_out=0,r.avail_out=i),a=_o.deflate(r,s),a!==Z0&&a!==Mn)return this.onEnd(a),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(s===oc||s===H0))&&(this.options.to==="string"?this.onData(sc.buf2binstring(mo.shrinkBuf(r.output,r.next_out))):this.onData(mo.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&a!==Z0);return s===oc?(a=_o.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Mn):(s===H0&&(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=mo.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function fc(e,t){var r=new Oi(t);if(r.push(e,!0),r.err)throw r.msg||lc[r.err];return r.result}n(fc,"deflate");function WA(e,t){return t=t||{},t.raw=!0,fc(e,t)}n(WA,"deflateRaw");function jA(e,t){return t=t||{},t.gzip=!0,fc(e,t)}n(jA,"gzip");go.Deflate=Oi;go.deflate=fc;go.deflateRaw=WA;go.gzip=jA});var V0=R((U8,G0)=>{"use strict";var El=30,ZA=12;G0.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,D,B,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(D=w&65535,S&=15,A<S&&(b+=z[a++]<<A,A+=8,A<S&&(b+=z[a++]<<A,A+=8)),D+=b&(1<<S)-1,D>u){t.msg="invalid distance too far back",i.mode=El;break e}if(b>>>=S,A-=S,S=l-d,D>S){if(S=D-S,S>E&&i.sane){t.msg="invalid distance too far back",i.mode=El;break e}if(B=0,F=g,m===0){if(B+=c-S,S<P){P-=S;do O[l++]=g[B++];while(--S);B=l-D,F=O}}else if(m<S){if(B+=c+m-S,S-=m,S<P){P-=S;do O[l++]=g[B++];while(--S);if(B=0,m<P){S=m,P-=S;do O[l++]=g[B++];while(--S);B=l-D,F=O}}}else if(B+=m-S,S<P){P-=S;do O[l++]=g[B++];while(--S);B=l-D,F=O}for(;P>2;)O[l++]=F[B++],O[l++]=F[B++],O[l++]=F[B++],P-=3;P&&(O[l++]=F[B++],P>1&&(O[l++]=F[B++]))}else{B=l-D;do O[l++]=O[B++],O[l++]=O[B++],O[l++]=O[B++],P-=3;while(P>2);P&&(O[l++]=O[B++],P>1&&(O[l++]=O[B++]))}}else if(S&64){t.msg="invalid distance code",i.mode=El;break e}else{w=y[(w&65535)+(b&(1<<S)-1)];continue r}break}}else if(S&64)if(S&32){i.mode=ZA;break e}else{t.msg="invalid literal/length code",i.mode=El;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 rv=R((W8,tv)=>{"use strict";var K0=_r(),Un=15,X0=852,J0=592,Q0=0,uc=1,ev=2,HA=[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],$A=[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],YA=[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],GA=[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];tv.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,D,B,F=null,z=0,O,G=new K0.Buf16(Un+1),se=new K0.Buf16(Un+1),De=null,er=0,Ir,ht,Ue;for(c=0;c<=Un;c++)G[c]=0;for(E=0;E<a;E++)G[r[i+E]]++;for(b=u,g=Un;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<=Un;c++)if(y<<=1,y-=G[c],y<0)return-1;if(y>0&&(t===Q0||g!==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===Q0?(F=De=d,O=19):t===uc?(F=HA,z-=257,De=$A,er-=257,O=256):(F=YA,De=GA,O=-1),C=0,E=0,c=m,B=l,A=b,T=0,P=-1,x=1<<b,D=x-1,t===uc&&x>X0||t===ev&&x>J0)return 1;for(;;){Ir=c-T,d[E]<O?(ht=0,Ue=d[E]):d[E]>O?(ht=De[er+d[E]],Ue=F[z+d[E]]):(ht=96,Ue=0),w=1<<c-T,S=1<<A,m=S;do S-=w,s[B+(C>>T)+S]=Ir<<24|ht<<16|Ue|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&D)!==P){for(T===0&&(T=b),B+=m,A=c-T,y=1<<A;A+T<g&&(y-=G[A+T],!(y<=0));)A++,y<<=1;if(x+=1<<A,t===uc&&x>X0||t===ev&&x>J0)return 1;P=C&D,s[P]=b<<24|A<<16|B-l|0}}return C!==0&&(s[B+C]=c-T<<24|64<<16|0),p.bits=b,0},"inflate_table")});var zv=R(Et=>{"use strict";var Ge=_r(),mc=Jd(),$t=Qd(),VA=V0(),vo=rv(),KA=0,Av=1,Cv=2,iv=4,XA=5,kl=6,Pi=0,JA=1,QA=2,st=-2,Iv=-3,gc=-4,eC=-5,nv=8,Ov=1,av=2,ov=3,sv=4,lv=5,fv=6,uv=7,dv=8,cv=9,hv=10,Al=11,vr=12,dc=13,pv=14,cc=15,_v=16,mv=17,gv=18,vv=19,Tl=20,Rl=21,bv=22,yv=23,wv=24,Sv=25,xv=26,hc=27,Ev=28,kv=29,ae=30,vc=31,tC=32,rC=852,iC=592,nC=15,aC=nC;function Tv(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}n(Tv,"zswap32");function oC(){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(oC,"InflateState");function Pv(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=Ov,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(rC),t.distcode=t.distdyn=new Ge.Buf32(iC),t.sane=1,t.back=-1,Pi)}n(Pv,"inflateResetKeep");function Bv(e){var t;return!e||!e.state?st:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Pv(e))}n(Bv,"inflateReset");function Dv(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,Bv(e))}n(Dv,"inflateReset2");function Fv(e,t){var r,i;return e?(i=new oC,e.state=i,i.window=null,r=Dv(e,t),r!==Pi&&(e.state=null),r):st}n(Fv,"inflateInit2");function sC(e){return Fv(e,aC)}n(sC,"inflateInit");var Rv=!0,pc,_c;function lC(e){if(Rv){var t;for(pc=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(vo(Av,e.lens,0,288,pc,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;vo(Cv,e.lens,0,32,_c,0,e.work,{bits:5}),Rv=!1}e.lencode=pc,e.lenbits=9,e.distcode=_c,e.distbits=5}n(lC,"fixedtables");function Lv(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(Lv,"updatewindow");function fC(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,D,B,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=dc),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,B=Pi;e:for(;;)switch(r.mode){case Ov:if(r.wrap===0){r.mode=dc;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=av;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)!==nv){e.msg="unknown compression method",r.mode=ae;break}if(u>>>=4,c-=4,D=(u&15)+8,r.wbits===0)r.wbits=D;else if(D>r.wbits){e.msg="invalid window size",r.mode=ae;break}r.dmax=1<<D,e.adler=r.check=1,r.mode=u&512?hv:vr,u=0,c=0;break;case av:for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(r.flags=u,(r.flags&255)!==nv){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=ov;case ov: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=sv;case sv: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=lv;case lv: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=fv;case fv:if(r.flags&1024&&(g=r.length,g>d&&(g=d),g&&(r.head&&(D=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,D)),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=uv;case uv:if(r.flags&2048){if(d===0)break e;g=0;do D=i[s+g++],r.head&&D&&r.length<65536&&(r.head.name+=String.fromCharCode(D));while(D&&g<d);if(r.flags&512&&(r.check=$t(r.check,i,g,s)),d-=g,s+=g,D)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=dv;case dv:if(r.flags&4096){if(d===0)break e;g=0;do D=i[s+g++],r.head&&D&&r.length<65536&&(r.head.comment+=String.fromCharCode(D));while(D&&g<d);if(r.flags&512&&(r.check=$t(r.check,i,g,s)),d-=g,s+=g,D)break e}else r.head&&(r.head.comment=null);r.mode=cv;case cv: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 hv:for(;c<32;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}e.adler=r.check=Tv(u),u=0,c=0,r.mode=Al;case Al: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,QA;e.adler=r.check=1,r.mode=vr;case vr:if(t===XA||t===kl)break e;case dc:if(r.last){u>>>=c&7,c-=c&7,r.mode=hc;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=pv;break;case 1:if(lC(r),r.mode=Tl,t===kl){u>>>=2,c-=2;break e}break;case 2:r.mode=mv;break;case 3:e.msg="invalid block type",r.mode=ae}u>>>=2,c-=2;break;case pv: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=cc,t===kl)break e;case cc:r.mode=_v;case _v: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 mv: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=gv;case gv: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},B=vo(KA,r.lens,0,19,r.lencode,0,r.work,z),r.lenbits=z.bits,B){e.msg="invalid code lengths set",r.mode=ae;break}r.have=0,r.mode=vv;case vv: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}D=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,D=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,D=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++]=D}}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},B=vo(Av,r.lens,0,r.nlen,r.lencode,0,r.work,z),r.lenbits=z.bits,B){e.msg="invalid literal/lengths set",r.mode=ae;break}if(r.distbits=6,r.distcode=r.distdyn,z={bits:r.distbits},B=vo(Cv,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,z),r.distbits=z.bits,B){e.msg="invalid distances set",r.mode=ae;break}if(r.mode=Tl,t===kl)break e;case Tl:r.mode=Rl;case Rl: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,VA(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=xv;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=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.length+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=yv;case yv: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=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.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=Sv;case Sv: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=Rl);break;case xv:if(p===0)break e;a[l++]=r.length,p--,r.mode=Rl;break;case hc: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):mc(r.check,a,m,l-m)),m=p,(r.flags?u:Tv(u))!==r.check){e.msg="incorrect data check",r.mode=ae;break}u=0,c=0}r.mode=Ev;case Ev: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=kv;case kv:B=JA;break e;case ae:B=Iv;break e;case vc:return gc;case tC: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<hc||t!==iv))&&Lv(e,e.output,e.next_out,m-e.avail_out)?(r.mode=vc,gc):(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):mc(r.check,a,m,e.next_out-m)),e.data_type=r.bits+(r.last?64:0)+(r.mode===vr?128:0)+(r.mode===Tl||r.mode===cc?256:0),(E===0&&m===0||t===iv)&&B===Pi&&(B=eC),B)}n(fC,"inflate");function uC(e){if(!e||!e.state)return st;var t=e.state;return t.window&&(t.window=null),e.state=null,Pi}n(uC,"inflateEnd");function dC(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?st:(r.head=t,t.done=!1,Pi)}n(dC,"inflateGetHeader");function cC(e,t){var r=t.length,i,a,s;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==Al)?st:i.mode===Al&&(a=1,a=mc(a,t,r,0),a!==i.check)?Iv:(s=Lv(e,t,r,r),s?(i.mode=vc,gc):(i.havedict=1,Pi))}n(cC,"inflateSetDictionary");Et.inflateReset=Bv;Et.inflateReset2=Dv;Et.inflateResetKeep=Pv;Et.inflateInit=sC;Et.inflateInit2=Fv;Et.inflate=fC;Et.inflateEnd=uC;Et.inflateGetHeader=dC;Et.inflateSetDictionary=cC;Et.inflateInfo="pako inflate (from Nodeca project)"});var bc=R(($8,qv)=>{"use strict";qv.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 Uv=R((Y8,Mv)=>{"use strict";function hC(){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(hC,"GZheader");Mv.exports=hC});var Wv=R(yo=>{"use strict";var Nn=zv(),bo=_r(),Cl=nc(),de=bc(),yc=ml(),pC=ac(),_C=Uv(),Nv=Object.prototype.toString;function Bi(e){if(!(this instanceof Bi))return new Bi(e);this.options=bo.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 pC,this.strm.avail_out=0;var r=Nn.inflateInit2(this.strm,t.windowBits);if(r!==de.Z_OK)throw new Error(yc[r]);if(this.header=new _C,Nn.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Cl.string2buf(t.dictionary):Nv.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Nn.inflateSetDictionary(this.strm,t.dictionary),r!==de.Z_OK)))throw new Error(yc[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=Cl.binstring2buf(e):Nv.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),s=Nn.inflate(r,de.Z_NO_FLUSH),s===de.Z_NEED_DICT&&a&&(s=Nn.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=Cl.utf8border(r.output,r.next_out),p=r.next_out-d,u=Cl.buf2string(r.output,d),r.next_out=p,r.avail_out=i-p,p&&bo.arraySet(r.output,r.output,d,p,0),this.onData(u)):this.onData(bo.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=Nn.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=bo.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function wc(e,t){var r=new Bi(t);if(r.push(e,!0),r.err)throw r.msg||yc[r.err];return r.result}n(wc,"inflate");function mC(e,t){return t=t||{},t.raw=!0,wc(e,t)}n(mC,"inflateRaw");yo.Inflate=Bi;yo.inflate=wc;yo.inflateRaw=mC;yo.ungzip=wc});var Hv=R((X8,Zv)=>{"use strict";var gC=_r().assign,vC=Y0(),bC=Wv(),yC=bc(),jv={};gC(jv,vC,bC,yC);Zv.exports=jv});var Yv=R(Ol=>{"use strict";var wC=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",SC=Hv(),$v=le(),Il=Ye(),xC=wC?"uint8array":"array";Ol.magic="\b\0";function Di(e,t){Il.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n(Di,"FlateWorker");$v.inherits(Di,Il);Di.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push($v.transformTo(xC,e.data),!1)};Di.prototype.flush=function(){Il.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};Di.prototype.cleanUp=function(){Il.prototype.cleanUp.call(this),this._pako=null};Di.prototype._createPako=function(){this._pako=new SC[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};Ol.compressWorker=function(e){return new Di("Deflate",e)};Ol.uncompressWorker=function(){return new Di("Inflate",{})}});var xc=R(Sc=>{"use strict";var Gv=Ye();Sc.STORE={magic:"\0\0",compressWorker:n(function(){return new Gv("STORE compression")},"compressWorker"),uncompressWorker:n(function(){return new Gv("STORE decompression")},"uncompressWorker")};Sc.DEFLATE=Yv()});var Ec=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 Jv=R((iL,Xv)=>{"use strict";var Wn=le(),jn=Ye(),kc=In(),Vv=dl(),Pl=Ec(),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"),EC=n(function(e,t){var r=e;return e||(r=t?16893:33204),(r&65535)<<16},"generateUnixExternalFileAttr"),kC=n(function(e){return(e||0)&63},"generateDosExternalFileAttr"),Kv=n(function(e,t,r,i,a,s){var l=e.file,d=e.compression,p=s!==kc.utf8encode,u=Wn.transformTo("string",s(l.name)),c=Wn.transformTo("string",kc.utf8encode(l.name)),E=l.comment,m=Wn.transformTo("string",s(E)),g=Wn.transformTo("string",kc.utf8encode(E)),b=c.length!==l.name.length,A=g.length!==E.length,T,y,x="",C="",w="",S=l.dir,P=l.date,D={crc32:0,compressedSize:0,uncompressedSize:0};(!t||r)&&(D.crc32=e.crc32,D.compressedSize=e.compressedSize,D.uncompressedSize=e.uncompressedSize);var B=0;t&&(B|=8),!p&&(b||A)&&(B|=2048);var F=0,z=0;S&&(F|=16),a==="UNIX"?(z=798,F|=EC(l.unixPermissions,S)):(z=20,F|=kC(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(Vv(u),4)+c,x+="up"+te(C.length,2)+C),A&&(w=te(1,1)+te(Vv(m),4)+g,x+="uc"+te(w.length,2)+w);var O="";O+=`
|
|
13
|
-
\0`,O+=te(B,2),O+=d.magic,O+=te(T,2),O+=te(y,2),O+=te(D.crc32,4),O+=te(D.compressedSize,4),O+=te(D.uncompressedSize,4),O+=te(u.length,2),O+=te(x.length,2);var G=Pl.LOCAL_FILE_HEADER+O+u+x,se=Pl.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"),TC=n(function(e,t,r,i,a){var s="",l=Wn.transformTo("string",a(i));return s=Pl.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"),RC=n(function(e){var t="";return t=Pl.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=Kv(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=Kv(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:RC(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=TC(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()};Xv.exports=kt});var eb=R(Qv=>{"use strict";var AC=xc(),CC=Jv(),IC=n(function(e,t){var r=e||t,i=AC[r];if(!i)throw new Error(r+" is not a valid compression method !");return i},"getCompression");Qv.generateWorker=function(e,t,r){var i=new CC(t.streamFiles,r,t.platform,t.encodeFileName),a=0;try{e.forEach(function(s,l){a++;var d=IC(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 rb=R((sL,tb)=>{"use strict";var OC=le(),Bl=Ye();function wo(e,t){Bl.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n(wo,"NodejsStreamInputAdapter");OC.inherits(wo,Bl);wo.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()})};wo.prototype.pause=function(){return Bl.prototype.pause.call(this)?(this._stream.pause(),!0):!1};wo.prototype.resume=function(){return Bl.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};tb.exports=wo});var cb=R((fL,db)=>{"use strict";var PC=In(),So=le(),ob=Ye(),BC=Id(),sb=Od(),ib=cl(),DC=n0(),FC=eb(),nb=Ka(),LC=rb(),lb=n(function(e,t,r){var i=So.getTypeOf(t),a,s=So.extend(r||{},sb);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=fb(e)),s.createFolders&&(a=zC(e))&&ub.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 ib&&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 ib||t instanceof ob?p=t:nb.isNode&&nb.isStream(t)?p=new LC(e,t):p=So.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var u=new DC(e,p,s);this.files[e]=u},"fileAdd"),zC=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"),fb=n(function(e){return e.slice(-1)!=="/"&&(e+="/"),e},"forceTrailingSlash"),ub=n(function(e,t){return t=typeof t<"u"?t:sb.createFolders,e=fb(e),this.files[e]||lb.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},"folderAdd");function ab(e){return Object.prototype.toString.call(e)==="[object RegExp]"}n(ab,"isRegExp");var qC={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(ab(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,lb.call(this,e,t,r);return this},"file"),folder:n(function(e){if(!e)return this;if(ab(e))return this.filter(function(a,s){return s.dir&&e.test(a)});var t=this.root+e,r=ub.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=So.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:PC.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.");So.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=FC.generateWorker(this,r,i)}catch(a){t=new ob("error"),t.error(a)}return new BC(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")};db.exports=qC});var Tc=R((dL,pb)=>{"use strict";var MC=le();function hb(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}n(hb,"DataReader");hb.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 MC.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")};pb.exports=hb});var Rc=R((hL,mb)=>{"use strict";var _b=Tc(),UC=le();function Zn(e){_b.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}n(Zn,"ArrayReader");UC.inherits(Zn,_b);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};mb.exports=Zn});var bb=R((_L,vb)=>{"use strict";var gb=Tc(),NC=le();function Hn(e){gb.call(this,e)}n(Hn,"StringReader");NC.inherits(Hn,gb);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};vb.exports=Hn});var Cc=R((gL,wb)=>{"use strict";var yb=Rc(),WC=le();function Ac(e){yb.call(this,e)}n(Ac,"Uint8ArrayReader");WC.inherits(Ac,yb);Ac.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};wb.exports=Ac});var Eb=R((bL,xb)=>{"use strict";var Sb=Cc(),jC=le();function Ic(e){Sb.call(this,e)}n(Ic,"NodeBufferReader");jC.inherits(Ic,Sb);Ic.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};xb.exports=Ic});var Oc=R((wL,Tb)=>{"use strict";var Dl=le(),kb=hr(),ZC=Rc(),HC=bb(),$C=Eb(),YC=Cc();Tb.exports=function(e){var t=Dl.getTypeOf(e);return Dl.checkSupport(t),t==="string"&&!kb.uint8array?new HC(e):t==="nodebuffer"?new $C(e):kb.uint8array?new YC(Dl.transformTo("uint8array",e)):new ZC(Dl.transformTo("array",e))}});var Ib=R((SL,Cb)=>{"use strict";var Pc=Oc(),Kr=le(),GC=cl(),Rb=dl(),Fl=In(),Ll=xc(),VC=hr(),KC=0,XC=3,JC=n(function(e){for(var t in Ll)if(Object.prototype.hasOwnProperty.call(Ll,t)&&Ll[t].magic===e)return Ll[t];return null},"findCompression");function Ab(e,t){this.options=e,this.loadOptions=t}n(Ab,"ZipEntry");Ab.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=JC(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 GC(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===KC&&(this.dosPermissions=this.externalFileAttributes&63),e===XC&&(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=Pc(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=VC.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Fl.utf8decode(this.fileName),this.fileCommentStr=Fl.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=Pc(e.value);return t.readInt(1)!==1||Rb(this.fileName)!==t.readInt(4)?null:Fl.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodePath"),findExtraFieldUnicodeComment:n(function(){var e=this.extraFields[25461];if(e){var t=Pc(e.value);return t.readInt(1)!==1||Rb(this.fileComment)!==t.readInt(4)?null:Fl.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodeComment")};Cb.exports=Ab});var Bb=R((EL,Pb)=>{"use strict";var QC=Oc(),br=le(),Tt=Ec(),e2=Ib(),t2=hr();function Ob(e){this.files=[],this.loadOptions=e}n(Ob,"ZipEntries");Ob.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=t2.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 e2({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=QC(e)},"prepareReader"),load:n(function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()},"load")};Pb.exports=Ob});var Lb=R((TL,Fb)=>{"use strict";var Bc=le(),zl=Rn(),r2=In(),i2=Bb(),n2=Dd(),Db=Ka();function a2(e){return new zl.Promise(function(t,r){var i=e.decompressed.getContentWorker().pipe(new n2);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(a2,"checkEntryCRC32");Fb.exports=function(e,t){var r=this;return t=Bc.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:r2.utf8decode}),Db.isNode&&Db.isStream(e)?zl.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Bc.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(i){var a=new i2(t);return a.load(i),a}).then(n(function(a){var s=[zl.Promise.resolve(a)],l=a.files;if(t.checkCRC32)for(var d=0;d<l.length;d++)s.push(a2(l[d]));return zl.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=Bc.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 qb=R((AL,zb)=>{"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=cb();lt.prototype.loadAsync=Lb();lt.support=hr();lt.defaults=Od();lt.version="3.10.1";lt.loadAsync=function(e,t){return new lt().loadAsync(e,t)};lt.external=Rn();zb.exports=lt});var xo=R((BL,Fc)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Fc.exports={nextTick:o2}:Fc.exports=process;function o2(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(o2,"nextTick")});var jb=R((FL,Wb)=>{var s2={}.toString;Wb.exports=Array.isArray||function(e){return s2.call(e)=="[object Array]"}});var Lc=R((LL,Zb)=>{Zb.exports=require("stream")});var Eo=R((zc,$b)=>{var Ml=require("buffer"),yr=Ml.Buffer;function Hb(e,t){for(var r in e)t[r]=e[r]}n(Hb,"copyProps");yr.from&&yr.alloc&&yr.allocUnsafe&&yr.allocUnsafeSlow?$b.exports=Ml:(Hb(Ml,zc),zc.Buffer=$n);function $n(e,t,r){return yr(e,t,r)}n($n,"SafeBuffer");Hb(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 Ml.SlowBuffer(e)}});var Yn=R(Re=>{function l2(e){return Array.isArray?Array.isArray(e):Ul(e)==="[object Array]"}n(l2,"isArray");Re.isArray=l2;function f2(e){return typeof e=="boolean"}n(f2,"isBoolean");Re.isBoolean=f2;function u2(e){return e===null}n(u2,"isNull");Re.isNull=u2;function d2(e){return e==null}n(d2,"isNullOrUndefined");Re.isNullOrUndefined=d2;function c2(e){return typeof e=="number"}n(c2,"isNumber");Re.isNumber=c2;function h2(e){return typeof e=="string"}n(h2,"isString");Re.isString=h2;function p2(e){return typeof e=="symbol"}n(p2,"isSymbol");Re.isSymbol=p2;function _2(e){return e===void 0}n(_2,"isUndefined");Re.isUndefined=_2;function m2(e){return Ul(e)==="[object RegExp]"}n(m2,"isRegExp");Re.isRegExp=m2;function g2(e){return typeof e=="object"&&e!==null}n(g2,"isObject");Re.isObject=g2;function v2(e){return Ul(e)==="[object Date]"}n(v2,"isDate");Re.isDate=v2;function b2(e){return Ul(e)==="[object Error]"||e instanceof Error}n(b2,"isError");Re.isError=b2;function y2(e){return typeof e=="function"}n(y2,"isFunction");Re.isFunction=y2;function w2(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}n(w2,"isPrimitive");Re.isPrimitive=w2;Re.isBuffer=require("buffer").Buffer.isBuffer;function Ul(e){return Object.prototype.toString.call(e)}n(Ul,"objectToString")});var Yb=R((UL,qc)=>{typeof Object.create=="function"?qc.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"):qc.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((WL,Uc)=>{try{if(Mc=require("util"),typeof Mc.inherits!="function")throw"";Uc.exports=Mc.inherits}catch{Uc.exports=Yb()}var Mc});var Vb=R((jL,Nc)=>{"use strict";function S2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n(S2,"_classCallCheck");var Gb=Eo().Buffer,ko=require("util");function x2(e,t,r){e.copy(t,r)}n(x2,"copyBuffer");Nc.exports=function(){function e(){S2(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 Gb.alloc(0);for(var i=Gb.allocUnsafe(r>>>0),a=this.head,s=0;a;)x2(a.data,i,s),s+=a.data.length,a=a.next;return i},"concat"),e}();ko&&ko.inspect&&ko.inspect.custom&&(Nc.exports.prototype[ko.inspect.custom]=function(){var e=ko.inspect({length:this.length});return this.constructor.name+" "+e})});var Wc=R((HL,Kb)=>{"use strict";var Nl=xo();function E2(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,Nl.nextTick(Wl,this,e)):Nl.nextTick(Wl,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,Nl.nextTick(Wl,r,s)):Nl.nextTick(Wl,r,s):t&&t(s)}),this)}n(E2,"destroy");function k2(){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(k2,"undestroy");function Wl(e,t){e.emit("error",t)}n(Wl,"emitErrorNT");Kb.exports={destroy:E2,undestroy:k2}});var Jb=R((YL,Xb)=>{Xb.exports=require("util").deprecate});var Zc=R((GL,oy)=>{"use strict";var Li=xo();oy.exports=_e;function ey(e){var t=this;this.next=null,this.entry=null,this.finish=function(){j2(t,e)}}n(ey,"CorkedRequest");var T2=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Li.nextTick,Vn;_e.WritableState=Ro;var ty=Object.create(Yn());ty.inherits=Gn();var R2={deprecate:Jb()},ry=Lc(),Zl=Eo().Buffer,A2=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function C2(e){return Zl.from(e)}n(C2,"_uint8ArrayToBuffer");function I2(e){return Zl.isBuffer(e)||e instanceof A2}n(I2,"_isUint8Array");var iy=Wc();ty.inherits(_e,ry);function O2(){}n(O2,"nop");function Ro(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){q2(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 ey(this)}n(Ro,"WritableState");Ro.prototype.getBuffer=n(function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r},"getBuffer");(function(){try{Object.defineProperty(Ro.prototype,"buffer",{get:R2.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var jl;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(jl=Function.prototype[Symbol.hasInstance],Object.defineProperty(_e,Symbol.hasInstance,{value:n(function(e){return jl.call(this,e)?!0:this!==_e?!1:e&&e._writableState instanceof Ro},"value")})):jl=n(function(e){return e instanceof this},"realHasInstance");function _e(e){if(Vn=Vn||zi(),!jl.call(_e,this)&&!(this instanceof Vn))return new _e(e);this._writableState=new Ro(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)),ry.call(this)}n(_e,"Writable");_e.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function P2(e,t){var r=new Error("write after end");e.emit("error",r),Li.nextTick(t,r)}n(P2,"writeAfterEnd");function B2(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(B2,"validChunk");_e.prototype.write=function(e,t,r){var i=this._writableState,a=!1,s=!i.objectMode&&I2(e);return s&&!Zl.isBuffer(e)&&(e=C2(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=O2),i.ended?P2(this,r):(s||B2(this,i,e,r))&&(i.pendingcb++,a=F2(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&&ny(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 D2(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Zl.from(t,r)),t}n(D2,"decodeChunk");Object.defineProperty(_e.prototype,"writableHighWaterMark",{enumerable:!1,get:n(function(){return this._writableState.highWaterMark},"get")});function F2(e,t,r,i,a,s){if(!r){var l=D2(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 jc(e,t,!1,d,i,a,s);return p}n(F2,"writeOrBuffer");function jc(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(jc,"doWrite");function L2(e,t,r,i,a){--t.pendingcb,r?(Li.nextTick(a,i),Li.nextTick(To,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(a(i),e._writableState.errorEmitted=!0,e.emit("error",i),To(e,t))}n(L2,"onwriteError");function z2(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}n(z2,"onwriteStateUpdate");function q2(e,t){var r=e._writableState,i=r.sync,a=r.writecb;if(z2(r),t)L2(e,r,i,t,a);else{var s=ay(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&ny(e,r),i?T2(Qb,e,r,s,a):Qb(e,r,s,a)}}n(q2,"onwrite");function Qb(e,t,r,i){r||M2(e,t),t.pendingcb--,i(),To(e,t)}n(Qb,"afterWrite");function M2(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}n(M2,"onwriteDrain");function ny(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,jc(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 ey(t),t.bufferedRequestCount=0}else{for(;r;){var p=r.chunk,u=r.encoding,c=r.callback,E=t.objectMode?1:p.length;if(jc(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(ny,"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||W2(this,i,r)};function ay(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}n(ay,"needFinish");function U2(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),To(e,t)})}n(U2,"callFinal");function N2(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Li.nextTick(U2,e,t)):(t.prefinished=!0,e.emit("prefinish")))}n(N2,"prefinish");function To(e,t){var r=ay(t);return r&&(N2(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}n(To,"finishMaybe");function W2(e,t,r){t.ending=!0,To(e,t),r&&(t.finished?Li.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}n(W2,"endWritable");function j2(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(j2,"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=iy.destroy;_e.prototype._undestroy=iy.undestroy;_e.prototype._destroy=function(e,t){this.end(),t(e)}});var zi=R((KL,uy)=>{"use strict";var sy=xo(),Z2=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};uy.exports=wr;var ly=Object.create(Yn());ly.inherits=Gn();var fy=Yc(),$c=Zc();ly.inherits(wr,fy);for(Hc=Z2($c.prototype),Hl=0;Hl<Hc.length;Hl++)$l=Hc[Hl],wr.prototype[$l]||(wr.prototype[$l]=$c.prototype[$l]);var Hc,$l,Hl;function wr(e){if(!(this instanceof wr))return new wr(e);fy.call(this,e),$c.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",H2)}n(wr,"Duplex");Object.defineProperty(wr.prototype,"writableHighWaterMark",{enumerable:!1,get:n(function(){return this._writableState.highWaterMark},"get")});function H2(){this.allowHalfOpen||this._writableState.ended||sy.nextTick($2,this)}n(H2,"onend");function $2(e){e.end()}n($2,"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(),sy.nextTick(t,e)}});var Kc=R(cy=>{"use strict";var Vc=Eo().Buffer,dy=Vc.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 Y2(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(Y2,"_normalizeEncoding");function G2(e){var t=Y2(e);if(typeof t!="string"&&(Vc.isEncoding===dy||!dy(e)))throw new Error("Unknown encoding: "+e);return t||e}n(G2,"normalizeEncoding");cy.StringDecoder=Ao;function Ao(e){this.encoding=G2(e);var t;switch(this.encoding){case"utf16le":this.text=eI,this.end=tI,t=4;break;case"utf8":this.fillLast=X2,t=4;break;case"base64":this.text=rI,this.end=iI,t=3;break;default:this.write=nI,this.end=aI;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Vc.allocUnsafe(t)}n(Ao,"StringDecoder");Ao.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||""};Ao.prototype.end=Q2;Ao.prototype.text=J2;Ao.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 Gc(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}n(Gc,"utf8CheckByte");function V2(e,t,r){var i=t.length-1;if(i<r)return 0;var a=Gc(t[i]);return a>=0?(a>0&&(e.lastNeed=a-1),a):--i<r||a===-2?0:(a=Gc(t[i]),a>=0?(a>0&&(e.lastNeed=a-2),a):--i<r||a===-2?0:(a=Gc(t[i]),a>=0?(a>0&&(a===2?a=0:e.lastNeed=a-3),a):0))}n(V2,"utf8CheckIncomplete");function K2(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(K2,"utf8CheckExtraBytes");function X2(e){var t=this.lastTotal-this.lastNeed,r=K2(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(X2,"utf8FillLast");function J2(e,t){var r=V2(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(J2,"utf8Text");function Q2(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}n(Q2,"utf8End");function eI(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(eI,"utf16Text");function tI(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(tI,"utf16End");function rI(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(rI,"base64Text");function iI(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}n(iI,"base64End");function nI(e){return e.toString(this.encoding)}n(nI,"simpleWrite");function aI(e){return e&&e.length?this.write(e):""}n(aI,"simpleEnd")});var Yc=R((tz,Ey)=>{"use strict";var Xn=xo();Ey.exports=ne;var oI=jb(),Co;ne.ReadableState=by;var ez=require("events").EventEmitter,my=n(function(e,t){return e.listeners(t).length},"EElistenerCount"),th=Lc(),Io=Eo().Buffer,sI=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function lI(e){return Io.from(e)}n(lI,"_uint8ArrayToBuffer");function fI(e){return Io.isBuffer(e)||e instanceof sI}n(fI,"_isUint8Array");var gy=Object.create(Yn());gy.inherits=Gn();var Xc=require("util"),K=void 0;Xc&&Xc.debuglog?K=Xc.debuglog("stream"):K=n(function(){},"debug");var uI=Vb(),vy=Wc(),Kn;gy.inherits(ne,th);var Jc=["error","close","destroy","pause","resume"];function dI(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):oI(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}n(dI,"prependListener");function by(e,t){Co=Co||zi(),e=e||{};var r=t instanceof Co;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 uI,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=Kc().StringDecoder),this.decoder=new Kn(e.encoding),this.encoding=e.encoding)}n(by,"ReadableState");function ne(e){if(Co=Co||zi(),!(this instanceof ne))return new ne(e);this._readableState=new by(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),th.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=vy.destroy;ne.prototype._undestroy=vy.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=Io.from(e,t),t=""),i=!0),yy(this,e,t,!1,i)};ne.prototype.unshift=function(e){return yy(this,e,null,!0,!1)};function yy(e,t,r,i,a){var s=e._readableState;if(t===null)s.reading=!1,_I(e,s);else{var l;a||(l=cI(s,t)),l?e.emit("error",l):s.objectMode||t&&t.length>0?(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==Io.prototype&&(t=lI(t)),i?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Qc(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?Qc(e,s,t,!1):wy(e,s)):Qc(e,s,t,!1))):i||(s.reading=!1)}return hI(s)}n(yy,"readableAddChunk");function Qc(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&&Yl(e)),wy(e,t)}n(Qc,"addChunk");function cI(e,t){var r;return!fI(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}n(cI,"chunkInvalid");function hI(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}n(hI,"needMoreData");ne.prototype.isPaused=function(){return this._readableState.flowing===!1};ne.prototype.setEncoding=function(e){return Kn||(Kn=Kc().StringDecoder),this._readableState.decoder=new Kn(e),this._readableState.encoding=e,this};var hy=8388608;function pI(e){return e>=hy?e=hy:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}n(pI,"computeNewHighWaterMark");function py(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=pI(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}n(py,"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?eh(this):Yl(this),null;if(e=py(e,t),e===0&&t.ended)return t.length===0&&eh(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=py(r,t)));var a;return e>0?a=Sy(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&&eh(this)),a!==null&&this.emit("data",a),a};function _I(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,Yl(e)}}n(_I,"onEofChunk");function Yl(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(K("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Xn.nextTick(_y,e):_y(e))}n(Yl,"emitReadable");function _y(e){K("emit readable"),e.emit("readable"),rh(e)}n(_y,"emitReadable_");function wy(e,t){t.readingMore||(t.readingMore=!0,Xn.nextTick(mI,e,t))}n(wy,"maybeReadMore");function mI(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(mI,"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=gI(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&&xy(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),my(e,"error")===0&&e.emit("error",y)}n(g,"onerror"),dI(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 gI(e){return function(){var t=e._readableState;K("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&my(e,"data")&&(t.flowing=!0,rh(e))}}n(gI,"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=xy(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=th.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&&Yl(this):Xn.nextTick(vI,this))}return r};ne.prototype.addListener=ne.prototype.on;function vI(e){K("readable nexttick read 0"),e.read(0)}n(vI,"nReadingNextTick");ne.prototype.resume=function(){var e=this._readableState;return e.flowing||(K("resume"),e.flowing=!0,bI(this,e)),this};function bI(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Xn.nextTick(yI,e,t))}n(bI,"resume");function yI(e,t){t.reading||(K("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),rh(e),t.flowing&&!t.reading&&e.read(0)}n(yI,"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 rh(e){var t=e._readableState;for(K("flow",t.flowing);t.flowing&&e.read()!==null;);}n(rh,"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<Jc.length;s++)e.on(Jc[s],this.emit.bind(this,Jc[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=Sy;function Sy(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=wI(e,t.buffer,t.decoder),r}n(Sy,"fromList");function wI(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?SI(e,t):xI(e,t),i}n(wI,"fromListPartial");function SI(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(SI,"copyFromBufferString");function xI(e,t){var r=Io.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(xI,"copyFromBuffer");function eh(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(EI,t,e))}n(eh,"endReadable");function EI(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}n(EI,"endReadableNT");function xy(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}n(xy,"indexOf")});var ih=R((iz,Ry)=>{"use strict";Ry.exports=Sr;var Gl=zi(),Ty=Object.create(Yn());Ty.inherits=Gn();Ty.inherits(Sr,Gl);function kI(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(kI,"afterTransform");function Sr(e){if(!(this instanceof Sr))return new Sr(e);Gl.call(this,e),this._transformState={afterTransform:kI.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",TI)}n(Sr,"Transform");function TI(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){ky(e,t,r)}):ky(this,null,null)}n(TI,"prefinish");Sr.prototype.push=function(e,t){return this._transformState.needTransform=!1,Gl.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;Gl.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function ky(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(ky,"done")});var Oy=R((az,Iy)=>{"use strict";Iy.exports=Oo;var Ay=ih(),Cy=Object.create(Yn());Cy.inherits=Gn();Cy.inherits(Oo,Ay);function Oo(e){if(!(this instanceof Oo))return new Oo(e);Ay.call(this,e)}n(Oo,"PassThrough");Oo.prototype._transform=function(e,t,r){r(null,e)}});var nh=R((xe,Vl)=>{var Yt=require("stream");process.env.READABLE_STREAM==="disable"&&Yt?(Vl.exports=Yt,xe=Vl.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=Vl.exports=Yc(),xe.Stream=Yt||xe,xe.Readable=xe,xe.Writable=Zc(),xe.Duplex=zi(),xe.Transform=ih(),xe.PassThrough=Oy())});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{ah=new ArrayBuffer(0);try{Ve.blob=new Blob([ah],{type:"application/zip"}).size===0}catch{try{Py=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,oh=new Py,oh.append(ah),Ve.blob=oh.getBlob("application/zip").size===0}catch{Ve.blob=!1}}}var ah,Py,oh;try{Ve.nodestream=!!nh().Readable}catch{Ve.nodestream=!1}});var lh=R(sh=>{"use strict";var RI=fe(),AI=xr(),Gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";sh.encode=function(e){for(var t=[],r,i,a,s,l,d,p,u=0,c=e.length,E=c,m=RI.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("")};sh.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(AI.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 Po=R((fz,By)=>{"use strict";By.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 zy=R((dz,Ly)=>{"use strict";var Dy=global.MutationObserver||global.WebKitMutationObserver,Jn;process.browser?Dy?(fh=0,Fy=new Dy(Bo),uh=global.document.createTextNode(""),Fy.observe(uh,{characterData:!0}),Jn=n(function(){uh.data=fh=++fh%2},"scheduleDrain")):!global.setImmediate&&typeof global.MessageChannel<"u"?(dh=new global.MessageChannel,dh.port1.onmessage=Bo,Jn=n(function(){dh.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 fh,Fy,uh,dh,ch,Do=[];function Bo(){ch=!0;for(var e,t,r=Do.length;r;){for(t=Do,Do=[],e=-1;++e<r;)t[e]();r=Do.length}ch=!1}n(Bo,"nextTick");Ly.exports=CI;function CI(e){Do.push(e)===1&&!ch&&Jn()}n(CI,"immediate")});var Zy=R((hz,jy)=>{"use strict";var qy=zy();function Qn(){}n(Qn,"INTERNAL");var Ae={},My=["REJECTED"],hh=["FULFILLED"],Uy=["PENDING"];process.browser||(Fo=["UNHANDLED"]);var Fo;jy.exports=Xr;function Xr(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=Uy,this.queue=[],this.outcome=void 0,process.browser||(this.handled=Fo),e!==Qn&&Ny(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===hh||typeof t!="function"&&this.state===My)return this;var r=new this.constructor(Qn);if(process.browser||this.handled===Fo&&(this.handled=null),this.state!==Uy){var i=this.state===hh?e:t;ph(r,i,this.outcome)}else this.queue.push(new Lo(r,e,t));return r};function Lo(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(Lo,"QueueItem");Lo.prototype.callFulfilled=function(e){Ae.resolve(this.promise,e)};Lo.prototype.otherCallFulfilled=function(e){ph(this.promise,this.onFulfilled,e)};Lo.prototype.callRejected=function(e){Ae.reject(this.promise,e)};Lo.prototype.otherCallRejected=function(e){ph(this.promise,this.onRejected,e)};function ph(e,t,r){qy(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(ph,"unwrap");Ae.resolve=function(e,t){var r=Wy(II,t);if(r.status==="error")return Ae.reject(e,r.value);var i=r.value;if(i)Ny(e,i);else{e.state=hh,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=My,e.outcome=t,process.browser||e.handled===Fo&&qy(function(){e.handled===Fo&&process.emit("unhandledRejection",t,e)});for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e};function II(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(II,"getThen");function Ny(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=Wy(s);l.status==="error"&&i(l.value)}n(Ny,"safelyResolveThenable");function Wy(e,t){var r={};try{r.value=e(t),r.status="success"}catch(i){r.status="error",r.value=i}return r}n(Wy,"tryCatch");Xr.resolve=OI;function OI(e){return e instanceof this?e:Ae.resolve(new this(Qn),e)}n(OI,"resolve");Xr.reject=PI;function PI(e){var t=new this(Qn);return Ae.reject(t,e)}n(PI,"reject");Xr.all=BI;function BI(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(BI,"all");Xr.race=DI;function DI(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(DI,"race")});var ea=R((_z,Hy)=>{"use strict";var _h=null;typeof Promise<"u"?_h=Promise:_h=Zy();Hy.exports={Promise:_h}});var Yy=R($y=>{(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"?$y:global:self)});var fe=R(me=>{"use strict";var Jr=xr(),FI=lh(),ta=Po(),mh=ea();Yy();function LI(e){var t=null;return Jr.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),Xl(e,t)}n(LI,"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 zo(e){return e}n(zo,"identity");function Xl(e,t){for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)&255;return t}n(Xl,"stringToArrayLike");var Kl={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 qo(e){var t=65536,r=me.getTypeOf(e),i=!0;if(r==="uint8array"?i=Kl.applyCanBeUsed.uint8array:r==="nodebuffer"&&(i=Kl.applyCanBeUsed.nodebuffer),i)for(;t>1;)try{return Kl.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return Kl.stringifyByChar(e)}n(qo,"arrayLikeToString");me.applyFromCharCode=qo;function Jl(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}n(Jl,"arrayLikeToArrayLike");var Qr={};Qr.string={string:zo,array:n(function(e){return Xl(e,new Array(e.length))},"array"),arraybuffer:n(function(e){return Qr.string.uint8array(e).buffer},"arraybuffer"),uint8array:n(function(e){return Xl(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:n(function(e){return Xl(e,ta.allocBuffer(e.length))},"nodebuffer")};Qr.array={string:qo,array:zo,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 qo(new Uint8Array(e))},"string"),array:n(function(e){return Jl(new Uint8Array(e),new Array(e.byteLength))},"array"),arraybuffer:zo,uint8array:n(function(e){return new Uint8Array(e)},"uint8array"),nodebuffer:n(function(e){return ta.newBufferFrom(new Uint8Array(e))},"nodebuffer")};Qr.uint8array={string:qo,array:n(function(e){return Jl(e,new Array(e.length))},"array"),arraybuffer:n(function(e){return e.buffer},"arraybuffer"),uint8array:zo,nodebuffer:n(function(e){return ta.newBufferFrom(e)},"nodebuffer")};Qr.nodebuffer={string:qo,array:n(function(e){return Jl(e,new Array(e.length))},"array"),arraybuffer:n(function(e){return Qr.nodebuffer.uint8array(e).buffer},"arraybuffer"),uint8array:n(function(e){return Jl(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:zo};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=mh.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 mh.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=FI.decode(l):r&&i!==!0&&(l=LI(l))),l):mh.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((yz,Vy)=>{"use strict";function Gy(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(Gy,"GenericWorker");Gy.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")};Vy.exports=Gy});var ia=R(ei=>{"use strict";var ra=fe(),qi=xr(),zI=Po(),Ql=Ke(),Mo=new Array(256);for(Er=0;Er<256;Er++)Mo[Er]=Er>=252?6:Er>=248?5:Er>=240?4:Er>=224?3:Er>=192?2:1;var Er;Mo[254]=Mo[254]=1;var qI=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"),MI=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+Mo[e[r]]>t?r:t},"utf8border"),UI=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=Mo[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?zI.newBufferFrom(t,"utf-8"):qI(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),UI(t))},"utf8decode");function ef(){Ql.call(this,"utf-8 decode"),this.leftOver=null}n(ef,"Utf8DecodeWorker");ra.inherits(ef,Ql);ef.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=MI(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})};ef.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ei.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};ei.Utf8DecodeWorker=ef;function gh(){Ql.call(this,"utf-8 encode")}n(gh,"Utf8EncodeWorker");ra.inherits(gh,Ql);gh.prototype.processChunk=function(e){this.push({data:ei.utf8encode(e.data),meta:e.meta})};ei.Utf8EncodeWorker=gh});var Qy=R((Ez,Jy)=>{"use strict";var Ky=Ke(),Xy=fe();function vh(e){Ky.call(this,"ConvertWorker to "+e),this.destType=e}n(vh,"ConvertWorker");Xy.inherits(vh,Ky);vh.prototype.processChunk=function(e){this.push({data:Xy.transformTo(this.destType,e.data),meta:e.meta})};Jy.exports=vh});var rw=R((Tz,tw)=>{"use strict";var ew=nh().Readable,NI=fe();NI.inherits(bh,ew);function bh(e,t,r){ew.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(bh,"NodejsStreamOutputAdapter");bh.prototype._read=function(){this._helper.resume()};tw.exports=bh});var yh=R((Az,aw)=>{"use strict";var Mi=fe(),WI=Qy(),jI=Ke(),ZI=lh(),HI=xr(),$I=ea(),iw=null;if(HI.nodestream)try{iw=rw()}catch{}function YI(e,t,r){switch(e){case"blob":return Mi.newBlob(Mi.transformTo("arraybuffer",t),r);case"base64":return ZI.encode(t);default:return Mi.transformTo(e,t)}}n(YI,"transformZipOutput");function GI(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(GI,"concat");function VI(e,t){return new $I.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=YI(l,GI(s,a),d);r(p)}catch(u){i(u)}a=[]}).resume()})}n(VI,"accumulate");function nw(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 WI(i)),e.lock()}catch(a){this._worker=new jI("error"),this._worker.error(a)}}n(nw,"StreamHelper");nw.prototype={accumulate:n(function(e){return VI(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 iw(this,{objectMode:this._outputType!=="nodebuffer"},e)},"toNodejsStream")};aw.exports=nw});var wh=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 Sh=R((Oz,ow)=>{"use strict";var tf=fe(),rf=Ke(),KI=16*1024;function na(e){rf.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=tf.getTypeOf(r),t.isPaused||t._tickAndRepeat()},function(r){t.error(r)})}n(na,"DataWorker");tf.inherits(na,rf);na.prototype.cleanUp=function(){rf.prototype.cleanUp.call(this),this.data=null};na.prototype.resume=function(){return rf.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,tf.delay(this._tickAndRepeat,[],this)),!0):!1};na.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(tf.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};na.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=KI,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}})};ow.exports=na});var nf=R((Bz,lw)=>{"use strict";var XI=fe();function JI(){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(JI,"makeTable");var sw=JI();function QI(e,t,r,i){var a=sw,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(QI,"crc32");function eO(e,t,r,i){var a=sw,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(eO,"crc32str");lw.exports=n(function(t,r){if(typeof t>"u"||!t.length)return 0;var i=XI.getTypeOf(t)!=="string";return i?QI(r|0,t,t.length,0):eO(r|0,t,t.length,0)},"crc32wrapper")});var Eh=R((Fz,uw)=>{"use strict";var fw=Ke(),tO=nf(),rO=fe();function xh(){fw.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n(xh,"Crc32Probe");rO.inherits(xh,fw);xh.prototype.processChunk=function(e){this.streamInfo.crc32=tO(e.data,this.streamInfo.crc32||0),this.push(e)};uw.exports=xh});var cw=R((zz,dw)=>{"use strict";var iO=fe(),kh=Ke();function Th(e){kh.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n(Th,"DataLengthProbe");iO.inherits(Th,kh);Th.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}kh.prototype.processChunk.call(this,e)};dw.exports=Th});var af=R((Mz,_w)=>{"use strict";var hw=ea(),pw=Sh(),nO=Eh(),Rh=cw();function Ah(e,t,r,i,a){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=a}n(Ah,"CompressedObject");Ah.prototype={getContentWorker:n(function(){var e=new pw(hw.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new Rh("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 pw(hw.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)},"getCompressedWorker")};Ah.createWorkerFrom=function(e,t,r){return e.pipe(new nO).pipe(new Rh("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new Rh("compressedSize")).withStreamInfo("compression",t)};_w.exports=Ah});var bw=R((Nz,vw)=>{"use strict";var aO=yh(),oO=Sh(),Ch=ia(),Ih=af(),mw=Ke(),Oh=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");Oh.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 Ch.Utf8EncodeWorker)),!a&&i&&(t=t.pipe(new Ch.Utf8DecodeWorker))}catch(s){t=new mw("error"),t.error(s)}return new aO(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 Ih&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new Ch.Utf8EncodeWorker)),Ih.createWorkerFrom(r,e,t)},"_compressWorker"),_decompressWorker:n(function(){return this._data instanceof Ih?this._data.getContentWorker():this._data instanceof mw?this._data:new oO(this._data)},"_decompressWorker")};var gw=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],sO=n(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"removedFn");for(of=0;of<gw.length;of++)Oh.prototype[gw[of]]=sO;var of;vw.exports=Oh});var kr=R(Pe=>{"use strict";var lO=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function fO(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n(fO,"_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)fO(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 uO={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")},dO={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,uO)):(Pe.Buf8=Array,Pe.Buf16=Array,Pe.Buf32=Array,Pe.assign(Pe,dO))};Pe.setTyped(lO)});var Ww=R(sa=>{"use strict";var cO=kr(),hO=4,yw=0,ww=1,pO=2;function oa(e){for(var t=e.length;--t>=0;)e[t]=0}n(oa,"zero");var _O=0,Rw=1,mO=2,gO=3,vO=258,qh=29,Ho=256,No=Ho+1+qh,aa=30,Mh=19,Aw=2*No+1,Ui=15,Ph=16,bO=7,Uh=256,Cw=16,Iw=17,Ow=18,Lh=[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],sf=[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],yO=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Pw=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],wO=512,Tr=new Array((No+2)*2);oa(Tr);var Uo=new Array(aa*2);oa(Uo);var Wo=new Array(wO);oa(Wo);var jo=new Array(vO-gO+1);oa(jo);var Nh=new Array(qh);oa(Nh);var lf=new Array(aa);oa(lf);function Bh(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(Bh,"StaticTreeDesc");var Bw,Dw,Fw;function Dh(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}n(Dh,"TreeDesc");function Lw(e){return e<256?Wo[e]:Wo[256+(e>>>7)]}n(Lw,"d_code");function Zo(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}n(Zo,"put_short");function Me(e,t,r){e.bi_valid>Ph-r?(e.bi_buf|=t<<e.bi_valid&65535,Zo(e,e.bi_buf),e.bi_buf=t>>Ph-e.bi_valid,e.bi_valid+=r-Ph):(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 zw(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}n(zw,"bi_reverse");function SO(e){e.bi_valid===16?(Zo(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(SO,"bi_flush");function xO(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<=Ui;m++)e.bl_count[m]=0;for(r[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;u<Aw;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(xO,"gen_bitlen");function qw(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]=zw(i[d]++,d))}}n(qw,"gen_codes");function EO(){var e,t,r,i,a,s=new Array(Ui+1);for(r=0,i=0;i<qh-1;i++)for(Nh[i]=r,e=0;e<1<<Lh[i];e++)jo[r++]=i;for(jo[r-1]=i,a=0,i=0;i<16;i++)for(lf[i]=a,e=0;e<1<<sf[i];e++)Wo[a++]=i;for(a>>=7;i<aa;i++)for(lf[i]=a<<7,e=0;e<1<<sf[i]-7;e++)Wo[256+a++]=i;for(t=0;t<=Ui;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(qw(Tr,No+1,s),e=0;e<aa;e++)Uo[e*2+1]=5,Uo[e*2]=zw(e,5);Bw=new Bh(Tr,Lh,Ho+1,No,Ui),Dw=new Bh(Uo,sf,0,aa,Ui),Fw=new Bh(new Array(0),yO,0,Mh,bO)}n(EO,"tr_static_init");function Mw(e){var t;for(t=0;t<No;t++)e.dyn_ltree[t*2]=0;for(t=0;t<aa;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Mh;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Uh*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}n(Mw,"init_block");function Uw(e){e.bi_valid>8?Zo(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(Uw,"bi_windup");function kO(e,t,r,i){Uw(e),i&&(Zo(e,r),Zo(e,~r)),cO.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}n(kO,"copy_block");function Sw(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(Sw,"smaller");function Fh(e,t,r){for(var i=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&Sw(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!Sw(t,i,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=i}n(Fh,"pqdownheap");function xw(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=jo[a],Vt(e,l+Ho+1,t),d=Lh[l],d!==0&&(a-=Nh[l],Me(e,a,d)),i--,l=Lw(i),Vt(e,l,r),d=sf[l],d!==0&&(i-=lf[l],Me(e,i,d)));while(s<e.last_lit);Vt(e,Uh,t)}n(xw,"compress_block");function zh(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=Aw,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--)Fh(e,r,l);u=s;do l=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Fh(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++,Fh(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],xO(e,t),qw(r,p,e.bl_count)}n(zh,"build_tree");function Ew(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[Cw*2]++):d<=10?e.bl_tree[Iw*2]++:e.bl_tree[Ow*2]++,d=0,a=s,l===0?(p=138,u=3):s===l?(p=6,u=3):(p=7,u=4))}n(Ew,"scan_tree");function kw(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,Cw,e.bl_tree),Me(e,d-3,2)):d<=10?(Vt(e,Iw,e.bl_tree),Me(e,d-3,3)):(Vt(e,Ow,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(kw,"send_tree");function TO(e){var t;for(Ew(e,e.dyn_ltree,e.l_desc.max_code),Ew(e,e.dyn_dtree,e.d_desc.max_code),zh(e,e.bl_desc),t=Mh-1;t>=3&&e.bl_tree[Pw[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}n(TO,"build_bl_tree");function RO(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[Pw[a]*2+1],3);kw(e,e.dyn_ltree,t-1),kw(e,e.dyn_dtree,r-1)}n(RO,"send_all_trees");function AO(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return yw;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return ww;for(r=32;r<Ho;r++)if(e.dyn_ltree[r*2]!==0)return ww;return yw}n(AO,"detect_data_type");var Tw=!1;function CO(e){Tw||(EO(),Tw=!0),e.l_desc=new Dh(e.dyn_ltree,Bw),e.d_desc=new Dh(e.dyn_dtree,Dw),e.bl_desc=new Dh(e.bl_tree,Fw),e.bi_buf=0,e.bi_valid=0,Mw(e)}n(CO,"_tr_init");function Nw(e,t,r,i){Me(e,(_O<<1)+(i?1:0),3),kO(e,t,r,!0)}n(Nw,"_tr_stored_block");function IO(e){Me(e,Rw<<1,3),Vt(e,Uh,Tr),SO(e)}n(IO,"_tr_align");function OO(e,t,r,i){var a,s,l=0;e.level>0?(e.strm.data_type===pO&&(e.strm.data_type=AO(e)),zh(e,e.l_desc),zh(e,e.d_desc),l=TO(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?Nw(e,t,r,i):e.strategy===hO||s===a?(Me(e,(Rw<<1)+(i?1:0),3),xw(e,Tr,Uo)):(Me(e,(mO<<1)+(i?1:0),3),RO(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),xw(e,e.dyn_ltree,e.dyn_dtree)),Mw(e),i&&Uw(e)}n(OO,"_tr_flush_block");function PO(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[(jo[r]+Ho+1)*2]++,e.dyn_dtree[Lw(t)*2]++),e.last_lit===e.lit_bufsize-1}n(PO,"_tr_tally");sa._tr_init=CO;sa._tr_stored_block=Nw;sa._tr_flush_block=OO;sa._tr_tally=PO;sa._tr_align=IO});var Wh=R((Yz,jw)=>{"use strict";function BO(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(BO,"adler32");jw.exports=BO});var jh=R((Vz,Zw)=>{"use strict";function DO(){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(DO,"makeTable");var FO=DO();function LO(e,t,r,i){var a=FO,s=i+r;e^=-1;for(var l=i;l<s;l++)e=e>>>8^a[(e^t[l])&255];return e^-1}n(LO,"crc32");Zw.exports=LO});var ff=R((Xz,Hw)=>{"use strict";Hw.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 eS=R(Jt=>{"use strict";var Be=kr(),ft=Ww(),Vw=Wh(),ti=jh(),zO=ff(),Zi=0,qO=1,MO=3,oi=4,$w=5,Xt=0,Yw=1,ut=-2,UO=-3,Zh=-5,NO=-1,WO=1,uf=2,jO=3,ZO=4,HO=0,$O=2,pf=8,YO=9,GO=15,VO=8,KO=29,XO=256,$h=XO+1+KO,JO=30,QO=19,eP=2*$h+1,tP=15,H=3,ni=258,At=ni+H+1,rP=32,_f=42,Yh=69,df=73,cf=91,hf=103,Ni=113,Yo=666,ve=1,Go=2,Wi=3,ua=4,iP=3;function ai(e,t){return e.msg=zO[t],t}n(ai,"err");function Gw(e){return(e<<1)-(e>4?9:0)}n(Gw,"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&&(Be.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 $o(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}n($o,"putShortMSB");function nP(e,t,r,i){var a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,Be.arraySet(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=Vw(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(nP,"read_buf");function Kw(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(Kw,"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)){Be.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=nP(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 aP(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(aP,"deflate_stored");function Hh(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=Kw(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:Go}n(Hh,"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=Kw(e,r),e.match_length<=5&&(e.strategy===WO||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:Go}n(la,"deflate_slow");function oP(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:Go}n(oP,"deflate_rle");function sP(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:Go}n(sP,"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,aP),new Kt(4,4,8,4,Hh),new Kt(4,5,16,8,Hh),new Kt(4,6,32,32,Hh),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 lP(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(lP,"lm_init");function fP(){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=pf,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 Be.Buf16(eP*2),this.dyn_dtree=new Be.Buf16((2*JO+1)*2),this.bl_tree=new Be.Buf16((2*QO+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 Be.Buf16(tP+1),this.heap=new Be.Buf16(2*$h+1),ii(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Be.Buf16(2*$h+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(fP,"DeflateState");function Xw(e){var t;return!e||!e.state?ai(e,ut):(e.total_in=e.total_out=0,e.data_type=$O,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?_f:Ni,e.adler=t.wrap===2?0:1,t.last_flush=Zi,ft._tr_init(t),Xt)}n(Xw,"deflateResetKeep");function Jw(e){var t=Xw(e);return t===Xt&&lP(e.state),t}n(Jw,"deflateReset");function uP(e,t){return!e||!e.state||e.state.wrap!==2?ut:(e.state.gzhead=t,Xt)}n(uP,"deflateSetHeader");function Qw(e,t,r,i,a,s){if(!e)return ut;var l=1;if(t===NO&&(t=6),i<0?(l=0,i=-i):i>15&&(l=2,i-=16),a<1||a>YO||r!==pf||i<8||i>15||t<0||t>9||s<0||s>ZO)return ai(e,ut);i===8&&(i=9);var d=new fP;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 Be.Buf8(d.w_size*2),d.head=new Be.Buf16(d.hash_size),d.prev=new Be.Buf16(d.w_size),d.lit_bufsize=1<<a+6,d.pending_buf_size=d.lit_bufsize*4,d.pending_buf=new Be.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,Jw(e)}n(Qw,"deflateInit2");function dP(e,t){return Qw(e,t,pf,GO,VO,HO)}n(dP,"deflateInit");function cP(e,t){var r,i,a,s;if(!e||!e.state||t>$w||t<0)return e?ai(e,ut):ut;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===Yo&&t!==oi)return ai(e,e.avail_out===0?Zh:ut);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===_f)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>=uf||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=Yh):(Y(i,0),Y(i,0),Y(i,0),Y(i,0),Y(i,0),Y(i,i.level===9?2:i.strategy>=uf||i.level<2?4:0),Y(i,iP),i.status=Ni);else{var l=pf+(i.w_bits-8<<4)<<8,d=-1;i.strategy>=uf||i.level<2?d=0:i.level<6?d=1:i.level===6?d=2:d=3,l|=d<<6,i.strstart!==0&&(l|=rP),l+=31-l%31,i.status=Ni,$o(i,l),i.strstart!==0&&($o(i,e.adler>>>16),$o(i,e.adler&65535)),e.adler=1}if(i.status===Yh)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=df)}else i.status=df;if(i.status===df)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=cf)}else i.status=cf;if(i.status===cf)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=hf)}else i.status=hf;if(i.status===hf&&(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=Ni)):i.status=Ni),i.pending!==0){if(ri(e),e.avail_out===0)return i.last_flush=-1,Xt}else if(e.avail_in===0&&Gw(t)<=Gw(r)&&t!==oi)return ai(e,Zh);if(i.status===Yo&&e.avail_in!==0)return ai(e,Zh);if(e.avail_in!==0||i.lookahead!==0||t!==Zi&&i.status!==Yo){var p=i.strategy===uf?sP(i,t):i.strategy===jO?oP(i,t):fa[i.level].func(i,t);if((p===Wi||p===ua)&&(i.status=Yo),p===ve||p===Wi)return e.avail_out===0&&(i.last_flush=-1),Xt;if(p===Go&&(t===qO?ft._tr_align(i):t!==$w&&(ft._tr_stored_block(i,0,0,!1),t===MO&&(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?Yw:(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)):($o(i,e.adler>>>16),$o(i,e.adler&65535)),ri(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Xt:Yw)}n(cP,"deflate");function hP(e){var t;return!e||!e.state?ut:(t=e.state.status,t!==_f&&t!==Yh&&t!==df&&t!==cf&&t!==hf&&t!==Ni&&t!==Yo?ai(e,ut):(e.state=null,t===Ni?ai(e,UO):Xt))}n(hP,"deflateEnd");function pP(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!==_f||i.lookahead))return ut;for(l===1&&(e.adler=Vw(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 Be.Buf8(i.w_size),Be.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(pP,"deflateSetDictionary");Jt.deflateInit=dP;Jt.deflateInit2=Qw;Jt.deflateReset=Jw;Jt.deflateResetKeep=Xw;Jt.deflateSetHeader=uP;Jt.deflate=cP;Jt.deflateEnd=hP;Jt.deflateSetDictionary=pP;Jt.deflateInfo="pako deflate (from Nodeca project)"});var Gh=R(da=>{"use strict";var mf=kr(),tS=!0,rS=!0;try{String.fromCharCode.apply(null,[0])}catch{tS=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{rS=!1}var Vo=new mf.Buf8(256);for(Rr=0;Rr<256;Rr++)Vo[Rr]=Rr>=252?6:Rr>=248?5:Rr>=240?4:Rr>=224?3:Rr>=192?2:1;var Rr;Vo[254]=Vo[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 mf.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 iS(e,t){if(t<65534&&(e.subarray&&rS||!e.subarray&&tS))return String.fromCharCode.apply(null,mf.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}n(iS,"buf2binstring");da.buf2binstring=function(e){return iS(e,e.length)};da.binstring2buf=function(e){for(var t=new mf.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=Vo[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 iS(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+Vo[e[r]]>t?r:t}});var Vh=R((rq,nS)=>{"use strict";function _P(){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(_P,"ZStream");nS.exports=_P});var lS=R(Jo=>{"use strict";var Ko=eS(),Xo=kr(),Xh=Gh(),Jh=ff(),mP=Vh(),sS=Object.prototype.toString,gP=0,Kh=4,ca=0,aS=1,oS=2,vP=-1,bP=0,yP=8;function Hi(e){if(!(this instanceof Hi))return new Hi(e);this.options=Xo.assign({level:vP,method:yP,chunkSize:16384,windowBits:15,memLevel:8,strategy:bP,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 mP,this.strm.avail_out=0;var r=Ko.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==ca)throw new Error(Jh[r]);if(t.header&&Ko.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=Xh.string2buf(t.dictionary):sS.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=Ko.deflateSetDictionary(this.strm,i),r!==ca)throw new Error(Jh[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?Kh:gP,typeof e=="string"?r.input=Xh.string2buf(e):sS.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 Xo.Buf8(i),r.next_out=0,r.avail_out=i),a=Ko.deflate(r,s),a!==aS&&a!==ca)return this.onEnd(a),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(s===Kh||s===oS))&&(this.options.to==="string"?this.onData(Xh.buf2binstring(Xo.shrinkBuf(r.output,r.next_out))):this.onData(Xo.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&a!==aS);return s===Kh?(a=Ko.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===ca):(s===oS&&(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=Xo.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Qh(e,t){var r=new Hi(t);if(r.push(e,!0),r.err)throw r.msg||Jh[r.err];return r.result}n(Qh,"deflate");function wP(e,t){return t=t||{},t.raw=!0,Qh(e,t)}n(wP,"deflateRaw");function SP(e,t){return t=t||{},t.gzip=!0,Qh(e,t)}n(SP,"gzip");Jo.Deflate=Hi;Jo.deflate=Qh;Jo.deflateRaw=wP;Jo.gzip=SP});var uS=R((oq,fS)=>{"use strict";var gf=30,xP=12;fS.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,D,B,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(D=w&65535,S&=15,A<S&&(b+=z[a++]<<A,A+=8,A<S&&(b+=z[a++]<<A,A+=8)),D+=b&(1<<S)-1,D>u){t.msg="invalid distance too far back",i.mode=gf;break e}if(b>>>=S,A-=S,S=l-d,D>S){if(S=D-S,S>E&&i.sane){t.msg="invalid distance too far back",i.mode=gf;break e}if(B=0,F=g,m===0){if(B+=c-S,S<P){P-=S;do O[l++]=g[B++];while(--S);B=l-D,F=O}}else if(m<S){if(B+=c+m-S,S-=m,S<P){P-=S;do O[l++]=g[B++];while(--S);if(B=0,m<P){S=m,P-=S;do O[l++]=g[B++];while(--S);B=l-D,F=O}}}else if(B+=m-S,S<P){P-=S;do O[l++]=g[B++];while(--S);B=l-D,F=O}for(;P>2;)O[l++]=F[B++],O[l++]=F[B++],O[l++]=F[B++],P-=3;P&&(O[l++]=F[B++],P>1&&(O[l++]=F[B++]))}else{B=l-D;do O[l++]=O[B++],O[l++]=O[B++],O[l++]=O[B++],P-=3;while(P>2);P&&(O[l++]=O[B++],P>1&&(O[l++]=O[B++]))}}else if(S&64){t.msg="invalid distance code",i.mode=gf;break e}else{w=y[(w&65535)+(b&(1<<S)-1)];continue r}break}}else if(S&64)if(S&32){i.mode=xP;break e}else{t.msg="invalid literal/length code",i.mode=gf;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 gS=R((lq,mS)=>{"use strict";var dS=kr(),ha=15,cS=852,hS=592,pS=0,ep=1,_S=2,EP=[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],kP=[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],TP=[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],RP=[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];mS.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,D,B,F=null,z=0,O,G=new dS.Buf16(ha+1),se=new dS.Buf16(ha+1),De=null,er=0,Ir,ht,Ue;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===pS||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===pS?(F=De=d,O=19):t===ep?(F=EP,z-=257,De=kP,er-=257,O=256):(F=TP,De=RP,O=-1),C=0,E=0,c=m,B=l,A=b,T=0,P=-1,x=1<<b,D=x-1,t===ep&&x>cS||t===_S&&x>hS)return 1;for(;;){Ir=c-T,d[E]<O?(ht=0,Ue=d[E]):d[E]>O?(ht=De[er+d[E]],Ue=F[z+d[E]]):(ht=96,Ue=0),w=1<<c-T,S=1<<A,m=S;do S-=w,s[B+(C>>T)+S]=Ir<<24|ht<<16|Ue|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&D)!==P){for(T===0&&(T=b),B+=m,A=c-T,y=1<<A;A+T<g&&(y-=G[A+T],!(y<=0));)A++,y<<=1;if(x+=1<<A,t===ep&&x>cS||t===_S&&x>hS)return 1;P=C&D,s[P]=b<<24|A<<16|B-l|0}}return C!==0&&(s[B+C]=c-T<<24|64<<16|0),p.bits=b,0},"inflate_table")});var JS=R(Ct=>{"use strict";var Xe=kr(),op=Wh(),Qt=jh(),AP=uS(),Qo=gS(),CP=0,jS=1,ZS=2,vS=4,IP=5,vf=6,$i=0,OP=1,PP=2,dt=-2,HS=-3,sp=-4,BP=-5,bS=8,$S=1,yS=2,wS=3,SS=4,xS=5,ES=6,kS=7,TS=8,RS=9,AS=10,wf=11,Ar=12,tp=13,CS=14,rp=15,IS=16,OS=17,PS=18,BS=19,bf=20,yf=21,DS=22,FS=23,LS=24,zS=25,qS=26,ip=27,MS=28,US=29,oe=30,lp=31,DP=32,FP=852,LP=592,zP=15,qP=zP;function NS(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}n(NS,"zswap32");function MP(){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(MP,"InflateState");function YS(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=$S,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(FP),t.distcode=t.distdyn=new Xe.Buf32(LP),t.sane=1,t.back=-1,$i)}n(YS,"inflateResetKeep");function GS(e){var t;return!e||!e.state?dt:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,YS(e))}n(GS,"inflateReset");function VS(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,GS(e))}n(VS,"inflateReset2");function KS(e,t){var r,i;return e?(i=new MP,e.state=i,i.window=null,r=VS(e,t),r!==$i&&(e.state=null),r):dt}n(KS,"inflateInit2");function UP(e){return KS(e,qP)}n(UP,"inflateInit");var WS=!0,np,ap;function NP(e){if(WS){var t;for(np=new Xe.Buf32(512),ap=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(Qo(jS,e.lens,0,288,np,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Qo(ZS,e.lens,0,32,ap,0,e.work,{bits:5}),WS=!1}e.lencode=np,e.lenbits=9,e.distcode=ap,e.distbits=5}n(NP,"fixedtables");function XS(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(XS,"updatewindow");function WP(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,D,B,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=tp),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,B=$i;e:for(;;)switch(r.mode){case $S:if(r.wrap===0){r.mode=tp;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=yS;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)!==bS){e.msg="unknown compression method",r.mode=oe;break}if(u>>>=4,c-=4,D=(u&15)+8,r.wbits===0)r.wbits=D;else if(D>r.wbits){e.msg="invalid window size",r.mode=oe;break}r.dmax=1<<D,e.adler=r.check=1,r.mode=u&512?AS:Ar,u=0,c=0;break;case yS:for(;c<16;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}if(r.flags=u,(r.flags&255)!==bS){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=wS;case wS: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=SS;case SS: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=xS;case xS: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=ES;case ES:if(r.flags&1024&&(g=r.length,g>d&&(g=d),g&&(r.head&&(D=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,D)),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=kS;case kS:if(r.flags&2048){if(d===0)break e;g=0;do D=i[s+g++],r.head&&D&&r.length<65536&&(r.head.name+=String.fromCharCode(D));while(D&&g<d);if(r.flags&512&&(r.check=Qt(r.check,i,g,s)),d-=g,s+=g,D)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=TS;case TS:if(r.flags&4096){if(d===0)break e;g=0;do D=i[s+g++],r.head&&D&&r.length<65536&&(r.head.comment+=String.fromCharCode(D));while(D&&g<d);if(r.flags&512&&(r.check=Qt(r.check,i,g,s)),d-=g,s+=g,D)break e}else r.head&&(r.head.comment=null);r.mode=RS;case RS: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 AS:for(;c<32;){if(d===0)break e;d--,u+=i[s++]<<c,c+=8}e.adler=r.check=NS(u),u=0,c=0,r.mode=wf;case wf: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,PP;e.adler=r.check=1,r.mode=Ar;case Ar:if(t===IP||t===vf)break e;case tp:if(r.last){u>>>=c&7,c-=c&7,r.mode=ip;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=CS;break;case 1:if(NP(r),r.mode=bf,t===vf){u>>>=2,c-=2;break e}break;case 2:r.mode=OS;break;case 3:e.msg="invalid block type",r.mode=oe}u>>>=2,c-=2;break;case CS: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=rp,t===vf)break e;case rp:r.mode=IS;case IS: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 OS: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=PS;case PS: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},B=Qo(CP,r.lens,0,19,r.lencode,0,r.work,z),r.lenbits=z.bits,B){e.msg="invalid code lengths set",r.mode=oe;break}r.have=0,r.mode=BS;case BS: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}D=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,D=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,D=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++]=D}}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},B=Qo(jS,r.lens,0,r.nlen,r.lencode,0,r.work,z),r.lenbits=z.bits,B){e.msg="invalid literal/lengths set",r.mode=oe;break}if(r.distbits=6,r.distcode=r.distdyn,z={bits:r.distbits},B=Qo(ZS,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,z),r.distbits=z.bits,B){e.msg="invalid distances set",r.mode=oe;break}if(r.mode=bf,t===vf)break e;case bf:r.mode=yf;case yf: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,AP(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=qS;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=DS;case DS: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=FS;case FS: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=LS;case LS: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=zS;case zS: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=yf);break;case qS:if(p===0)break e;a[l++]=r.length,p--,r.mode=yf;break;case ip: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):op(r.check,a,m,l-m)),m=p,(r.flags?u:NS(u))!==r.check){e.msg="incorrect data check",r.mode=oe;break}u=0,c=0}r.mode=MS;case MS: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=US;case US:B=OP;break e;case oe:B=HS;break e;case lp:return sp;case DP: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<ip||t!==vS))&&XS(e,e.output,e.next_out,m-e.avail_out)?(r.mode=lp,sp):(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):op(r.check,a,m,e.next_out-m)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Ar?128:0)+(r.mode===bf||r.mode===rp?256:0),(E===0&&m===0||t===vS)&&B===$i&&(B=BP),B)}n(WP,"inflate");function jP(e){if(!e||!e.state)return dt;var t=e.state;return t.window&&(t.window=null),e.state=null,$i}n(jP,"inflateEnd");function ZP(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?dt:(r.head=t,t.done=!1,$i)}n(ZP,"inflateGetHeader");function HP(e,t){var r=t.length,i,a,s;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==wf)?dt:i.mode===wf&&(a=1,a=op(a,t,r,0),a!==i.check)?HS:(s=XS(e,t,r,r),s?(i.mode=lp,sp):(i.havedict=1,$i))}n(HP,"inflateSetDictionary");Ct.inflateReset=GS;Ct.inflateReset2=VS;Ct.inflateResetKeep=YS;Ct.inflateInit=UP;Ct.inflateInit2=KS;Ct.inflate=WP;Ct.inflateEnd=jP;Ct.inflateGetHeader=ZP;Ct.inflateSetDictionary=HP;Ct.inflateInfo="pako inflate (from Nodeca project)"});var fp=R((cq,QS)=>{"use strict";QS.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 tx=R((hq,ex)=>{"use strict";function $P(){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($P,"GZheader");ex.exports=$P});var ix=R(ts=>{"use strict";var pa=JS(),es=kr(),Sf=Gh(),ce=fp(),up=ff(),YP=Vh(),GP=tx(),rx=Object.prototype.toString;function Yi(e){if(!(this instanceof Yi))return new Yi(e);this.options=es.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 YP,this.strm.avail_out=0;var r=pa.inflateInit2(this.strm,t.windowBits);if(r!==ce.Z_OK)throw new Error(up[r]);if(this.header=new GP,pa.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Sf.string2buf(t.dictionary):rx.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(up[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=Sf.binstring2buf(e):rx.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 es.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=Sf.utf8border(r.output,r.next_out),p=r.next_out-d,u=Sf.buf2string(r.output,d),r.next_out=p,r.avail_out=i-p,p&&es.arraySet(r.output,r.output,d,p,0),this.onData(u)):this.onData(es.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=es.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function dp(e,t){var r=new Yi(t);if(r.push(e,!0),r.err)throw r.msg||up[r.err];return r.result}n(dp,"inflate");function VP(e,t){return t=t||{},t.raw=!0,dp(e,t)}n(VP,"inflateRaw");ts.Inflate=Yi;ts.inflate=dp;ts.inflateRaw=VP;ts.ungzip=dp});var ox=R((gq,ax)=>{"use strict";var KP=kr().assign,XP=lS(),JP=ix(),QP=fp(),nx={};KP(nx,XP,JP,QP);ax.exports=nx});var lx=R(Ef=>{"use strict";var eB=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",tB=ox(),sx=fe(),xf=Ke(),rB=eB?"uint8array":"array";Ef.magic="\b\0";function Gi(e,t){xf.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n(Gi,"FlateWorker");sx.inherits(Gi,xf);Gi.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(sx.transformTo(rB,e.data),!1)};Gi.prototype.flush=function(){xf.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};Gi.prototype.cleanUp=function(){xf.prototype.cleanUp.call(this),this._pako=null};Gi.prototype._createPako=function(){this._pako=new tB[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};Ef.compressWorker=function(e){return new Gi("Deflate",e)};Ef.uncompressWorker=function(){return new Gi("Inflate",{})}});var hp=R(cp=>{"use strict";var fx=Ke();cp.STORE={magic:"\0\0",compressWorker:n(function(){return new fx("STORE compression")},"compressWorker"),uncompressWorker:n(function(){return new fx("STORE decompression")},"uncompressWorker")};cp.DEFLATE=lx()});var pp=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 hx=R((xq,cx)=>{"use strict";var _a=fe(),ma=Ke(),_p=ia(),ux=nf(),kf=pp(),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"),iB=n(function(e,t){var r=e;return e||(r=t?16893:33204),(r&65535)<<16},"generateUnixExternalFileAttr"),nB=n(function(e){return(e||0)&63},"generateDosExternalFileAttr"),dx=n(function(e,t,r,i,a,s){var l=e.file,d=e.compression,p=s!==_p.utf8encode,u=_a.transformTo("string",s(l.name)),c=_a.transformTo("string",_p.utf8encode(l.name)),E=l.comment,m=_a.transformTo("string",s(E)),g=_a.transformTo("string",_p.utf8encode(E)),b=c.length!==l.name.length,A=g.length!==E.length,T,y,x="",C="",w="",S=l.dir,P=l.date,D={crc32:0,compressedSize:0,uncompressedSize:0};(!t||r)&&(D.crc32=e.crc32,D.compressedSize=e.compressedSize,D.uncompressedSize=e.uncompressedSize);var B=0;t&&(B|=8),!p&&(b||A)&&(B|=2048);var F=0,z=0;S&&(F|=16),a==="UNIX"?(z=798,F|=iB(l.unixPermissions,S)):(z=20,F|=nB(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(ux(u),4)+c,x+="up"+re(C.length,2)+C),A&&(w=re(1,1)+re(ux(m),4)+g,x+="uc"+re(w.length,2)+w);var O="";O+=`
|
|
14
|
-
\0`,O+=re(B,2),O+=d.magic,O+=re(T,2),O+=re(y,2),O+=re(D.crc32,4),O+=re(D.compressedSize,4),O+=re(D.uncompressedSize,4),O+=re(u.length,2),O+=re(x.length,2);var G=kf.LOCAL_FILE_HEADER+O+u+x,se=kf.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"),aB=n(function(e,t,r,i,a){var s="",l=_a.transformTo("string",a(i));return s=kf.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"),oB=n(function(e){var t="";return t=kf.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=dx(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=dx(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:oB(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=aB(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()};cx.exports=It});var _x=R(px=>{"use strict";var sB=hp(),lB=hx(),fB=n(function(e,t){var r=e||t,i=sB[r];if(!i)throw new Error(r+" is not a valid compression method !");return i},"getCompression");px.generateWorker=function(e,t,r){var i=new lB(t.streamFiles,r,t.platform,t.encodeFileName),a=0;try{e.forEach(function(s,l){a++;var d=fB(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 gx=R((Rq,mx)=>{"use strict";var uB=fe(),Tf=Ke();function rs(e,t){Tf.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n(rs,"NodejsStreamInputAdapter");uB.inherits(rs,Tf);rs.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()})};rs.prototype.pause=function(){return Tf.prototype.pause.call(this)?(this._stream.pause(),!0):!1};rs.prototype.resume=function(){return Tf.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};mx.exports=rs});var Rx=R((Cq,Tx)=>{"use strict";var dB=ia(),is=fe(),wx=Ke(),cB=yh(),Sx=wh(),vx=af(),hB=bw(),pB=_x(),bx=Po(),_B=gx(),xx=n(function(e,t,r){var i=is.getTypeOf(t),a,s=is.extend(r||{},Sx);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=Ex(e)),s.createFolders&&(a=mB(e))&&kx.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 vx&&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 vx||t instanceof wx?p=t:bx.isNode&&bx.isStream(t)?p=new _B(e,t):p=is.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var u=new hB(e,p,s);this.files[e]=u},"fileAdd"),mB=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"),Ex=n(function(e){return e.slice(-1)!=="/"&&(e+="/"),e},"forceTrailingSlash"),kx=n(function(e,t){return t=typeof t<"u"?t:Sx.createFolders,e=Ex(e),this.files[e]||xx.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},"folderAdd");function yx(e){return Object.prototype.toString.call(e)==="[object RegExp]"}n(yx,"isRegExp");var gB={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(yx(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,xx.call(this,e,t,r);return this},"file"),folder:n(function(e){if(!e)return this;if(yx(e))return this.filter(function(a,s){return s.dir&&e.test(a)});var t=this.root+e,r=kx.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=is.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:dB.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.");is.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=pB.generateWorker(this,r,i)}catch(a){t=new wx("error"),t.error(a)}return new cB(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")};Tx.exports=gB});var mp=R((Oq,Cx)=>{"use strict";var vB=fe();function Ax(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}n(Ax,"DataReader");Ax.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 vB.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")};Cx.exports=Ax});var gp=R((Bq,Ox)=>{"use strict";var Ix=mp(),bB=fe();function ga(e){Ix.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}n(ga,"ArrayReader");bB.inherits(ga,Ix);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};Ox.exports=ga});var Dx=R((Fq,Bx)=>{"use strict";var Px=mp(),yB=fe();function va(e){Px.call(this,e)}n(va,"StringReader");yB.inherits(va,Px);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};Bx.exports=va});var bp=R((zq,Lx)=>{"use strict";var Fx=gp(),wB=fe();function vp(e){Fx.call(this,e)}n(vp,"Uint8ArrayReader");wB.inherits(vp,Fx);vp.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};Lx.exports=vp});var Mx=R((Mq,qx)=>{"use strict";var zx=bp(),SB=fe();function yp(e){zx.call(this,e)}n(yp,"NodeBufferReader");SB.inherits(yp,zx);yp.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=yp});var wp=R((Nq,Nx)=>{"use strict";var Rf=fe(),Ux=xr(),xB=gp(),EB=Dx(),kB=Mx(),TB=bp();Nx.exports=function(e){var t=Rf.getTypeOf(e);return Rf.checkSupport(t),t==="string"&&!Ux.uint8array?new EB(e):t==="nodebuffer"?new kB(e):Ux.uint8array?new TB(Rf.transformTo("uint8array",e)):new xB(Rf.transformTo("array",e))}});var Hx=R((Wq,Zx)=>{"use strict";var Sp=wp(),si=fe(),RB=af(),Wx=nf(),Af=ia(),Cf=hp(),AB=xr(),CB=0,IB=3,OB=n(function(e){for(var t in Cf)if(Object.prototype.hasOwnProperty.call(Cf,t)&&Cf[t].magic===e)return Cf[t];return null},"findCompression");function jx(e,t){this.options=e,this.loadOptions=t}n(jx,"ZipEntry");jx.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=OB(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 RB(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===CB&&(this.dosPermissions=this.externalFileAttributes&63),e===IB&&(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=Sp(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=AB.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Af.utf8decode(this.fileName),this.fileCommentStr=Af.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=Sp(e.value);return t.readInt(1)!==1||Wx(this.fileName)!==t.readInt(4)?null:Af.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodePath"),findExtraFieldUnicodeComment:n(function(){var e=this.extraFields[25461];if(e){var t=Sp(e.value);return t.readInt(1)!==1||Wx(this.fileComment)!==t.readInt(4)?null:Af.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodeComment")};Zx.exports=jx});var Gx=R((Zq,Yx)=>{"use strict";var PB=wp(),Cr=fe(),Ot=pp(),BB=Hx(),DB=xr();function $x(e){this.files=[],this.loadOptions=e}n($x,"ZipEntries");$x.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=DB.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 BB({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=PB(e)},"prepareReader"),load:n(function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()},"load")};Yx.exports=$x});var Xx=R(($q,Kx)=>{"use strict";var xp=fe(),If=ea(),FB=ia(),LB=Gx(),zB=Eh(),Vx=Po();function qB(e){return new If.Promise(function(t,r){var i=e.decompressed.getContentWorker().pipe(new zB);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(qB,"checkEntryCRC32");Kx.exports=function(e,t){var r=this;return t=xp.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:FB.utf8decode}),Vx.isNode&&Vx.isStream(e)?If.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):xp.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(i){var a=new LB(t);return a.load(i),a}).then(n(function(a){var s=[If.Promise.resolve(a)],l=a.files;if(t.checkCRC32)for(var d=0;d<l.length;d++)s.push(qB(l[d]));return If.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=xp.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 Ep=R((Gq,Jx)=>{"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=Rx();ct.prototype.loadAsync=Xx();ct.support=xr();ct.defaults=wh();ct.version="3.10.1";ct.loadAsync=function(e,t){return new ct().loadAsync(e,t)};ct.external=ea();Jx.exports=ct});var MB={};H_(MB,{TestRunMonitor:()=>Df});module.exports=nk(MB);var o1=tt(require("net")),s1=require("fs");var km=tt(require("http"),1),Tm=tt(require("https"),1),wi=tt(require("zlib"),1),He=tt(require("stream"),1),Ua=require("buffer");function ak(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(ak,"dataUriToBuffer");var G_=ak;var it=tt(require("stream"),1),fr=require("util"),je=require("buffer");Pa();Fs();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 Fu=class Fu extends lr{constructor(t,r,i){super(t,r),i&&(this.code=this.errno=i.code,this.erroredSysCall=i.syscall)}};n(Fu,"FetchError");var Le=Fu;var Ls=Symbol.toStringTag,Lu=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[Ls]==="URLSearchParams","isURLSearchParameters"),La=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[Ls]),"isBlob"),im=n(e=>typeof e=="object"&&(e[Ls]==="AbortSignal"||e[Ls]==="EventTarget"),"isAbortSignal"),nm=n((e,t)=>{let r=new URL(t).hostname,i=new URL(e).hostname;return r===i||r.endsWith(`.${i}`)},"isDomainOrSubdomain"),am=n((e,t)=>{let r=new URL(t).protocol,i=new URL(e).protocol;return r===i},"isSameProtocol");var yk=(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:Lu(t)?t=je.Buffer.from(t.toString()):La(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=rm(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):La(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 Uu(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(()=>(um(),fm));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 Uu(this);return new TextDecoder().decode(t)}buffer(){return Uu(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 Uu(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(Uu,"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"),wk=(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":Lu(e)?"application/x-www-form-urlencoded;charset=UTF-8":La(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=${wk(e)}`:e instanceof it.default?null:"text/plain;charset=UTF-8","extractContentType"),dm=n(e=>{let{body:t}=e[ze];return t===null?0:La(t)?t.size:je.Buffer.isBuffer(t)?t.length:t&&typeof t.getLengthSync=="function"&&t.hasKnownLength&&t.hasKnownLength()?t.getLengthSync():null},"getTotalBytes"),cm=n(async(e,{body:t})=>{t===null?e.end():await yk(t,e)},"writeToStream");var Wu=require("util"),qa=tt(require("http"),1);var Ns=typeof qa.default.validateHeaderName=="function"?qa.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}},ju=typeof qa.default.validateHeaderValue=="function"?qa.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}},Ws=class Ws extends URLSearchParams{constructor(t){let r=[];if(t instanceof Ws){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"&&!Wu.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"||Wu.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])=>(Ns(i),ju(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)=>(Ns(l),ju(l,String(d)),URLSearchParams.prototype[a].call(i,String(l).toLowerCase(),String(d)));case"delete":case"has":case"getAll":return l=>(Ns(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(Ws,"Headers");var Ze=Ws;Object.defineProperties(Ze.prototype,["get","entries","forEach","values"].reduce((e,t)=>(e[t]={enumerable:!0},e),{}));function hm(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 Ns(t),ju(t,String(r)),!0}catch{return!1}}))}n(hm,"fromRawHeaders");var Sk=new Set([301,302,303,307,308]),js=n(e=>Sk.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(!js(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 Sm=require("url"),xm=require("util");var pm=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 mm=require("net");function _m(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(_m,"stripURLForUseAsAReferrer");var gm=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),vm="strict-origin-when-cross-origin";function bm(e){if(!gm.has(e))throw new TypeError(`Invalid referrerPolicy: ${e}`);return e}n(bm,"validateReferrerPolicy");function xk(e){if(/^(http|ws)s:$/.test(e.protocol))return!0;let t=e.host.replace(/(^\[)|(]$)/g,""),r=(0,mm.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(xk,"isOriginPotentiallyTrustworthy");function vn(e){return/^about:(blank|srcdoc)$/.test(e)||e.protocol==="data:"||/^(blob|filesystem):$/.test(e.protocol)?!0:xk(e)}n(vn,"isUrlPotentiallyTrustworthy");function ym(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=_m(a),l=_m(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(ym,"determineRequestsReferrer");function wm(e){let t=(e.get("referrer-policy")||"").split(/[,\s]+/),r="";for(let i of t)i&&gm.has(i)&&(r=i);return r}n(wm,"parseReferrerPolicyFromHeader");var ye=Symbol("Request internals"),Ma=n(e=>typeof e=="object"&&typeof e[ye]=="object","isRequest"),Ek=(0,xm.deprecate)(()=>{},".data is not a valid RequestInit property, use .body instead","https://github.com/node-fetch/node-fetch/issues/1000 (request)"),Zs=class Zs extends Mt{constructor(t,r={}){let i;if(Ma(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()),!Ma(r)&&"data"in r&&Ek(),(r.body!=null||Ma(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:Ma(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=Ma(t)?t.signal:null;if("signal"in r&&(d=r.signal),d!=null&&!im(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,Sm.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=bm(t)}clone(){return new Zs(this)}get[Symbol.toStringTag](){return"Request"}};n(Zs,"Request");var yi=Zs;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 Em=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=dm(e);typeof d=="number"&&!Number.isNaN(d)&&(i=String(d))}i&&r.set("Content-Length",i),e.referrerPolicy===""&&(e.referrerPolicy=vm),e.referrer&&e.referrer!=="no-referrer"?e[ye].referrer=ym(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=pm(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 Zu=class Zu extends lr{constructor(t,r="aborted"){super(t,r)}};n(Zu,"AbortError");var Hs=Zu;Fs();zu();var kk=new Set(["data:","http:","https:"]);async function $s(e,t){return new Promise((r,i)=>{let a=new yi(e,t),{parsedURL:s,options:l}=Em(a);if(!kk.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=G_(a.url),A=new nt(b,{headers:{"Content-Type":b.typeFull}});r(A);return}let d=(s.protocol==="https:"?Tm.default:km.default).request,{signal:p}=a,u=null,c=n(()=>{let b=new Hs("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()}),Tk(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=hm(b.rawHeaders);if(js(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(!nm(a.url,S)||!am(a.url,S))for(let B of["authorization","www-authenticate","cookie","cookie2"])P.headers.delete(B);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 D=wm(A);D&&(P.referrerPolicy=D),r($s(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)}),cm(m,a).catch(i)})}n($s,"fetch");function Tk(e,t){let r=Ua.Buffer.from(`0\r
|
|
9
|
+
`,l,`\r
|
|
10
|
+
`)),n.push(`--${r}--`),new t(n,{type:"multipart/form-data; boundary="+r})}var Hn,Zb,$b,Yf,Vb,Gf,gs,ur,Fe,Kr,fr,la=Mn(()=>{Wn();ms();({toStringTag:Hn,iterator:Zb,hasInstance:$b}=Symbol),Yf=Math.random,Vb="append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(","),Gf=a((e,t,r)=>(e+="",/^(Blob|File)$/.test(t&&t[Hn])?[(r=r!==void 0?r+"":t[Hn]=="File"?t.name:"blob",e),t.name!==r||t[Hn]=="blob"?new Gr([t],r,t):t]:[e,t+""]),"f"),gs=a((e,t)=>(t?e:e.replace(/\r?\n|\r/g,`\r
|
|
11
|
+
`)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"e"),ur=a((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"),fr=(Kr=class{constructor(...t){$e(this,Fe,[]);if(t.length)throw new TypeError("Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.")}get[Hn](){return"FormData"}[Zb](){return this.entries()}static[$b](t){return t&&typeof t=="object"&&t[Hn]==="FormData"&&!Vb.some(r=>typeof t[r]!="function")}append(...t){ur("append",arguments,2),te(this,Fe).push(Gf(...t))}delete(t){ur("delete",arguments,1),t+="",Se(this,Fe,te(this,Fe).filter(([r])=>r!==t))}get(t){ur("get",arguments,1),t+="";for(var r=te(this,Fe),n=r.length,o=0;o<n;o++)if(r[o][0]===t)return r[o][1];return null}getAll(t,r){return ur("getAll",arguments,1),r=[],t+="",te(this,Fe).forEach(n=>n[0]===t&&r.push(n[1])),r}has(t){return ur("has",arguments,1),t+="",te(this,Fe).some(r=>r[0]===t)}forEach(t,r){ur("forEach",arguments,1);for(var[n,o]of this)t.call(r,o,n,this)}set(...t){ur("set",arguments,2);var r=[],n=!0;t=Gf(...t),te(this,Fe).forEach(o=>{o[0]===t[0]?n&&(n=!r.push(t)):r.push(o)}),n&&r.push(t),Se(this,Fe,r)}*entries(){yield*te(this,Fe)}*keys(){for(var[t]of this)yield t}*values(){for(var[,t]of this)yield t}},Fe=new WeakMap,a(Kr,"FormData"),Kr);a(Kf,"formDataToBlob")});var td=P((hS,ed)=>{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)}ed.exports=globalThis.DOMException});var fa,Yb,gS,vs=Mn(()=>{fa=require("fs"),Yb=Oe(td(),1);ms();Wn();({stat:gS}=fa.promises)});var nd={};Mf(nd,{toFormData:()=>t_});function e_(e){let t=e.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!t)return;let r=t[2]||t[3]||"",n=r.slice(r.lastIndexOf("\\")+1);return n=n.replace(/%22/g,'"'),n=n.replace(/&#(\d{4});/g,(o,l)=>String.fromCharCode(l)),n}async function t_(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 n=new ws(r[1]||r[2]),o,l,f,c,m,d,h=[],x=new fr,_=a(S=>{f+=E.decode(S,{stream:!0})},"onPartData"),w=a(S=>{h.push(S)},"appendToFile"),v=a(()=>{let S=new Gr(h,d,{type:m});x.append(c,S)},"appendFileToFormData"),k=a(()=>{x.append(c,f)},"appendEntryToFormData"),E=new TextDecoder("utf-8");E.decode(),n.onPartBegin=function(){n.onPartData=_,n.onPartEnd=k,o="",l="",f="",c="",m="",d=null,h.length=0},n.onHeaderField=function(S){o+=E.decode(S,{stream:!0})},n.onHeaderValue=function(S){l+=E.decode(S,{stream:!0})},n.onHeaderEnd=function(){if(l+=E.decode(),o=o.toLowerCase(),o==="content-disposition"){let S=l.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);S&&(c=S[2]||S[3]||""),d=e_(l),d&&(n.onPartData=w,n.onPartEnd=v)}else o==="content-type"&&(m=l);l="",o=""};for await(let S of e)n.write(S);return n.end(),x}var at,K,rd,jt,da,ca,Gb,$n,Kb,Xb,Qb,Jb,dr,Ss,ws,id=Mn(()=>{vs();la();at=0,K={START_BOUNDARY:at++,HEADER_FIELD_START:at++,HEADER_FIELD:at++,HEADER_VALUE_START:at++,HEADER_VALUE:at++,HEADER_VALUE_ALMOST_DONE:at++,HEADERS_ALMOST_DONE:at++,PART_DATA_START:at++,PART_DATA:at++,END:at++},rd=1,jt={PART_BOUNDARY:rd,LAST_BOUNDARY:rd*=2},da=10,ca=13,Gb=32,$n=45,Kb=58,Xb=97,Qb=122,Jb=a(e=>e|32,"lower"),dr=a(()=>{},"noop"),Ss=class Ss{constructor(t){this.index=0,this.flags=0,this.onHeaderEnd=dr,this.onHeaderField=dr,this.onHeadersEnd=dr,this.onHeaderValue=dr,this.onPartBegin=dr,this.onPartData=dr,this.onPartEnd=dr,this.boundaryChars={},t=`\r
|
|
12
|
+
--`+t;let r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n),this.boundaryChars[r[n]]=!0;this.boundary=r,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=K.START_BOUNDARY}write(t){let r=0,n=t.length,o=this.index,{lookbehind:l,boundary:f,boundaryChars:c,index:m,state:d,flags:h}=this,x=this.boundary.length,_=x-1,w=t.length,v,k,E=a(R=>{this[R+"Mark"]=r},"mark"),S=a(R=>{delete this[R+"Mark"]},"clear"),A=a((R,T,O,q)=>{(T===void 0||T!==O)&&this[R](q&&q.subarray(T,O))},"callback"),C=a((R,T)=>{let O=R+"Mark";O in this&&(T?(A(R,this[O],r,t),delete this[O]):(A(R,this[O],t.length,t),this[O]=0))},"dataCallback");for(r=0;r<n;r++)switch(v=t[r],d){case K.START_BOUNDARY:if(m===f.length-2){if(v===$n)h|=jt.LAST_BOUNDARY;else if(v!==ca)return;m++;break}else if(m-1===f.length-2){if(h&jt.LAST_BOUNDARY&&v===$n)d=K.END,h=0;else if(!(h&jt.LAST_BOUNDARY)&&v===da)m=0,A("onPartBegin"),d=K.HEADER_FIELD_START;else return;break}v!==f[m+2]&&(m=-2),v===f[m+2]&&m++;break;case K.HEADER_FIELD_START:d=K.HEADER_FIELD,E("onHeaderField"),m=0;case K.HEADER_FIELD:if(v===ca){S("onHeaderField"),d=K.HEADERS_ALMOST_DONE;break}if(m++,v===$n)break;if(v===Kb){if(m===1)return;C("onHeaderField",!0),d=K.HEADER_VALUE_START;break}if(k=Jb(v),k<Xb||k>Qb)return;break;case K.HEADER_VALUE_START:if(v===Gb)break;E("onHeaderValue"),d=K.HEADER_VALUE;case K.HEADER_VALUE:v===ca&&(C("onHeaderValue",!0),A("onHeaderEnd"),d=K.HEADER_VALUE_ALMOST_DONE);break;case K.HEADER_VALUE_ALMOST_DONE:if(v!==da)return;d=K.HEADER_FIELD_START;break;case K.HEADERS_ALMOST_DONE:if(v!==da)return;A("onHeadersEnd"),d=K.PART_DATA_START;break;case K.PART_DATA_START:d=K.PART_DATA,E("onPartData");case K.PART_DATA:if(o=m,m===0){for(r+=_;r<w&&!(t[r]in c);)r+=x;r-=_,v=t[r]}if(m<f.length)f[m]===v?(m===0&&C("onPartData",!0),m++):m=0;else if(m===f.length)m++,v===ca?h|=jt.PART_BOUNDARY:v===$n?h|=jt.LAST_BOUNDARY:m=0;else if(m-1===f.length)if(h&jt.PART_BOUNDARY){if(m=0,v===da){h&=~jt.PART_BOUNDARY,A("onPartEnd"),A("onPartBegin"),d=K.HEADER_FIELD_START;break}}else h&jt.LAST_BOUNDARY&&v===$n?(A("onPartEnd"),d=K.END,h=0):m=0;if(m>0)l[m-1]=v;else if(o>0){let R=new Uint8Array(l.buffer,l.byteOffset,l.byteLength);A("onPartData",0,o,R),o=0,E("onPartData"),r--}break;case K.END:break;default:throw new Error(`Unexpected state entered: ${d}`)}C("onHeaderField"),C("onHeaderValue"),C("onPartData"),this.index=m,this.state=d,this.flags=h}end(){if(this.state===K.HEADER_FIELD_START&&this.index===0||this.state===K.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==K.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}};a(Ss,"MultipartParser");ws=Ss;a(e_,"_fileName");a(t_,"toFormData")});var Kn=P((gR,ks)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?ks.exports={nextTick:u_}:ks.exports=process;function u_(e,t,r,n){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var o=arguments.length,l,f;switch(o){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(a(function(){e.call(null,t)},"afterTickOne"));case 3:return process.nextTick(a(function(){e.call(null,t,r)},"afterTickTwo"));case 4:return process.nextTick(a(function(){e.call(null,t,r,n)},"afterTickThree"));default:for(l=new Array(o-1),f=0;f<l.length;)l[f++]=arguments[f];return process.nextTick(a(function(){e.apply(null,l)},"afterTick"))}}a(u_,"nextTick")});var Sd=P((_R,wd)=>{var f_={}.toString;wd.exports=Array.isArray||function(e){return f_.call(e)=="[object Array]"}});var Cs=P((yR,Rd)=>{Rd.exports=require("stream")});var Xn=P((Ps,xd)=>{var va=require("buffer"),Tt=va.Buffer;function Td(e,t){for(var r in e)t[r]=e[r]}a(Td,"copyProps");Tt.from&&Tt.alloc&&Tt.allocUnsafe&&Tt.allocUnsafeSlow?xd.exports=va:(Td(va,Ps),Ps.Buffer=Jr);function Jr(e,t,r){return Tt(e,t,r)}a(Jr,"SafeBuffer");Td(Tt,Jr);Jr.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Tt(e,t,r)};Jr.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Tt(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};Jr.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Tt(e)};Jr.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return va.SlowBuffer(e)}});var en=P(ce=>{function d_(e){return Array.isArray?Array.isArray(e):wa(e)==="[object Array]"}a(d_,"isArray");ce.isArray=d_;function c_(e){return typeof e=="boolean"}a(c_,"isBoolean");ce.isBoolean=c_;function h_(e){return e===null}a(h_,"isNull");ce.isNull=h_;function p_(e){return e==null}a(p_,"isNullOrUndefined");ce.isNullOrUndefined=p_;function m_(e){return typeof e=="number"}a(m_,"isNumber");ce.isNumber=m_;function g_(e){return typeof e=="string"}a(g_,"isString");ce.isString=g_;function b_(e){return typeof e=="symbol"}a(b_,"isSymbol");ce.isSymbol=b_;function __(e){return e===void 0}a(__,"isUndefined");ce.isUndefined=__;function y_(e){return wa(e)==="[object RegExp]"}a(y_,"isRegExp");ce.isRegExp=y_;function v_(e){return typeof e=="object"&&e!==null}a(v_,"isObject");ce.isObject=v_;function w_(e){return wa(e)==="[object Date]"}a(w_,"isDate");ce.isDate=w_;function S_(e){return wa(e)==="[object Error]"||e instanceof Error}a(S_,"isError");ce.isError=S_;function R_(e){return typeof e=="function"}a(R_,"isFunction");ce.isFunction=R_;function T_(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}a(T_,"isPrimitive");ce.isPrimitive=T_;ce.isBuffer=require("buffer").Buffer.isBuffer;function wa(e){return Object.prototype.toString.call(e)}a(wa,"objectToString")});var Ad=P((RR,Is)=>{typeof Object.create=="function"?Is.exports=a(function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):Is.exports=a(function(t,r){if(r){t.super_=r;var n=a(function(){},"TempCtor");n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}},"inherits")});var tn=P((xR,Fs)=>{try{if(Os=require("util"),typeof Os.inherits!="function")throw"";Fs.exports=Os.inherits}catch{Fs.exports=Ad()}var Os});var kd=P((AR,Bs)=>{"use strict";function x_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}a(x_,"_classCallCheck");var Ed=Xn().Buffer,Qn=require("util");function A_(e,t,r){e.copy(t,r)}a(A_,"copyBuffer");Bs.exports=function(){function e(){x_(this,e),this.head=null,this.tail=null,this.length=0}return a(e,"BufferList"),e.prototype.push=a(function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},"push"),e.prototype.unshift=a(function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},"unshift"),e.prototype.shift=a(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=a(function(){this.head=this.tail=null,this.length=0},"clear"),e.prototype.join=a(function(r){if(this.length===0)return"";for(var n=this.head,o=""+n.data;n=n.next;)o+=r+n.data;return o},"join"),e.prototype.concat=a(function(r){if(this.length===0)return Ed.alloc(0);for(var n=Ed.allocUnsafe(r>>>0),o=this.head,l=0;o;)A_(o.data,n,l),l+=o.data.length,o=o.next;return n},"concat"),e}();Qn&&Qn.inspect&&Qn.inspect.custom&&(Bs.exports.prototype[Qn.inspect.custom]=function(){var e=Qn.inspect({length:this.length});return this.constructor.name+" "+e})});var Ds=P((kR,Cd)=>{"use strict";var Sa=Kn();function E_(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return n||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Sa.nextTick(Ra,this,e)):Sa.nextTick(Ra,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(l){!t&&l?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,Sa.nextTick(Ra,r,l)):Sa.nextTick(Ra,r,l):t&&t(l)}),this)}a(E_,"destroy");function k_(){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)}a(k_,"undestroy");function Ra(e,t){e.emit("error",t)}a(Ra,"emitErrorNT");Cd.exports={destroy:E_,undestroy:k_}});var Id=P((PR,Pd)=>{Pd.exports=require("util").deprecate});var qs=P((IR,Md)=>{"use strict";var mr=Kn();Md.exports=ne;function Fd(e){var t=this;this.next=null,this.entry=null,this.finish=function(){$_(t,e)}}a(Fd,"CorkedRequest");var C_=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:mr.nextTick,rn;ne.WritableState=ei;var Bd=Object.create(en());Bd.inherits=tn();var P_={deprecate:Id()},Dd=Cs(),xa=Xn().Buffer,I_=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function O_(e){return xa.from(e)}a(O_,"_uint8ArrayToBuffer");function F_(e){return xa.isBuffer(e)||e instanceof I_}a(F_,"_isUint8Array");var Ld=Ds();Bd.inherits(ne,Dd);function B_(){}a(B_,"nop");function ei(e,t){rn=rn||gr(),e=e||{};var r=t instanceof rn;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,o=e.writableHighWaterMark,l=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(o||o===0)?this.highWaterMark=o:this.highWaterMark=l,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 f=e.decodeStrings===!1;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(c){W_(t,c)},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 Fd(this)}a(ei,"WritableState");ei.prototype.getBuffer=a(function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r},"getBuffer");(function(){try{Object.defineProperty(ei.prototype,"buffer",{get:P_.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Ta;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ta=Function.prototype[Symbol.hasInstance],Object.defineProperty(ne,Symbol.hasInstance,{value:a(function(e){return Ta.call(this,e)?!0:this!==ne?!1:e&&e._writableState instanceof ei},"value")})):Ta=a(function(e){return e instanceof this},"realHasInstance");function ne(e){if(rn=rn||gr(),!Ta.call(ne,this)&&!(this instanceof rn))return new ne(e);this._writableState=new ei(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)),Dd.call(this)}a(ne,"Writable");ne.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function D_(e,t){var r=new Error("write after end");e.emit("error",r),mr.nextTick(t,r)}a(D_,"writeAfterEnd");function L_(e,t,r,n){var o=!0,l=!1;return r===null?l=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(l=new TypeError("Invalid non-string/buffer chunk")),l&&(e.emit("error",l),mr.nextTick(n,l),o=!1),o}a(L_,"validChunk");ne.prototype.write=function(e,t,r){var n=this._writableState,o=!1,l=!n.objectMode&&F_(e);return l&&!xa.isBuffer(e)&&(e=O_(e)),typeof t=="function"&&(r=t,t=null),l?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=B_),n.ended?D_(this,r):(l||L_(this,n,e,r))&&(n.pendingcb++,o=z_(this,n,l,e,t,r)),o};ne.prototype.cork=function(){var e=this._writableState;e.corked++};ne.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&qd(this,e))};ne.prototype.setDefaultEncoding=a(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 q_(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=xa.from(t,r)),t}a(q_,"decodeChunk");Object.defineProperty(ne.prototype,"writableHighWaterMark",{enumerable:!1,get:a(function(){return this._writableState.highWaterMark},"get")});function z_(e,t,r,n,o,l){if(!r){var f=q_(t,n,o);n!==f&&(r=!0,o="buffer",n=f)}var c=t.objectMode?1:n.length;t.length+=c;var m=t.length<t.highWaterMark;if(m||(t.needDrain=!0),t.writing||t.corked){var d=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:l,next:null},d?d.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Ls(e,t,!1,c,n,o,l);return m}a(z_,"writeOrBuffer");function Ls(e,t,r,n,o,l,f){t.writelen=n,t.writecb=f,t.writing=!0,t.sync=!0,r?e._writev(o,t.onwrite):e._write(o,l,t.onwrite),t.sync=!1}a(Ls,"doWrite");function M_(e,t,r,n,o){--t.pendingcb,r?(mr.nextTick(o,n),mr.nextTick(Jn,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(o(n),e._writableState.errorEmitted=!0,e.emit("error",n),Jn(e,t))}a(M_,"onwriteError");function U_(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}a(U_,"onwriteStateUpdate");function W_(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if(U_(r),t)M_(e,r,n,t,o);else{var l=zd(r);!l&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&qd(e,r),n?C_(Od,e,r,l,o):Od(e,r,l,o)}}a(W_,"onwrite");function Od(e,t,r,n){r||N_(e,t),t.pendingcb--,n(),Jn(e,t)}a(Od,"afterWrite");function N_(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}a(N_,"onwriteDrain");function qd(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),l=t.corkedRequestsFree;l.entry=r;for(var f=0,c=!0;r;)o[f]=r,r.isBuf||(c=!1),r=r.next,f+=1;o.allBuffers=c,Ls(e,t,!0,t.length,o,"",l.finish),t.pendingcb++,t.lastBufferedRequest=null,l.next?(t.corkedRequestsFree=l.next,l.next=null):t.corkedRequestsFree=new Fd(t),t.bufferedRequestCount=0}else{for(;r;){var m=r.chunk,d=r.encoding,h=r.callback,x=t.objectMode?1:m.length;if(Ls(e,t,!1,x,m,d,h),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}a(qd,"clearBuffer");ne.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};ne.prototype._writev=null;ne.prototype.end=function(e,t,r){var n=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||Z_(this,n,r)};function zd(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}a(zd,"needFinish");function j_(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),Jn(e,t)})}a(j_,"callFinal");function H_(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,mr.nextTick(j_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}a(H_,"prefinish");function Jn(e,t){var r=zd(t);return r&&(H_(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}a(Jn,"finishMaybe");function Z_(e,t,r){t.ending=!0,Jn(e,t),r&&(t.finished?mr.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}a(Z_,"endWritable");function $_(e,t,r){var n=e.entry;for(e.entry=null;n;){var o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree.next=e}a($_,"onCorkedFinish");Object.defineProperty(ne.prototype,"destroyed",{get:a(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get"),set:a(function(e){this._writableState&&(this._writableState.destroyed=e)},"set")});ne.prototype.destroy=Ld.destroy;ne.prototype._undestroy=Ld.undestroy;ne.prototype._destroy=function(e,t){this.end(),t(e)}});var gr=P((FR,jd)=>{"use strict";var Ud=Kn(),V_=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};jd.exports=xt;var Wd=Object.create(en());Wd.inherits=tn();var Nd=Us(),Ms=qs();Wd.inherits(xt,Nd);for(zs=V_(Ms.prototype),Aa=0;Aa<zs.length;Aa++)Ea=zs[Aa],xt.prototype[Ea]||(xt.prototype[Ea]=Ms.prototype[Ea]);var zs,Ea,Aa;function xt(e){if(!(this instanceof xt))return new xt(e);Nd.call(this,e),Ms.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",Y_)}a(xt,"Duplex");Object.defineProperty(xt.prototype,"writableHighWaterMark",{enumerable:!1,get:a(function(){return this._writableState.highWaterMark},"get")});function Y_(){this.allowHalfOpen||this._writableState.ended||Ud.nextTick(G_,this)}a(Y_,"onend");function G_(e){e.end()}a(G_,"onEndNT");Object.defineProperty(xt.prototype,"destroyed",{get:a(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get"),set:a(function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)},"set")});xt.prototype._destroy=function(e,t){this.push(null),this.end(),Ud.nextTick(t,e)}});var js=P(Zd=>{"use strict";var Ns=Xn().Buffer,Hd=Ns.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 K_(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}}a(K_,"_normalizeEncoding");function X_(e){var t=K_(e);if(typeof t!="string"&&(Ns.isEncoding===Hd||!Hd(e)))throw new Error("Unknown encoding: "+e);return t||e}a(X_,"normalizeEncoding");Zd.StringDecoder=ti;function ti(e){this.encoding=X_(e);var t;switch(this.encoding){case"utf16le":this.text=ny,this.end=iy,t=4;break;case"utf8":this.fillLast=ey,t=4;break;case"base64":this.text=ay,this.end=oy,t=3;break;default:this.write=sy,this.end=ly;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Ns.allocUnsafe(t)}a(ti,"StringDecoder");ti.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||""};ti.prototype.end=ry;ti.prototype.text=ty;ti.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 Ws(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}a(Ws,"utf8CheckByte");function Q_(e,t,r){var n=t.length-1;if(n<r)return 0;var o=Ws(t[n]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--n<r||o===-2?0:(o=Ws(t[n]),o>=0?(o>0&&(e.lastNeed=o-2),o):--n<r||o===-2?0:(o=Ws(t[n]),o>=0?(o>0&&(o===2?o=0:e.lastNeed=o-3),o):0))}a(Q_,"utf8CheckIncomplete");function J_(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"}}a(J_,"utf8CheckExtraBytes");function ey(e){var t=this.lastTotal-this.lastNeed,r=J_(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}a(ey,"utf8FillLast");function ty(e,t){var r=Q_(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}a(ty,"utf8Text");function ry(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}a(ry,"utf8End");function ny(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=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)}a(ny,"utf16Text");function iy(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}a(iy,"utf16End");function ay(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))}a(ay,"base64Text");function oy(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}a(oy,"base64End");function sy(e){return e.toString(this.encoding)}a(sy,"simpleWrite");function ly(e){return e&&e.length?this.write(e):""}a(ly,"simpleEnd")});var Us=P((zR,nc)=>{"use strict";var an=Kn();nc.exports=Q;var uy=Sd(),ri;Q.ReadableState=Qd;var qR=require("events").EventEmitter,Gd=a(function(e,t){return e.listeners(t).length},"EElistenerCount"),Ys=Cs(),ni=Xn().Buffer,fy=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function dy(e){return ni.from(e)}a(dy,"_uint8ArrayToBuffer");function cy(e){return ni.isBuffer(e)||e instanceof fy}a(cy,"_isUint8Array");var Kd=Object.create(en());Kd.inherits=tn();var Hs=require("util"),Z=void 0;Hs&&Hs.debuglog?Z=Hs.debuglog("stream"):Z=a(function(){},"debug");var hy=kd(),Xd=Ds(),nn;Kd.inherits(Q,Ys);var Zs=["error","close","destroy","pause","resume"];function py(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):uy(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}a(py,"prependListener");function Qd(e,t){ri=ri||gr(),e=e||{};var r=t instanceof ri;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,o=e.readableHighWaterMark,l=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(o||o===0)?this.highWaterMark=o:this.highWaterMark=l,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new hy,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&&(nn||(nn=js().StringDecoder),this.decoder=new nn(e.encoding),this.encoding=e.encoding)}a(Qd,"ReadableState");function Q(e){if(ri=ri||gr(),!(this instanceof Q))return new Q(e);this._readableState=new Qd(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Ys.call(this)}a(Q,"Readable");Object.defineProperty(Q.prototype,"destroyed",{get:a(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get"),set:a(function(e){this._readableState&&(this._readableState.destroyed=e)},"set")});Q.prototype.destroy=Xd.destroy;Q.prototype._undestroy=Xd.undestroy;Q.prototype._destroy=function(e,t){this.push(null),t(e)};Q.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=ni.from(e,t),t=""),n=!0),Jd(this,e,t,!1,n)};Q.prototype.unshift=function(e){return Jd(this,e,null,!0,!1)};function Jd(e,t,r,n,o){var l=e._readableState;if(t===null)l.reading=!1,_y(e,l);else{var f;o||(f=my(l,t)),f?e.emit("error",f):l.objectMode||t&&t.length>0?(typeof t!="string"&&!l.objectMode&&Object.getPrototypeOf(t)!==ni.prototype&&(t=dy(t)),n?l.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):$s(e,l,t,!0):l.ended?e.emit("error",new Error("stream.push() after EOF")):(l.reading=!1,l.decoder&&!r?(t=l.decoder.write(t),l.objectMode||t.length!==0?$s(e,l,t,!1):ec(e,l)):$s(e,l,t,!1))):n||(l.reading=!1)}return gy(l)}a(Jd,"readableAddChunk");function $s(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&ka(e)),ec(e,t)}a($s,"addChunk");function my(e,t){var r;return!cy(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}a(my,"chunkInvalid");function gy(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}a(gy,"needMoreData");Q.prototype.isPaused=function(){return this._readableState.flowing===!1};Q.prototype.setEncoding=function(e){return nn||(nn=js().StringDecoder),this._readableState.decoder=new nn(e),this._readableState.encoding=e,this};var $d=8388608;function by(e){return e>=$d?e=$d:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}a(by,"computeNewHighWaterMark");function Vd(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=by(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}a(Vd,"howMuchToRead");Q.prototype.read=function(e){Z("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 Z("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Vs(this):ka(this),null;if(e=Vd(e,t),e===0&&t.ended)return t.length===0&&Vs(this),null;var n=t.needReadable;Z("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,Z("length less than watermark",n)),t.ended||t.reading?(n=!1,Z("reading or ended",n)):n&&(Z("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Vd(r,t)));var o;return e>0?o=tc(e,t):o=null,o===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Vs(this)),o!==null&&this.emit("data",o),o};function _y(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,ka(e)}}a(_y,"onEofChunk");function ka(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Z("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?an.nextTick(Yd,e):Yd(e))}a(ka,"emitReadable");function Yd(e){Z("emit readable"),e.emit("readable"),Gs(e)}a(Yd,"emitReadable_");function ec(e,t){t.readingMore||(t.readingMore=!0,an.nextTick(yy,e,t))}a(ec,"maybeReadMore");function yy(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(Z("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}a(yy,"maybeReadMore_");Q.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};Q.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,Z("pipe count=%d opts=%j",n.pipesCount,t);var o=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,l=o?c:E;n.endEmitted?an.nextTick(l):r.once("end",l),e.on("unpipe",f);function f(S,A){Z("onunpipe"),S===r&&A&&A.hasUnpiped===!1&&(A.hasUnpiped=!0,h())}a(f,"onunpipe");function c(){Z("onend"),e.end()}a(c,"onend");var m=vy(r);e.on("drain",m);var d=!1;function h(){Z("cleanup"),e.removeListener("close",v),e.removeListener("finish",k),e.removeListener("drain",m),e.removeListener("error",w),e.removeListener("unpipe",f),r.removeListener("end",c),r.removeListener("end",E),r.removeListener("data",_),d=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&m()}a(h,"cleanup");var x=!1;r.on("data",_);function _(S){Z("ondata"),x=!1;var A=e.write(S);A===!1&&!x&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&rc(n.pipes,e)!==-1)&&!d&&(Z("false write response, pause",n.awaitDrain),n.awaitDrain++,x=!0),r.pause())}a(_,"ondata");function w(S){Z("onerror",S),E(),e.removeListener("error",w),Gd(e,"error")===0&&e.emit("error",S)}a(w,"onerror"),py(e,"error",w);function v(){e.removeListener("finish",k),E()}a(v,"onclose"),e.once("close",v);function k(){Z("onfinish"),e.removeListener("close",v),E()}a(k,"onfinish"),e.once("finish",k);function E(){Z("unpipe"),r.unpipe(e)}return a(E,"unpipe"),e.emit("pipe",r),n.flowing||(Z("pipe resume"),r.resume()),e};function vy(e){return function(){var t=e._readableState;Z("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&Gd(e,"data")&&(t.flowing=!0,Gs(e))}}a(vy,"pipeOnDrain");Q.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 n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var l=0;l<o;l++)n[l].emit("unpipe",this,{hasUnpiped:!1});return this}var f=rc(t.pipes,e);return f===-1?this:(t.pipes.splice(f,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};Q.prototype.on=function(e,t){var r=Ys.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&ka(this):an.nextTick(wy,this))}return r};Q.prototype.addListener=Q.prototype.on;function wy(e){Z("readable nexttick read 0"),e.read(0)}a(wy,"nReadingNextTick");Q.prototype.resume=function(){var e=this._readableState;return e.flowing||(Z("resume"),e.flowing=!0,Sy(this,e)),this};function Sy(e,t){t.resumeScheduled||(t.resumeScheduled=!0,an.nextTick(Ry,e,t))}a(Sy,"resume");function Ry(e,t){t.reading||(Z("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Gs(e),t.flowing&&!t.reading&&e.read(0)}a(Ry,"resume_");Q.prototype.pause=function(){return Z("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Z("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Gs(e){var t=e._readableState;for(Z("flow",t.flowing);t.flowing&&e.read()!==null;);}a(Gs,"flow");Q.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(Z("wrapped end"),r.decoder&&!r.ended){var f=r.decoder.end();f&&f.length&&t.push(f)}t.push(null)}),e.on("data",function(f){if(Z("wrapped data"),r.decoder&&(f=r.decoder.write(f)),!(r.objectMode&&f==null)&&!(!r.objectMode&&(!f||!f.length))){var c=t.push(f);c||(n=!0,e.pause())}});for(var o in e)this[o]===void 0&&typeof e[o]=="function"&&(this[o]=function(f){return function(){return e[f].apply(e,arguments)}}(o));for(var l=0;l<Zs.length;l++)e.on(Zs[l],this.emit.bind(this,Zs[l]));return this._read=function(f){Z("wrapped _read",f),n&&(n=!1,e.resume())},this};Object.defineProperty(Q.prototype,"readableHighWaterMark",{enumerable:!1,get:a(function(){return this._readableState.highWaterMark},"get")});Q._fromList=tc;function tc(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=Ty(e,t.buffer,t.decoder),r}a(tc,"fromList");function Ty(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?n=t.shift():n=r?xy(e,t):Ay(e,t),n}a(Ty,"fromListPartial");function xy(e,t){var r=t.head,n=1,o=r.data;for(e-=o.length;r=r.next;){var l=r.data,f=e>l.length?l.length:e;if(f===l.length?o+=l:o+=l.slice(0,e),e-=f,e===0){f===l.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=l.slice(f));break}++n}return t.length-=n,o}a(xy,"copyFromBufferString");function Ay(e,t){var r=ni.allocUnsafe(e),n=t.head,o=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var l=n.data,f=e>l.length?l.length:e;if(l.copy(r,r.length-e,0,f),e-=f,e===0){f===l.length?(++o,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=l.slice(f));break}++o}return t.length-=o,r}a(Ay,"copyFromBuffer");function Vs(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,an.nextTick(Ey,t,e))}a(Vs,"endReadable");function Ey(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}a(Ey,"endReadableNT");function rc(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}a(rc,"indexOf")});var Ks=P((UR,oc)=>{"use strict";oc.exports=At;var Ca=gr(),ac=Object.create(en());ac.inherits=tn();ac.inherits(At,Ca);function ky(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}a(ky,"afterTransform");function At(e){if(!(this instanceof At))return new At(e);Ca.call(this,e),this._transformState={afterTransform:ky.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",Cy)}a(At,"Transform");function Cy(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){ic(e,t,r)}):ic(this,null,null)}a(Cy,"prefinish");At.prototype.push=function(e,t){return this._transformState.needTransform=!1,Ca.prototype.push.call(this,e,t)};At.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};At.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}};At.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};At.prototype._destroy=function(e,t){var r=this;Ca.prototype._destroy.call(this,e,function(n){t(n),r.emit("close")})};function ic(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)}a(ic,"done")});var fc=P((NR,uc)=>{"use strict";uc.exports=ii;var sc=Ks(),lc=Object.create(en());lc.inherits=tn();lc.inherits(ii,sc);function ii(e){if(!(this instanceof ii))return new ii(e);sc.call(this,e)}a(ii,"PassThrough");ii.prototype._transform=function(e,t,r){r(null,e)}});var Xs=P((ue,Pa)=>{var st=require("stream");process.env.READABLE_STREAM==="disable"&&st?(Pa.exports=st,ue=Pa.exports=st.Readable,ue.Readable=st.Readable,ue.Writable=st.Writable,ue.Duplex=st.Duplex,ue.Transform=st.Transform,ue.PassThrough=st.PassThrough,ue.Stream=st):(ue=Pa.exports=Us(),ue.Stream=st||ue,ue.Readable=ue,ue.Writable=qs(),ue.Duplex=gr(),ue.Transform=Ks(),ue.PassThrough=fc())});var Et=P(Ae=>{"use strict";Ae.base64=!0;Ae.array=!0;Ae.string=!0;Ae.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";Ae.nodebuffer=typeof Buffer<"u";Ae.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")Ae.blob=!1;else{Qs=new ArrayBuffer(0);try{Ae.blob=new Blob([Qs],{type:"application/zip"}).size===0}catch{try{dc=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,Js=new dc,Js.append(Qs),Ae.blob=Js.getBlob("application/zip").size===0}catch{Ae.blob=!1}}}var Qs,dc,Js;try{Ae.nodestream=!!Xs().Readable}catch{Ae.nodestream=!1}});var tl=P(el=>{"use strict";var Py=ee(),Iy=Et(),lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";el.encode=function(e){for(var t=[],r,n,o,l,f,c,m,d=0,h=e.length,x=h,_=Py.getTypeOf(e)!=="string";d<e.length;)x=h-d,_?(r=e[d++],n=d<h?e[d++]:0,o=d<h?e[d++]:0):(r=e.charCodeAt(d++),n=d<h?e.charCodeAt(d++):0,o=d<h?e.charCodeAt(d++):0),l=r>>2,f=(r&3)<<4|n>>4,c=x>1?(n&15)<<2|o>>6:64,m=x>2?o&63:64,t.push(lt.charAt(l)+lt.charAt(f)+lt.charAt(c)+lt.charAt(m));return t.join("")};el.decode=function(e){var t,r,n,o,l,f,c,m=0,d=0,h="data:";if(e.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var x=e.length*3/4;if(e.charAt(e.length-1)===lt.charAt(64)&&x--,e.charAt(e.length-2)===lt.charAt(64)&&x--,x%1!==0)throw new Error("Invalid base64 input, bad content length.");var _;for(Iy.uint8array?_=new Uint8Array(x|0):_=new Array(x|0);m<e.length;)o=lt.indexOf(e.charAt(m++)),l=lt.indexOf(e.charAt(m++)),f=lt.indexOf(e.charAt(m++)),c=lt.indexOf(e.charAt(m++)),t=o<<2|l>>4,r=(l&15)<<4|f>>2,n=(f&3)<<6|c,_[d++]=t,f!==64&&(_[d++]=r),c!==64&&(_[d++]=n);return _}});var ai=P(($R,cc)=>{"use strict";cc.exports={isNode:typeof Buffer<"u",newBufferFrom:a(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:a(function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},"allocBuffer"),isBuffer:a(function(e){return Buffer.isBuffer(e)},"isBuffer"),isStream:a(function(e){return e&&typeof e.on=="function"&&typeof e.pause=="function"&&typeof e.resume=="function"},"isStream")}});var gc=P((YR,mc)=>{"use strict";var hc=global.MutationObserver||global.WebKitMutationObserver,on;process.browser?hc?(rl=0,pc=new hc(oi),nl=global.document.createTextNode(""),pc.observe(nl,{characterData:!0}),on=a(function(){nl.data=rl=++rl%2},"scheduleDrain")):!global.setImmediate&&typeof global.MessageChannel<"u"?(il=new global.MessageChannel,il.port1.onmessage=oi,on=a(function(){il.port2.postMessage(0)},"scheduleDrain")):"document"in global&&"onreadystatechange"in global.document.createElement("script")?on=a(function(){var e=global.document.createElement("script");e.onreadystatechange=function(){oi(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},global.document.documentElement.appendChild(e)},"scheduleDrain"):on=a(function(){setTimeout(oi,0)},"scheduleDrain"):on=a(function(){process.nextTick(oi)},"scheduleDrain");var rl,pc,nl,il,al,si=[];function oi(){al=!0;for(var e,t,r=si.length;r;){for(t=si,si=[],e=-1;++e<r;)t[e]();r=si.length}al=!1}a(oi,"nextTick");mc.exports=Oy;function Oy(e){si.push(e)===1&&!al&&on()}a(Oy,"immediate")});var Rc=P((KR,Sc)=>{"use strict";var bc=gc();function sn(){}a(sn,"INTERNAL");var he={},_c=["REJECTED"],ol=["FULFILLED"],yc=["PENDING"];process.browser||(li=["UNHANDLED"]);var li;Sc.exports=Ht;function Ht(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=yc,this.queue=[],this.outcome=void 0,process.browser||(this.handled=li),e!==sn&&vc(this,e)}a(Ht,"Promise");Ht.prototype.finally=function(e){if(typeof e!="function")return this;var t=this.constructor;return this.then(r,n);function r(o){function l(){return o}return a(l,"yes"),t.resolve(e()).then(l)}function n(o){function l(){throw o}return a(l,"no"),t.resolve(e()).then(l)}};Ht.prototype.catch=function(e){return this.then(null,e)};Ht.prototype.then=function(e,t){if(typeof e!="function"&&this.state===ol||typeof t!="function"&&this.state===_c)return this;var r=new this.constructor(sn);if(process.browser||this.handled===li&&(this.handled=null),this.state!==yc){var n=this.state===ol?e:t;sl(r,n,this.outcome)}else this.queue.push(new ui(r,e,t));return r};function ui(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)}a(ui,"QueueItem");ui.prototype.callFulfilled=function(e){he.resolve(this.promise,e)};ui.prototype.otherCallFulfilled=function(e){sl(this.promise,this.onFulfilled,e)};ui.prototype.callRejected=function(e){he.reject(this.promise,e)};ui.prototype.otherCallRejected=function(e){sl(this.promise,this.onRejected,e)};function sl(e,t,r){bc(function(){var n;try{n=t(r)}catch(o){return he.reject(e,o)}n===e?he.reject(e,new TypeError("Cannot resolve promise with itself")):he.resolve(e,n)})}a(sl,"unwrap");he.resolve=function(e,t){var r=wc(Fy,t);if(r.status==="error")return he.reject(e,r.value);var n=r.value;if(n)vc(e,n);else{e.state=ol,e.outcome=t;for(var o=-1,l=e.queue.length;++o<l;)e.queue[o].callFulfilled(t)}return e};he.reject=function(e,t){e.state=_c,e.outcome=t,process.browser||e.handled===li&&bc(function(){e.handled===li&&process.emit("unhandledRejection",t,e)});for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e};function Fy(e){var t=e&&e.then;if(e&&(typeof e=="object"||typeof e=="function")&&typeof t=="function")return a(function(){t.apply(e,arguments)},"appyThen")}a(Fy,"getThen");function vc(e,t){var r=!1;function n(c){r||(r=!0,he.reject(e,c))}a(n,"onError");function o(c){r||(r=!0,he.resolve(e,c))}a(o,"onSuccess");function l(){t(o,n)}a(l,"tryToUnwrap");var f=wc(l);f.status==="error"&&n(f.value)}a(vc,"safelyResolveThenable");function wc(e,t){var r={};try{r.value=e(t),r.status="success"}catch(n){r.status="error",r.value=n}return r}a(wc,"tryCatch");Ht.resolve=By;function By(e){return e instanceof this?e:he.resolve(new this(sn),e)}a(By,"resolve");Ht.reject=Dy;function Dy(e){var t=new this(sn);return he.reject(t,e)}a(Dy,"reject");Ht.all=Ly;function Ly(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,n=!1;if(!r)return this.resolve([]);for(var o=new Array(r),l=0,f=-1,c=new this(sn);++f<r;)m(e[f],f);return c;function m(d,h){t.resolve(d).then(x,function(_){n||(n=!0,he.reject(c,_))});function x(_){o[h]=_,++l===r&&!n&&(n=!0,he.resolve(c,o))}a(x,"resolveFromAll")}}a(Ly,"all");Ht.race=qy;function qy(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,n=!1;if(!r)return this.resolve([]);for(var o=-1,l=new this(sn);++o<r;)f(e[o]);return l;function f(c){t.resolve(c).then(function(m){n||(n=!0,he.resolve(l,m))},function(m){n||(n=!0,he.reject(l,m))})}}a(qy,"race")});var ln=P((QR,Tc)=>{"use strict";var ll=null;typeof Promise<"u"?ll=Promise:ll=Rc();Tc.exports={Promise:ll}});var Ac=P(xc=>{(function(e,t){"use strict";if(e.setImmediate)return;var r=1,n={},o=!1,l=e.document,f;function c(A){typeof A!="function"&&(A=new Function(""+A));for(var C=new Array(arguments.length-1),R=0;R<C.length;R++)C[R]=arguments[R+1];var T={callback:A,args:C};return n[r]=T,f(r),r++}a(c,"setImmediate");function m(A){delete n[A]}a(m,"clearImmediate");function d(A){var C=A.callback,R=A.args;switch(R.length){case 0:C();break;case 1:C(R[0]);break;case 2:C(R[0],R[1]);break;case 3:C(R[0],R[1],R[2]);break;default:C.apply(t,R);break}}a(d,"run");function h(A){if(o)setTimeout(h,0,A);else{var C=n[A];if(C){o=!0;try{d(C)}finally{m(A),o=!1}}}}a(h,"runIfPresent");function x(){f=a(function(A){process.nextTick(function(){h(A)})},"registerImmediate")}a(x,"installNextTickImplementation");function _(){if(e.postMessage&&!e.importScripts){var A=!0,C=e.onmessage;return e.onmessage=function(){A=!1},e.postMessage("","*"),e.onmessage=C,A}}a(_,"canUsePostMessage");function w(){var A="setImmediate$"+Math.random()+"$",C=a(function(R){R.source===e&&typeof R.data=="string"&&R.data.indexOf(A)===0&&h(+R.data.slice(A.length))},"onGlobalMessage");e.addEventListener?e.addEventListener("message",C,!1):e.attachEvent("onmessage",C),f=a(function(R){e.postMessage(A+R,"*")},"registerImmediate")}a(w,"installPostMessageImplementation");function v(){var A=new MessageChannel;A.port1.onmessage=function(C){var R=C.data;h(R)},f=a(function(C){A.port2.postMessage(C)},"registerImmediate")}a(v,"installMessageChannelImplementation");function k(){var A=l.documentElement;f=a(function(C){var R=l.createElement("script");R.onreadystatechange=function(){h(C),R.onreadystatechange=null,A.removeChild(R),R=null},A.appendChild(R)},"registerImmediate")}a(k,"installReadyStateChangeImplementation");function E(){f=a(function(A){setTimeout(h,0,A)},"registerImmediate")}a(E,"installSetTimeoutImplementation");var S=Object.getPrototypeOf&&Object.getPrototypeOf(e);S=S&&S.setTimeout?S:e,{}.toString.call(e.process)==="[object process]"?x():_()?w():e.MessageChannel?v():l&&"onreadystatechange"in l.createElement("script")?k():E(),S.setImmediate=c,S.clearImmediate=m})(typeof self>"u"?typeof global>"u"?xc:global:self)});var ee=P(ie=>{"use strict";var Zt=Et(),zy=tl(),un=ai(),ul=ln();Ac();function My(e){var t=null;return Zt.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),Oa(e,t)}a(My,"string2binary");ie.newBlob=function(e,t){ie.checkSupport("blob");try{return new Blob([e],{type:t})}catch{try{var r=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,n=new r;return n.append(e),n.getBlob(t)}catch{throw new Error("Bug : can't construct the Blob.")}}};function fi(e){return e}a(fi,"identity");function Oa(e,t){for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)&255;return t}a(Oa,"stringToArrayLike");var Ia={stringifyByChunk:a(function(e,t,r){var n=[],o=0,l=e.length;if(l<=r)return String.fromCharCode.apply(null,e);for(;o<l;)t==="array"||t==="nodebuffer"?n.push(String.fromCharCode.apply(null,e.slice(o,Math.min(o+r,l)))):n.push(String.fromCharCode.apply(null,e.subarray(o,Math.min(o+r,l)))),o+=r;return n.join("")},"stringifyByChunk"),stringifyByChar:a(function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},"stringifyByChar"),applyCanBeUsed:{uint8array:function(){try{return Zt.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return Zt.nodebuffer&&String.fromCharCode.apply(null,un.allocBuffer(1)).length===1}catch{return!1}}()}};function di(e){var t=65536,r=ie.getTypeOf(e),n=!0;if(r==="uint8array"?n=Ia.applyCanBeUsed.uint8array:r==="nodebuffer"&&(n=Ia.applyCanBeUsed.nodebuffer),n)for(;t>1;)try{return Ia.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return Ia.stringifyByChar(e)}a(di,"arrayLikeToString");ie.applyFromCharCode=di;function Fa(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}a(Fa,"arrayLikeToArrayLike");var $t={};$t.string={string:fi,array:a(function(e){return Oa(e,new Array(e.length))},"array"),arraybuffer:a(function(e){return $t.string.uint8array(e).buffer},"arraybuffer"),uint8array:a(function(e){return Oa(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:a(function(e){return Oa(e,un.allocBuffer(e.length))},"nodebuffer")};$t.array={string:di,array:fi,arraybuffer:a(function(e){return new Uint8Array(e).buffer},"arraybuffer"),uint8array:a(function(e){return new Uint8Array(e)},"uint8array"),nodebuffer:a(function(e){return un.newBufferFrom(e)},"nodebuffer")};$t.arraybuffer={string:a(function(e){return di(new Uint8Array(e))},"string"),array:a(function(e){return Fa(new Uint8Array(e),new Array(e.byteLength))},"array"),arraybuffer:fi,uint8array:a(function(e){return new Uint8Array(e)},"uint8array"),nodebuffer:a(function(e){return un.newBufferFrom(new Uint8Array(e))},"nodebuffer")};$t.uint8array={string:di,array:a(function(e){return Fa(e,new Array(e.length))},"array"),arraybuffer:a(function(e){return e.buffer},"arraybuffer"),uint8array:fi,nodebuffer:a(function(e){return un.newBufferFrom(e)},"nodebuffer")};$t.nodebuffer={string:di,array:a(function(e){return Fa(e,new Array(e.length))},"array"),arraybuffer:a(function(e){return $t.nodebuffer.uint8array(e).buffer},"arraybuffer"),uint8array:a(function(e){return Fa(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:fi};ie.transformTo=function(e,t){if(t||(t=""),!e)return t;ie.checkSupport(e);var r=ie.getTypeOf(t),n=$t[r][e](t);return n};ie.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var o=t[n];o==="."||o===""&&n!==0&&n!==t.length-1||(o===".."?r.pop():r.push(o))}return r.join("/")};ie.getTypeOf=function(e){if(typeof e=="string")return"string";if(Object.prototype.toString.call(e)==="[object Array]")return"array";if(Zt.nodebuffer&&un.isBuffer(e))return"nodebuffer";if(Zt.uint8array&&e instanceof Uint8Array)return"uint8array";if(Zt.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer"};ie.checkSupport=function(e){var t=Zt[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this platform")};ie.MAX_VALUE_16BITS=65535;ie.MAX_VALUE_32BITS=-1;ie.pretty=function(e){var t="",r,n;for(n=0;n<(e||"").length;n++)r=e.charCodeAt(n),t+="\\x"+(r<16?"0":"")+r.toString(16).toUpperCase();return t};ie.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})};ie.inherits=function(e,t){var r=a(function(){},"Obj");r.prototype=t.prototype,e.prototype=new r};ie.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};ie.prepareContent=function(e,t,r,n,o){var l=ul.Promise.resolve(t).then(function(f){var c=Zt.blob&&(f instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(f))!==-1);return c&&typeof FileReader<"u"?new ul.Promise(function(m,d){var h=new FileReader;h.onload=function(x){m(x.target.result)},h.onerror=function(x){d(x.target.error)},h.readAsArrayBuffer(f)}):f});return l.then(function(f){var c=ie.getTypeOf(f);return c?(c==="arraybuffer"?f=ie.transformTo("uint8array",f):c==="string"&&(o?f=zy.decode(f):r&&n!==!0&&(f=My(f))),f):ul.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}});var Ee=P((nT,kc)=>{"use strict";function Ec(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}a(Ec,"GenericWorker");Ec.prototype={push:a(function(e){this.emit("data",e)},"push"),end:a(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:a(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:a(function(e,t){return this._listeners[e].push(t),this},"on"),cleanUp:a(function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},"cleanUp"),emit:a(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:a(function(e){return e.registerPrevious(this)},"pipe"),registerPrevious:a(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:a(function(){return this.isPaused||this.isFinished?!1:(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},"pause"),resume:a(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:a(function(){},"flush"),processChunk:a(function(e){this.push(e)},"processChunk"),withStreamInfo:a(function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},"withStreamInfo"),mergeStreamInfo:a(function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},"mergeStreamInfo"),lock:a(function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},"lock"),toString:a(function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e},"toString")};kc.exports=Ec});var dn=P(Vt=>{"use strict";var fn=ee(),br=Et(),Uy=ai(),Ba=Ee(),ci=new Array(256);for(kt=0;kt<256;kt++)ci[kt]=kt>=252?6:kt>=248?5:kt>=240?4:kt>=224?3:kt>=192?2:1;var kt;ci[254]=ci[254]=1;var Wy=a(function(e){var t,r,n,o,l,f=e.length,c=0;for(o=0;o<f;o++)r=e.charCodeAt(o),(r&64512)===55296&&o+1<f&&(n=e.charCodeAt(o+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),o++)),c+=r<128?1:r<2048?2:r<65536?3:4;for(br.uint8array?t=new Uint8Array(c):t=new Array(c),l=0,o=0;l<c;o++)r=e.charCodeAt(o),(r&64512)===55296&&o+1<f&&(n=e.charCodeAt(o+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),o++)),r<128?t[l++]=r:r<2048?(t[l++]=192|r>>>6,t[l++]=128|r&63):r<65536?(t[l++]=224|r>>>12,t[l++]=128|r>>>6&63,t[l++]=128|r&63):(t[l++]=240|r>>>18,t[l++]=128|r>>>12&63,t[l++]=128|r>>>6&63,t[l++]=128|r&63);return t},"string2buf"),Ny=a(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+ci[e[r]]>t?r:t},"utf8border"),jy=a(function(e){var t,r,n,o,l=e.length,f=new Array(l*2);for(r=0,t=0;t<l;){if(n=e[t++],n<128){f[r++]=n;continue}if(o=ci[n],o>4){f[r++]=65533,t+=o-1;continue}for(n&=o===2?31:o===3?15:7;o>1&&t<l;)n=n<<6|e[t++]&63,o--;if(o>1){f[r++]=65533;continue}n<65536?f[r++]=n:(n-=65536,f[r++]=55296|n>>10&1023,f[r++]=56320|n&1023)}return f.length!==r&&(f.subarray?f=f.subarray(0,r):f.length=r),fn.applyFromCharCode(f)},"buf2string");Vt.utf8encode=a(function(t){return br.nodebuffer?Uy.newBufferFrom(t,"utf-8"):Wy(t)},"utf8encode");Vt.utf8decode=a(function(t){return br.nodebuffer?fn.transformTo("nodebuffer",t).toString("utf-8"):(t=fn.transformTo(br.uint8array?"uint8array":"array",t),jy(t))},"utf8decode");function Da(){Ba.call(this,"utf-8 decode"),this.leftOver=null}a(Da,"Utf8DecodeWorker");fn.inherits(Da,Ba);Da.prototype.processChunk=function(e){var t=fn.transformTo(br.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(br.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 n=Ny(t),o=t;n!==t.length&&(br.uint8array?(o=t.subarray(0,n),this.leftOver=t.subarray(n,t.length)):(o=t.slice(0,n),this.leftOver=t.slice(n,t.length))),this.push({data:Vt.utf8decode(o),meta:e.meta})};Da.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:Vt.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};Vt.Utf8DecodeWorker=Da;function fl(){Ba.call(this,"utf-8 encode")}a(fl,"Utf8EncodeWorker");fn.inherits(fl,Ba);fl.prototype.processChunk=function(e){this.push({data:Vt.utf8encode(e.data),meta:e.meta})};Vt.Utf8EncodeWorker=fl});var Oc=P((sT,Ic)=>{"use strict";var Cc=Ee(),Pc=ee();function dl(e){Cc.call(this,"ConvertWorker to "+e),this.destType=e}a(dl,"ConvertWorker");Pc.inherits(dl,Cc);dl.prototype.processChunk=function(e){this.push({data:Pc.transformTo(this.destType,e.data),meta:e.meta})};Ic.exports=dl});var Dc=P((uT,Bc)=>{"use strict";var Fc=Xs().Readable,Hy=ee();Hy.inherits(cl,Fc);function cl(e,t,r){Fc.call(this,t),this._helper=e;var n=this;e.on("data",function(o,l){n.push(o)||n._helper.pause(),r&&r(l)}).on("error",function(o){n.emit("error",o)}).on("end",function(){n.push(null)})}a(cl,"NodejsStreamOutputAdapter");cl.prototype._read=function(){this._helper.resume()};Bc.exports=cl});var hl=P((dT,zc)=>{"use strict";var _r=ee(),Zy=Oc(),$y=Ee(),Vy=tl(),Yy=Et(),Gy=ln(),Lc=null;if(Yy.nodestream)try{Lc=Dc()}catch{}function Ky(e,t,r){switch(e){case"blob":return _r.newBlob(_r.transformTo("arraybuffer",t),r);case"base64":return Vy.encode(t);default:return _r.transformTo(e,t)}}a(Ky,"transformZipOutput");function Xy(e,t){var r,n=0,o=null,l=0;for(r=0;r<t.length;r++)l+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(o=new Uint8Array(l),r=0;r<t.length;r++)o.set(t[r],n),n+=t[r].length;return o;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}a(Xy,"concat");function Qy(e,t){return new Gy.Promise(function(r,n){var o=[],l=e._internalType,f=e._outputType,c=e._mimeType;e.on("data",function(m,d){o.push(m),t&&t(d)}).on("error",function(m){o=[],n(m)}).on("end",function(){try{var m=Ky(f,Xy(l,o),c);r(m)}catch(d){n(d)}o=[]}).resume()})}a(Qy,"accumulate");function qc(e,t,r){var n=t;switch(t){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string";break}try{this._internalType=n,this._outputType=t,this._mimeType=r,_r.checkSupport(n),this._worker=e.pipe(new Zy(n)),e.lock()}catch(o){this._worker=new $y("error"),this._worker.error(o)}}a(qc,"StreamHelper");qc.prototype={accumulate:a(function(e){return Qy(this,e)},"accumulate"),on:a(function(e,t){var r=this;return e==="data"?this._worker.on(e,function(n){t.call(r,n.data,n.meta)}):this._worker.on(e,function(){_r.delay(t,arguments,r)}),this},"on"),resume:a(function(){return _r.delay(this._worker.resume,[],this._worker),this},"resume"),pause:a(function(){return this._worker.pause(),this},"pause"),toNodejsStream:a(function(e){if(_r.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new Lc(this,{objectMode:this._outputType!=="nodebuffer"},e)},"toNodejsStream")};zc.exports=qc});var pl=P(Ye=>{"use strict";Ye.base64=!1;Ye.binary=!1;Ye.dir=!1;Ye.createFolders=!0;Ye.date=null;Ye.compression=null;Ye.compressionOptions=null;Ye.comment=null;Ye.unixPermissions=null;Ye.dosPermissions=null});var ml=P((pT,Mc)=>{"use strict";var La=ee(),qa=Ee(),Jy=16*1024;function cn(e){qa.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=La.getTypeOf(r),t.isPaused||t._tickAndRepeat()},function(r){t.error(r)})}a(cn,"DataWorker");La.inherits(cn,qa);cn.prototype.cleanUp=function(){qa.prototype.cleanUp.call(this),this.data=null};cn.prototype.resume=function(){return qa.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,La.delay(this._tickAndRepeat,[],this)),!0):!1};cn.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(La.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};cn.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=Jy,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}})};Mc.exports=cn});var za=P((gT,Wc)=>{"use strict";var ev=ee();function tv(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}a(tv,"makeTable");var Uc=tv();function rv(e,t,r,n){var o=Uc,l=n+r;e=e^-1;for(var f=n;f<l;f++)e=e>>>8^o[(e^t[f])&255];return e^-1}a(rv,"crc32");function nv(e,t,r,n){var o=Uc,l=n+r;e=e^-1;for(var f=n;f<l;f++)e=e>>>8^o[(e^t.charCodeAt(f))&255];return e^-1}a(nv,"crc32str");Wc.exports=a(function(t,r){if(typeof t>"u"||!t.length)return 0;var n=ev.getTypeOf(t)!=="string";return n?rv(r|0,t,t.length,0):nv(r|0,t,t.length,0)},"crc32wrapper")});var bl=P((_T,jc)=>{"use strict";var Nc=Ee(),iv=za(),av=ee();function gl(){Nc.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}a(gl,"Crc32Probe");av.inherits(gl,Nc);gl.prototype.processChunk=function(e){this.streamInfo.crc32=iv(e.data,this.streamInfo.crc32||0),this.push(e)};jc.exports=gl});var Zc=P((vT,Hc)=>{"use strict";var ov=ee(),_l=Ee();function yl(e){_l.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}a(yl,"DataLengthProbe");ov.inherits(yl,_l);yl.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}_l.prototype.processChunk.call(this,e)};Hc.exports=yl});var Ma=P((ST,Yc)=>{"use strict";var $c=ln(),Vc=ml(),sv=bl(),vl=Zc();function wl(e,t,r,n,o){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=o}a(wl,"CompressedObject");wl.prototype={getContentWorker:a(function(){var e=new Vc($c.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new vl("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:a(function(){return new Vc($c.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)},"getCompressedWorker")};wl.createWorkerFrom=function(e,t,r){return e.pipe(new sv).pipe(new vl("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new vl("compressedSize")).withStreamInfo("compression",t)};Yc.exports=wl});var Qc=P((TT,Xc)=>{"use strict";var lv=hl(),uv=ml(),Sl=dn(),Rl=Ma(),Gc=Ee(),Tl=a(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");Tl.prototype={internalStream:a(function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");r=e.toLowerCase();var n=r==="string"||r==="text";(r==="binarystring"||r==="text")&&(r="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!n&&(t=t.pipe(new Sl.Utf8EncodeWorker)),!o&&n&&(t=t.pipe(new Sl.Utf8DecodeWorker))}catch(l){t=new Gc("error"),t.error(l)}return new lv(t,r,"")},"internalStream"),async:a(function(e,t){return this.internalStream(e).accumulate(t)},"async"),nodeStream:a(function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},"nodeStream"),_compressWorker:a(function(e,t){if(this._data instanceof Rl&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new Sl.Utf8EncodeWorker)),Rl.createWorkerFrom(r,e,t)},"_compressWorker"),_decompressWorker:a(function(){return this._data instanceof Rl?this._data.getContentWorker():this._data instanceof Gc?this._data:new uv(this._data)},"_decompressWorker")};var Kc=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],fv=a(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"removedFn");for(Ua=0;Ua<Kc.length;Ua++)Tl.prototype[Kc[Ua]]=fv;var Ua;Xc.exports=Tl});var Ct=P(me=>{"use strict";var dv=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function cv(e,t){return Object.prototype.hasOwnProperty.call(e,t)}a(cv,"_has");me.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 n in r)cv(r,n)&&(e[n]=r[n])}}return e};me.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var hv={arraySet:a(function(e,t,r,n,o){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+n),o);return}for(var l=0;l<n;l++)e[o+l]=t[r+l]},"arraySet"),flattenChunks:a(function(e){var t,r,n,o,l,f;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(f=new Uint8Array(n),o=0,t=0,r=e.length;t<r;t++)l=e[t],f.set(l,o),o+=l.length;return f},"flattenChunks")},pv={arraySet:a(function(e,t,r,n,o){for(var l=0;l<n;l++)e[o+l]=t[r+l]},"arraySet"),flattenChunks:a(function(e){return[].concat.apply([],e)},"flattenChunks")};me.setTyped=function(e){e?(me.Buf8=Uint8Array,me.Buf16=Uint16Array,me.Buf32=Int32Array,me.assign(me,hv)):(me.Buf8=Array,me.Buf16=Array,me.Buf32=Array,me.assign(me,pv))};me.setTyped(dv)});var wh=P(mn=>{"use strict";var mv=Ct(),gv=4,Jc=0,eh=1,bv=2;function pn(e){for(var t=e.length;--t>=0;)e[t]=0}a(pn,"zero");var _v=0,oh=1,yv=2,vv=3,wv=258,Il=29,_i=256,pi=_i+1+Il,hn=30,Ol=19,sh=2*pi+1,yr=15,xl=16,Sv=7,Fl=256,lh=16,uh=17,fh=18,Cl=[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],Wa=[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],Rv=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],dh=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Tv=512,Pt=new Array((pi+2)*2);pn(Pt);var hi=new Array(hn*2);pn(hi);var mi=new Array(Tv);pn(mi);var gi=new Array(wv-vv+1);pn(gi);var Bl=new Array(Il);pn(Bl);var Na=new Array(hn);pn(Na);function Al(e,t,r,n,o){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=o,this.has_stree=e&&e.length}a(Al,"StaticTreeDesc");var ch,hh,ph;function El(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}a(El,"TreeDesc");function mh(e){return e<256?mi[e]:mi[256+(e>>>7)]}a(mh,"d_code");function bi(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}a(bi,"put_short");function ve(e,t,r){e.bi_valid>xl-r?(e.bi_buf|=t<<e.bi_valid&65535,bi(e,e.bi_buf),e.bi_buf=t>>xl-e.bi_valid,e.bi_valid+=r-xl):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}a(ve,"send_bits");function ut(e,t,r){ve(e,r[t*2],r[t*2+1])}a(ut,"send_code");function gh(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}a(gh,"bi_reverse");function xv(e){e.bi_valid===16?(bi(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)}a(xv,"bi_flush");function Av(e,t){var r=t.dyn_tree,n=t.max_code,o=t.stat_desc.static_tree,l=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,c=t.stat_desc.extra_base,m=t.stat_desc.max_length,d,h,x,_,w,v,k=0;for(_=0;_<=yr;_++)e.bl_count[_]=0;for(r[e.heap[e.heap_max]*2+1]=0,d=e.heap_max+1;d<sh;d++)h=e.heap[d],_=r[r[h*2+1]*2+1]+1,_>m&&(_=m,k++),r[h*2+1]=_,!(h>n)&&(e.bl_count[_]++,w=0,h>=c&&(w=f[h-c]),v=r[h*2],e.opt_len+=v*(_+w),l&&(e.static_len+=v*(o[h*2+1]+w)));if(k!==0){do{for(_=m-1;e.bl_count[_]===0;)_--;e.bl_count[_]--,e.bl_count[_+1]+=2,e.bl_count[m]--,k-=2}while(k>0);for(_=m;_!==0;_--)for(h=e.bl_count[_];h!==0;)x=e.heap[--d],!(x>n)&&(r[x*2+1]!==_&&(e.opt_len+=(_-r[x*2+1])*r[x*2],r[x*2+1]=_),h--)}}a(Av,"gen_bitlen");function bh(e,t,r){var n=new Array(yr+1),o=0,l,f;for(l=1;l<=yr;l++)n[l]=o=o+r[l-1]<<1;for(f=0;f<=t;f++){var c=e[f*2+1];c!==0&&(e[f*2]=gh(n[c]++,c))}}a(bh,"gen_codes");function Ev(){var e,t,r,n,o,l=new Array(yr+1);for(r=0,n=0;n<Il-1;n++)for(Bl[n]=r,e=0;e<1<<Cl[n];e++)gi[r++]=n;for(gi[r-1]=n,o=0,n=0;n<16;n++)for(Na[n]=o,e=0;e<1<<Wa[n];e++)mi[o++]=n;for(o>>=7;n<hn;n++)for(Na[n]=o<<7,e=0;e<1<<Wa[n]-7;e++)mi[256+o++]=n;for(t=0;t<=yr;t++)l[t]=0;for(e=0;e<=143;)Pt[e*2+1]=8,e++,l[8]++;for(;e<=255;)Pt[e*2+1]=9,e++,l[9]++;for(;e<=279;)Pt[e*2+1]=7,e++,l[7]++;for(;e<=287;)Pt[e*2+1]=8,e++,l[8]++;for(bh(Pt,pi+1,l),e=0;e<hn;e++)hi[e*2+1]=5,hi[e*2]=gh(e,5);ch=new Al(Pt,Cl,_i+1,pi,yr),hh=new Al(hi,Wa,0,hn,yr),ph=new Al(new Array(0),Rv,0,Ol,Sv)}a(Ev,"tr_static_init");function _h(e){var t;for(t=0;t<pi;t++)e.dyn_ltree[t*2]=0;for(t=0;t<hn;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Ol;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Fl*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}a(_h,"init_block");function yh(e){e.bi_valid>8?bi(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}a(yh,"bi_windup");function kv(e,t,r,n){yh(e),n&&(bi(e,r),bi(e,~r)),mv.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}a(kv,"copy_block");function th(e,t,r,n){var o=t*2,l=r*2;return e[o]<e[l]||e[o]===e[l]&&n[t]<=n[r]}a(th,"smaller");function kl(e,t,r){for(var n=e.heap[r],o=r<<1;o<=e.heap_len&&(o<e.heap_len&&th(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!th(t,n,e.heap[o],e.depth));)e.heap[r]=e.heap[o],r=o,o<<=1;e.heap[r]=n}a(kl,"pqdownheap");function rh(e,t,r){var n,o,l=0,f,c;if(e.last_lit!==0)do n=e.pending_buf[e.d_buf+l*2]<<8|e.pending_buf[e.d_buf+l*2+1],o=e.pending_buf[e.l_buf+l],l++,n===0?ut(e,o,t):(f=gi[o],ut(e,f+_i+1,t),c=Cl[f],c!==0&&(o-=Bl[f],ve(e,o,c)),n--,f=mh(n),ut(e,f,r),c=Wa[f],c!==0&&(n-=Na[f],ve(e,n,c)));while(l<e.last_lit);ut(e,Fl,t)}a(rh,"compress_block");function Pl(e,t){var r=t.dyn_tree,n=t.stat_desc.static_tree,o=t.stat_desc.has_stree,l=t.stat_desc.elems,f,c,m=-1,d;for(e.heap_len=0,e.heap_max=sh,f=0;f<l;f++)r[f*2]!==0?(e.heap[++e.heap_len]=m=f,e.depth[f]=0):r[f*2+1]=0;for(;e.heap_len<2;)d=e.heap[++e.heap_len]=m<2?++m:0,r[d*2]=1,e.depth[d]=0,e.opt_len--,o&&(e.static_len-=n[d*2+1]);for(t.max_code=m,f=e.heap_len>>1;f>=1;f--)kl(e,r,f);d=l;do f=e.heap[1],e.heap[1]=e.heap[e.heap_len--],kl(e,r,1),c=e.heap[1],e.heap[--e.heap_max]=f,e.heap[--e.heap_max]=c,r[d*2]=r[f*2]+r[c*2],e.depth[d]=(e.depth[f]>=e.depth[c]?e.depth[f]:e.depth[c])+1,r[f*2+1]=r[c*2+1]=d,e.heap[1]=d++,kl(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Av(e,t),bh(r,m,e.bl_count)}a(Pl,"build_tree");function nh(e,t,r){var n,o=-1,l,f=t[0*2+1],c=0,m=7,d=4;for(f===0&&(m=138,d=3),t[(r+1)*2+1]=65535,n=0;n<=r;n++)l=f,f=t[(n+1)*2+1],!(++c<m&&l===f)&&(c<d?e.bl_tree[l*2]+=c:l!==0?(l!==o&&e.bl_tree[l*2]++,e.bl_tree[lh*2]++):c<=10?e.bl_tree[uh*2]++:e.bl_tree[fh*2]++,c=0,o=l,f===0?(m=138,d=3):l===f?(m=6,d=3):(m=7,d=4))}a(nh,"scan_tree");function ih(e,t,r){var n,o=-1,l,f=t[0*2+1],c=0,m=7,d=4;for(f===0&&(m=138,d=3),n=0;n<=r;n++)if(l=f,f=t[(n+1)*2+1],!(++c<m&&l===f)){if(c<d)do ut(e,l,e.bl_tree);while(--c!==0);else l!==0?(l!==o&&(ut(e,l,e.bl_tree),c--),ut(e,lh,e.bl_tree),ve(e,c-3,2)):c<=10?(ut(e,uh,e.bl_tree),ve(e,c-3,3)):(ut(e,fh,e.bl_tree),ve(e,c-11,7));c=0,o=l,f===0?(m=138,d=3):l===f?(m=6,d=3):(m=7,d=4)}}a(ih,"send_tree");function Cv(e){var t;for(nh(e,e.dyn_ltree,e.l_desc.max_code),nh(e,e.dyn_dtree,e.d_desc.max_code),Pl(e,e.bl_desc),t=Ol-1;t>=3&&e.bl_tree[dh[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}a(Cv,"build_bl_tree");function Pv(e,t,r,n){var o;for(ve(e,t-257,5),ve(e,r-1,5),ve(e,n-4,4),o=0;o<n;o++)ve(e,e.bl_tree[dh[o]*2+1],3);ih(e,e.dyn_ltree,t-1),ih(e,e.dyn_dtree,r-1)}a(Pv,"send_all_trees");function Iv(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return Jc;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return eh;for(r=32;r<_i;r++)if(e.dyn_ltree[r*2]!==0)return eh;return Jc}a(Iv,"detect_data_type");var ah=!1;function Ov(e){ah||(Ev(),ah=!0),e.l_desc=new El(e.dyn_ltree,ch),e.d_desc=new El(e.dyn_dtree,hh),e.bl_desc=new El(e.bl_tree,ph),e.bi_buf=0,e.bi_valid=0,_h(e)}a(Ov,"_tr_init");function vh(e,t,r,n){ve(e,(_v<<1)+(n?1:0),3),kv(e,t,r,!0)}a(vh,"_tr_stored_block");function Fv(e){ve(e,oh<<1,3),ut(e,Fl,Pt),xv(e)}a(Fv,"_tr_align");function Bv(e,t,r,n){var o,l,f=0;e.level>0?(e.strm.data_type===bv&&(e.strm.data_type=Iv(e)),Pl(e,e.l_desc),Pl(e,e.d_desc),f=Cv(e),o=e.opt_len+3+7>>>3,l=e.static_len+3+7>>>3,l<=o&&(o=l)):o=l=r+5,r+4<=o&&t!==-1?vh(e,t,r,n):e.strategy===gv||l===o?(ve(e,(oh<<1)+(n?1:0),3),rh(e,Pt,hi)):(ve(e,(yv<<1)+(n?1:0),3),Pv(e,e.l_desc.max_code+1,e.d_desc.max_code+1,f+1),rh(e,e.dyn_ltree,e.dyn_dtree)),_h(e),n&&yh(e)}a(Bv,"_tr_flush_block");function Dv(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[(gi[r]+_i+1)*2]++,e.dyn_dtree[mh(t)*2]++),e.last_lit===e.lit_bufsize-1}a(Dv,"_tr_tally");mn._tr_init=Ov;mn._tr_stored_block=vh;mn._tr_flush_block=Bv;mn._tr_tally=Dv;mn._tr_align=Fv});var Dl=P((PT,Sh)=>{"use strict";function Lv(e,t,r,n){for(var o=e&65535|0,l=e>>>16&65535|0,f=0;r!==0;){f=r>2e3?2e3:r,r-=f;do o=o+t[n++]|0,l=l+o|0;while(--f);o%=65521,l%=65521}return o|l<<16|0}a(Lv,"adler32");Sh.exports=Lv});var Ll=P((OT,Rh)=>{"use strict";function qv(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}a(qv,"makeTable");var zv=qv();function Mv(e,t,r,n){var o=zv,l=n+r;e^=-1;for(var f=n;f<l;f++)e=e>>>8^o[(e^t[f])&255];return e^-1}a(Mv,"crc32");Rh.exports=Mv});var ja=P((BT,Th)=>{"use strict";Th.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 Fh=P(ct=>{"use strict";var ge=Ct(),Le=wh(),kh=Dl(),Yt=Ll(),Uv=ja(),Rr=0,Wv=1,Nv=3,Jt=4,xh=5,dt=0,Ah=1,qe=-2,jv=-3,ql=-5,Hv=-1,Zv=1,Ha=2,$v=3,Vv=4,Yv=0,Gv=2,Ya=8,Kv=9,Xv=15,Qv=8,Jv=29,e0=256,Ml=e0+1+Jv,t0=30,r0=19,n0=2*Ml+1,i0=15,j=3,Xt=258,Ge=Xt+j+1,a0=32,Ga=42,Ul=69,Za=73,$a=91,Va=103,vr=113,vi=666,ae=1,wi=2,wr=3,_n=4,o0=3;function Qt(e,t){return e.msg=Uv[t],t}a(Qt,"err");function Eh(e){return(e<<1)-(e>4?9:0)}a(Eh,"rank");function Kt(e){for(var t=e.length;--t>=0;)e[t]=0}a(Kt,"zero");function Gt(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(ge.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))}a(Gt,"flush_pending");function fe(e,t){Le._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Gt(e.strm)}a(fe,"flush_block_only");function H(e,t){e.pending_buf[e.pending++]=t}a(H,"put_byte");function yi(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}a(yi,"putShortMSB");function s0(e,t,r,n){var o=e.avail_in;return o>n&&(o=n),o===0?0:(e.avail_in-=o,ge.arraySet(t,e.input,e.next_in,o,r),e.state.wrap===1?e.adler=kh(e.adler,t,o,r):e.state.wrap===2&&(e.adler=Yt(e.adler,t,o,r)),e.next_in+=o,e.total_in+=o,o)}a(s0,"read_buf");function Ch(e,t){var r=e.max_chain_length,n=e.strstart,o,l,f=e.prev_length,c=e.nice_match,m=e.strstart>e.w_size-Ge?e.strstart-(e.w_size-Ge):0,d=e.window,h=e.w_mask,x=e.prev,_=e.strstart+Xt,w=d[n+f-1],v=d[n+f];e.prev_length>=e.good_match&&(r>>=2),c>e.lookahead&&(c=e.lookahead);do if(o=t,!(d[o+f]!==v||d[o+f-1]!==w||d[o]!==d[n]||d[++o]!==d[n+1])){n+=2,o++;do;while(d[++n]===d[++o]&&d[++n]===d[++o]&&d[++n]===d[++o]&&d[++n]===d[++o]&&d[++n]===d[++o]&&d[++n]===d[++o]&&d[++n]===d[++o]&&d[++n]===d[++o]&&n<_);if(l=Xt-(_-n),n=_-Xt,l>f){if(e.match_start=t,f=l,l>=c)break;w=d[n+f-1],v=d[n+f]}}while((t=x[t&h])>m&&--r!==0);return f<=e.lookahead?f:e.lookahead}a(Ch,"longest_match");function Sr(e){var t=e.w_size,r,n,o,l,f;do{if(l=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Ge)){ge.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,n=e.hash_size,r=n;do o=e.head[--r],e.head[r]=o>=t?o-t:0;while(--n);n=t,r=n;do o=e.prev[--r],e.prev[r]=o>=t?o-t:0;while(--n);l+=t}if(e.strm.avail_in===0)break;if(n=s0(e.strm,e.window,e.strstart+e.lookahead,l),e.lookahead+=n,e.lookahead+e.insert>=j)for(f=e.strstart-e.insert,e.ins_h=e.window[f],e.ins_h=(e.ins_h<<e.hash_shift^e.window[f+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[f+j-1])&e.hash_mask,e.prev[f&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=f,f++,e.insert--,!(e.lookahead+e.insert<j)););}while(e.lookahead<Ge&&e.strm.avail_in!==0)}a(Sr,"fill_window");function l0(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Sr(e),e.lookahead===0&&t===Rr)return ae;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((e.strstart===0||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,fe(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Ge&&(fe(e,!1),e.strm.avail_out===0))return ae}return e.insert=0,t===Jt?(fe(e,!0),e.strm.avail_out===0?wr:_n):(e.strstart>e.block_start&&(fe(e,!1),e.strm.avail_out===0),ae)}a(l0,"deflate_stored");function zl(e,t){for(var r,n;;){if(e.lookahead<Ge){if(Sr(e),e.lookahead<Ge&&t===Rr)return ae;if(e.lookahead===0)break}if(r=0,e.lookahead>=j&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+j-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-Ge&&(e.match_length=Ch(e,r)),e.match_length>=j)if(n=Le._tr_tally(e,e.strstart-e.match_start,e.match_length-j),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=j){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+j-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 n=Le._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(fe(e,!1),e.strm.avail_out===0))return ae}return e.insert=e.strstart<j-1?e.strstart:j-1,t===Jt?(fe(e,!0),e.strm.avail_out===0?wr:_n):e.last_lit&&(fe(e,!1),e.strm.avail_out===0)?ae:wi}a(zl,"deflate_fast");function gn(e,t){for(var r,n,o;;){if(e.lookahead<Ge){if(Sr(e),e.lookahead<Ge&&t===Rr)return ae;if(e.lookahead===0)break}if(r=0,e.lookahead>=j&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+j-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=j-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Ge&&(e.match_length=Ch(e,r),e.match_length<=5&&(e.strategy===Zv||e.match_length===j&&e.strstart-e.match_start>4096)&&(e.match_length=j-1)),e.prev_length>=j&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-j,n=Le._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-j),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+j-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=j-1,e.strstart++,n&&(fe(e,!1),e.strm.avail_out===0))return ae}else if(e.match_available){if(n=Le._tr_tally(e,0,e.window[e.strstart-1]),n&&fe(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return ae}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=Le._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<j-1?e.strstart:j-1,t===Jt?(fe(e,!0),e.strm.avail_out===0?wr:_n):e.last_lit&&(fe(e,!1),e.strm.avail_out===0)?ae:wi}a(gn,"deflate_slow");function u0(e,t){for(var r,n,o,l,f=e.window;;){if(e.lookahead<=Xt){if(Sr(e),e.lookahead<=Xt&&t===Rr)return ae;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=j&&e.strstart>0&&(o=e.strstart-1,n=f[o],n===f[++o]&&n===f[++o]&&n===f[++o])){l=e.strstart+Xt;do;while(n===f[++o]&&n===f[++o]&&n===f[++o]&&n===f[++o]&&n===f[++o]&&n===f[++o]&&n===f[++o]&&n===f[++o]&&o<l);e.match_length=Xt-(l-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=j?(r=Le._tr_tally(e,1,e.match_length-j),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=Le._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(fe(e,!1),e.strm.avail_out===0))return ae}return e.insert=0,t===Jt?(fe(e,!0),e.strm.avail_out===0?wr:_n):e.last_lit&&(fe(e,!1),e.strm.avail_out===0)?ae:wi}a(u0,"deflate_rle");function f0(e,t){for(var r;;){if(e.lookahead===0&&(Sr(e),e.lookahead===0)){if(t===Rr)return ae;break}if(e.match_length=0,r=Le._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(fe(e,!1),e.strm.avail_out===0))return ae}return e.insert=0,t===Jt?(fe(e,!0),e.strm.avail_out===0?wr:_n):e.last_lit&&(fe(e,!1),e.strm.avail_out===0)?ae:wi}a(f0,"deflate_huff");function ft(e,t,r,n,o){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=o}a(ft,"Config");var bn;bn=[new ft(0,0,0,0,l0),new ft(4,4,8,4,zl),new ft(4,5,16,8,zl),new ft(4,6,32,32,zl),new ft(4,4,16,16,gn),new ft(8,16,32,32,gn),new ft(8,16,128,128,gn),new ft(8,32,128,256,gn),new ft(32,128,258,1024,gn),new ft(32,258,258,4096,gn)];function d0(e){e.window_size=2*e.w_size,Kt(e.head),e.max_lazy_match=bn[e.level].max_lazy,e.good_match=bn[e.level].good_length,e.nice_match=bn[e.level].nice_length,e.max_chain_length=bn[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=j-1,e.match_available=0,e.ins_h=0}a(d0,"lm_init");function c0(){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=Ya,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 ge.Buf16(n0*2),this.dyn_dtree=new ge.Buf16((2*t0+1)*2),this.bl_tree=new ge.Buf16((2*r0+1)*2),Kt(this.dyn_ltree),Kt(this.dyn_dtree),Kt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new ge.Buf16(i0+1),this.heap=new ge.Buf16(2*Ml+1),Kt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new ge.Buf16(2*Ml+1),Kt(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}a(c0,"DeflateState");function Ph(e){var t;return!e||!e.state?Qt(e,qe):(e.total_in=e.total_out=0,e.data_type=Gv,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?Ga:vr,e.adler=t.wrap===2?0:1,t.last_flush=Rr,Le._tr_init(t),dt)}a(Ph,"deflateResetKeep");function Ih(e){var t=Ph(e);return t===dt&&d0(e.state),t}a(Ih,"deflateReset");function h0(e,t){return!e||!e.state||e.state.wrap!==2?qe:(e.state.gzhead=t,dt)}a(h0,"deflateSetHeader");function Oh(e,t,r,n,o,l){if(!e)return qe;var f=1;if(t===Hv&&(t=6),n<0?(f=0,n=-n):n>15&&(f=2,n-=16),o<1||o>Kv||r!==Ya||n<8||n>15||t<0||t>9||l<0||l>Vv)return Qt(e,qe);n===8&&(n=9);var c=new c0;return e.state=c,c.strm=e,c.wrap=f,c.gzhead=null,c.w_bits=n,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+j-1)/j),c.window=new ge.Buf8(c.w_size*2),c.head=new ge.Buf16(c.hash_size),c.prev=new ge.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=c.lit_bufsize*4,c.pending_buf=new ge.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=l,c.method=r,Ih(e)}a(Oh,"deflateInit2");function p0(e,t){return Oh(e,t,Ya,Xv,Qv,Yv)}a(p0,"deflateInit");function m0(e,t){var r,n,o,l;if(!e||!e.state||t>xh||t<0)return e?Qt(e,qe):qe;if(n=e.state,!e.output||!e.input&&e.avail_in!==0||n.status===vi&&t!==Jt)return Qt(e,e.avail_out===0?ql:qe);if(n.strm=e,r=n.last_flush,n.last_flush=t,n.status===Ga)if(n.wrap===2)e.adler=0,H(n,31),H(n,139),H(n,8),n.gzhead?(H(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),H(n,n.gzhead.time&255),H(n,n.gzhead.time>>8&255),H(n,n.gzhead.time>>16&255),H(n,n.gzhead.time>>24&255),H(n,n.level===9?2:n.strategy>=Ha||n.level<2?4:0),H(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(H(n,n.gzhead.extra.length&255),H(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Yt(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=Ul):(H(n,0),H(n,0),H(n,0),H(n,0),H(n,0),H(n,n.level===9?2:n.strategy>=Ha||n.level<2?4:0),H(n,o0),n.status=vr);else{var f=Ya+(n.w_bits-8<<4)<<8,c=-1;n.strategy>=Ha||n.level<2?c=0:n.level<6?c=1:n.level===6?c=2:c=3,f|=c<<6,n.strstart!==0&&(f|=a0),f+=31-f%31,n.status=vr,yi(n,f),n.strstart!==0&&(yi(n,e.adler>>>16),yi(n,e.adler&65535)),e.adler=1}if(n.status===Ul)if(n.gzhead.extra){for(o=n.pending;n.gzindex<(n.gzhead.extra.length&65535)&&!(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>o&&(e.adler=Yt(e.adler,n.pending_buf,n.pending-o,o)),Gt(e),o=n.pending,n.pending===n.pending_buf_size));)H(n,n.gzhead.extra[n.gzindex]&255),n.gzindex++;n.gzhead.hcrc&&n.pending>o&&(e.adler=Yt(e.adler,n.pending_buf,n.pending-o,o)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=Za)}else n.status=Za;if(n.status===Za)if(n.gzhead.name){o=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>o&&(e.adler=Yt(e.adler,n.pending_buf,n.pending-o,o)),Gt(e),o=n.pending,n.pending===n.pending_buf_size)){l=1;break}n.gzindex<n.gzhead.name.length?l=n.gzhead.name.charCodeAt(n.gzindex++)&255:l=0,H(n,l)}while(l!==0);n.gzhead.hcrc&&n.pending>o&&(e.adler=Yt(e.adler,n.pending_buf,n.pending-o,o)),l===0&&(n.gzindex=0,n.status=$a)}else n.status=$a;if(n.status===$a)if(n.gzhead.comment){o=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>o&&(e.adler=Yt(e.adler,n.pending_buf,n.pending-o,o)),Gt(e),o=n.pending,n.pending===n.pending_buf_size)){l=1;break}n.gzindex<n.gzhead.comment.length?l=n.gzhead.comment.charCodeAt(n.gzindex++)&255:l=0,H(n,l)}while(l!==0);n.gzhead.hcrc&&n.pending>o&&(e.adler=Yt(e.adler,n.pending_buf,n.pending-o,o)),l===0&&(n.status=Va)}else n.status=Va;if(n.status===Va&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&Gt(e),n.pending+2<=n.pending_buf_size&&(H(n,e.adler&255),H(n,e.adler>>8&255),e.adler=0,n.status=vr)):n.status=vr),n.pending!==0){if(Gt(e),e.avail_out===0)return n.last_flush=-1,dt}else if(e.avail_in===0&&Eh(t)<=Eh(r)&&t!==Jt)return Qt(e,ql);if(n.status===vi&&e.avail_in!==0)return Qt(e,ql);if(e.avail_in!==0||n.lookahead!==0||t!==Rr&&n.status!==vi){var m=n.strategy===Ha?f0(n,t):n.strategy===$v?u0(n,t):bn[n.level].func(n,t);if((m===wr||m===_n)&&(n.status=vi),m===ae||m===wr)return e.avail_out===0&&(n.last_flush=-1),dt;if(m===wi&&(t===Wv?Le._tr_align(n):t!==xh&&(Le._tr_stored_block(n,0,0,!1),t===Nv&&(Kt(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Gt(e),e.avail_out===0))return n.last_flush=-1,dt}return t!==Jt?dt:n.wrap<=0?Ah:(n.wrap===2?(H(n,e.adler&255),H(n,e.adler>>8&255),H(n,e.adler>>16&255),H(n,e.adler>>24&255),H(n,e.total_in&255),H(n,e.total_in>>8&255),H(n,e.total_in>>16&255),H(n,e.total_in>>24&255)):(yi(n,e.adler>>>16),yi(n,e.adler&65535)),Gt(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?dt:Ah)}a(m0,"deflate");function g0(e){var t;return!e||!e.state?qe:(t=e.state.status,t!==Ga&&t!==Ul&&t!==Za&&t!==$a&&t!==Va&&t!==vr&&t!==vi?Qt(e,qe):(e.state=null,t===vr?Qt(e,jv):dt))}a(g0,"deflateEnd");function b0(e,t){var r=t.length,n,o,l,f,c,m,d,h;if(!e||!e.state||(n=e.state,f=n.wrap,f===2||f===1&&n.status!==Ga||n.lookahead))return qe;for(f===1&&(e.adler=kh(e.adler,t,r,0)),n.wrap=0,r>=n.w_size&&(f===0&&(Kt(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new ge.Buf8(n.w_size),ge.arraySet(h,t,r-n.w_size,n.w_size,0),t=h,r=n.w_size),c=e.avail_in,m=e.next_in,d=e.input,e.avail_in=r,e.next_in=0,e.input=t,Sr(n);n.lookahead>=j;){o=n.strstart,l=n.lookahead-(j-1);do n.ins_h=(n.ins_h<<n.hash_shift^n.window[o+j-1])&n.hash_mask,n.prev[o&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=o,o++;while(--l);n.strstart=o,n.lookahead=j-1,Sr(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=j-1,n.match_available=0,e.next_in=m,e.input=d,e.avail_in=c,n.wrap=f,dt}a(b0,"deflateSetDictionary");ct.deflateInit=p0;ct.deflateInit2=Oh;ct.deflateReset=Ih;ct.deflateResetKeep=Ph;ct.deflateSetHeader=h0;ct.deflate=m0;ct.deflateEnd=g0;ct.deflateSetDictionary=b0;ct.deflateInfo="pako deflate (from Nodeca project)"});var Wl=P(yn=>{"use strict";var Ka=Ct(),Bh=!0,Dh=!0;try{String.fromCharCode.apply(null,[0])}catch{Bh=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Dh=!1}var Si=new Ka.Buf8(256);for(It=0;It<256;It++)Si[It]=It>=252?6:It>=248?5:It>=240?4:It>=224?3:It>=192?2:1;var It;Si[254]=Si[254]=1;yn.string2buf=function(e){var t,r,n,o,l,f=e.length,c=0;for(o=0;o<f;o++)r=e.charCodeAt(o),(r&64512)===55296&&o+1<f&&(n=e.charCodeAt(o+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),o++)),c+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Ka.Buf8(c),l=0,o=0;l<c;o++)r=e.charCodeAt(o),(r&64512)===55296&&o+1<f&&(n=e.charCodeAt(o+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),o++)),r<128?t[l++]=r:r<2048?(t[l++]=192|r>>>6,t[l++]=128|r&63):r<65536?(t[l++]=224|r>>>12,t[l++]=128|r>>>6&63,t[l++]=128|r&63):(t[l++]=240|r>>>18,t[l++]=128|r>>>12&63,t[l++]=128|r>>>6&63,t[l++]=128|r&63);return t};function Lh(e,t){if(t<65534&&(e.subarray&&Dh||!e.subarray&&Bh))return String.fromCharCode.apply(null,Ka.shrinkBuf(e,t));for(var r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r}a(Lh,"buf2binstring");yn.buf2binstring=function(e){return Lh(e,e.length)};yn.binstring2buf=function(e){for(var t=new Ka.Buf8(e.length),r=0,n=t.length;r<n;r++)t[r]=e.charCodeAt(r);return t};yn.buf2string=function(e,t){var r,n,o,l,f=t||e.length,c=new Array(f*2);for(n=0,r=0;r<f;){if(o=e[r++],o<128){c[n++]=o;continue}if(l=Si[o],l>4){c[n++]=65533,r+=l-1;continue}for(o&=l===2?31:l===3?15:7;l>1&&r<f;)o=o<<6|e[r++]&63,l--;if(l>1){c[n++]=65533;continue}o<65536?c[n++]=o:(o-=65536,c[n++]=55296|o>>10&1023,c[n++]=56320|o&1023)}return Lh(c,n)};yn.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+Si[e[r]]>t?r:t}});var Nl=P((MT,qh)=>{"use strict";function _0(){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}a(_0,"ZStream");qh.exports=_0});var Wh=P(xi=>{"use strict";var Ri=Fh(),Ti=Ct(),Hl=Wl(),Zl=ja(),y0=Nl(),Uh=Object.prototype.toString,v0=0,jl=4,vn=0,zh=1,Mh=2,w0=-1,S0=0,R0=8;function Tr(e){if(!(this instanceof Tr))return new Tr(e);this.options=Ti.assign({level:w0,method:R0,chunkSize:16384,windowBits:15,memLevel:8,strategy:S0,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 y0,this.strm.avail_out=0;var r=Ri.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==vn)throw new Error(Zl[r]);if(t.header&&Ri.deflateSetHeader(this.strm,t.header),t.dictionary){var n;if(typeof t.dictionary=="string"?n=Hl.string2buf(t.dictionary):Uh.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,r=Ri.deflateSetDictionary(this.strm,n),r!==vn)throw new Error(Zl[r]);this._dict_set=!0}}a(Tr,"Deflate");Tr.prototype.push=function(e,t){var r=this.strm,n=this.options.chunkSize,o,l;if(this.ended)return!1;l=t===~~t?t:t===!0?jl:v0,typeof e=="string"?r.input=Hl.string2buf(e):Uh.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 Ti.Buf8(n),r.next_out=0,r.avail_out=n),o=Ri.deflate(r,l),o!==zh&&o!==vn)return this.onEnd(o),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(l===jl||l===Mh))&&(this.options.to==="string"?this.onData(Hl.buf2binstring(Ti.shrinkBuf(r.output,r.next_out))):this.onData(Ti.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&o!==zh);return l===jl?(o=Ri.deflateEnd(this.strm),this.onEnd(o),this.ended=!0,o===vn):(l===Mh&&(this.onEnd(vn),r.avail_out=0),!0)};Tr.prototype.onData=function(e){this.chunks.push(e)};Tr.prototype.onEnd=function(e){e===vn&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ti.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function $l(e,t){var r=new Tr(t);if(r.push(e,!0),r.err)throw r.msg||Zl[r.err];return r.result}a($l,"deflate");function T0(e,t){return t=t||{},t.raw=!0,$l(e,t)}a(T0,"deflateRaw");function x0(e,t){return t=t||{},t.gzip=!0,$l(e,t)}a(x0,"gzip");xi.Deflate=Tr;xi.deflate=$l;xi.deflateRaw=T0;xi.gzip=x0});var jh=P((jT,Nh)=>{"use strict";var Xa=30,A0=12;Nh.exports=a(function(t,r){var n,o,l,f,c,m,d,h,x,_,w,v,k,E,S,A,C,R,T,O,q,D,U,$,F;n=t.state,o=t.next_in,$=t.input,l=o+(t.avail_in-5),f=t.next_out,F=t.output,c=f-(r-t.avail_out),m=f+(t.avail_out-257),d=n.dmax,h=n.wsize,x=n.whave,_=n.wnext,w=n.window,v=n.hold,k=n.bits,E=n.lencode,S=n.distcode,A=(1<<n.lenbits)-1,C=(1<<n.distbits)-1;e:do{k<15&&(v+=$[o++]<<k,k+=8,v+=$[o++]<<k,k+=8),R=E[v&A];t:for(;;){if(T=R>>>24,v>>>=T,k-=T,T=R>>>16&255,T===0)F[f++]=R&65535;else if(T&16){O=R&65535,T&=15,T&&(k<T&&(v+=$[o++]<<k,k+=8),O+=v&(1<<T)-1,v>>>=T,k-=T),k<15&&(v+=$[o++]<<k,k+=8,v+=$[o++]<<k,k+=8),R=S[v&C];r:for(;;){if(T=R>>>24,v>>>=T,k-=T,T=R>>>16&255,T&16){if(q=R&65535,T&=15,k<T&&(v+=$[o++]<<k,k+=8,k<T&&(v+=$[o++]<<k,k+=8)),q+=v&(1<<T)-1,q>d){t.msg="invalid distance too far back",n.mode=Xa;break e}if(v>>>=T,k-=T,T=f-c,q>T){if(T=q-T,T>x&&n.sane){t.msg="invalid distance too far back",n.mode=Xa;break e}if(D=0,U=w,_===0){if(D+=h-T,T<O){O-=T;do F[f++]=w[D++];while(--T);D=f-q,U=F}}else if(_<T){if(D+=h+_-T,T-=_,T<O){O-=T;do F[f++]=w[D++];while(--T);if(D=0,_<O){T=_,O-=T;do F[f++]=w[D++];while(--T);D=f-q,U=F}}}else if(D+=_-T,T<O){O-=T;do F[f++]=w[D++];while(--T);D=f-q,U=F}for(;O>2;)F[f++]=U[D++],F[f++]=U[D++],F[f++]=U[D++],O-=3;O&&(F[f++]=U[D++],O>1&&(F[f++]=U[D++]))}else{D=f-q;do F[f++]=F[D++],F[f++]=F[D++],F[f++]=F[D++],O-=3;while(O>2);O&&(F[f++]=F[D++],O>1&&(F[f++]=F[D++]))}}else if(T&64){t.msg="invalid distance code",n.mode=Xa;break e}else{R=S[(R&65535)+(v&(1<<T)-1)];continue r}break}}else if(T&64)if(T&32){n.mode=A0;break e}else{t.msg="invalid literal/length code",n.mode=Xa;break e}else{R=E[(R&65535)+(v&(1<<T)-1)];continue t}break}}while(o<l&&f<m);O=k>>3,o-=O,k-=O<<3,v&=(1<<k)-1,t.next_in=o,t.next_out=f,t.avail_in=o<l?5+(l-o):5-(o-l),t.avail_out=f<m?257+(m-f):257-(f-m),n.hold=v,n.bits=k},"inflate_fast")});var Kh=P((ZT,Gh)=>{"use strict";var Hh=Ct(),wn=15,Zh=852,$h=592,Vh=0,Vl=1,Yh=2,E0=[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],k0=[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],C0=[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],P0=[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];Gh.exports=a(function(t,r,n,o,l,f,c,m){var d=m.bits,h=0,x=0,_=0,w=0,v=0,k=0,E=0,S=0,A=0,C=0,R,T,O,q,D,U=null,$=0,F,le=new Hh.Buf16(wn+1),de=new Hh.Buf16(wn+1),pt=null,Ir=0,En,Or,Bt;for(h=0;h<=wn;h++)le[h]=0;for(x=0;x<o;x++)le[r[n+x]]++;for(v=d,w=wn;w>=1&&le[w]===0;w--);if(v>w&&(v=w),w===0)return l[f++]=1<<24|64<<16|0,l[f++]=1<<24|64<<16|0,m.bits=1,0;for(_=1;_<w&&le[_]===0;_++);for(v<_&&(v=_),S=1,h=1;h<=wn;h++)if(S<<=1,S-=le[h],S<0)return-1;if(S>0&&(t===Vh||w!==1))return-1;for(de[1]=0,h=1;h<wn;h++)de[h+1]=de[h]+le[h];for(x=0;x<o;x++)r[n+x]!==0&&(c[de[r[n+x]]++]=x);if(t===Vh?(U=pt=c,F=19):t===Vl?(U=E0,$-=257,pt=k0,Ir-=257,F=256):(U=C0,pt=P0,F=-1),C=0,x=0,h=_,D=f,k=v,E=0,O=-1,A=1<<v,q=A-1,t===Vl&&A>Zh||t===Yh&&A>$h)return 1;for(;;){En=h-E,c[x]<F?(Or=0,Bt=c[x]):c[x]>F?(Or=pt[Ir+c[x]],Bt=U[$+c[x]]):(Or=96,Bt=0),R=1<<h-E,T=1<<k,_=T;do T-=R,l[D+(C>>E)+T]=En<<24|Or<<16|Bt|0;while(T!==0);for(R=1<<h-1;C&R;)R>>=1;if(R!==0?(C&=R-1,C+=R):C=0,x++,--le[h]===0){if(h===w)break;h=r[n+c[x]]}if(h>v&&(C&q)!==O){for(E===0&&(E=v),D+=_,k=h-E,S=1<<k;k+E<w&&(S-=le[k+E],!(S<=0));)k++,S<<=1;if(A+=1<<k,t===Vl&&A>Zh||t===Yh&&A>$h)return 1;O=C&q,l[O]=v<<24|k<<16|D-f|0}}return C!==0&&(l[D+C]=h-E<<24|64<<16|0),m.bits=v,0},"inflate_table")});var Ip=P(Ke=>{"use strict";var ke=Ct(),Jl=Dl(),ht=Ll(),I0=jh(),Ai=Kh(),O0=0,Sp=1,Rp=2,Xh=4,F0=5,Qa=6,xr=0,B0=1,D0=2,ze=-2,Tp=-3,eu=-4,L0=-5,Qh=8,xp=1,Jh=2,ep=3,tp=4,rp=5,np=6,ip=7,ap=8,op=9,sp=10,to=11,Ot=12,Yl=13,lp=14,Gl=15,up=16,fp=17,dp=18,cp=19,Ja=20,eo=21,hp=22,pp=23,mp=24,gp=25,bp=26,Kl=27,_p=28,yp=29,J=30,tu=31,q0=32,z0=852,M0=592,U0=15,W0=U0;function vp(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}a(vp,"zswap32");function N0(){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 ke.Buf16(320),this.work=new ke.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}a(N0,"InflateState");function Ap(e){var t;return!e||!e.state?ze:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=xp,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new ke.Buf32(z0),t.distcode=t.distdyn=new ke.Buf32(M0),t.sane=1,t.back=-1,xr)}a(Ap,"inflateResetKeep");function Ep(e){var t;return!e||!e.state?ze:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Ap(e))}a(Ep,"inflateReset");function kp(e,t){var r,n;return!e||!e.state||(n=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?ze:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,Ep(e))}a(kp,"inflateReset2");function Cp(e,t){var r,n;return e?(n=new N0,e.state=n,n.window=null,r=kp(e,t),r!==xr&&(e.state=null),r):ze}a(Cp,"inflateInit2");function j0(e){return Cp(e,W0)}a(j0,"inflateInit");var wp=!0,Xl,Ql;function H0(e){if(wp){var t;for(Xl=new ke.Buf32(512),Ql=new ke.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(Ai(Sp,e.lens,0,288,Xl,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Ai(Rp,e.lens,0,32,Ql,0,e.work,{bits:5}),wp=!1}e.lencode=Xl,e.lenbits=9,e.distcode=Ql,e.distbits=5}a(H0,"fixedtables");function Pp(e,t,r,n){var o,l=e.state;return l.window===null&&(l.wsize=1<<l.wbits,l.wnext=0,l.whave=0,l.window=new ke.Buf8(l.wsize)),n>=l.wsize?(ke.arraySet(l.window,t,r-l.wsize,l.wsize,0),l.wnext=0,l.whave=l.wsize):(o=l.wsize-l.wnext,o>n&&(o=n),ke.arraySet(l.window,t,r-n,o,l.wnext),n-=o,n?(ke.arraySet(l.window,t,r-n,n,0),l.wnext=n,l.whave=l.wsize):(l.wnext+=o,l.wnext===l.wsize&&(l.wnext=0),l.whave<l.wsize&&(l.whave+=o))),0}a(Pp,"updatewindow");function Z0(e,t){var r,n,o,l,f,c,m,d,h,x,_,w,v,k,E=0,S,A,C,R,T,O,q,D,U=new ke.Buf8(4),$,F,le=[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 ze;r=e.state,r.mode===Ot&&(r.mode=Yl),f=e.next_out,o=e.output,m=e.avail_out,l=e.next_in,n=e.input,c=e.avail_in,d=r.hold,h=r.bits,x=c,_=m,D=xr;e:for(;;)switch(r.mode){case xp:if(r.wrap===0){r.mode=Yl;break}for(;h<16;){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}if(r.wrap&2&&d===35615){r.check=0,U[0]=d&255,U[1]=d>>>8&255,r.check=ht(r.check,U,2,0),d=0,h=0,r.mode=Jh;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((d&255)<<8)+(d>>8))%31){e.msg="incorrect header check",r.mode=J;break}if((d&15)!==Qh){e.msg="unknown compression method",r.mode=J;break}if(d>>>=4,h-=4,q=(d&15)+8,r.wbits===0)r.wbits=q;else if(q>r.wbits){e.msg="invalid window size",r.mode=J;break}r.dmax=1<<q,e.adler=r.check=1,r.mode=d&512?sp:Ot,d=0,h=0;break;case Jh:for(;h<16;){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}if(r.flags=d,(r.flags&255)!==Qh){e.msg="unknown compression method",r.mode=J;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=J;break}r.head&&(r.head.text=d>>8&1),r.flags&512&&(U[0]=d&255,U[1]=d>>>8&255,r.check=ht(r.check,U,2,0)),d=0,h=0,r.mode=ep;case ep:for(;h<32;){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}r.head&&(r.head.time=d),r.flags&512&&(U[0]=d&255,U[1]=d>>>8&255,U[2]=d>>>16&255,U[3]=d>>>24&255,r.check=ht(r.check,U,4,0)),d=0,h=0,r.mode=tp;case tp:for(;h<16;){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}r.head&&(r.head.xflags=d&255,r.head.os=d>>8),r.flags&512&&(U[0]=d&255,U[1]=d>>>8&255,r.check=ht(r.check,U,2,0)),d=0,h=0,r.mode=rp;case rp:if(r.flags&1024){for(;h<16;){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}r.length=d,r.head&&(r.head.extra_len=d),r.flags&512&&(U[0]=d&255,U[1]=d>>>8&255,r.check=ht(r.check,U,2,0)),d=0,h=0}else r.head&&(r.head.extra=null);r.mode=np;case np:if(r.flags&1024&&(w=r.length,w>c&&(w=c),w&&(r.head&&(q=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),ke.arraySet(r.head.extra,n,l,w,q)),r.flags&512&&(r.check=ht(r.check,n,w,l)),c-=w,l+=w,r.length-=w),r.length))break e;r.length=0,r.mode=ip;case ip:if(r.flags&2048){if(c===0)break e;w=0;do q=n[l+w++],r.head&&q&&r.length<65536&&(r.head.name+=String.fromCharCode(q));while(q&&w<c);if(r.flags&512&&(r.check=ht(r.check,n,w,l)),c-=w,l+=w,q)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=ap;case ap:if(r.flags&4096){if(c===0)break e;w=0;do q=n[l+w++],r.head&&q&&r.length<65536&&(r.head.comment+=String.fromCharCode(q));while(q&&w<c);if(r.flags&512&&(r.check=ht(r.check,n,w,l)),c-=w,l+=w,q)break e}else r.head&&(r.head.comment=null);r.mode=op;case op:if(r.flags&512){for(;h<16;){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}if(d!==(r.check&65535)){e.msg="header crc mismatch",r.mode=J;break}d=0,h=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Ot;break;case sp:for(;h<32;){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}e.adler=r.check=vp(d),d=0,h=0,r.mode=to;case to:if(r.havedict===0)return e.next_out=f,e.avail_out=m,e.next_in=l,e.avail_in=c,r.hold=d,r.bits=h,D0;e.adler=r.check=1,r.mode=Ot;case Ot:if(t===F0||t===Qa)break e;case Yl:if(r.last){d>>>=h&7,h-=h&7,r.mode=Kl;break}for(;h<3;){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}switch(r.last=d&1,d>>>=1,h-=1,d&3){case 0:r.mode=lp;break;case 1:if(H0(r),r.mode=Ja,t===Qa){d>>>=2,h-=2;break e}break;case 2:r.mode=fp;break;case 3:e.msg="invalid block type",r.mode=J}d>>>=2,h-=2;break;case lp:for(d>>>=h&7,h-=h&7;h<32;){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}if((d&65535)!==(d>>>16^65535)){e.msg="invalid stored block lengths",r.mode=J;break}if(r.length=d&65535,d=0,h=0,r.mode=Gl,t===Qa)break e;case Gl:r.mode=up;case up:if(w=r.length,w){if(w>c&&(w=c),w>m&&(w=m),w===0)break e;ke.arraySet(o,n,l,w,f),c-=w,l+=w,m-=w,f+=w,r.length-=w;break}r.mode=Ot;break;case fp:for(;h<14;){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}if(r.nlen=(d&31)+257,d>>>=5,h-=5,r.ndist=(d&31)+1,d>>>=5,h-=5,r.ncode=(d&15)+4,d>>>=4,h-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=J;break}r.have=0,r.mode=dp;case dp:for(;r.have<r.ncode;){for(;h<3;){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}r.lens[le[r.have++]]=d&7,d>>>=3,h-=3}for(;r.have<19;)r.lens[le[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,$={bits:r.lenbits},D=Ai(O0,r.lens,0,19,r.lencode,0,r.work,$),r.lenbits=$.bits,D){e.msg="invalid code lengths set",r.mode=J;break}r.have=0,r.mode=cp;case cp:for(;r.have<r.nlen+r.ndist;){for(;E=r.lencode[d&(1<<r.lenbits)-1],S=E>>>24,A=E>>>16&255,C=E&65535,!(S<=h);){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}if(C<16)d>>>=S,h-=S,r.lens[r.have++]=C;else{if(C===16){for(F=S+2;h<F;){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}if(d>>>=S,h-=S,r.have===0){e.msg="invalid bit length repeat",r.mode=J;break}q=r.lens[r.have-1],w=3+(d&3),d>>>=2,h-=2}else if(C===17){for(F=S+3;h<F;){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}d>>>=S,h-=S,q=0,w=3+(d&7),d>>>=3,h-=3}else{for(F=S+7;h<F;){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}d>>>=S,h-=S,q=0,w=11+(d&127),d>>>=7,h-=7}if(r.have+w>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=J;break}for(;w--;)r.lens[r.have++]=q}}if(r.mode===J)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=J;break}if(r.lenbits=9,$={bits:r.lenbits},D=Ai(Sp,r.lens,0,r.nlen,r.lencode,0,r.work,$),r.lenbits=$.bits,D){e.msg="invalid literal/lengths set",r.mode=J;break}if(r.distbits=6,r.distcode=r.distdyn,$={bits:r.distbits},D=Ai(Rp,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,$),r.distbits=$.bits,D){e.msg="invalid distances set",r.mode=J;break}if(r.mode=Ja,t===Qa)break e;case Ja:r.mode=eo;case eo:if(c>=6&&m>=258){e.next_out=f,e.avail_out=m,e.next_in=l,e.avail_in=c,r.hold=d,r.bits=h,I0(e,_),f=e.next_out,o=e.output,m=e.avail_out,l=e.next_in,n=e.input,c=e.avail_in,d=r.hold,h=r.bits,r.mode===Ot&&(r.back=-1);break}for(r.back=0;E=r.lencode[d&(1<<r.lenbits)-1],S=E>>>24,A=E>>>16&255,C=E&65535,!(S<=h);){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}if(A&&!(A&240)){for(R=S,T=A,O=C;E=r.lencode[O+((d&(1<<R+T)-1)>>R)],S=E>>>24,A=E>>>16&255,C=E&65535,!(R+S<=h);){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}d>>>=R,h-=R,r.back+=R}if(d>>>=S,h-=S,r.back+=S,r.length=C,A===0){r.mode=bp;break}if(A&32){r.back=-1,r.mode=Ot;break}if(A&64){e.msg="invalid literal/length code",r.mode=J;break}r.extra=A&15,r.mode=hp;case hp:if(r.extra){for(F=r.extra;h<F;){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}r.length+=d&(1<<r.extra)-1,d>>>=r.extra,h-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=pp;case pp:for(;E=r.distcode[d&(1<<r.distbits)-1],S=E>>>24,A=E>>>16&255,C=E&65535,!(S<=h);){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}if(!(A&240)){for(R=S,T=A,O=C;E=r.distcode[O+((d&(1<<R+T)-1)>>R)],S=E>>>24,A=E>>>16&255,C=E&65535,!(R+S<=h);){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}d>>>=R,h-=R,r.back+=R}if(d>>>=S,h-=S,r.back+=S,A&64){e.msg="invalid distance code",r.mode=J;break}r.offset=C,r.extra=A&15,r.mode=mp;case mp:if(r.extra){for(F=r.extra;h<F;){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}r.offset+=d&(1<<r.extra)-1,d>>>=r.extra,h-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=J;break}r.mode=gp;case gp:if(m===0)break e;if(w=_-m,r.offset>w){if(w=r.offset-w,w>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=J;break}w>r.wnext?(w-=r.wnext,v=r.wsize-w):v=r.wnext-w,w>r.length&&(w=r.length),k=r.window}else k=o,v=f-r.offset,w=r.length;w>m&&(w=m),m-=w,r.length-=w;do o[f++]=k[v++];while(--w);r.length===0&&(r.mode=eo);break;case bp:if(m===0)break e;o[f++]=r.length,m--,r.mode=eo;break;case Kl:if(r.wrap){for(;h<32;){if(c===0)break e;c--,d|=n[l++]<<h,h+=8}if(_-=m,e.total_out+=_,r.total+=_,_&&(e.adler=r.check=r.flags?ht(r.check,o,_,f-_):Jl(r.check,o,_,f-_)),_=m,(r.flags?d:vp(d))!==r.check){e.msg="incorrect data check",r.mode=J;break}d=0,h=0}r.mode=_p;case _p:if(r.wrap&&r.flags){for(;h<32;){if(c===0)break e;c--,d+=n[l++]<<h,h+=8}if(d!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=J;break}d=0,h=0}r.mode=yp;case yp:D=B0;break e;case J:D=Tp;break e;case tu:return eu;case q0:default:return ze}return e.next_out=f,e.avail_out=m,e.next_in=l,e.avail_in=c,r.hold=d,r.bits=h,(r.wsize||_!==e.avail_out&&r.mode<J&&(r.mode<Kl||t!==Xh))&&Pp(e,e.output,e.next_out,_-e.avail_out)?(r.mode=tu,eu):(x-=e.avail_in,_-=e.avail_out,e.total_in+=x,e.total_out+=_,r.total+=_,r.wrap&&_&&(e.adler=r.check=r.flags?ht(r.check,o,_,e.next_out-_):Jl(r.check,o,_,e.next_out-_)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Ot?128:0)+(r.mode===Ja||r.mode===Gl?256:0),(x===0&&_===0||t===Xh)&&D===xr&&(D=L0),D)}a(Z0,"inflate");function $0(e){if(!e||!e.state)return ze;var t=e.state;return t.window&&(t.window=null),e.state=null,xr}a($0,"inflateEnd");function V0(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?ze:(r.head=t,t.done=!1,xr)}a(V0,"inflateGetHeader");function Y0(e,t){var r=t.length,n,o,l;return!e||!e.state||(n=e.state,n.wrap!==0&&n.mode!==to)?ze:n.mode===to&&(o=1,o=Jl(o,t,r,0),o!==n.check)?Tp:(l=Pp(e,t,r,r),l?(n.mode=tu,eu):(n.havedict=1,xr))}a(Y0,"inflateSetDictionary");Ke.inflateReset=Ep;Ke.inflateReset2=kp;Ke.inflateResetKeep=Ap;Ke.inflateInit=j0;Ke.inflateInit2=Cp;Ke.inflate=Z0;Ke.inflateEnd=$0;Ke.inflateGetHeader=V0;Ke.inflateSetDictionary=Y0;Ke.inflateInfo="pako inflate (from Nodeca project)"});var ru=P((GT,Op)=>{"use strict";Op.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 Bp=P((KT,Fp)=>{"use strict";function G0(){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}a(G0,"GZheader");Fp.exports=G0});var Lp=P(ki=>{"use strict";var Sn=Ip(),Ei=Ct(),ro=Wl(),re=ru(),nu=ja(),K0=Nl(),X0=Bp(),Dp=Object.prototype.toString;function Ar(e){if(!(this instanceof Ar))return new Ar(e);this.options=Ei.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 K0,this.strm.avail_out=0;var r=Sn.inflateInit2(this.strm,t.windowBits);if(r!==re.Z_OK)throw new Error(nu[r]);if(this.header=new X0,Sn.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=ro.string2buf(t.dictionary):Dp.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Sn.inflateSetDictionary(this.strm,t.dictionary),r!==re.Z_OK)))throw new Error(nu[r])}a(Ar,"Inflate");Ar.prototype.push=function(e,t){var r=this.strm,n=this.options.chunkSize,o=this.options.dictionary,l,f,c,m,d,h=!1;if(this.ended)return!1;f=t===~~t?t:t===!0?re.Z_FINISH:re.Z_NO_FLUSH,typeof e=="string"?r.input=ro.binstring2buf(e):Dp.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 Ei.Buf8(n),r.next_out=0,r.avail_out=n),l=Sn.inflate(r,re.Z_NO_FLUSH),l===re.Z_NEED_DICT&&o&&(l=Sn.inflateSetDictionary(this.strm,o)),l===re.Z_BUF_ERROR&&h===!0&&(l=re.Z_OK,h=!1),l!==re.Z_STREAM_END&&l!==re.Z_OK)return this.onEnd(l),this.ended=!0,!1;r.next_out&&(r.avail_out===0||l===re.Z_STREAM_END||r.avail_in===0&&(f===re.Z_FINISH||f===re.Z_SYNC_FLUSH))&&(this.options.to==="string"?(c=ro.utf8border(r.output,r.next_out),m=r.next_out-c,d=ro.buf2string(r.output,c),r.next_out=m,r.avail_out=n-m,m&&Ei.arraySet(r.output,r.output,c,m,0),this.onData(d)):this.onData(Ei.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(h=!0)}while((r.avail_in>0||r.avail_out===0)&&l!==re.Z_STREAM_END);return l===re.Z_STREAM_END&&(f=re.Z_FINISH),f===re.Z_FINISH?(l=Sn.inflateEnd(this.strm),this.onEnd(l),this.ended=!0,l===re.Z_OK):(f===re.Z_SYNC_FLUSH&&(this.onEnd(re.Z_OK),r.avail_out=0),!0)};Ar.prototype.onData=function(e){this.chunks.push(e)};Ar.prototype.onEnd=function(e){e===re.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ei.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function iu(e,t){var r=new Ar(t);if(r.push(e,!0),r.err)throw r.msg||nu[r.err];return r.result}a(iu,"inflate");function Q0(e,t){return t=t||{},t.raw=!0,iu(e,t)}a(Q0,"inflateRaw");ki.Inflate=Ar;ki.inflate=iu;ki.inflateRaw=Q0;ki.ungzip=iu});var Mp=P((ex,zp)=>{"use strict";var J0=Ct().assign,ew=Wh(),tw=Lp(),rw=ru(),qp={};J0(qp,ew,tw,rw);zp.exports=qp});var Wp=P(io=>{"use strict";var nw=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",iw=Mp(),Up=ee(),no=Ee(),aw=nw?"uint8array":"array";io.magic="\b\0";function Er(e,t){no.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}a(Er,"FlateWorker");Up.inherits(Er,no);Er.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(Up.transformTo(aw,e.data),!1)};Er.prototype.flush=function(){no.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};Er.prototype.cleanUp=function(){no.prototype.cleanUp.call(this),this._pako=null};Er.prototype._createPako=function(){this._pako=new iw[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};io.compressWorker=function(e){return new Er("Deflate",e)};io.uncompressWorker=function(){return new Er("Inflate",{})}});var ou=P(au=>{"use strict";var Np=Ee();au.STORE={magic:"\0\0",compressWorker:a(function(){return new Np("STORE compression")},"compressWorker"),uncompressWorker:a(function(){return new Np("STORE decompression")},"uncompressWorker")};au.DEFLATE=Wp()});var su=P(kr=>{"use strict";kr.LOCAL_FILE_HEADER="PK";kr.CENTRAL_FILE_HEADER="PK";kr.CENTRAL_DIRECTORY_END="PK";kr.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";kr.ZIP64_CENTRAL_DIRECTORY_END="PK";kr.DATA_DESCRIPTOR="PK\x07\b"});var $p=P((ox,Zp)=>{"use strict";var Rn=ee(),Tn=Ee(),lu=dn(),jp=za(),ao=su(),X=a(function(e,t){var r="",n;for(n=0;n<t;n++)r+=String.fromCharCode(e&255),e=e>>>8;return r},"decToHex"),ow=a(function(e,t){var r=e;return e||(r=t?16893:33204),(r&65535)<<16},"generateUnixExternalFileAttr"),sw=a(function(e){return(e||0)&63},"generateDosExternalFileAttr"),Hp=a(function(e,t,r,n,o,l){var f=e.file,c=e.compression,m=l!==lu.utf8encode,d=Rn.transformTo("string",l(f.name)),h=Rn.transformTo("string",lu.utf8encode(f.name)),x=f.comment,_=Rn.transformTo("string",l(x)),w=Rn.transformTo("string",lu.utf8encode(x)),v=h.length!==f.name.length,k=w.length!==x.length,E,S,A="",C="",R="",T=f.dir,O=f.date,q={crc32:0,compressedSize:0,uncompressedSize:0};(!t||r)&&(q.crc32=e.crc32,q.compressedSize=e.compressedSize,q.uncompressedSize=e.uncompressedSize);var D=0;t&&(D|=8),!m&&(v||k)&&(D|=2048);var U=0,$=0;T&&(U|=16),o==="UNIX"?($=798,U|=ow(f.unixPermissions,T)):($=20,U|=sw(f.dosPermissions,T)),E=O.getUTCHours(),E=E<<6,E=E|O.getUTCMinutes(),E=E<<5,E=E|O.getUTCSeconds()/2,S=O.getUTCFullYear()-1980,S=S<<4,S=S|O.getUTCMonth()+1,S=S<<5,S=S|O.getUTCDate(),v&&(C=X(1,1)+X(jp(d),4)+h,A+="up"+X(C.length,2)+C),k&&(R=X(1,1)+X(jp(_),4)+w,A+="uc"+X(R.length,2)+R);var F="";F+=`
|
|
13
|
+
\0`,F+=X(D,2),F+=c.magic,F+=X(E,2),F+=X(S,2),F+=X(q.crc32,4),F+=X(q.compressedSize,4),F+=X(q.uncompressedSize,4),F+=X(d.length,2),F+=X(A.length,2);var le=ao.LOCAL_FILE_HEADER+F+d+A,de=ao.CENTRAL_FILE_HEADER+X($,2)+F+X(_.length,2)+"\0\0\0\0"+X(U,4)+X(n,4)+d+A+_;return{fileRecord:le,dirRecord:de}},"generateZipParts"),lw=a(function(e,t,r,n,o){var l="",f=Rn.transformTo("string",o(n));return l=ao.CENTRAL_DIRECTORY_END+"\0\0\0\0"+X(e,2)+X(e,2)+X(t,4)+X(r,4)+X(f.length,2)+f,l},"generateCentralDirectoryEnd"),uw=a(function(e){var t="";return t=ao.DATA_DESCRIPTOR+X(e.crc32,4)+X(e.compressedSize,4)+X(e.uncompressedSize,4),t},"generateDataDescriptors");function Xe(e,t,r,n){Tn.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a(Xe,"ZipFileWorker");Rn.inherits(Xe,Tn);Xe.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,Tn.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))};Xe.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=Hp(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0};Xe.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=Hp(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:uw(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};Xe.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,n=lw(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})};Xe.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()};Xe.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};Xe.prototype.resume=function(){if(!Tn.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};Xe.prototype.error=function(e){var t=this._sources;if(!Tn.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch{}return!0};Xe.prototype.lock=function(){Tn.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};Zp.exports=Xe});var Yp=P(Vp=>{"use strict";var fw=ou(),dw=$p(),cw=a(function(e,t){var r=e||t,n=fw[r];if(!n)throw new Error(r+" is not a valid compression method !");return n},"getCompression");Vp.generateWorker=function(e,t,r){var n=new dw(t.streamFiles,r,t.platform,t.encodeFileName),o=0;try{e.forEach(function(l,f){o++;var c=cw(f.options.compression,t.compression),m=f.options.compressionOptions||t.compressionOptions||{},d=f.dir,h=f.date;f._compressWorker(c,m).withStreamInfo("file",{name:l,dir:d,date:h,comment:f.comment||"",unixPermissions:f.unixPermissions,dosPermissions:f.dosPermissions}).pipe(n)}),n.entriesCount=o}catch(l){n.error(l)}return n}});var Kp=P((fx,Gp)=>{"use strict";var hw=ee(),oo=Ee();function Ci(e,t){oo.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}a(Ci,"NodejsStreamInputAdapter");hw.inherits(Ci,oo);Ci.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()})};Ci.prototype.pause=function(){return oo.prototype.pause.call(this)?(this._stream.pause(),!0):!1};Ci.prototype.resume=function(){return oo.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};Gp.exports=Ci});var om=P((cx,am)=>{"use strict";var pw=dn(),Pi=ee(),em=Ee(),mw=hl(),tm=pl(),Xp=Ma(),gw=Qc(),bw=Yp(),Qp=ai(),_w=Kp(),rm=a(function(e,t,r){var n=Pi.getTypeOf(t),o,l=Pi.extend(r||{},tm);l.date=l.date||new Date,l.compression!==null&&(l.compression=l.compression.toUpperCase()),typeof l.unixPermissions=="string"&&(l.unixPermissions=parseInt(l.unixPermissions,8)),l.unixPermissions&&l.unixPermissions&16384&&(l.dir=!0),l.dosPermissions&&l.dosPermissions&16&&(l.dir=!0),l.dir&&(e=nm(e)),l.createFolders&&(o=yw(e))&&im.call(this,o,!0);var f=n==="string"&&l.binary===!1&&l.base64===!1;(!r||typeof r.binary>"u")&&(l.binary=!f);var c=t instanceof Xp&&t.uncompressedSize===0;(c||l.dir||!t||t.length===0)&&(l.base64=!1,l.binary=!0,t="",l.compression="STORE",n="string");var m=null;t instanceof Xp||t instanceof em?m=t:Qp.isNode&&Qp.isStream(t)?m=new _w(e,t):m=Pi.prepareContent(e,t,l.binary,l.optimizedBinaryString,l.base64);var d=new gw(e,m,l);this.files[e]=d},"fileAdd"),yw=a(function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},"parentFolder"),nm=a(function(e){return e.slice(-1)!=="/"&&(e+="/"),e},"forceTrailingSlash"),im=a(function(e,t){return t=typeof t<"u"?t:tm.createFolders,e=nm(e),this.files[e]||rm.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},"folderAdd");function Jp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}a(Jp,"isRegExp");var vw={load:a(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"load"),forEach:a(function(e){var t,r,n;for(t in this.files)n=this.files[t],r=t.slice(this.root.length,t.length),r&&t.slice(0,this.root.length)===this.root&&e(r,n)},"forEach"),filter:a(function(e){var t=[];return this.forEach(function(r,n){e(r,n)&&t.push(n)}),t},"filter"),file:a(function(e,t,r){if(arguments.length===1)if(Jp(e)){var n=e;return this.filter(function(l,f){return!f.dir&&n.test(l)})}else{var o=this.files[this.root+e];return o&&!o.dir?o:null}else e=this.root+e,rm.call(this,e,t,r);return this},"file"),folder:a(function(e){if(!e)return this;if(Jp(e))return this.filter(function(o,l){return l.dir&&e.test(o)});var t=this.root+e,r=im.call(this,t),n=this.clone();return n.root=r.name,n},"folder"),remove:a(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(o,l){return l.name.slice(0,e.length)===e}),n=0;n<r.length;n++)delete this.files[r[n].name];return this},"remove"),generate:a(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"generate"),generateInternalStream:a(function(e){var t,r={};try{if(r=Pi.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:pw.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.");Pi.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 n=r.comment||this.comment||"";t=bw.generateWorker(this,r,n)}catch(o){t=new em("error"),t.error(o)}return new mw(t,r.type||"string",r.mimeType)},"generateInternalStream"),generateAsync:a(function(e,t){return this.generateInternalStream(e).accumulate(t)},"generateAsync"),generateNodeStream:a(function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)},"generateNodeStream")};am.exports=vw});var uu=P((px,lm)=>{"use strict";var ww=ee();function sm(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}a(sm,"DataReader");sm.prototype={checkOffset:a(function(e){this.checkIndex(this.index+e)},"checkOffset"),checkIndex:a(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:a(function(e){this.checkIndex(e),this.index=e},"setIndex"),skip:a(function(e){this.setIndex(this.index+e)},"skip"),byteAt:a(function(){},"byteAt"),readInt:a(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:a(function(e){return ww.transformTo("string",this.readData(e))},"readString"),readData:a(function(){},"readData"),lastIndexOfSignature:a(function(){},"lastIndexOfSignature"),readAndCheckSignature:a(function(){},"readAndCheckSignature"),readDate:a(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")};lm.exports=sm});var fu=P((gx,fm)=>{"use strict";var um=uu(),Sw=ee();function xn(e){um.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}a(xn,"ArrayReader");Sw.inherits(xn,um);xn.prototype.byteAt=function(e){return this.data[this.zero+e]};xn.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),o=e.charCodeAt(3),l=this.length-4;l>=0;--l)if(this.data[l]===t&&this.data[l+1]===r&&this.data[l+2]===n&&this.data[l+3]===o)return l-this.zero;return-1};xn.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),o=e.charCodeAt(3),l=this.readData(4);return t===l[0]&&r===l[1]&&n===l[2]&&o===l[3]};xn.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};fm.exports=xn});var hm=P((_x,cm)=>{"use strict";var dm=uu(),Rw=ee();function An(e){dm.call(this,e)}a(An,"StringReader");Rw.inherits(An,dm);An.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};An.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};An.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};An.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};cm.exports=An});var cu=P((vx,mm)=>{"use strict";var pm=fu(),Tw=ee();function du(e){pm.call(this,e)}a(du,"Uint8ArrayReader");Tw.inherits(du,pm);du.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};mm.exports=du});var _m=P((Sx,bm)=>{"use strict";var gm=cu(),xw=ee();function hu(e){gm.call(this,e)}a(hu,"NodeBufferReader");xw.inherits(hu,gm);hu.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};bm.exports=hu});var pu=P((Tx,vm)=>{"use strict";var so=ee(),ym=Et(),Aw=fu(),Ew=hm(),kw=_m(),Cw=cu();vm.exports=function(e){var t=so.getTypeOf(e);return so.checkSupport(t),t==="string"&&!ym.uint8array?new Ew(e):t==="nodebuffer"?new kw(e):ym.uint8array?new Cw(so.transformTo("uint8array",e)):new Aw(so.transformTo("array",e))}});var Tm=P((xx,Rm)=>{"use strict";var mu=pu(),er=ee(),Pw=Ma(),wm=za(),lo=dn(),uo=ou(),Iw=Et(),Ow=0,Fw=3,Bw=a(function(e){for(var t in uo)if(Object.prototype.hasOwnProperty.call(uo,t)&&uo[t].magic===e)return uo[t];return null},"findCompression");function Sm(e,t){this.options=e,this.loadOptions=t}a(Sm,"ZipEntry");Sm.prototype={isEncrypted:a(function(){return(this.bitFlag&1)===1},"isEncrypted"),useUTF8:a(function(){return(this.bitFlag&2048)===2048},"useUTF8"),readLocalPart:a(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=Bw(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+er.pretty(this.compressionMethod)+" unknown (inner file : "+er.transformTo("string",this.fileName)+")");this.decompressed=new Pw(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},"readLocalPart"),readCentralPart:a(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:a(function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),e===Ow&&(this.dosPermissions=this.externalFileAttributes&63),e===Fw&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},"processAttributes"),parseZIP64ExtraField:a(function(){if(this.extraFields[1]){var e=mu(this.extraFields[1].value);this.uncompressedSize===er.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===er.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===er.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===er.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},"parseZIP64ExtraField"),readExtraFields:a(function(e){var t=e.index+this.extraFieldsLength,r,n,o;for(this.extraFields||(this.extraFields={});e.index+4<t;)r=e.readInt(2),n=e.readInt(2),o=e.readData(n),this.extraFields[r]={id:r,length:n,value:o};e.setIndex(t)},"readExtraFields"),handleUTF8:a(function(){var e=Iw.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=lo.utf8decode(this.fileName),this.fileCommentStr=lo.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var r=er.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(n!==null)this.fileCommentStr=n;else{var o=er.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},"handleUTF8"),findExtraFieldUnicodePath:a(function(){var e=this.extraFields[28789];if(e){var t=mu(e.value);return t.readInt(1)!==1||wm(this.fileName)!==t.readInt(4)?null:lo.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodePath"),findExtraFieldUnicodeComment:a(function(){var e=this.extraFields[25461];if(e){var t=mu(e.value);return t.readInt(1)!==1||wm(this.fileComment)!==t.readInt(4)?null:lo.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodeComment")};Rm.exports=Sm});var Em=P((Ex,Am)=>{"use strict";var Dw=pu(),Ft=ee(),Qe=su(),Lw=Tm(),qw=Et();function xm(e){this.files=[],this.loadOptions=e}a(xm,"ZipEntries");xm.prototype={checkSignature:a(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 ("+Ft.pretty(t)+", expected "+Ft.pretty(e)+")")}},"checkSignature"),isSignature:a(function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4),o=n===t;return this.reader.setIndex(r),o},"isSignature"),readBlockEndOfCentral:a(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=qw.uint8array?"uint8array":"array",r=Ft.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},"readBlockEndOfCentral"),readBlockZip64EndOfCentral:a(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,n,o;t<e;)r=this.reader.readInt(2),n=this.reader.readInt(4),o=this.reader.readData(n),this.zip64ExtensibleData[r]={id:r,length:n,value:o}},"readBlockZip64EndOfCentral"),readBlockZip64EndOfCentralLocator:a(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:a(function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(Qe.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},"readLocalFiles"),readCentralDir:a(function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(Qe.CENTRAL_FILE_HEADER);)e=new Lw({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:a(function(){var e=this.reader.lastIndexOfSignature(Qe.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,Qe.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(Qe.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===Ft.MAX_VALUE_16BITS||this.diskWithCentralDirStart===Ft.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===Ft.MAX_VALUE_16BITS||this.centralDirRecords===Ft.MAX_VALUE_16BITS||this.centralDirSize===Ft.MAX_VALUE_32BITS||this.centralDirOffset===Ft.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(Qe.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(Qe.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,Qe.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(Qe.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(Qe.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var o=r-n;if(o>0)this.isSignature(r,Qe.CENTRAL_FILE_HEADER)||(this.reader.zero=o);else if(o<0)throw new Error("Corrupted zip: missing "+Math.abs(o)+" bytes.")},"readEndOfCentral"),prepareReader:a(function(e){this.reader=Dw(e)},"prepareReader"),load:a(function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()},"load")};Am.exports=xm});var Pm=P((Cx,Cm)=>{"use strict";var gu=ee(),fo=ln(),zw=dn(),Mw=Em(),Uw=bl(),km=ai();function Ww(e){return new fo.Promise(function(t,r){var n=e.decompressed.getContentWorker().pipe(new Uw);n.on("error",function(o){r(o)}).on("end",function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}a(Ww,"checkEntryCRC32");Cm.exports=function(e,t){var r=this;return t=gu.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:zw.utf8decode}),km.isNode&&km.isStream(e)?fo.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):gu.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(n){var o=new Mw(t);return o.load(n),o}).then(a(function(o){var l=[fo.Promise.resolve(o)],f=o.files;if(t.checkCRC32)for(var c=0;c<f.length;c++)l.push(Ww(f[c]));return fo.Promise.all(l)},"checkCRC32")).then(a(function(o){for(var l=o.shift(),f=l.files,c=0;c<f.length;c++){var m=f[c],d=m.fileNameStr,h=gu.resolve(m.fileNameStr);r.file(h,m.decompressed,{binary:!0,optimizedBinaryString:!0,date:m.date,dir:m.dir,comment:m.fileCommentStr.length?m.fileCommentStr:null,unixPermissions:m.unixPermissions,dosPermissions:m.dosPermissions,createFolders:t.createFolders}),m.dir||(r.file(h).unsafeOriginalName=d)}return l.zipComment.length&&(r.comment=l.zipComment),r},"addFiles"))}});var co=P((Ix,Im)=>{"use strict";function Me(){if(!(this instanceof Me))return new Me;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 Me;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}a(Me,"JSZip");Me.prototype=om();Me.prototype.loadAsync=Pm();Me.support=Et();Me.defaults=pl();Me.version="3.10.1";Me.loadAsync=function(e,t){return new Me().loadAsync(e,t)};Me.external=ln();Im.exports=Me});var Nw={};Mf(Nw,{TestRunMonitor:()=>bo});module.exports=Ub(Nw);var Nm=Oe(require("net")),jm=require("fs");var yd=Oe(require("http"),1),vd=Oe(require("https"),1),pr=Oe(require("zlib"),1),xe=Oe(require("stream"),1),Gn=require("buffer");function Wb(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(";"),n="",o=!1,l=r[0]||"text/plain",f=l;for(let h=1;h<r.length;h++)r[h]==="base64"?o=!0:r[h]&&(f+=`;${r[h]}`,r[h].indexOf("charset=")===0&&(n=r[h].substring(8)));!r[0]&&!n.length&&(f+=";charset=US-ASCII",n="US-ASCII");let c=o?"base64":"ascii",m=unescape(e.substring(t+1)),d=Buffer.from(m,c);return d.type=l,d.typeFull=f,d.charset=n,d}a(Wb,"dataUriToBuffer");var Nf=Wb;var Be=Oe(require("stream"),1),Rt=require("util"),Re=require("buffer");Wn();la();var bs=class bs 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}};a(bs,"FetchBaseError");var St=bs;var _s=class _s extends St{constructor(t,r,n){super(t,r),n&&(this.code=this.errno=n.code,this.erroredSysCall=n.syscall)}};a(_s,"FetchError");var _e=_s;var ua=Symbol.toStringTag,ys=a(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[ua]==="URLSearchParams","isURLSearchParameters"),Zn=a(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[ua]),"isBlob"),Xf=a(e=>typeof e=="object"&&(e[ua]==="AbortSignal"||e[ua]==="EventTarget"),"isAbortSignal"),Qf=a((e,t)=>{let r=new URL(t).hostname,n=new URL(e).hostname;return r===n||r.endsWith(`.${n}`)},"isDomainOrSubdomain"),Jf=a((e,t)=>{let r=new URL(t).protocol,n=new URL(e).protocol;return r===n},"isSameProtocol");var r_=(0,Rt.promisify)(Be.default.pipeline),ye=Symbol("Body internals"),Ts=class Ts{constructor(t,{size:r=0}={}){let n=null;t===null?t=null:ys(t)?t=Re.Buffer.from(t.toString()):Zn(t)||Re.Buffer.isBuffer(t)||(Rt.types.isAnyArrayBuffer(t)?t=Re.Buffer.from(t):ArrayBuffer.isView(t)?t=Re.Buffer.from(t.buffer,t.byteOffset,t.byteLength):t instanceof Be.default||(t instanceof fr?(t=Kf(t),n=t.type.split("=")[1]):t=Re.Buffer.from(String(t))));let o=t;Re.Buffer.isBuffer(t)?o=Be.default.Readable.from(t):Zn(t)&&(o=Be.default.Readable.from(t.stream())),this[ye]={body:t,stream:o,boundary:n,disturbed:!1,error:null},this.size=r,t instanceof Be.default&&t.on("error",l=>{let f=l instanceof St?l:new _e(`Invalid response body while trying to fetch ${this.url}: ${l.message}`,"system",l);this[ye].error=f})}get body(){return this[ye].stream}get bodyUsed(){return this[ye].disturbed}async arrayBuffer(){let{buffer:t,byteOffset:r,byteLength:n}=await Rs(this);return t.slice(r,r+n)}async formData(){let t=this.headers.get("content-type");if(t.startsWith("application/x-www-form-urlencoded")){let n=new fr,o=new URLSearchParams(await this.text());for(let[l,f]of o)n.append(l,f);return n}let{toFormData:r}=await Promise.resolve().then(()=>(id(),nd));return r(this.body,t)}async blob(){let t=this.headers&&this.headers.get("content-type")||this[ye].body&&this[ye].body.type||"",r=await this.arrayBuffer();return new wt([r],{type:t})}async json(){let t=await this.text();return JSON.parse(t)}async text(){let t=await Rs(this);return new TextDecoder().decode(t)}buffer(){return Rs(this)}};a(Ts,"Body");var ot=Ts;ot.prototype.buffer=(0,Rt.deprecate)(ot.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer");Object.defineProperties(ot.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:(0,Rt.deprecate)(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});async function Rs(e){if(e[ye].disturbed)throw new TypeError(`body used already for: ${e.url}`);if(e[ye].disturbed=!0,e[ye].error)throw e[ye].error;let{body:t}=e;if(t===null)return Re.Buffer.alloc(0);if(!(t instanceof Be.default))return Re.Buffer.alloc(0);let r=[],n=0;try{for await(let o of t){if(e.size>0&&n+o.length>e.size){let l=new _e(`content size at ${e.url} over limit: ${e.size}`,"max-size");throw t.destroy(l),l}n+=o.length,r.push(o)}}catch(o){throw o instanceof St?o:new _e(`Invalid response body while trying to fetch ${e.url}: ${o.message}`,"system",o)}if(t.readableEnded===!0||t._readableState.ended===!0)try{return r.every(o=>typeof o=="string")?Re.Buffer.from(r.join("")):Re.Buffer.concat(r,n)}catch(o){throw new _e(`Could not create Buffer from response body for ${e.url}: ${o.message}`,"system",o)}else throw new _e(`Premature close of server response while trying to fetch ${e.url}`)}a(Rs,"consumeBody");var Xr=a((e,t)=>{let r,n,{body:o}=e[ye];if(e.bodyUsed)throw new Error("cannot clone body after it is used");return o instanceof Be.default&&typeof o.getBoundary!="function"&&(r=new Be.PassThrough({highWaterMark:t}),n=new Be.PassThrough({highWaterMark:t}),o.pipe(r),o.pipe(n),e[ye].stream=r,o=n),o},"clone"),n_=(0,Rt.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"),ha=a((e,t)=>e===null?null:typeof e=="string"?"text/plain;charset=UTF-8":ys(e)?"application/x-www-form-urlencoded;charset=UTF-8":Zn(e)?e.type||null:Re.Buffer.isBuffer(e)||Rt.types.isAnyArrayBuffer(e)||ArrayBuffer.isView(e)?null:e instanceof fr?`multipart/form-data; boundary=${t[ye].boundary}`:e&&typeof e.getBoundary=="function"?`multipart/form-data;boundary=${n_(e)}`:e instanceof Be.default?null:"text/plain;charset=UTF-8","extractContentType"),ad=a(e=>{let{body:t}=e[ye];return t===null?0:Zn(t)?t.size:Re.Buffer.isBuffer(t)?t.length:t&&typeof t.getLengthSync=="function"&&t.hasKnownLength&&t.hasKnownLength()?t.getLengthSync():null},"getTotalBytes"),od=a(async(e,{body:t})=>{t===null?e.end():await r_(t,e)},"writeToStream");var xs=require("util"),Vn=Oe(require("http"),1);var pa=typeof Vn.default.validateHeaderName=="function"?Vn.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}},As=typeof Vn.default.validateHeaderValue=="function"?Vn.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}},ma=class ma extends URLSearchParams{constructor(t){let r=[];if(t instanceof ma){let n=t.raw();for(let[o,l]of Object.entries(n))r.push(...l.map(f=>[o,f]))}else if(t!=null)if(typeof t=="object"&&!xs.types.isBoxedPrimitive(t)){let n=t[Symbol.iterator];if(n==null)r.push(...Object.entries(t));else{if(typeof n!="function")throw new TypeError("Header pairs must be iterable");r=[...t].map(o=>{if(typeof o!="object"||xs.types.isBoxedPrimitive(o))throw new TypeError("Each header pair must be an iterable object");return[...o]}).map(o=>{if(o.length!==2)throw new TypeError("Each header pair must be a name/value tuple");return[...o]})}}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(([n,o])=>(pa(n),As(n,String(o)),[String(n).toLowerCase(),String(o)])):void 0,super(r),new Proxy(this,{get(n,o,l){switch(o){case"append":case"set":return(f,c)=>(pa(f),As(f,String(c)),URLSearchParams.prototype[o].call(n,String(f).toLowerCase(),String(c)));case"delete":case"has":case"getAll":return f=>(pa(f),URLSearchParams.prototype[o].call(n,String(f).toLowerCase()));case"keys":return()=>(n.sort(),new Set(URLSearchParams.prototype.keys.call(n)).keys());default:return Reflect.get(n,o,l)}}})}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 n=r.join(", ");return/^content-encoding$/i.test(t)&&(n=n.toLowerCase()),n}forEach(t,r=void 0){for(let n of this.keys())Reflect.apply(t,r,[this.get(n),n,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 n=this.getAll(r);return r==="host"?t[r]=n[0]:t[r]=n.length>1?n:n[0],t},{})}};a(ma,"Headers");var Te=ma;Object.defineProperties(Te.prototype,["get","entries","forEach","values"].reduce((e,t)=>(e[t]={enumerable:!0},e),{}));function sd(e=[]){return new Te(e.reduce((t,r,n,o)=>(n%2===0&&t.push(o.slice(n,n+2)),t),[]).filter(([t,r])=>{try{return pa(t),As(t,String(r)),!0}catch{return!1}}))}a(sd,"fromRawHeaders");var i_=new Set([301,302,303,307,308]),ga=a(e=>i_.has(e),"isRedirect");var Ve=Symbol("Response internals"),cr=class cr extends ot{constructor(t=null,r={}){super(t,r);let n=r.status!=null?r.status:200,o=new Te(r.headers);if(t!==null&&!o.has("Content-Type")){let l=ha(t,this);l&&o.append("Content-Type",l)}this[Ve]={type:"default",url:r.url,status:n,statusText:r.statusText||"",headers:o,counter:r.counter,highWaterMark:r.highWaterMark}}get type(){return this[Ve].type}get url(){return this[Ve].url||""}get status(){return this[Ve].status}get ok(){return this[Ve].status>=200&&this[Ve].status<300}get redirected(){return this[Ve].counter>0}get statusText(){return this[Ve].statusText}get headers(){return this[Ve].headers}get highWaterMark(){return this[Ve].highWaterMark}clone(){return new cr(Xr(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(!ga(r))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new cr(null,{headers:{location:new URL(t).toString()},status:r})}static error(){let t=new cr(null,{status:0,statusText:""});return t[Ve].type="error",t}static json(t=void 0,r={}){let n=JSON.stringify(t);if(n===void 0)throw new TypeError("data is not JSON serializable");let o=new Te(r&&r.headers);return o.has("content-type")||o.set("content-type","application/json"),new cr(n,{...r,headers:o})}get[Symbol.toStringTag](){return"Response"}};a(cr,"Response");var De=cr;Object.defineProperties(De.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 gd=require("url"),bd=require("util");var ld=a(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 fd=require("net");function ud(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)}a(ud,"stripURLForUseAsAReferrer");var dd=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),cd="strict-origin-when-cross-origin";function hd(e){if(!dd.has(e))throw new TypeError(`Invalid referrerPolicy: ${e}`);return e}a(hd,"validateReferrerPolicy");function a_(e){if(/^(http|ws)s:$/.test(e.protocol))return!0;let t=e.host.replace(/(^\[)|(]$)/g,""),r=(0,fd.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:"}a(a_,"isOriginPotentiallyTrustworthy");function Qr(e){return/^about:(blank|srcdoc)$/.test(e)||e.protocol==="data:"||/^(blob|filesystem):$/.test(e.protocol)?!0:a_(e)}a(Qr,"isUrlPotentiallyTrustworthy");function pd(e,{referrerURLCallback:t,referrerOriginCallback:r}={}){if(e.referrer==="no-referrer"||e.referrerPolicy==="")return null;let n=e.referrerPolicy;if(e.referrer==="about:client")return"no-referrer";let o=e.referrer,l=ud(o),f=ud(o,!0);l.toString().length>4096&&(l=f),t&&(l=t(l)),r&&(f=r(f));let c=new URL(e.url);switch(n){case"no-referrer":return"no-referrer";case"origin":return f;case"unsafe-url":return l;case"strict-origin":return Qr(l)&&!Qr(c)?"no-referrer":f.toString();case"strict-origin-when-cross-origin":return l.origin===c.origin?l:Qr(l)&&!Qr(c)?"no-referrer":f;case"same-origin":return l.origin===c.origin?l:"no-referrer";case"origin-when-cross-origin":return l.origin===c.origin?l:f;case"no-referrer-when-downgrade":return Qr(l)&&!Qr(c)?"no-referrer":l;default:throw new TypeError(`Invalid referrerPolicy: ${n}`)}}a(pd,"determineRequestsReferrer");function md(e){let t=(e.get("referrer-policy")||"").split(/[,\s]+/),r="";for(let n of t)n&&dd.has(n)&&(r=n);return r}a(md,"parseReferrerPolicyFromHeader");var se=Symbol("Request internals"),Yn=a(e=>typeof e=="object"&&typeof e[se]=="object","isRequest"),o_=(0,bd.deprecate)(()=>{},".data is not a valid RequestInit property, use .body instead","https://github.com/node-fetch/node-fetch/issues/1000 (request)"),ba=class ba extends ot{constructor(t,r={}){let n;if(Yn(t)?n=new URL(t.url):(n=new URL(t),t={}),n.username!==""||n.password!=="")throw new TypeError(`${n} is an url with embedded credentials.`);let o=r.method||t.method||"GET";if(/^(delete|get|head|options|post|put)$/i.test(o)&&(o=o.toUpperCase()),!Yn(r)&&"data"in r&&o_(),(r.body!=null||Yn(t)&&t.body!==null)&&(o==="GET"||o==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let l=r.body?r.body:Yn(t)&&t.body!==null?Xr(t):null;super(l,{size:r.size||t.size||0});let f=new Te(r.headers||t.headers||{});if(l!==null&&!f.has("Content-Type")){let d=ha(l,this);d&&f.set("Content-Type",d)}let c=Yn(t)?t.signal:null;if("signal"in r&&(c=r.signal),c!=null&&!Xf(c))throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");let m=r.referrer==null?t.referrer:r.referrer;if(m==="")m="no-referrer";else if(m){let d=new URL(m);m=/^about:(\/\/)?client$/.test(d)?"client":d}else m=void 0;this[se]={method:o,redirect:r.redirect||t.redirect||"follow",headers:f,parsedURL:n,signal:c,referrer:m},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[se].method}get url(){return(0,gd.format)(this[se].parsedURL)}get headers(){return this[se].headers}get redirect(){return this[se].redirect}get signal(){return this[se].signal}get referrer(){if(this[se].referrer==="no-referrer")return"";if(this[se].referrer==="client")return"about:client";if(this[se].referrer)return this[se].referrer.toString()}get referrerPolicy(){return this[se].referrerPolicy}set referrerPolicy(t){this[se].referrerPolicy=hd(t)}clone(){return new ba(this)}get[Symbol.toStringTag](){return"Request"}};a(ba,"Request");var hr=ba;Object.defineProperties(hr.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 _d=a(e=>{let{parsedURL:t}=e[se],r=new Te(e[se].headers);r.has("Accept")||r.set("Accept","*/*");let n=null;if(e.body===null&&/^(post|put)$/i.test(e.method)&&(n="0"),e.body!==null){let c=ad(e);typeof c=="number"&&!Number.isNaN(c)&&(n=String(c))}n&&r.set("Content-Length",n),e.referrerPolicy===""&&(e.referrerPolicy=cd),e.referrer&&e.referrer!=="no-referrer"?e[se].referrer=pd(e):e[se].referrer="no-referrer",e[se].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:o}=e;typeof o=="function"&&(o=o(t));let l=ld(t),f={path:t.pathname+l,method:e.method,headers:r[Symbol.for("nodejs.util.inspect.custom")](),insecureHTTPParser:e.insecureHTTPParser,agent:o};return{parsedURL:t,options:f}},"getNodeRequestOptions");var Es=class Es extends St{constructor(t,r="aborted"){super(t,r)}};a(Es,"AbortError");var _a=Es;la();vs();var s_=new Set(["data:","http:","https:"]);async function ya(e,t){return new Promise((r,n)=>{let o=new hr(e,t),{parsedURL:l,options:f}=_d(o);if(!s_.has(l.protocol))throw new TypeError(`node-fetch cannot load ${e}. URL scheme "${l.protocol.replace(/:$/,"")}" is not supported.`);if(l.protocol==="data:"){let v=Nf(o.url),k=new De(v,{headers:{"Content-Type":v.typeFull}});r(k);return}let c=(l.protocol==="https:"?vd.default:yd.default).request,{signal:m}=o,d=null,h=a(()=>{let v=new _a("The operation was aborted.");n(v),o.body&&o.body instanceof xe.default.Readable&&o.body.destroy(v),!(!d||!d.body)&&d.body.emit("error",v)},"abort");if(m&&m.aborted){h();return}let x=a(()=>{h(),w()},"abortAndFinalize"),_=c(l.toString(),f);m&&m.addEventListener("abort",x);let w=a(()=>{_.abort(),m&&m.removeEventListener("abort",x)},"finalize");_.on("error",v=>{n(new _e(`request to ${o.url} failed, reason: ${v.message}`,"system",v)),w()}),l_(_,v=>{d&&d.body&&d.body.destroy(v)}),process.version<"v14"&&_.on("socket",v=>{let k;v.prependListener("end",()=>{k=v._eventsCount}),v.prependListener("close",E=>{if(d&&k<v._eventsCount&&!E){let S=new Error("Premature close");S.code="ERR_STREAM_PREMATURE_CLOSE",d.body.emit("error",S)}})}),_.on("response",v=>{_.setTimeout(0);let k=sd(v.rawHeaders);if(ga(v.statusCode)){let R=k.get("Location"),T=null;try{T=R===null?null:new URL(R,o.url)}catch{if(o.redirect!=="manual"){n(new _e(`uri requested responds with an invalid redirect URL: ${R}`,"invalid-redirect")),w();return}}switch(o.redirect){case"error":n(new _e(`uri requested responds with a redirect, redirect mode is set to error: ${o.url}`,"no-redirect")),w();return;case"manual":break;case"follow":{if(T===null)break;if(o.counter>=o.follow){n(new _e(`maximum redirect reached at: ${o.url}`,"max-redirect")),w();return}let O={headers:new Te(o.headers),follow:o.follow,counter:o.counter+1,agent:o.agent,compress:o.compress,method:o.method,body:Xr(o),signal:o.signal,size:o.size,referrer:o.referrer,referrerPolicy:o.referrerPolicy};if(!Qf(o.url,T)||!Jf(o.url,T))for(let D of["authorization","www-authenticate","cookie","cookie2"])O.headers.delete(D);if(v.statusCode!==303&&o.body&&t.body instanceof xe.default.Readable){n(new _e("Cannot follow redirect with body being a readable stream","unsupported-redirect")),w();return}(v.statusCode===303||(v.statusCode===301||v.statusCode===302)&&o.method==="POST")&&(O.method="GET",O.body=void 0,O.headers.delete("content-length"));let q=md(k);q&&(O.referrerPolicy=q),r(ya(new hr(T,O))),w();return}default:return n(new TypeError(`Redirect option '${o.redirect}' is not a valid value of RequestRedirect`))}}m&&v.once("end",()=>{m.removeEventListener("abort",x)});let E=(0,xe.pipeline)(v,new xe.PassThrough,R=>{R&&n(R)});process.version<"v12.10"&&v.on("aborted",x);let S={url:o.url,status:v.statusCode,statusText:v.statusMessage,headers:k,size:o.size,counter:o.counter,highWaterMark:o.highWaterMark},A=k.get("Content-Encoding");if(!o.compress||o.method==="HEAD"||A===null||v.statusCode===204||v.statusCode===304){d=new De(E,S),r(d);return}let C={flush:pr.default.Z_SYNC_FLUSH,finishFlush:pr.default.Z_SYNC_FLUSH};if(A==="gzip"||A==="x-gzip"){E=(0,xe.pipeline)(E,pr.default.createGunzip(C),R=>{R&&n(R)}),d=new De(E,S),r(d);return}if(A==="deflate"||A==="x-deflate"){let R=(0,xe.pipeline)(v,new xe.PassThrough,T=>{T&&n(T)});R.once("data",T=>{(T[0]&15)===8?E=(0,xe.pipeline)(E,pr.default.createInflate(),O=>{O&&n(O)}):E=(0,xe.pipeline)(E,pr.default.createInflateRaw(),O=>{O&&n(O)}),d=new De(E,S),r(d)}),R.once("end",()=>{d||(d=new De(E,S),r(d))});return}if(A==="br"){E=(0,xe.pipeline)(E,pr.default.createBrotliDecompress(),R=>{R&&n(R)}),d=new De(E,S),r(d);return}d=new De(E,S),r(d)}),od(_,o).catch(n)})}a(ya,"fetch");function l_(e,t){let r=Gn.Buffer.from(`0\r
|
|
15
14
|
\r
|
|
16
|
-
`),
|
|
17
|
-
`))}isChecksumConsoleLog(t){var r,
|
|
15
|
+
`),n=!1,o=!1,l;e.on("response",f=>{let{headers:c}=f;n=c["transfer-encoding"]==="chunked"&&!c["content-length"]}),e.on("socket",f=>{let c=a(()=>{if(n&&!o){let d=new Error("Premature close");d.code="ERR_STREAM_PREMATURE_CLOSE",t(d)}},"onSocketClose"),m=a(d=>{o=Gn.Buffer.compare(d.slice(-5),r)===0,!o&&l&&(o=Gn.Buffer.compare(l.slice(-3),r.slice(0,3))===0&&Gn.Buffer.compare(d.slice(-2),r.slice(3))===0),l=d},"onData");f.prependListener("close",c),f.on("data",m),e.on("close",()=>{f.removeListener("close",c),f.removeListener("data",m)})})}a(l_,"fixResponseChunkedTransferBadEnding");var Oi=require("path");var Om=require("fs"),Fm=require("jsdom"),Bm=Oe(co());var bu=class bu{constructor(t,r,n,o={}){this.reportHTMLFilePath=t;this.testRunUUID=r;this.pwTestIdToChecksumTestId=n;this.supportVideo=!1;this.config={hosted:!0,assetsBaseURL:"https://api.checksum.ai/api/test-runs"};this.config={...this.config,...o}}async process(){this.config.hosted&&(await this.initializeDOM(),this.makeLightModeOnly(),await this.editZipFile(),await this.writeFile())}async initializeDOM(){return this.dom=await Fm.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,Om.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"),n=r.innerHTML,o=/@media\s*\(prefers-color-scheme:\s*dark\)\s*{[^}]*}/g,l=n.replace(o,"");r.innerHTML=l}catch{}}async editZipFile(){let t=this.dom.window.playwrightReportBase64.replace("data:application/zip;base64,",""),r=await(0,Bm.loadAsync)(t,{base64:!0});for(let o of Object.keys(r.files)){let l=r.file(o);if(l){let f=await l.async("string"),c=JSON.parse(f);o.startsWith("report")?this.handleReportJSON(c):this.handleFileReportJSON(c),r.file(o,JSON.stringify(c))}}let n=await r.generateAsync({type:"base64",compression:"DEFLATE"});this.newBase64Zip=`data:application/zip;base64,${n}`}getCloudPath(t){return`${this.config.assetsBaseURL}/${this.testRunUUID}/${this.pwTestIdToChecksumTestId[t]}`}handleReportJSON(t){t.files.forEach(r=>r.tests.forEach(n=>{n.results.forEach(o=>{this.processAttachments(o.attachments,n.testId)})}))}handleFileReportJSON(t){var r;(r=t.tests)==null||r.forEach(n=>{var o;(o=n.results)==null||o.forEach(l=>{this.processAttachments(l.attachments,n.testId)})})}processAttachments(t,r){if(t.forEach(n=>this.updateAttachment(n,r)),!this.supportVideo){let n=t.findIndex(o=>o.name==="video");n!==-1&&t.splice(n,1)}}updateAttachment(t,r){["trace","video"].includes(t.name)&&(t.path=`${this.getCloudPath(r)}/${t.name}`)}};a(bu,"PlaywrightReportProcessor");var ho=bu;var Hm=require("http");var V=require("fs"),yu=Oe(co()),vu=require("stream/promises"),Dm=require("crypto"),Cr=require("path");var _u,wu=class wu{constructor(t,r,n,o,l=!1){this.mode=t;this.traceDir=r;this.outputZipFilePath=n;this.frontendLogPrefix=o;this.deleteOriginalFiles=l;this.wallTimesToBeRemoved={};this.callIdsRemovals={};this.consoleLogGUIDs=[];this.numberOfLinesPerFile={};this.unarchiveFolder=(0,Dm.randomUUID)();this.resourcesFolder=(0,Cr.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:f}=require("readline/promises");_u=f}async process(){if(this.mode==="runtime")return!1;try{if(!(0,V.existsSync)(this.traceDir))return!1;let r=(0,V.readdirSync)(this.traceDir).filter(n=>n.endsWith(".zip")).sort((n,o)=>{let l=a(m=>{try{let d=m.split(".");return parseInt(d[d.length-2])}catch{return 0}},"getIndex"),f=l(n),c=l(o);return f-c});if(!r.length)return!1;(0,V.mkdirSync)(this.unarchiveFolder),(0,V.mkdirSync)(this.resourcesFolder);for(let n of r)await this.processOne((0,Cr.join)(this.traceDir,n));if(await this.reZip(),(0,V.rmdirSync)(this.unarchiveFolder,{recursive:!0}),this.deleteOriginalFiles)for(let n of r)(0,V.rmSync)((0,Cr.join)(this.traceDir,n))}catch(t){return console.log("There was an error processing the trace files",t),!1}return!0}async processOne(t){let n=(await this.unzipAndWriteFiles(t)).trace.map(l=>(0,Cr.join)(this.unarchiveFolder,l));for(let l of n)await this.preprocessFile(l);let o=[...n];for(;o.length>0;)for(let l of o)await this.processFile(l,o)}async unzipAndWriteFiles(t){let r=(0,V.readFileSync)(t),n=await(0,yu.loadAsync)(r),o={trace:[],network:[],stacks:[]},l=a(f=>{let c=a((m,d)=>(o[d].push(m),m),"addToUnarchivedFiles");return f.endsWith(".trace")?c(`trace${this.runningIndexes.trace++}.trace`,"trace"):f.endsWith(".network")?c(`trace${this.runningIndexes.network++}.network`,"network"):f.endsWith(".stacks")?c(`trace${this.runningIndexes.stacks++}.stacks`,"stacks"):null},"getNewFileName");for(let f of Object.keys(n.files)){let c=l(f);if(!c)continue;let m=n.file(f).nodeStream(),d=(0,V.createWriteStream)(`${this.unarchiveFolder}/${c}`);await(0,vu.pipeline)(m,d)}for(let f of Object.keys(n.files)){if(!f.startsWith("resources/"))continue;let c=f.replace("resources/",""),m=`${this.resourcesFolder}/${c}`;if(this.mode==="generation"&&c.startsWith("src@")||(0,V.existsSync)(m))continue;let d=n.file(f).nodeStream(),h=(0,V.createWriteStream)(m);await(0,vu.pipeline)(d,h)}return o}async reZip(){let t=await(0,yu.loadAsync)("UEsFBgAAAAAAAAAAAAAAAAAAAAAAAA==",{base64:!0});for(let o of(0,V.readdirSync)(this.unarchiveFolder))if(o.endsWith(".network")||this.shouldIncludeStacksFiles()&&o.endsWith(".stacks")||o.endsWith(".trace")){let l=(0,V.readFileSync)((0,Cr.join)(this.unarchiveFolder,o));t.file(o,l)}let r=t.folder("resources");for(let o of(0,V.readdirSync)(this.resourcesFolder)){let l=(0,V.readFileSync)((0,Cr.join)(this.resourcesFolder,o));r.file(o,l)}let n=await t.generateAsync({type:"nodebuffer",compression:"DEFLATE"});(0,V.existsSync)(this.outputZipFilePath)&&(0,V.rmSync)(this.outputZipFilePath),(0,V.writeFileSync)(this.outputZipFilePath,n)}async preprocessFile(t){this.callIdsRemovals[t]={callIdsToBeRemoved:{},arrayOfCallIdsToBeRemoved:new Set};let r=(0,V.createReadStream)(t),n=_u({input:r,crlfDelay:1/0}),o=0;for await(let l of n){o++;let f=JSON.parse(l);this.shouldLineBeRemoved(f)&&(f.wallTime&&(this.wallTimesToBeRemoved[f.wallTime]=!0),f.callId&&(this.callIdsRemovals[t].callIdsToBeRemoved[f.callId]=!0,this.callIdsRemovals[t].arrayOfCallIdsToBeRemoved.add(f.callId)))}this.numberOfLinesPerFile[t]=o}async processFile(t,r){var c,m;let n=[],o=(0,V.createReadStream)(t),l=_u({input:o,crlfDelay:1/0}),f=t;for await(let d of l){let h=JSON.parse(d),x=!1;if(this.frontendLogPrefix){if(this.isChecksumConsoleLog(h)){this.consoleLogGUIDs.push(h.guid);continue}if(this.isConsoleLogMetadata(h)&&this.consoleLogGUIDs.includes((m=(c=h.params)==null?void 0:c.message)==null?void 0:m.guid))continue}if(this.lineCanBeRemoved(h)&&(this.wallTimesToBeRemoved[h.wallTime]||this.callIdsRemovals[f].callIdsToBeRemoved[h.callId]||Array.from(this.callIdsRemovals[f].arrayOfCallIdsToBeRemoved).some(_=>d.includes(`"${_}"`)))&&(x=!0),x){h.callId&&(this.callIdsRemovals[f].callIdsToBeRemoved[h.callId]=!0,this.callIdsRemovals[f].arrayOfCallIdsToBeRemoved.add(h.callId));continue}n.push(d)}if(n.length===this.numberOfLinesPerFile[f]){let d=r.indexOf(f);d>-1&&r.splice(d,1)}else this.numberOfLinesPerFile[f]=n.length,(0,V.writeFileSync)(t,n.join(`
|
|
16
|
+
`))}isChecksumConsoleLog(t){var r,n;return t.class==="ConsoleMessage"&&((n=(r=t.initializer)==null?void 0:r.text)==null?void 0:n.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)}};a(wu,"PlaywrightTraceProcessor");var po=wu;var Lm=Oe(co()),Pr=require("path"),tr=require("fs");async function qm(e,t){let r=await(0,tr.readdirSync)(t);await Promise.all(r.map(async n=>{let o=(0,Pr.join)(t,n);if((await(0,tr.statSync)(o)).isDirectory()){let f=e.folder(n);await qm(f,o)}else{let f=await(0,tr.readFileSync)(o);e.file(n,f)}}))}a(qm,"addFolderToZip");async function zm(e){try{let t=await(0,Lm.loadAsync)("UEsFBgAAAAAAAAAAAAAAAAAAAAAAAA==",{base64:!0});await qm(t,e);let r=await t.generateAsync({type:"nodebuffer",compression:"DEFLATE"}),n=(0,Pr.join)((0,Pr.dirname)(e),`${(0,Pr.basename)(e)}.zip`);return(0,tr.writeFileSync)(n,r),n}catch(t){return console.error("Error creating zip:",t),null}}a(zm,"zipFolder");var Ii=a(e=>new Promise(t=>setTimeout(t,e)),"awaitSleep"),Mm=a(async(e,t=1e3,r="guardReturnTimedOut")=>{if(t===null)return e;let n="guard-timed-out",o=a(async()=>(await Ii(t+1e3),n),"guard"),l=await Promise.race([e,o()]);if(typeof l=="string"&&l===n)throw new Error(r);return l},"guardReturn");var Um=require("request"),go=require("fs");var Su=class Su{constructor(t,r,n,o,l){this.apiBaseURL=t;this.apiKey=r;this.uploadTimeout=n;this.makeGetUploadUrlAPIPath=o;this.onOutstandingUpload=l}async uploadAsset(t){try{let{path:r}=t.info;if(console.log("Uploading file",r),await this.getSignedURLForUpload(t),!t.uploadURL){console.log("Error getting signed URL for asset",r),t.error=!0;return}let o=(0,go.statSync)(r).size,l=(0,go.createReadStream)(r),f=Mm(new Promise((c,m)=>{var h;let d=(0,Um.put)(t.uploadURL,{body:l},(x,_)=>{x&&m(x),c(_)});(h=this.onOutstandingUpload)==null||h.call(this,{request:d,size:o})}),this.uploadTimeout);f.then(c=>{if(c.statusCode!==200)throw new Error("Upload failed");console.log("File uploaded successfully",r),t.complete=!0}).catch(c=>{console.log("Error uploading asset",r,c),t.error=!0}),t.response=f}catch{t.error=!0}}async getSignedURLForUpload(t){try{let r=t.info,n=await fetch(`${this.apiBaseURL}/${this.makeGetUploadUrlAPIPath(t)}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",ChecksumAppCode:this.apiKey},body:JSON.stringify(r)}),{url:o}=await n.json();t.uploadURL=o}catch(r){return console.log("Error getting signed URL for artifact",r),null}}};a(Su,"TestAssetUploader");var mo=Su;var Ru=class Ru{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=[];this.testAssetUploader=new mo(t.checksumApiURL,t.apiKey,this.UPLOAD_TIMEOUT,()=>`client-api/test-runs/${this.config.sessionId}/get-upload-url`,({request:n,size:o})=>{this.outstandingUploads.push({request:n,size:o})}),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[n,o]=r.substring(4).split("=");switch(n){case"report":this.testRunEndTime=Date.now(),await this.handleReport(o),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 ho(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(n){console.log("Error stringifying stats",n)}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 Ii(1e3),this.monitorUploadsCompletion()}async startServer(){let t=await this.acquirePortNumber();this.sendMessage(`port=${t}`),this.server=(0,Hm.createServer)((r,n)=>{let o=a(f=>{n.writeHead(400,{"Content-Type":"text/plain"}),n.end(f)},"returnErrorWithMessage");if(r.method!=="POST"){n.writeHead(404,{"Content-Type":"text/plain"}),n.end("Method not allowed");return}let l="";r.on("data",f=>{l+=f.toString()}),r.on("end",()=>{let f;try{f=JSON.parse(l)}catch{return o("Invalid body")}let{type:c,payload:m,watch:d}=f;switch(console.log("Server received message",c,m),c){case"asset":if(!m.path||!m.type)return o("Missing arguments");d?this.watchAsset(m):this.processAsset(m);break;case"testInfo":if(!m.pwTestId||!m.checksumTestId)return o("Missing arguments");this.pwTestIdToChecksumTestId[m.pwTestId]=m.checksumTestId;break;case"testStats":this.stats[m.passed?"passed":"failed"]++,m.healed&&this.stats.healed++;break;case"playwrightConfig":this.sendMessage(`playwrightConfig=${JSON.stringify(m)}`);break;default:return o("Invalid message type")}n.writeHead(200,{"Content-Type":"text/plain"}),n.end("OK")})}),this.server.listen(t)}monitorUploads(){let{totalSize:t,totalUploaded:r}=this.calculateUploadProgress();if(t>0){let l=(r/t*100).toFixed(2);this.sendMessage(`upload-progress=${l}`)}let n=a(()=>this.assets.filter(l=>l.response&&!l.complete&&!l.error),"getActiveUploads"),o=this.assets.filter(l=>!l.response);if(o.length!==0&&!(n().length>=this.MAX_UPLOADS))for(;o.length>0&&n().length<this.MAX_UPLOADS;){let l=o.pop();this.uploadAsset(l)}}calculateUploadProgress(){let{totalSize:t,totalUploaded:r}=this.outstandingUploads.reduce((n,{size:o,request:l})=>(n.totalSize+=o,n.totalUploaded+=l.req.connection._bytesDispatched,n),{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(n=>{setTimeout(()=>{t.complete=!0,n({statusCode:200,ok:!0,body:"OK"})},10)});return}let r=this.getUploadLogMessage(t);r&&this.sendMessage(`log=${r}`),await this.testAssetUploader.uploadAsset(t)}catch{t.error=!0}}async getSignedURLForUpload(t){try{let{apiKey:r,sessionId:n,checksumApiURL:o}=this.config,l=t.info,f=await ya(`${o}/client-api/test-runs/${n}/get-upload-url`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",ChecksumAppCode:r},body:JSON.stringify(l)}),{url:c}=await f.json();t.uploadURL=c}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,Oi.dirname)(t.path),n=(0,Oi.basename)(t.path),o=(0,jm.watch)(r,(l,f)=>{f===n&&(console.log("Watched file changed",t.path),this.processAsset(t),o.close(),this.watchAssets=this.watchAssets.filter(c=>c.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 Ii(1e3);let n=await zm(t);if(console.log("Processed har, sending for upload"),n)return this.addAsset({type:"har",path:n,testId:r})}async processTrace(t,r){try{this.processingInProgress=!0,await Ii(1e3);let n=t.replace(".zip",".processed.zip"),o=await new po("runtime",(0,Oi.dirname)(t),n,"$checksum").process();console.log("Processed trace files, adding assets"),o?(this.addAsset({type:"trace",path:n,testId:r}),this.addAsset({type:"trace-backup-file",path:t,testId:r})):this.addAsset({type:"trace",path:t,testId:r})}catch(n){console.log("Error processing trace file",n)}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 n=Nm.createServer();n.unref(),n.on("error",r),n.listen(0,()=>{let o=n.address().port;n.close(()=>{t(o)})})})}};a(Ru,"TestRunMonitor");var bo=Ru,Zm;try{Zm=JSON.parse(process.argv[2])}catch(e){console.log("Error starting test run monitor",e),process.exit(1)}var Wm;new bo(Zm,((Wm=process.argv)==null?void 0:Wm[3])==="isolated");0&&(module.exports={TestRunMonitor});
|
|
18
17
|
/*! Bundled license information:
|
|
19
18
|
|
|
20
19
|
web-streams-polyfill/dist/ponyfill.es2018.js:
|