@mindw1n/webnative 2.0.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +22 -21
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,46 +1,47 @@
1
1
  #!/usr/bin/env node
2
- var uu=Object.create;var Ea=Object.defineProperty;var hu=Object.getOwnPropertyDescriptor;var cu=Object.getOwnPropertyNames;var du=Object.getPrototypeOf,pu=Object.prototype.hasOwnProperty;var be=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var mu=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of cu(t))!pu.call(e,n)&&n!==r&&Ea(e,n,{get:()=>t[n],enumerable:!(i=hu(t,n))||i.enumerable});return e};var Ca=(e,t,r)=>(r=e!=null?uu(du(e)):{},mu(t||!e||!e.__esModule?Ea(r,"default",{value:e,enumerable:!0}):r,e));var Lt=_((Z_,Oi)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Oi.exports={nextTick:Wu}:Oi.exports=process;function Wu(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,a,s;switch(n){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,r)});case 4:return process.nextTick(function(){e.call(null,t,r,i)});default:for(a=new Array(n-1),s=0;s<a.length;)a[s++]=arguments[s];return process.nextTick(function(){e.apply(null,a)})}}});var Na=_((V_,Fa)=>{var Hu={}.toString;Fa.exports=Array.isArray||function(e){return Hu.call(e)=="[object Array]"}});var Ai=_((G_,Pa)=>{Pa.exports=be("stream")});var qt=_((Ti,za)=>{var Ir=be("buffer"),ye=Ir.Buffer;function Ba(e,t){for(var r in e)t[r]=e[r]}ye.from&&ye.alloc&&ye.allocUnsafe&&ye.allocUnsafeSlow?za.exports=Ir:(Ba(Ir,Ti),Ti.Buffer=ot);function ot(e,t,r){return ye(e,t,r)}Ba(ye,ot);ot.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ye(e,t,r)};ot.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=ye(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};ot.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ye(e)};ot.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Ir.SlowBuffer(e)}});var lt=_($=>{function Uu(e){return Array.isArray?Array.isArray(e):Rr(e)==="[object Array]"}$.isArray=Uu;function $u(e){return typeof e=="boolean"}$.isBoolean=$u;function Zu(e){return e===null}$.isNull=Zu;function Vu(e){return e==null}$.isNullOrUndefined=Vu;function Gu(e){return typeof e=="number"}$.isNumber=Gu;function Ku(e){return typeof e=="string"}$.isString=Ku;function Yu(e){return typeof e=="symbol"}$.isSymbol=Yu;function Xu(e){return e===void 0}$.isUndefined=Xu;function Ju(e){return Rr(e)==="[object RegExp]"}$.isRegExp=Ju;function Qu(e){return typeof e=="object"&&e!==null}$.isObject=Qu;function eh(e){return Rr(e)==="[object Date]"}$.isDate=eh;function th(e){return Rr(e)==="[object Error]"||e instanceof Error}$.isError=th;function rh(e){return typeof e=="function"}$.isFunction=rh;function ih(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}$.isPrimitive=ih;$.isBuffer=be("buffer").Buffer.isBuffer;function Rr(e){return Object.prototype.toString.call(e)}});var La=_((Y_,Di)=>{typeof Object.create=="function"?Di.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Di.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var ft=_((X_,Ri)=>{try{if(Ii=be("util"),typeof Ii.inherits!="function")throw"";Ri.exports=Ii.inherits}catch{Ri.exports=La()}var Ii});var Ma=_((J_,Fi)=>{"use strict";function nh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var qa=qt().Buffer,Mt=be("util");function ah(e,t,r){e.copy(t,r)}Fi.exports=(function(){function e(){nh(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},e.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},e.prototype.shift=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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},e.prototype.concat=function(r){if(this.length===0)return qa.alloc(0);for(var i=qa.allocUnsafe(r>>>0),n=this.head,a=0;n;)ah(n.data,i,a),a+=n.data.length,n=n.next;return i},e})();Mt&&Mt.inspect&&Mt.inspect.custom&&(Fi.exports.prototype[Mt.inspect.custom]=function(){var e=Mt.inspect({length:this.length});return this.constructor.name+" "+e})});var Ni=_((Q_,ja)=>{"use strict";var Fr=Lt();function sh(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Fr.nextTick(Nr,this,e)):Fr.nextTick(Nr,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,Fr.nextTick(Nr,r,a)):Fr.nextTick(Nr,r,a):t&&t(a)}),this)}function oh(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Nr(e,t){e.emit("error",t)}ja.exports={destroy:sh,undestroy:oh}});var Ha=_((eg,Wa)=>{Wa.exports=be("util").deprecate});var Bi=_((tg,Xa)=>{"use strict";var Ue=Lt();Xa.exports=M;function $a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Eh(t,e)}}var lh=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Ue.nextTick,ut;M.WritableState=Wt;var Za=Object.create(lt());Za.inherits=ft();var fh={deprecate:Ha()},Va=Ai(),Br=qt().Buffer,uh=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function hh(e){return Br.from(e)}function ch(e){return Br.isBuffer(e)||e instanceof uh}var Ga=Ni();Za.inherits(M,Va);function dh(){}function Wt(e,t){ut=ut||$e(),e=e||{};var r=t instanceof ut;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,n=e.writableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,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 s=e.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(o){wh(t,o)},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 $a(this)}Wt.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Wt.prototype,"buffer",{get:fh.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Pr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Pr=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(e){return Pr.call(this,e)?!0:this!==M?!1:e&&e._writableState instanceof Wt}})):Pr=function(e){return e instanceof this};function M(e){if(ut=ut||$e(),!Pr.call(M,this)&&!(this instanceof ut))return new M(e);this._writableState=new Wt(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)),Va.call(this)}M.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function ph(e,t){var r=new Error("write after end");e.emit("error",r),Ue.nextTick(t,r)}function mh(e,t,r,i){var n=!0,a=!1;return r===null?a=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),Ue.nextTick(i,a),n=!1),n}M.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&ch(e);return a&&!Br.isBuffer(e)&&(e=hh(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=dh),i.ended?ph(this,r):(a||mh(this,i,e,r))&&(i.pendingcb++,n=gh(this,i,a,e,t,r)),n};M.prototype.cork=function(){var e=this._writableState;e.corked++};M.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Ka(this,e))};M.prototype.setDefaultEncoding=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};function _h(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Br.from(t,r)),t}Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function gh(e,t,r,i,n,a){if(!r){var s=_h(t,i,n);i!==s&&(r=!0,n="buffer",i=s)}var o=t.objectMode?1:i.length;t.length+=o;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Pi(e,t,!1,o,i,n,a);return u}function Pi(e,t,r,i,n,a,s){t.writelen=i,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function vh(e,t,r,i,n){--t.pendingcb,r?(Ue.nextTick(n,i),Ue.nextTick(jt,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),jt(e,t))}function bh(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function wh(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(bh(r),t)vh(e,r,i,t,n);else{var a=Ya(r);!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Ka(e,r),i?lh(Ua,e,r,a,n):Ua(e,r,a,n)}}function Ua(e,t,r,i){r||yh(e,t),t.pendingcb--,i(),jt(e,t)}function yh(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function Ka(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),a=t.corkedRequestsFree;a.entry=r;for(var s=0,o=!0;r;)n[s]=r,r.isBuf||(o=!1),r=r.next,s+=1;n.allBuffers=o,Pi(e,t,!0,t.length,n,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new $a(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback,h=t.objectMode?1:u.length;if(Pi(e,t,!1,h,u,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}M.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};M.prototype._writev=null;M.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||Sh(this,i,r)};function Ya(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function xh(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),jt(e,t)})}function kh(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Ue.nextTick(xh,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function jt(e,t){var r=Ya(t);return r&&(kh(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function Sh(e,t,r){t.ending=!0,jt(e,t),r&&(t.finished?Ue.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function Eh(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(M.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});M.prototype.destroy=Ga.destroy;M.prototype._undestroy=Ga.undestroy;M.prototype._destroy=function(e,t){this.end(),t(e)}});var $e=_((rg,ts)=>{"use strict";var Ja=Lt(),Ch=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};ts.exports=xe;var Qa=Object.create(lt());Qa.inherits=ft();var es=qi(),Li=Bi();Qa.inherits(xe,es);for(zi=Ch(Li.prototype),zr=0;zr<zi.length;zr++)Lr=zi[zr],xe.prototype[Lr]||(xe.prototype[Lr]=Li.prototype[Lr]);var zi,Lr,zr;function xe(e){if(!(this instanceof xe))return new xe(e);es.call(this,e),Li.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",Oh)}Object.defineProperty(xe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Oh(){this.allowHalfOpen||this._writableState.ended||Ja.nextTick(Ah,this)}function Ah(e){e.end()}Object.defineProperty(xe.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}});xe.prototype._destroy=function(e,t){this.push(null),this.end(),Ja.nextTick(t,e)}});var Wi=_(is=>{"use strict";var ji=qt().Buffer,rs=ji.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 Th(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}}function Dh(e){var t=Th(e);if(typeof t!="string"&&(ji.isEncoding===rs||!rs(e)))throw new Error("Unknown encoding: "+e);return t||e}is.StringDecoder=Ht;function Ht(e){this.encoding=Dh(e);var t;switch(this.encoding){case"utf16le":this.text=Bh,this.end=zh,t=4;break;case"utf8":this.fillLast=Fh,t=4;break;case"base64":this.text=Lh,this.end=qh,t=3;break;default:this.write=Mh,this.end=jh;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ji.allocUnsafe(t)}Ht.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||""};Ht.prototype.end=Ph;Ht.prototype.text=Nh;Ht.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 Mi(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Ih(e,t,r){var i=t.length-1;if(i<r)return 0;var n=Mi(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||n===-2?0:(n=Mi(t[i]),n>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||n===-2?0:(n=Mi(t[i]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function Rh(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"}}function Fh(e){var t=this.lastTotal-this.lastNeed,r=Rh(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}function Nh(e,t){var r=Ih(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)}function Ph(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function Bh(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)}function zh(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}function Lh(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))}function qh(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function Mh(e){return e.toString(this.encoding)}function jh(e){return e&&e.length?this.write(e):""}});var qi=_((ag,ms)=>{"use strict";var ct=Lt();ms.exports=N;var Wh=Na(),Ut;N.ReadableState=us;var ng=be("events").EventEmitter,os=function(e,t){return e.listeners(t).length},Vi=Ai(),$t=qt().Buffer,Hh=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Uh(e){return $t.from(e)}function $h(e){return $t.isBuffer(e)||e instanceof Hh}var ls=Object.create(lt());ls.inherits=ft();var Hi=be("util"),I=void 0;Hi&&Hi.debuglog?I=Hi.debuglog("stream"):I=function(){};var Zh=Ma(),fs=Ni(),ht;ls.inherits(N,Vi);var Ui=["error","close","destroy","pause","resume"];function Vh(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Wh(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function us(e,t){Ut=Ut||$e(),e=e||{};var r=t instanceof Ut;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,n=e.readableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Zh,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&&(ht||(ht=Wi().StringDecoder),this.decoder=new ht(e.encoding),this.encoding=e.encoding)}function N(e){if(Ut=Ut||$e(),!(this instanceof N))return new N(e);this._readableState=new us(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Vi.call(this)}Object.defineProperty(N.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});N.prototype.destroy=fs.destroy;N.prototype._undestroy=fs.undestroy;N.prototype._destroy=function(e,t){this.push(null),t(e)};N.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=$t.from(e,t),t=""),i=!0),hs(this,e,t,!1,i)};N.prototype.unshift=function(e){return hs(this,e,null,!0,!1)};function hs(e,t,r,i,n){var a=e._readableState;if(t===null)a.reading=!1,Xh(e,a);else{var s;n||(s=Gh(a,t)),s?e.emit("error",s):a.objectMode||t&&t.length>0?(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==$t.prototype&&(t=Uh(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):$i(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?$i(e,a,t,!1):cs(e,a)):$i(e,a,t,!1))):i||(a.reading=!1)}return Kh(a)}function $i(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&&qr(e)),cs(e,t)}function Gh(e,t){var r;return!$h(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function Kh(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}N.prototype.isPaused=function(){return this._readableState.flowing===!1};N.prototype.setEncoding=function(e){return ht||(ht=Wi().StringDecoder),this._readableState.decoder=new ht(e),this._readableState.encoding=e,this};var ns=8388608;function Yh(e){return e>=ns?e=ns:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function as(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=Yh(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}N.prototype.read=function(e){I("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 I("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Zi(this):qr(this),null;if(e=as(e,t),e===0&&t.ended)return t.length===0&&Zi(this),null;var i=t.needReadable;I("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,I("length less than watermark",i)),t.ended||t.reading?(i=!1,I("reading or ended",i)):i&&(I("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=as(r,t)));var n;return e>0?n=ds(e,t):n=null,n===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Zi(this)),n!==null&&this.emit("data",n),n};function Xh(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,qr(e)}}function qr(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(I("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?ct.nextTick(ss,e):ss(e))}function ss(e){I("emit readable"),e.emit("readable"),Gi(e)}function cs(e,t){t.readingMore||(t.readingMore=!0,ct.nextTick(Jh,e,t))}function Jh(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(I("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}N.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};N.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,I("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,a=n?o:x;i.endEmitted?ct.nextTick(a):r.once("end",a),e.on("unpipe",s);function s(g,p){I("onunpipe"),g===r&&p&&p.hasUnpiped===!1&&(p.hasUnpiped=!0,l())}function o(){I("onend"),e.end()}var u=Qh(r);e.on("drain",u);var f=!1;function l(){I("cleanup"),e.removeListener("close",b),e.removeListener("finish",w),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",s),r.removeListener("end",o),r.removeListener("end",x),r.removeListener("data",c),f=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}var h=!1;r.on("data",c);function c(g){I("ondata"),h=!1;var p=e.write(g);p===!1&&!h&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&ps(i.pipes,e)!==-1)&&!f&&(I("false write response, pause",i.awaitDrain),i.awaitDrain++,h=!0),r.pause())}function d(g){I("onerror",g),x(),e.removeListener("error",d),os(e,"error")===0&&e.emit("error",g)}Vh(e,"error",d);function b(){e.removeListener("finish",w),x()}e.once("close",b);function w(){I("onfinish"),e.removeListener("close",b),x()}e.once("finish",w);function x(){I("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(I("pipe resume"),r.resume()),e};function Qh(e){return function(){var t=e._readableState;I("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&os(e,"data")&&(t.flowing=!0,Gi(e))}}N.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,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var s=ps(t.pipes,e);return s===-1?this:(t.pipes.splice(s,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};N.prototype.on=function(e,t){var r=Vi.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&&qr(this):ct.nextTick(ec,this))}return r};N.prototype.addListener=N.prototype.on;function ec(e){I("readable nexttick read 0"),e.read(0)}N.prototype.resume=function(){var e=this._readableState;return e.flowing||(I("resume"),e.flowing=!0,tc(this,e)),this};function tc(e,t){t.resumeScheduled||(t.resumeScheduled=!0,ct.nextTick(rc,e,t))}function rc(e,t){t.reading||(I("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Gi(e),t.flowing&&!t.reading&&e.read(0)}N.prototype.pause=function(){return I("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(I("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Gi(e){var t=e._readableState;for(I("flow",t.flowing);t.flowing&&e.read()!==null;);}N.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(I("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&t.push(s)}t.push(null)}),e.on("data",function(s){if(I("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var o=t.push(s);o||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(s){return function(){return e[s].apply(e,arguments)}})(n));for(var a=0;a<Ui.length;a++)e.on(Ui[a],this.emit.bind(this,Ui[a]));return this._read=function(s){I("wrapped _read",s),i&&(i=!1,e.resume())},this};Object.defineProperty(N.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});N._fromList=ds;function ds(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=ic(e,t.buffer,t.decoder),r}function ic(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?nc(e,t):ac(e,t),i}function nc(e,t){var r=t.head,i=1,n=r.data;for(e-=n.length;r=r.next;){var a=r.data,s=e>a.length?a.length:e;if(s===a.length?n+=a:n+=a.slice(0,e),e-=s,e===0){s===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(s));break}++i}return t.length-=i,n}function ac(e,t){var r=$t.allocUnsafe(e),i=t.head,n=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var a=i.data,s=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,s),e-=s,e===0){s===a.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=a.slice(s));break}++n}return t.length-=n,r}function Zi(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,ct.nextTick(sc,t,e))}function sc(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function ps(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var Ki=_((sg,vs)=>{"use strict";vs.exports=ke;var Mr=$e(),gs=Object.create(lt());gs.inherits=ft();gs.inherits(ke,Mr);function oc(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 n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function ke(e){if(!(this instanceof ke))return new ke(e);Mr.call(this,e),this._transformState={afterTransform:oc.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",lc)}function lc(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){_s(e,t,r)}):_s(this,null,null)}ke.prototype.push=function(e,t){return this._transformState.needTransform=!1,Mr.prototype.push.call(this,e,t)};ke.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};ke.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};ke.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};ke.prototype._destroy=function(e,t){var r=this;Mr.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function _s(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)}});var xs=_((og,ys)=>{"use strict";ys.exports=Zt;var bs=Ki(),ws=Object.create(lt());ws.inherits=ft();ws.inherits(Zt,bs);function Zt(e){if(!(this instanceof Zt))return new Zt(e);bs.call(this,e)}Zt.prototype._transform=function(e,t,r){r(null,e)}});var Yi=_((H,jr)=>{var ce=be("stream");process.env.READABLE_STREAM==="disable"&&ce?(jr.exports=ce,H=jr.exports=ce.Readable,H.Readable=ce.Readable,H.Writable=ce.Writable,H.Duplex=ce.Duplex,H.Transform=ce.Transform,H.PassThrough=ce.PassThrough,H.Stream=ce):(H=jr.exports=qi(),H.Stream=ce||H,H.Readable=H,H.Writable=Bi(),H.Duplex=$e(),H.Transform=Ki(),H.PassThrough=xs())});var Se=_(Q=>{"use strict";Q.base64=!0;Q.array=!0;Q.string=!0;Q.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";Q.nodebuffer=typeof Buffer<"u";Q.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")Q.blob=!1;else{Xi=new ArrayBuffer(0);try{Q.blob=new Blob([Xi],{type:"application/zip"}).size===0}catch{try{ks=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,Ji=new ks,Ji.append(Xi),Q.blob=Ji.getBlob("application/zip").size===0}catch{Q.blob=!1}}}var Xi,ks,Ji;try{Q.nodestream=!!Yi().Readable}catch{Q.nodestream=!1}});var en=_(Qi=>{"use strict";var fc=B(),uc=Se(),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";Qi.encode=function(e){for(var t=[],r,i,n,a,s,o,u,f=0,l=e.length,h=l,c=fc.getTypeOf(e)!=="string";f<e.length;)h=l-f,c?(r=e[f++],i=f<l?e[f++]:0,n=f<l?e[f++]:0):(r=e.charCodeAt(f++),i=f<l?e.charCodeAt(f++):0,n=f<l?e.charCodeAt(f++):0),a=r>>2,s=(r&3)<<4|i>>4,o=h>1?(i&15)<<2|n>>6:64,u=h>2?n&63:64,t.push(de.charAt(a)+de.charAt(s)+de.charAt(o)+de.charAt(u));return t.join("")};Qi.decode=function(e){var t,r,i,n,a,s,o,u=0,f=0,l="data:";if(e.substr(0,l.length)===l)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var h=e.length*3/4;if(e.charAt(e.length-1)===de.charAt(64)&&h--,e.charAt(e.length-2)===de.charAt(64)&&h--,h%1!==0)throw new Error("Invalid base64 input, bad content length.");var c;for(uc.uint8array?c=new Uint8Array(h|0):c=new Array(h|0);u<e.length;)n=de.indexOf(e.charAt(u++)),a=de.indexOf(e.charAt(u++)),s=de.indexOf(e.charAt(u++)),o=de.indexOf(e.charAt(u++)),t=n<<2|a>>4,r=(a&15)<<4|s>>2,i=(s&3)<<6|o,c[f++]=t,s!==64&&(c[f++]=r),o!==64&&(c[f++]=i);return c}});var Vt=_((ug,Ss)=>{"use strict";Ss.exports={isNode:typeof Buffer<"u",newBufferFrom: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)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&typeof e.on=="function"&&typeof e.pause=="function"&&typeof e.resume=="function"}}});var As=_((hg,Os)=>{"use strict";var Es=global.MutationObserver||global.WebKitMutationObserver,dt;process.browser?Es?(tn=0,Cs=new Es(Gt),rn=global.document.createTextNode(""),Cs.observe(rn,{characterData:!0}),dt=function(){rn.data=tn=++tn%2}):!global.setImmediate&&typeof global.MessageChannel<"u"?(nn=new global.MessageChannel,nn.port1.onmessage=Gt,dt=function(){nn.port2.postMessage(0)}):"document"in global&&"onreadystatechange"in global.document.createElement("script")?dt=function(){var e=global.document.createElement("script");e.onreadystatechange=function(){Gt(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},global.document.documentElement.appendChild(e)}:dt=function(){setTimeout(Gt,0)}:dt=function(){process.nextTick(Gt)};var tn,Cs,rn,nn,an,Kt=[];function Gt(){an=!0;for(var e,t,r=Kt.length;r;){for(t=Kt,Kt=[],e=-1;++e<r;)t[e]();r=Kt.length}an=!1}Os.exports=hc;function hc(e){Kt.push(e)===1&&!an&&dt()}});var Ps=_((cg,Ns)=>{"use strict";var Ts=As();function pt(){}var Z={},Ds=["REJECTED"],sn=["FULFILLED"],Is=["PENDING"];process.browser||(Yt=["UNHANDLED"]);var Yt;Ns.exports=Re;function Re(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=Is,this.queue=[],this.outcome=void 0,process.browser||(this.handled=Yt),e!==pt&&Rs(this,e)}Re.prototype.finally=function(e){if(typeof e!="function")return this;var t=this.constructor;return this.then(r,i);function r(n){function a(){return n}return t.resolve(e()).then(a)}function i(n){function a(){throw n}return t.resolve(e()).then(a)}};Re.prototype.catch=function(e){return this.then(null,e)};Re.prototype.then=function(e,t){if(typeof e!="function"&&this.state===sn||typeof t!="function"&&this.state===Ds)return this;var r=new this.constructor(pt);if(process.browser||this.handled===Yt&&(this.handled=null),this.state!==Is){var i=this.state===sn?e:t;on(r,i,this.outcome)}else this.queue.push(new Xt(r,e,t));return r};function Xt(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)}Xt.prototype.callFulfilled=function(e){Z.resolve(this.promise,e)};Xt.prototype.otherCallFulfilled=function(e){on(this.promise,this.onFulfilled,e)};Xt.prototype.callRejected=function(e){Z.reject(this.promise,e)};Xt.prototype.otherCallRejected=function(e){on(this.promise,this.onRejected,e)};function on(e,t,r){Ts(function(){var i;try{i=t(r)}catch(n){return Z.reject(e,n)}i===e?Z.reject(e,new TypeError("Cannot resolve promise with itself")):Z.resolve(e,i)})}Z.resolve=function(e,t){var r=Fs(cc,t);if(r.status==="error")return Z.reject(e,r.value);var i=r.value;if(i)Rs(e,i);else{e.state=sn,e.outcome=t;for(var n=-1,a=e.queue.length;++n<a;)e.queue[n].callFulfilled(t)}return e};Z.reject=function(e,t){e.state=Ds,e.outcome=t,process.browser||e.handled===Yt&&Ts(function(){e.handled===Yt&&process.emit("unhandledRejection",t,e)});for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e};function cc(e){var t=e&&e.then;if(e&&(typeof e=="object"||typeof e=="function")&&typeof t=="function")return function(){t.apply(e,arguments)}}function Rs(e,t){var r=!1;function i(o){r||(r=!0,Z.reject(e,o))}function n(o){r||(r=!0,Z.resolve(e,o))}function a(){t(n,i)}var s=Fs(a);s.status==="error"&&i(s.value)}function Fs(e,t){var r={};try{r.value=e(t),r.status="success"}catch(i){r.status="error",r.value=i}return r}Re.resolve=dc;function dc(e){return e instanceof this?e:Z.resolve(new this(pt),e)}Re.reject=pc;function pc(e){var t=new this(pt);return Z.reject(t,e)}Re.all=mc;function mc(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 n=new Array(r),a=0,s=-1,o=new this(pt);++s<r;)u(e[s],s);return o;function u(f,l){t.resolve(f).then(h,function(c){i||(i=!0,Z.reject(o,c))});function h(c){n[l]=c,++a===r&&!i&&(i=!0,Z.resolve(o,n))}}}Re.race=_c;function _c(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 n=-1,a=new this(pt);++n<r;)s(e[n]);return a;function s(o){t.resolve(o).then(function(u){i||(i=!0,Z.resolve(a,u))},function(u){i||(i=!0,Z.reject(a,u))})}}});var mt=_((dg,Bs)=>{"use strict";var ln=null;typeof Promise<"u"?ln=Promise:ln=Ps();Bs.exports={Promise:ln}});var Ls=_(zs=>{(function(e,t){"use strict";if(e.setImmediate)return;var r=1,i={},n=!1,a=e.document,s;function o(p){typeof p!="function"&&(p=new Function(""+p));for(var y=new Array(arguments.length-1),m=0;m<y.length;m++)y[m]=arguments[m+1];var v={callback:p,args:y};return i[r]=v,s(r),r++}function u(p){delete i[p]}function f(p){var y=p.callback,m=p.args;switch(m.length){case 0:y();break;case 1:y(m[0]);break;case 2:y(m[0],m[1]);break;case 3:y(m[0],m[1],m[2]);break;default:y.apply(t,m);break}}function l(p){if(n)setTimeout(l,0,p);else{var y=i[p];if(y){n=!0;try{f(y)}finally{u(p),n=!1}}}}function h(){s=function(p){process.nextTick(function(){l(p)})}}function c(){if(e.postMessage&&!e.importScripts){var p=!0,y=e.onmessage;return e.onmessage=function(){p=!1},e.postMessage("","*"),e.onmessage=y,p}}function d(){var p="setImmediate$"+Math.random()+"$",y=function(m){m.source===e&&typeof m.data=="string"&&m.data.indexOf(p)===0&&l(+m.data.slice(p.length))};e.addEventListener?e.addEventListener("message",y,!1):e.attachEvent("onmessage",y),s=function(m){e.postMessage(p+m,"*")}}function b(){var p=new MessageChannel;p.port1.onmessage=function(y){var m=y.data;l(m)},s=function(y){p.port2.postMessage(y)}}function w(){var p=a.documentElement;s=function(y){var m=a.createElement("script");m.onreadystatechange=function(){l(y),m.onreadystatechange=null,p.removeChild(m),m=null},p.appendChild(m)}}function x(){s=function(p){setTimeout(l,0,p)}}var g=Object.getPrototypeOf&&Object.getPrototypeOf(e);g=g&&g.setTimeout?g:e,{}.toString.call(e.process)==="[object process]"?h():c()?d():e.MessageChannel?b():a&&"onreadystatechange"in a.createElement("script")?w():x(),g.setImmediate=o,g.clearImmediate=u})(typeof self>"u"?typeof global>"u"?zs:global:self)});var B=_(j=>{"use strict";var Fe=Se(),gc=en(),_t=Vt(),fn=mt();Ls();function vc(e){var t=null;return Fe.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),Hr(e,t)}j.newBlob=function(e,t){j.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 Jt(e){return e}function Hr(e,t){for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)&255;return t}var Wr={stringifyByChunk:function(e,t,r){var i=[],n=0,a=e.length;if(a<=r)return String.fromCharCode.apply(null,e);for(;n<a;)t==="array"||t==="nodebuffer"?i.push(String.fromCharCode.apply(null,e.slice(n,Math.min(n+r,a)))):i.push(String.fromCharCode.apply(null,e.subarray(n,Math.min(n+r,a)))),n+=r;return i.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:(function(){try{return Fe.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return Fe.nodebuffer&&String.fromCharCode.apply(null,_t.allocBuffer(1)).length===1}catch{return!1}})()}};function Qt(e){var t=65536,r=j.getTypeOf(e),i=!0;if(r==="uint8array"?i=Wr.applyCanBeUsed.uint8array:r==="nodebuffer"&&(i=Wr.applyCanBeUsed.nodebuffer),i)for(;t>1;)try{return Wr.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return Wr.stringifyByChar(e)}j.applyFromCharCode=Qt;function Ur(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}var Ne={};Ne.string={string:Jt,array:function(e){return Hr(e,new Array(e.length))},arraybuffer:function(e){return Ne.string.uint8array(e).buffer},uint8array:function(e){return Hr(e,new Uint8Array(e.length))},nodebuffer:function(e){return Hr(e,_t.allocBuffer(e.length))}};Ne.array={string:Qt,array:Jt,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return _t.newBufferFrom(e)}};Ne.arraybuffer={string:function(e){return Qt(new Uint8Array(e))},array:function(e){return Ur(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:Jt,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return _t.newBufferFrom(new Uint8Array(e))}};Ne.uint8array={string:Qt,array:function(e){return Ur(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:Jt,nodebuffer:function(e){return _t.newBufferFrom(e)}};Ne.nodebuffer={string:Qt,array:function(e){return Ur(e,new Array(e.length))},arraybuffer:function(e){return Ne.nodebuffer.uint8array(e).buffer},uint8array:function(e){return Ur(e,new Uint8Array(e.length))},nodebuffer:Jt};j.transformTo=function(e,t){if(t||(t=""),!e)return t;j.checkSupport(e);var r=j.getTypeOf(t),i=Ne[r][e](t);return i};j.resolve=function(e){for(var t=e.split("/"),r=[],i=0;i<t.length;i++){var n=t[i];n==="."||n===""&&i!==0&&i!==t.length-1||(n===".."?r.pop():r.push(n))}return r.join("/")};j.getTypeOf=function(e){if(typeof e=="string")return"string";if(Object.prototype.toString.call(e)==="[object Array]")return"array";if(Fe.nodebuffer&&_t.isBuffer(e))return"nodebuffer";if(Fe.uint8array&&e instanceof Uint8Array)return"uint8array";if(Fe.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer"};j.checkSupport=function(e){var t=Fe[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this platform")};j.MAX_VALUE_16BITS=65535;j.MAX_VALUE_32BITS=-1;j.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};j.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})};j.inherits=function(e,t){var r=function(){};r.prototype=t.prototype,e.prototype=new r};j.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};j.prepareContent=function(e,t,r,i,n){var a=fn.Promise.resolve(t).then(function(s){var o=Fe.blob&&(s instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(s))!==-1);return o&&typeof FileReader<"u"?new fn.Promise(function(u,f){var l=new FileReader;l.onload=function(h){u(h.target.result)},l.onerror=function(h){f(h.target.error)},l.readAsArrayBuffer(s)}):s});return a.then(function(s){var o=j.getTypeOf(s);return o?(o==="arraybuffer"?s=j.transformTo("uint8array",s):o==="string"&&(n?s=gc.decode(s):r&&i!==!0&&(s=vc(s))),s):fn.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}});var ee=_((_g,Ms)=>{"use strict";function qs(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}qs.prototype={push:function(e){this.emit("data",e)},end: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},error: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)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious: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},pause:function(){return this.isPaused||this.isFinished?!1:(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume: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},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}};Ms.exports=qs});var vt=_(Pe=>{"use strict";var gt=B(),Ze=Se(),bc=Vt(),$r=ee(),er=new Array(256);for(Ee=0;Ee<256;Ee++)er[Ee]=Ee>=252?6:Ee>=248?5:Ee>=240?4:Ee>=224?3:Ee>=192?2:1;var Ee;er[254]=er[254]=1;var wc=function(e){var t,r,i,n,a,s=e.length,o=0;for(n=0;n<s;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<s&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),o+=r<128?1:r<2048?2:r<65536?3:4;for(Ze.uint8array?t=new Uint8Array(o):t=new Array(o),a=0,n=0;a<o;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<s&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|r&63):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|r&63):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|r&63);return t},yc=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+er[e[r]]>t?r:t},xc=function(e){var t,r,i,n,a=e.length,s=new Array(a*2);for(r=0,t=0;t<a;){if(i=e[t++],i<128){s[r++]=i;continue}if(n=er[i],n>4){s[r++]=65533,t+=n-1;continue}for(i&=n===2?31:n===3?15:7;n>1&&t<a;)i=i<<6|e[t++]&63,n--;if(n>1){s[r++]=65533;continue}i<65536?s[r++]=i:(i-=65536,s[r++]=55296|i>>10&1023,s[r++]=56320|i&1023)}return s.length!==r&&(s.subarray?s=s.subarray(0,r):s.length=r),gt.applyFromCharCode(s)};Pe.utf8encode=function(t){return Ze.nodebuffer?bc.newBufferFrom(t,"utf-8"):wc(t)};Pe.utf8decode=function(t){return Ze.nodebuffer?gt.transformTo("nodebuffer",t).toString("utf-8"):(t=gt.transformTo(Ze.uint8array?"uint8array":"array",t),xc(t))};function Zr(){$r.call(this,"utf-8 decode"),this.leftOver=null}gt.inherits(Zr,$r);Zr.prototype.processChunk=function(e){var t=gt.transformTo(Ze.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(Ze.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=yc(t),n=t;i!==t.length&&(Ze.uint8array?(n=t.subarray(0,i),this.leftOver=t.subarray(i,t.length)):(n=t.slice(0,i),this.leftOver=t.slice(i,t.length))),this.push({data:Pe.utf8decode(n),meta:e.meta})};Zr.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:Pe.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};Pe.Utf8DecodeWorker=Zr;function un(){$r.call(this,"utf-8 encode")}gt.inherits(un,$r);un.prototype.processChunk=function(e){this.push({data:Pe.utf8encode(e.data),meta:e.meta})};Pe.Utf8EncodeWorker=un});var Us=_((vg,Hs)=>{"use strict";var js=ee(),Ws=B();function hn(e){js.call(this,"ConvertWorker to "+e),this.destType=e}Ws.inherits(hn,js);hn.prototype.processChunk=function(e){this.push({data:Ws.transformTo(this.destType,e.data),meta:e.meta})};Hs.exports=hn});var Vs=_((bg,Zs)=>{"use strict";var $s=Yi().Readable,kc=B();kc.inherits(cn,$s);function cn(e,t,r){$s.call(this,t),this._helper=e;var i=this;e.on("data",function(n,a){i.push(n)||i._helper.pause(),r&&r(a)}).on("error",function(n){i.emit("error",n)}).on("end",function(){i.push(null)})}cn.prototype._read=function(){this._helper.resume()};Zs.exports=cn});var dn=_((wg,Ys)=>{"use strict";var Ve=B(),Sc=Us(),Ec=ee(),Cc=en(),Oc=Se(),Ac=mt(),Gs=null;if(Oc.nodestream)try{Gs=Vs()}catch{}function Tc(e,t,r){switch(e){case"blob":return Ve.newBlob(Ve.transformTo("arraybuffer",t),r);case"base64":return Cc.encode(t);default:return Ve.transformTo(e,t)}}function Dc(e,t){var r,i=0,n=null,a=0;for(r=0;r<t.length;r++)a+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(n=new Uint8Array(a),r=0;r<t.length;r++)n.set(t[r],i),i+=t[r].length;return n;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}function Ic(e,t){return new Ac.Promise(function(r,i){var n=[],a=e._internalType,s=e._outputType,o=e._mimeType;e.on("data",function(u,f){n.push(u),t&&t(f)}).on("error",function(u){n=[],i(u)}).on("end",function(){try{var u=Tc(s,Dc(a,n),o);r(u)}catch(f){i(f)}n=[]}).resume()})}function Ks(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,Ve.checkSupport(i),this._worker=e.pipe(new Sc(i)),e.lock()}catch(n){this._worker=new Ec("error"),this._worker.error(n)}}Ks.prototype={accumulate:function(e){return Ic(this,e)},on: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(){Ve.delay(t,arguments,r)}),this},resume:function(){return Ve.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(Ve.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new Gs(this,{objectMode:this._outputType!=="nodebuffer"},e)}};Ys.exports=Ks});var pn=_(oe=>{"use strict";oe.base64=!1;oe.binary=!1;oe.dir=!1;oe.createFolders=!0;oe.date=null;oe.compression=null;oe.compressionOptions=null;oe.comment=null;oe.unixPermissions=null;oe.dosPermissions=null});var mn=_((xg,Xs)=>{"use strict";var Vr=B(),Gr=ee(),Rc=16*1024;function bt(e){Gr.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=Vr.getTypeOf(r),t.isPaused||t._tickAndRepeat()},function(r){t.error(r)})}Vr.inherits(bt,Gr);bt.prototype.cleanUp=function(){Gr.prototype.cleanUp.call(this),this.data=null};bt.prototype.resume=function(){return Gr.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Vr.delay(this._tickAndRepeat,[],this)),!0):!1};bt.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(Vr.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};bt.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=Rc,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}})};Xs.exports=bt});var Kr=_((kg,Qs)=>{"use strict";var Fc=B();function Nc(){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}var Js=Nc();function Pc(e,t,r,i){var n=Js,a=i+r;e=e^-1;for(var s=i;s<a;s++)e=e>>>8^n[(e^t[s])&255];return e^-1}function Bc(e,t,r,i){var n=Js,a=i+r;e=e^-1;for(var s=i;s<a;s++)e=e>>>8^n[(e^t.charCodeAt(s))&255];return e^-1}Qs.exports=function(t,r){if(typeof t>"u"||!t.length)return 0;var i=Fc.getTypeOf(t)!=="string";return i?Pc(r|0,t,t.length,0):Bc(r|0,t,t.length,0)}});var gn=_((Sg,to)=>{"use strict";var eo=ee(),zc=Kr(),Lc=B();function _n(){eo.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Lc.inherits(_n,eo);_n.prototype.processChunk=function(e){this.streamInfo.crc32=zc(e.data,this.streamInfo.crc32||0),this.push(e)};to.exports=_n});var io=_((Eg,ro)=>{"use strict";var qc=B(),vn=ee();function bn(e){vn.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}qc.inherits(bn,vn);bn.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}vn.prototype.processChunk.call(this,e)};ro.exports=bn});var Yr=_((Cg,so)=>{"use strict";var no=mt(),ao=mn(),Mc=gn(),wn=io();function yn(e,t,r,i,n){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=n}yn.prototype={getContentWorker:function(){var e=new ao(no.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new wn("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},getCompressedWorker:function(){return new ao(no.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};yn.createWorkerFrom=function(e,t,r){return e.pipe(new Mc).pipe(new wn("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new wn("compressedSize")).withStreamInfo("compression",t)};so.exports=yn});var uo=_((Og,fo)=>{"use strict";var jc=dn(),Wc=mn(),xn=vt(),kn=Yr(),oo=ee(),Sn=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}};Sn.prototype={internalStream: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 n=!this._dataBinary;n&&!i&&(t=t.pipe(new xn.Utf8EncodeWorker)),!n&&i&&(t=t.pipe(new xn.Utf8DecodeWorker))}catch(a){t=new oo("error"),t.error(a)}return new jc(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof kn&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new xn.Utf8EncodeWorker)),kn.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof kn?this._data.getContentWorker():this._data instanceof oo?this._data:new Wc(this._data)}};var lo=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Hc=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(Xr=0;Xr<lo.length;Xr++)Sn.prototype[lo[Xr]]=Hc;var Xr;fo.exports=Sn});var Ce=_(V=>{"use strict";var Uc=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function $c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}V.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)$c(r,i)&&(e[i]=r[i])}}return e};V.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var Zc={arraySet:function(e,t,r,i,n){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+i),n);return}for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){var t,r,i,n,a,s;for(i=0,t=0,r=e.length;t<r;t++)i+=e[t].length;for(s=new Uint8Array(i),n=0,t=0,r=e.length;t<r;t++)a=e[t],s.set(a,n),n+=a.length;return s}},Vc={arraySet:function(e,t,r,i,n){for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};V.setTyped=function(e){e?(V.Buf8=Uint8Array,V.Buf16=Uint16Array,V.Buf32=Int32Array,V.assign(V,Zc)):(V.Buf8=Array,V.Buf16=Array,V.Buf32=Array,V.assign(V,Vc))};V.setTyped(Uc)});var No=_(xt=>{"use strict";var Gc=Ce(),Kc=4,ho=0,co=1,Yc=2;function yt(e){for(var t=e.length;--t>=0;)e[t]=0}var Xc=0,bo=1,Jc=2,Qc=3,ed=258,In=29,sr=256,rr=sr+1+In,wt=30,Rn=19,wo=2*rr+1,Ge=15,En=16,td=7,Fn=256,yo=16,xo=17,ko=18,Tn=[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],Jr=[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],rd=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],So=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],id=512,Oe=new Array((rr+2)*2);yt(Oe);var tr=new Array(wt*2);yt(tr);var ir=new Array(id);yt(ir);var nr=new Array(ed-Qc+1);yt(nr);var Nn=new Array(In);yt(Nn);var Qr=new Array(wt);yt(Qr);function Cn(e,t,r,i,n){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=n,this.has_stree=e&&e.length}var Eo,Co,Oo;function On(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Ao(e){return e<256?ir[e]:ir[256+(e>>>7)]}function ar(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function X(e,t,r){e.bi_valid>En-r?(e.bi_buf|=t<<e.bi_valid&65535,ar(e,e.bi_buf),e.bi_buf=t>>En-e.bi_valid,e.bi_valid+=r-En):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function pe(e,t,r){X(e,r[t*2],r[t*2+1])}function To(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function nd(e){e.bi_valid===16?(ar(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)}function ad(e,t){var r=t.dyn_tree,i=t.max_code,n=t.stat_desc.static_tree,a=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,u=t.stat_desc.max_length,f,l,h,c,d,b,w=0;for(c=0;c<=Ge;c++)e.bl_count[c]=0;for(r[e.heap[e.heap_max]*2+1]=0,f=e.heap_max+1;f<wo;f++)l=e.heap[f],c=r[r[l*2+1]*2+1]+1,c>u&&(c=u,w++),r[l*2+1]=c,!(l>i)&&(e.bl_count[c]++,d=0,l>=o&&(d=s[l-o]),b=r[l*2],e.opt_len+=b*(c+d),a&&(e.static_len+=b*(n[l*2+1]+d)));if(w!==0){do{for(c=u-1;e.bl_count[c]===0;)c--;e.bl_count[c]--,e.bl_count[c+1]+=2,e.bl_count[u]--,w-=2}while(w>0);for(c=u;c!==0;c--)for(l=e.bl_count[c];l!==0;)h=e.heap[--f],!(h>i)&&(r[h*2+1]!==c&&(e.opt_len+=(c-r[h*2+1])*r[h*2],r[h*2+1]=c),l--)}}function Do(e,t,r){var i=new Array(Ge+1),n=0,a,s;for(a=1;a<=Ge;a++)i[a]=n=n+r[a-1]<<1;for(s=0;s<=t;s++){var o=e[s*2+1];o!==0&&(e[s*2]=To(i[o]++,o))}}function sd(){var e,t,r,i,n,a=new Array(Ge+1);for(r=0,i=0;i<In-1;i++)for(Nn[i]=r,e=0;e<1<<Tn[i];e++)nr[r++]=i;for(nr[r-1]=i,n=0,i=0;i<16;i++)for(Qr[i]=n,e=0;e<1<<Jr[i];e++)ir[n++]=i;for(n>>=7;i<wt;i++)for(Qr[i]=n<<7,e=0;e<1<<Jr[i]-7;e++)ir[256+n++]=i;for(t=0;t<=Ge;t++)a[t]=0;for(e=0;e<=143;)Oe[e*2+1]=8,e++,a[8]++;for(;e<=255;)Oe[e*2+1]=9,e++,a[9]++;for(;e<=279;)Oe[e*2+1]=7,e++,a[7]++;for(;e<=287;)Oe[e*2+1]=8,e++,a[8]++;for(Do(Oe,rr+1,a),e=0;e<wt;e++)tr[e*2+1]=5,tr[e*2]=To(e,5);Eo=new Cn(Oe,Tn,sr+1,rr,Ge),Co=new Cn(tr,Jr,0,wt,Ge),Oo=new Cn(new Array(0),rd,0,Rn,td)}function Io(e){var t;for(t=0;t<rr;t++)e.dyn_ltree[t*2]=0;for(t=0;t<wt;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Rn;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Fn*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Ro(e){e.bi_valid>8?ar(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function od(e,t,r,i){Ro(e),i&&(ar(e,r),ar(e,~r)),Gc.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function po(e,t,r,i){var n=t*2,a=r*2;return e[n]<e[a]||e[n]===e[a]&&i[t]<=i[r]}function An(e,t,r){for(var i=e.heap[r],n=r<<1;n<=e.heap_len&&(n<e.heap_len&&po(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!po(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i}function mo(e,t,r){var i,n,a=0,s,o;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],n=e.pending_buf[e.l_buf+a],a++,i===0?pe(e,n,t):(s=nr[n],pe(e,s+sr+1,t),o=Tn[s],o!==0&&(n-=Nn[s],X(e,n,o)),i--,s=Ao(i),pe(e,s,r),o=Jr[s],o!==0&&(i-=Qr[s],X(e,i,o)));while(a<e.last_lit);pe(e,Fn,t)}function Dn(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,n=t.stat_desc.has_stree,a=t.stat_desc.elems,s,o,u=-1,f;for(e.heap_len=0,e.heap_max=wo,s=0;s<a;s++)r[s*2]!==0?(e.heap[++e.heap_len]=u=s,e.depth[s]=0):r[s*2+1]=0;for(;e.heap_len<2;)f=e.heap[++e.heap_len]=u<2?++u:0,r[f*2]=1,e.depth[f]=0,e.opt_len--,n&&(e.static_len-=i[f*2+1]);for(t.max_code=u,s=e.heap_len>>1;s>=1;s--)An(e,r,s);f=a;do s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],An(e,r,1),o=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=o,r[f*2]=r[s*2]+r[o*2],e.depth[f]=(e.depth[s]>=e.depth[o]?e.depth[s]:e.depth[o])+1,r[s*2+1]=r[o*2+1]=f,e.heap[1]=f++,An(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],ad(e,t),Do(r,u,e.bl_count)}function _o(e,t,r){var i,n=-1,a,s=t[1],o=0,u=7,f=4;for(s===0&&(u=138,f=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)a=s,s=t[(i+1)*2+1],!(++o<u&&a===s)&&(o<f?e.bl_tree[a*2]+=o:a!==0?(a!==n&&e.bl_tree[a*2]++,e.bl_tree[yo*2]++):o<=10?e.bl_tree[xo*2]++:e.bl_tree[ko*2]++,o=0,n=a,s===0?(u=138,f=3):a===s?(u=6,f=3):(u=7,f=4))}function go(e,t,r){var i,n=-1,a,s=t[1],o=0,u=7,f=4;for(s===0&&(u=138,f=3),i=0;i<=r;i++)if(a=s,s=t[(i+1)*2+1],!(++o<u&&a===s)){if(o<f)do pe(e,a,e.bl_tree);while(--o!==0);else a!==0?(a!==n&&(pe(e,a,e.bl_tree),o--),pe(e,yo,e.bl_tree),X(e,o-3,2)):o<=10?(pe(e,xo,e.bl_tree),X(e,o-3,3)):(pe(e,ko,e.bl_tree),X(e,o-11,7));o=0,n=a,s===0?(u=138,f=3):a===s?(u=6,f=3):(u=7,f=4)}}function ld(e){var t;for(_o(e,e.dyn_ltree,e.l_desc.max_code),_o(e,e.dyn_dtree,e.d_desc.max_code),Dn(e,e.bl_desc),t=Rn-1;t>=3&&e.bl_tree[So[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function fd(e,t,r,i){var n;for(X(e,t-257,5),X(e,r-1,5),X(e,i-4,4),n=0;n<i;n++)X(e,e.bl_tree[So[n]*2+1],3);go(e,e.dyn_ltree,t-1),go(e,e.dyn_dtree,r-1)}function ud(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return ho;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return co;for(r=32;r<sr;r++)if(e.dyn_ltree[r*2]!==0)return co;return ho}var vo=!1;function hd(e){vo||(sd(),vo=!0),e.l_desc=new On(e.dyn_ltree,Eo),e.d_desc=new On(e.dyn_dtree,Co),e.bl_desc=new On(e.bl_tree,Oo),e.bi_buf=0,e.bi_valid=0,Io(e)}function Fo(e,t,r,i){X(e,(Xc<<1)+(i?1:0),3),od(e,t,r,!0)}function cd(e){X(e,bo<<1,3),pe(e,Fn,Oe),nd(e)}function dd(e,t,r,i){var n,a,s=0;e.level>0?(e.strm.data_type===Yc&&(e.strm.data_type=ud(e)),Dn(e,e.l_desc),Dn(e,e.d_desc),s=ld(e),n=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=n&&(n=a)):n=a=r+5,r+4<=n&&t!==-1?Fo(e,t,r,i):e.strategy===Kc||a===n?(X(e,(bo<<1)+(i?1:0),3),mo(e,Oe,tr)):(X(e,(Jc<<1)+(i?1:0),3),fd(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),mo(e,e.dyn_ltree,e.dyn_dtree)),Io(e),i&&Ro(e)}function pd(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[(nr[r]+sr+1)*2]++,e.dyn_dtree[Ao(t)*2]++),e.last_lit===e.lit_bufsize-1}xt._tr_init=hd;xt._tr_stored_block=Fo;xt._tr_flush_block=dd;xt._tr_tally=pd;xt._tr_align=cd});var Pn=_((Dg,Po)=>{"use strict";function md(e,t,r,i){for(var n=e&65535|0,a=e>>>16&65535|0,s=0;r!==0;){s=r>2e3?2e3:r,r-=s;do n=n+t[i++]|0,a=a+n|0;while(--s);n%=65521,a%=65521}return n|a<<16|0}Po.exports=md});var Bn=_((Ig,Bo)=>{"use strict";function _d(){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}var gd=_d();function vd(e,t,r,i){var n=gd,a=i+r;e^=-1;for(var s=i;s<a;s++)e=e>>>8^n[(e^t[s])&255];return e^-1}Bo.exports=vd});var ei=_((Rg,zo)=>{"use strict";zo.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 Zo=_(ge=>{"use strict";var G=Ce(),re=No(),jo=Pn(),Be=Bn(),bd=ei(),Je=0,wd=1,yd=3,je=4,Lo=5,_e=0,qo=1,ie=-2,xd=-3,zn=-5,kd=-1,Sd=1,ti=2,Ed=3,Cd=4,Od=0,Ad=2,ai=8,Td=9,Dd=15,Id=8,Rd=29,Fd=256,qn=Fd+1+Rd,Nd=30,Pd=19,Bd=2*qn+1,zd=15,A=3,qe=258,le=qe+A+1,Ld=32,si=42,Mn=69,ri=73,ii=91,ni=103,Ke=113,lr=666,W=1,fr=2,Ye=3,Et=4,qd=3;function Me(e,t){return e.msg=bd[t],t}function Mo(e){return(e<<1)-(e>4?9:0)}function Le(e){for(var t=e.length;--t>=0;)e[t]=0}function ze(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(G.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))}function U(e,t){re._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ze(e.strm)}function T(e,t){e.pending_buf[e.pending++]=t}function or(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function Md(e,t,r,i){var n=e.avail_in;return n>i&&(n=i),n===0?0:(e.avail_in-=n,G.arraySet(t,e.input,e.next_in,n,r),e.state.wrap===1?e.adler=jo(e.adler,t,n,r):e.state.wrap===2&&(e.adler=Be(e.adler,t,n,r)),e.next_in+=n,e.total_in+=n,n)}function Wo(e,t){var r=e.max_chain_length,i=e.strstart,n,a,s=e.prev_length,o=e.nice_match,u=e.strstart>e.w_size-le?e.strstart-(e.w_size-le):0,f=e.window,l=e.w_mask,h=e.prev,c=e.strstart+qe,d=f[i+s-1],b=f[i+s];e.prev_length>=e.good_match&&(r>>=2),o>e.lookahead&&(o=e.lookahead);do if(n=t,!(f[n+s]!==b||f[n+s-1]!==d||f[n]!==f[i]||f[++n]!==f[i+1])){i+=2,n++;do;while(f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&i<c);if(a=qe-(c-i),i=c-qe,a>s){if(e.match_start=t,s=a,a>=o)break;d=f[i+s-1],b=f[i+s]}}while((t=h[t&l])>u&&--r!==0);return s<=e.lookahead?s:e.lookahead}function Xe(e){var t=e.w_size,r,i,n,a,s;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-le)){G.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 n=e.head[--r],e.head[r]=n>=t?n-t:0;while(--i);i=t,r=i;do n=e.prev[--r],e.prev[r]=n>=t?n-t:0;while(--i);a+=t}if(e.strm.avail_in===0)break;if(i=Md(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=i,e.lookahead+e.insert>=A)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+A-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<A)););}while(e.lookahead<le&&e.strm.avail_in!==0)}function jd(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Xe(e),e.lookahead===0&&t===Je)return W;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,U(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-le&&(U(e,!1),e.strm.avail_out===0))return W}return e.insert=0,t===je?(U(e,!0),e.strm.avail_out===0?Ye:Et):(e.strstart>e.block_start&&(U(e,!1),e.strm.avail_out===0),W)}function Ln(e,t){for(var r,i;;){if(e.lookahead<le){if(Xe(e),e.lookahead<le&&t===Je)return W;if(e.lookahead===0)break}if(r=0,e.lookahead>=A&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-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-le&&(e.match_length=Wo(e,r)),e.match_length>=A)if(i=re._tr_tally(e,e.strstart-e.match_start,e.match_length-A),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=A){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-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=re._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(U(e,!1),e.strm.avail_out===0))return W}return e.insert=e.strstart<A-1?e.strstart:A-1,t===je?(U(e,!0),e.strm.avail_out===0?Ye:Et):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:fr}function kt(e,t){for(var r,i,n;;){if(e.lookahead<le){if(Xe(e),e.lookahead<le&&t===Je)return W;if(e.lookahead===0)break}if(r=0,e.lookahead>=A&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-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=A-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-le&&(e.match_length=Wo(e,r),e.match_length<=5&&(e.strategy===Sd||e.match_length===A&&e.strstart-e.match_start>4096)&&(e.match_length=A-1)),e.prev_length>=A&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-A,i=re._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-A),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=n&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-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=A-1,e.strstart++,i&&(U(e,!1),e.strm.avail_out===0))return W}else if(e.match_available){if(i=re._tr_tally(e,0,e.window[e.strstart-1]),i&&U(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return W}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=re._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<A-1?e.strstart:A-1,t===je?(U(e,!0),e.strm.avail_out===0?Ye:Et):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:fr}function Wd(e,t){for(var r,i,n,a,s=e.window;;){if(e.lookahead<=qe){if(Xe(e),e.lookahead<=qe&&t===Je)return W;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=A&&e.strstart>0&&(n=e.strstart-1,i=s[n],i===s[++n]&&i===s[++n]&&i===s[++n])){a=e.strstart+qe;do;while(i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&n<a);e.match_length=qe-(a-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=A?(r=re._tr_tally(e,1,e.match_length-A),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=re._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(U(e,!1),e.strm.avail_out===0))return W}return e.insert=0,t===je?(U(e,!0),e.strm.avail_out===0?Ye:Et):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:fr}function Hd(e,t){for(var r;;){if(e.lookahead===0&&(Xe(e),e.lookahead===0)){if(t===Je)return W;break}if(e.match_length=0,r=re._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(U(e,!1),e.strm.avail_out===0))return W}return e.insert=0,t===je?(U(e,!0),e.strm.avail_out===0?Ye:Et):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:fr}function me(e,t,r,i,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=n}var St;St=[new me(0,0,0,0,jd),new me(4,4,8,4,Ln),new me(4,5,16,8,Ln),new me(4,6,32,32,Ln),new me(4,4,16,16,kt),new me(8,16,32,32,kt),new me(8,16,128,128,kt),new me(8,32,128,256,kt),new me(32,128,258,1024,kt),new me(32,258,258,4096,kt)];function Ud(e){e.window_size=2*e.w_size,Le(e.head),e.max_lazy_match=St[e.level].max_lazy,e.good_match=St[e.level].good_length,e.nice_match=St[e.level].nice_length,e.max_chain_length=St[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=A-1,e.match_available=0,e.ins_h=0}function $d(){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=ai,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 G.Buf16(Bd*2),this.dyn_dtree=new G.Buf16((2*Nd+1)*2),this.bl_tree=new G.Buf16((2*Pd+1)*2),Le(this.dyn_ltree),Le(this.dyn_dtree),Le(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new G.Buf16(zd+1),this.heap=new G.Buf16(2*qn+1),Le(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new G.Buf16(2*qn+1),Le(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ho(e){var t;return!e||!e.state?Me(e,ie):(e.total_in=e.total_out=0,e.data_type=Ad,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?si:Ke,e.adler=t.wrap===2?0:1,t.last_flush=Je,re._tr_init(t),_e)}function Uo(e){var t=Ho(e);return t===_e&&Ud(e.state),t}function Zd(e,t){return!e||!e.state||e.state.wrap!==2?ie:(e.state.gzhead=t,_e)}function $o(e,t,r,i,n,a){if(!e)return ie;var s=1;if(t===kd&&(t=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),n<1||n>Td||r!==ai||i<8||i>15||t<0||t>9||a<0||a>Cd)return Me(e,ie);i===8&&(i=9);var o=new $d;return e.state=o,o.strm=e,o.wrap=s,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+A-1)/A),o.window=new G.Buf8(o.w_size*2),o.head=new G.Buf16(o.hash_size),o.prev=new G.Buf16(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new G.Buf8(o.pending_buf_size),o.d_buf=1*o.lit_bufsize,o.l_buf=3*o.lit_bufsize,o.level=t,o.strategy=a,o.method=r,Uo(e)}function Vd(e,t){return $o(e,t,ai,Dd,Id,Od)}function Gd(e,t){var r,i,n,a;if(!e||!e.state||t>Lo||t<0)return e?Me(e,ie):ie;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===lr&&t!==je)return Me(e,e.avail_out===0?zn:ie);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===si)if(i.wrap===2)e.adler=0,T(i,31),T(i,139),T(i,8),i.gzhead?(T(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)),T(i,i.gzhead.time&255),T(i,i.gzhead.time>>8&255),T(i,i.gzhead.time>>16&255),T(i,i.gzhead.time>>24&255),T(i,i.level===9?2:i.strategy>=ti||i.level<2?4:0),T(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(T(i,i.gzhead.extra.length&255),T(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Be(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Mn):(T(i,0),T(i,0),T(i,0),T(i,0),T(i,0),T(i,i.level===9?2:i.strategy>=ti||i.level<2?4:0),T(i,qd),i.status=Ke);else{var s=ai+(i.w_bits-8<<4)<<8,o=-1;i.strategy>=ti||i.level<2?o=0:i.level<6?o=1:i.level===6?o=2:o=3,s|=o<<6,i.strstart!==0&&(s|=Ld),s+=31-s%31,i.status=Ke,or(i,s),i.strstart!==0&&(or(i,e.adler>>>16),or(i,e.adler&65535)),e.adler=1}if(i.status===Mn)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),ze(e),n=i.pending,i.pending===i.pending_buf_size));)T(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=ri)}else i.status=ri;if(i.status===ri)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),ze(e),n=i.pending,i.pending===i.pending_buf_size)){a=1;break}i.gzindex<i.gzhead.name.length?a=i.gzhead.name.charCodeAt(i.gzindex++)&255:a=0,T(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.gzindex=0,i.status=ii)}else i.status=ii;if(i.status===ii)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),ze(e),n=i.pending,i.pending===i.pending_buf_size)){a=1;break}i.gzindex<i.gzhead.comment.length?a=i.gzhead.comment.charCodeAt(i.gzindex++)&255:a=0,T(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.status=ni)}else i.status=ni;if(i.status===ni&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ze(e),i.pending+2<=i.pending_buf_size&&(T(i,e.adler&255),T(i,e.adler>>8&255),e.adler=0,i.status=Ke)):i.status=Ke),i.pending!==0){if(ze(e),e.avail_out===0)return i.last_flush=-1,_e}else if(e.avail_in===0&&Mo(t)<=Mo(r)&&t!==je)return Me(e,zn);if(i.status===lr&&e.avail_in!==0)return Me(e,zn);if(e.avail_in!==0||i.lookahead!==0||t!==Je&&i.status!==lr){var u=i.strategy===ti?Hd(i,t):i.strategy===Ed?Wd(i,t):St[i.level].func(i,t);if((u===Ye||u===Et)&&(i.status=lr),u===W||u===Ye)return e.avail_out===0&&(i.last_flush=-1),_e;if(u===fr&&(t===wd?re._tr_align(i):t!==Lo&&(re._tr_stored_block(i,0,0,!1),t===yd&&(Le(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),ze(e),e.avail_out===0))return i.last_flush=-1,_e}return t!==je?_e:i.wrap<=0?qo:(i.wrap===2?(T(i,e.adler&255),T(i,e.adler>>8&255),T(i,e.adler>>16&255),T(i,e.adler>>24&255),T(i,e.total_in&255),T(i,e.total_in>>8&255),T(i,e.total_in>>16&255),T(i,e.total_in>>24&255)):(or(i,e.adler>>>16),or(i,e.adler&65535)),ze(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?_e:qo)}function Kd(e){var t;return!e||!e.state?ie:(t=e.state.status,t!==si&&t!==Mn&&t!==ri&&t!==ii&&t!==ni&&t!==Ke&&t!==lr?Me(e,ie):(e.state=null,t===Ke?Me(e,xd):_e))}function Yd(e,t){var r=t.length,i,n,a,s,o,u,f,l;if(!e||!e.state||(i=e.state,s=i.wrap,s===2||s===1&&i.status!==si||i.lookahead))return ie;for(s===1&&(e.adler=jo(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(s===0&&(Le(i.head),i.strstart=0,i.block_start=0,i.insert=0),l=new G.Buf8(i.w_size),G.arraySet(l,t,r-i.w_size,i.w_size,0),t=l,r=i.w_size),o=e.avail_in,u=e.next_in,f=e.input,e.avail_in=r,e.next_in=0,e.input=t,Xe(i);i.lookahead>=A;){n=i.strstart,a=i.lookahead-(A-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+A-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++;while(--a);i.strstart=n,i.lookahead=A-1,Xe(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=A-1,i.match_available=0,e.next_in=u,e.input=f,e.avail_in=o,i.wrap=s,_e}ge.deflateInit=Vd;ge.deflateInit2=$o;ge.deflateReset=Uo;ge.deflateResetKeep=Ho;ge.deflateSetHeader=Zd;ge.deflate=Gd;ge.deflateEnd=Kd;ge.deflateSetDictionary=Yd;ge.deflateInfo="pako deflate (from Nodeca project)"});var jn=_(Ct=>{"use strict";var oi=Ce(),Vo=!0,Go=!0;try{String.fromCharCode.apply(null,[0])}catch{Vo=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Go=!1}var ur=new oi.Buf8(256);for(Ae=0;Ae<256;Ae++)ur[Ae]=Ae>=252?6:Ae>=248?5:Ae>=240?4:Ae>=224?3:Ae>=192?2:1;var Ae;ur[254]=ur[254]=1;Ct.string2buf=function(e){var t,r,i,n,a,s=e.length,o=0;for(n=0;n<s;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<s&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new oi.Buf8(o),a=0,n=0;a<o;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<s&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|r&63):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|r&63):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|r&63);return t};function Ko(e,t){if(t<65534&&(e.subarray&&Go||!e.subarray&&Vo))return String.fromCharCode.apply(null,oi.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}Ct.buf2binstring=function(e){return Ko(e,e.length)};Ct.binstring2buf=function(e){for(var t=new oi.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};Ct.buf2string=function(e,t){var r,i,n,a,s=t||e.length,o=new Array(s*2);for(i=0,r=0;r<s;){if(n=e[r++],n<128){o[i++]=n;continue}if(a=ur[n],a>4){o[i++]=65533,r+=a-1;continue}for(n&=a===2?31:a===3?15:7;a>1&&r<s;)n=n<<6|e[r++]&63,a--;if(a>1){o[i++]=65533;continue}n<65536?o[i++]=n:(n-=65536,o[i++]=55296|n>>10&1023,o[i++]=56320|n&1023)}return Ko(o,i)};Ct.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+ur[e[r]]>t?r:t}});var Wn=_((Pg,Yo)=>{"use strict";function Xd(){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}Yo.exports=Xd});var el=_(dr=>{"use strict";var hr=Zo(),cr=Ce(),Un=jn(),$n=ei(),Jd=Wn(),Qo=Object.prototype.toString,Qd=0,Hn=4,Ot=0,Xo=1,Jo=2,ep=-1,tp=0,rp=8;function Qe(e){if(!(this instanceof Qe))return new Qe(e);this.options=cr.assign({level:ep,method:rp,chunkSize:16384,windowBits:15,memLevel:8,strategy:tp,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 Jd,this.strm.avail_out=0;var r=hr.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Ot)throw new Error($n[r]);if(t.header&&hr.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=Un.string2buf(t.dictionary):Qo.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=hr.deflateSetDictionary(this.strm,i),r!==Ot)throw new Error($n[r]);this._dict_set=!0}}Qe.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,n,a;if(this.ended)return!1;a=t===~~t?t:t===!0?Hn:Qd,typeof e=="string"?r.input=Un.string2buf(e):Qo.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 cr.Buf8(i),r.next_out=0,r.avail_out=i),n=hr.deflate(r,a),n!==Xo&&n!==Ot)return this.onEnd(n),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(a===Hn||a===Jo))&&(this.options.to==="string"?this.onData(Un.buf2binstring(cr.shrinkBuf(r.output,r.next_out))):this.onData(cr.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&n!==Xo);return a===Hn?(n=hr.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Ot):(a===Jo&&(this.onEnd(Ot),r.avail_out=0),!0)};Qe.prototype.onData=function(e){this.chunks.push(e)};Qe.prototype.onEnd=function(e){e===Ot&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=cr.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Zn(e,t){var r=new Qe(t);if(r.push(e,!0),r.err)throw r.msg||$n[r.err];return r.result}function ip(e,t){return t=t||{},t.raw=!0,Zn(e,t)}function np(e,t){return t=t||{},t.gzip=!0,Zn(e,t)}dr.Deflate=Qe;dr.deflate=Zn;dr.deflateRaw=ip;dr.gzip=np});var rl=_((zg,tl)=>{"use strict";var li=30,ap=12;tl.exports=function(t,r){var i,n,a,s,o,u,f,l,h,c,d,b,w,x,g,p,y,m,v,C,E,S,O,F,k;i=t.state,n=t.next_in,F=t.input,a=n+(t.avail_in-5),s=t.next_out,k=t.output,o=s-(r-t.avail_out),u=s+(t.avail_out-257),f=i.dmax,l=i.wsize,h=i.whave,c=i.wnext,d=i.window,b=i.hold,w=i.bits,x=i.lencode,g=i.distcode,p=(1<<i.lenbits)-1,y=(1<<i.distbits)-1;e:do{w<15&&(b+=F[n++]<<w,w+=8,b+=F[n++]<<w,w+=8),m=x[b&p];t:for(;;){if(v=m>>>24,b>>>=v,w-=v,v=m>>>16&255,v===0)k[s++]=m&65535;else if(v&16){C=m&65535,v&=15,v&&(w<v&&(b+=F[n++]<<w,w+=8),C+=b&(1<<v)-1,b>>>=v,w-=v),w<15&&(b+=F[n++]<<w,w+=8,b+=F[n++]<<w,w+=8),m=g[b&y];r:for(;;){if(v=m>>>24,b>>>=v,w-=v,v=m>>>16&255,v&16){if(E=m&65535,v&=15,w<v&&(b+=F[n++]<<w,w+=8,w<v&&(b+=F[n++]<<w,w+=8)),E+=b&(1<<v)-1,E>f){t.msg="invalid distance too far back",i.mode=li;break e}if(b>>>=v,w-=v,v=s-o,E>v){if(v=E-v,v>h&&i.sane){t.msg="invalid distance too far back",i.mode=li;break e}if(S=0,O=d,c===0){if(S+=l-v,v<C){C-=v;do k[s++]=d[S++];while(--v);S=s-E,O=k}}else if(c<v){if(S+=l+c-v,v-=c,v<C){C-=v;do k[s++]=d[S++];while(--v);if(S=0,c<C){v=c,C-=v;do k[s++]=d[S++];while(--v);S=s-E,O=k}}}else if(S+=c-v,v<C){C-=v;do k[s++]=d[S++];while(--v);S=s-E,O=k}for(;C>2;)k[s++]=O[S++],k[s++]=O[S++],k[s++]=O[S++],C-=3;C&&(k[s++]=O[S++],C>1&&(k[s++]=O[S++]))}else{S=s-E;do k[s++]=k[S++],k[s++]=k[S++],k[s++]=k[S++],C-=3;while(C>2);C&&(k[s++]=k[S++],C>1&&(k[s++]=k[S++]))}}else if((v&64)===0){m=g[(m&65535)+(b&(1<<v)-1)];continue r}else{t.msg="invalid distance code",i.mode=li;break e}break}}else if((v&64)===0){m=x[(m&65535)+(b&(1<<v)-1)];continue t}else if(v&32){i.mode=ap;break e}else{t.msg="invalid literal/length code",i.mode=li;break e}break}}while(n<a&&s<u);C=w>>3,n-=C,w-=C<<3,b&=(1<<w)-1,t.next_in=n,t.next_out=s,t.avail_in=n<a?5+(a-n):5-(n-a),t.avail_out=s<u?257+(u-s):257-(s-u),i.hold=b,i.bits=w}});var fl=_((Lg,ll)=>{"use strict";var il=Ce(),At=15,nl=852,al=592,sl=0,Vn=1,ol=2,sp=[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],op=[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],lp=[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],fp=[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];ll.exports=function(t,r,i,n,a,s,o,u){var f=u.bits,l=0,h=0,c=0,d=0,b=0,w=0,x=0,g=0,p=0,y=0,m,v,C,E,S,O=null,F=0,k,J=new il.Buf16(At+1),nt=new il.Buf16(At+1),yr=null,ka=0,Sa,xr,kr;for(l=0;l<=At;l++)J[l]=0;for(h=0;h<n;h++)J[r[i+h]]++;for(b=f,d=At;d>=1&&J[d]===0;d--);if(b>d&&(b=d),d===0)return a[s++]=1<<24|64<<16|0,a[s++]=1<<24|64<<16|0,u.bits=1,0;for(c=1;c<d&&J[c]===0;c++);for(b<c&&(b=c),g=1,l=1;l<=At;l++)if(g<<=1,g-=J[l],g<0)return-1;if(g>0&&(t===sl||d!==1))return-1;for(nt[1]=0,l=1;l<At;l++)nt[l+1]=nt[l]+J[l];for(h=0;h<n;h++)r[i+h]!==0&&(o[nt[r[i+h]]++]=h);if(t===sl?(O=yr=o,k=19):t===Vn?(O=sp,F-=257,yr=op,ka-=257,k=256):(O=lp,yr=fp,k=-1),y=0,h=0,l=c,S=s,w=b,x=0,C=-1,p=1<<b,E=p-1,t===Vn&&p>nl||t===ol&&p>al)return 1;for(;;){Sa=l-x,o[h]<k?(xr=0,kr=o[h]):o[h]>k?(xr=yr[ka+o[h]],kr=O[F+o[h]]):(xr=96,kr=0),m=1<<l-x,v=1<<w,c=v;do v-=m,a[S+(y>>x)+v]=Sa<<24|xr<<16|kr|0;while(v!==0);for(m=1<<l-1;y&m;)m>>=1;if(m!==0?(y&=m-1,y+=m):y=0,h++,--J[l]===0){if(l===d)break;l=r[i+o[h]]}if(l>b&&(y&E)!==C){for(x===0&&(x=b),S+=c,w=l-x,g=1<<w;w+x<d&&(g-=J[w+x],!(g<=0));)w++,g<<=1;if(p+=1<<w,t===Vn&&p>nl||t===ol&&p>al)return 1;C=y&E,a[C]=b<<24|w<<16|S-s|0}}return y!==0&&(a[S+y]=l-x<<24|64<<16|0),u.bits=b,0}});var Ul=_(fe=>{"use strict";var te=Ce(),Qn=Pn(),ve=Bn(),up=rl(),pr=fl(),hp=0,Pl=1,Bl=2,ul=4,cp=5,fi=6,et=0,dp=1,pp=2,ne=-2,zl=-3,ea=-4,mp=-5,hl=8,Ll=1,cl=2,dl=3,pl=4,ml=5,_l=6,gl=7,vl=8,bl=9,wl=10,ci=11,Te=12,Gn=13,yl=14,Kn=15,xl=16,kl=17,Sl=18,El=19,ui=20,hi=21,Cl=22,Ol=23,Al=24,Tl=25,Dl=26,Yn=27,Il=28,Rl=29,P=30,ta=31,_p=32,gp=852,vp=592,bp=15,wp=bp;function Fl(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function yp(){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 te.Buf16(320),this.work=new te.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ql(e){var t;return!e||!e.state?ne:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Ll,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new te.Buf32(gp),t.distcode=t.distdyn=new te.Buf32(vp),t.sane=1,t.back=-1,et)}function Ml(e){var t;return!e||!e.state?ne:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,ql(e))}function jl(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))?ne:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,Ml(e))}function Wl(e,t){var r,i;return e?(i=new yp,e.state=i,i.window=null,r=jl(e,t),r!==et&&(e.state=null),r):ne}function xp(e){return Wl(e,wp)}var Nl=!0,Xn,Jn;function kp(e){if(Nl){var t;for(Xn=new te.Buf32(512),Jn=new te.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(pr(Pl,e.lens,0,288,Xn,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;pr(Bl,e.lens,0,32,Jn,0,e.work,{bits:5}),Nl=!1}e.lencode=Xn,e.lenbits=9,e.distcode=Jn,e.distbits=5}function Hl(e,t,r,i){var n,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new te.Buf8(a.wsize)),i>=a.wsize?(te.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(n=a.wsize-a.wnext,n>i&&(n=i),te.arraySet(a.window,t,r-i,n,a.wnext),i-=n,i?(te.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=n,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=n))),0}function Sp(e,t){var r,i,n,a,s,o,u,f,l,h,c,d,b,w,x=0,g,p,y,m,v,C,E,S,O=new te.Buf8(4),F,k,J=[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 ne;r=e.state,r.mode===Te&&(r.mode=Gn),s=e.next_out,n=e.output,u=e.avail_out,a=e.next_in,i=e.input,o=e.avail_in,f=r.hold,l=r.bits,h=o,c=u,S=et;e:for(;;)switch(r.mode){case Ll:if(r.wrap===0){r.mode=Gn;break}for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(r.wrap&2&&f===35615){r.check=0,O[0]=f&255,O[1]=f>>>8&255,r.check=ve(r.check,O,2,0),f=0,l=0,r.mode=cl;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((f&255)<<8)+(f>>8))%31){e.msg="incorrect header check",r.mode=P;break}if((f&15)!==hl){e.msg="unknown compression method",r.mode=P;break}if(f>>>=4,l-=4,E=(f&15)+8,r.wbits===0)r.wbits=E;else if(E>r.wbits){e.msg="invalid window size",r.mode=P;break}r.dmax=1<<E,e.adler=r.check=1,r.mode=f&512?wl:Te,f=0,l=0;break;case cl:for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(r.flags=f,(r.flags&255)!==hl){e.msg="unknown compression method",r.mode=P;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=P;break}r.head&&(r.head.text=f>>8&1),r.flags&512&&(O[0]=f&255,O[1]=f>>>8&255,r.check=ve(r.check,O,2,0)),f=0,l=0,r.mode=dl;case dl:for(;l<32;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.head&&(r.head.time=f),r.flags&512&&(O[0]=f&255,O[1]=f>>>8&255,O[2]=f>>>16&255,O[3]=f>>>24&255,r.check=ve(r.check,O,4,0)),f=0,l=0,r.mode=pl;case pl:for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.head&&(r.head.xflags=f&255,r.head.os=f>>8),r.flags&512&&(O[0]=f&255,O[1]=f>>>8&255,r.check=ve(r.check,O,2,0)),f=0,l=0,r.mode=ml;case ml:if(r.flags&1024){for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.length=f,r.head&&(r.head.extra_len=f),r.flags&512&&(O[0]=f&255,O[1]=f>>>8&255,r.check=ve(r.check,O,2,0)),f=0,l=0}else r.head&&(r.head.extra=null);r.mode=_l;case _l:if(r.flags&1024&&(d=r.length,d>o&&(d=o),d&&(r.head&&(E=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),te.arraySet(r.head.extra,i,a,d,E)),r.flags&512&&(r.check=ve(r.check,i,d,a)),o-=d,a+=d,r.length-=d),r.length))break e;r.length=0,r.mode=gl;case gl:if(r.flags&2048){if(o===0)break e;d=0;do E=i[a+d++],r.head&&E&&r.length<65536&&(r.head.name+=String.fromCharCode(E));while(E&&d<o);if(r.flags&512&&(r.check=ve(r.check,i,d,a)),o-=d,a+=d,E)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=vl;case vl:if(r.flags&4096){if(o===0)break e;d=0;do E=i[a+d++],r.head&&E&&r.length<65536&&(r.head.comment+=String.fromCharCode(E));while(E&&d<o);if(r.flags&512&&(r.check=ve(r.check,i,d,a)),o-=d,a+=d,E)break e}else r.head&&(r.head.comment=null);r.mode=bl;case bl:if(r.flags&512){for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(f!==(r.check&65535)){e.msg="header crc mismatch",r.mode=P;break}f=0,l=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Te;break;case wl:for(;l<32;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}e.adler=r.check=Fl(f),f=0,l=0,r.mode=ci;case ci:if(r.havedict===0)return e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=o,r.hold=f,r.bits=l,pp;e.adler=r.check=1,r.mode=Te;case Te:if(t===cp||t===fi)break e;case Gn:if(r.last){f>>>=l&7,l-=l&7,r.mode=Yn;break}for(;l<3;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}switch(r.last=f&1,f>>>=1,l-=1,f&3){case 0:r.mode=yl;break;case 1:if(kp(r),r.mode=ui,t===fi){f>>>=2,l-=2;break e}break;case 2:r.mode=kl;break;case 3:e.msg="invalid block type",r.mode=P}f>>>=2,l-=2;break;case yl:for(f>>>=l&7,l-=l&7;l<32;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if((f&65535)!==(f>>>16^65535)){e.msg="invalid stored block lengths",r.mode=P;break}if(r.length=f&65535,f=0,l=0,r.mode=Kn,t===fi)break e;case Kn:r.mode=xl;case xl:if(d=r.length,d){if(d>o&&(d=o),d>u&&(d=u),d===0)break e;te.arraySet(n,i,a,d,s),o-=d,a+=d,u-=d,s+=d,r.length-=d;break}r.mode=Te;break;case kl:for(;l<14;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(r.nlen=(f&31)+257,f>>>=5,l-=5,r.ndist=(f&31)+1,f>>>=5,l-=5,r.ncode=(f&15)+4,f>>>=4,l-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=P;break}r.have=0,r.mode=Sl;case Sl:for(;r.have<r.ncode;){for(;l<3;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.lens[J[r.have++]]=f&7,f>>>=3,l-=3}for(;r.have<19;)r.lens[J[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,F={bits:r.lenbits},S=pr(hp,r.lens,0,19,r.lencode,0,r.work,F),r.lenbits=F.bits,S){e.msg="invalid code lengths set",r.mode=P;break}r.have=0,r.mode=El;case El:for(;r.have<r.nlen+r.ndist;){for(;x=r.lencode[f&(1<<r.lenbits)-1],g=x>>>24,p=x>>>16&255,y=x&65535,!(g<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(y<16)f>>>=g,l-=g,r.lens[r.have++]=y;else{if(y===16){for(k=g+2;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(f>>>=g,l-=g,r.have===0){e.msg="invalid bit length repeat",r.mode=P;break}E=r.lens[r.have-1],d=3+(f&3),f>>>=2,l-=2}else if(y===17){for(k=g+3;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=g,l-=g,E=0,d=3+(f&7),f>>>=3,l-=3}else{for(k=g+7;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=g,l-=g,E=0,d=11+(f&127),f>>>=7,l-=7}if(r.have+d>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=P;break}for(;d--;)r.lens[r.have++]=E}}if(r.mode===P)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=P;break}if(r.lenbits=9,F={bits:r.lenbits},S=pr(Pl,r.lens,0,r.nlen,r.lencode,0,r.work,F),r.lenbits=F.bits,S){e.msg="invalid literal/lengths set",r.mode=P;break}if(r.distbits=6,r.distcode=r.distdyn,F={bits:r.distbits},S=pr(Bl,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,F),r.distbits=F.bits,S){e.msg="invalid distances set",r.mode=P;break}if(r.mode=ui,t===fi)break e;case ui:r.mode=hi;case hi:if(o>=6&&u>=258){e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=o,r.hold=f,r.bits=l,up(e,c),s=e.next_out,n=e.output,u=e.avail_out,a=e.next_in,i=e.input,o=e.avail_in,f=r.hold,l=r.bits,r.mode===Te&&(r.back=-1);break}for(r.back=0;x=r.lencode[f&(1<<r.lenbits)-1],g=x>>>24,p=x>>>16&255,y=x&65535,!(g<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(p&&(p&240)===0){for(m=g,v=p,C=y;x=r.lencode[C+((f&(1<<m+v)-1)>>m)],g=x>>>24,p=x>>>16&255,y=x&65535,!(m+g<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=m,l-=m,r.back+=m}if(f>>>=g,l-=g,r.back+=g,r.length=y,p===0){r.mode=Dl;break}if(p&32){r.back=-1,r.mode=Te;break}if(p&64){e.msg="invalid literal/length code",r.mode=P;break}r.extra=p&15,r.mode=Cl;case Cl:if(r.extra){for(k=r.extra;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.length+=f&(1<<r.extra)-1,f>>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=Ol;case Ol:for(;x=r.distcode[f&(1<<r.distbits)-1],g=x>>>24,p=x>>>16&255,y=x&65535,!(g<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if((p&240)===0){for(m=g,v=p,C=y;x=r.distcode[C+((f&(1<<m+v)-1)>>m)],g=x>>>24,p=x>>>16&255,y=x&65535,!(m+g<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=m,l-=m,r.back+=m}if(f>>>=g,l-=g,r.back+=g,p&64){e.msg="invalid distance code",r.mode=P;break}r.offset=y,r.extra=p&15,r.mode=Al;case Al:if(r.extra){for(k=r.extra;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.offset+=f&(1<<r.extra)-1,f>>>=r.extra,l-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=P;break}r.mode=Tl;case Tl:if(u===0)break e;if(d=c-u,r.offset>d){if(d=r.offset-d,d>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=P;break}d>r.wnext?(d-=r.wnext,b=r.wsize-d):b=r.wnext-d,d>r.length&&(d=r.length),w=r.window}else w=n,b=s-r.offset,d=r.length;d>u&&(d=u),u-=d,r.length-=d;do n[s++]=w[b++];while(--d);r.length===0&&(r.mode=hi);break;case Dl:if(u===0)break e;n[s++]=r.length,u--,r.mode=hi;break;case Yn:if(r.wrap){for(;l<32;){if(o===0)break e;o--,f|=i[a++]<<l,l+=8}if(c-=u,e.total_out+=c,r.total+=c,c&&(e.adler=r.check=r.flags?ve(r.check,n,c,s-c):Qn(r.check,n,c,s-c)),c=u,(r.flags?f:Fl(f))!==r.check){e.msg="incorrect data check",r.mode=P;break}f=0,l=0}r.mode=Il;case Il:if(r.wrap&&r.flags){for(;l<32;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(f!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=P;break}f=0,l=0}r.mode=Rl;case Rl:S=dp;break e;case P:S=zl;break e;case ta:return ea;case _p:default:return ne}return e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=o,r.hold=f,r.bits=l,(r.wsize||c!==e.avail_out&&r.mode<P&&(r.mode<Yn||t!==ul))&&Hl(e,e.output,e.next_out,c-e.avail_out)?(r.mode=ta,ea):(h-=e.avail_in,c-=e.avail_out,e.total_in+=h,e.total_out+=c,r.total+=c,r.wrap&&c&&(e.adler=r.check=r.flags?ve(r.check,n,c,e.next_out-c):Qn(r.check,n,c,e.next_out-c)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Te?128:0)+(r.mode===ui||r.mode===Kn?256:0),(h===0&&c===0||t===ul)&&S===et&&(S=mp),S)}function Ep(e){if(!e||!e.state)return ne;var t=e.state;return t.window&&(t.window=null),e.state=null,et}function Cp(e,t){var r;return!e||!e.state||(r=e.state,(r.wrap&2)===0)?ne:(r.head=t,t.done=!1,et)}function Op(e,t){var r=t.length,i,n,a;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==ci)?ne:i.mode===ci&&(n=1,n=Qn(n,t,r,0),n!==i.check)?zl:(a=Hl(e,t,r,r),a?(i.mode=ta,ea):(i.havedict=1,et))}fe.inflateReset=Ml;fe.inflateReset2=jl;fe.inflateResetKeep=ql;fe.inflateInit=xp;fe.inflateInit2=Wl;fe.inflate=Sp;fe.inflateEnd=Ep;fe.inflateGetHeader=Cp;fe.inflateSetDictionary=Op;fe.inflateInfo="pako inflate (from Nodeca project)"});var ra=_((Mg,$l)=>{"use strict";$l.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 Vl=_((jg,Zl)=>{"use strict";function Ap(){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}Zl.exports=Ap});var Kl=_(_r=>{"use strict";var Tt=Ul(),mr=Ce(),di=jn(),q=ra(),ia=ei(),Tp=Wn(),Dp=Vl(),Gl=Object.prototype.toString;function tt(e){if(!(this instanceof tt))return new tt(e);this.options=mr.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)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Tp,this.strm.avail_out=0;var r=Tt.inflateInit2(this.strm,t.windowBits);if(r!==q.Z_OK)throw new Error(ia[r]);if(this.header=new Dp,Tt.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=di.string2buf(t.dictionary):Gl.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Tt.inflateSetDictionary(this.strm,t.dictionary),r!==q.Z_OK)))throw new Error(ia[r])}tt.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,n=this.options.dictionary,a,s,o,u,f,l=!1;if(this.ended)return!1;s=t===~~t?t:t===!0?q.Z_FINISH:q.Z_NO_FLUSH,typeof e=="string"?r.input=di.binstring2buf(e):Gl.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 mr.Buf8(i),r.next_out=0,r.avail_out=i),a=Tt.inflate(r,q.Z_NO_FLUSH),a===q.Z_NEED_DICT&&n&&(a=Tt.inflateSetDictionary(this.strm,n)),a===q.Z_BUF_ERROR&&l===!0&&(a=q.Z_OK,l=!1),a!==q.Z_STREAM_END&&a!==q.Z_OK)return this.onEnd(a),this.ended=!0,!1;r.next_out&&(r.avail_out===0||a===q.Z_STREAM_END||r.avail_in===0&&(s===q.Z_FINISH||s===q.Z_SYNC_FLUSH))&&(this.options.to==="string"?(o=di.utf8border(r.output,r.next_out),u=r.next_out-o,f=di.buf2string(r.output,o),r.next_out=u,r.avail_out=i-u,u&&mr.arraySet(r.output,r.output,o,u,0),this.onData(f)):this.onData(mr.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(l=!0)}while((r.avail_in>0||r.avail_out===0)&&a!==q.Z_STREAM_END);return a===q.Z_STREAM_END&&(s=q.Z_FINISH),s===q.Z_FINISH?(a=Tt.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===q.Z_OK):(s===q.Z_SYNC_FLUSH&&(this.onEnd(q.Z_OK),r.avail_out=0),!0)};tt.prototype.onData=function(e){this.chunks.push(e)};tt.prototype.onEnd=function(e){e===q.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=mr.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function na(e,t){var r=new tt(t);if(r.push(e,!0),r.err)throw r.msg||ia[r.err];return r.result}function Ip(e,t){return t=t||{},t.raw=!0,na(e,t)}_r.Inflate=tt;_r.inflate=na;_r.inflateRaw=Ip;_r.ungzip=na});var Jl=_((Hg,Xl)=>{"use strict";var Rp=Ce().assign,Fp=el(),Np=Kl(),Pp=ra(),Yl={};Rp(Yl,Fp,Np,Pp);Xl.exports=Yl});var ef=_(mi=>{"use strict";var Bp=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",zp=Jl(),Ql=B(),pi=ee(),Lp=Bp?"uint8array":"array";mi.magic="\b\0";function rt(e,t){pi.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}Ql.inherits(rt,pi);rt.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(Ql.transformTo(Lp,e.data),!1)};rt.prototype.flush=function(){pi.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};rt.prototype.cleanUp=function(){pi.prototype.cleanUp.call(this),this._pako=null};rt.prototype._createPako=function(){this._pako=new zp[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};mi.compressWorker=function(e){return new rt("Deflate",e)};mi.uncompressWorker=function(){return new rt("Inflate",{})}});var sa=_(aa=>{"use strict";var tf=ee();aa.STORE={magic:"\0\0",compressWorker:function(){return new tf("STORE compression")},uncompressWorker:function(){return new tf("STORE decompression")}};aa.DEFLATE=ef()});var oa=_(it=>{"use strict";it.LOCAL_FILE_HEADER="PK";it.CENTRAL_FILE_HEADER="PK";it.CENTRAL_DIRECTORY_END="PK";it.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";it.ZIP64_CENTRAL_DIRECTORY_END="PK";it.DATA_DESCRIPTOR="PK\x07\b"});var sf=_((Vg,af)=>{"use strict";var Dt=B(),It=ee(),la=vt(),rf=Kr(),_i=oa(),R=function(e,t){var r="",i;for(i=0;i<t;i++)r+=String.fromCharCode(e&255),e=e>>>8;return r},qp=function(e,t){var r=e;return e||(r=t?16893:33204),(r&65535)<<16},Mp=function(e){return(e||0)&63},nf=function(e,t,r,i,n,a){var s=e.file,o=e.compression,u=a!==la.utf8encode,f=Dt.transformTo("string",a(s.name)),l=Dt.transformTo("string",la.utf8encode(s.name)),h=s.comment,c=Dt.transformTo("string",a(h)),d=Dt.transformTo("string",la.utf8encode(h)),b=l.length!==s.name.length,w=d.length!==h.length,x,g,p="",y="",m="",v=s.dir,C=s.date,E={crc32:0,compressedSize:0,uncompressedSize:0};(!t||r)&&(E.crc32=e.crc32,E.compressedSize=e.compressedSize,E.uncompressedSize=e.uncompressedSize);var S=0;t&&(S|=8),!u&&(b||w)&&(S|=2048);var O=0,F=0;v&&(O|=16),n==="UNIX"?(F=798,O|=qp(s.unixPermissions,v)):(F=20,O|=Mp(s.dosPermissions,v)),x=C.getUTCHours(),x=x<<6,x=x|C.getUTCMinutes(),x=x<<5,x=x|C.getUTCSeconds()/2,g=C.getUTCFullYear()-1980,g=g<<4,g=g|C.getUTCMonth()+1,g=g<<5,g=g|C.getUTCDate(),b&&(y=R(1,1)+R(rf(f),4)+l,p+="up"+R(y.length,2)+y),w&&(m=R(1,1)+R(rf(c),4)+d,p+="uc"+R(m.length,2)+m);var k="";k+=`
3
- \0`,k+=R(S,2),k+=o.magic,k+=R(x,2),k+=R(g,2),k+=R(E.crc32,4),k+=R(E.compressedSize,4),k+=R(E.uncompressedSize,4),k+=R(f.length,2),k+=R(p.length,2);var J=_i.LOCAL_FILE_HEADER+k+f+p,nt=_i.CENTRAL_FILE_HEADER+R(F,2)+k+R(c.length,2)+"\0\0\0\0"+R(O,4)+R(i,4)+f+p+c;return{fileRecord:J,dirRecord:nt}},jp=function(e,t,r,i,n){var a="",s=Dt.transformTo("string",n(i));return a=_i.CENTRAL_DIRECTORY_END+"\0\0\0\0"+R(e,2)+R(e,2)+R(t,4)+R(r,4)+R(s.length,2)+s,a},Wp=function(e){var t="";return t=_i.DATA_DESCRIPTOR+R(e.crc32,4)+R(e.compressedSize,4)+R(e.uncompressedSize,4),t};function ue(e,t,r,i){It.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=[]}Dt.inherits(ue,It);ue.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,It.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-i-1))/r:100}}))};ue.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=nf(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0};ue.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=nf(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:Wp(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};ue.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=jp(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})};ue.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()};ue.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};ue.prototype.resume=function(){if(!It.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};ue.prototype.error=function(e){var t=this._sources;if(!It.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch{}return!0};ue.prototype.lock=function(){It.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};af.exports=ue});var lf=_(of=>{"use strict";var Hp=sa(),Up=sf(),$p=function(e,t){var r=e||t,i=Hp[r];if(!i)throw new Error(r+" is not a valid compression method !");return i};of.generateWorker=function(e,t,r){var i=new Up(t.streamFiles,r,t.platform,t.encodeFileName),n=0;try{e.forEach(function(a,s){n++;var o=$p(s.options.compression,t.compression),u=s.options.compressionOptions||t.compressionOptions||{},f=s.dir,l=s.date;s._compressWorker(o,u).withStreamInfo("file",{name:a,dir:f,date:l,comment:s.comment||"",unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions}).pipe(i)}),i.entriesCount=n}catch(a){i.error(a)}return i}});var uf=_((Kg,ff)=>{"use strict";var Zp=B(),gi=ee();function gr(e,t){gi.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}Zp.inherits(gr,gi);gr.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()})};gr.prototype.pause=function(){return gi.prototype.pause.call(this)?(this._stream.pause(),!0):!1};gr.prototype.resume=function(){return gi.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};ff.exports=gr});var wf=_((Yg,bf)=>{"use strict";var Vp=vt(),vr=B(),pf=ee(),Gp=dn(),mf=pn(),hf=Yr(),Kp=uo(),Yp=lf(),cf=Vt(),Xp=uf(),_f=function(e,t,r){var i=vr.getTypeOf(t),n,a=vr.extend(r||{},mf);a.date=a.date||new Date,a.compression!==null&&(a.compression=a.compression.toUpperCase()),typeof a.unixPermissions=="string"&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&a.unixPermissions&16384&&(a.dir=!0),a.dosPermissions&&a.dosPermissions&16&&(a.dir=!0),a.dir&&(e=gf(e)),a.createFolders&&(n=Jp(e))&&vf.call(this,n,!0);var s=i==="string"&&a.binary===!1&&a.base64===!1;(!r||typeof r.binary>"u")&&(a.binary=!s);var o=t instanceof hf&&t.uncompressedSize===0;(o||a.dir||!t||t.length===0)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE",i="string");var u=null;t instanceof hf||t instanceof pf?u=t:cf.isNode&&cf.isStream(t)?u=new Xp(e,t):u=vr.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var f=new Kp(e,u,a);this.files[e]=f},Jp=function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},gf=function(e){return e.slice(-1)!=="/"&&(e+="/"),e},vf=function(e,t){return t=typeof t<"u"?t:mf.createFolders,e=gf(e),this.files[e]||_f.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function df(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var Qp={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach: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)},filter:function(e){var t=[];return this.forEach(function(r,i){e(r,i)&&t.push(i)}),t},file:function(e,t,r){if(arguments.length===1)if(df(e)){var i=e;return this.filter(function(a,s){return!s.dir&&i.test(a)})}else{var n=this.files[this.root+e];return n&&!n.dir?n:null}else e=this.root+e,_f.call(this,e,t,r);return this},folder:function(e){if(!e)return this;if(df(e))return this.filter(function(n,a){return a.dir&&e.test(n)});var t=this.root+e,r=vf.call(this,t),i=this.clone();return i.root=r.name,i},remove: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(n,a){return a.name.slice(0,e.length)===e}),i=0;i<r.length;i++)delete this.files[r[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if(r=vr.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Vp.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.");vr.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=Yp.generateWorker(this,r,i)}catch(n){t=new pf("error"),t.error(n)}return new Gp(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};bf.exports=Qp});var fa=_((Xg,xf)=>{"use strict";var em=B();function yf(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}yf.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex: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 ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt: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},readString:function(e){return em.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate: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))}};xf.exports=yf});var ua=_((Jg,Sf)=>{"use strict";var kf=fa(),tm=B();function Rt(e){kf.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}tm.inherits(Rt,kf);Rt.prototype.byteAt=function(e){return this.data[this.zero+e]};Rt.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===i&&this.data[a+3]===n)return a-this.zero;return-1};Rt.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&r===a[1]&&i===a[2]&&n===a[3]};Rt.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};Sf.exports=Rt});var Of=_((Qg,Cf)=>{"use strict";var Ef=fa(),rm=B();function Ft(e){Ef.call(this,e)}rm.inherits(Ft,Ef);Ft.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};Ft.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};Ft.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};Ft.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};Cf.exports=Ft});var ca=_((e0,Tf)=>{"use strict";var Af=ua(),im=B();function ha(e){Af.call(this,e)}im.inherits(ha,Af);ha.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};Tf.exports=ha});var Rf=_((t0,If)=>{"use strict";var Df=ca(),nm=B();function da(e){Df.call(this,e)}nm.inherits(da,Df);da.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};If.exports=da});var pa=_((r0,Nf)=>{"use strict";var vi=B(),Ff=Se(),am=ua(),sm=Of(),om=Rf(),lm=ca();Nf.exports=function(e){var t=vi.getTypeOf(e);return vi.checkSupport(t),t==="string"&&!Ff.uint8array?new sm(e):t==="nodebuffer"?new om(e):Ff.uint8array?new lm(vi.transformTo("uint8array",e)):new am(vi.transformTo("array",e))}});var Lf=_((i0,zf)=>{"use strict";var ma=pa(),We=B(),fm=Yr(),Pf=Kr(),bi=vt(),wi=sa(),um=Se(),hm=0,cm=3,dm=function(e){for(var t in wi)if(Object.prototype.hasOwnProperty.call(wi,t)&&wi[t].magic===e)return wi[t];return null};function Bf(e,t){this.options=e,this.loadOptions=t}Bf.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart: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=dm(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+We.pretty(this.compressionMethod)+" unknown (inner file : "+We.transformTo("string",this.fileName)+")");this.decompressed=new fm(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart: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)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),e===hm&&(this.dosPermissions=this.externalFileAttributes&63),e===cm&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=ma(this.extraFields[1].value);this.uncompressedSize===We.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===We.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===We.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===We.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t=e.index+this.extraFieldsLength,r,i,n;for(this.extraFields||(this.extraFields={});e.index+4<t;)r=e.readInt(2),i=e.readInt(2),n=e.readData(i),this.extraFields[r]={id:r,length:i,value:n};e.setIndex(t)},handleUTF8:function(){var e=um.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=bi.utf8decode(this.fileName),this.fileCommentStr=bi.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var r=We.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var i=this.findExtraFieldUnicodeComment();if(i!==null)this.fileCommentStr=i;else{var n=We.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(n)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=ma(e.value);return t.readInt(1)!==1||Pf(this.fileName)!==t.readInt(4)?null:bi.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=ma(e.value);return t.readInt(1)!==1||Pf(this.fileComment)!==t.readInt(4)?null:bi.utf8decode(t.readData(e.length-5))}return null}};zf.exports=Bf});var jf=_((n0,Mf)=>{"use strict";var pm=pa(),De=B(),he=oa(),mm=Lf(),_m=Se();function qf(e){this.files=[],this.loadOptions=e}qf.prototype={checkSignature: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 ("+De.pretty(t)+", expected "+De.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4),n=i===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=_m.uint8array?"uint8array":"array",r=De.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e=this.zip64EndOfCentralSize-44,t=0,r,i,n;t<e;)r=this.reader.readInt(2),i=this.reader.readInt(4),n=this.reader.readData(i),this.zip64ExtensibleData[r]={id:r,length:i,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(he.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(he.CENTRAL_FILE_HEADER);)e=new mm({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)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(he.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,he.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(he.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===De.MAX_VALUE_16BITS||this.diskWithCentralDirStart===De.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===De.MAX_VALUE_16BITS||this.centralDirRecords===De.MAX_VALUE_16BITS||this.centralDirSize===De.MAX_VALUE_32BITS||this.centralDirOffset===De.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(he.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(he.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,he.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(he.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(he.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var n=r-i;if(n>0)this.isSignature(r,he.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=pm(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};Mf.exports=qf});var Uf=_((a0,Hf)=>{"use strict";var _a=B(),yi=mt(),gm=vt(),vm=jf(),bm=gn(),Wf=Vt();function wm(e){return new yi.Promise(function(t,r){var i=e.decompressed.getContentWorker().pipe(new bm);i.on("error",function(n){r(n)}).on("end",function(){i.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}Hf.exports=function(e,t){var r=this;return t=_a.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:gm.utf8decode}),Wf.isNode&&Wf.isStream(e)?yi.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):_a.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(i){var n=new vm(t);return n.load(i),n}).then(function(n){var a=[yi.Promise.resolve(n)],s=n.files;if(t.checkCRC32)for(var o=0;o<s.length;o++)a.push(wm(s[o]));return yi.Promise.all(a)}).then(function(n){for(var a=n.shift(),s=a.files,o=0;o<s.length;o++){var u=s[o],f=u.fileNameStr,l=_a.resolve(u.fileNameStr);r.file(l,u.decompressed,{binary:!0,optimizedBinaryString:!0,date:u.date,dir:u.dir,comment:u.fileCommentStr.length?u.fileCommentStr:null,unixPermissions:u.unixPermissions,dosPermissions:u.dosPermissions,createFolders:t.createFolders}),u.dir||(r.file(l).unsafeOriginalName=f)}return a.zipComment.length&&(r.comment=a.zipComment),r})}});var ga=_((s0,$f)=>{"use strict";function ae(){if(!(this instanceof ae))return new ae;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 ae;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}ae.prototype=wf();ae.prototype.loadAsync=Uf();ae.support=Se();ae.defaults=pn();ae.version="3.10.1";ae.loadAsync=function(e,t){return new ae().loadAsync(e,t)};ae.external=mt();$f.exports=ae});var Ie=class extends Error{constructor(t,r,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=t,this.nestedError=void 0}},He=class extends Ie{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};var Nt=class{constructor(t,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:(r.push(t),r)}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new He(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(r,i):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function Sr(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}import{EventEmitter as bu}from"node:events";import Ci from"node:child_process";import we from"node:path";import Cr from"node:fs";import D from"node:process";import{stripVTControlCharacters as wu}from"node:util";import{stripVTControlCharacters as _u}from"node:util";var Pt=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(t){this.helpWidth=this.helpWidth??t.helpWidth??80}visibleCommands(t){let r=t.commands.filter(n=>!n._hidden),i=t._getHelpCommand();return i&&!i._hidden&&r.push(i),this.sortSubcommands&&r.sort((n,a)=>n.name().localeCompare(a.name())),r}compareOptions(t,r){let i=n=>n.short?n.short.replace(/^-/,""):n.long.replace(/^--/,"");return i(t).localeCompare(i(r))}visibleOptions(t){let r=t.options.filter(n=>!n.hidden),i=t._getHelpOption();if(i&&!i.hidden){let n=i.short&&t._findOption(i.short),a=i.long&&t._findOption(i.long);!n&&!a?r.push(i):i.long&&!a?r.push(t.createOption(i.long,i.description)):i.short&&!n&&r.push(t.createOption(i.short,i.description))}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let r=[];for(let i=t.parent;i;i=i.parent){let n=i.options.filter(a=>!a.hidden);r.push(...n)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(r=>{r.description=r.description||t._argsDescription[r.name()]||""}),t.registeredArguments.find(r=>r.description)?t.registeredArguments:[]}subcommandTerm(t){let r=t.registeredArguments.map(i=>Sr(i)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,r){return r.visibleCommands(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleSubcommandTerm(r.subcommandTerm(n)))),0)}longestOptionTermLength(t,r){return r.visibleOptions(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestGlobalOptionTermLength(t,r){return r.visibleGlobalOptions(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestArgumentTermLength(t,r){return r.visibleArguments(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleArgumentTerm(r.argumentTerm(n)))),0)}commandUsage(t){let r=t._name;t._aliases[0]&&(r=r+"|"+t._aliases[0]);let i="";for(let n=t.parent;n;n=n.parent)i=n.name()+" "+i;return i+r+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&r.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&r.push(`env: ${t.envVar}`),r.length>0){let i=`(${r.join(", ")})`;return t.description?`${t.description} ${i}`:i}return t.description}argumentDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),t.defaultValue!==void 0&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),r.length>0){let i=`(${r.join(", ")})`;return t.description?`${t.description} ${i}`:i}return t.description}formatItemList(t,r,i){return r.length===0?[]:[i.styleTitle(t),...r,""]}groupItems(t,r,i){let n=new Map;return t.forEach(a=>{let s=i(a);n.has(s)||n.set(s,[])}),r.forEach(a=>{let s=i(a);n.has(s)||n.set(s,[]),n.get(s).push(a)}),n}formatHelp(t,r){let i=r.padWidth(t,r),n=r.helpWidth??80;function a(h,c){return r.formatItem(h,i,c,r)}let s=[`${r.styleTitle("Usage:")} ${r.styleUsage(r.commandUsage(t))}`,""],o=r.commandDescription(t);o.length>0&&(s=s.concat([r.boxWrap(r.styleCommandDescription(o),n),""]));let u=r.visibleArguments(t).map(h=>a(r.styleArgumentTerm(r.argumentTerm(h)),r.styleArgumentDescription(r.argumentDescription(h))));if(s=s.concat(this.formatItemList("Arguments:",u,r)),this.groupItems(t.options,r.visibleOptions(t),h=>h.helpGroupHeading??"Options:").forEach((h,c)=>{let d=h.map(b=>a(r.styleOptionTerm(r.optionTerm(b)),r.styleOptionDescription(r.optionDescription(b))));s=s.concat(this.formatItemList(c,d,r))}),r.showGlobalOptions){let h=r.visibleGlobalOptions(t).map(c=>a(r.styleOptionTerm(r.optionTerm(c)),r.styleOptionDescription(r.optionDescription(c))));s=s.concat(this.formatItemList("Global Options:",h,r))}return this.groupItems(t.commands,r.visibleCommands(t),h=>h.helpGroup()||"Commands:").forEach((h,c)=>{let d=h.map(b=>a(r.styleSubcommandTerm(r.subcommandTerm(b)),r.styleSubcommandDescription(r.subcommandDescription(b))));s=s.concat(this.formatItemList(c,d,r))}),s.join(`
4
- `)}displayWidth(t){return _u(t).length}styleTitle(t){return t}styleUsage(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r==="[command]"?this.styleSubcommandText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleCommandText(r)).join(" ")}styleCommandDescription(t){return this.styleDescriptionText(t)}styleOptionDescription(t){return this.styleDescriptionText(t)}styleSubcommandDescription(t){return this.styleDescriptionText(t)}styleArgumentDescription(t){return this.styleDescriptionText(t)}styleDescriptionText(t){return t}styleOptionTerm(t){return this.styleOptionText(t)}styleSubcommandTerm(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleSubcommandText(r)).join(" ")}styleArgumentTerm(t){return this.styleArgumentText(t)}styleOptionText(t){return t}styleArgumentText(t){return t}styleSubcommandText(t){return t}styleCommandText(t){return t}padWidth(t,r){return Math.max(r.longestOptionTermLength(t,r),r.longestGlobalOptionTermLength(t,r),r.longestSubcommandTermLength(t,r),r.longestArgumentTermLength(t,r))}preformatted(t){return/\n[^\S\r\n]/.test(t)}formatItem(t,r,i,n){let s=" ".repeat(2);if(!i)return s+t;let o=t.padEnd(r+t.length-n.displayWidth(t)),u=2,l=(this.helpWidth??80)-r-u-2,h;return l<this.minWidthToWrap||n.preformatted(i)?h=i:h=n.boxWrap(i,l).replace(/\n/g,`
2
+ var vu=Object.create;var Ia=Object.defineProperty;var bu=Object.getOwnPropertyDescriptor;var wu=Object.getOwnPropertyNames;var yu=Object.getPrototypeOf,xu=Object.prototype.hasOwnProperty;var be=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ku=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of wu(t))!xu.call(e,n)&&n!==r&&Ia(e,n,{get:()=>t[n],enumerable:!(i=bu(t,n))||i.enumerable});return e};var Su=(e,t,r)=>(r=e!=null?vu(yu(e)):{},ku(t||!e||!e.__esModule?Ia(r,"default",{value:e,enumerable:!0}):r,e));var qt=g((s_,Ri)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Ri.exports={nextTick:Qu}:Ri.exports=process;function Qu(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,a,s;switch(n){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,r)});case 4:return process.nextTick(function(){e.call(null,t,r,i)});default:for(a=new Array(n-1),s=0;s<a.length;)a[s++]=arguments[s];return process.nextTick(function(){e.apply(null,a)})}}});var qa=g((o_,La)=>{var eh={}.toString;La.exports=Array.isArray||function(e){return eh.call(e)=="[object Array]"}});var Fi=g((l_,Ma)=>{Ma.exports=be("stream")});var Mt=g((Ni,Wa)=>{var Pr=be("buffer"),ye=Pr.Buffer;function ja(e,t){for(var r in e)t[r]=e[r]}ye.from&&ye.alloc&&ye.allocUnsafe&&ye.allocUnsafeSlow?Wa.exports=Pr:(ja(Pr,Ni),Ni.Buffer=lt);function lt(e,t,r){return ye(e,t,r)}ja(ye,lt);lt.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ye(e,t,r)};lt.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=ye(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};lt.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ye(e)};lt.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Pr.SlowBuffer(e)}});var ft=g(Z=>{function th(e){return Array.isArray?Array.isArray(e):Br(e)==="[object Array]"}Z.isArray=th;function rh(e){return typeof e=="boolean"}Z.isBoolean=rh;function ih(e){return e===null}Z.isNull=ih;function nh(e){return e==null}Z.isNullOrUndefined=nh;function ah(e){return typeof e=="number"}Z.isNumber=ah;function sh(e){return typeof e=="string"}Z.isString=sh;function oh(e){return typeof e=="symbol"}Z.isSymbol=oh;function lh(e){return e===void 0}Z.isUndefined=lh;function fh(e){return Br(e)==="[object RegExp]"}Z.isRegExp=fh;function uh(e){return typeof e=="object"&&e!==null}Z.isObject=uh;function hh(e){return Br(e)==="[object Date]"}Z.isDate=hh;function ch(e){return Br(e)==="[object Error]"||e instanceof Error}Z.isError=ch;function dh(e){return typeof e=="function"}Z.isFunction=dh;function ph(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}Z.isPrimitive=ph;Z.isBuffer=be("buffer").Buffer.isBuffer;function Br(e){return Object.prototype.toString.call(e)}});var Ha=g((u_,Pi)=>{typeof Object.create=="function"?Pi.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Pi.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var ut=g((h_,zi)=>{try{if(Bi=be("util"),typeof Bi.inherits!="function")throw"";zi.exports=Bi.inherits}catch{zi.exports=Ha()}var Bi});var $a=g((c_,Li)=>{"use strict";function mh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ua=Mt().Buffer,jt=be("util");function gh(e,t,r){e.copy(t,r)}Li.exports=(function(){function e(){mh(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},e.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},e.prototype.shift=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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},e.prototype.concat=function(r){if(this.length===0)return Ua.alloc(0);for(var i=Ua.allocUnsafe(r>>>0),n=this.head,a=0;n;)gh(n.data,i,a),a+=n.data.length,n=n.next;return i},e})();jt&&jt.inspect&&jt.inspect.custom&&(Li.exports.prototype[jt.inspect.custom]=function(){var e=jt.inspect({length:this.length});return this.constructor.name+" "+e})});var qi=g((d_,Za)=>{"use strict";var zr=qt();function _h(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,zr.nextTick(Lr,this,e)):zr.nextTick(Lr,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,zr.nextTick(Lr,r,a)):zr.nextTick(Lr,r,a):t&&t(a)}),this)}function vh(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Lr(e,t){e.emit("error",t)}Za.exports={destroy:_h,undestroy:vh}});var Ga=g((p_,Va)=>{Va.exports=be("util").deprecate});var ji=g((m_,rs)=>{"use strict";var $e=qt();rs.exports=M;function Ya(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Bh(t,e)}}var bh=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:$e.nextTick,ht;M.WritableState=Ht;var Xa=Object.create(ft());Xa.inherits=ut();var wh={deprecate:Ga()},Ja=Fi(),Mr=Mt().Buffer,yh=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function xh(e){return Mr.from(e)}function kh(e){return Mr.isBuffer(e)||e instanceof yh}var Qa=qi();Xa.inherits(M,Ja);function Sh(){}function Ht(e,t){ht=ht||Ze(),e=e||{};var r=t instanceof ht;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,n=e.writableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,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 s=e.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(o){Ih(t,o)},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 Ya(this)}Ht.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Ht.prototype,"buffer",{get:wh.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var qr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(qr=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(e){return qr.call(this,e)?!0:this!==M?!1:e&&e._writableState instanceof Ht}})):qr=function(e){return e instanceof this};function M(e){if(ht=ht||Ze(),!qr.call(M,this)&&!(this instanceof ht))return new M(e);this._writableState=new Ht(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)),Ja.call(this)}M.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Eh(e,t){var r=new Error("write after end");e.emit("error",r),$e.nextTick(t,r)}function Ch(e,t,r,i){var n=!0,a=!1;return r===null?a=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),$e.nextTick(i,a),n=!1),n}M.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&kh(e);return a&&!Mr.isBuffer(e)&&(e=xh(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=Sh),i.ended?Eh(this,r):(a||Ch(this,i,e,r))&&(i.pendingcb++,n=Ah(this,i,a,e,t,r)),n};M.prototype.cork=function(){var e=this._writableState;e.corked++};M.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&es(this,e))};M.prototype.setDefaultEncoding=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};function Oh(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Mr.from(t,r)),t}Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ah(e,t,r,i,n,a){if(!r){var s=Oh(t,i,n);i!==s&&(r=!0,n="buffer",i=s)}var o=t.objectMode?1:i.length;t.length+=o;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Mi(e,t,!1,o,i,n,a);return u}function Mi(e,t,r,i,n,a,s){t.writelen=i,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function Th(e,t,r,i,n){--t.pendingcb,r?($e.nextTick(n,i),$e.nextTick(Wt,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),Wt(e,t))}function Dh(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Ih(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(Dh(r),t)Th(e,r,i,t,n);else{var a=ts(r);!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&es(e,r),i?bh(Ka,e,r,a,n):Ka(e,r,a,n)}}function Ka(e,t,r,i){r||Rh(e,t),t.pendingcb--,i(),Wt(e,t)}function Rh(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function es(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),a=t.corkedRequestsFree;a.entry=r;for(var s=0,o=!0;r;)n[s]=r,r.isBuf||(o=!1),r=r.next,s+=1;n.allBuffers=o,Mi(e,t,!0,t.length,n,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new Ya(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback,h=t.objectMode?1:u.length;if(Mi(e,t,!1,h,u,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}M.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};M.prototype._writev=null;M.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||Ph(this,i,r)};function ts(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Fh(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),Wt(e,t)})}function Nh(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,$e.nextTick(Fh,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Wt(e,t){var r=ts(t);return r&&(Nh(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function Ph(e,t,r){t.ending=!0,Wt(e,t),r&&(t.finished?$e.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function Bh(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(M.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});M.prototype.destroy=Qa.destroy;M.prototype._undestroy=Qa.undestroy;M.prototype._destroy=function(e,t){this.end(),t(e)}});var Ze=g((g_,ss)=>{"use strict";var is=qt(),zh=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};ss.exports=xe;var ns=Object.create(ft());ns.inherits=ut();var as=Ui(),Hi=ji();ns.inherits(xe,as);for(Wi=zh(Hi.prototype),jr=0;jr<Wi.length;jr++)Wr=Wi[jr],xe.prototype[Wr]||(xe.prototype[Wr]=Hi.prototype[Wr]);var Wi,Wr,jr;function xe(e){if(!(this instanceof xe))return new xe(e);as.call(this,e),Hi.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",Lh)}Object.defineProperty(xe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Lh(){this.allowHalfOpen||this._writableState.ended||is.nextTick(qh,this)}function qh(e){e.end()}Object.defineProperty(xe.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}});xe.prototype._destroy=function(e,t){this.push(null),this.end(),is.nextTick(t,e)}});var Vi=g(ls=>{"use strict";var Zi=Mt().Buffer,os=Zi.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 Mh(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}}function jh(e){var t=Mh(e);if(typeof t!="string"&&(Zi.isEncoding===os||!os(e)))throw new Error("Unknown encoding: "+e);return t||e}ls.StringDecoder=Ut;function Ut(e){this.encoding=jh(e);var t;switch(this.encoding){case"utf16le":this.text=Vh,this.end=Gh,t=4;break;case"utf8":this.fillLast=Uh,t=4;break;case"base64":this.text=Kh,this.end=Yh,t=3;break;default:this.write=Xh,this.end=Jh;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Zi.allocUnsafe(t)}Ut.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||""};Ut.prototype.end=Zh;Ut.prototype.text=$h;Ut.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 $i(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Wh(e,t,r){var i=t.length-1;if(i<r)return 0;var n=$i(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||n===-2?0:(n=$i(t[i]),n>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||n===-2?0:(n=$i(t[i]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function Hh(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"}}function Uh(e){var t=this.lastTotal-this.lastNeed,r=Hh(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}function $h(e,t){var r=Wh(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)}function Zh(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function Vh(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)}function Gh(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}function Kh(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))}function Yh(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function Xh(e){return e.toString(this.encoding)}function Jh(e){return e&&e.length?this.write(e):""}});var Ui=g((b_,ws)=>{"use strict";var dt=qt();ws.exports=N;var Qh=qa(),$t;N.ReadableState=ms;var v_=be("events").EventEmitter,cs=function(e,t){return e.listeners(t).length},Ji=Fi(),Zt=Mt().Buffer,ec=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function tc(e){return Zt.from(e)}function rc(e){return Zt.isBuffer(e)||e instanceof ec}var ds=Object.create(ft());ds.inherits=ut();var Gi=be("util"),I=void 0;Gi&&Gi.debuglog?I=Gi.debuglog("stream"):I=function(){};var ic=$a(),ps=qi(),ct;ds.inherits(N,Ji);var Ki=["error","close","destroy","pause","resume"];function nc(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Qh(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function ms(e,t){$t=$t||Ze(),e=e||{};var r=t instanceof $t;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,n=e.readableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new ic,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&&(ct||(ct=Vi().StringDecoder),this.decoder=new ct(e.encoding),this.encoding=e.encoding)}function N(e){if($t=$t||Ze(),!(this instanceof N))return new N(e);this._readableState=new ms(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Ji.call(this)}Object.defineProperty(N.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});N.prototype.destroy=ps.destroy;N.prototype._undestroy=ps.undestroy;N.prototype._destroy=function(e,t){this.push(null),t(e)};N.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=Zt.from(e,t),t=""),i=!0),gs(this,e,t,!1,i)};N.prototype.unshift=function(e){return gs(this,e,null,!0,!1)};function gs(e,t,r,i,n){var a=e._readableState;if(t===null)a.reading=!1,lc(e,a);else{var s;n||(s=ac(a,t)),s?e.emit("error",s):a.objectMode||t&&t.length>0?(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==Zt.prototype&&(t=tc(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Yi(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?Yi(e,a,t,!1):_s(e,a)):Yi(e,a,t,!1))):i||(a.reading=!1)}return sc(a)}function Yi(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&&Hr(e)),_s(e,t)}function ac(e,t){var r;return!rc(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function sc(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}N.prototype.isPaused=function(){return this._readableState.flowing===!1};N.prototype.setEncoding=function(e){return ct||(ct=Vi().StringDecoder),this._readableState.decoder=new ct(e),this._readableState.encoding=e,this};var fs=8388608;function oc(e){return e>=fs?e=fs:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function us(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=oc(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}N.prototype.read=function(e){I("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 I("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Xi(this):Hr(this),null;if(e=us(e,t),e===0&&t.ended)return t.length===0&&Xi(this),null;var i=t.needReadable;I("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,I("length less than watermark",i)),t.ended||t.reading?(i=!1,I("reading or ended",i)):i&&(I("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=us(r,t)));var n;return e>0?n=vs(e,t):n=null,n===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Xi(this)),n!==null&&this.emit("data",n),n};function lc(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,Hr(e)}}function Hr(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(I("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?dt.nextTick(hs,e):hs(e))}function hs(e){I("emit readable"),e.emit("readable"),Qi(e)}function _s(e,t){t.readingMore||(t.readingMore=!0,dt.nextTick(fc,e,t))}function fc(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(I("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}N.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};N.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,I("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,a=n?o:x;i.endEmitted?dt.nextTick(a):r.once("end",a),e.on("unpipe",s);function s(_,p){I("onunpipe"),_===r&&p&&p.hasUnpiped===!1&&(p.hasUnpiped=!0,l())}function o(){I("onend"),e.end()}var u=uc(r);e.on("drain",u);var f=!1;function l(){I("cleanup"),e.removeListener("close",b),e.removeListener("finish",w),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",s),r.removeListener("end",o),r.removeListener("end",x),r.removeListener("data",c),f=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}var h=!1;r.on("data",c);function c(_){I("ondata"),h=!1;var p=e.write(_);p===!1&&!h&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&bs(i.pipes,e)!==-1)&&!f&&(I("false write response, pause",i.awaitDrain),i.awaitDrain++,h=!0),r.pause())}function d(_){I("onerror",_),x(),e.removeListener("error",d),cs(e,"error")===0&&e.emit("error",_)}nc(e,"error",d);function b(){e.removeListener("finish",w),x()}e.once("close",b);function w(){I("onfinish"),e.removeListener("close",b),x()}e.once("finish",w);function x(){I("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(I("pipe resume"),r.resume()),e};function uc(e){return function(){var t=e._readableState;I("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&cs(e,"data")&&(t.flowing=!0,Qi(e))}}N.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,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var s=bs(t.pipes,e);return s===-1?this:(t.pipes.splice(s,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};N.prototype.on=function(e,t){var r=Ji.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&&Hr(this):dt.nextTick(hc,this))}return r};N.prototype.addListener=N.prototype.on;function hc(e){I("readable nexttick read 0"),e.read(0)}N.prototype.resume=function(){var e=this._readableState;return e.flowing||(I("resume"),e.flowing=!0,cc(this,e)),this};function cc(e,t){t.resumeScheduled||(t.resumeScheduled=!0,dt.nextTick(dc,e,t))}function dc(e,t){t.reading||(I("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Qi(e),t.flowing&&!t.reading&&e.read(0)}N.prototype.pause=function(){return I("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(I("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Qi(e){var t=e._readableState;for(I("flow",t.flowing);t.flowing&&e.read()!==null;);}N.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(I("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&t.push(s)}t.push(null)}),e.on("data",function(s){if(I("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var o=t.push(s);o||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(s){return function(){return e[s].apply(e,arguments)}})(n));for(var a=0;a<Ki.length;a++)e.on(Ki[a],this.emit.bind(this,Ki[a]));return this._read=function(s){I("wrapped _read",s),i&&(i=!1,e.resume())},this};Object.defineProperty(N.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});N._fromList=vs;function vs(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=pc(e,t.buffer,t.decoder),r}function pc(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?mc(e,t):gc(e,t),i}function mc(e,t){var r=t.head,i=1,n=r.data;for(e-=n.length;r=r.next;){var a=r.data,s=e>a.length?a.length:e;if(s===a.length?n+=a:n+=a.slice(0,e),e-=s,e===0){s===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(s));break}++i}return t.length-=i,n}function gc(e,t){var r=Zt.allocUnsafe(e),i=t.head,n=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var a=i.data,s=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,s),e-=s,e===0){s===a.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=a.slice(s));break}++n}return t.length-=n,r}function Xi(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,dt.nextTick(_c,t,e))}function _c(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function bs(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var en=g((w_,ks)=>{"use strict";ks.exports=ke;var Ur=Ze(),xs=Object.create(ft());xs.inherits=ut();xs.inherits(ke,Ur);function vc(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 n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function ke(e){if(!(this instanceof ke))return new ke(e);Ur.call(this,e),this._transformState={afterTransform:vc.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",bc)}function bc(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){ys(e,t,r)}):ys(this,null,null)}ke.prototype.push=function(e,t){return this._transformState.needTransform=!1,Ur.prototype.push.call(this,e,t)};ke.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};ke.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};ke.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};ke.prototype._destroy=function(e,t){var r=this;Ur.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function ys(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)}});var Os=g((y_,Cs)=>{"use strict";Cs.exports=Vt;var Ss=en(),Es=Object.create(ft());Es.inherits=ut();Es.inherits(Vt,Ss);function Vt(e){if(!(this instanceof Vt))return new Vt(e);Ss.call(this,e)}Vt.prototype._transform=function(e,t,r){r(null,e)}});var tn=g((H,$r)=>{var ce=be("stream");process.env.READABLE_STREAM==="disable"&&ce?($r.exports=ce,H=$r.exports=ce.Readable,H.Readable=ce.Readable,H.Writable=ce.Writable,H.Duplex=ce.Duplex,H.Transform=ce.Transform,H.PassThrough=ce.PassThrough,H.Stream=ce):(H=$r.exports=Ui(),H.Stream=ce||H,H.Readable=H,H.Writable=ji(),H.Duplex=Ze(),H.Transform=en(),H.PassThrough=Os())});var Se=g(ee=>{"use strict";ee.base64=!0;ee.array=!0;ee.string=!0;ee.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";ee.nodebuffer=typeof Buffer<"u";ee.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")ee.blob=!1;else{rn=new ArrayBuffer(0);try{ee.blob=new Blob([rn],{type:"application/zip"}).size===0}catch{try{As=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,nn=new As,nn.append(rn),ee.blob=nn.getBlob("application/zip").size===0}catch{ee.blob=!1}}}var rn,As,nn;try{ee.nodestream=!!tn().Readable}catch{ee.nodestream=!1}});var sn=g(an=>{"use strict";var wc=B(),yc=Se(),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";an.encode=function(e){for(var t=[],r,i,n,a,s,o,u,f=0,l=e.length,h=l,c=wc.getTypeOf(e)!=="string";f<e.length;)h=l-f,c?(r=e[f++],i=f<l?e[f++]:0,n=f<l?e[f++]:0):(r=e.charCodeAt(f++),i=f<l?e.charCodeAt(f++):0,n=f<l?e.charCodeAt(f++):0),a=r>>2,s=(r&3)<<4|i>>4,o=h>1?(i&15)<<2|n>>6:64,u=h>2?n&63:64,t.push(de.charAt(a)+de.charAt(s)+de.charAt(o)+de.charAt(u));return t.join("")};an.decode=function(e){var t,r,i,n,a,s,o,u=0,f=0,l="data:";if(e.substr(0,l.length)===l)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var h=e.length*3/4;if(e.charAt(e.length-1)===de.charAt(64)&&h--,e.charAt(e.length-2)===de.charAt(64)&&h--,h%1!==0)throw new Error("Invalid base64 input, bad content length.");var c;for(yc.uint8array?c=new Uint8Array(h|0):c=new Array(h|0);u<e.length;)n=de.indexOf(e.charAt(u++)),a=de.indexOf(e.charAt(u++)),s=de.indexOf(e.charAt(u++)),o=de.indexOf(e.charAt(u++)),t=n<<2|a>>4,r=(a&15)<<4|s>>2,i=(s&3)<<6|o,c[f++]=t,s!==64&&(c[f++]=r),o!==64&&(c[f++]=i);return c}});var Gt=g((S_,Ts)=>{"use strict";Ts.exports={isNode:typeof Buffer<"u",newBufferFrom: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)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&typeof e.on=="function"&&typeof e.pause=="function"&&typeof e.resume=="function"}}});var Fs=g((E_,Rs)=>{"use strict";var Ds=global.MutationObserver||global.WebKitMutationObserver,pt;process.browser?Ds?(on=0,Is=new Ds(Kt),ln=global.document.createTextNode(""),Is.observe(ln,{characterData:!0}),pt=function(){ln.data=on=++on%2}):!global.setImmediate&&typeof global.MessageChannel<"u"?(fn=new global.MessageChannel,fn.port1.onmessage=Kt,pt=function(){fn.port2.postMessage(0)}):"document"in global&&"onreadystatechange"in global.document.createElement("script")?pt=function(){var e=global.document.createElement("script");e.onreadystatechange=function(){Kt(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},global.document.documentElement.appendChild(e)}:pt=function(){setTimeout(Kt,0)}:pt=function(){process.nextTick(Kt)};var on,Is,ln,fn,un,Yt=[];function Kt(){un=!0;for(var e,t,r=Yt.length;r;){for(t=Yt,Yt=[],e=-1;++e<r;)t[e]();r=Yt.length}un=!1}Rs.exports=xc;function xc(e){Yt.push(e)===1&&!un&&pt()}});var Ms=g((C_,qs)=>{"use strict";var Ns=Fs();function mt(){}var V={},Ps=["REJECTED"],hn=["FULFILLED"],Bs=["PENDING"];process.browser||(Xt=["UNHANDLED"]);var Xt;qs.exports=Re;function Re(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=Bs,this.queue=[],this.outcome=void 0,process.browser||(this.handled=Xt),e!==mt&&zs(this,e)}Re.prototype.finally=function(e){if(typeof e!="function")return this;var t=this.constructor;return this.then(r,i);function r(n){function a(){return n}return t.resolve(e()).then(a)}function i(n){function a(){throw n}return t.resolve(e()).then(a)}};Re.prototype.catch=function(e){return this.then(null,e)};Re.prototype.then=function(e,t){if(typeof e!="function"&&this.state===hn||typeof t!="function"&&this.state===Ps)return this;var r=new this.constructor(mt);if(process.browser||this.handled===Xt&&(this.handled=null),this.state!==Bs){var i=this.state===hn?e:t;cn(r,i,this.outcome)}else this.queue.push(new Jt(r,e,t));return r};function Jt(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)}Jt.prototype.callFulfilled=function(e){V.resolve(this.promise,e)};Jt.prototype.otherCallFulfilled=function(e){cn(this.promise,this.onFulfilled,e)};Jt.prototype.callRejected=function(e){V.reject(this.promise,e)};Jt.prototype.otherCallRejected=function(e){cn(this.promise,this.onRejected,e)};function cn(e,t,r){Ns(function(){var i;try{i=t(r)}catch(n){return V.reject(e,n)}i===e?V.reject(e,new TypeError("Cannot resolve promise with itself")):V.resolve(e,i)})}V.resolve=function(e,t){var r=Ls(kc,t);if(r.status==="error")return V.reject(e,r.value);var i=r.value;if(i)zs(e,i);else{e.state=hn,e.outcome=t;for(var n=-1,a=e.queue.length;++n<a;)e.queue[n].callFulfilled(t)}return e};V.reject=function(e,t){e.state=Ps,e.outcome=t,process.browser||e.handled===Xt&&Ns(function(){e.handled===Xt&&process.emit("unhandledRejection",t,e)});for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e};function kc(e){var t=e&&e.then;if(e&&(typeof e=="object"||typeof e=="function")&&typeof t=="function")return function(){t.apply(e,arguments)}}function zs(e,t){var r=!1;function i(o){r||(r=!0,V.reject(e,o))}function n(o){r||(r=!0,V.resolve(e,o))}function a(){t(n,i)}var s=Ls(a);s.status==="error"&&i(s.value)}function Ls(e,t){var r={};try{r.value=e(t),r.status="success"}catch(i){r.status="error",r.value=i}return r}Re.resolve=Sc;function Sc(e){return e instanceof this?e:V.resolve(new this(mt),e)}Re.reject=Ec;function Ec(e){var t=new this(mt);return V.reject(t,e)}Re.all=Cc;function Cc(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 n=new Array(r),a=0,s=-1,o=new this(mt);++s<r;)u(e[s],s);return o;function u(f,l){t.resolve(f).then(h,function(c){i||(i=!0,V.reject(o,c))});function h(c){n[l]=c,++a===r&&!i&&(i=!0,V.resolve(o,n))}}}Re.race=Oc;function Oc(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 n=-1,a=new this(mt);++n<r;)s(e[n]);return a;function s(o){t.resolve(o).then(function(u){i||(i=!0,V.resolve(a,u))},function(u){i||(i=!0,V.reject(a,u))})}}});var gt=g((O_,js)=>{"use strict";var dn=null;typeof Promise<"u"?dn=Promise:dn=Ms();js.exports={Promise:dn}});var Hs=g(Ws=>{(function(e,t){"use strict";if(e.setImmediate)return;var r=1,i={},n=!1,a=e.document,s;function o(p){typeof p!="function"&&(p=new Function(""+p));for(var y=new Array(arguments.length-1),m=0;m<y.length;m++)y[m]=arguments[m+1];var v={callback:p,args:y};return i[r]=v,s(r),r++}function u(p){delete i[p]}function f(p){var y=p.callback,m=p.args;switch(m.length){case 0:y();break;case 1:y(m[0]);break;case 2:y(m[0],m[1]);break;case 3:y(m[0],m[1],m[2]);break;default:y.apply(t,m);break}}function l(p){if(n)setTimeout(l,0,p);else{var y=i[p];if(y){n=!0;try{f(y)}finally{u(p),n=!1}}}}function h(){s=function(p){process.nextTick(function(){l(p)})}}function c(){if(e.postMessage&&!e.importScripts){var p=!0,y=e.onmessage;return e.onmessage=function(){p=!1},e.postMessage("","*"),e.onmessage=y,p}}function d(){var p="setImmediate$"+Math.random()+"$",y=function(m){m.source===e&&typeof m.data=="string"&&m.data.indexOf(p)===0&&l(+m.data.slice(p.length))};e.addEventListener?e.addEventListener("message",y,!1):e.attachEvent("onmessage",y),s=function(m){e.postMessage(p+m,"*")}}function b(){var p=new MessageChannel;p.port1.onmessage=function(y){var m=y.data;l(m)},s=function(y){p.port2.postMessage(y)}}function w(){var p=a.documentElement;s=function(y){var m=a.createElement("script");m.onreadystatechange=function(){l(y),m.onreadystatechange=null,p.removeChild(m),m=null},p.appendChild(m)}}function x(){s=function(p){setTimeout(l,0,p)}}var _=Object.getPrototypeOf&&Object.getPrototypeOf(e);_=_&&_.setTimeout?_:e,{}.toString.call(e.process)==="[object process]"?h():c()?d():e.MessageChannel?b():a&&"onreadystatechange"in a.createElement("script")?w():x(),_.setImmediate=o,_.clearImmediate=u})(typeof self>"u"?typeof global>"u"?Ws:global:self)});var B=g(j=>{"use strict";var Fe=Se(),Ac=sn(),_t=Gt(),pn=gt();Hs();function Tc(e){var t=null;return Fe.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),Vr(e,t)}j.newBlob=function(e,t){j.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 Qt(e){return e}function Vr(e,t){for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)&255;return t}var Zr={stringifyByChunk:function(e,t,r){var i=[],n=0,a=e.length;if(a<=r)return String.fromCharCode.apply(null,e);for(;n<a;)t==="array"||t==="nodebuffer"?i.push(String.fromCharCode.apply(null,e.slice(n,Math.min(n+r,a)))):i.push(String.fromCharCode.apply(null,e.subarray(n,Math.min(n+r,a)))),n+=r;return i.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:(function(){try{return Fe.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return Fe.nodebuffer&&String.fromCharCode.apply(null,_t.allocBuffer(1)).length===1}catch{return!1}})()}};function er(e){var t=65536,r=j.getTypeOf(e),i=!0;if(r==="uint8array"?i=Zr.applyCanBeUsed.uint8array:r==="nodebuffer"&&(i=Zr.applyCanBeUsed.nodebuffer),i)for(;t>1;)try{return Zr.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return Zr.stringifyByChar(e)}j.applyFromCharCode=er;function Gr(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}var Ne={};Ne.string={string:Qt,array:function(e){return Vr(e,new Array(e.length))},arraybuffer:function(e){return Ne.string.uint8array(e).buffer},uint8array:function(e){return Vr(e,new Uint8Array(e.length))},nodebuffer:function(e){return Vr(e,_t.allocBuffer(e.length))}};Ne.array={string:er,array:Qt,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return _t.newBufferFrom(e)}};Ne.arraybuffer={string:function(e){return er(new Uint8Array(e))},array:function(e){return Gr(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:Qt,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return _t.newBufferFrom(new Uint8Array(e))}};Ne.uint8array={string:er,array:function(e){return Gr(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:Qt,nodebuffer:function(e){return _t.newBufferFrom(e)}};Ne.nodebuffer={string:er,array:function(e){return Gr(e,new Array(e.length))},arraybuffer:function(e){return Ne.nodebuffer.uint8array(e).buffer},uint8array:function(e){return Gr(e,new Uint8Array(e.length))},nodebuffer:Qt};j.transformTo=function(e,t){if(t||(t=""),!e)return t;j.checkSupport(e);var r=j.getTypeOf(t),i=Ne[r][e](t);return i};j.resolve=function(e){for(var t=e.split("/"),r=[],i=0;i<t.length;i++){var n=t[i];n==="."||n===""&&i!==0&&i!==t.length-1||(n===".."?r.pop():r.push(n))}return r.join("/")};j.getTypeOf=function(e){if(typeof e=="string")return"string";if(Object.prototype.toString.call(e)==="[object Array]")return"array";if(Fe.nodebuffer&&_t.isBuffer(e))return"nodebuffer";if(Fe.uint8array&&e instanceof Uint8Array)return"uint8array";if(Fe.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer"};j.checkSupport=function(e){var t=Fe[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this platform")};j.MAX_VALUE_16BITS=65535;j.MAX_VALUE_32BITS=-1;j.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};j.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})};j.inherits=function(e,t){var r=function(){};r.prototype=t.prototype,e.prototype=new r};j.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};j.prepareContent=function(e,t,r,i,n){var a=pn.Promise.resolve(t).then(function(s){var o=Fe.blob&&(s instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(s))!==-1);return o&&typeof FileReader<"u"?new pn.Promise(function(u,f){var l=new FileReader;l.onload=function(h){u(h.target.result)},l.onerror=function(h){f(h.target.error)},l.readAsArrayBuffer(s)}):s});return a.then(function(s){var o=j.getTypeOf(s);return o?(o==="arraybuffer"?s=j.transformTo("uint8array",s):o==="string"&&(n?s=Ac.decode(s):r&&i!==!0&&(s=Tc(s))),s):pn.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}});var te=g((D_,$s)=>{"use strict";function Us(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}Us.prototype={push:function(e){this.emit("data",e)},end: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},error: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)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious: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},pause:function(){return this.isPaused||this.isFinished?!1:(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume: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},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}};$s.exports=Us});var bt=g(Pe=>{"use strict";var vt=B(),Ve=Se(),Dc=Gt(),Kr=te(),tr=new Array(256);for(Ee=0;Ee<256;Ee++)tr[Ee]=Ee>=252?6:Ee>=248?5:Ee>=240?4:Ee>=224?3:Ee>=192?2:1;var Ee;tr[254]=tr[254]=1;var Ic=function(e){var t,r,i,n,a,s=e.length,o=0;for(n=0;n<s;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<s&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),o+=r<128?1:r<2048?2:r<65536?3:4;for(Ve.uint8array?t=new Uint8Array(o):t=new Array(o),a=0,n=0;a<o;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<s&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|r&63):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|r&63):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|r&63);return t},Rc=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+tr[e[r]]>t?r:t},Fc=function(e){var t,r,i,n,a=e.length,s=new Array(a*2);for(r=0,t=0;t<a;){if(i=e[t++],i<128){s[r++]=i;continue}if(n=tr[i],n>4){s[r++]=65533,t+=n-1;continue}for(i&=n===2?31:n===3?15:7;n>1&&t<a;)i=i<<6|e[t++]&63,n--;if(n>1){s[r++]=65533;continue}i<65536?s[r++]=i:(i-=65536,s[r++]=55296|i>>10&1023,s[r++]=56320|i&1023)}return s.length!==r&&(s.subarray?s=s.subarray(0,r):s.length=r),vt.applyFromCharCode(s)};Pe.utf8encode=function(t){return Ve.nodebuffer?Dc.newBufferFrom(t,"utf-8"):Ic(t)};Pe.utf8decode=function(t){return Ve.nodebuffer?vt.transformTo("nodebuffer",t).toString("utf-8"):(t=vt.transformTo(Ve.uint8array?"uint8array":"array",t),Fc(t))};function Yr(){Kr.call(this,"utf-8 decode"),this.leftOver=null}vt.inherits(Yr,Kr);Yr.prototype.processChunk=function(e){var t=vt.transformTo(Ve.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(Ve.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=Rc(t),n=t;i!==t.length&&(Ve.uint8array?(n=t.subarray(0,i),this.leftOver=t.subarray(i,t.length)):(n=t.slice(0,i),this.leftOver=t.slice(i,t.length))),this.push({data:Pe.utf8decode(n),meta:e.meta})};Yr.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:Pe.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};Pe.Utf8DecodeWorker=Yr;function mn(){Kr.call(this,"utf-8 encode")}vt.inherits(mn,Kr);mn.prototype.processChunk=function(e){this.push({data:Pe.utf8encode(e.data),meta:e.meta})};Pe.Utf8EncodeWorker=mn});var Ks=g((R_,Gs)=>{"use strict";var Zs=te(),Vs=B();function gn(e){Zs.call(this,"ConvertWorker to "+e),this.destType=e}Vs.inherits(gn,Zs);gn.prototype.processChunk=function(e){this.push({data:Vs.transformTo(this.destType,e.data),meta:e.meta})};Gs.exports=gn});var Js=g((F_,Xs)=>{"use strict";var Ys=tn().Readable,Nc=B();Nc.inherits(_n,Ys);function _n(e,t,r){Ys.call(this,t),this._helper=e;var i=this;e.on("data",function(n,a){i.push(n)||i._helper.pause(),r&&r(a)}).on("error",function(n){i.emit("error",n)}).on("end",function(){i.push(null)})}_n.prototype._read=function(){this._helper.resume()};Xs.exports=_n});var vn=g((N_,to)=>{"use strict";var Ge=B(),Pc=Ks(),Bc=te(),zc=sn(),Lc=Se(),qc=gt(),Qs=null;if(Lc.nodestream)try{Qs=Js()}catch{}function Mc(e,t,r){switch(e){case"blob":return Ge.newBlob(Ge.transformTo("arraybuffer",t),r);case"base64":return zc.encode(t);default:return Ge.transformTo(e,t)}}function jc(e,t){var r,i=0,n=null,a=0;for(r=0;r<t.length;r++)a+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(n=new Uint8Array(a),r=0;r<t.length;r++)n.set(t[r],i),i+=t[r].length;return n;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}function Wc(e,t){return new qc.Promise(function(r,i){var n=[],a=e._internalType,s=e._outputType,o=e._mimeType;e.on("data",function(u,f){n.push(u),t&&t(f)}).on("error",function(u){n=[],i(u)}).on("end",function(){try{var u=Mc(s,jc(a,n),o);r(u)}catch(f){i(f)}n=[]}).resume()})}function eo(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,Ge.checkSupport(i),this._worker=e.pipe(new Pc(i)),e.lock()}catch(n){this._worker=new Bc("error"),this._worker.error(n)}}eo.prototype={accumulate:function(e){return Wc(this,e)},on: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(){Ge.delay(t,arguments,r)}),this},resume:function(){return Ge.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(Ge.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new Qs(this,{objectMode:this._outputType!=="nodebuffer"},e)}};to.exports=eo});var bn=g(oe=>{"use strict";oe.base64=!1;oe.binary=!1;oe.dir=!1;oe.createFolders=!0;oe.date=null;oe.compression=null;oe.compressionOptions=null;oe.comment=null;oe.unixPermissions=null;oe.dosPermissions=null});var wn=g((B_,ro)=>{"use strict";var Xr=B(),Jr=te(),Hc=16*1024;function wt(e){Jr.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=Xr.getTypeOf(r),t.isPaused||t._tickAndRepeat()},function(r){t.error(r)})}Xr.inherits(wt,Jr);wt.prototype.cleanUp=function(){Jr.prototype.cleanUp.call(this),this.data=null};wt.prototype.resume=function(){return Jr.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Xr.delay(this._tickAndRepeat,[],this)),!0):!1};wt.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(Xr.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};wt.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=Hc,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}})};ro.exports=wt});var Qr=g((z_,no)=>{"use strict";var Uc=B();function $c(){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}var io=$c();function Zc(e,t,r,i){var n=io,a=i+r;e=e^-1;for(var s=i;s<a;s++)e=e>>>8^n[(e^t[s])&255];return e^-1}function Vc(e,t,r,i){var n=io,a=i+r;e=e^-1;for(var s=i;s<a;s++)e=e>>>8^n[(e^t.charCodeAt(s))&255];return e^-1}no.exports=function(t,r){if(typeof t>"u"||!t.length)return 0;var i=Uc.getTypeOf(t)!=="string";return i?Zc(r|0,t,t.length,0):Vc(r|0,t,t.length,0)}});var xn=g((L_,so)=>{"use strict";var ao=te(),Gc=Qr(),Kc=B();function yn(){ao.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Kc.inherits(yn,ao);yn.prototype.processChunk=function(e){this.streamInfo.crc32=Gc(e.data,this.streamInfo.crc32||0),this.push(e)};so.exports=yn});var lo=g((q_,oo)=>{"use strict";var Yc=B(),kn=te();function Sn(e){kn.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}Yc.inherits(Sn,kn);Sn.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}kn.prototype.processChunk.call(this,e)};oo.exports=Sn});var ei=g((M_,ho)=>{"use strict";var fo=gt(),uo=wn(),Xc=xn(),En=lo();function Cn(e,t,r,i,n){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=n}Cn.prototype={getContentWorker:function(){var e=new uo(fo.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new En("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},getCompressedWorker:function(){return new uo(fo.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};Cn.createWorkerFrom=function(e,t,r){return e.pipe(new Xc).pipe(new En("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new En("compressedSize")).withStreamInfo("compression",t)};ho.exports=Cn});var go=g((j_,mo)=>{"use strict";var Jc=vn(),Qc=wn(),On=bt(),An=ei(),co=te(),Tn=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}};Tn.prototype={internalStream: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 n=!this._dataBinary;n&&!i&&(t=t.pipe(new On.Utf8EncodeWorker)),!n&&i&&(t=t.pipe(new On.Utf8DecodeWorker))}catch(a){t=new co("error"),t.error(a)}return new Jc(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof An&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new On.Utf8EncodeWorker)),An.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof An?this._data.getContentWorker():this._data instanceof co?this._data:new Qc(this._data)}};var po=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],ed=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(ti=0;ti<po.length;ti++)Tn.prototype[po[ti]]=ed;var ti;mo.exports=Tn});var Ce=g(G=>{"use strict";var td=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function rd(e,t){return Object.prototype.hasOwnProperty.call(e,t)}G.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)rd(r,i)&&(e[i]=r[i])}}return e};G.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var id={arraySet:function(e,t,r,i,n){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+i),n);return}for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){var t,r,i,n,a,s;for(i=0,t=0,r=e.length;t<r;t++)i+=e[t].length;for(s=new Uint8Array(i),n=0,t=0,r=e.length;t<r;t++)a=e[t],s.set(a,n),n+=a.length;return s}},nd={arraySet:function(e,t,r,i,n){for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};G.setTyped=function(e){e?(G.Buf8=Uint8Array,G.Buf16=Uint16Array,G.Buf32=Int32Array,G.assign(G,id)):(G.Buf8=Array,G.Buf16=Array,G.Buf32=Array,G.assign(G,nd))};G.setTyped(td)});var qo=g(kt=>{"use strict";var ad=Ce(),sd=4,_o=0,vo=1,od=2;function xt(e){for(var t=e.length;--t>=0;)e[t]=0}var ld=0,So=1,fd=2,ud=3,hd=258,Bn=29,or=256,ir=or+1+Bn,yt=30,zn=19,Eo=2*ir+1,Ke=15,Dn=16,cd=7,Ln=256,Co=16,Oo=17,Ao=18,Nn=[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],ri=[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],dd=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],To=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],pd=512,Oe=new Array((ir+2)*2);xt(Oe);var rr=new Array(yt*2);xt(rr);var nr=new Array(pd);xt(nr);var ar=new Array(hd-ud+1);xt(ar);var qn=new Array(Bn);xt(qn);var ii=new Array(yt);xt(ii);function In(e,t,r,i,n){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=n,this.has_stree=e&&e.length}var Do,Io,Ro;function Rn(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Fo(e){return e<256?nr[e]:nr[256+(e>>>7)]}function sr(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function X(e,t,r){e.bi_valid>Dn-r?(e.bi_buf|=t<<e.bi_valid&65535,sr(e,e.bi_buf),e.bi_buf=t>>Dn-e.bi_valid,e.bi_valid+=r-Dn):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function pe(e,t,r){X(e,r[t*2],r[t*2+1])}function No(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function md(e){e.bi_valid===16?(sr(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)}function gd(e,t){var r=t.dyn_tree,i=t.max_code,n=t.stat_desc.static_tree,a=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,u=t.stat_desc.max_length,f,l,h,c,d,b,w=0;for(c=0;c<=Ke;c++)e.bl_count[c]=0;for(r[e.heap[e.heap_max]*2+1]=0,f=e.heap_max+1;f<Eo;f++)l=e.heap[f],c=r[r[l*2+1]*2+1]+1,c>u&&(c=u,w++),r[l*2+1]=c,!(l>i)&&(e.bl_count[c]++,d=0,l>=o&&(d=s[l-o]),b=r[l*2],e.opt_len+=b*(c+d),a&&(e.static_len+=b*(n[l*2+1]+d)));if(w!==0){do{for(c=u-1;e.bl_count[c]===0;)c--;e.bl_count[c]--,e.bl_count[c+1]+=2,e.bl_count[u]--,w-=2}while(w>0);for(c=u;c!==0;c--)for(l=e.bl_count[c];l!==0;)h=e.heap[--f],!(h>i)&&(r[h*2+1]!==c&&(e.opt_len+=(c-r[h*2+1])*r[h*2],r[h*2+1]=c),l--)}}function Po(e,t,r){var i=new Array(Ke+1),n=0,a,s;for(a=1;a<=Ke;a++)i[a]=n=n+r[a-1]<<1;for(s=0;s<=t;s++){var o=e[s*2+1];o!==0&&(e[s*2]=No(i[o]++,o))}}function _d(){var e,t,r,i,n,a=new Array(Ke+1);for(r=0,i=0;i<Bn-1;i++)for(qn[i]=r,e=0;e<1<<Nn[i];e++)ar[r++]=i;for(ar[r-1]=i,n=0,i=0;i<16;i++)for(ii[i]=n,e=0;e<1<<ri[i];e++)nr[n++]=i;for(n>>=7;i<yt;i++)for(ii[i]=n<<7,e=0;e<1<<ri[i]-7;e++)nr[256+n++]=i;for(t=0;t<=Ke;t++)a[t]=0;for(e=0;e<=143;)Oe[e*2+1]=8,e++,a[8]++;for(;e<=255;)Oe[e*2+1]=9,e++,a[9]++;for(;e<=279;)Oe[e*2+1]=7,e++,a[7]++;for(;e<=287;)Oe[e*2+1]=8,e++,a[8]++;for(Po(Oe,ir+1,a),e=0;e<yt;e++)rr[e*2+1]=5,rr[e*2]=No(e,5);Do=new In(Oe,Nn,or+1,ir,Ke),Io=new In(rr,ri,0,yt,Ke),Ro=new In(new Array(0),dd,0,zn,cd)}function Bo(e){var t;for(t=0;t<ir;t++)e.dyn_ltree[t*2]=0;for(t=0;t<yt;t++)e.dyn_dtree[t*2]=0;for(t=0;t<zn;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Ln*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function zo(e){e.bi_valid>8?sr(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function vd(e,t,r,i){zo(e),i&&(sr(e,r),sr(e,~r)),ad.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function bo(e,t,r,i){var n=t*2,a=r*2;return e[n]<e[a]||e[n]===e[a]&&i[t]<=i[r]}function Fn(e,t,r){for(var i=e.heap[r],n=r<<1;n<=e.heap_len&&(n<e.heap_len&&bo(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!bo(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i}function wo(e,t,r){var i,n,a=0,s,o;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],n=e.pending_buf[e.l_buf+a],a++,i===0?pe(e,n,t):(s=ar[n],pe(e,s+or+1,t),o=Nn[s],o!==0&&(n-=qn[s],X(e,n,o)),i--,s=Fo(i),pe(e,s,r),o=ri[s],o!==0&&(i-=ii[s],X(e,i,o)));while(a<e.last_lit);pe(e,Ln,t)}function Pn(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,n=t.stat_desc.has_stree,a=t.stat_desc.elems,s,o,u=-1,f;for(e.heap_len=0,e.heap_max=Eo,s=0;s<a;s++)r[s*2]!==0?(e.heap[++e.heap_len]=u=s,e.depth[s]=0):r[s*2+1]=0;for(;e.heap_len<2;)f=e.heap[++e.heap_len]=u<2?++u:0,r[f*2]=1,e.depth[f]=0,e.opt_len--,n&&(e.static_len-=i[f*2+1]);for(t.max_code=u,s=e.heap_len>>1;s>=1;s--)Fn(e,r,s);f=a;do s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Fn(e,r,1),o=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=o,r[f*2]=r[s*2]+r[o*2],e.depth[f]=(e.depth[s]>=e.depth[o]?e.depth[s]:e.depth[o])+1,r[s*2+1]=r[o*2+1]=f,e.heap[1]=f++,Fn(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],gd(e,t),Po(r,u,e.bl_count)}function yo(e,t,r){var i,n=-1,a,s=t[1],o=0,u=7,f=4;for(s===0&&(u=138,f=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)a=s,s=t[(i+1)*2+1],!(++o<u&&a===s)&&(o<f?e.bl_tree[a*2]+=o:a!==0?(a!==n&&e.bl_tree[a*2]++,e.bl_tree[Co*2]++):o<=10?e.bl_tree[Oo*2]++:e.bl_tree[Ao*2]++,o=0,n=a,s===0?(u=138,f=3):a===s?(u=6,f=3):(u=7,f=4))}function xo(e,t,r){var i,n=-1,a,s=t[1],o=0,u=7,f=4;for(s===0&&(u=138,f=3),i=0;i<=r;i++)if(a=s,s=t[(i+1)*2+1],!(++o<u&&a===s)){if(o<f)do pe(e,a,e.bl_tree);while(--o!==0);else a!==0?(a!==n&&(pe(e,a,e.bl_tree),o--),pe(e,Co,e.bl_tree),X(e,o-3,2)):o<=10?(pe(e,Oo,e.bl_tree),X(e,o-3,3)):(pe(e,Ao,e.bl_tree),X(e,o-11,7));o=0,n=a,s===0?(u=138,f=3):a===s?(u=6,f=3):(u=7,f=4)}}function bd(e){var t;for(yo(e,e.dyn_ltree,e.l_desc.max_code),yo(e,e.dyn_dtree,e.d_desc.max_code),Pn(e,e.bl_desc),t=zn-1;t>=3&&e.bl_tree[To[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function wd(e,t,r,i){var n;for(X(e,t-257,5),X(e,r-1,5),X(e,i-4,4),n=0;n<i;n++)X(e,e.bl_tree[To[n]*2+1],3);xo(e,e.dyn_ltree,t-1),xo(e,e.dyn_dtree,r-1)}function yd(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return _o;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return vo;for(r=32;r<or;r++)if(e.dyn_ltree[r*2]!==0)return vo;return _o}var ko=!1;function xd(e){ko||(_d(),ko=!0),e.l_desc=new Rn(e.dyn_ltree,Do),e.d_desc=new Rn(e.dyn_dtree,Io),e.bl_desc=new Rn(e.bl_tree,Ro),e.bi_buf=0,e.bi_valid=0,Bo(e)}function Lo(e,t,r,i){X(e,(ld<<1)+(i?1:0),3),vd(e,t,r,!0)}function kd(e){X(e,So<<1,3),pe(e,Ln,Oe),md(e)}function Sd(e,t,r,i){var n,a,s=0;e.level>0?(e.strm.data_type===od&&(e.strm.data_type=yd(e)),Pn(e,e.l_desc),Pn(e,e.d_desc),s=bd(e),n=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=n&&(n=a)):n=a=r+5,r+4<=n&&t!==-1?Lo(e,t,r,i):e.strategy===sd||a===n?(X(e,(So<<1)+(i?1:0),3),wo(e,Oe,rr)):(X(e,(fd<<1)+(i?1:0),3),wd(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),wo(e,e.dyn_ltree,e.dyn_dtree)),Bo(e),i&&zo(e)}function Ed(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[(ar[r]+or+1)*2]++,e.dyn_dtree[Fo(t)*2]++),e.last_lit===e.lit_bufsize-1}kt._tr_init=xd;kt._tr_stored_block=Lo;kt._tr_flush_block=Sd;kt._tr_tally=Ed;kt._tr_align=kd});var Mn=g((U_,Mo)=>{"use strict";function Cd(e,t,r,i){for(var n=e&65535|0,a=e>>>16&65535|0,s=0;r!==0;){s=r>2e3?2e3:r,r-=s;do n=n+t[i++]|0,a=a+n|0;while(--s);n%=65521,a%=65521}return n|a<<16|0}Mo.exports=Cd});var jn=g(($_,jo)=>{"use strict";function Od(){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}var Ad=Od();function Td(e,t,r,i){var n=Ad,a=i+r;e^=-1;for(var s=i;s<a;s++)e=e>>>8^n[(e^t[s])&255];return e^-1}jo.exports=Td});var ni=g((Z_,Wo)=>{"use strict";Wo.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 Xo=g(_e=>{"use strict";var K=Ce(),ie=qo(),Zo=Mn(),Be=jn(),Dd=ni(),Qe=0,Id=1,Rd=3,je=4,Ho=5,ge=0,Uo=1,ne=-2,Fd=-3,Wn=-5,Nd=-1,Pd=1,ai=2,Bd=3,zd=4,Ld=0,qd=2,fi=8,Md=9,jd=15,Wd=8,Hd=29,Ud=256,Un=Ud+1+Hd,$d=30,Zd=19,Vd=2*Un+1,Gd=15,A=3,qe=258,le=qe+A+1,Kd=32,ui=42,$n=69,si=73,oi=91,li=103,Ye=113,fr=666,W=1,ur=2,Xe=3,Ct=4,Yd=3;function Me(e,t){return e.msg=Dd[t],t}function $o(e){return(e<<1)-(e>4?9:0)}function Le(e){for(var t=e.length;--t>=0;)e[t]=0}function ze(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(K.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))}function U(e,t){ie._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ze(e.strm)}function T(e,t){e.pending_buf[e.pending++]=t}function lr(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function Xd(e,t,r,i){var n=e.avail_in;return n>i&&(n=i),n===0?0:(e.avail_in-=n,K.arraySet(t,e.input,e.next_in,n,r),e.state.wrap===1?e.adler=Zo(e.adler,t,n,r):e.state.wrap===2&&(e.adler=Be(e.adler,t,n,r)),e.next_in+=n,e.total_in+=n,n)}function Vo(e,t){var r=e.max_chain_length,i=e.strstart,n,a,s=e.prev_length,o=e.nice_match,u=e.strstart>e.w_size-le?e.strstart-(e.w_size-le):0,f=e.window,l=e.w_mask,h=e.prev,c=e.strstart+qe,d=f[i+s-1],b=f[i+s];e.prev_length>=e.good_match&&(r>>=2),o>e.lookahead&&(o=e.lookahead);do if(n=t,!(f[n+s]!==b||f[n+s-1]!==d||f[n]!==f[i]||f[++n]!==f[i+1])){i+=2,n++;do;while(f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&i<c);if(a=qe-(c-i),i=c-qe,a>s){if(e.match_start=t,s=a,a>=o)break;d=f[i+s-1],b=f[i+s]}}while((t=h[t&l])>u&&--r!==0);return s<=e.lookahead?s:e.lookahead}function Je(e){var t=e.w_size,r,i,n,a,s;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-le)){K.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 n=e.head[--r],e.head[r]=n>=t?n-t:0;while(--i);i=t,r=i;do n=e.prev[--r],e.prev[r]=n>=t?n-t:0;while(--i);a+=t}if(e.strm.avail_in===0)break;if(i=Xd(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=i,e.lookahead+e.insert>=A)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+A-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<A)););}while(e.lookahead<le&&e.strm.avail_in!==0)}function Jd(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Je(e),e.lookahead===0&&t===Qe)return W;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,U(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-le&&(U(e,!1),e.strm.avail_out===0))return W}return e.insert=0,t===je?(U(e,!0),e.strm.avail_out===0?Xe:Ct):(e.strstart>e.block_start&&(U(e,!1),e.strm.avail_out===0),W)}function Hn(e,t){for(var r,i;;){if(e.lookahead<le){if(Je(e),e.lookahead<le&&t===Qe)return W;if(e.lookahead===0)break}if(r=0,e.lookahead>=A&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-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-le&&(e.match_length=Vo(e,r)),e.match_length>=A)if(i=ie._tr_tally(e,e.strstart-e.match_start,e.match_length-A),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=A){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-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=ie._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(U(e,!1),e.strm.avail_out===0))return W}return e.insert=e.strstart<A-1?e.strstart:A-1,t===je?(U(e,!0),e.strm.avail_out===0?Xe:Ct):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:ur}function St(e,t){for(var r,i,n;;){if(e.lookahead<le){if(Je(e),e.lookahead<le&&t===Qe)return W;if(e.lookahead===0)break}if(r=0,e.lookahead>=A&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-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=A-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-le&&(e.match_length=Vo(e,r),e.match_length<=5&&(e.strategy===Pd||e.match_length===A&&e.strstart-e.match_start>4096)&&(e.match_length=A-1)),e.prev_length>=A&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-A,i=ie._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-A),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=n&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-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=A-1,e.strstart++,i&&(U(e,!1),e.strm.avail_out===0))return W}else if(e.match_available){if(i=ie._tr_tally(e,0,e.window[e.strstart-1]),i&&U(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return W}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=ie._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<A-1?e.strstart:A-1,t===je?(U(e,!0),e.strm.avail_out===0?Xe:Ct):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:ur}function Qd(e,t){for(var r,i,n,a,s=e.window;;){if(e.lookahead<=qe){if(Je(e),e.lookahead<=qe&&t===Qe)return W;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=A&&e.strstart>0&&(n=e.strstart-1,i=s[n],i===s[++n]&&i===s[++n]&&i===s[++n])){a=e.strstart+qe;do;while(i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&n<a);e.match_length=qe-(a-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=A?(r=ie._tr_tally(e,1,e.match_length-A),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=ie._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(U(e,!1),e.strm.avail_out===0))return W}return e.insert=0,t===je?(U(e,!0),e.strm.avail_out===0?Xe:Ct):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:ur}function ep(e,t){for(var r;;){if(e.lookahead===0&&(Je(e),e.lookahead===0)){if(t===Qe)return W;break}if(e.match_length=0,r=ie._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(U(e,!1),e.strm.avail_out===0))return W}return e.insert=0,t===je?(U(e,!0),e.strm.avail_out===0?Xe:Ct):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:ur}function me(e,t,r,i,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=n}var Et;Et=[new me(0,0,0,0,Jd),new me(4,4,8,4,Hn),new me(4,5,16,8,Hn),new me(4,6,32,32,Hn),new me(4,4,16,16,St),new me(8,16,32,32,St),new me(8,16,128,128,St),new me(8,32,128,256,St),new me(32,128,258,1024,St),new me(32,258,258,4096,St)];function tp(e){e.window_size=2*e.w_size,Le(e.head),e.max_lazy_match=Et[e.level].max_lazy,e.good_match=Et[e.level].good_length,e.nice_match=Et[e.level].nice_length,e.max_chain_length=Et[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=A-1,e.match_available=0,e.ins_h=0}function rp(){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=fi,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 K.Buf16(Vd*2),this.dyn_dtree=new K.Buf16((2*$d+1)*2),this.bl_tree=new K.Buf16((2*Zd+1)*2),Le(this.dyn_ltree),Le(this.dyn_dtree),Le(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new K.Buf16(Gd+1),this.heap=new K.Buf16(2*Un+1),Le(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new K.Buf16(2*Un+1),Le(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Go(e){var t;return!e||!e.state?Me(e,ne):(e.total_in=e.total_out=0,e.data_type=qd,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?ui:Ye,e.adler=t.wrap===2?0:1,t.last_flush=Qe,ie._tr_init(t),ge)}function Ko(e){var t=Go(e);return t===ge&&tp(e.state),t}function ip(e,t){return!e||!e.state||e.state.wrap!==2?ne:(e.state.gzhead=t,ge)}function Yo(e,t,r,i,n,a){if(!e)return ne;var s=1;if(t===Nd&&(t=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),n<1||n>Md||r!==fi||i<8||i>15||t<0||t>9||a<0||a>zd)return Me(e,ne);i===8&&(i=9);var o=new rp;return e.state=o,o.strm=e,o.wrap=s,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+A-1)/A),o.window=new K.Buf8(o.w_size*2),o.head=new K.Buf16(o.hash_size),o.prev=new K.Buf16(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new K.Buf8(o.pending_buf_size),o.d_buf=1*o.lit_bufsize,o.l_buf=3*o.lit_bufsize,o.level=t,o.strategy=a,o.method=r,Ko(e)}function np(e,t){return Yo(e,t,fi,jd,Wd,Ld)}function ap(e,t){var r,i,n,a;if(!e||!e.state||t>Ho||t<0)return e?Me(e,ne):ne;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===fr&&t!==je)return Me(e,e.avail_out===0?Wn:ne);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===ui)if(i.wrap===2)e.adler=0,T(i,31),T(i,139),T(i,8),i.gzhead?(T(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)),T(i,i.gzhead.time&255),T(i,i.gzhead.time>>8&255),T(i,i.gzhead.time>>16&255),T(i,i.gzhead.time>>24&255),T(i,i.level===9?2:i.strategy>=ai||i.level<2?4:0),T(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(T(i,i.gzhead.extra.length&255),T(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Be(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=$n):(T(i,0),T(i,0),T(i,0),T(i,0),T(i,0),T(i,i.level===9?2:i.strategy>=ai||i.level<2?4:0),T(i,Yd),i.status=Ye);else{var s=fi+(i.w_bits-8<<4)<<8,o=-1;i.strategy>=ai||i.level<2?o=0:i.level<6?o=1:i.level===6?o=2:o=3,s|=o<<6,i.strstart!==0&&(s|=Kd),s+=31-s%31,i.status=Ye,lr(i,s),i.strstart!==0&&(lr(i,e.adler>>>16),lr(i,e.adler&65535)),e.adler=1}if(i.status===$n)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),ze(e),n=i.pending,i.pending===i.pending_buf_size));)T(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=si)}else i.status=si;if(i.status===si)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),ze(e),n=i.pending,i.pending===i.pending_buf_size)){a=1;break}i.gzindex<i.gzhead.name.length?a=i.gzhead.name.charCodeAt(i.gzindex++)&255:a=0,T(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.gzindex=0,i.status=oi)}else i.status=oi;if(i.status===oi)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),ze(e),n=i.pending,i.pending===i.pending_buf_size)){a=1;break}i.gzindex<i.gzhead.comment.length?a=i.gzhead.comment.charCodeAt(i.gzindex++)&255:a=0,T(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.status=li)}else i.status=li;if(i.status===li&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ze(e),i.pending+2<=i.pending_buf_size&&(T(i,e.adler&255),T(i,e.adler>>8&255),e.adler=0,i.status=Ye)):i.status=Ye),i.pending!==0){if(ze(e),e.avail_out===0)return i.last_flush=-1,ge}else if(e.avail_in===0&&$o(t)<=$o(r)&&t!==je)return Me(e,Wn);if(i.status===fr&&e.avail_in!==0)return Me(e,Wn);if(e.avail_in!==0||i.lookahead!==0||t!==Qe&&i.status!==fr){var u=i.strategy===ai?ep(i,t):i.strategy===Bd?Qd(i,t):Et[i.level].func(i,t);if((u===Xe||u===Ct)&&(i.status=fr),u===W||u===Xe)return e.avail_out===0&&(i.last_flush=-1),ge;if(u===ur&&(t===Id?ie._tr_align(i):t!==Ho&&(ie._tr_stored_block(i,0,0,!1),t===Rd&&(Le(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),ze(e),e.avail_out===0))return i.last_flush=-1,ge}return t!==je?ge:i.wrap<=0?Uo:(i.wrap===2?(T(i,e.adler&255),T(i,e.adler>>8&255),T(i,e.adler>>16&255),T(i,e.adler>>24&255),T(i,e.total_in&255),T(i,e.total_in>>8&255),T(i,e.total_in>>16&255),T(i,e.total_in>>24&255)):(lr(i,e.adler>>>16),lr(i,e.adler&65535)),ze(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?ge:Uo)}function sp(e){var t;return!e||!e.state?ne:(t=e.state.status,t!==ui&&t!==$n&&t!==si&&t!==oi&&t!==li&&t!==Ye&&t!==fr?Me(e,ne):(e.state=null,t===Ye?Me(e,Fd):ge))}function op(e,t){var r=t.length,i,n,a,s,o,u,f,l;if(!e||!e.state||(i=e.state,s=i.wrap,s===2||s===1&&i.status!==ui||i.lookahead))return ne;for(s===1&&(e.adler=Zo(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(s===0&&(Le(i.head),i.strstart=0,i.block_start=0,i.insert=0),l=new K.Buf8(i.w_size),K.arraySet(l,t,r-i.w_size,i.w_size,0),t=l,r=i.w_size),o=e.avail_in,u=e.next_in,f=e.input,e.avail_in=r,e.next_in=0,e.input=t,Je(i);i.lookahead>=A;){n=i.strstart,a=i.lookahead-(A-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+A-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++;while(--a);i.strstart=n,i.lookahead=A-1,Je(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=A-1,i.match_available=0,e.next_in=u,e.input=f,e.avail_in=o,i.wrap=s,ge}_e.deflateInit=np;_e.deflateInit2=Yo;_e.deflateReset=Ko;_e.deflateResetKeep=Go;_e.deflateSetHeader=ip;_e.deflate=ap;_e.deflateEnd=sp;_e.deflateSetDictionary=op;_e.deflateInfo="pako deflate (from Nodeca project)"});var Zn=g(Ot=>{"use strict";var hi=Ce(),Jo=!0,Qo=!0;try{String.fromCharCode.apply(null,[0])}catch{Jo=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Qo=!1}var hr=new hi.Buf8(256);for(Ae=0;Ae<256;Ae++)hr[Ae]=Ae>=252?6:Ae>=248?5:Ae>=240?4:Ae>=224?3:Ae>=192?2:1;var Ae;hr[254]=hr[254]=1;Ot.string2buf=function(e){var t,r,i,n,a,s=e.length,o=0;for(n=0;n<s;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<s&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new hi.Buf8(o),a=0,n=0;a<o;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<s&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|r&63):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|r&63):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|r&63);return t};function el(e,t){if(t<65534&&(e.subarray&&Qo||!e.subarray&&Jo))return String.fromCharCode.apply(null,hi.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}Ot.buf2binstring=function(e){return el(e,e.length)};Ot.binstring2buf=function(e){for(var t=new hi.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};Ot.buf2string=function(e,t){var r,i,n,a,s=t||e.length,o=new Array(s*2);for(i=0,r=0;r<s;){if(n=e[r++],n<128){o[i++]=n;continue}if(a=hr[n],a>4){o[i++]=65533,r+=a-1;continue}for(n&=a===2?31:a===3?15:7;a>1&&r<s;)n=n<<6|e[r++]&63,a--;if(a>1){o[i++]=65533;continue}n<65536?o[i++]=n:(n-=65536,o[i++]=55296|n>>10&1023,o[i++]=56320|n&1023)}return el(o,i)};Ot.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+hr[e[r]]>t?r:t}});var Vn=g((K_,tl)=>{"use strict";function lp(){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}tl.exports=lp});var al=g(pr=>{"use strict";var cr=Xo(),dr=Ce(),Kn=Zn(),Yn=ni(),fp=Vn(),nl=Object.prototype.toString,up=0,Gn=4,At=0,rl=1,il=2,hp=-1,cp=0,dp=8;function et(e){if(!(this instanceof et))return new et(e);this.options=dr.assign({level:hp,method:dp,chunkSize:16384,windowBits:15,memLevel:8,strategy:cp,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 fp,this.strm.avail_out=0;var r=cr.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==At)throw new Error(Yn[r]);if(t.header&&cr.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=Kn.string2buf(t.dictionary):nl.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=cr.deflateSetDictionary(this.strm,i),r!==At)throw new Error(Yn[r]);this._dict_set=!0}}et.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,n,a;if(this.ended)return!1;a=t===~~t?t:t===!0?Gn:up,typeof e=="string"?r.input=Kn.string2buf(e):nl.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 dr.Buf8(i),r.next_out=0,r.avail_out=i),n=cr.deflate(r,a),n!==rl&&n!==At)return this.onEnd(n),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(a===Gn||a===il))&&(this.options.to==="string"?this.onData(Kn.buf2binstring(dr.shrinkBuf(r.output,r.next_out))):this.onData(dr.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&n!==rl);return a===Gn?(n=cr.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===At):(a===il&&(this.onEnd(At),r.avail_out=0),!0)};et.prototype.onData=function(e){this.chunks.push(e)};et.prototype.onEnd=function(e){e===At&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=dr.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Xn(e,t){var r=new et(t);if(r.push(e,!0),r.err)throw r.msg||Yn[r.err];return r.result}function pp(e,t){return t=t||{},t.raw=!0,Xn(e,t)}function mp(e,t){return t=t||{},t.gzip=!0,Xn(e,t)}pr.Deflate=et;pr.deflate=Xn;pr.deflateRaw=pp;pr.gzip=mp});var ol=g((X_,sl)=>{"use strict";var ci=30,gp=12;sl.exports=function(t,r){var i,n,a,s,o,u,f,l,h,c,d,b,w,x,_,p,y,m,v,C,E,S,O,F,k;i=t.state,n=t.next_in,F=t.input,a=n+(t.avail_in-5),s=t.next_out,k=t.output,o=s-(r-t.avail_out),u=s+(t.avail_out-257),f=i.dmax,l=i.wsize,h=i.whave,c=i.wnext,d=i.window,b=i.hold,w=i.bits,x=i.lencode,_=i.distcode,p=(1<<i.lenbits)-1,y=(1<<i.distbits)-1;e:do{w<15&&(b+=F[n++]<<w,w+=8,b+=F[n++]<<w,w+=8),m=x[b&p];t:for(;;){if(v=m>>>24,b>>>=v,w-=v,v=m>>>16&255,v===0)k[s++]=m&65535;else if(v&16){C=m&65535,v&=15,v&&(w<v&&(b+=F[n++]<<w,w+=8),C+=b&(1<<v)-1,b>>>=v,w-=v),w<15&&(b+=F[n++]<<w,w+=8,b+=F[n++]<<w,w+=8),m=_[b&y];r:for(;;){if(v=m>>>24,b>>>=v,w-=v,v=m>>>16&255,v&16){if(E=m&65535,v&=15,w<v&&(b+=F[n++]<<w,w+=8,w<v&&(b+=F[n++]<<w,w+=8)),E+=b&(1<<v)-1,E>f){t.msg="invalid distance too far back",i.mode=ci;break e}if(b>>>=v,w-=v,v=s-o,E>v){if(v=E-v,v>h&&i.sane){t.msg="invalid distance too far back",i.mode=ci;break e}if(S=0,O=d,c===0){if(S+=l-v,v<C){C-=v;do k[s++]=d[S++];while(--v);S=s-E,O=k}}else if(c<v){if(S+=l+c-v,v-=c,v<C){C-=v;do k[s++]=d[S++];while(--v);if(S=0,c<C){v=c,C-=v;do k[s++]=d[S++];while(--v);S=s-E,O=k}}}else if(S+=c-v,v<C){C-=v;do k[s++]=d[S++];while(--v);S=s-E,O=k}for(;C>2;)k[s++]=O[S++],k[s++]=O[S++],k[s++]=O[S++],C-=3;C&&(k[s++]=O[S++],C>1&&(k[s++]=O[S++]))}else{S=s-E;do k[s++]=k[S++],k[s++]=k[S++],k[s++]=k[S++],C-=3;while(C>2);C&&(k[s++]=k[S++],C>1&&(k[s++]=k[S++]))}}else if((v&64)===0){m=_[(m&65535)+(b&(1<<v)-1)];continue r}else{t.msg="invalid distance code",i.mode=ci;break e}break}}else if((v&64)===0){m=x[(m&65535)+(b&(1<<v)-1)];continue t}else if(v&32){i.mode=gp;break e}else{t.msg="invalid literal/length code",i.mode=ci;break e}break}}while(n<a&&s<u);C=w>>3,n-=C,w-=C<<3,b&=(1<<w)-1,t.next_in=n,t.next_out=s,t.avail_in=n<a?5+(a-n):5-(n-a),t.avail_out=s<u?257+(u-s):257-(s-u),i.hold=b,i.bits=w}});var pl=g((J_,dl)=>{"use strict";var ll=Ce(),Tt=15,fl=852,ul=592,hl=0,Jn=1,cl=2,_p=[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],vp=[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],bp=[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],wp=[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];dl.exports=function(t,r,i,n,a,s,o,u){var f=u.bits,l=0,h=0,c=0,d=0,b=0,w=0,x=0,_=0,p=0,y=0,m,v,C,E,S,O=null,F=0,k,Q=new ll.Buf16(Tt+1),at=new ll.Buf16(Tt+1),xr=null,Ta=0,Da,kr,Sr;for(l=0;l<=Tt;l++)Q[l]=0;for(h=0;h<n;h++)Q[r[i+h]]++;for(b=f,d=Tt;d>=1&&Q[d]===0;d--);if(b>d&&(b=d),d===0)return a[s++]=1<<24|64<<16|0,a[s++]=1<<24|64<<16|0,u.bits=1,0;for(c=1;c<d&&Q[c]===0;c++);for(b<c&&(b=c),_=1,l=1;l<=Tt;l++)if(_<<=1,_-=Q[l],_<0)return-1;if(_>0&&(t===hl||d!==1))return-1;for(at[1]=0,l=1;l<Tt;l++)at[l+1]=at[l]+Q[l];for(h=0;h<n;h++)r[i+h]!==0&&(o[at[r[i+h]]++]=h);if(t===hl?(O=xr=o,k=19):t===Jn?(O=_p,F-=257,xr=vp,Ta-=257,k=256):(O=bp,xr=wp,k=-1),y=0,h=0,l=c,S=s,w=b,x=0,C=-1,p=1<<b,E=p-1,t===Jn&&p>fl||t===cl&&p>ul)return 1;for(;;){Da=l-x,o[h]<k?(kr=0,Sr=o[h]):o[h]>k?(kr=xr[Ta+o[h]],Sr=O[F+o[h]]):(kr=96,Sr=0),m=1<<l-x,v=1<<w,c=v;do v-=m,a[S+(y>>x)+v]=Da<<24|kr<<16|Sr|0;while(v!==0);for(m=1<<l-1;y&m;)m>>=1;if(m!==0?(y&=m-1,y+=m):y=0,h++,--Q[l]===0){if(l===d)break;l=r[i+o[h]]}if(l>b&&(y&E)!==C){for(x===0&&(x=b),S+=c,w=l-x,_=1<<w;w+x<d&&(_-=Q[w+x],!(_<=0));)w++,_<<=1;if(p+=1<<w,t===Jn&&p>fl||t===cl&&p>ul)return 1;C=y&E,a[C]=b<<24|w<<16|S-s|0}}return y!==0&&(a[S+y]=l-x<<24|64<<16|0),u.bits=b,0}});var Kl=g(fe=>{"use strict";var re=Ce(),na=Mn(),ve=jn(),yp=ol(),mr=pl(),xp=0,Ml=1,jl=2,ml=4,kp=5,di=6,tt=0,Sp=1,Ep=2,ae=-2,Wl=-3,aa=-4,Cp=-5,gl=8,Hl=1,_l=2,vl=3,bl=4,wl=5,yl=6,xl=7,kl=8,Sl=9,El=10,gi=11,Te=12,Qn=13,Cl=14,ea=15,Ol=16,Al=17,Tl=18,Dl=19,pi=20,mi=21,Il=22,Rl=23,Fl=24,Nl=25,Pl=26,ta=27,Bl=28,zl=29,P=30,sa=31,Op=32,Ap=852,Tp=592,Dp=15,Ip=Dp;function Ll(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function Rp(){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 re.Buf16(320),this.work=new re.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ul(e){var t;return!e||!e.state?ae:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Hl,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new re.Buf32(Ap),t.distcode=t.distdyn=new re.Buf32(Tp),t.sane=1,t.back=-1,tt)}function $l(e){var t;return!e||!e.state?ae:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Ul(e))}function Zl(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))?ae:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,$l(e))}function Vl(e,t){var r,i;return e?(i=new Rp,e.state=i,i.window=null,r=Zl(e,t),r!==tt&&(e.state=null),r):ae}function Fp(e){return Vl(e,Ip)}var ql=!0,ra,ia;function Np(e){if(ql){var t;for(ra=new re.Buf32(512),ia=new re.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(mr(Ml,e.lens,0,288,ra,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;mr(jl,e.lens,0,32,ia,0,e.work,{bits:5}),ql=!1}e.lencode=ra,e.lenbits=9,e.distcode=ia,e.distbits=5}function Gl(e,t,r,i){var n,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new re.Buf8(a.wsize)),i>=a.wsize?(re.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(n=a.wsize-a.wnext,n>i&&(n=i),re.arraySet(a.window,t,r-i,n,a.wnext),i-=n,i?(re.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=n,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=n))),0}function Pp(e,t){var r,i,n,a,s,o,u,f,l,h,c,d,b,w,x=0,_,p,y,m,v,C,E,S,O=new re.Buf8(4),F,k,Q=[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 ae;r=e.state,r.mode===Te&&(r.mode=Qn),s=e.next_out,n=e.output,u=e.avail_out,a=e.next_in,i=e.input,o=e.avail_in,f=r.hold,l=r.bits,h=o,c=u,S=tt;e:for(;;)switch(r.mode){case Hl:if(r.wrap===0){r.mode=Qn;break}for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(r.wrap&2&&f===35615){r.check=0,O[0]=f&255,O[1]=f>>>8&255,r.check=ve(r.check,O,2,0),f=0,l=0,r.mode=_l;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((f&255)<<8)+(f>>8))%31){e.msg="incorrect header check",r.mode=P;break}if((f&15)!==gl){e.msg="unknown compression method",r.mode=P;break}if(f>>>=4,l-=4,E=(f&15)+8,r.wbits===0)r.wbits=E;else if(E>r.wbits){e.msg="invalid window size",r.mode=P;break}r.dmax=1<<E,e.adler=r.check=1,r.mode=f&512?El:Te,f=0,l=0;break;case _l:for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(r.flags=f,(r.flags&255)!==gl){e.msg="unknown compression method",r.mode=P;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=P;break}r.head&&(r.head.text=f>>8&1),r.flags&512&&(O[0]=f&255,O[1]=f>>>8&255,r.check=ve(r.check,O,2,0)),f=0,l=0,r.mode=vl;case vl:for(;l<32;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.head&&(r.head.time=f),r.flags&512&&(O[0]=f&255,O[1]=f>>>8&255,O[2]=f>>>16&255,O[3]=f>>>24&255,r.check=ve(r.check,O,4,0)),f=0,l=0,r.mode=bl;case bl:for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.head&&(r.head.xflags=f&255,r.head.os=f>>8),r.flags&512&&(O[0]=f&255,O[1]=f>>>8&255,r.check=ve(r.check,O,2,0)),f=0,l=0,r.mode=wl;case wl:if(r.flags&1024){for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.length=f,r.head&&(r.head.extra_len=f),r.flags&512&&(O[0]=f&255,O[1]=f>>>8&255,r.check=ve(r.check,O,2,0)),f=0,l=0}else r.head&&(r.head.extra=null);r.mode=yl;case yl:if(r.flags&1024&&(d=r.length,d>o&&(d=o),d&&(r.head&&(E=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),re.arraySet(r.head.extra,i,a,d,E)),r.flags&512&&(r.check=ve(r.check,i,d,a)),o-=d,a+=d,r.length-=d),r.length))break e;r.length=0,r.mode=xl;case xl:if(r.flags&2048){if(o===0)break e;d=0;do E=i[a+d++],r.head&&E&&r.length<65536&&(r.head.name+=String.fromCharCode(E));while(E&&d<o);if(r.flags&512&&(r.check=ve(r.check,i,d,a)),o-=d,a+=d,E)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=kl;case kl:if(r.flags&4096){if(o===0)break e;d=0;do E=i[a+d++],r.head&&E&&r.length<65536&&(r.head.comment+=String.fromCharCode(E));while(E&&d<o);if(r.flags&512&&(r.check=ve(r.check,i,d,a)),o-=d,a+=d,E)break e}else r.head&&(r.head.comment=null);r.mode=Sl;case Sl:if(r.flags&512){for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(f!==(r.check&65535)){e.msg="header crc mismatch",r.mode=P;break}f=0,l=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Te;break;case El:for(;l<32;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}e.adler=r.check=Ll(f),f=0,l=0,r.mode=gi;case gi:if(r.havedict===0)return e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=o,r.hold=f,r.bits=l,Ep;e.adler=r.check=1,r.mode=Te;case Te:if(t===kp||t===di)break e;case Qn:if(r.last){f>>>=l&7,l-=l&7,r.mode=ta;break}for(;l<3;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}switch(r.last=f&1,f>>>=1,l-=1,f&3){case 0:r.mode=Cl;break;case 1:if(Np(r),r.mode=pi,t===di){f>>>=2,l-=2;break e}break;case 2:r.mode=Al;break;case 3:e.msg="invalid block type",r.mode=P}f>>>=2,l-=2;break;case Cl:for(f>>>=l&7,l-=l&7;l<32;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if((f&65535)!==(f>>>16^65535)){e.msg="invalid stored block lengths",r.mode=P;break}if(r.length=f&65535,f=0,l=0,r.mode=ea,t===di)break e;case ea:r.mode=Ol;case Ol:if(d=r.length,d){if(d>o&&(d=o),d>u&&(d=u),d===0)break e;re.arraySet(n,i,a,d,s),o-=d,a+=d,u-=d,s+=d,r.length-=d;break}r.mode=Te;break;case Al:for(;l<14;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(r.nlen=(f&31)+257,f>>>=5,l-=5,r.ndist=(f&31)+1,f>>>=5,l-=5,r.ncode=(f&15)+4,f>>>=4,l-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=P;break}r.have=0,r.mode=Tl;case Tl:for(;r.have<r.ncode;){for(;l<3;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.lens[Q[r.have++]]=f&7,f>>>=3,l-=3}for(;r.have<19;)r.lens[Q[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,F={bits:r.lenbits},S=mr(xp,r.lens,0,19,r.lencode,0,r.work,F),r.lenbits=F.bits,S){e.msg="invalid code lengths set",r.mode=P;break}r.have=0,r.mode=Dl;case Dl:for(;r.have<r.nlen+r.ndist;){for(;x=r.lencode[f&(1<<r.lenbits)-1],_=x>>>24,p=x>>>16&255,y=x&65535,!(_<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(y<16)f>>>=_,l-=_,r.lens[r.have++]=y;else{if(y===16){for(k=_+2;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(f>>>=_,l-=_,r.have===0){e.msg="invalid bit length repeat",r.mode=P;break}E=r.lens[r.have-1],d=3+(f&3),f>>>=2,l-=2}else if(y===17){for(k=_+3;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=_,l-=_,E=0,d=3+(f&7),f>>>=3,l-=3}else{for(k=_+7;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=_,l-=_,E=0,d=11+(f&127),f>>>=7,l-=7}if(r.have+d>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=P;break}for(;d--;)r.lens[r.have++]=E}}if(r.mode===P)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=P;break}if(r.lenbits=9,F={bits:r.lenbits},S=mr(Ml,r.lens,0,r.nlen,r.lencode,0,r.work,F),r.lenbits=F.bits,S){e.msg="invalid literal/lengths set",r.mode=P;break}if(r.distbits=6,r.distcode=r.distdyn,F={bits:r.distbits},S=mr(jl,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,F),r.distbits=F.bits,S){e.msg="invalid distances set",r.mode=P;break}if(r.mode=pi,t===di)break e;case pi:r.mode=mi;case mi:if(o>=6&&u>=258){e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=o,r.hold=f,r.bits=l,yp(e,c),s=e.next_out,n=e.output,u=e.avail_out,a=e.next_in,i=e.input,o=e.avail_in,f=r.hold,l=r.bits,r.mode===Te&&(r.back=-1);break}for(r.back=0;x=r.lencode[f&(1<<r.lenbits)-1],_=x>>>24,p=x>>>16&255,y=x&65535,!(_<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(p&&(p&240)===0){for(m=_,v=p,C=y;x=r.lencode[C+((f&(1<<m+v)-1)>>m)],_=x>>>24,p=x>>>16&255,y=x&65535,!(m+_<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=m,l-=m,r.back+=m}if(f>>>=_,l-=_,r.back+=_,r.length=y,p===0){r.mode=Pl;break}if(p&32){r.back=-1,r.mode=Te;break}if(p&64){e.msg="invalid literal/length code",r.mode=P;break}r.extra=p&15,r.mode=Il;case Il:if(r.extra){for(k=r.extra;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.length+=f&(1<<r.extra)-1,f>>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=Rl;case Rl:for(;x=r.distcode[f&(1<<r.distbits)-1],_=x>>>24,p=x>>>16&255,y=x&65535,!(_<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if((p&240)===0){for(m=_,v=p,C=y;x=r.distcode[C+((f&(1<<m+v)-1)>>m)],_=x>>>24,p=x>>>16&255,y=x&65535,!(m+_<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=m,l-=m,r.back+=m}if(f>>>=_,l-=_,r.back+=_,p&64){e.msg="invalid distance code",r.mode=P;break}r.offset=y,r.extra=p&15,r.mode=Fl;case Fl:if(r.extra){for(k=r.extra;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.offset+=f&(1<<r.extra)-1,f>>>=r.extra,l-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=P;break}r.mode=Nl;case Nl:if(u===0)break e;if(d=c-u,r.offset>d){if(d=r.offset-d,d>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=P;break}d>r.wnext?(d-=r.wnext,b=r.wsize-d):b=r.wnext-d,d>r.length&&(d=r.length),w=r.window}else w=n,b=s-r.offset,d=r.length;d>u&&(d=u),u-=d,r.length-=d;do n[s++]=w[b++];while(--d);r.length===0&&(r.mode=mi);break;case Pl:if(u===0)break e;n[s++]=r.length,u--,r.mode=mi;break;case ta:if(r.wrap){for(;l<32;){if(o===0)break e;o--,f|=i[a++]<<l,l+=8}if(c-=u,e.total_out+=c,r.total+=c,c&&(e.adler=r.check=r.flags?ve(r.check,n,c,s-c):na(r.check,n,c,s-c)),c=u,(r.flags?f:Ll(f))!==r.check){e.msg="incorrect data check",r.mode=P;break}f=0,l=0}r.mode=Bl;case Bl:if(r.wrap&&r.flags){for(;l<32;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(f!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=P;break}f=0,l=0}r.mode=zl;case zl:S=Sp;break e;case P:S=Wl;break e;case sa:return aa;case Op:default:return ae}return e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=o,r.hold=f,r.bits=l,(r.wsize||c!==e.avail_out&&r.mode<P&&(r.mode<ta||t!==ml))&&Gl(e,e.output,e.next_out,c-e.avail_out)?(r.mode=sa,aa):(h-=e.avail_in,c-=e.avail_out,e.total_in+=h,e.total_out+=c,r.total+=c,r.wrap&&c&&(e.adler=r.check=r.flags?ve(r.check,n,c,e.next_out-c):na(r.check,n,c,e.next_out-c)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Te?128:0)+(r.mode===pi||r.mode===ea?256:0),(h===0&&c===0||t===ml)&&S===tt&&(S=Cp),S)}function Bp(e){if(!e||!e.state)return ae;var t=e.state;return t.window&&(t.window=null),e.state=null,tt}function zp(e,t){var r;return!e||!e.state||(r=e.state,(r.wrap&2)===0)?ae:(r.head=t,t.done=!1,tt)}function Lp(e,t){var r=t.length,i,n,a;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==gi)?ae:i.mode===gi&&(n=1,n=na(n,t,r,0),n!==i.check)?Wl:(a=Gl(e,t,r,r),a?(i.mode=sa,aa):(i.havedict=1,tt))}fe.inflateReset=$l;fe.inflateReset2=Zl;fe.inflateResetKeep=Ul;fe.inflateInit=Fp;fe.inflateInit2=Vl;fe.inflate=Pp;fe.inflateEnd=Bp;fe.inflateGetHeader=zp;fe.inflateSetDictionary=Lp;fe.inflateInfo="pako inflate (from Nodeca project)"});var oa=g((e0,Yl)=>{"use strict";Yl.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 Jl=g((t0,Xl)=>{"use strict";function qp(){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}Xl.exports=qp});var ef=g(_r=>{"use strict";var Dt=Kl(),gr=Ce(),_i=Zn(),q=oa(),la=ni(),Mp=Vn(),jp=Jl(),Ql=Object.prototype.toString;function rt(e){if(!(this instanceof rt))return new rt(e);this.options=gr.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)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Mp,this.strm.avail_out=0;var r=Dt.inflateInit2(this.strm,t.windowBits);if(r!==q.Z_OK)throw new Error(la[r]);if(this.header=new jp,Dt.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=_i.string2buf(t.dictionary):Ql.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Dt.inflateSetDictionary(this.strm,t.dictionary),r!==q.Z_OK)))throw new Error(la[r])}rt.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,n=this.options.dictionary,a,s,o,u,f,l=!1;if(this.ended)return!1;s=t===~~t?t:t===!0?q.Z_FINISH:q.Z_NO_FLUSH,typeof e=="string"?r.input=_i.binstring2buf(e):Ql.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 gr.Buf8(i),r.next_out=0,r.avail_out=i),a=Dt.inflate(r,q.Z_NO_FLUSH),a===q.Z_NEED_DICT&&n&&(a=Dt.inflateSetDictionary(this.strm,n)),a===q.Z_BUF_ERROR&&l===!0&&(a=q.Z_OK,l=!1),a!==q.Z_STREAM_END&&a!==q.Z_OK)return this.onEnd(a),this.ended=!0,!1;r.next_out&&(r.avail_out===0||a===q.Z_STREAM_END||r.avail_in===0&&(s===q.Z_FINISH||s===q.Z_SYNC_FLUSH))&&(this.options.to==="string"?(o=_i.utf8border(r.output,r.next_out),u=r.next_out-o,f=_i.buf2string(r.output,o),r.next_out=u,r.avail_out=i-u,u&&gr.arraySet(r.output,r.output,o,u,0),this.onData(f)):this.onData(gr.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(l=!0)}while((r.avail_in>0||r.avail_out===0)&&a!==q.Z_STREAM_END);return a===q.Z_STREAM_END&&(s=q.Z_FINISH),s===q.Z_FINISH?(a=Dt.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===q.Z_OK):(s===q.Z_SYNC_FLUSH&&(this.onEnd(q.Z_OK),r.avail_out=0),!0)};rt.prototype.onData=function(e){this.chunks.push(e)};rt.prototype.onEnd=function(e){e===q.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=gr.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function fa(e,t){var r=new rt(t);if(r.push(e,!0),r.err)throw r.msg||la[r.err];return r.result}function Wp(e,t){return t=t||{},t.raw=!0,fa(e,t)}_r.Inflate=rt;_r.inflate=fa;_r.inflateRaw=Wp;_r.ungzip=fa});var nf=g((i0,rf)=>{"use strict";var Hp=Ce().assign,Up=al(),$p=ef(),Zp=oa(),tf={};Hp(tf,Up,$p,Zp);rf.exports=tf});var sf=g(bi=>{"use strict";var Vp=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",Gp=nf(),af=B(),vi=te(),Kp=Vp?"uint8array":"array";bi.magic="\b\0";function it(e,t){vi.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}af.inherits(it,vi);it.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(af.transformTo(Kp,e.data),!1)};it.prototype.flush=function(){vi.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};it.prototype.cleanUp=function(){vi.prototype.cleanUp.call(this),this._pako=null};it.prototype._createPako=function(){this._pako=new Gp[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};bi.compressWorker=function(e){return new it("Deflate",e)};bi.uncompressWorker=function(){return new it("Inflate",{})}});var ha=g(ua=>{"use strict";var of=te();ua.STORE={magic:"\0\0",compressWorker:function(){return new of("STORE compression")},uncompressWorker:function(){return new of("STORE decompression")}};ua.DEFLATE=sf()});var ca=g(nt=>{"use strict";nt.LOCAL_FILE_HEADER="PK";nt.CENTRAL_FILE_HEADER="PK";nt.CENTRAL_DIRECTORY_END="PK";nt.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";nt.ZIP64_CENTRAL_DIRECTORY_END="PK";nt.DATA_DESCRIPTOR="PK\x07\b"});var hf=g((o0,uf)=>{"use strict";var It=B(),Rt=te(),da=bt(),lf=Qr(),wi=ca(),R=function(e,t){var r="",i;for(i=0;i<t;i++)r+=String.fromCharCode(e&255),e=e>>>8;return r},Yp=function(e,t){var r=e;return e||(r=t?16893:33204),(r&65535)<<16},Xp=function(e){return(e||0)&63},ff=function(e,t,r,i,n,a){var s=e.file,o=e.compression,u=a!==da.utf8encode,f=It.transformTo("string",a(s.name)),l=It.transformTo("string",da.utf8encode(s.name)),h=s.comment,c=It.transformTo("string",a(h)),d=It.transformTo("string",da.utf8encode(h)),b=l.length!==s.name.length,w=d.length!==h.length,x,_,p="",y="",m="",v=s.dir,C=s.date,E={crc32:0,compressedSize:0,uncompressedSize:0};(!t||r)&&(E.crc32=e.crc32,E.compressedSize=e.compressedSize,E.uncompressedSize=e.uncompressedSize);var S=0;t&&(S|=8),!u&&(b||w)&&(S|=2048);var O=0,F=0;v&&(O|=16),n==="UNIX"?(F=798,O|=Yp(s.unixPermissions,v)):(F=20,O|=Xp(s.dosPermissions,v)),x=C.getUTCHours(),x=x<<6,x=x|C.getUTCMinutes(),x=x<<5,x=x|C.getUTCSeconds()/2,_=C.getUTCFullYear()-1980,_=_<<4,_=_|C.getUTCMonth()+1,_=_<<5,_=_|C.getUTCDate(),b&&(y=R(1,1)+R(lf(f),4)+l,p+="up"+R(y.length,2)+y),w&&(m=R(1,1)+R(lf(c),4)+d,p+="uc"+R(m.length,2)+m);var k="";k+=`
3
+ \0`,k+=R(S,2),k+=o.magic,k+=R(x,2),k+=R(_,2),k+=R(E.crc32,4),k+=R(E.compressedSize,4),k+=R(E.uncompressedSize,4),k+=R(f.length,2),k+=R(p.length,2);var Q=wi.LOCAL_FILE_HEADER+k+f+p,at=wi.CENTRAL_FILE_HEADER+R(F,2)+k+R(c.length,2)+"\0\0\0\0"+R(O,4)+R(i,4)+f+p+c;return{fileRecord:Q,dirRecord:at}},Jp=function(e,t,r,i,n){var a="",s=It.transformTo("string",n(i));return a=wi.CENTRAL_DIRECTORY_END+"\0\0\0\0"+R(e,2)+R(e,2)+R(t,4)+R(r,4)+R(s.length,2)+s,a},Qp=function(e){var t="";return t=wi.DATA_DESCRIPTOR+R(e.crc32,4)+R(e.compressedSize,4)+R(e.uncompressedSize,4),t};function ue(e,t,r,i){Rt.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=[]}It.inherits(ue,Rt);ue.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,Rt.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-i-1))/r:100}}))};ue.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=ff(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0};ue.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=ff(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:Qp(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};ue.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=Jp(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})};ue.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()};ue.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};ue.prototype.resume=function(){if(!Rt.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};ue.prototype.error=function(e){var t=this._sources;if(!Rt.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch{}return!0};ue.prototype.lock=function(){Rt.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};uf.exports=ue});var df=g(cf=>{"use strict";var em=ha(),tm=hf(),rm=function(e,t){var r=e||t,i=em[r];if(!i)throw new Error(r+" is not a valid compression method !");return i};cf.generateWorker=function(e,t,r){var i=new tm(t.streamFiles,r,t.platform,t.encodeFileName),n=0;try{e.forEach(function(a,s){n++;var o=rm(s.options.compression,t.compression),u=s.options.compressionOptions||t.compressionOptions||{},f=s.dir,l=s.date;s._compressWorker(o,u).withStreamInfo("file",{name:a,dir:f,date:l,comment:s.comment||"",unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions}).pipe(i)}),i.entriesCount=n}catch(a){i.error(a)}return i}});var mf=g((f0,pf)=>{"use strict";var im=B(),yi=te();function vr(e,t){yi.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}im.inherits(vr,yi);vr.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()})};vr.prototype.pause=function(){return yi.prototype.pause.call(this)?(this._stream.pause(),!0):!1};vr.prototype.resume=function(){return yi.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};pf.exports=vr});var Ef=g((u0,Sf)=>{"use strict";var nm=bt(),br=B(),bf=te(),am=vn(),wf=bn(),gf=ei(),sm=go(),om=df(),_f=Gt(),lm=mf(),yf=function(e,t,r){var i=br.getTypeOf(t),n,a=br.extend(r||{},wf);a.date=a.date||new Date,a.compression!==null&&(a.compression=a.compression.toUpperCase()),typeof a.unixPermissions=="string"&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&a.unixPermissions&16384&&(a.dir=!0),a.dosPermissions&&a.dosPermissions&16&&(a.dir=!0),a.dir&&(e=xf(e)),a.createFolders&&(n=fm(e))&&kf.call(this,n,!0);var s=i==="string"&&a.binary===!1&&a.base64===!1;(!r||typeof r.binary>"u")&&(a.binary=!s);var o=t instanceof gf&&t.uncompressedSize===0;(o||a.dir||!t||t.length===0)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE",i="string");var u=null;t instanceof gf||t instanceof bf?u=t:_f.isNode&&_f.isStream(t)?u=new lm(e,t):u=br.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var f=new sm(e,u,a);this.files[e]=f},fm=function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},xf=function(e){return e.slice(-1)!=="/"&&(e+="/"),e},kf=function(e,t){return t=typeof t<"u"?t:wf.createFolders,e=xf(e),this.files[e]||yf.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function vf(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var um={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach: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)},filter:function(e){var t=[];return this.forEach(function(r,i){e(r,i)&&t.push(i)}),t},file:function(e,t,r){if(arguments.length===1)if(vf(e)){var i=e;return this.filter(function(a,s){return!s.dir&&i.test(a)})}else{var n=this.files[this.root+e];return n&&!n.dir?n:null}else e=this.root+e,yf.call(this,e,t,r);return this},folder:function(e){if(!e)return this;if(vf(e))return this.filter(function(n,a){return a.dir&&e.test(n)});var t=this.root+e,r=kf.call(this,t),i=this.clone();return i.root=r.name,i},remove: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(n,a){return a.name.slice(0,e.length)===e}),i=0;i<r.length;i++)delete this.files[r[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if(r=br.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:nm.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.");br.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=om.generateWorker(this,r,i)}catch(n){t=new bf("error"),t.error(n)}return new am(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};Sf.exports=um});var pa=g((h0,Of)=>{"use strict";var hm=B();function Cf(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}Cf.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex: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 ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt: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},readString:function(e){return hm.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate: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))}};Of.exports=Cf});var ma=g((c0,Tf)=>{"use strict";var Af=pa(),cm=B();function Ft(e){Af.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}cm.inherits(Ft,Af);Ft.prototype.byteAt=function(e){return this.data[this.zero+e]};Ft.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===i&&this.data[a+3]===n)return a-this.zero;return-1};Ft.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&r===a[1]&&i===a[2]&&n===a[3]};Ft.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};Tf.exports=Ft});var Rf=g((d0,If)=>{"use strict";var Df=pa(),dm=B();function Nt(e){Df.call(this,e)}dm.inherits(Nt,Df);Nt.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};Nt.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};Nt.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};Nt.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};If.exports=Nt});var _a=g((p0,Nf)=>{"use strict";var Ff=ma(),pm=B();function ga(e){Ff.call(this,e)}pm.inherits(ga,Ff);ga.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};Nf.exports=ga});var zf=g((m0,Bf)=>{"use strict";var Pf=_a(),mm=B();function va(e){Pf.call(this,e)}mm.inherits(va,Pf);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};Bf.exports=va});var ba=g((g0,qf)=>{"use strict";var xi=B(),Lf=Se(),gm=ma(),_m=Rf(),vm=zf(),bm=_a();qf.exports=function(e){var t=xi.getTypeOf(e);return xi.checkSupport(t),t==="string"&&!Lf.uint8array?new _m(e):t==="nodebuffer"?new vm(e):Lf.uint8array?new bm(xi.transformTo("uint8array",e)):new gm(xi.transformTo("array",e))}});var Hf=g((_0,Wf)=>{"use strict";var wa=ba(),We=B(),wm=ei(),Mf=Qr(),ki=bt(),Si=ha(),ym=Se(),xm=0,km=3,Sm=function(e){for(var t in Si)if(Object.prototype.hasOwnProperty.call(Si,t)&&Si[t].magic===e)return Si[t];return null};function jf(e,t){this.options=e,this.loadOptions=t}jf.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart: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=Sm(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+We.pretty(this.compressionMethod)+" unknown (inner file : "+We.transformTo("string",this.fileName)+")");this.decompressed=new wm(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart: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)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),e===xm&&(this.dosPermissions=this.externalFileAttributes&63),e===km&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=wa(this.extraFields[1].value);this.uncompressedSize===We.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===We.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===We.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===We.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t=e.index+this.extraFieldsLength,r,i,n;for(this.extraFields||(this.extraFields={});e.index+4<t;)r=e.readInt(2),i=e.readInt(2),n=e.readData(i),this.extraFields[r]={id:r,length:i,value:n};e.setIndex(t)},handleUTF8:function(){var e=ym.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=ki.utf8decode(this.fileName),this.fileCommentStr=ki.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var r=We.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var i=this.findExtraFieldUnicodeComment();if(i!==null)this.fileCommentStr=i;else{var n=We.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(n)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=wa(e.value);return t.readInt(1)!==1||Mf(this.fileName)!==t.readInt(4)?null:ki.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=wa(e.value);return t.readInt(1)!==1||Mf(this.fileComment)!==t.readInt(4)?null:ki.utf8decode(t.readData(e.length-5))}return null}};Wf.exports=jf});var Zf=g((v0,$f)=>{"use strict";var Em=ba(),De=B(),he=ca(),Cm=Hf(),Om=Se();function Uf(e){this.files=[],this.loadOptions=e}Uf.prototype={checkSignature: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 ("+De.pretty(t)+", expected "+De.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4),n=i===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=Om.uint8array?"uint8array":"array",r=De.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e=this.zip64EndOfCentralSize-44,t=0,r,i,n;t<e;)r=this.reader.readInt(2),i=this.reader.readInt(4),n=this.reader.readData(i),this.zip64ExtensibleData[r]={id:r,length:i,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(he.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(he.CENTRAL_FILE_HEADER);)e=new Cm({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)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(he.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,he.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(he.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===De.MAX_VALUE_16BITS||this.diskWithCentralDirStart===De.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===De.MAX_VALUE_16BITS||this.centralDirRecords===De.MAX_VALUE_16BITS||this.centralDirSize===De.MAX_VALUE_32BITS||this.centralDirOffset===De.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(he.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(he.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,he.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(he.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(he.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var n=r-i;if(n>0)this.isSignature(r,he.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=Em(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};$f.exports=Uf});var Kf=g((b0,Gf)=>{"use strict";var ya=B(),Ei=gt(),Am=bt(),Tm=Zf(),Dm=xn(),Vf=Gt();function Im(e){return new Ei.Promise(function(t,r){var i=e.decompressed.getContentWorker().pipe(new Dm);i.on("error",function(n){r(n)}).on("end",function(){i.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}Gf.exports=function(e,t){var r=this;return t=ya.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:Am.utf8decode}),Vf.isNode&&Vf.isStream(e)?Ei.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):ya.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(i){var n=new Tm(t);return n.load(i),n}).then(function(n){var a=[Ei.Promise.resolve(n)],s=n.files;if(t.checkCRC32)for(var o=0;o<s.length;o++)a.push(Im(s[o]));return Ei.Promise.all(a)}).then(function(n){for(var a=n.shift(),s=a.files,o=0;o<s.length;o++){var u=s[o],f=u.fileNameStr,l=ya.resolve(u.fileNameStr);r.file(l,u.decompressed,{binary:!0,optimizedBinaryString:!0,date:u.date,dir:u.dir,comment:u.fileCommentStr.length?u.fileCommentStr:null,unixPermissions:u.unixPermissions,dosPermissions:u.dosPermissions,createFolders:t.createFolders}),u.dir||(r.file(l).unsafeOriginalName=f)}return a.zipComment.length&&(r.comment=a.zipComment),r})}});var Xf=g((w0,Yf)=>{"use strict";function se(){if(!(this instanceof se))return new se;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 se;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}se.prototype=Ef();se.prototype.loadAsync=Kf();se.support=Se();se.defaults=bn();se.version="3.10.1";se.loadAsync=function(e,t){return new se().loadAsync(e,t)};se.external=gt();Yf.exports=se});var Ie=class extends Error{constructor(t,r,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=t,this.nestedError=void 0}},He=class extends Ie{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};var Pt=class{constructor(t,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:(r.push(t),r)}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new He(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(r,i):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function Er(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}import{EventEmitter as Au}from"node:events";import Di from"node:child_process";import we from"node:path";import Or from"node:fs";import D from"node:process";import{stripVTControlCharacters as Tu}from"node:util";import{stripVTControlCharacters as Eu}from"node:util";var Bt=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(t){this.helpWidth=this.helpWidth??t.helpWidth??80}visibleCommands(t){let r=t.commands.filter(n=>!n._hidden),i=t._getHelpCommand();return i&&!i._hidden&&r.push(i),this.sortSubcommands&&r.sort((n,a)=>n.name().localeCompare(a.name())),r}compareOptions(t,r){let i=n=>n.short?n.short.replace(/^-/,""):n.long.replace(/^--/,"");return i(t).localeCompare(i(r))}visibleOptions(t){let r=t.options.filter(n=>!n.hidden),i=t._getHelpOption();if(i&&!i.hidden){let n=i.short&&t._findOption(i.short),a=i.long&&t._findOption(i.long);!n&&!a?r.push(i):i.long&&!a?r.push(t.createOption(i.long,i.description)):i.short&&!n&&r.push(t.createOption(i.short,i.description))}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let r=[];for(let i=t.parent;i;i=i.parent){let n=i.options.filter(a=>!a.hidden);r.push(...n)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(r=>{r.description=r.description||t._argsDescription[r.name()]||""}),t.registeredArguments.find(r=>r.description)?t.registeredArguments:[]}subcommandTerm(t){let r=t.registeredArguments.map(i=>Er(i)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,r){return r.visibleCommands(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleSubcommandTerm(r.subcommandTerm(n)))),0)}longestOptionTermLength(t,r){return r.visibleOptions(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestGlobalOptionTermLength(t,r){return r.visibleGlobalOptions(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestArgumentTermLength(t,r){return r.visibleArguments(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleArgumentTerm(r.argumentTerm(n)))),0)}commandUsage(t){let r=t._name;t._aliases[0]&&(r=r+"|"+t._aliases[0]);let i="";for(let n=t.parent;n;n=n.parent)i=n.name()+" "+i;return i+r+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&r.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&r.push(`env: ${t.envVar}`),r.length>0){let i=`(${r.join(", ")})`;return t.description?`${t.description} ${i}`:i}return t.description}argumentDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),t.defaultValue!==void 0&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),r.length>0){let i=`(${r.join(", ")})`;return t.description?`${t.description} ${i}`:i}return t.description}formatItemList(t,r,i){return r.length===0?[]:[i.styleTitle(t),...r,""]}groupItems(t,r,i){let n=new Map;return t.forEach(a=>{let s=i(a);n.has(s)||n.set(s,[])}),r.forEach(a=>{let s=i(a);n.has(s)||n.set(s,[]),n.get(s).push(a)}),n}formatHelp(t,r){let i=r.padWidth(t,r),n=r.helpWidth??80;function a(h,c){return r.formatItem(h,i,c,r)}let s=[`${r.styleTitle("Usage:")} ${r.styleUsage(r.commandUsage(t))}`,""],o=r.commandDescription(t);o.length>0&&(s=s.concat([r.boxWrap(r.styleCommandDescription(o),n),""]));let u=r.visibleArguments(t).map(h=>a(r.styleArgumentTerm(r.argumentTerm(h)),r.styleArgumentDescription(r.argumentDescription(h))));if(s=s.concat(this.formatItemList("Arguments:",u,r)),this.groupItems(t.options,r.visibleOptions(t),h=>h.helpGroupHeading??"Options:").forEach((h,c)=>{let d=h.map(b=>a(r.styleOptionTerm(r.optionTerm(b)),r.styleOptionDescription(r.optionDescription(b))));s=s.concat(this.formatItemList(c,d,r))}),r.showGlobalOptions){let h=r.visibleGlobalOptions(t).map(c=>a(r.styleOptionTerm(r.optionTerm(c)),r.styleOptionDescription(r.optionDescription(c))));s=s.concat(this.formatItemList("Global Options:",h,r))}return this.groupItems(t.commands,r.visibleCommands(t),h=>h.helpGroup()||"Commands:").forEach((h,c)=>{let d=h.map(b=>a(r.styleSubcommandTerm(r.subcommandTerm(b)),r.styleSubcommandDescription(r.subcommandDescription(b))));s=s.concat(this.formatItemList(c,d,r))}),s.join(`
4
+ `)}displayWidth(t){return Eu(t).length}styleTitle(t){return t}styleUsage(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r==="[command]"?this.styleSubcommandText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleCommandText(r)).join(" ")}styleCommandDescription(t){return this.styleDescriptionText(t)}styleOptionDescription(t){return this.styleDescriptionText(t)}styleSubcommandDescription(t){return this.styleDescriptionText(t)}styleArgumentDescription(t){return this.styleDescriptionText(t)}styleDescriptionText(t){return t}styleOptionTerm(t){return this.styleOptionText(t)}styleSubcommandTerm(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleSubcommandText(r)).join(" ")}styleArgumentTerm(t){return this.styleArgumentText(t)}styleOptionText(t){return t}styleArgumentText(t){return t}styleSubcommandText(t){return t}styleCommandText(t){return t}padWidth(t,r){return Math.max(r.longestOptionTermLength(t,r),r.longestGlobalOptionTermLength(t,r),r.longestSubcommandTermLength(t,r),r.longestArgumentTermLength(t,r))}preformatted(t){return/\n[^\S\r\n]/.test(t)}formatItem(t,r,i,n){let s=" ".repeat(2);if(!i)return s+t;let o=t.padEnd(r+t.length-n.displayWidth(t)),u=2,l=(this.helpWidth??80)-r-u-2,h;return l<this.minWidthToWrap||n.preformatted(i)?h=i:h=n.boxWrap(i,l).replace(/\n/g,`
5
5
  `+" ".repeat(r+u)),s+o+" ".repeat(u)+h.replace(/\n/g,`
6
6
  ${s}`)}boxWrap(t,r){if(r<this.minWidthToWrap)return t;let i=t.split(/\r\n|\n/),n=/[\s]*[^\s]+/g,a=[];return i.forEach(s=>{let o=s.match(n);if(o===null){a.push("");return}let u=[o.shift()],f=this.displayWidth(u[0]);o.forEach(l=>{let h=this.displayWidth(l);if(f+h<=r){u.push(l),f+=h;return}a.push(u.join(""));let c=l.trimStart();u=[c],f=this.displayWidth(c)}),a.push(u.join(""))}),a.join(`
7
- `)}};var at=class{constructor(t,r){this.flags=t,this.description=r||"",this.required=t.includes("<"),this.optional=t.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(t),this.mandatory=!1;let i=gu(t);this.short=i.shortFlag,this.long=i.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}preset(t){return this.presetArg=t,this}conflicts(t){return this.conflictsWith=this.conflictsWith.concat(t),this}implies(t){let r=t;return typeof t=="string"&&(r={[t]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(t){return this.envVar=t,this}argParser(t){return this.parseArg=t,this}makeOptionMandatory(t=!0){return this.mandatory=!!t,this}hideHelp(t=!0){return this.hidden=!!t,this}_collectValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:(r.push(t),r)}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new He(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(r,i):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?Oa(this.name().replace(/^no-/,"")):Oa(this.name())}helpGroup(t){return this.helpGroupHeading=t,this}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Er=class{constructor(t){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,t.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,i)=>{this.positiveOptions.has(i)&&this.dualOptions.add(i)})}valueFromOption(t,r){let i=r.attributeName();if(!this.dualOptions.has(i))return!0;let n=this.negativeOptions.get(i).presetArg,a=n!==void 0?n:!1;return r.negate===(a===t)}};function Oa(e){return e.split("-").reduce((t,r)=>t+r[0].toUpperCase()+r.slice(1))}function gu(e){let t,r,i=/^-[^-]$/,n=/^--[^-]/,a=e.split(/[ |,]+/).concat("guard");if(i.test(a[0])&&(t=a.shift()),n.test(a[0])&&(r=a.shift()),!t&&i.test(a[0])&&(t=a.shift()),!t&&n.test(a[0])&&(t=r,r=a.shift()),a[0].startsWith("-")){let s=a[0],o=`option creation failed due to '${s}' in option flags '${e}'`;throw/^-[^-][^-]/.test(s)?new Error(`${o}
7
+ `)}};var st=class{constructor(t,r){this.flags=t,this.description=r||"",this.required=t.includes("<"),this.optional=t.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(t),this.mandatory=!1;let i=Cu(t);this.short=i.shortFlag,this.long=i.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}preset(t){return this.presetArg=t,this}conflicts(t){return this.conflictsWith=this.conflictsWith.concat(t),this}implies(t){let r=t;return typeof t=="string"&&(r={[t]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(t){return this.envVar=t,this}argParser(t){return this.parseArg=t,this}makeOptionMandatory(t=!0){return this.mandatory=!!t,this}hideHelp(t=!0){return this.hidden=!!t,this}_collectValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:(r.push(t),r)}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new He(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(r,i):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?Ra(this.name().replace(/^no-/,"")):Ra(this.name())}helpGroup(t){return this.helpGroupHeading=t,this}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Cr=class{constructor(t){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,t.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,i)=>{this.positiveOptions.has(i)&&this.dualOptions.add(i)})}valueFromOption(t,r){let i=r.attributeName();if(!this.dualOptions.has(i))return!0;let n=this.negativeOptions.get(i).presetArg,a=n!==void 0?n:!1;return r.negate===(a===t)}};function Ra(e){return e.split("-").reduce((t,r)=>t+r[0].toUpperCase()+r.slice(1))}function Cu(e){let t,r,i=/^-[^-]$/,n=/^--[^-]/,a=e.split(/[ |,]+/).concat("guard");if(i.test(a[0])&&(t=a.shift()),n.test(a[0])&&(r=a.shift()),!t&&i.test(a[0])&&(t=a.shift()),!t&&n.test(a[0])&&(t=r,r=a.shift()),a[0].startsWith("-")){let s=a[0],o=`option creation failed due to '${s}' in option flags '${e}'`;throw/^-[^-][^-]/.test(s)?new Error(`${o}
8
8
  - a short flag is a single dash and a single character
9
9
  - either use a single dash and a single character (for a short flag)
10
10
  - or use a double dash for a long option (and can have two, like '--ws, --workspace')`):i.test(s)?new Error(`${o}
11
11
  - too many short flags`):n.test(s)?new Error(`${o}
12
12
  - too many long flags`):new Error(`${o}
13
- - unrecognised flag format`)}if(t===void 0&&r===void 0)throw new Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:r}}function vu(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);let r=[];for(let i=0;i<=e.length;i++)r[i]=[i];for(let i=0;i<=t.length;i++)r[0][i]=i;for(let i=1;i<=t.length;i++)for(let n=1;n<=e.length;n++){let a;e[n-1]===t[i-1]?a=0:a=1,r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+a),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+1))}return r[e.length][t.length]}function Ei(e,t){if(!t||t.length===0)return"";t=Array.from(new Set(t));let r=e.startsWith("--");r&&(e=e.slice(2),t=t.map(s=>s.slice(2)));let i=[],n=3,a=.4;return t.forEach(s=>{if(s.length<=1)return;let o=vu(e,s),u=Math.max(e.length,s.length);(u-o)/u>a&&(o<n?(n=o,i=[s]):o===n&&i.push(s))}),i.sort((s,o)=>s.localeCompare(o)),r&&(i=i.map(s=>`--${s}`)),i.length>1?`
13
+ - unrecognised flag format`)}if(t===void 0&&r===void 0)throw new Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:r}}function Ou(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);let r=[];for(let i=0;i<=e.length;i++)r[i]=[i];for(let i=0;i<=t.length;i++)r[0][i]=i;for(let i=1;i<=t.length;i++)for(let n=1;n<=e.length;n++){let a;e[n-1]===t[i-1]?a=0:a=1,r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+a),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+1))}return r[e.length][t.length]}function Ti(e,t){if(!t||t.length===0)return"";t=Array.from(new Set(t));let r=e.startsWith("--");r&&(e=e.slice(2),t=t.map(s=>s.slice(2)));let i=[],n=3,a=.4;return t.forEach(s=>{if(s.length<=1)return;let o=Ou(e,s),u=Math.max(e.length,s.length);(u-o)/u>a&&(o<n?(n=o,i=[s]):o===n&&i.push(s))}),i.sort((s,o)=>s.localeCompare(o)),r&&(i=i.map(s=>`--${s}`)),i.length>1?`
14
14
  (Did you mean one of ${i.join(", ")}?)`:i.length===1?`
15
- (Did you mean ${i[0]}?)`:""}var Or=class e extends bu{constructor(t){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=t||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:r=>D.stdout.write(r),writeErr:r=>D.stderr.write(r),outputError:(r,i)=>i(r),getOutHelpWidth:()=>D.stdout.isTTY?D.stdout.columns:void 0,getErrHelpWidth:()=>D.stderr.isTTY?D.stderr.columns:void 0,getOutHasColors:()=>Ta()??(D.stdout.isTTY&&D.stdout.hasColors?.()),getErrHasColors:()=>Ta()??(D.stderr.isTTY&&D.stderr.hasColors?.()),stripColor:r=>wu(r)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(t){return this._outputConfiguration=t._outputConfiguration,this._helpOption=t._helpOption,this._helpCommand=t._helpCommand,this._helpConfiguration=t._helpConfiguration,this._exitCallback=t._exitCallback,this._storeOptionsAsProperties=t._storeOptionsAsProperties,this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue,this._allowExcessArguments=t._allowExcessArguments,this._enablePositionalOptions=t._enablePositionalOptions,this._showHelpAfterError=t._showHelpAfterError,this._showSuggestionAfterError=t._showSuggestionAfterError,this}_getCommandAndAncestors(){let t=[];for(let r=this;r;r=r.parent)t.push(r);return t}command(t,r,i){let n=r,a=i;typeof n=="object"&&n!==null&&(a=n,n=null),a=a||{};let[,s,o]=t.match(/([^ ]+) *(.*)/),u=this.createCommand(s);return n&&(u.description(n),u._executableHandler=!0),a.isDefault&&(this._defaultCommandName=u._name),u._hidden=!!(a.noHelp||a.hidden),u._executableFile=a.executableFile||null,o&&u.arguments(o),this._registerCommand(u),u.parent=this,u.copyInheritedSettings(this),n?this:u}createCommand(t){return new e(t)}createHelp(){return Object.assign(new Pt,this.configureHelp())}configureHelp(t){return t===void 0?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){return t===void 0?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...t},this)}showHelpAfterError(t=!0){return typeof t!="string"&&(t=!!t),this._showHelpAfterError=t,this}showSuggestionAfterError(t=!0){return this._showSuggestionAfterError=!!t,this}addCommand(t,r){if(!t._name)throw new Error(`Command passed to .addCommand() must have a name
16
- - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=t._name),(r.noHelp||r.hidden)&&(t._hidden=!0),this._registerCommand(t),t.parent=this,t._checkForBrokenPassThrough(),this}createArgument(t,r){return new Nt(t,r)}argument(t,r,i,n){let a=this.createArgument(t,r);return typeof i=="function"?a.default(n).argParser(i):a.default(i),this.addArgument(a),this}arguments(t){return t.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(t){let r=this.registeredArguments.slice(-1)[0];if(r?.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(t.required&&t.defaultValue!==void 0&&t.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${t.name()}'`);return this.registeredArguments.push(t),this}helpCommand(t,r){if(typeof t=="boolean")return this._addImplicitHelpCommand=t,t&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;let i=t??"help [command]",[,n,a]=i.match(/([^ ]+) *(.*)/),s=r??"display help for command",o=this.createCommand(n);return o.helpOption(!1),a&&o.arguments(a),s&&o.description(s),this._addImplicitHelpCommand=!0,this._helpCommand=o,(t||r)&&this._initCommandGroup(o),this}addHelpCommand(t,r){return typeof t!="object"?(this.helpCommand(t,r),this):(this._addImplicitHelpCommand=!0,this._helpCommand=t,this._initCommandGroup(t),this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(t,r){let i=["preSubcommand","preAction","postAction"];if(!i.includes(t))throw new Error(`Unexpected value for event passed to hook : '${t}'.
17
- Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(r):this._lifeCycleHooks[t]=[r],this}exitOverride(t){return t?this._exitCallback=t:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(t,r,i){this._exitCallback&&this._exitCallback(new Ie(t,r,i)),D.exit(t)}action(t){let r=i=>{let n=this.registeredArguments.length,a=i.slice(0,n);return this._storeOptionsAsProperties?a[n]=this:a[n]=this.opts(),a.push(this),t.apply(this,a)};return this._actionHandler=r,this}createOption(t,r){return new at(t,r)}_callParseArg(t,r,i,n){try{return t.parseArg(r,i)}catch(a){if(a.code==="commander.invalidArgument"){let s=`${n} ${a.message}`;this.error(s,{exitCode:a.exitCode,code:a.code})}throw a}}_registerOption(t){let r=t.short&&this._findOption(t.short)||t.long&&this._findOption(t.long);if(r){let i=t.long&&this._findOption(t.long)?t.long:t.short;throw new Error(`Cannot add option '${t.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${i}'
18
- - already used by option '${r.flags}'`)}this._initOptionGroup(t),this.options.push(t)}_registerCommand(t){let r=n=>[n.name()].concat(n.aliases()),i=r(t).find(n=>this._findCommand(n));if(i){let n=r(this._findCommand(i)).join("|"),a=r(t).join("|");throw new Error(`cannot add command '${a}' as already have command '${n}'`)}this._initCommandGroup(t),this.commands.push(t)}addOption(t){this._registerOption(t);let r=t.name(),i=t.attributeName();t.defaultValue!==void 0&&this.setOptionValueWithSource(i,t.defaultValue,"default");let n=(a,s,o)=>{a==null&&t.presetArg!==void 0&&(a=t.presetArg);let u=this.getOptionValue(i);a!==null&&t.parseArg?a=this._callParseArg(t,a,u,s):a!==null&&t.variadic&&(a=t._collectValue(a,u)),a==null&&(t.negate?a=!1:t.isBoolean()||t.optional?a=!0:a=""),this.setOptionValueWithSource(i,a,o)};return this.on("option:"+r,a=>{let s=`error: option '${t.flags}' argument '${a}' is invalid.`;n(a,s,"cli")}),t.envVar&&this.on("optionEnv:"+r,a=>{let s=`error: option '${t.flags}' value '${a}' from env '${t.envVar}' is invalid.`;n(a,s,"env")}),this}_optionEx(t,r,i,n,a){if(typeof r=="object"&&r instanceof at)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let s=this.createOption(r,i);if(s.makeOptionMandatory(!!t.mandatory),typeof n=="function")s.default(a).argParser(n);else if(n instanceof RegExp){let o=n;n=(u,f)=>{let l=o.exec(u);return l?l[0]:f},s.default(a).argParser(n)}else s.default(n);return this.addOption(s)}option(t,r,i,n){return this._optionEx({},t,r,i,n)}requiredOption(t,r,i,n){return this._optionEx({mandatory:!0},t,r,i,n)}combineFlagAndOptionalValue(t=!0){return this._combineFlagAndOptionalValue=!!t,this}allowUnknownOption(t=!0){return this._allowUnknownOption=!!t,this}allowExcessArguments(t=!0){return this._allowExcessArguments=!!t,this}enablePositionalOptions(t=!0){return this._enablePositionalOptions=!!t,this}passThroughOptions(t=!0){return this._passThroughOptions=!!t,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(t=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!t,this}getOptionValue(t){return this._storeOptionsAsProperties?this[t]:this._optionValues[t]}setOptionValue(t,r){return this.setOptionValueWithSource(t,r,void 0)}setOptionValueWithSource(t,r,i){return this._storeOptionsAsProperties?this[t]=r:this._optionValues[t]=r,this._optionValueSources[t]=i,this}getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let r;return this._getCommandAndAncestors().forEach(i=>{i.getOptionValueSource(t)!==void 0&&(r=i.getOptionValueSource(t))}),r}_prepareUserArgs(t,r){if(t!==void 0&&!Array.isArray(t))throw new Error("first parameter to parse must be array or undefined");if(r=r||{},t===void 0&&r.from===void 0){D.versions?.electron&&(r.from="electron");let n=D.execArgv??[];(n.includes("-e")||n.includes("--eval")||n.includes("-p")||n.includes("--print"))&&(r.from="eval")}t===void 0&&(t=D.argv),this.rawArgs=t.slice();let i;switch(r.from){case void 0:case"node":this._scriptPath=t[1],i=t.slice(2);break;case"electron":D.defaultApp?(this._scriptPath=t[1],i=t.slice(2)):i=t.slice(1);break;case"user":i=t.slice(0);break;case"eval":i=t.slice(1);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",i}parse(t,r){this._prepareForParse();let i=this._prepareUserArgs(t,r);return this._parseCommand([],i),this}async parseAsync(t,r){this._prepareForParse();let i=this._prepareUserArgs(t,r);return await this._parseCommand([],i),this}_prepareForParse(){this._savedState===null?(this.options.filter(t=>t.negate&&t.defaultValue===void 0&&this.getOptionValue(t.attributeName())===void 0).forEach(t=>{let r=t.long.replace(/^--no-/,"--");this._findOption(r)||this.setOptionValueWithSource(t.attributeName(),!0,"default")}),this.saveStateBeforeParse()):this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
19
- - either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(t,r,i){if(Cr.existsSync(t))return;let n=r?`searched for local subcommand relative to directory '${r}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",a=`'${t}' does not exist
15
+ (Did you mean ${i[0]}?)`:""}var Ar=class e extends Au{constructor(t){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=t||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:r=>D.stdout.write(r),writeErr:r=>D.stderr.write(r),outputError:(r,i)=>i(r),getOutHelpWidth:()=>D.stdout.isTTY?D.stdout.columns:void 0,getErrHelpWidth:()=>D.stderr.isTTY?D.stderr.columns:void 0,getOutHasColors:()=>Na()??(D.stdout.isTTY&&D.stdout.hasColors?.()),getErrHasColors:()=>Na()??(D.stderr.isTTY&&D.stderr.hasColors?.()),stripColor:r=>Tu(r)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(t){return this._outputConfiguration=t._outputConfiguration,this._helpOption=t._helpOption,this._helpCommand=t._helpCommand,this._helpConfiguration=t._helpConfiguration,this._exitCallback=t._exitCallback,this._storeOptionsAsProperties=t._storeOptionsAsProperties,this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue,this._allowExcessArguments=t._allowExcessArguments,this._enablePositionalOptions=t._enablePositionalOptions,this._showHelpAfterError=t._showHelpAfterError,this._showSuggestionAfterError=t._showSuggestionAfterError,this}_getCommandAndAncestors(){let t=[];for(let r=this;r;r=r.parent)t.push(r);return t}command(t,r,i){let n=r,a=i;typeof n=="object"&&n!==null&&(a=n,n=null),a=a||{};let[,s,o]=t.match(/([^ ]+) *(.*)/),u=this.createCommand(s);return n&&(u.description(n),u._executableHandler=!0),a.isDefault&&(this._defaultCommandName=u._name),u._hidden=!!(a.noHelp||a.hidden),u._executableFile=a.executableFile||null,o&&u.arguments(o),this._registerCommand(u),u.parent=this,u.copyInheritedSettings(this),n?this:u}createCommand(t){return new e(t)}createHelp(){return Object.assign(new Bt,this.configureHelp())}configureHelp(t){return t===void 0?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){return t===void 0?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...t},this)}showHelpAfterError(t=!0){return typeof t!="string"&&(t=!!t),this._showHelpAfterError=t,this}showSuggestionAfterError(t=!0){return this._showSuggestionAfterError=!!t,this}addCommand(t,r){if(!t._name)throw new Error(`Command passed to .addCommand() must have a name
16
+ - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=t._name),(r.noHelp||r.hidden)&&(t._hidden=!0),this._registerCommand(t),t.parent=this,t._checkForBrokenPassThrough(),this}createArgument(t,r){return new Pt(t,r)}argument(t,r,i,n){let a=this.createArgument(t,r);return typeof i=="function"?a.default(n).argParser(i):a.default(i),this.addArgument(a),this}arguments(t){return t.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(t){let r=this.registeredArguments.slice(-1)[0];if(r?.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(t.required&&t.defaultValue!==void 0&&t.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${t.name()}'`);return this.registeredArguments.push(t),this}helpCommand(t,r){if(typeof t=="boolean")return this._addImplicitHelpCommand=t,t&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;let i=t??"help [command]",[,n,a]=i.match(/([^ ]+) *(.*)/),s=r??"display help for command",o=this.createCommand(n);return o.helpOption(!1),a&&o.arguments(a),s&&o.description(s),this._addImplicitHelpCommand=!0,this._helpCommand=o,(t||r)&&this._initCommandGroup(o),this}addHelpCommand(t,r){return typeof t!="object"?(this.helpCommand(t,r),this):(this._addImplicitHelpCommand=!0,this._helpCommand=t,this._initCommandGroup(t),this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(t,r){let i=["preSubcommand","preAction","postAction"];if(!i.includes(t))throw new Error(`Unexpected value for event passed to hook : '${t}'.
17
+ Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(r):this._lifeCycleHooks[t]=[r],this}exitOverride(t){return t?this._exitCallback=t:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(t,r,i){this._exitCallback&&this._exitCallback(new Ie(t,r,i)),D.exit(t)}action(t){let r=i=>{let n=this.registeredArguments.length,a=i.slice(0,n);return this._storeOptionsAsProperties?a[n]=this:a[n]=this.opts(),a.push(this),t.apply(this,a)};return this._actionHandler=r,this}createOption(t,r){return new st(t,r)}_callParseArg(t,r,i,n){try{return t.parseArg(r,i)}catch(a){if(a.code==="commander.invalidArgument"){let s=`${n} ${a.message}`;this.error(s,{exitCode:a.exitCode,code:a.code})}throw a}}_registerOption(t){let r=t.short&&this._findOption(t.short)||t.long&&this._findOption(t.long);if(r){let i=t.long&&this._findOption(t.long)?t.long:t.short;throw new Error(`Cannot add option '${t.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${i}'
18
+ - already used by option '${r.flags}'`)}this._initOptionGroup(t),this.options.push(t)}_registerCommand(t){let r=n=>[n.name()].concat(n.aliases()),i=r(t).find(n=>this._findCommand(n));if(i){let n=r(this._findCommand(i)).join("|"),a=r(t).join("|");throw new Error(`cannot add command '${a}' as already have command '${n}'`)}this._initCommandGroup(t),this.commands.push(t)}addOption(t){this._registerOption(t);let r=t.name(),i=t.attributeName();t.defaultValue!==void 0&&this.setOptionValueWithSource(i,t.defaultValue,"default");let n=(a,s,o)=>{a==null&&t.presetArg!==void 0&&(a=t.presetArg);let u=this.getOptionValue(i);a!==null&&t.parseArg?a=this._callParseArg(t,a,u,s):a!==null&&t.variadic&&(a=t._collectValue(a,u)),a==null&&(t.negate?a=!1:t.isBoolean()||t.optional?a=!0:a=""),this.setOptionValueWithSource(i,a,o)};return this.on("option:"+r,a=>{let s=`error: option '${t.flags}' argument '${a}' is invalid.`;n(a,s,"cli")}),t.envVar&&this.on("optionEnv:"+r,a=>{let s=`error: option '${t.flags}' value '${a}' from env '${t.envVar}' is invalid.`;n(a,s,"env")}),this}_optionEx(t,r,i,n,a){if(typeof r=="object"&&r instanceof st)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let s=this.createOption(r,i);if(s.makeOptionMandatory(!!t.mandatory),typeof n=="function")s.default(a).argParser(n);else if(n instanceof RegExp){let o=n;n=(u,f)=>{let l=o.exec(u);return l?l[0]:f},s.default(a).argParser(n)}else s.default(n);return this.addOption(s)}option(t,r,i,n){return this._optionEx({},t,r,i,n)}requiredOption(t,r,i,n){return this._optionEx({mandatory:!0},t,r,i,n)}combineFlagAndOptionalValue(t=!0){return this._combineFlagAndOptionalValue=!!t,this}allowUnknownOption(t=!0){return this._allowUnknownOption=!!t,this}allowExcessArguments(t=!0){return this._allowExcessArguments=!!t,this}enablePositionalOptions(t=!0){return this._enablePositionalOptions=!!t,this}passThroughOptions(t=!0){return this._passThroughOptions=!!t,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(t=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!t,this}getOptionValue(t){return this._storeOptionsAsProperties?this[t]:this._optionValues[t]}setOptionValue(t,r){return this.setOptionValueWithSource(t,r,void 0)}setOptionValueWithSource(t,r,i){return this._storeOptionsAsProperties?this[t]=r:this._optionValues[t]=r,this._optionValueSources[t]=i,this}getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let r;return this._getCommandAndAncestors().forEach(i=>{i.getOptionValueSource(t)!==void 0&&(r=i.getOptionValueSource(t))}),r}_prepareUserArgs(t,r){if(t!==void 0&&!Array.isArray(t))throw new Error("first parameter to parse must be array or undefined");if(r=r||{},t===void 0&&r.from===void 0){D.versions?.electron&&(r.from="electron");let n=D.execArgv??[];(n.includes("-e")||n.includes("--eval")||n.includes("-p")||n.includes("--print"))&&(r.from="eval")}t===void 0&&(t=D.argv),this.rawArgs=t.slice();let i;switch(r.from){case void 0:case"node":this._scriptPath=t[1],i=t.slice(2);break;case"electron":D.defaultApp?(this._scriptPath=t[1],i=t.slice(2)):i=t.slice(1);break;case"user":i=t.slice(0);break;case"eval":i=t.slice(1);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",i}parse(t,r){this._prepareForParse();let i=this._prepareUserArgs(t,r);return this._parseCommand([],i),this}async parseAsync(t,r){this._prepareForParse();let i=this._prepareUserArgs(t,r);return await this._parseCommand([],i),this}_prepareForParse(){this._savedState===null?(this.options.filter(t=>t.negate&&t.defaultValue===void 0&&this.getOptionValue(t.attributeName())===void 0).forEach(t=>{let r=t.long.replace(/^--no-/,"--");this._findOption(r)||this.setOptionValueWithSource(t.attributeName(),!0,"default")}),this.saveStateBeforeParse()):this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
19
+ - either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(t,r,i){if(Or.existsSync(t))return;let n=r?`searched for local subcommand relative to directory '${r}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",a=`'${t}' does not exist
20
20
  - if '${i}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
21
21
  - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
22
- - ${n}`;throw new Error(a)}_executeSubCommand(t,r){r=r.slice();let i=[".js",".ts",".tsx",".mjs",".cjs"];function n(l,h){let c=we.resolve(l,h);if(Cr.existsSync(c))return c;if(i.includes(we.extname(h)))return;let d=i.find(b=>Cr.existsSync(`${c}${b}`));if(d)return`${c}${d}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=t._executableFile||`${this._name}-${t._name}`,s=this._executableDir||"";if(this._scriptPath){let l;try{l=Cr.realpathSync(this._scriptPath)}catch{l=this._scriptPath}s=we.resolve(we.dirname(l),s)}if(s){let l=n(s,a);if(!l&&!t._executableFile&&this._scriptPath){let h=we.basename(this._scriptPath,we.extname(this._scriptPath));h!==this._name&&(l=n(s,`${h}-${t._name}`))}a=l||a}let o=i.includes(we.extname(a)),u;D.platform!=="win32"?o?(r.unshift(a),r=Aa(D.execArgv).concat(r),u=Ci.spawn(D.argv[0],r,{stdio:"inherit"})):u=Ci.spawn(a,r,{stdio:"inherit"}):(this._checkForMissingExecutable(a,s,t._name),r.unshift(a),r=Aa(D.execArgv).concat(r),u=Ci.spawn(D.execPath,r,{stdio:"inherit"})),u.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(h=>{D.on(h,()=>{u.killed===!1&&u.exitCode===null&&u.kill(h)})});let f=this._exitCallback;u.on("close",l=>{l=l??1,f?f(new Ie(l,"commander.executeSubCommandAsync","(close)")):D.exit(l)}),u.on("error",l=>{if(l.code==="ENOENT")this._checkForMissingExecutable(a,s,t._name);else if(l.code==="EACCES")throw new Error(`'${a}' not executable`);if(!f)D.exit(1);else{let h=new Ie(1,"commander.executeSubCommandAsync","(error)");h.nestedError=l,f(h)}}),this.runningCommand=u}_dispatchSubcommand(t,r,i){let n=this._findCommand(t);n||this.help({error:!0}),n._prepareForParse();let a;return a=this._chainOrCallSubCommandHook(a,n,"preSubcommand"),a=this._chainOrCall(a,()=>{if(n._executableHandler)this._executeSubCommand(n,r.concat(i));else return n._parseCommand(r,i)}),a}_dispatchHelpCommand(t){t||this.help();let r=this._findCommand(t);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(t,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((t,r)=>{t.required&&this.args[r]==null&&this.missingArgument(t.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let t=(i,n,a)=>{let s=n;if(n!==null&&i.parseArg){let o=`error: command-argument value '${n}' is invalid for argument '${i.name()}'.`;s=this._callParseArg(i,n,a,o)}return s};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((i,n)=>{let a=i.defaultValue;i.variadic?n<this.args.length?(a=this.args.slice(n),i.parseArg&&(a=a.reduce((s,o)=>t(i,o,s),i.defaultValue))):a===void 0&&(a=[]):n<this.args.length&&(a=this.args[n],i.parseArg&&(a=t(i,a,i.defaultValue))),r[n]=a}),this.processedArgs=r}_chainOrCall(t,r){return t?.then&&typeof t.then=="function"?t.then(()=>r()):r()}_chainOrCallHooks(t,r){let i=t,n=[];return this._getCommandAndAncestors().reverse().filter(a=>a._lifeCycleHooks[r]!==void 0).forEach(a=>{a._lifeCycleHooks[r].forEach(s=>{n.push({hookedCommand:a,callback:s})})}),r==="postAction"&&n.reverse(),n.forEach(a=>{i=this._chainOrCall(i,()=>a.callback(a.hookedCommand,this))}),i}_chainOrCallSubCommandHook(t,r,i){let n=t;return this._lifeCycleHooks[i]!==void 0&&this._lifeCycleHooks[i].forEach(a=>{n=this._chainOrCall(n,()=>a(this,r))}),n}_parseCommand(t,r){let i=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),t=t.concat(i.operands),r=i.unknown,this.args=t.concat(r),t&&this._findCommand(t[0]))return this._dispatchSubcommand(t[0],t.slice(1),r);if(this._getHelpCommand()&&t[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(t[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(r),this._dispatchSubcommand(this._defaultCommandName,t,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(i.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let n=()=>{i.unknown.length>0&&this.unknownOption(i.unknown[0])},a=`command:${this.name()}`;if(this._actionHandler){n(),this._processArguments();let s;return s=this._chainOrCallHooks(s,"preAction"),s=this._chainOrCall(s,()=>this._actionHandler(this.processedArgs)),this.parent&&(s=this._chainOrCall(s,()=>{this.parent.emit(a,t,r)})),s=this._chainOrCallHooks(s,"postAction"),s}if(this.parent?.listenerCount(a))n(),this._processArguments(),this.parent.emit(a,t,r);else if(t.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",t,r);this.listenerCount("command:*")?this.emit("command:*",t,r):this.commands.length?this.unknownCommand():(n(),this._processArguments())}else this.commands.length?(n(),this.help({error:!0})):(n(),this._processArguments())}_findCommand(t){if(t)return this.commands.find(r=>r._name===t||r._aliases.includes(t))}_findOption(t){return this.options.find(r=>r.is(t))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(t=>{t.options.forEach(r=>{r.mandatory&&t.getOptionValue(r.attributeName())===void 0&&t.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let t=this.options.filter(i=>{let n=i.attributeName();return this.getOptionValue(n)===void 0?!1:this.getOptionValueSource(n)!=="default"});t.filter(i=>i.conflictsWith.length>0).forEach(i=>{let n=t.find(a=>i.conflictsWith.includes(a.attributeName()));n&&this._conflictingOption(i,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(t=>{t._checkForConflictingLocalOptions()})}parseOptions(t){let r=[],i=[],n=r;function a(l){return l.length>1&&l[0]==="-"}let s=l=>/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(l)?!this._getCommandAndAncestors().some(h=>h.options.map(c=>c.short).some(c=>/^-\d$/.test(c))):!1,o=null,u=null,f=0;for(;f<t.length||u;){let l=u??t[f++];if(u=null,l==="--"){n===i&&n.push(l),n.push(...t.slice(f));break}if(o&&(!a(l)||s(l))){this.emit(`option:${o.name()}`,l);continue}if(o=null,a(l)){let h=this._findOption(l);if(h){if(h.required){let c=t[f++];c===void 0&&this.optionMissingArgument(h),this.emit(`option:${h.name()}`,c)}else if(h.optional){let c=null;f<t.length&&(!a(t[f])||s(t[f]))&&(c=t[f++]),this.emit(`option:${h.name()}`,c)}else this.emit(`option:${h.name()}`);o=h.variadic?h:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let h=this._findOption(`-${l[1]}`);if(h){h.required||h.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${h.name()}`,l.slice(2)):(this.emit(`option:${h.name()}`),u=`-${l.slice(2)}`);continue}}if(/^--[^=]+=/.test(l)){let h=l.indexOf("="),c=this._findOption(l.slice(0,h));if(c&&(c.required||c.optional)){this.emit(`option:${c.name()}`,l.slice(h+1));continue}}if(n===r&&a(l)&&!(this.commands.length===0&&s(l))&&(n=i),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&i.length===0){if(this._findCommand(l)){r.push(l),i.push(...t.slice(f));break}else if(this._getHelpCommand()&&l===this._getHelpCommand().name()){r.push(l,...t.slice(f));break}else if(this._defaultCommandName){i.push(l,...t.slice(f));break}}if(this._passThroughOptions){n.push(l,...t.slice(f));break}n.push(l)}return{operands:r,unknown:i}}opts(){if(this._storeOptionsAsProperties){let t={},r=this.options.length;for(let i=0;i<r;i++){let n=this.options[i].attributeName();t[n]=n===this._versionOptionName?this._version:this[n]}return t}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((t,r)=>Object.assign(t,r.opts()),{})}error(t,r){this._outputConfiguration.outputError(`${t}
22
+ - ${n}`;throw new Error(a)}_executeSubCommand(t,r){r=r.slice();let i=[".js",".ts",".tsx",".mjs",".cjs"];function n(l,h){let c=we.resolve(l,h);if(Or.existsSync(c))return c;if(i.includes(we.extname(h)))return;let d=i.find(b=>Or.existsSync(`${c}${b}`));if(d)return`${c}${d}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=t._executableFile||`${this._name}-${t._name}`,s=this._executableDir||"";if(this._scriptPath){let l;try{l=Or.realpathSync(this._scriptPath)}catch{l=this._scriptPath}s=we.resolve(we.dirname(l),s)}if(s){let l=n(s,a);if(!l&&!t._executableFile&&this._scriptPath){let h=we.basename(this._scriptPath,we.extname(this._scriptPath));h!==this._name&&(l=n(s,`${h}-${t._name}`))}a=l||a}let o=i.includes(we.extname(a)),u;D.platform!=="win32"?o?(r.unshift(a),r=Fa(D.execArgv).concat(r),u=Di.spawn(D.argv[0],r,{stdio:"inherit"})):u=Di.spawn(a,r,{stdio:"inherit"}):(this._checkForMissingExecutable(a,s,t._name),r.unshift(a),r=Fa(D.execArgv).concat(r),u=Di.spawn(D.execPath,r,{stdio:"inherit"})),u.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(h=>{D.on(h,()=>{u.killed===!1&&u.exitCode===null&&u.kill(h)})});let f=this._exitCallback;u.on("close",l=>{l=l??1,f?f(new Ie(l,"commander.executeSubCommandAsync","(close)")):D.exit(l)}),u.on("error",l=>{if(l.code==="ENOENT")this._checkForMissingExecutable(a,s,t._name);else if(l.code==="EACCES")throw new Error(`'${a}' not executable`);if(!f)D.exit(1);else{let h=new Ie(1,"commander.executeSubCommandAsync","(error)");h.nestedError=l,f(h)}}),this.runningCommand=u}_dispatchSubcommand(t,r,i){let n=this._findCommand(t);n||this.help({error:!0}),n._prepareForParse();let a;return a=this._chainOrCallSubCommandHook(a,n,"preSubcommand"),a=this._chainOrCall(a,()=>{if(n._executableHandler)this._executeSubCommand(n,r.concat(i));else return n._parseCommand(r,i)}),a}_dispatchHelpCommand(t){t||this.help();let r=this._findCommand(t);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(t,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((t,r)=>{t.required&&this.args[r]==null&&this.missingArgument(t.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let t=(i,n,a)=>{let s=n;if(n!==null&&i.parseArg){let o=`error: command-argument value '${n}' is invalid for argument '${i.name()}'.`;s=this._callParseArg(i,n,a,o)}return s};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((i,n)=>{let a=i.defaultValue;i.variadic?n<this.args.length?(a=this.args.slice(n),i.parseArg&&(a=a.reduce((s,o)=>t(i,o,s),i.defaultValue))):a===void 0&&(a=[]):n<this.args.length&&(a=this.args[n],i.parseArg&&(a=t(i,a,i.defaultValue))),r[n]=a}),this.processedArgs=r}_chainOrCall(t,r){return t?.then&&typeof t.then=="function"?t.then(()=>r()):r()}_chainOrCallHooks(t,r){let i=t,n=[];return this._getCommandAndAncestors().reverse().filter(a=>a._lifeCycleHooks[r]!==void 0).forEach(a=>{a._lifeCycleHooks[r].forEach(s=>{n.push({hookedCommand:a,callback:s})})}),r==="postAction"&&n.reverse(),n.forEach(a=>{i=this._chainOrCall(i,()=>a.callback(a.hookedCommand,this))}),i}_chainOrCallSubCommandHook(t,r,i){let n=t;return this._lifeCycleHooks[i]!==void 0&&this._lifeCycleHooks[i].forEach(a=>{n=this._chainOrCall(n,()=>a(this,r))}),n}_parseCommand(t,r){let i=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),t=t.concat(i.operands),r=i.unknown,this.args=t.concat(r),t&&this._findCommand(t[0]))return this._dispatchSubcommand(t[0],t.slice(1),r);if(this._getHelpCommand()&&t[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(t[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(r),this._dispatchSubcommand(this._defaultCommandName,t,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(i.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let n=()=>{i.unknown.length>0&&this.unknownOption(i.unknown[0])},a=`command:${this.name()}`;if(this._actionHandler){n(),this._processArguments();let s;return s=this._chainOrCallHooks(s,"preAction"),s=this._chainOrCall(s,()=>this._actionHandler(this.processedArgs)),this.parent&&(s=this._chainOrCall(s,()=>{this.parent.emit(a,t,r)})),s=this._chainOrCallHooks(s,"postAction"),s}if(this.parent?.listenerCount(a))n(),this._processArguments(),this.parent.emit(a,t,r);else if(t.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",t,r);this.listenerCount("command:*")?this.emit("command:*",t,r):this.commands.length?this.unknownCommand():(n(),this._processArguments())}else this.commands.length?(n(),this.help({error:!0})):(n(),this._processArguments())}_findCommand(t){if(t)return this.commands.find(r=>r._name===t||r._aliases.includes(t))}_findOption(t){return this.options.find(r=>r.is(t))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(t=>{t.options.forEach(r=>{r.mandatory&&t.getOptionValue(r.attributeName())===void 0&&t.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let t=this.options.filter(i=>{let n=i.attributeName();return this.getOptionValue(n)===void 0?!1:this.getOptionValueSource(n)!=="default"});t.filter(i=>i.conflictsWith.length>0).forEach(i=>{let n=t.find(a=>i.conflictsWith.includes(a.attributeName()));n&&this._conflictingOption(i,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(t=>{t._checkForConflictingLocalOptions()})}parseOptions(t){let r=[],i=[],n=r;function a(l){return l.length>1&&l[0]==="-"}let s=l=>/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(l)?!this._getCommandAndAncestors().some(h=>h.options.map(c=>c.short).some(c=>/^-\d$/.test(c))):!1,o=null,u=null,f=0;for(;f<t.length||u;){let l=u??t[f++];if(u=null,l==="--"){n===i&&n.push(l),n.push(...t.slice(f));break}if(o&&(!a(l)||s(l))){this.emit(`option:${o.name()}`,l);continue}if(o=null,a(l)){let h=this._findOption(l);if(h){if(h.required){let c=t[f++];c===void 0&&this.optionMissingArgument(h),this.emit(`option:${h.name()}`,c)}else if(h.optional){let c=null;f<t.length&&(!a(t[f])||s(t[f]))&&(c=t[f++]),this.emit(`option:${h.name()}`,c)}else this.emit(`option:${h.name()}`);o=h.variadic?h:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let h=this._findOption(`-${l[1]}`);if(h){h.required||h.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${h.name()}`,l.slice(2)):(this.emit(`option:${h.name()}`),u=`-${l.slice(2)}`);continue}}if(/^--[^=]+=/.test(l)){let h=l.indexOf("="),c=this._findOption(l.slice(0,h));if(c&&(c.required||c.optional)){this.emit(`option:${c.name()}`,l.slice(h+1));continue}}if(n===r&&a(l)&&!(this.commands.length===0&&s(l))&&(n=i),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&i.length===0){if(this._findCommand(l)){r.push(l),i.push(...t.slice(f));break}else if(this._getHelpCommand()&&l===this._getHelpCommand().name()){r.push(l,...t.slice(f));break}else if(this._defaultCommandName){i.push(l,...t.slice(f));break}}if(this._passThroughOptions){n.push(l,...t.slice(f));break}n.push(l)}return{operands:r,unknown:i}}opts(){if(this._storeOptionsAsProperties){let t={},r=this.options.length;for(let i=0;i<r;i++){let n=this.options[i].attributeName();t[n]=n===this._versionOptionName?this._version:this[n]}return t}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((t,r)=>Object.assign(t,r.opts()),{})}error(t,r){this._outputConfiguration.outputError(`${t}
23
23
  `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
24
24
  `):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
25
- `),this.outputHelp({error:!0}));let i=r||{},n=i.exitCode||1,a=i.code||"commander.error";this._exit(n,a,t)}_parseOptionsEnv(){this.options.forEach(t=>{if(t.envVar&&t.envVar in D.env){let r=t.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,D.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){let t=new Er(this.options),r=i=>this.getOptionValue(i)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(i));this.options.filter(i=>i.implied!==void 0&&r(i.attributeName())&&t.valueFromOption(this.getOptionValue(i.attributeName()),i)).forEach(i=>{Object.keys(i.implied).filter(n=>!r(n)).forEach(n=>{this.setOptionValueWithSource(n,i.implied[n],"implied")})})}missingArgument(t){let r=`error: missing required argument '${t}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(t){let r=`error: option '${t.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){let r=`error: required option '${t.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,r){let i=s=>{let o=s.attributeName(),u=this.getOptionValue(o),f=this.options.find(h=>h.negate&&o===h.attributeName()),l=this.options.find(h=>!h.negate&&o===h.attributeName());return f&&(f.presetArg===void 0&&u===!1||f.presetArg!==void 0&&u===f.presetArg)?f:l||s},n=s=>{let o=i(s),u=o.attributeName();return this.getOptionValueSource(u)==="env"?`environment variable '${o.envVar}'`:`option '${o.flags}'`},a=`error: ${n(t)} cannot be used with ${n(r)}`;this.error(a,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let r="";if(t.startsWith("--")&&this._showSuggestionAfterError){let n=[],a=this;do{let s=a.createHelp().visibleOptions(a).filter(o=>o.long).map(o=>o.long);n=n.concat(s),a=a.parent}while(a&&!a._enablePositionalOptions);r=Ei(t,n)}let i=`error: unknown option '${t}'${r}`;this.error(i,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,i=r===1?"":"s",n=t.length,a=this.parent?` for '${this.name()}'`:"",s=t.join(", "),o=`error: too many arguments${a}. Expected ${r} argument${i} but got ${n}: ${s}.`;this.error(o,{code:"commander.excessArguments"})}unknownCommand(){let t=this.args[0],r="";if(this._showSuggestionAfterError){let n=[];this.createHelp().visibleCommands(this).forEach(a=>{n.push(a.name()),a.alias()&&n.push(a.alias())}),r=Ei(t,n)}let i=`error: unknown command '${t}'${r}`;this.error(i,{code:"commander.unknownCommand"})}version(t,r,i){if(t===void 0)return this._version;this._version=t,r=r||"-V, --version",i=i||"output the version number";let n=this.createOption(r,i);return this._versionOptionName=n.attributeName(),this._registerOption(n),this.on("option:"+n.name(),()=>{this._outputConfiguration.writeOut(`${t}
26
- `),this._exit(0,"commander.version",t)}),this}description(t,r){return t===void 0&&r===void 0?this._description:(this._description=t,r&&(this._argsDescription=r),this)}summary(t){return t===void 0?this._summary:(this._summary=t,this)}alias(t){if(t===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),t===r._name)throw new Error("Command alias can't be the same as its name");let i=this.parent?._findCommand(t);if(i){let n=[i.name()].concat(i.aliases()).join("|");throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${n}'`)}return r._aliases.push(t),this}aliases(t){return t===void 0?this._aliases:(t.forEach(r=>this.alias(r)),this)}usage(t){if(t===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(i=>Sr(i));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=t,this}name(t){return t===void 0?this._name:(this._name=t,this)}helpGroup(t){return t===void 0?this._helpGroupHeading??"":(this._helpGroupHeading=t,this)}commandsGroup(t){return t===void 0?this._defaultCommandGroup??"":(this._defaultCommandGroup=t,this)}optionsGroup(t){return t===void 0?this._defaultOptionGroup??"":(this._defaultOptionGroup=t,this)}_initOptionGroup(t){this._defaultOptionGroup&&!t.helpGroupHeading&&t.helpGroup(this._defaultOptionGroup)}_initCommandGroup(t){this._defaultCommandGroup&&!t.helpGroup()&&t.helpGroup(this._defaultCommandGroup)}nameFromFilename(t){return this._name=we.basename(t,we.extname(t)),this}executableDir(t){return t===void 0?this._executableDir:(this._executableDir=t,this)}helpInformation(t){let r=this.createHelp(),i=this._getOutputContext(t);r.prepareContext({error:i.error,helpWidth:i.helpWidth,outputHasColors:i.hasColors});let n=r.formatHelp(this,r);return i.hasColors?n:this._outputConfiguration.stripColor(n)}_getOutputContext(t){t=t||{};let r=!!t.error,i,n,a;return r?(i=o=>this._outputConfiguration.writeErr(o),n=this._outputConfiguration.getErrHasColors(),a=this._outputConfiguration.getErrHelpWidth()):(i=o=>this._outputConfiguration.writeOut(o),n=this._outputConfiguration.getOutHasColors(),a=this._outputConfiguration.getOutHelpWidth()),{error:r,write:o=>(n||(o=this._outputConfiguration.stripColor(o)),i(o)),hasColors:n,helpWidth:a}}outputHelp(t){let r;typeof t=="function"&&(r=t,t=void 0);let i=this._getOutputContext(t),n={error:i.error,write:i.write,command:this};this._getCommandAndAncestors().reverse().forEach(s=>s.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let a=this.helpInformation({error:i.error});if(r&&(a=r(a),typeof a!="string"&&!Buffer.isBuffer(a)))throw new Error("outputHelp callback must return a string or a Buffer");i.write(a),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(s=>s.emit("afterAllHelp",n))}helpOption(t,r){return typeof t=="boolean"?(t?(this._helpOption===null&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(t??"-h, --help",r??"display help for command"),(t||r)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(t){return this._helpOption=t,this._initOptionGroup(t),this}help(t){this.outputHelp(t);let r=Number(D.exitCode??0);r===0&&t&&typeof t!="function"&&t.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(t,r){let i=["beforeAll","before","after","afterAll"];if(!i.includes(t))throw new Error(`Unexpected value for position to addHelpText.
25
+ `),this.outputHelp({error:!0}));let i=r||{},n=i.exitCode||1,a=i.code||"commander.error";this._exit(n,a,t)}_parseOptionsEnv(){this.options.forEach(t=>{if(t.envVar&&t.envVar in D.env){let r=t.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,D.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){let t=new Cr(this.options),r=i=>this.getOptionValue(i)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(i));this.options.filter(i=>i.implied!==void 0&&r(i.attributeName())&&t.valueFromOption(this.getOptionValue(i.attributeName()),i)).forEach(i=>{Object.keys(i.implied).filter(n=>!r(n)).forEach(n=>{this.setOptionValueWithSource(n,i.implied[n],"implied")})})}missingArgument(t){let r=`error: missing required argument '${t}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(t){let r=`error: option '${t.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){let r=`error: required option '${t.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,r){let i=s=>{let o=s.attributeName(),u=this.getOptionValue(o),f=this.options.find(h=>h.negate&&o===h.attributeName()),l=this.options.find(h=>!h.negate&&o===h.attributeName());return f&&(f.presetArg===void 0&&u===!1||f.presetArg!==void 0&&u===f.presetArg)?f:l||s},n=s=>{let o=i(s),u=o.attributeName();return this.getOptionValueSource(u)==="env"?`environment variable '${o.envVar}'`:`option '${o.flags}'`},a=`error: ${n(t)} cannot be used with ${n(r)}`;this.error(a,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let r="";if(t.startsWith("--")&&this._showSuggestionAfterError){let n=[],a=this;do{let s=a.createHelp().visibleOptions(a).filter(o=>o.long).map(o=>o.long);n=n.concat(s),a=a.parent}while(a&&!a._enablePositionalOptions);r=Ti(t,n)}let i=`error: unknown option '${t}'${r}`;this.error(i,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,i=r===1?"":"s",n=t.length,a=this.parent?` for '${this.name()}'`:"",s=t.join(", "),o=`error: too many arguments${a}. Expected ${r} argument${i} but got ${n}: ${s}.`;this.error(o,{code:"commander.excessArguments"})}unknownCommand(){let t=this.args[0],r="";if(this._showSuggestionAfterError){let n=[];this.createHelp().visibleCommands(this).forEach(a=>{n.push(a.name()),a.alias()&&n.push(a.alias())}),r=Ti(t,n)}let i=`error: unknown command '${t}'${r}`;this.error(i,{code:"commander.unknownCommand"})}version(t,r,i){if(t===void 0)return this._version;this._version=t,r=r||"-V, --version",i=i||"output the version number";let n=this.createOption(r,i);return this._versionOptionName=n.attributeName(),this._registerOption(n),this.on("option:"+n.name(),()=>{this._outputConfiguration.writeOut(`${t}
26
+ `),this._exit(0,"commander.version",t)}),this}description(t,r){return t===void 0&&r===void 0?this._description:(this._description=t,r&&(this._argsDescription=r),this)}summary(t){return t===void 0?this._summary:(this._summary=t,this)}alias(t){if(t===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),t===r._name)throw new Error("Command alias can't be the same as its name");let i=this.parent?._findCommand(t);if(i){let n=[i.name()].concat(i.aliases()).join("|");throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${n}'`)}return r._aliases.push(t),this}aliases(t){return t===void 0?this._aliases:(t.forEach(r=>this.alias(r)),this)}usage(t){if(t===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(i=>Er(i));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=t,this}name(t){return t===void 0?this._name:(this._name=t,this)}helpGroup(t){return t===void 0?this._helpGroupHeading??"":(this._helpGroupHeading=t,this)}commandsGroup(t){return t===void 0?this._defaultCommandGroup??"":(this._defaultCommandGroup=t,this)}optionsGroup(t){return t===void 0?this._defaultOptionGroup??"":(this._defaultOptionGroup=t,this)}_initOptionGroup(t){this._defaultOptionGroup&&!t.helpGroupHeading&&t.helpGroup(this._defaultOptionGroup)}_initCommandGroup(t){this._defaultCommandGroup&&!t.helpGroup()&&t.helpGroup(this._defaultCommandGroup)}nameFromFilename(t){return this._name=we.basename(t,we.extname(t)),this}executableDir(t){return t===void 0?this._executableDir:(this._executableDir=t,this)}helpInformation(t){let r=this.createHelp(),i=this._getOutputContext(t);r.prepareContext({error:i.error,helpWidth:i.helpWidth,outputHasColors:i.hasColors});let n=r.formatHelp(this,r);return i.hasColors?n:this._outputConfiguration.stripColor(n)}_getOutputContext(t){t=t||{};let r=!!t.error,i,n,a;return r?(i=o=>this._outputConfiguration.writeErr(o),n=this._outputConfiguration.getErrHasColors(),a=this._outputConfiguration.getErrHelpWidth()):(i=o=>this._outputConfiguration.writeOut(o),n=this._outputConfiguration.getOutHasColors(),a=this._outputConfiguration.getOutHelpWidth()),{error:r,write:o=>(n||(o=this._outputConfiguration.stripColor(o)),i(o)),hasColors:n,helpWidth:a}}outputHelp(t){let r;typeof t=="function"&&(r=t,t=void 0);let i=this._getOutputContext(t),n={error:i.error,write:i.write,command:this};this._getCommandAndAncestors().reverse().forEach(s=>s.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let a=this.helpInformation({error:i.error});if(r&&(a=r(a),typeof a!="string"&&!Buffer.isBuffer(a)))throw new Error("outputHelp callback must return a string or a Buffer");i.write(a),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(s=>s.emit("afterAllHelp",n))}helpOption(t,r){return typeof t=="boolean"?(t?(this._helpOption===null&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(t??"-h, --help",r??"display help for command"),(t||r)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(t){return this._helpOption=t,this._initOptionGroup(t),this}help(t){this.outputHelp(t);let r=Number(D.exitCode??0);r===0&&t&&typeof t!="function"&&t.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(t,r){let i=["beforeAll","before","after","afterAll"];if(!i.includes(t))throw new Error(`Unexpected value for position to addHelpText.
27
27
  Expecting one of '${i.join("', '")}'`);let n=`${t}Help`;return this.on(n,a=>{let s;typeof r=="function"?s=r({error:a.error,command:a.command}):s=r,s&&a.write(`${s}
28
- `)}),this}_outputHelpIfRequested(t){let r=this._getHelpOption();r&&t.find(n=>r.is(n))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function Aa(e){return e.map(t=>{if(!t.startsWith("--inspect"))return t;let r,i="127.0.0.1",n="9229",a;return(a=t.match(/^(--inspect(-brk)?)$/))!==null?r=a[1]:(a=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=a[1],/^\d+$/.test(a[3])?n=a[3]:i=a[3]):(a=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=a[1],i=a[3],n=a[4]),r&&n!=="0"?`${r}=${i}:${parseInt(n)+1}`:t})}function Ta(){if(D.env.NO_COLOR||D.env.FORCE_COLOR==="0"||D.env.FORCE_COLOR==="false")return!1;if(D.env.FORCE_COLOR||D.env.CLICOLOR_FORCE!==void 0)return!0}var Ar=new Or;import{readFile as Fm}from"node:fs/promises";import{mkdir as Qf,copyFile as xi,cp as Jf,writeFile as Em,chmod as ki}from"node:fs/promises";import{join as L}from"node:path";import{exec as yu}from"child_process";import{promisify as xu}from"util";var ku=xu(yu),se=ku;import{rm as Su}from"node:fs/promises";import{join as Da}from"node:path";import{cwd as Eu}from"node:process";var Cu=Da(Eu(),"dist");async function Bt(){await Su(Da(Cu,"tmp"),{recursive:!0})}import Ou from"node:path";import{fileURLToPath as Au}from"node:url";var Tu=Ou.dirname(Au(import.meta.url)),st=Tu;import{chmod as Du,mkdir as Iu}from"node:fs/promises";import{existsSync as Ru}from"node:fs";import{dirname as Fu}from"node:path";async function Ia(e){Ru(e)||(console.log("Downloading appimagetool..."),await Iu(Fu(e),{recursive:!0}),await se(`wget -O ${e} https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage`),await Du(e,493))}import{join as Nu}from"node:path";import{homedir as Pu}from"node:os";var zt=Nu(Pu(),".webnative");import{readFile as Bu}from"node:fs/promises";import{join as zu}from"node:path";var Tr;async function Ra(){return Tr||(Tr=await Lu(),Tr)}async function Lu(){let e=await Bu(zu(process.cwd(),"webnative.json"),"utf-8");return JSON.parse(e)}import{existsSync as Gf}from"node:fs";import{createWriteStream as qu}from"node:fs";import{Readable as Mu}from"node:stream";import{pipeline as ju}from"node:stream/promises";async function Dr(e,t){let r=await fetch(e);if(!r.body)throw new Error(`Failed to download ${e}`);await ju(Mu.fromWeb(r.body),qu(t))}import{dirname as km}from"node:path";import{chmod as Sm,rm as Kf}from"node:fs/promises";var Zf=Ca(ga(),1);import{readFile as ym,writeFile as xm,readdir as l0,mkdir as f0}from"node:fs/promises";async function Vf(e,t,r){let i=await ym(e),a=(await Zf.default.loadAsync(i)).file(t);if(!a)throw new Error(`File ${t} not found in zip`);let s=await a.async("nodebuffer");await xm(r,s)}async function Yf(e){if(Gf(e))return;console.log("Downloading Node.js...");let t="v22.0.0",r=`https://nodejs.org/dist/${t}/node-${t}-linux-x64.tar.gz`,i=e+".tar.gz";await Dr(r,i),await se(`tar -xz -f ${i} -C ${km(e)} --strip-components=2 node-${t}-linux-x64/bin/node`),await Kf(i),await Sm(e,493)}async function Xf(e){if(Gf(e))return;console.log("Downloading Node.js...");let t="v22.0.0",r=`https://nodejs.org/dist/${t}/node-${t}-win-x64.zip`,i=e+".zip";await Dr(r,i),await Vf(i,`node-${t}-win-x64/node.exe`,e),await Kf(i)}var br=process.cwd(),z={prebuilds:L(st,"prebuilds/dist"),appImageTool:L(zt,"appimagetool"),node:L(zt,"node"),bin:L(br,"dist/tmp/bin"),public:L(br,"app/public"),backend:L(br,"app/backend/dist"),dist:L(br,"dist")};async function va(){await Ia(z.appImageTool),await Yf(z.node),await Cm(),await Qf(z.dist,{recursive:!0}),await se(`${z.appImageTool} ${z.bin} -n ${z.dist}/linux-appimage`),await ki(L(z.dist,"linux-appimage"),493),await Bt()}async function Cm(){let e=await Ra();await Qf(L(z.bin,"usr/bin"),{recursive:!0}),await xi(L(z.prebuilds,"AppRun"),L(z.bin,"AppRun")),await ki(L(z.bin,"AppRun"),493),await Em(L(z.bin,"app.desktop"),`[Desktop Entry]
28
+ `)}),this}_outputHelpIfRequested(t){let r=this._getHelpOption();r&&t.find(n=>r.is(n))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function Fa(e){return e.map(t=>{if(!t.startsWith("--inspect"))return t;let r,i="127.0.0.1",n="9229",a;return(a=t.match(/^(--inspect(-brk)?)$/))!==null?r=a[1]:(a=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=a[1],/^\d+$/.test(a[3])?n=a[3]:i=a[3]):(a=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=a[1],i=a[3],n=a[4]),r&&n!=="0"?`${r}=${i}:${parseInt(n)+1}`:t})}function Na(){if(D.env.NO_COLOR||D.env.FORCE_COLOR==="0"||D.env.FORCE_COLOR==="false")return!1;if(D.env.FORCE_COLOR||D.env.CLICOLOR_FORCE!==void 0)return!0}var Tr=new Ar;import{readFile as qm}from"node:fs/promises";import{mkdir as zu,writeFile as Lu}from"node:fs/promises";import{join as Rr}from"node:path";import{rm as Du}from"node:fs/promises";import{join as Pa}from"node:path";import{cwd as Iu}from"node:process";var Ru=Pa(Iu(),"dist");async function Ue(){await Du(Pa(Ru,"tmp"),{recursive:!0})}import{spawn as Fu}from"node:child_process";function $(e,t){return new Promise((r,i)=>{let[n,...a]=e.split(" "),s=Fu(n,a,{stdio:t?.ignore?"ignore":"inherit",env:t?.env,cwd:t?.cwd,shell:!0}),o=()=>s.kill();process.on("exit",o),process.on("SIGINT",o),process.on("SIGTERM",o),s.on("close",u=>{process.off("exit",o),process.off("SIGINT",o),process.off("SIGTERM",o),u===0?r():i(new Error(`Command failed: ${e}`))})})}async function Ba(){try{await $("docker info",{ignore:!0})}catch{throw new Error(`Docker is required to build Android targets.
29
+ Please install Docker: https://docs.docker.com/get-docker/`)}}import{readFile as Nu}from"node:fs/promises";import{join as Pu}from"node:path";var Dr;async function Ir(){return Dr||(Dr=await Bu(),Dr)}async function Bu(){let e=await Nu(Pu(process.cwd(),"webnative.json"),"utf-8");return JSON.parse(e)}var Fr=process.cwd(),zt={public:Rr(Fr,"app/public"),config:Rr(Fr,"dist/tmp/capacitor.config.json"),dist:Rr(Fr,"dist"),tmp:Rr(Fr,"dist/tmp")};async function Ii(){await Ba(),await zu(zt.tmp,{recursive:!0}),await qu(),await Mu(),await Ue()}async function qu(){let e=await Ir();await Lu(zt.config,JSON.stringify({appId:e.id??"com.example.app",appName:e.name,webDir:"public"},null,2))}async function Mu(){await $(`docker run --rm -v webnative-android-cache:/root -v ${zt.public}:/project/public -v ${zt.config}:/project/capacitor.config.json -v ${zt.dist}:/output -w /project mindw1n/webnative-android bash -c "npm install @capacitor/cli @capacitor/core @capacitor/android && npx cap add android && npx cap sync && cd android && yes | sdkmanager --licenses && ./gradlew assembleDebug && cp app/build/outputs/apk/debug/app-debug.apk /output/android.apk"`)}import{mkdir as fu,copyFile as Ci,cp as lu,writeFile as Bm,chmod as Oi}from"node:fs/promises";import{join as L}from"node:path";import ju from"node:path";import{fileURLToPath as Wu}from"node:url";var Hu=ju.dirname(Wu(import.meta.url)),ot=Hu;import{chmod as Uu,mkdir as $u}from"node:fs/promises";import{existsSync as Zu}from"node:fs";import{dirname as Vu}from"node:path";async function za(e){Zu(e)||(console.log("Downloading appimagetool..."),await $u(Vu(e),{recursive:!0}),await $(`wget -O ${e} https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage`),await Uu(e,493))}import{join as Gu}from"node:path";import{homedir as Ku}from"node:os";var Lt=Gu(Ku(),".webnative");import{existsSync as iu}from"node:fs";import{createWriteStream as Yu}from"node:fs";import{Readable as Xu}from"node:stream";import{pipeline as Ju}from"node:stream/promises";async function Nr(e,t){let r=await fetch(e);if(!r.body)throw new Error(`Failed to download ${e}`);await Ju(Xu.fromWeb(r.body),Yu(t))}import{dirname as ka}from"node:path";import{chmod as Pm,mkdir as nu,rm as au}from"node:fs/promises";var xa=Su(Xf(),1);import{readFile as Jf,writeFile as Qf,readdir as Rm,mkdir as x0}from"node:fs/promises";import{dirname as S0,join as Fm,relative as Nm}from"node:path";async function eu(e,t){let r=new xa.default;await ru(r,e,e);let i=await r.generateAsync({type:"nodebuffer",compression:"DEFLATE"});await Qf(t,i)}async function tu(e,t,r){let i=await Jf(e),a=(await xa.default.loadAsync(i)).file(t);if(!a)throw new Error(`File ${t} not found in zip`);let s=await a.async("nodebuffer");await Qf(r,s)}async function ru(e,t,r){let i=await Rm(t,{withFileTypes:!0});for(let n of i){let a=Fm(t,n.name);if(n.isDirectory())await ru(e,a,r);else{let s=await Jf(a);e.file(Nm(r,a),s)}}}async function su(e){if(iu(e))return;console.log("Downloading Node.js..."),await nu(ka(e),{recursive:!0});let t="v22.0.0",r=`https://nodejs.org/dist/${t}/node-${t}-linux-x64.tar.gz`,i=e+".tar.gz";await Nr(r,i),await $(`tar -xz -f ${i} -C ${ka(e)} --strip-components=2 node-${t}-linux-x64/bin/node`),await au(i),await Pm(e,493)}async function ou(e){if(iu(e))return;console.log("Downloading Node.js..."),await nu(ka(e),{recursive:!0});let t="v22.0.0",r=`https://nodejs.org/dist/${t}/node-${t}-win-x64.zip`,i=e+".zip";await Nr(r,i),await tu(i,`node-${t}-win-x64/node.exe`,e),await au(i)}var wr=process.cwd(),z={prebuilds:L(ot,"prebuilds/dist"),appImageTool:L(Lt,"appimagetool"),node:L(Lt,"node"),bin:L(wr,"dist/tmp/bin"),public:L(wr,"app/public"),backend:L(wr,"app/backend/dist"),dist:L(wr,"dist")};async function Sa(){await za(z.appImageTool),await su(z.node),await zm(),await fu(z.dist,{recursive:!0}),await $(`${z.appImageTool} ${z.bin} -n ${z.dist}/linux-appimage`),await Oi(L(z.dist,"linux-appimage"),493),await Ue()}async function zm(){let e=await Ir();await fu(L(z.bin,"usr/bin"),{recursive:!0}),await Ci(L(z.prebuilds,"AppRun"),L(z.bin,"AppRun")),await Oi(L(z.bin,"AppRun"),493),await Bm(L(z.bin,"app.desktop"),`[Desktop Entry]
29
30
  Name=${e.name}
30
31
  Exec=app
31
32
  Icon=app
32
33
  Type=Application
33
- Categories=${(e.categories??["Utility"]).join(";")};`),e.icon&&await xi(L(br,e.icon),L(z.bin,"app.png")),await xi(L(z.prebuilds,"linux_self_contained"),L(z.bin,"usr/bin/linux")),await ki(L(z.bin,"usr/bin/linux"),493),await Jf(z.public,L(z.bin,"usr/bin/public"),{recursive:!0}),await Jf(z.backend,L(z.bin,"usr/bin/backend"),{recursive:!0}),await xi(z.node,L(z.bin,"usr/bin/node")),await ki(L(z.bin,"usr/bin/node"),493)}import{mkdir as tu,copyFile as ba,cp as eu,readFile as Om,writeFile as Am,readdir as Tm}from"node:fs/promises";import{join as Y,relative as Dm}from"node:path";var ru=Ca(ga(),1),Si=process.cwd(),K={prebuilds:Y(st,"prebuilds/dist"),node:Y(zt,"node.exe"),bin:Y(Si,"dist/tmp"),public:Y(Si,"app/public"),backend:Y(Si,"app/backend/dist"),dist:Y(Si,"dist")};async function wa(){await Xf(K.node),await Im(),await tu(K.dist,{recursive:!0}),await Rm(K.bin,Y(K.dist,"windows.zip")),await Bt()}async function Im(){await tu(K.bin,{recursive:!0}),await ba(Y(K.prebuilds,"windows.exe"),Y(K.bin,"windows.exe")),await ba(Y(K.prebuilds,"WebView2Loader.dll"),Y(K.bin,"WebView2Loader.dll")),await ba(K.node,Y(K.bin,"node.exe")),await eu(K.public,Y(K.bin,"public"),{recursive:!0}),await eu(K.backend,Y(K.bin,"backend"),{recursive:!0})}async function Rm(e,t){let r=new ru.default;await iu(r,e,e);let i=await r.generateAsync({type:"nodebuffer",compression:"DEFLATE"});await Am(t,i)}async function iu(e,t,r){let i=await Tm(t,{withFileTypes:!0});for(let n of i){let a=Y(t,n.name);if(n.isDirectory())await iu(e,a,r);else{let s=await Om(a);e.file(Dm(r,a),s)}}}var wr={linux:{appimage:va},windows:{zip:wa}};function ya(){return`Available platforms:
34
- `+Object.entries(wr).map(([e,t])=>` ${e}, targets: ${Object.keys(t).join(", ")}`).join(`
35
- `)}import{join as Nm}from"node:path";function nu(e){e.command("build <platform>").usage("<platform> [options]").description(`Build the application
34
+ Categories=${(e.categories??["Utility"]).join(";")};`),e.icon&&await Ci(L(wr,e.icon),L(z.bin,"app.png")),await Ci(L(z.prebuilds,"linux_self_contained"),L(z.bin,"usr/bin/linux")),await Oi(L(z.bin,"usr/bin/linux"),493),await lu(z.public,L(z.bin,"usr/bin/public"),{recursive:!0}),await lu(z.backend,L(z.bin,"usr/bin/backend"),{recursive:!0}),await Ci(z.node,L(z.bin,"usr/bin/node")),await Oi(L(z.bin,"usr/bin/node"),493)}import{mkdir as hu,copyFile as Ea,cp as uu}from"node:fs/promises";import{join as J}from"node:path";var Ai=process.cwd(),Y={prebuilds:J(ot,"prebuilds/dist"),node:J(Lt,"node.exe"),bin:J(Ai,"dist/tmp"),public:J(Ai,"app/public"),backend:J(Ai,"app/backend/dist"),dist:J(Ai,"dist")};async function Ca(){await ou(Y.node),await Lm(),await hu(Y.dist,{recursive:!0}),await eu(Y.bin,J(Y.dist,"windows.zip")),await Ue()}async function Lm(){await hu(Y.bin,{recursive:!0}),await Ea(J(Y.prebuilds,"windows.exe"),J(Y.bin,"windows.exe")),await Ea(J(Y.prebuilds,"WebView2Loader.dll"),J(Y.bin,"WebView2Loader.dll")),await Ea(Y.node,J(Y.bin,"node.exe")),await uu(Y.public,J(Y.bin,"public"),{recursive:!0}),await uu(Y.backend,J(Y.bin,"backend"),{recursive:!0})}var yr={linux:{appimage:Sa},windows:{zip:Ca},android:{apk:Ii}};function Oa(){return`Available platforms:
35
+ `+Object.entries(yr).map(([e,t])=>` ${e}, targets: ${Object.keys(t).join(", ")}`).join(`
36
+ `)}import{join as Mm}from"node:path";function cu(e){e.command("build <platform>").usage("<platform> [options]").description(`Build the application
36
37
 
37
- ${ya()}`).option("-t, --target <target>","build specific target","all").addHelpText("after",`
38
+ ${Oa()}`).option("-t, --target <target>","build specific target","all").addHelpText("after",`
38
39
  Examples:
39
40
  $ webnative build linux
40
41
  $ webnative build linux --target appimage
41
- $ webnative build linux -t appimage`).action(async(t,r)=>au(t,r.target))}async function au(e,t){if(e=="all"){if(t!="all")throw new Error("Can't use target option with platform set to 'all'");return zm()}return su(e,t)}async function su(e,t){return t=="all"?Pm(e):ou(e,t)}async function Pm(e){for(let t of Object.keys(wr[e]))await ou(e,t)}async function ou(e,t){let i=wr[e][t];if(!i)throw new Error(`Unknown target ${t}
42
+ $ webnative build linux -t appimage`).action(async(t,r)=>du(t,r.target))}async function du(e,t){if(e=="all"){if(t!="all")throw new Error("Can't use target option with platform set to 'all'");return Hm()}return pu(e,t)}async function pu(e,t){return t=="all"?jm(e):mu(e,t)}async function jm(e){for(let t of Object.keys(yr[e]))await mu(e,t)}async function mu(e,t){let i=yr[e][t];if(!i)throw new Error(`Unknown target ${t}
42
43
 
43
- ${ya()}`);await Bm(e),console.log(`Building ${e} ${t}...`),await i(),console.log(`${t} is built`)}async function Bm(e){console.log(`Building fullstack for ${e}...`),JSON.parse(await Fm(Nm(process.cwd(),"package.json"),"utf-8")).scripts?.build&&await se("npm run build",{env:{...process.env,PLATFORM:e}})}async function zm(){for(let e of Object.keys(wr))await su(e,"all")}import{join as xa}from"path";import{cp as Lm,readFile as qm,writeFile as Mm}from"fs/promises";import{createInterface as jm}from"node:readline/promises";function lu(e){e.command("init [project-name]").description("Initialize a new webnative project").addHelpText("after",`
44
+ ${Oa()}`);await Wm(e),console.log(`Building ${e} ${t}...`),await i(),console.log(`${t} is built`)}async function Wm(e){console.log(`Building fullstack for ${e}...`),JSON.parse(await qm(Mm(process.cwd(),"package.json"),"utf-8")).scripts?.build&&await $("npm run build",{env:{...process.env,PLATFORM:e}})}async function Hm(){for(let e of Object.keys(yr))await pu(e,"all")}import{join as Aa}from"path";import{cp as Um,readFile as $m,writeFile as Zm}from"fs/promises";import{createInterface as Vm}from"node:readline/promises";function gu(e){e.command("init [project-name]").description("Initialize a new webnative project").addHelpText("after",`
44
45
  Examples:
45
46
  $ webnative init
46
- $ webnative init my-app`).action(fu)}async function fu(e){let t=e?xa(process.cwd(),e):process.cwd(),r=await Wm();await Hm(r,t),await Um(r,t),console.log(`Project initialized${e?` in ${e}`:""}`)}async function Wm(){let e=jm({input:process.stdin,output:process.stdout}),t=await e.question("Would you like to use TypeScript? (y/n): ");return e.close(),t.toLowerCase()==="y"}async function Hm(e,t){await Lm(xa(st,"template",e?"ts":"js"),t,{recursive:!0})}async function Um(e,t){await se("npm init -y",{cwd:t});let r=xa(t,"package.json");await $m(e,r),await Zm(e,t)}async function $m(e,t){let r=JSON.parse(await qm(t,"utf-8"));r.scripts={...r.scripts,"build:frontend":"webpack","build:backend":`esbuild app/backend/index.${e?"ts":"js"} --bundle --platform=node --format=esm --outfile=app/backend/dist/index.js`,build:"npm run build:frontend && npm run build:backend"},r.type="module",await Mm(t,JSON.stringify(r,null,2),"utf-8")}async function Zm(e,t){await se(`npm install ${`webpack webpack-cli esbuild${e?" ts-loader typescript":""}`} --save-dev`,{cwd:t})}lu(Ar);nu(Ar);Ar.parse();
47
+ $ webnative init my-app`).action(_u)}async function _u(e){let t=e?Aa(process.cwd(),e):process.cwd(),r=await Gm();await Km(r,t),await Ym(r,t),console.log(`Project initialized${e?` in ${e}`:""}`)}async function Gm(){let e=Vm({input:process.stdin,output:process.stdout}),t=await e.question("Would you like to use TypeScript? (y/n): ");return e.close(),t.toLowerCase()==="y"}async function Km(e,t){await Um(Aa(ot,"template",e?"ts":"js"),t,{recursive:!0})}async function Ym(e,t){await $("npm init -y",{cwd:t});let r=Aa(t,"package.json");await Xm(e,r),await Jm(e,t)}async function Xm(e,t){let r=JSON.parse(await $m(t,"utf-8"));r.scripts={...r.scripts,"build:frontend":"webpack","build:backend":`esbuild app/backend/index.${e?"ts":"js"} --bundle --platform=node --format=esm --outfile=app/backend/dist/index.js`,build:"npm run build:frontend && npm run build:backend"},r.type="module",await Zm(t,JSON.stringify(r,null,2),"utf-8")}async function Jm(e,t){await $(`npm install ${`webpack webpack-cli esbuild${e?" ts-loader typescript":""}`} --save-dev`,{cwd:t})}gu(Tr);cu(Tr);Tr.parse();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mindw1n/webnative",
3
3
  "type": "module",
4
- "version": "2.0.0",
4
+ "version": "3.0.0",
5
5
  "scripts": {
6
6
  "build": "esbuild src/index.ts --bundle --platform=node --format=esm --target=es2020 --outfile=index.js --banner:js=\"#!/usr/bin/env node\" --minify"
7
7
  },