@checksum-ai/runtime 1.1.12-alpha → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cli.js CHANGED
@@ -1,9 +1,9 @@
1
- "use strict";var Qp=Object.create;var ka=Object.defineProperty;var eg=Object.getOwnPropertyDescriptor;var tg=Object.getOwnPropertyNames;var rg=Object.getPrototypeOf,ig=Object.prototype.hasOwnProperty;var zu=e=>{throw TypeError(e)};var s=(e,t)=>ka(e,"name",{value:t,configurable:!0});var D=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ng=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of tg(t))!ig.call(e,n)&&n!==r&&ka(e,n,{get:()=>t[n],enumerable:!(i=eg(t,n))||i.enumerable});return e};var J=(e,t,r)=>(r=e!=null?Qp(rg(e)):{},ng(t||!e||!e.__esModule?ka(r,"default",{value:e,enumerable:!0}):r,e));var xa=(e,t,r)=>t.has(e)||zu("Cannot "+r);var T=(e,t,r)=>(xa(e,t,"read from private field"),r?r.call(e):t.get(e)),we=(e,t,r)=>t.has(e)?zu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ke=(e,t,r,i)=>(xa(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),Ue=(e,t,r)=>(xa(e,t,"access private method"),r);var Or=D((Fb,Ra)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Ra.exports={nextTick:lg}:Ra.exports=process;function lg(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,a,o;switch(n){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(s(function(){e.call(null,t)},"afterTickOne"));case 3:return process.nextTick(s(function(){e.call(null,t,r)},"afterTickTwo"));case 4:return process.nextTick(s(function(){e.call(null,t,r,i)},"afterTickThree"));default:for(a=new Array(n-1),o=0;o<a.length;)a[o++]=arguments[o];return process.nextTick(s(function(){e.apply(null,a)},"afterTick"))}}s(lg,"nextTick")});var Ju=D((Ab,Vu)=>{var cg={}.toString;Vu.exports=Array.isArray||function(e){return cg.call(e)=="[object Array]"}});var Pa=D((Tb,Yu)=>{Yu.exports=require("stream")});var Ur=D((Ia,Qu)=>{var Wi=require("buffer"),Ve=Wi.Buffer;function Xu(e,t){for(var r in e)t[r]=e[r]}s(Xu,"copyProps");Ve.from&&Ve.alloc&&Ve.allocUnsafe&&Ve.allocUnsafeSlow?Qu.exports=Wi:(Xu(Wi,Ia),Ia.Buffer=$t);function $t(e,t,r){return Ve(e,t,r)}s($t,"SafeBuffer");Xu(Ve,$t);$t.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Ve(e,t,r)};$t.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Ve(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};$t.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Ve(e)};$t.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Wi.SlowBuffer(e)}});var Zt=D(ne=>{function hg(e){return Array.isArray?Array.isArray(e):qi(e)==="[object Array]"}s(hg,"isArray");ne.isArray=hg;function fg(e){return typeof e=="boolean"}s(fg,"isBoolean");ne.isBoolean=fg;function dg(e){return e===null}s(dg,"isNull");ne.isNull=dg;function pg(e){return e==null}s(pg,"isNullOrUndefined");ne.isNullOrUndefined=pg;function gg(e){return typeof e=="number"}s(gg,"isNumber");ne.isNumber=gg;function mg(e){return typeof e=="string"}s(mg,"isString");ne.isString=mg;function Dg(e){return typeof e=="symbol"}s(Dg,"isSymbol");ne.isSymbol=Dg;function vg(e){return e===void 0}s(vg,"isUndefined");ne.isUndefined=vg;function yg(e){return qi(e)==="[object RegExp]"}s(yg,"isRegExp");ne.isRegExp=yg;function wg(e){return typeof e=="object"&&e!==null}s(wg,"isObject");ne.isObject=wg;function bg(e){return qi(e)==="[object Date]"}s(bg,"isDate");ne.isDate=bg;function Cg(e){return qi(e)==="[object Error]"||e instanceof Error}s(Cg,"isError");ne.isError=Cg;function _g(e){return typeof e=="function"}s(_g,"isFunction");ne.isFunction=_g;function kg(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}s(kg,"isPrimitive");ne.isPrimitive=kg;ne.isBuffer=require("buffer").Buffer.isBuffer;function qi(e){return Object.prototype.toString.call(e)}s(qi,"objectToString")});var el=D((Mb,Ma)=>{typeof Object.create=="function"?Ma.exports=s(function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):Ma.exports=s(function(t,r){if(r){t.super_=r;var i=s(function(){},"TempCtor");i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}},"inherits")});var Kt=D((Bb,Ba)=>{try{if(La=require("util"),typeof La.inherits!="function")throw"";Ba.exports=La.inherits}catch{Ba.exports=el()}var La});var rl=D((Ob,Oa)=>{"use strict";function xg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}s(xg,"_classCallCheck");var tl=Ur().Buffer,Nr=require("util");function Eg(e,t,r){e.copy(t,r)}s(Eg,"copyBuffer");Oa.exports=function(){function e(){xg(this,e),this.head=null,this.tail=null,this.length=0}return s(e,"BufferList"),e.prototype.push=s(function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},"push"),e.prototype.unshift=s(function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},"unshift"),e.prototype.shift=s(function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},"shift"),e.prototype.clear=s(function(){this.head=this.tail=null,this.length=0},"clear"),e.prototype.join=s(function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},"join"),e.prototype.concat=s(function(r){if(this.length===0)return tl.alloc(0);for(var i=tl.allocUnsafe(r>>>0),n=this.head,a=0;n;)Eg(n.data,i,a),a+=n.data.length,n=n.next;return i},"concat"),e}();Nr&&Nr.inspect&&Nr.inspect.custom&&(Oa.exports.prototype[Nr.inspect.custom]=function(){var e=Nr.inspect({length:this.length});return this.constructor.name+" "+e})});var Ua=D((Nb,il)=>{"use strict";var ji=Or();function Fg(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,ji.nextTick(zi,this,e)):ji.nextTick(zi,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,ji.nextTick(zi,r,a)):ji.nextTick(zi,r,a):t&&t(a)}),this)}s(Fg,"destroy");function Sg(){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)}s(Sg,"undestroy");function zi(e,t){e.emit("error",t)}s(zi,"emitErrorNT");il.exports={destroy:Fg,undestroy:Sg}});var al=D((qb,nl)=>{nl.exports=require("util").deprecate});var Wa=D((jb,dl)=>{"use strict";var _t=Or();dl.exports=K;function ol(e){var t=this;this.next=null,this.entry=null,this.finish=function(){$g(t,e)}}s(ol,"CorkedRequest");var Ag=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:_t.nextTick,Vt;K.WritableState=qr;var ul=Object.create(Zt());ul.inherits=Kt();var Tg={deprecate:al()},ll=Pa(),Gi=Ur().Buffer,Rg=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Pg(e){return Gi.from(e)}s(Pg,"_uint8ArrayToBuffer");function Ig(e){return Gi.isBuffer(e)||e instanceof Rg}s(Ig,"_isUint8Array");var cl=Ua();ul.inherits(K,ll);function Mg(){}s(Mg,"nop");function qr(e,t){Vt=Vt||kt(),e=e||{};var r=t instanceof Vt;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 o=e.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(u){qg(t,u)},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 ol(this)}s(qr,"WritableState");qr.prototype.getBuffer=s(function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r},"getBuffer");(function(){try{Object.defineProperty(qr.prototype,"buffer",{get:Tg.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Hi;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Hi=Function.prototype[Symbol.hasInstance],Object.defineProperty(K,Symbol.hasInstance,{value:s(function(e){return Hi.call(this,e)?!0:this!==K?!1:e&&e._writableState instanceof qr},"value")})):Hi=s(function(e){return e instanceof this},"realHasInstance");function K(e){if(Vt=Vt||kt(),!Hi.call(K,this)&&!(this instanceof Vt))return new K(e);this._writableState=new qr(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)),ll.call(this)}s(K,"Writable");K.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Lg(e,t){var r=new Error("write after end");e.emit("error",r),_t.nextTick(t,r)}s(Lg,"writeAfterEnd");function Bg(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),_t.nextTick(i,a),n=!1),n}s(Bg,"validChunk");K.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&Ig(e);return a&&!Gi.isBuffer(e)&&(e=Pg(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=Mg),i.ended?Lg(this,r):(a||Bg(this,i,e,r))&&(i.pendingcb++,n=Ug(this,i,a,e,t,r)),n};K.prototype.cork=function(){var e=this._writableState;e.corked++};K.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&hl(this,e))};K.prototype.setDefaultEncoding=s(function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},"setDefaultEncoding");function Og(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Gi.from(t,r)),t}s(Og,"decodeChunk");Object.defineProperty(K.prototype,"writableHighWaterMark",{enumerable:!1,get:s(function(){return this._writableState.highWaterMark},"get")});function Ug(e,t,r,i,n,a){if(!r){var o=Og(t,i,n);i!==o&&(r=!0,n="buffer",i=o)}var u=t.objectMode?1:i.length;t.length+=u;var h=t.length<t.highWaterMark;if(h||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Na(e,t,!1,u,i,n,a);return h}s(Ug,"writeOrBuffer");function Na(e,t,r,i,n,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}s(Na,"doWrite");function Ng(e,t,r,i,n){--t.pendingcb,r?(_t.nextTick(n,i),_t.nextTick(Wr,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),Wr(e,t))}s(Ng,"onwriteError");function Wg(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}s(Wg,"onwriteStateUpdate");function qg(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(Wg(r),t)Ng(e,r,i,t,n);else{var a=fl(r);!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&hl(e,r),i?Ag(sl,e,r,a,n):sl(e,r,a,n)}}s(qg,"onwrite");function sl(e,t,r,i){r||jg(e,t),t.pendingcb--,i(),Wr(e,t)}s(sl,"afterWrite");function jg(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}s(jg,"onwriteDrain");function hl(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 o=0,u=!0;r;)n[o]=r,r.isBuf||(u=!1),r=r.next,o+=1;n.allBuffers=u,Na(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 ol(t),t.bufferedRequestCount=0}else{for(;r;){var h=r.chunk,l=r.encoding,c=r.callback,f=t.objectMode?1:h.length;if(Na(e,t,!1,f,h,l,c),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}s(hl,"clearBuffer");K.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};K.prototype._writev=null;K.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||Gg(this,i,r)};function fl(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}s(fl,"needFinish");function zg(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),Wr(e,t)})}s(zg,"callFinal");function Hg(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,_t.nextTick(zg,e,t)):(t.prefinished=!0,e.emit("prefinish")))}s(Hg,"prefinish");function Wr(e,t){var r=fl(t);return r&&(Hg(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}s(Wr,"finishMaybe");function Gg(e,t,r){t.ending=!0,Wr(e,t),r&&(t.finished?_t.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}s(Gg,"endWritable");function $g(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}s($g,"onCorkedFinish");Object.defineProperty(K.prototype,"destroyed",{get:s(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get"),set:s(function(e){this._writableState&&(this._writableState.destroyed=e)},"set")});K.prototype.destroy=cl.destroy;K.prototype._undestroy=cl.undestroy;K.prototype._destroy=function(e,t){this.end(),t(e)}});var kt=D((Hb,Dl)=>{"use strict";var pl=Or(),Zg=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Dl.exports=Je;var gl=Object.create(Zt());gl.inherits=Kt();var ml=za(),ja=Wa();gl.inherits(Je,ml);for(qa=Zg(ja.prototype),$i=0;$i<qa.length;$i++)Zi=qa[$i],Je.prototype[Zi]||(Je.prototype[Zi]=ja.prototype[Zi]);var qa,Zi,$i;function Je(e){if(!(this instanceof Je))return new Je(e);ml.call(this,e),ja.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",Kg)}s(Je,"Duplex");Object.defineProperty(Je.prototype,"writableHighWaterMark",{enumerable:!1,get:s(function(){return this._writableState.highWaterMark},"get")});function Kg(){this.allowHalfOpen||this._writableState.ended||pl.nextTick(Vg,this)}s(Kg,"onend");function Vg(e){e.end()}s(Vg,"onEndNT");Object.defineProperty(Je.prototype,"destroyed",{get:s(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get"),set:s(function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)},"set")});Je.prototype._destroy=function(e,t){this.push(null),this.end(),pl.nextTick(t,e)}});var $a=D(yl=>{"use strict";var Ga=Ur().Buffer,vl=Ga.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 Jg(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}}s(Jg,"_normalizeEncoding");function Yg(e){var t=Jg(e);if(typeof t!="string"&&(Ga.isEncoding===vl||!vl(e)))throw new Error("Unknown encoding: "+e);return t||e}s(Yg,"normalizeEncoding");yl.StringDecoder=jr;function jr(e){this.encoding=Yg(e);var t;switch(this.encoding){case"utf16le":this.text=im,this.end=nm,t=4;break;case"utf8":this.fillLast=em,t=4;break;case"base64":this.text=am,this.end=sm,t=3;break;default:this.write=om,this.end=um;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Ga.allocUnsafe(t)}s(jr,"StringDecoder");jr.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||""};jr.prototype.end=rm;jr.prototype.text=tm;jr.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 Ha(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}s(Ha,"utf8CheckByte");function Xg(e,t,r){var i=t.length-1;if(i<r)return 0;var n=Ha(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||n===-2?0:(n=Ha(t[i]),n>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||n===-2?0:(n=Ha(t[i]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}s(Xg,"utf8CheckIncomplete");function Qg(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"}}s(Qg,"utf8CheckExtraBytes");function em(e){var t=this.lastTotal-this.lastNeed,r=Qg(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}s(em,"utf8FillLast");function tm(e,t){var r=Xg(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)}s(tm,"utf8Text");function rm(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}s(rm,"utf8End");function im(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)}s(im,"utf16Text");function nm(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}s(nm,"utf16End");function am(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))}s(am,"base64Text");function sm(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}s(sm,"base64End");function om(e){return e.toString(this.encoding)}s(om,"simpleWrite");function um(e){return e&&e.length?this.write(e):""}s(um,"simpleEnd")});var za=D((Vb,Rl)=>{"use strict";var Yt=Or();Rl.exports=j;var lm=Ju(),zr;j.ReadableState=El;var Kb=require("events").EventEmitter,_l=s(function(e,t){return e.listeners(t).length},"EElistenerCount"),Ya=Pa(),Hr=Ur().Buffer,cm=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function hm(e){return Hr.from(e)}s(hm,"_uint8ArrayToBuffer");function fm(e){return Hr.isBuffer(e)||e instanceof cm}s(fm,"_isUint8Array");var kl=Object.create(Zt());kl.inherits=Kt();var Za=require("util"),B=void 0;Za&&Za.debuglog?B=Za.debuglog("stream"):B=s(function(){},"debug");var dm=rl(),xl=Ua(),Jt;kl.inherits(j,Ya);var Ka=["error","close","destroy","pause","resume"];function pm(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):lm(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}s(pm,"prependListener");function El(e,t){zr=zr||kt(),e=e||{};var r=t instanceof zr;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 dm,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&&(Jt||(Jt=$a().StringDecoder),this.decoder=new Jt(e.encoding),this.encoding=e.encoding)}s(El,"ReadableState");function j(e){if(zr=zr||kt(),!(this instanceof j))return new j(e);this._readableState=new El(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Ya.call(this)}s(j,"Readable");Object.defineProperty(j.prototype,"destroyed",{get:s(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get"),set:s(function(e){this._readableState&&(this._readableState.destroyed=e)},"set")});j.prototype.destroy=xl.destroy;j.prototype._undestroy=xl.undestroy;j.prototype._destroy=function(e,t){this.push(null),t(e)};j.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=Hr.from(e,t),t=""),i=!0),Fl(this,e,t,!1,i)};j.prototype.unshift=function(e){return Fl(this,e,null,!0,!1)};function Fl(e,t,r,i,n){var a=e._readableState;if(t===null)a.reading=!1,vm(e,a);else{var o;n||(o=gm(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==Hr.prototype&&(t=hm(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Va(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?Va(e,a,t,!1):Sl(e,a)):Va(e,a,t,!1))):i||(a.reading=!1)}return mm(a)}s(Fl,"readableAddChunk");function Va(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&&Ki(e)),Sl(e,t)}s(Va,"addChunk");function gm(e,t){var r;return!fm(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}s(gm,"chunkInvalid");function mm(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}s(mm,"needMoreData");j.prototype.isPaused=function(){return this._readableState.flowing===!1};j.prototype.setEncoding=function(e){return Jt||(Jt=$a().StringDecoder),this._readableState.decoder=new Jt(e),this._readableState.encoding=e,this};var wl=8388608;function Dm(e){return e>=wl?e=wl:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}s(Dm,"computeNewHighWaterMark");function bl(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=Dm(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}s(bl,"howMuchToRead");j.prototype.read=function(e){B("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 B("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Ja(this):Ki(this),null;if(e=bl(e,t),e===0&&t.ended)return t.length===0&&Ja(this),null;var i=t.needReadable;B("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,B("length less than watermark",i)),t.ended||t.reading?(i=!1,B("reading or ended",i)):i&&(B("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=bl(r,t)));var n;return e>0?n=Al(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&&Ja(this)),n!==null&&this.emit("data",n),n};function vm(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,Ki(e)}}s(vm,"onEofChunk");function Ki(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(B("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Yt.nextTick(Cl,e):Cl(e))}s(Ki,"emitReadable");function Cl(e){B("emit readable"),e.emit("readable"),Xa(e)}s(Cl,"emitReadable_");function Sl(e,t){t.readingMore||(t.readingMore=!0,Yt.nextTick(ym,e,t))}s(Sl,"maybeReadMore");function ym(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(B("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}s(ym,"maybeReadMore_");j.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};j.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,B("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,a=n?u:C;i.endEmitted?Yt.nextTick(a):r.once("end",a),e.on("unpipe",o);function o(v,m){B("onunpipe"),v===r&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,c())}s(o,"onunpipe");function u(){B("onend"),e.end()}s(u,"onend");var h=wm(r);e.on("drain",h);var l=!1;function c(){B("cleanup"),e.removeListener("close",b),e.removeListener("finish",y),e.removeListener("drain",h),e.removeListener("error",p),e.removeListener("unpipe",o),r.removeListener("end",u),r.removeListener("end",C),r.removeListener("data",d),l=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&h()}s(c,"cleanup");var f=!1;r.on("data",d);function d(v){B("ondata"),f=!1;var m=e.write(v);m===!1&&!f&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&Tl(i.pipes,e)!==-1)&&!l&&(B("false write response, pause",i.awaitDrain),i.awaitDrain++,f=!0),r.pause())}s(d,"ondata");function p(v){B("onerror",v),C(),e.removeListener("error",p),_l(e,"error")===0&&e.emit("error",v)}s(p,"onerror"),pm(e,"error",p);function b(){e.removeListener("finish",y),C()}s(b,"onclose"),e.once("close",b);function y(){B("onfinish"),e.removeListener("close",b),C()}s(y,"onfinish"),e.once("finish",y);function C(){B("unpipe"),r.unpipe(e)}return s(C,"unpipe"),e.emit("pipe",r),i.flowing||(B("pipe resume"),r.resume()),e};function wm(e){return function(){var t=e._readableState;B("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&_l(e,"data")&&(t.flowing=!0,Xa(e))}}s(wm,"pipeOnDrain");j.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 o=Tl(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};j.prototype.on=function(e,t){var r=Ya.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&&Ki(this):Yt.nextTick(bm,this))}return r};j.prototype.addListener=j.prototype.on;function bm(e){B("readable nexttick read 0"),e.read(0)}s(bm,"nReadingNextTick");j.prototype.resume=function(){var e=this._readableState;return e.flowing||(B("resume"),e.flowing=!0,Cm(this,e)),this};function Cm(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Yt.nextTick(_m,e,t))}s(Cm,"resume");function _m(e,t){t.reading||(B("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Xa(e),t.flowing&&!t.reading&&e.read(0)}s(_m,"resume_");j.prototype.pause=function(){return B("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(B("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Xa(e){var t=e._readableState;for(B("flow",t.flowing);t.flowing&&e.read()!==null;);}s(Xa,"flow");j.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(B("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(B("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var u=t.push(o);u||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=function(o){return function(){return e[o].apply(e,arguments)}}(n));for(var a=0;a<Ka.length;a++)e.on(Ka[a],this.emit.bind(this,Ka[a]));return this._read=function(o){B("wrapped _read",o),i&&(i=!1,e.resume())},this};Object.defineProperty(j.prototype,"readableHighWaterMark",{enumerable:!1,get:s(function(){return this._readableState.highWaterMark},"get")});j._fromList=Al;function Al(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=km(e,t.buffer,t.decoder),r}s(Al,"fromList");function km(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?xm(e,t):Em(e,t),i}s(km,"fromListPartial");function xm(e,t){var r=t.head,i=1,n=r.data;for(e-=n.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(o===a.length?n+=a:n+=a.slice(0,e),e-=o,e===0){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}s(xm,"copyFromBufferString");function Em(e,t){var r=Hr.allocUnsafe(e),i=t.head,n=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var a=i.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),e-=o,e===0){o===a.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=a.slice(o));break}++n}return t.length-=n,r}s(Em,"copyFromBuffer");function Ja(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Yt.nextTick(Fm,t,e))}s(Ja,"endReadable");function Fm(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}s(Fm,"endReadableNT");function Tl(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}s(Tl,"indexOf")});var Qa=D((Yb,Ml)=>{"use strict";Ml.exports=Ye;var Vi=kt(),Il=Object.create(Zt());Il.inherits=Kt();Il.inherits(Ye,Vi);function Sm(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)}s(Sm,"afterTransform");function Ye(e){if(!(this instanceof Ye))return new Ye(e);Vi.call(this,e),this._transformState={afterTransform:Sm.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",Am)}s(Ye,"Transform");function Am(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){Pl(e,t,r)}):Pl(this,null,null)}s(Am,"prefinish");Ye.prototype.push=function(e,t){return this._transformState.needTransform=!1,Vi.prototype.push.call(this,e,t)};Ye.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Ye.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)}};Ye.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};Ye.prototype._destroy=function(e,t){var r=this;Vi.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function Pl(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)}s(Pl,"done")});var Ul=D((Qb,Ol)=>{"use strict";Ol.exports=Gr;var Ll=Qa(),Bl=Object.create(Zt());Bl.inherits=Kt();Bl.inherits(Gr,Ll);function Gr(e){if(!(this instanceof Gr))return new Gr(e);Ll.call(this,e)}s(Gr,"PassThrough");Gr.prototype._transform=function(e,t,r){r(null,e)}});var es=D((re,Ji)=>{var Ne=require("stream");process.env.READABLE_STREAM==="disable"&&Ne?(Ji.exports=Ne,re=Ji.exports=Ne.Readable,re.Readable=Ne.Readable,re.Writable=Ne.Writable,re.Duplex=Ne.Duplex,re.Transform=Ne.Transform,re.PassThrough=Ne.PassThrough,re.Stream=Ne):(re=Ji.exports=za(),re.Stream=Ne||re,re.Readable=re,re.Writable=Wa(),re.Duplex=kt(),re.Transform=Qa(),re.PassThrough=Ul())});var Xe=D(ge=>{"use strict";ge.base64=!0;ge.array=!0;ge.string=!0;ge.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";ge.nodebuffer=typeof Buffer<"u";ge.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")ge.blob=!1;else{ts=new ArrayBuffer(0);try{ge.blob=new Blob([ts],{type:"application/zip"}).size===0}catch{try{Nl=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,rs=new Nl,rs.append(ts),ge.blob=rs.getBlob("application/zip").size===0}catch{ge.blob=!1}}}var ts,Nl,rs;try{ge.nodestream=!!es().Readable}catch{ge.nodestream=!1}});var ns=D(is=>{"use strict";var Tm=H(),Rm=Xe(),We="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";is.encode=function(e){for(var t=[],r,i,n,a,o,u,h,l=0,c=e.length,f=c,d=Tm.getTypeOf(e)!=="string";l<e.length;)f=c-l,d?(r=e[l++],i=l<c?e[l++]:0,n=l<c?e[l++]:0):(r=e.charCodeAt(l++),i=l<c?e.charCodeAt(l++):0,n=l<c?e.charCodeAt(l++):0),a=r>>2,o=(r&3)<<4|i>>4,u=f>1?(i&15)<<2|n>>6:64,h=f>2?n&63:64,t.push(We.charAt(a)+We.charAt(o)+We.charAt(u)+We.charAt(h));return t.join("")};is.decode=function(e){var t,r,i,n,a,o,u,h=0,l=0,c="data:";if(e.substr(0,c.length)===c)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var f=e.length*3/4;if(e.charAt(e.length-1)===We.charAt(64)&&f--,e.charAt(e.length-2)===We.charAt(64)&&f--,f%1!==0)throw new Error("Invalid base64 input, bad content length.");var d;for(Rm.uint8array?d=new Uint8Array(f|0):d=new Array(f|0);h<e.length;)n=We.indexOf(e.charAt(h++)),a=We.indexOf(e.charAt(h++)),o=We.indexOf(e.charAt(h++)),u=We.indexOf(e.charAt(h++)),t=n<<2|a>>4,r=(a&15)<<4|o>>2,i=(o&3)<<6|u,d[l++]=t,o!==64&&(d[l++]=r),u!==64&&(d[l++]=i);return d}});var $r=D((iC,Wl)=>{"use strict";Wl.exports={isNode:typeof Buffer<"u",newBufferFrom:s(function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e=="number")throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},"newBufferFrom"),allocBuffer:s(function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},"allocBuffer"),isBuffer:s(function(e){return Buffer.isBuffer(e)},"isBuffer"),isStream:s(function(e){return e&&typeof e.on=="function"&&typeof e.pause=="function"&&typeof e.resume=="function"},"isStream")}});var Hl=D((aC,zl)=>{"use strict";var ql=global.MutationObserver||global.WebKitMutationObserver,Xt;process.browser?ql?(as=0,jl=new ql(Zr),ss=global.document.createTextNode(""),jl.observe(ss,{characterData:!0}),Xt=s(function(){ss.data=as=++as%2},"scheduleDrain")):!global.setImmediate&&typeof global.MessageChannel<"u"?(os=new global.MessageChannel,os.port1.onmessage=Zr,Xt=s(function(){os.port2.postMessage(0)},"scheduleDrain")):"document"in global&&"onreadystatechange"in global.document.createElement("script")?Xt=s(function(){var e=global.document.createElement("script");e.onreadystatechange=function(){Zr(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},global.document.documentElement.appendChild(e)},"scheduleDrain"):Xt=s(function(){setTimeout(Zr,0)},"scheduleDrain"):Xt=s(function(){process.nextTick(Zr)},"scheduleDrain");var as,jl,ss,os,us,Kr=[];function Zr(){us=!0;for(var e,t,r=Kr.length;r;){for(t=Kr,Kr=[],e=-1;++e<r;)t[e]();r=Kr.length}us=!1}s(Zr,"nextTick");zl.exports=Pm;function Pm(e){Kr.push(e)===1&&!us&&Xt()}s(Pm,"immediate")});var Yl=D((oC,Jl)=>{"use strict";var Gl=Hl();function Qt(){}s(Qt,"INTERNAL");var ae={},$l=["REJECTED"],ls=["FULFILLED"],Zl=["PENDING"];process.browser||(Vr=["UNHANDLED"]);var Vr;Jl.exports=st;function st(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=Zl,this.queue=[],this.outcome=void 0,process.browser||(this.handled=Vr),e!==Qt&&Kl(this,e)}s(st,"Promise");st.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 s(a,"yes"),t.resolve(e()).then(a)}function i(n){function a(){throw n}return s(a,"no"),t.resolve(e()).then(a)}};st.prototype.catch=function(e){return this.then(null,e)};st.prototype.then=function(e,t){if(typeof e!="function"&&this.state===ls||typeof t!="function"&&this.state===$l)return this;var r=new this.constructor(Qt);if(process.browser||this.handled===Vr&&(this.handled=null),this.state!==Zl){var i=this.state===ls?e:t;cs(r,i,this.outcome)}else this.queue.push(new Jr(r,e,t));return r};function Jr(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)}s(Jr,"QueueItem");Jr.prototype.callFulfilled=function(e){ae.resolve(this.promise,e)};Jr.prototype.otherCallFulfilled=function(e){cs(this.promise,this.onFulfilled,e)};Jr.prototype.callRejected=function(e){ae.reject(this.promise,e)};Jr.prototype.otherCallRejected=function(e){cs(this.promise,this.onRejected,e)};function cs(e,t,r){Gl(function(){var i;try{i=t(r)}catch(n){return ae.reject(e,n)}i===e?ae.reject(e,new TypeError("Cannot resolve promise with itself")):ae.resolve(e,i)})}s(cs,"unwrap");ae.resolve=function(e,t){var r=Vl(Im,t);if(r.status==="error")return ae.reject(e,r.value);var i=r.value;if(i)Kl(e,i);else{e.state=ls,e.outcome=t;for(var n=-1,a=e.queue.length;++n<a;)e.queue[n].callFulfilled(t)}return e};ae.reject=function(e,t){e.state=$l,e.outcome=t,process.browser||e.handled===Vr&&Gl(function(){e.handled===Vr&&process.emit("unhandledRejection",t,e)});for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e};function Im(e){var t=e&&e.then;if(e&&(typeof e=="object"||typeof e=="function")&&typeof t=="function")return s(function(){t.apply(e,arguments)},"appyThen")}s(Im,"getThen");function Kl(e,t){var r=!1;function i(u){r||(r=!0,ae.reject(e,u))}s(i,"onError");function n(u){r||(r=!0,ae.resolve(e,u))}s(n,"onSuccess");function a(){t(n,i)}s(a,"tryToUnwrap");var o=Vl(a);o.status==="error"&&i(o.value)}s(Kl,"safelyResolveThenable");function Vl(e,t){var r={};try{r.value=e(t),r.status="success"}catch(i){r.status="error",r.value=i}return r}s(Vl,"tryCatch");st.resolve=Mm;function Mm(e){return e instanceof this?e:ae.resolve(new this(Qt),e)}s(Mm,"resolve");st.reject=Lm;function Lm(e){var t=new this(Qt);return ae.reject(t,e)}s(Lm,"reject");st.all=Bm;function Bm(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,o=-1,u=new this(Qt);++o<r;)h(e[o],o);return u;function h(l,c){t.resolve(l).then(f,function(d){i||(i=!0,ae.reject(u,d))});function f(d){n[c]=d,++a===r&&!i&&(i=!0,ae.resolve(u,n))}s(f,"resolveFromAll")}}s(Bm,"all");st.race=Om;function Om(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(Qt);++n<r;)o(e[n]);return a;function o(u){t.resolve(u).then(function(h){i||(i=!0,ae.resolve(a,h))},function(h){i||(i=!0,ae.reject(a,h))})}}s(Om,"race")});var er=D((lC,Xl)=>{"use strict";var hs=null;typeof Promise<"u"?hs=Promise:hs=Yl();Xl.exports={Promise:hs}});var ec=D(Ql=>{(function(e,t){"use strict";if(e.setImmediate)return;var r=1,i={},n=!1,a=e.document,o;function u(m){typeof m!="function"&&(m=new Function(""+m));for(var _=new Array(arguments.length-1),w=0;w<_.length;w++)_[w]=arguments[w+1];var g={callback:m,args:_};return i[r]=g,o(r),r++}s(u,"setImmediate");function h(m){delete i[m]}s(h,"clearImmediate");function l(m){var _=m.callback,w=m.args;switch(w.length){case 0:_();break;case 1:_(w[0]);break;case 2:_(w[0],w[1]);break;case 3:_(w[0],w[1],w[2]);break;default:_.apply(t,w);break}}s(l,"run");function c(m){if(n)setTimeout(c,0,m);else{var _=i[m];if(_){n=!0;try{l(_)}finally{h(m),n=!1}}}}s(c,"runIfPresent");function f(){o=s(function(m){process.nextTick(function(){c(m)})},"registerImmediate")}s(f,"installNextTickImplementation");function d(){if(e.postMessage&&!e.importScripts){var m=!0,_=e.onmessage;return e.onmessage=function(){m=!1},e.postMessage("","*"),e.onmessage=_,m}}s(d,"canUsePostMessage");function p(){var m="setImmediate$"+Math.random()+"$",_=s(function(w){w.source===e&&typeof w.data=="string"&&w.data.indexOf(m)===0&&c(+w.data.slice(m.length))},"onGlobalMessage");e.addEventListener?e.addEventListener("message",_,!1):e.attachEvent("onmessage",_),o=s(function(w){e.postMessage(m+w,"*")},"registerImmediate")}s(p,"installPostMessageImplementation");function b(){var m=new MessageChannel;m.port1.onmessage=function(_){var w=_.data;c(w)},o=s(function(_){m.port2.postMessage(_)},"registerImmediate")}s(b,"installMessageChannelImplementation");function y(){var m=a.documentElement;o=s(function(_){var w=a.createElement("script");w.onreadystatechange=function(){c(_),w.onreadystatechange=null,m.removeChild(w),w=null},m.appendChild(w)},"registerImmediate")}s(y,"installReadyStateChangeImplementation");function C(){o=s(function(m){setTimeout(c,0,m)},"registerImmediate")}s(C,"installSetTimeoutImplementation");var v=Object.getPrototypeOf&&Object.getPrototypeOf(e);v=v&&v.setTimeout?v:e,{}.toString.call(e.process)==="[object process]"?f():d()?p():e.MessageChannel?b():a&&"onreadystatechange"in a.createElement("script")?y():C(),v.setImmediate=u,v.clearImmediate=h})(typeof self>"u"?typeof global>"u"?Ql:global:self)});var H=D(V=>{"use strict";var ot=Xe(),Um=ns(),tr=$r(),fs=er();ec();function Nm(e){var t=null;return ot.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),Xi(e,t)}s(Nm,"string2binary");V.newBlob=function(e,t){V.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 Yr(e){return e}s(Yr,"identity");function Xi(e,t){for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)&255;return t}s(Xi,"stringToArrayLike");var Yi={stringifyByChunk:s(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("")},"stringifyByChunk"),stringifyByChar:s(function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},"stringifyByChar"),applyCanBeUsed:{uint8array:function(){try{return ot.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return ot.nodebuffer&&String.fromCharCode.apply(null,tr.allocBuffer(1)).length===1}catch{return!1}}()}};function Xr(e){var t=65536,r=V.getTypeOf(e),i=!0;if(r==="uint8array"?i=Yi.applyCanBeUsed.uint8array:r==="nodebuffer"&&(i=Yi.applyCanBeUsed.nodebuffer),i)for(;t>1;)try{return Yi.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return Yi.stringifyByChar(e)}s(Xr,"arrayLikeToString");V.applyFromCharCode=Xr;function Qi(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}s(Qi,"arrayLikeToArrayLike");var ut={};ut.string={string:Yr,array:s(function(e){return Xi(e,new Array(e.length))},"array"),arraybuffer:s(function(e){return ut.string.uint8array(e).buffer},"arraybuffer"),uint8array:s(function(e){return Xi(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:s(function(e){return Xi(e,tr.allocBuffer(e.length))},"nodebuffer")};ut.array={string:Xr,array:Yr,arraybuffer:s(function(e){return new Uint8Array(e).buffer},"arraybuffer"),uint8array:s(function(e){return new Uint8Array(e)},"uint8array"),nodebuffer:s(function(e){return tr.newBufferFrom(e)},"nodebuffer")};ut.arraybuffer={string:s(function(e){return Xr(new Uint8Array(e))},"string"),array:s(function(e){return Qi(new Uint8Array(e),new Array(e.byteLength))},"array"),arraybuffer:Yr,uint8array:s(function(e){return new Uint8Array(e)},"uint8array"),nodebuffer:s(function(e){return tr.newBufferFrom(new Uint8Array(e))},"nodebuffer")};ut.uint8array={string:Xr,array:s(function(e){return Qi(e,new Array(e.length))},"array"),arraybuffer:s(function(e){return e.buffer},"arraybuffer"),uint8array:Yr,nodebuffer:s(function(e){return tr.newBufferFrom(e)},"nodebuffer")};ut.nodebuffer={string:Xr,array:s(function(e){return Qi(e,new Array(e.length))},"array"),arraybuffer:s(function(e){return ut.nodebuffer.uint8array(e).buffer},"arraybuffer"),uint8array:s(function(e){return Qi(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:Yr};V.transformTo=function(e,t){if(t||(t=""),!e)return t;V.checkSupport(e);var r=V.getTypeOf(t),i=ut[r][e](t);return i};V.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("/")};V.getTypeOf=function(e){if(typeof e=="string")return"string";if(Object.prototype.toString.call(e)==="[object Array]")return"array";if(ot.nodebuffer&&tr.isBuffer(e))return"nodebuffer";if(ot.uint8array&&e instanceof Uint8Array)return"uint8array";if(ot.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer"};V.checkSupport=function(e){var t=ot[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this platform")};V.MAX_VALUE_16BITS=65535;V.MAX_VALUE_32BITS=-1;V.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};V.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})};V.inherits=function(e,t){var r=s(function(){},"Obj");r.prototype=t.prototype,e.prototype=new r};V.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};V.prepareContent=function(e,t,r,i,n){var a=fs.Promise.resolve(t).then(function(o){var u=ot.blob&&(o instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(o))!==-1);return u&&typeof FileReader<"u"?new fs.Promise(function(h,l){var c=new FileReader;c.onload=function(f){h(f.target.result)},c.onerror=function(f){l(f.target.error)},c.readAsArrayBuffer(o)}):o});return a.then(function(o){var u=V.getTypeOf(o);return u?(u==="arraybuffer"?o=V.transformTo("uint8array",o):u==="string"&&(n?o=Um.decode(o):r&&i!==!0&&(o=Nm(o))),o):fs.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}});var me=D((pC,rc)=>{"use strict";function tc(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}s(tc,"GenericWorker");tc.prototype={push:s(function(e){this.emit("data",e)},"push"),end:s(function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},"end"),error:s(function(e){return this.isFinished?!1:(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},"error"),on:s(function(e,t){return this._listeners[e].push(t),this},"on"),cleanUp:s(function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},"cleanUp"),emit:s(function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},"emit"),pipe:s(function(e){return e.registerPrevious(this)},"pipe"),registerPrevious:s(function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.end()}),e.on("error",function(r){t.error(r)}),this},"registerPrevious"),pause:s(function(){return this.isPaused||this.isFinished?!1:(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},"pause"),resume:s(function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},"resume"),flush:s(function(){},"flush"),processChunk:s(function(e){this.push(e)},"processChunk"),withStreamInfo:s(function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},"withStreamInfo"),mergeStreamInfo:s(function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},"mergeStreamInfo"),lock:s(function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},"lock"),toString:s(function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e},"toString")};rc.exports=tc});var ir=D(lt=>{"use strict";var rr=H(),xt=Xe(),Wm=$r(),en=me(),Qr=new Array(256);for(Qe=0;Qe<256;Qe++)Qr[Qe]=Qe>=252?6:Qe>=248?5:Qe>=240?4:Qe>=224?3:Qe>=192?2:1;var Qe;Qr[254]=Qr[254]=1;var qm=s(function(e){var t,r,i,n,a,o=e.length,u=0;for(n=0;n<o;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<o&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),u+=r<128?1:r<2048?2:r<65536?3:4;for(xt.uint8array?t=new Uint8Array(u):t=new Array(u),a=0,n=0;a<u;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<o&&(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},"string2buf"),jm=s(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+Qr[e[r]]>t?r:t},"utf8border"),zm=s(function(e){var t,r,i,n,a=e.length,o=new Array(a*2);for(r=0,t=0;t<a;){if(i=e[t++],i<128){o[r++]=i;continue}if(n=Qr[i],n>4){o[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){o[r++]=65533;continue}i<65536?o[r++]=i:(i-=65536,o[r++]=55296|i>>10&1023,o[r++]=56320|i&1023)}return o.length!==r&&(o.subarray?o=o.subarray(0,r):o.length=r),rr.applyFromCharCode(o)},"buf2string");lt.utf8encode=s(function(t){return xt.nodebuffer?Wm.newBufferFrom(t,"utf-8"):qm(t)},"utf8encode");lt.utf8decode=s(function(t){return xt.nodebuffer?rr.transformTo("nodebuffer",t).toString("utf-8"):(t=rr.transformTo(xt.uint8array?"uint8array":"array",t),zm(t))},"utf8decode");function tn(){en.call(this,"utf-8 decode"),this.leftOver=null}s(tn,"Utf8DecodeWorker");rr.inherits(tn,en);tn.prototype.processChunk=function(e){var t=rr.transformTo(xt.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(xt.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=jm(t),n=t;i!==t.length&&(xt.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:lt.utf8decode(n),meta:e.meta})};tn.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:lt.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};lt.Utf8DecodeWorker=tn;function ds(){en.call(this,"utf-8 encode")}s(ds,"Utf8EncodeWorker");rr.inherits(ds,en);ds.prototype.processChunk=function(e){this.push({data:lt.utf8encode(e.data),meta:e.meta})};lt.Utf8EncodeWorker=ds});var sc=D((vC,ac)=>{"use strict";var ic=me(),nc=H();function ps(e){ic.call(this,"ConvertWorker to "+e),this.destType=e}s(ps,"ConvertWorker");nc.inherits(ps,ic);ps.prototype.processChunk=function(e){this.push({data:nc.transformTo(this.destType,e.data),meta:e.meta})};ac.exports=ps});var lc=D((wC,uc)=>{"use strict";var oc=es().Readable,Hm=H();Hm.inherits(gs,oc);function gs(e,t,r){oc.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)})}s(gs,"NodejsStreamOutputAdapter");gs.prototype._read=function(){this._helper.resume()};uc.exports=gs});var ms=D((CC,fc)=>{"use strict";var Et=H(),Gm=sc(),$m=me(),Zm=ns(),Km=Xe(),Vm=er(),cc=null;if(Km.nodestream)try{cc=lc()}catch{}function Jm(e,t,r){switch(e){case"blob":return Et.newBlob(Et.transformTo("arraybuffer",t),r);case"base64":return Zm.encode(t);default:return Et.transformTo(e,t)}}s(Jm,"transformZipOutput");function Ym(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+"'")}}s(Ym,"concat");function Xm(e,t){return new Vm.Promise(function(r,i){var n=[],a=e._internalType,o=e._outputType,u=e._mimeType;e.on("data",function(h,l){n.push(h),t&&t(l)}).on("error",function(h){n=[],i(h)}).on("end",function(){try{var h=Jm(o,Ym(a,n),u);r(h)}catch(l){i(l)}n=[]}).resume()})}s(Xm,"accumulate");function hc(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,Et.checkSupport(i),this._worker=e.pipe(new Gm(i)),e.lock()}catch(n){this._worker=new $m("error"),this._worker.error(n)}}s(hc,"StreamHelper");hc.prototype={accumulate:s(function(e){return Xm(this,e)},"accumulate"),on:s(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(){Et.delay(t,arguments,r)}),this},"on"),resume:s(function(){return Et.delay(this._worker.resume,[],this._worker),this},"resume"),pause:s(function(){return this._worker.pause(),this},"pause"),toNodejsStream:s(function(e){if(Et.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new cc(this,{objectMode:this._outputType!=="nodebuffer"},e)},"toNodejsStream")};fc.exports=hc});var Ds=D(Ae=>{"use strict";Ae.base64=!1;Ae.binary=!1;Ae.dir=!1;Ae.createFolders=!0;Ae.date=null;Ae.compression=null;Ae.compressionOptions=null;Ae.comment=null;Ae.unixPermissions=null;Ae.dosPermissions=null});var vs=D((xC,dc)=>{"use strict";var rn=H(),nn=me(),Qm=16*1024;function nr(e){nn.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=rn.getTypeOf(r),t.isPaused||t._tickAndRepeat()},function(r){t.error(r)})}s(nr,"DataWorker");rn.inherits(nr,nn);nr.prototype.cleanUp=function(){nn.prototype.cleanUp.call(this),this.data=null};nr.prototype.resume=function(){return nn.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,rn.delay(this._tickAndRepeat,[],this)),!0):!1};nr.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(rn.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};nr.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=Qm,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}})};dc.exports=nr});var an=D((FC,gc)=>{"use strict";var e0=H();function t0(){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}s(t0,"makeTable");var pc=t0();function r0(e,t,r,i){var n=pc,a=i+r;e=e^-1;for(var o=i;o<a;o++)e=e>>>8^n[(e^t[o])&255];return e^-1}s(r0,"crc32");function i0(e,t,r,i){var n=pc,a=i+r;e=e^-1;for(var o=i;o<a;o++)e=e>>>8^n[(e^t.charCodeAt(o))&255];return e^-1}s(i0,"crc32str");gc.exports=s(function(t,r){if(typeof t>"u"||!t.length)return 0;var i=e0.getTypeOf(t)!=="string";return i?r0(r|0,t,t.length,0):i0(r|0,t,t.length,0)},"crc32wrapper")});var ws=D((AC,Dc)=>{"use strict";var mc=me(),n0=an(),a0=H();function ys(){mc.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}s(ys,"Crc32Probe");a0.inherits(ys,mc);ys.prototype.processChunk=function(e){this.streamInfo.crc32=n0(e.data,this.streamInfo.crc32||0),this.push(e)};Dc.exports=ys});var yc=D((RC,vc)=>{"use strict";var s0=H(),bs=me();function Cs(e){bs.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}s(Cs,"DataLengthProbe");s0.inherits(Cs,bs);Cs.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}bs.prototype.processChunk.call(this,e)};vc.exports=Cs});var sn=D((IC,Cc)=>{"use strict";var wc=er(),bc=vs(),o0=ws(),_s=yc();function ks(e,t,r,i,n){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=n}s(ks,"CompressedObject");ks.prototype={getContentWorker:s(function(){var e=new bc(wc.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new _s("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},"getContentWorker"),getCompressedWorker:s(function(){return new bc(wc.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)},"getCompressedWorker")};ks.createWorkerFrom=function(e,t,r){return e.pipe(new o0).pipe(new _s("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new _s("compressedSize")).withStreamInfo("compression",t)};Cc.exports=ks});var Ec=D((LC,xc)=>{"use strict";var u0=ms(),l0=vs(),xs=ir(),Es=sn(),_c=me(),Fs=s(function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}},"ZipObject");Fs.prototype={internalStream:s(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 xs.Utf8EncodeWorker)),!n&&i&&(t=t.pipe(new xs.Utf8DecodeWorker))}catch(a){t=new _c("error"),t.error(a)}return new u0(t,r,"")},"internalStream"),async:s(function(e,t){return this.internalStream(e).accumulate(t)},"async"),nodeStream:s(function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},"nodeStream"),_compressWorker:s(function(e,t){if(this._data instanceof Es&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new xs.Utf8EncodeWorker)),Es.createWorkerFrom(r,e,t)},"_compressWorker"),_decompressWorker:s(function(){return this._data instanceof Es?this._data.getContentWorker():this._data instanceof _c?this._data:new l0(this._data)},"_decompressWorker")};var kc=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c0=s(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"removedFn");for(on=0;on<kc.length;on++)Fs.prototype[kc[on]]=c0;var on;xc.exports=Fs});var et=D(se=>{"use strict";var h0=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function f0(e,t){return Object.prototype.hasOwnProperty.call(e,t)}s(f0,"_has");se.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)f0(r,i)&&(e[i]=r[i])}}return e};se.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var d0={arraySet:s(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]},"arraySet"),flattenChunks:s(function(e){var t,r,i,n,a,o;for(i=0,t=0,r=e.length;t<r;t++)i+=e[t].length;for(o=new Uint8Array(i),n=0,t=0,r=e.length;t<r;t++)a=e[t],o.set(a,n),n+=a.length;return o},"flattenChunks")},p0={arraySet:s(function(e,t,r,i,n){for(var a=0;a<i;a++)e[n+a]=t[r+a]},"arraySet"),flattenChunks:s(function(e){return[].concat.apply([],e)},"flattenChunks")};se.setTyped=function(e){e?(se.Buf8=Uint8Array,se.Buf16=Uint16Array,se.Buf32=Int32Array,se.assign(se,d0)):(se.Buf8=Array,se.Buf16=Array,se.Buf32=Array,se.assign(se,p0))};se.setTyped(h0)});var Vc=D(or=>{"use strict";var g0=et(),m0=4,Fc=0,Sc=1,D0=2;function sr(e){for(var t=e.length;--t>=0;)e[t]=0}s(sr,"zero");var v0=0,Mc=1,y0=2,w0=3,b0=258,Ms=29,ai=256,ti=ai+1+Ms,ar=30,Ls=19,Lc=2*ti+1,Ft=15,Ss=16,C0=7,Bs=256,Bc=16,Oc=17,Uc=18,Ps=[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],un=[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],_0=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Nc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k0=512,tt=new Array((ti+2)*2);sr(tt);var ei=new Array(ar*2);sr(ei);var ri=new Array(k0);sr(ri);var ii=new Array(b0-w0+1);sr(ii);var Os=new Array(Ms);sr(Os);var ln=new Array(ar);sr(ln);function As(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}s(As,"StaticTreeDesc");var Wc,qc,jc;function Ts(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}s(Ts,"TreeDesc");function zc(e){return e<256?ri[e]:ri[256+(e>>>7)]}s(zc,"d_code");function ni(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}s(ni,"put_short");function ce(e,t,r){e.bi_valid>Ss-r?(e.bi_buf|=t<<e.bi_valid&65535,ni(e,e.bi_buf),e.bi_buf=t>>Ss-e.bi_valid,e.bi_valid+=r-Ss):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}s(ce,"send_bits");function qe(e,t,r){ce(e,r[t*2],r[t*2+1])}s(qe,"send_code");function Hc(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}s(Hc,"bi_reverse");function x0(e){e.bi_valid===16?(ni(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)}s(x0,"bi_flush");function E0(e,t){var r=t.dyn_tree,i=t.max_code,n=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,u=t.stat_desc.extra_base,h=t.stat_desc.max_length,l,c,f,d,p,b,y=0;for(d=0;d<=Ft;d++)e.bl_count[d]=0;for(r[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<Lc;l++)c=e.heap[l],d=r[r[c*2+1]*2+1]+1,d>h&&(d=h,y++),r[c*2+1]=d,!(c>i)&&(e.bl_count[d]++,p=0,c>=u&&(p=o[c-u]),b=r[c*2],e.opt_len+=b*(d+p),a&&(e.static_len+=b*(n[c*2+1]+p)));if(y!==0){do{for(d=h-1;e.bl_count[d]===0;)d--;e.bl_count[d]--,e.bl_count[d+1]+=2,e.bl_count[h]--,y-=2}while(y>0);for(d=h;d!==0;d--)for(c=e.bl_count[d];c!==0;)f=e.heap[--l],!(f>i)&&(r[f*2+1]!==d&&(e.opt_len+=(d-r[f*2+1])*r[f*2],r[f*2+1]=d),c--)}}s(E0,"gen_bitlen");function Gc(e,t,r){var i=new Array(Ft+1),n=0,a,o;for(a=1;a<=Ft;a++)i[a]=n=n+r[a-1]<<1;for(o=0;o<=t;o++){var u=e[o*2+1];u!==0&&(e[o*2]=Hc(i[u]++,u))}}s(Gc,"gen_codes");function F0(){var e,t,r,i,n,a=new Array(Ft+1);for(r=0,i=0;i<Ms-1;i++)for(Os[i]=r,e=0;e<1<<Ps[i];e++)ii[r++]=i;for(ii[r-1]=i,n=0,i=0;i<16;i++)for(ln[i]=n,e=0;e<1<<un[i];e++)ri[n++]=i;for(n>>=7;i<ar;i++)for(ln[i]=n<<7,e=0;e<1<<un[i]-7;e++)ri[256+n++]=i;for(t=0;t<=Ft;t++)a[t]=0;for(e=0;e<=143;)tt[e*2+1]=8,e++,a[8]++;for(;e<=255;)tt[e*2+1]=9,e++,a[9]++;for(;e<=279;)tt[e*2+1]=7,e++,a[7]++;for(;e<=287;)tt[e*2+1]=8,e++,a[8]++;for(Gc(tt,ti+1,a),e=0;e<ar;e++)ei[e*2+1]=5,ei[e*2]=Hc(e,5);Wc=new As(tt,Ps,ai+1,ti,Ft),qc=new As(ei,un,0,ar,Ft),jc=new As(new Array(0),_0,0,Ls,C0)}s(F0,"tr_static_init");function $c(e){var t;for(t=0;t<ti;t++)e.dyn_ltree[t*2]=0;for(t=0;t<ar;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Ls;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Bs*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}s($c,"init_block");function Zc(e){e.bi_valid>8?ni(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}s(Zc,"bi_windup");function S0(e,t,r,i){Zc(e),i&&(ni(e,r),ni(e,~r)),g0.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}s(S0,"copy_block");function Ac(e,t,r,i){var n=t*2,a=r*2;return e[n]<e[a]||e[n]===e[a]&&i[t]<=i[r]}s(Ac,"smaller");function Rs(e,t,r){for(var i=e.heap[r],n=r<<1;n<=e.heap_len&&(n<e.heap_len&&Ac(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!Ac(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i}s(Rs,"pqdownheap");function Tc(e,t,r){var i,n,a=0,o,u;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?qe(e,n,t):(o=ii[n],qe(e,o+ai+1,t),u=Ps[o],u!==0&&(n-=Os[o],ce(e,n,u)),i--,o=zc(i),qe(e,o,r),u=un[o],u!==0&&(i-=ln[o],ce(e,i,u)));while(a<e.last_lit);qe(e,Bs,t)}s(Tc,"compress_block");function Is(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,n=t.stat_desc.has_stree,a=t.stat_desc.elems,o,u,h=-1,l;for(e.heap_len=0,e.heap_max=Lc,o=0;o<a;o++)r[o*2]!==0?(e.heap[++e.heap_len]=h=o,e.depth[o]=0):r[o*2+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=h<2?++h:0,r[l*2]=1,e.depth[l]=0,e.opt_len--,n&&(e.static_len-=i[l*2+1]);for(t.max_code=h,o=e.heap_len>>1;o>=1;o--)Rs(e,r,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Rs(e,r,1),u=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=u,r[l*2]=r[o*2]+r[u*2],e.depth[l]=(e.depth[o]>=e.depth[u]?e.depth[o]:e.depth[u])+1,r[o*2+1]=r[u*2+1]=l,e.heap[1]=l++,Rs(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],E0(e,t),Gc(r,h,e.bl_count)}s(Is,"build_tree");function Rc(e,t,r){var i,n=-1,a,o=t[0*2+1],u=0,h=7,l=4;for(o===0&&(h=138,l=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)a=o,o=t[(i+1)*2+1],!(++u<h&&a===o)&&(u<l?e.bl_tree[a*2]+=u:a!==0?(a!==n&&e.bl_tree[a*2]++,e.bl_tree[Bc*2]++):u<=10?e.bl_tree[Oc*2]++:e.bl_tree[Uc*2]++,u=0,n=a,o===0?(h=138,l=3):a===o?(h=6,l=3):(h=7,l=4))}s(Rc,"scan_tree");function Pc(e,t,r){var i,n=-1,a,o=t[0*2+1],u=0,h=7,l=4;for(o===0&&(h=138,l=3),i=0;i<=r;i++)if(a=o,o=t[(i+1)*2+1],!(++u<h&&a===o)){if(u<l)do qe(e,a,e.bl_tree);while(--u!==0);else a!==0?(a!==n&&(qe(e,a,e.bl_tree),u--),qe(e,Bc,e.bl_tree),ce(e,u-3,2)):u<=10?(qe(e,Oc,e.bl_tree),ce(e,u-3,3)):(qe(e,Uc,e.bl_tree),ce(e,u-11,7));u=0,n=a,o===0?(h=138,l=3):a===o?(h=6,l=3):(h=7,l=4)}}s(Pc,"send_tree");function A0(e){var t;for(Rc(e,e.dyn_ltree,e.l_desc.max_code),Rc(e,e.dyn_dtree,e.d_desc.max_code),Is(e,e.bl_desc),t=Ls-1;t>=3&&e.bl_tree[Nc[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}s(A0,"build_bl_tree");function T0(e,t,r,i){var n;for(ce(e,t-257,5),ce(e,r-1,5),ce(e,i-4,4),n=0;n<i;n++)ce(e,e.bl_tree[Nc[n]*2+1],3);Pc(e,e.dyn_ltree,t-1),Pc(e,e.dyn_dtree,r-1)}s(T0,"send_all_trees");function R0(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return Fc;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Sc;for(r=32;r<ai;r++)if(e.dyn_ltree[r*2]!==0)return Sc;return Fc}s(R0,"detect_data_type");var Ic=!1;function P0(e){Ic||(F0(),Ic=!0),e.l_desc=new Ts(e.dyn_ltree,Wc),e.d_desc=new Ts(e.dyn_dtree,qc),e.bl_desc=new Ts(e.bl_tree,jc),e.bi_buf=0,e.bi_valid=0,$c(e)}s(P0,"_tr_init");function Kc(e,t,r,i){ce(e,(v0<<1)+(i?1:0),3),S0(e,t,r,!0)}s(Kc,"_tr_stored_block");function I0(e){ce(e,Mc<<1,3),qe(e,Bs,tt),x0(e)}s(I0,"_tr_align");function M0(e,t,r,i){var n,a,o=0;e.level>0?(e.strm.data_type===D0&&(e.strm.data_type=R0(e)),Is(e,e.l_desc),Is(e,e.d_desc),o=A0(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?Kc(e,t,r,i):e.strategy===m0||a===n?(ce(e,(Mc<<1)+(i?1:0),3),Tc(e,tt,ei)):(ce(e,(y0<<1)+(i?1:0),3),T0(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Tc(e,e.dyn_ltree,e.dyn_dtree)),$c(e),i&&Zc(e)}s(M0,"_tr_flush_block");function L0(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[(ii[r]+ai+1)*2]++,e.dyn_dtree[zc(t)*2]++),e.last_lit===e.lit_bufsize-1}s(L0,"_tr_tally");or._tr_init=P0;or._tr_stored_block=Kc;or._tr_flush_block=M0;or._tr_tally=L0;or._tr_align=I0});var Us=D((qC,Jc)=>{"use strict";function B0(e,t,r,i){for(var n=e&65535|0,a=e>>>16&65535|0,o=0;r!==0;){o=r>2e3?2e3:r,r-=o;do n=n+t[i++]|0,a=a+n|0;while(--o);n%=65521,a%=65521}return n|a<<16|0}s(B0,"adler32");Jc.exports=B0});var Ns=D((zC,Yc)=>{"use strict";function O0(){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}s(O0,"makeTable");var U0=O0();function N0(e,t,r,i){var n=U0,a=i+r;e^=-1;for(var o=i;o<a;o++)e=e>>>8^n[(e^t[o])&255];return e^-1}s(N0,"crc32");Yc.exports=N0});var cn=D((GC,Xc)=>{"use strict";Xc.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 oh=D(He=>{"use strict";var oe=et(),be=Vc(),rh=Us(),ct=Ns(),W0=cn(),Rt=0,q0=1,j0=3,gt=4,Qc=5,ze=0,eh=1,Ce=-2,z0=-3,Ws=-5,H0=-1,G0=1,hn=2,$0=3,Z0=4,K0=0,V0=2,gn=8,J0=9,Y0=15,X0=8,Q0=29,eD=256,js=eD+1+Q0,tD=30,rD=19,iD=2*js+1,nD=15,I=3,dt=258,Te=dt+I+1,aD=32,mn=42,zs=69,fn=73,dn=91,pn=103,St=113,oi=666,X=1,ui=2,At=3,cr=4,sD=3;function pt(e,t){return e.msg=W0[t],t}s(pt,"err");function th(e){return(e<<1)-(e>4?9:0)}s(th,"rank");function ft(e){for(var t=e.length;--t>=0;)e[t]=0}s(ft,"zero");function ht(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(oe.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}s(ht,"flush_pending");function ie(e,t){be._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ht(e.strm)}s(ie,"flush_block_only");function L(e,t){e.pending_buf[e.pending++]=t}s(L,"put_byte");function si(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}s(si,"putShortMSB");function oD(e,t,r,i){var n=e.avail_in;return n>i&&(n=i),n===0?0:(e.avail_in-=n,oe.arraySet(t,e.input,e.next_in,n,r),e.state.wrap===1?e.adler=rh(e.adler,t,n,r):e.state.wrap===2&&(e.adler=ct(e.adler,t,n,r)),e.next_in+=n,e.total_in+=n,n)}s(oD,"read_buf");function ih(e,t){var r=e.max_chain_length,i=e.strstart,n,a,o=e.prev_length,u=e.nice_match,h=e.strstart>e.w_size-Te?e.strstart-(e.w_size-Te):0,l=e.window,c=e.w_mask,f=e.prev,d=e.strstart+dt,p=l[i+o-1],b=l[i+o];e.prev_length>=e.good_match&&(r>>=2),u>e.lookahead&&(u=e.lookahead);do if(n=t,!(l[n+o]!==b||l[n+o-1]!==p||l[n]!==l[i]||l[++n]!==l[i+1])){i+=2,n++;do;while(l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&i<d);if(a=dt-(d-i),i=d-dt,a>o){if(e.match_start=t,o=a,a>=u)break;p=l[i+o-1],b=l[i+o]}}while((t=f[t&c])>h&&--r!==0);return o<=e.lookahead?o:e.lookahead}s(ih,"longest_match");function Tt(e){var t=e.w_size,r,i,n,a,o;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Te)){oe.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do 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=oD(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=i,e.lookahead+e.insert>=I)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+I-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<I)););}while(e.lookahead<Te&&e.strm.avail_in!==0)}s(Tt,"fill_window");function uD(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Tt(e),e.lookahead===0&&t===Rt)return X;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,ie(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Te&&(ie(e,!1),e.strm.avail_out===0))return X}return e.insert=0,t===gt?(ie(e,!0),e.strm.avail_out===0?At:cr):(e.strstart>e.block_start&&(ie(e,!1),e.strm.avail_out===0),X)}s(uD,"deflate_stored");function qs(e,t){for(var r,i;;){if(e.lookahead<Te){if(Tt(e),e.lookahead<Te&&t===Rt)return X;if(e.lookahead===0)break}if(r=0,e.lookahead>=I&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+I-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-Te&&(e.match_length=ih(e,r)),e.match_length>=I)if(i=be._tr_tally(e,e.strstart-e.match_start,e.match_length-I),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=I){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+I-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=be._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(ie(e,!1),e.strm.avail_out===0))return X}return e.insert=e.strstart<I-1?e.strstart:I-1,t===gt?(ie(e,!0),e.strm.avail_out===0?At:cr):e.last_lit&&(ie(e,!1),e.strm.avail_out===0)?X:ui}s(qs,"deflate_fast");function ur(e,t){for(var r,i,n;;){if(e.lookahead<Te){if(Tt(e),e.lookahead<Te&&t===Rt)return X;if(e.lookahead===0)break}if(r=0,e.lookahead>=I&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+I-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=I-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Te&&(e.match_length=ih(e,r),e.match_length<=5&&(e.strategy===G0||e.match_length===I&&e.strstart-e.match_start>4096)&&(e.match_length=I-1)),e.prev_length>=I&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-I,i=be._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-I),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+I-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=I-1,e.strstart++,i&&(ie(e,!1),e.strm.avail_out===0))return X}else if(e.match_available){if(i=be._tr_tally(e,0,e.window[e.strstart-1]),i&&ie(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return X}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=be._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<I-1?e.strstart:I-1,t===gt?(ie(e,!0),e.strm.avail_out===0?At:cr):e.last_lit&&(ie(e,!1),e.strm.avail_out===0)?X:ui}s(ur,"deflate_slow");function lD(e,t){for(var r,i,n,a,o=e.window;;){if(e.lookahead<=dt){if(Tt(e),e.lookahead<=dt&&t===Rt)return X;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=I&&e.strstart>0&&(n=e.strstart-1,i=o[n],i===o[++n]&&i===o[++n]&&i===o[++n])){a=e.strstart+dt;do;while(i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&n<a);e.match_length=dt-(a-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=I?(r=be._tr_tally(e,1,e.match_length-I),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=be._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(ie(e,!1),e.strm.avail_out===0))return X}return e.insert=0,t===gt?(ie(e,!0),e.strm.avail_out===0?At:cr):e.last_lit&&(ie(e,!1),e.strm.avail_out===0)?X:ui}s(lD,"deflate_rle");function cD(e,t){for(var r;;){if(e.lookahead===0&&(Tt(e),e.lookahead===0)){if(t===Rt)return X;break}if(e.match_length=0,r=be._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(ie(e,!1),e.strm.avail_out===0))return X}return e.insert=0,t===gt?(ie(e,!0),e.strm.avail_out===0?At:cr):e.last_lit&&(ie(e,!1),e.strm.avail_out===0)?X:ui}s(cD,"deflate_huff");function je(e,t,r,i,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=n}s(je,"Config");var lr;lr=[new je(0,0,0,0,uD),new je(4,4,8,4,qs),new je(4,5,16,8,qs),new je(4,6,32,32,qs),new je(4,4,16,16,ur),new je(8,16,32,32,ur),new je(8,16,128,128,ur),new je(8,32,128,256,ur),new je(32,128,258,1024,ur),new je(32,258,258,4096,ur)];function hD(e){e.window_size=2*e.w_size,ft(e.head),e.max_lazy_match=lr[e.level].max_lazy,e.good_match=lr[e.level].good_length,e.nice_match=lr[e.level].nice_length,e.max_chain_length=lr[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=I-1,e.match_available=0,e.ins_h=0}s(hD,"lm_init");function fD(){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=gn,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new oe.Buf16(iD*2),this.dyn_dtree=new oe.Buf16((2*tD+1)*2),this.bl_tree=new oe.Buf16((2*rD+1)*2),ft(this.dyn_ltree),ft(this.dyn_dtree),ft(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new oe.Buf16(nD+1),this.heap=new oe.Buf16(2*js+1),ft(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new oe.Buf16(2*js+1),ft(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}s(fD,"DeflateState");function nh(e){var t;return!e||!e.state?pt(e,Ce):(e.total_in=e.total_out=0,e.data_type=V0,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?mn:St,e.adler=t.wrap===2?0:1,t.last_flush=Rt,be._tr_init(t),ze)}s(nh,"deflateResetKeep");function ah(e){var t=nh(e);return t===ze&&hD(e.state),t}s(ah,"deflateReset");function dD(e,t){return!e||!e.state||e.state.wrap!==2?Ce:(e.state.gzhead=t,ze)}s(dD,"deflateSetHeader");function sh(e,t,r,i,n,a){if(!e)return Ce;var o=1;if(t===H0&&(t=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),n<1||n>J0||r!==gn||i<8||i>15||t<0||t>9||a<0||a>Z0)return pt(e,Ce);i===8&&(i=9);var u=new fD;return e.state=u,u.strm=e,u.wrap=o,u.gzhead=null,u.w_bits=i,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=n+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+I-1)/I),u.window=new oe.Buf8(u.w_size*2),u.head=new oe.Buf16(u.hash_size),u.prev=new oe.Buf16(u.w_size),u.lit_bufsize=1<<n+6,u.pending_buf_size=u.lit_bufsize*4,u.pending_buf=new oe.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=t,u.strategy=a,u.method=r,ah(e)}s(sh,"deflateInit2");function pD(e,t){return sh(e,t,gn,Y0,X0,K0)}s(pD,"deflateInit");function gD(e,t){var r,i,n,a;if(!e||!e.state||t>Qc||t<0)return e?pt(e,Ce):Ce;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===oi&&t!==gt)return pt(e,e.avail_out===0?Ws:Ce);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===mn)if(i.wrap===2)e.adler=0,L(i,31),L(i,139),L(i,8),i.gzhead?(L(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)),L(i,i.gzhead.time&255),L(i,i.gzhead.time>>8&255),L(i,i.gzhead.time>>16&255),L(i,i.gzhead.time>>24&255),L(i,i.level===9?2:i.strategy>=hn||i.level<2?4:0),L(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(L(i,i.gzhead.extra.length&255),L(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=ct(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=zs):(L(i,0),L(i,0),L(i,0),L(i,0),L(i,0),L(i,i.level===9?2:i.strategy>=hn||i.level<2?4:0),L(i,sD),i.status=St);else{var o=gn+(i.w_bits-8<<4)<<8,u=-1;i.strategy>=hn||i.level<2?u=0:i.level<6?u=1:i.level===6?u=2:u=3,o|=u<<6,i.strstart!==0&&(o|=aD),o+=31-o%31,i.status=St,si(i,o),i.strstart!==0&&(si(i,e.adler>>>16),si(i,e.adler&65535)),e.adler=1}if(i.status===zs)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=ct(e.adler,i.pending_buf,i.pending-n,n)),ht(e),n=i.pending,i.pending===i.pending_buf_size));)L(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(e.adler=ct(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=fn)}else i.status=fn;if(i.status===fn)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=ct(e.adler,i.pending_buf,i.pending-n,n)),ht(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,L(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=ct(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.gzindex=0,i.status=dn)}else i.status=dn;if(i.status===dn)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=ct(e.adler,i.pending_buf,i.pending-n,n)),ht(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,L(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=ct(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.status=pn)}else i.status=pn;if(i.status===pn&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ht(e),i.pending+2<=i.pending_buf_size&&(L(i,e.adler&255),L(i,e.adler>>8&255),e.adler=0,i.status=St)):i.status=St),i.pending!==0){if(ht(e),e.avail_out===0)return i.last_flush=-1,ze}else if(e.avail_in===0&&th(t)<=th(r)&&t!==gt)return pt(e,Ws);if(i.status===oi&&e.avail_in!==0)return pt(e,Ws);if(e.avail_in!==0||i.lookahead!==0||t!==Rt&&i.status!==oi){var h=i.strategy===hn?cD(i,t):i.strategy===$0?lD(i,t):lr[i.level].func(i,t);if((h===At||h===cr)&&(i.status=oi),h===X||h===At)return e.avail_out===0&&(i.last_flush=-1),ze;if(h===ui&&(t===q0?be._tr_align(i):t!==Qc&&(be._tr_stored_block(i,0,0,!1),t===j0&&(ft(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),ht(e),e.avail_out===0))return i.last_flush=-1,ze}return t!==gt?ze:i.wrap<=0?eh:(i.wrap===2?(L(i,e.adler&255),L(i,e.adler>>8&255),L(i,e.adler>>16&255),L(i,e.adler>>24&255),L(i,e.total_in&255),L(i,e.total_in>>8&255),L(i,e.total_in>>16&255),L(i,e.total_in>>24&255)):(si(i,e.adler>>>16),si(i,e.adler&65535)),ht(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?ze:eh)}s(gD,"deflate");function mD(e){var t;return!e||!e.state?Ce:(t=e.state.status,t!==mn&&t!==zs&&t!==fn&&t!==dn&&t!==pn&&t!==St&&t!==oi?pt(e,Ce):(e.state=null,t===St?pt(e,z0):ze))}s(mD,"deflateEnd");function DD(e,t){var r=t.length,i,n,a,o,u,h,l,c;if(!e||!e.state||(i=e.state,o=i.wrap,o===2||o===1&&i.status!==mn||i.lookahead))return Ce;for(o===1&&(e.adler=rh(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(o===0&&(ft(i.head),i.strstart=0,i.block_start=0,i.insert=0),c=new oe.Buf8(i.w_size),oe.arraySet(c,t,r-i.w_size,i.w_size,0),t=c,r=i.w_size),u=e.avail_in,h=e.next_in,l=e.input,e.avail_in=r,e.next_in=0,e.input=t,Tt(i);i.lookahead>=I;){n=i.strstart,a=i.lookahead-(I-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+I-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=I-1,Tt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=I-1,i.match_available=0,e.next_in=h,e.input=l,e.avail_in=u,i.wrap=o,ze}s(DD,"deflateSetDictionary");He.deflateInit=pD;He.deflateInit2=sh;He.deflateReset=ah;He.deflateResetKeep=nh;He.deflateSetHeader=dD;He.deflate=gD;He.deflateEnd=mD;He.deflateSetDictionary=DD;He.deflateInfo="pako deflate (from Nodeca project)"});var Hs=D(hr=>{"use strict";var Dn=et(),uh=!0,lh=!0;try{String.fromCharCode.apply(null,[0])}catch{uh=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{lh=!1}var li=new Dn.Buf8(256);for(rt=0;rt<256;rt++)li[rt]=rt>=252?6:rt>=248?5:rt>=240?4:rt>=224?3:rt>=192?2:1;var rt;li[254]=li[254]=1;hr.string2buf=function(e){var t,r,i,n,a,o=e.length,u=0;for(n=0;n<o;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<o&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),u+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Dn.Buf8(u),a=0,n=0;a<u;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<o&&(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 ch(e,t){if(t<65534&&(e.subarray&&lh||!e.subarray&&uh))return String.fromCharCode.apply(null,Dn.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}s(ch,"buf2binstring");hr.buf2binstring=function(e){return ch(e,e.length)};hr.binstring2buf=function(e){for(var t=new Dn.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};hr.buf2string=function(e,t){var r,i,n,a,o=t||e.length,u=new Array(o*2);for(i=0,r=0;r<o;){if(n=e[r++],n<128){u[i++]=n;continue}if(a=li[n],a>4){u[i++]=65533,r+=a-1;continue}for(n&=a===2?31:a===3?15:7;a>1&&r<o;)n=n<<6|e[r++]&63,a--;if(a>1){u[i++]=65533;continue}n<65536?u[i++]=n:(n-=65536,u[i++]=55296|n>>10&1023,u[i++]=56320|n&1023)}return ch(u,i)};hr.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+li[e[r]]>t?r:t}});var Gs=D((JC,hh)=>{"use strict";function vD(){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}s(vD,"ZStream");hh.exports=vD});var gh=D(fi=>{"use strict";var ci=oh(),hi=et(),Zs=Hs(),Ks=cn(),yD=Gs(),ph=Object.prototype.toString,wD=0,$s=4,fr=0,fh=1,dh=2,bD=-1,CD=0,_D=8;function Pt(e){if(!(this instanceof Pt))return new Pt(e);this.options=hi.assign({level:bD,method:_D,chunkSize:16384,windowBits:15,memLevel:8,strategy:CD,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 yD,this.strm.avail_out=0;var r=ci.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==fr)throw new Error(Ks[r]);if(t.header&&ci.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=Zs.string2buf(t.dictionary):ph.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=ci.deflateSetDictionary(this.strm,i),r!==fr)throw new Error(Ks[r]);this._dict_set=!0}}s(Pt,"Deflate");Pt.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?$s:wD,typeof e=="string"?r.input=Zs.string2buf(e):ph.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 hi.Buf8(i),r.next_out=0,r.avail_out=i),n=ci.deflate(r,a),n!==fh&&n!==fr)return this.onEnd(n),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(a===$s||a===dh))&&(this.options.to==="string"?this.onData(Zs.buf2binstring(hi.shrinkBuf(r.output,r.next_out))):this.onData(hi.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&n!==fh);return a===$s?(n=ci.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===fr):(a===dh&&(this.onEnd(fr),r.avail_out=0),!0)};Pt.prototype.onData=function(e){this.chunks.push(e)};Pt.prototype.onEnd=function(e){e===fr&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=hi.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Vs(e,t){var r=new Pt(t);if(r.push(e,!0),r.err)throw r.msg||Ks[r.err];return r.result}s(Vs,"deflate");function kD(e,t){return t=t||{},t.raw=!0,Vs(e,t)}s(kD,"deflateRaw");function xD(e,t){return t=t||{},t.gzip=!0,Vs(e,t)}s(xD,"gzip");fi.Deflate=Pt;fi.deflate=Vs;fi.deflateRaw=kD;fi.gzip=xD});var Dh=D((e_,mh)=>{"use strict";var vn=30,ED=12;mh.exports=s(function(t,r){var i,n,a,o,u,h,l,c,f,d,p,b,y,C,v,m,_,w,g,E,S,k,A,U,F;i=t.state,n=t.next_in,U=t.input,a=n+(t.avail_in-5),o=t.next_out,F=t.output,u=o-(r-t.avail_out),h=o+(t.avail_out-257),l=i.dmax,c=i.wsize,f=i.whave,d=i.wnext,p=i.window,b=i.hold,y=i.bits,C=i.lencode,v=i.distcode,m=(1<<i.lenbits)-1,_=(1<<i.distbits)-1;e:do{y<15&&(b+=U[n++]<<y,y+=8,b+=U[n++]<<y,y+=8),w=C[b&m];t:for(;;){if(g=w>>>24,b>>>=g,y-=g,g=w>>>16&255,g===0)F[o++]=w&65535;else if(g&16){E=w&65535,g&=15,g&&(y<g&&(b+=U[n++]<<y,y+=8),E+=b&(1<<g)-1,b>>>=g,y-=g),y<15&&(b+=U[n++]<<y,y+=8,b+=U[n++]<<y,y+=8),w=v[b&_];r:for(;;){if(g=w>>>24,b>>>=g,y-=g,g=w>>>16&255,g&16){if(S=w&65535,g&=15,y<g&&(b+=U[n++]<<y,y+=8,y<g&&(b+=U[n++]<<y,y+=8)),S+=b&(1<<g)-1,S>l){t.msg="invalid distance too far back",i.mode=vn;break e}if(b>>>=g,y-=g,g=o-u,S>g){if(g=S-g,g>f&&i.sane){t.msg="invalid distance too far back",i.mode=vn;break e}if(k=0,A=p,d===0){if(k+=c-g,g<E){E-=g;do F[o++]=p[k++];while(--g);k=o-S,A=F}}else if(d<g){if(k+=c+d-g,g-=d,g<E){E-=g;do F[o++]=p[k++];while(--g);if(k=0,d<E){g=d,E-=g;do F[o++]=p[k++];while(--g);k=o-S,A=F}}}else if(k+=d-g,g<E){E-=g;do F[o++]=p[k++];while(--g);k=o-S,A=F}for(;E>2;)F[o++]=A[k++],F[o++]=A[k++],F[o++]=A[k++],E-=3;E&&(F[o++]=A[k++],E>1&&(F[o++]=A[k++]))}else{k=o-S;do F[o++]=F[k++],F[o++]=F[k++],F[o++]=F[k++],E-=3;while(E>2);E&&(F[o++]=F[k++],E>1&&(F[o++]=F[k++]))}}else if(g&64){t.msg="invalid distance code",i.mode=vn;break e}else{w=v[(w&65535)+(b&(1<<g)-1)];continue r}break}}else if(g&64)if(g&32){i.mode=ED;break e}else{t.msg="invalid literal/length code",i.mode=vn;break e}else{w=C[(w&65535)+(b&(1<<g)-1)];continue t}break}}while(n<a&&o<h);E=y>>3,n-=E,y-=E<<3,b&=(1<<y)-1,t.next_in=n,t.next_out=o,t.avail_in=n<a?5+(a-n):5-(n-a),t.avail_out=o<h?257+(h-o):257-(o-h),i.hold=b,i.bits=y},"inflate_fast")});var kh=D((r_,_h)=>{"use strict";var vh=et(),dr=15,yh=852,wh=592,bh=0,Js=1,Ch=2,FD=[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],SD=[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],AD=[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],TD=[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];_h.exports=s(function(t,r,i,n,a,o,u,h){var l=h.bits,c=0,f=0,d=0,p=0,b=0,y=0,C=0,v=0,m=0,_=0,w,g,E,S,k,A=null,U=0,F,de=new vh.Buf16(dr+1),Gt=new vh.Buf16(dr+1),Bi=null,qu=0,ju,Oi,Ui;for(c=0;c<=dr;c++)de[c]=0;for(f=0;f<n;f++)de[r[i+f]]++;for(b=l,p=dr;p>=1&&de[p]===0;p--);if(b>p&&(b=p),p===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,h.bits=1,0;for(d=1;d<p&&de[d]===0;d++);for(b<d&&(b=d),v=1,c=1;c<=dr;c++)if(v<<=1,v-=de[c],v<0)return-1;if(v>0&&(t===bh||p!==1))return-1;for(Gt[1]=0,c=1;c<dr;c++)Gt[c+1]=Gt[c]+de[c];for(f=0;f<n;f++)r[i+f]!==0&&(u[Gt[r[i+f]]++]=f);if(t===bh?(A=Bi=u,F=19):t===Js?(A=FD,U-=257,Bi=SD,qu-=257,F=256):(A=AD,Bi=TD,F=-1),_=0,f=0,c=d,k=o,y=b,C=0,E=-1,m=1<<b,S=m-1,t===Js&&m>yh||t===Ch&&m>wh)return 1;for(;;){ju=c-C,u[f]<F?(Oi=0,Ui=u[f]):u[f]>F?(Oi=Bi[qu+u[f]],Ui=A[U+u[f]]):(Oi=96,Ui=0),w=1<<c-C,g=1<<y,d=g;do g-=w,a[k+(_>>C)+g]=ju<<24|Oi<<16|Ui|0;while(g!==0);for(w=1<<c-1;_&w;)w>>=1;if(w!==0?(_&=w-1,_+=w):_=0,f++,--de[c]===0){if(c===p)break;c=r[i+u[f]]}if(c>b&&(_&S)!==E){for(C===0&&(C=b),k+=d,y=c-C,v=1<<y;y+C<p&&(v-=de[y+C],!(v<=0));)y++,v<<=1;if(m+=1<<y,t===Js&&m>yh||t===Ch&&m>wh)return 1;E=_&S,a[E]=b<<24|y<<16|k-o|0}}return _!==0&&(a[k+_]=c-C<<24|64<<16|0),h.bits=b,0},"inflate_table")});var sf=D(Re=>{"use strict";var De=et(),ro=Us(),Ge=Ns(),RD=Dh(),di=kh(),PD=0,Jh=1,Yh=2,xh=4,ID=5,yn=6,It=0,MD=1,LD=2,_e=-2,Xh=-3,io=-4,BD=-5,Eh=8,Qh=1,Fh=2,Sh=3,Ah=4,Th=5,Rh=6,Ph=7,Ih=8,Mh=9,Lh=10,Cn=11,it=12,Ys=13,Bh=14,Xs=15,Oh=16,Uh=17,Nh=18,Wh=19,wn=20,bn=21,qh=22,jh=23,zh=24,Hh=25,Gh=26,Qs=27,$h=28,Zh=29,z=30,no=31,OD=32,UD=852,ND=592,WD=15,qD=WD;function Kh(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}s(Kh,"zswap32");function jD(){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 De.Buf16(320),this.work=new De.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}s(jD,"InflateState");function ef(e){var t;return!e||!e.state?_e:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Qh,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new De.Buf32(UD),t.distcode=t.distdyn=new De.Buf32(ND),t.sane=1,t.back=-1,It)}s(ef,"inflateResetKeep");function tf(e){var t;return!e||!e.state?_e:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,ef(e))}s(tf,"inflateReset");function rf(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))?_e:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,tf(e))}s(rf,"inflateReset2");function nf(e,t){var r,i;return e?(i=new jD,e.state=i,i.window=null,r=rf(e,t),r!==It&&(e.state=null),r):_e}s(nf,"inflateInit2");function zD(e){return nf(e,qD)}s(zD,"inflateInit");var Vh=!0,eo,to;function HD(e){if(Vh){var t;for(eo=new De.Buf32(512),to=new De.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(di(Jh,e.lens,0,288,eo,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;di(Yh,e.lens,0,32,to,0,e.work,{bits:5}),Vh=!1}e.lencode=eo,e.lenbits=9,e.distcode=to,e.distbits=5}s(HD,"fixedtables");function af(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 De.Buf8(a.wsize)),i>=a.wsize?(De.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),De.arraySet(a.window,t,r-i,n,a.wnext),i-=n,i?(De.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}s(af,"updatewindow");function GD(e,t){var r,i,n,a,o,u,h,l,c,f,d,p,b,y,C=0,v,m,_,w,g,E,S,k,A=new De.Buf8(4),U,F,de=[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 _e;r=e.state,r.mode===it&&(r.mode=Ys),o=e.next_out,n=e.output,h=e.avail_out,a=e.next_in,i=e.input,u=e.avail_in,l=r.hold,c=r.bits,f=u,d=h,k=It;e:for(;;)switch(r.mode){case Qh:if(r.wrap===0){r.mode=Ys;break}for(;c<16;){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}if(r.wrap&2&&l===35615){r.check=0,A[0]=l&255,A[1]=l>>>8&255,r.check=Ge(r.check,A,2,0),l=0,c=0,r.mode=Fh;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",r.mode=z;break}if((l&15)!==Eh){e.msg="unknown compression method",r.mode=z;break}if(l>>>=4,c-=4,S=(l&15)+8,r.wbits===0)r.wbits=S;else if(S>r.wbits){e.msg="invalid window size",r.mode=z;break}r.dmax=1<<S,e.adler=r.check=1,r.mode=l&512?Lh:it,l=0,c=0;break;case Fh:for(;c<16;){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}if(r.flags=l,(r.flags&255)!==Eh){e.msg="unknown compression method",r.mode=z;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=z;break}r.head&&(r.head.text=l>>8&1),r.flags&512&&(A[0]=l&255,A[1]=l>>>8&255,r.check=Ge(r.check,A,2,0)),l=0,c=0,r.mode=Sh;case Sh:for(;c<32;){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}r.head&&(r.head.time=l),r.flags&512&&(A[0]=l&255,A[1]=l>>>8&255,A[2]=l>>>16&255,A[3]=l>>>24&255,r.check=Ge(r.check,A,4,0)),l=0,c=0,r.mode=Ah;case Ah:for(;c<16;){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}r.head&&(r.head.xflags=l&255,r.head.os=l>>8),r.flags&512&&(A[0]=l&255,A[1]=l>>>8&255,r.check=Ge(r.check,A,2,0)),l=0,c=0,r.mode=Th;case Th:if(r.flags&1024){for(;c<16;){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}r.length=l,r.head&&(r.head.extra_len=l),r.flags&512&&(A[0]=l&255,A[1]=l>>>8&255,r.check=Ge(r.check,A,2,0)),l=0,c=0}else r.head&&(r.head.extra=null);r.mode=Rh;case Rh:if(r.flags&1024&&(p=r.length,p>u&&(p=u),p&&(r.head&&(S=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),De.arraySet(r.head.extra,i,a,p,S)),r.flags&512&&(r.check=Ge(r.check,i,p,a)),u-=p,a+=p,r.length-=p),r.length))break e;r.length=0,r.mode=Ph;case Ph:if(r.flags&2048){if(u===0)break e;p=0;do S=i[a+p++],r.head&&S&&r.length<65536&&(r.head.name+=String.fromCharCode(S));while(S&&p<u);if(r.flags&512&&(r.check=Ge(r.check,i,p,a)),u-=p,a+=p,S)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Ih;case Ih:if(r.flags&4096){if(u===0)break e;p=0;do S=i[a+p++],r.head&&S&&r.length<65536&&(r.head.comment+=String.fromCharCode(S));while(S&&p<u);if(r.flags&512&&(r.check=Ge(r.check,i,p,a)),u-=p,a+=p,S)break e}else r.head&&(r.head.comment=null);r.mode=Mh;case Mh:if(r.flags&512){for(;c<16;){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}if(l!==(r.check&65535)){e.msg="header crc mismatch",r.mode=z;break}l=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=it;break;case Lh:for(;c<32;){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}e.adler=r.check=Kh(l),l=0,c=0,r.mode=Cn;case Cn:if(r.havedict===0)return e.next_out=o,e.avail_out=h,e.next_in=a,e.avail_in=u,r.hold=l,r.bits=c,LD;e.adler=r.check=1,r.mode=it;case it:if(t===ID||t===yn)break e;case Ys:if(r.last){l>>>=c&7,c-=c&7,r.mode=Qs;break}for(;c<3;){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}switch(r.last=l&1,l>>>=1,c-=1,l&3){case 0:r.mode=Bh;break;case 1:if(HD(r),r.mode=wn,t===yn){l>>>=2,c-=2;break e}break;case 2:r.mode=Uh;break;case 3:e.msg="invalid block type",r.mode=z}l>>>=2,c-=2;break;case Bh:for(l>>>=c&7,c-=c&7;c<32;){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}if((l&65535)!==(l>>>16^65535)){e.msg="invalid stored block lengths",r.mode=z;break}if(r.length=l&65535,l=0,c=0,r.mode=Xs,t===yn)break e;case Xs:r.mode=Oh;case Oh:if(p=r.length,p){if(p>u&&(p=u),p>h&&(p=h),p===0)break e;De.arraySet(n,i,a,p,o),u-=p,a+=p,h-=p,o+=p,r.length-=p;break}r.mode=it;break;case Uh:for(;c<14;){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}if(r.nlen=(l&31)+257,l>>>=5,c-=5,r.ndist=(l&31)+1,l>>>=5,c-=5,r.ncode=(l&15)+4,l>>>=4,c-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=z;break}r.have=0,r.mode=Nh;case Nh:for(;r.have<r.ncode;){for(;c<3;){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}r.lens[de[r.have++]]=l&7,l>>>=3,c-=3}for(;r.have<19;)r.lens[de[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,U={bits:r.lenbits},k=di(PD,r.lens,0,19,r.lencode,0,r.work,U),r.lenbits=U.bits,k){e.msg="invalid code lengths set",r.mode=z;break}r.have=0,r.mode=Wh;case Wh:for(;r.have<r.nlen+r.ndist;){for(;C=r.lencode[l&(1<<r.lenbits)-1],v=C>>>24,m=C>>>16&255,_=C&65535,!(v<=c);){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}if(_<16)l>>>=v,c-=v,r.lens[r.have++]=_;else{if(_===16){for(F=v+2;c<F;){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}if(l>>>=v,c-=v,r.have===0){e.msg="invalid bit length repeat",r.mode=z;break}S=r.lens[r.have-1],p=3+(l&3),l>>>=2,c-=2}else if(_===17){for(F=v+3;c<F;){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}l>>>=v,c-=v,S=0,p=3+(l&7),l>>>=3,c-=3}else{for(F=v+7;c<F;){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}l>>>=v,c-=v,S=0,p=11+(l&127),l>>>=7,c-=7}if(r.have+p>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=z;break}for(;p--;)r.lens[r.have++]=S}}if(r.mode===z)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=z;break}if(r.lenbits=9,U={bits:r.lenbits},k=di(Jh,r.lens,0,r.nlen,r.lencode,0,r.work,U),r.lenbits=U.bits,k){e.msg="invalid literal/lengths set",r.mode=z;break}if(r.distbits=6,r.distcode=r.distdyn,U={bits:r.distbits},k=di(Yh,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,U),r.distbits=U.bits,k){e.msg="invalid distances set",r.mode=z;break}if(r.mode=wn,t===yn)break e;case wn:r.mode=bn;case bn:if(u>=6&&h>=258){e.next_out=o,e.avail_out=h,e.next_in=a,e.avail_in=u,r.hold=l,r.bits=c,RD(e,d),o=e.next_out,n=e.output,h=e.avail_out,a=e.next_in,i=e.input,u=e.avail_in,l=r.hold,c=r.bits,r.mode===it&&(r.back=-1);break}for(r.back=0;C=r.lencode[l&(1<<r.lenbits)-1],v=C>>>24,m=C>>>16&255,_=C&65535,!(v<=c);){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}if(m&&!(m&240)){for(w=v,g=m,E=_;C=r.lencode[E+((l&(1<<w+g)-1)>>w)],v=C>>>24,m=C>>>16&255,_=C&65535,!(w+v<=c);){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}l>>>=w,c-=w,r.back+=w}if(l>>>=v,c-=v,r.back+=v,r.length=_,m===0){r.mode=Gh;break}if(m&32){r.back=-1,r.mode=it;break}if(m&64){e.msg="invalid literal/length code",r.mode=z;break}r.extra=m&15,r.mode=qh;case qh:if(r.extra){for(F=r.extra;c<F;){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=jh;case jh:for(;C=r.distcode[l&(1<<r.distbits)-1],v=C>>>24,m=C>>>16&255,_=C&65535,!(v<=c);){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}if(!(m&240)){for(w=v,g=m,E=_;C=r.distcode[E+((l&(1<<w+g)-1)>>w)],v=C>>>24,m=C>>>16&255,_=C&65535,!(w+v<=c);){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}l>>>=w,c-=w,r.back+=w}if(l>>>=v,c-=v,r.back+=v,m&64){e.msg="invalid distance code",r.mode=z;break}r.offset=_,r.extra=m&15,r.mode=zh;case zh:if(r.extra){for(F=r.extra;c<F;){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=z;break}r.mode=Hh;case Hh:if(h===0)break e;if(p=d-h,r.offset>p){if(p=r.offset-p,p>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=z;break}p>r.wnext?(p-=r.wnext,b=r.wsize-p):b=r.wnext-p,p>r.length&&(p=r.length),y=r.window}else y=n,b=o-r.offset,p=r.length;p>h&&(p=h),h-=p,r.length-=p;do n[o++]=y[b++];while(--p);r.length===0&&(r.mode=bn);break;case Gh:if(h===0)break e;n[o++]=r.length,h--,r.mode=bn;break;case Qs:if(r.wrap){for(;c<32;){if(u===0)break e;u--,l|=i[a++]<<c,c+=8}if(d-=h,e.total_out+=d,r.total+=d,d&&(e.adler=r.check=r.flags?Ge(r.check,n,d,o-d):ro(r.check,n,d,o-d)),d=h,(r.flags?l:Kh(l))!==r.check){e.msg="incorrect data check",r.mode=z;break}l=0,c=0}r.mode=$h;case $h:if(r.wrap&&r.flags){for(;c<32;){if(u===0)break e;u--,l+=i[a++]<<c,c+=8}if(l!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=z;break}l=0,c=0}r.mode=Zh;case Zh:k=MD;break e;case z:k=Xh;break e;case no:return io;case OD:default:return _e}return e.next_out=o,e.avail_out=h,e.next_in=a,e.avail_in=u,r.hold=l,r.bits=c,(r.wsize||d!==e.avail_out&&r.mode<z&&(r.mode<Qs||t!==xh))&&af(e,e.output,e.next_out,d-e.avail_out)?(r.mode=no,io):(f-=e.avail_in,d-=e.avail_out,e.total_in+=f,e.total_out+=d,r.total+=d,r.wrap&&d&&(e.adler=r.check=r.flags?Ge(r.check,n,d,e.next_out-d):ro(r.check,n,d,e.next_out-d)),e.data_type=r.bits+(r.last?64:0)+(r.mode===it?128:0)+(r.mode===wn||r.mode===Xs?256:0),(f===0&&d===0||t===xh)&&k===It&&(k=BD),k)}s(GD,"inflate");function $D(e){if(!e||!e.state)return _e;var t=e.state;return t.window&&(t.window=null),e.state=null,It}s($D,"inflateEnd");function ZD(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?_e:(r.head=t,t.done=!1,It)}s(ZD,"inflateGetHeader");function KD(e,t){var r=t.length,i,n,a;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==Cn)?_e:i.mode===Cn&&(n=1,n=ro(n,t,r,0),n!==i.check)?Xh:(a=af(e,t,r,r),a?(i.mode=no,io):(i.havedict=1,It))}s(KD,"inflateSetDictionary");Re.inflateReset=tf;Re.inflateReset2=rf;Re.inflateResetKeep=ef;Re.inflateInit=zD;Re.inflateInit2=nf;Re.inflate=GD;Re.inflateEnd=$D;Re.inflateGetHeader=ZD;Re.inflateSetDictionary=KD;Re.inflateInfo="pako inflate (from Nodeca project)"});var ao=D((s_,of)=>{"use strict";of.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 lf=D((o_,uf)=>{"use strict";function VD(){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}s(VD,"GZheader");uf.exports=VD});var hf=D(gi=>{"use strict";var pr=sf(),pi=et(),_n=Hs(),Z=ao(),so=cn(),JD=Gs(),YD=lf(),cf=Object.prototype.toString;function Mt(e){if(!(this instanceof Mt))return new Mt(e);this.options=pi.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new JD,this.strm.avail_out=0;var r=pr.inflateInit2(this.strm,t.windowBits);if(r!==Z.Z_OK)throw new Error(so[r]);if(this.header=new YD,pr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=_n.string2buf(t.dictionary):cf.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=pr.inflateSetDictionary(this.strm,t.dictionary),r!==Z.Z_OK)))throw new Error(so[r])}s(Mt,"Inflate");Mt.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,n=this.options.dictionary,a,o,u,h,l,c=!1;if(this.ended)return!1;o=t===~~t?t:t===!0?Z.Z_FINISH:Z.Z_NO_FLUSH,typeof e=="string"?r.input=_n.binstring2buf(e):cf.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 pi.Buf8(i),r.next_out=0,r.avail_out=i),a=pr.inflate(r,Z.Z_NO_FLUSH),a===Z.Z_NEED_DICT&&n&&(a=pr.inflateSetDictionary(this.strm,n)),a===Z.Z_BUF_ERROR&&c===!0&&(a=Z.Z_OK,c=!1),a!==Z.Z_STREAM_END&&a!==Z.Z_OK)return this.onEnd(a),this.ended=!0,!1;r.next_out&&(r.avail_out===0||a===Z.Z_STREAM_END||r.avail_in===0&&(o===Z.Z_FINISH||o===Z.Z_SYNC_FLUSH))&&(this.options.to==="string"?(u=_n.utf8border(r.output,r.next_out),h=r.next_out-u,l=_n.buf2string(r.output,u),r.next_out=h,r.avail_out=i-h,h&&pi.arraySet(r.output,r.output,u,h,0),this.onData(l)):this.onData(pi.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(c=!0)}while((r.avail_in>0||r.avail_out===0)&&a!==Z.Z_STREAM_END);return a===Z.Z_STREAM_END&&(o=Z.Z_FINISH),o===Z.Z_FINISH?(a=pr.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Z.Z_OK):(o===Z.Z_SYNC_FLUSH&&(this.onEnd(Z.Z_OK),r.avail_out=0),!0)};Mt.prototype.onData=function(e){this.chunks.push(e)};Mt.prototype.onEnd=function(e){e===Z.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=pi.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function oo(e,t){var r=new Mt(t);if(r.push(e,!0),r.err)throw r.msg||so[r.err];return r.result}s(oo,"inflate");function XD(e,t){return t=t||{},t.raw=!0,oo(e,t)}s(XD,"inflateRaw");gi.Inflate=Mt;gi.inflate=oo;gi.inflateRaw=XD;gi.ungzip=oo});var pf=D((h_,df)=>{"use strict";var QD=et().assign,ev=gh(),tv=hf(),rv=ao(),ff={};QD(ff,ev,tv,rv);df.exports=ff});var mf=D(xn=>{"use strict";var iv=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",nv=pf(),gf=H(),kn=me(),av=iv?"uint8array":"array";xn.magic="\b\0";function Lt(e,t){kn.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}s(Lt,"FlateWorker");gf.inherits(Lt,kn);Lt.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(gf.transformTo(av,e.data),!1)};Lt.prototype.flush=function(){kn.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};Lt.prototype.cleanUp=function(){kn.prototype.cleanUp.call(this),this._pako=null};Lt.prototype._createPako=function(){this._pako=new nv[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};xn.compressWorker=function(e){return new Lt("Deflate",e)};xn.uncompressWorker=function(){return new Lt("Inflate",{})}});var lo=D(uo=>{"use strict";var Df=me();uo.STORE={magic:"\0\0",compressWorker:s(function(){return new Df("STORE compression")},"compressWorker"),uncompressWorker:s(function(){return new Df("STORE decompression")},"uncompressWorker")};uo.DEFLATE=mf()});var co=D(Bt=>{"use strict";Bt.LOCAL_FILE_HEADER="PK";Bt.CENTRAL_FILE_HEADER="PK";Bt.CENTRAL_DIRECTORY_END="PK";Bt.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";Bt.ZIP64_CENTRAL_DIRECTORY_END="PK";Bt.DATA_DESCRIPTOR="PK\x07\b"});var bf=D((D_,wf)=>{"use strict";var gr=H(),mr=me(),ho=ir(),vf=an(),En=co(),q=s(function(e,t){var r="",i;for(i=0;i<t;i++)r+=String.fromCharCode(e&255),e=e>>>8;return r},"decToHex"),sv=s(function(e,t){var r=e;return e||(r=t?16893:33204),(r&65535)<<16},"generateUnixExternalFileAttr"),ov=s(function(e){return(e||0)&63},"generateDosExternalFileAttr"),yf=s(function(e,t,r,i,n,a){var o=e.file,u=e.compression,h=a!==ho.utf8encode,l=gr.transformTo("string",a(o.name)),c=gr.transformTo("string",ho.utf8encode(o.name)),f=o.comment,d=gr.transformTo("string",a(f)),p=gr.transformTo("string",ho.utf8encode(f)),b=c.length!==o.name.length,y=p.length!==f.length,C,v,m="",_="",w="",g=o.dir,E=o.date,S={crc32:0,compressedSize:0,uncompressedSize:0};(!t||r)&&(S.crc32=e.crc32,S.compressedSize=e.compressedSize,S.uncompressedSize=e.uncompressedSize);var k=0;t&&(k|=8),!h&&(b||y)&&(k|=2048);var A=0,U=0;g&&(A|=16),n==="UNIX"?(U=798,A|=sv(o.unixPermissions,g)):(U=20,A|=ov(o.dosPermissions,g)),C=E.getUTCHours(),C=C<<6,C=C|E.getUTCMinutes(),C=C<<5,C=C|E.getUTCSeconds()/2,v=E.getUTCFullYear()-1980,v=v<<4,v=v|E.getUTCMonth()+1,v=v<<5,v=v|E.getUTCDate(),b&&(_=q(1,1)+q(vf(l),4)+c,m+="up"+q(_.length,2)+_),y&&(w=q(1,1)+q(vf(d),4)+p,m+="uc"+q(w.length,2)+w);var F="";F+=`
2
- \0`,F+=q(k,2),F+=u.magic,F+=q(C,2),F+=q(v,2),F+=q(S.crc32,4),F+=q(S.compressedSize,4),F+=q(S.uncompressedSize,4),F+=q(l.length,2),F+=q(m.length,2);var de=En.LOCAL_FILE_HEADER+F+l+m,Gt=En.CENTRAL_FILE_HEADER+q(U,2)+F+q(d.length,2)+"\0\0\0\0"+q(A,4)+q(i,4)+l+m+d;return{fileRecord:de,dirRecord:Gt}},"generateZipParts"),uv=s(function(e,t,r,i,n){var a="",o=gr.transformTo("string",n(i));return a=En.CENTRAL_DIRECTORY_END+"\0\0\0\0"+q(e,2)+q(e,2)+q(t,4)+q(r,4)+q(o.length,2)+o,a},"generateCentralDirectoryEnd"),lv=s(function(e){var t="";return t=En.DATA_DESCRIPTOR+q(e.crc32,4)+q(e.compressedSize,4)+q(e.uncompressedSize,4),t},"generateDataDescriptors");function Pe(e,t,r,i){mr.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=[]}s(Pe,"ZipFileWorker");gr.inherits(Pe,mr);Pe.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,mr.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-i-1))/r:100}}))};Pe.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=yf(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0};Pe.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=yf(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:lv(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};Pe.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=uv(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})};Pe.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()};Pe.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};Pe.prototype.resume=function(){if(!mr.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};Pe.prototype.error=function(e){var t=this._sources;if(!mr.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch{}return!0};Pe.prototype.lock=function(){mr.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};wf.exports=Pe});var _f=D(Cf=>{"use strict";var cv=lo(),hv=bf(),fv=s(function(e,t){var r=e||t,i=cv[r];if(!i)throw new Error(r+" is not a valid compression method !");return i},"getCompression");Cf.generateWorker=function(e,t,r){var i=new hv(t.streamFiles,r,t.platform,t.encodeFileName),n=0;try{e.forEach(function(a,o){n++;var u=fv(o.options.compression,t.compression),h=o.options.compressionOptions||t.compressionOptions||{},l=o.dir,c=o.date;o._compressWorker(u,h).withStreamInfo("file",{name:a,dir:l,date:c,comment:o.comment||"",unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions}).pipe(i)}),i.entriesCount=n}catch(a){i.error(a)}return i}});var xf=D((b_,kf)=>{"use strict";var dv=H(),Fn=me();function mi(e,t){Fn.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}s(mi,"NodejsStreamInputAdapter");dv.inherits(mi,Fn);mi.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()})};mi.prototype.pause=function(){return Fn.prototype.pause.call(this)?(this._stream.pause(),!0):!1};mi.prototype.resume=function(){return Fn.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};kf.exports=mi});var Lf=D((__,Mf)=>{"use strict";var pv=ir(),Di=H(),Af=me(),gv=ms(),Tf=Ds(),Ef=sn(),mv=Ec(),Dv=_f(),Ff=$r(),vv=xf(),Rf=s(function(e,t,r){var i=Di.getTypeOf(t),n,a=Di.extend(r||{},Tf);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=Pf(e)),a.createFolders&&(n=yv(e))&&If.call(this,n,!0);var o=i==="string"&&a.binary===!1&&a.base64===!1;(!r||typeof r.binary>"u")&&(a.binary=!o);var u=t instanceof Ef&&t.uncompressedSize===0;(u||a.dir||!t||t.length===0)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE",i="string");var h=null;t instanceof Ef||t instanceof Af?h=t:Ff.isNode&&Ff.isStream(t)?h=new vv(e,t):h=Di.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var l=new mv(e,h,a);this.files[e]=l},"fileAdd"),yv=s(function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},"parentFolder"),Pf=s(function(e){return e.slice(-1)!=="/"&&(e+="/"),e},"forceTrailingSlash"),If=s(function(e,t){return t=typeof t<"u"?t:Tf.createFolders,e=Pf(e),this.files[e]||Rf.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},"folderAdd");function Sf(e){return Object.prototype.toString.call(e)==="[object RegExp]"}s(Sf,"isRegExp");var wv={load:s(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"load"),forEach:s(function(e){var t,r,i;for(t in this.files)i=this.files[t],r=t.slice(this.root.length,t.length),r&&t.slice(0,this.root.length)===this.root&&e(r,i)},"forEach"),filter:s(function(e){var t=[];return this.forEach(function(r,i){e(r,i)&&t.push(i)}),t},"filter"),file:s(function(e,t,r){if(arguments.length===1)if(Sf(e)){var i=e;return this.filter(function(a,o){return!o.dir&&i.test(a)})}else{var n=this.files[this.root+e];return n&&!n.dir?n:null}else e=this.root+e,Rf.call(this,e,t,r);return this},"file"),folder:s(function(e){if(!e)return this;if(Sf(e))return this.filter(function(n,a){return a.dir&&e.test(n)});var t=this.root+e,r=If.call(this,t),i=this.clone();return i.root=r.name,i},"folder"),remove:s(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},"remove"),generate:s(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"generate"),generateInternalStream:s(function(e){var t,r={};try{if(r=Di.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:pv.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.");Di.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=Dv.generateWorker(this,r,i)}catch(n){t=new Af("error"),t.error(n)}return new gv(t,r.type||"string",r.mimeType)},"generateInternalStream"),generateAsync:s(function(e,t){return this.generateInternalStream(e).accumulate(t)},"generateAsync"),generateNodeStream:s(function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)},"generateNodeStream")};Mf.exports=wv});var fo=D((x_,Of)=>{"use strict";var bv=H();function Bf(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}s(Bf,"DataReader");Bf.prototype={checkOffset:s(function(e){this.checkIndex(this.index+e)},"checkOffset"),checkIndex:s(function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},"checkIndex"),setIndex:s(function(e){this.checkIndex(e),this.index=e},"setIndex"),skip:s(function(e){this.setIndex(this.index+e)},"skip"),byteAt:s(function(){},"byteAt"),readInt:s(function(e){var t=0,r;for(this.checkOffset(e),r=this.index+e-1;r>=this.index;r--)t=(t<<8)+this.byteAt(r);return this.index+=e,t},"readInt"),readString:s(function(e){return bv.transformTo("string",this.readData(e))},"readString"),readData:s(function(){},"readData"),lastIndexOfSignature:s(function(){},"lastIndexOfSignature"),readAndCheckSignature:s(function(){},"readAndCheckSignature"),readDate:s(function(){var e=this.readInt(4);return new Date(Date.UTC((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1))},"readDate")};Of.exports=Bf});var po=D((F_,Nf)=>{"use strict";var Uf=fo(),Cv=H();function Dr(e){Uf.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}s(Dr,"ArrayReader");Cv.inherits(Dr,Uf);Dr.prototype.byteAt=function(e){return this.data[this.zero+e]};Dr.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};Dr.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]};Dr.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};Nf.exports=Dr});var jf=D((A_,qf)=>{"use strict";var Wf=fo(),_v=H();function vr(e){Wf.call(this,e)}s(vr,"StringReader");_v.inherits(vr,Wf);vr.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};vr.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};vr.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};vr.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};qf.exports=vr});var mo=D((R_,Hf)=>{"use strict";var zf=po(),kv=H();function go(e){zf.call(this,e)}s(go,"Uint8ArrayReader");kv.inherits(go,zf);go.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};Hf.exports=go});var Zf=D((I_,$f)=>{"use strict";var Gf=mo(),xv=H();function Do(e){Gf.call(this,e)}s(Do,"NodeBufferReader");xv.inherits(Do,Gf);Do.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};$f.exports=Do});var vo=D((L_,Vf)=>{"use strict";var Sn=H(),Kf=Xe(),Ev=po(),Fv=jf(),Sv=Zf(),Av=mo();Vf.exports=function(e){var t=Sn.getTypeOf(e);return Sn.checkSupport(t),t==="string"&&!Kf.uint8array?new Fv(e):t==="nodebuffer"?new Sv(e):Kf.uint8array?new Av(Sn.transformTo("uint8array",e)):new Ev(Sn.transformTo("array",e))}});var Qf=D((B_,Xf)=>{"use strict";var yo=vo(),mt=H(),Tv=sn(),Jf=an(),An=ir(),Tn=lo(),Rv=Xe(),Pv=0,Iv=3,Mv=s(function(e){for(var t in Tn)if(Object.prototype.hasOwnProperty.call(Tn,t)&&Tn[t].magic===e)return Tn[t];return null},"findCompression");function Yf(e,t){this.options=e,this.loadOptions=t}s(Yf,"ZipEntry");Yf.prototype={isEncrypted:s(function(){return(this.bitFlag&1)===1},"isEncrypted"),useUTF8:s(function(){return(this.bitFlag&2048)===2048},"useUTF8"),readLocalPart:s(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=Mv(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+mt.pretty(this.compressionMethod)+" unknown (inner file : "+mt.transformTo("string",this.fileName)+")");this.decompressed=new Tv(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},"readLocalPart"),readCentralPart:s(function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},"readCentralPart"),processAttributes:s(function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),e===Pv&&(this.dosPermissions=this.externalFileAttributes&63),e===Iv&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},"processAttributes"),parseZIP64ExtraField:s(function(){if(this.extraFields[1]){var e=yo(this.extraFields[1].value);this.uncompressedSize===mt.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===mt.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===mt.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===mt.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},"parseZIP64ExtraField"),readExtraFields:s(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)},"readExtraFields"),handleUTF8:s(function(){var e=Rv.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=An.utf8decode(this.fileName),this.fileCommentStr=An.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var r=mt.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var i=this.findExtraFieldUnicodeComment();if(i!==null)this.fileCommentStr=i;else{var n=mt.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(n)}}},"handleUTF8"),findExtraFieldUnicodePath:s(function(){var e=this.extraFields[28789];if(e){var t=yo(e.value);return t.readInt(1)!==1||Jf(this.fileName)!==t.readInt(4)?null:An.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodePath"),findExtraFieldUnicodeComment:s(function(){var e=this.extraFields[25461];if(e){var t=yo(e.value);return t.readInt(1)!==1||Jf(this.fileComment)!==t.readInt(4)?null:An.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodeComment")};Xf.exports=Yf});var rd=D((U_,td)=>{"use strict";var Lv=vo(),nt=H(),Ie=co(),Bv=Qf(),Ov=Xe();function ed(e){this.files=[],this.loadOptions=e}s(ed,"ZipEntries");ed.prototype={checkSignature:s(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 ("+nt.pretty(t)+", expected "+nt.pretty(e)+")")}},"checkSignature"),isSignature:s(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},"isSignature"),readBlockEndOfCentral:s(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=Ov.uint8array?"uint8array":"array",r=nt.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},"readBlockEndOfCentral"),readBlockZip64EndOfCentral:s(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}},"readBlockZip64EndOfCentral"),readBlockZip64EndOfCentralLocator:s(function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},"readBlockZip64EndOfCentralLocator"),readLocalFiles:s(function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(Ie.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},"readLocalFiles"),readCentralDir:s(function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(Ie.CENTRAL_FILE_HEADER);)e=new Bv({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},"readCentralDir"),readEndOfCentral:s(function(){var e=this.reader.lastIndexOfSignature(Ie.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,Ie.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(Ie.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===nt.MAX_VALUE_16BITS||this.diskWithCentralDirStart===nt.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===nt.MAX_VALUE_16BITS||this.centralDirRecords===nt.MAX_VALUE_16BITS||this.centralDirSize===nt.MAX_VALUE_32BITS||this.centralDirOffset===nt.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(Ie.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(Ie.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,Ie.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(Ie.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(Ie.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,Ie.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},"readEndOfCentral"),prepareReader:s(function(e){this.reader=Lv(e)},"prepareReader"),load:s(function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()},"load")};td.exports=ed});var ad=D((W_,nd)=>{"use strict";var wo=H(),Rn=er(),Uv=ir(),Nv=rd(),Wv=ws(),id=$r();function qv(e){return new Rn.Promise(function(t,r){var i=e.decompressed.getContentWorker().pipe(new Wv);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()})}s(qv,"checkEntryCRC32");nd.exports=function(e,t){var r=this;return t=wo.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:Uv.utf8decode}),id.isNode&&id.isStream(e)?Rn.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):wo.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(i){var n=new Nv(t);return n.load(i),n}).then(s(function(n){var a=[Rn.Promise.resolve(n)],o=n.files;if(t.checkCRC32)for(var u=0;u<o.length;u++)a.push(qv(o[u]));return Rn.Promise.all(a)},"checkCRC32")).then(s(function(n){for(var a=n.shift(),o=a.files,u=0;u<o.length;u++){var h=o[u],l=h.fileNameStr,c=wo.resolve(h.fileNameStr);r.file(c,h.decompressed,{binary:!0,optimizedBinaryString:!0,date:h.date,dir:h.dir,comment:h.fileCommentStr.length?h.fileCommentStr:null,unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions,createFolders:t.createFolders}),h.dir||(r.file(c).unsafeOriginalName=l)}return a.zipComment.length&&(r.comment=a.zipComment),r},"addFiles"))}});var Pn=D((j_,sd)=>{"use strict";function ke(){if(!(this instanceof ke))return new ke;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 ke;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}s(ke,"JSZip");ke.prototype=Lf();ke.prototype.loadAsync=ad();ke.support=Xe();ke.defaults=Ds();ke.version="3.10.1";ke.loadAsync=function(e,t){return new ke().loadAsync(e,t)};ke.external=er();sd.exports=ke});var cd=D((G1,ld)=>{var yr=1e3,wr=yr*60,br=wr*60,Ot=br*24,Kv=Ot*7,Vv=Ot*365.25;ld.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Jv(e);if(r==="number"&&isFinite(e))return t.long?Xv(e):Yv(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Jv(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),i=(t[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*Vv;case"weeks":case"week":case"w":return r*Kv;case"days":case"day":case"d":return r*Ot;case"hours":case"hour":case"hrs":case"hr":case"h":return r*br;case"minutes":case"minute":case"mins":case"min":case"m":return r*wr;case"seconds":case"second":case"secs":case"sec":case"s":return r*yr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}s(Jv,"parse");function Yv(e){var t=Math.abs(e);return t>=Ot?Math.round(e/Ot)+"d":t>=br?Math.round(e/br)+"h":t>=wr?Math.round(e/wr)+"m":t>=yr?Math.round(e/yr)+"s":e+"ms"}s(Yv,"fmtShort");function Xv(e){var t=Math.abs(e);return t>=Ot?In(e,t,Ot,"day"):t>=br?In(e,t,br,"hour"):t>=wr?In(e,t,wr,"minute"):t>=yr?In(e,t,yr,"second"):e+" ms"}s(Xv,"fmtLong");function In(e,t,r,i){var n=t>=r*1.5;return Math.round(e/r)+" "+i+(n?"s":"")}s(In,"plural")});var _o=D((Z1,hd)=>{function Qv(e){r.debug=r,r.default=r,r.coerce=h,r.disable=a,r.enable=n,r.enabled=o,r.humanize=cd(),r.destroy=l,Object.keys(e).forEach(c=>{r[c]=e[c]}),r.names=[],r.skips=[],r.formatters={};function t(c){let f=0;for(let d=0;d<c.length;d++)f=(f<<5)-f+c.charCodeAt(d),f|=0;return r.colors[Math.abs(f)%r.colors.length]}s(t,"selectColor"),r.selectColor=t;function r(c){let f,d=null,p,b;function y(...C){if(!y.enabled)return;let v=y,m=Number(new Date),_=m-(f||m);v.diff=_,v.prev=f,v.curr=m,f=m,C[0]=r.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let w=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(E,S)=>{if(E==="%%")return"%";w++;let k=r.formatters[S];if(typeof k=="function"){let A=C[w];E=k.call(v,A),C.splice(w,1),w--}return E}),r.formatArgs.call(v,C),(v.log||r.log).apply(v,C)}return s(y,"debug"),y.namespace=c,y.useColors=r.useColors(),y.color=r.selectColor(c),y.extend=i,y.destroy=r.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:s(()=>d!==null?d:(p!==r.namespaces&&(p=r.namespaces,b=r.enabled(c)),b),"get"),set:s(C=>{d=C},"set")}),typeof r.init=="function"&&r.init(y),y}s(r,"createDebug");function i(c,f){let d=r(this.namespace+(typeof f>"u"?":":f)+c);return d.log=this.log,d}s(i,"extend");function n(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let f,d=(typeof c=="string"?c:"").split(/[\s,]+/),p=d.length;for(f=0;f<p;f++)d[f]&&(c=d[f].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.slice(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}s(n,"enable");function a(){let c=[...r.names.map(u),...r.skips.map(u).map(f=>"-"+f)].join(",");return r.enable(""),c}s(a,"disable");function o(c){if(c[c.length-1]==="*")return!0;let f,d;for(f=0,d=r.skips.length;f<d;f++)if(r.skips[f].test(c))return!1;for(f=0,d=r.names.length;f<d;f++)if(r.names[f].test(c))return!0;return!1}s(o,"enabled");function u(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}s(u,"toNamespace");function h(c){return c instanceof Error?c.stack||c.message:c}s(h,"coerce");function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return s(l,"destroy"),r.enable(r.load()),r}s(Qv,"setup");hd.exports=Qv});var fd=D((ve,Mn)=>{ve.formatArgs=ty;ve.save=ry;ve.load=iy;ve.useColors=ey;ve.storage=ny();ve.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();ve.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function ey(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}s(ey,"useColors");function ty(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Mn.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(r++,n==="%c"&&(i=r))}),e.splice(i,0,t)}s(ty,"formatArgs");ve.log=console.debug||console.log||(()=>{});function ry(e){try{e?ve.storage.setItem("debug",e):ve.storage.removeItem("debug")}catch{}}s(ry,"save");function iy(){let e;try{e=ve.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}s(iy,"load");function ny(){try{return localStorage}catch{}}s(ny,"localstorage");Mn.exports=_o()(ve);var{formatters:ay}=Mn.exports;ay.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var pd=D((J1,dd)=>{"use strict";dd.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(r+e),n=t.indexOf("--");return i!==-1&&(n===-1||i<n)}});var Dd=D((Y1,md)=>{"use strict";var sy=require("os"),gd=require("tty"),xe=pd(),{env:Q}=process,Dt;xe("no-color")||xe("no-colors")||xe("color=false")||xe("color=never")?Dt=0:(xe("color")||xe("colors")||xe("color=true")||xe("color=always"))&&(Dt=1);"FORCE_COLOR"in Q&&(Q.FORCE_COLOR==="true"?Dt=1:Q.FORCE_COLOR==="false"?Dt=0:Dt=Q.FORCE_COLOR.length===0?1:Math.min(parseInt(Q.FORCE_COLOR,10),3));function ko(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}s(ko,"translateLevel");function xo(e,t){if(Dt===0)return 0;if(xe("color=16m")||xe("color=full")||xe("color=truecolor"))return 3;if(xe("color=256"))return 2;if(e&&!t&&Dt===void 0)return 0;let r=Dt||0;if(Q.TERM==="dumb")return r;if(process.platform==="win32"){let i=sy.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in Q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in Q)||Q.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Q.TEAMCITY_VERSION)?1:0;if(Q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Q){let i=parseInt((Q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Q.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Q.TERM)||"COLORTERM"in Q?1:r}s(xo,"supportsColor");function oy(e){let t=xo(e,e&&e.isTTY);return ko(t)}s(oy,"getSupportLevel");md.exports={supportsColor:oy,stdout:ko(xo(!0,gd.isatty(1))),stderr:ko(xo(!0,gd.isatty(2)))}});var yd=D((ee,Bn)=>{var uy=require("tty"),Ln=require("util");ee.init=gy;ee.log=fy;ee.formatArgs=cy;ee.save=dy;ee.load=py;ee.useColors=ly;ee.destroy=Ln.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ee.colors=[6,2,3,4,5,1];try{let e=Dd();e&&(e.stderr||e).level>=2&&(ee.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}ee.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(n,a)=>a.toUpperCase()),i=process.env[t];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),e[r]=i,e},{});function ly(){return"colors"in ee.inspectOpts?!!ee.inspectOpts.colors:uy.isatty(process.stderr.fd)}s(ly,"useColors");function cy(e){let{namespace:t,useColors:r}=this;if(r){let i=this.color,n="\x1B[3"+(i<8?i:"8;5;"+i),a=` ${n};1m${t} \x1B[0m`;e[0]=a+e[0].split(`
1
+ "use strict";var ig=Object.create;var xa=Object.defineProperty;var ng=Object.getOwnPropertyDescriptor;var ag=Object.getOwnPropertyNames;var sg=Object.getPrototypeOf,og=Object.prototype.hasOwnProperty;var Gl=e=>{throw TypeError(e)};var s=(e,t)=>xa(e,"name",{value:t,configurable:!0});var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var lg=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ag(t))!og.call(e,n)&&n!==r&&xa(e,n,{get:()=>t[n],enumerable:!(i=ng(t,n))||i.enumerable});return e};var J=(e,t,r)=>(r=e!=null?ig(sg(e)):{},lg(t||!e||!e.__esModule?xa(r,"default",{value:e,enumerable:!0}):r,e));var Sa=(e,t,r)=>t.has(e)||Gl("Cannot "+r);var T=(e,t,r)=>(Sa(e,t,"read from private field"),r?r.call(e):t.get(e)),we=(e,t,r)=>t.has(e)?Gl("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ve=(e,t,r,i)=>(Sa(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),Ue=(e,t,r)=>(Sa(e,t,"access private method"),r);var Ur=m((Cb,Ra)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Ra.exports={nextTick:fg}:Ra.exports=process;function fg(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,a,o;switch(n){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(s(function(){e.call(null,t)},"afterTickOne"));case 3:return process.nextTick(s(function(){e.call(null,t,r)},"afterTickTwo"));case 4:return process.nextTick(s(function(){e.call(null,t,r,i)},"afterTickThree"));default:for(a=new Array(n-1),o=0;o<a.length;)a[o++]=arguments[o];return process.nextTick(s(function(){e.apply(null,a)},"afterTick"))}}s(fg,"nextTick")});var Yl=m((kb,Jl)=>{var dg={}.toString;Jl.exports=Array.isArray||function(e){return dg.call(e)=="[object Array]"}});var Pa=m((xb,Xl)=>{Xl.exports=require("stream")});var Nr=m((Ia,eu)=>{var zi=require("buffer"),Ke=zi.Buffer;function Ql(e,t){for(var r in e)t[r]=e[r]}s(Ql,"copyProps");Ke.from&&Ke.alloc&&Ke.allocUnsafe&&Ke.allocUnsafeSlow?eu.exports=zi:(Ql(zi,Ia),Ia.Buffer=Vt);function Vt(e,t,r){return Ke(e,t,r)}s(Vt,"SafeBuffer");Ql(Ke,Vt);Vt.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Ke(e,t,r)};Vt.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Ke(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Vt.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Ke(e)};Vt.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return zi.SlowBuffer(e)}});var Kt=m(ne=>{function pg(e){return Array.isArray?Array.isArray(e):Hi(e)==="[object Array]"}s(pg,"isArray");ne.isArray=pg;function gg(e){return typeof e=="boolean"}s(gg,"isBoolean");ne.isBoolean=gg;function mg(e){return e===null}s(mg,"isNull");ne.isNull=mg;function Dg(e){return e==null}s(Dg,"isNullOrUndefined");ne.isNullOrUndefined=Dg;function vg(e){return typeof e=="number"}s(vg,"isNumber");ne.isNumber=vg;function yg(e){return typeof e=="string"}s(yg,"isString");ne.isString=yg;function wg(e){return typeof e=="symbol"}s(wg,"isSymbol");ne.isSymbol=wg;function bg(e){return e===void 0}s(bg,"isUndefined");ne.isUndefined=bg;function Cg(e){return Hi(e)==="[object RegExp]"}s(Cg,"isRegExp");ne.isRegExp=Cg;function _g(e){return typeof e=="object"&&e!==null}s(_g,"isObject");ne.isObject=_g;function kg(e){return Hi(e)==="[object Date]"}s(kg,"isDate");ne.isDate=kg;function xg(e){return Hi(e)==="[object Error]"||e instanceof Error}s(xg,"isError");ne.isError=xg;function Sg(e){return typeof e=="function"}s(Sg,"isFunction");ne.isFunction=Sg;function Eg(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}s(Eg,"isPrimitive");ne.isPrimitive=Eg;ne.isBuffer=require("buffer").Buffer.isBuffer;function Hi(e){return Object.prototype.toString.call(e)}s(Hi,"objectToString")});var tu=m((Ab,Ma)=>{typeof Object.create=="function"?Ma.exports=s(function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):Ma.exports=s(function(t,r){if(r){t.super_=r;var i=s(function(){},"TempCtor");i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}},"inherits")});var Jt=m((Rb,Ba)=>{try{if(La=require("util"),typeof La.inherits!="function")throw"";Ba.exports=La.inherits}catch{Ba.exports=tu()}var La});var iu=m((Pb,Oa)=>{"use strict";function Fg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}s(Fg,"_classCallCheck");var ru=Nr().Buffer,Wr=require("util");function Ag(e,t,r){e.copy(t,r)}s(Ag,"copyBuffer");Oa.exports=function(){function e(){Fg(this,e),this.head=null,this.tail=null,this.length=0}return s(e,"BufferList"),e.prototype.push=s(function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},"push"),e.prototype.unshift=s(function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},"unshift"),e.prototype.shift=s(function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},"shift"),e.prototype.clear=s(function(){this.head=this.tail=null,this.length=0},"clear"),e.prototype.join=s(function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},"join"),e.prototype.concat=s(function(r){if(this.length===0)return ru.alloc(0);for(var i=ru.allocUnsafe(r>>>0),n=this.head,a=0;n;)Ag(n.data,i,a),a+=n.data.length,n=n.next;return i},"concat"),e}();Wr&&Wr.inspect&&Wr.inspect.custom&&(Oa.exports.prototype[Wr.inspect.custom]=function(){var e=Wr.inspect({length:this.length});return this.constructor.name+" "+e})});var Ua=m((Mb,nu)=>{"use strict";var Gi=Ur();function Tg(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,Gi.nextTick($i,this,e)):Gi.nextTick($i,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,Gi.nextTick($i,r,a)):Gi.nextTick($i,r,a):t&&t(a)}),this)}s(Tg,"destroy");function Rg(){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)}s(Rg,"undestroy");function $i(e,t){e.emit("error",t)}s($i,"emitErrorNT");nu.exports={destroy:Tg,undestroy:Rg}});var su=m((Bb,au)=>{au.exports=require("util").deprecate});var Wa=m((Ob,pu)=>{"use strict";var Ct=Ur();pu.exports=V;function lu(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Kg(t,e)}}s(lu,"CorkedRequest");var Pg=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Ct.nextTick,Yt;V.WritableState=jr;var uu=Object.create(Kt());uu.inherits=Jt();var Ig={deprecate:su()},cu=Pa(),Vi=Nr().Buffer,Mg=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Lg(e){return Vi.from(e)}s(Lg,"_uint8ArrayToBuffer");function Bg(e){return Vi.isBuffer(e)||e instanceof Mg}s(Bg,"_isUint8Array");var hu=Ua();uu.inherits(V,cu);function Og(){}s(Og,"nop");function jr(e,t){Yt=Yt||_t(),e=e||{};var r=t instanceof Yt;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 o=e.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(l){Hg(t,l)},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 lu(this)}s(jr,"WritableState");jr.prototype.getBuffer=s(function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r},"getBuffer");(function(){try{Object.defineProperty(jr.prototype,"buffer",{get:Ig.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Zi;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Zi=Function.prototype[Symbol.hasInstance],Object.defineProperty(V,Symbol.hasInstance,{value:s(function(e){return Zi.call(this,e)?!0:this!==V?!1:e&&e._writableState instanceof jr},"value")})):Zi=s(function(e){return e instanceof this},"realHasInstance");function V(e){if(Yt=Yt||_t(),!Zi.call(V,this)&&!(this instanceof Yt))return new V(e);this._writableState=new jr(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)),cu.call(this)}s(V,"Writable");V.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Ug(e,t){var r=new Error("write after end");e.emit("error",r),Ct.nextTick(t,r)}s(Ug,"writeAfterEnd");function Ng(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),Ct.nextTick(i,a),n=!1),n}s(Ng,"validChunk");V.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&Bg(e);return a&&!Vi.isBuffer(e)&&(e=Lg(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=Og),i.ended?Ug(this,r):(a||Ng(this,i,e,r))&&(i.pendingcb++,n=qg(this,i,a,e,t,r)),n};V.prototype.cork=function(){var e=this._writableState;e.corked++};V.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&fu(this,e))};V.prototype.setDefaultEncoding=s(function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},"setDefaultEncoding");function Wg(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Vi.from(t,r)),t}s(Wg,"decodeChunk");Object.defineProperty(V.prototype,"writableHighWaterMark",{enumerable:!1,get:s(function(){return this._writableState.highWaterMark},"get")});function qg(e,t,r,i,n,a){if(!r){var o=Wg(t,i,n);i!==o&&(r=!0,n="buffer",i=o)}var l=t.objectMode?1:i.length;t.length+=l;var h=t.length<t.highWaterMark;if(h||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Na(e,t,!1,l,i,n,a);return h}s(qg,"writeOrBuffer");function Na(e,t,r,i,n,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}s(Na,"doWrite");function jg(e,t,r,i,n){--t.pendingcb,r?(Ct.nextTick(n,i),Ct.nextTick(qr,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),qr(e,t))}s(jg,"onwriteError");function zg(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}s(zg,"onwriteStateUpdate");function Hg(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(zg(r),t)jg(e,r,i,t,n);else{var a=du(r);!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&fu(e,r),i?Pg(ou,e,r,a,n):ou(e,r,a,n)}}s(Hg,"onwrite");function ou(e,t,r,i){r||Gg(e,t),t.pendingcb--,i(),qr(e,t)}s(ou,"afterWrite");function Gg(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}s(Gg,"onwriteDrain");function fu(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 o=0,l=!0;r;)n[o]=r,r.isBuf||(l=!1),r=r.next,o+=1;n.allBuffers=l,Na(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 lu(t),t.bufferedRequestCount=0}else{for(;r;){var h=r.chunk,u=r.encoding,c=r.callback,f=t.objectMode?1:h.length;if(Na(e,t,!1,f,h,u,c),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}s(fu,"clearBuffer");V.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};V.prototype._writev=null;V.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||Vg(this,i,r)};function du(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}s(du,"needFinish");function $g(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),qr(e,t)})}s($g,"callFinal");function Zg(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Ct.nextTick($g,e,t)):(t.prefinished=!0,e.emit("prefinish")))}s(Zg,"prefinish");function qr(e,t){var r=du(t);return r&&(Zg(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}s(qr,"finishMaybe");function Vg(e,t,r){t.ending=!0,qr(e,t),r&&(t.finished?Ct.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}s(Vg,"endWritable");function Kg(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}s(Kg,"onCorkedFinish");Object.defineProperty(V.prototype,"destroyed",{get:s(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get"),set:s(function(e){this._writableState&&(this._writableState.destroyed=e)},"set")});V.prototype.destroy=hu.destroy;V.prototype._undestroy=hu.undestroy;V.prototype._destroy=function(e,t){this.end(),t(e)}});var _t=m((Nb,vu)=>{"use strict";var gu=Ur(),Jg=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};vu.exports=Je;var mu=Object.create(Kt());mu.inherits=Jt();var Du=za(),ja=Wa();mu.inherits(Je,Du);for(qa=Jg(ja.prototype),Ki=0;Ki<qa.length;Ki++)Ji=qa[Ki],Je.prototype[Ji]||(Je.prototype[Ji]=ja.prototype[Ji]);var qa,Ji,Ki;function Je(e){if(!(this instanceof Je))return new Je(e);Du.call(this,e),ja.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",Yg)}s(Je,"Duplex");Object.defineProperty(Je.prototype,"writableHighWaterMark",{enumerable:!1,get:s(function(){return this._writableState.highWaterMark},"get")});function Yg(){this.allowHalfOpen||this._writableState.ended||gu.nextTick(Xg,this)}s(Yg,"onend");function Xg(e){e.end()}s(Xg,"onEndNT");Object.defineProperty(Je.prototype,"destroyed",{get:s(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get"),set:s(function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)},"set")});Je.prototype._destroy=function(e,t){this.push(null),this.end(),gu.nextTick(t,e)}});var $a=m(wu=>{"use strict";var Ga=Nr().Buffer,yu=Ga.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 Qg(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}}s(Qg,"_normalizeEncoding");function em(e){var t=Qg(e);if(typeof t!="string"&&(Ga.isEncoding===yu||!yu(e)))throw new Error("Unknown encoding: "+e);return t||e}s(em,"normalizeEncoding");wu.StringDecoder=zr;function zr(e){this.encoding=em(e);var t;switch(this.encoding){case"utf16le":this.text=sm,this.end=om,t=4;break;case"utf8":this.fillLast=im,t=4;break;case"base64":this.text=lm,this.end=um,t=3;break;default:this.write=cm,this.end=hm;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Ga.allocUnsafe(t)}s(zr,"StringDecoder");zr.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||""};zr.prototype.end=am;zr.prototype.text=nm;zr.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 Ha(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}s(Ha,"utf8CheckByte");function tm(e,t,r){var i=t.length-1;if(i<r)return 0;var n=Ha(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||n===-2?0:(n=Ha(t[i]),n>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||n===-2?0:(n=Ha(t[i]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}s(tm,"utf8CheckIncomplete");function rm(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"}}s(rm,"utf8CheckExtraBytes");function im(e){var t=this.lastTotal-this.lastNeed,r=rm(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}s(im,"utf8FillLast");function nm(e,t){var r=tm(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)}s(nm,"utf8Text");function am(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}s(am,"utf8End");function sm(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)}s(sm,"utf16Text");function om(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}s(om,"utf16End");function lm(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))}s(lm,"base64Text");function um(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}s(um,"base64End");function cm(e){return e.toString(this.encoding)}s(cm,"simpleWrite");function hm(e){return e&&e.length?this.write(e):""}s(hm,"simpleEnd")});var za=m((Hb,Pu)=>{"use strict";var Qt=Ur();Pu.exports=j;var fm=Yl(),Hr;j.ReadableState=Eu;var zb=require("events").EventEmitter,ku=s(function(e,t){return e.listeners(t).length},"EElistenerCount"),Ya=Pa(),Gr=Nr().Buffer,dm=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function pm(e){return Gr.from(e)}s(pm,"_uint8ArrayToBuffer");function gm(e){return Gr.isBuffer(e)||e instanceof dm}s(gm,"_isUint8Array");var xu=Object.create(Kt());xu.inherits=Jt();var Za=require("util"),B=void 0;Za&&Za.debuglog?B=Za.debuglog("stream"):B=s(function(){},"debug");var mm=iu(),Su=Ua(),Xt;xu.inherits(j,Ya);var Va=["error","close","destroy","pause","resume"];function Dm(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):fm(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}s(Dm,"prependListener");function Eu(e,t){Hr=Hr||_t(),e=e||{};var r=t instanceof Hr;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 mm,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&&(Xt||(Xt=$a().StringDecoder),this.decoder=new Xt(e.encoding),this.encoding=e.encoding)}s(Eu,"ReadableState");function j(e){if(Hr=Hr||_t(),!(this instanceof j))return new j(e);this._readableState=new Eu(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Ya.call(this)}s(j,"Readable");Object.defineProperty(j.prototype,"destroyed",{get:s(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get"),set:s(function(e){this._readableState&&(this._readableState.destroyed=e)},"set")});j.prototype.destroy=Su.destroy;j.prototype._undestroy=Su.undestroy;j.prototype._destroy=function(e,t){this.push(null),t(e)};j.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=Gr.from(e,t),t=""),i=!0),Fu(this,e,t,!1,i)};j.prototype.unshift=function(e){return Fu(this,e,null,!0,!1)};function Fu(e,t,r,i,n){var a=e._readableState;if(t===null)a.reading=!1,bm(e,a);else{var o;n||(o=vm(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==Gr.prototype&&(t=pm(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Ka(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?Ka(e,a,t,!1):Au(e,a)):Ka(e,a,t,!1))):i||(a.reading=!1)}return ym(a)}s(Fu,"readableAddChunk");function Ka(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&&Yi(e)),Au(e,t)}s(Ka,"addChunk");function vm(e,t){var r;return!gm(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}s(vm,"chunkInvalid");function ym(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}s(ym,"needMoreData");j.prototype.isPaused=function(){return this._readableState.flowing===!1};j.prototype.setEncoding=function(e){return Xt||(Xt=$a().StringDecoder),this._readableState.decoder=new Xt(e),this._readableState.encoding=e,this};var bu=8388608;function wm(e){return e>=bu?e=bu:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}s(wm,"computeNewHighWaterMark");function Cu(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=wm(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}s(Cu,"howMuchToRead");j.prototype.read=function(e){B("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 B("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Ja(this):Yi(this),null;if(e=Cu(e,t),e===0&&t.ended)return t.length===0&&Ja(this),null;var i=t.needReadable;B("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,B("length less than watermark",i)),t.ended||t.reading?(i=!1,B("reading or ended",i)):i&&(B("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Cu(r,t)));var n;return e>0?n=Tu(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&&Ja(this)),n!==null&&this.emit("data",n),n};function bm(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,Yi(e)}}s(bm,"onEofChunk");function Yi(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(B("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Qt.nextTick(_u,e):_u(e))}s(Yi,"emitReadable");function _u(e){B("emit readable"),e.emit("readable"),Xa(e)}s(_u,"emitReadable_");function Au(e,t){t.readingMore||(t.readingMore=!0,Qt.nextTick(Cm,e,t))}s(Au,"maybeReadMore");function Cm(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(B("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}s(Cm,"maybeReadMore_");j.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};j.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,B("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,a=n?l:C;i.endEmitted?Qt.nextTick(a):r.once("end",a),e.on("unpipe",o);function o(y,D){B("onunpipe"),y===r&&D&&D.hasUnpiped===!1&&(D.hasUnpiped=!0,c())}s(o,"onunpipe");function l(){B("onend"),e.end()}s(l,"onend");var h=_m(r);e.on("drain",h);var u=!1;function c(){B("cleanup"),e.removeListener("close",b),e.removeListener("finish",v),e.removeListener("drain",h),e.removeListener("error",p),e.removeListener("unpipe",o),r.removeListener("end",l),r.removeListener("end",C),r.removeListener("data",d),u=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&h()}s(c,"cleanup");var f=!1;r.on("data",d);function d(y){B("ondata"),f=!1;var D=e.write(y);D===!1&&!f&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&Ru(i.pipes,e)!==-1)&&!u&&(B("false write response, pause",i.awaitDrain),i.awaitDrain++,f=!0),r.pause())}s(d,"ondata");function p(y){B("onerror",y),C(),e.removeListener("error",p),ku(e,"error")===0&&e.emit("error",y)}s(p,"onerror"),Dm(e,"error",p);function b(){e.removeListener("finish",v),C()}s(b,"onclose"),e.once("close",b);function v(){B("onfinish"),e.removeListener("close",b),C()}s(v,"onfinish"),e.once("finish",v);function C(){B("unpipe"),r.unpipe(e)}return s(C,"unpipe"),e.emit("pipe",r),i.flowing||(B("pipe resume"),r.resume()),e};function _m(e){return function(){var t=e._readableState;B("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&ku(e,"data")&&(t.flowing=!0,Xa(e))}}s(_m,"pipeOnDrain");j.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 o=Ru(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};j.prototype.on=function(e,t){var r=Ya.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&&Yi(this):Qt.nextTick(km,this))}return r};j.prototype.addListener=j.prototype.on;function km(e){B("readable nexttick read 0"),e.read(0)}s(km,"nReadingNextTick");j.prototype.resume=function(){var e=this._readableState;return e.flowing||(B("resume"),e.flowing=!0,xm(this,e)),this};function xm(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Qt.nextTick(Sm,e,t))}s(xm,"resume");function Sm(e,t){t.reading||(B("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Xa(e),t.flowing&&!t.reading&&e.read(0)}s(Sm,"resume_");j.prototype.pause=function(){return B("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(B("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Xa(e){var t=e._readableState;for(B("flow",t.flowing);t.flowing&&e.read()!==null;);}s(Xa,"flow");j.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(B("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(B("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var l=t.push(o);l||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=function(o){return function(){return e[o].apply(e,arguments)}}(n));for(var a=0;a<Va.length;a++)e.on(Va[a],this.emit.bind(this,Va[a]));return this._read=function(o){B("wrapped _read",o),i&&(i=!1,e.resume())},this};Object.defineProperty(j.prototype,"readableHighWaterMark",{enumerable:!1,get:s(function(){return this._readableState.highWaterMark},"get")});j._fromList=Tu;function Tu(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=Em(e,t.buffer,t.decoder),r}s(Tu,"fromList");function Em(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?Fm(e,t):Am(e,t),i}s(Em,"fromListPartial");function Fm(e,t){var r=t.head,i=1,n=r.data;for(e-=n.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(o===a.length?n+=a:n+=a.slice(0,e),e-=o,e===0){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}s(Fm,"copyFromBufferString");function Am(e,t){var r=Gr.allocUnsafe(e),i=t.head,n=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var a=i.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),e-=o,e===0){o===a.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=a.slice(o));break}++n}return t.length-=n,r}s(Am,"copyFromBuffer");function Ja(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Qt.nextTick(Tm,t,e))}s(Ja,"endReadable");function Tm(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}s(Tm,"endReadableNT");function Ru(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}s(Ru,"indexOf")});var Qa=m(($b,Lu)=>{"use strict";Lu.exports=Ye;var Xi=_t(),Mu=Object.create(Kt());Mu.inherits=Jt();Mu.inherits(Ye,Xi);function Rm(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)}s(Rm,"afterTransform");function Ye(e){if(!(this instanceof Ye))return new Ye(e);Xi.call(this,e),this._transformState={afterTransform:Rm.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",Pm)}s(Ye,"Transform");function Pm(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){Iu(e,t,r)}):Iu(this,null,null)}s(Pm,"prefinish");Ye.prototype.push=function(e,t){return this._transformState.needTransform=!1,Xi.prototype.push.call(this,e,t)};Ye.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Ye.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)}};Ye.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};Ye.prototype._destroy=function(e,t){var r=this;Xi.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function Iu(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)}s(Iu,"done")});var Nu=m((Vb,Uu)=>{"use strict";Uu.exports=$r;var Bu=Qa(),Ou=Object.create(Kt());Ou.inherits=Jt();Ou.inherits($r,Bu);function $r(e){if(!(this instanceof $r))return new $r(e);Bu.call(this,e)}s($r,"PassThrough");$r.prototype._transform=function(e,t,r){r(null,e)}});var es=m((re,Qi)=>{var Ne=require("stream");process.env.READABLE_STREAM==="disable"&&Ne?(Qi.exports=Ne,re=Qi.exports=Ne.Readable,re.Readable=Ne.Readable,re.Writable=Ne.Writable,re.Duplex=Ne.Duplex,re.Transform=Ne.Transform,re.PassThrough=Ne.PassThrough,re.Stream=Ne):(re=Qi.exports=za(),re.Stream=Ne||re,re.Readable=re,re.Writable=Wa(),re.Duplex=_t(),re.Transform=Qa(),re.PassThrough=Nu())});var Xe=m(ge=>{"use strict";ge.base64=!0;ge.array=!0;ge.string=!0;ge.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";ge.nodebuffer=typeof Buffer<"u";ge.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")ge.blob=!1;else{ts=new ArrayBuffer(0);try{ge.blob=new Blob([ts],{type:"application/zip"}).size===0}catch{try{Wu=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,rs=new Wu,rs.append(ts),ge.blob=rs.getBlob("application/zip").size===0}catch{ge.blob=!1}}}var ts,Wu,rs;try{ge.nodestream=!!es().Readable}catch{ge.nodestream=!1}});var ns=m(is=>{"use strict";var Im=H(),Mm=Xe(),We="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";is.encode=function(e){for(var t=[],r,i,n,a,o,l,h,u=0,c=e.length,f=c,d=Im.getTypeOf(e)!=="string";u<e.length;)f=c-u,d?(r=e[u++],i=u<c?e[u++]:0,n=u<c?e[u++]:0):(r=e.charCodeAt(u++),i=u<c?e.charCodeAt(u++):0,n=u<c?e.charCodeAt(u++):0),a=r>>2,o=(r&3)<<4|i>>4,l=f>1?(i&15)<<2|n>>6:64,h=f>2?n&63:64,t.push(We.charAt(a)+We.charAt(o)+We.charAt(l)+We.charAt(h));return t.join("")};is.decode=function(e){var t,r,i,n,a,o,l,h=0,u=0,c="data:";if(e.substr(0,c.length)===c)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var f=e.length*3/4;if(e.charAt(e.length-1)===We.charAt(64)&&f--,e.charAt(e.length-2)===We.charAt(64)&&f--,f%1!==0)throw new Error("Invalid base64 input, bad content length.");var d;for(Mm.uint8array?d=new Uint8Array(f|0):d=new Array(f|0);h<e.length;)n=We.indexOf(e.charAt(h++)),a=We.indexOf(e.charAt(h++)),o=We.indexOf(e.charAt(h++)),l=We.indexOf(e.charAt(h++)),t=n<<2|a>>4,r=(a&15)<<4|o>>2,i=(o&3)<<6|l,d[u++]=t,o!==64&&(d[u++]=r),l!==64&&(d[u++]=i);return d}});var Zr=m((Xb,qu)=>{"use strict";qu.exports={isNode:typeof Buffer<"u",newBufferFrom:s(function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e=="number")throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},"newBufferFrom"),allocBuffer:s(function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},"allocBuffer"),isBuffer:s(function(e){return Buffer.isBuffer(e)},"isBuffer"),isStream:s(function(e){return e&&typeof e.on=="function"&&typeof e.pause=="function"&&typeof e.resume=="function"},"isStream")}});var Gu=m((eC,Hu)=>{"use strict";var ju=global.MutationObserver||global.WebKitMutationObserver,er;process.browser?ju?(as=0,zu=new ju(Vr),ss=global.document.createTextNode(""),zu.observe(ss,{characterData:!0}),er=s(function(){ss.data=as=++as%2},"scheduleDrain")):!global.setImmediate&&typeof global.MessageChannel<"u"?(os=new global.MessageChannel,os.port1.onmessage=Vr,er=s(function(){os.port2.postMessage(0)},"scheduleDrain")):"document"in global&&"onreadystatechange"in global.document.createElement("script")?er=s(function(){var e=global.document.createElement("script");e.onreadystatechange=function(){Vr(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},global.document.documentElement.appendChild(e)},"scheduleDrain"):er=s(function(){setTimeout(Vr,0)},"scheduleDrain"):er=s(function(){process.nextTick(Vr)},"scheduleDrain");var as,zu,ss,os,ls,Kr=[];function Vr(){ls=!0;for(var e,t,r=Kr.length;r;){for(t=Kr,Kr=[],e=-1;++e<r;)t[e]();r=Kr.length}ls=!1}s(Vr,"nextTick");Hu.exports=Lm;function Lm(e){Kr.push(e)===1&&!ls&&er()}s(Lm,"immediate")});var Xu=m((rC,Yu)=>{"use strict";var $u=Gu();function tr(){}s(tr,"INTERNAL");var ae={},Zu=["REJECTED"],us=["FULFILLED"],Vu=["PENDING"];process.browser||(Jr=["UNHANDLED"]);var Jr;Yu.exports=st;function st(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=Vu,this.queue=[],this.outcome=void 0,process.browser||(this.handled=Jr),e!==tr&&Ku(this,e)}s(st,"Promise");st.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 s(a,"yes"),t.resolve(e()).then(a)}function i(n){function a(){throw n}return s(a,"no"),t.resolve(e()).then(a)}};st.prototype.catch=function(e){return this.then(null,e)};st.prototype.then=function(e,t){if(typeof e!="function"&&this.state===us||typeof t!="function"&&this.state===Zu)return this;var r=new this.constructor(tr);if(process.browser||this.handled===Jr&&(this.handled=null),this.state!==Vu){var i=this.state===us?e:t;cs(r,i,this.outcome)}else this.queue.push(new Yr(r,e,t));return r};function Yr(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)}s(Yr,"QueueItem");Yr.prototype.callFulfilled=function(e){ae.resolve(this.promise,e)};Yr.prototype.otherCallFulfilled=function(e){cs(this.promise,this.onFulfilled,e)};Yr.prototype.callRejected=function(e){ae.reject(this.promise,e)};Yr.prototype.otherCallRejected=function(e){cs(this.promise,this.onRejected,e)};function cs(e,t,r){$u(function(){var i;try{i=t(r)}catch(n){return ae.reject(e,n)}i===e?ae.reject(e,new TypeError("Cannot resolve promise with itself")):ae.resolve(e,i)})}s(cs,"unwrap");ae.resolve=function(e,t){var r=Ju(Bm,t);if(r.status==="error")return ae.reject(e,r.value);var i=r.value;if(i)Ku(e,i);else{e.state=us,e.outcome=t;for(var n=-1,a=e.queue.length;++n<a;)e.queue[n].callFulfilled(t)}return e};ae.reject=function(e,t){e.state=Zu,e.outcome=t,process.browser||e.handled===Jr&&$u(function(){e.handled===Jr&&process.emit("unhandledRejection",t,e)});for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e};function Bm(e){var t=e&&e.then;if(e&&(typeof e=="object"||typeof e=="function")&&typeof t=="function")return s(function(){t.apply(e,arguments)},"appyThen")}s(Bm,"getThen");function Ku(e,t){var r=!1;function i(l){r||(r=!0,ae.reject(e,l))}s(i,"onError");function n(l){r||(r=!0,ae.resolve(e,l))}s(n,"onSuccess");function a(){t(n,i)}s(a,"tryToUnwrap");var o=Ju(a);o.status==="error"&&i(o.value)}s(Ku,"safelyResolveThenable");function Ju(e,t){var r={};try{r.value=e(t),r.status="success"}catch(i){r.status="error",r.value=i}return r}s(Ju,"tryCatch");st.resolve=Om;function Om(e){return e instanceof this?e:ae.resolve(new this(tr),e)}s(Om,"resolve");st.reject=Um;function Um(e){var t=new this(tr);return ae.reject(t,e)}s(Um,"reject");st.all=Nm;function Nm(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,o=-1,l=new this(tr);++o<r;)h(e[o],o);return l;function h(u,c){t.resolve(u).then(f,function(d){i||(i=!0,ae.reject(l,d))});function f(d){n[c]=d,++a===r&&!i&&(i=!0,ae.resolve(l,n))}s(f,"resolveFromAll")}}s(Nm,"all");st.race=Wm;function Wm(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(tr);++n<r;)o(e[n]);return a;function o(l){t.resolve(l).then(function(h){i||(i=!0,ae.resolve(a,h))},function(h){i||(i=!0,ae.reject(a,h))})}}s(Wm,"race")});var rr=m((nC,Qu)=>{"use strict";var hs=null;typeof Promise<"u"?hs=Promise:hs=Xu();Qu.exports={Promise:hs}});var tc=m(ec=>{(function(e,t){"use strict";if(e.setImmediate)return;var r=1,i={},n=!1,a=e.document,o;function l(D){typeof D!="function"&&(D=new Function(""+D));for(var _=new Array(arguments.length-1),w=0;w<_.length;w++)_[w]=arguments[w+1];var g={callback:D,args:_};return i[r]=g,o(r),r++}s(l,"setImmediate");function h(D){delete i[D]}s(h,"clearImmediate");function u(D){var _=D.callback,w=D.args;switch(w.length){case 0:_();break;case 1:_(w[0]);break;case 2:_(w[0],w[1]);break;case 3:_(w[0],w[1],w[2]);break;default:_.apply(t,w);break}}s(u,"run");function c(D){if(n)setTimeout(c,0,D);else{var _=i[D];if(_){n=!0;try{u(_)}finally{h(D),n=!1}}}}s(c,"runIfPresent");function f(){o=s(function(D){process.nextTick(function(){c(D)})},"registerImmediate")}s(f,"installNextTickImplementation");function d(){if(e.postMessage&&!e.importScripts){var D=!0,_=e.onmessage;return e.onmessage=function(){D=!1},e.postMessage("","*"),e.onmessage=_,D}}s(d,"canUsePostMessage");function p(){var D="setImmediate$"+Math.random()+"$",_=s(function(w){w.source===e&&typeof w.data=="string"&&w.data.indexOf(D)===0&&c(+w.data.slice(D.length))},"onGlobalMessage");e.addEventListener?e.addEventListener("message",_,!1):e.attachEvent("onmessage",_),o=s(function(w){e.postMessage(D+w,"*")},"registerImmediate")}s(p,"installPostMessageImplementation");function b(){var D=new MessageChannel;D.port1.onmessage=function(_){var w=_.data;c(w)},o=s(function(_){D.port2.postMessage(_)},"registerImmediate")}s(b,"installMessageChannelImplementation");function v(){var D=a.documentElement;o=s(function(_){var w=a.createElement("script");w.onreadystatechange=function(){c(_),w.onreadystatechange=null,D.removeChild(w),w=null},D.appendChild(w)},"registerImmediate")}s(v,"installReadyStateChangeImplementation");function C(){o=s(function(D){setTimeout(c,0,D)},"registerImmediate")}s(C,"installSetTimeoutImplementation");var y=Object.getPrototypeOf&&Object.getPrototypeOf(e);y=y&&y.setTimeout?y:e,{}.toString.call(e.process)==="[object process]"?f():d()?p():e.MessageChannel?b():a&&"onreadystatechange"in a.createElement("script")?v():C(),y.setImmediate=l,y.clearImmediate=h})(typeof self>"u"?typeof global>"u"?ec:global:self)});var H=m(K=>{"use strict";var ot=Xe(),qm=ns(),ir=Zr(),fs=rr();tc();function jm(e){var t=null;return ot.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),tn(e,t)}s(jm,"string2binary");K.newBlob=function(e,t){K.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 Xr(e){return e}s(Xr,"identity");function tn(e,t){for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)&255;return t}s(tn,"stringToArrayLike");var en={stringifyByChunk:s(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("")},"stringifyByChunk"),stringifyByChar:s(function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},"stringifyByChar"),applyCanBeUsed:{uint8array:function(){try{return ot.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return ot.nodebuffer&&String.fromCharCode.apply(null,ir.allocBuffer(1)).length===1}catch{return!1}}()}};function Qr(e){var t=65536,r=K.getTypeOf(e),i=!0;if(r==="uint8array"?i=en.applyCanBeUsed.uint8array:r==="nodebuffer"&&(i=en.applyCanBeUsed.nodebuffer),i)for(;t>1;)try{return en.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return en.stringifyByChar(e)}s(Qr,"arrayLikeToString");K.applyFromCharCode=Qr;function rn(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}s(rn,"arrayLikeToArrayLike");var lt={};lt.string={string:Xr,array:s(function(e){return tn(e,new Array(e.length))},"array"),arraybuffer:s(function(e){return lt.string.uint8array(e).buffer},"arraybuffer"),uint8array:s(function(e){return tn(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:s(function(e){return tn(e,ir.allocBuffer(e.length))},"nodebuffer")};lt.array={string:Qr,array:Xr,arraybuffer:s(function(e){return new Uint8Array(e).buffer},"arraybuffer"),uint8array:s(function(e){return new Uint8Array(e)},"uint8array"),nodebuffer:s(function(e){return ir.newBufferFrom(e)},"nodebuffer")};lt.arraybuffer={string:s(function(e){return Qr(new Uint8Array(e))},"string"),array:s(function(e){return rn(new Uint8Array(e),new Array(e.byteLength))},"array"),arraybuffer:Xr,uint8array:s(function(e){return new Uint8Array(e)},"uint8array"),nodebuffer:s(function(e){return ir.newBufferFrom(new Uint8Array(e))},"nodebuffer")};lt.uint8array={string:Qr,array:s(function(e){return rn(e,new Array(e.length))},"array"),arraybuffer:s(function(e){return e.buffer},"arraybuffer"),uint8array:Xr,nodebuffer:s(function(e){return ir.newBufferFrom(e)},"nodebuffer")};lt.nodebuffer={string:Qr,array:s(function(e){return rn(e,new Array(e.length))},"array"),arraybuffer:s(function(e){return lt.nodebuffer.uint8array(e).buffer},"arraybuffer"),uint8array:s(function(e){return rn(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:Xr};K.transformTo=function(e,t){if(t||(t=""),!e)return t;K.checkSupport(e);var r=K.getTypeOf(t),i=lt[r][e](t);return i};K.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("/")};K.getTypeOf=function(e){if(typeof e=="string")return"string";if(Object.prototype.toString.call(e)==="[object Array]")return"array";if(ot.nodebuffer&&ir.isBuffer(e))return"nodebuffer";if(ot.uint8array&&e instanceof Uint8Array)return"uint8array";if(ot.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer"};K.checkSupport=function(e){var t=ot[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this platform")};K.MAX_VALUE_16BITS=65535;K.MAX_VALUE_32BITS=-1;K.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};K.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})};K.inherits=function(e,t){var r=s(function(){},"Obj");r.prototype=t.prototype,e.prototype=new r};K.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};K.prepareContent=function(e,t,r,i,n){var a=fs.Promise.resolve(t).then(function(o){var l=ot.blob&&(o instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(o))!==-1);return l&&typeof FileReader<"u"?new fs.Promise(function(h,u){var c=new FileReader;c.onload=function(f){h(f.target.result)},c.onerror=function(f){u(f.target.error)},c.readAsArrayBuffer(o)}):o});return a.then(function(o){var l=K.getTypeOf(o);return l?(l==="arraybuffer"?o=K.transformTo("uint8array",o):l==="string"&&(n?o=qm.decode(o):r&&i!==!0&&(o=jm(o))),o):fs.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}});var me=m((uC,ic)=>{"use strict";function rc(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}s(rc,"GenericWorker");rc.prototype={push:s(function(e){this.emit("data",e)},"push"),end:s(function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},"end"),error:s(function(e){return this.isFinished?!1:(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},"error"),on:s(function(e,t){return this._listeners[e].push(t),this},"on"),cleanUp:s(function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},"cleanUp"),emit:s(function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},"emit"),pipe:s(function(e){return e.registerPrevious(this)},"pipe"),registerPrevious:s(function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.end()}),e.on("error",function(r){t.error(r)}),this},"registerPrevious"),pause:s(function(){return this.isPaused||this.isFinished?!1:(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},"pause"),resume:s(function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},"resume"),flush:s(function(){},"flush"),processChunk:s(function(e){this.push(e)},"processChunk"),withStreamInfo:s(function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},"withStreamInfo"),mergeStreamInfo:s(function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},"mergeStreamInfo"),lock:s(function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},"lock"),toString:s(function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e},"toString")};ic.exports=rc});var ar=m(ut=>{"use strict";var nr=H(),kt=Xe(),zm=Zr(),nn=me(),ei=new Array(256);for(Qe=0;Qe<256;Qe++)ei[Qe]=Qe>=252?6:Qe>=248?5:Qe>=240?4:Qe>=224?3:Qe>=192?2:1;var Qe;ei[254]=ei[254]=1;var Hm=s(function(e){var t,r,i,n,a,o=e.length,l=0;for(n=0;n<o;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<o&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),l+=r<128?1:r<2048?2:r<65536?3:4;for(kt.uint8array?t=new Uint8Array(l):t=new Array(l),a=0,n=0;a<l;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<o&&(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},"string2buf"),Gm=s(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+ei[e[r]]>t?r:t},"utf8border"),$m=s(function(e){var t,r,i,n,a=e.length,o=new Array(a*2);for(r=0,t=0;t<a;){if(i=e[t++],i<128){o[r++]=i;continue}if(n=ei[i],n>4){o[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){o[r++]=65533;continue}i<65536?o[r++]=i:(i-=65536,o[r++]=55296|i>>10&1023,o[r++]=56320|i&1023)}return o.length!==r&&(o.subarray?o=o.subarray(0,r):o.length=r),nr.applyFromCharCode(o)},"buf2string");ut.utf8encode=s(function(t){return kt.nodebuffer?zm.newBufferFrom(t,"utf-8"):Hm(t)},"utf8encode");ut.utf8decode=s(function(t){return kt.nodebuffer?nr.transformTo("nodebuffer",t).toString("utf-8"):(t=nr.transformTo(kt.uint8array?"uint8array":"array",t),$m(t))},"utf8decode");function an(){nn.call(this,"utf-8 decode"),this.leftOver=null}s(an,"Utf8DecodeWorker");nr.inherits(an,nn);an.prototype.processChunk=function(e){var t=nr.transformTo(kt.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(kt.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=Gm(t),n=t;i!==t.length&&(kt.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:ut.utf8decode(n),meta:e.meta})};an.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ut.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};ut.Utf8DecodeWorker=an;function ds(){nn.call(this,"utf-8 encode")}s(ds,"Utf8EncodeWorker");nr.inherits(ds,nn);ds.prototype.processChunk=function(e){this.push({data:ut.utf8encode(e.data),meta:e.meta})};ut.Utf8EncodeWorker=ds});var oc=m((dC,sc)=>{"use strict";var nc=me(),ac=H();function ps(e){nc.call(this,"ConvertWorker to "+e),this.destType=e}s(ps,"ConvertWorker");ac.inherits(ps,nc);ps.prototype.processChunk=function(e){this.push({data:ac.transformTo(this.destType,e.data),meta:e.meta})};sc.exports=ps});var cc=m((gC,uc)=>{"use strict";var lc=es().Readable,Zm=H();Zm.inherits(gs,lc);function gs(e,t,r){lc.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)})}s(gs,"NodejsStreamOutputAdapter");gs.prototype._read=function(){this._helper.resume()};uc.exports=gs});var ms=m((DC,dc)=>{"use strict";var xt=H(),Vm=oc(),Km=me(),Jm=ns(),Ym=Xe(),Xm=rr(),hc=null;if(Ym.nodestream)try{hc=cc()}catch{}function Qm(e,t,r){switch(e){case"blob":return xt.newBlob(xt.transformTo("arraybuffer",t),r);case"base64":return Jm.encode(t);default:return xt.transformTo(e,t)}}s(Qm,"transformZipOutput");function e0(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+"'")}}s(e0,"concat");function t0(e,t){return new Xm.Promise(function(r,i){var n=[],a=e._internalType,o=e._outputType,l=e._mimeType;e.on("data",function(h,u){n.push(h),t&&t(u)}).on("error",function(h){n=[],i(h)}).on("end",function(){try{var h=Qm(o,e0(a,n),l);r(h)}catch(u){i(u)}n=[]}).resume()})}s(t0,"accumulate");function fc(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,xt.checkSupport(i),this._worker=e.pipe(new Vm(i)),e.lock()}catch(n){this._worker=new Km("error"),this._worker.error(n)}}s(fc,"StreamHelper");fc.prototype={accumulate:s(function(e){return t0(this,e)},"accumulate"),on:s(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(){xt.delay(t,arguments,r)}),this},"on"),resume:s(function(){return xt.delay(this._worker.resume,[],this._worker),this},"resume"),pause:s(function(){return this._worker.pause(),this},"pause"),toNodejsStream:s(function(e){if(xt.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new hc(this,{objectMode:this._outputType!=="nodebuffer"},e)},"toNodejsStream")};dc.exports=fc});var Ds=m(Ae=>{"use strict";Ae.base64=!1;Ae.binary=!1;Ae.dir=!1;Ae.createFolders=!0;Ae.date=null;Ae.compression=null;Ae.compressionOptions=null;Ae.comment=null;Ae.unixPermissions=null;Ae.dosPermissions=null});var vs=m((wC,pc)=>{"use strict";var sn=H(),on=me(),r0=16*1024;function sr(e){on.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=sn.getTypeOf(r),t.isPaused||t._tickAndRepeat()},function(r){t.error(r)})}s(sr,"DataWorker");sn.inherits(sr,on);sr.prototype.cleanUp=function(){on.prototype.cleanUp.call(this),this.data=null};sr.prototype.resume=function(){return on.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,sn.delay(this._tickAndRepeat,[],this)),!0):!1};sr.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(sn.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};sr.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=r0,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}})};pc.exports=sr});var ln=m((CC,mc)=>{"use strict";var i0=H();function n0(){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}s(n0,"makeTable");var gc=n0();function a0(e,t,r,i){var n=gc,a=i+r;e=e^-1;for(var o=i;o<a;o++)e=e>>>8^n[(e^t[o])&255];return e^-1}s(a0,"crc32");function s0(e,t,r,i){var n=gc,a=i+r;e=e^-1;for(var o=i;o<a;o++)e=e>>>8^n[(e^t.charCodeAt(o))&255];return e^-1}s(s0,"crc32str");mc.exports=s(function(t,r){if(typeof t>"u"||!t.length)return 0;var i=i0.getTypeOf(t)!=="string";return i?a0(r|0,t,t.length,0):s0(r|0,t,t.length,0)},"crc32wrapper")});var ws=m((kC,vc)=>{"use strict";var Dc=me(),o0=ln(),l0=H();function ys(){Dc.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}s(ys,"Crc32Probe");l0.inherits(ys,Dc);ys.prototype.processChunk=function(e){this.streamInfo.crc32=o0(e.data,this.streamInfo.crc32||0),this.push(e)};vc.exports=ys});var wc=m((SC,yc)=>{"use strict";var u0=H(),bs=me();function Cs(e){bs.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}s(Cs,"DataLengthProbe");u0.inherits(Cs,bs);Cs.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}bs.prototype.processChunk.call(this,e)};yc.exports=Cs});var un=m((FC,_c)=>{"use strict";var bc=rr(),Cc=vs(),c0=ws(),_s=wc();function ks(e,t,r,i,n){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=n}s(ks,"CompressedObject");ks.prototype={getContentWorker:s(function(){var e=new Cc(bc.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new _s("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},"getContentWorker"),getCompressedWorker:s(function(){return new Cc(bc.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)},"getCompressedWorker")};ks.createWorkerFrom=function(e,t,r){return e.pipe(new c0).pipe(new _s("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new _s("compressedSize")).withStreamInfo("compression",t)};_c.exports=ks});var Ec=m((TC,Sc)=>{"use strict";var h0=ms(),f0=vs(),xs=ar(),Ss=un(),kc=me(),Es=s(function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}},"ZipObject");Es.prototype={internalStream:s(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 xs.Utf8EncodeWorker)),!n&&i&&(t=t.pipe(new xs.Utf8DecodeWorker))}catch(a){t=new kc("error"),t.error(a)}return new h0(t,r,"")},"internalStream"),async:s(function(e,t){return this.internalStream(e).accumulate(t)},"async"),nodeStream:s(function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},"nodeStream"),_compressWorker:s(function(e,t){if(this._data instanceof Ss&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new xs.Utf8EncodeWorker)),Ss.createWorkerFrom(r,e,t)},"_compressWorker"),_decompressWorker:s(function(){return this._data instanceof Ss?this._data.getContentWorker():this._data instanceof kc?this._data:new f0(this._data)},"_decompressWorker")};var xc=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],d0=s(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"removedFn");for(cn=0;cn<xc.length;cn++)Es.prototype[xc[cn]]=d0;var cn;Sc.exports=Es});var et=m(se=>{"use strict";var p0=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function g0(e,t){return Object.prototype.hasOwnProperty.call(e,t)}s(g0,"_has");se.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)g0(r,i)&&(e[i]=r[i])}}return e};se.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var m0={arraySet:s(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]},"arraySet"),flattenChunks:s(function(e){var t,r,i,n,a,o;for(i=0,t=0,r=e.length;t<r;t++)i+=e[t].length;for(o=new Uint8Array(i),n=0,t=0,r=e.length;t<r;t++)a=e[t],o.set(a,n),n+=a.length;return o},"flattenChunks")},D0={arraySet:s(function(e,t,r,i,n){for(var a=0;a<i;a++)e[n+a]=t[r+a]},"arraySet"),flattenChunks:s(function(e){return[].concat.apply([],e)},"flattenChunks")};se.setTyped=function(e){e?(se.Buf8=Uint8Array,se.Buf16=Uint16Array,se.Buf32=Int32Array,se.assign(se,m0)):(se.Buf8=Array,se.Buf16=Array,se.Buf32=Array,se.assign(se,D0))};se.setTyped(p0)});var Jc=m(ur=>{"use strict";var v0=et(),y0=4,Fc=0,Ac=1,w0=2;function lr(e){for(var t=e.length;--t>=0;)e[t]=0}s(lr,"zero");var b0=0,Lc=1,C0=2,_0=3,k0=258,Ms=29,si=256,ri=si+1+Ms,or=30,Ls=19,Bc=2*ri+1,St=15,Fs=16,x0=7,Bs=256,Oc=16,Uc=17,Nc=18,Ps=[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],hn=[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],S0=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Wc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],E0=512,tt=new Array((ri+2)*2);lr(tt);var ti=new Array(or*2);lr(ti);var ii=new Array(E0);lr(ii);var ni=new Array(k0-_0+1);lr(ni);var Os=new Array(Ms);lr(Os);var fn=new Array(or);lr(fn);function As(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}s(As,"StaticTreeDesc");var qc,jc,zc;function Ts(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}s(Ts,"TreeDesc");function Hc(e){return e<256?ii[e]:ii[256+(e>>>7)]}s(Hc,"d_code");function ai(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}s(ai,"put_short");function ce(e,t,r){e.bi_valid>Fs-r?(e.bi_buf|=t<<e.bi_valid&65535,ai(e,e.bi_buf),e.bi_buf=t>>Fs-e.bi_valid,e.bi_valid+=r-Fs):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}s(ce,"send_bits");function qe(e,t,r){ce(e,r[t*2],r[t*2+1])}s(qe,"send_code");function Gc(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}s(Gc,"bi_reverse");function F0(e){e.bi_valid===16?(ai(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)}s(F0,"bi_flush");function A0(e,t){var r=t.dyn_tree,i=t.max_code,n=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,l=t.stat_desc.extra_base,h=t.stat_desc.max_length,u,c,f,d,p,b,v=0;for(d=0;d<=St;d++)e.bl_count[d]=0;for(r[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;u<Bc;u++)c=e.heap[u],d=r[r[c*2+1]*2+1]+1,d>h&&(d=h,v++),r[c*2+1]=d,!(c>i)&&(e.bl_count[d]++,p=0,c>=l&&(p=o[c-l]),b=r[c*2],e.opt_len+=b*(d+p),a&&(e.static_len+=b*(n[c*2+1]+p)));if(v!==0){do{for(d=h-1;e.bl_count[d]===0;)d--;e.bl_count[d]--,e.bl_count[d+1]+=2,e.bl_count[h]--,v-=2}while(v>0);for(d=h;d!==0;d--)for(c=e.bl_count[d];c!==0;)f=e.heap[--u],!(f>i)&&(r[f*2+1]!==d&&(e.opt_len+=(d-r[f*2+1])*r[f*2],r[f*2+1]=d),c--)}}s(A0,"gen_bitlen");function $c(e,t,r){var i=new Array(St+1),n=0,a,o;for(a=1;a<=St;a++)i[a]=n=n+r[a-1]<<1;for(o=0;o<=t;o++){var l=e[o*2+1];l!==0&&(e[o*2]=Gc(i[l]++,l))}}s($c,"gen_codes");function T0(){var e,t,r,i,n,a=new Array(St+1);for(r=0,i=0;i<Ms-1;i++)for(Os[i]=r,e=0;e<1<<Ps[i];e++)ni[r++]=i;for(ni[r-1]=i,n=0,i=0;i<16;i++)for(fn[i]=n,e=0;e<1<<hn[i];e++)ii[n++]=i;for(n>>=7;i<or;i++)for(fn[i]=n<<7,e=0;e<1<<hn[i]-7;e++)ii[256+n++]=i;for(t=0;t<=St;t++)a[t]=0;for(e=0;e<=143;)tt[e*2+1]=8,e++,a[8]++;for(;e<=255;)tt[e*2+1]=9,e++,a[9]++;for(;e<=279;)tt[e*2+1]=7,e++,a[7]++;for(;e<=287;)tt[e*2+1]=8,e++,a[8]++;for($c(tt,ri+1,a),e=0;e<or;e++)ti[e*2+1]=5,ti[e*2]=Gc(e,5);qc=new As(tt,Ps,si+1,ri,St),jc=new As(ti,hn,0,or,St),zc=new As(new Array(0),S0,0,Ls,x0)}s(T0,"tr_static_init");function Zc(e){var t;for(t=0;t<ri;t++)e.dyn_ltree[t*2]=0;for(t=0;t<or;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Ls;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Bs*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}s(Zc,"init_block");function Vc(e){e.bi_valid>8?ai(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}s(Vc,"bi_windup");function R0(e,t,r,i){Vc(e),i&&(ai(e,r),ai(e,~r)),v0.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}s(R0,"copy_block");function Tc(e,t,r,i){var n=t*2,a=r*2;return e[n]<e[a]||e[n]===e[a]&&i[t]<=i[r]}s(Tc,"smaller");function Rs(e,t,r){for(var i=e.heap[r],n=r<<1;n<=e.heap_len&&(n<e.heap_len&&Tc(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!Tc(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i}s(Rs,"pqdownheap");function Rc(e,t,r){var i,n,a=0,o,l;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?qe(e,n,t):(o=ni[n],qe(e,o+si+1,t),l=Ps[o],l!==0&&(n-=Os[o],ce(e,n,l)),i--,o=Hc(i),qe(e,o,r),l=hn[o],l!==0&&(i-=fn[o],ce(e,i,l)));while(a<e.last_lit);qe(e,Bs,t)}s(Rc,"compress_block");function Is(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,n=t.stat_desc.has_stree,a=t.stat_desc.elems,o,l,h=-1,u;for(e.heap_len=0,e.heap_max=Bc,o=0;o<a;o++)r[o*2]!==0?(e.heap[++e.heap_len]=h=o,e.depth[o]=0):r[o*2+1]=0;for(;e.heap_len<2;)u=e.heap[++e.heap_len]=h<2?++h:0,r[u*2]=1,e.depth[u]=0,e.opt_len--,n&&(e.static_len-=i[u*2+1]);for(t.max_code=h,o=e.heap_len>>1;o>=1;o--)Rs(e,r,o);u=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Rs(e,r,1),l=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=l,r[u*2]=r[o*2]+r[l*2],e.depth[u]=(e.depth[o]>=e.depth[l]?e.depth[o]:e.depth[l])+1,r[o*2+1]=r[l*2+1]=u,e.heap[1]=u++,Rs(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],A0(e,t),$c(r,h,e.bl_count)}s(Is,"build_tree");function Pc(e,t,r){var i,n=-1,a,o=t[0*2+1],l=0,h=7,u=4;for(o===0&&(h=138,u=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)a=o,o=t[(i+1)*2+1],!(++l<h&&a===o)&&(l<u?e.bl_tree[a*2]+=l:a!==0?(a!==n&&e.bl_tree[a*2]++,e.bl_tree[Oc*2]++):l<=10?e.bl_tree[Uc*2]++:e.bl_tree[Nc*2]++,l=0,n=a,o===0?(h=138,u=3):a===o?(h=6,u=3):(h=7,u=4))}s(Pc,"scan_tree");function Ic(e,t,r){var i,n=-1,a,o=t[0*2+1],l=0,h=7,u=4;for(o===0&&(h=138,u=3),i=0;i<=r;i++)if(a=o,o=t[(i+1)*2+1],!(++l<h&&a===o)){if(l<u)do qe(e,a,e.bl_tree);while(--l!==0);else a!==0?(a!==n&&(qe(e,a,e.bl_tree),l--),qe(e,Oc,e.bl_tree),ce(e,l-3,2)):l<=10?(qe(e,Uc,e.bl_tree),ce(e,l-3,3)):(qe(e,Nc,e.bl_tree),ce(e,l-11,7));l=0,n=a,o===0?(h=138,u=3):a===o?(h=6,u=3):(h=7,u=4)}}s(Ic,"send_tree");function P0(e){var t;for(Pc(e,e.dyn_ltree,e.l_desc.max_code),Pc(e,e.dyn_dtree,e.d_desc.max_code),Is(e,e.bl_desc),t=Ls-1;t>=3&&e.bl_tree[Wc[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}s(P0,"build_bl_tree");function I0(e,t,r,i){var n;for(ce(e,t-257,5),ce(e,r-1,5),ce(e,i-4,4),n=0;n<i;n++)ce(e,e.bl_tree[Wc[n]*2+1],3);Ic(e,e.dyn_ltree,t-1),Ic(e,e.dyn_dtree,r-1)}s(I0,"send_all_trees");function M0(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return Fc;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Ac;for(r=32;r<si;r++)if(e.dyn_ltree[r*2]!==0)return Ac;return Fc}s(M0,"detect_data_type");var Mc=!1;function L0(e){Mc||(T0(),Mc=!0),e.l_desc=new Ts(e.dyn_ltree,qc),e.d_desc=new Ts(e.dyn_dtree,jc),e.bl_desc=new Ts(e.bl_tree,zc),e.bi_buf=0,e.bi_valid=0,Zc(e)}s(L0,"_tr_init");function Kc(e,t,r,i){ce(e,(b0<<1)+(i?1:0),3),R0(e,t,r,!0)}s(Kc,"_tr_stored_block");function B0(e){ce(e,Lc<<1,3),qe(e,Bs,tt),F0(e)}s(B0,"_tr_align");function O0(e,t,r,i){var n,a,o=0;e.level>0?(e.strm.data_type===w0&&(e.strm.data_type=M0(e)),Is(e,e.l_desc),Is(e,e.d_desc),o=P0(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?Kc(e,t,r,i):e.strategy===y0||a===n?(ce(e,(Lc<<1)+(i?1:0),3),Rc(e,tt,ti)):(ce(e,(C0<<1)+(i?1:0),3),I0(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Rc(e,e.dyn_ltree,e.dyn_dtree)),Zc(e),i&&Vc(e)}s(O0,"_tr_flush_block");function U0(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[(ni[r]+si+1)*2]++,e.dyn_dtree[Hc(t)*2]++),e.last_lit===e.lit_bufsize-1}s(U0,"_tr_tally");ur._tr_init=L0;ur._tr_stored_block=Kc;ur._tr_flush_block=O0;ur._tr_tally=U0;ur._tr_align=B0});var Us=m((BC,Yc)=>{"use strict";function N0(e,t,r,i){for(var n=e&65535|0,a=e>>>16&65535|0,o=0;r!==0;){o=r>2e3?2e3:r,r-=o;do n=n+t[i++]|0,a=a+n|0;while(--o);n%=65521,a%=65521}return n|a<<16|0}s(N0,"adler32");Yc.exports=N0});var Ns=m((UC,Xc)=>{"use strict";function W0(){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}s(W0,"makeTable");var q0=W0();function j0(e,t,r,i){var n=q0,a=i+r;e^=-1;for(var o=i;o<a;o++)e=e>>>8^n[(e^t[o])&255];return e^-1}s(j0,"crc32");Xc.exports=j0});var dn=m((WC,Qc)=>{"use strict";Qc.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 lh=m(He=>{"use strict";var oe=et(),be=Jc(),ih=Us(),ct=Ns(),z0=dn(),Tt=0,H0=1,G0=3,gt=4,eh=5,ze=0,th=1,Ce=-2,$0=-3,Ws=-5,Z0=-1,V0=1,pn=2,K0=3,J0=4,Y0=0,X0=2,vn=8,Q0=9,eD=15,tD=8,rD=29,iD=256,js=iD+1+rD,nD=30,aD=19,sD=2*js+1,oD=15,I=3,dt=258,Te=dt+I+1,lD=32,yn=42,zs=69,gn=73,mn=91,Dn=103,Et=113,li=666,X=1,ui=2,Ft=3,fr=4,uD=3;function pt(e,t){return e.msg=z0[t],t}s(pt,"err");function rh(e){return(e<<1)-(e>4?9:0)}s(rh,"rank");function ft(e){for(var t=e.length;--t>=0;)e[t]=0}s(ft,"zero");function ht(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(oe.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}s(ht,"flush_pending");function ie(e,t){be._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ht(e.strm)}s(ie,"flush_block_only");function L(e,t){e.pending_buf[e.pending++]=t}s(L,"put_byte");function oi(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}s(oi,"putShortMSB");function cD(e,t,r,i){var n=e.avail_in;return n>i&&(n=i),n===0?0:(e.avail_in-=n,oe.arraySet(t,e.input,e.next_in,n,r),e.state.wrap===1?e.adler=ih(e.adler,t,n,r):e.state.wrap===2&&(e.adler=ct(e.adler,t,n,r)),e.next_in+=n,e.total_in+=n,n)}s(cD,"read_buf");function nh(e,t){var r=e.max_chain_length,i=e.strstart,n,a,o=e.prev_length,l=e.nice_match,h=e.strstart>e.w_size-Te?e.strstart-(e.w_size-Te):0,u=e.window,c=e.w_mask,f=e.prev,d=e.strstart+dt,p=u[i+o-1],b=u[i+o];e.prev_length>=e.good_match&&(r>>=2),l>e.lookahead&&(l=e.lookahead);do if(n=t,!(u[n+o]!==b||u[n+o-1]!==p||u[n]!==u[i]||u[++n]!==u[i+1])){i+=2,n++;do;while(u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&i<d);if(a=dt-(d-i),i=d-dt,a>o){if(e.match_start=t,o=a,a>=l)break;p=u[i+o-1],b=u[i+o]}}while((t=f[t&c])>h&&--r!==0);return o<=e.lookahead?o:e.lookahead}s(nh,"longest_match");function At(e){var t=e.w_size,r,i,n,a,o;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Te)){oe.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do 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=cD(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=i,e.lookahead+e.insert>=I)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+I-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<I)););}while(e.lookahead<Te&&e.strm.avail_in!==0)}s(At,"fill_window");function hD(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(At(e),e.lookahead===0&&t===Tt)return X;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,ie(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Te&&(ie(e,!1),e.strm.avail_out===0))return X}return e.insert=0,t===gt?(ie(e,!0),e.strm.avail_out===0?Ft:fr):(e.strstart>e.block_start&&(ie(e,!1),e.strm.avail_out===0),X)}s(hD,"deflate_stored");function qs(e,t){for(var r,i;;){if(e.lookahead<Te){if(At(e),e.lookahead<Te&&t===Tt)return X;if(e.lookahead===0)break}if(r=0,e.lookahead>=I&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+I-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-Te&&(e.match_length=nh(e,r)),e.match_length>=I)if(i=be._tr_tally(e,e.strstart-e.match_start,e.match_length-I),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=I){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+I-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=be._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(ie(e,!1),e.strm.avail_out===0))return X}return e.insert=e.strstart<I-1?e.strstart:I-1,t===gt?(ie(e,!0),e.strm.avail_out===0?Ft:fr):e.last_lit&&(ie(e,!1),e.strm.avail_out===0)?X:ui}s(qs,"deflate_fast");function cr(e,t){for(var r,i,n;;){if(e.lookahead<Te){if(At(e),e.lookahead<Te&&t===Tt)return X;if(e.lookahead===0)break}if(r=0,e.lookahead>=I&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+I-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=I-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Te&&(e.match_length=nh(e,r),e.match_length<=5&&(e.strategy===V0||e.match_length===I&&e.strstart-e.match_start>4096)&&(e.match_length=I-1)),e.prev_length>=I&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-I,i=be._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-I),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+I-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=I-1,e.strstart++,i&&(ie(e,!1),e.strm.avail_out===0))return X}else if(e.match_available){if(i=be._tr_tally(e,0,e.window[e.strstart-1]),i&&ie(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return X}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=be._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<I-1?e.strstart:I-1,t===gt?(ie(e,!0),e.strm.avail_out===0?Ft:fr):e.last_lit&&(ie(e,!1),e.strm.avail_out===0)?X:ui}s(cr,"deflate_slow");function fD(e,t){for(var r,i,n,a,o=e.window;;){if(e.lookahead<=dt){if(At(e),e.lookahead<=dt&&t===Tt)return X;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=I&&e.strstart>0&&(n=e.strstart-1,i=o[n],i===o[++n]&&i===o[++n]&&i===o[++n])){a=e.strstart+dt;do;while(i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&n<a);e.match_length=dt-(a-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=I?(r=be._tr_tally(e,1,e.match_length-I),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=be._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(ie(e,!1),e.strm.avail_out===0))return X}return e.insert=0,t===gt?(ie(e,!0),e.strm.avail_out===0?Ft:fr):e.last_lit&&(ie(e,!1),e.strm.avail_out===0)?X:ui}s(fD,"deflate_rle");function dD(e,t){for(var r;;){if(e.lookahead===0&&(At(e),e.lookahead===0)){if(t===Tt)return X;break}if(e.match_length=0,r=be._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(ie(e,!1),e.strm.avail_out===0))return X}return e.insert=0,t===gt?(ie(e,!0),e.strm.avail_out===0?Ft:fr):e.last_lit&&(ie(e,!1),e.strm.avail_out===0)?X:ui}s(dD,"deflate_huff");function je(e,t,r,i,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=n}s(je,"Config");var hr;hr=[new je(0,0,0,0,hD),new je(4,4,8,4,qs),new je(4,5,16,8,qs),new je(4,6,32,32,qs),new je(4,4,16,16,cr),new je(8,16,32,32,cr),new je(8,16,128,128,cr),new je(8,32,128,256,cr),new je(32,128,258,1024,cr),new je(32,258,258,4096,cr)];function pD(e){e.window_size=2*e.w_size,ft(e.head),e.max_lazy_match=hr[e.level].max_lazy,e.good_match=hr[e.level].good_length,e.nice_match=hr[e.level].nice_length,e.max_chain_length=hr[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=I-1,e.match_available=0,e.ins_h=0}s(pD,"lm_init");function gD(){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=vn,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new oe.Buf16(sD*2),this.dyn_dtree=new oe.Buf16((2*nD+1)*2),this.bl_tree=new oe.Buf16((2*aD+1)*2),ft(this.dyn_ltree),ft(this.dyn_dtree),ft(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new oe.Buf16(oD+1),this.heap=new oe.Buf16(2*js+1),ft(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new oe.Buf16(2*js+1),ft(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}s(gD,"DeflateState");function ah(e){var t;return!e||!e.state?pt(e,Ce):(e.total_in=e.total_out=0,e.data_type=X0,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?yn:Et,e.adler=t.wrap===2?0:1,t.last_flush=Tt,be._tr_init(t),ze)}s(ah,"deflateResetKeep");function sh(e){var t=ah(e);return t===ze&&pD(e.state),t}s(sh,"deflateReset");function mD(e,t){return!e||!e.state||e.state.wrap!==2?Ce:(e.state.gzhead=t,ze)}s(mD,"deflateSetHeader");function oh(e,t,r,i,n,a){if(!e)return Ce;var o=1;if(t===Z0&&(t=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),n<1||n>Q0||r!==vn||i<8||i>15||t<0||t>9||a<0||a>J0)return pt(e,Ce);i===8&&(i=9);var l=new gD;return e.state=l,l.strm=e,l.wrap=o,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=n+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+I-1)/I),l.window=new oe.Buf8(l.w_size*2),l.head=new oe.Buf16(l.hash_size),l.prev=new oe.Buf16(l.w_size),l.lit_bufsize=1<<n+6,l.pending_buf_size=l.lit_bufsize*4,l.pending_buf=new oe.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=r,sh(e)}s(oh,"deflateInit2");function DD(e,t){return oh(e,t,vn,eD,tD,Y0)}s(DD,"deflateInit");function vD(e,t){var r,i,n,a;if(!e||!e.state||t>eh||t<0)return e?pt(e,Ce):Ce;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===li&&t!==gt)return pt(e,e.avail_out===0?Ws:Ce);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===yn)if(i.wrap===2)e.adler=0,L(i,31),L(i,139),L(i,8),i.gzhead?(L(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)),L(i,i.gzhead.time&255),L(i,i.gzhead.time>>8&255),L(i,i.gzhead.time>>16&255),L(i,i.gzhead.time>>24&255),L(i,i.level===9?2:i.strategy>=pn||i.level<2?4:0),L(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(L(i,i.gzhead.extra.length&255),L(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=ct(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=zs):(L(i,0),L(i,0),L(i,0),L(i,0),L(i,0),L(i,i.level===9?2:i.strategy>=pn||i.level<2?4:0),L(i,uD),i.status=Et);else{var o=vn+(i.w_bits-8<<4)<<8,l=-1;i.strategy>=pn||i.level<2?l=0:i.level<6?l=1:i.level===6?l=2:l=3,o|=l<<6,i.strstart!==0&&(o|=lD),o+=31-o%31,i.status=Et,oi(i,o),i.strstart!==0&&(oi(i,e.adler>>>16),oi(i,e.adler&65535)),e.adler=1}if(i.status===zs)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=ct(e.adler,i.pending_buf,i.pending-n,n)),ht(e),n=i.pending,i.pending===i.pending_buf_size));)L(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(e.adler=ct(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=gn)}else i.status=gn;if(i.status===gn)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=ct(e.adler,i.pending_buf,i.pending-n,n)),ht(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,L(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=ct(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.gzindex=0,i.status=mn)}else i.status=mn;if(i.status===mn)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=ct(e.adler,i.pending_buf,i.pending-n,n)),ht(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,L(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=ct(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.status=Dn)}else i.status=Dn;if(i.status===Dn&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ht(e),i.pending+2<=i.pending_buf_size&&(L(i,e.adler&255),L(i,e.adler>>8&255),e.adler=0,i.status=Et)):i.status=Et),i.pending!==0){if(ht(e),e.avail_out===0)return i.last_flush=-1,ze}else if(e.avail_in===0&&rh(t)<=rh(r)&&t!==gt)return pt(e,Ws);if(i.status===li&&e.avail_in!==0)return pt(e,Ws);if(e.avail_in!==0||i.lookahead!==0||t!==Tt&&i.status!==li){var h=i.strategy===pn?dD(i,t):i.strategy===K0?fD(i,t):hr[i.level].func(i,t);if((h===Ft||h===fr)&&(i.status=li),h===X||h===Ft)return e.avail_out===0&&(i.last_flush=-1),ze;if(h===ui&&(t===H0?be._tr_align(i):t!==eh&&(be._tr_stored_block(i,0,0,!1),t===G0&&(ft(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),ht(e),e.avail_out===0))return i.last_flush=-1,ze}return t!==gt?ze:i.wrap<=0?th:(i.wrap===2?(L(i,e.adler&255),L(i,e.adler>>8&255),L(i,e.adler>>16&255),L(i,e.adler>>24&255),L(i,e.total_in&255),L(i,e.total_in>>8&255),L(i,e.total_in>>16&255),L(i,e.total_in>>24&255)):(oi(i,e.adler>>>16),oi(i,e.adler&65535)),ht(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?ze:th)}s(vD,"deflate");function yD(e){var t;return!e||!e.state?Ce:(t=e.state.status,t!==yn&&t!==zs&&t!==gn&&t!==mn&&t!==Dn&&t!==Et&&t!==li?pt(e,Ce):(e.state=null,t===Et?pt(e,$0):ze))}s(yD,"deflateEnd");function wD(e,t){var r=t.length,i,n,a,o,l,h,u,c;if(!e||!e.state||(i=e.state,o=i.wrap,o===2||o===1&&i.status!==yn||i.lookahead))return Ce;for(o===1&&(e.adler=ih(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(o===0&&(ft(i.head),i.strstart=0,i.block_start=0,i.insert=0),c=new oe.Buf8(i.w_size),oe.arraySet(c,t,r-i.w_size,i.w_size,0),t=c,r=i.w_size),l=e.avail_in,h=e.next_in,u=e.input,e.avail_in=r,e.next_in=0,e.input=t,At(i);i.lookahead>=I;){n=i.strstart,a=i.lookahead-(I-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+I-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=I-1,At(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=I-1,i.match_available=0,e.next_in=h,e.input=u,e.avail_in=l,i.wrap=o,ze}s(wD,"deflateSetDictionary");He.deflateInit=DD;He.deflateInit2=oh;He.deflateReset=sh;He.deflateResetKeep=ah;He.deflateSetHeader=mD;He.deflate=vD;He.deflateEnd=yD;He.deflateSetDictionary=wD;He.deflateInfo="pako deflate (from Nodeca project)"});var Hs=m(dr=>{"use strict";var wn=et(),uh=!0,ch=!0;try{String.fromCharCode.apply(null,[0])}catch{uh=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{ch=!1}var ci=new wn.Buf8(256);for(rt=0;rt<256;rt++)ci[rt]=rt>=252?6:rt>=248?5:rt>=240?4:rt>=224?3:rt>=192?2:1;var rt;ci[254]=ci[254]=1;dr.string2buf=function(e){var t,r,i,n,a,o=e.length,l=0;for(n=0;n<o;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<o&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=new wn.Buf8(l),a=0,n=0;a<l;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<o&&(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 hh(e,t){if(t<65534&&(e.subarray&&ch||!e.subarray&&uh))return String.fromCharCode.apply(null,wn.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}s(hh,"buf2binstring");dr.buf2binstring=function(e){return hh(e,e.length)};dr.binstring2buf=function(e){for(var t=new wn.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};dr.buf2string=function(e,t){var r,i,n,a,o=t||e.length,l=new Array(o*2);for(i=0,r=0;r<o;){if(n=e[r++],n<128){l[i++]=n;continue}if(a=ci[n],a>4){l[i++]=65533,r+=a-1;continue}for(n&=a===2?31:a===3?15:7;a>1&&r<o;)n=n<<6|e[r++]&63,a--;if(a>1){l[i++]=65533;continue}n<65536?l[i++]=n:(n-=65536,l[i++]=55296|n>>10&1023,l[i++]=56320|n&1023)}return hh(l,i)};dr.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+ci[e[r]]>t?r:t}});var Gs=m((GC,fh)=>{"use strict";function bD(){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}s(bD,"ZStream");fh.exports=bD});var mh=m(di=>{"use strict";var hi=lh(),fi=et(),Zs=Hs(),Vs=dn(),CD=Gs(),gh=Object.prototype.toString,_D=0,$s=4,pr=0,dh=1,ph=2,kD=-1,xD=0,SD=8;function Rt(e){if(!(this instanceof Rt))return new Rt(e);this.options=fi.assign({level:kD,method:SD,chunkSize:16384,windowBits:15,memLevel:8,strategy:xD,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 CD,this.strm.avail_out=0;var r=hi.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==pr)throw new Error(Vs[r]);if(t.header&&hi.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=Zs.string2buf(t.dictionary):gh.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=hi.deflateSetDictionary(this.strm,i),r!==pr)throw new Error(Vs[r]);this._dict_set=!0}}s(Rt,"Deflate");Rt.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?$s:_D,typeof e=="string"?r.input=Zs.string2buf(e):gh.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 fi.Buf8(i),r.next_out=0,r.avail_out=i),n=hi.deflate(r,a),n!==dh&&n!==pr)return this.onEnd(n),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(a===$s||a===ph))&&(this.options.to==="string"?this.onData(Zs.buf2binstring(fi.shrinkBuf(r.output,r.next_out))):this.onData(fi.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&n!==dh);return a===$s?(n=hi.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===pr):(a===ph&&(this.onEnd(pr),r.avail_out=0),!0)};Rt.prototype.onData=function(e){this.chunks.push(e)};Rt.prototype.onEnd=function(e){e===pr&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=fi.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Ks(e,t){var r=new Rt(t);if(r.push(e,!0),r.err)throw r.msg||Vs[r.err];return r.result}s(Ks,"deflate");function ED(e,t){return t=t||{},t.raw=!0,Ks(e,t)}s(ED,"deflateRaw");function FD(e,t){return t=t||{},t.gzip=!0,Ks(e,t)}s(FD,"gzip");di.Deflate=Rt;di.deflate=Ks;di.deflateRaw=ED;di.gzip=FD});var vh=m((KC,Dh)=>{"use strict";var bn=30,AD=12;Dh.exports=s(function(t,r){var i,n,a,o,l,h,u,c,f,d,p,b,v,C,y,D,_,w,g,S,F,k,A,U,E;i=t.state,n=t.next_in,U=t.input,a=n+(t.avail_in-5),o=t.next_out,E=t.output,l=o-(r-t.avail_out),h=o+(t.avail_out-257),u=i.dmax,c=i.wsize,f=i.whave,d=i.wnext,p=i.window,b=i.hold,v=i.bits,C=i.lencode,y=i.distcode,D=(1<<i.lenbits)-1,_=(1<<i.distbits)-1;e:do{v<15&&(b+=U[n++]<<v,v+=8,b+=U[n++]<<v,v+=8),w=C[b&D];t:for(;;){if(g=w>>>24,b>>>=g,v-=g,g=w>>>16&255,g===0)E[o++]=w&65535;else if(g&16){S=w&65535,g&=15,g&&(v<g&&(b+=U[n++]<<v,v+=8),S+=b&(1<<g)-1,b>>>=g,v-=g),v<15&&(b+=U[n++]<<v,v+=8,b+=U[n++]<<v,v+=8),w=y[b&_];r:for(;;){if(g=w>>>24,b>>>=g,v-=g,g=w>>>16&255,g&16){if(F=w&65535,g&=15,v<g&&(b+=U[n++]<<v,v+=8,v<g&&(b+=U[n++]<<v,v+=8)),F+=b&(1<<g)-1,F>u){t.msg="invalid distance too far back",i.mode=bn;break e}if(b>>>=g,v-=g,g=o-l,F>g){if(g=F-g,g>f&&i.sane){t.msg="invalid distance too far back",i.mode=bn;break e}if(k=0,A=p,d===0){if(k+=c-g,g<S){S-=g;do E[o++]=p[k++];while(--g);k=o-F,A=E}}else if(d<g){if(k+=c+d-g,g-=d,g<S){S-=g;do E[o++]=p[k++];while(--g);if(k=0,d<S){g=d,S-=g;do E[o++]=p[k++];while(--g);k=o-F,A=E}}}else if(k+=d-g,g<S){S-=g;do E[o++]=p[k++];while(--g);k=o-F,A=E}for(;S>2;)E[o++]=A[k++],E[o++]=A[k++],E[o++]=A[k++],S-=3;S&&(E[o++]=A[k++],S>1&&(E[o++]=A[k++]))}else{k=o-F;do E[o++]=E[k++],E[o++]=E[k++],E[o++]=E[k++],S-=3;while(S>2);S&&(E[o++]=E[k++],S>1&&(E[o++]=E[k++]))}}else if(g&64){t.msg="invalid distance code",i.mode=bn;break e}else{w=y[(w&65535)+(b&(1<<g)-1)];continue r}break}}else if(g&64)if(g&32){i.mode=AD;break e}else{t.msg="invalid literal/length code",i.mode=bn;break e}else{w=C[(w&65535)+(b&(1<<g)-1)];continue t}break}}while(n<a&&o<h);S=v>>3,n-=S,v-=S<<3,b&=(1<<v)-1,t.next_in=n,t.next_out=o,t.avail_in=n<a?5+(a-n):5-(n-a),t.avail_out=o<h?257+(h-o):257-(o-h),i.hold=b,i.bits=v},"inflate_fast")});var xh=m((YC,kh)=>{"use strict";var yh=et(),gr=15,wh=852,bh=592,Ch=0,Js=1,_h=2,TD=[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],RD=[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],PD=[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],ID=[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];kh.exports=s(function(t,r,i,n,a,o,l,h){var u=h.bits,c=0,f=0,d=0,p=0,b=0,v=0,C=0,y=0,D=0,_=0,w,g,S,F,k,A=null,U=0,E,de=new yh.Buf16(gr+1),Zt=new yh.Buf16(gr+1),Ui=null,zl=0,Hl,Ni,Wi;for(c=0;c<=gr;c++)de[c]=0;for(f=0;f<n;f++)de[r[i+f]]++;for(b=u,p=gr;p>=1&&de[p]===0;p--);if(b>p&&(b=p),p===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,h.bits=1,0;for(d=1;d<p&&de[d]===0;d++);for(b<d&&(b=d),y=1,c=1;c<=gr;c++)if(y<<=1,y-=de[c],y<0)return-1;if(y>0&&(t===Ch||p!==1))return-1;for(Zt[1]=0,c=1;c<gr;c++)Zt[c+1]=Zt[c]+de[c];for(f=0;f<n;f++)r[i+f]!==0&&(l[Zt[r[i+f]]++]=f);if(t===Ch?(A=Ui=l,E=19):t===Js?(A=TD,U-=257,Ui=RD,zl-=257,E=256):(A=PD,Ui=ID,E=-1),_=0,f=0,c=d,k=o,v=b,C=0,S=-1,D=1<<b,F=D-1,t===Js&&D>wh||t===_h&&D>bh)return 1;for(;;){Hl=c-C,l[f]<E?(Ni=0,Wi=l[f]):l[f]>E?(Ni=Ui[zl+l[f]],Wi=A[U+l[f]]):(Ni=96,Wi=0),w=1<<c-C,g=1<<v,d=g;do g-=w,a[k+(_>>C)+g]=Hl<<24|Ni<<16|Wi|0;while(g!==0);for(w=1<<c-1;_&w;)w>>=1;if(w!==0?(_&=w-1,_+=w):_=0,f++,--de[c]===0){if(c===p)break;c=r[i+l[f]]}if(c>b&&(_&F)!==S){for(C===0&&(C=b),k+=d,v=c-C,y=1<<v;v+C<p&&(y-=de[v+C],!(y<=0));)v++,y<<=1;if(D+=1<<v,t===Js&&D>wh||t===_h&&D>bh)return 1;S=_&F,a[S]=b<<24|v<<16|k-o|0}}return _!==0&&(a[k+_]=c-C<<24|64<<16|0),h.bits=b,0},"inflate_table")});var of=m(Re=>{"use strict";var De=et(),ro=Us(),Ge=Ns(),MD=vh(),pi=xh(),LD=0,Yh=1,Xh=2,Sh=4,BD=5,Cn=6,Pt=0,OD=1,UD=2,_e=-2,Qh=-3,io=-4,ND=-5,Eh=8,ef=1,Fh=2,Ah=3,Th=4,Rh=5,Ph=6,Ih=7,Mh=8,Lh=9,Bh=10,xn=11,it=12,Ys=13,Oh=14,Xs=15,Uh=16,Nh=17,Wh=18,qh=19,_n=20,kn=21,jh=22,zh=23,Hh=24,Gh=25,$h=26,Qs=27,Zh=28,Vh=29,z=30,no=31,WD=32,qD=852,jD=592,zD=15,HD=zD;function Kh(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}s(Kh,"zswap32");function GD(){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 De.Buf16(320),this.work=new De.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}s(GD,"InflateState");function tf(e){var t;return!e||!e.state?_e:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=ef,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new De.Buf32(qD),t.distcode=t.distdyn=new De.Buf32(jD),t.sane=1,t.back=-1,Pt)}s(tf,"inflateResetKeep");function rf(e){var t;return!e||!e.state?_e:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,tf(e))}s(rf,"inflateReset");function nf(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))?_e:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,rf(e))}s(nf,"inflateReset2");function af(e,t){var r,i;return e?(i=new GD,e.state=i,i.window=null,r=nf(e,t),r!==Pt&&(e.state=null),r):_e}s(af,"inflateInit2");function $D(e){return af(e,HD)}s($D,"inflateInit");var Jh=!0,eo,to;function ZD(e){if(Jh){var t;for(eo=new De.Buf32(512),to=new De.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(pi(Yh,e.lens,0,288,eo,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;pi(Xh,e.lens,0,32,to,0,e.work,{bits:5}),Jh=!1}e.lencode=eo,e.lenbits=9,e.distcode=to,e.distbits=5}s(ZD,"fixedtables");function sf(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 De.Buf8(a.wsize)),i>=a.wsize?(De.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),De.arraySet(a.window,t,r-i,n,a.wnext),i-=n,i?(De.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}s(sf,"updatewindow");function VD(e,t){var r,i,n,a,o,l,h,u,c,f,d,p,b,v,C=0,y,D,_,w,g,S,F,k,A=new De.Buf8(4),U,E,de=[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 _e;r=e.state,r.mode===it&&(r.mode=Ys),o=e.next_out,n=e.output,h=e.avail_out,a=e.next_in,i=e.input,l=e.avail_in,u=r.hold,c=r.bits,f=l,d=h,k=Pt;e:for(;;)switch(r.mode){case ef:if(r.wrap===0){r.mode=Ys;break}for(;c<16;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}if(r.wrap&2&&u===35615){r.check=0,A[0]=u&255,A[1]=u>>>8&255,r.check=Ge(r.check,A,2,0),u=0,c=0,r.mode=Fh;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",r.mode=z;break}if((u&15)!==Eh){e.msg="unknown compression method",r.mode=z;break}if(u>>>=4,c-=4,F=(u&15)+8,r.wbits===0)r.wbits=F;else if(F>r.wbits){e.msg="invalid window size",r.mode=z;break}r.dmax=1<<F,e.adler=r.check=1,r.mode=u&512?Bh:it,u=0,c=0;break;case Fh:for(;c<16;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}if(r.flags=u,(r.flags&255)!==Eh){e.msg="unknown compression method",r.mode=z;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=z;break}r.head&&(r.head.text=u>>8&1),r.flags&512&&(A[0]=u&255,A[1]=u>>>8&255,r.check=Ge(r.check,A,2,0)),u=0,c=0,r.mode=Ah;case Ah:for(;c<32;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}r.head&&(r.head.time=u),r.flags&512&&(A[0]=u&255,A[1]=u>>>8&255,A[2]=u>>>16&255,A[3]=u>>>24&255,r.check=Ge(r.check,A,4,0)),u=0,c=0,r.mode=Th;case Th:for(;c<16;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}r.head&&(r.head.xflags=u&255,r.head.os=u>>8),r.flags&512&&(A[0]=u&255,A[1]=u>>>8&255,r.check=Ge(r.check,A,2,0)),u=0,c=0,r.mode=Rh;case Rh:if(r.flags&1024){for(;c<16;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}r.length=u,r.head&&(r.head.extra_len=u),r.flags&512&&(A[0]=u&255,A[1]=u>>>8&255,r.check=Ge(r.check,A,2,0)),u=0,c=0}else r.head&&(r.head.extra=null);r.mode=Ph;case Ph:if(r.flags&1024&&(p=r.length,p>l&&(p=l),p&&(r.head&&(F=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),De.arraySet(r.head.extra,i,a,p,F)),r.flags&512&&(r.check=Ge(r.check,i,p,a)),l-=p,a+=p,r.length-=p),r.length))break e;r.length=0,r.mode=Ih;case Ih:if(r.flags&2048){if(l===0)break e;p=0;do F=i[a+p++],r.head&&F&&r.length<65536&&(r.head.name+=String.fromCharCode(F));while(F&&p<l);if(r.flags&512&&(r.check=Ge(r.check,i,p,a)),l-=p,a+=p,F)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Mh;case Mh:if(r.flags&4096){if(l===0)break e;p=0;do F=i[a+p++],r.head&&F&&r.length<65536&&(r.head.comment+=String.fromCharCode(F));while(F&&p<l);if(r.flags&512&&(r.check=Ge(r.check,i,p,a)),l-=p,a+=p,F)break e}else r.head&&(r.head.comment=null);r.mode=Lh;case Lh:if(r.flags&512){for(;c<16;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}if(u!==(r.check&65535)){e.msg="header crc mismatch",r.mode=z;break}u=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=it;break;case Bh:for(;c<32;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}e.adler=r.check=Kh(u),u=0,c=0,r.mode=xn;case xn:if(r.havedict===0)return e.next_out=o,e.avail_out=h,e.next_in=a,e.avail_in=l,r.hold=u,r.bits=c,UD;e.adler=r.check=1,r.mode=it;case it:if(t===BD||t===Cn)break e;case Ys:if(r.last){u>>>=c&7,c-=c&7,r.mode=Qs;break}for(;c<3;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}switch(r.last=u&1,u>>>=1,c-=1,u&3){case 0:r.mode=Oh;break;case 1:if(ZD(r),r.mode=_n,t===Cn){u>>>=2,c-=2;break e}break;case 2:r.mode=Nh;break;case 3:e.msg="invalid block type",r.mode=z}u>>>=2,c-=2;break;case Oh:for(u>>>=c&7,c-=c&7;c<32;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}if((u&65535)!==(u>>>16^65535)){e.msg="invalid stored block lengths",r.mode=z;break}if(r.length=u&65535,u=0,c=0,r.mode=Xs,t===Cn)break e;case Xs:r.mode=Uh;case Uh:if(p=r.length,p){if(p>l&&(p=l),p>h&&(p=h),p===0)break e;De.arraySet(n,i,a,p,o),l-=p,a+=p,h-=p,o+=p,r.length-=p;break}r.mode=it;break;case Nh:for(;c<14;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}if(r.nlen=(u&31)+257,u>>>=5,c-=5,r.ndist=(u&31)+1,u>>>=5,c-=5,r.ncode=(u&15)+4,u>>>=4,c-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=z;break}r.have=0,r.mode=Wh;case Wh:for(;r.have<r.ncode;){for(;c<3;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}r.lens[de[r.have++]]=u&7,u>>>=3,c-=3}for(;r.have<19;)r.lens[de[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,U={bits:r.lenbits},k=pi(LD,r.lens,0,19,r.lencode,0,r.work,U),r.lenbits=U.bits,k){e.msg="invalid code lengths set",r.mode=z;break}r.have=0,r.mode=qh;case qh:for(;r.have<r.nlen+r.ndist;){for(;C=r.lencode[u&(1<<r.lenbits)-1],y=C>>>24,D=C>>>16&255,_=C&65535,!(y<=c);){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}if(_<16)u>>>=y,c-=y,r.lens[r.have++]=_;else{if(_===16){for(E=y+2;c<E;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}if(u>>>=y,c-=y,r.have===0){e.msg="invalid bit length repeat",r.mode=z;break}F=r.lens[r.have-1],p=3+(u&3),u>>>=2,c-=2}else if(_===17){for(E=y+3;c<E;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}u>>>=y,c-=y,F=0,p=3+(u&7),u>>>=3,c-=3}else{for(E=y+7;c<E;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}u>>>=y,c-=y,F=0,p=11+(u&127),u>>>=7,c-=7}if(r.have+p>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=z;break}for(;p--;)r.lens[r.have++]=F}}if(r.mode===z)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=z;break}if(r.lenbits=9,U={bits:r.lenbits},k=pi(Yh,r.lens,0,r.nlen,r.lencode,0,r.work,U),r.lenbits=U.bits,k){e.msg="invalid literal/lengths set",r.mode=z;break}if(r.distbits=6,r.distcode=r.distdyn,U={bits:r.distbits},k=pi(Xh,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,U),r.distbits=U.bits,k){e.msg="invalid distances set",r.mode=z;break}if(r.mode=_n,t===Cn)break e;case _n:r.mode=kn;case kn:if(l>=6&&h>=258){e.next_out=o,e.avail_out=h,e.next_in=a,e.avail_in=l,r.hold=u,r.bits=c,MD(e,d),o=e.next_out,n=e.output,h=e.avail_out,a=e.next_in,i=e.input,l=e.avail_in,u=r.hold,c=r.bits,r.mode===it&&(r.back=-1);break}for(r.back=0;C=r.lencode[u&(1<<r.lenbits)-1],y=C>>>24,D=C>>>16&255,_=C&65535,!(y<=c);){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}if(D&&!(D&240)){for(w=y,g=D,S=_;C=r.lencode[S+((u&(1<<w+g)-1)>>w)],y=C>>>24,D=C>>>16&255,_=C&65535,!(w+y<=c);){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}u>>>=w,c-=w,r.back+=w}if(u>>>=y,c-=y,r.back+=y,r.length=_,D===0){r.mode=$h;break}if(D&32){r.back=-1,r.mode=it;break}if(D&64){e.msg="invalid literal/length code",r.mode=z;break}r.extra=D&15,r.mode=jh;case jh:if(r.extra){for(E=r.extra;c<E;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=zh;case zh:for(;C=r.distcode[u&(1<<r.distbits)-1],y=C>>>24,D=C>>>16&255,_=C&65535,!(y<=c);){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}if(!(D&240)){for(w=y,g=D,S=_;C=r.distcode[S+((u&(1<<w+g)-1)>>w)],y=C>>>24,D=C>>>16&255,_=C&65535,!(w+y<=c);){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}u>>>=w,c-=w,r.back+=w}if(u>>>=y,c-=y,r.back+=y,D&64){e.msg="invalid distance code",r.mode=z;break}r.offset=_,r.extra=D&15,r.mode=Hh;case Hh:if(r.extra){for(E=r.extra;c<E;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=z;break}r.mode=Gh;case Gh:if(h===0)break e;if(p=d-h,r.offset>p){if(p=r.offset-p,p>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=z;break}p>r.wnext?(p-=r.wnext,b=r.wsize-p):b=r.wnext-p,p>r.length&&(p=r.length),v=r.window}else v=n,b=o-r.offset,p=r.length;p>h&&(p=h),h-=p,r.length-=p;do n[o++]=v[b++];while(--p);r.length===0&&(r.mode=kn);break;case $h:if(h===0)break e;n[o++]=r.length,h--,r.mode=kn;break;case Qs:if(r.wrap){for(;c<32;){if(l===0)break e;l--,u|=i[a++]<<c,c+=8}if(d-=h,e.total_out+=d,r.total+=d,d&&(e.adler=r.check=r.flags?Ge(r.check,n,d,o-d):ro(r.check,n,d,o-d)),d=h,(r.flags?u:Kh(u))!==r.check){e.msg="incorrect data check",r.mode=z;break}u=0,c=0}r.mode=Zh;case Zh:if(r.wrap&&r.flags){for(;c<32;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}if(u!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=z;break}u=0,c=0}r.mode=Vh;case Vh:k=OD;break e;case z:k=Qh;break e;case no:return io;case WD:default:return _e}return e.next_out=o,e.avail_out=h,e.next_in=a,e.avail_in=l,r.hold=u,r.bits=c,(r.wsize||d!==e.avail_out&&r.mode<z&&(r.mode<Qs||t!==Sh))&&sf(e,e.output,e.next_out,d-e.avail_out)?(r.mode=no,io):(f-=e.avail_in,d-=e.avail_out,e.total_in+=f,e.total_out+=d,r.total+=d,r.wrap&&d&&(e.adler=r.check=r.flags?Ge(r.check,n,d,e.next_out-d):ro(r.check,n,d,e.next_out-d)),e.data_type=r.bits+(r.last?64:0)+(r.mode===it?128:0)+(r.mode===_n||r.mode===Xs?256:0),(f===0&&d===0||t===Sh)&&k===Pt&&(k=ND),k)}s(VD,"inflate");function KD(e){if(!e||!e.state)return _e;var t=e.state;return t.window&&(t.window=null),e.state=null,Pt}s(KD,"inflateEnd");function JD(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?_e:(r.head=t,t.done=!1,Pt)}s(JD,"inflateGetHeader");function YD(e,t){var r=t.length,i,n,a;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==xn)?_e:i.mode===xn&&(n=1,n=ro(n,t,r,0),n!==i.check)?Qh:(a=sf(e,t,r,r),a?(i.mode=no,io):(i.havedict=1,Pt))}s(YD,"inflateSetDictionary");Re.inflateReset=rf;Re.inflateReset2=nf;Re.inflateResetKeep=tf;Re.inflateInit=$D;Re.inflateInit2=af;Re.inflate=VD;Re.inflateEnd=KD;Re.inflateGetHeader=JD;Re.inflateSetDictionary=YD;Re.inflateInfo="pako inflate (from Nodeca project)"});var ao=m((t_,lf)=>{"use strict";lf.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 cf=m((r_,uf)=>{"use strict";function XD(){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}s(XD,"GZheader");uf.exports=XD});var ff=m(mi=>{"use strict";var mr=of(),gi=et(),Sn=Hs(),Z=ao(),so=dn(),QD=Gs(),ev=cf(),hf=Object.prototype.toString;function It(e){if(!(this instanceof It))return new It(e);this.options=gi.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new QD,this.strm.avail_out=0;var r=mr.inflateInit2(this.strm,t.windowBits);if(r!==Z.Z_OK)throw new Error(so[r]);if(this.header=new ev,mr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Sn.string2buf(t.dictionary):hf.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=mr.inflateSetDictionary(this.strm,t.dictionary),r!==Z.Z_OK)))throw new Error(so[r])}s(It,"Inflate");It.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,n=this.options.dictionary,a,o,l,h,u,c=!1;if(this.ended)return!1;o=t===~~t?t:t===!0?Z.Z_FINISH:Z.Z_NO_FLUSH,typeof e=="string"?r.input=Sn.binstring2buf(e):hf.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 gi.Buf8(i),r.next_out=0,r.avail_out=i),a=mr.inflate(r,Z.Z_NO_FLUSH),a===Z.Z_NEED_DICT&&n&&(a=mr.inflateSetDictionary(this.strm,n)),a===Z.Z_BUF_ERROR&&c===!0&&(a=Z.Z_OK,c=!1),a!==Z.Z_STREAM_END&&a!==Z.Z_OK)return this.onEnd(a),this.ended=!0,!1;r.next_out&&(r.avail_out===0||a===Z.Z_STREAM_END||r.avail_in===0&&(o===Z.Z_FINISH||o===Z.Z_SYNC_FLUSH))&&(this.options.to==="string"?(l=Sn.utf8border(r.output,r.next_out),h=r.next_out-l,u=Sn.buf2string(r.output,l),r.next_out=h,r.avail_out=i-h,h&&gi.arraySet(r.output,r.output,l,h,0),this.onData(u)):this.onData(gi.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(c=!0)}while((r.avail_in>0||r.avail_out===0)&&a!==Z.Z_STREAM_END);return a===Z.Z_STREAM_END&&(o=Z.Z_FINISH),o===Z.Z_FINISH?(a=mr.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Z.Z_OK):(o===Z.Z_SYNC_FLUSH&&(this.onEnd(Z.Z_OK),r.avail_out=0),!0)};It.prototype.onData=function(e){this.chunks.push(e)};It.prototype.onEnd=function(e){e===Z.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=gi.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function oo(e,t){var r=new It(t);if(r.push(e,!0),r.err)throw r.msg||so[r.err];return r.result}s(oo,"inflate");function tv(e,t){return t=t||{},t.raw=!0,oo(e,t)}s(tv,"inflateRaw");mi.Inflate=It;mi.inflate=oo;mi.inflateRaw=tv;mi.ungzip=oo});var gf=m((s_,pf)=>{"use strict";var rv=et().assign,iv=mh(),nv=ff(),av=ao(),df={};rv(df,iv,nv,av);pf.exports=df});var Df=m(Fn=>{"use strict";var sv=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",ov=gf(),mf=H(),En=me(),lv=sv?"uint8array":"array";Fn.magic="\b\0";function Mt(e,t){En.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}s(Mt,"FlateWorker");mf.inherits(Mt,En);Mt.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(mf.transformTo(lv,e.data),!1)};Mt.prototype.flush=function(){En.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};Mt.prototype.cleanUp=function(){En.prototype.cleanUp.call(this),this._pako=null};Mt.prototype._createPako=function(){this._pako=new ov[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};Fn.compressWorker=function(e){return new Mt("Deflate",e)};Fn.uncompressWorker=function(){return new Mt("Inflate",{})}});var uo=m(lo=>{"use strict";var vf=me();lo.STORE={magic:"\0\0",compressWorker:s(function(){return new vf("STORE compression")},"compressWorker"),uncompressWorker:s(function(){return new vf("STORE decompression")},"uncompressWorker")};lo.DEFLATE=Df()});var co=m(Lt=>{"use strict";Lt.LOCAL_FILE_HEADER="PK";Lt.CENTRAL_FILE_HEADER="PK";Lt.CENTRAL_DIRECTORY_END="PK";Lt.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";Lt.ZIP64_CENTRAL_DIRECTORY_END="PK";Lt.DATA_DESCRIPTOR="PK\x07\b"});var Cf=m((f_,bf)=>{"use strict";var Dr=H(),vr=me(),ho=ar(),yf=ln(),An=co(),q=s(function(e,t){var r="",i;for(i=0;i<t;i++)r+=String.fromCharCode(e&255),e=e>>>8;return r},"decToHex"),uv=s(function(e,t){var r=e;return e||(r=t?16893:33204),(r&65535)<<16},"generateUnixExternalFileAttr"),cv=s(function(e){return(e||0)&63},"generateDosExternalFileAttr"),wf=s(function(e,t,r,i,n,a){var o=e.file,l=e.compression,h=a!==ho.utf8encode,u=Dr.transformTo("string",a(o.name)),c=Dr.transformTo("string",ho.utf8encode(o.name)),f=o.comment,d=Dr.transformTo("string",a(f)),p=Dr.transformTo("string",ho.utf8encode(f)),b=c.length!==o.name.length,v=p.length!==f.length,C,y,D="",_="",w="",g=o.dir,S=o.date,F={crc32:0,compressedSize:0,uncompressedSize:0};(!t||r)&&(F.crc32=e.crc32,F.compressedSize=e.compressedSize,F.uncompressedSize=e.uncompressedSize);var k=0;t&&(k|=8),!h&&(b||v)&&(k|=2048);var A=0,U=0;g&&(A|=16),n==="UNIX"?(U=798,A|=uv(o.unixPermissions,g)):(U=20,A|=cv(o.dosPermissions,g)),C=S.getUTCHours(),C=C<<6,C=C|S.getUTCMinutes(),C=C<<5,C=C|S.getUTCSeconds()/2,y=S.getUTCFullYear()-1980,y=y<<4,y=y|S.getUTCMonth()+1,y=y<<5,y=y|S.getUTCDate(),b&&(_=q(1,1)+q(yf(u),4)+c,D+="up"+q(_.length,2)+_),v&&(w=q(1,1)+q(yf(d),4)+p,D+="uc"+q(w.length,2)+w);var E="";E+=`
2
+ \0`,E+=q(k,2),E+=l.magic,E+=q(C,2),E+=q(y,2),E+=q(F.crc32,4),E+=q(F.compressedSize,4),E+=q(F.uncompressedSize,4),E+=q(u.length,2),E+=q(D.length,2);var de=An.LOCAL_FILE_HEADER+E+u+D,Zt=An.CENTRAL_FILE_HEADER+q(U,2)+E+q(d.length,2)+"\0\0\0\0"+q(A,4)+q(i,4)+u+D+d;return{fileRecord:de,dirRecord:Zt}},"generateZipParts"),hv=s(function(e,t,r,i,n){var a="",o=Dr.transformTo("string",n(i));return a=An.CENTRAL_DIRECTORY_END+"\0\0\0\0"+q(e,2)+q(e,2)+q(t,4)+q(r,4)+q(o.length,2)+o,a},"generateCentralDirectoryEnd"),fv=s(function(e){var t="";return t=An.DATA_DESCRIPTOR+q(e.crc32,4)+q(e.compressedSize,4)+q(e.uncompressedSize,4),t},"generateDataDescriptors");function Pe(e,t,r,i){vr.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=[]}s(Pe,"ZipFileWorker");Dr.inherits(Pe,vr);Pe.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,vr.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-i-1))/r:100}}))};Pe.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=wf(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0};Pe.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=wf(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:fv(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};Pe.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=hv(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})};Pe.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()};Pe.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};Pe.prototype.resume=function(){if(!vr.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};Pe.prototype.error=function(e){var t=this._sources;if(!vr.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch{}return!0};Pe.prototype.lock=function(){vr.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};bf.exports=Pe});var kf=m(_f=>{"use strict";var dv=uo(),pv=Cf(),gv=s(function(e,t){var r=e||t,i=dv[r];if(!i)throw new Error(r+" is not a valid compression method !");return i},"getCompression");_f.generateWorker=function(e,t,r){var i=new pv(t.streamFiles,r,t.platform,t.encodeFileName),n=0;try{e.forEach(function(a,o){n++;var l=gv(o.options.compression,t.compression),h=o.options.compressionOptions||t.compressionOptions||{},u=o.dir,c=o.date;o._compressWorker(l,h).withStreamInfo("file",{name:a,dir:u,date:c,comment:o.comment||"",unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions}).pipe(i)}),i.entriesCount=n}catch(a){i.error(a)}return i}});var Sf=m((m_,xf)=>{"use strict";var mv=H(),Tn=me();function Di(e,t){Tn.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}s(Di,"NodejsStreamInputAdapter");mv.inherits(Di,Tn);Di.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()})};Di.prototype.pause=function(){return Tn.prototype.pause.call(this)?(this._stream.pause(),!0):!1};Di.prototype.resume=function(){return Tn.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};xf.exports=Di});var Bf=m((v_,Lf)=>{"use strict";var Dv=ar(),vi=H(),Tf=me(),vv=ms(),Rf=Ds(),Ef=un(),yv=Ec(),wv=kf(),Ff=Zr(),bv=Sf(),Pf=s(function(e,t,r){var i=vi.getTypeOf(t),n,a=vi.extend(r||{},Rf);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=If(e)),a.createFolders&&(n=Cv(e))&&Mf.call(this,n,!0);var o=i==="string"&&a.binary===!1&&a.base64===!1;(!r||typeof r.binary>"u")&&(a.binary=!o);var l=t instanceof Ef&&t.uncompressedSize===0;(l||a.dir||!t||t.length===0)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE",i="string");var h=null;t instanceof Ef||t instanceof Tf?h=t:Ff.isNode&&Ff.isStream(t)?h=new bv(e,t):h=vi.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var u=new yv(e,h,a);this.files[e]=u},"fileAdd"),Cv=s(function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},"parentFolder"),If=s(function(e){return e.slice(-1)!=="/"&&(e+="/"),e},"forceTrailingSlash"),Mf=s(function(e,t){return t=typeof t<"u"?t:Rf.createFolders,e=If(e),this.files[e]||Pf.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},"folderAdd");function Af(e){return Object.prototype.toString.call(e)==="[object RegExp]"}s(Af,"isRegExp");var _v={load:s(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"load"),forEach:s(function(e){var t,r,i;for(t in this.files)i=this.files[t],r=t.slice(this.root.length,t.length),r&&t.slice(0,this.root.length)===this.root&&e(r,i)},"forEach"),filter:s(function(e){var t=[];return this.forEach(function(r,i){e(r,i)&&t.push(i)}),t},"filter"),file:s(function(e,t,r){if(arguments.length===1)if(Af(e)){var i=e;return this.filter(function(a,o){return!o.dir&&i.test(a)})}else{var n=this.files[this.root+e];return n&&!n.dir?n:null}else e=this.root+e,Pf.call(this,e,t,r);return this},"file"),folder:s(function(e){if(!e)return this;if(Af(e))return this.filter(function(n,a){return a.dir&&e.test(n)});var t=this.root+e,r=Mf.call(this,t),i=this.clone();return i.root=r.name,i},"folder"),remove:s(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},"remove"),generate:s(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"generate"),generateInternalStream:s(function(e){var t,r={};try{if(r=vi.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Dv.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.");vi.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=wv.generateWorker(this,r,i)}catch(n){t=new Tf("error"),t.error(n)}return new vv(t,r.type||"string",r.mimeType)},"generateInternalStream"),generateAsync:s(function(e,t){return this.generateInternalStream(e).accumulate(t)},"generateAsync"),generateNodeStream:s(function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)},"generateNodeStream")};Lf.exports=_v});var fo=m((w_,Uf)=>{"use strict";var kv=H();function Of(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}s(Of,"DataReader");Of.prototype={checkOffset:s(function(e){this.checkIndex(this.index+e)},"checkOffset"),checkIndex:s(function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},"checkIndex"),setIndex:s(function(e){this.checkIndex(e),this.index=e},"setIndex"),skip:s(function(e){this.setIndex(this.index+e)},"skip"),byteAt:s(function(){},"byteAt"),readInt:s(function(e){var t=0,r;for(this.checkOffset(e),r=this.index+e-1;r>=this.index;r--)t=(t<<8)+this.byteAt(r);return this.index+=e,t},"readInt"),readString:s(function(e){return kv.transformTo("string",this.readData(e))},"readString"),readData:s(function(){},"readData"),lastIndexOfSignature:s(function(){},"lastIndexOfSignature"),readAndCheckSignature:s(function(){},"readAndCheckSignature"),readDate:s(function(){var e=this.readInt(4);return new Date(Date.UTC((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1))},"readDate")};Uf.exports=Of});var po=m((C_,Wf)=>{"use strict";var Nf=fo(),xv=H();function yr(e){Nf.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}s(yr,"ArrayReader");xv.inherits(yr,Nf);yr.prototype.byteAt=function(e){return this.data[this.zero+e]};yr.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};yr.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]};yr.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};Wf.exports=yr});var zf=m((k_,jf)=>{"use strict";var qf=fo(),Sv=H();function wr(e){qf.call(this,e)}s(wr,"StringReader");Sv.inherits(wr,qf);wr.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};wr.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};wr.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};wr.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};jf.exports=wr});var mo=m((S_,Gf)=>{"use strict";var Hf=po(),Ev=H();function go(e){Hf.call(this,e)}s(go,"Uint8ArrayReader");Ev.inherits(go,Hf);go.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};Gf.exports=go});var Vf=m((F_,Zf)=>{"use strict";var $f=mo(),Fv=H();function Do(e){$f.call(this,e)}s(Do,"NodeBufferReader");Fv.inherits(Do,$f);Do.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};Zf.exports=Do});var vo=m((T_,Jf)=>{"use strict";var Rn=H(),Kf=Xe(),Av=po(),Tv=zf(),Rv=Vf(),Pv=mo();Jf.exports=function(e){var t=Rn.getTypeOf(e);return Rn.checkSupport(t),t==="string"&&!Kf.uint8array?new Tv(e):t==="nodebuffer"?new Rv(e):Kf.uint8array?new Pv(Rn.transformTo("uint8array",e)):new Av(Rn.transformTo("array",e))}});var ed=m((R_,Qf)=>{"use strict";var yo=vo(),mt=H(),Iv=un(),Yf=ln(),Pn=ar(),In=uo(),Mv=Xe(),Lv=0,Bv=3,Ov=s(function(e){for(var t in In)if(Object.prototype.hasOwnProperty.call(In,t)&&In[t].magic===e)return In[t];return null},"findCompression");function Xf(e,t){this.options=e,this.loadOptions=t}s(Xf,"ZipEntry");Xf.prototype={isEncrypted:s(function(){return(this.bitFlag&1)===1},"isEncrypted"),useUTF8:s(function(){return(this.bitFlag&2048)===2048},"useUTF8"),readLocalPart:s(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=Ov(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+mt.pretty(this.compressionMethod)+" unknown (inner file : "+mt.transformTo("string",this.fileName)+")");this.decompressed=new Iv(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},"readLocalPart"),readCentralPart:s(function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},"readCentralPart"),processAttributes:s(function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),e===Lv&&(this.dosPermissions=this.externalFileAttributes&63),e===Bv&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},"processAttributes"),parseZIP64ExtraField:s(function(){if(this.extraFields[1]){var e=yo(this.extraFields[1].value);this.uncompressedSize===mt.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===mt.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===mt.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===mt.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},"parseZIP64ExtraField"),readExtraFields:s(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)},"readExtraFields"),handleUTF8:s(function(){var e=Mv.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Pn.utf8decode(this.fileName),this.fileCommentStr=Pn.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var r=mt.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var i=this.findExtraFieldUnicodeComment();if(i!==null)this.fileCommentStr=i;else{var n=mt.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(n)}}},"handleUTF8"),findExtraFieldUnicodePath:s(function(){var e=this.extraFields[28789];if(e){var t=yo(e.value);return t.readInt(1)!==1||Yf(this.fileName)!==t.readInt(4)?null:Pn.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodePath"),findExtraFieldUnicodeComment:s(function(){var e=this.extraFields[25461];if(e){var t=yo(e.value);return t.readInt(1)!==1||Yf(this.fileComment)!==t.readInt(4)?null:Pn.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodeComment")};Qf.exports=Xf});var id=m((I_,rd)=>{"use strict";var Uv=vo(),nt=H(),Ie=co(),Nv=ed(),Wv=Xe();function td(e){this.files=[],this.loadOptions=e}s(td,"ZipEntries");td.prototype={checkSignature:s(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 ("+nt.pretty(t)+", expected "+nt.pretty(e)+")")}},"checkSignature"),isSignature:s(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},"isSignature"),readBlockEndOfCentral:s(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=Wv.uint8array?"uint8array":"array",r=nt.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},"readBlockEndOfCentral"),readBlockZip64EndOfCentral:s(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}},"readBlockZip64EndOfCentral"),readBlockZip64EndOfCentralLocator:s(function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},"readBlockZip64EndOfCentralLocator"),readLocalFiles:s(function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(Ie.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},"readLocalFiles"),readCentralDir:s(function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(Ie.CENTRAL_FILE_HEADER);)e=new Nv({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},"readCentralDir"),readEndOfCentral:s(function(){var e=this.reader.lastIndexOfSignature(Ie.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,Ie.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(Ie.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===nt.MAX_VALUE_16BITS||this.diskWithCentralDirStart===nt.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===nt.MAX_VALUE_16BITS||this.centralDirRecords===nt.MAX_VALUE_16BITS||this.centralDirSize===nt.MAX_VALUE_32BITS||this.centralDirOffset===nt.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(Ie.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(Ie.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,Ie.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(Ie.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(Ie.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,Ie.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},"readEndOfCentral"),prepareReader:s(function(e){this.reader=Uv(e)},"prepareReader"),load:s(function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()},"load")};rd.exports=td});var sd=m((L_,ad)=>{"use strict";var wo=H(),Mn=rr(),qv=ar(),jv=id(),zv=ws(),nd=Zr();function Hv(e){return new Mn.Promise(function(t,r){var i=e.decompressed.getContentWorker().pipe(new zv);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()})}s(Hv,"checkEntryCRC32");ad.exports=function(e,t){var r=this;return t=wo.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:qv.utf8decode}),nd.isNode&&nd.isStream(e)?Mn.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):wo.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(i){var n=new jv(t);return n.load(i),n}).then(s(function(n){var a=[Mn.Promise.resolve(n)],o=n.files;if(t.checkCRC32)for(var l=0;l<o.length;l++)a.push(Hv(o[l]));return Mn.Promise.all(a)},"checkCRC32")).then(s(function(n){for(var a=n.shift(),o=a.files,l=0;l<o.length;l++){var h=o[l],u=h.fileNameStr,c=wo.resolve(h.fileNameStr);r.file(c,h.decompressed,{binary:!0,optimizedBinaryString:!0,date:h.date,dir:h.dir,comment:h.fileCommentStr.length?h.fileCommentStr:null,unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions,createFolders:t.createFolders}),h.dir||(r.file(c).unsafeOriginalName=u)}return a.zipComment.length&&(r.comment=a.zipComment),r},"addFiles"))}});var Ln=m((O_,od)=>{"use strict";function ke(){if(!(this instanceof ke))return new ke;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 ke;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}s(ke,"JSZip");ke.prototype=Bf();ke.prototype.loadAsync=sd();ke.support=Xe();ke.defaults=Ds();ke.version="3.10.1";ke.loadAsync=function(e,t){return new ke().loadAsync(e,t)};ke.external=rr();od.exports=ke});var fd=m((Yk,hd)=>{var br=1e3,Cr=br*60,_r=Cr*60,Ot=_r*24,Xv=Ot*7,Qv=Ot*365.25;hd.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return ey(e);if(r==="number"&&isFinite(e))return t.long?ry(e):ty(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function ey(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),i=(t[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*Qv;case"weeks":case"week":case"w":return r*Xv;case"days":case"day":case"d":return r*Ot;case"hours":case"hour":case"hrs":case"hr":case"h":return r*_r;case"minutes":case"minute":case"mins":case"min":case"m":return r*Cr;case"seconds":case"second":case"secs":case"sec":case"s":return r*br;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}s(ey,"parse");function ty(e){var t=Math.abs(e);return t>=Ot?Math.round(e/Ot)+"d":t>=_r?Math.round(e/_r)+"h":t>=Cr?Math.round(e/Cr)+"m":t>=br?Math.round(e/br)+"s":e+"ms"}s(ty,"fmtShort");function ry(e){var t=Math.abs(e);return t>=Ot?Bn(e,t,Ot,"day"):t>=_r?Bn(e,t,_r,"hour"):t>=Cr?Bn(e,t,Cr,"minute"):t>=br?Bn(e,t,br,"second"):e+" ms"}s(ry,"fmtLong");function Bn(e,t,r,i){var n=t>=r*1.5;return Math.round(e/r)+" "+i+(n?"s":"")}s(Bn,"plural")});var xo=m((Qk,dd)=>{function iy(e){r.debug=r,r.default=r,r.coerce=h,r.disable=a,r.enable=n,r.enabled=o,r.humanize=fd(),r.destroy=u,Object.keys(e).forEach(c=>{r[c]=e[c]}),r.names=[],r.skips=[],r.formatters={};function t(c){let f=0;for(let d=0;d<c.length;d++)f=(f<<5)-f+c.charCodeAt(d),f|=0;return r.colors[Math.abs(f)%r.colors.length]}s(t,"selectColor"),r.selectColor=t;function r(c){let f,d=null,p,b;function v(...C){if(!v.enabled)return;let y=v,D=Number(new Date),_=D-(f||D);y.diff=_,y.prev=f,y.curr=D,f=D,C[0]=r.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let w=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(S,F)=>{if(S==="%%")return"%";w++;let k=r.formatters[F];if(typeof k=="function"){let A=C[w];S=k.call(y,A),C.splice(w,1),w--}return S}),r.formatArgs.call(y,C),(y.log||r.log).apply(y,C)}return s(v,"debug"),v.namespace=c,v.useColors=r.useColors(),v.color=r.selectColor(c),v.extend=i,v.destroy=r.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:s(()=>d!==null?d:(p!==r.namespaces&&(p=r.namespaces,b=r.enabled(c)),b),"get"),set:s(C=>{d=C},"set")}),typeof r.init=="function"&&r.init(v),v}s(r,"createDebug");function i(c,f){let d=r(this.namespace+(typeof f>"u"?":":f)+c);return d.log=this.log,d}s(i,"extend");function n(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let f,d=(typeof c=="string"?c:"").split(/[\s,]+/),p=d.length;for(f=0;f<p;f++)d[f]&&(c=d[f].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.slice(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}s(n,"enable");function a(){let c=[...r.names.map(l),...r.skips.map(l).map(f=>"-"+f)].join(",");return r.enable(""),c}s(a,"disable");function o(c){if(c[c.length-1]==="*")return!0;let f,d;for(f=0,d=r.skips.length;f<d;f++)if(r.skips[f].test(c))return!1;for(f=0,d=r.names.length;f<d;f++)if(r.names[f].test(c))return!0;return!1}s(o,"enabled");function l(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}s(l,"toNamespace");function h(c){return c instanceof Error?c.stack||c.message:c}s(h,"coerce");function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return s(u,"destroy"),r.enable(r.load()),r}s(iy,"setup");dd.exports=iy});var pd=m((ve,On)=>{ve.formatArgs=ay;ve.save=sy;ve.load=oy;ve.useColors=ny;ve.storage=ly();ve.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();ve.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function ny(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}s(ny,"useColors");function ay(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+On.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(r++,n==="%c"&&(i=r))}),e.splice(i,0,t)}s(ay,"formatArgs");ve.log=console.debug||console.log||(()=>{});function sy(e){try{e?ve.storage.setItem("debug",e):ve.storage.removeItem("debug")}catch{}}s(sy,"save");function oy(){let e;try{e=ve.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}s(oy,"load");function ly(){try{return localStorage}catch{}}s(ly,"localstorage");On.exports=xo()(ve);var{formatters:uy}=On.exports;uy.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var md=m((r1,gd)=>{"use strict";gd.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(r+e),n=t.indexOf("--");return i!==-1&&(n===-1||i<n)}});var yd=m((i1,vd)=>{"use strict";var cy=require("os"),Dd=require("tty"),xe=md(),{env:Q}=process,Dt;xe("no-color")||xe("no-colors")||xe("color=false")||xe("color=never")?Dt=0:(xe("color")||xe("colors")||xe("color=true")||xe("color=always"))&&(Dt=1);"FORCE_COLOR"in Q&&(Q.FORCE_COLOR==="true"?Dt=1:Q.FORCE_COLOR==="false"?Dt=0:Dt=Q.FORCE_COLOR.length===0?1:Math.min(parseInt(Q.FORCE_COLOR,10),3));function So(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}s(So,"translateLevel");function Eo(e,t){if(Dt===0)return 0;if(xe("color=16m")||xe("color=full")||xe("color=truecolor"))return 3;if(xe("color=256"))return 2;if(e&&!t&&Dt===void 0)return 0;let r=Dt||0;if(Q.TERM==="dumb")return r;if(process.platform==="win32"){let i=cy.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in Q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in Q)||Q.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Q.TEAMCITY_VERSION)?1:0;if(Q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Q){let i=parseInt((Q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Q.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Q.TERM)||"COLORTERM"in Q?1:r}s(Eo,"supportsColor");function hy(e){let t=Eo(e,e&&e.isTTY);return So(t)}s(hy,"getSupportLevel");vd.exports={supportsColor:hy,stdout:So(Eo(!0,Dd.isatty(1))),stderr:So(Eo(!0,Dd.isatty(2)))}});var bd=m((ee,Nn)=>{var fy=require("tty"),Un=require("util");ee.init=yy;ee.log=my;ee.formatArgs=py;ee.save=Dy;ee.load=vy;ee.useColors=dy;ee.destroy=Un.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ee.colors=[6,2,3,4,5,1];try{let e=yd();e&&(e.stderr||e).level>=2&&(ee.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}ee.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(n,a)=>a.toUpperCase()),i=process.env[t];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),e[r]=i,e},{});function dy(){return"colors"in ee.inspectOpts?!!ee.inspectOpts.colors:fy.isatty(process.stderr.fd)}s(dy,"useColors");function py(e){let{namespace:t,useColors:r}=this;if(r){let i=this.color,n="\x1B[3"+(i<8?i:"8;5;"+i),a=` ${n};1m${t} \x1B[0m`;e[0]=a+e[0].split(`
3
3
  `).join(`
4
- `+a),e.push(n+"m+"+Bn.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=hy()+t+" "+e[0]}s(cy,"formatArgs");function hy(){return ee.inspectOpts.hideDate?"":new Date().toISOString()+" "}s(hy,"getDate");function fy(...e){return process.stderr.write(Ln.formatWithOptions(ee.inspectOpts,...e)+`
5
- `)}s(fy,"log");function dy(e){e?process.env.DEBUG=e:delete process.env.DEBUG}s(dy,"save");function py(){return process.env.DEBUG}s(py,"load");function gy(e){e.inspectOpts={};let t=Object.keys(ee.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=ee.inspectOpts[t[r]]}s(gy,"init");Bn.exports=_o()(ee);var{formatters:vd}=Bn.exports;vd.o=function(e){return this.inspectOpts.colors=this.useColors,Ln.inspect(e,this.inspectOpts).split(`
6
- `).map(t=>t.trim()).join(" ")};vd.O=function(e){return this.inspectOpts.colors=this.useColors,Ln.inspect(e,this.inspectOpts)}});var wd=D((ek,Eo)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Eo.exports=fd():Eo.exports=yd()});var Pd=D((te,Io)=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});function my(e){return e&&typeof e=="object"&&"default"in e?e.default:e}s(my,"_interopDefault");var To=my(wd()),Mo=class Mo{constructor(t,r){this.moduleName=t,this.packageNames=r}lazyloadExportOrDie(t){let r=this,i=Object.fromEntries(Object.getOwnPropertyNames(Reflect).map(n=>[n,function(a,...o){let h=r.loadModuleOrDie()[t];return Reflect[n](h||a,...o)}]));return new Proxy({},i)}loadModule(){return So(this.packageNames)}loadModuleOrDie(){let t=So(this.packageNames);if(t)return t;throw this.requireError}get requireError(){let t=this.moduleName.charAt(0).toUpperCase()+this.moduleName.slice(1);return new Error(`
4
+ `+a),e.push(n+"m+"+Nn.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=gy()+t+" "+e[0]}s(py,"formatArgs");function gy(){return ee.inspectOpts.hideDate?"":new Date().toISOString()+" "}s(gy,"getDate");function my(...e){return process.stderr.write(Un.formatWithOptions(ee.inspectOpts,...e)+`
5
+ `)}s(my,"log");function Dy(e){e?process.env.DEBUG=e:delete process.env.DEBUG}s(Dy,"save");function vy(){return process.env.DEBUG}s(vy,"load");function yy(e){e.inspectOpts={};let t=Object.keys(ee.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=ee.inspectOpts[t[r]]}s(yy,"init");Nn.exports=xo()(ee);var{formatters:wd}=Nn.exports;wd.o=function(e){return this.inspectOpts.colors=this.useColors,Un.inspect(e,this.inspectOpts).split(`
6
+ `).map(t=>t.trim()).join(" ")};wd.O=function(e){return this.inspectOpts.colors=this.useColors,Un.inspect(e,this.inspectOpts)}});var Cd=m((s1,Fo)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Fo.exports=pd():Fo.exports=bd()});var Md=m((te,Lo)=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});function wy(e){return e&&typeof e=="object"&&"default"in e?e.default:e}s(wy,"_interopDefault");var Po=wy(Cd()),Bo=class Bo{constructor(t,r){this.moduleName=t,this.packageNames=r}lazyloadExportOrDie(t){let r=this,i=Object.fromEntries(Object.getOwnPropertyNames(Reflect).map(n=>[n,function(a,...o){let h=r.loadModuleOrDie()[t];return Reflect[n](h||a,...o)}]));return new Proxy({},i)}loadModule(){return To(this.packageNames)}loadModuleOrDie(){let t=To(this.packageNames);if(t)return t;throw this.requireError}get requireError(){let t=this.moduleName.charAt(0).toUpperCase()+this.moduleName.slice(1);return new Error(`
7
7
  ${t} is missing. :-)
8
8
 
9
9
  I've tried loading ${this.packageNames.map(r=>`"${r}"`).join(", ")} - no luck.
@@ -13,7 +13,7 @@
13
13
 
14
14
  To get the latest stable version of ${t} run:
15
15
  'yarn add ${this.moduleName}' or 'npm i ${this.moduleName}'
16
- `)}};s(Mo,"Loader");var Fo=Mo;function So(e){for(let t of e)try{return require(t)}catch{continue}}s(So,"requirePackages");var $e=new Fo("playwright",["playwright-core","playwright"]),ue=To("playwright-extra:puppeteer-compat"),Ao=s(e=>"unroute"in e,"isPlaywrightPage"),bd=s(e=>["parentFrame","frameLocator"].every(t=>t in e),"isPlaywrightFrame"),Dy=s(e=>"newContext"in e,"isPlaywrightBrowser"),vy=s(e=>!!e&&typeof e=="object"&&!!e.isCompatShim,"isPuppeteerCompat"),at={objectToShim:new Map,cdpSession:{page:new Map,browser:new Map}};function Ro(e){if(!e||typeof e!="object")return e;if(at.objectToShim.has(e))return at.objectToShim.get(e);if(vy(e))return e;if(ue("addPuppeteerCompat",at.objectToShim.size),Ao(e)||bd(e)){let t=wy(e);return at.objectToShim.set(e,t),t}if(Dy(e)){let t=by(e);return at.objectToShim.set(e,t),t}return ue("Received unknown object:",Reflect.ownKeys(e)),e}s(Ro,"addPuppeteerCompat");var Cd={send:s(async(...e)=>{ue("dummy CDP client called","send",e)},"send"),on:s((...e)=>{ue("dummy CDP client called","on",e)},"on")};async function yi(e){let t=at.cdpSession.page.get(e);if(t)return ue("getPageCDPSession: use existing"),t;ue("getPageCDPSession: use new");let r=bd(e)?e.page().context():e.context();try{return t=await r.newCDPSession(e),at.cdpSession.page.set(e,t),t}catch(i){ue("getPageCDPSession: error while creating session:",i.message),ue("getPageCDPSession: Unable create CDP session (most likely a different browser than chromium) - returning a dummy")}return Cd}s(yi,"getPageCDPSession");async function yy(e){let t=at.cdpSession.browser.get(e);if(t)return ue("getBrowserCDPSession: use existing"),t;ue("getBrowserCDPSession: use new");try{return t=await e.newBrowserCDPSession(),at.cdpSession.browser.set(e,t),t}catch(r){ue("getBrowserCDPSession: error while creating session:",r.message),ue("getBrowserCDPSession: Unable create CDP session (most likely a different browser than chromium) - returning a dummy")}return Cd}s(yy,"getBrowserCDPSession");function wy(e){let t=Math.random().toString(36).substring(2,7);return new Proxy(e,{get(i,n){return n==="isCompatShim"||n==="isPlaywright"?!0:(ue("page - get",t,n),n==="_client"?()=>({send:s(async(a,o)=>await(await yi(e)).send(a,o),"send"),on:s((a,o)=>{yi(e).then(u=>{u.on(a,o)})},"on")}):n==="setBypassCSP"?async a=>await(await yi(e)).send("Page.setBypassCSP",{enabled:a}):n==="setUserAgent"?async(a,o)=>await(await yi(e)).send("Emulation.setUserAgentOverride",{userAgent:a,userAgentMetadata:o}):n==="browser"&&Ao(e)?()=>{let a=e.context().browser();return a||(ue("page.browser() - not available, most likely due to launchPersistentContext"),a=e),Ro(a)}:n==="evaluateOnNewDocument"&&Ao(e)?async function(a,...o){return await e.addInitScript(a,o[0])}:n==="userAgent"?async a=>(await(await yi(e)).send("Browser.getVersion")).userAgent:Reflect.get(i,n))}})}s(wy,"createPageShim");function by(e){let t=Math.random().toString(36).substring(2,7);return new Proxy(e,{get(i,n){return n==="isCompatShim"||n==="isPlaywright"?!0:(ue("browser - get",t,n),n==="pages"?()=>e.contexts().flatMap(a=>a.pages().map(o=>Ro(o))):n==="userAgent"?async()=>(await(await yy(e)).send("Browser.getVersion")).userAgent:Reflect.get(i,n))}})}s(by,"createBrowserShim");var Ee=To("playwright-extra:plugins"),Lo=class Lo{constructor(){this._plugins=[],this._dependencyDefaults=new Map,this._dependencyResolution=new Map}get list(){return this._plugins}get names(){return this._plugins.map(t=>t.name)}add(t){var r;return this.isValidPluginInstance(t)?(t.onPluginRegistered&&t.onPluginRegistered({framework:"playwright"}),t._registerChildClassMembers&&t._registerChildClassMembers(Object.getPrototypeOf(t)),!((r=t.requirements)===null||r===void 0)&&r.has("dataFromPlugins")&&(t.getDataFromPlugins=this.getData.bind(this)),this._plugins.push(t),!0):!1}isValidPluginInstance(t){return!t||typeof t!="object"||!t._isPuppeteerExtraPlugin?(console.error("Warning: Plugin is not derived from PuppeteerExtraPlugin, ignoring.",t),!1):t.name?!0:(console.error("Warning: Plugin with no name registering, ignoring.",t),!1)}onPluginError(t,r,i){console.warn(`An error occured while executing "${r}" in plugin "${t.name}":`,i)}setDependencyDefaults(t,r){return this._dependencyDefaults.set(t,r),this}setDependencyResolution(t,r){return this._dependencyResolution.set(t,r),this}prepare(){this.resolveDependencies(),this.order()}filterByMethod(t){return this._plugins.filter(r=>r._childClassMembers&&Array.isArray(r._childClassMembers)?r._childClassMembers.includes(t):t in r)}_addPuppeteerCompatIfNeeded(t,r,i){let n=t._isPuppeteerExtraPlugin&&!t.noPuppeteerShim,o=["onBrowser","onPageCreated","onPageClose","afterConnect","afterLaunch"].includes(r);return!n||!o?i:(Ee("add puppeteer compatibility",t.name,r),[...i.map(u=>Ro(u))])}dispatch(t,...r){var i,n;let a=this.filterByMethod(t);Ee("dispatch",t,{all:this._plugins.length,filteredByMethod:a.length});for(let o of a)try{r=this._addPuppeteerCompatIfNeeded.bind(this)(o,t,r);let u=(n=(i=o[t])===null||i===void 0?void 0:i.constructor)===null||n===void 0?void 0:n.name;Ee("dispatch to plugin",{plugin:o.name,method:t,fnType:u}),u==="AsyncFunction"?o[t](...r).catch(h=>this.onPluginError(o,t,h)):o[t](...r)}catch(u){this.onPluginError(o,t,u)}}async dispatchBlocking(t,...r){let i=this.filterByMethod(t);Ee("dispatchBlocking",t,{all:this._plugins.length,filteredByMethod:i.length});let n=null;for(let a of i)try{r=this._addPuppeteerCompatIfNeeded.bind(this)(a,t,r),n=await a[t](...r),n!==void 0&&(r[0]=n)}catch(o){return this.onPluginError(a,t,o),n}return n}order(){Ee("order:before",this.names);let t=this._plugins.filter(r=>{var i;return(i=r.requirements)===null||i===void 0?void 0:i.has("runLast")}).map(r=>r.name);for(let r of t){let i=this._plugins.findIndex(n=>n.name===r);this._plugins.push(this._plugins.splice(i,1)[0])}Ee("order:after",this.names)}getData(t){let r=this._plugins.filter(i=>!!i.data).map(i=>Array.isArray(i.data)?i.data:[i.data]).reduce((i,n)=>[...i,...n],[]);return t?r.filter(i=>i.name===t):r}resolvePluginsStanza(){Ee("resolvePluginsStanza");let t=new Set(this.names);this._plugins.filter(r=>!!r.plugins&&r.plugins.length).filter(r=>!t.has(r.name)).forEach(r=>{(r.plugins||[]).forEach(i=>{Ee(r.name,"adding missing plugin",i.name),this.add(i)})})}resolveDependenciesStanza(){Ee("resolveDependenciesStanza");let t=s((n,a)=>{if(this._dependencyResolution.has(a))return this._dependencyResolution.get(a);let o=["puppeteer-extra-plugin-"],u=o.some(f=>a.startsWith(f)),h=[];u||h.push(...o.map(f=>f+a)),h.push(a);let l=So(h);if(l)return l;let c=`
16
+ `)}};s(Bo,"Loader");var Ao=Bo;function To(e){for(let t of e)try{return require(t)}catch{continue}}s(To,"requirePackages");var $e=new Ao("playwright",["playwright-core","playwright"]),le=Po("playwright-extra:puppeteer-compat"),Ro=s(e=>"unroute"in e,"isPlaywrightPage"),_d=s(e=>["parentFrame","frameLocator"].every(t=>t in e),"isPlaywrightFrame"),by=s(e=>"newContext"in e,"isPlaywrightBrowser"),Cy=s(e=>!!e&&typeof e=="object"&&!!e.isCompatShim,"isPuppeteerCompat"),at={objectToShim:new Map,cdpSession:{page:new Map,browser:new Map}};function Io(e){if(!e||typeof e!="object")return e;if(at.objectToShim.has(e))return at.objectToShim.get(e);if(Cy(e))return e;if(le("addPuppeteerCompat",at.objectToShim.size),Ro(e)||_d(e)){let t=ky(e);return at.objectToShim.set(e,t),t}if(by(e)){let t=xy(e);return at.objectToShim.set(e,t),t}return le("Received unknown object:",Reflect.ownKeys(e)),e}s(Io,"addPuppeteerCompat");var kd={send:s(async(...e)=>{le("dummy CDP client called","send",e)},"send"),on:s((...e)=>{le("dummy CDP client called","on",e)},"on")};async function wi(e){let t=at.cdpSession.page.get(e);if(t)return le("getPageCDPSession: use existing"),t;le("getPageCDPSession: use new");let r=_d(e)?e.page().context():e.context();try{return t=await r.newCDPSession(e),at.cdpSession.page.set(e,t),t}catch(i){le("getPageCDPSession: error while creating session:",i.message),le("getPageCDPSession: Unable create CDP session (most likely a different browser than chromium) - returning a dummy")}return kd}s(wi,"getPageCDPSession");async function _y(e){let t=at.cdpSession.browser.get(e);if(t)return le("getBrowserCDPSession: use existing"),t;le("getBrowserCDPSession: use new");try{return t=await e.newBrowserCDPSession(),at.cdpSession.browser.set(e,t),t}catch(r){le("getBrowserCDPSession: error while creating session:",r.message),le("getBrowserCDPSession: Unable create CDP session (most likely a different browser than chromium) - returning a dummy")}return kd}s(_y,"getBrowserCDPSession");function ky(e){let t=Math.random().toString(36).substring(2,7);return new Proxy(e,{get(i,n){return n==="isCompatShim"||n==="isPlaywright"?!0:(le("page - get",t,n),n==="_client"?()=>({send:s(async(a,o)=>await(await wi(e)).send(a,o),"send"),on:s((a,o)=>{wi(e).then(l=>{l.on(a,o)})},"on")}):n==="setBypassCSP"?async a=>await(await wi(e)).send("Page.setBypassCSP",{enabled:a}):n==="setUserAgent"?async(a,o)=>await(await wi(e)).send("Emulation.setUserAgentOverride",{userAgent:a,userAgentMetadata:o}):n==="browser"&&Ro(e)?()=>{let a=e.context().browser();return a||(le("page.browser() - not available, most likely due to launchPersistentContext"),a=e),Io(a)}:n==="evaluateOnNewDocument"&&Ro(e)?async function(a,...o){return await e.addInitScript(a,o[0])}:n==="userAgent"?async a=>(await(await wi(e)).send("Browser.getVersion")).userAgent:Reflect.get(i,n))}})}s(ky,"createPageShim");function xy(e){let t=Math.random().toString(36).substring(2,7);return new Proxy(e,{get(i,n){return n==="isCompatShim"||n==="isPlaywright"?!0:(le("browser - get",t,n),n==="pages"?()=>e.contexts().flatMap(a=>a.pages().map(o=>Io(o))):n==="userAgent"?async()=>(await(await _y(e)).send("Browser.getVersion")).userAgent:Reflect.get(i,n))}})}s(xy,"createBrowserShim");var Se=Po("playwright-extra:plugins"),Oo=class Oo{constructor(){this._plugins=[],this._dependencyDefaults=new Map,this._dependencyResolution=new Map}get list(){return this._plugins}get names(){return this._plugins.map(t=>t.name)}add(t){var r;return this.isValidPluginInstance(t)?(t.onPluginRegistered&&t.onPluginRegistered({framework:"playwright"}),t._registerChildClassMembers&&t._registerChildClassMembers(Object.getPrototypeOf(t)),!((r=t.requirements)===null||r===void 0)&&r.has("dataFromPlugins")&&(t.getDataFromPlugins=this.getData.bind(this)),this._plugins.push(t),!0):!1}isValidPluginInstance(t){return!t||typeof t!="object"||!t._isPuppeteerExtraPlugin?(console.error("Warning: Plugin is not derived from PuppeteerExtraPlugin, ignoring.",t),!1):t.name?!0:(console.error("Warning: Plugin with no name registering, ignoring.",t),!1)}onPluginError(t,r,i){console.warn(`An error occured while executing "${r}" in plugin "${t.name}":`,i)}setDependencyDefaults(t,r){return this._dependencyDefaults.set(t,r),this}setDependencyResolution(t,r){return this._dependencyResolution.set(t,r),this}prepare(){this.resolveDependencies(),this.order()}filterByMethod(t){return this._plugins.filter(r=>r._childClassMembers&&Array.isArray(r._childClassMembers)?r._childClassMembers.includes(t):t in r)}_addPuppeteerCompatIfNeeded(t,r,i){let n=t._isPuppeteerExtraPlugin&&!t.noPuppeteerShim,o=["onBrowser","onPageCreated","onPageClose","afterConnect","afterLaunch"].includes(r);return!n||!o?i:(Se("add puppeteer compatibility",t.name,r),[...i.map(l=>Io(l))])}dispatch(t,...r){var i,n;let a=this.filterByMethod(t);Se("dispatch",t,{all:this._plugins.length,filteredByMethod:a.length});for(let o of a)try{r=this._addPuppeteerCompatIfNeeded.bind(this)(o,t,r);let l=(n=(i=o[t])===null||i===void 0?void 0:i.constructor)===null||n===void 0?void 0:n.name;Se("dispatch to plugin",{plugin:o.name,method:t,fnType:l}),l==="AsyncFunction"?o[t](...r).catch(h=>this.onPluginError(o,t,h)):o[t](...r)}catch(l){this.onPluginError(o,t,l)}}async dispatchBlocking(t,...r){let i=this.filterByMethod(t);Se("dispatchBlocking",t,{all:this._plugins.length,filteredByMethod:i.length});let n=null;for(let a of i)try{r=this._addPuppeteerCompatIfNeeded.bind(this)(a,t,r),n=await a[t](...r),n!==void 0&&(r[0]=n)}catch(o){return this.onPluginError(a,t,o),n}return n}order(){Se("order:before",this.names);let t=this._plugins.filter(r=>{var i;return(i=r.requirements)===null||i===void 0?void 0:i.has("runLast")}).map(r=>r.name);for(let r of t){let i=this._plugins.findIndex(n=>n.name===r);this._plugins.push(this._plugins.splice(i,1)[0])}Se("order:after",this.names)}getData(t){let r=this._plugins.filter(i=>!!i.data).map(i=>Array.isArray(i.data)?i.data:[i.data]).reduce((i,n)=>[...i,...n],[]);return t?r.filter(i=>i.name===t):r}resolvePluginsStanza(){Se("resolvePluginsStanza");let t=new Set(this.names);this._plugins.filter(r=>!!r.plugins&&r.plugins.length).filter(r=>!t.has(r.name)).forEach(r=>{(r.plugins||[]).forEach(i=>{Se(r.name,"adding missing plugin",i.name),this.add(i)})})}resolveDependenciesStanza(){Se("resolveDependenciesStanza");let t=s((n,a)=>{if(this._dependencyResolution.has(a))return this._dependencyResolution.get(a);let o=["puppeteer-extra-plugin-"],l=o.some(f=>a.startsWith(f)),h=[];l||h.push(...o.map(f=>f+a)),h.push(a);let u=To(h);if(u)return u;let c=`
17
17
  The plugin '${n}' listed '${a}' as dependency,
18
18
  which could not be found. Please install it:
19
19
 
@@ -25,34 +25,34 @@ Note: You don't need to require the plugin yourself,
25
25
  unless you want to modify it's default settings.
26
26
 
27
27
  If your bundler has issues with dynamic imports take a look at '.plugins.setDependencyResolution()'.
28
- `;throw console.warn(c),new Error("Plugin dependency not found")},"requireDependencyOrDie"),r=new Set(this.names),i=s(({name:n,dependencies:a})=>{if(!a)return;let o=s((u,h)=>{let l=t(n,u);h=h||this._dependencyDefaults.get(u)||{};let c=l(h);if(r.has(c.name)){Ee(n,"=> dependency already exists:",c.name);return}return r.add(c.name),Ee(n,"=> adding new dependency:",c.name,h),this.add(c),i(c)},"processDependency");if(a instanceof Set||Array.isArray(a))return[...a].forEach(u=>o(u));if(a instanceof Map)return a.forEach((u,h)=>o(h,u))},"recursivelyLoadMissingDependencies");this.list.forEach(i)}resolveDependencies(){Ee("resolveDependencies"),this.resolvePluginsStanza(),this.resolveDependenciesStanza()}};s(Lo,"PluginList");var wi=Lo,Me=To("playwright-extra"),Bo=class Bo{constructor(t){this._launcher=t,this.plugins=new wi}use(t){if(!(t&&"name"in t))throw new Error("A plugin must be provided to .use()");return this.plugins.add(t)&&Me("Plugin registered",t.name),this}get launcher(){if(!this._launcher)throw $e.requireError;return this._launcher}async launch(...t){if(!this.launcher.launch)throw new Error('Launcher does not support "launch"');let[r]=t;r=Object.assign({args:[]},r||{}),Me("launch",r),this.plugins.prepare(),r=await this.plugins.dispatchBlocking("beforeLaunch",r)||r,Me("launch with options",r),"userDataDir"in r&&(Me("A plugin defined userDataDir during .launch, which isn't supported by playwright - ignoring"),delete r.userDataDir);let i=await this.launcher.launch(r);return await this.plugins.dispatchBlocking("onBrowser",i),await this._bindBrowserEvents(i),await this.plugins.dispatchBlocking("afterLaunch",i),i}async launchPersistentContext(...t){if(!this.launcher.launchPersistentContext)throw new Error('Launcher does not support "launchPersistentContext"');let[r,i]=t;i=Object.assign({args:[]},i||{}),Me("launchPersistentContext",i),this.plugins.prepare(),i=await this.plugins.dispatchBlocking("beforeLaunch",i)||i;let n=await this.launcher.launchPersistentContext(r,i);return await this.plugins.dispatchBlocking("afterLaunch",n),this._bindBrowserContextEvents(n),n}async connect(t,r={}){if(!this.launcher.connect)throw new Error('Launcher does not support "connect"');this.plugins.prepare();let i={},n=!1;typeof t=="object"?i=Object.assign(Object.assign({},t),r):(n=!0,i=Object.assign({wsEndpoint:t},r)),Me("connect",i),i=await this.plugins.dispatchBlocking("beforeConnect",i)||i;let a=[],o=i.wsEndpoint;n?(delete i.wsEndpoint,a.push(o,i)):a.push(i);let u=await this.launcher.connect(...a);return await this.plugins.dispatchBlocking("onBrowser",u),await this._bindBrowserEvents(u),await this.plugins.dispatchBlocking("afterConnect",u),u}async connectOverCDP(t,r={}){if(!this.launcher.connectOverCDP)throw new Error("Launcher does not implement 'connectOverCDP'");this.plugins.prepare();let i={},n=!1;typeof t=="object"?i=Object.assign(Object.assign({},t),r):(n=!0,i=Object.assign({endpointURL:t},r)),Me("connectOverCDP"),i=await this.plugins.dispatchBlocking("beforeConnect",i)||i;let a=[],o=i.endpointURL;n?(delete i.endpointURL,a.push(o,i)):a.push(i);let u=await this.launcher.connectOverCDP(...a);return await this.plugins.dispatchBlocking("onBrowser",u),await this._bindBrowserEvents(u),await this.plugins.dispatchBlocking("afterConnect",u),u}async _bindBrowserContextEvents(t,r){Me("_bindBrowserContextEvents"),this.plugins.dispatch("onContextCreated",t,r),t.newPage=((i,n)=>async()=>{let a=await i.call(n);return await a.goto("about:blank"),a})(t.newPage,t),t.on("close",()=>{t.browser()||this.plugins.dispatch("onDisconnected")}),t.on("page",i=>{this.plugins.dispatch("onPageCreated",i),i.on("close",()=>{this.plugins.dispatch("onPageClose",i)})})}async _bindBrowserEvents(t){Me("_bindPlaywrightBrowserEvents"),t.on("disconnected",()=>{this.plugins.dispatch("onDisconnected",t)}),t.newContext=((r,i)=>async(n={})=>{let a=await this.plugins.dispatchBlocking("beforeContext",n,t)||n,o=await r.call(i,a);return this._bindBrowserContextEvents(o,a),o})(t.newContext,t)}};s(Bo,"PlaywrightExtraClass");var bi=Bo,Po=new Proxy(bi,{construct(e,t){Me(`create instance of ${e.name}`);let r=Reflect.construct(e,t);return new Proxy(r,{get(i,n){return n in i?Reflect.get(i,n):(Me("proxying property to original launcher: ",n),Reflect.get(i.launcher,n))}})}}),Ci=s(e=>new Po(e),"addExtra"),_d=Ci(($e.loadModule()||{}).chromium),kd=Ci(($e.loadModule()||{}).firefox),xd=Ci(($e.loadModule()||{}).webkit),Ed=$e.lazyloadExportOrDie("_android"),Fd=$e.lazyloadExportOrDie("_electron"),Sd=$e.lazyloadExportOrDie("request"),Ad=$e.lazyloadExportOrDie("selectors"),Td=$e.lazyloadExportOrDie("devices"),Rd=$e.lazyloadExportOrDie("errors"),Cy={PlaywrightExtra:Po,PlaywrightExtraClass:bi,PluginList:wi,addExtra:Ci,chromium:_d,firefox:kd,webkit:xd,_android:Ed,_electron:Fd,request:Sd,selectors:Ad,devices:Td,errors:Rd};te.PlaywrightExtra=Po;te.PlaywrightExtraClass=bi;te.PluginList=wi;te._android=Ed;te._electron=Fd;te.addExtra=Ci;te.chromium=_d;te.default=Cy;te.devices=Td;te.errors=Rd;te.firefox=kd;te.request=Sd;te.selectors=Ad;te.webkit=xd;Io.exports=te.default||{};Object.entries(te).forEach(([e,t])=>{Io.exports[e]=t})});var Vn=D((Uk,Wd)=>{var Vo=require("tty"),Ud,Kn,Nd,xy=((Nd=(Kn=(Ud=Vo==null?void 0:Vo.WriteStream)==null?void 0:Ud.prototype)==null?void 0:Kn.hasColors)==null?void 0:Nd.call(Kn))??!1,P=s((e,t)=>{if(!xy)return n=>n;let r=`\x1B[${e}m`,i=`\x1B[${t}m`;return n=>{let a=n+"",o=a.indexOf(i);if(o===-1)return r+a+i;let u=r,h=0;for(;o!==-1;)u+=a.slice(h,o)+r,h=o+i.length,o=a.indexOf(i,h);return u+=a.slice(h)+i,u}},"format"),R={};R.reset=P(0,0);R.bold=P(1,22);R.dim=P(2,22);R.italic=P(3,23);R.underline=P(4,24);R.overline=P(53,55);R.inverse=P(7,27);R.hidden=P(8,28);R.strikethrough=P(9,29);R.black=P(30,39);R.red=P(31,39);R.green=P(32,39);R.yellow=P(33,39);R.blue=P(34,39);R.magenta=P(35,39);R.cyan=P(36,39);R.white=P(37,39);R.gray=P(90,39);R.bgBlack=P(40,49);R.bgRed=P(41,49);R.bgGreen=P(42,49);R.bgYellow=P(43,49);R.bgBlue=P(44,49);R.bgMagenta=P(45,49);R.bgCyan=P(46,49);R.bgWhite=P(47,49);R.bgGray=P(100,49);R.redBright=P(91,39);R.greenBright=P(92,39);R.yellowBright=P(93,39);R.blueBright=P(94,39);R.magentaBright=P(95,39);R.cyanBright=P(96,39);R.whiteBright=P(97,39);R.bgRedBright=P(101,49);R.bgGreenBright=P(102,49);R.bgYellowBright=P(103,49);R.bgBlueBright=P(104,49);R.bgMagentaBright=P(105,49);R.bgCyanBright=P(106,49);R.bgWhiteBright=P(107,49);Wd.exports=R});var qd=D((Wk,Ey)=>{Ey.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var Hd=D((qk,zd)=>{"use strict";var Jn=Object.assign({},qd()),jd=Object.keys(Jn);Object.defineProperty(Jn,"random",{get(){let e=Math.floor(Math.random()*jd.length),t=jd[e];return Jn[t]}});zd.exports=Jn});var Vd=D((lx,Kd)=>{"use strict";Kd.exports=Sy;function Fy(e){let t={defaultWidth:0,output:process.stdout,tty:require("tty")};return e?(Object.keys(t).forEach(function(r){e[r]||(e[r]=t[r])}),e):t}s(Fy,"normalizeOpts");function Sy(e){let t=Fy(e);if(t.output.getWindowSize)return t.output.getWindowSize()[0]||t.defaultWidth;if(t.tty.getWindowSize)return t.tty.getWindowSize()[1]||t.defaultWidth;if(t.output.columns)return t.output.columns;if(process.env.CLI_WIDTH){let r=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(r)&&r!==0)return r}return t.defaultWidth}s(Sy,"cliWidth")});var Yd=D((hx,Jd)=>{"use strict";Jd.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var Xn=D((fx,Xd)=>{"use strict";var Ay=Yd();Xd.exports=e=>typeof e=="string"?e.replace(Ay(),""):e});var ep=D((dx,Xo)=>{"use strict";var Qd=s(e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141),"isFullwidthCodePoint");Xo.exports=Qd;Xo.exports.default=Qd});var rp=D((gx,tp)=>{"use strict";tp.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var np=D((mx,Qo)=>{"use strict";var Ty=Xn(),Ry=ep(),Py=rp(),ip=s(e=>{if(typeof e!="string"||e.length===0||(e=Ty(e),e.length===0))return 0;e=e.replace(Py()," ");let t=0;for(let r=0;r<e.length;r++){let i=e.codePointAt(r);i<=31||i>=127&&i<=159||i>=768&&i<=879||(i>65535&&r++,t+=Ry(i)?2:1)}return t},"stringWidth");Qo.exports=ip;Qo.exports.default=ip});var sp=D((vx,ap)=>{"use strict";ap.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var eu=D((yx,up)=>{var Ei=sp(),op={};for(let e of Object.keys(Ei))op[Ei[e]]=e;var x={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};up.exports=x;for(let e of Object.keys(x)){if(!("channels"in x[e]))throw new Error("missing channels property: "+e);if(!("labels"in x[e]))throw new Error("missing channel labels property: "+e);if(x[e].labels.length!==x[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=x[e];delete x[e].channels,delete x[e].labels,Object.defineProperty(x[e],"channels",{value:t}),Object.defineProperty(x[e],"labels",{value:r})}x.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,u,h;a===n?u=0:t===a?u=(r-i)/o:r===a?u=2+(i-t)/o:i===a&&(u=4+(t-r)/o),u=Math.min(u*60,360),u<0&&(u+=360);let l=(n+a)/2;return a===n?h=0:l<=.5?h=o/(a+n):h=o/(2-a-n),[u,h*100,l*100]};x.rgb.hsv=function(e){let t,r,i,n,a,o=e[0]/255,u=e[1]/255,h=e[2]/255,l=Math.max(o,u,h),c=l-Math.min(o,u,h),f=s(function(d){return(l-d)/6/c+1/2},"diffc");return c===0?(n=0,a=0):(a=c/l,t=f(o),r=f(u),i=f(h),o===l?n=i-r:u===l?n=1/3+t-i:h===l&&(n=2/3+r-t),n<0?n+=1:n>1&&(n-=1)),[n*360,a*100,l*100]};x.rgb.hwb=function(e){let t=e[0],r=e[1],i=e[2],n=x.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(r,i));return i=1-1/255*Math.max(t,Math.max(r,i)),[n,a*100,i*100]};x.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(1-t,1-r,1-i),a=(1-t-n)/(1-n)||0,o=(1-r-n)/(1-n)||0,u=(1-i-n)/(1-n)||0;return[a*100,o*100,u*100,n*100]};function Iy(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}s(Iy,"comparativeDistance");x.rgb.keyword=function(e){let t=op[e];if(t)return t;let r=1/0,i;for(let n of Object.keys(Ei)){let a=Ei[n],o=Iy(e,a);o<r&&(r=o,i=n)}return i};x.keyword.rgb=function(e){return Ei[e]};x.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;let n=t*.4124+r*.3576+i*.1805,a=t*.2126+r*.7152+i*.0722,o=t*.0193+r*.1192+i*.9505;return[n*100,a*100,o*100]};x.rgb.lab=function(e){let t=x.rgb.xyz(e),r=t[0],i=t[1],n=t[2];r/=95.047,i/=100,n/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let a=116*i-16,o=500*(r-i),u=200*(i-n);return[a,o,u]};x.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,i=e[2]/100,n,a,o;if(r===0)return o=i*255,[o,o,o];i<.5?n=i*(1+r):n=i+r-i*r;let u=2*i-n,h=[0,0,0];for(let l=0;l<3;l++)a=t+1/3*-(l-1),a<0&&a++,a>1&&a--,6*a<1?o=u+(n-u)*6*a:2*a<1?o=n:3*a<2?o=u+(n-u)*(2/3-a)*6:o=u,h[l]=o*255;return h};x.hsl.hsv=function(e){let t=e[0],r=e[1]/100,i=e[2]/100,n=r,a=Math.max(i,.01);i*=2,r*=i<=1?i:2-i,n*=a<=1?a:2-a;let o=(i+r)/2,u=i===0?2*n/(a+n):2*r/(i+r);return[t,u*100,o*100]};x.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,i=e[2]/100,n=Math.floor(t)%6,a=t-Math.floor(t),o=255*i*(1-r),u=255*i*(1-r*a),h=255*i*(1-r*(1-a));switch(i*=255,n){case 0:return[i,h,o];case 1:return[u,i,o];case 2:return[o,i,h];case 3:return[o,u,i];case 4:return[h,o,i];case 5:return[i,o,u]}};x.hsv.hsl=function(e){let t=e[0],r=e[1]/100,i=e[2]/100,n=Math.max(i,.01),a,o;o=(2-r)*i;let u=(2-r)*n;return a=r*n,a/=u<=1?u:2-u,a=a||0,o/=2,[t,a*100,o*100]};x.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,i=e[2]/100,n=r+i,a;n>1&&(r/=n,i/=n);let o=Math.floor(6*t),u=1-i;a=6*t-o,o&1&&(a=1-a);let h=r+a*(u-r),l,c,f;switch(o){default:case 6:case 0:l=u,c=h,f=r;break;case 1:l=h,c=u,f=r;break;case 2:l=r,c=u,f=h;break;case 3:l=r,c=h,f=u;break;case 4:l=h,c=r,f=u;break;case 5:l=u,c=r,f=h;break}return[l*255,c*255,f*255]};x.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,i=e[2]/100,n=e[3]/100,a=1-Math.min(1,t*(1-n)+n),o=1-Math.min(1,r*(1-n)+n),u=1-Math.min(1,i*(1-n)+n);return[a*255,o*255,u*255]};x.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,i=e[2]/100,n,a,o;return n=t*3.2406+r*-1.5372+i*-.4986,a=t*-.9689+r*1.8758+i*.0415,o=t*.0557+r*-.204+i*1.057,n=n>.0031308?1.055*n**(1/2.4)-.055:n*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,n=Math.min(Math.max(0,n),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[n*255,a*255,o*255]};x.xyz.lab=function(e){let t=e[0],r=e[1],i=e[2];t/=95.047,r/=100,i/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let n=116*r-16,a=500*(t-r),o=200*(r-i);return[n,a,o]};x.lab.xyz=function(e){let t=e[0],r=e[1],i=e[2],n,a,o;a=(t+16)/116,n=r/500+a,o=a-i/200;let u=a**3,h=n**3,l=o**3;return a=u>.008856?u:(a-16/116)/7.787,n=h>.008856?h:(n-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,n*=95.047,a*=100,o*=108.883,[n,a,o]};x.lab.lch=function(e){let t=e[0],r=e[1],i=e[2],n;n=Math.atan2(i,r)*360/2/Math.PI,n<0&&(n+=360);let o=Math.sqrt(r*r+i*i);return[t,o,n]};x.lch.lab=function(e){let t=e[0],r=e[1],n=e[2]/360*2*Math.PI,a=r*Math.cos(n),o=r*Math.sin(n);return[t,a,o]};x.rgb.ansi16=function(e,t=null){let[r,i,n]=e,a=t===null?x.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let o=30+(Math.round(n/255)<<2|Math.round(i/255)<<1|Math.round(r/255));return a===2&&(o+=60),o};x.hsv.ansi16=function(e){return x.rgb.ansi16(x.hsv.rgb(e),e[2])};x.rgb.ansi256=function(e){let t=e[0],r=e[1],i=e[2];return t===r&&r===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)};x.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,i=(t&1)*r*255,n=(t>>1&1)*r*255,a=(t>>2&1)*r*255;return[i,n,a]};x.ansi256.rgb=function(e){if(e>=232){let a=(e-232)*10+8;return[a,a,a]}e-=16;let t,r=Math.floor(e/36)/5*255,i=Math.floor((t=e%36)/6)/5*255,n=t%6/5*255;return[r,i,n]};x.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};x.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(u=>u+u).join(""));let i=parseInt(r,16),n=i>>16&255,a=i>>8&255,o=i&255;return[n,a,o]};x.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.max(Math.max(t,r),i),a=Math.min(Math.min(t,r),i),o=n-a,u,h;return o<1?u=a/(1-o):u=0,o<=0?h=0:n===t?h=(r-i)/o%6:n===r?h=2+(i-t)/o:h=4+(t-r)/o,h/=6,h%=1,[h*360,o*100,u*100]};x.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,i=r<.5?2*t*r:2*t*(1-r),n=0;return i<1&&(n=(r-.5*i)/(1-i)),[e[0],i*100,n*100]};x.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,i=t*r,n=0;return i<1&&(n=(r-i)/(1-i)),[e[0],i*100,n*100]};x.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,i=e[2]/100;if(r===0)return[i*255,i*255,i*255];let n=[0,0,0],a=t%1*6,o=a%1,u=1-o,h=0;switch(Math.floor(a)){case 0:n[0]=1,n[1]=o,n[2]=0;break;case 1:n[0]=u,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=o;break;case 3:n[0]=0,n[1]=u,n[2]=1;break;case 4:n[0]=o,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=u}return h=(1-r)*i,[(r*n[0]+h)*255,(r*n[1]+h)*255,(r*n[2]+h)*255]};x.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,i=t+r*(1-t),n=0;return i>0&&(n=t/i),[e[0],n*100,i*100]};x.hcg.hsl=function(e){let t=e[1]/100,i=e[2]/100*(1-t)+.5*t,n=0;return i>0&&i<.5?n=t/(2*i):i>=.5&&i<1&&(n=t/(2*(1-i))),[e[0],n*100,i*100]};x.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,i=t+r*(1-t);return[e[0],(i-t)*100,(1-i)*100]};x.hwb.hcg=function(e){let t=e[1]/100,i=1-e[2]/100,n=i-t,a=0;return n<1&&(a=(i-n)/(1-n)),[e[0],n*100,a*100]};x.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};x.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};x.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};x.gray.hsl=function(e){return[0,0,e[0]]};x.gray.hsv=x.gray.hsl;x.gray.hwb=function(e){return[0,100,e[0]]};x.gray.cmyk=function(e){return[0,0,0,e[0]]};x.gray.lab=function(e){return[e[0],0,0]};x.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,i=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(i.length)+i};x.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var cp=D((bx,lp)=>{var Qn=eu();function My(){let e={},t=Object.keys(Qn);for(let r=t.length,i=0;i<r;i++)e[t[i]]={distance:-1,parent:null};return e}s(My,"buildGraph");function Ly(e){let t=My(),r=[e];for(t[e].distance=0;r.length;){let i=r.pop(),n=Object.keys(Qn[i]);for(let a=n.length,o=0;o<a;o++){let u=n[o],h=t[u];h.distance===-1&&(h.distance=t[i].distance+1,h.parent=i,r.unshift(u))}}return t}s(Ly,"deriveBFS");function By(e,t){return function(r){return t(e(r))}}s(By,"link");function Oy(e,t){let r=[t[e].parent,e],i=Qn[t[e].parent][e],n=t[e].parent;for(;t[n].parent;)r.unshift(t[n].parent),i=By(Qn[t[n].parent][n],i),n=t[n].parent;return i.conversion=r,i}s(Oy,"wrapConversion");lp.exports=function(e){let t=Ly(e),r={},i=Object.keys(t);for(let n=i.length,a=0;a<n;a++){let o=i[a];t[o].parent!==null&&(r[o]=Oy(o,t))}return r}});var fp=D((_x,hp)=>{var tu=eu(),Uy=cp(),Fr={},Ny=Object.keys(tu);function Wy(e){let t=s(function(...r){let i=r[0];return i==null?i:(i.length>1&&(r=i),e(r))},"wrappedFn");return"conversion"in e&&(t.conversion=e.conversion),t}s(Wy,"wrapRaw");function qy(e){let t=s(function(...r){let i=r[0];if(i==null)return i;i.length>1&&(r=i);let n=e(r);if(typeof n=="object")for(let a=n.length,o=0;o<a;o++)n[o]=Math.round(n[o]);return n},"wrappedFn");return"conversion"in e&&(t.conversion=e.conversion),t}s(qy,"wrapRounded");Ny.forEach(e=>{Fr[e]={},Object.defineProperty(Fr[e],"channels",{value:tu[e].channels}),Object.defineProperty(Fr[e],"labels",{value:tu[e].labels});let t=Uy(e);Object.keys(t).forEach(i=>{let n=t[i];Fr[e][i]=qy(n),Fr[e][i].raw=Wy(n)})});hp.exports=Fr});var vp=D((xx,Dp)=>{"use strict";var dp=s((e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,"wrapAnsi16"),pp=s((e,t)=>(...r)=>{let i=e(...r);return`\x1B[${38+t};5;${i}m`},"wrapAnsi256"),gp=s((e,t)=>(...r)=>{let i=e(...r);return`\x1B[${38+t};2;${i[0]};${i[1]};${i[2]}m`},"wrapAnsi16m"),ea=s(e=>e,"ansi2ansi"),mp=s((e,t,r)=>[e,t,r],"rgb2rgb"),Sr=s((e,t,r)=>{Object.defineProperty(e,t,{get:s(()=>{let i=r();return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0}),i},"get"),enumerable:!0,configurable:!0})},"setLazyProperty"),ru,Ar=s((e,t,r,i)=>{ru===void 0&&(ru=fp());let n=i?10:0,a={};for(let[o,u]of Object.entries(ru)){let h=o==="ansi16"?"ansi":o;o===t?a[h]=e(r,n):typeof u=="object"&&(a[h]=e(u[t],n))}return a},"makeDynamicStyles");function jy(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,i]of Object.entries(t)){for(let[n,a]of Object.entries(i))t[n]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},i[n]=t[n],e.set(a[0],a[1]);Object.defineProperty(t,r,{value:i,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",Sr(t.color,"ansi",()=>Ar(dp,"ansi16",ea,!1)),Sr(t.color,"ansi256",()=>Ar(pp,"ansi256",ea,!1)),Sr(t.color,"ansi16m",()=>Ar(gp,"rgb",mp,!1)),Sr(t.bgColor,"ansi",()=>Ar(dp,"ansi16",ea,!0)),Sr(t.bgColor,"ansi256",()=>Ar(pp,"ansi256",ea,!0)),Sr(t.bgColor,"ansi16m",()=>Ar(gp,"rgb",mp,!0)),t}s(jy,"assembleStyles");Object.defineProperty(Dp,"exports",{enumerable:!0,get:jy})});var bp=D((Fx,wp)=>{"use strict";var Fi=np(),zy=Xn(),Hy=vp(),nu=new Set(["\x1B","\x9B"]),Gy=39,yp=s(e=>`${nu.values().next().value}[${e}m`,"wrapAnsi"),$y=s(e=>e.split(" ").map(t=>Fi(t)),"wordLengths"),iu=s((e,t,r)=>{let i=[...t],n=!1,a=Fi(zy(e[e.length-1]));for(let[o,u]of i.entries()){let h=Fi(u);if(a+h<=r?e[e.length-1]+=u:(e.push(u),a=0),nu.has(u))n=!0;else if(n&&u==="m"){n=!1;continue}n||(a+=h,a===r&&o<i.length-1&&(e.push(""),a=0))}!a&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},"wrapWord"),Zy=s(e=>{let t=e.split(" "),r=t.length;for(;r>0&&!(Fi(t[r-1])>0);)r--;return r===t.length?e:t.slice(0,r).join(" ")+t.slice(r).join("")},"stringVisibleTrimSpacesRight"),Ky=s((e,t,r={})=>{if(r.trim!==!1&&e.trim()==="")return"";let i="",n="",a,o=$y(e),u=[""];for(let[h,l]of e.split(" ").entries()){r.trim!==!1&&(u[u.length-1]=u[u.length-1].trimLeft());let c=Fi(u[u.length-1]);if(h!==0&&(c>=t&&(r.wordWrap===!1||r.trim===!1)&&(u.push(""),c=0),(c>0||r.trim===!1)&&(u[u.length-1]+=" ",c++)),r.hard&&o[h]>t){let f=t-c,d=1+Math.floor((o[h]-f-1)/t);Math.floor((o[h]-1)/t)<d&&u.push(""),iu(u,l,t);continue}if(c+o[h]>t&&c>0&&o[h]>0){if(r.wordWrap===!1&&c<t){iu(u,l,t);continue}u.push("")}if(c+o[h]>t&&r.wordWrap===!1){iu(u,l,t);continue}u[u.length-1]+=l}r.trim!==!1&&(u=u.map(Zy)),i=u.join(`
29
- `);for(let[h,l]of[...i].entries()){if(n+=l,nu.has(l)){let f=parseFloat(/\d[^m]*/.exec(i.slice(h,h+4)));a=f===Gy?null:f}let c=Hy.codes.get(Number(a));a&&c&&(i[h+1]===`
30
- `?n+=yp(c):l===`
31
- `&&(n+=yp(a)))}return n},"exec");wp.exports=(e,t,r)=>String(e).normalize().replace(/\r\n/g,`
28
+ `;throw console.warn(c),new Error("Plugin dependency not found")},"requireDependencyOrDie"),r=new Set(this.names),i=s(({name:n,dependencies:a})=>{if(!a)return;let o=s((l,h)=>{let u=t(n,l);h=h||this._dependencyDefaults.get(l)||{};let c=u(h);if(r.has(c.name)){Se(n,"=> dependency already exists:",c.name);return}return r.add(c.name),Se(n,"=> adding new dependency:",c.name,h),this.add(c),i(c)},"processDependency");if(a instanceof Set||Array.isArray(a))return[...a].forEach(l=>o(l));if(a instanceof Map)return a.forEach((l,h)=>o(h,l))},"recursivelyLoadMissingDependencies");this.list.forEach(i)}resolveDependencies(){Se("resolveDependencies"),this.resolvePluginsStanza(),this.resolveDependenciesStanza()}};s(Oo,"PluginList");var bi=Oo,Me=Po("playwright-extra"),Uo=class Uo{constructor(t){this._launcher=t,this.plugins=new bi}use(t){if(!(t&&"name"in t))throw new Error("A plugin must be provided to .use()");return this.plugins.add(t)&&Me("Plugin registered",t.name),this}get launcher(){if(!this._launcher)throw $e.requireError;return this._launcher}async launch(...t){if(!this.launcher.launch)throw new Error('Launcher does not support "launch"');let[r]=t;r=Object.assign({args:[]},r||{}),Me("launch",r),this.plugins.prepare(),r=await this.plugins.dispatchBlocking("beforeLaunch",r)||r,Me("launch with options",r),"userDataDir"in r&&(Me("A plugin defined userDataDir during .launch, which isn't supported by playwright - ignoring"),delete r.userDataDir);let i=await this.launcher.launch(r);return await this.plugins.dispatchBlocking("onBrowser",i),await this._bindBrowserEvents(i),await this.plugins.dispatchBlocking("afterLaunch",i),i}async launchPersistentContext(...t){if(!this.launcher.launchPersistentContext)throw new Error('Launcher does not support "launchPersistentContext"');let[r,i]=t;i=Object.assign({args:[]},i||{}),Me("launchPersistentContext",i),this.plugins.prepare(),i=await this.plugins.dispatchBlocking("beforeLaunch",i)||i;let n=await this.launcher.launchPersistentContext(r,i);return await this.plugins.dispatchBlocking("afterLaunch",n),this._bindBrowserContextEvents(n),n}async connect(t,r={}){if(!this.launcher.connect)throw new Error('Launcher does not support "connect"');this.plugins.prepare();let i={},n=!1;typeof t=="object"?i=Object.assign(Object.assign({},t),r):(n=!0,i=Object.assign({wsEndpoint:t},r)),Me("connect",i),i=await this.plugins.dispatchBlocking("beforeConnect",i)||i;let a=[],o=i.wsEndpoint;n?(delete i.wsEndpoint,a.push(o,i)):a.push(i);let l=await this.launcher.connect(...a);return await this.plugins.dispatchBlocking("onBrowser",l),await this._bindBrowserEvents(l),await this.plugins.dispatchBlocking("afterConnect",l),l}async connectOverCDP(t,r={}){if(!this.launcher.connectOverCDP)throw new Error("Launcher does not implement 'connectOverCDP'");this.plugins.prepare();let i={},n=!1;typeof t=="object"?i=Object.assign(Object.assign({},t),r):(n=!0,i=Object.assign({endpointURL:t},r)),Me("connectOverCDP"),i=await this.plugins.dispatchBlocking("beforeConnect",i)||i;let a=[],o=i.endpointURL;n?(delete i.endpointURL,a.push(o,i)):a.push(i);let l=await this.launcher.connectOverCDP(...a);return await this.plugins.dispatchBlocking("onBrowser",l),await this._bindBrowserEvents(l),await this.plugins.dispatchBlocking("afterConnect",l),l}async _bindBrowserContextEvents(t,r){Me("_bindBrowserContextEvents"),this.plugins.dispatch("onContextCreated",t,r),t.newPage=((i,n)=>async()=>{let a=await i.call(n);return await a.goto("about:blank"),a})(t.newPage,t),t.on("close",()=>{t.browser()||this.plugins.dispatch("onDisconnected")}),t.on("page",i=>{this.plugins.dispatch("onPageCreated",i),i.on("close",()=>{this.plugins.dispatch("onPageClose",i)})})}async _bindBrowserEvents(t){Me("_bindPlaywrightBrowserEvents"),t.on("disconnected",()=>{this.plugins.dispatch("onDisconnected",t)}),t.newContext=((r,i)=>async(n={})=>{let a=await this.plugins.dispatchBlocking("beforeContext",n,t)||n,o=await r.call(i,a);return this._bindBrowserContextEvents(o,a),o})(t.newContext,t)}};s(Uo,"PlaywrightExtraClass");var Ci=Uo,Mo=new Proxy(Ci,{construct(e,t){Me(`create instance of ${e.name}`);let r=Reflect.construct(e,t);return new Proxy(r,{get(i,n){return n in i?Reflect.get(i,n):(Me("proxying property to original launcher: ",n),Reflect.get(i.launcher,n))}})}}),_i=s(e=>new Mo(e),"addExtra"),xd=_i(($e.loadModule()||{}).chromium),Sd=_i(($e.loadModule()||{}).firefox),Ed=_i(($e.loadModule()||{}).webkit),Fd=$e.lazyloadExportOrDie("_android"),Ad=$e.lazyloadExportOrDie("_electron"),Td=$e.lazyloadExportOrDie("request"),Rd=$e.lazyloadExportOrDie("selectors"),Pd=$e.lazyloadExportOrDie("devices"),Id=$e.lazyloadExportOrDie("errors"),Sy={PlaywrightExtra:Mo,PlaywrightExtraClass:Ci,PluginList:bi,addExtra:_i,chromium:xd,firefox:Sd,webkit:Ed,_android:Fd,_electron:Ad,request:Td,selectors:Rd,devices:Pd,errors:Id};te.PlaywrightExtra=Mo;te.PlaywrightExtraClass=Ci;te.PluginList=bi;te._android=Fd;te._electron=Ad;te.addExtra=_i;te.chromium=xd;te.default=Sy;te.devices=Pd;te.errors=Id;te.firefox=Sd;te.request=Td;te.selectors=Rd;te.webkit=Ed;Lo.exports=te.default||{};Object.entries(te).forEach(([e,t])=>{Lo.exports[e]=t})});var Jn=m((H1,jd)=>{var Yo=require("tty"),Wd,Kn,qd,Ay=((qd=(Kn=(Wd=Yo==null?void 0:Yo.WriteStream)==null?void 0:Wd.prototype)==null?void 0:Kn.hasColors)==null?void 0:qd.call(Kn))??!1,P=s((e,t)=>{if(!Ay)return n=>n;let r=`\x1B[${e}m`,i=`\x1B[${t}m`;return n=>{let a=n+"",o=a.indexOf(i);if(o===-1)return r+a+i;let l=r,h=0;for(;o!==-1;)l+=a.slice(h,o)+r,h=o+i.length,o=a.indexOf(i,h);return l+=a.slice(h)+i,l}},"format"),R={};R.reset=P(0,0);R.bold=P(1,22);R.dim=P(2,22);R.italic=P(3,23);R.underline=P(4,24);R.overline=P(53,55);R.inverse=P(7,27);R.hidden=P(8,28);R.strikethrough=P(9,29);R.black=P(30,39);R.red=P(31,39);R.green=P(32,39);R.yellow=P(33,39);R.blue=P(34,39);R.magenta=P(35,39);R.cyan=P(36,39);R.white=P(37,39);R.gray=P(90,39);R.bgBlack=P(40,49);R.bgRed=P(41,49);R.bgGreen=P(42,49);R.bgYellow=P(43,49);R.bgBlue=P(44,49);R.bgMagenta=P(45,49);R.bgCyan=P(46,49);R.bgWhite=P(47,49);R.bgGray=P(100,49);R.redBright=P(91,39);R.greenBright=P(92,39);R.yellowBright=P(93,39);R.blueBright=P(94,39);R.magentaBright=P(95,39);R.cyanBright=P(96,39);R.whiteBright=P(97,39);R.bgRedBright=P(101,49);R.bgGreenBright=P(102,49);R.bgYellowBright=P(103,49);R.bgBlueBright=P(104,49);R.bgMagentaBright=P(105,49);R.bgCyanBright=P(106,49);R.bgWhiteBright=P(107,49);jd.exports=R});var zd=m(($1,Ty)=>{Ty.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var $d=m((Z1,Gd)=>{"use strict";var Yn=Object.assign({},zd()),Hd=Object.keys(Yn);Object.defineProperty(Yn,"random",{get(){let e=Math.floor(Math.random()*Hd.length),t=Hd[e];return Yn[t]}});Gd.exports=Yn});var Yd=m((gx,Jd)=>{"use strict";Jd.exports=Py;function Ry(e){let t={defaultWidth:0,output:process.stdout,tty:require("tty")};return e?(Object.keys(t).forEach(function(r){e[r]||(e[r]=t[r])}),e):t}s(Ry,"normalizeOpts");function Py(e){let t=Ry(e);if(t.output.getWindowSize)return t.output.getWindowSize()[0]||t.defaultWidth;if(t.tty.getWindowSize)return t.tty.getWindowSize()[1]||t.defaultWidth;if(t.output.columns)return t.output.columns;if(process.env.CLI_WIDTH){let r=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(r)&&r!==0)return r}return t.defaultWidth}s(Py,"cliWidth")});var Qd=m((Dx,Xd)=>{"use strict";Xd.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var Qn=m((vx,ep)=>{"use strict";var Iy=Qd();ep.exports=e=>typeof e=="string"?e.replace(Iy(),""):e});var rp=m((yx,el)=>{"use strict";var tp=s(e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141),"isFullwidthCodePoint");el.exports=tp;el.exports.default=tp});var np=m((bx,ip)=>{"use strict";ip.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var sp=m((Cx,tl)=>{"use strict";var My=Qn(),Ly=rp(),By=np(),ap=s(e=>{if(typeof e!="string"||e.length===0||(e=My(e),e.length===0))return 0;e=e.replace(By()," ");let t=0;for(let r=0;r<e.length;r++){let i=e.codePointAt(r);i<=31||i>=127&&i<=159||i>=768&&i<=879||(i>65535&&r++,t+=Ly(i)?2:1)}return t},"stringWidth");tl.exports=ap;tl.exports.default=ap});var lp=m((kx,op)=>{"use strict";op.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var rl=m((xx,cp)=>{var Fi=lp(),up={};for(let e of Object.keys(Fi))up[Fi[e]]=e;var x={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};cp.exports=x;for(let e of Object.keys(x)){if(!("channels"in x[e]))throw new Error("missing channels property: "+e);if(!("labels"in x[e]))throw new Error("missing channel labels property: "+e);if(x[e].labels.length!==x[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=x[e];delete x[e].channels,delete x[e].labels,Object.defineProperty(x[e],"channels",{value:t}),Object.defineProperty(x[e],"labels",{value:r})}x.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,l,h;a===n?l=0:t===a?l=(r-i)/o:r===a?l=2+(i-t)/o:i===a&&(l=4+(t-r)/o),l=Math.min(l*60,360),l<0&&(l+=360);let u=(n+a)/2;return a===n?h=0:u<=.5?h=o/(a+n):h=o/(2-a-n),[l,h*100,u*100]};x.rgb.hsv=function(e){let t,r,i,n,a,o=e[0]/255,l=e[1]/255,h=e[2]/255,u=Math.max(o,l,h),c=u-Math.min(o,l,h),f=s(function(d){return(u-d)/6/c+1/2},"diffc");return c===0?(n=0,a=0):(a=c/u,t=f(o),r=f(l),i=f(h),o===u?n=i-r:l===u?n=1/3+t-i:h===u&&(n=2/3+r-t),n<0?n+=1:n>1&&(n-=1)),[n*360,a*100,u*100]};x.rgb.hwb=function(e){let t=e[0],r=e[1],i=e[2],n=x.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(r,i));return i=1-1/255*Math.max(t,Math.max(r,i)),[n,a*100,i*100]};x.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(1-t,1-r,1-i),a=(1-t-n)/(1-n)||0,o=(1-r-n)/(1-n)||0,l=(1-i-n)/(1-n)||0;return[a*100,o*100,l*100,n*100]};function Oy(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}s(Oy,"comparativeDistance");x.rgb.keyword=function(e){let t=up[e];if(t)return t;let r=1/0,i;for(let n of Object.keys(Fi)){let a=Fi[n],o=Oy(e,a);o<r&&(r=o,i=n)}return i};x.keyword.rgb=function(e){return Fi[e]};x.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;let n=t*.4124+r*.3576+i*.1805,a=t*.2126+r*.7152+i*.0722,o=t*.0193+r*.1192+i*.9505;return[n*100,a*100,o*100]};x.rgb.lab=function(e){let t=x.rgb.xyz(e),r=t[0],i=t[1],n=t[2];r/=95.047,i/=100,n/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let a=116*i-16,o=500*(r-i),l=200*(i-n);return[a,o,l]};x.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,i=e[2]/100,n,a,o;if(r===0)return o=i*255,[o,o,o];i<.5?n=i*(1+r):n=i+r-i*r;let l=2*i-n,h=[0,0,0];for(let u=0;u<3;u++)a=t+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?o=l+(n-l)*6*a:2*a<1?o=n:3*a<2?o=l+(n-l)*(2/3-a)*6:o=l,h[u]=o*255;return h};x.hsl.hsv=function(e){let t=e[0],r=e[1]/100,i=e[2]/100,n=r,a=Math.max(i,.01);i*=2,r*=i<=1?i:2-i,n*=a<=1?a:2-a;let o=(i+r)/2,l=i===0?2*n/(a+n):2*r/(i+r);return[t,l*100,o*100]};x.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,i=e[2]/100,n=Math.floor(t)%6,a=t-Math.floor(t),o=255*i*(1-r),l=255*i*(1-r*a),h=255*i*(1-r*(1-a));switch(i*=255,n){case 0:return[i,h,o];case 1:return[l,i,o];case 2:return[o,i,h];case 3:return[o,l,i];case 4:return[h,o,i];case 5:return[i,o,l]}};x.hsv.hsl=function(e){let t=e[0],r=e[1]/100,i=e[2]/100,n=Math.max(i,.01),a,o;o=(2-r)*i;let l=(2-r)*n;return a=r*n,a/=l<=1?l:2-l,a=a||0,o/=2,[t,a*100,o*100]};x.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,i=e[2]/100,n=r+i,a;n>1&&(r/=n,i/=n);let o=Math.floor(6*t),l=1-i;a=6*t-o,o&1&&(a=1-a);let h=r+a*(l-r),u,c,f;switch(o){default:case 6:case 0:u=l,c=h,f=r;break;case 1:u=h,c=l,f=r;break;case 2:u=r,c=l,f=h;break;case 3:u=r,c=h,f=l;break;case 4:u=h,c=r,f=l;break;case 5:u=l,c=r,f=h;break}return[u*255,c*255,f*255]};x.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,i=e[2]/100,n=e[3]/100,a=1-Math.min(1,t*(1-n)+n),o=1-Math.min(1,r*(1-n)+n),l=1-Math.min(1,i*(1-n)+n);return[a*255,o*255,l*255]};x.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,i=e[2]/100,n,a,o;return n=t*3.2406+r*-1.5372+i*-.4986,a=t*-.9689+r*1.8758+i*.0415,o=t*.0557+r*-.204+i*1.057,n=n>.0031308?1.055*n**(1/2.4)-.055:n*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,n=Math.min(Math.max(0,n),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[n*255,a*255,o*255]};x.xyz.lab=function(e){let t=e[0],r=e[1],i=e[2];t/=95.047,r/=100,i/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let n=116*r-16,a=500*(t-r),o=200*(r-i);return[n,a,o]};x.lab.xyz=function(e){let t=e[0],r=e[1],i=e[2],n,a,o;a=(t+16)/116,n=r/500+a,o=a-i/200;let l=a**3,h=n**3,u=o**3;return a=l>.008856?l:(a-16/116)/7.787,n=h>.008856?h:(n-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,n*=95.047,a*=100,o*=108.883,[n,a,o]};x.lab.lch=function(e){let t=e[0],r=e[1],i=e[2],n;n=Math.atan2(i,r)*360/2/Math.PI,n<0&&(n+=360);let o=Math.sqrt(r*r+i*i);return[t,o,n]};x.lch.lab=function(e){let t=e[0],r=e[1],n=e[2]/360*2*Math.PI,a=r*Math.cos(n),o=r*Math.sin(n);return[t,a,o]};x.rgb.ansi16=function(e,t=null){let[r,i,n]=e,a=t===null?x.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let o=30+(Math.round(n/255)<<2|Math.round(i/255)<<1|Math.round(r/255));return a===2&&(o+=60),o};x.hsv.ansi16=function(e){return x.rgb.ansi16(x.hsv.rgb(e),e[2])};x.rgb.ansi256=function(e){let t=e[0],r=e[1],i=e[2];return t===r&&r===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)};x.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,i=(t&1)*r*255,n=(t>>1&1)*r*255,a=(t>>2&1)*r*255;return[i,n,a]};x.ansi256.rgb=function(e){if(e>=232){let a=(e-232)*10+8;return[a,a,a]}e-=16;let t,r=Math.floor(e/36)/5*255,i=Math.floor((t=e%36)/6)/5*255,n=t%6/5*255;return[r,i,n]};x.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};x.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(l=>l+l).join(""));let i=parseInt(r,16),n=i>>16&255,a=i>>8&255,o=i&255;return[n,a,o]};x.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.max(Math.max(t,r),i),a=Math.min(Math.min(t,r),i),o=n-a,l,h;return o<1?l=a/(1-o):l=0,o<=0?h=0:n===t?h=(r-i)/o%6:n===r?h=2+(i-t)/o:h=4+(t-r)/o,h/=6,h%=1,[h*360,o*100,l*100]};x.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,i=r<.5?2*t*r:2*t*(1-r),n=0;return i<1&&(n=(r-.5*i)/(1-i)),[e[0],i*100,n*100]};x.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,i=t*r,n=0;return i<1&&(n=(r-i)/(1-i)),[e[0],i*100,n*100]};x.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,i=e[2]/100;if(r===0)return[i*255,i*255,i*255];let n=[0,0,0],a=t%1*6,o=a%1,l=1-o,h=0;switch(Math.floor(a)){case 0:n[0]=1,n[1]=o,n[2]=0;break;case 1:n[0]=l,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=o;break;case 3:n[0]=0,n[1]=l,n[2]=1;break;case 4:n[0]=o,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=l}return h=(1-r)*i,[(r*n[0]+h)*255,(r*n[1]+h)*255,(r*n[2]+h)*255]};x.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,i=t+r*(1-t),n=0;return i>0&&(n=t/i),[e[0],n*100,i*100]};x.hcg.hsl=function(e){let t=e[1]/100,i=e[2]/100*(1-t)+.5*t,n=0;return i>0&&i<.5?n=t/(2*i):i>=.5&&i<1&&(n=t/(2*(1-i))),[e[0],n*100,i*100]};x.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,i=t+r*(1-t);return[e[0],(i-t)*100,(1-i)*100]};x.hwb.hcg=function(e){let t=e[1]/100,i=1-e[2]/100,n=i-t,a=0;return n<1&&(a=(i-n)/(1-n)),[e[0],n*100,a*100]};x.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};x.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};x.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};x.gray.hsl=function(e){return[0,0,e[0]]};x.gray.hsv=x.gray.hsl;x.gray.hwb=function(e){return[0,100,e[0]]};x.gray.cmyk=function(e){return[0,0,0,e[0]]};x.gray.lab=function(e){return[e[0],0,0]};x.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,i=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(i.length)+i};x.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var fp=m((Ex,hp)=>{var ea=rl();function Uy(){let e={},t=Object.keys(ea);for(let r=t.length,i=0;i<r;i++)e[t[i]]={distance:-1,parent:null};return e}s(Uy,"buildGraph");function Ny(e){let t=Uy(),r=[e];for(t[e].distance=0;r.length;){let i=r.pop(),n=Object.keys(ea[i]);for(let a=n.length,o=0;o<a;o++){let l=n[o],h=t[l];h.distance===-1&&(h.distance=t[i].distance+1,h.parent=i,r.unshift(l))}}return t}s(Ny,"deriveBFS");function Wy(e,t){return function(r){return t(e(r))}}s(Wy,"link");function qy(e,t){let r=[t[e].parent,e],i=ea[t[e].parent][e],n=t[e].parent;for(;t[n].parent;)r.unshift(t[n].parent),i=Wy(ea[t[n].parent][n],i),n=t[n].parent;return i.conversion=r,i}s(qy,"wrapConversion");hp.exports=function(e){let t=Ny(e),r={},i=Object.keys(t);for(let n=i.length,a=0;a<n;a++){let o=i[a];t[o].parent!==null&&(r[o]=qy(o,t))}return r}});var pp=m((Ax,dp)=>{var il=rl(),jy=fp(),Fr={},zy=Object.keys(il);function Hy(e){let t=s(function(...r){let i=r[0];return i==null?i:(i.length>1&&(r=i),e(r))},"wrappedFn");return"conversion"in e&&(t.conversion=e.conversion),t}s(Hy,"wrapRaw");function Gy(e){let t=s(function(...r){let i=r[0];if(i==null)return i;i.length>1&&(r=i);let n=e(r);if(typeof n=="object")for(let a=n.length,o=0;o<a;o++)n[o]=Math.round(n[o]);return n},"wrappedFn");return"conversion"in e&&(t.conversion=e.conversion),t}s(Gy,"wrapRounded");zy.forEach(e=>{Fr[e]={},Object.defineProperty(Fr[e],"channels",{value:il[e].channels}),Object.defineProperty(Fr[e],"labels",{value:il[e].labels});let t=jy(e);Object.keys(t).forEach(i=>{let n=t[i];Fr[e][i]=Gy(n),Fr[e][i].raw=Hy(n)})});dp.exports=Fr});var wp=m((Rx,yp)=>{"use strict";var gp=s((e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,"wrapAnsi16"),mp=s((e,t)=>(...r)=>{let i=e(...r);return`\x1B[${38+t};5;${i}m`},"wrapAnsi256"),Dp=s((e,t)=>(...r)=>{let i=e(...r);return`\x1B[${38+t};2;${i[0]};${i[1]};${i[2]}m`},"wrapAnsi16m"),ta=s(e=>e,"ansi2ansi"),vp=s((e,t,r)=>[e,t,r],"rgb2rgb"),Ar=s((e,t,r)=>{Object.defineProperty(e,t,{get:s(()=>{let i=r();return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0}),i},"get"),enumerable:!0,configurable:!0})},"setLazyProperty"),nl,Tr=s((e,t,r,i)=>{nl===void 0&&(nl=pp());let n=i?10:0,a={};for(let[o,l]of Object.entries(nl)){let h=o==="ansi16"?"ansi":o;o===t?a[h]=e(r,n):typeof l=="object"&&(a[h]=e(l[t],n))}return a},"makeDynamicStyles");function $y(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,i]of Object.entries(t)){for(let[n,a]of Object.entries(i))t[n]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},i[n]=t[n],e.set(a[0],a[1]);Object.defineProperty(t,r,{value:i,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",Ar(t.color,"ansi",()=>Tr(gp,"ansi16",ta,!1)),Ar(t.color,"ansi256",()=>Tr(mp,"ansi256",ta,!1)),Ar(t.color,"ansi16m",()=>Tr(Dp,"rgb",vp,!1)),Ar(t.bgColor,"ansi",()=>Tr(gp,"ansi16",ta,!0)),Ar(t.bgColor,"ansi256",()=>Tr(mp,"ansi256",ta,!0)),Ar(t.bgColor,"ansi16m",()=>Tr(Dp,"rgb",vp,!0)),t}s($y,"assembleStyles");Object.defineProperty(yp,"exports",{enumerable:!0,get:$y})});var _p=m((Ix,Cp)=>{"use strict";var Ai=sp(),Zy=Qn(),Vy=wp(),sl=new Set(["\x1B","\x9B"]),Ky=39,bp=s(e=>`${sl.values().next().value}[${e}m`,"wrapAnsi"),Jy=s(e=>e.split(" ").map(t=>Ai(t)),"wordLengths"),al=s((e,t,r)=>{let i=[...t],n=!1,a=Ai(Zy(e[e.length-1]));for(let[o,l]of i.entries()){let h=Ai(l);if(a+h<=r?e[e.length-1]+=l:(e.push(l),a=0),sl.has(l))n=!0;else if(n&&l==="m"){n=!1;continue}n||(a+=h,a===r&&o<i.length-1&&(e.push(""),a=0))}!a&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},"wrapWord"),Yy=s(e=>{let t=e.split(" "),r=t.length;for(;r>0&&!(Ai(t[r-1])>0);)r--;return r===t.length?e:t.slice(0,r).join(" ")+t.slice(r).join("")},"stringVisibleTrimSpacesRight"),Xy=s((e,t,r={})=>{if(r.trim!==!1&&e.trim()==="")return"";let i="",n="",a,o=Jy(e),l=[""];for(let[h,u]of e.split(" ").entries()){r.trim!==!1&&(l[l.length-1]=l[l.length-1].trimLeft());let c=Ai(l[l.length-1]);if(h!==0&&(c>=t&&(r.wordWrap===!1||r.trim===!1)&&(l.push(""),c=0),(c>0||r.trim===!1)&&(l[l.length-1]+=" ",c++)),r.hard&&o[h]>t){let f=t-c,d=1+Math.floor((o[h]-f-1)/t);Math.floor((o[h]-1)/t)<d&&l.push(""),al(l,u,t);continue}if(c+o[h]>t&&c>0&&o[h]>0){if(r.wordWrap===!1&&c<t){al(l,u,t);continue}l.push("")}if(c+o[h]>t&&r.wordWrap===!1){al(l,u,t);continue}l[l.length-1]+=u}r.trim!==!1&&(l=l.map(Yy)),i=l.join(`
29
+ `);for(let[h,u]of[...i].entries()){if(n+=u,sl.has(u)){let f=parseFloat(/\d[^m]*/.exec(i.slice(h,h+4)));a=f===Ky?null:f}let c=Vy.codes.get(Number(a));a&&c&&(i[h+1]===`
30
+ `?n+=bp(c):u===`
31
+ `&&(n+=bp(a)))}return n},"exec");Cp.exports=(e,t,r)=>String(e).normalize().replace(/\r\n/g,`
32
32
  `).split(`
33
- `).map(i=>Ky(i,t,r)).join(`
34
- `)});var Sp=D((Gx,Fp)=>{var Yy=require("stream"),Tr,Ze,ia,na,uu=class uu extends Yy{constructor(r={}){super(r);we(this,Ze);we(this,Tr,null);this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=r.replace,this._prompt=r.prompt||null,this._hadControl=!1}get isTTY(){return T(this,Tr)!==null?T(this,Tr):Ue(this,Ze,ia).call(this,"isTTY",!1)}set isTTY(r){Ke(this,Tr,r)}get rows(){return Ue(this,Ze,ia).call(this,"rows")}get columns(){return Ue(this,Ze,ia).call(this,"columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(r){this._src=r}pipe(r,i){return this._dest=r,super.pipe(r,i)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(r){if(this.muted){if(!this.replace)return!0;if(r.match(/^\u001b/))return r.indexOf(this._prompt)===0&&(r=r.slice(this._prompt.length),r=r.replace(/./g,this.replace),r=this._prompt+r),this._hadControl=!0,this.emit("data",r);this._prompt&&this._hadControl&&r.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),r=r.slice(this._prompt.length)),r=r.toString().replace(/./g,this.replace)}this.emit("data",r)}end(r){this.muted&&(r&&this.replace?r=r.toString().replace(/./g,this.replace):r=null),r&&this.emit("data",r),this.emit("end")}destroy(...r){return Ue(this,Ze,na).call(this,"destroy",...r)}destroySoon(...r){return Ue(this,Ze,na).call(this,"destroySoon",...r)}close(...r){return Ue(this,Ze,na).call(this,"close",...r)}};Tr=new WeakMap,Ze=new WeakSet,ia=s(function(r,i){return this._dest?this._dest[r]:this._src?this._src[r]:i},"#destSrc"),na=s(function(r,...i){var n,a;typeof((n=this._dest)==null?void 0:n[r])=="function"&&this._dest[r](...i),typeof((a=this._src)==null?void 0:a[r])=="function"&&this._src[r](...i)},"#proxy"),s(uu,"MuteStream");var ou=uu;Fp.exports=ou});var wu=D((Qx,yu)=>{"use strict";var M=yu.exports;yu.exports.default=M;var N="\x1B[",Ai="\x1B]",Mr="\x07",ua=";",Pp=process.env.TERM_PROGRAM==="Apple_Terminal";M.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?N+(e+1)+"G":N+(t+1)+";"+(e+1)+"H"};M.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=N+-e+"D":e>0&&(r+=N+e+"C"),t<0?r+=N+-t+"A":t>0&&(r+=N+t+"B"),r};M.cursorUp=(e=1)=>N+e+"A";M.cursorDown=(e=1)=>N+e+"B";M.cursorForward=(e=1)=>N+e+"C";M.cursorBackward=(e=1)=>N+e+"D";M.cursorLeft=N+"G";M.cursorSavePosition=Pp?"\x1B7":N+"s";M.cursorRestorePosition=Pp?"\x1B8":N+"u";M.cursorGetPosition=N+"6n";M.cursorNextLine=N+"E";M.cursorPrevLine=N+"F";M.cursorHide=N+"?25l";M.cursorShow=N+"?25h";M.eraseLines=e=>{let t="";for(let r=0;r<e;r++)t+=M.eraseLine+(r<e-1?M.cursorUp():"");return e&&(t+=M.cursorLeft),t};M.eraseEndLine=N+"K";M.eraseStartLine=N+"1K";M.eraseLine=N+"2K";M.eraseDown=N+"J";M.eraseUp=N+"1J";M.eraseScreen=N+"2J";M.scrollUp=N+"S";M.scrollDown=N+"T";M.clearScreen="\x1Bc";M.clearTerminal=process.platform==="win32"?`${M.eraseScreen}${N}0f`:`${M.eraseScreen}${N}3J${N}H`;M.beep=Mr;M.link=(e,t)=>[Ai,"8",ua,ua,t,Mr,e,Ai,"8",ua,ua,Mr].join("");M.image=(e,t={})=>{let r=`${Ai}1337;File=inline=1`;return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+e.toString("base64")+Mr};M.iTerm={setCwd:s((e=process.cwd())=>`${Ai}50;CurrentDir=${e}${Mr}`,"setCwd"),annotation:s((e,t={})=>{let r=`${Ai}1337;`,i=typeof t.x<"u",n=typeof t.y<"u";if((i||n)&&!(i&&n&&typeof t.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?r+=(i?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):r+=e,r+Mr},"annotation")}});var Gv=require("@playwright/test");var Ni="checksum";var Br=J(require("path"));var O=s(e=>new Promise(t=>setTimeout(t,e)),"awaitSleep"),pe=s(async(e,t=1e3,r="guardReturnTimedOut")=>{if(t===null)return e;let i="guard-timed-out",n=s(async()=>(await O(t+1e3),i),"guard"),a=await Promise.race([e,n()]);if(typeof a=="string"&&a===i)throw new Error(r);return a},"guardReturn");var Hu=s((e,t,r)=>{if(!t)return e;if(!r||!r.length)return e.locator(t);let i=e.frameLocator(r[0]);for(let n of r.slice(1))i=i.frameLocator(n);return i.locator(t)},"makeLocator");function Ea(){return process.env.CHECKSUM_ROOT_FOLDER?process.env.CHECKSUM_ROOT_FOLDER:Br.join(__dirname,"..","..","..","checksum")}s(Ea,"checksumFolder");function Gu({isInit:e,excludeLogin:t}){return[...e?["example.checksum.spec.ts","github-actions.example.yml"]:[],...t?[]:["login.ts"],"checksum.config.ts","playwright.config.ts","README.md",".gitignore.example"]}s(Gu,"getRuntimeFiles");var $u=require("path"),Zu=require("fs");var ag=!0,Sa=class Sa{constructor(t,r,i,n,a){this.evaluateWithChecksum=t;this.getPage=r;this.getTimeMachinePage=i;this.logger=n;this.options=a;this.newPagesIds=[];this.performFileUploadAction=s(async(t,r)=>{if(!await t.evaluate(n=>n.tagName==="INPUT"&&n.getAttribute("type")==="file"))throw new Error("File upload action performed on non-file input element");let i=r.files.map(n=>(0,$u.join)(this.options.testAssetsDir,n)).filter(n=>(0,Zu.existsSync)(n)?!0:(this.logger.log(`Upload file not found: ${n}. Filtering out.`),!1));if(!i.length)throw new Error("No files to upload");await this.actionGuardReturn(t.setInputFiles(i),"Set input files timeout")},"performFileUploadAction");this.getSelectionDataForAction=s(async(t,r)=>t.checksumid?this.getSelectionDataForChecksumId(t.checksumid,r):t.position?await this.evaluateWithChecksum(async([i,n])=>window.checksum.testGenerator.getSelectorByPosition(i,n),[t.position.x,t.position.y]):t.selector?{selector:t.selector,locator:`locator("${t.selector}")`}:{selector:"",locator:""},"getSelectionDataForAction")}init(){let t=this.getPage();t.on("filechooser",async r=>{this.logger.log("File chooser event detected"),this.fileChooser=r}),t.context().on("page",r=>{this.newPagesIds.push(r._guid)})}getOpenedFileChooser(){if(this.fileChooser){let t=this.fileChooser;return this.fileChooser=void 0,t}return null}async handleFileChooserEvent(){let t=this.getOpenedFileChooser();if(!t)return{};let r="fc_"+Math.random().toString(36).slice(2,4);return await this.evaluateWithChecksum(async([i,n])=>{window.checksum.testGenerator.addForceIncludeElement(n,i)},[r,t.element()]),{interruptionEvent:"fileUploadOpenedEvent",payload:{checksumid:r}}}async addMoreItemsToDom(t,r){let i=t.querySelector(`[checksum-get-more-items='${r}']`);if(!i)throw new Error("Get more items root not found");let{items:n,hasMoreItems:a}=await this.getMoreItemsForTemplate(r);i.innerHTML=i.innerHTML+n,a||i.removeAttribute("checksum-get-more-items")}async getPageInfo(t){return{id:t._guid,url:t.url(),title:await t.title(),new:this.newPagesIds.includes(t._guid),active:t._guid===this.getPage()._guid}}async getTabsInfo(){let t=await Promise.all(this.getPage().context().pages().map(r=>this.getPageInfo(r)));return this.newPagesIds=[],t}async translateActionResponseToAgentPotentialAction(t,{pageId:r,makeStaticMetadataForESRA:i}={}){let n=structuredClone(t.actionHiddenOverride??t.action),{selector:a,locator:o,clickOffset:u,selectOptionValue:h,parentFramesSelectors:l}=await this.getSelectionDataForAction(n,t.actionHiddenOverride),c=await this.getESRAForSelector(a,l,i);if(!c&&a&&this.logger.logError("Error getting ESRA metadata"),(c==null?void 0:c.tag)==="select")switch(this.getActionEventCode(n.type)){case"input":n.type="selectoption";break;case"click":h&&(n.type="selectoption",n.value=h);break}let f={eventCode:this.getActionEventCode(n.type),selector:a,parentFramesSelectors:l,locator:o,clickOffset:u,pageId:r,fillValue:n.value,getMoreItemsId:n.getMoreItemsId,esraMetadata:c,description:t.thought};switch(f.eventCode){case"drag_and_drop":{let{selector:d,locator:p,parentFramesSelectors:b}=await this.getSelectionDataForAction({type:t.action.type,checksumid:t.action.dropTargetChecksumid});f.dropTarget={selector:d,locator:p,parentFramesSelectors:b,esraMetadata:await this.getESRAForSelector(d,b,i)}}break;case"upload_files":f.files=this.mapFileMIMETypeToFilename(n.files);break;case"switch_tab":f.switchToTab={id:n.tabId,index:this.getPage().context().pages().findIndex(d=>d._guid===n.tabId)}}return f}mapFileMIMETypeToFilename(t){return t.map(r=>{if(r.fileName)return r.fileName;switch(r.mimeType){case"image/png":return"image_200x200.png";case"image/jpeg":return"image_200x200.jpg";case"application/pdf":return"document.pdf";case"text/csv":return"data.csv";default:return"file.txt"}})}async performAction(t,{handleActionFailed:r,monitorFlashingHTML:i=!0}={}){try{if(t.executed){this.logger.log("[performAction] Action marked as executed, skipping...");return}if(this.isActionOnElement(t.eventCode)&&!t.selector)throw new Error("No selector provided for action. Try changing app rules preMapReducedHTMLSelectors to true");i&&(this.logger.log("starting flashing elements detection"),await this.evaluateWithChecksum(async()=>window.checksum.testGenerator.startFlashingElementsDetection())),this.logger.log(`Performing action: ${t.eventCode}. Selector: ${t.selector}, Position: ${t.clickOffset}, Parent frame: ${t.parentFramesSelectors}`);let n=s(()=>this.makeLocator(t.selector,t.parentFramesSelectors),"getLocator");switch(t.eventCode){case"click":try{await this.actionGuardReturn(n().click({position:t.clickOffset}),"Click timeout")}catch(u){this.logger.log("Error performing click, will attempt a force click",u),t.force=!0,await this.actionGuardReturn(n().click({position:t.clickOffset,force:!0}),"Click timeout")}break;case"double_click":try{await this.actionGuardReturn(n().dblclick({position:t.clickOffset}),"DoubleClick timeout")}catch(u){this.logger.log("Error performing double click, will attempt a force double click",u),t.force=!0,await this.actionGuardReturn(n().dblclick({position:t.clickOffset,force:!0}),"Click timeout")}break;case"check":await this.actionGuardReturn(n().check(),"Check timeout");break;case"uncheck":await this.actionGuardReturn(n().uncheck(),"UnCheck timeout");break;case"drag_and_drop":await this.actionGuardReturn(n().dragTo(this.makeLocator(t.dropTarget.selector,t.dropTarget.parentFramesSelectors)),"DragAndDrop timeout");break;case"input":await this.actionGuardReturn(n().fill(this.getActionFillValue(t)),"Fill timeout");break;case"click_and_type":await pe(n().click({position:t.clickOffset}),1e4,"Click before type timeout"),await pe(n().pressSequentially(this.getActionFillValue(t)),1e4,"pressSequentially timeout");break;case"clear_and_type":await pe(n().clear(),1e4,"Clear before type timeout"),await pe(n().pressSequentially(this.getActionFillValue(t)),1e4,"pressSequentially timeout");break;case"selectoption":await this.actionGuardReturn(n().selectOption(this.getActionFillValue(t)),"SelectOption timeout");break;case"hover":await this.actionGuardReturn(n().hover(),"Hover timeout");break;case"navigation":await this.actionGuardReturn(this.getPage().goto(t.fillValue),"Navigation timeout",!0);break;case"keystroke":await this.actionGuardReturn(this.getPage().keyboard.press(t.fillValue),"Keystroke timeout");break;case"upload_files":await this.performFileUploadAction(n(),t);break;case"wait":await O(this.options.waitActionDelay??1e3);break;case"custom_code":let a=`async (page) => {${t.fillValue}}`;await(0,eval)(a)(this.getPage());break}}catch(n){throw this.logger.log(`Error performing action: ${t.eventCode}, will attempt a correction template`,n),await(r==null?void 0:r()),new Error("Failed performing action")}this.logger.log(`Successfully performed action ${t.eventCode} with description "${t.description}"`)}getActionFillValue(t,r=!0){let i=t.fillValue;if(!i){let n=t.selector.match(/(?<=value.*)('|").*/);n&&(i=n[0].slice(1,-1))}return typeof i!="string"&&(i="X"),r&&(t.fillValue=i),i}actionGuardReturn(t,r,i=!1){return pe(t,i?this.options.navigationTimeout:this.options.actionTimeout,r)}makeLocator(t,r){return Hu(this.getPage(),t,r)}async getCurrentURL(){return this.getPage().url()}isActionOnElement(t){return!["navigation","keystroke","wait","get_more_items","custom_code"].includes(t)}async getSelectionDataForChecksumId(t,r){if(r!=null&&r.selector)return{...r,selector:r.selector,clickOffset:r.position};if(!t)return this.logger.log(`[getSelectionDataForChecksumId] checksumid not provided (${t})`),{...r,selector:t};let i=await this.evaluateWithChecksum(async n=>{let{selector:a,locator:o,clickOffset:u,parentFramesSelectors:h,invalid:l,rrwebId:c}=await window.checksum.testGenerator.getSelectorForChecksumId(n),f=await window.checksum.testGenerator.getElementForChecksumId(n),d=f instanceof HTMLOptionElement&&f.value?f.value:void 0;return{selector:a,locator:o,clickOffset:u,selectOptionValue:d,parentFramesSelectors:h,invalid:l,rrwebId:c}},t);if(ag&&i.invalid&&i.rrwebId){this.logger.log(`[getSelectionDataForChecksumId] Could not get selector for checksumid: ${t}. Trying to use time machine...`);try{let n=await this.getSelectionDataForRRwebIdAtReduceHTMLTime(i.rrwebId);i={...i,...n}}catch{this.logger.log(`[getSelectionDataForChecksumId] error using time machine to get selector for checksumid: ${t}`)}this.logger.log(`[getSelectionDataForChecksumId] got selector: ${i.selector} for checksumid: ${t} from time machine`)}return i!=null&&i.selector||this.logger.log(`[getSelectionDataForChecksumId] Could not get selector for checksumid: ${t}. If checksumid is correct, try to change app rules preMapReducedHTMLSelectors to true`),i}async getSelectionDataForRRwebIdAtReduceHTMLTime(t){if(!this.rrwebEventAtLastReducedHTML)return;let r=this.getTimeMachinePage();if(r)return r.evaluate(async({rrwebId:i,timestamp:n})=>{await window.checksum.timeMachine.goBack(n);let a=await window.checksum.testGenerator.getInspectedElementSelectionResultByRRwebId(i,{fromTimeMachine:!0});return await window.checksum.timeMachine.goLive(),a},{rrwebId:t,timestamp:this.rrwebEventAtLastReducedHTML.timestamp})}async getESRAForSelector(t,r,i){let n=await this.evaluateWithChecksum(async({selector:a,parentFramesSelectors:o})=>window.checksum.testGenerator.getSelectionDataForSelector(a,o),{selector:t,parentFramesSelectors:r});return n!=null&&n.esraMetadata&&i&&(n.esraMetadata.staticMetadata=await i(n.esraMetadata,t)),n==null?void 0:n.esraMetadata}async getMoreItemsForTemplate(t){return await this.evaluateWithChecksum(async r=>window.checksum.testGenerator.getMoreItemsForTemplate(r,{}),t)??{items:"",hasMoreItems:!1}}async getCurrentReducedHTML({retriesLeft:t=3,retryWaitMS:r=2e3,initialChecksumId:i="0",extractESRAForInterpretationRequiredElements:n=!1,stopFlashingElementsDetection:a=!1,assignChecksumIdsToAllElements:o}={}){let u=new Date;this.logger.log("[getCurrentReducedHTML] Fetching reduced HTML...");try{let{reducedHTML:h,currentChecksumId:l,flashingHTML:c,elementsForNodeInterpretation:f,lastRRwebEvent:d}=await this.evaluateWithChecksum(async b=>window.checksum.testGenerator.reduceHTML({},b),{initialChecksumId:i,extractESRAForInterpretationRequiredElements:n,stopFlashingElementsDetection:a,assignChecksumIdsToAllElements:o}),p=new Date;return this.logger.log(`[getCurrentReducedHTML] Fetched reduced HTML in ${p.getTime()-u.getTime()}ms`),this.rrwebEventAtLastReducedHTML=d,{reducedHTML:h,flashingHTML:c,elementsForNodeInterpretation:f,currentChecksumId:l}}catch(h){if(t>0)return this.logger.logError(`[getCurrentReducedHTML] Error: ${h.message}`),this.logger.logError(`Failed do obtain reduced HTML, trying again in ${r/1e3} seconds, ${t-1} to go.`),await O(r),this.getCurrentReducedHTML({retriesLeft:t-1,retryWaitMS:r});throw h}}getActionEventCode(t){return{click:"click",fill:"input",click_and_type:"click_and_type",clear_and_type:"clear_and_type",double_click:"double_click",drag_and_drop:"drag_and_drop",hover:"hover",navigate:"navigation",keystroke:"keystroke",selectoption:"selectoption",upload_files:"upload_files",wait:"wait",get_more_items:"get_more_items",reset:void 0,save:void 0,fail:void 0,finish:void 0,dismiss_modal:void 0,vision_help:void 0,switch_tab:"switch_tab",expand_interactable_elements:void 0,approve_release:void 0}[t]}exampleCustomCode(){function t(i){return new Promise(n=>setTimeout(n,i))}s(t,"sleep");async function r(){let i={foo:s(()=>{console.log("fooed")},"foo")};await(0,eval)('async (page) => {console.log("before foo"); await sleep(1000); page.foo();}')(i)}s(r,"doit"),(async()=>r())()}};s(Sa,"TestGenerationPageInteractor");var Ct=Sa;var Pw={generateSelectionData:!1,navigationTimeout:30*1e3,actionTimeout:5*1e3};var og=require("jsdom");var $v=J(Pn());var jv=250,bo=class bo{constructor(t,r){this.timeMachineable=t;this.initMethod=r;this.numberOfReceivedRrwebEventsIndex=0;this.syncTimeMachine=s(async()=>{try{let t;try{t=await this.timeMachineable.getRRwebEvents(this.numberOfReceivedRrwebEventsIndex)}catch{return}if(!t||t.length===0)return;try{await this.timeMachineable.getTimeMachinePage().evaluate(({events:r,len:i})=>window.checksum.timeMachine.handleEvents(r,i),{events:t,len:this.numberOfReceivedRrwebEventsIndex})}catch{return}this.numberOfReceivedRrwebEventsIndex+=t.length}finally{this.syncTimeout=setTimeout(this.syncTimeMachine,jv)}},"syncTimeMachine")}async start(t=!1){var r;await((r=this.initMethod)==null?void 0:r.call(this,t)),this.syncTimeMachine()}async stop(){clearTimeout(this.syncTimeout)}async disableEventsHandling(){await this.setShouldHandleEvents(!1)}async enableEventsHandling(){await this.setShouldHandleEvents(!0)}async setShouldHandleEvents(t){try{await this.timeMachineable.getTimeMachinePage().evaluate(r=>window.checksum.timeMachine.setShouldHandleEvents(r),t)}catch{}}};s(bo,"TimeMachineSync");var vi=bo;var L1=__dirname+"/checksumlib.js",B1=1e3*30;var od=!1;function Co(e){od=e}s(Co,"setLogToConsole");function Y(...e){od&&console.log(...e)}s(Y,"log");function Zv(e,{role:t,environment:r}={},i=!1){var u,h;let n;r&&(n=(u=e.environments)==null?void 0:u.find(({name:l})=>r===l)),n||(n=(h=e.environments)==null?void 0:h.find(({default:l})=>l)),n||(n={baseURL:e.baseURL,default:!0,name:void 0});let a=(n==null?void 0:n.users)??e.users,o;if(a&&(t&&(o=a.find(l=>l.role===t)),o||(o=a.find(l=>l.default))),o||(o={role:void 0,username:e.username,password:e.password,default:!0}),r&&n.name!==r){if(i)throw new Error(`Could not find environment with name "${r}" in config file`);console.warn(`Could not find environment with name "${r}" in config file, trying to use default environment`)}if(t&&o.role!==t){if(i)throw new Error(`Could not find user with role "${t}" for environment "${r}" in config file`);console.warn(`Could not find user with role "${t}" for environment "${r}" in config file, trying to login with environment's default user`)}return{environment:n,user:o}}s(Zv,"resolveEnvironment");function ud(e,t){try{let r=require(`${t??Ea()}/login.ts`).default;return async(i,{role:n,environment:a}={})=>{let o={username:e.username,password:e.password},{environment:u,user:h}=Zv(e,{role:n,environment:a});h&&(o.username=h.username,o.password=h.password);let l=s(()=>r(i,{...e,...o},{environment:u,user:h}),"performLogin");"checksumAI"in i?await i.checksumAI(`Log in${h!=null&&h.role?` using ${h.role} role`:""}${u!=null&&u.name?` in ${u.name} environment`:""}`,l):await l()}}catch(r){throw console.warn("Could not find checksum login file. Please create a login.ts file in your checksum folder"),r}}s(ud,"makeUnboundLogin");var Id=require("path"),_i=require("@playwright/test"),Uo=J(Pd());var Oo=class Oo{constructor(t){this.options=t;this.harData={methodIndex:{GET:0,POST:0,PUT:0,DELETE:0}};this.interceptors={recordHar:this.harInterceptor.bind(this),completeOriginHeader:this.completeOriginHeaderInterceptor.bind(this)};this.intercept=s(async(t,r,i)=>{let n=[],a=s(o=>{if(o)switch(o.type){case"abort":return t.abort(o.errorCode);case"fulfill":return t.fulfill(o.fulfillOptions);default:case"continue":n.push(o)}},"processResult");for(let[o,u]of Object.entries(this.interceptors))if(this.options[o]){let h=a(await u(t,r,i));if(h)return h}return this.applyContinueResults(t,n)},"intercept")}setOptions(t){this.options=t}mergeOptions(t){this.options={...this.options,...t}}applyContinueResults(t,r){let i=r.filter(a=>!!a),n={};return i.forEach(a=>{a.options&&(a.options.headers&&(n.headers={...n.headers,...a.options.headers}),a.options.method&&(n.method=a.options.method),a.options.postData&&(n.postData=a.options.postData),a.options.url&&(n.url=a.options.url))}),t.continue(n)}async harInterceptor(t){let r=t.request().headers(),i=t.request().method();return r["Checksum-Id"]=(++this.harData.methodIndex[i]).toString(),{options:{headers:r}}}async completeOriginHeaderInterceptor(t,r,{page:i}){let n=t.request().headers();if(!n.Origin){try{let a=new URL(i.url()).origin;n.Origin=a}catch{}return{options:{headers:n}}}}};s(Oo,"RouteInterceptors");var On=Oo;var No=class No{constructor(t={},r={}){this.browserConfig={devtools:!1,executablePath:process.env.PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH??void 0};this.options={fullScreenResolution:!1,defaultTimeout:3e4,defaultNavigationTimeout:3e4,disableWebSecurity:!0};this.navigationPromise={};this.contextClosePromise=void 0;this.eventListeners=[];this.lastSnapshot={selector:void 0,eventCode:void 0};this.snapshotTimeout=3e4;this.cacheScript=!1;this.pagesCounter=0;this.pagesIndexToGuid={};this.onRequestFinished=s(async t=>{try{let r=await t.response();if(!r.ok())return;let i=t.resourceType(),n=t.url(),a=s(async()=>{try{return await r.text()}catch{try{return await(await fetch(n)).text()}catch{return}}},"getBody");if(["document","script","stylesheet"].includes(i))try{let o=await a();if(!o)return;let u={url:n,source:o,type:i};await this.forEachEventListener(h=>{var l;return(l=h.onWebDriverResourceLoaded)==null?void 0:l.call(h,u)})}catch(o){console.error("[WebDriver] requestfinished event handler error",i,n,o)}}catch(r){console.error("[WebDriver] requestfinished event handler error",r)}},"onRequestFinished");this.onPage=s(async t=>{try{await(t==null?void 0:t.route("**/*",async(r,i)=>this.routeInterceptor.intercept(r,i,{page:t})))}catch(r){console.error("[WebDriver] onPage error",r)}},"onPage");this.onFrameNavigated=s(async t=>{let r=t.page();if(r.mainFrame()!==t)return;let i=s(async n=>{await this.forEachEventListener(a=>{var o;return(o=a.onWebDriverPageNavigated)==null?void 0:o.call(a,r,r.url(),n)})},"notifyFrameNavigated");await i(!1),this.navigationPromise[this.getGuid(r)]=new Promise(async n=>{await this.loadScript(r),await i(!0),n()})},"onFrameNavigated");this.navigatingPages={};this.tracing=!1;this.tracingChunk=!1;this.chunkIndex=0;var i;if(this.options={...this.options,...t},this.browserConfig={...this.browserConfig,...r},this.browserConfig.args||(this.browserConfig.args=[]),this.options.disableWebSecurity&&this.browserConfig.args.push("--disable-web-security"),this.browserConfig.args.push("--disable-site-isolation-trials"),this.browserConfig.args.push("--allow-running-insecure-content"),this.options.forceHeadless&&(this.browserConfig.headless=!0,this.browserConfig.devtools=!1),this.options.useProxy)if((i=this.options.webProxy)!=null&&i.server){console.log("[WebDriver] using proxy");let{server:n,username:a,password:o}=this.options.webProxy;this.browserConfig.proxy={server:n,username:a,password:o},this.browserConfig.args.push("--proxy-bypass-list=localhost,127.0.0.1")}else console.error("[WebDriver] useProxy=true but proxy not configured");this.routeInterceptor=new On({completeOriginHeader:this.options.completeOriginHeader,recordHar:this.options.recordHAR})}setOnScriptLoad(t){this.onScriptLoad=t}async prepare({storageState:t}={}){if(await this.shutdown(),this.options.useStealth){let i=require("puppeteer-extra-plugin-stealth");Uo.chromium.use(i()),this.browser=await Uo.chromium.launch(this.browserConfig)}else this.browser=await _i.chromium.launch(this.browserConfig);let r={};return r.bypassCSP=!0,r.ignoreHTTPSErrors=!0,r.baseURL=this.options.baseURL,this.options.timezoneId&&(r.timezoneId=this.options.timezoneId),this.options.fullScreenResolution&&(r.viewport={width:1280,height:720}),t&&(r.storageState=t),this.context=await this.browser.newContext(r),this.options.defaultTimeout&&this.context.setDefaultTimeout(this.options.defaultTimeout),this.options.defaultNavigationTimeout&&this.context.setDefaultNavigationTimeout(this.options.defaultNavigationTimeout),this.pageInjectedScriptOptions=this.getPageInjectedScriptOptions(),this.context.on("page",i=>{this.onPage(i),this.onFrameNavigated(i.mainFrame()),i.on("framenavigated",this.onFrameNavigated)}),this.context.on("close",async()=>{this.contextClosePromise=this.forEachEventListener(i=>{var n;return(n=i.onWebDriverContextClose)==null?void 0:n.call(i)})}),this.activePage=await this.context.newPage(),this.originalPage=this.activePage,this.options.trackLoadedResources&&this.page.on("requestfinished",this.onRequestFinished),this.options.useCDPSession&&(this.cdpSession=await this.context.newCDPSession(this.page)),!0}getGuid(t){return t._guid}switchActivePage(t){let r=this.context.pages().find(i=>this.getGuid(i)===t);return!r||r.isClosed()?(console.error(`[WebDriver] Page with guid ${t} not found or has been closed.`),!1):(this.previousPage=this.activePage,this.activePage=r,!0)}getDefaultTimeout(){return this.options.defaultTimeout}getDefaultNavigationTimeout(){return this.options.defaultNavigationTimeout}async addHARMockAPIRecordings(t){if(!this.activePage){console.warn("[addHARMockAPIRecordings] Active page is not set, skipping HAR recording.");return}await this.activePage.routeFromHAR(t,{url:/^(?!.*\.(js|mjs|ts|jsx|tsx|css|jpg|jpeg|png|gif|svg|webp|heif|heic|raw|cr2|nef|arw|bmp|tiff|tif|ico|woff|woff2|ttf|otf|doc|docx|pdf|ws|wasm|mp3|wav|aac|flac|mp4|avi|mov|wmv|flv|zip|rar|7z|tar\.gz|xml|html|py|java|cpp|xls|xlsx|ppt|pptx|gif)$)/i,update:!0,updateMode:"minimal"})}forEachEventListener(t){return Promise.all(this.eventListeners.map(async r=>{try{await t(r)}catch(i){console.log("WebDriver/forEachEventListener exception",i)}}))}getPageInjectedScriptOptions(){switch(this.options.scriptSource){case"file":return this.options.scriptFile?{path:(0,Id.join)(process.cwd(),this.options.scriptFile)}:void 0;case"url":return this.options.scriptURL?{url:this.options.scriptURL}:void 0;default:return}}registerEventListener(t){this.eventListeners.push(t)}async loadScript(t,{retriesLeft:r=3,retryWaitMS:i=2e3}={}){var o;if(!this.pageInjectedScriptOptions){console.warn("[WebDriver] Script options not set, skipping script load");return}if(t.isClosed())return;try{if(await t.waitForFunction(()=>!!window.checksum,void 0,{timeout:1e3}))return}catch{}if(t.isClosed())return;try{await t.addScriptTag(this.pageInjectedScriptOptions)}catch(u){if(r>0)return console.warn(`[WebDriver] Failed to add script, trying again in ${i/1e3} seconds, ${r-1} retries left.`,u),await O(i),this.loadScript(t,{retriesLeft:r-1,retryWaitMS:i});throw u}let n=this.getGuid(t),a=Date.now().toString(36)+Math.random().toString(36).substr(2);if(this.navigatingPages[n]=a,this.options.scriptInitWait&&(console.log(`Waiting ${this.options.scriptInitWait}[ms] before onScriptLoad...`),await O(this.options.scriptInitWait),console.log("Done waiting before onScriptLoad")),!t.isClosed()){if(this.navigatingPages[n]&&this.navigatingPages[n]!==a)return console.log("Page navigated again, waiting on new promise..."),this.navigationPromise[n];await((o=this.onScriptLoad)==null?void 0:o.call(this,t))}}async getScript(){async function t(r){let{exec:i}=require("child_process");return new Promise((n,a)=>{i(r,o=>{o?(console.log("error executing cmd, ",o),a(o)):n()})})}switch(s(t,"execCmd"),this.options.scriptSource){case"file":return this.options.scriptFile;case"url":if(this.cacheScript)return this.options.scriptFile;try{return await t(`curl -o ${this.options.scriptFile} '${this.options.scriptURL}'`),this.options.scriptFile}catch(r){console.log("[web-driver] Failed fetching frontend script",r)}break}}async startJSCoverageTracking(){return await this.page.coverage.startJSCoverage(),[];return await this.cdpSession.send("Debugger.enable"),await this.cdpSession.send("Profiler.enable"),await this.cdpSession.send("Profiler.startPreciseCoverage",{callCount:!1,detailed:!0}),this.getCurrentJSCoverage()}stopJSCoverageTracking(){return this.page.coverage.stopJSCoverage()}async getCurrentJSCoverage(){let t=await this.page.coverage.stopJSCoverage();return await this.page.coverage.startJSCoverage(),t;return(await this.cdpSession.send("Profiler.takePreciseCoverage")).result}async startCSSCoverageTracking(){return await this.cdpSession.send("DOM.enable"),await this.cdpSession.send("CSS.enable"),await this.cdpSession.send("CSS.startRuleUsageTracking"),this.getCurrentCSSCoverage()}async getCurrentCSSCoverage(){return(await this.cdpSession.send("CSS.takeCoverageDelta")).coverage}getCDPSession(){return this.cdpSession}async navigate(t){return this.page.goto(t)}async setViewportSize(t,r){return this.page.setViewportSize({width:t,height:r})}async getStorageState(){return this.page.context().storageState()}async shutdown(){try{this.page&&(await this.page.close(),this.activePage=void 0),this.context&&(await this.context.close(),this.context=void 0),this.browser&&(await this.browser.close(),this.browser=void 0)}catch(t){console.warn("[WebDriver] shutdown error",t)}}async wrapWithBrowserLogs(t,{disabled:r=!1,onErrorOnly:i=!1}={}){if(r)return t();let n=[],a=s(h=>{n.push(h.text())},"log");this.page.on("console",a);let o,u;try{u=await t()}catch(h){o=h}if(this.page.off("console",a),(!i||o)&&console.log("browser console messages:",n),o)throw o;return u}async takeElementSnapshot(t,r,i={},n={}){if(t===this.lastSnapshot.selector&&r===this.lastSnapshot.eventCode)return{};if(!t)return{};try{let{snapshot:a,elementLocator:o}=await this.takeSnapshot(t,n,{frameLocatorSelector:i.frameLocatorSelector});return this.lastSnapshot={selector:t,eventCode:r},{snapshot:a,elementLocator:o}}catch(a){return console.error("takeElementSnapshot error",a),{}}}getScreenshotTimeout(t=!1){return t?this.snapshotTimeout:this.snapshotTimeout+5e3}async takePageSnapshot(t){let r=this.page.screenshot({...t,timeout:this.getScreenshotTimeout()});return await Promise.race([r,O(this.getScreenshotTimeout(!0))])}async takeSnapshot(t,r,{frameLocatorSelector:i}={}){let n=i?this.page.frameLocator(i).locator(t):this.page.locator(t),a=n.screenshot({...r,timeout:this.getScreenshotTimeout()});return{snapshot:await Promise.race([a,O(this.getScreenshotTimeout(!0))]),elementLocator:n}}async getCurrentURL(){return this.page.url()}async getClientScreenResolution(){return await this.page.evaluate(async()=>({width:window.screen.width,height:window.screen.height}))}async awaitContextClose(){return this.contextClosePromise||await O(100),this.contextClosePromise}get page(){return this.activePage}getPage(){return this.activePage}startPlaywrightTrace(){return this.tracing=!0,this.context.tracing.start({name:"trace",screenshots:!0,snapshots:!0})}startPlaywrightTraceChunk(){return this.tracingChunk=!0,this.context.tracing.startChunk({name:`trace-chunk-${this.chunkIndex}`})}stopPlaywrightTraceChunk(t){return this.tracingChunk=!1,this.context.tracing.stopChunk({path:`${t.replace(".zip",`.${this.chunkIndex++}.zip`)}`})}stopPlaywrightTrace(t){return this.tracing=!1,this.context.tracing.stop({path:t})}isTracing(){return this.tracing}isTracingChunk(){return this.tracingChunk}};s(No,"WebDriver");var Un=No;var _y={useCDPSession:!0,trackLoadedResources:!0},Wo=class Wo extends Un{constructor(r={},i={devtools:!0},n={}){super({..._y,...r},i);this.settings={frontendAppSpecificRules:void 0,initTestGenerator:!0,frontendTestGenerationConfig:void 0,useTimeMachine:!1};this.initTestGenerator=s(async r=>{let i={assertionGenerator:!0,sessionRecorder:!0};r===this.timeMachinePage&&(i.assertionGenerator=!1,i.sessionRecorder=!1);try{return await r.waitForFunction(()=>{var n;return!!((n=window.checksum)!=null&&n.testGenerator)}),r.evaluate(async({appSpecificRules:n,config:a,initModules:o})=>{window.checksum.testGenerator.init(n,a,o),n.hasGoals&&await window.checksum.goalTracker.init()},{appSpecificRules:this.settings.frontendAppSpecificRules,config:this.getFrontendTestGenerationConfig(),initModules:i})}catch(n){console.log("initTestGenerator exception",n)}},"initTestGenerator");this.settings={...this.settings,...n},this.settings.initTestGenerator&&this.setOnScriptLoad(this.initTestGenerator)}async prepare(r={}){let i=await super.prepare(r);return this.settings.loadScriptOnPrepare&&await this.loadScript(this.page),await this.page.addInitScript(()=>{window.sessionStorage.setItem("checksumai:disable","true")}),this.settings.useTimeMachine&&(this.timeMachinePage=await this.context.newPage(),await this.page.bringToFront(),await this.loadScript(this.timeMachinePage),await this.timeMachinePage.evaluate(()=>window.checksum.timeMachine.start({firstEventTimestamp:Date.now()}))),i}getTimeMachinePage(){return this.timeMachinePage}getFrontendTestGenerationConfig(){return this.settings.frontendTestGenerationConfig}async getBestMatchingElementSimilarityScore(r){return this.evaluateWithChecksum(async i=>await window.checksum.testGenerator.getBestMatchingElementSimilarityScore(i),r)}async getInteractableElements(){return this.evaluateWithChecksum(async()=>await window.checksum.testGenerator.getInteractableElements())}async getAllInteractableElementsForLastSelectQuery(){return this.evaluateWithChecksum(async()=>await window.checksum.testGenerator.getAllInteractableElementsForLastSelectQuery())}async evaluateWithChecksum(r,i){return this.navigationPromise[this.getGuid(this.page)]&&await this.navigationPromise[this.getGuid(this.page)],this.page.evaluate(r,i)}async overlayInteractableElementsWithChecksumId(r){return this.page.evaluate(i=>window.checksum.testGenerator.overlayInteractableElementsWithChecksumId(i),r)}async postRRwebEvents(r){return this.page.evaluate(i=>window.checksum.testGenerator.postRRwebEvents(i),r)}async getRRwebEvents(r=0){return this.evaluateWithChecksum(async({index:i})=>window.checksum.testGenerator.getRRwebEvents(i),{index:r})}async getGoals(){return await this.evaluateWithChecksum(async()=>window.checksum.goalTracker.getGoals())}async takeElementSnapshot(r,i,n={},a={}){try{let{snapshot:o,elementLocator:u}=await super.takeElementSnapshot(r,i,n);if(!o||!n.takeBodyScreenshot)return o?{snapshot:o}:{};await this.highlightElementByLocator(u,n.mousePosition);let h=await this.takePageSnapshot(a);return await this.clearHighlights(),{snapshot:o,bodySnapshot:h}}catch(o){return console.error("[ChecksumWebDriver] takeElementSnapshot error",o),{}}}async highlightElementByLocator(r,i,n="20px solid rgba(255,0,0,1)"){return this.evaluateWithChecksum(async([a,o,u])=>{window.checksum.testGenerator.highlightElement(a,{highlightStyle:{outline:o},mousePosition:u})},[await r.elementHandle(),n,i])}async clearHighlights(){return this.evaluateWithChecksum(async()=>window.checksum.testGenerator.clearHighlights())}async getInspectedElementSelectionResultByRRwebId(r,i={fromTimeMachine:!1}){return await(i.fromTimeMachine?this.getTimeMachinePage().evaluate.bind(this.getTimeMachinePage()):this.evaluateWithChecksum.bind(this))(([a,o])=>window.checksum.testGenerator.getInspectedElementSelectionResultByRRwebId(a,o),[parseInt(r,10),i])}};s(Wo,"ChecksumWebDriver");var Cr=Wo;var qo=class qo{constructor(t,r={},i=!0){this.requests=[];this.watcherConfig={minimumWaitTime:250,maximumWaitTime:1e4,followingRequestsWaitTime:250};this.resolved=!0;this.hasMinimumWaitTimePassed=!1;this.useLog=!1;this.logStack=[];this.resolve=s(()=>{this.resolved||(this.resolved=!0,clearTimeout(this.minimumWaitTimer),clearTimeout(this.maximumWaitTimer),clearTimeout(this.followingRequestWaitTimeoutId),this.loadResolve({totalTime:Date.now()-this.startTS,logs:this.logStack,pendingRequests:this.requests.length,totalRequests:this.observedRequestsCount}))},"resolve");this.watcherConfig={...this.watcherConfig,...r},this.initListeners(t),this.useLog=i}initListeners(t){t.on("request",r=>{var i;this.hasMinimumWaitTimePassed||(i=this.watcherConfig.whitelist)!=null&&i.length&&!this.watcherConfig.whitelist.some(n=>n.test(r.url()))||(this.useLog&&this.logStack.push(`${r.method()} ${r.url().substring(0,60)}`),this.requests.push(r),this.observedRequestsCount+=1)}),t.on("response",r=>{this.requests=this.requests.filter(i=>i!==r.request()),this.hasMinimumWaitTimePassed&&(this.requests.length||(clearTimeout(this.followingRequestWaitTimeoutId),this.followingRequestWaitTimeoutId=setTimeout(()=>{this.requests.length||this.resolve()},this.watcherConfig.followingRequestsWaitTime)))})}async wait(){return new Promise(t=>{this.loadResolve=t,this.resolved=!1,this.minimumWaitTimer=setTimeout(()=>{this.hasMinimumWaitTimePassed=!0,this.requests.length||this.resolve()},this.watcherConfig.minimumWaitTime),this.maximumWaitTimer=setTimeout(this.resolve,this.watcherConfig.maximumWaitTime)})}startListening(){this.requests=[],this.startTS=Date.now(),this.hasMinimumWaitTimePassed=!1,this.observedRequestsCount=0,this.useLog&&(this.logStack=[])}};s(qo,"NetworkWatcher");var _r=qo;var Nn=s(e=>e.name==="up"||e.name==="k"||e.ctrl&&e.name==="p","isUpKey"),jo=s(e=>e.name==="down"||e.name==="j"||e.ctrl&&e.name==="n","isDownKey");var Wn=s(e=>e.name==="backspace","isBackspaceKey"),Md=s(e=>"123456789".includes(e.name),"isNumberKey"),qn=s(e=>e.name==="enter"||e.name==="return","isEnterKey");var zo=class zo extends Error{message="Prompt was canceled"};s(zo,"CancelPromptError");var jn=zo,Ho=class Ho extends Error{};s(Ho,"ExitPromptError");var zn=Ho,Go=class Go extends Error{};s(Go,"HookError");var Hn=Go,$o=class $o extends Error{};s($o,"ValidationError");var kr=$o;var Yo=require("async_hooks");var Gn=require("async_hooks");var Ld=new Gn.AsyncLocalStorage;function ky(e){return{rl:e,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}s(ky,"createStore");function Bd(e,t){let r=ky(e);return Ld.run(r,()=>{t(r)})}s(Bd,"withHooks");function xr(){let e=Ld.getStore();if(!e)throw new Hn("[Inquirer] Hook functions can only be called from within a prompt");return e}s(xr,"getStore");function Zo(){return xr().rl}s(Zo,"readline");function Ko(e){let t=s((...r)=>{let i=xr(),n=!1,a=i.handleChange;i.handleChange=()=>{n=!0};let o=e(...r);return n&&a(),i.handleChange=a,o},"wrapped");return Gn.AsyncResource.bind(t)}s(Ko,"withUpdates");function Er(e){let t=xr(),{index:r}=t,i={get(){return t.hooks[r]},set(a){t.hooks[r]=a},initialized:r in t.hooks},n=e(i);return t.index++,n}s(Er,"withPointer");function Od(){xr().handleChange()}s(Od,"handleChange");var $n={queue(e){let t=xr(),{index:r}=t;t.hooksEffect.push(()=>{var n,a;(a=(n=t.hooksCleanup)[r])==null||a.call(n);let i=e(Zo());if(i!=null&&typeof i!="function")throw new kr("useEffect return value must be a cleanup function or nothing.");t.hooksCleanup[r]=i})},run(){let e=xr();Ko(()=>{e.hooksEffect.forEach(t=>{t()}),e.hooksEffect.length=0})()}};function he(e){return Er(t=>{let r=s(n=>{t.get()!==n&&(t.set(n),Od())},"setFn");if(t.initialized)return[t.get(),r];let i=typeof e=="function"?e():e;return t.set(i),[i,r]})}s(he,"useState");function Zn(e,t){Er(r=>{let i=r.get();(!Array.isArray(i)||t.some((a,o)=>!Object.is(a,i[o])))&&$n.queue(e),r.set(t)})}s(Zn,"useEffect");var Le=J(Vn(),1),Jo=J(Hd(),1);var Gd={prefix:Le.default.green("?"),spinner:{interval:Jo.default.dots.interval,frames:Jo.default.dots.frames.map(e=>Le.default.yellow(e))},style:{answer:Le.default.cyan,message:Le.default.bold,error:s(e=>Le.default.red(`> ${e}`),"error"),defaultAnswer:s(e=>Le.default.dim(`(${e})`),"defaultAnswer"),help:Le.default.dim,highlight:Le.default.cyan,key:s(e=>Le.default.cyan(Le.default.bold(`<${e}>`)),"key")}};function $d(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}s($d,"isPlainObject");function Zd(...e){let t={};for(let r of e)for(let[i,n]of Object.entries(r)){let a=t[i];t[i]=$d(a)&&$d(n)?Zd(a,n):n}return t}s(Zd,"deepMerge");function Ut(...e){let t=[Gd,...e.filter(r=>r!=null)];return Zd(...t)}s(Ut,"makeTheme");function ki({isLoading:e=!1,theme:t}){let[r,i]=he(!1),[n,a]=he(0),{prefix:o,spinner:u}=Ut(t);return Zn(()=>{if(e){let h,l=-1,c=setTimeout(Yo.AsyncResource.bind(()=>{i(!0),h=setInterval(Yo.AsyncResource.bind(()=>{l=l+1,a(l%u.frames.length)}),u.interval)}),300);return()=>{clearTimeout(c),clearInterval(h)}}else i(!1)},[e]),r?u.frames[n]:o}s(ki,"usePrefix");function Yn(e,t){return Er(r=>{let i=r.get();if(!i||i.dependencies.length!==t.length||i.dependencies.some((n,a)=>n!==t[a])){let n=e();return r.set({value:n,dependencies:t}),n}return i.value})}s(Yn,"useMemo");function vt(e){return he({current:e})[0]}s(vt,"useRef");function xi(e){let t=vt(e);t.current=e,Zn(r=>{let i=Ko((n,a)=>{t.current(a,r)});return r.input.on("keypress",i),()=>{r.input.removeListener("keypress",i)}},[])}s(xi,"useKeypress");var Cp=J(Vd(),1),_p=J(bp(),1);function Si(e,t){return e.split(`
35
- `).flatMap(r=>(0,_p.default)(r,t,{trim:!1,hard:!0}).split(`
33
+ `).map(i=>Xy(i,t,r)).join(`
34
+ `)});var Tp=m((Yx,Ap)=>{var tw=require("stream"),Rr,Ze,na,aa,cl=class cl extends tw{constructor(r={}){super(r);we(this,Ze);we(this,Rr,null);this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=r.replace,this._prompt=r.prompt||null,this._hadControl=!1}get isTTY(){return T(this,Rr)!==null?T(this,Rr):Ue(this,Ze,na).call(this,"isTTY",!1)}set isTTY(r){Ve(this,Rr,r)}get rows(){return Ue(this,Ze,na).call(this,"rows")}get columns(){return Ue(this,Ze,na).call(this,"columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(r){this._src=r}pipe(r,i){return this._dest=r,super.pipe(r,i)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(r){if(this.muted){if(!this.replace)return!0;if(r.match(/^\u001b/))return r.indexOf(this._prompt)===0&&(r=r.slice(this._prompt.length),r=r.replace(/./g,this.replace),r=this._prompt+r),this._hadControl=!0,this.emit("data",r);this._prompt&&this._hadControl&&r.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),r=r.slice(this._prompt.length)),r=r.toString().replace(/./g,this.replace)}this.emit("data",r)}end(r){this.muted&&(r&&this.replace?r=r.toString().replace(/./g,this.replace):r=null),r&&this.emit("data",r),this.emit("end")}destroy(...r){return Ue(this,Ze,aa).call(this,"destroy",...r)}destroySoon(...r){return Ue(this,Ze,aa).call(this,"destroySoon",...r)}close(...r){return Ue(this,Ze,aa).call(this,"close",...r)}};Rr=new WeakMap,Ze=new WeakSet,na=s(function(r,i){return this._dest?this._dest[r]:this._src?this._src[r]:i},"#destSrc"),aa=s(function(r,...i){var n,a;typeof((n=this._dest)==null?void 0:n[r])=="function"&&this._dest[r](...i),typeof((a=this._src)==null?void 0:a[r])=="function"&&this._src[r](...i)},"#proxy"),s(cl,"MuteStream");var ul=cl;Ap.exports=ul});var Cl=m((aS,bl)=>{"use strict";var M=bl.exports;bl.exports.default=M;var N="\x1B[",Ri="\x1B]",Lr="\x07",ua=";",Mp=process.env.TERM_PROGRAM==="Apple_Terminal";M.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?N+(e+1)+"G":N+(t+1)+";"+(e+1)+"H"};M.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=N+-e+"D":e>0&&(r+=N+e+"C"),t<0?r+=N+-t+"A":t>0&&(r+=N+t+"B"),r};M.cursorUp=(e=1)=>N+e+"A";M.cursorDown=(e=1)=>N+e+"B";M.cursorForward=(e=1)=>N+e+"C";M.cursorBackward=(e=1)=>N+e+"D";M.cursorLeft=N+"G";M.cursorSavePosition=Mp?"\x1B7":N+"s";M.cursorRestorePosition=Mp?"\x1B8":N+"u";M.cursorGetPosition=N+"6n";M.cursorNextLine=N+"E";M.cursorPrevLine=N+"F";M.cursorHide=N+"?25l";M.cursorShow=N+"?25h";M.eraseLines=e=>{let t="";for(let r=0;r<e;r++)t+=M.eraseLine+(r<e-1?M.cursorUp():"");return e&&(t+=M.cursorLeft),t};M.eraseEndLine=N+"K";M.eraseStartLine=N+"1K";M.eraseLine=N+"2K";M.eraseDown=N+"J";M.eraseUp=N+"1J";M.eraseScreen=N+"2J";M.scrollUp=N+"S";M.scrollDown=N+"T";M.clearScreen="\x1Bc";M.clearTerminal=process.platform==="win32"?`${M.eraseScreen}${N}0f`:`${M.eraseScreen}${N}3J${N}H`;M.beep=Lr;M.link=(e,t)=>[Ri,"8",ua,ua,t,Lr,e,Ri,"8",ua,ua,Lr].join("");M.image=(e,t={})=>{let r=`${Ri}1337;File=inline=1`;return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+e.toString("base64")+Lr};M.iTerm={setCwd:s((e=process.cwd())=>`${Ri}50;CurrentDir=${e}${Lr}`,"setCwd"),annotation:s((e,t={})=>{let r=`${Ri}1337;`,i=typeof t.x<"u",n=typeof t.y<"u";if((i||n)&&!(i&&n&&typeof t.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?r+=(i?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):r+=e,r+Lr},"annotation")}});var Kv=require("@playwright/test");var qi="checksum";var Or=J(require("path"));var O=s(e=>new Promise(t=>setTimeout(t,e)),"awaitSleep"),pe=s(async(e,t=1e3,r="guardReturnTimedOut")=>{if(t===null)return e;let i="guard-timed-out",n=s(async()=>(await O(t+1e3),i),"guard"),a=await Promise.race([e,n()]);if(typeof a=="string"&&a===i)throw new Error(r);return a},"guardReturn");function Ea(e){return!!e&&!["navigation","keystroke","wait","get_more_items","custom_code"].includes(e)}s(Ea,"isActionOnElement");function $l(e){return{click:"click",fill:"input",click_and_type:"click_and_type",clear_and_type:"clear_and_type",double_click:"double_click",drag_and_drop:"drag_and_drop",upload_files:"upload_files",hover:"hover",navigate:"navigation",keystroke:"keystroke",selectoption:"selectoption",reset:void 0,save:void 0,fail:void 0,wait:void 0,finish:void 0,dismiss_modal:void 0,vision_help:void 0,get_more_items:void 0,switch_tab:"switch_tab",expand_interactable_elements:void 0,approve_release:void 0}[e]}s($l,"getActionEventCode");var Zl=s((e,t,r)=>{if(!t)return e;if(!r||!r.length)return e.locator(t);let i=e.frameLocator(r[0]);for(let n of r.slice(1))i=i.frameLocator(n);return i.locator(t)},"makeLocator");function Fa(){return process.env.CHECKSUM_ROOT_FOLDER?process.env.CHECKSUM_ROOT_FOLDER:Or.join(__dirname,"..","..","..","checksum")}s(Fa,"checksumFolder");function Vl({isInit:e,excludeLogin:t}){return[...e?["example.checksum.spec.ts","github-actions.example.yml"]:[],...t?[]:["login.ts"],"checksum.config.ts","playwright.config.ts","README.md",".gitignore.example"]}s(Vl,"getRuntimeFiles");var Ew={generateSelectionData:!1,navigationTimeout:30*1e3,actionTimeout:5*1e3};var cg=require("jsdom");var Jv=J(Ln());var Gv=250,bo=class bo{constructor(t,r){this.timeMachineable=t;this.initMethod=r;this.numberOfReceivedRrwebEventsIndex=0;this.syncTimeMachine=s(async()=>{try{let t;try{t=await this.timeMachineable.getRRwebEvents(this.numberOfReceivedRrwebEventsIndex)}catch{return}if(!t||t.length===0)return;try{await this.timeMachineable.getTimeMachinePage().evaluate(({events:r,len:i})=>window.checksum.timeMachine.handleEvents(r,i),{events:t,len:this.numberOfReceivedRrwebEventsIndex})}catch{return}this.numberOfReceivedRrwebEventsIndex+=t.length}finally{this.syncTimeout=setTimeout(this.syncTimeMachine,Gv)}},"syncTimeMachine")}async start(t=!1){var r;await((r=this.initMethod)==null?void 0:r.call(this,t)),this.syncTimeMachine()}async stop(){clearTimeout(this.syncTimeout)}async disableEventsHandling(){await this.setShouldHandleEvents(!1)}async enableEventsHandling(){await this.setShouldHandleEvents(!0)}async setShouldHandleEvents(t){try{await this.timeMachineable.getTimeMachinePage().evaluate(r=>window.checksum.timeMachine.setShouldHandleEvents(r),t)}catch{}}};s(bo,"TimeMachineSync");var yi=bo;var ld=require("path"),ud=require("fs");var $v=!0,Co=class Co{constructor(t,r,i,n,a,o){this.evaluateWithChecksum=t;this.getPage=r;this.getTimeMachinePage=i;this.logger=n;this.options=a;this.loginFunction=o;this.newPagesIds=[];this.performFileUploadAction=s(async(t,r)=>{if(!await t.evaluate(n=>n.tagName==="INPUT"&&n.getAttribute("type")==="file"))throw new Error("File upload action performed on non-file input element");let i=r.files.map(n=>(0,ld.join)(this.options.testAssetsDir,n)).filter(n=>(0,ud.existsSync)(n)?!0:(this.logger.log(`Upload file not found: ${n}. Filtering out.`),!1));if(!i.length)throw new Error("No files to upload");await this.actionGuardReturn(t.setInputFiles(i),"Set input files timeout")},"performFileUploadAction");this.getSelectionDataForAction=s(async(t,r)=>t.checksumid?this.getSelectionDataForChecksumId(t.checksumid,r):t.position?await this.evaluateWithChecksum(async([i,n])=>window.checksum.testGenerator.getSelectorByPosition(i,n),[t.position.x,t.position.y]):t.selector?{selector:t.selector,locator:`locator("${t.selector}")`}:{selector:"",locator:""},"getSelectionDataForAction")}init(){let t=this.getPage();t.on("filechooser",async r=>{this.logger.log("File chooser event detected"),this.fileChooser=r}),t.context().on("page",r=>{this.newPagesIds.push(r._guid)})}getOpenedFileChooser(){if(this.fileChooser){let t=this.fileChooser;return this.fileChooser=void 0,t}return null}async handleFileChooserEvent(){let t=this.getOpenedFileChooser();if(!t)return{};let r="fc_"+Math.random().toString(36).slice(2,4);return await this.evaluateWithChecksum(async([i,n])=>{window.checksum.testGenerator.addForceIncludeElement(n,i)},[r,t.element()]),{interruptionEvent:"fileUploadOpenedEvent",payload:{checksumid:r}}}async addMoreItemsToDom(t,r){let i=t.querySelector(`[checksum-get-more-items='${r}']`);if(!i)throw new Error("Get more items root not found");let{items:n,hasMoreItems:a}=await this.getMoreItemsForTemplate(r);i.innerHTML=i.innerHTML+n,a||i.removeAttribute("checksum-get-more-items")}async getPageInfo(t){return{id:t._guid,url:t.url(),title:await t.title(),new:this.newPagesIds.includes(t._guid),active:t._guid===this.getPage()._guid}}async getTabsInfo(){let t=await Promise.all(this.getPage().context().pages().map(r=>this.getPageInfo(r)));return this.newPagesIds=[],t}async getSelectionDataFromSelectorGenerator(t,r,i={useCompoundSelector:!1,useCSSExtraction:!0}){if(!t||!Ea($l(r.action.type))||!r.action.checksumid)return{};let n=await t.generateSelectionForAction(r,i);return n?{locator:`locator("${n.selector}")`,...n}:{}}async translateActionResponseToAgentPotentialAction(t,r=void 0,{pageId:i,makeStaticMetadataForESRA:n}={}){let a=structuredClone(t.actionHiddenOverride??t.action),{selector:o,locator:l,clickOffset:h,selectOptionValue:u,compoundSelector:c,parentFramesSelectors:f}={...await this.getSelectionDataForAction(a,t.actionHiddenOverride),...await this.getSelectionDataFromSelectorGenerator(r,t)},d=await this.getESRAForSelector(o,f,n);if(!d&&o&&this.logger.logError("Error getting ESRA metadata"),(d==null?void 0:d.tag)==="select")switch(this.getActionEventCode(a.type)){case"input":a.type="selectoption";break;case"click":u&&(a.type="selectoption",a.value=u);break}let p={eventCode:this.getActionEventCode(a.type),selector:o,parentFramesSelectors:f,locator:l,clickOffset:h,pageId:i,compoundSelector:c,fillValue:a.value,fillValueName:a.valueName?`variablesStore.${a.valueName}`:"",variables:t.variables,getMoreItemsId:a.getMoreItemsId,esraMetadata:d,description:t.thought,userRole:a.userRole};switch(p.eventCode){case"drag_and_drop":{let{selector:b,locator:v,parentFramesSelectors:C}={...await this.getSelectionDataForAction({type:t.action.type,checksumid:t.action.dropTargetChecksumid}),...await this.getSelectionDataFromSelectorGenerator(r,{...t,action:{type:t.action.type,checksumid:t.action.dropTargetChecksumid}},{useCompoundSelector:!1,useCSSExtraction:!0})};p.dropTarget={selector:b,locator:v,parentFramesSelectors:C,esraMetadata:await this.getESRAForSelector(b,C,n)}}break;case"upload_files":p.files=this.mapFileMIMETypeToFilename(a.files);break;case"switch_tab":p.switchToTab={id:a.tabId,index:this.getPage().context().pages().findIndex(b=>b._guid===a.tabId)};break}return p}async reauthenticate(t){this.loginFunction&&(await Promise.all([this.getPage().context().clearCookies(),this.getPage().evaluate(()=>localStorage.clear())]),await this.loginFunction(this.getPage(),{role:t}))}mapFileMIMETypeToFilename(t){return t.map(r=>{if(r.fileName)return r.fileName;switch(r.mimeType){case"image/png":return"image_200x200.png";case"image/jpeg":return"image_200x200.jpg";case"application/pdf":return"document.pdf";case"text/csv":return"data.csv";default:return"file.txt"}})}async performAction(t,{handleActionFailed:r,monitorFlashingHTML:i=!0}={}){try{if(t.executed){this.logger.log("[performAction] Action marked as executed, skipping...");return}if(Ea(t.eventCode)&&!t.selector)throw new Error("No selector provided for action. Try changing app rules preMapReducedHTMLSelectors to true");i&&(this.logger.log("starting flashing elements detection"),await this.evaluateWithChecksum(async()=>window.checksum.testGenerator.startFlashingElementsDetection())),this.logger.log(`Performing action: ${t.eventCode}. Selector: ${t.selector}, Position: ${t.clickOffset}, Parent frame: ${t.parentFramesSelectors}`);let n=s(()=>this.makeLocator(t.selector,t.parentFramesSelectors),"getLocator");switch(t.eventCode){case"click":try{await this.actionGuardReturn(n().click({position:t.clickOffset}),"Click timeout")}catch(l){this.logger.log("Error performing click, will attempt a force click",l),t.force=!0,await this.actionGuardReturn(n().click({position:t.clickOffset,force:!0}),"Click timeout")}break;case"double_click":try{await this.actionGuardReturn(n().dblclick({position:t.clickOffset}),"DoubleClick timeout")}catch(l){this.logger.log("Error performing double click, will attempt a force double click",l),t.force=!0,await this.actionGuardReturn(n().dblclick({position:t.clickOffset,force:!0}),"Click timeout")}break;case"check":await this.actionGuardReturn(n().check(),"Check timeout");break;case"uncheck":await this.actionGuardReturn(n().uncheck(),"UnCheck timeout");break;case"drag_and_drop":await this.actionGuardReturn(n().dragTo(this.makeLocator(t.dropTarget.selector,t.dropTarget.parentFramesSelectors)),"DragAndDrop timeout");break;case"input":await this.actionGuardReturn(n().fill(this.getActionFillValue(t)),"Fill timeout");break;case"click_and_type":await pe(n().click({position:t.clickOffset}),1e4,"Click before type timeout"),await pe(n().pressSequentially(this.getActionFillValue(t)),1e4,"pressSequentially timeout");break;case"clear_and_type":await pe(n().clear(),1e4,"Clear before type timeout"),await pe(n().pressSequentially(this.getActionFillValue(t)),1e4,"pressSequentially timeout");break;case"selectoption":await this.actionGuardReturn(n().selectOption(this.getActionFillValue(t)),"SelectOption timeout");break;case"hover":await this.actionGuardReturn(n().hover(),"Hover timeout");break;case"navigation":await this.actionGuardReturn(this.getPage().goto(t.fillValue),"Navigation timeout",!0);break;case"keystroke":await this.actionGuardReturn(this.getPage().keyboard.press(t.fillValue),"Keystroke timeout");break;case"upload_files":await this.performFileUploadAction(n(),t);break;case"wait":await O(this.options.waitActionDelay??1e3);break;case"custom_code":let a=`async (page) => {${t.fillValue}}`;await(0,eval)(a)(this.getPage());break;case"logout_and_login":await this.reauthenticate(t.userRole);break}}catch(n){throw this.logger.log(`Error performing action: ${t.eventCode}, will attempt a correction template`,n),await(r==null?void 0:r()),new Error("Failed performing action")}this.logger.log(`Successfully performed action ${t.eventCode} with description "${t.description}"`)}getActionFillValue(t,r=!0){let i=t.fillValue;if(!i){let n=t.selector.match(/(?<=value.*)('|").*/);n&&(i=n[0].slice(1,-1))}return typeof i!="string"&&(i="X"),r&&(t.fillValue=i),i}actionGuardReturn(t,r,i=!1){return pe(t,i?this.options.navigationTimeout:this.options.actionTimeout,r)}makeLocator(t,r){return Zl(this.getPage(),t,r)}getCurrentURL(){return this.getPage().url()}async getSelectionDataForChecksumId(t,r){if(r!=null&&r.selector)return{...r,selector:r.selector,clickOffset:r.position};if(!t)return this.logger.log(`[getSelectionDataForChecksumId] checksumid not provided (${t})`),{...r,selector:t};let i=await this.evaluateWithChecksum(async n=>{let{selector:a,locator:o,clickOffset:l,parentFramesSelectors:h,invalid:u,rrwebId:c}=await window.checksum.testGenerator.getSelectorForChecksumId(n),f=await window.checksum.testGenerator.getElementForChecksumId(n),d=f instanceof HTMLOptionElement&&f.value?f.value:void 0;return{selector:a,locator:o,clickOffset:l,selectOptionValue:d,parentFramesSelectors:h,invalid:u,rrwebId:c}},t);if($v&&i.invalid&&i.rrwebId){this.logger.log(`[getSelectionDataForChecksumId] Could not get selector for checksumid: ${t}. Trying to use time machine...`);try{let n=await this.getSelectionDataForRRwebIdAtReduceHTMLTime(i.rrwebId);i={...i,...n}}catch{this.logger.log(`[getSelectionDataForChecksumId] error using time machine to get selector for checksumid: ${t}`)}this.logger.log(`[getSelectionDataForChecksumId] got selector: ${i.selector} for checksumid: ${t} from time machine`)}return i!=null&&i.selector||this.logger.log(`[getSelectionDataForChecksumId] Could not get selector for checksumid: ${t}. If checksumid is correct, try to change app rules preMapReducedHTMLSelectors to true`),i}async getSelectionDataForRRwebIdAtReduceHTMLTime(t){if(!this.rrwebEventAtLastReducedHTML)return;let r=this.getTimeMachinePage();if(r)return r.evaluate(async({rrwebId:i,timestamp:n})=>{await window.checksum.timeMachine.goBack(n);let a=await window.checksum.testGenerator.getInspectedElementSelectionResultByRRwebId(i,{fromTimeMachine:!0});return await window.checksum.timeMachine.goLive(),a},{rrwebId:t,timestamp:this.rrwebEventAtLastReducedHTML.timestamp})}async getESRAForSelector(t,r,i){let n=await this.evaluateWithChecksum(async({selector:a,parentFramesSelectors:o})=>window.checksum.testGenerator.getSelectionDataForSelector(a,o),{selector:t,parentFramesSelectors:r});return n!=null&&n.esraMetadata&&i&&(n.esraMetadata.staticMetadata=await i(n.esraMetadata,t)),n==null?void 0:n.esraMetadata}async getMoreItemsForTemplate(t){return await this.evaluateWithChecksum(async r=>window.checksum.testGenerator.getMoreItemsForTemplate(r,{}),t)??{items:"",hasMoreItems:!1}}async getCurrentReducedHTML({retriesLeft:t=3,retryWaitMS:r=2e3,initialChecksumId:i="0",extractESRAForInterpretationRequiredElements:n=!1,stopFlashingElementsDetection:a=!1,assignChecksumIdsToAllElements:o}={}){let l=new Date;this.logger.log("[getCurrentReducedHTML] Fetching reduced HTML...");try{let{reducedHTML:h,currentChecksumId:u,flashingHTML:c,elementsForNodeInterpretation:f,lastRRwebEvent:d}=await this.evaluateWithChecksum(async b=>window.checksum.testGenerator.reduceHTML({},b),{initialChecksumId:i,extractESRAForInterpretationRequiredElements:n,stopFlashingElementsDetection:a,assignChecksumIdsToAllElements:o}),p=new Date;return this.logger.log(`[getCurrentReducedHTML] Fetched reduced HTML in ${p.getTime()-l.getTime()}ms`),this.rrwebEventAtLastReducedHTML=d,{reducedHTML:h,flashingHTML:c,elementsForNodeInterpretation:f,currentChecksumId:u}}catch(h){if(t>0)return this.logger.logError(`[getCurrentReducedHTML] Error: ${h.message}`),this.logger.logError(`Failed do obtain reduced HTML, trying again in ${r/1e3} seconds, ${t-1} to go.`),await O(r),this.getCurrentReducedHTML({retriesLeft:t-1,retryWaitMS:r});throw h}}getActionEventCode(t){return{click:"click",fill:"input",click_and_type:"click_and_type",clear_and_type:"clear_and_type",double_click:"double_click",drag_and_drop:"drag_and_drop",hover:"hover",navigate:"navigation",keystroke:"keystroke",selectoption:"selectoption",upload_files:"upload_files",wait:"wait",get_more_items:"get_more_items",reset:void 0,save:void 0,fail:void 0,finish:void 0,dismiss_modal:void 0,vision_help:void 0,switch_tab:"switch_tab",expand_interactable_elements:void 0,approve_release:void 0,logout_and_login:"logout_and_login"}[t]}exampleCustomCode(){function t(i){return new Promise(n=>setTimeout(n,i))}s(t,"sleep");async function r(){let i={foo:s(()=>{console.log("fooed")},"foo")};await(0,eval)('async (page) => {console.log("before foo"); await sleep(1000); page.foo();}')(i)}s(r,"doit"),(async()=>r())()}};s(Co,"TestGenerationPageInteractor");var Bt=Co;var qk=__dirname+"/checksumlib.js",jk=1e3*30;var cd=!1;function _o(e){cd=e}s(_o,"setLogToConsole");function Y(...e){cd&&console.log(...e)}s(Y,"log");function Yv(e,{role:t,environment:r}={},i=!1){var l,h;let n;r&&(n=(l=e.environments)==null?void 0:l.find(({name:u})=>r===u)),n||(n=(h=e.environments)==null?void 0:h.find(({default:u})=>u)),n||(n={baseURL:e.baseURL,default:!0,name:void 0});let a=(n==null?void 0:n.users)??e.users,o;if(a&&(t&&(o=a.find(u=>u.role===t)),o||(o=a.find(u=>u.default))),o||(o={role:void 0,username:e.username,password:e.password,default:!0}),r&&n.name!==r){if(i)throw new Error(`Could not find environment with name "${r}" in config file`);console.warn(`Could not find environment with name "${r}" in config file, trying to use default environment`)}if(t&&o.role!==t){if(i)throw new Error(`Could not find user with role "${t}" for environment "${r}" in config file`);console.warn(`Could not find user with role "${t}" for environment "${r}" in config file, trying to login with environment's default user`)}return{environment:n,user:o}}s(Yv,"resolveEnvironment");function ko(e){let{config:t,folder:r,throwIfAuthFailed:i}=e;try{let n=require(`${r??Fa()}/login.ts`).default;return async(a,{role:o,environment:l}={})=>{let h={username:t.username,password:t.password},{environment:u,user:c}=Yv(t,{role:o,environment:l});if(i&&!c)throw new Error("Could not find user credentials matching the provided role and/or environment");c&&(h.username=c.username,h.password=c.password);let f=s(()=>n(a,{...t,...h},{environment:u,user:c}),"performLogin");"checksumAI"in a?await a.checksumAI(`Log in${c!=null&&c.role?` using ${c.role} role`:""}${u!=null&&u.name?` in ${u.name} environment`:""}`,f):await f()}}catch(n){throw console.warn("Could not find checksum login file. Please create a login.ts file in your checksum folder"),n}}s(ko,"makeUnboundLogin");var Ld=require("path"),ki=require("@playwright/test"),Wo=J(Md());var No=class No{constructor(t){this.options=t;this.harData={methodIndex:{GET:0,POST:0,PUT:0,DELETE:0}};this.interceptors={recordHar:this.harInterceptor.bind(this),completeOriginHeader:this.completeOriginHeaderInterceptor.bind(this)};this.intercept=s(async(t,r,i)=>{let n=[],a=s(o=>{if(o)switch(o.type){case"abort":return t.abort(o.errorCode);case"fulfill":return t.fulfill(o.fulfillOptions);default:case"continue":n.push(o)}},"processResult");for(let[o,l]of Object.entries(this.interceptors))if(this.options[o]){let h=a(await l(t,r,i));if(h)return h}return this.applyContinueResults(t,n)},"intercept")}setOptions(t){this.options=t}mergeOptions(t){this.options={...this.options,...t}}applyContinueResults(t,r){let i=r.filter(a=>!!a),n={};return i.forEach(a=>{a.options&&(a.options.headers&&(n.headers={...n.headers,...a.options.headers}),a.options.method&&(n.method=a.options.method),a.options.postData&&(n.postData=a.options.postData),a.options.url&&(n.url=a.options.url))}),t.continue(n)}async harInterceptor(t){let r=t.request().headers(),i=t.request().method();return r["Checksum-Id"]=(++this.harData.methodIndex[i]).toString(),{options:{headers:r}}}async completeOriginHeaderInterceptor(t,r,{page:i}){let n=t.request().headers();if(!n.Origin){try{let a=new URL(i.url()).origin;n.Origin=a}catch{}return{options:{headers:n}}}}};s(No,"RouteInterceptors");var Wn=No;var qo=class qo{constructor(t={},r={}){this.browserConfig={devtools:!1,executablePath:process.env.PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH??void 0};this.options={fullScreenResolution:!1,defaultTimeout:3e4,defaultNavigationTimeout:3e4,disableWebSecurity:!0};this.navigationPromise={};this.contextClosePromise=void 0;this.eventListeners=[];this.lastSnapshot={selector:void 0,eventCode:void 0};this.snapshotTimeout=3e4;this.cacheScript=!1;this.pagesCounter=0;this.pagesIndexToGuid={};this.onRequestFinished=s(async t=>{try{let r=await t.response();if(!r.ok())return;let i=t.resourceType(),n=t.url(),a=s(async()=>{try{return await r.text()}catch{try{return await(await fetch(n)).text()}catch{return}}},"getBody");if(["document","script","stylesheet"].includes(i))try{let o=await a();if(!o)return;let l={url:n,source:o,type:i};await this.forEachEventListener(h=>{var u;return(u=h.onWebDriverResourceLoaded)==null?void 0:u.call(h,l)})}catch(o){console.error("[WebDriver] requestfinished event handler error",i,n,o)}}catch(r){console.error("[WebDriver] requestfinished event handler error",r)}},"onRequestFinished");this.onPage=s(async t=>{try{await(t==null?void 0:t.route("**/*",async(r,i)=>this.routeInterceptor.intercept(r,i,{page:t})))}catch(r){console.error("[WebDriver] onPage error",r)}},"onPage");this.onFrameNavigated=s(async t=>{let r=t.page();if(r.mainFrame()!==t)return;let i=s(async n=>{await this.forEachEventListener(a=>{var o;return(o=a.onWebDriverPageNavigated)==null?void 0:o.call(a,r,r.url(),n)})},"notifyFrameNavigated");await i(!1),this.navigationPromise[this.getGuid(r)]=new Promise(async n=>{await this.loadScript(r),await i(!0),n()})},"onFrameNavigated");this.navigatingPages={};this.tracing=!1;this.tracingChunk=!1;this.chunkIndex=0;var i;if(this.options={...this.options,...t},this.browserConfig={...this.browserConfig,...r},this.browserConfig.args||(this.browserConfig.args=[]),this.options.disableWebSecurity&&this.browserConfig.args.push("--disable-web-security"),this.browserConfig.args.push("--disable-site-isolation-trials"),this.browserConfig.args.push("--allow-running-insecure-content"),this.options.forceHeadless&&(this.browserConfig.headless=!0,this.browserConfig.devtools=!1),this.options.useProxy)if((i=this.options.webProxy)!=null&&i.server){console.log("[WebDriver] using proxy");let{server:n,username:a,password:o}=this.options.webProxy;this.browserConfig.proxy={server:n,username:a,password:o},this.browserConfig.args.push("--proxy-bypass-list=localhost,127.0.0.1")}else console.error("[WebDriver] useProxy=true but proxy not configured");this.routeInterceptor=new Wn({completeOriginHeader:this.options.completeOriginHeader,recordHar:this.options.recordHAR})}setOnScriptLoad(t){this.onScriptLoad=t}async prepare({storageState:t}={}){if(await this.shutdown(),this.options.useStealth){let i=require("puppeteer-extra-plugin-stealth");Wo.chromium.use(i()),this.browser=await Wo.chromium.launch(this.browserConfig)}else this.browser=await ki.chromium.launch(this.browserConfig);let r={};return r.bypassCSP=!0,r.ignoreHTTPSErrors=!0,r.baseURL=this.options.baseURL,this.options.timezoneId&&(r.timezoneId=this.options.timezoneId),this.options.fullScreenResolution&&(r.viewport={width:1280,height:720}),t&&(r.storageState=t),this.context=await this.browser.newContext(r),this.options.defaultTimeout&&this.context.setDefaultTimeout(this.options.defaultTimeout),this.options.defaultNavigationTimeout&&this.context.setDefaultNavigationTimeout(this.options.defaultNavigationTimeout),this.pageInjectedScriptOptions=this.getPageInjectedScriptOptions(),this.context.on("page",i=>{this.onPage(i),this.onFrameNavigated(i.mainFrame()),i.on("framenavigated",this.onFrameNavigated)}),this.context.on("close",async()=>{this.contextClosePromise=this.forEachEventListener(i=>{var n;return(n=i.onWebDriverContextClose)==null?void 0:n.call(i)})}),this.activePage=await this.context.newPage(),this.originalPage=this.activePage,this.options.trackLoadedResources&&this.page.on("requestfinished",this.onRequestFinished),this.options.useCDPSession&&(this.cdpSession=await this.context.newCDPSession(this.page)),!0}getGuid(t){return t._guid}switchActivePage(t){let r=this.context.pages().find(i=>this.getGuid(i)===t);return!r||r.isClosed()?(console.error(`[WebDriver] Page with guid ${t} not found or has been closed.`),!1):(this.previousPage=this.activePage,this.activePage=r,!0)}getDefaultTimeout(){return this.options.defaultTimeout}getDefaultNavigationTimeout(){return this.options.defaultNavigationTimeout}async addHARMockAPIRecordings(t){if(!this.activePage){console.warn("[addHARMockAPIRecordings] Active page is not set, skipping HAR recording.");return}await this.activePage.routeFromHAR(t,{url:/^(?!.*\.(js|mjs|ts|jsx|tsx|css|jpg|jpeg|png|gif|svg|webp|heif|heic|raw|cr2|nef|arw|bmp|tiff|tif|ico|woff|woff2|ttf|otf|doc|docx|pdf|ws|wasm|mp3|wav|aac|flac|mp4|avi|mov|wmv|flv|zip|rar|7z|tar\.gz|xml|html|py|java|cpp|xls|xlsx|ppt|pptx|gif)$)/i,update:!0,updateMode:"minimal"})}forEachEventListener(t){return Promise.all(this.eventListeners.map(async r=>{try{await t(r)}catch(i){console.log("WebDriver/forEachEventListener exception",i)}}))}getPageInjectedScriptOptions(){switch(this.options.scriptSource){case"file":return this.options.scriptFile?{path:(0,Ld.join)(process.cwd(),this.options.scriptFile)}:void 0;case"url":return this.options.scriptURL?{url:this.options.scriptURL}:void 0;default:return}}registerEventListener(t){this.eventListeners.push(t)}async loadScript(t,{retriesLeft:r=3,retryWaitMS:i=2e3}={}){var o;if(!this.pageInjectedScriptOptions){console.warn("[WebDriver] Script options not set, skipping script load");return}if(t.isClosed())return;try{if(await t.waitForFunction(()=>!!window.checksum,void 0,{timeout:1e3}))return}catch{}if(t.isClosed())return;try{await t.addScriptTag(this.pageInjectedScriptOptions)}catch(l){if(r>0)return console.warn(`[WebDriver] Failed to add script, trying again in ${i/1e3} seconds, ${r-1} retries left.`,l),await O(i),this.loadScript(t,{retriesLeft:r-1,retryWaitMS:i});throw l}let n=this.getGuid(t),a=Date.now().toString(36)+Math.random().toString(36).substr(2);if(this.navigatingPages[n]=a,this.options.scriptInitWait&&(console.log(`Waiting ${this.options.scriptInitWait}[ms] before onScriptLoad...`),await O(this.options.scriptInitWait),console.log("Done waiting before onScriptLoad")),!t.isClosed()){if(this.navigatingPages[n]&&this.navigatingPages[n]!==a)return console.log("Page navigated again, waiting on new promise..."),this.navigationPromise[n];await((o=this.onScriptLoad)==null?void 0:o.call(this,t))}}async getScript(){async function t(r){let{exec:i}=require("child_process");return new Promise((n,a)=>{i(r,o=>{o?(console.log("error executing cmd, ",o),a(o)):n()})})}switch(s(t,"execCmd"),this.options.scriptSource){case"file":return this.options.scriptFile;case"url":if(this.cacheScript)return this.options.scriptFile;try{return await t(`curl -o ${this.options.scriptFile} '${this.options.scriptURL}'`),this.options.scriptFile}catch(r){console.log("[web-driver] Failed fetching frontend script",r)}break}}async startJSCoverageTracking(){return await this.page.coverage.startJSCoverage(),[];return await this.cdpSession.send("Debugger.enable"),await this.cdpSession.send("Profiler.enable"),await this.cdpSession.send("Profiler.startPreciseCoverage",{callCount:!1,detailed:!0}),this.getCurrentJSCoverage()}stopJSCoverageTracking(){return this.page.coverage.stopJSCoverage()}async getCurrentJSCoverage(){let t=await this.page.coverage.stopJSCoverage();return await this.page.coverage.startJSCoverage(),t;return(await this.cdpSession.send("Profiler.takePreciseCoverage")).result}async startCSSCoverageTracking(){return await this.cdpSession.send("DOM.enable"),await this.cdpSession.send("CSS.enable"),await this.cdpSession.send("CSS.startRuleUsageTracking"),this.getCurrentCSSCoverage()}async getCurrentCSSCoverage(){return(await this.cdpSession.send("CSS.takeCoverageDelta")).coverage}getCDPSession(){return this.cdpSession}async navigate(t){return this.page.goto(t)}async setViewportSize(t,r){return this.page.setViewportSize({width:t,height:r})}async getStorageState(){return this.page.context().storageState()}async shutdown(){try{this.page&&(await this.page.close(),this.activePage=void 0),this.context&&(await this.context.close(),this.context=void 0),this.browser&&(await this.browser.close(),this.browser=void 0)}catch(t){console.warn("[WebDriver] shutdown error",t)}}async wrapWithBrowserLogs(t,{disabled:r=!1,onErrorOnly:i=!1}={}){if(r)return t();let n=[],a=s(h=>{n.push(h.text())},"log");this.page.on("console",a);let o,l;try{l=await t()}catch(h){o=h}if(this.page.off("console",a),(!i||o)&&console.log("browser console messages:",n),o)throw o;return l}async takeElementSnapshot(t,r,i={},n={}){if(t===this.lastSnapshot.selector&&r===this.lastSnapshot.eventCode)return{};if(!t)return{};try{let{snapshot:a,elementLocator:o}=await this.takeSnapshot(t,n,{frameLocatorSelector:i.frameLocatorSelector});return this.lastSnapshot={selector:t,eventCode:r},{snapshot:a,elementLocator:o}}catch(a){return console.error("takeElementSnapshot error",a),{}}}getScreenshotTimeout(t=!1){return t?this.snapshotTimeout:this.snapshotTimeout+5e3}async takePageSnapshot(t){let r=this.page.screenshot({...t,timeout:this.getScreenshotTimeout()});return await Promise.race([r,O(this.getScreenshotTimeout(!0))])}async takeSnapshot(t,r,{frameLocatorSelector:i}={}){let n=i?this.page.frameLocator(i).locator(t):this.page.locator(t),a=n.screenshot({...r,timeout:this.getScreenshotTimeout()});return{snapshot:await Promise.race([a,O(this.getScreenshotTimeout(!0))]),elementLocator:n}}async getCurrentURL(){return this.page.url()}async getClientScreenResolution(){return await this.page.evaluate(async()=>({width:window.screen.width,height:window.screen.height}))}async awaitContextClose(){return this.contextClosePromise||await O(100),this.contextClosePromise}get page(){return this.activePage}getPage(){return this.activePage}startPlaywrightTrace(){return this.tracing=!0,this.context.tracing.start({name:"trace",screenshots:!0,snapshots:!0})}startPlaywrightTraceChunk(){return this.tracingChunk=!0,this.context.tracing.startChunk({name:`trace-chunk-${this.chunkIndex}`})}stopPlaywrightTraceChunk(t){return this.tracingChunk=!1,this.context.tracing.stopChunk({path:`${t.replace(".zip",`.${this.chunkIndex++}.zip`)}`})}stopPlaywrightTrace(t){return this.tracing=!1,this.context.tracing.stop({path:t})}isTracing(){return this.tracing}isTracingChunk(){return this.tracingChunk}};s(qo,"WebDriver");var qn=qo;var Ey={useCDPSession:!0,trackLoadedResources:!0},jo=class jo extends qn{constructor(r={},i={devtools:!0},n={}){super({...Ey,...r},i);this.settings={frontendAppSpecificRules:void 0,initTestGenerator:!0,frontendTestGenerationConfig:void 0,useTimeMachine:!1};this.initTestGenerator=s(async r=>{let i={assertionGenerator:!0,sessionRecorder:!0};r===this.timeMachinePage&&(i.assertionGenerator=!1,i.sessionRecorder=!1);try{return await r.waitForFunction(()=>{var n;return!!((n=window.checksum)!=null&&n.testGenerator)}),r.evaluate(async({appSpecificRules:n,config:a,initModules:o})=>{window.checksum.testGenerator.init(n,a,o),n.hasGoals&&await window.checksum.goalTracker.init()},{appSpecificRules:this.settings.frontendAppSpecificRules,config:this.getFrontendTestGenerationConfig(),initModules:i})}catch(n){console.log("initTestGenerator exception",n)}},"initTestGenerator");this.settings={...this.settings,...n},this.settings.initTestGenerator&&this.setOnScriptLoad(this.initTestGenerator)}async prepare(r={}){let i=await super.prepare(r);return this.settings.loadScriptOnPrepare&&await this.loadScript(this.page),await this.page.addInitScript(()=>{window.sessionStorage.setItem("checksumai:disable","true")}),this.settings.useTimeMachine&&(this.timeMachinePage=await this.context.newPage(),await this.page.bringToFront(),await this.loadScript(this.timeMachinePage),await this.timeMachinePage.evaluate(()=>window.checksum.timeMachine.start({firstEventTimestamp:Date.now()}))),i}getTimeMachinePage(){return this.timeMachinePage}getFrontendTestGenerationConfig(){return this.settings.frontendTestGenerationConfig}async getBestMatchingElementSimilarityScore(r){return this.evaluateWithChecksum(async i=>await window.checksum.testGenerator.getBestMatchingElementSimilarityScore(i),r)}async getInteractableElements(){return this.evaluateWithChecksum(async()=>await window.checksum.testGenerator.getInteractableElements())}async getAllInteractableElementsForLastSelectQuery(){return this.evaluateWithChecksum(async()=>await window.checksum.testGenerator.getAllInteractableElementsForLastSelectQuery())}async evaluateWithChecksum(r,i){this.navigationPromise[this.getGuid(this.page)]&&await this.navigationPromise[this.getGuid(this.page)];try{return this.page.evaluate(r,i)}catch(n){throw console.error("evaluateWithChecksum error",n,r.toString()),n}}async overlayInteractableElementsWithChecksumId(r){return this.page.evaluate(i=>window.checksum.testGenerator.overlayInteractableElementsWithChecksumId(i),r)}async postRRwebEvents(r){return this.page.evaluate(i=>window.checksum.testGenerator.postRRwebEvents(i),r)}async getRRwebEvents(r=0){return this.evaluateWithChecksum(async({index:i})=>window.checksum.testGenerator.getRRwebEvents(i),{index:r})}async getGoals(){return await this.evaluateWithChecksum(async()=>window.checksum.goalTracker.getGoals())}async takeElementSnapshot(r,i,n={},a={}){try{let{snapshot:o,elementLocator:l}=await super.takeElementSnapshot(r,i,n);if(!o||!n.takeBodyScreenshot)return o?{snapshot:o}:{};await this.highlightElementByLocator(l,n.mousePosition);let h=await this.takePageSnapshot(a);return await this.clearHighlights(),{snapshot:o,bodySnapshot:h}}catch(o){return console.error("[ChecksumWebDriver] takeElementSnapshot error",o),{}}}async highlightElementByLocator(r,i,n="20px solid rgba(255,0,0,1)"){return this.evaluateWithChecksum(async([a,o,l])=>{window.checksum.testGenerator.highlightElement(a,{highlightStyle:{outline:o},mousePosition:l})},[await r.elementHandle(),n,i])}async clearHighlights(){return this.evaluateWithChecksum(async()=>window.checksum.testGenerator.clearHighlights())}async getInspectedElementSelectionResultByRRwebId(r,i={fromTimeMachine:!1}){return await(i.fromTimeMachine?this.getTimeMachinePage().evaluate.bind(this.getTimeMachinePage()):this.evaluateWithChecksum.bind(this))(([a,o])=>window.checksum.testGenerator.getInspectedElementSelectionResultByRRwebId(a,o),[parseInt(r,10),i])}};s(jo,"ChecksumWebDriver");var kr=jo;var zo=class zo{constructor(t,r={},i=!0){this.requests=[];this.watcherConfig={minimumWaitTime:250,maximumWaitTime:1e4,followingRequestsWaitTime:250};this.resolved=!0;this.hasMinimumWaitTimePassed=!1;this.useLog=!1;this.logStack=[];this.resolve=s(()=>{this.resolved||(this.resolved=!0,clearTimeout(this.minimumWaitTimer),clearTimeout(this.maximumWaitTimer),clearTimeout(this.followingRequestWaitTimeoutId),this.loadResolve({totalTime:Date.now()-this.startTS,logs:this.logStack,pendingRequests:this.requests.length,totalRequests:this.observedRequestsCount}))},"resolve");this.watcherConfig={...this.watcherConfig,...r},this.initListeners(t),this.useLog=i}initListeners(t){t.on("request",r=>{var i;this.hasMinimumWaitTimePassed||(i=this.watcherConfig.whitelist)!=null&&i.length&&!this.watcherConfig.whitelist.some(n=>n.test(r.url()))||(this.useLog&&this.logStack.push(`${r.method()} ${r.url().substring(0,60)}`),this.requests.push(r),this.observedRequestsCount+=1)}),t.on("response",r=>{this.requests=this.requests.filter(i=>i!==r.request()),this.hasMinimumWaitTimePassed&&(this.requests.length||(clearTimeout(this.followingRequestWaitTimeoutId),this.followingRequestWaitTimeoutId=setTimeout(()=>{this.requests.length||this.resolve()},this.watcherConfig.followingRequestsWaitTime)))})}async wait(){return new Promise(t=>{this.loadResolve=t,this.resolved=!1,this.minimumWaitTimer=setTimeout(()=>{this.hasMinimumWaitTimePassed=!0,this.requests.length||this.resolve()},this.watcherConfig.minimumWaitTime),this.maximumWaitTimer=setTimeout(this.resolve,this.watcherConfig.maximumWaitTime)})}startListening(){this.requests=[],this.startTS=Date.now(),this.hasMinimumWaitTimePassed=!1,this.observedRequestsCount=0,this.useLog&&(this.logStack=[])}};s(zo,"NetworkWatcher");var xr=zo;var jn=s(e=>e.name==="up"||e.name==="k"||e.ctrl&&e.name==="p","isUpKey"),Ho=s(e=>e.name==="down"||e.name==="j"||e.ctrl&&e.name==="n","isDownKey");var zn=s(e=>e.name==="backspace","isBackspaceKey"),Bd=s(e=>"123456789".includes(e.name),"isNumberKey"),Hn=s(e=>e.name==="enter"||e.name==="return","isEnterKey");var Go=class Go extends Error{name="CancelPromptError";message="Prompt was canceled"};s(Go,"CancelPromptError");var Gn=Go,$o=class $o extends Error{name="ExitPromptError"};s($o,"ExitPromptError");var $n=$o,Zo=class Zo extends Error{name="HookError"};s(Zo,"HookError");var Zn=Zo,Vo=class Vo extends Error{name="ValidationError"};s(Vo,"ValidationError");var Sr=Vo;var Qo=require("async_hooks");var Vn=require("async_hooks");var Od=new Vn.AsyncLocalStorage;function Fy(e){return{rl:e,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}s(Fy,"createStore");function Ud(e,t){let r=Fy(e);return Od.run(r,()=>{function i(n){r.handleChange=()=>{r.index=0,n()},r.handleChange()}s(i,"cycle"),t(i)})}s(Ud,"withHooks");function Ut(){let e=Od.getStore();if(!e)throw new Zn("[Inquirer] Hook functions can only be called from within a prompt");return e}s(Ut,"getStore");function Ko(){return Ut().rl}s(Ko,"readline");function Jo(e){let t=s((...r)=>{let i=Ut(),n=!1,a=i.handleChange;i.handleChange=()=>{n=!0};let o=e(...r);return n&&a(),i.handleChange=a,o},"wrapped");return Vn.AsyncResource.bind(t)}s(Jo,"withUpdates");function Er(e){let t=Ut(),{index:r}=t,i={get(){return t.hooks[r]},set(a){t.hooks[r]=a},initialized:r in t.hooks},n=e(i);return t.index++,n}s(Er,"withPointer");function Nd(){Ut().handleChange()}s(Nd,"handleChange");var xi={queue(e){let t=Ut(),{index:r}=t;t.hooksEffect.push(()=>{var n,a;(a=(n=t.hooksCleanup)[r])==null||a.call(n);let i=e(Ko());if(i!=null&&typeof i!="function")throw new Sr("useEffect return value must be a cleanup function or nothing.");t.hooksCleanup[r]=i})},run(){let e=Ut();Jo(()=>{e.hooksEffect.forEach(t=>{t()}),e.hooksEffect.length=0})()},clearAll(){let e=Ut();e.hooksCleanup.forEach(t=>{t==null||t()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}};function he(e){return Er(t=>{let r=s(n=>{t.get()!==n&&(t.set(n),Nd())},"setFn");if(t.initialized)return[t.get(),r];let i=typeof e=="function"?e():e;return t.set(i),[i,r]})}s(he,"useState");function Nt(e,t){Er(r=>{let i=r.get();(!Array.isArray(i)||t.some((a,o)=>!Object.is(a,i[o])))&&xi.queue(e),r.set(t)})}s(Nt,"useEffect");var Le=J(Jn(),1),Xo=J($d(),1);var Zd={prefix:Le.default.green("?"),spinner:{interval:Xo.default.dots.interval,frames:Xo.default.dots.frames.map(e=>Le.default.yellow(e))},style:{answer:Le.default.cyan,message:Le.default.bold,error:s(e=>Le.default.red(`> ${e}`),"error"),defaultAnswer:s(e=>Le.default.dim(`(${e})`),"defaultAnswer"),help:Le.default.dim,highlight:Le.default.cyan,key:s(e=>Le.default.cyan(Le.default.bold(`<${e}>`)),"key")}};function Vd(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}s(Vd,"isPlainObject");function Kd(...e){let t={};for(let r of e)for(let[i,n]of Object.entries(r)){let a=t[i];t[i]=Vd(a)&&Vd(n)?Kd(a,n):n}return t}s(Kd,"deepMerge");function Wt(...e){let t=[Zd,...e.filter(r=>r!=null)];return Kd(...t)}s(Wt,"makeTheme");function Si({isLoading:e=!1,theme:t}){let[r,i]=he(!1),[n,a]=he(0),{prefix:o,spinner:l}=Wt(t);return Nt(()=>{if(e){let h,u=-1,c=setTimeout(Qo.AsyncResource.bind(()=>{i(!0),h=setInterval(Qo.AsyncResource.bind(()=>{u=u+1,a(u%l.frames.length)}),l.interval)}),300);return()=>{clearTimeout(c),clearInterval(h)}}else i(!1)},[e]),r?l.frames[n]:o}s(Si,"usePrefix");function Xn(e,t){return Er(r=>{let i=r.get();if(!i||i.dependencies.length!==t.length||i.dependencies.some((n,a)=>n!==t[a])){let n=e();return r.set({value:n,dependencies:t}),n}return i.value})}s(Xn,"useMemo");function vt(e){return he({current:e})[0]}s(vt,"useRef");function Ei(e){let t=vt(e);t.current=e,Nt(r=>{let i=!1,n=Jo((a,o)=>{i||t.current(o,r)});return r.input.on("keypress",n),()=>{i=!0,r.input.removeListener("keypress",n)}},[])}s(Ei,"useKeypress");var kp=J(Yd(),1),xp=J(_p(),1);function Ti(e,t){return e.split(`
35
+ `).flatMap(r=>(0,xp.default)(r,t,{trim:!1,hard:!0}).split(`
36
36
  `).map(i=>i.trimEnd())).join(`
37
- `)}s(Si,"breakLines");function ta(){return(0,Cp.default)({defaultWidth:80,output:Zo().output})}s(ta,"readlineWidth");function Vy(e,t){return Si(e,t).split(`
38
- `)}s(Vy,"split");function Jy(e,t){let r=t.length,i=(e%r+r)%r;return[...t.slice(i),...t.slice(0,i)]}s(Jy,"rotate");function kp({items:e,width:t,renderItem:r,active:i,position:n,pageSize:a}){let o=e.map((b,y)=>({item:b,index:y,isActive:y===i})),u=Jy(i-n,o).slice(0,a),h=s(b=>u[b]==null?[]:Vy(r(u[b]),t),"renderItemAt"),l=Array.from({length:a}),c=h(n).slice(0,a),f=n+c.length<=a?n:a-c.length;l.splice(f,c.length,...c);let d=f+c.length,p=n+1;for(;d<a&&p<u.length;){for(let b of h(p))if(l[d++]=b,d>=a)break;p++}for(d=f-1,p=n-1;d>=0&&p>=0;){for(let b of h(p).reverse())if(l[d--]=b,d<0)break;p--}return l.filter(b=>typeof b=="string")}s(kp,"lines");function xp({active:e,pageSize:t,total:r}){let i=Math.floor(t/2);return r<=t||e<i?e:e>=r-i?e+t-r:i}s(xp,"finite");function Ep({active:e,lastActive:t,total:r,pageSize:i,pointer:n}){return r<=i?e:t<e&&e-t<i?Math.min(Math.floor(i/2),n+e-t):n}s(Ep,"infinite");function au({items:e,active:t,renderItem:r,pageSize:i,loop:n=!0}){let a=vt({position:0,lastActive:0}),o=n?Ep({active:t,lastActive:a.current.lastActive,total:e.length,pageSize:i,pointer:a.current.position}):xp({active:t,total:e.length,pageSize:i});return a.current.position=o,a.current.lastActive=t,kp({items:e,width:ta(),renderItem:r,active:t,position:o,pageSize:i}).join(`
39
- `)}s(au,"usePagination");var Lp=J(require("readline"),1);var su=class su extends Promise{cancel=s(()=>{},"cancel")};s(su,"CancelablePromise");var ra=su;var Bp=J(Sp(),1);var Nt=[];Nt.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Nt.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Nt.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var aa=s(e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function","processOk"),lu=Symbol.for("signal-exit emitter"),cu=globalThis,Xy=Object.defineProperty.bind(Object),gu=class gu{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(cu[lu])return cu[lu];Xy(cu,lu,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,r){this.listeners[t].push(r)}removeListener(t,r){let i=this.listeners[t],n=i.indexOf(r);n!==-1&&(n===0&&i.length===1?i.length=0:i.splice(n,1))}emit(t,r,i){if(this.emitted[t])return!1;this.emitted[t]=!0;let n=!1;for(let a of this.listeners[t])n=a(r,i)===!0||n;return t==="exit"&&(n=this.emit("afterExit",r,i)||n),n}};s(gu,"Emitter");var hu=gu,mu=class mu{};s(mu,"SignalExitBase");var sa=mu,Qy=s(e=>({onExit(t,r){return e.onExit(t,r)},load(){return e.load()},unload(){return e.unload()}}),"signalExitWrap"),Du=class Du extends sa{onExit(){return()=>{}}load(){}unload(){}};s(Du,"SignalExitFallback");var fu=Du,oa,ye,$,Rr,Pr,Wt,yt,Ir,Ap,Tp,vu=class vu extends sa{constructor(r){super();we(this,Ir);we(this,oa,pu.platform==="win32"?"SIGINT":"SIGHUP");we(this,ye,new hu);we(this,$);we(this,Rr);we(this,Pr);we(this,Wt,{});we(this,yt,!1);Ke(this,$,r),Ke(this,Wt,{});for(let i of Nt)T(this,Wt)[i]=()=>{let n=T(this,$).listeners(i),{count:a}=T(this,ye),o=r;if(typeof o.__signal_exit_emitter__=="object"&&typeof o.__signal_exit_emitter__.count=="number"&&(a+=o.__signal_exit_emitter__.count),n.length===a){this.unload();let u=T(this,ye).emit("exit",null,i),h=i==="SIGHUP"?T(this,oa):i;u||r.kill(r.pid,h)}};Ke(this,Pr,r.reallyExit),Ke(this,Rr,r.emit)}onExit(r,i){if(!aa(T(this,$)))return()=>{};T(this,yt)===!1&&this.load();let n=i!=null&&i.alwaysLast?"afterExit":"exit";return T(this,ye).on(n,r),()=>{T(this,ye).removeListener(n,r),T(this,ye).listeners.exit.length===0&&T(this,ye).listeners.afterExit.length===0&&this.unload()}}load(){if(!T(this,yt)){Ke(this,yt,!0),T(this,ye).count+=1;for(let r of Nt)try{let i=T(this,Wt)[r];i&&T(this,$).on(r,i)}catch{}T(this,$).emit=(r,...i)=>Ue(this,Ir,Tp).call(this,r,...i),T(this,$).reallyExit=r=>Ue(this,Ir,Ap).call(this,r)}}unload(){T(this,yt)&&(Ke(this,yt,!1),Nt.forEach(r=>{let i=T(this,Wt)[r];if(!i)throw new Error("Listener not defined for signal: "+r);try{T(this,$).removeListener(r,i)}catch{}}),T(this,$).emit=T(this,Rr),T(this,$).reallyExit=T(this,Pr),T(this,ye).count-=1)}};oa=new WeakMap,ye=new WeakMap,$=new WeakMap,Rr=new WeakMap,Pr=new WeakMap,Wt=new WeakMap,yt=new WeakMap,Ir=new WeakSet,Ap=s(function(r){return aa(T(this,$))?(T(this,$).exitCode=r||0,T(this,ye).emit("exit",T(this,$).exitCode,null),T(this,Pr).call(T(this,$),T(this,$).exitCode)):0},"#processReallyExit"),Tp=s(function(r,...i){let n=T(this,Rr);if(r==="exit"&&aa(T(this,$))){typeof i[0]=="number"&&(T(this,$).exitCode=i[0]);let a=n.call(T(this,$),r,...i);return T(this,ye).emit("exit",T(this,$).exitCode,null),a}else return n.call(T(this,$),r,...i)},"#processEmit"),s(vu,"SignalExit");var du=vu,pu=globalThis.process,{onExit:Rp,load:Vx,unload:Jx}=Qy(aa(pu)?new du(pu):new fu);var Mp=J(Xn(),1),wt=J(wu(),1);var Ip=s(e=>e.split(`
40
- `).length,"height"),ew=s(e=>e.split(`
41
- `).pop()??"","lastLine"),bu=class bu{rl;height=0;extraLinesUnderPrompt=0;cursorPos;constructor(t){this.rl=t,this.rl=t,this.cursorPos=t.getCursorPos()}render(t,r=""){let i=ew(t),n=(0,Mp.default)(i),a=n;this.rl.line.length>0&&(a=a.slice(0,-this.rl.line.length)),this.rl.setPrompt(a),this.cursorPos=this.rl.getCursorPos();let o=ta();t=Si(t,o),r=Si(r,o),n.length%o===0&&(t+=`
42
- `);let u=t+(r?`
43
- `+r:""),l=Math.floor(n.length/o)-this.cursorPos.rows+(r?Ip(r):0);l>0&&(u+=wt.default.cursorUp(l)),u+=wt.default.cursorTo(this.cursorPos.cols),this.clean(),this.rl.output.unmute(),this.extraLinesUnderPrompt=l,this.height=Ip(u),this.rl.output.write(u),this.rl.output.mute()}checkCursorPos(){let t=this.rl.getCursorPos();t.cols!==this.cursorPos.cols&&(this.rl.output.unmute(),this.rl.output.write(wt.default.cursorTo(t.cols)),this.rl.output.mute(),this.cursorPos=t)}clean(){this.rl.output.unmute(),this.rl.output.write([this.extraLinesUnderPrompt>0?wt.default.cursorDown(this.extraLinesUnderPrompt):"",wt.default.eraseLines(this.height)].join("")),this.extraLinesUnderPrompt=0,this.rl.output.mute()}clearContent(){this.rl.output.unmute(),this.rl.output.write([this.extraLinesUnderPrompt>0?wt.default.cursorDown(this.extraLinesUnderPrompt):"",`
44
- `].join("")),this.rl.output.mute()}done(){this.rl.setPrompt(""),this.rl.output.unmute(),this.rl.output.write(wt.default.cursorShow),this.rl.output.end(),this.rl.close()}};s(bu,"ScreenManager");var Ti=bu;function Ri(e){return s((r,i)=>{let n=(i==null?void 0:i.input)??process.stdin,a=new Bp.default;a.pipe((i==null?void 0:i.output)??process.stdout);let o=Lp.createInterface({terminal:!0,input:n,output:a}),u=new Ti(o),h=s(()=>{},"cancel"),l=new ra((c,f)=>{Bd(o,d=>{function p(){u.checkCursorPos()}s(p,"checkCursorPos");let b=Rp((m,_)=>{y(),f(new zn(`User force closed the prompt with ${m} ${_}`))});function y(){try{d.hooksCleanup.forEach(m=>{m==null||m()})}catch(m){f(m)}i!=null&&i.clearPromptOnDone?u.clean():u.clearContent(),u.done(),b(),d.rl.input.removeListener("keypress",p)}s(y,"onExit"),h=s(()=>{y(),f(new jn)},"cancel");function C(m){setImmediate(()=>{y(),c(m)})}s(C,"done");function v(){d.index=0;try{let m=e(r,C),[_,w]=typeof m=="string"?[m]:m;u.render(_,w),$n.run()}catch(m){y(),f(m)}}s(v,"workLoop"),d.handleChange=()=>v(),v(),d.rl.input.on("keypress",p)})});return l.cancel=h,l},"prompt")}s(Ri,"createPrompt");var Np=J(Vn(),1);var Be=J(require("process"),1);function tw(){return Be.default.platform!=="win32"?Be.default.env.TERM!=="linux":!!Be.default.env.WT_SESSION||!!Be.default.env.TERMINUS_SUBLIME||Be.default.env.ConEmuTask==="{cmd::Cmder}"||Be.default.env.TERM_PROGRAM==="Terminus-Sublime"||Be.default.env.TERM_PROGRAM==="vscode"||Be.default.env.TERM==="xterm-256color"||Be.default.env.TERM==="alacritty"||Be.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}s(tw,"isUnicodeSupported");var Op={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},Up={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},rw={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},iw={...Op,...Up},nw={...Op,...rw},aw=tw(),sw=aw?iw:nw,la=sw,hE=Object.entries(Up);var Cu=class Cu{separator=Np.default.dim(Array.from({length:15}).join(la.line));type="separator";constructor(t){t&&(this.separator=t)}static isSeparator(t){return!!(t&&t.type==="separator")}};s(Cu,"Separator");var qt=Cu;var G=Ri((e,t)=>{let{required:r,validate:i=s(()=>!0,"validate")}=e,n=Ut(e.theme),[a,o]=he("pending"),[u="",h]=he(e.default),[l,c]=he(),[f,d]=he(""),b=ki({isLoading:a==="loading",theme:n});xi(async(_,w)=>{if(a==="pending")if(qn(_)){let g=f||u;o("loading");let E=r&&!g?"You must provide a value":await i(g);E===!0?(d(g),o("done"),t(g)):(w.write(f),c(E||"You must provide a valid value"),o("pending"))}else Wn(_)&&!f?h(void 0):_.name==="tab"&&!f?(h(void 0),w.clearLine(0),w.write(u),d(u)):(d(w.line),c(void 0))});let y=n.style.message(e.message),C=f;typeof e.transformer=="function"?C=e.transformer(f,{isFinal:a==="done"}):a==="done"&&(C=n.style.answer(f));let v;u&&a!=="done"&&!f&&(v=n.style.defaultAnswer(u));let m="";return l&&(m=n.style.error(l)),[[b,y,v,C].filter(_=>_!==void 0).join(" "),m]});var _u=J(Vn(),1);var Wp=J(wu(),1);var ow={icon:{cursor:la.pointer},style:{disabled:s(e=>_u.default.dim(`- ${e}`),"disabled"),description:s(e=>_u.default.cyan(e),"description")},helpMode:"auto"};function Lr(e){return!qt.isSeparator(e)&&!e.disabled}s(Lr,"isSelectable");var fe=Ri((e,t)=>{let{choices:r,loop:i=!0,pageSize:n=7}=e,a=vt(!0),o=Ut(ow,e.theme),u=ki({theme:o}),[h,l]=he("pending"),c=vt(),f=Yn(()=>{let g=r.findIndex(Lr),E=r.findLastIndex(Lr);if(g<0)throw new kr("[select prompt] No selectable choices. All choices are disabled.");return{first:g,last:E}},[r]),d=Yn(()=>"default"in e?r.findIndex(g=>Lr(g)&&g.value===e.default):-1,[e.default,r]),[p,b]=he(d===-1?f.first:d),y=r[p];xi((g,E)=>{if(clearTimeout(c.current),qn(g))l("done"),t(y.value);else if(Nn(g)||jo(g)){if(E.clearLine(0),i||Nn(g)&&p!==f.first||jo(g)&&p!==f.last){let S=Nn(g)?-1:1,k=p;do k=(k+S+r.length)%r.length;while(!Lr(r[k]));b(k)}}else if(Md(g)){E.clearLine(0);let S=Number(g.name)-1,k=r[S];k!=null&&Lr(k)&&b(S)}else if(Wn(g))E.clearLine(0);else{let S=E.line.toLowerCase(),k=r.findIndex(A=>qt.isSeparator(A)||!Lr(A)?!1:String(A.name||A.value).toLowerCase().startsWith(S));k>=0&&b(k),c.current=setTimeout(()=>{E.clearLine(0)},700)}});let C=o.style.message(e.message),v="",m="";(o.helpMode==="always"||o.helpMode==="auto"&&a.current)&&(a.current=!1,r.length>n?m=`
45
- ${o.style.help("(Use arrow keys to reveal more choices)")}`:v=o.style.help("(Use arrow keys)"));let _=au({items:r,active:p,renderItem({item:g,isActive:E}){if(qt.isSeparator(g))return` ${g.separator}`;let S=g.name||g.value;if(g.disabled){let U=typeof g.disabled=="string"?g.disabled:"(disabled)";return o.style.disabled(`${S} ${U}`)}let k=E?o.style.highlight:U=>U,A=E?o.icon.cursor:" ";return k(`${A} ${S}`)},pageSize:n,loop:i});if(h==="done"){let g=y.short??y.name??String(y.value);return`${u} ${C} ${o.style.answer(g)}`}let w=y.description?`
46
- ${o.style.description(y.description)}`:"";return`${[u,C,v].filter(Boolean).join(" ")}
47
- ${_}${m}${w}${Wp.default.cursorHide}`});var ku=class ku{constructor(t,r,i){this.webDriver=t;this.pageInteractor=r;this.callbacks=i;this.quitWaitForUserInteractions=!1}async run(t){switch(await fe({message:"What next?",choices:[{name:"Record my actions",value:"RecordManualActions"},{name:"Custom code",value:"CustomCode"},{name:"Generate assertions",value:"GenerateAssertions"},{name:"Back",value:"Back"}]})){case"RecordManualActions":await this.listenForUserInteractions(t);break;case"CustomCode":await this.getCustomCode();break;case"GenerateAssertions":await this.callbacks.generateAssertions();break;case"Back":break}}async listenForUserInteractions(t){this.quitWaitForUserInteractions=!1;let r=s(()=>{let n=G({message:"Waiting for user interaction [press anything to stop]...",default:void 0});return n.finally(()=>{}).then(()=>{this.quitWaitForUserInteractions=!0}).catch(()=>{}),n},"startQuit"),i=r();for(;!this.quitWaitForUserInteractions;)try{let n=await this.webDriver.getTimeMachinePage().evaluate(()=>window.checksum.visualTestGenerator.consumeInteractions());if(n.length){try{i.cancel()}catch{}for(let a of n)t&&a.timestamp<t||await this.vetManualAction(a);i=r()}await O(1e3)}catch(n){console.log("error",n)}}async vetManualAction(t){let{esraMetadata:r,nodeId:i,...n}=t;console.log("Interaction:",n);let a=await G({message:"Thought [no thought will filter out this interaction]?",default:void 0});a&&(t.description=a,this.callbacks.onActionExecuted(t))}async getCustomCode(){let t=await G({message:"Provide the body of the function: async (page: Page) => { /* code */ }"});if(!t)return;let r={eventCode:"custom_code",fillValue:t};await this.pageInteractor.performAction(r),await this.vetManualAction(r)}};s(ku,"ManualVisualTestGenerator");var ca=ku;var ha=s(async(e,t,r={})=>{var u,h;let i=G({message:((u=r.makePromptMessage)==null?void 0:u.call(r,t))??`Continuing in ${t} seconds [Press enter to stop]...`},{clearPromptOnDone:!0}),n=!1;i.then(async l=>{n=!0,r.onCancelMessage&&console.log(r.onCancelMessage)}).catch(()=>{});let o=s(async()=>{if(await O(1e3),n)return;i.cancel();let l=t-1;return l===0?(r.onContinueMessage&&console.log(r.onContinueMessage),e()):ha(e,l,r)},"timeout")();try{let l=await Promise.race([o,i]);return n?(h=r.cancelCallback)==null?void 0:h.call(r,l):l}catch{return o}},"userInterruptibleDelayedCallback");var xu=class xu{constructor(t,r,i,n,a){this.webDriver=t;this.pageInteractor=r;this.apiBaseURL=i;this.apiKey=n;this.callbacks=a;this.previousActionFailed=!1;this.currentChecksumId="0";this.run=s(async(t=[])=>{this.clear(),this.executedActions=t,await this.startSession(),await this.iterationLoop()},"run");this.iterationLoop=s(async()=>{switch(await this.iterate()){case"continue":return this.runInterruptibleNextAIStep(this.iterationLoop);case"reset":return this.runInterruptibleNextAIStep(()=>this.run(this.callbacks.getExecutedActions()));case"stop":return}},"iterationLoop");this.runInterruptibleNextAIStep=s(async t=>ha(t,5,{makePromptMessage:s(i=>`Will continue in ${i} seconds [Press enter to stop]...`,"makePromptMessage"),onContinueMessage:"Continuing with AI...",onCancelMessage:"Stopping AI"}),"runInterruptibleNextAIStep")}async init(){}setStory(t){this.story=t}clear(){this.executedActions=[],this.remoteSessionId=void 0,this.userThoughtForNextLLMStep=void 0,this.previousActionFailed=!1,this.currentChecksumId="0"}async iterate(){let t="continue",{reducedHTML:r,flashingHTML:i,elementsForNodeInterpretation:n,currentChecksumId:a}=await this.webDriver.evaluateWithChecksum(async({appRules:u,currentChecksumId:h})=>window.checksum.testGenerator.reduceHTML(u,{stopFlashingElementsDetection:!0,assignChecksumIdsToAllElements:!0,initialChecksumId:h}),{appRules:{appSpecificInteractableElementsSelectors:[]},currentChecksumId:this.currentChecksumId});this.currentChecksumId=a;let o=await this.getNextAction({reducedHTML:r,flashingHTML:i,elementsForNodeInterpretation:n});if(this.isFailureAction(o))return await this.getUserThoughtForNextLLMStep(),"continue";try{let u=await this.pageInteractor.translateActionResponseToAgentPotentialAction(o),h=await this.approveAction(u);switch(await this.webDriver.clearHighlights(),h){case"ProvideGuidance":return await this.getUserThoughtForNextLLMStep(),this.iterate();case"ChangeValue":u.fillValue=await this.getValueReplacementFromUser(),t="reset";break;case"Finish":return this.callbacks.onSuccess(),this.callbacks.stop(),"stop";case"Abort":return this.callbacks.stop(),"stop"}if(this.userThoughtForNextLLMStep=void 0,this.previousActionFailed=!1,this.isFinishAction(o))return this.callbacks.onSuccess(),this.callbacks.stop(),"stop";try{let l=new _r(this.webDriver.page);l.startListening(),u.timestamp=Date.now(),await this.pageInteractor.performAction(u),await l.wait(),await O(2e3),this.callbacks.onActionExecuted(u)}catch(l){this.previousActionFailed=!0,console.error(l)}}catch(u){this.previousActionFailed=!0,console.error(u)}return t}async startSession({retriesLeft:t=3}={}){let r={type:"test-generation",storyTitle:this.story.goal,storyInstructions:this.story.instructions,testId:void 0,testSuiteId:void 0,thoughtsAndActions:{previous:this.executedActions.filter(i=>!!i.description).map(i=>({thought:i.description,action:void 0}))}};try{let i=await fetch(`${this.apiBaseURL}/ai-fallback/init`,{method:"POST",headers:{"Content-Type":"application/json",ChecksumAppCode:this.apiKey},body:JSON.stringify({data:r})});this.remoteSessionId=await i.text()}catch(i){if(console.error(i),await O(2e3),t>0)return this.startSession({retriesLeft:t-1});throw i}}async approveAction(t){var a;await this.webDriver.highlightElementByLocator(this.pageInteractor.makeLocator(t.selector,t.parentFramesSelectors),t.clickOffset,"10px solid rgba(255,0,0,1)");let r=`${t.description}${(a=t.fillValue)!=null&&a.length?` with "${t.fillValue}"`:""}`;return ha(async()=>"Proceed",5,{makePromptMessage:s(o=>`Will approve action ${r} in ${o} seconds [Press enter to stop]...`,"makePromptMessage"),onContinueMessage:"Continuing with AI...",cancelCallback:s(async()=>await fe({message:`Proceed with action: "${r}"?`,choices:[{name:"Yes",value:"Proceed"},{name:"Yes, but use a different value",value:"ChangeValue"},{name:"No, I will provide guidance",value:"ProvideGuidance"},{name:"Abort (no test code will be generated)",value:"Abort"},{name:"Finish",value:"Finish"}]}),"getApproval")})}async getUserThoughtForNextLLMStep(){this.userThoughtForNextLLMStep=await G({message:"What should be done next?"})}async getValueReplacementFromUser(){return G({message:"What value should be used?"})}async getNextAction({reducedHTML:t,flashingHTML:r,elementsForNodeInterpretation:i}){let n={reduction:{reducedHTML:t,flashingHTML:r,elementsForNodeInterpretation:i},currentURL:this.webDriver.page.url(),previousActionOverview:{success:!this.previousActionFailed,userCorrection:this.userThoughtForNextLLMStep}};try{return await(await fetch(`${this.apiBaseURL}/ai-fallback/iterate`,{method:"POST",headers:{"Content-Type":"application/json",ChecksumAppCode:this.apiKey},body:JSON.stringify({sessionId:this.remoteSessionId,iterationData:n})})).json()}catch(a){throw console.error(a),a}}isFailureAction(t){var r;return["failed","fail"].includes(t.thought)||["failed","fail"].includes((r=t.action)==null?void 0:r.type)}isFinishAction(t){var r;return t.thought==="finish"||((r=t.action)==null?void 0:r.type)==="finish"}};s(xu,"AIVisualTestGenerator");var fa=xu;var le=require("fs"),da=J(require("child_process")),Fe=require("path");var Eu=class Eu{constructor(t,r=!1){this.args=t;this.debugMode=r;this.checksumApiUrl="https://api.checksum.ai";this.checksumAppUrl="https://app.checksum.ai";this.childProcesses=[];this.printError=s(t=>{console.log("\x1B[31m%s\x1B[0m",t)},"printError");["SIGINT","SIGTERM"].forEach(i=>{process.on(i,()=>{this.cleanup(),process.exit()})})}async execCmd(t,r={}){let i={...process.env,...r},n=await da.spawn(t,{env:i,shell:!0,stdio:"inherit"});return this.childProcesses.push(n),new Promise((o,u)=>{n.on("exit",h=>{h===0?o(!0):u(new Error(`Checksum failed execution with code: ${h} `)),this.childProcesses=this.childProcesses.filter(l=>l!==n)})})}async getCmdOutput(t){return new Promise(function(r,i){da.exec(t,(n,a,o)=>{if(n){i(`Error executing command: ${n.message}`);return}r(a)})})}loadChecksumData(){this.locateChecksumLibs(),this.processChecksumArguments(),this.setChecksumConfig()}async patchPlaywright(t=!1){Y("Patching playwright",t);let r=(0,Fe.join)(__dirname,"./scripts/patch.js");(0,le.existsSync)(r)||(r=(0,Fe.join)(__dirname,"../../../scripts/src/patch_playwright.js"));let i=`node "${r}"${t?" off":""}`;try{await this.execCmd(i,{PROJECT_ROOT:this.projectRootDirectory,RUNTIME:"true"})}catch(n){console.log("Error patching playwright",n.message)}}getPlaywrightConfigFilePath(){return(0,Fe.join)(this.checksumRoot,"playwright.config.ts")}buildVolatileConfig(){if(!this.volatileChecksumConfig)return;let t=this.getVolatileConfigPath(),r=`
37
+ `)}s(Ti,"breakLines");function ra(){return(0,kp.default)({defaultWidth:80,output:Ko().output})}s(ra,"readlineWidth");function Qy(e,t){return Ti(e,t).split(`
38
+ `)}s(Qy,"split");function ew(e,t){let r=t.length,i=(e%r+r)%r;return[...t.slice(i),...t.slice(0,i)]}s(ew,"rotate");function Sp({items:e,width:t,renderItem:r,active:i,position:n,pageSize:a}){let o=e.map((b,v)=>({item:b,index:v,isActive:v===i})),l=ew(i-n,o).slice(0,a),h=s(b=>l[b]==null?[]:Qy(r(l[b]),t),"renderItemAt"),u=Array.from({length:a}),c=h(n).slice(0,a),f=n+c.length<=a?n:a-c.length;u.splice(f,c.length,...c);let d=f+c.length,p=n+1;for(;d<a&&p<l.length;){for(let b of h(p))if(u[d++]=b,d>=a)break;p++}for(d=f-1,p=n-1;d>=0&&p>=0;){for(let b of h(p).reverse())if(u[d--]=b,d<0)break;p--}return u.filter(b=>typeof b=="string")}s(Sp,"lines");function Ep({active:e,pageSize:t,total:r}){let i=Math.floor(t/2);return r<=t||e<i?e:e>=r-i?e+t-r:i}s(Ep,"finite");function Fp({active:e,lastActive:t,total:r,pageSize:i,pointer:n}){return r<=i?e:t<e&&e-t<i?Math.min(Math.floor(i/2),n+e-t):n}s(Fp,"infinite");function ol({items:e,active:t,renderItem:r,pageSize:i,loop:n=!0}){let a=vt({position:0,lastActive:0}),o=n?Fp({active:t,lastActive:a.current.lastActive,total:e.length,pageSize:i,pointer:a.current.position}):Ep({active:t,total:e.length,pageSize:i});return a.current.position=o,a.current.lastActive=t,Sp({items:e,width:ra(),renderItem:r,active:t,position:o,pageSize:i}).join(`
39
+ `)}s(ol,"usePagination");var Up=J(require("readline"),1),Np=require("async_hooks");var ll=class ll extends Promise{cancel=s(()=>{},"cancel")};s(ll,"CancelablePromise");var ia=ll;var Wp=J(Tp(),1);var qt=[];qt.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&qt.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&qt.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var sa=s(e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function","processOk"),hl=Symbol.for("signal-exit emitter"),fl=globalThis,rw=Object.defineProperty.bind(Object),Dl=class Dl{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(fl[hl])return fl[hl];rw(fl,hl,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,r){this.listeners[t].push(r)}removeListener(t,r){let i=this.listeners[t],n=i.indexOf(r);n!==-1&&(n===0&&i.length===1?i.length=0:i.splice(n,1))}emit(t,r,i){if(this.emitted[t])return!1;this.emitted[t]=!0;let n=!1;for(let a of this.listeners[t])n=a(r,i)===!0||n;return t==="exit"&&(n=this.emit("afterExit",r,i)||n),n}};s(Dl,"Emitter");var dl=Dl,vl=class vl{};s(vl,"SignalExitBase");var oa=vl,iw=s(e=>({onExit(t,r){return e.onExit(t,r)},load(){return e.load()},unload(){return e.unload()}}),"signalExitWrap"),yl=class yl extends oa{onExit(){return()=>{}}load(){}unload(){}};s(yl,"SignalExitFallback");var pl=yl,la,ye,$,Pr,Ir,jt,yt,Mr,Rp,Pp,wl=class wl extends oa{constructor(r){super();we(this,Mr);we(this,la,ml.platform==="win32"?"SIGINT":"SIGHUP");we(this,ye,new dl);we(this,$);we(this,Pr);we(this,Ir);we(this,jt,{});we(this,yt,!1);Ve(this,$,r),Ve(this,jt,{});for(let i of qt)T(this,jt)[i]=()=>{let n=T(this,$).listeners(i),{count:a}=T(this,ye),o=r;if(typeof o.__signal_exit_emitter__=="object"&&typeof o.__signal_exit_emitter__.count=="number"&&(a+=o.__signal_exit_emitter__.count),n.length===a){this.unload();let l=T(this,ye).emit("exit",null,i),h=i==="SIGHUP"?T(this,la):i;l||r.kill(r.pid,h)}};Ve(this,Ir,r.reallyExit),Ve(this,Pr,r.emit)}onExit(r,i){if(!sa(T(this,$)))return()=>{};T(this,yt)===!1&&this.load();let n=i!=null&&i.alwaysLast?"afterExit":"exit";return T(this,ye).on(n,r),()=>{T(this,ye).removeListener(n,r),T(this,ye).listeners.exit.length===0&&T(this,ye).listeners.afterExit.length===0&&this.unload()}}load(){if(!T(this,yt)){Ve(this,yt,!0),T(this,ye).count+=1;for(let r of qt)try{let i=T(this,jt)[r];i&&T(this,$).on(r,i)}catch{}T(this,$).emit=(r,...i)=>Ue(this,Mr,Pp).call(this,r,...i),T(this,$).reallyExit=r=>Ue(this,Mr,Rp).call(this,r)}}unload(){T(this,yt)&&(Ve(this,yt,!1),qt.forEach(r=>{let i=T(this,jt)[r];if(!i)throw new Error("Listener not defined for signal: "+r);try{T(this,$).removeListener(r,i)}catch{}}),T(this,$).emit=T(this,Pr),T(this,$).reallyExit=T(this,Ir),T(this,ye).count-=1)}};la=new WeakMap,ye=new WeakMap,$=new WeakMap,Pr=new WeakMap,Ir=new WeakMap,jt=new WeakMap,yt=new WeakMap,Mr=new WeakSet,Rp=s(function(r){return sa(T(this,$))?(T(this,$).exitCode=r||0,T(this,ye).emit("exit",T(this,$).exitCode,null),T(this,Ir).call(T(this,$),T(this,$).exitCode)):0},"#processReallyExit"),Pp=s(function(r,...i){let n=T(this,Pr);if(r==="exit"&&sa(T(this,$))){typeof i[0]=="number"&&(T(this,$).exitCode=i[0]);let a=n.call(T(this,$),r,...i);return T(this,ye).emit("exit",T(this,$).exitCode,null),a}else return n.call(T(this,$),r,...i)},"#processEmit"),s(wl,"SignalExit");var gl=wl,ml=globalThis.process,{onExit:Ip,load:tS,unload:rS}=iw(sa(ml)?new gl(ml):new pl);var Op=J(Qn(),1),wt=J(Cl(),1);var Lp=s(e=>e.split(`
40
+ `).length,"height"),nw=s(e=>e.split(`
41
+ `).pop()??"","lastLine");function Bp(e){return e>0?wt.default.cursorDown(e):""}s(Bp,"cursorDown");var _l=class _l{rl;height=0;extraLinesUnderPrompt=0;cursorPos;constructor(t){this.rl=t,this.rl=t,this.cursorPos=t.getCursorPos()}write(t){this.rl.output.unmute(),this.rl.output.write(t),this.rl.output.mute()}render(t,r=""){let i=nw(t),n=(0,Op.default)(i),a=n;this.rl.line.length>0&&(a=a.slice(0,-this.rl.line.length)),this.rl.setPrompt(a),this.cursorPos=this.rl.getCursorPos();let o=ra();t=Ti(t,o),r=Ti(r,o),n.length%o===0&&(t+=`
42
+ `);let l=t+(r?`
43
+ `+r:""),u=Math.floor(n.length/o)-this.cursorPos.rows+(r?Lp(r):0);u>0&&(l+=wt.default.cursorUp(u)),l+=wt.default.cursorTo(this.cursorPos.cols),this.write(Bp(this.extraLinesUnderPrompt)+wt.default.eraseLines(this.height)+l),this.extraLinesUnderPrompt=u,this.height=Lp(l)}checkCursorPos(){let t=this.rl.getCursorPos();t.cols!==this.cursorPos.cols&&(this.write(wt.default.cursorTo(t.cols)),this.cursorPos=t)}done({clearContent:t}){this.rl.setPrompt("");let r=Bp(this.extraLinesUnderPrompt);r+=t?wt.default.eraseLines(this.height):`
44
+ `,r+=wt.default.cursorShow,this.write(r),this.rl.close()}};s(_l,"ScreenManager");var Pi=_l;function Ii(e){return s((r,i)=>{let n=(i==null?void 0:i.input)??process.stdin,a=new Wp.default;a.pipe((i==null?void 0:i.output)??process.stdout);let o=Up.createInterface({terminal:!0,input:n,output:a}),l=new Pi(o),h=s(()=>{},"cancel"),u=new ia((c,f)=>{Ud(o,d=>{function p(){l.checkCursorPos()}s(p,"checkCursorPos");let b=Ip((D,_)=>{C(),f(new $n(`User force closed the prompt with ${D} ${_}`))}),v=Np.AsyncResource.bind(()=>{try{xi.clearAll()}catch(D){f(D)}});function C(){v(),l.done({clearContent:!!(i!=null&&i.clearPromptOnDone)}),b(),o.input.removeListener("keypress",p),o.removeListener("close",v),a.end()}s(C,"onExit"),h=s(()=>{C(),f(new Gn)},"cancel");function y(D){setImmediate(()=>{C(),c(D)})}s(y,"done"),d(()=>{try{let D=e(r,y),[_,w]=typeof D=="string"?[D]:D;l.render(_,w),xi.run()}catch(D){C(),f(D)}}),o.input.on("keypress",p),o.on("close",v)})});return u.cancel=h,u},"prompt")}s(Ii,"createPrompt");var zp=J(Jn(),1);var Be=J(require("process"),1);function aw(){return Be.default.platform!=="win32"?Be.default.env.TERM!=="linux":!!Be.default.env.WT_SESSION||!!Be.default.env.TERMINUS_SUBLIME||Be.default.env.ConEmuTask==="{cmd::Cmder}"||Be.default.env.TERM_PROGRAM==="Terminus-Sublime"||Be.default.env.TERM_PROGRAM==="vscode"||Be.default.env.TERM==="xterm-256color"||Be.default.env.TERM==="alacritty"||Be.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}s(aw,"isUnicodeSupported");var qp={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},jp={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},sw={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},ow={...qp,...jp},lw={...qp,...sw},uw=aw(),cw=uw?ow:lw,ca=cw,DS=Object.entries(jp);var kl=class kl{separator=zp.default.dim(Array.from({length:15}).join(ca.line));type="separator";constructor(t){t&&(this.separator=t)}static isSeparator(t){return!!(t&&t.type==="separator")}};s(kl,"Separator");var zt=kl;var G=Ii((e,t)=>{let{required:r,validate:i=s(()=>!0,"validate")}=e,n=Wt(e.theme),[a,o]=he("pending"),[l="",h]=he(e.default),[u,c]=he(),[f,d]=he(""),b=Si({isLoading:a==="loading",theme:n});Ei(async(_,w)=>{if(a==="pending")if(Hn(_)){let g=f||l;o("loading");let S=r&&!g?"You must provide a value":await i(g);S===!0?(d(g),o("done"),t(g)):(w.write(f),c(S||"You must provide a valid value"),o("pending"))}else zn(_)&&!f?h(void 0):_.name==="tab"&&!f?(h(void 0),w.clearLine(0),w.write(l),d(l)):(d(w.line),c(void 0))});let v=n.style.message(e.message),C=f;typeof e.transformer=="function"?C=e.transformer(f,{isFinal:a==="done"}):a==="done"&&(C=n.style.answer(f));let y;l&&a!=="done"&&!f&&(y=n.style.defaultAnswer(l));let D="";return u&&(D=n.style.error(u)),[[b,v,y,C].filter(_=>_!==void 0).join(" "),D]});var xl=J(Jn(),1);var Hp=J(Cl(),1);var hw={icon:{cursor:ca.pointer},style:{disabled:s(e=>xl.default.dim(`- ${e}`),"disabled"),description:s(e=>xl.default.cyan(e),"description")},helpMode:"auto"};function Br(e){return!zt.isSeparator(e)&&!e.disabled}s(Br,"isSelectable");var fe=Ii((e,t)=>{let{choices:r,loop:i=!0,pageSize:n=7}=e,a=vt(!0),o=Wt(hw,e.theme),l=Si({theme:o}),[h,u]=he("pending"),c=vt(),f=Xn(()=>{let g=r.findIndex(Br),S=r.findLastIndex(Br);if(g<0)throw new Sr("[select prompt] No selectable choices. All choices are disabled.");return{first:g,last:S}},[r]),d=Xn(()=>"default"in e?r.findIndex(g=>Br(g)&&g.value===e.default):-1,[e.default,r]),[p,b]=he(d===-1?f.first:d),v=r[p];Ei((g,S)=>{if(clearTimeout(c.current),Hn(g))u("done"),t(v.value);else if(jn(g)||Ho(g)){if(S.clearLine(0),i||jn(g)&&p!==f.first||Ho(g)&&p!==f.last){let F=jn(g)?-1:1,k=p;do k=(k+F+r.length)%r.length;while(!Br(r[k]));b(k)}}else if(Bd(g)){S.clearLine(0);let F=Number(g.name)-1,k=r[F];k!=null&&Br(k)&&b(F)}else if(zn(g))S.clearLine(0);else{let F=S.line.toLowerCase(),k=r.findIndex(A=>zt.isSeparator(A)||!Br(A)?!1:String(A.name||A.value).toLowerCase().startsWith(F));k>=0&&b(k),c.current=setTimeout(()=>{S.clearLine(0)},700)}}),Nt(()=>()=>{clearTimeout(c.current)},[]);let C=o.style.message(e.message),y="",D="";(o.helpMode==="always"||o.helpMode==="auto"&&a.current)&&(a.current=!1,r.length>n?D=`
45
+ ${o.style.help("(Use arrow keys to reveal more choices)")}`:y=o.style.help("(Use arrow keys)"));let _=ol({items:r,active:p,renderItem({item:g,isActive:S}){if(zt.isSeparator(g))return` ${g.separator}`;let F=String(g.name||g.value);if(g.disabled){let U=typeof g.disabled=="string"?g.disabled:"(disabled)";return o.style.disabled(`${F} ${U}`)}let k=S?o.style.highlight:U=>U,A=S?o.icon.cursor:" ";return k(`${A} ${F}`)},pageSize:n,loop:i});if(h==="done"){let g=v.short??v.name??String(v.value);return`${l} ${C} ${o.style.answer(g)}`}let w=v.description?`
46
+ ${o.style.description(v.description)}`:"";return`${[l,C,y].filter(Boolean).join(" ")}
47
+ ${_}${D}${w}${Hp.default.cursorHide}`});var Sl=class Sl{constructor(t,r,i){this.webDriver=t;this.pageInteractor=r;this.callbacks=i;this.quitWaitForUserInteractions=!1}async run(t){switch(await fe({message:"What next?",choices:[{name:"Record my actions",value:"RecordManualActions"},{name:"Custom code",value:"CustomCode"},{name:"Generate assertions",value:"GenerateAssertions"},{name:"Back",value:"Back"}]})){case"RecordManualActions":await this.listenForUserInteractions(t);break;case"CustomCode":await this.getCustomCode();break;case"GenerateAssertions":await this.callbacks.generateAssertions();break;case"Back":break}}async listenForUserInteractions(t){this.quitWaitForUserInteractions=!1;let r=s(()=>{let n=G({message:"Waiting for user interaction [press anything to stop]...",default:void 0});return n.finally(()=>{}).then(()=>{this.quitWaitForUserInteractions=!0}).catch(()=>{}),n},"startQuit"),i=r();for(;!this.quitWaitForUserInteractions;)try{let n=await this.webDriver.getTimeMachinePage().evaluate(()=>window.checksum.visualTestGenerator.consumeInteractions());if(n.length){try{i.cancel()}catch{}for(let a of n)t&&a.timestamp<t||await this.vetManualAction(a);i=r()}await O(1e3)}catch(n){console.log("error",n)}}async vetManualAction(t){let{esraMetadata:r,nodeId:i,...n}=t;console.log("Interaction:",n);let a=await G({message:"Thought [no thought will filter out this interaction]?",default:void 0});a&&(t.description=a,this.callbacks.onActionExecuted(t))}async getCustomCode(){let t=await G({message:"Provide the body of the function: async (page: Page) => { /* code */ }"});if(!t)return;let r={eventCode:"custom_code",fillValue:t};await this.pageInteractor.performAction(r),await this.vetManualAction(r)}};s(Sl,"ManualVisualTestGenerator");var ha=Sl;var fa=s(async(e,t,r={})=>{var l,h;let i=G({message:((l=r.makePromptMessage)==null?void 0:l.call(r,t))??`Continuing in ${t} seconds [Press enter to stop]...`},{clearPromptOnDone:!0}),n=!1;i.then(async u=>{n=!0,r.onCancelMessage&&console.log(r.onCancelMessage)}).catch(()=>{});let o=s(async()=>{if(await O(1e3),n)return;i.cancel();let u=t-1;return u===0?(r.onContinueMessage&&console.log(r.onContinueMessage),e()):fa(e,u,r)},"timeout")();try{let u=await Promise.race([o,i]);return n?(h=r.cancelCallback)==null?void 0:h.call(r,u):u}catch{return o}},"userInterruptibleDelayedCallback");var El=class El{constructor(t,r,i,n,a){this.webDriver=t;this.pageInteractor=r;this.apiBaseURL=i;this.apiKey=n;this.callbacks=a;this.previousActionFailed=!1;this.currentChecksumId="0";this.run=s(async(t=[])=>{this.clear(),this.executedActions=t,await this.startSession(),await this.iterationLoop()},"run");this.iterationLoop=s(async()=>{switch(await this.iterate()){case"continue":return this.runInterruptibleNextAIStep(this.iterationLoop);case"reset":return this.runInterruptibleNextAIStep(()=>this.run(this.callbacks.getExecutedActions()));case"stop":return}},"iterationLoop");this.runInterruptibleNextAIStep=s(async t=>fa(t,5,{makePromptMessage:s(i=>`Will continue in ${i} seconds [Press enter to stop]...`,"makePromptMessage"),onContinueMessage:"Continuing with AI...",onCancelMessage:"Stopping AI"}),"runInterruptibleNextAIStep")}async init(){}setStory(t){this.story=t}clear(){this.executedActions=[],this.remoteSessionId=void 0,this.userThoughtForNextLLMStep=void 0,this.previousActionFailed=!1,this.currentChecksumId="0"}async iterate(){let t="continue",{reducedHTML:r,flashingHTML:i,elementsForNodeInterpretation:n,currentChecksumId:a}=await this.webDriver.evaluateWithChecksum(async({appRules:l,currentChecksumId:h})=>window.checksum.testGenerator.reduceHTML(l,{stopFlashingElementsDetection:!0,assignChecksumIdsToAllElements:!0,initialChecksumId:h}),{appRules:{appSpecificInteractableElementsSelectors:[]},currentChecksumId:this.currentChecksumId});this.currentChecksumId=a;let o=await this.getNextAction({reducedHTML:r,flashingHTML:i,elementsForNodeInterpretation:n});if(this.isFailureAction(o))return await this.getUserThoughtForNextLLMStep(),"continue";try{let l=await this.pageInteractor.translateActionResponseToAgentPotentialAction(o),h=await this.approveAction(l);switch(await this.webDriver.clearHighlights(),h){case"ProvideGuidance":return await this.getUserThoughtForNextLLMStep(),this.iterate();case"ChangeValue":l.fillValue=await this.getValueReplacementFromUser(),t="reset";break;case"Finish":return this.callbacks.onSuccess(),this.callbacks.stop(),"stop";case"Abort":return this.callbacks.stop(),"stop"}if(this.userThoughtForNextLLMStep=void 0,this.previousActionFailed=!1,this.isFinishAction(o))return this.callbacks.onSuccess(),this.callbacks.stop(),"stop";try{let u=new xr(this.webDriver.page);u.startListening(),l.timestamp=Date.now(),await this.pageInteractor.performAction(l),await u.wait(),await O(2e3),this.callbacks.onActionExecuted(l)}catch(u){this.previousActionFailed=!0,console.error(u)}}catch(l){this.previousActionFailed=!0,console.error(l)}return t}async startSession({retriesLeft:t=3}={}){let r={type:"test-generation",storyTitle:this.story.goal,storyInstructions:this.story.instructions,testId:void 0,testSuiteId:void 0,thoughtsAndActions:{previous:this.executedActions.filter(i=>!!i.description).map(i=>({thought:i.description,action:void 0}))}};try{let i=await fetch(`${this.apiBaseURL}/ai-fallback/init`,{method:"POST",headers:{"Content-Type":"application/json",ChecksumAppCode:this.apiKey},body:JSON.stringify({data:r})});this.remoteSessionId=await i.text()}catch(i){if(console.error(i),await O(2e3),t>0)return this.startSession({retriesLeft:t-1});throw i}}async approveAction(t){var a;await this.webDriver.highlightElementByLocator(this.pageInteractor.makeLocator(t.selector,t.parentFramesSelectors),t.clickOffset,"10px solid rgba(255,0,0,1)");let r=`${t.description}${(a=t.fillValue)!=null&&a.length?` with "${t.fillValue}"`:""}`;return fa(async()=>"Proceed",5,{makePromptMessage:s(o=>`Will approve action ${r} in ${o} seconds [Press enter to stop]...`,"makePromptMessage"),onContinueMessage:"Continuing with AI...",cancelCallback:s(async()=>await fe({message:`Proceed with action: "${r}"?`,choices:[{name:"Yes",value:"Proceed"},{name:"Yes, but use a different value",value:"ChangeValue"},{name:"No, I will provide guidance",value:"ProvideGuidance"},{name:"Abort (no test code will be generated)",value:"Abort"},{name:"Finish",value:"Finish"}]}),"getApproval")})}async getUserThoughtForNextLLMStep(){this.userThoughtForNextLLMStep=await G({message:"What should be done next?"})}async getValueReplacementFromUser(){return G({message:"What value should be used?"})}async getNextAction({reducedHTML:t,flashingHTML:r,elementsForNodeInterpretation:i}){let n={reduction:{reducedHTML:t,flashingHTML:r,elementsForNodeInterpretation:i},currentURL:this.webDriver.page.url(),previousActionOverview:{success:!this.previousActionFailed,userCorrection:this.userThoughtForNextLLMStep}};try{return await(await fetch(`${this.apiBaseURL}/ai-fallback/iterate`,{method:"POST",headers:{"Content-Type":"application/json",ChecksumAppCode:this.apiKey},body:JSON.stringify({sessionId:this.remoteSessionId,iterationData:n})})).json()}catch(a){throw console.error(a),a}}isFailureAction(t){var r;return["failed","fail"].includes(t.thought)||["failed","fail"].includes((r=t.action)==null?void 0:r.type)}isFinishAction(t){var r;return t.thought==="finish"||((r=t.action)==null?void 0:r.type)==="finish"}};s(El,"AIVisualTestGenerator");var da=El;var ue=require("fs"),pa=J(require("child_process")),Ee=require("path");var Fl=class Fl{constructor(t,r=!1){this.args=t;this.debugMode=r;this.checksumApiUrl="https://api.checksum.ai";this.checksumAppUrl="https://app.checksum.ai";this.childProcesses=[];this.printError=s(t=>{console.log("\x1B[31m%s\x1B[0m",t)},"printError");["SIGINT","SIGTERM"].forEach(i=>{process.on(i,()=>{this.cleanup(),process.exit()})})}async execCmd(t,r={}){let i={...process.env,...r},n=await pa.spawn(t,{env:i,shell:!0,stdio:"inherit"});return this.childProcesses.push(n),new Promise((o,l)=>{n.on("exit",h=>{h===0?o(!0):l(new Error(`Checksum failed execution with code: ${h} `)),this.childProcesses=this.childProcesses.filter(u=>u!==n)})})}async getCmdOutput(t){return new Promise(function(r,i){pa.exec(t,(n,a,o)=>{if(n){i(`Error executing command: ${n.message}`);return}r(a)})})}loadChecksumData(){this.locateChecksumLibs(),this.processChecksumArguments(),this.setChecksumConfig()}async patchPlaywright(t=!1){Y("Patching playwright",t);let r=(0,Ee.join)(__dirname,"./scripts/patch.js");(0,ue.existsSync)(r)||(r=(0,Ee.join)(__dirname,"../../../scripts/src/patch_playwright.js"));let i=`node "${r}"${t?" off":""}`;try{await this.execCmd(i,{PROJECT_ROOT:this.projectRootDirectory,RUNTIME:"true"})}catch(n){console.log("Error patching playwright",n.message)}}getPlaywrightConfigFilePath(){return(0,Ee.join)(this.checksumRoot,"playwright.config.ts")}buildVolatileConfig(){if(!this.volatileChecksumConfig)return;let t=this.getVolatileConfigPath(),r=`
48
48
  import { RunMode, getChecksumConfig } from "@checksum-ai/runtime";
49
49
 
50
50
  export default getChecksumConfig(${JSON.stringify(this.config,null,2)});
51
- `;(0,le.writeFileSync)(t,r)}cleanup(){this.deleteVolatileConfig(),this.childProcesses.forEach(t=>{t.kill("SIGTERM")})}async getEnvInfo(){let t={commitHash:"",branch:"branch",environment:process.env.CI?"CI":"local",name:"name",startedAt:Date.now()};try{t.commitHash=(await this.getCmdOutput("git rev-parse HEAD")).toString().trim()}catch(r){console.log("Error getting git hash",r.message)}try{t.branch=(await this.getCmdOutput("git rev-parse --abbrev-ref HEAD")).toString().trim()}catch(r){console.log("Error getting branch",r.message)}try{t.name=(await this.getCmdOutput("git log -1 --pretty=%B")).toString().trim()}catch(r){console.log("Error getting name",r.message)}return t}getVolatileConfigPath(){return(0,Fe.join)(this.checksumRoot??"","checksum.config.tmp.ts")}deleteVolatileConfig(){let t=this.getVolatileConfigPath();(0,le.existsSync)(t)&&(0,le.rmSync)(t)}setChecksumConfig(){this.config={...require((0,Fe.join)(this.checksumRoot,"checksum.config.ts")).default||{},...this.volatileChecksumConfig||{}},this.debugMode&&(this.config.options.printLogs=!0),this.config.apiURL&&(this.checksumApiUrl=this.config.apiURL)}processChecksumArguments(){this.deleteVolatileConfig();for(let t=0;t<this.args.length;t++){let r=this.args[t];if(r.startsWith("--checksum-config"))try{this.volatileChecksumConfig=JSON.parse(r.split("=")[1]),this.args.splice(t,1)}catch(i){console.log("Error parsing checksum config",i.message),this.volatileChecksumConfig=void 0}r==="--clidebug"&&this.args.splice(t,1),r==="--repl"&&this.args.splice(t,1)}}getChecksumRootOrigin(){return(0,Fe.join)(this.projectRootDirectory,"node_modules","@checksum-ai","runtime","checksum-root")}locateChecksumLibs(){try{this.findProjectRoot(),this.findChecksumRoot(),Y("Project root found at",this.projectRootDirectory),Y("Checksum root found at",this.checksumRoot)}catch(t){console.log(t.message),process.exit(1)}}findProjectRoot(){let t=process.cwd();for(let r=0;r<6;r++){let i=(0,Fe.join)(t,"node_modules","@checksum-ai","runtime");if((0,le.existsSync)(i)){this.projectRootDirectory=t;return}if((0,Fe.parse)(t).root===t)break;t=(0,Fe.join)(t,"..")}throw new Error("Could not resolve checksum root origins")}findChecksumRoot(){let t=s(i=>{try{return(0,le.readdirSync)(i).includes("checksum.config.ts")}catch{return!1}},"containsChecksumConfig"),r=[this.projectRootDirectory];for(;r.length;){let i=r.pop(),n=(0,le.readdirSync)(i,{withFileTypes:!0});for(let a of n){let o=(0,Fe.join)(i,a.name),u=o;if(a.isSymbolicLink())try{let h=(0,le.readlinkSync)(o);if(!(0,le.lstatSync)(h).isDirectory())continue;u=h}catch{continue}else if(!a.isDirectory())continue;if(a.name===Ni){if(t(u)){this.checksumRoot=u;return}}else r.push(o)}}throw new Error("Could not find checksum root folder. Run `npx checksumai init` to create one.")}};s(Eu,"CLICommandBase");var Se=Eu;var Ii=require("fs");var Fu=class Fu{constructor(t){this.webDriver=t;this.quitListen=!1}async run(t,r){try{let i=await this.selectTime(t,r),n=await this.listenForSelection();if(!n)return;let a=await this.processAssertion(n),o=i==="before"?t[r-1]:t[r];o.assertions||(o.assertions=[]),o.assertions.push(a)}finally{this.webDriver.getTimeMachinePage().evaluate(async()=>{await window.checksum.timeMachine.goLive()})}}async selectTime(t,r){let i=await fe({message:"Seek to time",choices:[{name:"Before action",value:"before"},{name:"After action",value:"after"}]}),n=s(()=>{var a;switch(i){case"before":return t[r].timestamp;case"after":return(a=t[r+1])==null?void 0:a.timestamp}},"getSeekTime");return await this.webDriver.getTimeMachinePage().evaluate(a=>window.checksum.timeMachine.goBack(a,{beforeTimestamp:!0}),n()),i}async listenForSelection(){this.webDriver.getTimeMachinePage().evaluate(()=>window.checksum.visualTestGenerator.startInspector(!0));try{this.quitListen=!1;let r=s(()=>{let i=G({message:"Waiting for selection [press anything to stop]...",default:void 0});return i.finally(()=>{}).then(()=>{this.quitListen=!0}).catch(()=>{}),i},"startQuit")();for(;!this.quitListen;)try{let i=await this.webDriver.getTimeMachinePage().evaluate(()=>window.checksum.visualTestGenerator.consumeSelections());if(i.length){try{r.cancel()}catch{}return i[0]}await O(1e3)}catch(i){console.log("error",i)}}finally{this.webDriver.getTimeMachinePage().evaluate(async()=>{await window.checksum.visualTestGenerator.stopInspector()})}}async processAssertion(t){let r={...t};console.log("Asserted element locator:",t.locator.replace("frameLocator('iframe').",""));let i=await G({message:"Thought [no thought will filter out this assertion]?",default:void 0});if(!i)return;let n=await G({message:"Override selector [no]?",default:void 0});n&&(r.selector=n,r.locator=`locator('${n}')`);let a=await G({message:'Matcher from https://playwright.dev/docs/test-assertions [e.g. toBeVisible(), not.toBeVisible(), toHaveText("hello"), toHaveCount(3)]?',default:void 0});if(a)return{thought:i,selected:!0,selector:r.selector,locator:r.locator,matcher:a}}};s(Fu,"VisualAssertionsGenerator");var pa=Fu;var W=require("fs"),Au=J(Pn()),Tu=require("stream/promises"),jp=require("crypto"),jt=require("path");var Su,Ru=class Ru{constructor(t,r,i,n,a=!1){this.mode=t;this.traceDir=r;this.outputZipFilePath=i;this.frontendLogPrefix=n;this.deleteOriginalFiles=a;this.wallTimesToBeRemoved={};this.callIdsRemovals={};this.consoleLogGUIDs=[];this.numberOfLinesPerFile={};this.unarchiveFolder=(0,jp.randomUUID)();this.resourcesFolder=(0,jt.join)(this.unarchiveFolder,"resources");this.runningIndexes={trace:0,network:0,stacks:0};this.generationAllowedAPIName=["page.goto","page.waitForNavigation","page.waitForTimeout","locator.fill","locator.click","locator.hover","locator.check","locator.uncheck","locator.dblclick","locator.dragTo"];let{createInterface:o}=require("readline/promises");Su=o}async process(){if(this.mode==="runtime")return!1;try{if(!(0,W.existsSync)(this.traceDir))return!1;let r=(0,W.readdirSync)(this.traceDir).filter(i=>i.endsWith(".zip")).sort((i,n)=>{let a=s(h=>{try{let l=h.split(".");return parseInt(l[l.length-2])}catch{return 0}},"getIndex"),o=a(i),u=a(n);return o-u});if(!r.length)return!1;(0,W.mkdirSync)(this.unarchiveFolder),(0,W.mkdirSync)(this.resourcesFolder);for(let i of r)await this.processOne((0,jt.join)(this.traceDir,i));if(await this.reZip(),(0,W.rmdirSync)(this.unarchiveFolder,{recursive:!0}),this.deleteOriginalFiles)for(let i of r)(0,W.rmSync)((0,jt.join)(this.traceDir,i))}catch(t){return console.log("There was an error processing the trace files",t),!1}return!0}async processOne(t){let i=(await this.unzipAndWriteFiles(t)).trace.map(a=>(0,jt.join)(this.unarchiveFolder,a));for(let a of i)await this.preprocessFile(a);let n=[...i];for(;n.length>0;)for(let a of n)await this.processFile(a,n)}async unzipAndWriteFiles(t){let r=(0,W.readFileSync)(t),i=await(0,Au.loadAsync)(r),n={trace:[],network:[],stacks:[]},a=s(o=>{let u=s((h,l)=>(n[l].push(h),h),"addToUnarchivedFiles");return o.endsWith(".trace")?u(`trace${this.runningIndexes.trace++}.trace`,"trace"):o.endsWith(".network")?u(`trace${this.runningIndexes.network++}.network`,"network"):o.endsWith(".stacks")?u(`trace${this.runningIndexes.stacks++}.stacks`,"stacks"):null},"getNewFileName");for(let o of Object.keys(i.files)){let u=a(o);if(!u)continue;let h=i.file(o).nodeStream(),l=(0,W.createWriteStream)(`${this.unarchiveFolder}/${u}`);await(0,Tu.pipeline)(h,l)}for(let o of Object.keys(i.files)){if(!o.startsWith("resources/"))continue;let u=o.replace("resources/",""),h=`${this.resourcesFolder}/${u}`;if(this.mode==="generation"&&u.startsWith("src@")||(0,W.existsSync)(h))continue;let l=i.file(o).nodeStream(),c=(0,W.createWriteStream)(h);await(0,Tu.pipeline)(l,c)}return n}async reZip(){let t=await(0,Au.loadAsync)("UEsFBgAAAAAAAAAAAAAAAAAAAAAAAA==",{base64:!0});for(let n of(0,W.readdirSync)(this.unarchiveFolder))if(n.endsWith(".network")||this.shouldIncludeStacksFiles()&&n.endsWith(".stacks")||n.endsWith(".trace")){let a=(0,W.readFileSync)((0,jt.join)(this.unarchiveFolder,n));t.file(n,a)}let r=t.folder("resources");for(let n of(0,W.readdirSync)(this.resourcesFolder)){let a=(0,W.readFileSync)((0,jt.join)(this.resourcesFolder,n));r.file(n,a)}let i=await t.generateAsync({type:"nodebuffer",compression:"DEFLATE"});(0,W.existsSync)(this.outputZipFilePath)&&(0,W.rmSync)(this.outputZipFilePath),(0,W.writeFileSync)(this.outputZipFilePath,i)}async preprocessFile(t){this.callIdsRemovals[t]={callIdsToBeRemoved:{},arrayOfCallIdsToBeRemoved:new Set};let r=(0,W.createReadStream)(t),i=Su({input:r,crlfDelay:1/0}),n=0;for await(let a of i){n++;let o=JSON.parse(a);this.shouldLineBeRemoved(o)&&(o.wallTime&&(this.wallTimesToBeRemoved[o.wallTime]=!0),o.callId&&(this.callIdsRemovals[t].callIdsToBeRemoved[o.callId]=!0,this.callIdsRemovals[t].arrayOfCallIdsToBeRemoved.add(o.callId)))}this.numberOfLinesPerFile[t]=n}async processFile(t,r){var u,h;let i=[],n=(0,W.createReadStream)(t),a=Su({input:n,crlfDelay:1/0}),o=t;for await(let l of a){let c=JSON.parse(l),f=!1;if(this.frontendLogPrefix){if(this.isChecksumConsoleLog(c)){this.consoleLogGUIDs.push(c.guid);continue}if(this.isConsoleLogMetadata(c)&&this.consoleLogGUIDs.includes((h=(u=c.params)==null?void 0:u.message)==null?void 0:h.guid))continue}if(this.lineCanBeRemoved(c)&&(this.wallTimesToBeRemoved[c.wallTime]||this.callIdsRemovals[o].callIdsToBeRemoved[c.callId]||Array.from(this.callIdsRemovals[o].arrayOfCallIdsToBeRemoved).some(d=>l.includes(`"${d}"`)))&&(f=!0),f){c.callId&&(this.callIdsRemovals[o].callIdsToBeRemoved[c.callId]=!0,this.callIdsRemovals[o].arrayOfCallIdsToBeRemoved.add(c.callId));continue}i.push(l)}if(i.length===this.numberOfLinesPerFile[o]){let l=r.indexOf(o);l>-1&&r.splice(l,1)}else this.numberOfLinesPerFile[o]=i.length,(0,W.writeFileSync)(t,i.join(`
52
- `))}isChecksumConsoleLog(t){var r,i;return t.class==="ConsoleMessage"&&((i=(r=t.initializer)==null?void 0:r.text)==null?void 0:i.startsWith(this.frontendLogPrefix))||t.type==="console"&&t.text.startsWith(this.frontendLogPrefix)}isConsoleLogMetadata(t){return t.class==="BrowserContext"&&t.method==="console"}lineCanBeRemoved(t){return!["frame-snapshot"].includes(t.type)}shouldLineBeRemoved(t){switch(this.mode){case"runtime":return this.shouldLineBeRemoved_runtime(t);case"generation":return this.shouldLineBeRemoved_generation(t)}return!1}shouldLineBeRemoved_runtime(t){return!1}shouldIncludeStacksFiles(){return this.mode==="runtime"}shouldLineBeRemoved_generation(t){return!!t.apiName&&!this.generationAllowedAPIName.includes(t.apiName)}};s(Ru,"PlaywrightTraceProcessor");var ga=Ru;var zp=require("path");var Hp=require("fs");var ma=class ma{constructor(t,r,i){this.executedActions=t;this.loginFunction=r;this.settings=i;this.errors=[];this.webDriver=new Cr({fullScreenResolution:!0,baseURL:i.baseURL},{devtools:!1,headless:!1},{})}static fromJSON(t,r){let{executedActions:i,settings:n}=JSON.parse((0,Hp.readFileSync)(t,"utf-8"));return new ma(i,r,n)}async replay(){var r,i;await this.webDriver.prepare(),await this.injectHAR();let t=new Ct(this.webDriver.evaluateWithChecksum.bind(this.webDriver),()=>this.webDriver.page,()=>{},{log:console.log,logError:console.error},{navigationTimeout:30*1e3,actionTimeout:5*1e3,waitActionDelay:1e3,testAssetsDir:__dirname});await this.webDriver.startPlaywrightTrace(),this.settings.didLogin&&await this.loginFunction(this.webDriver.page);for(let n=0;n<this.executedActions.length;++n){let a=this.executedActions[n];((r=a.parentFramesSelectors)==null?void 0:r.length)>0&&(a.parentFramesSelectors=a.parentFramesSelectors.slice(1));try{console.log("Performing action",a.description),await t.performAction(a,{monitorFlashingHTML:!1})}catch{return console.error("Error performing action:",a),this.errors.push({type:"ActionError",actionIndex:n}),!1}if(!((i=a.assertions)!=null&&i.length)){await O(500);continue}for(let o of a.assertions)try{await this.replayAssertion(o)}catch(u){console.error(`Error replaying assertion ${o.locator} ${o.matcher}`,u.message),this.errors.push({type:"AssertionError",actionIndex:n,assertionIndex:a.assertions.indexOf(o)})}}await this.webDriver.stopPlaywrightTrace(this.settings.traceFilePath);try{await new ga("generation",(0,zp.dirname)(this.settings.traceFilePath),this.settings.traceFilePath,"$checksum").process()}catch(n){console.error("Error processing trace",n.message)}return!0}async report(){let t=[];if(this.errors.forEach(r=>{switch(r.type){case"ActionError":t.push(`Error performing action ${this.executedActions[r.actionIndex].description} at index ${r.actionIndex}`);break;case"AssertionError":t.push(`Error executing assertion ${this.executedActions[r.actionIndex].assertions[r.assertionIndex].thought} at index ${r.assertionIndex} of action at index ${r.actionIndex}`);break}}),!t.length){console.log("Replay successful!");return}console.error("Replay errors:"),console.error(t.join(`
53
- `))}async replayAssertion(t){let r=(0,_i.expect)(this.webDriver.page.locator(t.selector)),i=`async (expectCall) => expectCall.${t.matcher}`;await(0,eval)(i)(r)}async injectHAR(){let t={GET:0,POST:0,PUT:0,DELETE:0};try{await this.webDriver.page.routeFromHAR(this.settings.harFilePath,{url:"*/**",notFound:"fallback",update:!1});let r=this.webDriver.page._routes[0].handler;await this.webDriver.page.route("**/*",i=>{let n=i.request().headers(),a=i.request().method();n["Checksum-Id"]=(++t[a]).toString(),i.request()._applyFallbackOverrides({headers:n}),r(i)})}catch(r){console.error("Error setting up mock data",r.message)}}};s(ma,"TestGenerationReplayer");var Pi=ma;var Gp=require("request"),va=require("fs");var Pu=class Pu{constructor(t,r,i,n,a){this.apiBaseURL=t;this.apiKey=r;this.uploadTimeout=i;this.makeGetUploadUrlAPIPath=n;this.onOutstandingUpload=a}async uploadAsset(t){try{let{path:r}=t.info;if(console.log("Uploading file",r),await this.getSignedURLForUpload(t),!t.uploadURL){console.log("Error getting signed URL for asset",r),t.error=!0;return}let n=(0,va.statSync)(r).size,a=(0,va.createReadStream)(r),o=pe(new Promise((u,h)=>{var c;let l=(0,Gp.put)(t.uploadURL,{body:a},(f,d)=>{f&&h(f),u(d)});(c=this.onOutstandingUpload)==null||c.call(this,{request:l,size:n})}),this.uploadTimeout);o.then(u=>{if(u.statusCode!==200)throw new Error("Upload failed");console.log("File uploaded successfully",r),t.complete=!0}).catch(u=>{console.log("Error uploading asset",r,u),t.error=!0}),t.response=o}catch{t.error=!0}}async getSignedURLForUpload(t){try{let r=t.info,i=await fetch(`${this.apiBaseURL}/${this.makeGetUploadUrlAPIPath(t)}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",ChecksumAppCode:this.apiKey},body:JSON.stringify(r)}),{url:n}=await i.json();t.uploadURL=n}catch(r){return console.log("Error getting signed URL for artifact",r),null}}};s(Pu,"TestAssetUploader");var Da=Pu;var $p=J(Pn()),zt=require("path"),bt=require("fs");async function Zp(e,t){let r=await(0,bt.readdirSync)(t);await Promise.all(r.map(async i=>{let n=(0,zt.join)(t,i);if((await(0,bt.statSync)(n)).isDirectory()){let o=e.folder(i);await Zp(o,n)}else{let o=await(0,bt.readFileSync)(n);e.file(i,o)}}))}s(Zp,"addFolderToZip");async function Kp(e){try{let t=await(0,$p.loadAsync)("UEsFBgAAAAAAAAAAAAAAAAAAAAAAAA==",{base64:!0});await Zp(t,e);let r=await t.generateAsync({type:"nodebuffer",compression:"DEFLATE"}),i=(0,zt.join)((0,zt.dirname)(e),`${(0,zt.basename)(e)}.zip`);return(0,bt.writeFileSync)(i,r),i}catch(t){return console.error("Error creating zip:",t),null}}s(Kp,"zipFolder");var Vp=require("fs"),Jp=require("path");var Iu=!1,Mu={story:{goal:"Send email via outreach list",instructions:"Make sure to select a user from the list first"},shouldLogin:!0,environment:{name:void 0,userRole:void 0}},Lu=class Lu extends Se{constructor(r,i=!1){super(r,i);this.checksumScriptFilePath="node_modules/@checksum-ai/runtime/checksumlib.js";this.mode="both";this.stopLoop=!1;this.completedSuccessfully=!1;this.executedActions=[];this.initTimeMachine=s(async(r=!1)=>{await this.webDriver.getTimeMachinePage().evaluate(({shouldHandleEvents:i})=>window.checksum.visualTestGenerator.init(i),{shouldHandleEvents:r})},"initTimeMachine");this.login=s(async(r=this.webDriver.page)=>{await ud(this.config,this.checksumRoot)(r,{role:this.environment.userRole,environment:this.environment.name})},"login")}async run(){await this.init();let r=this.args.find(n=>n.startsWith("--replay"));if(r){let n=r.split("=")[1];return this.loadAndReplay(n)}let i=this.args.find(n=>n.startsWith("--upload"));if(i){let n=i.split("=")[1];return this.uploadFromFolder(n)}await this.prepare(),await this.start(),await this.backup(),await this.replay(),await this.upload()}async loadAndReplay(r){let{executedActions:i,settings:n}=this.loadFile(r),a=new Pi(i,this.login,n);await a.replay(),a.report()}async uploadFromFolder(r){this.loadFile(r),await this.upload()}loadFile(r){let i=JSON.parse((0,Vp.readFileSync)(r,"utf-8")),{executedActions:n,settings:a,testGenerationId:o}=i;return this.executedActions=n,this.testGenerationId=o,this.assetsFolderPath=(0,Jp.dirname)(r),i}async init(){await this.patchPlaywright(),this.loadChecksumData(),this.apiBaseURL=this.checksumApiUrl+"/client-api/runtime"}async prepare({createAssetsFolder:r=!0}={}){this.webDriver=this.buildWebDriver(),this.timeMachineSync=new vi(this.webDriver,this.initTimeMachine);let i={onActionExecuted:s(n=>Array.isArray(n)?this.executedActions.push(...n):this.executedActions.push(n),"onActionExecuted"),stop:s(()=>{this.stopLoop=!0},"stop"),onSuccess:s(()=>{this.completedSuccessfully=!0},"onSuccess"),generateAssertions:s(()=>this.generateAssertions(!1),"generateAssertions"),getExecutedActions:s(()=>this.executedActions,"getExecutedActions")};this.pageInteractor=new Ct(this.webDriver.evaluateWithChecksum.bind(this.webDriver),()=>this.webDriver.page,()=>{},{log:console.log,logError:console.error},{navigationTimeout:30*1e3,actionTimeout:5*1e3,waitActionDelay:1e3,testAssetsDir:__dirname}),r&&this.createTestGenerationAssetsFolders(),this.mode=await fe({message:"Run mode?",choices:[{name:"AI and Manual",value:"both"},{name:"AI only",value:"ai"},{name:"Manual only",value:"manual"}]}),["manual","both"].includes(this.mode)&&(this.manualStepGenerator=new ca(this.webDriver,this.pageInteractor,i)),["ai","both"].includes(this.mode)&&(this.aiStepGenerator=new fa(this.webDriver,this.pageInteractor,this.apiBaseURL,this.config.apiKey,i),await this.aiStepGenerator.init())}async start(){var i,n,a;this.story=await this.getStory(),this.aiStepGenerator&&this.aiStepGenerator.setStory(this.story),(i=this.story)!=null&&i.environment&&(this.environment=this.story.environment);let r=Iu?Mu.shouldLogin:await fe({message:"Auto login?",choices:[{name:"Yes",value:!0},{name:"No",value:!1}]});if(r&&!this.environment&&(Iu?this.environment=Mu.environment:(this.environment={},this.environment.name=await G({message:"Environment name to use [optional]?"}),this.environment.name||(this.environment.name=void 0),this.environment.userRole=await G({message:"Role to login as [optional]?"}),this.environment.userRole||(this.environment.userRole=void 0))),await this.webDriver.prepare(),await this.webDriver.addHARMockAPIRecordings(this.getHarFilePath()),await this.timeMachineSync.start(),this.didLogin=!1,r)try{await this.login(),this.didLogin=!0}catch{console.error("Failed to execute login function")}if(!r||!this.didLogin||(n=this.story)!=null&&n.url){let o=(a=this.story)!=null&&a.url?this.story.url:this.config.baseURL;if(await this.webDriver.getCurrentURL()!=o){let u=new _r(this.webDriver.page);u.startListening(),await this.webDriver.navigate(o),await u.wait(),this.executedActions.push({description:"Navigate to start URL",eventCode:"navigation",fillValue:o}),await O(2e3)}}for(await this.timeMachineSync.enableEventsHandling();!this.stopLoop;)await this.iterate();console.log(this.completedSuccessfully?"Test completed successfully":"Test failed"),await this.webDriver.shutdown(),await O(2e3)}async backup(){let r={executedActions:this.executedActions,testGenerationId:this.testGenerationId,settings:{baseURL:this.config.baseURL,assetsFolderPath:this.assetsFolderPath,didLogin:this.didLogin,traceFilePath:this.getTraceFilePath(),harFilePath:this.getHarFilePath()}};(0,Ii.writeFileSync)(`${this.assetsFolderPath}/test.json`,JSON.stringify(r,null,2))}async replay(){let r=new Pi(this.executedActions,this.login,{baseURL:this.config.baseURL,assetsFolderPath:this.assetsFolderPath,didLogin:this.didLogin,traceFilePath:this.getTraceFilePath(),harFilePath:this.getHarFilePath()});await r.replay(),r.report()}async upload(){try{if(!this.testGenerationId){console.log("No test generation id, can't upload");return}this.testAssetUploader=new Da(this.apiBaseURL,this.config.apiKey,null,()=>`test-generation/${this.testGenerationId}/get-upload-url`);let r=s(o=>({complete:!1,error:!1,response:void 0,info:o}),"buildUploadAsset"),i=r({type:"trace",path:this.getTraceFilePath()}),n=r({type:"har",path:await Kp(this.getHarFolderPath())});await Promise.all([this.testAssetUploader.uploadAsset(i),this.testAssetUploader.uploadAsset(n)]);let a=await fetch(`${this.apiBaseURL}/test-generation/${this.testGenerationId}/completed`,{method:"POST",headers:{"Content-Type":"application/json",ChecksumAppCode:this.config.apiKey},body:JSON.stringify({actions:this.executedActions})})}catch(r){console.error("Failed to upload test",r)}}async getStory(){if(Iu)return Mu.story;let r=await G({message:"User story id [can't upload test without it]?"});if(r){let o=await fetch(`${this.apiBaseURL}/test-generation/init/${r}`,{method:"POST",headers:{"Content-Type":"application/json",ChecksumAppCode:this.config.apiKey}}),{testGenerationId:u,title:h,steps:l,startUrl:c,userRole:f,environment:d}=await o.json();return this.testGenerationId=u,{goal:h,instructions:l,url:c,environment:{userRole:f,name:d}}}if(this.mode==="manual"&&!await fe({message:"Would you like to set the user story parameters (goal, instructions, start url)?",choices:[{name:"Yes",value:!0},{name:"No",value:!1}]}))return;let i=await G({message:"Test goal?"});if(!i)throw new Error("Test goal is required");let n=await G({message:"Special instructions for the test [optional]?"}),a=await G({message:"URL to start from [optional]?"});return{goal:i,instructions:n,url:a}}async iterate(){let r=[{name:"Generate assertion",value:"GenerateAssertions"}];["manual","both"].includes(this.mode)&&r.push({name:"Manual step",value:"PerformManualAction"}),["ai","both"].includes(this.mode)&&r.push({name:"AI step",value:"PerformAIAction"}),r.push({name:"Finish",value:"Finish"}),r.push({name:"Abort (no code will be generated)",value:"Abort"});let i=await fe({message:"Next step?",choices:r});try{switch(i){case"PerformManualAction":return await this.timeMachineSync.enableEventsHandling(),this.manualStepGenerator.run(this.aiIterationEndTimestamp);case"PerformAIAction":await this.timeMachineSync.disableEventsHandling(),await this.aiStepGenerator.run(this.executedActions),this.aiIterationEndTimestamp=Date.now();return;case"GenerateAssertions":return this.generateAssertions(!1);case"Finish":this.completedSuccessfully=!0,this.stopLoop=!0;break;case"Abort":this.stopLoop=!0;break}}catch(n){return console.log("Something unexpected occurred, please try again...",n),await O(2e3),this.iterate()}}async generateAssertions(r=!0){if(r&&await G({message:"Generate assertion?",default:"yes"})!=="yes")return;let i=await fe({message:"Assertion for which action?",choices:this.executedActions.map((n,a)=>({name:n.description,value:a}))});await new pa(this.webDriver).run(this.executedActions,i)}buildWebDriver(){return new Cr({scriptSource:"url",scriptURL:"http://localhost:3001/index.js",scriptFile:this.checksumScriptFilePath,fullScreenResolution:!0,baseURL:this.config.baseURL},{devtools:!1,headless:!1},{useTimeMachine:!0,frontendAppSpecificRules:{},frontendTestGenerationConfig:{logPrefix:"$checksum"}})}createTestGenerationAssetsFolders(){this.assetsFolderPath=this.projectRootDirectory+`/tg-assets/${Date.now()}`,(0,Ii.mkdirSync)(this.assetsFolderPath,{recursive:!0}),(0,Ii.mkdirSync)(this.getHarFolderPath(),{recursive:!0})}getHarFolderPath(){return this.assetsFolderPath+"/har"}getHarFilePath(){return`${this.getHarFolderPath()}/har.har`}getTraceFilePath(){return`${this.assetsFolderPath}/trace.zip`}};s(Lu,"VisualTestGenerator");var ya=Lu;var Yp=require("fs"),Xp=J(require("child_process")),Mi=require("path");var Bu=class Bu extends Se{constructor(r,i=!1){super(r,i);this.MAX_COMPLETION_WAIT=10*60*1e3;this.TEST_RUN_MONITOR_PATH=(0,Mi.join)(__dirname,"test-run-monitor.js");this.didFail=!1;this.isolationMode=!1;this.replMode=!1;this.completeIndicators={upload:!1,tests:!1,report:!1};this.uploadProgress=0;this.replMode=r.includes("--repl")}async run(){if(this.loadChecksumData(),!await this.getSession())return;let r;try{r=await pe(this.startTestRunMonitor(this.testSession),1e4,"test run monitor timeout")}catch{console.log("Error starting test run monitor. Test results will not be available on checksum.")}this.buildVolatileConfig();let i={CHECKSUM_ROOT_FOLDER:this.checksumRoot};r&&(i.CHECKSUM_UPLOAD_AGENT_PORT=r),this.config.options.hostReports&&(i.PW_TEST_HTML_REPORT_OPEN="never"),this.testSession&&this.testSession!=="isolated-session"&&(i.CHECKSUM_TEST_SUITE_ID=this.testSession),this.replMode&&(i.CHECKSUM_REPL="true");let n=[...this.args];this.replMode&&n.push("--debug");let a=`npx playwright test --config "${this.getPlaywrightConfigFilePath()}" ${n.map(o=>`"${o}"`).join(" ")}`;await this.patchPlaywright();try{console.log(`Tests running with @checksum-ai/runtime version ${require("./package.json").version}`),this.replMode?(console.log("Running in REPL mode"),this.execCmd(a,i),await this.execCmd(`node ${__dirname}/repl.js`,i)):await this.execCmd(a,i),console.log("Tests execution finished")}catch{this.didFail=!0,console.log("Error during test execution: Failed passing test")}finally{this.isolationMode||console.log("Waiting for test files to upload to Checksum..."),this.sendReportUploadRequest(),await this.patchPlaywright(!0),this.completeIndicators.tests=!0,await this.handleCompleteMessage()}}getPlaywrightReportPath(){var n;let r=s(a=>(Y("Using report folder",a),(0,Mi.join)(a,"index.html")),"makeFilePath");if(process.env.PLAYWRIGHT_HTML_REPORT)return r(process.env.PLAYWRIGHT_HTML_REPORT);let i=(n=this.playwrightConfig)==null?void 0:n.reporter;if(i instanceof Array){let o=i.filter(u=>u instanceof Array&&u[0]==="html").find(u=>{var h;return(h=u[1])==null?void 0:h.outputFolder});if(o)return r((0,Mi.join)(this.checksumRoot,o[1].outputFolder))}return r((0,Mi.join)(this.projectRootDirectory,"playwright-report"))}sendReportUploadRequest(){let r=this.getPlaywrightReportPath();if(!(0,Yp.existsSync)(r)){console.log(`Could not find report file at ${r}`),this.completeIndicators.report=!0;return}Y("Sending report upload request",r),this.testRunMonitorProcess.stdin.write(`cli:report=${r}`)}startTestRunMonitor(r){return new Promise(i=>{console.log("Starting test run monitor"),this.testRunMonitorProcess=Xp.spawn("node",[this.TEST_RUN_MONITOR_PATH,JSON.stringify({sessionId:r,checksumApiURL:this.checksumApiUrl,apiKey:this.config.apiKey}),...this.isolationMode?["isolated"]:[]]),this.testRunMonitorProcess.stdout.on("data",n=>{let a=n.toString().trim();if(Y("[trm] "+a),!a.startsWith("monitor"))return;let[o,u]=a.substring(a.indexOf(":")+1).split("=");o==="port"?i(u):this.handleTestRunMonitorMessage(o,u)}),this.testRunMonitorProcess.on("exit",(n,a)=>{console.log(`test run monitor process exited with code ${n} and signal ${a}`)}),this.testRunMonitorProcess.stderr.on("data",n=>{this.debugMode&&console.error("[trm] Error:",n.toString())}),this.testRunMonitorProcess.on("error",n=>{console.error(`Error starting test run monitor: ${n.message}`)})})}async handleTestRunMonitorMessage(r,i){switch(Y(`Handling test run monitor message ${this.isolationMode?"(isolation mode)":""}`,r,i),r){case"complete-with-errors":console.log("Error uploading test files to Checksum"),this.sendProcessingError().then(()=>{this.completeIndicators.upload=!0});break;case"complete":this.isolationMode||console.log("Test files uploaded successfully"),this.sendUploadsComplete().then(()=>{this.completeIndicators.upload=!0});break;case"report-complete":{if(this.isolationMode){this.completeIndicators.report=!0;break}let n=i.slice(0,i.indexOf(":"))==="true",a=i.slice(i.indexOf(":")+1),o={};try{o=JSON.parse(a)}catch(u){console.log("Error parsing stats",u.message)}if(await this.sendTestRunEnd(o),this.completeIndicators.report=!0,n){let u=`Checksum report URL: ${this.checksumAppUrl}/#/test-runs/${this.testSession}`,h="*".repeat(u.length);console.log(`${h}
54
- ${u}
55
- ${h}`)}else console.log("An error occurred while uploading the test report to Checksum");break}case"upload-progress":{let n=parseInt(i);(n<this.uploadProgress||n>=this.uploadProgress+10||n===100&&this.uploadProgress!==100)&&(this.uploadProgress=n,console.log(`[ Uploads progress: ${this.uploadProgress}% ]`))}break;case"log":console.log(i);break;case"playwrightConfig":this.playwrightConfig=JSON.parse(i);break;default:console.warn(`Unhandled test run monitor message: ${r}=${i}`)}}async handleCompleteMessage(){let r=Date.now();for(;;){if(Date.now()-r>this.MAX_COMPLETION_WAIT){console.log("An error occurred and Checksum wasn't able to complete processing the test suite."),this.shutdown(1);return}Object.keys(this.completeIndicators).find(i=>!this.completeIndicators[i])?(Y(this.completeIndicators),await O(1e3)):(console.log("Checksum test run complete"),this.shutdown(this.didFail?1:0))}}shutdown(r=0){this.cleanup(),process.exit(r)}cleanup(){var r,i;super.cleanup(),(r=this.testRunMonitorProcess)==null||r.stdin.write("cli:shutdown"),(i=this.testRunMonitorProcess)==null||i.kill()}async getSession(){try{if(!this.config.options.hostReports)return this.setIsolatedMode(),!0;let r=this.config.apiKey;if(!r||r==="<API key>")return this.printError("No API key found in checksum config - please set it in the config file - checksum.config.ts"),this.shutdown(1),!1;let i=JSON.stringify(await this.getEnvInfo()),n=await fetch(`${this.checksumApiUrl}/client-api/test-runs`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",ChecksumAppCode:r},body:i});return this.testSession=(await n.json()).uuid,!0}catch{return console.log("Error connecting to Checksum, the report will not be hosted"),this.setIsolatedMode(),!0}}setIsolatedMode(){this.isolationMode=!0,this.testSession="isolated-session"}async sendTestRunEnd(r){if(!this.isolationMode)try{Y("Sending test run end",r);let i="{}";try{i=JSON.stringify({...r,endedAt:Date.now()})}catch(n){console.log("Error stringifying stats",n.message,r)}await this.updateTestRun(`${this.checksumApiUrl}/client-api/test-runs/${this.testSession}`,"PATCH",i)}catch(i){return console.log("Error sending test run end",i.message),null}}async sendUploadsComplete(){if(!this.isolationMode)try{await this.updateTestRun(`${this.checksumApiUrl}/client-api/test-runs/${this.testSession}/uploads-completed`,"PATCH")}catch(r){console.log("Error sending test run uploads complete",r.message)}}async sendProcessingError(){if(!this.isolationMode)try{await this.updateTestRun(`${this.checksumApiUrl}/client-api/test-runs/${this.testSession}/process-error`,"PATCH")}catch(r){console.log("Error sending test run processing error",r.message)}}async updateTestRun(r,i,n=void 0){let a=await fetch(r,{method:i,headers:{Accept:"application/json","Content-Type":"application/json",ChecksumAppCode:this.config.apiKey},body:n});return Y("Received update test run response from url:",r),await this.logApiResponse(a),a}async logApiResponse(r){try{if(!r.ok){Y("HTTP Error:",r.status,r.statusText);let n=await r.text();Y("Error Details:",n);return}r.headers.get("Content-Type").includes("application/json")?r.json().then(n=>{Y("API Response:",n)}):r.text().then(n=>{Y("API Response:",n)})}catch(i){Y("Error logging API response",i.message)}}};s(Bu,"TestsRunner");var wa=Bu;var Ou=class Ou extends Se{constructor(t,r=!1){super(t,r)}async run(t){switch(t){default:console.log(`
51
+ `;(0,ue.writeFileSync)(t,r)}cleanup(){this.deleteVolatileConfig(),this.childProcesses.forEach(t=>{t.kill("SIGTERM")})}async getEnvInfo(){let t={commitHash:"",branch:"branch",environment:process.env.CI?"CI":"local",name:"name",startedAt:Date.now()};try{t.commitHash=(await this.getCmdOutput("git rev-parse HEAD")).toString().trim()}catch(r){console.log("Error getting git hash",r.message)}try{t.branch=(await this.getCmdOutput("git rev-parse --abbrev-ref HEAD")).toString().trim()}catch(r){console.log("Error getting branch",r.message)}try{t.name=(await this.getCmdOutput("git log -1 --pretty=%B")).toString().trim()}catch(r){console.log("Error getting name",r.message)}return t}getVolatileConfigPath(){return(0,Ee.join)(this.checksumRoot??"","checksum.config.tmp.ts")}deleteVolatileConfig(){let t=this.getVolatileConfigPath();(0,ue.existsSync)(t)&&(0,ue.rmSync)(t)}setChecksumConfig(){this.config={...require((0,Ee.join)(this.checksumRoot,"checksum.config.ts")).default||{},...this.volatileChecksumConfig||{}},this.debugMode&&(this.config.options.printLogs=!0),this.config.apiURL&&(this.checksumApiUrl=this.config.apiURL)}processChecksumArguments(){this.deleteVolatileConfig();for(let t=0;t<this.args.length;t++){let r=this.args[t];if(r.startsWith("--checksum-config"))try{this.volatileChecksumConfig=JSON.parse(r.split("=")[1]),this.args.splice(t,1)}catch(i){console.log("Error parsing checksum config",i.message),this.volatileChecksumConfig=void 0}r==="--clidebug"&&this.args.splice(t,1),r==="--repl"&&this.args.splice(t,1)}}getChecksumRootOrigin(){return(0,Ee.join)(this.projectRootDirectory,"node_modules","@checksum-ai","runtime","checksum-root")}locateChecksumLibs(){try{this.findProjectRoot(),this.findChecksumRoot(),Y("Project root found at",this.projectRootDirectory),Y("Checksum root found at",this.checksumRoot)}catch(t){console.log(t.message),process.exit(1)}}findProjectRoot(){let t=process.cwd();for(let r=0;r<6;r++){let i=(0,Ee.join)(t,"node_modules","@checksum-ai","runtime");if((0,ue.existsSync)(i)){this.projectRootDirectory=t;return}if((0,Ee.parse)(t).root===t)break;t=(0,Ee.join)(t,"..")}throw new Error("Could not resolve checksum root origins")}findChecksumRoot(){let t=s(i=>{try{return(0,ue.readdirSync)(i).includes("checksum.config.ts")}catch{return!1}},"containsChecksumConfig"),r=[this.projectRootDirectory];for(;r.length;){let i=r.pop(),n=(0,ue.readdirSync)(i,{withFileTypes:!0});for(let a of n){let o=(0,Ee.join)(i,a.name),l=o;if(a.isSymbolicLink())try{let h=(0,ue.readlinkSync)(o);if(!(0,ue.lstatSync)(h).isDirectory())continue;l=h}catch{continue}else if(!a.isDirectory())continue;if(a.name===qi){if(t(l)){this.checksumRoot=l;return}}else r.push(o)}}throw new Error("Could not find checksum root folder. Run `npx checksumai init` to create one.")}};s(Fl,"CLICommandBase");var Fe=Fl;var Li=require("fs");var Al=class Al{constructor(t){this.webDriver=t;this.quitListen=!1}async run(t,r){try{let i=await this.selectTime(t,r),n=await this.listenForSelection();if(!n)return;let a=await this.processAssertion(n),o=i==="before"?t[r-1]:t[r];o.assertions||(o.assertions=[]),o.assertions.push(a)}finally{this.webDriver.getTimeMachinePage().evaluate(async()=>{await window.checksum.timeMachine.goLive()})}}async selectTime(t,r){let i=await fe({message:"Seek to time",choices:[{name:"Before action",value:"before"},{name:"After action",value:"after"}]}),n=s(()=>{var a;switch(i){case"before":return t[r].timestamp;case"after":return(a=t[r+1])==null?void 0:a.timestamp}},"getSeekTime");return await this.webDriver.getTimeMachinePage().evaluate(a=>window.checksum.timeMachine.goBack(a,{beforeTimestamp:!0}),n()),i}async listenForSelection(){this.webDriver.getTimeMachinePage().evaluate(()=>window.checksum.visualTestGenerator.startInspector(!0));try{this.quitListen=!1;let r=s(()=>{let i=G({message:"Waiting for selection [press anything to stop]...",default:void 0});return i.finally(()=>{}).then(()=>{this.quitListen=!0}).catch(()=>{}),i},"startQuit")();for(;!this.quitListen;)try{let i=await this.webDriver.getTimeMachinePage().evaluate(()=>window.checksum.visualTestGenerator.consumeSelections());if(i.length){try{r.cancel()}catch{}return i[0]}await O(1e3)}catch(i){console.log("error",i)}}finally{this.webDriver.getTimeMachinePage().evaluate(async()=>{await window.checksum.visualTestGenerator.stopInspector()})}}async processAssertion(t){let r={...t};console.log("Asserted element locator:",t.locator.replace("frameLocator('iframe').",""));let i=await G({message:"Thought [no thought will filter out this assertion]?",default:void 0});if(!i)return;let n=await G({message:"Override selector [no]?",default:void 0});n&&(r.selector=n,r.locator=`locator('${n}')`);let a=await G({message:'Matcher from https://playwright.dev/docs/test-assertions [e.g. toBeVisible(), not.toBeVisible(), toHaveText("hello"), toHaveCount(3)]?',default:void 0});if(a)return{thought:i,selected:!0,selector:r.selector,locator:r.locator,matcher:a}}};s(Al,"VisualAssertionsGenerator");var ga=Al;var W=require("fs"),Rl=J(Ln()),Pl=require("stream/promises"),$p=require("crypto"),Ht=require("path");var Tl,Il=class Il{constructor(t,r,i,n,a=!1){this.mode=t;this.traceDir=r;this.outputZipFilePath=i;this.frontendLogPrefix=n;this.deleteOriginalFiles=a;this.wallTimesToBeRemoved={};this.callIdsRemovals={};this.consoleLogGUIDs=[];this.numberOfLinesPerFile={};this.unarchiveFolder=(0,$p.randomUUID)();this.resourcesFolder=(0,Ht.join)(this.unarchiveFolder,"resources");this.runningIndexes={trace:0,network:0,stacks:0};this.generationAllowedAPIName=["page.goto","page.waitForNavigation","page.waitForTimeout","locator.fill","locator.click","locator.hover","locator.check","locator.uncheck","locator.dblclick","locator.dragTo"];let{createInterface:o}=require("readline/promises");Tl=o}async process(){if(this.mode==="runtime")return!1;try{if(!(0,W.existsSync)(this.traceDir))return!1;let r=(0,W.readdirSync)(this.traceDir).filter(i=>i.endsWith(".zip")).sort((i,n)=>{let a=s(h=>{try{let u=h.split(".");return parseInt(u[u.length-2])}catch{return 0}},"getIndex"),o=a(i),l=a(n);return o-l});if(!r.length)return!1;(0,W.mkdirSync)(this.unarchiveFolder),(0,W.mkdirSync)(this.resourcesFolder);for(let i of r)await this.processOne((0,Ht.join)(this.traceDir,i));if(await this.reZip(),(0,W.rmdirSync)(this.unarchiveFolder,{recursive:!0}),this.deleteOriginalFiles)for(let i of r)(0,W.rmSync)((0,Ht.join)(this.traceDir,i))}catch(t){return console.log("There was an error processing the trace files",t),!1}return!0}async processOne(t){let i=(await this.unzipAndWriteFiles(t)).trace.map(a=>(0,Ht.join)(this.unarchiveFolder,a));for(let a of i)await this.preprocessFile(a);let n=[...i];for(;n.length>0;)for(let a of n)await this.processFile(a,n)}async unzipAndWriteFiles(t){let r=(0,W.readFileSync)(t),i=await(0,Rl.loadAsync)(r),n={trace:[],network:[],stacks:[]},a=s(o=>{let l=s((h,u)=>(n[u].push(h),h),"addToUnarchivedFiles");return o.endsWith(".trace")?l(`trace${this.runningIndexes.trace++}.trace`,"trace"):o.endsWith(".network")?l(`trace${this.runningIndexes.network++}.network`,"network"):o.endsWith(".stacks")?l(`trace${this.runningIndexes.stacks++}.stacks`,"stacks"):null},"getNewFileName");for(let o of Object.keys(i.files)){let l=a(o);if(!l)continue;let h=i.file(o).nodeStream(),u=(0,W.createWriteStream)(`${this.unarchiveFolder}/${l}`);await(0,Pl.pipeline)(h,u)}for(let o of Object.keys(i.files)){if(!o.startsWith("resources/"))continue;let l=o.replace("resources/",""),h=`${this.resourcesFolder}/${l}`;if(this.mode==="generation"&&l.startsWith("src@")||(0,W.existsSync)(h))continue;let u=i.file(o).nodeStream(),c=(0,W.createWriteStream)(h);await(0,Pl.pipeline)(u,c)}return n}async reZip(){let t=await(0,Rl.loadAsync)("UEsFBgAAAAAAAAAAAAAAAAAAAAAAAA==",{base64:!0});for(let n of(0,W.readdirSync)(this.unarchiveFolder))if(n.endsWith(".network")||this.shouldIncludeStacksFiles()&&n.endsWith(".stacks")||n.endsWith(".trace")){let a=(0,W.readFileSync)((0,Ht.join)(this.unarchiveFolder,n));t.file(n,a)}let r=t.folder("resources");for(let n of(0,W.readdirSync)(this.resourcesFolder)){let a=(0,W.readFileSync)((0,Ht.join)(this.resourcesFolder,n));r.file(n,a)}let i=await t.generateAsync({type:"nodebuffer",compression:"DEFLATE"});(0,W.existsSync)(this.outputZipFilePath)&&(0,W.rmSync)(this.outputZipFilePath),(0,W.writeFileSync)(this.outputZipFilePath,i)}async preprocessFile(t){this.callIdsRemovals[t]={callIdsToBeRemoved:{},arrayOfCallIdsToBeRemoved:new Set};let r=(0,W.createReadStream)(t),i=Tl({input:r,crlfDelay:1/0}),n=0;for await(let a of i){n++;let o=JSON.parse(a);this.shouldLineBeRemoved(o)&&(o.wallTime&&(this.wallTimesToBeRemoved[o.wallTime]=!0),o.callId&&(this.callIdsRemovals[t].callIdsToBeRemoved[o.callId]=!0,this.callIdsRemovals[t].arrayOfCallIdsToBeRemoved.add(o.callId)))}this.numberOfLinesPerFile[t]=n}async processFile(t,r){var l,h;let i=[],n=(0,W.createReadStream)(t),a=Tl({input:n,crlfDelay:1/0}),o=t;for await(let u of a){let c=JSON.parse(u),f=!1;if(this.frontendLogPrefix){if(this.isChecksumConsoleLog(c)){this.consoleLogGUIDs.push(c.guid);continue}if(this.isConsoleLogMetadata(c)&&this.consoleLogGUIDs.includes((h=(l=c.params)==null?void 0:l.message)==null?void 0:h.guid))continue}if(this.lineCanBeRemoved(c)&&(this.wallTimesToBeRemoved[c.wallTime]||this.callIdsRemovals[o].callIdsToBeRemoved[c.callId]||Array.from(this.callIdsRemovals[o].arrayOfCallIdsToBeRemoved).some(d=>u.includes(`"${d}"`)))&&(f=!0),f){c.callId&&(this.callIdsRemovals[o].callIdsToBeRemoved[c.callId]=!0,this.callIdsRemovals[o].arrayOfCallIdsToBeRemoved.add(c.callId));continue}i.push(u)}if(i.length===this.numberOfLinesPerFile[o]){let u=r.indexOf(o);u>-1&&r.splice(u,1)}else this.numberOfLinesPerFile[o]=i.length,(0,W.writeFileSync)(t,i.join(`
52
+ `))}isChecksumConsoleLog(t){var r,i;return t.class==="ConsoleMessage"&&((i=(r=t.initializer)==null?void 0:r.text)==null?void 0:i.startsWith(this.frontendLogPrefix))||t.type==="console"&&t.text.startsWith(this.frontendLogPrefix)}isConsoleLogMetadata(t){return t.class==="BrowserContext"&&t.method==="console"}lineCanBeRemoved(t){return!["frame-snapshot"].includes(t.type)}shouldLineBeRemoved(t){switch(this.mode){case"runtime":return this.shouldLineBeRemoved_runtime(t);case"generation":return this.shouldLineBeRemoved_generation(t)}return!1}shouldLineBeRemoved_runtime(t){return!1}shouldIncludeStacksFiles(){return this.mode==="runtime"}shouldLineBeRemoved_generation(t){return!!t.apiName&&!this.generationAllowedAPIName.includes(t.apiName)}};s(Il,"PlaywrightTraceProcessor");var ma=Il;var Zp=require("path");var Vp=require("fs");var Da=class Da{constructor(t,r,i){this.executedActions=t;this.loginFunction=r;this.settings=i;this.errors=[];this.webDriver=new kr({fullScreenResolution:!0,baseURL:i.baseURL},{devtools:!1,headless:!1},{})}static fromJSON(t,r){let{executedActions:i,settings:n}=JSON.parse((0,Vp.readFileSync)(t,"utf-8"));return new Da(i,r,n)}async replay(){var r,i;await this.webDriver.prepare(),await this.injectHAR();let t=new Bt(this.webDriver.evaluateWithChecksum.bind(this.webDriver),()=>this.webDriver.page,()=>{},{log:console.log,logError:console.error},{navigationTimeout:30*1e3,actionTimeout:5*1e3,waitActionDelay:1e3,testAssetsDir:__dirname});await this.webDriver.startPlaywrightTrace(),this.settings.didLogin&&await this.loginFunction(this.webDriver.page);for(let n=0;n<this.executedActions.length;++n){let a=this.executedActions[n];((r=a.parentFramesSelectors)==null?void 0:r.length)>0&&(a.parentFramesSelectors=a.parentFramesSelectors.slice(1));try{console.log("Performing action",a.description),await t.performAction(a,{monitorFlashingHTML:!1})}catch{return console.error("Error performing action:",a),this.errors.push({type:"ActionError",actionIndex:n}),!1}if(!((i=a.assertions)!=null&&i.length)){await O(500);continue}for(let o of a.assertions)try{await this.replayAssertion(o)}catch(l){console.error(`Error replaying assertion ${o.locator} ${o.matcher}`,l.message),this.errors.push({type:"AssertionError",actionIndex:n,assertionIndex:a.assertions.indexOf(o)})}}await this.webDriver.stopPlaywrightTrace(this.settings.traceFilePath);try{await new ma("generation",(0,Zp.dirname)(this.settings.traceFilePath),this.settings.traceFilePath,"$checksum").process()}catch(n){console.error("Error processing trace",n.message)}return!0}async report(){let t=[];if(this.errors.forEach(r=>{switch(r.type){case"ActionError":t.push(`Error performing action ${this.executedActions[r.actionIndex].description} at index ${r.actionIndex}`);break;case"AssertionError":t.push(`Error executing assertion ${this.executedActions[r.actionIndex].assertions[r.assertionIndex].thought} at index ${r.assertionIndex} of action at index ${r.actionIndex}`);break}}),!t.length){console.log("Replay successful!");return}console.error("Replay errors:"),console.error(t.join(`
53
+ `))}async replayAssertion(t){let r=(0,ki.expect)(this.webDriver.page.locator(t.selector)),i=`async (expectCall) => expectCall.${t.matcher}`;await(0,eval)(i)(r)}async injectHAR(){let t={GET:0,POST:0,PUT:0,DELETE:0};try{await this.webDriver.page.routeFromHAR(this.settings.harFilePath,{url:"*/**",notFound:"fallback",update:!1});let r=this.webDriver.page._routes[0].handler;await this.webDriver.page.route("**/*",i=>{let n=i.request().headers(),a=i.request().method();n["Checksum-Id"]=(++t[a]).toString(),i.request()._applyFallbackOverrides({headers:n}),r(i)})}catch(r){console.error("Error setting up mock data",r.message)}}};s(Da,"TestGenerationReplayer");var Mi=Da;var Kp=require("request"),ya=require("fs");var Ml=class Ml{constructor(t,r,i,n,a){this.apiBaseURL=t;this.apiKey=r;this.uploadTimeout=i;this.makeGetUploadUrlAPIPath=n;this.onOutstandingUpload=a}async uploadAsset(t){try{let{path:r}=t.info;if(console.log("Uploading file",r),await this.getSignedURLForUpload(t),!t.uploadURL){console.log("Error getting signed URL for asset",r),t.error=!0;return}let n=(0,ya.statSync)(r).size,a=(0,ya.createReadStream)(r),o=pe(new Promise((l,h)=>{var c;let u=(0,Kp.put)(t.uploadURL,{body:a},(f,d)=>{f&&h(f),l(d)});(c=this.onOutstandingUpload)==null||c.call(this,{request:u,size:n})}),this.uploadTimeout);o.then(l=>{if(l.statusCode!==200)throw new Error("Upload failed");console.log("File uploaded successfully",r),t.complete=!0}).catch(l=>{console.log("Error uploading asset",r,l),t.error=!0}),t.response=o}catch{t.error=!0}}async getSignedURLForUpload(t){try{let r=t.info,i=await fetch(`${this.apiBaseURL}/${this.makeGetUploadUrlAPIPath(t)}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",ChecksumAppCode:this.apiKey},body:JSON.stringify(r)}),{url:n}=await i.json();t.uploadURL=n}catch(r){return console.log("Error getting signed URL for artifact",r),null}}};s(Ml,"TestAssetUploader");var va=Ml;var Jp=J(Ln()),Gt=require("path"),bt=require("fs");async function Yp(e,t){let r=await(0,bt.readdirSync)(t);await Promise.all(r.map(async i=>{let n=(0,Gt.join)(t,i);if((await(0,bt.statSync)(n)).isDirectory()){let o=e.folder(i);await Yp(o,n)}else{let o=await(0,bt.readFileSync)(n);e.file(i,o)}}))}s(Yp,"addFolderToZip");async function Xp(e){try{let t=await(0,Jp.loadAsync)("UEsFBgAAAAAAAAAAAAAAAAAAAAAAAA==",{base64:!0});await Yp(t,e);let r=await t.generateAsync({type:"nodebuffer",compression:"DEFLATE"}),i=(0,Gt.join)((0,Gt.dirname)(e),`${(0,Gt.basename)(e)}.zip`);return(0,bt.writeFileSync)(i,r),i}catch(t){return console.error("Error creating zip:",t),null}}s(Xp,"zipFolder");var Qp=require("fs"),eg=require("path");var Ll=!1,Bl={story:{goal:"Send email via outreach list",instructions:"Make sure to select a user from the list first"},shouldLogin:!0,environment:{name:void 0,userRole:void 0}},Ol=class Ol extends Fe{constructor(r,i=!1){super(r,i);this.checksumScriptFilePath="node_modules/@checksum-ai/runtime/checksumlib.js";this.mode="both";this.stopLoop=!1;this.completedSuccessfully=!1;this.executedActions=[];this.initTimeMachine=s(async(r=!1)=>{await this.webDriver.getTimeMachinePage().evaluate(({shouldHandleEvents:i})=>window.checksum.visualTestGenerator.init(i),{shouldHandleEvents:r})},"initTimeMachine");this.login=s(async(r=this.webDriver.page)=>{await ko({config:this.config,folder:this.checksumRoot})(r,{role:this.environment.userRole,environment:this.environment.name})},"login")}async run(){await this.init();let r=this.args.find(n=>n.startsWith("--replay"));if(r){let n=r.split("=")[1];return this.loadAndReplay(n)}let i=this.args.find(n=>n.startsWith("--upload"));if(i){let n=i.split("=")[1];return this.uploadFromFolder(n)}await this.prepare(),await this.start(),await this.backup(),await this.replay(),await this.upload()}async loadAndReplay(r){let{executedActions:i,settings:n}=this.loadFile(r),a=new Mi(i,this.login,n);await a.replay(),a.report()}async uploadFromFolder(r){this.loadFile(r),await this.upload()}loadFile(r){let i=JSON.parse((0,Qp.readFileSync)(r,"utf-8")),{executedActions:n,settings:a,testGenerationId:o}=i;return this.executedActions=n,this.testGenerationId=o,this.assetsFolderPath=(0,eg.dirname)(r),i}async init(){await this.patchPlaywright(),this.loadChecksumData(),this.apiBaseURL=this.checksumApiUrl+"/client-api/runtime"}async prepare({createAssetsFolder:r=!0}={}){this.webDriver=this.buildWebDriver(),this.timeMachineSync=new yi(this.webDriver,this.initTimeMachine);let i={onActionExecuted:s(n=>Array.isArray(n)?this.executedActions.push(...n):this.executedActions.push(n),"onActionExecuted"),stop:s(()=>{this.stopLoop=!0},"stop"),onSuccess:s(()=>{this.completedSuccessfully=!0},"onSuccess"),generateAssertions:s(()=>this.generateAssertions(!1),"generateAssertions"),getExecutedActions:s(()=>this.executedActions,"getExecutedActions")};this.pageInteractor=new Bt(this.webDriver.evaluateWithChecksum.bind(this.webDriver),()=>this.webDriver.page,()=>{},{log:console.log,logError:console.error},{navigationTimeout:30*1e3,actionTimeout:5*1e3,waitActionDelay:1e3,testAssetsDir:__dirname}),r&&this.createTestGenerationAssetsFolders(),this.mode=await fe({message:"Run mode?",choices:[{name:"AI and Manual",value:"both"},{name:"AI only",value:"ai"},{name:"Manual only",value:"manual"}]}),["manual","both"].includes(this.mode)&&(this.manualStepGenerator=new ha(this.webDriver,this.pageInteractor,i)),["ai","both"].includes(this.mode)&&(this.aiStepGenerator=new da(this.webDriver,this.pageInteractor,this.apiBaseURL,this.config.apiKey,i),await this.aiStepGenerator.init())}async start(){var i,n,a;this.story=await this.getStory(),this.aiStepGenerator&&this.aiStepGenerator.setStory(this.story),(i=this.story)!=null&&i.environment&&(this.environment=this.story.environment);let r=Ll?Bl.shouldLogin:await fe({message:"Auto login?",choices:[{name:"Yes",value:!0},{name:"No",value:!1}]});if(r&&!this.environment&&(Ll?this.environment=Bl.environment:(this.environment={},this.environment.name=await G({message:"Environment name to use [optional]?"}),this.environment.name||(this.environment.name=void 0),this.environment.userRole=await G({message:"Role to login as [optional]?"}),this.environment.userRole||(this.environment.userRole=void 0))),await this.webDriver.prepare(),await this.webDriver.addHARMockAPIRecordings(this.getHarFilePath()),await this.timeMachineSync.start(),this.didLogin=!1,r)try{await this.login(),this.didLogin=!0}catch{console.error("Failed to execute login function")}if(!r||!this.didLogin||(n=this.story)!=null&&n.url){let o=(a=this.story)!=null&&a.url?this.story.url:this.config.baseURL;if(await this.webDriver.getCurrentURL()!=o){let l=new xr(this.webDriver.page);l.startListening(),await this.webDriver.navigate(o),await l.wait(),this.executedActions.push({description:"Navigate to start URL",eventCode:"navigation",fillValue:o}),await O(2e3)}}for(await this.timeMachineSync.enableEventsHandling();!this.stopLoop;)await this.iterate();console.log(this.completedSuccessfully?"Test completed successfully":"Test failed"),await this.webDriver.shutdown(),await O(2e3)}async backup(){let r={executedActions:this.executedActions,testGenerationId:this.testGenerationId,settings:{baseURL:this.config.baseURL,assetsFolderPath:this.assetsFolderPath,didLogin:this.didLogin,traceFilePath:this.getTraceFilePath(),harFilePath:this.getHarFilePath()}};(0,Li.writeFileSync)(`${this.assetsFolderPath}/test.json`,JSON.stringify(r,null,2))}async replay(){let r=new Mi(this.executedActions,this.login,{baseURL:this.config.baseURL,assetsFolderPath:this.assetsFolderPath,didLogin:this.didLogin,traceFilePath:this.getTraceFilePath(),harFilePath:this.getHarFilePath()});await r.replay(),r.report()}async upload(){try{if(!this.testGenerationId){console.log("No test generation id, can't upload");return}this.testAssetUploader=new va(this.apiBaseURL,this.config.apiKey,null,()=>`test-generation/${this.testGenerationId}/get-upload-url`);let r=s(o=>({complete:!1,error:!1,response:void 0,info:o}),"buildUploadAsset"),i=r({type:"trace",path:this.getTraceFilePath()}),n=r({type:"har",path:await Xp(this.getHarFolderPath())});await Promise.all([this.testAssetUploader.uploadAsset(i),this.testAssetUploader.uploadAsset(n)]);let a=await fetch(`${this.apiBaseURL}/test-generation/${this.testGenerationId}/completed`,{method:"POST",headers:{"Content-Type":"application/json",ChecksumAppCode:this.config.apiKey},body:JSON.stringify({actions:this.executedActions})})}catch(r){console.error("Failed to upload test",r)}}async getStory(){if(Ll)return Bl.story;let r=await G({message:"User story id [can't upload test without it]?"});if(r){let o=await fetch(`${this.apiBaseURL}/test-generation/init/${r}`,{method:"POST",headers:{"Content-Type":"application/json",ChecksumAppCode:this.config.apiKey}}),{testGenerationId:l,title:h,steps:u,startUrl:c,userRole:f,environment:d}=await o.json();return this.testGenerationId=l,{goal:h,instructions:u,url:c,environment:{userRole:f,name:d}}}if(this.mode==="manual"&&!await fe({message:"Would you like to set the user story parameters (goal, instructions, start url)?",choices:[{name:"Yes",value:!0},{name:"No",value:!1}]}))return;let i=await G({message:"Test goal?"});if(!i)throw new Error("Test goal is required");let n=await G({message:"Special instructions for the test [optional]?"}),a=await G({message:"URL to start from [optional]?"});return{goal:i,instructions:n,url:a}}async iterate(){let r=[{name:"Generate assertion",value:"GenerateAssertions"}];["manual","both"].includes(this.mode)&&r.push({name:"Manual step",value:"PerformManualAction"}),["ai","both"].includes(this.mode)&&r.push({name:"AI step",value:"PerformAIAction"}),r.push({name:"Finish",value:"Finish"}),r.push({name:"Abort (no code will be generated)",value:"Abort"});let i=await fe({message:"Next step?",choices:r});try{switch(i){case"PerformManualAction":return await this.timeMachineSync.enableEventsHandling(),this.manualStepGenerator.run(this.aiIterationEndTimestamp);case"PerformAIAction":await this.timeMachineSync.disableEventsHandling(),await this.aiStepGenerator.run(this.executedActions),this.aiIterationEndTimestamp=Date.now();return;case"GenerateAssertions":return this.generateAssertions(!1);case"Finish":this.completedSuccessfully=!0,this.stopLoop=!0;break;case"Abort":this.stopLoop=!0;break}}catch(n){return console.log("Something unexpected occurred, please try again...",n),await O(2e3),this.iterate()}}async generateAssertions(r=!0){if(r&&await G({message:"Generate assertion?",default:"yes"})!=="yes")return;let i=await fe({message:"Assertion for which action?",choices:this.executedActions.map((n,a)=>({name:n.description,value:a}))});await new ga(this.webDriver).run(this.executedActions,i)}buildWebDriver(){return new kr({scriptSource:"url",scriptURL:"http://localhost:3001/index.js",scriptFile:this.checksumScriptFilePath,fullScreenResolution:!0,baseURL:this.config.baseURL},{devtools:!1,headless:!1},{useTimeMachine:!0,frontendAppSpecificRules:{},frontendTestGenerationConfig:{logPrefix:"$checksum"}})}createTestGenerationAssetsFolders(){this.assetsFolderPath=this.projectRootDirectory+`/tg-assets/${Date.now()}`,(0,Li.mkdirSync)(this.assetsFolderPath,{recursive:!0}),(0,Li.mkdirSync)(this.getHarFolderPath(),{recursive:!0})}getHarFolderPath(){return this.assetsFolderPath+"/har"}getHarFilePath(){return`${this.getHarFolderPath()}/har.har`}getTraceFilePath(){return`${this.assetsFolderPath}/trace.zip`}};s(Ol,"VisualTestGenerator");var wa=Ol;var tg=require("fs"),rg=J(require("child_process")),Bi=require("path");var Ul=class Ul extends Fe{constructor(r,i=!1){super(r,i);this.MAX_COMPLETION_WAIT=10*60*1e3;this.TEST_RUN_MONITOR_PATH=(0,Bi.join)(__dirname,"test-run-monitor.js");this.didFail=!1;this.isolationMode=!1;this.replMode=!1;this.completeIndicators={upload:!1,tests:!1,report:!1};this.uploadProgress=0;this.replMode=r.includes("--repl")}async run(){if(this.loadChecksumData(),!await this.getSession())return;let r;try{r=await pe(this.startTestRunMonitor(this.testSession),1e4,"test run monitor timeout")}catch{console.log("Error starting test run monitor. Test results will not be available on checksum.")}this.buildVolatileConfig();let i={CHECKSUM_ROOT_FOLDER:this.checksumRoot};r&&(i.CHECKSUM_UPLOAD_AGENT_PORT=r),this.config.options.hostReports&&(i.PW_TEST_HTML_REPORT_OPEN="never"),this.testSession&&this.testSession!=="isolated-session"&&(i.CHECKSUM_TEST_SUITE_ID=this.testSession),this.replMode&&(i.CHECKSUM_REPL="true");let n=[...this.args];this.replMode&&n.push("--debug");let a=`npx playwright test --config "${this.getPlaywrightConfigFilePath()}" ${n.map(o=>`"${o}"`).join(" ")}`;await this.patchPlaywright();try{console.log(`Tests running with @checksum-ai/runtime version ${require("./package.json").version}`),this.replMode?(console.log("Running in REPL mode"),this.execCmd(a,i),await this.execCmd(`node ${__dirname}/repl.js`,i)):await this.execCmd(a,i),console.log("Tests execution finished")}catch{this.didFail=!0,console.log("Error during test execution: Failed passing test")}finally{this.isolationMode||console.log("Waiting for test files to upload to Checksum..."),this.sendReportUploadRequest(),await this.patchPlaywright(!0),this.completeIndicators.tests=!0,await this.handleCompleteMessage()}}getPlaywrightReportPath(){var n;let r=s(a=>(Y("Using report folder",a),(0,Bi.join)(a,"index.html")),"makeFilePath");if(process.env.PLAYWRIGHT_HTML_REPORT)return r(process.env.PLAYWRIGHT_HTML_REPORT);let i=(n=this.playwrightConfig)==null?void 0:n.reporter;if(i instanceof Array){let o=i.filter(l=>l instanceof Array&&l[0]==="html").find(l=>{var h;return(h=l[1])==null?void 0:h.outputFolder});if(o)return r((0,Bi.join)(this.checksumRoot,o[1].outputFolder))}return r((0,Bi.join)(this.projectRootDirectory,"playwright-report"))}sendReportUploadRequest(){let r=this.getPlaywrightReportPath();if(!(0,tg.existsSync)(r)){console.log(`Could not find report file at ${r}`),this.completeIndicators.report=!0;return}Y("Sending report upload request",r),this.testRunMonitorProcess.stdin.write(`cli:report=${r}`)}startTestRunMonitor(r){return new Promise(i=>{console.log("Starting test run monitor"),this.testRunMonitorProcess=rg.spawn("node",[this.TEST_RUN_MONITOR_PATH,JSON.stringify({sessionId:r,checksumApiURL:this.checksumApiUrl,apiKey:this.config.apiKey}),...this.isolationMode?["isolated"]:[]]),this.testRunMonitorProcess.stdout.on("data",n=>{let a=n.toString().trim();if(Y("[trm] "+a),!a.startsWith("monitor"))return;let[o,l]=a.substring(a.indexOf(":")+1).split("=");o==="port"?i(l):this.handleTestRunMonitorMessage(o,l)}),this.testRunMonitorProcess.on("exit",(n,a)=>{console.log(`test run monitor process exited with code ${n} and signal ${a}`)}),this.testRunMonitorProcess.stderr.on("data",n=>{this.debugMode&&console.error("[trm] Error:",n.toString())}),this.testRunMonitorProcess.on("error",n=>{console.error(`Error starting test run monitor: ${n.message}`)})})}async handleTestRunMonitorMessage(r,i){switch(Y(`Handling test run monitor message ${this.isolationMode?"(isolation mode)":""}`,r,i),r){case"complete-with-errors":console.log("Error uploading test files to Checksum"),this.sendProcessingError().then(()=>{this.completeIndicators.upload=!0});break;case"complete":this.isolationMode||console.log("Test files uploaded successfully"),this.sendUploadsComplete().then(()=>{this.completeIndicators.upload=!0});break;case"report-complete":{if(this.isolationMode){this.completeIndicators.report=!0;break}let n=i.slice(0,i.indexOf(":"))==="true",a=i.slice(i.indexOf(":")+1),o={};try{o=JSON.parse(a)}catch(l){console.log("Error parsing stats",l.message)}if(await this.sendTestRunEnd(o),this.completeIndicators.report=!0,n){let l=`Checksum report URL: ${this.checksumAppUrl}/#/test-runs/${this.testSession}`,h="*".repeat(l.length);console.log(`${h}
54
+ ${l}
55
+ ${h}`)}else console.log("An error occurred while uploading the test report to Checksum");break}case"upload-progress":{let n=parseInt(i);(n<this.uploadProgress||n>=this.uploadProgress+10||n===100&&this.uploadProgress!==100)&&(this.uploadProgress=n,console.log(`[ Uploads progress: ${this.uploadProgress}% ]`))}break;case"log":console.log(i);break;case"playwrightConfig":this.playwrightConfig=JSON.parse(i);break;default:console.warn(`Unhandled test run monitor message: ${r}=${i}`)}}async handleCompleteMessage(){let r=Date.now();for(;;){if(Date.now()-r>this.MAX_COMPLETION_WAIT){console.log("An error occurred and Checksum wasn't able to complete processing the test suite."),this.shutdown(1);return}Object.keys(this.completeIndicators).find(i=>!this.completeIndicators[i])?(Y(this.completeIndicators),await O(1e3)):(console.log("Checksum test run complete"),this.shutdown(this.didFail?1:0))}}shutdown(r=0){this.cleanup(),process.exit(r)}cleanup(){var r,i;super.cleanup(),(r=this.testRunMonitorProcess)==null||r.stdin.write("cli:shutdown"),(i=this.testRunMonitorProcess)==null||i.kill()}async getSession(){try{if(!this.config.options.hostReports)return this.setIsolatedMode(),!0;let r=this.config.apiKey;if(!r||r==="<API key>")return this.printError("No API key found in checksum config - please set it in the config file - checksum.config.ts"),this.shutdown(1),!1;let i=JSON.stringify(await this.getEnvInfo()),n=await fetch(`${this.checksumApiUrl}/client-api/test-runs`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",ChecksumAppCode:r},body:i});return this.testSession=(await n.json()).uuid,!0}catch{return console.log("Error connecting to Checksum, the report will not be hosted"),this.setIsolatedMode(),!0}}setIsolatedMode(){this.isolationMode=!0,this.testSession="isolated-session"}async sendTestRunEnd(r){if(!this.isolationMode)try{Y("Sending test run end",r);let i="{}";try{i=JSON.stringify({...r,endedAt:Date.now()})}catch(n){console.log("Error stringifying stats",n.message,r)}await this.updateTestRun(`${this.checksumApiUrl}/client-api/test-runs/${this.testSession}`,"PATCH",i)}catch(i){return console.log("Error sending test run end",i.message),null}}async sendUploadsComplete(){if(!this.isolationMode)try{await this.updateTestRun(`${this.checksumApiUrl}/client-api/test-runs/${this.testSession}/uploads-completed`,"PATCH")}catch(r){console.log("Error sending test run uploads complete",r.message)}}async sendProcessingError(){if(!this.isolationMode)try{await this.updateTestRun(`${this.checksumApiUrl}/client-api/test-runs/${this.testSession}/process-error`,"PATCH")}catch(r){console.log("Error sending test run processing error",r.message)}}async updateTestRun(r,i,n=void 0){let a=await fetch(r,{method:i,headers:{Accept:"application/json","Content-Type":"application/json",ChecksumAppCode:this.config.apiKey},body:n});return Y("Received update test run response from url:",r),await this.logApiResponse(a),a}async logApiResponse(r){try{if(!r.ok){Y("HTTP Error:",r.status,r.statusText);let n=await r.text();Y("Error Details:",n);return}r.headers.get("Content-Type").includes("application/json")?r.json().then(n=>{Y("API Response:",n)}):r.text().then(n=>{Y("API Response:",n)})}catch(i){Y("Error logging API response",i.message)}}};s(Ul,"TestsRunner");var ba=Ul;var Nl=class Nl extends Fe{constructor(t,r=!1){super(t,r)}async run(t){switch(t){default:console.log(`
56
56
  Checksum CLI
57
57
  Usage: checksum [command] [options]
58
58
 
@@ -64,7 +64,7 @@ show-report [options] [report] show HTML report
64
64
  `);break;case"test":try{let i=(await this.getCmdOutput("npx playwright test --help")).replace(/npx playwright/g,"yarn checksum").split(`
65
65
  `);i.splice(5,0," --checksum-config=<config> Checksum configuration in JSON format").join(`
66
66
  `),console.log(i.join(`
67
- `))}catch(r){console.log("Error",r.message)}break;case"show-report":try{let i=(await this.getCmdOutput("npx playwright show-report --help")).replace(/npx playwright/g,"yarn checksum");console.log(i)}catch(r){console.log("Error",r.message)}break;case"generate":console.log("Not implemented yet");break}}};s(Ou,"CLIHelp");var Li=Ou;var Uu=class Uu extends Se{constructor(t,r=!1){super(t,r)}async run(){let t=`npx playwright show-report ${this.args.join(" ")}`;try{await this.execCmd(t)}catch(r){console.log("Error showing report",r.message)}}};s(Uu,"CLIShowReport");var ba=Uu;var Oe=require("fs"),Ht=require("path");var Nu=class Nu extends Se{constructor(t,r=!1){super(t,r)}run(){console.log("Creating Checksum directory and necessary files to run your tests");try{this.findProjectRoot()}catch(i){console.log(i.message),process.exit(1)}let t=(0,Ht.join)(process.cwd(),Ni);if((0,Oe.existsSync)(t)||(0,Oe.mkdirSync)(t),!(0,Oe.existsSync)(this.getChecksumRootOrigin()))throw new Error("Could not find checksum root directory, please install @checksum-ai/runtime package");let r=(0,Oe.existsSync)((0,Ht.join)(t,"checksum.config.ts"));Gu({isInit:!r}).forEach(i=>{let n=(0,Ht.join)(t,i);(0,Oe.existsSync)(n)||(0,Oe.copyFileSync)((0,Ht.join)(this.getChecksumRootOrigin(),i),n)}),(0,Oe.mkdirSync)((0,Ht.join)(t,"tests"),{recursive:!0}),["esra","har","trace","log"].forEach(i=>{(0,Oe.mkdirSync)((0,Ht.join)(t,"test-data",i),{recursive:!0})})}};s(Nu,"CLIInstall");var Ca=Nu;var Wu=class Wu{constructor(){}async execute(){let t=!!process.argv.find(i=>i==="--clidebug");t&&Co(!0);let r=process.argv.slice(3);switch(process.argv.find(i=>i==="--help"||i==="-h")&&(await new Li(r,t).run(process.argv[2]),process.exit(0)),process.argv[2]){case"init":new Ca(r,t).run();break;case"test":await new wa(r,t).run();break;case"show-report":await new ba(r,t).run();break;case"generate":try{await new ya(r,t).run()}catch(i){console.log("Error",i.message)}break;default:await new Li(r,t).run()}process.exit(0)}};s(Wu,"CLIDispatcher");var _a=Wu;(async()=>await new _a().execute())();
67
+ `))}catch(r){console.log("Error",r.message)}break;case"show-report":try{let i=(await this.getCmdOutput("npx playwright show-report --help")).replace(/npx playwright/g,"yarn checksum");console.log(i)}catch(r){console.log("Error",r.message)}break;case"generate":console.log("Not implemented yet");break}}};s(Nl,"CLIHelp");var Oi=Nl;var Wl=class Wl extends Fe{constructor(t,r=!1){super(t,r)}async run(){let t=`npx playwright show-report ${this.args.join(" ")}`;try{await this.execCmd(t)}catch(r){console.log("Error showing report",r.message)}}};s(Wl,"CLIShowReport");var Ca=Wl;var Oe=require("fs"),$t=require("path");var ql=class ql extends Fe{constructor(t,r=!1){super(t,r)}run(){console.log("Creating Checksum directory and necessary files to run your tests");try{this.findProjectRoot()}catch(i){console.log(i.message),process.exit(1)}let t=(0,$t.join)(process.cwd(),qi);if((0,Oe.existsSync)(t)||(0,Oe.mkdirSync)(t),!(0,Oe.existsSync)(this.getChecksumRootOrigin()))throw new Error("Could not find checksum root directory, please install @checksum-ai/runtime package");let r=(0,Oe.existsSync)((0,$t.join)(t,"checksum.config.ts"));Vl({isInit:!r}).forEach(i=>{let n=(0,$t.join)(t,i);(0,Oe.existsSync)(n)||(0,Oe.copyFileSync)((0,$t.join)(this.getChecksumRootOrigin(),i),n)}),(0,Oe.mkdirSync)((0,$t.join)(t,"tests"),{recursive:!0}),["esra","har","trace","log"].forEach(i=>{(0,Oe.mkdirSync)((0,$t.join)(t,"test-data",i),{recursive:!0})})}};s(ql,"CLIInstall");var _a=ql;var jl=class jl{constructor(){}async execute(){let t=!!process.argv.find(i=>i==="--clidebug");t&&_o(!0);let r=process.argv.slice(3);switch(process.argv.find(i=>i==="--help"||i==="-h")&&(await new Oi(r,t).run(process.argv[2]),process.exit(0)),process.argv[2]){case"init":new _a(r,t).run();break;case"test":await new ba(r,t).run();break;case"show-report":await new Ca(r,t).run();break;case"generate":try{await new wa(r,t).run()}catch(i){console.log("Error",i.message)}break;default:await new Oi(r,t).run()}process.exit(0)}};s(jl,"CLIDispatcher");var ka=jl;(async()=>await new ka().execute())();
68
68
  /*! Bundled license information:
69
69
 
70
70
  playwright-extra/dist/index.cjs.js: