@wp-playground/client 3.1.27 → 3.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/index.cjs +9 -9
  2. package/index.d.ts +21 -0
  3. package/index.js +388 -382
  4. package/package.json +2 -2
package/index.cjs CHANGED
@@ -56,12 +56,12 @@ gpgsig`)),i=t.slice(t.indexOf(`-----END PGP SIGNATURE-----
56
56
  `)+28);return rr(r+`
57
57
  `+i)}isolateSignature(){const t=this._commit.slice(this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),this._commit.indexOf("-----END PGP SIGNATURE-----")+27);return Em(t)}static async sign(t,r,i){const a=t.withoutSignature(),s=bt.justMessage(t._commit);let{signature:n}=await r({payload:a,secretKey:i});n=rr(n);const l=bt.justHeaders(t._commit)+`
58
58
  gpgsig`+Zi(n)+`
59
- `+s;return bt.from(l)}}var mc={};/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */(function(e){(function(t){t(typeof DO_NOT_EXPORT_CRC>"u"?e:{})})(function(t){t.version="1.2.2";function r(){for(var _=0,F=new Array(256),P=0;P!=256;++P)_=P,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,F[P]=_;return typeof Int32Array<"u"?new Int32Array(F):F}var i=r();function a(_){var F=0,P=0,S=0,j=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(S=0;S!=256;++S)j[S]=_[S];for(S=0;S!=256;++S)for(P=_[S],F=256+S;F<4096;F+=256)P=j[F]=P>>>8^_[P&255];var R=[];for(S=1;S!=16;++S)R[S-1]=typeof Int32Array<"u"?j.subarray(S*256,S*256+256):j.slice(S*256,S*256+256);return R}var s=a(i),n=s[0],o=s[1],l=s[2],p=s[3],c=s[4],d=s[5],m=s[6],y=s[7],T=s[8],g=s[9],w=s[10],b=s[11],O=s[12],E=s[13],I=s[14];function $(_,F){for(var P=F^-1,S=0,j=_.length;S<j;)P=P>>>8^i[(P^_.charCodeAt(S++))&255];return~P}function L(_,F){for(var P=F^-1,S=_.length-15,j=0;j<S;)P=I[_[j++]^P&255]^E[_[j++]^P>>8&255]^O[_[j++]^P>>16&255]^b[_[j++]^P>>>24]^w[_[j++]]^g[_[j++]]^T[_[j++]]^y[_[j++]]^m[_[j++]]^d[_[j++]]^c[_[j++]]^p[_[j++]]^l[_[j++]]^o[_[j++]]^n[_[j++]]^i[_[j++]];for(S+=15;j<S;)P=P>>>8^i[(P^_[j++])&255];return~P}function C(_,F){for(var P=F^-1,S=0,j=_.length,R=0,D=0;S<j;)R=_.charCodeAt(S++),R<128?P=P>>>8^i[(P^R)&255]:R<2048?(P=P>>>8^i[(P^(192|R>>6&31))&255],P=P>>>8^i[(P^(128|R&63))&255]):R>=55296&&R<57344?(R=(R&1023)+64,D=_.charCodeAt(S++)&1023,P=P>>>8^i[(P^(240|R>>8&7))&255],P=P>>>8^i[(P^(128|R>>2&63))&255],P=P>>>8^i[(P^(128|D>>6&15|(R&3)<<4))&255],P=P>>>8^i[(P^(128|D&63))&255]):(P=P>>>8^i[(P^(224|R>>12&15))&255],P=P>>>8^i[(P^(128|R>>6&63))&255],P=P>>>8^i[(P^(128|R&63))&255]);return~P}t.table=i,t.bstr=$,t.buf=L,t.str=C})})(mc);const Sm=_o(mc);class Tm{static wrap({type:t,object:r}){return Buffer.concat([Buffer.from(`${t} ${r.byteLength.toString()}\0`),Buffer.from(r)])}static unwrap(t){const r=t.indexOf(32),i=t.indexOf(0),a=t.slice(0,r).toString("utf8"),s=t.slice(r+1,i).toString("utf8"),n=t.length-(i+1);if(parseInt(s)!==n)throw new Ee(`Length mismatch: expected ${s} bytes but got ${n} instead.`);return{type:a,object:Buffer.from(t.slice(i+1))}}}class Zt{constructor(t){this.buffer=t,this._start=0}eof(){return this._start>=this.buffer.length}tell(){return this._start}seek(t){this._start=t}slice(t){const r=this.buffer.slice(this._start,this._start+t);return this._start+=t,r}toString(t,r){const i=this.buffer.toString(t,this._start,this._start+r);return this._start+=r,i}write(t,r,i){const a=this.buffer.write(t,this._start,r,i);return this._start+=r,a}copy(t,r,i){const a=t.copy(this.buffer,this._start,r,i);return this._start+=a,a}readUInt8(){const t=this.buffer.readUInt8(this._start);return this._start+=1,t}writeUInt8(t){const r=this.buffer.writeUInt8(t,this._start);return this._start+=1,r}readUInt16BE(){const t=this.buffer.readUInt16BE(this._start);return this._start+=2,t}writeUInt16BE(t){const r=this.buffer.writeUInt16BE(t,this._start);return this._start+=2,r}readUInt32BE(){const t=this.buffer.readUInt32BE(this._start);return this._start+=4,t}writeUInt32BE(t){const r=this.buffer.writeUInt32BE(t,this._start);return this._start+=4,r}}function Om(e,t){const r=new Zt(e),i=gl(r);if(i!==t.byteLength)throw new Ee(`applyDelta expected source buffer to be ${i} bytes but the provided buffer was ${t.length} bytes`);const a=gl(r);let s;const n=bl(r,t);if(n.byteLength===a)s=n;else{s=Buffer.alloc(a);const o=new Zt(s);for(o.copy(n);!r.eof();)o.copy(bl(r,t));const l=o.tell();if(a!==l)throw new Ee(`applyDelta expected target buffer to be ${a} bytes but the resulting buffer was ${l} bytes`)}return s}function gl(e){let t=0,r=0,i=null;do i=e.readUInt8(),t|=(i&127)<<r,r+=7;while(i&128);return t}function wl(e,t,r){let i=0,a=0;for(;r--;)t&1&&(i|=e.readUInt8()<<a),t>>=1,a+=8;return i}function bl(e,t){const r=e.readUInt8(),i=128,a=15,s=112;if(r&i){const n=wl(e,r&a,4);let o=wl(e,(r&s)>>4,3);return o===0&&(o=65536),t.slice(n,n+o)}else return e.slice(r)}var or={};(function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function r(s,n){return Object.prototype.hasOwnProperty.call(s,n)}e.assign=function(s){for(var n=Array.prototype.slice.call(arguments,1);n.length;){var o=n.shift();if(o){if(typeof o!="object")throw new TypeError(o+"must be non-object");for(var l in o)r(o,l)&&(s[l]=o[l])}}return s},e.shrinkBuf=function(s,n){return s.length===n?s:s.subarray?s.subarray(0,n):(s.length=n,s)};var i={arraySet:function(s,n,o,l,p){if(n.subarray&&s.subarray){s.set(n.subarray(o,o+l),p);return}for(var c=0;c<l;c++)s[p+c]=n[o+c]},flattenChunks:function(s){var n,o,l,p,c,d;for(l=0,n=0,o=s.length;n<o;n++)l+=s[n].length;for(d=new Uint8Array(l),p=0,n=0,o=s.length;n<o;n++)c=s[n],d.set(c,p),p+=c.length;return d}},a={arraySet:function(s,n,o,l,p){for(var c=0;c<l;c++)s[p+c]=n[o+c]},flattenChunks:function(s){return[].concat.apply([],s)}};e.setTyped=function(s){s?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(t)})(or);var is={},Qt={},gn={},Am=or,$m=4,_l=0,vl=1,Rm=2;function wn(e){for(var t=e.length;--t>=0;)e[t]=0}var Fm=0,yc=1,Lm=2,Im=3,Cm=258,To=29,as=256,qn=as+1+To,on=30,Oo=19,gc=2*qn+1,Ar=15,Gi=16,jm=7,Ao=256,wc=16,bc=17,_c=18,eo=[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],Ns=[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],Nm=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],vc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Dm=512,nr=new Array((qn+2)*2);wn(nr);var Ln=new Array(on*2);wn(Ln);var Mn=new Array(Dm);wn(Mn);var Wn=new Array(Cm-Im+1);wn(Wn);var $o=new Array(To);wn($o);var ni=new Array(on);wn(ni);function Yi(e,t,r,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}var xc,kc,Pc;function Ki(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Ec(e){return e<256?Mn[e]:Mn[256+(e>>>7)]}function Hn(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function mt(e,t,r){e.bi_valid>Gi-r?(e.bi_buf|=t<<e.bi_valid&65535,Hn(e,e.bi_buf),e.bi_buf=t>>Gi-e.bi_valid,e.bi_valid+=r-Gi):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function Gt(e,t,r){mt(e,r[t*2],r[t*2+1])}function Sc(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function Um(e){e.bi_valid===16?(Hn(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function Bm(e,t){var r=t.dyn_tree,i=t.max_code,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,n=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,l=t.stat_desc.max_length,p,c,d,m,y,T,g=0;for(m=0;m<=Ar;m++)e.bl_count[m]=0;for(r[e.heap[e.heap_max]*2+1]=0,p=e.heap_max+1;p<gc;p++)c=e.heap[p],m=r[r[c*2+1]*2+1]+1,m>l&&(m=l,g++),r[c*2+1]=m,!(c>i)&&(e.bl_count[m]++,y=0,c>=o&&(y=n[c-o]),T=r[c*2],e.opt_len+=T*(m+y),s&&(e.static_len+=T*(a[c*2+1]+y)));if(g!==0){do{for(m=l-1;e.bl_count[m]===0;)m--;e.bl_count[m]--,e.bl_count[m+1]+=2,e.bl_count[l]--,g-=2}while(g>0);for(m=l;m!==0;m--)for(c=e.bl_count[m];c!==0;)d=e.heap[--p],!(d>i)&&(r[d*2+1]!==m&&(e.opt_len+=(m-r[d*2+1])*r[d*2],r[d*2+1]=m),c--)}}function Tc(e,t,r){var i=new Array(Ar+1),a=0,s,n;for(s=1;s<=Ar;s++)i[s]=a=a+r[s-1]<<1;for(n=0;n<=t;n++){var o=e[n*2+1];o!==0&&(e[n*2]=Sc(i[o]++,o))}}function qm(){var e,t,r,i,a,s=new Array(Ar+1);for(r=0,i=0;i<To-1;i++)for($o[i]=r,e=0;e<1<<eo[i];e++)Wn[r++]=i;for(Wn[r-1]=i,a=0,i=0;i<16;i++)for(ni[i]=a,e=0;e<1<<Ns[i];e++)Mn[a++]=i;for(a>>=7;i<on;i++)for(ni[i]=a<<7,e=0;e<1<<Ns[i]-7;e++)Mn[256+a++]=i;for(t=0;t<=Ar;t++)s[t]=0;for(e=0;e<=143;)nr[e*2+1]=8,e++,s[8]++;for(;e<=255;)nr[e*2+1]=9,e++,s[9]++;for(;e<=279;)nr[e*2+1]=7,e++,s[7]++;for(;e<=287;)nr[e*2+1]=8,e++,s[8]++;for(Tc(nr,qn+1,s),e=0;e<on;e++)Ln[e*2+1]=5,Ln[e*2]=Sc(e,5);xc=new Yi(nr,eo,as+1,qn,Ar),kc=new Yi(Ln,Ns,0,on,Ar),Pc=new Yi(new Array(0),Nm,0,Oo,jm)}function Oc(e){var t;for(t=0;t<qn;t++)e.dyn_ltree[t*2]=0;for(t=0;t<on;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Oo;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Ao*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Ac(e){e.bi_valid>8?Hn(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Mm(e,t,r,i){Ac(e),Hn(e,r),Hn(e,~r),Am.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function xl(e,t,r,i){var a=t*2,s=r*2;return e[a]<e[s]||e[a]===e[s]&&i[t]<=i[r]}function Xi(e,t,r){for(var i=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&xl(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!xl(t,i,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=i}function kl(e,t,r){var i,a,s=0,n,o;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+s*2]<<8|e.pending_buf[e.d_buf+s*2+1],a=e.pending_buf[e.l_buf+s],s++,i===0?Gt(e,a,t):(n=Wn[a],Gt(e,n+as+1,t),o=eo[n],o!==0&&(a-=$o[n],mt(e,a,o)),i--,n=Ec(i),Gt(e,n,r),o=Ns[n],o!==0&&(i-=ni[n],mt(e,i,o)));while(s<e.last_lit);Gt(e,Ao,t)}function to(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,s=t.stat_desc.elems,n,o,l=-1,p;for(e.heap_len=0,e.heap_max=gc,n=0;n<s;n++)r[n*2]!==0?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):r[n*2+1]=0;for(;e.heap_len<2;)p=e.heap[++e.heap_len]=l<2?++l:0,r[p*2]=1,e.depth[p]=0,e.opt_len--,a&&(e.static_len-=i[p*2+1]);for(t.max_code=l,n=e.heap_len>>1;n>=1;n--)Xi(e,r,n);p=s;do n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Xi(e,r,1),o=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=o,r[p*2]=r[n*2]+r[o*2],e.depth[p]=(e.depth[n]>=e.depth[o]?e.depth[n]:e.depth[o])+1,r[n*2+1]=r[o*2+1]=p,e.heap[1]=p++,Xi(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Bm(e,t),Tc(r,l,e.bl_count)}function Pl(e,t,r){var i,a=-1,s,n=t[0*2+1],o=0,l=7,p=4;for(n===0&&(l=138,p=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)s=n,n=t[(i+1)*2+1],!(++o<l&&s===n)&&(o<p?e.bl_tree[s*2]+=o:s!==0?(s!==a&&e.bl_tree[s*2]++,e.bl_tree[wc*2]++):o<=10?e.bl_tree[bc*2]++:e.bl_tree[_c*2]++,o=0,a=s,n===0?(l=138,p=3):s===n?(l=6,p=3):(l=7,p=4))}function El(e,t,r){var i,a=-1,s,n=t[0*2+1],o=0,l=7,p=4;for(n===0&&(l=138,p=3),i=0;i<=r;i++)if(s=n,n=t[(i+1)*2+1],!(++o<l&&s===n)){if(o<p)do Gt(e,s,e.bl_tree);while(--o!==0);else s!==0?(s!==a&&(Gt(e,s,e.bl_tree),o--),Gt(e,wc,e.bl_tree),mt(e,o-3,2)):o<=10?(Gt(e,bc,e.bl_tree),mt(e,o-3,3)):(Gt(e,_c,e.bl_tree),mt(e,o-11,7));o=0,a=s,n===0?(l=138,p=3):s===n?(l=6,p=3):(l=7,p=4)}}function Wm(e){var t;for(Pl(e,e.dyn_ltree,e.l_desc.max_code),Pl(e,e.dyn_dtree,e.d_desc.max_code),to(e,e.bl_desc),t=Oo-1;t>=3&&e.bl_tree[vc[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function Hm(e,t,r,i){var a;for(mt(e,t-257,5),mt(e,r-1,5),mt(e,i-4,4),a=0;a<i;a++)mt(e,e.bl_tree[vc[a]*2+1],3);El(e,e.dyn_ltree,t-1),El(e,e.dyn_dtree,r-1)}function zm(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return _l;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return vl;for(r=32;r<as;r++)if(e.dyn_ltree[r*2]!==0)return vl;return _l}var Sl=!1;function Vm(e){Sl||(qm(),Sl=!0),e.l_desc=new Ki(e.dyn_ltree,xc),e.d_desc=new Ki(e.dyn_dtree,kc),e.bl_desc=new Ki(e.bl_tree,Pc),e.bi_buf=0,e.bi_valid=0,Oc(e)}function $c(e,t,r,i){mt(e,(Fm<<1)+(i?1:0),3),Mm(e,t,r)}function Zm(e){mt(e,yc<<1,3),Gt(e,Ao,nr),Um(e)}function Gm(e,t,r,i){var a,s,n=0;e.level>0?(e.strm.data_type===Rm&&(e.strm.data_type=zm(e)),to(e,e.l_desc),to(e,e.d_desc),n=Wm(e),a=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=a&&(a=s)):a=s=r+5,r+4<=a&&t!==-1?$c(e,t,r,i):e.strategy===$m||s===a?(mt(e,(yc<<1)+(i?1:0),3),kl(e,nr,Ln)):(mt(e,(Lm<<1)+(i?1:0),3),Hm(e,e.l_desc.max_code+1,e.d_desc.max_code+1,n+1),kl(e,e.dyn_ltree,e.dyn_dtree)),Oc(e),i&&Ac(e)}function Ym(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[(Wn[r]+as+1)*2]++,e.dyn_dtree[Ec(t)*2]++),e.last_lit===e.lit_bufsize-1}gn._tr_init=Vm;gn._tr_stored_block=$c;gn._tr_flush_block=Gm;gn._tr_tally=Ym;gn._tr_align=Zm;function Km(e,t,r,i){for(var a=e&65535|0,s=e>>>16&65535|0,n=0;r!==0;){n=r>2e3?2e3:r,r-=n;do a=a+t[i++]|0,s=s+a|0;while(--n);a%=65521,s%=65521}return a|s<<16|0}var Rc=Km;function Xm(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var Jm=Xm();function Qm(e,t,r,i){var a=Jm,s=i+r;e^=-1;for(var n=i;n<s;n++)e=e>>>8^a[(e^t[n])&255];return e^-1}var Fc=Qm,Ro={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"},at=or,At=gn,Lc=Rc,dr=Fc,ey=Ro,Hr=0,ty=1,ry=3,xr=4,Tl=5,Yt=0,Ol=1,$t=-2,ny=-3,Ji=-5,sy=-1,iy=1,_s=2,ay=3,oy=4,ly=0,fy=2,bi=8,py=9,cy=15,uy=8,dy=29,hy=256,ro=hy+1+dy,my=30,yy=19,gy=2*ro+1,wy=15,ge=3,_r=258,Dt=_r+ge+1,by=32,_i=42,no=69,Ds=73,Us=91,Bs=103,$r=113,$n=666,He=1,os=2,jr=3,bn=4,_y=3;function vr(e,t){return e.msg=ey[t],t}function Al(e){return(e<<1)-(e>4?9:0)}function br(e){for(var t=e.length;--t>=0;)e[t]=0}function hr(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(at.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function Qe(e,t){At._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,hr(e.strm)}function Pe(e,t){e.pending_buf[e.pending++]=t}function kn(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function vy(e,t,r,i){var a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,at.arraySet(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=Lc(e.adler,t,a,r):e.state.wrap===2&&(e.adler=dr(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}function Ic(e,t){var r=e.max_chain_length,i=e.strstart,a,s,n=e.prev_length,o=e.nice_match,l=e.strstart>e.w_size-Dt?e.strstart-(e.w_size-Dt):0,p=e.window,c=e.w_mask,d=e.prev,m=e.strstart+_r,y=p[i+n-1],T=p[i+n];e.prev_length>=e.good_match&&(r>>=2),o>e.lookahead&&(o=e.lookahead);do if(a=t,!(p[a+n]!==T||p[a+n-1]!==y||p[a]!==p[i]||p[++a]!==p[i+1])){i+=2,a++;do;while(p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&i<m);if(s=_r-(m-i),i=m-_r,s>n){if(e.match_start=t,n=s,s>=o)break;y=p[i+n-1],T=p[i+n]}}while((t=d[t&c])>l&&--r!==0);return n<=e.lookahead?n:e.lookahead}function Nr(e){var t=e.w_size,r,i,a,s,n;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Dt)){at.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=t?a-t:0;while(--i);i=t,r=i;do a=e.prev[--r],e.prev[r]=a>=t?a-t:0;while(--i);s+=t}if(e.strm.avail_in===0)break;if(i=vy(e.strm,e.window,e.strstart+e.lookahead,s),e.lookahead+=i,e.lookahead+e.insert>=ge)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=(e.ins_h<<e.hash_shift^e.window[n+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[n+ge-1])&e.hash_mask,e.prev[n&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=n,n++,e.insert--,!(e.lookahead+e.insert<ge)););}while(e.lookahead<Dt&&e.strm.avail_in!==0)}function xy(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Nr(e),e.lookahead===0&&t===Hr)return He;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,Qe(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Dt&&(Qe(e,!1),e.strm.avail_out===0))return He}return e.insert=0,t===xr?(Qe(e,!0),e.strm.avail_out===0?jr:bn):(e.strstart>e.block_start&&(Qe(e,!1),e.strm.avail_out===0),He)}function Qi(e,t){for(var r,i;;){if(e.lookahead<Dt){if(Nr(e),e.lookahead<Dt&&t===Hr)return He;if(e.lookahead===0)break}if(r=0,e.lookahead>=ge&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ge-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-Dt&&(e.match_length=Ic(e,r)),e.match_length>=ge)if(i=At._tr_tally(e,e.strstart-e.match_start,e.match_length-ge),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ge){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ge-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=At._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Qe(e,!1),e.strm.avail_out===0))return He}return e.insert=e.strstart<ge-1?e.strstart:ge-1,t===xr?(Qe(e,!0),e.strm.avail_out===0?jr:bn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?He:os}function Zr(e,t){for(var r,i,a;;){if(e.lookahead<Dt){if(Nr(e),e.lookahead<Dt&&t===Hr)return He;if(e.lookahead===0)break}if(r=0,e.lookahead>=ge&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ge-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=ge-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Dt&&(e.match_length=Ic(e,r),e.match_length<=5&&(e.strategy===iy||e.match_length===ge&&e.strstart-e.match_start>4096)&&(e.match_length=ge-1)),e.prev_length>=ge&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-ge,i=At._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-ge),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ge-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=ge-1,e.strstart++,i&&(Qe(e,!1),e.strm.avail_out===0))return He}else if(e.match_available){if(i=At._tr_tally(e,0,e.window[e.strstart-1]),i&&Qe(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return He}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=At._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<ge-1?e.strstart:ge-1,t===xr?(Qe(e,!0),e.strm.avail_out===0?jr:bn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?He:os}function ky(e,t){for(var r,i,a,s,n=e.window;;){if(e.lookahead<=_r){if(Nr(e),e.lookahead<=_r&&t===Hr)return He;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=ge&&e.strstart>0&&(a=e.strstart-1,i=n[a],i===n[++a]&&i===n[++a]&&i===n[++a])){s=e.strstart+_r;do;while(i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&a<s);e.match_length=_r-(s-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ge?(r=At._tr_tally(e,1,e.match_length-ge),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=At._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Qe(e,!1),e.strm.avail_out===0))return He}return e.insert=0,t===xr?(Qe(e,!0),e.strm.avail_out===0?jr:bn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?He:os}function Py(e,t){for(var r;;){if(e.lookahead===0&&(Nr(e),e.lookahead===0)){if(t===Hr)return He;break}if(e.match_length=0,r=At._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Qe(e,!1),e.strm.avail_out===0))return He}return e.insert=0,t===xr?(Qe(e,!0),e.strm.avail_out===0?jr:bn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?He:os}function qt(e,t,r,i,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=a}var nn;nn=[new qt(0,0,0,0,xy),new qt(4,4,8,4,Qi),new qt(4,5,16,8,Qi),new qt(4,6,32,32,Qi),new qt(4,4,16,16,Zr),new qt(8,16,32,32,Zr),new qt(8,16,128,128,Zr),new qt(8,32,128,256,Zr),new qt(32,128,258,1024,Zr),new qt(32,258,258,4096,Zr)];function Ey(e){e.window_size=2*e.w_size,br(e.head),e.max_lazy_match=nn[e.level].max_lazy,e.good_match=nn[e.level].good_length,e.nice_match=nn[e.level].nice_length,e.max_chain_length=nn[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ge-1,e.match_available=0,e.ins_h=0}function Sy(){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=bi,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 at.Buf16(gy*2),this.dyn_dtree=new at.Buf16((2*my+1)*2),this.bl_tree=new at.Buf16((2*yy+1)*2),br(this.dyn_ltree),br(this.dyn_dtree),br(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new at.Buf16(wy+1),this.heap=new at.Buf16(2*ro+1),br(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new at.Buf16(2*ro+1),br(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Cc(e){var t;return!e||!e.state?vr(e,$t):(e.total_in=e.total_out=0,e.data_type=fy,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?_i:$r,e.adler=t.wrap===2?0:1,t.last_flush=Hr,At._tr_init(t),Yt)}function jc(e){var t=Cc(e);return t===Yt&&Ey(e.state),t}function Ty(e,t){return!e||!e.state||e.state.wrap!==2?$t:(e.state.gzhead=t,Yt)}function Nc(e,t,r,i,a,s){if(!e)return $t;var n=1;if(t===sy&&(t=6),i<0?(n=0,i=-i):i>15&&(n=2,i-=16),a<1||a>py||r!==bi||i<8||i>15||t<0||t>9||s<0||s>oy)return vr(e,$t);i===8&&(i=9);var o=new Sy;return e.state=o,o.strm=e,o.wrap=n,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=a+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+ge-1)/ge),o.window=new at.Buf8(o.w_size*2),o.head=new at.Buf16(o.hash_size),o.prev=new at.Buf16(o.w_size),o.lit_bufsize=1<<a+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new at.Buf8(o.pending_buf_size),o.d_buf=1*o.lit_bufsize,o.l_buf=3*o.lit_bufsize,o.level=t,o.strategy=s,o.method=r,jc(e)}function Oy(e,t){return Nc(e,t,bi,cy,uy,ly)}function Ay(e,t){var r,i,a,s;if(!e||!e.state||t>Tl||t<0)return e?vr(e,$t):$t;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===$n&&t!==xr)return vr(e,e.avail_out===0?Ji:$t);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===_i)if(i.wrap===2)e.adler=0,Pe(i,31),Pe(i,139),Pe(i,8),i.gzhead?(Pe(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)),Pe(i,i.gzhead.time&255),Pe(i,i.gzhead.time>>8&255),Pe(i,i.gzhead.time>>16&255),Pe(i,i.gzhead.time>>24&255),Pe(i,i.level===9?2:i.strategy>=_s||i.level<2?4:0),Pe(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(Pe(i,i.gzhead.extra.length&255),Pe(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=dr(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=no):(Pe(i,0),Pe(i,0),Pe(i,0),Pe(i,0),Pe(i,0),Pe(i,i.level===9?2:i.strategy>=_s||i.level<2?4:0),Pe(i,_y),i.status=$r);else{var n=bi+(i.w_bits-8<<4)<<8,o=-1;i.strategy>=_s||i.level<2?o=0:i.level<6?o=1:i.level===6?o=2:o=3,n|=o<<6,i.strstart!==0&&(n|=by),n+=31-n%31,i.status=$r,kn(i,n),i.strstart!==0&&(kn(i,e.adler>>>16),kn(i,e.adler&65535)),e.adler=1}if(i.status===no)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=dr(e.adler,i.pending_buf,i.pending-a,a)),hr(e),a=i.pending,i.pending===i.pending_buf_size));)Pe(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=dr(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=Ds)}else i.status=Ds;if(i.status===Ds)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=dr(e.adler,i.pending_buf,i.pending-a,a)),hr(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.name.length?s=i.gzhead.name.charCodeAt(i.gzindex++)&255:s=0,Pe(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=dr(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.gzindex=0,i.status=Us)}else i.status=Us;if(i.status===Us)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=dr(e.adler,i.pending_buf,i.pending-a,a)),hr(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.comment.length?s=i.gzhead.comment.charCodeAt(i.gzindex++)&255:s=0,Pe(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=dr(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.status=Bs)}else i.status=Bs;if(i.status===Bs&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&hr(e),i.pending+2<=i.pending_buf_size&&(Pe(i,e.adler&255),Pe(i,e.adler>>8&255),e.adler=0,i.status=$r)):i.status=$r),i.pending!==0){if(hr(e),e.avail_out===0)return i.last_flush=-1,Yt}else if(e.avail_in===0&&Al(t)<=Al(r)&&t!==xr)return vr(e,Ji);if(i.status===$n&&e.avail_in!==0)return vr(e,Ji);if(e.avail_in!==0||i.lookahead!==0||t!==Hr&&i.status!==$n){var l=i.strategy===_s?Py(i,t):i.strategy===ay?ky(i,t):nn[i.level].func(i,t);if((l===jr||l===bn)&&(i.status=$n),l===He||l===jr)return e.avail_out===0&&(i.last_flush=-1),Yt;if(l===os&&(t===ty?At._tr_align(i):t!==Tl&&(At._tr_stored_block(i,0,0,!1),t===ry&&(br(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),hr(e),e.avail_out===0))return i.last_flush=-1,Yt}return t!==xr?Yt:i.wrap<=0?Ol:(i.wrap===2?(Pe(i,e.adler&255),Pe(i,e.adler>>8&255),Pe(i,e.adler>>16&255),Pe(i,e.adler>>24&255),Pe(i,e.total_in&255),Pe(i,e.total_in>>8&255),Pe(i,e.total_in>>16&255),Pe(i,e.total_in>>24&255)):(kn(i,e.adler>>>16),kn(i,e.adler&65535)),hr(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Yt:Ol)}function $y(e){var t;return!e||!e.state?$t:(t=e.state.status,t!==_i&&t!==no&&t!==Ds&&t!==Us&&t!==Bs&&t!==$r&&t!==$n?vr(e,$t):(e.state=null,t===$r?vr(e,ny):Yt))}function Ry(e,t){var r=t.length,i,a,s,n,o,l,p,c;if(!e||!e.state||(i=e.state,n=i.wrap,n===2||n===1&&i.status!==_i||i.lookahead))return $t;for(n===1&&(e.adler=Lc(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(n===0&&(br(i.head),i.strstart=0,i.block_start=0,i.insert=0),c=new at.Buf8(i.w_size),at.arraySet(c,t,r-i.w_size,i.w_size,0),t=c,r=i.w_size),o=e.avail_in,l=e.next_in,p=e.input,e.avail_in=r,e.next_in=0,e.input=t,Nr(i);i.lookahead>=ge;){a=i.strstart,s=i.lookahead-(ge-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[a+ge-1])&i.hash_mask,i.prev[a&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=a,a++;while(--s);i.strstart=a,i.lookahead=ge-1,Nr(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=ge-1,i.match_available=0,e.next_in=l,e.input=p,e.avail_in=o,i.wrap=n,Yt}Qt.deflateInit=Oy;Qt.deflateInit2=Nc;Qt.deflateReset=jc;Qt.deflateResetKeep=Cc;Qt.deflateSetHeader=Ty;Qt.deflate=Ay;Qt.deflateEnd=$y;Qt.deflateSetDictionary=Ry;Qt.deflateInfo="pako deflate (from Nodeca project)";var zr={},vi=or,Dc=!0,Uc=!0;try{String.fromCharCode.apply(null,[0])}catch{Dc=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Uc=!1}var zn=new vi.Buf8(256);for(var fr=0;fr<256;fr++)zn[fr]=fr>=252?6:fr>=248?5:fr>=240?4:fr>=224?3:fr>=192?2:1;zn[254]=zn[254]=1;zr.string2buf=function(e){var t,r,i,a,s,n=e.length,o=0;for(a=0;a<n;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<n&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new vi.Buf8(o),s=0,a=0;s<o;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<n&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[s++]=r:r<2048?(t[s++]=192|r>>>6,t[s++]=128|r&63):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|r&63):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|r&63);return t};function Bc(e,t){if(t<65534&&(e.subarray&&Uc||!e.subarray&&Dc))return String.fromCharCode.apply(null,vi.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}zr.buf2binstring=function(e){return Bc(e,e.length)};zr.binstring2buf=function(e){for(var t=new vi.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};zr.buf2string=function(e,t){var r,i,a,s,n=t||e.length,o=new Array(n*2);for(i=0,r=0;r<n;){if(a=e[r++],a<128){o[i++]=a;continue}if(s=zn[a],s>4){o[i++]=65533,r+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&r<n;)a=a<<6|e[r++]&63,s--;if(s>1){o[i++]=65533;continue}a<65536?o[i++]=a:(a-=65536,o[i++]=55296|a>>10&1023,o[i++]=56320|a&1023)}return Bc(o,i)};zr.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+zn[e[r]]>t?r:t};function Fy(){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}var qc=Fy,In=Qt,Cn=or,so=zr,io=Ro,Ly=qc,Mc=Object.prototype.toString,Iy=0,ea=4,ln=0,$l=1,Rl=2,Cy=-1,jy=0,Ny=8;function Dr(e){if(!(this instanceof Dr))return new Dr(e);this.options=Cn.assign({level:Cy,method:Ny,chunkSize:16384,windowBits:15,memLevel:8,strategy:jy,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 Ly,this.strm.avail_out=0;var r=In.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==ln)throw new Error(io[r]);if(t.header&&In.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=so.string2buf(t.dictionary):Mc.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=In.deflateSetDictionary(this.strm,i),r!==ln)throw new Error(io[r]);this._dict_set=!0}}Dr.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a,s;if(this.ended)return!1;s=t===~~t?t:t===!0?ea:Iy,typeof e=="string"?r.input=so.string2buf(e):Mc.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 Cn.Buf8(i),r.next_out=0,r.avail_out=i),a=In.deflate(r,s),a!==$l&&a!==ln)return this.onEnd(a),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(s===ea||s===Rl))&&(this.options.to==="string"?this.onData(so.buf2binstring(Cn.shrinkBuf(r.output,r.next_out))):this.onData(Cn.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&a!==$l);return s===ea?(a=In.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===ln):(s===Rl&&(this.onEnd(ln),r.avail_out=0),!0)};Dr.prototype.onData=function(e){this.chunks.push(e)};Dr.prototype.onEnd=function(e){e===ln&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Cn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Fo(e,t){var r=new Dr(t);if(r.push(e,!0),r.err)throw r.msg||io[r.err];return r.result}function Dy(e,t){return t=t||{},t.raw=!0,Fo(e,t)}function Uy(e,t){return t=t||{},t.gzip=!0,Fo(e,t)}is.Deflate=Dr;is.deflate=Fo;is.deflateRaw=Dy;is.gzip=Uy;var ls={},Ut={},vs=30,By=12,qy=function(t,r){var i,a,s,n,o,l,p,c,d,m,y,T,g,w,b,O,E,I,$,L,C,_,F,P,S;i=t.state,a=t.next_in,P=t.input,s=a+(t.avail_in-5),n=t.next_out,S=t.output,o=n-(r-t.avail_out),l=n+(t.avail_out-257),p=i.dmax,c=i.wsize,d=i.whave,m=i.wnext,y=i.window,T=i.hold,g=i.bits,w=i.lencode,b=i.distcode,O=(1<<i.lenbits)-1,E=(1<<i.distbits)-1;e:do{g<15&&(T+=P[a++]<<g,g+=8,T+=P[a++]<<g,g+=8),I=w[T&O];t:for(;;){if($=I>>>24,T>>>=$,g-=$,$=I>>>16&255,$===0)S[n++]=I&65535;else if($&16){L=I&65535,$&=15,$&&(g<$&&(T+=P[a++]<<g,g+=8),L+=T&(1<<$)-1,T>>>=$,g-=$),g<15&&(T+=P[a++]<<g,g+=8,T+=P[a++]<<g,g+=8),I=b[T&E];r:for(;;){if($=I>>>24,T>>>=$,g-=$,$=I>>>16&255,$&16){if(C=I&65535,$&=15,g<$&&(T+=P[a++]<<g,g+=8,g<$&&(T+=P[a++]<<g,g+=8)),C+=T&(1<<$)-1,C>p){t.msg="invalid distance too far back",i.mode=vs;break e}if(T>>>=$,g-=$,$=n-o,C>$){if($=C-$,$>d&&i.sane){t.msg="invalid distance too far back",i.mode=vs;break e}if(_=0,F=y,m===0){if(_+=c-$,$<L){L-=$;do S[n++]=y[_++];while(--$);_=n-C,F=S}}else if(m<$){if(_+=c+m-$,$-=m,$<L){L-=$;do S[n++]=y[_++];while(--$);if(_=0,m<L){$=m,L-=$;do S[n++]=y[_++];while(--$);_=n-C,F=S}}}else if(_+=m-$,$<L){L-=$;do S[n++]=y[_++];while(--$);_=n-C,F=S}for(;L>2;)S[n++]=F[_++],S[n++]=F[_++],S[n++]=F[_++],L-=3;L&&(S[n++]=F[_++],L>1&&(S[n++]=F[_++]))}else{_=n-C;do S[n++]=S[_++],S[n++]=S[_++],S[n++]=S[_++],L-=3;while(L>2);L&&(S[n++]=S[_++],L>1&&(S[n++]=S[_++]))}}else if($&64){t.msg="invalid distance code",i.mode=vs;break e}else{I=b[(I&65535)+(T&(1<<$)-1)];continue r}break}}else if($&64)if($&32){i.mode=By;break e}else{t.msg="invalid literal/length code",i.mode=vs;break e}else{I=w[(I&65535)+(T&(1<<$)-1)];continue t}break}}while(a<s&&n<l);L=g>>3,a-=L,g-=L<<3,T&=(1<<g)-1,t.next_in=a,t.next_out=n,t.avail_in=a<s?5+(s-a):5-(a-s),t.avail_out=n<l?257+(l-n):257-(n-l),i.hold=T,i.bits=g},Fl=or,Gr=15,Ll=852,Il=592,Cl=0,ta=1,jl=2,My=[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],Wy=[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],Hy=[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],zy=[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],Vy=function(t,r,i,a,s,n,o,l){var p=l.bits,c=0,d=0,m=0,y=0,T=0,g=0,w=0,b=0,O=0,E=0,I,$,L,C,_,F=null,P=0,S,j=new Fl.Buf16(Gr+1),R=new Fl.Buf16(Gr+1),D=null,V=0,B,Y,G;for(c=0;c<=Gr;c++)j[c]=0;for(d=0;d<a;d++)j[r[i+d]]++;for(T=p,y=Gr;y>=1&&j[y]===0;y--);if(T>y&&(T=y),y===0)return s[n++]=1<<24|64<<16|0,s[n++]=1<<24|64<<16|0,l.bits=1,0;for(m=1;m<y&&j[m]===0;m++);for(T<m&&(T=m),b=1,c=1;c<=Gr;c++)if(b<<=1,b-=j[c],b<0)return-1;if(b>0&&(t===Cl||y!==1))return-1;for(R[1]=0,c=1;c<Gr;c++)R[c+1]=R[c]+j[c];for(d=0;d<a;d++)r[i+d]!==0&&(o[R[r[i+d]]++]=d);if(t===Cl?(F=D=o,S=19):t===ta?(F=My,P-=257,D=Wy,V-=257,S=256):(F=Hy,D=zy,S=-1),E=0,d=0,c=m,_=n,g=T,w=0,L=-1,O=1<<T,C=O-1,t===ta&&O>Ll||t===jl&&O>Il)return 1;for(;;){B=c-w,o[d]<S?(Y=0,G=o[d]):o[d]>S?(Y=D[V+o[d]],G=F[P+o[d]]):(Y=96,G=0),I=1<<c-w,$=1<<g,m=$;do $-=I,s[_+(E>>w)+$]=B<<24|Y<<16|G|0;while($!==0);for(I=1<<c-1;E&I;)I>>=1;if(I!==0?(E&=I-1,E+=I):E=0,d++,--j[c]===0){if(c===y)break;c=r[i+o[d]]}if(c>T&&(E&C)!==L){for(w===0&&(w=T),_+=m,g=c-w,b=1<<g;g+w<y&&(b-=j[g+w],!(b<=0));)g++,b<<=1;if(O+=1<<g,t===ta&&O>Ll||t===jl&&O>Il)return 1;L=E&C,s[L]=T<<24|g<<16|_-n|0}}return E!==0&&(s[_+E]=c-w<<24|64<<16|0),l.bits=T,0},kt=or,ao=Rc,Mt=Fc,Zy=qy,jn=Vy,Gy=0,Wc=1,Hc=2,Nl=4,Yy=5,xs=6,Ur=0,Ky=1,Xy=2,Rt=-2,zc=-3,Vc=-4,Jy=-5,Dl=8,Zc=1,Ul=2,Bl=3,ql=4,Ml=5,Wl=6,Hl=7,zl=8,Vl=9,Zl=10,si=11,tr=12,ra=13,Gl=14,na=15,Yl=16,Kl=17,Xl=18,Jl=19,ks=20,Ps=21,Ql=22,ef=23,tf=24,rf=25,nf=26,sa=27,sf=28,af=29,je=30,Gc=31,Qy=32,e0=852,t0=592,r0=15,n0=r0;function of(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function s0(){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 kt.Buf16(320),this.work=new kt.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Yc(e){var t;return!e||!e.state?Rt:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Zc,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new kt.Buf32(e0),t.distcode=t.distdyn=new kt.Buf32(t0),t.sane=1,t.back=-1,Ur)}function Kc(e){var t;return!e||!e.state?Rt:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Yc(e))}function Xc(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))?Rt:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,Kc(e))}function Jc(e,t){var r,i;return e?(i=new s0,e.state=i,i.window=null,r=Xc(e,t),r!==Ur&&(e.state=null),r):Rt}function i0(e){return Jc(e,n0)}var lf=!0,ia,aa;function a0(e){if(lf){var t;for(ia=new kt.Buf32(512),aa=new kt.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(jn(Wc,e.lens,0,288,ia,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;jn(Hc,e.lens,0,32,aa,0,e.work,{bits:5}),lf=!1}e.lencode=ia,e.lenbits=9,e.distcode=aa,e.distbits=5}function Qc(e,t,r,i){var a,s=e.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new kt.Buf8(s.wsize)),i>=s.wsize?(kt.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(a=s.wsize-s.wnext,a>i&&(a=i),kt.arraySet(s.window,t,r-i,a,s.wnext),i-=a,i?(kt.arraySet(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=a))),0}function o0(e,t){var r,i,a,s,n,o,l,p,c,d,m,y,T,g,w=0,b,O,E,I,$,L,C,_,F=new kt.Buf8(4),P,S,j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return Rt;r=e.state,r.mode===tr&&(r.mode=ra),n=e.next_out,a=e.output,l=e.avail_out,s=e.next_in,i=e.input,o=e.avail_in,p=r.hold,c=r.bits,d=o,m=l,_=Ur;e:for(;;)switch(r.mode){case Zc:if(r.wrap===0){r.mode=ra;break}for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(r.wrap&2&&p===35615){r.check=0,F[0]=p&255,F[1]=p>>>8&255,r.check=Mt(r.check,F,2,0),p=0,c=0,r.mode=Ul;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((p&255)<<8)+(p>>8))%31){e.msg="incorrect header check",r.mode=je;break}if((p&15)!==Dl){e.msg="unknown compression method",r.mode=je;break}if(p>>>=4,c-=4,C=(p&15)+8,r.wbits===0)r.wbits=C;else if(C>r.wbits){e.msg="invalid window size",r.mode=je;break}r.dmax=1<<C,e.adler=r.check=1,r.mode=p&512?Zl:tr,p=0,c=0;break;case Ul:for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(r.flags=p,(r.flags&255)!==Dl){e.msg="unknown compression method",r.mode=je;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=je;break}r.head&&(r.head.text=p>>8&1),r.flags&512&&(F[0]=p&255,F[1]=p>>>8&255,r.check=Mt(r.check,F,2,0)),p=0,c=0,r.mode=Bl;case Bl:for(;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.head&&(r.head.time=p),r.flags&512&&(F[0]=p&255,F[1]=p>>>8&255,F[2]=p>>>16&255,F[3]=p>>>24&255,r.check=Mt(r.check,F,4,0)),p=0,c=0,r.mode=ql;case ql:for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.head&&(r.head.xflags=p&255,r.head.os=p>>8),r.flags&512&&(F[0]=p&255,F[1]=p>>>8&255,r.check=Mt(r.check,F,2,0)),p=0,c=0,r.mode=Ml;case Ml:if(r.flags&1024){for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.length=p,r.head&&(r.head.extra_len=p),r.flags&512&&(F[0]=p&255,F[1]=p>>>8&255,r.check=Mt(r.check,F,2,0)),p=0,c=0}else r.head&&(r.head.extra=null);r.mode=Wl;case Wl:if(r.flags&1024&&(y=r.length,y>o&&(y=o),y&&(r.head&&(C=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),kt.arraySet(r.head.extra,i,s,y,C)),r.flags&512&&(r.check=Mt(r.check,i,y,s)),o-=y,s+=y,r.length-=y),r.length))break e;r.length=0,r.mode=Hl;case Hl:if(r.flags&2048){if(o===0)break e;y=0;do C=i[s+y++],r.head&&C&&r.length<65536&&(r.head.name+=String.fromCharCode(C));while(C&&y<o);if(r.flags&512&&(r.check=Mt(r.check,i,y,s)),o-=y,s+=y,C)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=zl;case zl:if(r.flags&4096){if(o===0)break e;y=0;do C=i[s+y++],r.head&&C&&r.length<65536&&(r.head.comment+=String.fromCharCode(C));while(C&&y<o);if(r.flags&512&&(r.check=Mt(r.check,i,y,s)),o-=y,s+=y,C)break e}else r.head&&(r.head.comment=null);r.mode=Vl;case Vl:if(r.flags&512){for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(p!==(r.check&65535)){e.msg="header crc mismatch",r.mode=je;break}p=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=tr;break;case Zl:for(;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}e.adler=r.check=of(p),p=0,c=0,r.mode=si;case si:if(r.havedict===0)return e.next_out=n,e.avail_out=l,e.next_in=s,e.avail_in=o,r.hold=p,r.bits=c,Xy;e.adler=r.check=1,r.mode=tr;case tr:if(t===Yy||t===xs)break e;case ra:if(r.last){p>>>=c&7,c-=c&7,r.mode=sa;break}for(;c<3;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}switch(r.last=p&1,p>>>=1,c-=1,p&3){case 0:r.mode=Gl;break;case 1:if(a0(r),r.mode=ks,t===xs){p>>>=2,c-=2;break e}break;case 2:r.mode=Kl;break;case 3:e.msg="invalid block type",r.mode=je}p>>>=2,c-=2;break;case Gl:for(p>>>=c&7,c-=c&7;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if((p&65535)!==(p>>>16^65535)){e.msg="invalid stored block lengths",r.mode=je;break}if(r.length=p&65535,p=0,c=0,r.mode=na,t===xs)break e;case na:r.mode=Yl;case Yl:if(y=r.length,y){if(y>o&&(y=o),y>l&&(y=l),y===0)break e;kt.arraySet(a,i,s,y,n),o-=y,s+=y,l-=y,n+=y,r.length-=y;break}r.mode=tr;break;case Kl:for(;c<14;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(r.nlen=(p&31)+257,p>>>=5,c-=5,r.ndist=(p&31)+1,p>>>=5,c-=5,r.ncode=(p&15)+4,p>>>=4,c-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=je;break}r.have=0,r.mode=Xl;case Xl:for(;r.have<r.ncode;){for(;c<3;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.lens[j[r.have++]]=p&7,p>>>=3,c-=3}for(;r.have<19;)r.lens[j[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,P={bits:r.lenbits},_=jn(Gy,r.lens,0,19,r.lencode,0,r.work,P),r.lenbits=P.bits,_){e.msg="invalid code lengths set",r.mode=je;break}r.have=0,r.mode=Jl;case Jl:for(;r.have<r.nlen+r.ndist;){for(;w=r.lencode[p&(1<<r.lenbits)-1],b=w>>>24,O=w>>>16&255,E=w&65535,!(b<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(E<16)p>>>=b,c-=b,r.lens[r.have++]=E;else{if(E===16){for(S=b+2;c<S;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(p>>>=b,c-=b,r.have===0){e.msg="invalid bit length repeat",r.mode=je;break}C=r.lens[r.have-1],y=3+(p&3),p>>>=2,c-=2}else if(E===17){for(S=b+3;c<S;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=b,c-=b,C=0,y=3+(p&7),p>>>=3,c-=3}else{for(S=b+7;c<S;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=b,c-=b,C=0,y=11+(p&127),p>>>=7,c-=7}if(r.have+y>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=je;break}for(;y--;)r.lens[r.have++]=C}}if(r.mode===je)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=je;break}if(r.lenbits=9,P={bits:r.lenbits},_=jn(Wc,r.lens,0,r.nlen,r.lencode,0,r.work,P),r.lenbits=P.bits,_){e.msg="invalid literal/lengths set",r.mode=je;break}if(r.distbits=6,r.distcode=r.distdyn,P={bits:r.distbits},_=jn(Hc,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,P),r.distbits=P.bits,_){e.msg="invalid distances set",r.mode=je;break}if(r.mode=ks,t===xs)break e;case ks:r.mode=Ps;case Ps:if(o>=6&&l>=258){e.next_out=n,e.avail_out=l,e.next_in=s,e.avail_in=o,r.hold=p,r.bits=c,Zy(e,m),n=e.next_out,a=e.output,l=e.avail_out,s=e.next_in,i=e.input,o=e.avail_in,p=r.hold,c=r.bits,r.mode===tr&&(r.back=-1);break}for(r.back=0;w=r.lencode[p&(1<<r.lenbits)-1],b=w>>>24,O=w>>>16&255,E=w&65535,!(b<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(O&&!(O&240)){for(I=b,$=O,L=E;w=r.lencode[L+((p&(1<<I+$)-1)>>I)],b=w>>>24,O=w>>>16&255,E=w&65535,!(I+b<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=I,c-=I,r.back+=I}if(p>>>=b,c-=b,r.back+=b,r.length=E,O===0){r.mode=nf;break}if(O&32){r.back=-1,r.mode=tr;break}if(O&64){e.msg="invalid literal/length code",r.mode=je;break}r.extra=O&15,r.mode=Ql;case Ql:if(r.extra){for(S=r.extra;c<S;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.length+=p&(1<<r.extra)-1,p>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=ef;case ef:for(;w=r.distcode[p&(1<<r.distbits)-1],b=w>>>24,O=w>>>16&255,E=w&65535,!(b<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(!(O&240)){for(I=b,$=O,L=E;w=r.distcode[L+((p&(1<<I+$)-1)>>I)],b=w>>>24,O=w>>>16&255,E=w&65535,!(I+b<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=I,c-=I,r.back+=I}if(p>>>=b,c-=b,r.back+=b,O&64){e.msg="invalid distance code",r.mode=je;break}r.offset=E,r.extra=O&15,r.mode=tf;case tf:if(r.extra){for(S=r.extra;c<S;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.offset+=p&(1<<r.extra)-1,p>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=je;break}r.mode=rf;case rf:if(l===0)break e;if(y=m-l,r.offset>y){if(y=r.offset-y,y>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=je;break}y>r.wnext?(y-=r.wnext,T=r.wsize-y):T=r.wnext-y,y>r.length&&(y=r.length),g=r.window}else g=a,T=n-r.offset,y=r.length;y>l&&(y=l),l-=y,r.length-=y;do a[n++]=g[T++];while(--y);r.length===0&&(r.mode=Ps);break;case nf:if(l===0)break e;a[n++]=r.length,l--,r.mode=Ps;break;case sa:if(r.wrap){for(;c<32;){if(o===0)break e;o--,p|=i[s++]<<c,c+=8}if(m-=l,e.total_out+=m,r.total+=m,m&&(e.adler=r.check=r.flags?Mt(r.check,a,m,n-m):ao(r.check,a,m,n-m)),m=l,(r.flags?p:of(p))!==r.check){e.msg="incorrect data check",r.mode=je;break}p=0,c=0}r.mode=sf;case sf:if(r.wrap&&r.flags){for(;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(p!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=je;break}p=0,c=0}r.mode=af;case af:_=Ky;break e;case je:_=zc;break e;case Gc:return Vc;case Qy:default:return Rt}return e.next_out=n,e.avail_out=l,e.next_in=s,e.avail_in=o,r.hold=p,r.bits=c,(r.wsize||m!==e.avail_out&&r.mode<je&&(r.mode<sa||t!==Nl))&&Qc(e,e.output,e.next_out,m-e.avail_out),d-=e.avail_in,m-=e.avail_out,e.total_in+=d,e.total_out+=m,r.total+=m,r.wrap&&m&&(e.adler=r.check=r.flags?Mt(r.check,a,m,e.next_out-m):ao(r.check,a,m,e.next_out-m)),e.data_type=r.bits+(r.last?64:0)+(r.mode===tr?128:0)+(r.mode===ks||r.mode===na?256:0),(d===0&&m===0||t===Nl)&&_===Ur&&(_=Jy),_}function l0(e){if(!e||!e.state)return Rt;var t=e.state;return t.window&&(t.window=null),e.state=null,Ur}function f0(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?Rt:(r.head=t,t.done=!1,Ur)}function p0(e,t){var r=t.length,i,a,s;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==si)?Rt:i.mode===si&&(a=1,a=ao(a,t,r,0),a!==i.check)?zc:(s=Qc(e,t,r,r),s?(i.mode=Gc,Vc):(i.havedict=1,Ur))}Ut.inflateReset=Kc;Ut.inflateReset2=Xc;Ut.inflateResetKeep=Yc;Ut.inflateInit=i0;Ut.inflateInit2=Jc;Ut.inflate=o0;Ut.inflateEnd=l0;Ut.inflateGetHeader=f0;Ut.inflateSetDictionary=p0;Ut.inflateInfo="pako inflate (from Nodeca project)";var eu={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};function c0(){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}var u0=c0,fn=Ut,Nn=or,qs=zr,Ue=eu,oo=Ro,d0=qc,h0=u0,tu=Object.prototype.toString;function Br(e){if(!(this instanceof Br))return new Br(e);this.options=Nn.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 d0,this.strm.avail_out=0;var r=fn.inflateInit2(this.strm,t.windowBits);if(r!==Ue.Z_OK)throw new Error(oo[r]);if(this.header=new h0,fn.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=qs.string2buf(t.dictionary):tu.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=fn.inflateSetDictionary(this.strm,t.dictionary),r!==Ue.Z_OK)))throw new Error(oo[r])}Br.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a=this.options.dictionary,s,n,o,l,p,c=!1;if(this.ended)return!1;n=t===~~t?t:t===!0?Ue.Z_FINISH:Ue.Z_NO_FLUSH,typeof e=="string"?r.input=qs.binstring2buf(e):tu.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 Nn.Buf8(i),r.next_out=0,r.avail_out=i),s=fn.inflate(r,Ue.Z_NO_FLUSH),s===Ue.Z_NEED_DICT&&a&&(s=fn.inflateSetDictionary(this.strm,a)),s===Ue.Z_BUF_ERROR&&c===!0&&(s=Ue.Z_OK,c=!1),s!==Ue.Z_STREAM_END&&s!==Ue.Z_OK)return this.onEnd(s),this.ended=!0,!1;r.next_out&&(r.avail_out===0||s===Ue.Z_STREAM_END||r.avail_in===0&&(n===Ue.Z_FINISH||n===Ue.Z_SYNC_FLUSH))&&(this.options.to==="string"?(o=qs.utf8border(r.output,r.next_out),l=r.next_out-o,p=qs.buf2string(r.output,o),r.next_out=l,r.avail_out=i-l,l&&Nn.arraySet(r.output,r.output,o,l,0),this.onData(p)):this.onData(Nn.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(c=!0)}while((r.avail_in>0||r.avail_out===0)&&s!==Ue.Z_STREAM_END);return s===Ue.Z_STREAM_END&&(n=Ue.Z_FINISH),n===Ue.Z_FINISH?(s=fn.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===Ue.Z_OK):(n===Ue.Z_SYNC_FLUSH&&(this.onEnd(Ue.Z_OK),r.avail_out=0),!0)};Br.prototype.onData=function(e){this.chunks.push(e)};Br.prototype.onEnd=function(e){e===Ue.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Nn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Lo(e,t){var r=new Br(t);if(r.push(e,!0),r.err)throw r.msg||oo[r.err];return r.result}function m0(e,t){return t=t||{},t.raw=!0,Lo(e,t)}ls.Inflate=Br;ls.inflate=Lo;ls.inflateRaw=m0;ls.ungzip=Lo;var y0=or.assign,g0=is,w0=ls,b0=eu,ru={};y0(ru,g0,w0,b0);var _0=ru;const Io=_o(_0);async function v0(e,t){const r=new cc(e);let i=await r.read(4);if(i=i.toString("utf8"),i!=="PACK")throw new Ee(`Invalid PACK header '${i}'`);let a=await r.read(4);if(a=a.readUInt32BE(0),a!==2)throw new Ee(`Invalid packfile version: ${a}`);let s=await r.read(4);if(s=s.readUInt32BE(0),!(s<1))for(;!r.eof()&&s--;){const n=r.tell(),{type:o,length:l,ofs:p,reference:c}=await x0(r),d=new Io.Inflate;for(;!d.result;){const m=await r.chunk();if(!m)break;if(d.push(m,!1),d.err)throw new Ee(`Pako error: ${d.msg}`);if(d.result){if(d.result.length!==l)throw new Ee("Inflated object size is different from that stated in packfile.");await r.undo(),await r.read(m.length-d.strm.avail_in);const y=r.tell();await t({data:d.result,type:o,num:s,offset:n,end:y,reference:c,ofs:p})}}}}async function x0(e){let t=await e.byte();const r=t>>4&7;let i=t&15;if(t&128){let n=4;do t=await e.byte(),i|=(t&127)<<n,n+=7;while(t&128)}let a,s;if(r===6){let n=0;a=0;const o=[];do t=await e.byte(),a|=(t&127)<<n,n+=7,o.push(t);while(t&128);s=Buffer.from(o)}return r===7&&(s=await e.read(20)),{type:r,length:i,ofs:a,reference:s}}async function k0(e){return Io.inflate(e)}var lo={exports:{}};typeof Object.create=="function"?lo.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:lo.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}};var P0=lo.exports,fo={exports:{}},Co={},xi={};xi.byteLength=T0;xi.toByteArray=A0;xi.fromByteArray=F0;var Kt=[],Tt=[],E0=typeof Uint8Array<"u"?Uint8Array:Array,oa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Yr=0,S0=oa.length;Yr<S0;++Yr)Kt[Yr]=oa[Yr],Tt[oa.charCodeAt(Yr)]=Yr;Tt[45]=62;Tt[95]=63;function nu(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function T0(e){var t=nu(e),r=t[0],i=t[1];return(r+i)*3/4-i}function O0(e,t,r){return(t+r)*3/4-r}function A0(e){var t,r=nu(e),i=r[0],a=r[1],s=new E0(O0(e,i,a)),n=0,o=a>0?i-4:i,l;for(l=0;l<o;l+=4)t=Tt[e.charCodeAt(l)]<<18|Tt[e.charCodeAt(l+1)]<<12|Tt[e.charCodeAt(l+2)]<<6|Tt[e.charCodeAt(l+3)],s[n++]=t>>16&255,s[n++]=t>>8&255,s[n++]=t&255;return a===2&&(t=Tt[e.charCodeAt(l)]<<2|Tt[e.charCodeAt(l+1)]>>4,s[n++]=t&255),a===1&&(t=Tt[e.charCodeAt(l)]<<10|Tt[e.charCodeAt(l+1)]<<4|Tt[e.charCodeAt(l+2)]>>2,s[n++]=t>>8&255,s[n++]=t&255),s}function $0(e){return Kt[e>>18&63]+Kt[e>>12&63]+Kt[e>>6&63]+Kt[e&63]}function R0(e,t,r){for(var i,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),a.push($0(i));return a.join("")}function F0(e){for(var t,r=e.length,i=r%3,a=[],s=16383,n=0,o=r-i;n<o;n+=s)a.push(R0(e,n,n+s>o?o:n+s));return i===1?(t=e[r-1],a.push(Kt[t>>2]+Kt[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],a.push(Kt[t>>10]+Kt[t>>4&63]+Kt[t<<2&63]+"=")),a.join("")}var jo={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */jo.read=function(e,t,r,i,a){var s,n,o=a*8-i-1,l=(1<<o)-1,p=l>>1,c=-7,d=r?a-1:0,m=r?-1:1,y=e[t+d];for(d+=m,s=y&(1<<-c)-1,y>>=-c,c+=o;c>0;s=s*256+e[t+d],d+=m,c-=8);for(n=s&(1<<-c)-1,s>>=-c,c+=i;c>0;n=n*256+e[t+d],d+=m,c-=8);if(s===0)s=1-p;else{if(s===l)return n?NaN:(y?-1:1)*(1/0);n=n+Math.pow(2,i),s=s-p}return(y?-1:1)*n*Math.pow(2,s-i)};jo.write=function(e,t,r,i,a,s){var n,o,l,p=s*8-a-1,c=(1<<p)-1,d=c>>1,m=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=i?0:s-1,T=i?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,n=c):(n=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-n))<1&&(n--,l*=2),n+d>=1?t+=m/l:t+=m*Math.pow(2,1-d),t*l>=2&&(n++,l/=2),n+d>=c?(o=0,n=c):n+d>=1?(o=(t*l-1)*Math.pow(2,a),n=n+d):(o=t*Math.pow(2,d-1)*Math.pow(2,a),n=0));a>=8;e[r+y]=o&255,y+=T,o/=256,a-=8);for(n=n<<a|o,p+=a;p>0;e[r+y]=n&255,y+=T,n/=256,p-=8);e[r+y-T]|=g*128};/*!
59
+ `+s;return bt.from(l)}}var mc={};/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */(function(e){(function(t){t(typeof DO_NOT_EXPORT_CRC>"u"?e:{})})(function(t){t.version="1.2.2";function r(){for(var b=0,F=new Array(256),P=0;P!=256;++P)b=P,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,F[P]=b;return typeof Int32Array<"u"?new Int32Array(F):F}var i=r();function a(b){var F=0,P=0,S=0,j=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(S=0;S!=256;++S)j[S]=b[S];for(S=0;S!=256;++S)for(P=b[S],F=256+S;F<4096;F+=256)P=j[F]=P>>>8^b[P&255];var R=[];for(S=1;S!=16;++S)R[S-1]=typeof Int32Array<"u"?j.subarray(S*256,S*256+256):j.slice(S*256,S*256+256);return R}var s=a(i),n=s[0],o=s[1],l=s[2],p=s[3],c=s[4],d=s[5],m=s[6],y=s[7],T=s[8],g=s[9],w=s[10],_=s[11],O=s[12],E=s[13],I=s[14];function $(b,F){for(var P=F^-1,S=0,j=b.length;S<j;)P=P>>>8^i[(P^b.charCodeAt(S++))&255];return~P}function L(b,F){for(var P=F^-1,S=b.length-15,j=0;j<S;)P=I[b[j++]^P&255]^E[b[j++]^P>>8&255]^O[b[j++]^P>>16&255]^_[b[j++]^P>>>24]^w[b[j++]]^g[b[j++]]^T[b[j++]]^y[b[j++]]^m[b[j++]]^d[b[j++]]^c[b[j++]]^p[b[j++]]^l[b[j++]]^o[b[j++]]^n[b[j++]]^i[b[j++]];for(S+=15;j<S;)P=P>>>8^i[(P^b[j++])&255];return~P}function C(b,F){for(var P=F^-1,S=0,j=b.length,R=0,D=0;S<j;)R=b.charCodeAt(S++),R<128?P=P>>>8^i[(P^R)&255]:R<2048?(P=P>>>8^i[(P^(192|R>>6&31))&255],P=P>>>8^i[(P^(128|R&63))&255]):R>=55296&&R<57344?(R=(R&1023)+64,D=b.charCodeAt(S++)&1023,P=P>>>8^i[(P^(240|R>>8&7))&255],P=P>>>8^i[(P^(128|R>>2&63))&255],P=P>>>8^i[(P^(128|D>>6&15|(R&3)<<4))&255],P=P>>>8^i[(P^(128|D&63))&255]):(P=P>>>8^i[(P^(224|R>>12&15))&255],P=P>>>8^i[(P^(128|R>>6&63))&255],P=P>>>8^i[(P^(128|R&63))&255]);return~P}t.table=i,t.bstr=$,t.buf=L,t.str=C})})(mc);const Sm=_o(mc);class Tm{static wrap({type:t,object:r}){return Buffer.concat([Buffer.from(`${t} ${r.byteLength.toString()}\0`),Buffer.from(r)])}static unwrap(t){const r=t.indexOf(32),i=t.indexOf(0),a=t.slice(0,r).toString("utf8"),s=t.slice(r+1,i).toString("utf8"),n=t.length-(i+1);if(parseInt(s)!==n)throw new Ee(`Length mismatch: expected ${s} bytes but got ${n} instead.`);return{type:a,object:Buffer.from(t.slice(i+1))}}}class Zt{constructor(t){this.buffer=t,this._start=0}eof(){return this._start>=this.buffer.length}tell(){return this._start}seek(t){this._start=t}slice(t){const r=this.buffer.slice(this._start,this._start+t);return this._start+=t,r}toString(t,r){const i=this.buffer.toString(t,this._start,this._start+r);return this._start+=r,i}write(t,r,i){const a=this.buffer.write(t,this._start,r,i);return this._start+=r,a}copy(t,r,i){const a=t.copy(this.buffer,this._start,r,i);return this._start+=a,a}readUInt8(){const t=this.buffer.readUInt8(this._start);return this._start+=1,t}writeUInt8(t){const r=this.buffer.writeUInt8(t,this._start);return this._start+=1,r}readUInt16BE(){const t=this.buffer.readUInt16BE(this._start);return this._start+=2,t}writeUInt16BE(t){const r=this.buffer.writeUInt16BE(t,this._start);return this._start+=2,r}readUInt32BE(){const t=this.buffer.readUInt32BE(this._start);return this._start+=4,t}writeUInt32BE(t){const r=this.buffer.writeUInt32BE(t,this._start);return this._start+=4,r}}function Om(e,t){const r=new Zt(e),i=gl(r);if(i!==t.byteLength)throw new Ee(`applyDelta expected source buffer to be ${i} bytes but the provided buffer was ${t.length} bytes`);const a=gl(r);let s;const n=bl(r,t);if(n.byteLength===a)s=n;else{s=Buffer.alloc(a);const o=new Zt(s);for(o.copy(n);!r.eof();)o.copy(bl(r,t));const l=o.tell();if(a!==l)throw new Ee(`applyDelta expected target buffer to be ${a} bytes but the resulting buffer was ${l} bytes`)}return s}function gl(e){let t=0,r=0,i=null;do i=e.readUInt8(),t|=(i&127)<<r,r+=7;while(i&128);return t}function wl(e,t,r){let i=0,a=0;for(;r--;)t&1&&(i|=e.readUInt8()<<a),t>>=1,a+=8;return i}function bl(e,t){const r=e.readUInt8(),i=128,a=15,s=112;if(r&i){const n=wl(e,r&a,4);let o=wl(e,(r&s)>>4,3);return o===0&&(o=65536),t.slice(n,n+o)}else return e.slice(r)}var or={};(function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function r(s,n){return Object.prototype.hasOwnProperty.call(s,n)}e.assign=function(s){for(var n=Array.prototype.slice.call(arguments,1);n.length;){var o=n.shift();if(o){if(typeof o!="object")throw new TypeError(o+"must be non-object");for(var l in o)r(o,l)&&(s[l]=o[l])}}return s},e.shrinkBuf=function(s,n){return s.length===n?s:s.subarray?s.subarray(0,n):(s.length=n,s)};var i={arraySet:function(s,n,o,l,p){if(n.subarray&&s.subarray){s.set(n.subarray(o,o+l),p);return}for(var c=0;c<l;c++)s[p+c]=n[o+c]},flattenChunks:function(s){var n,o,l,p,c,d;for(l=0,n=0,o=s.length;n<o;n++)l+=s[n].length;for(d=new Uint8Array(l),p=0,n=0,o=s.length;n<o;n++)c=s[n],d.set(c,p),p+=c.length;return d}},a={arraySet:function(s,n,o,l,p){for(var c=0;c<l;c++)s[p+c]=n[o+c]},flattenChunks:function(s){return[].concat.apply([],s)}};e.setTyped=function(s){s?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(t)})(or);var is={},Qt={},gn={},Am=or,$m=4,_l=0,vl=1,Rm=2;function wn(e){for(var t=e.length;--t>=0;)e[t]=0}var Fm=0,yc=1,Lm=2,Im=3,Cm=258,To=29,as=256,qn=as+1+To,on=30,Oo=19,gc=2*qn+1,Ar=15,Gi=16,jm=7,Ao=256,wc=16,bc=17,_c=18,eo=[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],Ns=[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],Nm=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],vc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Dm=512,nr=new Array((qn+2)*2);wn(nr);var Ln=new Array(on*2);wn(Ln);var Mn=new Array(Dm);wn(Mn);var Wn=new Array(Cm-Im+1);wn(Wn);var $o=new Array(To);wn($o);var ni=new Array(on);wn(ni);function Yi(e,t,r,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}var xc,kc,Pc;function Ki(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Ec(e){return e<256?Mn[e]:Mn[256+(e>>>7)]}function Hn(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function mt(e,t,r){e.bi_valid>Gi-r?(e.bi_buf|=t<<e.bi_valid&65535,Hn(e,e.bi_buf),e.bi_buf=t>>Gi-e.bi_valid,e.bi_valid+=r-Gi):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function Gt(e,t,r){mt(e,r[t*2],r[t*2+1])}function Sc(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function Um(e){e.bi_valid===16?(Hn(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function Bm(e,t){var r=t.dyn_tree,i=t.max_code,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,n=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,l=t.stat_desc.max_length,p,c,d,m,y,T,g=0;for(m=0;m<=Ar;m++)e.bl_count[m]=0;for(r[e.heap[e.heap_max]*2+1]=0,p=e.heap_max+1;p<gc;p++)c=e.heap[p],m=r[r[c*2+1]*2+1]+1,m>l&&(m=l,g++),r[c*2+1]=m,!(c>i)&&(e.bl_count[m]++,y=0,c>=o&&(y=n[c-o]),T=r[c*2],e.opt_len+=T*(m+y),s&&(e.static_len+=T*(a[c*2+1]+y)));if(g!==0){do{for(m=l-1;e.bl_count[m]===0;)m--;e.bl_count[m]--,e.bl_count[m+1]+=2,e.bl_count[l]--,g-=2}while(g>0);for(m=l;m!==0;m--)for(c=e.bl_count[m];c!==0;)d=e.heap[--p],!(d>i)&&(r[d*2+1]!==m&&(e.opt_len+=(m-r[d*2+1])*r[d*2],r[d*2+1]=m),c--)}}function Tc(e,t,r){var i=new Array(Ar+1),a=0,s,n;for(s=1;s<=Ar;s++)i[s]=a=a+r[s-1]<<1;for(n=0;n<=t;n++){var o=e[n*2+1];o!==0&&(e[n*2]=Sc(i[o]++,o))}}function qm(){var e,t,r,i,a,s=new Array(Ar+1);for(r=0,i=0;i<To-1;i++)for($o[i]=r,e=0;e<1<<eo[i];e++)Wn[r++]=i;for(Wn[r-1]=i,a=0,i=0;i<16;i++)for(ni[i]=a,e=0;e<1<<Ns[i];e++)Mn[a++]=i;for(a>>=7;i<on;i++)for(ni[i]=a<<7,e=0;e<1<<Ns[i]-7;e++)Mn[256+a++]=i;for(t=0;t<=Ar;t++)s[t]=0;for(e=0;e<=143;)nr[e*2+1]=8,e++,s[8]++;for(;e<=255;)nr[e*2+1]=9,e++,s[9]++;for(;e<=279;)nr[e*2+1]=7,e++,s[7]++;for(;e<=287;)nr[e*2+1]=8,e++,s[8]++;for(Tc(nr,qn+1,s),e=0;e<on;e++)Ln[e*2+1]=5,Ln[e*2]=Sc(e,5);xc=new Yi(nr,eo,as+1,qn,Ar),kc=new Yi(Ln,Ns,0,on,Ar),Pc=new Yi(new Array(0),Nm,0,Oo,jm)}function Oc(e){var t;for(t=0;t<qn;t++)e.dyn_ltree[t*2]=0;for(t=0;t<on;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Oo;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Ao*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Ac(e){e.bi_valid>8?Hn(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Mm(e,t,r,i){Ac(e),Hn(e,r),Hn(e,~r),Am.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function xl(e,t,r,i){var a=t*2,s=r*2;return e[a]<e[s]||e[a]===e[s]&&i[t]<=i[r]}function Xi(e,t,r){for(var i=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&xl(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!xl(t,i,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=i}function kl(e,t,r){var i,a,s=0,n,o;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+s*2]<<8|e.pending_buf[e.d_buf+s*2+1],a=e.pending_buf[e.l_buf+s],s++,i===0?Gt(e,a,t):(n=Wn[a],Gt(e,n+as+1,t),o=eo[n],o!==0&&(a-=$o[n],mt(e,a,o)),i--,n=Ec(i),Gt(e,n,r),o=Ns[n],o!==0&&(i-=ni[n],mt(e,i,o)));while(s<e.last_lit);Gt(e,Ao,t)}function to(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,s=t.stat_desc.elems,n,o,l=-1,p;for(e.heap_len=0,e.heap_max=gc,n=0;n<s;n++)r[n*2]!==0?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):r[n*2+1]=0;for(;e.heap_len<2;)p=e.heap[++e.heap_len]=l<2?++l:0,r[p*2]=1,e.depth[p]=0,e.opt_len--,a&&(e.static_len-=i[p*2+1]);for(t.max_code=l,n=e.heap_len>>1;n>=1;n--)Xi(e,r,n);p=s;do n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Xi(e,r,1),o=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=o,r[p*2]=r[n*2]+r[o*2],e.depth[p]=(e.depth[n]>=e.depth[o]?e.depth[n]:e.depth[o])+1,r[n*2+1]=r[o*2+1]=p,e.heap[1]=p++,Xi(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Bm(e,t),Tc(r,l,e.bl_count)}function Pl(e,t,r){var i,a=-1,s,n=t[0*2+1],o=0,l=7,p=4;for(n===0&&(l=138,p=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)s=n,n=t[(i+1)*2+1],!(++o<l&&s===n)&&(o<p?e.bl_tree[s*2]+=o:s!==0?(s!==a&&e.bl_tree[s*2]++,e.bl_tree[wc*2]++):o<=10?e.bl_tree[bc*2]++:e.bl_tree[_c*2]++,o=0,a=s,n===0?(l=138,p=3):s===n?(l=6,p=3):(l=7,p=4))}function El(e,t,r){var i,a=-1,s,n=t[0*2+1],o=0,l=7,p=4;for(n===0&&(l=138,p=3),i=0;i<=r;i++)if(s=n,n=t[(i+1)*2+1],!(++o<l&&s===n)){if(o<p)do Gt(e,s,e.bl_tree);while(--o!==0);else s!==0?(s!==a&&(Gt(e,s,e.bl_tree),o--),Gt(e,wc,e.bl_tree),mt(e,o-3,2)):o<=10?(Gt(e,bc,e.bl_tree),mt(e,o-3,3)):(Gt(e,_c,e.bl_tree),mt(e,o-11,7));o=0,a=s,n===0?(l=138,p=3):s===n?(l=6,p=3):(l=7,p=4)}}function Wm(e){var t;for(Pl(e,e.dyn_ltree,e.l_desc.max_code),Pl(e,e.dyn_dtree,e.d_desc.max_code),to(e,e.bl_desc),t=Oo-1;t>=3&&e.bl_tree[vc[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function Hm(e,t,r,i){var a;for(mt(e,t-257,5),mt(e,r-1,5),mt(e,i-4,4),a=0;a<i;a++)mt(e,e.bl_tree[vc[a]*2+1],3);El(e,e.dyn_ltree,t-1),El(e,e.dyn_dtree,r-1)}function zm(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return _l;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return vl;for(r=32;r<as;r++)if(e.dyn_ltree[r*2]!==0)return vl;return _l}var Sl=!1;function Vm(e){Sl||(qm(),Sl=!0),e.l_desc=new Ki(e.dyn_ltree,xc),e.d_desc=new Ki(e.dyn_dtree,kc),e.bl_desc=new Ki(e.bl_tree,Pc),e.bi_buf=0,e.bi_valid=0,Oc(e)}function $c(e,t,r,i){mt(e,(Fm<<1)+(i?1:0),3),Mm(e,t,r)}function Zm(e){mt(e,yc<<1,3),Gt(e,Ao,nr),Um(e)}function Gm(e,t,r,i){var a,s,n=0;e.level>0?(e.strm.data_type===Rm&&(e.strm.data_type=zm(e)),to(e,e.l_desc),to(e,e.d_desc),n=Wm(e),a=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=a&&(a=s)):a=s=r+5,r+4<=a&&t!==-1?$c(e,t,r,i):e.strategy===$m||s===a?(mt(e,(yc<<1)+(i?1:0),3),kl(e,nr,Ln)):(mt(e,(Lm<<1)+(i?1:0),3),Hm(e,e.l_desc.max_code+1,e.d_desc.max_code+1,n+1),kl(e,e.dyn_ltree,e.dyn_dtree)),Oc(e),i&&Ac(e)}function Ym(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[(Wn[r]+as+1)*2]++,e.dyn_dtree[Ec(t)*2]++),e.last_lit===e.lit_bufsize-1}gn._tr_init=Vm;gn._tr_stored_block=$c;gn._tr_flush_block=Gm;gn._tr_tally=Ym;gn._tr_align=Zm;function Km(e,t,r,i){for(var a=e&65535|0,s=e>>>16&65535|0,n=0;r!==0;){n=r>2e3?2e3:r,r-=n;do a=a+t[i++]|0,s=s+a|0;while(--n);a%=65521,s%=65521}return a|s<<16|0}var Rc=Km;function Xm(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var Jm=Xm();function Qm(e,t,r,i){var a=Jm,s=i+r;e^=-1;for(var n=i;n<s;n++)e=e>>>8^a[(e^t[n])&255];return e^-1}var Fc=Qm,Ro={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"},at=or,At=gn,Lc=Rc,dr=Fc,ey=Ro,Hr=0,ty=1,ry=3,xr=4,Tl=5,Yt=0,Ol=1,$t=-2,ny=-3,Ji=-5,sy=-1,iy=1,_s=2,ay=3,oy=4,ly=0,fy=2,bi=8,py=9,cy=15,uy=8,dy=29,hy=256,ro=hy+1+dy,my=30,yy=19,gy=2*ro+1,wy=15,ge=3,_r=258,Dt=_r+ge+1,by=32,_i=42,no=69,Ds=73,Us=91,Bs=103,$r=113,$n=666,He=1,os=2,jr=3,bn=4,_y=3;function vr(e,t){return e.msg=ey[t],t}function Al(e){return(e<<1)-(e>4?9:0)}function br(e){for(var t=e.length;--t>=0;)e[t]=0}function hr(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(at.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function Qe(e,t){At._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,hr(e.strm)}function Pe(e,t){e.pending_buf[e.pending++]=t}function kn(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function vy(e,t,r,i){var a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,at.arraySet(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=Lc(e.adler,t,a,r):e.state.wrap===2&&(e.adler=dr(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}function Ic(e,t){var r=e.max_chain_length,i=e.strstart,a,s,n=e.prev_length,o=e.nice_match,l=e.strstart>e.w_size-Dt?e.strstart-(e.w_size-Dt):0,p=e.window,c=e.w_mask,d=e.prev,m=e.strstart+_r,y=p[i+n-1],T=p[i+n];e.prev_length>=e.good_match&&(r>>=2),o>e.lookahead&&(o=e.lookahead);do if(a=t,!(p[a+n]!==T||p[a+n-1]!==y||p[a]!==p[i]||p[++a]!==p[i+1])){i+=2,a++;do;while(p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&i<m);if(s=_r-(m-i),i=m-_r,s>n){if(e.match_start=t,n=s,s>=o)break;y=p[i+n-1],T=p[i+n]}}while((t=d[t&c])>l&&--r!==0);return n<=e.lookahead?n:e.lookahead}function Nr(e){var t=e.w_size,r,i,a,s,n;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Dt)){at.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=t?a-t:0;while(--i);i=t,r=i;do a=e.prev[--r],e.prev[r]=a>=t?a-t:0;while(--i);s+=t}if(e.strm.avail_in===0)break;if(i=vy(e.strm,e.window,e.strstart+e.lookahead,s),e.lookahead+=i,e.lookahead+e.insert>=ge)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=(e.ins_h<<e.hash_shift^e.window[n+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[n+ge-1])&e.hash_mask,e.prev[n&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=n,n++,e.insert--,!(e.lookahead+e.insert<ge)););}while(e.lookahead<Dt&&e.strm.avail_in!==0)}function xy(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Nr(e),e.lookahead===0&&t===Hr)return He;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,Qe(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Dt&&(Qe(e,!1),e.strm.avail_out===0))return He}return e.insert=0,t===xr?(Qe(e,!0),e.strm.avail_out===0?jr:bn):(e.strstart>e.block_start&&(Qe(e,!1),e.strm.avail_out===0),He)}function Qi(e,t){for(var r,i;;){if(e.lookahead<Dt){if(Nr(e),e.lookahead<Dt&&t===Hr)return He;if(e.lookahead===0)break}if(r=0,e.lookahead>=ge&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ge-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-Dt&&(e.match_length=Ic(e,r)),e.match_length>=ge)if(i=At._tr_tally(e,e.strstart-e.match_start,e.match_length-ge),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ge){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ge-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=At._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Qe(e,!1),e.strm.avail_out===0))return He}return e.insert=e.strstart<ge-1?e.strstart:ge-1,t===xr?(Qe(e,!0),e.strm.avail_out===0?jr:bn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?He:os}function Zr(e,t){for(var r,i,a;;){if(e.lookahead<Dt){if(Nr(e),e.lookahead<Dt&&t===Hr)return He;if(e.lookahead===0)break}if(r=0,e.lookahead>=ge&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ge-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=ge-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Dt&&(e.match_length=Ic(e,r),e.match_length<=5&&(e.strategy===iy||e.match_length===ge&&e.strstart-e.match_start>4096)&&(e.match_length=ge-1)),e.prev_length>=ge&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-ge,i=At._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-ge),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ge-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=ge-1,e.strstart++,i&&(Qe(e,!1),e.strm.avail_out===0))return He}else if(e.match_available){if(i=At._tr_tally(e,0,e.window[e.strstart-1]),i&&Qe(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return He}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=At._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<ge-1?e.strstart:ge-1,t===xr?(Qe(e,!0),e.strm.avail_out===0?jr:bn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?He:os}function ky(e,t){for(var r,i,a,s,n=e.window;;){if(e.lookahead<=_r){if(Nr(e),e.lookahead<=_r&&t===Hr)return He;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=ge&&e.strstart>0&&(a=e.strstart-1,i=n[a],i===n[++a]&&i===n[++a]&&i===n[++a])){s=e.strstart+_r;do;while(i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&a<s);e.match_length=_r-(s-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ge?(r=At._tr_tally(e,1,e.match_length-ge),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=At._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Qe(e,!1),e.strm.avail_out===0))return He}return e.insert=0,t===xr?(Qe(e,!0),e.strm.avail_out===0?jr:bn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?He:os}function Py(e,t){for(var r;;){if(e.lookahead===0&&(Nr(e),e.lookahead===0)){if(t===Hr)return He;break}if(e.match_length=0,r=At._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Qe(e,!1),e.strm.avail_out===0))return He}return e.insert=0,t===xr?(Qe(e,!0),e.strm.avail_out===0?jr:bn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?He:os}function qt(e,t,r,i,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=a}var nn;nn=[new qt(0,0,0,0,xy),new qt(4,4,8,4,Qi),new qt(4,5,16,8,Qi),new qt(4,6,32,32,Qi),new qt(4,4,16,16,Zr),new qt(8,16,32,32,Zr),new qt(8,16,128,128,Zr),new qt(8,32,128,256,Zr),new qt(32,128,258,1024,Zr),new qt(32,258,258,4096,Zr)];function Ey(e){e.window_size=2*e.w_size,br(e.head),e.max_lazy_match=nn[e.level].max_lazy,e.good_match=nn[e.level].good_length,e.nice_match=nn[e.level].nice_length,e.max_chain_length=nn[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ge-1,e.match_available=0,e.ins_h=0}function Sy(){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=bi,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 at.Buf16(gy*2),this.dyn_dtree=new at.Buf16((2*my+1)*2),this.bl_tree=new at.Buf16((2*yy+1)*2),br(this.dyn_ltree),br(this.dyn_dtree),br(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new at.Buf16(wy+1),this.heap=new at.Buf16(2*ro+1),br(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new at.Buf16(2*ro+1),br(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Cc(e){var t;return!e||!e.state?vr(e,$t):(e.total_in=e.total_out=0,e.data_type=fy,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?_i:$r,e.adler=t.wrap===2?0:1,t.last_flush=Hr,At._tr_init(t),Yt)}function jc(e){var t=Cc(e);return t===Yt&&Ey(e.state),t}function Ty(e,t){return!e||!e.state||e.state.wrap!==2?$t:(e.state.gzhead=t,Yt)}function Nc(e,t,r,i,a,s){if(!e)return $t;var n=1;if(t===sy&&(t=6),i<0?(n=0,i=-i):i>15&&(n=2,i-=16),a<1||a>py||r!==bi||i<8||i>15||t<0||t>9||s<0||s>oy)return vr(e,$t);i===8&&(i=9);var o=new Sy;return e.state=o,o.strm=e,o.wrap=n,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=a+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+ge-1)/ge),o.window=new at.Buf8(o.w_size*2),o.head=new at.Buf16(o.hash_size),o.prev=new at.Buf16(o.w_size),o.lit_bufsize=1<<a+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new at.Buf8(o.pending_buf_size),o.d_buf=1*o.lit_bufsize,o.l_buf=3*o.lit_bufsize,o.level=t,o.strategy=s,o.method=r,jc(e)}function Oy(e,t){return Nc(e,t,bi,cy,uy,ly)}function Ay(e,t){var r,i,a,s;if(!e||!e.state||t>Tl||t<0)return e?vr(e,$t):$t;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===$n&&t!==xr)return vr(e,e.avail_out===0?Ji:$t);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===_i)if(i.wrap===2)e.adler=0,Pe(i,31),Pe(i,139),Pe(i,8),i.gzhead?(Pe(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)),Pe(i,i.gzhead.time&255),Pe(i,i.gzhead.time>>8&255),Pe(i,i.gzhead.time>>16&255),Pe(i,i.gzhead.time>>24&255),Pe(i,i.level===9?2:i.strategy>=_s||i.level<2?4:0),Pe(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(Pe(i,i.gzhead.extra.length&255),Pe(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=dr(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=no):(Pe(i,0),Pe(i,0),Pe(i,0),Pe(i,0),Pe(i,0),Pe(i,i.level===9?2:i.strategy>=_s||i.level<2?4:0),Pe(i,_y),i.status=$r);else{var n=bi+(i.w_bits-8<<4)<<8,o=-1;i.strategy>=_s||i.level<2?o=0:i.level<6?o=1:i.level===6?o=2:o=3,n|=o<<6,i.strstart!==0&&(n|=by),n+=31-n%31,i.status=$r,kn(i,n),i.strstart!==0&&(kn(i,e.adler>>>16),kn(i,e.adler&65535)),e.adler=1}if(i.status===no)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=dr(e.adler,i.pending_buf,i.pending-a,a)),hr(e),a=i.pending,i.pending===i.pending_buf_size));)Pe(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=dr(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=Ds)}else i.status=Ds;if(i.status===Ds)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=dr(e.adler,i.pending_buf,i.pending-a,a)),hr(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.name.length?s=i.gzhead.name.charCodeAt(i.gzindex++)&255:s=0,Pe(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=dr(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.gzindex=0,i.status=Us)}else i.status=Us;if(i.status===Us)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=dr(e.adler,i.pending_buf,i.pending-a,a)),hr(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.comment.length?s=i.gzhead.comment.charCodeAt(i.gzindex++)&255:s=0,Pe(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=dr(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.status=Bs)}else i.status=Bs;if(i.status===Bs&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&hr(e),i.pending+2<=i.pending_buf_size&&(Pe(i,e.adler&255),Pe(i,e.adler>>8&255),e.adler=0,i.status=$r)):i.status=$r),i.pending!==0){if(hr(e),e.avail_out===0)return i.last_flush=-1,Yt}else if(e.avail_in===0&&Al(t)<=Al(r)&&t!==xr)return vr(e,Ji);if(i.status===$n&&e.avail_in!==0)return vr(e,Ji);if(e.avail_in!==0||i.lookahead!==0||t!==Hr&&i.status!==$n){var l=i.strategy===_s?Py(i,t):i.strategy===ay?ky(i,t):nn[i.level].func(i,t);if((l===jr||l===bn)&&(i.status=$n),l===He||l===jr)return e.avail_out===0&&(i.last_flush=-1),Yt;if(l===os&&(t===ty?At._tr_align(i):t!==Tl&&(At._tr_stored_block(i,0,0,!1),t===ry&&(br(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),hr(e),e.avail_out===0))return i.last_flush=-1,Yt}return t!==xr?Yt:i.wrap<=0?Ol:(i.wrap===2?(Pe(i,e.adler&255),Pe(i,e.adler>>8&255),Pe(i,e.adler>>16&255),Pe(i,e.adler>>24&255),Pe(i,e.total_in&255),Pe(i,e.total_in>>8&255),Pe(i,e.total_in>>16&255),Pe(i,e.total_in>>24&255)):(kn(i,e.adler>>>16),kn(i,e.adler&65535)),hr(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Yt:Ol)}function $y(e){var t;return!e||!e.state?$t:(t=e.state.status,t!==_i&&t!==no&&t!==Ds&&t!==Us&&t!==Bs&&t!==$r&&t!==$n?vr(e,$t):(e.state=null,t===$r?vr(e,ny):Yt))}function Ry(e,t){var r=t.length,i,a,s,n,o,l,p,c;if(!e||!e.state||(i=e.state,n=i.wrap,n===2||n===1&&i.status!==_i||i.lookahead))return $t;for(n===1&&(e.adler=Lc(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(n===0&&(br(i.head),i.strstart=0,i.block_start=0,i.insert=0),c=new at.Buf8(i.w_size),at.arraySet(c,t,r-i.w_size,i.w_size,0),t=c,r=i.w_size),o=e.avail_in,l=e.next_in,p=e.input,e.avail_in=r,e.next_in=0,e.input=t,Nr(i);i.lookahead>=ge;){a=i.strstart,s=i.lookahead-(ge-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[a+ge-1])&i.hash_mask,i.prev[a&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=a,a++;while(--s);i.strstart=a,i.lookahead=ge-1,Nr(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=ge-1,i.match_available=0,e.next_in=l,e.input=p,e.avail_in=o,i.wrap=n,Yt}Qt.deflateInit=Oy;Qt.deflateInit2=Nc;Qt.deflateReset=jc;Qt.deflateResetKeep=Cc;Qt.deflateSetHeader=Ty;Qt.deflate=Ay;Qt.deflateEnd=$y;Qt.deflateSetDictionary=Ry;Qt.deflateInfo="pako deflate (from Nodeca project)";var zr={},vi=or,Dc=!0,Uc=!0;try{String.fromCharCode.apply(null,[0])}catch{Dc=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Uc=!1}var zn=new vi.Buf8(256);for(var fr=0;fr<256;fr++)zn[fr]=fr>=252?6:fr>=248?5:fr>=240?4:fr>=224?3:fr>=192?2:1;zn[254]=zn[254]=1;zr.string2buf=function(e){var t,r,i,a,s,n=e.length,o=0;for(a=0;a<n;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<n&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new vi.Buf8(o),s=0,a=0;s<o;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<n&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[s++]=r:r<2048?(t[s++]=192|r>>>6,t[s++]=128|r&63):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|r&63):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|r&63);return t};function Bc(e,t){if(t<65534&&(e.subarray&&Uc||!e.subarray&&Dc))return String.fromCharCode.apply(null,vi.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}zr.buf2binstring=function(e){return Bc(e,e.length)};zr.binstring2buf=function(e){for(var t=new vi.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};zr.buf2string=function(e,t){var r,i,a,s,n=t||e.length,o=new Array(n*2);for(i=0,r=0;r<n;){if(a=e[r++],a<128){o[i++]=a;continue}if(s=zn[a],s>4){o[i++]=65533,r+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&r<n;)a=a<<6|e[r++]&63,s--;if(s>1){o[i++]=65533;continue}a<65536?o[i++]=a:(a-=65536,o[i++]=55296|a>>10&1023,o[i++]=56320|a&1023)}return Bc(o,i)};zr.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+zn[e[r]]>t?r:t};function Fy(){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}var qc=Fy,In=Qt,Cn=or,so=zr,io=Ro,Ly=qc,Mc=Object.prototype.toString,Iy=0,ea=4,ln=0,$l=1,Rl=2,Cy=-1,jy=0,Ny=8;function Dr(e){if(!(this instanceof Dr))return new Dr(e);this.options=Cn.assign({level:Cy,method:Ny,chunkSize:16384,windowBits:15,memLevel:8,strategy:jy,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 Ly,this.strm.avail_out=0;var r=In.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==ln)throw new Error(io[r]);if(t.header&&In.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=so.string2buf(t.dictionary):Mc.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=In.deflateSetDictionary(this.strm,i),r!==ln)throw new Error(io[r]);this._dict_set=!0}}Dr.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a,s;if(this.ended)return!1;s=t===~~t?t:t===!0?ea:Iy,typeof e=="string"?r.input=so.string2buf(e):Mc.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 Cn.Buf8(i),r.next_out=0,r.avail_out=i),a=In.deflate(r,s),a!==$l&&a!==ln)return this.onEnd(a),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(s===ea||s===Rl))&&(this.options.to==="string"?this.onData(so.buf2binstring(Cn.shrinkBuf(r.output,r.next_out))):this.onData(Cn.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&a!==$l);return s===ea?(a=In.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===ln):(s===Rl&&(this.onEnd(ln),r.avail_out=0),!0)};Dr.prototype.onData=function(e){this.chunks.push(e)};Dr.prototype.onEnd=function(e){e===ln&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Cn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Fo(e,t){var r=new Dr(t);if(r.push(e,!0),r.err)throw r.msg||io[r.err];return r.result}function Dy(e,t){return t=t||{},t.raw=!0,Fo(e,t)}function Uy(e,t){return t=t||{},t.gzip=!0,Fo(e,t)}is.Deflate=Dr;is.deflate=Fo;is.deflateRaw=Dy;is.gzip=Uy;var ls={},Ut={},vs=30,By=12,qy=function(t,r){var i,a,s,n,o,l,p,c,d,m,y,T,g,w,_,O,E,I,$,L,C,b,F,P,S;i=t.state,a=t.next_in,P=t.input,s=a+(t.avail_in-5),n=t.next_out,S=t.output,o=n-(r-t.avail_out),l=n+(t.avail_out-257),p=i.dmax,c=i.wsize,d=i.whave,m=i.wnext,y=i.window,T=i.hold,g=i.bits,w=i.lencode,_=i.distcode,O=(1<<i.lenbits)-1,E=(1<<i.distbits)-1;e:do{g<15&&(T+=P[a++]<<g,g+=8,T+=P[a++]<<g,g+=8),I=w[T&O];t:for(;;){if($=I>>>24,T>>>=$,g-=$,$=I>>>16&255,$===0)S[n++]=I&65535;else if($&16){L=I&65535,$&=15,$&&(g<$&&(T+=P[a++]<<g,g+=8),L+=T&(1<<$)-1,T>>>=$,g-=$),g<15&&(T+=P[a++]<<g,g+=8,T+=P[a++]<<g,g+=8),I=_[T&E];r:for(;;){if($=I>>>24,T>>>=$,g-=$,$=I>>>16&255,$&16){if(C=I&65535,$&=15,g<$&&(T+=P[a++]<<g,g+=8,g<$&&(T+=P[a++]<<g,g+=8)),C+=T&(1<<$)-1,C>p){t.msg="invalid distance too far back",i.mode=vs;break e}if(T>>>=$,g-=$,$=n-o,C>$){if($=C-$,$>d&&i.sane){t.msg="invalid distance too far back",i.mode=vs;break e}if(b=0,F=y,m===0){if(b+=c-$,$<L){L-=$;do S[n++]=y[b++];while(--$);b=n-C,F=S}}else if(m<$){if(b+=c+m-$,$-=m,$<L){L-=$;do S[n++]=y[b++];while(--$);if(b=0,m<L){$=m,L-=$;do S[n++]=y[b++];while(--$);b=n-C,F=S}}}else if(b+=m-$,$<L){L-=$;do S[n++]=y[b++];while(--$);b=n-C,F=S}for(;L>2;)S[n++]=F[b++],S[n++]=F[b++],S[n++]=F[b++],L-=3;L&&(S[n++]=F[b++],L>1&&(S[n++]=F[b++]))}else{b=n-C;do S[n++]=S[b++],S[n++]=S[b++],S[n++]=S[b++],L-=3;while(L>2);L&&(S[n++]=S[b++],L>1&&(S[n++]=S[b++]))}}else if($&64){t.msg="invalid distance code",i.mode=vs;break e}else{I=_[(I&65535)+(T&(1<<$)-1)];continue r}break}}else if($&64)if($&32){i.mode=By;break e}else{t.msg="invalid literal/length code",i.mode=vs;break e}else{I=w[(I&65535)+(T&(1<<$)-1)];continue t}break}}while(a<s&&n<l);L=g>>3,a-=L,g-=L<<3,T&=(1<<g)-1,t.next_in=a,t.next_out=n,t.avail_in=a<s?5+(s-a):5-(a-s),t.avail_out=n<l?257+(l-n):257-(n-l),i.hold=T,i.bits=g},Fl=or,Gr=15,Ll=852,Il=592,Cl=0,ta=1,jl=2,My=[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],Wy=[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],Hy=[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],zy=[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],Vy=function(t,r,i,a,s,n,o,l){var p=l.bits,c=0,d=0,m=0,y=0,T=0,g=0,w=0,_=0,O=0,E=0,I,$,L,C,b,F=null,P=0,S,j=new Fl.Buf16(Gr+1),R=new Fl.Buf16(Gr+1),D=null,V=0,B,Y,G;for(c=0;c<=Gr;c++)j[c]=0;for(d=0;d<a;d++)j[r[i+d]]++;for(T=p,y=Gr;y>=1&&j[y]===0;y--);if(T>y&&(T=y),y===0)return s[n++]=1<<24|64<<16|0,s[n++]=1<<24|64<<16|0,l.bits=1,0;for(m=1;m<y&&j[m]===0;m++);for(T<m&&(T=m),_=1,c=1;c<=Gr;c++)if(_<<=1,_-=j[c],_<0)return-1;if(_>0&&(t===Cl||y!==1))return-1;for(R[1]=0,c=1;c<Gr;c++)R[c+1]=R[c]+j[c];for(d=0;d<a;d++)r[i+d]!==0&&(o[R[r[i+d]]++]=d);if(t===Cl?(F=D=o,S=19):t===ta?(F=My,P-=257,D=Wy,V-=257,S=256):(F=Hy,D=zy,S=-1),E=0,d=0,c=m,b=n,g=T,w=0,L=-1,O=1<<T,C=O-1,t===ta&&O>Ll||t===jl&&O>Il)return 1;for(;;){B=c-w,o[d]<S?(Y=0,G=o[d]):o[d]>S?(Y=D[V+o[d]],G=F[P+o[d]]):(Y=96,G=0),I=1<<c-w,$=1<<g,m=$;do $-=I,s[b+(E>>w)+$]=B<<24|Y<<16|G|0;while($!==0);for(I=1<<c-1;E&I;)I>>=1;if(I!==0?(E&=I-1,E+=I):E=0,d++,--j[c]===0){if(c===y)break;c=r[i+o[d]]}if(c>T&&(E&C)!==L){for(w===0&&(w=T),b+=m,g=c-w,_=1<<g;g+w<y&&(_-=j[g+w],!(_<=0));)g++,_<<=1;if(O+=1<<g,t===ta&&O>Ll||t===jl&&O>Il)return 1;L=E&C,s[L]=T<<24|g<<16|b-n|0}}return E!==0&&(s[b+E]=c-w<<24|64<<16|0),l.bits=T,0},kt=or,ao=Rc,Mt=Fc,Zy=qy,jn=Vy,Gy=0,Wc=1,Hc=2,Nl=4,Yy=5,xs=6,Ur=0,Ky=1,Xy=2,Rt=-2,zc=-3,Vc=-4,Jy=-5,Dl=8,Zc=1,Ul=2,Bl=3,ql=4,Ml=5,Wl=6,Hl=7,zl=8,Vl=9,Zl=10,si=11,tr=12,ra=13,Gl=14,na=15,Yl=16,Kl=17,Xl=18,Jl=19,ks=20,Ps=21,Ql=22,ef=23,tf=24,rf=25,nf=26,sa=27,sf=28,af=29,je=30,Gc=31,Qy=32,e0=852,t0=592,r0=15,n0=r0;function of(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function s0(){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 kt.Buf16(320),this.work=new kt.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Yc(e){var t;return!e||!e.state?Rt:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Zc,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new kt.Buf32(e0),t.distcode=t.distdyn=new kt.Buf32(t0),t.sane=1,t.back=-1,Ur)}function Kc(e){var t;return!e||!e.state?Rt:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Yc(e))}function Xc(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))?Rt:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,Kc(e))}function Jc(e,t){var r,i;return e?(i=new s0,e.state=i,i.window=null,r=Xc(e,t),r!==Ur&&(e.state=null),r):Rt}function i0(e){return Jc(e,n0)}var lf=!0,ia,aa;function a0(e){if(lf){var t;for(ia=new kt.Buf32(512),aa=new kt.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(jn(Wc,e.lens,0,288,ia,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;jn(Hc,e.lens,0,32,aa,0,e.work,{bits:5}),lf=!1}e.lencode=ia,e.lenbits=9,e.distcode=aa,e.distbits=5}function Qc(e,t,r,i){var a,s=e.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new kt.Buf8(s.wsize)),i>=s.wsize?(kt.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(a=s.wsize-s.wnext,a>i&&(a=i),kt.arraySet(s.window,t,r-i,a,s.wnext),i-=a,i?(kt.arraySet(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=a))),0}function o0(e,t){var r,i,a,s,n,o,l,p,c,d,m,y,T,g,w=0,_,O,E,I,$,L,C,b,F=new kt.Buf8(4),P,S,j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return Rt;r=e.state,r.mode===tr&&(r.mode=ra),n=e.next_out,a=e.output,l=e.avail_out,s=e.next_in,i=e.input,o=e.avail_in,p=r.hold,c=r.bits,d=o,m=l,b=Ur;e:for(;;)switch(r.mode){case Zc:if(r.wrap===0){r.mode=ra;break}for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(r.wrap&2&&p===35615){r.check=0,F[0]=p&255,F[1]=p>>>8&255,r.check=Mt(r.check,F,2,0),p=0,c=0,r.mode=Ul;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((p&255)<<8)+(p>>8))%31){e.msg="incorrect header check",r.mode=je;break}if((p&15)!==Dl){e.msg="unknown compression method",r.mode=je;break}if(p>>>=4,c-=4,C=(p&15)+8,r.wbits===0)r.wbits=C;else if(C>r.wbits){e.msg="invalid window size",r.mode=je;break}r.dmax=1<<C,e.adler=r.check=1,r.mode=p&512?Zl:tr,p=0,c=0;break;case Ul:for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(r.flags=p,(r.flags&255)!==Dl){e.msg="unknown compression method",r.mode=je;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=je;break}r.head&&(r.head.text=p>>8&1),r.flags&512&&(F[0]=p&255,F[1]=p>>>8&255,r.check=Mt(r.check,F,2,0)),p=0,c=0,r.mode=Bl;case Bl:for(;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.head&&(r.head.time=p),r.flags&512&&(F[0]=p&255,F[1]=p>>>8&255,F[2]=p>>>16&255,F[3]=p>>>24&255,r.check=Mt(r.check,F,4,0)),p=0,c=0,r.mode=ql;case ql:for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.head&&(r.head.xflags=p&255,r.head.os=p>>8),r.flags&512&&(F[0]=p&255,F[1]=p>>>8&255,r.check=Mt(r.check,F,2,0)),p=0,c=0,r.mode=Ml;case Ml:if(r.flags&1024){for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.length=p,r.head&&(r.head.extra_len=p),r.flags&512&&(F[0]=p&255,F[1]=p>>>8&255,r.check=Mt(r.check,F,2,0)),p=0,c=0}else r.head&&(r.head.extra=null);r.mode=Wl;case Wl:if(r.flags&1024&&(y=r.length,y>o&&(y=o),y&&(r.head&&(C=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),kt.arraySet(r.head.extra,i,s,y,C)),r.flags&512&&(r.check=Mt(r.check,i,y,s)),o-=y,s+=y,r.length-=y),r.length))break e;r.length=0,r.mode=Hl;case Hl:if(r.flags&2048){if(o===0)break e;y=0;do C=i[s+y++],r.head&&C&&r.length<65536&&(r.head.name+=String.fromCharCode(C));while(C&&y<o);if(r.flags&512&&(r.check=Mt(r.check,i,y,s)),o-=y,s+=y,C)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=zl;case zl:if(r.flags&4096){if(o===0)break e;y=0;do C=i[s+y++],r.head&&C&&r.length<65536&&(r.head.comment+=String.fromCharCode(C));while(C&&y<o);if(r.flags&512&&(r.check=Mt(r.check,i,y,s)),o-=y,s+=y,C)break e}else r.head&&(r.head.comment=null);r.mode=Vl;case Vl:if(r.flags&512){for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(p!==(r.check&65535)){e.msg="header crc mismatch",r.mode=je;break}p=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=tr;break;case Zl:for(;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}e.adler=r.check=of(p),p=0,c=0,r.mode=si;case si:if(r.havedict===0)return e.next_out=n,e.avail_out=l,e.next_in=s,e.avail_in=o,r.hold=p,r.bits=c,Xy;e.adler=r.check=1,r.mode=tr;case tr:if(t===Yy||t===xs)break e;case ra:if(r.last){p>>>=c&7,c-=c&7,r.mode=sa;break}for(;c<3;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}switch(r.last=p&1,p>>>=1,c-=1,p&3){case 0:r.mode=Gl;break;case 1:if(a0(r),r.mode=ks,t===xs){p>>>=2,c-=2;break e}break;case 2:r.mode=Kl;break;case 3:e.msg="invalid block type",r.mode=je}p>>>=2,c-=2;break;case Gl:for(p>>>=c&7,c-=c&7;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if((p&65535)!==(p>>>16^65535)){e.msg="invalid stored block lengths",r.mode=je;break}if(r.length=p&65535,p=0,c=0,r.mode=na,t===xs)break e;case na:r.mode=Yl;case Yl:if(y=r.length,y){if(y>o&&(y=o),y>l&&(y=l),y===0)break e;kt.arraySet(a,i,s,y,n),o-=y,s+=y,l-=y,n+=y,r.length-=y;break}r.mode=tr;break;case Kl:for(;c<14;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(r.nlen=(p&31)+257,p>>>=5,c-=5,r.ndist=(p&31)+1,p>>>=5,c-=5,r.ncode=(p&15)+4,p>>>=4,c-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=je;break}r.have=0,r.mode=Xl;case Xl:for(;r.have<r.ncode;){for(;c<3;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.lens[j[r.have++]]=p&7,p>>>=3,c-=3}for(;r.have<19;)r.lens[j[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,P={bits:r.lenbits},b=jn(Gy,r.lens,0,19,r.lencode,0,r.work,P),r.lenbits=P.bits,b){e.msg="invalid code lengths set",r.mode=je;break}r.have=0,r.mode=Jl;case Jl:for(;r.have<r.nlen+r.ndist;){for(;w=r.lencode[p&(1<<r.lenbits)-1],_=w>>>24,O=w>>>16&255,E=w&65535,!(_<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(E<16)p>>>=_,c-=_,r.lens[r.have++]=E;else{if(E===16){for(S=_+2;c<S;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(p>>>=_,c-=_,r.have===0){e.msg="invalid bit length repeat",r.mode=je;break}C=r.lens[r.have-1],y=3+(p&3),p>>>=2,c-=2}else if(E===17){for(S=_+3;c<S;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=_,c-=_,C=0,y=3+(p&7),p>>>=3,c-=3}else{for(S=_+7;c<S;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=_,c-=_,C=0,y=11+(p&127),p>>>=7,c-=7}if(r.have+y>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=je;break}for(;y--;)r.lens[r.have++]=C}}if(r.mode===je)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=je;break}if(r.lenbits=9,P={bits:r.lenbits},b=jn(Wc,r.lens,0,r.nlen,r.lencode,0,r.work,P),r.lenbits=P.bits,b){e.msg="invalid literal/lengths set",r.mode=je;break}if(r.distbits=6,r.distcode=r.distdyn,P={bits:r.distbits},b=jn(Hc,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,P),r.distbits=P.bits,b){e.msg="invalid distances set",r.mode=je;break}if(r.mode=ks,t===xs)break e;case ks:r.mode=Ps;case Ps:if(o>=6&&l>=258){e.next_out=n,e.avail_out=l,e.next_in=s,e.avail_in=o,r.hold=p,r.bits=c,Zy(e,m),n=e.next_out,a=e.output,l=e.avail_out,s=e.next_in,i=e.input,o=e.avail_in,p=r.hold,c=r.bits,r.mode===tr&&(r.back=-1);break}for(r.back=0;w=r.lencode[p&(1<<r.lenbits)-1],_=w>>>24,O=w>>>16&255,E=w&65535,!(_<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(O&&!(O&240)){for(I=_,$=O,L=E;w=r.lencode[L+((p&(1<<I+$)-1)>>I)],_=w>>>24,O=w>>>16&255,E=w&65535,!(I+_<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=I,c-=I,r.back+=I}if(p>>>=_,c-=_,r.back+=_,r.length=E,O===0){r.mode=nf;break}if(O&32){r.back=-1,r.mode=tr;break}if(O&64){e.msg="invalid literal/length code",r.mode=je;break}r.extra=O&15,r.mode=Ql;case Ql:if(r.extra){for(S=r.extra;c<S;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.length+=p&(1<<r.extra)-1,p>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=ef;case ef:for(;w=r.distcode[p&(1<<r.distbits)-1],_=w>>>24,O=w>>>16&255,E=w&65535,!(_<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(!(O&240)){for(I=_,$=O,L=E;w=r.distcode[L+((p&(1<<I+$)-1)>>I)],_=w>>>24,O=w>>>16&255,E=w&65535,!(I+_<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=I,c-=I,r.back+=I}if(p>>>=_,c-=_,r.back+=_,O&64){e.msg="invalid distance code",r.mode=je;break}r.offset=E,r.extra=O&15,r.mode=tf;case tf:if(r.extra){for(S=r.extra;c<S;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.offset+=p&(1<<r.extra)-1,p>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=je;break}r.mode=rf;case rf:if(l===0)break e;if(y=m-l,r.offset>y){if(y=r.offset-y,y>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=je;break}y>r.wnext?(y-=r.wnext,T=r.wsize-y):T=r.wnext-y,y>r.length&&(y=r.length),g=r.window}else g=a,T=n-r.offset,y=r.length;y>l&&(y=l),l-=y,r.length-=y;do a[n++]=g[T++];while(--y);r.length===0&&(r.mode=Ps);break;case nf:if(l===0)break e;a[n++]=r.length,l--,r.mode=Ps;break;case sa:if(r.wrap){for(;c<32;){if(o===0)break e;o--,p|=i[s++]<<c,c+=8}if(m-=l,e.total_out+=m,r.total+=m,m&&(e.adler=r.check=r.flags?Mt(r.check,a,m,n-m):ao(r.check,a,m,n-m)),m=l,(r.flags?p:of(p))!==r.check){e.msg="incorrect data check",r.mode=je;break}p=0,c=0}r.mode=sf;case sf:if(r.wrap&&r.flags){for(;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(p!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=je;break}p=0,c=0}r.mode=af;case af:b=Ky;break e;case je:b=zc;break e;case Gc:return Vc;case Qy:default:return Rt}return e.next_out=n,e.avail_out=l,e.next_in=s,e.avail_in=o,r.hold=p,r.bits=c,(r.wsize||m!==e.avail_out&&r.mode<je&&(r.mode<sa||t!==Nl))&&Qc(e,e.output,e.next_out,m-e.avail_out),d-=e.avail_in,m-=e.avail_out,e.total_in+=d,e.total_out+=m,r.total+=m,r.wrap&&m&&(e.adler=r.check=r.flags?Mt(r.check,a,m,e.next_out-m):ao(r.check,a,m,e.next_out-m)),e.data_type=r.bits+(r.last?64:0)+(r.mode===tr?128:0)+(r.mode===ks||r.mode===na?256:0),(d===0&&m===0||t===Nl)&&b===Ur&&(b=Jy),b}function l0(e){if(!e||!e.state)return Rt;var t=e.state;return t.window&&(t.window=null),e.state=null,Ur}function f0(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?Rt:(r.head=t,t.done=!1,Ur)}function p0(e,t){var r=t.length,i,a,s;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==si)?Rt:i.mode===si&&(a=1,a=ao(a,t,r,0),a!==i.check)?zc:(s=Qc(e,t,r,r),s?(i.mode=Gc,Vc):(i.havedict=1,Ur))}Ut.inflateReset=Kc;Ut.inflateReset2=Xc;Ut.inflateResetKeep=Yc;Ut.inflateInit=i0;Ut.inflateInit2=Jc;Ut.inflate=o0;Ut.inflateEnd=l0;Ut.inflateGetHeader=f0;Ut.inflateSetDictionary=p0;Ut.inflateInfo="pako inflate (from Nodeca project)";var eu={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};function c0(){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}var u0=c0,fn=Ut,Nn=or,qs=zr,Ue=eu,oo=Ro,d0=qc,h0=u0,tu=Object.prototype.toString;function Br(e){if(!(this instanceof Br))return new Br(e);this.options=Nn.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 d0,this.strm.avail_out=0;var r=fn.inflateInit2(this.strm,t.windowBits);if(r!==Ue.Z_OK)throw new Error(oo[r]);if(this.header=new h0,fn.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=qs.string2buf(t.dictionary):tu.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=fn.inflateSetDictionary(this.strm,t.dictionary),r!==Ue.Z_OK)))throw new Error(oo[r])}Br.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a=this.options.dictionary,s,n,o,l,p,c=!1;if(this.ended)return!1;n=t===~~t?t:t===!0?Ue.Z_FINISH:Ue.Z_NO_FLUSH,typeof e=="string"?r.input=qs.binstring2buf(e):tu.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 Nn.Buf8(i),r.next_out=0,r.avail_out=i),s=fn.inflate(r,Ue.Z_NO_FLUSH),s===Ue.Z_NEED_DICT&&a&&(s=fn.inflateSetDictionary(this.strm,a)),s===Ue.Z_BUF_ERROR&&c===!0&&(s=Ue.Z_OK,c=!1),s!==Ue.Z_STREAM_END&&s!==Ue.Z_OK)return this.onEnd(s),this.ended=!0,!1;r.next_out&&(r.avail_out===0||s===Ue.Z_STREAM_END||r.avail_in===0&&(n===Ue.Z_FINISH||n===Ue.Z_SYNC_FLUSH))&&(this.options.to==="string"?(o=qs.utf8border(r.output,r.next_out),l=r.next_out-o,p=qs.buf2string(r.output,o),r.next_out=l,r.avail_out=i-l,l&&Nn.arraySet(r.output,r.output,o,l,0),this.onData(p)):this.onData(Nn.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(c=!0)}while((r.avail_in>0||r.avail_out===0)&&s!==Ue.Z_STREAM_END);return s===Ue.Z_STREAM_END&&(n=Ue.Z_FINISH),n===Ue.Z_FINISH?(s=fn.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===Ue.Z_OK):(n===Ue.Z_SYNC_FLUSH&&(this.onEnd(Ue.Z_OK),r.avail_out=0),!0)};Br.prototype.onData=function(e){this.chunks.push(e)};Br.prototype.onEnd=function(e){e===Ue.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Nn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Lo(e,t){var r=new Br(t);if(r.push(e,!0),r.err)throw r.msg||oo[r.err];return r.result}function m0(e,t){return t=t||{},t.raw=!0,Lo(e,t)}ls.Inflate=Br;ls.inflate=Lo;ls.inflateRaw=m0;ls.ungzip=Lo;var y0=or.assign,g0=is,w0=ls,b0=eu,ru={};y0(ru,g0,w0,b0);var _0=ru;const Io=_o(_0);async function v0(e,t){const r=new cc(e);let i=await r.read(4);if(i=i.toString("utf8"),i!=="PACK")throw new Ee(`Invalid PACK header '${i}'`);let a=await r.read(4);if(a=a.readUInt32BE(0),a!==2)throw new Ee(`Invalid packfile version: ${a}`);let s=await r.read(4);if(s=s.readUInt32BE(0),!(s<1))for(;!r.eof()&&s--;){const n=r.tell(),{type:o,length:l,ofs:p,reference:c}=await x0(r),d=new Io.Inflate;for(;!d.result;){const m=await r.chunk();if(!m)break;if(d.push(m,!1),d.err)throw new Ee(`Pako error: ${d.msg}`);if(d.result){if(d.result.length!==l)throw new Ee("Inflated object size is different from that stated in packfile.");await r.undo(),await r.read(m.length-d.strm.avail_in);const y=r.tell();await t({data:d.result,type:o,num:s,offset:n,end:y,reference:c,ofs:p})}}}}async function x0(e){let t=await e.byte();const r=t>>4&7;let i=t&15;if(t&128){let n=4;do t=await e.byte(),i|=(t&127)<<n,n+=7;while(t&128)}let a,s;if(r===6){let n=0;a=0;const o=[];do t=await e.byte(),a|=(t&127)<<n,n+=7,o.push(t);while(t&128);s=Buffer.from(o)}return r===7&&(s=await e.read(20)),{type:r,length:i,ofs:a,reference:s}}async function k0(e){return Io.inflate(e)}var lo={exports:{}};typeof Object.create=="function"?lo.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:lo.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}};var P0=lo.exports,fo={exports:{}},Co={},xi={};xi.byteLength=T0;xi.toByteArray=A0;xi.fromByteArray=F0;var Kt=[],Tt=[],E0=typeof Uint8Array<"u"?Uint8Array:Array,oa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Yr=0,S0=oa.length;Yr<S0;++Yr)Kt[Yr]=oa[Yr],Tt[oa.charCodeAt(Yr)]=Yr;Tt[45]=62;Tt[95]=63;function nu(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function T0(e){var t=nu(e),r=t[0],i=t[1];return(r+i)*3/4-i}function O0(e,t,r){return(t+r)*3/4-r}function A0(e){var t,r=nu(e),i=r[0],a=r[1],s=new E0(O0(e,i,a)),n=0,o=a>0?i-4:i,l;for(l=0;l<o;l+=4)t=Tt[e.charCodeAt(l)]<<18|Tt[e.charCodeAt(l+1)]<<12|Tt[e.charCodeAt(l+2)]<<6|Tt[e.charCodeAt(l+3)],s[n++]=t>>16&255,s[n++]=t>>8&255,s[n++]=t&255;return a===2&&(t=Tt[e.charCodeAt(l)]<<2|Tt[e.charCodeAt(l+1)]>>4,s[n++]=t&255),a===1&&(t=Tt[e.charCodeAt(l)]<<10|Tt[e.charCodeAt(l+1)]<<4|Tt[e.charCodeAt(l+2)]>>2,s[n++]=t>>8&255,s[n++]=t&255),s}function $0(e){return Kt[e>>18&63]+Kt[e>>12&63]+Kt[e>>6&63]+Kt[e&63]}function R0(e,t,r){for(var i,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),a.push($0(i));return a.join("")}function F0(e){for(var t,r=e.length,i=r%3,a=[],s=16383,n=0,o=r-i;n<o;n+=s)a.push(R0(e,n,n+s>o?o:n+s));return i===1?(t=e[r-1],a.push(Kt[t>>2]+Kt[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],a.push(Kt[t>>10]+Kt[t>>4&63]+Kt[t<<2&63]+"=")),a.join("")}var jo={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */jo.read=function(e,t,r,i,a){var s,n,o=a*8-i-1,l=(1<<o)-1,p=l>>1,c=-7,d=r?a-1:0,m=r?-1:1,y=e[t+d];for(d+=m,s=y&(1<<-c)-1,y>>=-c,c+=o;c>0;s=s*256+e[t+d],d+=m,c-=8);for(n=s&(1<<-c)-1,s>>=-c,c+=i;c>0;n=n*256+e[t+d],d+=m,c-=8);if(s===0)s=1-p;else{if(s===l)return n?NaN:(y?-1:1)*(1/0);n=n+Math.pow(2,i),s=s-p}return(y?-1:1)*n*Math.pow(2,s-i)};jo.write=function(e,t,r,i,a,s){var n,o,l,p=s*8-a-1,c=(1<<p)-1,d=c>>1,m=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=i?0:s-1,T=i?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,n=c):(n=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-n))<1&&(n--,l*=2),n+d>=1?t+=m/l:t+=m*Math.pow(2,1-d),t*l>=2&&(n++,l/=2),n+d>=c?(o=0,n=c):n+d>=1?(o=(t*l-1)*Math.pow(2,a),n=n+d):(o=t*Math.pow(2,d-1)*Math.pow(2,a),n=0));a>=8;e[r+y]=o&255,y+=T,o/=256,a-=8);for(n=n<<a|o,p+=a;p>0;e[r+y]=n&255,y+=T,n/=256,p-=8);e[r+y-T]|=g*128};/*!
60
60
  * The buffer module from node.js, for the browser.
61
61
  *
62
62
  * @author Feross Aboukhadijeh <https://feross.org>
63
63
  * @license MIT
64
- */(function(e){var t=xi,r=jo,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=O,e.INSPECT_MAX_BYTES=50;var a=2147483647;e.kMaxLength=a,o.TYPED_ARRAY_SUPPORT=s(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{var x=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(x,u),x.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function n(x){if(x>a)throw new RangeError('The value "'+x+'" is invalid for option "size"');var u=new Uint8Array(x);return Object.setPrototypeOf(u,o.prototype),u}function o(x,u,h){if(typeof x=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(x)}return l(x,u,h)}o.poolSize=8192;function l(x,u,h){if(typeof x=="string")return m(x,u);if(ArrayBuffer.isView(x))return T(x);if(x==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x);if(Ce(x,ArrayBuffer)||x&&Ce(x.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ce(x,SharedArrayBuffer)||x&&Ce(x.buffer,SharedArrayBuffer)))return g(x,u,h);if(typeof x=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var A=x.valueOf&&x.valueOf();if(A!=null&&A!==x)return o.from(A,u,h);var U=w(x);if(U)return U;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof x[Symbol.toPrimitive]=="function")return o.from(x[Symbol.toPrimitive]("string"),u,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x)}o.from=function(x,u,h){return l(x,u,h)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function p(x){if(typeof x!="number")throw new TypeError('"size" argument must be of type number');if(x<0)throw new RangeError('The value "'+x+'" is invalid for option "size"')}function c(x,u,h){return p(x),x<=0?n(x):u!==void 0?typeof h=="string"?n(x).fill(u,h):n(x).fill(u):n(x)}o.alloc=function(x,u,h){return c(x,u,h)};function d(x){return p(x),n(x<0?0:b(x)|0)}o.allocUnsafe=function(x){return d(x)},o.allocUnsafeSlow=function(x){return d(x)};function m(x,u){if((typeof u!="string"||u==="")&&(u="utf8"),!o.isEncoding(u))throw new TypeError("Unknown encoding: "+u);var h=E(x,u)|0,A=n(h),U=A.write(x,u);return U!==h&&(A=A.slice(0,U)),A}function y(x){for(var u=x.length<0?0:b(x.length)|0,h=n(u),A=0;A<u;A+=1)h[A]=x[A]&255;return h}function T(x){if(Ce(x,Uint8Array)){var u=new Uint8Array(x);return g(u.buffer,u.byteOffset,u.byteLength)}return y(x)}function g(x,u,h){if(u<0||x.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(x.byteLength<u+(h||0))throw new RangeError('"length" is outside of buffer bounds');var A;return u===void 0&&h===void 0?A=new Uint8Array(x):h===void 0?A=new Uint8Array(x,u):A=new Uint8Array(x,u,h),Object.setPrototypeOf(A,o.prototype),A}function w(x){if(o.isBuffer(x)){var u=b(x.length)|0,h=n(u);return h.length===0||x.copy(h,0,0,u),h}if(x.length!==void 0)return typeof x.length!="number"||pt(x.length)?n(0):y(x);if(x.type==="Buffer"&&Array.isArray(x.data))return y(x.data)}function b(x){if(x>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return x|0}function O(x){return+x!=x&&(x=0),o.alloc(+x)}o.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==o.prototype},o.compare=function(u,h){if(Ce(u,Uint8Array)&&(u=o.from(u,u.offset,u.byteLength)),Ce(h,Uint8Array)&&(h=o.from(h,h.offset,h.byteLength)),!o.isBuffer(u)||!o.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===h)return 0;for(var A=u.length,U=h.length,H=0,J=Math.min(A,U);H<J;++H)if(u[H]!==h[H]){A=u[H],U=h[H];break}return A<U?-1:U<A?1:0},o.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(u,h){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return o.alloc(0);var A;if(h===void 0)for(h=0,A=0;A<u.length;++A)h+=u[A].length;var U=o.allocUnsafe(h),H=0;for(A=0;A<u.length;++A){var J=u[A];if(Ce(J,Uint8Array))H+J.length>U.length?o.from(J).copy(U,H):Uint8Array.prototype.set.call(U,J,H);else if(o.isBuffer(J))J.copy(U,H);else throw new TypeError('"list" argument must be an Array of Buffers');H+=J.length}return U};function E(x,u){if(o.isBuffer(x))return x.length;if(ArrayBuffer.isView(x)||Ce(x,ArrayBuffer))return x.byteLength;if(typeof x!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof x);var h=x.length,A=arguments.length>2&&arguments[2]===!0;if(!A&&h===0)return 0;for(var U=!1;;)switch(u){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return Oe(x).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return Et(x).length;default:if(U)return A?-1:Oe(x).length;u=(""+u).toLowerCase(),U=!0}}o.byteLength=E;function I(x,u,h){var A=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,u>>>=0,h<=u))return"";for(x||(x="utf8");;)switch(x){case"hex":return te(this,u,h);case"utf8":case"utf-8":return D(this,u,h);case"ascii":return Y(this,u,h);case"latin1":case"binary":return G(this,u,h);case"base64":return R(this,u,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,u,h);default:if(A)throw new TypeError("Unknown encoding: "+x);x=(x+"").toLowerCase(),A=!0}}o.prototype._isBuffer=!0;function $(x,u,h){var A=x[u];x[u]=x[h],x[h]=A}o.prototype.swap16=function(){var u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var h=0;h<u;h+=2)$(this,h,h+1);return this},o.prototype.swap32=function(){var u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var h=0;h<u;h+=4)$(this,h,h+3),$(this,h+1,h+2);return this},o.prototype.swap64=function(){var u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var h=0;h<u;h+=8)$(this,h,h+7),$(this,h+1,h+6),$(this,h+2,h+5),$(this,h+3,h+4);return this},o.prototype.toString=function(){var u=this.length;return u===0?"":arguments.length===0?D(this,0,u):I.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(u){if(!o.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:o.compare(this,u)===0},o.prototype.inspect=function(){var u="",h=e.INSPECT_MAX_BYTES;return u=this.toString("hex",0,h).replace(/(.{2})/g,"$1 ").trim(),this.length>h&&(u+=" ... "),"<Buffer "+u+">"},i&&(o.prototype[i]=o.prototype.inspect),o.prototype.compare=function(u,h,A,U,H){if(Ce(u,Uint8Array)&&(u=o.from(u,u.offset,u.byteLength)),!o.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(h===void 0&&(h=0),A===void 0&&(A=u?u.length:0),U===void 0&&(U=0),H===void 0&&(H=this.length),h<0||A>u.length||U<0||H>this.length)throw new RangeError("out of range index");if(U>=H&&h>=A)return 0;if(U>=H)return-1;if(h>=A)return 1;if(h>>>=0,A>>>=0,U>>>=0,H>>>=0,this===u)return 0;for(var J=H-U,pe=A-h,we=Math.min(J,pe),he=this.slice(U,H),De=u.slice(h,A),ue=0;ue<we;++ue)if(he[ue]!==De[ue]){J=he[ue],pe=De[ue];break}return J<pe?-1:pe<J?1:0};function L(x,u,h,A,U){if(x.length===0)return-1;if(typeof h=="string"?(A=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,pt(h)&&(h=U?0:x.length-1),h<0&&(h=x.length+h),h>=x.length){if(U)return-1;h=x.length-1}else if(h<0)if(U)h=0;else return-1;if(typeof u=="string"&&(u=o.from(u,A)),o.isBuffer(u))return u.length===0?-1:C(x,u,h,A,U);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?U?Uint8Array.prototype.indexOf.call(x,u,h):Uint8Array.prototype.lastIndexOf.call(x,u,h):C(x,[u],h,A,U);throw new TypeError("val must be string, number or Buffer")}function C(x,u,h,A,U){var H=1,J=x.length,pe=u.length;if(A!==void 0&&(A=String(A).toLowerCase(),A==="ucs2"||A==="ucs-2"||A==="utf16le"||A==="utf-16le")){if(x.length<2||u.length<2)return-1;H=2,J/=2,pe/=2,h/=2}function we(rt,Ft){return H===1?rt[Ft]:rt.readUInt16BE(Ft*H)}var he;if(U){var De=-1;for(he=h;he<J;he++)if(we(x,he)===we(u,De===-1?0:he-De)){if(De===-1&&(De=he),he-De+1===pe)return De*H}else De!==-1&&(he-=he-De),De=-1}else for(h+pe>J&&(h=J-pe),he=h;he>=0;he--){for(var ue=!0,yt=0;yt<pe;yt++)if(we(x,he+yt)!==we(u,yt)){ue=!1;break}if(ue)return he}return-1}o.prototype.includes=function(u,h,A){return this.indexOf(u,h,A)!==-1},o.prototype.indexOf=function(u,h,A){return L(this,u,h,A,!0)},o.prototype.lastIndexOf=function(u,h,A){return L(this,u,h,A,!1)};function _(x,u,h,A){h=Number(h)||0;var U=x.length-h;A?(A=Number(A),A>U&&(A=U)):A=U;var H=u.length;A>H/2&&(A=H/2);for(var J=0;J<A;++J){var pe=parseInt(u.substr(J*2,2),16);if(pt(pe))return J;x[h+J]=pe}return J}function F(x,u,h,A){return Ie(Oe(u,x.length-h),x,h,A)}function P(x,u,h,A){return Ie(Xe(u),x,h,A)}function S(x,u,h,A){return Ie(Et(u),x,h,A)}function j(x,u,h,A){return Ie(tt(u,x.length-h),x,h,A)}o.prototype.write=function(u,h,A,U){if(h===void 0)U="utf8",A=this.length,h=0;else if(A===void 0&&typeof h=="string")U=h,A=this.length,h=0;else if(isFinite(h))h=h>>>0,isFinite(A)?(A=A>>>0,U===void 0&&(U="utf8")):(U=A,A=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var H=this.length-h;if((A===void 0||A>H)&&(A=H),u.length>0&&(A<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");U||(U="utf8");for(var J=!1;;)switch(U){case"hex":return _(this,u,h,A);case"utf8":case"utf-8":return F(this,u,h,A);case"ascii":case"latin1":case"binary":return P(this,u,h,A);case"base64":return S(this,u,h,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,u,h,A);default:if(J)throw new TypeError("Unknown encoding: "+U);U=(""+U).toLowerCase(),J=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(x,u,h){return u===0&&h===x.length?t.fromByteArray(x):t.fromByteArray(x.slice(u,h))}function D(x,u,h){h=Math.min(x.length,h);for(var A=[],U=u;U<h;){var H=x[U],J=null,pe=H>239?4:H>223?3:H>191?2:1;if(U+pe<=h){var we,he,De,ue;switch(pe){case 1:H<128&&(J=H);break;case 2:we=x[U+1],(we&192)===128&&(ue=(H&31)<<6|we&63,ue>127&&(J=ue));break;case 3:we=x[U+1],he=x[U+2],(we&192)===128&&(he&192)===128&&(ue=(H&15)<<12|(we&63)<<6|he&63,ue>2047&&(ue<55296||ue>57343)&&(J=ue));break;case 4:we=x[U+1],he=x[U+2],De=x[U+3],(we&192)===128&&(he&192)===128&&(De&192)===128&&(ue=(H&15)<<18|(we&63)<<12|(he&63)<<6|De&63,ue>65535&&ue<1114112&&(J=ue))}}J===null?(J=65533,pe=1):J>65535&&(J-=65536,A.push(J>>>10&1023|55296),J=56320|J&1023),A.push(J),U+=pe}return B(A)}var V=4096;function B(x){var u=x.length;if(u<=V)return String.fromCharCode.apply(String,x);for(var h="",A=0;A<u;)h+=String.fromCharCode.apply(String,x.slice(A,A+=V));return h}function Y(x,u,h){var A="";h=Math.min(x.length,h);for(var U=u;U<h;++U)A+=String.fromCharCode(x[U]&127);return A}function G(x,u,h){var A="";h=Math.min(x.length,h);for(var U=u;U<h;++U)A+=String.fromCharCode(x[U]);return A}function te(x,u,h){var A=x.length;(!u||u<0)&&(u=0),(!h||h<0||h>A)&&(h=A);for(var U="",H=u;H<h;++H)U+=Re[x[H]];return U}function z(x,u,h){for(var A=x.slice(u,h),U="",H=0;H<A.length-1;H+=2)U+=String.fromCharCode(A[H]+A[H+1]*256);return U}o.prototype.slice=function(u,h){var A=this.length;u=~~u,h=h===void 0?A:~~h,u<0?(u+=A,u<0&&(u=0)):u>A&&(u=A),h<0?(h+=A,h<0&&(h=0)):h>A&&(h=A),h<u&&(h=u);var U=this.subarray(u,h);return Object.setPrototypeOf(U,o.prototype),U};function X(x,u,h){if(x%1!==0||x<0)throw new RangeError("offset is not uint");if(x+u>h)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(u,h,A){u=u>>>0,h=h>>>0,A||X(u,h,this.length);for(var U=this[u],H=1,J=0;++J<h&&(H*=256);)U+=this[u+J]*H;return U},o.prototype.readUintBE=o.prototype.readUIntBE=function(u,h,A){u=u>>>0,h=h>>>0,A||X(u,h,this.length);for(var U=this[u+--h],H=1;h>0&&(H*=256);)U+=this[u+--h]*H;return U},o.prototype.readUint8=o.prototype.readUInt8=function(u,h){return u=u>>>0,h||X(u,1,this.length),this[u]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(u,h){return u=u>>>0,h||X(u,2,this.length),this[u]|this[u+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(u,h){return u=u>>>0,h||X(u,2,this.length),this[u]<<8|this[u+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(u,h){return u=u>>>0,h||X(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(u,h){return u=u>>>0,h||X(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},o.prototype.readIntLE=function(u,h,A){u=u>>>0,h=h>>>0,A||X(u,h,this.length);for(var U=this[u],H=1,J=0;++J<h&&(H*=256);)U+=this[u+J]*H;return H*=128,U>=H&&(U-=Math.pow(2,8*h)),U},o.prototype.readIntBE=function(u,h,A){u=u>>>0,h=h>>>0,A||X(u,h,this.length);for(var U=h,H=1,J=this[u+--U];U>0&&(H*=256);)J+=this[u+--U]*H;return H*=128,J>=H&&(J-=Math.pow(2,8*h)),J},o.prototype.readInt8=function(u,h){return u=u>>>0,h||X(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},o.prototype.readInt16LE=function(u,h){u=u>>>0,h||X(u,2,this.length);var A=this[u]|this[u+1]<<8;return A&32768?A|4294901760:A},o.prototype.readInt16BE=function(u,h){u=u>>>0,h||X(u,2,this.length);var A=this[u+1]|this[u]<<8;return A&32768?A|4294901760:A},o.prototype.readInt32LE=function(u,h){return u=u>>>0,h||X(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},o.prototype.readInt32BE=function(u,h){return u=u>>>0,h||X(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},o.prototype.readFloatLE=function(u,h){return u=u>>>0,h||X(u,4,this.length),r.read(this,u,!0,23,4)},o.prototype.readFloatBE=function(u,h){return u=u>>>0,h||X(u,4,this.length),r.read(this,u,!1,23,4)},o.prototype.readDoubleLE=function(u,h){return u=u>>>0,h||X(u,8,this.length),r.read(this,u,!0,52,8)},o.prototype.readDoubleBE=function(u,h){return u=u>>>0,h||X(u,8,this.length),r.read(this,u,!1,52,8)};function ee(x,u,h,A,U,H){if(!o.isBuffer(x))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>U||u<H)throw new RangeError('"value" argument is out of bounds');if(h+A>x.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(u,h,A,U){if(u=+u,h=h>>>0,A=A>>>0,!U){var H=Math.pow(2,8*A)-1;ee(this,u,h,A,H,0)}var J=1,pe=0;for(this[h]=u&255;++pe<A&&(J*=256);)this[h+pe]=u/J&255;return h+A},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(u,h,A,U){if(u=+u,h=h>>>0,A=A>>>0,!U){var H=Math.pow(2,8*A)-1;ee(this,u,h,A,H,0)}var J=A-1,pe=1;for(this[h+J]=u&255;--J>=0&&(pe*=256);)this[h+J]=u/pe&255;return h+A},o.prototype.writeUint8=o.prototype.writeUInt8=function(u,h,A){return u=+u,h=h>>>0,A||ee(this,u,h,1,255,0),this[h]=u&255,h+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(u,h,A){return u=+u,h=h>>>0,A||ee(this,u,h,2,65535,0),this[h]=u&255,this[h+1]=u>>>8,h+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(u,h,A){return u=+u,h=h>>>0,A||ee(this,u,h,2,65535,0),this[h]=u>>>8,this[h+1]=u&255,h+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(u,h,A){return u=+u,h=h>>>0,A||ee(this,u,h,4,4294967295,0),this[h+3]=u>>>24,this[h+2]=u>>>16,this[h+1]=u>>>8,this[h]=u&255,h+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(u,h,A){return u=+u,h=h>>>0,A||ee(this,u,h,4,4294967295,0),this[h]=u>>>24,this[h+1]=u>>>16,this[h+2]=u>>>8,this[h+3]=u&255,h+4},o.prototype.writeIntLE=function(u,h,A,U){if(u=+u,h=h>>>0,!U){var H=Math.pow(2,8*A-1);ee(this,u,h,A,H-1,-H)}var J=0,pe=1,we=0;for(this[h]=u&255;++J<A&&(pe*=256);)u<0&&we===0&&this[h+J-1]!==0&&(we=1),this[h+J]=(u/pe>>0)-we&255;return h+A},o.prototype.writeIntBE=function(u,h,A,U){if(u=+u,h=h>>>0,!U){var H=Math.pow(2,8*A-1);ee(this,u,h,A,H-1,-H)}var J=A-1,pe=1,we=0;for(this[h+J]=u&255;--J>=0&&(pe*=256);)u<0&&we===0&&this[h+J+1]!==0&&(we=1),this[h+J]=(u/pe>>0)-we&255;return h+A},o.prototype.writeInt8=function(u,h,A){return u=+u,h=h>>>0,A||ee(this,u,h,1,127,-128),u<0&&(u=255+u+1),this[h]=u&255,h+1},o.prototype.writeInt16LE=function(u,h,A){return u=+u,h=h>>>0,A||ee(this,u,h,2,32767,-32768),this[h]=u&255,this[h+1]=u>>>8,h+2},o.prototype.writeInt16BE=function(u,h,A){return u=+u,h=h>>>0,A||ee(this,u,h,2,32767,-32768),this[h]=u>>>8,this[h+1]=u&255,h+2},o.prototype.writeInt32LE=function(u,h,A){return u=+u,h=h>>>0,A||ee(this,u,h,4,2147483647,-2147483648),this[h]=u&255,this[h+1]=u>>>8,this[h+2]=u>>>16,this[h+3]=u>>>24,h+4},o.prototype.writeInt32BE=function(u,h,A){return u=+u,h=h>>>0,A||ee(this,u,h,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[h]=u>>>24,this[h+1]=u>>>16,this[h+2]=u>>>8,this[h+3]=u&255,h+4};function Z(x,u,h,A,U,H){if(h+A>x.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function fe(x,u,h,A,U){return u=+u,h=h>>>0,U||Z(x,u,h,4),r.write(x,u,h,A,23,4),h+4}o.prototype.writeFloatLE=function(u,h,A){return fe(this,u,h,!0,A)},o.prototype.writeFloatBE=function(u,h,A){return fe(this,u,h,!1,A)};function oe(x,u,h,A,U){return u=+u,h=h>>>0,U||Z(x,u,h,8),r.write(x,u,h,A,52,8),h+8}o.prototype.writeDoubleLE=function(u,h,A){return oe(this,u,h,!0,A)},o.prototype.writeDoubleBE=function(u,h,A){return oe(this,u,h,!1,A)},o.prototype.copy=function(u,h,A,U){if(!o.isBuffer(u))throw new TypeError("argument should be a Buffer");if(A||(A=0),!U&&U!==0&&(U=this.length),h>=u.length&&(h=u.length),h||(h=0),U>0&&U<A&&(U=A),U===A||u.length===0||this.length===0)return 0;if(h<0)throw new RangeError("targetStart out of bounds");if(A<0||A>=this.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("sourceEnd out of bounds");U>this.length&&(U=this.length),u.length-h<U-A&&(U=u.length-h+A);var H=U-A;return this===u&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(h,A,U):Uint8Array.prototype.set.call(u,this.subarray(A,U),h),H},o.prototype.fill=function(u,h,A,U){if(typeof u=="string"){if(typeof h=="string"?(U=h,h=0,A=this.length):typeof A=="string"&&(U=A,A=this.length),U!==void 0&&typeof U!="string")throw new TypeError("encoding must be a string");if(typeof U=="string"&&!o.isEncoding(U))throw new TypeError("Unknown encoding: "+U);if(u.length===1){var H=u.charCodeAt(0);(U==="utf8"&&H<128||U==="latin1")&&(u=H)}}else typeof u=="number"?u=u&255:typeof u=="boolean"&&(u=Number(u));if(h<0||this.length<h||this.length<A)throw new RangeError("Out of range index");if(A<=h)return this;h=h>>>0,A=A===void 0?this.length:A>>>0,u||(u=0);var J;if(typeof u=="number")for(J=h;J<A;++J)this[J]=u;else{var pe=o.isBuffer(u)?u:o.from(u,U),we=pe.length;if(we===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(J=0;J<A-h;++J)this[J+h]=pe[J%we]}return this};var ie=/[^+/0-9A-Za-z-_]/g;function Ae(x){if(x=x.split("=")[0],x=x.trim().replace(ie,""),x.length<2)return"";for(;x.length%4!==0;)x=x+"=";return x}function Oe(x,u){u=u||1/0;for(var h,A=x.length,U=null,H=[],J=0;J<A;++J){if(h=x.charCodeAt(J),h>55295&&h<57344){if(!U){if(h>56319){(u-=3)>-1&&H.push(239,191,189);continue}else if(J+1===A){(u-=3)>-1&&H.push(239,191,189);continue}U=h;continue}if(h<56320){(u-=3)>-1&&H.push(239,191,189),U=h;continue}h=(U-55296<<10|h-56320)+65536}else U&&(u-=3)>-1&&H.push(239,191,189);if(U=null,h<128){if((u-=1)<0)break;H.push(h)}else if(h<2048){if((u-=2)<0)break;H.push(h>>6|192,h&63|128)}else if(h<65536){if((u-=3)<0)break;H.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((u-=4)<0)break;H.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return H}function Xe(x){for(var u=[],h=0;h<x.length;++h)u.push(x.charCodeAt(h)&255);return u}function tt(x,u){for(var h,A,U,H=[],J=0;J<x.length&&!((u-=2)<0);++J)h=x.charCodeAt(J),A=h>>8,U=h%256,H.push(U),H.push(A);return H}function Et(x){return t.toByteArray(Ae(x))}function Ie(x,u,h,A){for(var U=0;U<A&&!(U+h>=u.length||U>=x.length);++U)u[U+h]=x[U];return U}function Ce(x,u){return x instanceof u||x!=null&&x.constructor!=null&&x.constructor.name!=null&&x.constructor.name===u.name}function pt(x){return x!==x}var Re=function(){for(var x="0123456789abcdef",u=new Array(256),h=0;h<16;++h)for(var A=h*16,U=0;U<16;++U)u[A+U]=x[h]+x[U];return u}()})(Co);/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(e,t){var r=Co,i=r.Buffer;function a(n,o){for(var l in n)o[l]=n[l]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=s);function s(n,o,l){return i(n,o,l)}s.prototype=Object.create(i.prototype),a(i,s),s.from=function(n,o,l){if(typeof n=="number")throw new TypeError("Argument must not be a number");return i(n,o,l)},s.alloc=function(n,o,l){if(typeof n!="number")throw new TypeError("Argument must be a number");var p=i(n);return o!==void 0?typeof l=="string"?p.fill(o,l):p.fill(o):p.fill(0),p},s.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return i(n)},s.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(n)}})(fo,fo.exports);var No=fo.exports,L0={}.toString,I0=Array.isArray||function(e){return L0.call(e)=="[object Array]"},fs=TypeError,su=Object,C0=Error,j0=EvalError,N0=RangeError,D0=ReferenceError,iu=SyntaxError,U0=URIError,B0=Math.abs,q0=Math.floor,M0=Math.max,W0=Math.min,H0=Math.pow,z0=Math.round,V0=Number.isNaN||function(t){return t!==t},Z0=V0,G0=function(t){return Z0(t)||t===0?t:t<0?-1:1},Y0=Object.getOwnPropertyDescriptor,Ms=Y0;if(Ms)try{Ms([],"length")}catch{Ms=null}var ps=Ms,Ws=Object.defineProperty||!1;if(Ws)try{Ws({},"a",{value:1})}catch{Ws=!1}var ki=Ws,la,ff;function au(){return ff||(ff=1,la=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var a=42;t[r]=a;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var n=Object.getOwnPropertySymbols(t);if(n.length!==1||n[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==a||o.enumerable!==!0)return!1}return!0}),la}var fa,pf;function K0(){if(pf)return fa;pf=1;var e=typeof Symbol<"u"&&Symbol,t=au();return fa=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},fa}var pa,cf;function ou(){return cf||(cf=1,pa=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),pa}var ca,uf;function lu(){if(uf)return ca;uf=1;var e=su;return ca=e.getPrototypeOf||null,ca}var X0="Function.prototype.bind called on incompatible ",J0=Object.prototype.toString,Q0=Math.max,eg="[object Function]",df=function(t,r){for(var i=[],a=0;a<t.length;a+=1)i[a]=t[a];for(var s=0;s<r.length;s+=1)i[s+t.length]=r[s];return i},tg=function(t,r){for(var i=[],a=r,s=0;a<t.length;a+=1,s+=1)i[s]=t[a];return i},rg=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r},ng=function(t){var r=this;if(typeof r!="function"||J0.apply(r)!==eg)throw new TypeError(X0+r);for(var i=tg(arguments,1),a,s=function(){if(this instanceof a){var c=r.apply(this,df(i,arguments));return Object(c)===c?c:this}return r.apply(t,df(i,arguments))},n=Q0(0,r.length-i.length),o=[],l=0;l<n;l++)o[l]="$"+l;if(a=Function("binder","return function ("+rg(o,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var p=function(){};p.prototype=r.prototype,a.prototype=new p,p.prototype=null}return a},sg=ng,cs=Function.prototype.bind||sg,Do=Function.prototype.call,ua,hf;function Uo(){return hf||(hf=1,ua=Function.prototype.apply),ua}var ig=typeof Reflect<"u"&&Reflect&&Reflect.apply,ag=cs,og=Uo(),lg=Do,fg=ig,fu=fg||ag.call(lg,og),pg=cs,cg=fs,ug=Do,dg=fu,Bo=function(t){if(t.length<1||typeof t[0]!="function")throw new cg("a function is required");return dg(pg,ug,t)},da,mf;function hg(){if(mf)return da;mf=1;var e=Bo,t=ps,r;try{r=[].__proto__===Array.prototype}catch(n){if(!n||typeof n!="object"||!("code"in n)||n.code!=="ERR_PROTO_ACCESS")throw n}var i=!!r&&t&&t(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;return da=i&&typeof i.get=="function"?e([i.get]):typeof s=="function"?function(o){return s(o==null?o:a(o))}:!1,da}var ha,yf;function pu(){if(yf)return ha;yf=1;var e=ou(),t=lu(),r=hg();return ha=e?function(a){return e(a)}:t?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return t(a)}:r?function(a){return r(a)}:null,ha}var ma,gf;function mg(){if(gf)return ma;gf=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=cs;return ma=r.call(e,t),ma}var ye,yg=su,gg=C0,wg=j0,bg=N0,_g=D0,hn=iu,pn=fs,vg=U0,xg=B0,kg=q0,Pg=M0,Eg=W0,Sg=H0,Tg=z0,Og=G0,cu=Function,ya=function(e){try{return cu('"use strict"; return ('+e+").constructor;")()}catch{}},Vn=ps,Ag=ki,ga=function(){throw new pn},$g=Vn?function(){try{return arguments.callee,ga}catch{try{return Vn(arguments,"callee").get}catch{return ga}}}():ga,Kr=K0()(),Ze=pu(),Rg=lu(),Fg=ou(),uu=Uo(),us=Do,tn={},Lg=typeof Uint8Array>"u"||!Ze?ye:Ze(Uint8Array),Rr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ye:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ye:ArrayBuffer,"%ArrayIteratorPrototype%":Kr&&Ze?Ze([][Symbol.iterator]()):ye,"%AsyncFromSyncIteratorPrototype%":ye,"%AsyncFunction%":tn,"%AsyncGenerator%":tn,"%AsyncGeneratorFunction%":tn,"%AsyncIteratorPrototype%":tn,"%Atomics%":typeof Atomics>"u"?ye:Atomics,"%BigInt%":typeof BigInt>"u"?ye:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ye:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ye:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ye:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":gg,"%eval%":eval,"%EvalError%":wg,"%Float16Array%":typeof Float16Array>"u"?ye:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ye:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ye:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ye:FinalizationRegistry,"%Function%":cu,"%GeneratorFunction%":tn,"%Int8Array%":typeof Int8Array>"u"?ye:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ye:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ye:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Kr&&Ze?Ze(Ze([][Symbol.iterator]())):ye,"%JSON%":typeof JSON=="object"?JSON:ye,"%Map%":typeof Map>"u"?ye:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Kr||!Ze?ye:Ze(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":yg,"%Object.getOwnPropertyDescriptor%":Vn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ye:Promise,"%Proxy%":typeof Proxy>"u"?ye:Proxy,"%RangeError%":bg,"%ReferenceError%":_g,"%Reflect%":typeof Reflect>"u"?ye:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ye:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Kr||!Ze?ye:Ze(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ye:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Kr&&Ze?Ze(""[Symbol.iterator]()):ye,"%Symbol%":Kr?Symbol:ye,"%SyntaxError%":hn,"%ThrowTypeError%":$g,"%TypedArray%":Lg,"%TypeError%":pn,"%Uint8Array%":typeof Uint8Array>"u"?ye:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ye:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ye:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ye:Uint32Array,"%URIError%":vg,"%WeakMap%":typeof WeakMap>"u"?ye:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ye:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ye:WeakSet,"%Function.prototype.call%":us,"%Function.prototype.apply%":uu,"%Object.defineProperty%":Ag,"%Object.getPrototypeOf%":Rg,"%Math.abs%":xg,"%Math.floor%":kg,"%Math.max%":Pg,"%Math.min%":Eg,"%Math.pow%":Sg,"%Math.round%":Tg,"%Math.sign%":Og,"%Reflect.getPrototypeOf%":Fg};if(Ze)try{null.error}catch(e){var Ig=Ze(Ze(e));Rr["%Error.prototype%"]=Ig}var Cg=function e(t){var r;if(t==="%AsyncFunction%")r=ya("async function () {}");else if(t==="%GeneratorFunction%")r=ya("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=ya("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Ze&&(r=Ze(a.prototype))}return Rr[t]=r,r},wf={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ds=cs,ii=mg(),jg=ds.call(us,Array.prototype.concat),Ng=ds.call(uu,Array.prototype.splice),bf=ds.call(us,String.prototype.replace),ai=ds.call(us,String.prototype.slice),Dg=ds.call(us,RegExp.prototype.exec),Ug=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Bg=/\\(\\)?/g,qg=function(t){var r=ai(t,0,1),i=ai(t,-1);if(r==="%"&&i!=="%")throw new hn("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new hn("invalid intrinsic syntax, expected opening `%`");var a=[];return bf(t,Ug,function(s,n,o,l){a[a.length]=o?bf(l,Bg,"$1"):n||s}),a},Mg=function(t,r){var i=t,a;if(ii(wf,i)&&(a=wf[i],i="%"+a[0]+"%"),ii(Rr,i)){var s=Rr[i];if(s===tn&&(s=Cg(i)),typeof s>"u"&&!r)throw new pn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:i,value:s}}throw new hn("intrinsic "+t+" does not exist!")},du=function(t,r){if(typeof t!="string"||t.length===0)throw new pn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new pn('"allowMissing" argument must be a boolean');if(Dg(/^%?[^%]*%?$/,t)===null)throw new hn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=qg(t),a=i.length>0?i[0]:"",s=Mg("%"+a+"%",r),n=s.name,o=s.value,l=!1,p=s.alias;p&&(a=p[0],Ng(i,jg([0,1],p)));for(var c=1,d=!0;c<i.length;c+=1){var m=i[c],y=ai(m,0,1),T=ai(m,-1);if((y==='"'||y==="'"||y==="`"||T==='"'||T==="'"||T==="`")&&y!==T)throw new hn("property names with quotes must have matching quotes");if((m==="constructor"||!d)&&(l=!0),a+="."+m,n="%"+a+"%",ii(Rr,n))o=Rr[n];else if(o!=null){if(!(m in o)){if(!r)throw new pn("base intrinsic for "+t+" exists, but the property is not available.");return}if(Vn&&c+1>=i.length){var g=Vn(o,m);d=!!g,d&&"get"in g&&!("originalValue"in g.get)?o=g.get:o=o[m]}else d=ii(o,m),o=o[m];d&&!l&&(Rr[n]=o)}}return o},hu=du,mu=Bo,Wg=mu([hu("%String.prototype.indexOf%")]),yu=function(t,r){var i=hu(t,!!r);return typeof i=="function"&&Wg(t,".prototype.")>-1?mu([i]):i},wa,_f;function Hg(){if(_f)return wa;_f=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,i;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw i}}),i={},t(function(){throw 42},null,r)}catch(O){O!==i&&(t=null)}else t=null;var a=/^\s*class\b/,s=function(E){try{var I=e.call(E);return a.test(I)}catch{return!1}},n=function(E){try{return s(E)?!1:(e.call(E),!0)}catch{return!1}},o=Object.prototype.toString,l="[object Object]",p="[object Function]",c="[object GeneratorFunction]",d="[object HTMLAllCollection]",m="[object HTML document.all class]",y="[object HTMLCollection]",T=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),w=function(){return!1};if(typeof document=="object"){var b=document.all;o.call(b)===o.call(document.all)&&(w=function(E){if((g||!E)&&(typeof E>"u"||typeof E=="object"))try{var I=o.call(E);return(I===d||I===m||I===y||I===l)&&E("")==null}catch{}return!1})}return wa=t?function(E){if(w(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;try{t(E,null,r)}catch(I){if(I!==i)return!1}return!s(E)&&n(E)}:function(E){if(w(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;if(T)return n(E);if(s(E))return!1;var I=o.call(E);return I!==p&&I!==c&&!/^\[object HTML/.test(I)?!1:n(E)},wa}var ba,vf;function zg(){if(vf)return ba;vf=1;var e=Hg(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,i=function(l,p,c){for(var d=0,m=l.length;d<m;d++)r.call(l,d)&&(c==null?p(l[d],d,l):p.call(c,l[d],d,l))},a=function(l,p,c){for(var d=0,m=l.length;d<m;d++)c==null?p(l.charAt(d),d,l):p.call(c,l.charAt(d),d,l)},s=function(l,p,c){for(var d in l)r.call(l,d)&&(c==null?p(l[d],d,l):p.call(c,l[d],d,l))};function n(o){return t.call(o)==="[object Array]"}return ba=function(l,p,c){if(!e(p))throw new TypeError("iterator must be a function");var d;arguments.length>=3&&(d=c),n(l)?i(l,p,d):typeof l=="string"?a(l,p,d):s(l,p,d)},ba}var _a,xf;function Vg(){return xf||(xf=1,_a=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),_a}var va,kf;function Zg(){if(kf)return va;kf=1;var e=Vg(),t=typeof globalThis>"u"?Kp:globalThis;return va=function(){for(var i=[],a=0;a<e.length;a++)typeof t[e[a]]=="function"&&(i[i.length]=e[a]);return i},va}var xa={exports:{}},ka,Pf;function Gg(){if(Pf)return ka;Pf=1;var e=ki,t=iu,r=fs,i=ps;return ka=function(s,n,o){if(!s||typeof s!="object"&&typeof s!="function")throw new r("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,p=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,d=arguments.length>6?arguments[6]:!1,m=!!i&&i(s,n);if(e)e(s,n,{configurable:c===null&&m?m.configurable:!c,enumerable:l===null&&m?m.enumerable:!l,value:o,writable:p===null&&m?m.writable:!p});else if(d||!l&&!p&&!c)s[n]=o;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},ka}var Pa,Ef;function Yg(){if(Ef)return Pa;Ef=1;var e=ki,t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Pa=t,Pa}var Ea,Sf;function Kg(){if(Sf)return Ea;Sf=1;var e=du,t=Gg(),r=Yg()(),i=ps,a=fs,s=e("%Math.floor%");return Ea=function(o,l){if(typeof o!="function")throw new a("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||s(l)!==l)throw new a("`length` must be a positive 32-bit integer");var p=arguments.length>2&&!!arguments[2],c=!0,d=!0;if("length"in o&&i){var m=i(o,"length");m&&!m.configurable&&(c=!1),m&&!m.writable&&(d=!1)}return(c||d||!p)&&(r?t(o,"length",l,!0,!0):t(o,"length",l)),o},Ea}var Sa,Tf;function Xg(){if(Tf)return Sa;Tf=1;var e=cs,t=Uo(),r=fu;return Sa=function(){return r(e,t,arguments)},Sa}var Of;function Jg(){return Of||(Of=1,function(e){var t=Kg(),r=ki,i=Bo,a=Xg();e.exports=function(n){var o=i(arguments),l=1+n.length-(arguments.length-1);return t(o,l>0?l:0,!0)},r?r(e.exports,"apply",{value:a}):e.exports.apply=a}(xa)),xa.exports}var Ta,Af;function Qg(){if(Af)return Ta;Af=1;var e=au();return Ta=function(){return e()&&!!Symbol.toStringTag},Ta}var Oa,$f;function ew(){if($f)return Oa;$f=1;var e=zg(),t=Zg(),r=Jg(),i=yu,a=ps,s=pu(),n=i("Object.prototype.toString"),o=Qg()(),l=typeof globalThis>"u"?Kp:globalThis,p=t(),c=i("String.prototype.slice"),d=i("Array.prototype.indexOf",!0)||function(w,b){for(var O=0;O<w.length;O+=1)if(w[O]===b)return O;return-1},m={__proto__:null};o&&a&&s?e(p,function(g){var w=new l[g];if(Symbol.toStringTag in w&&s){var b=s(w),O=a(b,Symbol.toStringTag);if(!O&&b){var E=s(b);O=a(E,Symbol.toStringTag)}if(O&&O.get){var I=r(O.get);m["$"+g]=I}}}):e(p,function(g){var w=new l[g],b=w.slice||w.set;if(b){var O=r(b);m["$"+g]=O}});var y=function(w){var b=!1;return e(m,function(O,E){if(!b)try{"$"+O(w)===E&&(b=c(E,1))}catch{}}),b},T=function(w){var b=!1;return e(m,function(O,E){if(!b)try{O(w),b=c(E,1)}catch{}}),b};return Oa=function(w){if(!w||typeof w!="object")return!1;if(!o){var b=c(n(w),8,-1);return d(p,b)>-1?b:b!=="Object"?!1:T(w)}return a?y(w):null},Oa}var Aa,Rf;function tw(){if(Rf)return Aa;Rf=1;var e=ew();return Aa=function(r){return!!e(r)},Aa}var rw=fs,nw=yu,sw=nw("TypedArray.prototype.buffer",!0),iw=tw(),aw=sw||function(t){if(!iw(t))throw new rw("Not a Typed Array");return t.buffer},It=No.Buffer,ow=I0,lw=aw,fw=ArrayBuffer.isView||function(t){try{return lw(t),!0}catch{return!1}},pw=typeof Uint8Array<"u",gu=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",cw=gu&&(It.prototype instanceof Uint8Array||It.TYPED_ARRAY_SUPPORT),uw=function(t,r){if(It.isBuffer(t))return t.constructor&&!("isBuffer"in t)?It.from(t):t;if(typeof t=="string")return It.from(t,r);if(gu&&fw(t)){if(t.byteLength===0)return It.alloc(0);if(cw){var i=It.from(t.buffer,t.byteOffset,t.byteLength);if(i.byteLength===t.byteLength)return i}var a=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),s=It.from(a);if(s.length===t.byteLength)return s}if(pw&&t instanceof Uint8Array)return It.from(t);var n=ow(t);if(n)for(var o=0;o<t.length;o+=1){var l=t[o];if(typeof l!="number"||l<0||l>255||~~l!==l)throw new RangeError("Array items must be numbers in the range 0-255.")}if(n||It.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return It.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},dw=No.Buffer,hw=uw;function Pi(e,t){this._block=dw.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Pi.prototype.update=function(e,t){e=hw(e,t||"utf8");for(var r=this._block,i=this._blockSize,a=e.length,s=this._len,n=0;n<a;){for(var o=s%i,l=Math.min(a-n,i-o),p=0;p<l;p++)r[o+p]=e[n+p];s+=l,n+=l,s%i===0&&this._update(r)}return this._len+=a,this};Pi.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(r&4294967295)>>>0,a=(r-i)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var s=this._hash();return e?s.toString(e):s};Pi.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var mw=Pi,yw=P0,wu=mw,gw=No.Buffer,ww=[1518500249,1859775393,-1894007588,-899497514],bw=new Array(80);function hs(){this.init(),this._w=bw,wu.call(this,64,56)}yw(hs,wu);hs.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function _w(e){return e<<1|e>>>31}function vw(e){return e<<5|e>>>27}function xw(e){return e<<30|e>>>2}function kw(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}hs.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,a=this._c|0,s=this._d|0,n=this._e|0,o=0;o<16;++o)t[o]=e.readInt32BE(o*4);for(;o<80;++o)t[o]=_w(t[o-3]^t[o-8]^t[o-14]^t[o-16]);for(var l=0;l<80;++l){var p=~~(l/20),c=vw(r)+kw(p,i,a,s)+n+t[l]+ww[p]|0;n=s,s=a,a=xw(i),i=r,r=c}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=n+this._e|0};hs.prototype._hash=function(){var e=gw.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var Pw=hs;const Ew=_o(Pw);function Sw(e){let t="";for(const r of new Uint8Array(e))r<16&&(t+="0"),t+=r.toString(16);return t}let $a=null;async function oi(e){return $a===null&&($a=await Ow()),$a?bu(e):Tw(e)}function Tw(e){return new Ew().update(e).digest("hex")}async function bu(e){const t=await crypto.subtle.digest("SHA-1",e);return Sw(t)}async function Ow(){try{if(await bu(new Uint8Array([]))==="da39a3ee5e6b4b0d3255bfef95601890afd80709")return!0}catch{}return!1}function Aw(e){const t=[];let r=0,i=0;do{r=e.readUInt8();const a=r&127;t.push(a),i=r&128}while(i);return t.reduce((a,s)=>a+1<<7|s,-1)}function $w(e,t){let r=t,i=4,a=null;do a=e.readUInt8(),r|=(a&127)<<i,i+=7;while(a&128);return r}class mn{constructor(t){Object.assign(this,t),this.offsetCache={}}static async fromIdx({idx:t,getExternalRefDelta:r}){const i=new Zt(t);if(i.slice(4).toString("hex")!=="ff744f63")return;const s=i.readUInt32BE();if(s!==2)throw new Ee(`Unable to read version ${s} packfile IDX. (Only version 2 supported)`);if(t.byteLength>2048*1024*1024)throw new Ee("To keep implementation simple, I haven't implemented the layer 5 feature needed to support packfiles > 2GB in size.");i.seek(i.tell()+4*255);const n=i.readUInt32BE(),o=[];for(let c=0;c<n;c++){const d=i.slice(20).toString("hex");o[c]=d}i.seek(i.tell()+4*n);const l=new Map;for(let c=0;c<n;c++)l.set(o[c],i.readUInt32BE());const p=i.slice(20).toString("hex");return new mn({hashes:o,crcs:{},offsets:l,packfileSha:p,getExternalRefDelta:r})}static async fromPack({pack:t,getExternalRefDelta:r,onProgress:i}){const a={1:"commit",2:"tree",3:"blob",4:"tag",6:"ofs-delta",7:"ref-delta"},s={},n=t.slice(-20).toString("hex"),o=[],l={},p=new Map;let c=null,d=null;await v0([t],async({data:w,type:b,reference:O,offset:E,num:I})=>{c===null&&(c=I);const $=Math.floor((c-I)*100/c);$!==d&&i&&await i({phase:"Receiving objects",loaded:c-I,total:c}),d=$,b=a[b],["commit","tree","blob","tag"].includes(b)?s[E]={type:b,offset:E}:b==="ofs-delta"?s[E]={type:b,offset:E}:b==="ref-delta"&&(s[E]={type:b,offset:E})});const m=Object.keys(s).map(Number);for(const[w,b]of m.entries()){const O=w+1===m.length?t.byteLength-20:m[w+1],E=s[b],I=Sm.buf(t.slice(b,O))>>>0;E.end=O,E.crc=I}const y=new mn({pack:Promise.resolve(t),packfileSha:n,crcs:l,hashes:o,offsets:p,getExternalRefDelta:r});d=null;let T=0;const g=[0,0,0,0,0,0,0,0,0,0,0,0];for(let w in s){w=Number(w);const b=Math.floor(T*100/c);b!==d&&i&&await i({phase:"Resolving deltas",loaded:T,total:c}),T++,d=b;const O=s[w];if(!O.oid)try{y.readDepth=0,y.externalReadDepth=0;const{type:E,object:I}=await y.readSlice({start:w});g[y.readDepth]+=1;const $=await oi(Tm.wrap({type:E,object:I}));O.oid=$,o.push($),p.set($,w),l[$]=O.crc}catch{continue}}return o.sort(),y}async toBuffer(){const t=[],r=(p,c)=>{t.push(Buffer.from(p,c))};r("ff744f63","hex"),r("00000002","hex");const i=new Zt(Buffer.alloc(256*4));for(let p=0;p<256;p++){let c=0;for(const d of this.hashes)parseInt(d.slice(0,2),16)<=p&&c++;i.writeUInt32BE(c)}t.push(i.buffer);for(const p of this.hashes)r(p,"hex");const a=new Zt(Buffer.alloc(this.hashes.length*4));for(const p of this.hashes)a.writeUInt32BE(this.crcs[p]);t.push(a.buffer);const s=new Zt(Buffer.alloc(this.hashes.length*4));for(const p of this.hashes)s.writeUInt32BE(this.offsets.get(p));t.push(s.buffer),r(this.packfileSha,"hex");const n=Buffer.concat(t),o=await oi(n),l=Buffer.alloc(20);return l.write(o,"hex"),Buffer.concat([n,l])}async load({pack:t}){this.pack=t}async unload(){this.pack=null}async read({oid:t}){if(!this.offsets.get(t)){if(this.getExternalRefDelta)return this.externalReadDepth++,this.getExternalRefDelta(t);throw new Ee(`Could not read object ${t} from packfile`)}const r=this.offsets.get(t);return this.readSlice({start:r})}async readSlice({start:t}){if(this.offsetCache[t])return Object.assign({},this.offsetCache[t]);this.readDepth++;const r={16:"commit",32:"tree",48:"blob",64:"tag",96:"ofs_delta",112:"ref_delta"};if(!this.pack)throw new Ee("Tried to read from a GitPackIndex with no packfile loaded into memory");const i=(await this.pack).slice(t),a=new Zt(i),s=a.readUInt8(),n=s&112;let o=r[n];if(o===void 0)throw new Ee("Unrecognized type: 0b"+n.toString(2));const l=s&15;let p=l;s&128&&(p=$w(a,l));let d=null,m=null;if(o==="ofs_delta"){const T=Aw(a),g=t-T;({object:d,type:o}=await this.readSlice({start:g}))}if(o==="ref_delta"){const T=a.slice(20).toString("hex");({object:d,type:o}=await this.read({oid:T}))}const y=i.slice(a.tell());if(m=Buffer.from(await k0(y)),m.byteLength!==p)throw new Ee(`Packfile told us object would have length ${p} but it had length ${m.byteLength}`);return d&&(m=Buffer.from(Om(m,d))),this.readDepth>3&&(this.offsetCache[t]={type:o,object:m}),{type:o,format:"content",object:m}}}class Zn extends yn{constructor(t){super(`Expected a 40-char hex object id but saw "${t}".`),this.code=this.name=Zn.code,this.data={value:t}}}Zn.code="InvalidOidError";class Ei extends yn{constructor(t,r,i,a){super(`Object ${t} ${a?`at ${a}`:""}was anticipated to be a ${i} but it is a ${r}.`),this.code=this.name=Ei.code,this.data={oid:t,actual:r,expected:i,filepath:a}}}Ei.code="ObjectTypeError";function Rw(e){let t=e>0?e>>12:0;t!==4&&t!==8&&t!==10&&t!==14&&(t=8);let r=e&511;return r&73?r=493:r=420,t!==8&&(r=0),(t<<12)+r}const Wt=2**32;function Ff(e,t,r,i){if(e!==void 0&&t!==void 0)return[e,t];r===void 0&&(r=i.valueOf());const a=Math.floor(r/1e3),s=(r-a*1e3)*1e6;return[a,s]}function Lf(e){const[t,r]=Ff(e.ctimeSeconds,e.ctimeNanoseconds,e.ctimeMs,e.ctime),[i,a]=Ff(e.mtimeSeconds,e.mtimeNanoseconds,e.mtimeMs,e.mtime);return{ctimeSeconds:t%Wt,ctimeNanoseconds:r%Wt,mtimeSeconds:i%Wt,mtimeNanoseconds:a%Wt,dev:e.dev%Wt,ino:e.ino%Wt,mode:Rw(e.mode%Wt),uid:e.uid%Wt,gid:e.gid%Wt,size:e.size>-1?e.size%Wt:0}}function Fw(e){return{assumeValid:!!(e&32768),extended:!!(e&16384),stage:(e&12288)>>12,nameLength:e&4095}}function Lw(e){const t=e.flags;return t.extended=!1,t.nameLength=Math.min(Buffer.from(e.path).length,4095),(t.assumeValid?32768:0)+(t.extended?16384:0)+((t.stage&3)<<12)+(t.nameLength&4095)}class Tr{constructor(t,r){this._dirty=!1,this._unmergedPaths=r||new Set,this._entries=t||new Map}_addEntry(t){if(t.flags.stage===0)t.stages=[t],this._entries.set(t.path,t),this._unmergedPaths.delete(t.path);else{let r=this._entries.get(t.path);r||(this._entries.set(t.path,t),r=t),r.stages[t.flags.stage]=t,this._unmergedPaths.add(t.path)}}static async from(t){if(Buffer.isBuffer(t))return Tr.fromBuffer(t);if(t===null)return new Tr(null);throw new Ee("invalid type passed to GitIndex.from")}static async fromBuffer(t){if(t.length===0)throw new Ee("Index file is empty (.git/index)");const r=new Tr,i=new Zt(t),a=i.toString("utf8",4);if(a!=="DIRC")throw new Ee(`Invalid dircache magic file number: ${a}`);const s=await oi(t.slice(0,-20)),n=t.slice(-20).toString("hex");if(n!==s)throw new Ee(`Invalid checksum in GitIndex buffer: expected ${n} but saw ${s}`);const o=i.readUInt32BE();if(o!==2)throw new Ee(`Unsupported dircache version: ${o}`);const l=i.readUInt32BE();let p=0;for(;!i.eof()&&p<l;){const c={};c.ctimeSeconds=i.readUInt32BE(),c.ctimeNanoseconds=i.readUInt32BE(),c.mtimeSeconds=i.readUInt32BE(),c.mtimeNanoseconds=i.readUInt32BE(),c.dev=i.readUInt32BE(),c.ino=i.readUInt32BE(),c.mode=i.readUInt32BE(),c.uid=i.readUInt32BE(),c.gid=i.readUInt32BE(),c.size=i.readUInt32BE(),c.oid=i.slice(20).toString("hex");const d=i.readUInt16BE();c.flags=Fw(d);const m=t.indexOf(0,i.tell()+1)-i.tell();if(m<1)throw new Ee(`Got a path length of: ${m}`);if(c.path=i.toString("utf8",m),c.path.includes("..\\")||c.path.includes("../"))throw new ss(c.path);let y=8-(i.tell()-12)%8;for(y===0&&(y=8);y--;){const T=i.readUInt8();if(T!==0)throw new Ee(`Expected 1-8 null characters but got '${T}' after ${c.path}`);if(i.eof())throw new Ee("Unexpected end of file")}c.stages=[],r._addEntry(c),p++}return r}get unmergedPaths(){return[...this._unmergedPaths]}get entries(){return[...this._entries.values()].sort(dc)}get entriesMap(){return this._entries}get entriesFlat(){return[...this.entries].flatMap(t=>t.stages.length>1?t.stages.filter(r=>r):t)}*[Symbol.iterator](){for(const t of this.entries)yield t}insert({filepath:t,stats:r,oid:i,stage:a=0}){r||(r={ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:0,uid:0,gid:0,size:0}),r=Lf(r);const s=Buffer.from(t),n={ctimeSeconds:r.ctimeSeconds,ctimeNanoseconds:r.ctimeNanoseconds,mtimeSeconds:r.mtimeSeconds,mtimeNanoseconds:r.mtimeNanoseconds,dev:r.dev,ino:r.ino,mode:r.mode||33188,uid:r.uid,gid:r.gid,size:r.size,path:t,oid:i,flags:{assumeValid:!1,extended:!1,stage:a,nameLength:s.length<4095?s.length:4095},stages:[]};this._addEntry(n),this._dirty=!0}delete({filepath:t}){if(this._entries.has(t))this._entries.delete(t);else for(const r of this._entries.keys())r.startsWith(t+"/")&&this._entries.delete(r);this._unmergedPaths.has(t)&&this._unmergedPaths.delete(t),this._dirty=!0}clear(){this._entries.clear(),this._dirty=!0}has({filepath:t}){return this._entries.has(t)}render(){return this.entries.map(t=>`${t.mode.toString(8)} ${t.oid} ${t.path}`).join(`
64
+ */(function(e){var t=xi,r=jo,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=O,e.INSPECT_MAX_BYTES=50;var a=2147483647;e.kMaxLength=a,o.TYPED_ARRAY_SUPPORT=s(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{var x=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(x,u),x.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function n(x){if(x>a)throw new RangeError('The value "'+x+'" is invalid for option "size"');var u=new Uint8Array(x);return Object.setPrototypeOf(u,o.prototype),u}function o(x,u,h){if(typeof x=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(x)}return l(x,u,h)}o.poolSize=8192;function l(x,u,h){if(typeof x=="string")return m(x,u);if(ArrayBuffer.isView(x))return T(x);if(x==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x);if(Ce(x,ArrayBuffer)||x&&Ce(x.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ce(x,SharedArrayBuffer)||x&&Ce(x.buffer,SharedArrayBuffer)))return g(x,u,h);if(typeof x=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var A=x.valueOf&&x.valueOf();if(A!=null&&A!==x)return o.from(A,u,h);var U=w(x);if(U)return U;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof x[Symbol.toPrimitive]=="function")return o.from(x[Symbol.toPrimitive]("string"),u,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x)}o.from=function(x,u,h){return l(x,u,h)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function p(x){if(typeof x!="number")throw new TypeError('"size" argument must be of type number');if(x<0)throw new RangeError('The value "'+x+'" is invalid for option "size"')}function c(x,u,h){return p(x),x<=0?n(x):u!==void 0?typeof h=="string"?n(x).fill(u,h):n(x).fill(u):n(x)}o.alloc=function(x,u,h){return c(x,u,h)};function d(x){return p(x),n(x<0?0:_(x)|0)}o.allocUnsafe=function(x){return d(x)},o.allocUnsafeSlow=function(x){return d(x)};function m(x,u){if((typeof u!="string"||u==="")&&(u="utf8"),!o.isEncoding(u))throw new TypeError("Unknown encoding: "+u);var h=E(x,u)|0,A=n(h),U=A.write(x,u);return U!==h&&(A=A.slice(0,U)),A}function y(x){for(var u=x.length<0?0:_(x.length)|0,h=n(u),A=0;A<u;A+=1)h[A]=x[A]&255;return h}function T(x){if(Ce(x,Uint8Array)){var u=new Uint8Array(x);return g(u.buffer,u.byteOffset,u.byteLength)}return y(x)}function g(x,u,h){if(u<0||x.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(x.byteLength<u+(h||0))throw new RangeError('"length" is outside of buffer bounds');var A;return u===void 0&&h===void 0?A=new Uint8Array(x):h===void 0?A=new Uint8Array(x,u):A=new Uint8Array(x,u,h),Object.setPrototypeOf(A,o.prototype),A}function w(x){if(o.isBuffer(x)){var u=_(x.length)|0,h=n(u);return h.length===0||x.copy(h,0,0,u),h}if(x.length!==void 0)return typeof x.length!="number"||pt(x.length)?n(0):y(x);if(x.type==="Buffer"&&Array.isArray(x.data))return y(x.data)}function _(x){if(x>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return x|0}function O(x){return+x!=x&&(x=0),o.alloc(+x)}o.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==o.prototype},o.compare=function(u,h){if(Ce(u,Uint8Array)&&(u=o.from(u,u.offset,u.byteLength)),Ce(h,Uint8Array)&&(h=o.from(h,h.offset,h.byteLength)),!o.isBuffer(u)||!o.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===h)return 0;for(var A=u.length,U=h.length,H=0,J=Math.min(A,U);H<J;++H)if(u[H]!==h[H]){A=u[H],U=h[H];break}return A<U?-1:U<A?1:0},o.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(u,h){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return o.alloc(0);var A;if(h===void 0)for(h=0,A=0;A<u.length;++A)h+=u[A].length;var U=o.allocUnsafe(h),H=0;for(A=0;A<u.length;++A){var J=u[A];if(Ce(J,Uint8Array))H+J.length>U.length?o.from(J).copy(U,H):Uint8Array.prototype.set.call(U,J,H);else if(o.isBuffer(J))J.copy(U,H);else throw new TypeError('"list" argument must be an Array of Buffers');H+=J.length}return U};function E(x,u){if(o.isBuffer(x))return x.length;if(ArrayBuffer.isView(x)||Ce(x,ArrayBuffer))return x.byteLength;if(typeof x!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof x);var h=x.length,A=arguments.length>2&&arguments[2]===!0;if(!A&&h===0)return 0;for(var U=!1;;)switch(u){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return Oe(x).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return Et(x).length;default:if(U)return A?-1:Oe(x).length;u=(""+u).toLowerCase(),U=!0}}o.byteLength=E;function I(x,u,h){var A=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,u>>>=0,h<=u))return"";for(x||(x="utf8");;)switch(x){case"hex":return te(this,u,h);case"utf8":case"utf-8":return D(this,u,h);case"ascii":return Y(this,u,h);case"latin1":case"binary":return G(this,u,h);case"base64":return R(this,u,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,u,h);default:if(A)throw new TypeError("Unknown encoding: "+x);x=(x+"").toLowerCase(),A=!0}}o.prototype._isBuffer=!0;function $(x,u,h){var A=x[u];x[u]=x[h],x[h]=A}o.prototype.swap16=function(){var u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var h=0;h<u;h+=2)$(this,h,h+1);return this},o.prototype.swap32=function(){var u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var h=0;h<u;h+=4)$(this,h,h+3),$(this,h+1,h+2);return this},o.prototype.swap64=function(){var u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var h=0;h<u;h+=8)$(this,h,h+7),$(this,h+1,h+6),$(this,h+2,h+5),$(this,h+3,h+4);return this},o.prototype.toString=function(){var u=this.length;return u===0?"":arguments.length===0?D(this,0,u):I.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(u){if(!o.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:o.compare(this,u)===0},o.prototype.inspect=function(){var u="",h=e.INSPECT_MAX_BYTES;return u=this.toString("hex",0,h).replace(/(.{2})/g,"$1 ").trim(),this.length>h&&(u+=" ... "),"<Buffer "+u+">"},i&&(o.prototype[i]=o.prototype.inspect),o.prototype.compare=function(u,h,A,U,H){if(Ce(u,Uint8Array)&&(u=o.from(u,u.offset,u.byteLength)),!o.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(h===void 0&&(h=0),A===void 0&&(A=u?u.length:0),U===void 0&&(U=0),H===void 0&&(H=this.length),h<0||A>u.length||U<0||H>this.length)throw new RangeError("out of range index");if(U>=H&&h>=A)return 0;if(U>=H)return-1;if(h>=A)return 1;if(h>>>=0,A>>>=0,U>>>=0,H>>>=0,this===u)return 0;for(var J=H-U,pe=A-h,we=Math.min(J,pe),he=this.slice(U,H),De=u.slice(h,A),ue=0;ue<we;++ue)if(he[ue]!==De[ue]){J=he[ue],pe=De[ue];break}return J<pe?-1:pe<J?1:0};function L(x,u,h,A,U){if(x.length===0)return-1;if(typeof h=="string"?(A=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,pt(h)&&(h=U?0:x.length-1),h<0&&(h=x.length+h),h>=x.length){if(U)return-1;h=x.length-1}else if(h<0)if(U)h=0;else return-1;if(typeof u=="string"&&(u=o.from(u,A)),o.isBuffer(u))return u.length===0?-1:C(x,u,h,A,U);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?U?Uint8Array.prototype.indexOf.call(x,u,h):Uint8Array.prototype.lastIndexOf.call(x,u,h):C(x,[u],h,A,U);throw new TypeError("val must be string, number or Buffer")}function C(x,u,h,A,U){var H=1,J=x.length,pe=u.length;if(A!==void 0&&(A=String(A).toLowerCase(),A==="ucs2"||A==="ucs-2"||A==="utf16le"||A==="utf-16le")){if(x.length<2||u.length<2)return-1;H=2,J/=2,pe/=2,h/=2}function we(rt,Ft){return H===1?rt[Ft]:rt.readUInt16BE(Ft*H)}var he;if(U){var De=-1;for(he=h;he<J;he++)if(we(x,he)===we(u,De===-1?0:he-De)){if(De===-1&&(De=he),he-De+1===pe)return De*H}else De!==-1&&(he-=he-De),De=-1}else for(h+pe>J&&(h=J-pe),he=h;he>=0;he--){for(var ue=!0,yt=0;yt<pe;yt++)if(we(x,he+yt)!==we(u,yt)){ue=!1;break}if(ue)return he}return-1}o.prototype.includes=function(u,h,A){return this.indexOf(u,h,A)!==-1},o.prototype.indexOf=function(u,h,A){return L(this,u,h,A,!0)},o.prototype.lastIndexOf=function(u,h,A){return L(this,u,h,A,!1)};function b(x,u,h,A){h=Number(h)||0;var U=x.length-h;A?(A=Number(A),A>U&&(A=U)):A=U;var H=u.length;A>H/2&&(A=H/2);for(var J=0;J<A;++J){var pe=parseInt(u.substr(J*2,2),16);if(pt(pe))return J;x[h+J]=pe}return J}function F(x,u,h,A){return Ie(Oe(u,x.length-h),x,h,A)}function P(x,u,h,A){return Ie(Xe(u),x,h,A)}function S(x,u,h,A){return Ie(Et(u),x,h,A)}function j(x,u,h,A){return Ie(tt(u,x.length-h),x,h,A)}o.prototype.write=function(u,h,A,U){if(h===void 0)U="utf8",A=this.length,h=0;else if(A===void 0&&typeof h=="string")U=h,A=this.length,h=0;else if(isFinite(h))h=h>>>0,isFinite(A)?(A=A>>>0,U===void 0&&(U="utf8")):(U=A,A=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var H=this.length-h;if((A===void 0||A>H)&&(A=H),u.length>0&&(A<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");U||(U="utf8");for(var J=!1;;)switch(U){case"hex":return b(this,u,h,A);case"utf8":case"utf-8":return F(this,u,h,A);case"ascii":case"latin1":case"binary":return P(this,u,h,A);case"base64":return S(this,u,h,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,u,h,A);default:if(J)throw new TypeError("Unknown encoding: "+U);U=(""+U).toLowerCase(),J=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(x,u,h){return u===0&&h===x.length?t.fromByteArray(x):t.fromByteArray(x.slice(u,h))}function D(x,u,h){h=Math.min(x.length,h);for(var A=[],U=u;U<h;){var H=x[U],J=null,pe=H>239?4:H>223?3:H>191?2:1;if(U+pe<=h){var we,he,De,ue;switch(pe){case 1:H<128&&(J=H);break;case 2:we=x[U+1],(we&192)===128&&(ue=(H&31)<<6|we&63,ue>127&&(J=ue));break;case 3:we=x[U+1],he=x[U+2],(we&192)===128&&(he&192)===128&&(ue=(H&15)<<12|(we&63)<<6|he&63,ue>2047&&(ue<55296||ue>57343)&&(J=ue));break;case 4:we=x[U+1],he=x[U+2],De=x[U+3],(we&192)===128&&(he&192)===128&&(De&192)===128&&(ue=(H&15)<<18|(we&63)<<12|(he&63)<<6|De&63,ue>65535&&ue<1114112&&(J=ue))}}J===null?(J=65533,pe=1):J>65535&&(J-=65536,A.push(J>>>10&1023|55296),J=56320|J&1023),A.push(J),U+=pe}return B(A)}var V=4096;function B(x){var u=x.length;if(u<=V)return String.fromCharCode.apply(String,x);for(var h="",A=0;A<u;)h+=String.fromCharCode.apply(String,x.slice(A,A+=V));return h}function Y(x,u,h){var A="";h=Math.min(x.length,h);for(var U=u;U<h;++U)A+=String.fromCharCode(x[U]&127);return A}function G(x,u,h){var A="";h=Math.min(x.length,h);for(var U=u;U<h;++U)A+=String.fromCharCode(x[U]);return A}function te(x,u,h){var A=x.length;(!u||u<0)&&(u=0),(!h||h<0||h>A)&&(h=A);for(var U="",H=u;H<h;++H)U+=Re[x[H]];return U}function z(x,u,h){for(var A=x.slice(u,h),U="",H=0;H<A.length-1;H+=2)U+=String.fromCharCode(A[H]+A[H+1]*256);return U}o.prototype.slice=function(u,h){var A=this.length;u=~~u,h=h===void 0?A:~~h,u<0?(u+=A,u<0&&(u=0)):u>A&&(u=A),h<0?(h+=A,h<0&&(h=0)):h>A&&(h=A),h<u&&(h=u);var U=this.subarray(u,h);return Object.setPrototypeOf(U,o.prototype),U};function X(x,u,h){if(x%1!==0||x<0)throw new RangeError("offset is not uint");if(x+u>h)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(u,h,A){u=u>>>0,h=h>>>0,A||X(u,h,this.length);for(var U=this[u],H=1,J=0;++J<h&&(H*=256);)U+=this[u+J]*H;return U},o.prototype.readUintBE=o.prototype.readUIntBE=function(u,h,A){u=u>>>0,h=h>>>0,A||X(u,h,this.length);for(var U=this[u+--h],H=1;h>0&&(H*=256);)U+=this[u+--h]*H;return U},o.prototype.readUint8=o.prototype.readUInt8=function(u,h){return u=u>>>0,h||X(u,1,this.length),this[u]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(u,h){return u=u>>>0,h||X(u,2,this.length),this[u]|this[u+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(u,h){return u=u>>>0,h||X(u,2,this.length),this[u]<<8|this[u+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(u,h){return u=u>>>0,h||X(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(u,h){return u=u>>>0,h||X(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},o.prototype.readIntLE=function(u,h,A){u=u>>>0,h=h>>>0,A||X(u,h,this.length);for(var U=this[u],H=1,J=0;++J<h&&(H*=256);)U+=this[u+J]*H;return H*=128,U>=H&&(U-=Math.pow(2,8*h)),U},o.prototype.readIntBE=function(u,h,A){u=u>>>0,h=h>>>0,A||X(u,h,this.length);for(var U=h,H=1,J=this[u+--U];U>0&&(H*=256);)J+=this[u+--U]*H;return H*=128,J>=H&&(J-=Math.pow(2,8*h)),J},o.prototype.readInt8=function(u,h){return u=u>>>0,h||X(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},o.prototype.readInt16LE=function(u,h){u=u>>>0,h||X(u,2,this.length);var A=this[u]|this[u+1]<<8;return A&32768?A|4294901760:A},o.prototype.readInt16BE=function(u,h){u=u>>>0,h||X(u,2,this.length);var A=this[u+1]|this[u]<<8;return A&32768?A|4294901760:A},o.prototype.readInt32LE=function(u,h){return u=u>>>0,h||X(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},o.prototype.readInt32BE=function(u,h){return u=u>>>0,h||X(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},o.prototype.readFloatLE=function(u,h){return u=u>>>0,h||X(u,4,this.length),r.read(this,u,!0,23,4)},o.prototype.readFloatBE=function(u,h){return u=u>>>0,h||X(u,4,this.length),r.read(this,u,!1,23,4)},o.prototype.readDoubleLE=function(u,h){return u=u>>>0,h||X(u,8,this.length),r.read(this,u,!0,52,8)},o.prototype.readDoubleBE=function(u,h){return u=u>>>0,h||X(u,8,this.length),r.read(this,u,!1,52,8)};function ee(x,u,h,A,U,H){if(!o.isBuffer(x))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>U||u<H)throw new RangeError('"value" argument is out of bounds');if(h+A>x.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(u,h,A,U){if(u=+u,h=h>>>0,A=A>>>0,!U){var H=Math.pow(2,8*A)-1;ee(this,u,h,A,H,0)}var J=1,pe=0;for(this[h]=u&255;++pe<A&&(J*=256);)this[h+pe]=u/J&255;return h+A},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(u,h,A,U){if(u=+u,h=h>>>0,A=A>>>0,!U){var H=Math.pow(2,8*A)-1;ee(this,u,h,A,H,0)}var J=A-1,pe=1;for(this[h+J]=u&255;--J>=0&&(pe*=256);)this[h+J]=u/pe&255;return h+A},o.prototype.writeUint8=o.prototype.writeUInt8=function(u,h,A){return u=+u,h=h>>>0,A||ee(this,u,h,1,255,0),this[h]=u&255,h+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(u,h,A){return u=+u,h=h>>>0,A||ee(this,u,h,2,65535,0),this[h]=u&255,this[h+1]=u>>>8,h+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(u,h,A){return u=+u,h=h>>>0,A||ee(this,u,h,2,65535,0),this[h]=u>>>8,this[h+1]=u&255,h+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(u,h,A){return u=+u,h=h>>>0,A||ee(this,u,h,4,4294967295,0),this[h+3]=u>>>24,this[h+2]=u>>>16,this[h+1]=u>>>8,this[h]=u&255,h+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(u,h,A){return u=+u,h=h>>>0,A||ee(this,u,h,4,4294967295,0),this[h]=u>>>24,this[h+1]=u>>>16,this[h+2]=u>>>8,this[h+3]=u&255,h+4},o.prototype.writeIntLE=function(u,h,A,U){if(u=+u,h=h>>>0,!U){var H=Math.pow(2,8*A-1);ee(this,u,h,A,H-1,-H)}var J=0,pe=1,we=0;for(this[h]=u&255;++J<A&&(pe*=256);)u<0&&we===0&&this[h+J-1]!==0&&(we=1),this[h+J]=(u/pe>>0)-we&255;return h+A},o.prototype.writeIntBE=function(u,h,A,U){if(u=+u,h=h>>>0,!U){var H=Math.pow(2,8*A-1);ee(this,u,h,A,H-1,-H)}var J=A-1,pe=1,we=0;for(this[h+J]=u&255;--J>=0&&(pe*=256);)u<0&&we===0&&this[h+J+1]!==0&&(we=1),this[h+J]=(u/pe>>0)-we&255;return h+A},o.prototype.writeInt8=function(u,h,A){return u=+u,h=h>>>0,A||ee(this,u,h,1,127,-128),u<0&&(u=255+u+1),this[h]=u&255,h+1},o.prototype.writeInt16LE=function(u,h,A){return u=+u,h=h>>>0,A||ee(this,u,h,2,32767,-32768),this[h]=u&255,this[h+1]=u>>>8,h+2},o.prototype.writeInt16BE=function(u,h,A){return u=+u,h=h>>>0,A||ee(this,u,h,2,32767,-32768),this[h]=u>>>8,this[h+1]=u&255,h+2},o.prototype.writeInt32LE=function(u,h,A){return u=+u,h=h>>>0,A||ee(this,u,h,4,2147483647,-2147483648),this[h]=u&255,this[h+1]=u>>>8,this[h+2]=u>>>16,this[h+3]=u>>>24,h+4},o.prototype.writeInt32BE=function(u,h,A){return u=+u,h=h>>>0,A||ee(this,u,h,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[h]=u>>>24,this[h+1]=u>>>16,this[h+2]=u>>>8,this[h+3]=u&255,h+4};function Z(x,u,h,A,U,H){if(h+A>x.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function fe(x,u,h,A,U){return u=+u,h=h>>>0,U||Z(x,u,h,4),r.write(x,u,h,A,23,4),h+4}o.prototype.writeFloatLE=function(u,h,A){return fe(this,u,h,!0,A)},o.prototype.writeFloatBE=function(u,h,A){return fe(this,u,h,!1,A)};function oe(x,u,h,A,U){return u=+u,h=h>>>0,U||Z(x,u,h,8),r.write(x,u,h,A,52,8),h+8}o.prototype.writeDoubleLE=function(u,h,A){return oe(this,u,h,!0,A)},o.prototype.writeDoubleBE=function(u,h,A){return oe(this,u,h,!1,A)},o.prototype.copy=function(u,h,A,U){if(!o.isBuffer(u))throw new TypeError("argument should be a Buffer");if(A||(A=0),!U&&U!==0&&(U=this.length),h>=u.length&&(h=u.length),h||(h=0),U>0&&U<A&&(U=A),U===A||u.length===0||this.length===0)return 0;if(h<0)throw new RangeError("targetStart out of bounds");if(A<0||A>=this.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("sourceEnd out of bounds");U>this.length&&(U=this.length),u.length-h<U-A&&(U=u.length-h+A);var H=U-A;return this===u&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(h,A,U):Uint8Array.prototype.set.call(u,this.subarray(A,U),h),H},o.prototype.fill=function(u,h,A,U){if(typeof u=="string"){if(typeof h=="string"?(U=h,h=0,A=this.length):typeof A=="string"&&(U=A,A=this.length),U!==void 0&&typeof U!="string")throw new TypeError("encoding must be a string");if(typeof U=="string"&&!o.isEncoding(U))throw new TypeError("Unknown encoding: "+U);if(u.length===1){var H=u.charCodeAt(0);(U==="utf8"&&H<128||U==="latin1")&&(u=H)}}else typeof u=="number"?u=u&255:typeof u=="boolean"&&(u=Number(u));if(h<0||this.length<h||this.length<A)throw new RangeError("Out of range index");if(A<=h)return this;h=h>>>0,A=A===void 0?this.length:A>>>0,u||(u=0);var J;if(typeof u=="number")for(J=h;J<A;++J)this[J]=u;else{var pe=o.isBuffer(u)?u:o.from(u,U),we=pe.length;if(we===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(J=0;J<A-h;++J)this[J+h]=pe[J%we]}return this};var ie=/[^+/0-9A-Za-z-_]/g;function Ae(x){if(x=x.split("=")[0],x=x.trim().replace(ie,""),x.length<2)return"";for(;x.length%4!==0;)x=x+"=";return x}function Oe(x,u){u=u||1/0;for(var h,A=x.length,U=null,H=[],J=0;J<A;++J){if(h=x.charCodeAt(J),h>55295&&h<57344){if(!U){if(h>56319){(u-=3)>-1&&H.push(239,191,189);continue}else if(J+1===A){(u-=3)>-1&&H.push(239,191,189);continue}U=h;continue}if(h<56320){(u-=3)>-1&&H.push(239,191,189),U=h;continue}h=(U-55296<<10|h-56320)+65536}else U&&(u-=3)>-1&&H.push(239,191,189);if(U=null,h<128){if((u-=1)<0)break;H.push(h)}else if(h<2048){if((u-=2)<0)break;H.push(h>>6|192,h&63|128)}else if(h<65536){if((u-=3)<0)break;H.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((u-=4)<0)break;H.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return H}function Xe(x){for(var u=[],h=0;h<x.length;++h)u.push(x.charCodeAt(h)&255);return u}function tt(x,u){for(var h,A,U,H=[],J=0;J<x.length&&!((u-=2)<0);++J)h=x.charCodeAt(J),A=h>>8,U=h%256,H.push(U),H.push(A);return H}function Et(x){return t.toByteArray(Ae(x))}function Ie(x,u,h,A){for(var U=0;U<A&&!(U+h>=u.length||U>=x.length);++U)u[U+h]=x[U];return U}function Ce(x,u){return x instanceof u||x!=null&&x.constructor!=null&&x.constructor.name!=null&&x.constructor.name===u.name}function pt(x){return x!==x}var Re=function(){for(var x="0123456789abcdef",u=new Array(256),h=0;h<16;++h)for(var A=h*16,U=0;U<16;++U)u[A+U]=x[h]+x[U];return u}()})(Co);/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(e,t){var r=Co,i=r.Buffer;function a(n,o){for(var l in n)o[l]=n[l]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=s);function s(n,o,l){return i(n,o,l)}s.prototype=Object.create(i.prototype),a(i,s),s.from=function(n,o,l){if(typeof n=="number")throw new TypeError("Argument must not be a number");return i(n,o,l)},s.alloc=function(n,o,l){if(typeof n!="number")throw new TypeError("Argument must be a number");var p=i(n);return o!==void 0?typeof l=="string"?p.fill(o,l):p.fill(o):p.fill(0),p},s.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return i(n)},s.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(n)}})(fo,fo.exports);var No=fo.exports,L0={}.toString,I0=Array.isArray||function(e){return L0.call(e)=="[object Array]"},fs=TypeError,su=Object,C0=Error,j0=EvalError,N0=RangeError,D0=ReferenceError,iu=SyntaxError,U0=URIError,B0=Math.abs,q0=Math.floor,M0=Math.max,W0=Math.min,H0=Math.pow,z0=Math.round,V0=Number.isNaN||function(t){return t!==t},Z0=V0,G0=function(t){return Z0(t)||t===0?t:t<0?-1:1},Y0=Object.getOwnPropertyDescriptor,Ms=Y0;if(Ms)try{Ms([],"length")}catch{Ms=null}var ps=Ms,Ws=Object.defineProperty||!1;if(Ws)try{Ws({},"a",{value:1})}catch{Ws=!1}var ki=Ws,la,ff;function au(){return ff||(ff=1,la=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var a=42;t[r]=a;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var n=Object.getOwnPropertySymbols(t);if(n.length!==1||n[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==a||o.enumerable!==!0)return!1}return!0}),la}var fa,pf;function K0(){if(pf)return fa;pf=1;var e=typeof Symbol<"u"&&Symbol,t=au();return fa=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},fa}var pa,cf;function ou(){return cf||(cf=1,pa=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),pa}var ca,uf;function lu(){if(uf)return ca;uf=1;var e=su;return ca=e.getPrototypeOf||null,ca}var X0="Function.prototype.bind called on incompatible ",J0=Object.prototype.toString,Q0=Math.max,eg="[object Function]",df=function(t,r){for(var i=[],a=0;a<t.length;a+=1)i[a]=t[a];for(var s=0;s<r.length;s+=1)i[s+t.length]=r[s];return i},tg=function(t,r){for(var i=[],a=r,s=0;a<t.length;a+=1,s+=1)i[s]=t[a];return i},rg=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r},ng=function(t){var r=this;if(typeof r!="function"||J0.apply(r)!==eg)throw new TypeError(X0+r);for(var i=tg(arguments,1),a,s=function(){if(this instanceof a){var c=r.apply(this,df(i,arguments));return Object(c)===c?c:this}return r.apply(t,df(i,arguments))},n=Q0(0,r.length-i.length),o=[],l=0;l<n;l++)o[l]="$"+l;if(a=Function("binder","return function ("+rg(o,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var p=function(){};p.prototype=r.prototype,a.prototype=new p,p.prototype=null}return a},sg=ng,cs=Function.prototype.bind||sg,Do=Function.prototype.call,ua,hf;function Uo(){return hf||(hf=1,ua=Function.prototype.apply),ua}var ig=typeof Reflect<"u"&&Reflect&&Reflect.apply,ag=cs,og=Uo(),lg=Do,fg=ig,fu=fg||ag.call(lg,og),pg=cs,cg=fs,ug=Do,dg=fu,Bo=function(t){if(t.length<1||typeof t[0]!="function")throw new cg("a function is required");return dg(pg,ug,t)},da,mf;function hg(){if(mf)return da;mf=1;var e=Bo,t=ps,r;try{r=[].__proto__===Array.prototype}catch(n){if(!n||typeof n!="object"||!("code"in n)||n.code!=="ERR_PROTO_ACCESS")throw n}var i=!!r&&t&&t(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;return da=i&&typeof i.get=="function"?e([i.get]):typeof s=="function"?function(o){return s(o==null?o:a(o))}:!1,da}var ha,yf;function pu(){if(yf)return ha;yf=1;var e=ou(),t=lu(),r=hg();return ha=e?function(a){return e(a)}:t?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return t(a)}:r?function(a){return r(a)}:null,ha}var ma,gf;function mg(){if(gf)return ma;gf=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=cs;return ma=r.call(e,t),ma}var ye,yg=su,gg=C0,wg=j0,bg=N0,_g=D0,hn=iu,pn=fs,vg=U0,xg=B0,kg=q0,Pg=M0,Eg=W0,Sg=H0,Tg=z0,Og=G0,cu=Function,ya=function(e){try{return cu('"use strict"; return ('+e+").constructor;")()}catch{}},Vn=ps,Ag=ki,ga=function(){throw new pn},$g=Vn?function(){try{return arguments.callee,ga}catch{try{return Vn(arguments,"callee").get}catch{return ga}}}():ga,Kr=K0()(),Ze=pu(),Rg=lu(),Fg=ou(),uu=Uo(),us=Do,tn={},Lg=typeof Uint8Array>"u"||!Ze?ye:Ze(Uint8Array),Rr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ye:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ye:ArrayBuffer,"%ArrayIteratorPrototype%":Kr&&Ze?Ze([][Symbol.iterator]()):ye,"%AsyncFromSyncIteratorPrototype%":ye,"%AsyncFunction%":tn,"%AsyncGenerator%":tn,"%AsyncGeneratorFunction%":tn,"%AsyncIteratorPrototype%":tn,"%Atomics%":typeof Atomics>"u"?ye:Atomics,"%BigInt%":typeof BigInt>"u"?ye:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ye:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ye:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ye:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":gg,"%eval%":eval,"%EvalError%":wg,"%Float16Array%":typeof Float16Array>"u"?ye:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ye:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ye:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ye:FinalizationRegistry,"%Function%":cu,"%GeneratorFunction%":tn,"%Int8Array%":typeof Int8Array>"u"?ye:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ye:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ye:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Kr&&Ze?Ze(Ze([][Symbol.iterator]())):ye,"%JSON%":typeof JSON=="object"?JSON:ye,"%Map%":typeof Map>"u"?ye:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Kr||!Ze?ye:Ze(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":yg,"%Object.getOwnPropertyDescriptor%":Vn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ye:Promise,"%Proxy%":typeof Proxy>"u"?ye:Proxy,"%RangeError%":bg,"%ReferenceError%":_g,"%Reflect%":typeof Reflect>"u"?ye:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ye:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Kr||!Ze?ye:Ze(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ye:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Kr&&Ze?Ze(""[Symbol.iterator]()):ye,"%Symbol%":Kr?Symbol:ye,"%SyntaxError%":hn,"%ThrowTypeError%":$g,"%TypedArray%":Lg,"%TypeError%":pn,"%Uint8Array%":typeof Uint8Array>"u"?ye:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ye:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ye:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ye:Uint32Array,"%URIError%":vg,"%WeakMap%":typeof WeakMap>"u"?ye:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ye:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ye:WeakSet,"%Function.prototype.call%":us,"%Function.prototype.apply%":uu,"%Object.defineProperty%":Ag,"%Object.getPrototypeOf%":Rg,"%Math.abs%":xg,"%Math.floor%":kg,"%Math.max%":Pg,"%Math.min%":Eg,"%Math.pow%":Sg,"%Math.round%":Tg,"%Math.sign%":Og,"%Reflect.getPrototypeOf%":Fg};if(Ze)try{null.error}catch(e){var Ig=Ze(Ze(e));Rr["%Error.prototype%"]=Ig}var Cg=function e(t){var r;if(t==="%AsyncFunction%")r=ya("async function () {}");else if(t==="%GeneratorFunction%")r=ya("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=ya("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Ze&&(r=Ze(a.prototype))}return Rr[t]=r,r},wf={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ds=cs,ii=mg(),jg=ds.call(us,Array.prototype.concat),Ng=ds.call(uu,Array.prototype.splice),bf=ds.call(us,String.prototype.replace),ai=ds.call(us,String.prototype.slice),Dg=ds.call(us,RegExp.prototype.exec),Ug=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Bg=/\\(\\)?/g,qg=function(t){var r=ai(t,0,1),i=ai(t,-1);if(r==="%"&&i!=="%")throw new hn("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new hn("invalid intrinsic syntax, expected opening `%`");var a=[];return bf(t,Ug,function(s,n,o,l){a[a.length]=o?bf(l,Bg,"$1"):n||s}),a},Mg=function(t,r){var i=t,a;if(ii(wf,i)&&(a=wf[i],i="%"+a[0]+"%"),ii(Rr,i)){var s=Rr[i];if(s===tn&&(s=Cg(i)),typeof s>"u"&&!r)throw new pn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:i,value:s}}throw new hn("intrinsic "+t+" does not exist!")},du=function(t,r){if(typeof t!="string"||t.length===0)throw new pn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new pn('"allowMissing" argument must be a boolean');if(Dg(/^%?[^%]*%?$/,t)===null)throw new hn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=qg(t),a=i.length>0?i[0]:"",s=Mg("%"+a+"%",r),n=s.name,o=s.value,l=!1,p=s.alias;p&&(a=p[0],Ng(i,jg([0,1],p)));for(var c=1,d=!0;c<i.length;c+=1){var m=i[c],y=ai(m,0,1),T=ai(m,-1);if((y==='"'||y==="'"||y==="`"||T==='"'||T==="'"||T==="`")&&y!==T)throw new hn("property names with quotes must have matching quotes");if((m==="constructor"||!d)&&(l=!0),a+="."+m,n="%"+a+"%",ii(Rr,n))o=Rr[n];else if(o!=null){if(!(m in o)){if(!r)throw new pn("base intrinsic for "+t+" exists, but the property is not available.");return}if(Vn&&c+1>=i.length){var g=Vn(o,m);d=!!g,d&&"get"in g&&!("originalValue"in g.get)?o=g.get:o=o[m]}else d=ii(o,m),o=o[m];d&&!l&&(Rr[n]=o)}}return o},hu=du,mu=Bo,Wg=mu([hu("%String.prototype.indexOf%")]),yu=function(t,r){var i=hu(t,!!r);return typeof i=="function"&&Wg(t,".prototype.")>-1?mu([i]):i},wa,_f;function Hg(){if(_f)return wa;_f=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,i;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw i}}),i={},t(function(){throw 42},null,r)}catch(O){O!==i&&(t=null)}else t=null;var a=/^\s*class\b/,s=function(E){try{var I=e.call(E);return a.test(I)}catch{return!1}},n=function(E){try{return s(E)?!1:(e.call(E),!0)}catch{return!1}},o=Object.prototype.toString,l="[object Object]",p="[object Function]",c="[object GeneratorFunction]",d="[object HTMLAllCollection]",m="[object HTML document.all class]",y="[object HTMLCollection]",T=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),w=function(){return!1};if(typeof document=="object"){var _=document.all;o.call(_)===o.call(document.all)&&(w=function(E){if((g||!E)&&(typeof E>"u"||typeof E=="object"))try{var I=o.call(E);return(I===d||I===m||I===y||I===l)&&E("")==null}catch{}return!1})}return wa=t?function(E){if(w(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;try{t(E,null,r)}catch(I){if(I!==i)return!1}return!s(E)&&n(E)}:function(E){if(w(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;if(T)return n(E);if(s(E))return!1;var I=o.call(E);return I!==p&&I!==c&&!/^\[object HTML/.test(I)?!1:n(E)},wa}var ba,vf;function zg(){if(vf)return ba;vf=1;var e=Hg(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,i=function(l,p,c){for(var d=0,m=l.length;d<m;d++)r.call(l,d)&&(c==null?p(l[d],d,l):p.call(c,l[d],d,l))},a=function(l,p,c){for(var d=0,m=l.length;d<m;d++)c==null?p(l.charAt(d),d,l):p.call(c,l.charAt(d),d,l)},s=function(l,p,c){for(var d in l)r.call(l,d)&&(c==null?p(l[d],d,l):p.call(c,l[d],d,l))};function n(o){return t.call(o)==="[object Array]"}return ba=function(l,p,c){if(!e(p))throw new TypeError("iterator must be a function");var d;arguments.length>=3&&(d=c),n(l)?i(l,p,d):typeof l=="string"?a(l,p,d):s(l,p,d)},ba}var _a,xf;function Vg(){return xf||(xf=1,_a=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),_a}var va,kf;function Zg(){if(kf)return va;kf=1;var e=Vg(),t=typeof globalThis>"u"?Kp:globalThis;return va=function(){for(var i=[],a=0;a<e.length;a++)typeof t[e[a]]=="function"&&(i[i.length]=e[a]);return i},va}var xa={exports:{}},ka,Pf;function Gg(){if(Pf)return ka;Pf=1;var e=ki,t=iu,r=fs,i=ps;return ka=function(s,n,o){if(!s||typeof s!="object"&&typeof s!="function")throw new r("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,p=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,d=arguments.length>6?arguments[6]:!1,m=!!i&&i(s,n);if(e)e(s,n,{configurable:c===null&&m?m.configurable:!c,enumerable:l===null&&m?m.enumerable:!l,value:o,writable:p===null&&m?m.writable:!p});else if(d||!l&&!p&&!c)s[n]=o;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},ka}var Pa,Ef;function Yg(){if(Ef)return Pa;Ef=1;var e=ki,t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Pa=t,Pa}var Ea,Sf;function Kg(){if(Sf)return Ea;Sf=1;var e=du,t=Gg(),r=Yg()(),i=ps,a=fs,s=e("%Math.floor%");return Ea=function(o,l){if(typeof o!="function")throw new a("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||s(l)!==l)throw new a("`length` must be a positive 32-bit integer");var p=arguments.length>2&&!!arguments[2],c=!0,d=!0;if("length"in o&&i){var m=i(o,"length");m&&!m.configurable&&(c=!1),m&&!m.writable&&(d=!1)}return(c||d||!p)&&(r?t(o,"length",l,!0,!0):t(o,"length",l)),o},Ea}var Sa,Tf;function Xg(){if(Tf)return Sa;Tf=1;var e=cs,t=Uo(),r=fu;return Sa=function(){return r(e,t,arguments)},Sa}var Of;function Jg(){return Of||(Of=1,function(e){var t=Kg(),r=ki,i=Bo,a=Xg();e.exports=function(n){var o=i(arguments),l=1+n.length-(arguments.length-1);return t(o,l>0?l:0,!0)},r?r(e.exports,"apply",{value:a}):e.exports.apply=a}(xa)),xa.exports}var Ta,Af;function Qg(){if(Af)return Ta;Af=1;var e=au();return Ta=function(){return e()&&!!Symbol.toStringTag},Ta}var Oa,$f;function ew(){if($f)return Oa;$f=1;var e=zg(),t=Zg(),r=Jg(),i=yu,a=ps,s=pu(),n=i("Object.prototype.toString"),o=Qg()(),l=typeof globalThis>"u"?Kp:globalThis,p=t(),c=i("String.prototype.slice"),d=i("Array.prototype.indexOf",!0)||function(w,_){for(var O=0;O<w.length;O+=1)if(w[O]===_)return O;return-1},m={__proto__:null};o&&a&&s?e(p,function(g){var w=new l[g];if(Symbol.toStringTag in w&&s){var _=s(w),O=a(_,Symbol.toStringTag);if(!O&&_){var E=s(_);O=a(E,Symbol.toStringTag)}if(O&&O.get){var I=r(O.get);m["$"+g]=I}}}):e(p,function(g){var w=new l[g],_=w.slice||w.set;if(_){var O=r(_);m["$"+g]=O}});var y=function(w){var _=!1;return e(m,function(O,E){if(!_)try{"$"+O(w)===E&&(_=c(E,1))}catch{}}),_},T=function(w){var _=!1;return e(m,function(O,E){if(!_)try{O(w),_=c(E,1)}catch{}}),_};return Oa=function(w){if(!w||typeof w!="object")return!1;if(!o){var _=c(n(w),8,-1);return d(p,_)>-1?_:_!=="Object"?!1:T(w)}return a?y(w):null},Oa}var Aa,Rf;function tw(){if(Rf)return Aa;Rf=1;var e=ew();return Aa=function(r){return!!e(r)},Aa}var rw=fs,nw=yu,sw=nw("TypedArray.prototype.buffer",!0),iw=tw(),aw=sw||function(t){if(!iw(t))throw new rw("Not a Typed Array");return t.buffer},It=No.Buffer,ow=I0,lw=aw,fw=ArrayBuffer.isView||function(t){try{return lw(t),!0}catch{return!1}},pw=typeof Uint8Array<"u",gu=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",cw=gu&&(It.prototype instanceof Uint8Array||It.TYPED_ARRAY_SUPPORT),uw=function(t,r){if(It.isBuffer(t))return t.constructor&&!("isBuffer"in t)?It.from(t):t;if(typeof t=="string")return It.from(t,r);if(gu&&fw(t)){if(t.byteLength===0)return It.alloc(0);if(cw){var i=It.from(t.buffer,t.byteOffset,t.byteLength);if(i.byteLength===t.byteLength)return i}var a=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),s=It.from(a);if(s.length===t.byteLength)return s}if(pw&&t instanceof Uint8Array)return It.from(t);var n=ow(t);if(n)for(var o=0;o<t.length;o+=1){var l=t[o];if(typeof l!="number"||l<0||l>255||~~l!==l)throw new RangeError("Array items must be numbers in the range 0-255.")}if(n||It.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return It.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},dw=No.Buffer,hw=uw;function Pi(e,t){this._block=dw.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Pi.prototype.update=function(e,t){e=hw(e,t||"utf8");for(var r=this._block,i=this._blockSize,a=e.length,s=this._len,n=0;n<a;){for(var o=s%i,l=Math.min(a-n,i-o),p=0;p<l;p++)r[o+p]=e[n+p];s+=l,n+=l,s%i===0&&this._update(r)}return this._len+=a,this};Pi.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(r&4294967295)>>>0,a=(r-i)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var s=this._hash();return e?s.toString(e):s};Pi.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var mw=Pi,yw=P0,wu=mw,gw=No.Buffer,ww=[1518500249,1859775393,-1894007588,-899497514],bw=new Array(80);function hs(){this.init(),this._w=bw,wu.call(this,64,56)}yw(hs,wu);hs.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function _w(e){return e<<1|e>>>31}function vw(e){return e<<5|e>>>27}function xw(e){return e<<30|e>>>2}function kw(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}hs.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,a=this._c|0,s=this._d|0,n=this._e|0,o=0;o<16;++o)t[o]=e.readInt32BE(o*4);for(;o<80;++o)t[o]=_w(t[o-3]^t[o-8]^t[o-14]^t[o-16]);for(var l=0;l<80;++l){var p=~~(l/20),c=vw(r)+kw(p,i,a,s)+n+t[l]+ww[p]|0;n=s,s=a,a=xw(i),i=r,r=c}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=n+this._e|0};hs.prototype._hash=function(){var e=gw.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var Pw=hs;const Ew=_o(Pw);function Sw(e){let t="";for(const r of new Uint8Array(e))r<16&&(t+="0"),t+=r.toString(16);return t}let $a=null;async function oi(e){return $a===null&&($a=await Ow()),$a?bu(e):Tw(e)}function Tw(e){return new Ew().update(e).digest("hex")}async function bu(e){const t=await crypto.subtle.digest("SHA-1",e);return Sw(t)}async function Ow(){try{if(await bu(new Uint8Array([]))==="da39a3ee5e6b4b0d3255bfef95601890afd80709")return!0}catch{}return!1}function Aw(e){const t=[];let r=0,i=0;do{r=e.readUInt8();const a=r&127;t.push(a),i=r&128}while(i);return t.reduce((a,s)=>a+1<<7|s,-1)}function $w(e,t){let r=t,i=4,a=null;do a=e.readUInt8(),r|=(a&127)<<i,i+=7;while(a&128);return r}class mn{constructor(t){Object.assign(this,t),this.offsetCache={}}static async fromIdx({idx:t,getExternalRefDelta:r}){const i=new Zt(t);if(i.slice(4).toString("hex")!=="ff744f63")return;const s=i.readUInt32BE();if(s!==2)throw new Ee(`Unable to read version ${s} packfile IDX. (Only version 2 supported)`);if(t.byteLength>2048*1024*1024)throw new Ee("To keep implementation simple, I haven't implemented the layer 5 feature needed to support packfiles > 2GB in size.");i.seek(i.tell()+4*255);const n=i.readUInt32BE(),o=[];for(let c=0;c<n;c++){const d=i.slice(20).toString("hex");o[c]=d}i.seek(i.tell()+4*n);const l=new Map;for(let c=0;c<n;c++)l.set(o[c],i.readUInt32BE());const p=i.slice(20).toString("hex");return new mn({hashes:o,crcs:{},offsets:l,packfileSha:p,getExternalRefDelta:r})}static async fromPack({pack:t,getExternalRefDelta:r,onProgress:i}){const a={1:"commit",2:"tree",3:"blob",4:"tag",6:"ofs-delta",7:"ref-delta"},s={},n=t.slice(-20).toString("hex"),o=[],l={},p=new Map;let c=null,d=null;await v0([t],async({data:w,type:_,reference:O,offset:E,num:I})=>{c===null&&(c=I);const $=Math.floor((c-I)*100/c);$!==d&&i&&await i({phase:"Receiving objects",loaded:c-I,total:c}),d=$,_=a[_],["commit","tree","blob","tag"].includes(_)?s[E]={type:_,offset:E}:_==="ofs-delta"?s[E]={type:_,offset:E}:_==="ref-delta"&&(s[E]={type:_,offset:E})});const m=Object.keys(s).map(Number);for(const[w,_]of m.entries()){const O=w+1===m.length?t.byteLength-20:m[w+1],E=s[_],I=Sm.buf(t.slice(_,O))>>>0;E.end=O,E.crc=I}const y=new mn({pack:Promise.resolve(t),packfileSha:n,crcs:l,hashes:o,offsets:p,getExternalRefDelta:r});d=null;let T=0;const g=[0,0,0,0,0,0,0,0,0,0,0,0];for(let w in s){w=Number(w);const _=Math.floor(T*100/c);_!==d&&i&&await i({phase:"Resolving deltas",loaded:T,total:c}),T++,d=_;const O=s[w];if(!O.oid)try{y.readDepth=0,y.externalReadDepth=0;const{type:E,object:I}=await y.readSlice({start:w});g[y.readDepth]+=1;const $=await oi(Tm.wrap({type:E,object:I}));O.oid=$,o.push($),p.set($,w),l[$]=O.crc}catch{continue}}return o.sort(),y}async toBuffer(){const t=[],r=(p,c)=>{t.push(Buffer.from(p,c))};r("ff744f63","hex"),r("00000002","hex");const i=new Zt(Buffer.alloc(256*4));for(let p=0;p<256;p++){let c=0;for(const d of this.hashes)parseInt(d.slice(0,2),16)<=p&&c++;i.writeUInt32BE(c)}t.push(i.buffer);for(const p of this.hashes)r(p,"hex");const a=new Zt(Buffer.alloc(this.hashes.length*4));for(const p of this.hashes)a.writeUInt32BE(this.crcs[p]);t.push(a.buffer);const s=new Zt(Buffer.alloc(this.hashes.length*4));for(const p of this.hashes)s.writeUInt32BE(this.offsets.get(p));t.push(s.buffer),r(this.packfileSha,"hex");const n=Buffer.concat(t),o=await oi(n),l=Buffer.alloc(20);return l.write(o,"hex"),Buffer.concat([n,l])}async load({pack:t}){this.pack=t}async unload(){this.pack=null}async read({oid:t}){if(!this.offsets.get(t)){if(this.getExternalRefDelta)return this.externalReadDepth++,this.getExternalRefDelta(t);throw new Ee(`Could not read object ${t} from packfile`)}const r=this.offsets.get(t);return this.readSlice({start:r})}async readSlice({start:t}){if(this.offsetCache[t])return Object.assign({},this.offsetCache[t]);this.readDepth++;const r={16:"commit",32:"tree",48:"blob",64:"tag",96:"ofs_delta",112:"ref_delta"};if(!this.pack)throw new Ee("Tried to read from a GitPackIndex with no packfile loaded into memory");const i=(await this.pack).slice(t),a=new Zt(i),s=a.readUInt8(),n=s&112;let o=r[n];if(o===void 0)throw new Ee("Unrecognized type: 0b"+n.toString(2));const l=s&15;let p=l;s&128&&(p=$w(a,l));let d=null,m=null;if(o==="ofs_delta"){const T=Aw(a),g=t-T;({object:d,type:o}=await this.readSlice({start:g}))}if(o==="ref_delta"){const T=a.slice(20).toString("hex");({object:d,type:o}=await this.read({oid:T}))}const y=i.slice(a.tell());if(m=Buffer.from(await k0(y)),m.byteLength!==p)throw new Ee(`Packfile told us object would have length ${p} but it had length ${m.byteLength}`);return d&&(m=Buffer.from(Om(m,d))),this.readDepth>3&&(this.offsetCache[t]={type:o,object:m}),{type:o,format:"content",object:m}}}class Zn extends yn{constructor(t){super(`Expected a 40-char hex object id but saw "${t}".`),this.code=this.name=Zn.code,this.data={value:t}}}Zn.code="InvalidOidError";class Ei extends yn{constructor(t,r,i,a){super(`Object ${t} ${a?`at ${a}`:""}was anticipated to be a ${i} but it is a ${r}.`),this.code=this.name=Ei.code,this.data={oid:t,actual:r,expected:i,filepath:a}}}Ei.code="ObjectTypeError";function Rw(e){let t=e>0?e>>12:0;t!==4&&t!==8&&t!==10&&t!==14&&(t=8);let r=e&511;return r&73?r=493:r=420,t!==8&&(r=0),(t<<12)+r}const Wt=2**32;function Ff(e,t,r,i){if(e!==void 0&&t!==void 0)return[e,t];r===void 0&&(r=i.valueOf());const a=Math.floor(r/1e3),s=(r-a*1e3)*1e6;return[a,s]}function Lf(e){const[t,r]=Ff(e.ctimeSeconds,e.ctimeNanoseconds,e.ctimeMs,e.ctime),[i,a]=Ff(e.mtimeSeconds,e.mtimeNanoseconds,e.mtimeMs,e.mtime);return{ctimeSeconds:t%Wt,ctimeNanoseconds:r%Wt,mtimeSeconds:i%Wt,mtimeNanoseconds:a%Wt,dev:e.dev%Wt,ino:e.ino%Wt,mode:Rw(e.mode%Wt),uid:e.uid%Wt,gid:e.gid%Wt,size:e.size>-1?e.size%Wt:0}}function Fw(e){return{assumeValid:!!(e&32768),extended:!!(e&16384),stage:(e&12288)>>12,nameLength:e&4095}}function Lw(e){const t=e.flags;return t.extended=!1,t.nameLength=Math.min(Buffer.from(e.path).length,4095),(t.assumeValid?32768:0)+(t.extended?16384:0)+((t.stage&3)<<12)+(t.nameLength&4095)}class Tr{constructor(t,r){this._dirty=!1,this._unmergedPaths=r||new Set,this._entries=t||new Map}_addEntry(t){if(t.flags.stage===0)t.stages=[t],this._entries.set(t.path,t),this._unmergedPaths.delete(t.path);else{let r=this._entries.get(t.path);r||(this._entries.set(t.path,t),r=t),r.stages[t.flags.stage]=t,this._unmergedPaths.add(t.path)}}static async from(t){if(Buffer.isBuffer(t))return Tr.fromBuffer(t);if(t===null)return new Tr(null);throw new Ee("invalid type passed to GitIndex.from")}static async fromBuffer(t){if(t.length===0)throw new Ee("Index file is empty (.git/index)");const r=new Tr,i=new Zt(t),a=i.toString("utf8",4);if(a!=="DIRC")throw new Ee(`Invalid dircache magic file number: ${a}`);const s=await oi(t.slice(0,-20)),n=t.slice(-20).toString("hex");if(n!==s)throw new Ee(`Invalid checksum in GitIndex buffer: expected ${n} but saw ${s}`);const o=i.readUInt32BE();if(o!==2)throw new Ee(`Unsupported dircache version: ${o}`);const l=i.readUInt32BE();let p=0;for(;!i.eof()&&p<l;){const c={};c.ctimeSeconds=i.readUInt32BE(),c.ctimeNanoseconds=i.readUInt32BE(),c.mtimeSeconds=i.readUInt32BE(),c.mtimeNanoseconds=i.readUInt32BE(),c.dev=i.readUInt32BE(),c.ino=i.readUInt32BE(),c.mode=i.readUInt32BE(),c.uid=i.readUInt32BE(),c.gid=i.readUInt32BE(),c.size=i.readUInt32BE(),c.oid=i.slice(20).toString("hex");const d=i.readUInt16BE();c.flags=Fw(d);const m=t.indexOf(0,i.tell()+1)-i.tell();if(m<1)throw new Ee(`Got a path length of: ${m}`);if(c.path=i.toString("utf8",m),c.path.includes("..\\")||c.path.includes("../"))throw new ss(c.path);let y=8-(i.tell()-12)%8;for(y===0&&(y=8);y--;){const T=i.readUInt8();if(T!==0)throw new Ee(`Expected 1-8 null characters but got '${T}' after ${c.path}`);if(i.eof())throw new Ee("Unexpected end of file")}c.stages=[],r._addEntry(c),p++}return r}get unmergedPaths(){return[...this._unmergedPaths]}get entries(){return[...this._entries.values()].sort(dc)}get entriesMap(){return this._entries}get entriesFlat(){return[...this.entries].flatMap(t=>t.stages.length>1?t.stages.filter(r=>r):t)}*[Symbol.iterator](){for(const t of this.entries)yield t}insert({filepath:t,stats:r,oid:i,stage:a=0}){r||(r={ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:0,uid:0,gid:0,size:0}),r=Lf(r);const s=Buffer.from(t),n={ctimeSeconds:r.ctimeSeconds,ctimeNanoseconds:r.ctimeNanoseconds,mtimeSeconds:r.mtimeSeconds,mtimeNanoseconds:r.mtimeNanoseconds,dev:r.dev,ino:r.ino,mode:r.mode||33188,uid:r.uid,gid:r.gid,size:r.size,path:t,oid:i,flags:{assumeValid:!1,extended:!1,stage:a,nameLength:s.length<4095?s.length:4095},stages:[]};this._addEntry(n),this._dirty=!0}delete({filepath:t}){if(this._entries.has(t))this._entries.delete(t);else for(const r of this._entries.keys())r.startsWith(t+"/")&&this._entries.delete(r);this._unmergedPaths.has(t)&&this._unmergedPaths.delete(t),this._dirty=!0}clear(){this._entries.clear(),this._dirty=!0}has({filepath:t}){return this._entries.has(t)}render(){return this.entries.map(t=>`${t.mode.toString(8)} ${t.oid} ${t.path}`).join(`
65
65
  `)}static async _entryToBuffer(t){const r=Buffer.from(t.path),i=Math.ceil((62+r.length+1)/8)*8,a=Buffer.alloc(i),s=new Zt(a),n=Lf(t);return s.writeUInt32BE(n.ctimeSeconds),s.writeUInt32BE(n.ctimeNanoseconds),s.writeUInt32BE(n.mtimeSeconds),s.writeUInt32BE(n.mtimeNanoseconds),s.writeUInt32BE(n.dev),s.writeUInt32BE(n.ino),s.writeUInt32BE(n.mode),s.writeUInt32BE(n.uid),s.writeUInt32BE(n.gid),s.writeUInt32BE(n.size),s.write(t.oid,20,"hex"),s.writeUInt16BE(Lw(t)),s.write(t.path,r.length,"utf8"),a}async toObject(){const t=Buffer.alloc(12),r=new Zt(t);r.write("DIRC",4,"utf8"),r.writeUInt32BE(2),r.writeUInt32BE(this.entriesFlat.length);let i=[];for(const o of this.entries)if(i.push(Tr._entryToBuffer(o)),o.stages.length>1)for(const l of o.stages)l&&l!==o&&i.push(Tr._entryToBuffer(l));i=await Promise.all(i);const a=Buffer.concat(i),s=Buffer.concat([t,a]),n=await oi(s);return Buffer.concat([s,Buffer.from(n,"hex")])}}async function _u(e,t){const r=pc(e);for(;;){const{value:i,done:a}=await r.next();if(i&&await t(i),a)break}r.return&&r.return()}async function Gn(e){let t=0;const r=[];await _u(e,s=>{r.push(s),t+=s.byteLength});const i=new Uint8Array(t);let a=0;for(const s of r)i.set(s,a),a+=s.byteLength;return i}class Ra{constructor(){this._queue=[]}write(t){if(this._ended)throw Error("You cannot write to a FIFO that has already been ended!");if(this._waiting){const r=this._waiting;this._waiting=null,r({value:t})}else this._queue.push(t)}end(){if(this._ended=!0,this._waiting){const t=this._waiting;this._waiting=null,t({done:!0})}}destroy(t){this.error=t,this.end()}async next(){if(this._queue.length>0)return{value:this._queue.shift()};if(this._ended)return{done:!0};if(this._waiting)throw Error("You cannot call read until the previous call to read has returned!");return new Promise(t=>{this._waiting=t})}}class Iw{static demux(t){const r=Ke.streamReader(t),i=new Ra,a=new Ra,s=new Ra,n=async function(){const o=await r();if(o===null)return n();if(o===!0){i.end(),s.end(),t.error?a.destroy(t.error):a.end();return}switch(o[0]){case 1:{a.write(o.slice(1));break}case 2:{s.write(o.slice(1));break}case 3:{const l=o.slice(1);s.write(l),i.end(),s.end(),a.destroy(new Error(l.toString("utf8")));return}default:i.write(o)}n()};return n(),{packetlines:i,packfile:a,progress:s}}}async function vu(e){const{packetlines:t,packfile:r,progress:i}=Iw.demux(e),a=[],s=[],n=[];let o=!1,l=!1;return new Promise((p,c)=>{_u(t,d=>{const m=d.toString("utf8").trim();if(m.startsWith("shallow")){const y=m.slice(-41).trim();y.length!==40&&c(new Zn(y)),a.push(y)}else if(m.startsWith("unshallow")){const y=m.slice(-41).trim();y.length!==40&&c(new Zn(y)),s.push(y)}else if(m.startsWith("ACK")){const[,y,T]=m.split(" ");n.push({oid:y,status:T}),T||(l=!0)}else m.startsWith("NAK")?(o=!0,l=!0):(l=!0,o=!0);l&&(e.error?c(e.error):p({shallows:a,unshallows:s,acks:n,nak:o,packfile:r,progress:i}))}).finally(()=>{l||(e.error?c(e.error):p({shallows:a,unshallows:s,acks:n,nak:o,packfile:r,progress:i}))})})}typeof globalThis.Buffer>"u"&&(globalThis.Buffer=Co.Buffer);class Yn extends Error{constructor(t,r){super(`Authentication required to access private repository: ${t}`),this.name="GitAuthenticationError",this.repoUrl=t,this.status=r}}async function Cw(e,t,r,i){const a=(i==null?void 0:i.additionalHeaders)||{},s=await ku(e,t,a),n=await Mw(s.idx,t,r),o=r.map(y=>n[y].oid),l=o.length>0?await Ww(e,o,a):null,p={};if(await Promise.all(r.map(async y=>{l&&(p[y]=await Pu(l.idx,n[y].oid))})),!(i!=null&&i.withObjects))return{files:p};const c=[],d=await s.idx.toBuffer();if(c.push({name:`pack-${s.idx.packfileSha}`,pack:s.packfile,index:Kn(d),promisor:s.promisor}),l){const y=await l.idx.toBuffer();c.push({name:`pack-${l.idx.packfileSha}`,pack:l.packfile,index:Kn(y),promisor:l.promisor})}const m={};for(const y of r)m[y]=n[y].oid;return{files:p,packfiles:c,objects:[...await If(s),...await If(l)],fileOids:m}}const jw=/^[0-9a-f]{40}$/i;async function Nw(e,t,r={}){const i=await ku(e,t,r),a=await qw(i.idx,t);return a!=null&&a.object?xu(a):[]}async function Dw(e,t,r={}){const i=await Bw(e,t);if(i.resolvedOid)return i.resolvedOid;const a=await po(e,i.refname,r);if(!a)throw new Error(`Git ref "${i.refname}" not found at ${e}`);return a}function xu(e){return e.object.map(t=>{if(t.type==="blob")return{name:t.path,type:"file"};if(t.type==="tree"&&t.object)return{name:t.path,type:"folder",children:xu(t)}}).filter(t=>!!(t!=null&&t.name))}async function Uw(e,t,r={}){const i=Buffer.from(await Gn([Ke.encode(`command=ls-refs
66
66
  `),Ke.encode(`agent=git/2.37.3
67
67
  `),Ke.encode(`object-format=sha1
@@ -86,8 +86,8 @@ gpgsig`+Zi(n)+`
86
86
  `,o[`.git/refs/remotes/origin/${l.branchName}`]=`${t}
87
87
  `,o[".git/refs/remotes/origin/HEAD"]=`ref: refs/remotes/origin/${l.branchName}
88
88
  `),l.tagName&&(o[`.git/refs/tags/${l.tagName}`]=`${t}
89
- `),Object.assign(o,await Zw(a));const p=new Tr;for(const[d,m]of Object.entries(s)){const y=d.substring(n.length).replace(/^\/+/,"");p.insert({filepath:y,oid:m,stats:{ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:33188,uid:0,gid:0,size:0}})}const c=await p.toObject();return o[".git/index"]=Uint8Array.from(c),o}function Xw(e,t){t=Mr(t);const r=["",".","/"].includes(t);let i=e;if(r)t="";else{const n=t.split("/");for(const o of n){const l=i==null?void 0:i.find(p=>p.name===o);if((l==null?void 0:l.type)==="folder")i=l.children;else return l?[l.name]:[]}}const a=[],s=[{tree:i,path:t}];for(;s.length>0;){const{tree:n,path:o}=s.pop();for(const l of n){const p=`${o}${o?"/":""}${l.name}`;l.type==="folder"?s.push({tree:l.children,path:p}):a.push(p)}}return a}const Xn=15,co=30,uo=19,Jw=29,li=256,qo=li+1+Jw,Cf=2*qo+1,Pn=256,Qw=7,jf=16,Nf=17,Df=18,Fa=8*2,fi=-1,e1=1,Es=2,t1=0,rn=0,Uf=1,r1=3,ct=4,Ct=0,Su=1,Ss=2,Nt=-2,n1=-3,Xr=-5;function Si(e){return Ti(e.map(([t,r])=>new Array(t).fill(r,0,t)))}function Ti(e){return e.reduce((t,r)=>t.concat(Array.isArray(r)?Ti(r):r),[])}const Bf=[0,1,2,3].concat(...Si([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function Fe(){const e=this;function t(a){const s=e.dyn_tree,n=e.stat_desc.static_tree,o=e.stat_desc.extra_bits,l=e.stat_desc.extra_base,p=e.stat_desc.max_length;let c,d,m,y,T,g,w=0;for(y=0;y<=Xn;y++)a.bl_count[y]=0;for(s[a.heap[a.heap_max]*2+1]=0,c=a.heap_max+1;c<Cf;c++)d=a.heap[c],y=s[s[d*2+1]*2+1]+1,y>p&&(y=p,w++),s[d*2+1]=y,!(d>e.max_code)&&(a.bl_count[y]++,T=0,d>=l&&(T=o[d-l]),g=s[d*2],a.opt_len+=g*(y+T),n&&(a.static_len+=g*(n[d*2+1]+T)));if(w!==0){do{for(y=p-1;a.bl_count[y]===0;)y--;a.bl_count[y]--,a.bl_count[y+1]+=2,a.bl_count[p]--,w-=2}while(w>0);for(y=p;y!==0;y--)for(d=a.bl_count[y];d!==0;)m=a.heap[--c],!(m>e.max_code)&&(s[m*2+1]!=y&&(a.opt_len+=(y-s[m*2+1])*s[m*2],s[m*2+1]=y),d--)}}function r(a,s){let n=0;do n|=a&1,a>>>=1,n<<=1;while(--s>0);return n>>>1}function i(a,s,n){const o=[];let l=0,p,c,d;for(p=1;p<=Xn;p++)o[p]=l=l+n[p-1]<<1;for(c=0;c<=s;c++)d=a[c*2+1],d!==0&&(a[c*2]=r(o[d]++,d))}e.build_tree=function(a){const s=e.dyn_tree,n=e.stat_desc.static_tree,o=e.stat_desc.elems;let l,p,c=-1,d;for(a.heap_len=0,a.heap_max=Cf,l=0;l<o;l++)s[l*2]!==0?(a.heap[++a.heap_len]=c=l,a.depth[l]=0):s[l*2+1]=0;for(;a.heap_len<2;)d=a.heap[++a.heap_len]=c<2?++c:0,s[d*2]=1,a.depth[d]=0,a.opt_len--,n&&(a.static_len-=n[d*2+1]);for(e.max_code=c,l=Math.floor(a.heap_len/2);l>=1;l--)a.pqdownheap(s,l);d=o;do l=a.heap[1],a.heap[1]=a.heap[a.heap_len--],a.pqdownheap(s,1),p=a.heap[1],a.heap[--a.heap_max]=l,a.heap[--a.heap_max]=p,s[d*2]=s[l*2]+s[p*2],a.depth[d]=Math.max(a.depth[l],a.depth[p])+1,s[l*2+1]=s[p*2+1]=d,a.heap[1]=d++,a.pqdownheap(s,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],t(a),i(s,e.max_code,a.bl_count)}}Fe._length_code=[0,1,2,3,4,5,6,7].concat(...Si([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]]));Fe.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0];Fe.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576];Fe.d_code=function(e){return e<256?Bf[e]:Bf[256+(e>>>7)]};Fe.extra_lbits=[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];Fe.extra_dbits=[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];Fe.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];Fe.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function Je(e,t,r,i,a){const s=this;s.static_tree=e,s.extra_bits=t,s.extra_base=r,s.elems=i,s.max_length=a}const s1=[12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227],i1=Si([[144,8],[112,9],[24,7],[8,8]]);Je.static_ltree=Ti(s1.map((e,t)=>[e,i1[t]]));const a1=[0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23],o1=Si([[30,5]]);Je.static_dtree=Ti(a1.map((e,t)=>[e,o1[t]]));Je.static_l_desc=new Je(Je.static_ltree,Fe.extra_lbits,li+1,qo,Xn);Je.static_d_desc=new Je(Je.static_dtree,Fe.extra_dbits,0,co,Xn);Je.static_bl_desc=new Je(null,Fe.extra_blbits,0,uo,Qw);const l1=9,f1=8;function Ht(e,t,r,i,a){const s=this;s.good_length=e,s.max_lazy=t,s.nice_length=r,s.max_chain=i,s.func=a}const Tu=0,Hs=1,Er=2,Lt=[new Ht(0,0,0,0,Tu),new Ht(4,4,8,4,Hs),new Ht(4,5,16,8,Hs),new Ht(4,6,32,32,Hs),new Ht(4,4,16,16,Er),new Ht(8,16,32,32,Er),new Ht(8,16,128,128,Er),new Ht(8,32,128,256,Er),new Ht(32,128,258,1024,Er),new Ht(32,258,258,4096,Er)],Ts=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],St=0,Os=1,En=2,As=3,p1=32,La=42,$s=113,Sn=666,Ia=8,c1=0,Ca=1,u1=2,Ne=3,zs=258,wt=zs+Ne+1;function qf(e,t,r,i){const a=e[t*2],s=e[r*2];return a<s||a==s&&i[t]<=i[r]}function d1(){const e=this;let t,r,i,a,s,n,o,l,p,c,d,m,y,T,g,w,b,O,E,I,$,L,C,_,F,P,S,j,R,D,V,B,Y;const G=new Fe,te=new Fe,z=new Fe;e.depth=[];let X,ee,Z,fe,oe,ie;e.bl_count=[],e.heap=[],V=[],B=[],Y=[];function Ae(){p=2*s,d[y-1]=0;for(let M=0;M<y-1;M++)d[M]=0;P=Lt[S].max_lazy,R=Lt[S].good_length,D=Lt[S].nice_length,F=Lt[S].max_chain,$=0,b=0,C=0,O=_=Ne-1,I=0,m=0}function Oe(){let M;for(M=0;M<qo;M++)V[M*2]=0;for(M=0;M<co;M++)B[M*2]=0;for(M=0;M<uo;M++)Y[M*2]=0;V[Pn*2]=1,e.opt_len=e.static_len=0,ee=Z=0}function Xe(){G.dyn_tree=V,G.stat_desc=Je.static_l_desc,te.dyn_tree=B,te.stat_desc=Je.static_d_desc,z.dyn_tree=Y,z.stat_desc=Je.static_bl_desc,oe=0,ie=0,fe=8,Oe()}e.pqdownheap=function(M,K){const W=e.heap,Q=W[K];let se=K<<1;for(;se<=e.heap_len&&(se<e.heap_len&&qf(M,W[se+1],W[se],e.depth)&&se++,!qf(M,Q,W[se],e.depth));)W[K]=W[se],K=se,se<<=1;W[K]=Q};function tt(M,K){let W=-1,Q,se=M[0*2+1],le=0,de=7,Me=4;se===0&&(de=138,Me=3),M[(K+1)*2+1]=65535;for(let ce=0;ce<=K;ce++)Q=se,se=M[(ce+1)*2+1],!(++le<de&&Q==se)&&(le<Me?Y[Q*2]+=le:Q!==0?(Q!=W&&Y[Q*2]++,Y[jf*2]++):le<=10?Y[Nf*2]++:Y[Df*2]++,le=0,W=Q,se===0?(de=138,Me=3):Q==se?(de=6,Me=3):(de=7,Me=4))}function Et(){let M;for(tt(V,G.max_code),tt(B,te.max_code),z.build_tree(e),M=uo-1;M>=3&&Y[Fe.bl_order[M]*2+1]===0;M--);return e.opt_len+=3*(M+1)+5+5+4,M}function Ie(M){e.pending_buf[e.pending++]=M}function Ce(M){Ie(M&255),Ie(M>>>8&255)}function pt(M){Ie(M>>8&255),Ie(M&255&255)}function Re(M,K){let W;const Q=K;ie>Fa-Q?(W=M,oe|=W<<ie&65535,Ce(oe),oe=W>>>Fa-ie,ie+=Q-Fa):(oe|=M<<ie&65535,ie+=Q)}function x(M,K){const W=M*2;Re(K[W]&65535,K[W+1]&65535)}function u(M,K){let W,Q=-1,se,le=M[0*2+1],de=0,Me=7,ce=4;for(le===0&&(Me=138,ce=3),W=0;W<=K;W++)if(se=le,le=M[(W+1)*2+1],!(++de<Me&&se==le)){if(de<ce)do x(se,Y);while(--de!==0);else se!==0?(se!=Q&&(x(se,Y),de--),x(jf,Y),Re(de-3,2)):de<=10?(x(Nf,Y),Re(de-3,3)):(x(Df,Y),Re(de-11,7));de=0,Q=se,le===0?(Me=138,ce=3):se==le?(Me=6,ce=3):(Me=7,ce=4)}}function h(M,K,W){let Q;for(Re(M-257,5),Re(K-1,5),Re(W-4,4),Q=0;Q<W;Q++)Re(Y[Fe.bl_order[Q]*2+1],3);u(V,M-1),u(B,K-1)}function A(){ie==16?(Ce(oe),oe=0,ie=0):ie>=8&&(Ie(oe&255),oe>>>=8,ie-=8)}function U(){Re(Ca<<1,3),x(Pn,Je.static_ltree),A(),1+fe+10-ie<9&&(Re(Ca<<1,3),x(Pn,Je.static_ltree),A()),fe=7}function H(M,K){let W,Q,se;if(e.dist_buf[ee]=M,e.lc_buf[ee]=K&255,ee++,M===0?V[K*2]++:(Z++,M--,V[(Fe._length_code[K]+li+1)*2]++,B[Fe.d_code(M)*2]++),!(ee&8191)&&S>2){for(W=ee*8,Q=$-b,se=0;se<co;se++)W+=B[se*2]*(5+Fe.extra_dbits[se]);if(W>>>=3,Z<Math.floor(ee/2)&&W<Math.floor(Q/2))return!0}return ee==X-1}function J(M,K){let W,Q,se=0,le,de;if(ee!==0)do W=e.dist_buf[se],Q=e.lc_buf[se],se++,W===0?x(Q,M):(le=Fe._length_code[Q],x(le+li+1,M),de=Fe.extra_lbits[le],de!==0&&(Q-=Fe.base_length[le],Re(Q,de)),W--,le=Fe.d_code(W),x(le,K),de=Fe.extra_dbits[le],de!==0&&(W-=Fe.base_dist[le],Re(W,de)));while(se<ee);x(Pn,M),fe=M[Pn*2+1]}function pe(){ie>8?Ce(oe):ie>0&&Ie(oe&255),oe=0,ie=0}function we(M,K,W){pe(),fe=8,Ce(K),Ce(~K),e.pending_buf.set(l.subarray(M,M+K),e.pending),e.pending+=K}function he(M,K,W){Re((c1<<1)+(W?1:0),3),we(M,K)}function De(M,K,W){let Q,se,le=0;S>0?(G.build_tree(e),te.build_tree(e),le=Et(),Q=e.opt_len+3+7>>>3,se=e.static_len+3+7>>>3,se<=Q&&(Q=se)):Q=se=K+5,K+4<=Q&&M!=-1?he(M,K,W):se==Q?(Re((Ca<<1)+(W?1:0),3),J(Je.static_ltree,Je.static_dtree)):(Re((u1<<1)+(W?1:0),3),h(G.max_code+1,te.max_code+1,le+1),J(V,B)),Oe(),W&&pe()}function ue(M){De(b>=0?b:-1,$-b,M),b=$,t.flush_pending()}function yt(){let M,K,W,Q;do{if(Q=p-C-$,Q===0&&$===0&&C===0)Q=s;else if(Q==-1)Q--;else if($>=s+s-wt){l.set(l.subarray(s,s+s),0),L-=s,$-=s,b-=s,M=y,W=M;do K=d[--W]&65535,d[W]=K>=s?K-s:0;while(--M!==0);M=s,W=M;do K=c[--W]&65535,c[W]=K>=s?K-s:0;while(--M!==0);Q+=s}if(t.avail_in===0)return;M=t.read_buf(l,$+C,Q),C+=M,C>=Ne&&(m=l[$]&255,m=(m<<w^l[$+1]&255)&g)}while(C<wt&&t.avail_in!==0)}function rt(M){let K=65535,W;for(K>i-5&&(K=i-5);;){if(C<=1){if(yt(),C===0&&M==rn)return St;if(C===0)break}if($+=C,C=0,W=b+K,($===0||$>=W)&&(C=$-W,$=W,ue(!1),t.avail_out===0)||$-b>=s-wt&&(ue(!1),t.avail_out===0))return St}return ue(M==ct),t.avail_out===0?M==ct?En:St:M==ct?As:Os}function Ft(M){let K=F,W=$,Q,se,le=_;const de=$>s-wt?$-(s-wt):0;let Me=D;const ce=o,xe=$+zs;let q=l[W+le-1],ae=l[W+le];_>=R&&(K>>=2),Me>C&&(Me=C);do if(Q=M,!(l[Q+le]!=ae||l[Q+le-1]!=q||l[Q]!=l[W]||l[++Q]!=l[W+1])){W+=2,Q++;do;while(l[++W]==l[++Q]&&l[++W]==l[++Q]&&l[++W]==l[++Q]&&l[++W]==l[++Q]&&l[++W]==l[++Q]&&l[++W]==l[++Q]&&l[++W]==l[++Q]&&l[++W]==l[++Q]&&W<xe);if(se=zs-(xe-W),W=xe-zs,se>le){if(L=M,le=se,se>=Me)break;q=l[W+le-1],ae=l[W+le]}}while((M=c[M&ce]&65535)>de&&--K!==0);return le<=C?le:C}function Ci(M){let K=0,W;for(;;){if(C<wt){if(yt(),C<wt&&M==rn)return St;if(C===0)break}if(C>=Ne&&(m=(m<<w^l[$+(Ne-1)]&255)&g,K=d[m]&65535,c[$&o]=d[m],d[m]=$),K!==0&&($-K&65535)<=s-wt&&j!=Es&&(O=Ft(K)),O>=Ne)if(W=H($-L,O-Ne),C-=O,O<=P&&C>=Ne){O--;do $++,m=(m<<w^l[$+(Ne-1)]&255)&g,K=d[m]&65535,c[$&o]=d[m],d[m]=$;while(--O!==0);$++}else $+=O,O=0,m=l[$]&255,m=(m<<w^l[$+1]&255)&g;else W=H(0,l[$]&255),C--,$++;if(W&&(ue(!1),t.avail_out===0))return St}return ue(M==ct),t.avail_out===0?M==ct?En:St:M==ct?As:Os}function nt(M){let K=0,W,Q;for(;;){if(C<wt){if(yt(),C<wt&&M==rn)return St;if(C===0)break}if(C>=Ne&&(m=(m<<w^l[$+(Ne-1)]&255)&g,K=d[m]&65535,c[$&o]=d[m],d[m]=$),_=O,E=L,O=Ne-1,K!==0&&_<P&&($-K&65535)<=s-wt&&(j!=Es&&(O=Ft(K)),O<=5&&(j==e1||O==Ne&&$-L>4096)&&(O=Ne-1)),_>=Ne&&O<=_){Q=$+C-Ne,W=H($-1-E,_-Ne),C-=_-1,_-=2;do++$<=Q&&(m=(m<<w^l[$+(Ne-1)]&255)&g,K=d[m]&65535,c[$&o]=d[m],d[m]=$);while(--_!==0);if(I=0,O=Ne-1,$++,W&&(ue(!1),t.avail_out===0))return St}else if(I!==0){if(W=H(0,l[$-1]&255),W&&ue(!1),$++,C--,t.avail_out===0)return St}else I=1,$++,C--}return I!==0&&(W=H(0,l[$-1]&255),I=0),ue(M==ct),t.avail_out===0?M==ct?En:St:M==ct?As:Os}function Vr(M){return M.total_in=M.total_out=0,M.msg=null,e.pending=0,e.pending_out=0,r=$s,a=rn,Xe(),Ae(),Ct}e.deflateInit=function(M,K,W,Q,se,le){return Q||(Q=Ia),se||(se=f1),le||(le=t1),M.msg=null,K==fi&&(K=6),se<1||se>l1||Q!=Ia||W<9||W>15||K<0||K>9||le<0||le>Es?Nt:(M.dstate=e,n=W,s=1<<n,o=s-1,T=se+7,y=1<<T,g=y-1,w=Math.floor((T+Ne-1)/Ne),l=new Uint8Array(s*2),c=[],d=[],X=1<<se+6,e.pending_buf=new Uint8Array(X*4),i=X*4,e.dist_buf=new Uint16Array(X),e.lc_buf=new Uint8Array(X),S=K,j=le,Vr(M))},e.deflateEnd=function(){return r!=La&&r!=$s&&r!=Sn?Nt:(e.lc_buf=null,e.dist_buf=null,e.pending_buf=null,d=null,c=null,l=null,e.dstate=null,r==$s?n1:Ct)},e.deflateParams=function(M,K,W){let Q=Ct;return K==fi&&(K=6),K<0||K>9||W<0||W>Es?Nt:(Lt[S].func!=Lt[K].func&&M.total_in!==0&&(Q=M.deflate(Uf)),S!=K&&(S=K,P=Lt[S].max_lazy,R=Lt[S].good_length,D=Lt[S].nice_length,F=Lt[S].max_chain),j=W,Q)},e.deflateSetDictionary=function(M,K,W){let Q=W,se,le=0;if(!K||r!=La)return Nt;if(Q<Ne)return Ct;for(Q>s-wt&&(Q=s-wt,le=W-Q),l.set(K.subarray(le,le+Q),0),$=Q,b=Q,m=l[0]&255,m=(m<<w^l[1]&255)&g,se=0;se<=Q-Ne;se++)m=(m<<w^l[se+(Ne-1)]&255)&g,c[se&o]=d[m],d[m]=se;return Ct},e.deflate=function(M,K){let W,Q,se,le,de;if(K>ct||K<0)return Nt;if(!M.next_out||!M.next_in&&M.avail_in!==0||r==Sn&&K!=ct)return M.msg=Ts[Ss-Nt],Nt;if(M.avail_out===0)return M.msg=Ts[Ss-Xr],Xr;if(t=M,le=a,a=K,r==La&&(Q=Ia+(n-8<<4)<<8,se=(S-1&255)>>1,se>3&&(se=3),Q|=se<<6,$!==0&&(Q|=p1),Q+=31-Q%31,r=$s,pt(Q)),e.pending!==0){if(t.flush_pending(),t.avail_out===0)return a=-1,Ct}else if(t.avail_in===0&&K<=le&&K!=ct)return t.msg=Ts[Ss-Xr],Xr;if(r==Sn&&t.avail_in!==0)return M.msg=Ts[Ss-Xr],Xr;if(t.avail_in!==0||C!==0||K!=rn&&r!=Sn){switch(de=-1,Lt[S].func){case Tu:de=rt(K);break;case Hs:de=Ci(K);break;case Er:de=nt(K);break}if((de==En||de==As)&&(r=Sn),de==St||de==En)return t.avail_out===0&&(a=-1),Ct;if(de==Os){if(K==Uf)U();else if(he(0,0,!1),K==r1)for(W=0;W<y;W++)d[W]=0;if(t.flush_pending(),t.avail_out===0)return a=-1,Ct}}return K!=ct?Ct:Su}}function Ou(){const e=this;e.next_in_index=0,e.next_out_index=0,e.avail_in=0,e.total_in=0,e.avail_out=0,e.total_out=0}Ou.prototype={deflateInit(e,t){const r=this;return r.dstate=new d1,t||(t=Xn),r.dstate.deflateInit(r,e,t)},deflate(e){const t=this;return t.dstate?t.dstate.deflate(t,e):Nt},deflateEnd(){const e=this;if(!e.dstate)return Nt;const t=e.dstate.deflateEnd();return e.dstate=null,t},deflateParams(e,t){const r=this;return r.dstate?r.dstate.deflateParams(r,e,t):Nt},deflateSetDictionary(e,t){const r=this;return r.dstate?r.dstate.deflateSetDictionary(r,e,t):Nt},read_buf(e,t,r){const i=this;let a=i.avail_in;return a>r&&(a=r),a===0?0:(i.avail_in-=a,e.set(i.next_in.subarray(i.next_in_index,i.next_in_index+a),t),i.next_in_index+=a,i.total_in+=a,a)},flush_pending(){const e=this;let t=e.dstate.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.next_out.set(e.dstate.pending_buf.subarray(e.dstate.pending_out,e.dstate.pending_out+t),e.next_out_index),e.next_out_index+=t,e.dstate.pending_out+=t,e.total_out+=t,e.avail_out-=t,e.dstate.pending-=t,e.dstate.pending===0&&(e.dstate.pending_out=0))}};function h1(e){const t=this,r=new Ou,i=m1(e&&e.chunkSize?e.chunkSize:64*1024),a=rn,s=new Uint8Array(i);let n=e?e.level:fi;typeof n>"u"&&(n=fi),r.deflateInit(n),r.next_out=s,t.append=function(o,l){let p,c,d=0,m=0,y=0;const T=[];if(o.length){r.next_in_index=0,r.next_in=o,r.avail_in=o.length;do{if(r.next_out_index=0,r.avail_out=i,p=r.deflate(a),p!=Ct)throw new Error("deflating: "+r.msg);r.next_out_index&&(r.next_out_index==i?T.push(new Uint8Array(s)):T.push(s.subarray(0,r.next_out_index))),y+=r.next_out_index,l&&r.next_in_index>0&&r.next_in_index!=d&&(l(r.next_in_index),d=r.next_in_index)}while(r.avail_in>0||r.avail_out===0);return T.length>1?(c=new Uint8Array(y),T.forEach(function(g){c.set(g,m),m+=g.length})):c=T[0]?new Uint8Array(T[0]):new Uint8Array,c}},t.flush=function(){let o,l,p=0,c=0;const d=[];do{if(r.next_out_index=0,r.avail_out=i,o=r.deflate(ct),o!=Su&&o!=Ct)throw new Error("deflating: "+r.msg);i-r.avail_out>0&&d.push(s.slice(0,r.next_out_index)),c+=r.next_out_index}while(r.avail_in>0||r.avail_out===0);return r.deflateEnd(),l=new Uint8Array(c),d.forEach(function(m){l.set(m,p),p+=m.length}),l}}function m1(e){return e+5*(Math.floor(e/16383)+1)}const y1=15,ve=0,ir=1,g1=2,dt=-2,Le=-3,Mf=-4,ar=-5,_t=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],Au=1440,w1=0,b1=4,_1=9,v1=5,x1=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],k1=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],P1=[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],E1=[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,112,112],S1=[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],T1=[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],pr=15;function ho(){const e=this;let t,r,i,a,s,n;function o(p,c,d,m,y,T,g,w,b,O,E){let I,$,L,C,_,F,P,S,j,R,D,V,B,Y,G;R=0,_=d;do i[p[c+R]]++,R++,_--;while(_!==0);if(i[0]==d)return g[0]=-1,w[0]=0,ve;for(S=w[0],F=1;F<=pr&&i[F]===0;F++);for(P=F,S<F&&(S=F),_=pr;_!==0&&i[_]===0;_--);for(L=_,S>_&&(S=_),w[0]=S,Y=1<<F;F<_;F++,Y<<=1)if((Y-=i[F])<0)return Le;if((Y-=i[_])<0)return Le;for(i[_]+=Y,n[1]=F=0,R=1,B=2;--_!==0;)n[B]=F+=i[R],B++,R++;_=0,R=0;do(F=p[c+R])!==0&&(E[n[F]++]=_),R++;while(++_<d);for(d=n[L],n[0]=_=0,R=0,C=-1,V=-S,s[0]=0,D=0,G=0;P<=L;P++)for(I=i[P];I--!==0;){for(;P>V+S;){if(C++,V+=S,G=L-V,G=G>S?S:G,($=1<<(F=P-V))>I+1&&($-=I+1,B=P,F<G))for(;++F<G&&!(($<<=1)<=i[++B]);)$-=i[B];if(G=1<<F,O[0]+G>Au)return Le;s[C]=D=O[0],O[0]+=G,C!==0?(n[C]=_,a[0]=F,a[1]=S,F=_>>>V-S,a[2]=D-s[C-1]-F,b.set(a,(s[C-1]+F)*3)):g[0]=D}for(a[1]=P-V,R>=d?a[0]=192:E[R]<m?(a[0]=E[R]<256?0:96,a[2]=E[R++]):(a[0]=T[E[R]-m]+16+64,a[2]=y[E[R++]-m]),$=1<<P-V,F=_>>>V;F<G;F+=$)b.set(a,(D+F)*3);for(F=1<<P-1;_&F;F>>>=1)_^=F;for(_^=F,j=(1<<V)-1;(_&j)!=n[C];)C--,V-=S,j=(1<<V)-1}return Y!==0&&L!=1?ar:ve}function l(p){let c;for(t||(t=[],r=[],i=new Int32Array(pr+1),a=[],s=new Int32Array(pr),n=new Int32Array(pr+1)),r.length<p&&(r=[]),c=0;c<p;c++)r[c]=0;for(c=0;c<pr+1;c++)i[c]=0;for(c=0;c<3;c++)a[c]=0;s.set(i.subarray(0,pr),0),n.set(i.subarray(0,pr+1),0)}e.inflate_trees_bits=function(p,c,d,m,y){let T;return l(19),t[0]=0,T=o(p,0,19,19,null,null,d,c,m,t,r),T==Le?y.msg="oversubscribed dynamic bit lengths tree":(T==ar||c[0]===0)&&(y.msg="incomplete dynamic bit lengths tree",T=Le),T},e.inflate_trees_dynamic=function(p,c,d,m,y,T,g,w,b){let O;return l(288),t[0]=0,O=o(d,0,p,257,P1,E1,T,m,w,t,r),O!=ve||m[0]===0?(O==Le?b.msg="oversubscribed literal/length tree":O!=Mf&&(b.msg="incomplete literal/length tree",O=Le),O):(l(288),O=o(d,p,c,0,S1,T1,g,y,w,t,r),O!=ve||y[0]===0&&p>257?(O==Le?b.msg="oversubscribed distance tree":O==ar?(b.msg="incomplete distance tree",O=Le):O!=Mf&&(b.msg="empty distance tree with lengths",O=Le),O):ve)}}ho.inflate_trees_fixed=function(e,t,r,i){return e[0]=_1,t[0]=v1,r[0]=x1,i[0]=k1,ve};const Rs=0,Wf=1,Hf=2,zf=3,Vf=4,Zf=5,Gf=6,ja=7,Yf=8,Fs=9;function O1(){const e=this;let t,r=0,i,a=0,s=0,n=0,o=0,l=0,p=0,c=0,d,m=0,y,T=0;function g(w,b,O,E,I,$,L,C){let _,F,P,S,j,R,D,V,B,Y,G,te,z,X,ee,Z;D=C.next_in_index,V=C.avail_in,j=L.bitb,R=L.bitk,B=L.write,Y=B<L.read?L.read-B-1:L.end-B,G=_t[w],te=_t[b];do{for(;R<20;)V--,j|=(C.read_byte(D++)&255)<<R,R+=8;if(_=j&G,F=O,P=E,Z=(P+_)*3,(S=F[Z])===0){j>>=F[Z+1],R-=F[Z+1],L.win[B++]=F[Z+2],Y--;continue}do{if(j>>=F[Z+1],R-=F[Z+1],S&16){for(S&=15,z=F[Z+2]+(j&_t[S]),j>>=S,R-=S;R<15;)V--,j|=(C.read_byte(D++)&255)<<R,R+=8;_=j&te,F=I,P=$,Z=(P+_)*3,S=F[Z];do if(j>>=F[Z+1],R-=F[Z+1],S&16){for(S&=15;R<S;)V--,j|=(C.read_byte(D++)&255)<<R,R+=8;if(X=F[Z+2]+(j&_t[S]),j>>=S,R-=S,Y-=z,B>=X)ee=B-X,B-ee>0&&2>B-ee?(L.win[B++]=L.win[ee++],L.win[B++]=L.win[ee++],z-=2):(L.win.set(L.win.subarray(ee,ee+2),B),B+=2,ee+=2,z-=2);else{ee=B-X;do ee+=L.end;while(ee<0);if(S=L.end-ee,z>S){if(z-=S,B-ee>0&&S>B-ee)do L.win[B++]=L.win[ee++];while(--S!==0);else L.win.set(L.win.subarray(ee,ee+S),B),B+=S,ee+=S,S=0;ee=0}}if(B-ee>0&&z>B-ee)do L.win[B++]=L.win[ee++];while(--z!==0);else L.win.set(L.win.subarray(ee,ee+z),B),B+=z,ee+=z,z=0;break}else if(!(S&64))_+=F[Z+2],_+=j&_t[S],Z=(P+_)*3,S=F[Z];else return C.msg="invalid distance code",z=C.avail_in-V,z=R>>3<z?R>>3:z,V+=z,D-=z,R-=z<<3,L.bitb=j,L.bitk=R,C.avail_in=V,C.total_in+=D-C.next_in_index,C.next_in_index=D,L.write=B,Le;while(!0);break}if(S&64)return S&32?(z=C.avail_in-V,z=R>>3<z?R>>3:z,V+=z,D-=z,R-=z<<3,L.bitb=j,L.bitk=R,C.avail_in=V,C.total_in+=D-C.next_in_index,C.next_in_index=D,L.write=B,ir):(C.msg="invalid literal/length code",z=C.avail_in-V,z=R>>3<z?R>>3:z,V+=z,D-=z,R-=z<<3,L.bitb=j,L.bitk=R,C.avail_in=V,C.total_in+=D-C.next_in_index,C.next_in_index=D,L.write=B,Le);if(_+=F[Z+2],_+=j&_t[S],Z=(P+_)*3,(S=F[Z])===0){j>>=F[Z+1],R-=F[Z+1],L.win[B++]=F[Z+2],Y--;break}}while(!0)}while(Y>=258&&V>=10);return z=C.avail_in-V,z=R>>3<z?R>>3:z,V+=z,D-=z,R-=z<<3,L.bitb=j,L.bitk=R,C.avail_in=V,C.total_in+=D-C.next_in_index,C.next_in_index=D,L.write=B,ve}e.init=function(w,b,O,E,I,$){t=Rs,p=w,c=b,d=O,m=E,y=I,T=$,i=null},e.proc=function(w,b,O){let E,I,$,L=0,C=0,_=0,F,P,S,j;for(_=b.next_in_index,F=b.avail_in,L=w.bitb,C=w.bitk,P=w.write,S=P<w.read?w.read-P-1:w.end-P;;)switch(t){case Rs:if(S>=258&&F>=10&&(w.bitb=L,w.bitk=C,b.avail_in=F,b.total_in+=_-b.next_in_index,b.next_in_index=_,w.write=P,O=g(p,c,d,m,y,T,w,b),_=b.next_in_index,F=b.avail_in,L=w.bitb,C=w.bitk,P=w.write,S=P<w.read?w.read-P-1:w.end-P,O!=ve)){t=O==ir?ja:Fs;break}s=p,i=d,a=m,t=Wf;case Wf:for(E=s;C<E;){if(F!==0)O=ve;else return w.bitb=L,w.bitk=C,b.avail_in=F,b.total_in+=_-b.next_in_index,b.next_in_index=_,w.write=P,w.inflate_flush(b,O);F--,L|=(b.read_byte(_++)&255)<<C,C+=8}if(I=(a+(L&_t[E]))*3,L>>>=i[I+1],C-=i[I+1],$=i[I],$===0){n=i[I+2],t=Gf;break}if($&16){o=$&15,r=i[I+2],t=Hf;break}if(!($&64)){s=$,a=I/3+i[I+2];break}if($&32){t=ja;break}return t=Fs,b.msg="invalid literal/length code",O=Le,w.bitb=L,w.bitk=C,b.avail_in=F,b.total_in+=_-b.next_in_index,b.next_in_index=_,w.write=P,w.inflate_flush(b,O);case Hf:for(E=o;C<E;){if(F!==0)O=ve;else return w.bitb=L,w.bitk=C,b.avail_in=F,b.total_in+=_-b.next_in_index,b.next_in_index=_,w.write=P,w.inflate_flush(b,O);F--,L|=(b.read_byte(_++)&255)<<C,C+=8}r+=L&_t[E],L>>=E,C-=E,s=c,i=y,a=T,t=zf;case zf:for(E=s;C<E;){if(F!==0)O=ve;else return w.bitb=L,w.bitk=C,b.avail_in=F,b.total_in+=_-b.next_in_index,b.next_in_index=_,w.write=P,w.inflate_flush(b,O);F--,L|=(b.read_byte(_++)&255)<<C,C+=8}if(I=(a+(L&_t[E]))*3,L>>=i[I+1],C-=i[I+1],$=i[I],$&16){o=$&15,l=i[I+2],t=Vf;break}if(!($&64)){s=$,a=I/3+i[I+2];break}return t=Fs,b.msg="invalid distance code",O=Le,w.bitb=L,w.bitk=C,b.avail_in=F,b.total_in+=_-b.next_in_index,b.next_in_index=_,w.write=P,w.inflate_flush(b,O);case Vf:for(E=o;C<E;){if(F!==0)O=ve;else return w.bitb=L,w.bitk=C,b.avail_in=F,b.total_in+=_-b.next_in_index,b.next_in_index=_,w.write=P,w.inflate_flush(b,O);F--,L|=(b.read_byte(_++)&255)<<C,C+=8}l+=L&_t[E],L>>=E,C-=E,t=Zf;case Zf:for(j=P-l;j<0;)j+=w.end;for(;r!==0;){if(S===0&&(P==w.end&&w.read!==0&&(P=0,S=P<w.read?w.read-P-1:w.end-P),S===0&&(w.write=P,O=w.inflate_flush(b,O),P=w.write,S=P<w.read?w.read-P-1:w.end-P,P==w.end&&w.read!==0&&(P=0,S=P<w.read?w.read-P-1:w.end-P),S===0)))return w.bitb=L,w.bitk=C,b.avail_in=F,b.total_in+=_-b.next_in_index,b.next_in_index=_,w.write=P,w.inflate_flush(b,O);w.win[P++]=w.win[j++],S--,j==w.end&&(j=0),r--}t=Rs;break;case Gf:if(S===0&&(P==w.end&&w.read!==0&&(P=0,S=P<w.read?w.read-P-1:w.end-P),S===0&&(w.write=P,O=w.inflate_flush(b,O),P=w.write,S=P<w.read?w.read-P-1:w.end-P,P==w.end&&w.read!==0&&(P=0,S=P<w.read?w.read-P-1:w.end-P),S===0)))return w.bitb=L,w.bitk=C,b.avail_in=F,b.total_in+=_-b.next_in_index,b.next_in_index=_,w.write=P,w.inflate_flush(b,O);O=ve,w.win[P++]=n,S--,t=Rs;break;case ja:if(C>7&&(C-=8,F++,_--),w.write=P,O=w.inflate_flush(b,O),P=w.write,S=P<w.read?w.read-P-1:w.end-P,w.read!=w.write)return w.bitb=L,w.bitk=C,b.avail_in=F,b.total_in+=_-b.next_in_index,b.next_in_index=_,w.write=P,w.inflate_flush(b,O);t=Yf;case Yf:return O=ir,w.bitb=L,w.bitk=C,b.avail_in=F,b.total_in+=_-b.next_in_index,b.next_in_index=_,w.write=P,w.inflate_flush(b,O);case Fs:return O=Le,w.bitb=L,w.bitk=C,b.avail_in=F,b.total_in+=_-b.next_in_index,b.next_in_index=_,w.write=P,w.inflate_flush(b,O);default:return O=dt,w.bitb=L,w.bitk=C,b.avail_in=F,b.total_in+=_-b.next_in_index,b.next_in_index=_,w.write=P,w.inflate_flush(b,O)}},e.free=function(){}}const Kf=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Jr=0,Na=1,Xf=2,Jf=3,Qf=4,ep=5,Ls=6,Is=7,tp=8,Pr=9;function A1(e,t){const r=this;let i=Jr,a=0,s=0,n=0,o;const l=[0],p=[0],c=new O1;let d=0,m=new Int32Array(Au*3);const y=0,T=new ho;r.bitk=0,r.bitb=0,r.win=new Uint8Array(t),r.end=t,r.read=0,r.write=0,r.reset=function(g,w){w&&(w[0]=y),i==Ls&&c.free(g),i=Jr,r.bitk=0,r.bitb=0,r.read=r.write=0},r.reset(e,null),r.inflate_flush=function(g,w){let b,O,E;return O=g.next_out_index,E=r.read,b=(E<=r.write?r.write:r.end)-E,b>g.avail_out&&(b=g.avail_out),b!==0&&w==ar&&(w=ve),g.avail_out-=b,g.total_out+=b,g.next_out.set(r.win.subarray(E,E+b),O),O+=b,E+=b,E==r.end&&(E=0,r.write==r.end&&(r.write=0),b=r.write-E,b>g.avail_out&&(b=g.avail_out),b!==0&&w==ar&&(w=ve),g.avail_out-=b,g.total_out+=b,g.next_out.set(r.win.subarray(E,E+b),O),O+=b,E+=b),g.next_out_index=O,r.read=E,w},r.proc=function(g,w){let b,O,E,I,$,L,C,_;for(I=g.next_in_index,$=g.avail_in,O=r.bitb,E=r.bitk,L=r.write,C=L<r.read?r.read-L-1:r.end-L;;){let F,P,S,j,R,D,V,B;switch(i){case Jr:for(;E<3;){if($!==0)w=ve;else return r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);$--,O|=(g.read_byte(I++)&255)<<E,E+=8}switch(b=O&7,d=b&1,b>>>1){case 0:O>>>=3,E-=3,b=E&7,O>>>=b,E-=b,i=Na;break;case 1:F=[],P=[],S=[[]],j=[[]],ho.inflate_trees_fixed(F,P,S,j),c.init(F[0],P[0],S[0],0,j[0],0),O>>>=3,E-=3,i=Ls;break;case 2:O>>>=3,E-=3,i=Jf;break;case 3:return O>>>=3,E-=3,i=Pr,g.msg="invalid block type",w=Le,r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w)}break;case Na:for(;E<32;){if($!==0)w=ve;else return r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);$--,O|=(g.read_byte(I++)&255)<<E,E+=8}if((~O>>>16&65535)!=(O&65535))return i=Pr,g.msg="invalid stored block lengths",w=Le,r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);a=O&65535,O=E=0,i=a!==0?Xf:d!==0?Is:Jr;break;case Xf:if($===0||C===0&&(L==r.end&&r.read!==0&&(L=0,C=L<r.read?r.read-L-1:r.end-L),C===0&&(r.write=L,w=r.inflate_flush(g,w),L=r.write,C=L<r.read?r.read-L-1:r.end-L,L==r.end&&r.read!==0&&(L=0,C=L<r.read?r.read-L-1:r.end-L),C===0)))return r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);if(w=ve,b=a,b>$&&(b=$),b>C&&(b=C),r.win.set(g.read_buf(I,b),L),I+=b,$-=b,L+=b,C-=b,(a-=b)!==0)break;i=d!==0?Is:Jr;break;case Jf:for(;E<14;){if($!==0)w=ve;else return r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);$--,O|=(g.read_byte(I++)&255)<<E,E+=8}if(s=b=O&16383,(b&31)>29||(b>>5&31)>29)return i=Pr,g.msg="too many length or distance symbols",w=Le,r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);if(b=258+(b&31)+(b>>5&31),!o||o.length<b)o=[];else for(_=0;_<b;_++)o[_]=0;O>>>=14,E-=14,n=0,i=Qf;case Qf:for(;n<4+(s>>>10);){for(;E<3;){if($!==0)w=ve;else return r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);$--,O|=(g.read_byte(I++)&255)<<E,E+=8}o[Kf[n++]]=O&7,O>>>=3,E-=3}for(;n<19;)o[Kf[n++]]=0;if(l[0]=7,b=T.inflate_trees_bits(o,l,p,m,g),b!=ve)return w=b,w==Le&&(o=null,i=Pr),r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);n=0,i=ep;case ep:for(;b=s,!(n>=258+(b&31)+(b>>5&31));){let Y,G;for(b=l[0];E<b;){if($!==0)w=ve;else return r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);$--,O|=(g.read_byte(I++)&255)<<E,E+=8}if(b=m[(p[0]+(O&_t[b]))*3+1],G=m[(p[0]+(O&_t[b]))*3+2],G<16)O>>>=b,E-=b,o[n++]=G;else{for(_=G==18?7:G-14,Y=G==18?11:3;E<b+_;){if($!==0)w=ve;else return r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);$--,O|=(g.read_byte(I++)&255)<<E,E+=8}if(O>>>=b,E-=b,Y+=O&_t[_],O>>>=_,E-=_,_=n,b=s,_+Y>258+(b&31)+(b>>5&31)||G==16&&_<1)return o=null,i=Pr,g.msg="invalid bit length repeat",w=Le,r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);G=G==16?o[_-1]:0;do o[_++]=G;while(--Y!==0);n=_}}if(p[0]=-1,R=[],D=[],V=[],B=[],R[0]=9,D[0]=6,b=s,b=T.inflate_trees_dynamic(257+(b&31),1+(b>>5&31),o,R,D,V,B,m,g),b!=ve)return b==Le&&(o=null,i=Pr),w=b,r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);c.init(R[0],D[0],m,V[0],m,B[0]),i=Ls;case Ls:if(r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,(w=c.proc(r,g,w))!=ir)return r.inflate_flush(g,w);if(w=ve,c.free(g),I=g.next_in_index,$=g.avail_in,O=r.bitb,E=r.bitk,L=r.write,C=L<r.read?r.read-L-1:r.end-L,d===0){i=Jr;break}i=Is;case Is:if(r.write=L,w=r.inflate_flush(g,w),L=r.write,C=L<r.read?r.read-L-1:r.end-L,r.read!=r.write)return r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);i=tp;case tp:return w=ir,r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);case Pr:return w=Le,r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);default:return w=dt,r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w)}}},r.free=function(g){r.reset(g,null),r.win=null,m=null},r.set_dictionary=function(g,w,b){r.win.set(g.subarray(w,w+b),0),r.read=r.write=b},r.sync_point=function(){return i==Na?1:0}}const $1=32,R1=8,F1=0,rp=1,np=2,sp=3,ip=4,ap=5,Da=6,Tn=7,op=12,cr=13,L1=[0,0,255,255];function I1(){const e=this;e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0;function t(r){return!r||!r.istate?dt:(r.total_in=r.total_out=0,r.msg=null,r.istate.mode=Tn,r.istate.blocks.reset(r,null),ve)}e.inflateEnd=function(r){return e.blocks&&e.blocks.free(r),e.blocks=null,ve},e.inflateInit=function(r,i){return r.msg=null,e.blocks=null,i<8||i>15?(e.inflateEnd(r),dt):(e.wbits=i,r.istate.blocks=new A1(r,1<<i),t(r),ve)},e.inflate=function(r,i){let a,s;if(!r||!r.istate||!r.next_in)return dt;const n=r.istate;for(i=i==b1?ar:ve,a=ar;;)switch(n.mode){case F1:if(r.avail_in===0)return a;if(a=i,r.avail_in--,r.total_in++,((n.method=r.read_byte(r.next_in_index++))&15)!=R1){n.mode=cr,r.msg="unknown compression method",n.marker=5;break}if((n.method>>4)+8>n.wbits){n.mode=cr,r.msg="invalid win size",n.marker=5;break}n.mode=rp;case rp:if(r.avail_in===0)return a;if(a=i,r.avail_in--,r.total_in++,s=r.read_byte(r.next_in_index++)&255,((n.method<<8)+s)%31!==0){n.mode=cr,r.msg="incorrect header check",n.marker=5;break}if(!(s&$1)){n.mode=Tn;break}n.mode=np;case np:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,n.need=(r.read_byte(r.next_in_index++)&255)<<24&4278190080,n.mode=sp;case sp:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,n.need+=(r.read_byte(r.next_in_index++)&255)<<16&16711680,n.mode=ip;case ip:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,n.need+=(r.read_byte(r.next_in_index++)&255)<<8&65280,n.mode=ap;case ap:return r.avail_in===0?a:(a=i,r.avail_in--,r.total_in++,n.need+=r.read_byte(r.next_in_index++)&255,n.mode=Da,g1);case Da:return n.mode=cr,r.msg="need dictionary",n.marker=0,dt;case Tn:if(a=n.blocks.proc(r,a),a==Le){n.mode=cr,n.marker=0;break}if(a==ve&&(a=i),a!=ir)return a;a=i,n.blocks.reset(r,n.was),n.mode=op;case op:return r.avail_in=0,ir;case cr:return Le;default:return dt}},e.inflateSetDictionary=function(r,i,a){let s=0,n=a;if(!r||!r.istate||r.istate.mode!=Da)return dt;const o=r.istate;return n>=1<<o.wbits&&(n=(1<<o.wbits)-1,s=a-n),o.blocks.set_dictionary(i,s,n),o.mode=Tn,ve},e.inflateSync=function(r){let i,a,s,n,o;if(!r||!r.istate)return dt;const l=r.istate;if(l.mode!=cr&&(l.mode=cr,l.marker=0),(i=r.avail_in)===0)return ar;for(a=r.next_in_index,s=l.marker;i!==0&&s<4;)r.read_byte(a)==L1[s]?s++:r.read_byte(a)!==0?s=0:s=4-s,a++,i--;return r.total_in+=a-r.next_in_index,r.next_in_index=a,r.avail_in=i,l.marker=s,s!=4?Le:(n=r.total_in,o=r.total_out,t(r),r.total_in=n,r.total_out=o,l.mode=Tn,ve)},e.inflateSyncPoint=function(r){return!r||!r.istate||!r.istate.blocks?dt:r.istate.blocks.sync_point()}}function $u(){}$u.prototype={inflateInit(e){const t=this;return t.istate=new I1,e||(e=y1),t.istate.inflateInit(t,e)},inflate(e){const t=this;return t.istate?t.istate.inflate(t,e):dt},inflateEnd(){const e=this;if(!e.istate)return dt;const t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync(){const e=this;return e.istate?e.istate.inflateSync(e):dt},inflateSetDictionary(e,t){const r=this;return r.istate?r.istate.inflateSetDictionary(r,e,t):dt},read_byte(e){return this.next_in[e]},read_buf(e,t){return this.next_in.subarray(e,e+t)}};function C1(e){const t=this,r=new $u,i=e&&e.chunkSize?Math.floor(e.chunkSize*2):128*1024,a=w1,s=new Uint8Array(i);let n=!1;r.inflateInit(),r.next_out=s,t.append=function(o,l){const p=[];let c,d,m=0,y=0,T=0;if(o.length!==0){r.next_in_index=0,r.next_in=o,r.avail_in=o.length;do{if(r.next_out_index=0,r.avail_out=i,r.avail_in===0&&!n&&(r.next_in_index=0,n=!0),c=r.inflate(a),n&&c===ar){if(r.avail_in!==0)throw new Error("inflating: bad input")}else if(c!==ve&&c!==ir)throw new Error("inflating: "+r.msg);if((n||c===ir)&&r.avail_in===o.length)throw new Error("inflating: bad input");r.next_out_index&&(r.next_out_index===i?p.push(new Uint8Array(s)):p.push(s.subarray(0,r.next_out_index))),T+=r.next_out_index,l&&r.next_in_index>0&&r.next_in_index!=m&&(l(r.next_in_index),m=r.next_in_index)}while(r.avail_in>0||r.avail_out===0);return p.length>1?(d=new Uint8Array(T),p.forEach(function(g){d.set(g,y),y+=g.length})):d=p[0]?new Uint8Array(p[0]):new Uint8Array,d}},t.flush=function(){r.inflateEnd()}}const Lr=4294967295,yr=65535,j1=8,N1=0,D1=99,U1=67324752,B1=134695760,lp=33639248,q1=101010256,fp=101075792,M1=117853008,Qr=22,Ua=20,Ba=56,W1=1,H1=39169,z1=10,V1=1,Z1=21589,G1=28789,Y1=25461,K1=6534,pp=1,X1=6,cp=8,up=2048,dp=16,hp=16384,mp=73,yp="/",ft=void 0,kr="undefined",ms="function";class gp{constructor(t){return class extends TransformStream{constructor(r,i){const a=new t(i);super({transform(s,n){n.enqueue(a.append(s))},flush(s){const n=a.flush();n&&s.enqueue(n)}})}}}}const J1=64;let Ru=2;try{typeof navigator!=kr&&navigator.hardwareConcurrency&&(Ru=navigator.hardwareConcurrency)}catch{}const Q1={chunkSize:512*1024,maxWorkers:Ru,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:ft,CompressionStreamNative:typeof CompressionStream!=kr&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=kr&&DecompressionStream},gr=Object.assign({},Q1);function eb(){return gr}function tb(e){return Math.max(e.chunkSize,J1)}function Mo(e){const{baseURL:t,chunkSize:r,maxWorkers:i,terminateWorkerTimeout:a,useCompressionStream:s,useWebWorkers:n,Deflate:o,Inflate:l,CompressionStream:p,DecompressionStream:c,workerScripts:d}=e;if(ur("baseURL",t),ur("chunkSize",r),ur("maxWorkers",i),ur("terminateWorkerTimeout",a),ur("useCompressionStream",s),ur("useWebWorkers",n),o&&(gr.CompressionStream=new gp(o)),l&&(gr.DecompressionStream=new gp(l)),ur("CompressionStream",p),ur("DecompressionStream",c),d!==ft){const{deflate:m,inflate:y}=d;if((m||y)&&(gr.workerScripts||(gr.workerScripts={})),m){if(!Array.isArray(m))throw new Error("workerScripts.deflate must be an array");gr.workerScripts.deflate=m}if(y){if(!Array.isArray(y))throw new Error("workerScripts.inflate must be an array");gr.workerScripts.inflate=y}}}function ur(e,t){t!==ft&&(gr[e]=t)}const qa={application:{"andrew-inset":"ez",annodex:"anx","atom+xml":"atom","atomcat+xml":"atomcat","atomserv+xml":"atomsrv",bbolin:"lin","cu-seeme":"cu","davmount+xml":"davmount",dsptype:"tsp",ecmascript:["es","ecma"],futuresplash:"spl",hta:"hta","java-archive":"jar","java-serialized-object":"ser","java-vm":"class",m3g:"m3g","mac-binhex40":"hqx",mathematica:["nb","ma","mb"],msaccess:"mdb",msword:["doc","dot","wiz"],mxf:"mxf",oda:"oda",ogg:"ogx",pdf:"pdf","pgp-keys":"key","pgp-signature":["asc","sig"],"pics-rules":"prf",postscript:["ps","ai","eps","epsi","epsf","eps2","eps3"],rar:"rar","rdf+xml":"rdf","rss+xml":"rss",rtf:"rtf","xhtml+xml":["xhtml","xht"],xml:["xml","xsl","xsd","xpdl"],"xspf+xml":"xspf",zip:"zip","vnd.android.package-archive":"apk","vnd.cinderella":"cdy","vnd.google-earth.kml+xml":"kml","vnd.google-earth.kmz":"kmz","vnd.mozilla.xul+xml":"xul","vnd.ms-excel":["xls","xlb","xlt","xlm","xla","xlc","xlw"],"vnd.ms-pki.seccat":"cat","vnd.ms-pki.stl":"stl","vnd.ms-powerpoint":["ppt","pps","pot","ppa","pwz"],"vnd.oasis.opendocument.chart":"odc","vnd.oasis.opendocument.database":"odb","vnd.oasis.opendocument.formula":"odf","vnd.oasis.opendocument.graphics":"odg","vnd.oasis.opendocument.graphics-template":"otg","vnd.oasis.opendocument.image":"odi","vnd.oasis.opendocument.presentation":"odp","vnd.oasis.opendocument.presentation-template":"otp","vnd.oasis.opendocument.spreadsheet":"ods","vnd.oasis.opendocument.spreadsheet-template":"ots","vnd.oasis.opendocument.text":"odt","vnd.oasis.opendocument.text-master":["odm","otm"],"vnd.oasis.opendocument.text-template":"ott","vnd.oasis.opendocument.text-web":"oth","vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","vnd.openxmlformats-officedocument.spreadsheetml.template":"xltx","vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","vnd.openxmlformats-officedocument.presentationml.slideshow":"ppsx","vnd.openxmlformats-officedocument.presentationml.template":"potx","vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","vnd.openxmlformats-officedocument.wordprocessingml.template":"dotx","vnd.smaf":"mmf","vnd.stardivision.calc":"sdc","vnd.stardivision.chart":"sds","vnd.stardivision.draw":"sda","vnd.stardivision.impress":"sdd","vnd.stardivision.math":["sdf","smf"],"vnd.stardivision.writer":["sdw","vor"],"vnd.stardivision.writer-global":"sgl","vnd.sun.xml.calc":"sxc","vnd.sun.xml.calc.template":"stc","vnd.sun.xml.draw":"sxd","vnd.sun.xml.draw.template":"std","vnd.sun.xml.impress":"sxi","vnd.sun.xml.impress.template":"sti","vnd.sun.xml.math":"sxm","vnd.sun.xml.writer":"sxw","vnd.sun.xml.writer.global":"sxg","vnd.sun.xml.writer.template":"stw","vnd.symbian.install":["sis","sisx"],"vnd.visio":["vsd","vst","vss","vsw","vsdx","vssx","vstx","vssm","vstm"],"vnd.wap.wbxml":"wbxml","vnd.wap.wmlc":"wmlc","vnd.wap.wmlscriptc":"wmlsc","vnd.wordperfect":"wpd","vnd.wordperfect5.1":"wp5","x-123":"wk","x-7z-compressed":"7z","x-abiword":"abw","x-apple-diskimage":"dmg","x-bcpio":"bcpio","x-bittorrent":"torrent","x-cbr":["cbr","cba","cbt","cb7"],"x-cbz":"cbz","x-cdf":["cdf","cda"],"x-cdlink":"vcd","x-chess-pgn":"pgn","x-cpio":"cpio","x-csh":"csh","x-director":["dir","dxr","cst","cct","cxt","w3d","fgd","swa"],"x-dms":"dms","x-doom":"wad","x-dvi":"dvi","x-httpd-eruby":"rhtml","x-font":"pcf.Z","x-freemind":"mm","x-gnumeric":"gnumeric","x-go-sgf":"sgf","x-graphing-calculator":"gcf","x-gtar":["gtar","taz"],"x-hdf":"hdf","x-httpd-php":["phtml","pht","php"],"x-httpd-php-source":"phps","x-httpd-php3":"php3","x-httpd-php3-preprocessed":"php3p","x-httpd-php4":"php4","x-httpd-php5":"php5","x-ica":"ica","x-info":"info","x-internet-signup":["ins","isp"],"x-iphone":"iii","x-iso9660-image":"iso","x-java-jnlp-file":"jnlp","x-jmol":"jmz","x-killustrator":"kil","x-latex":"latex","x-lyx":"lyx","x-lzx":"lzx","x-maker":["frm","fb","fbdoc"],"x-ms-wmd":"wmd","x-msdos-program":["com","exe","bat","dll"],"x-netcdf":["nc"],"x-ns-proxy-autoconfig":["pac","dat"],"x-nwc":"nwc","x-object":"o","x-oz-application":"oza","x-pkcs7-certreqresp":"p7r","x-python-code":["pyc","pyo"],"x-qgis":["qgs","shp","shx"],"x-quicktimeplayer":"qtl","x-redhat-package-manager":["rpm","rpa"],"x-ruby":"rb","x-sh":"sh","x-shar":"shar","x-shockwave-flash":["swf","swfl"],"x-silverlight":"scr","x-stuffit":"sit","x-sv4cpio":"sv4cpio","x-sv4crc":"sv4crc","x-tar":"tar","x-tex-gf":"gf","x-tex-pk":"pk","x-texinfo":["texinfo","texi"],"x-trash":["~","%","bak","old","sik"],"x-ustar":"ustar","x-wais-source":"src","x-wingz":"wz","x-x509-ca-cert":["crt","der","cer"],"x-xcf":"xcf","x-xfig":"fig","x-xpinstall":"xpi",applixware:"aw","atomsvc+xml":"atomsvc","ccxml+xml":"ccxml","cdmi-capability":"cdmia","cdmi-container":"cdmic","cdmi-domain":"cdmid","cdmi-object":"cdmio","cdmi-queue":"cdmiq","docbook+xml":"dbk","dssc+der":"dssc","dssc+xml":"xdssc","emma+xml":"emma","epub+zip":"epub",exi:"exi","font-tdpfr":"pfr","gml+xml":"gml","gpx+xml":"gpx",gxf:"gxf",hyperstudio:"stk","inkml+xml":["ink","inkml"],ipfix:"ipfix","jsonml+json":"jsonml","lost+xml":"lostxml","mads+xml":"mads",marc:"mrc","marcxml+xml":"mrcx","mathml+xml":["mathml","mml"],mbox:"mbox","mediaservercontrol+xml":"mscml","metalink+xml":"metalink","metalink4+xml":"meta4","mets+xml":"mets","mods+xml":"mods",mp21:["m21","mp21"],mp4:"mp4s","oebps-package+xml":"opf","omdoc+xml":"omdoc",onenote:["onetoc","onetoc2","onetmp","onepkg"],oxps:"oxps","patch-ops-error+xml":"xer","pgp-encrypted":"pgp",pkcs10:"p10","pkcs7-mime":["p7m","p7c"],"pkcs7-signature":"p7s",pkcs8:"p8","pkix-attr-cert":"ac","pkix-crl":"crl","pkix-pkipath":"pkipath",pkixcmp:"pki","pls+xml":"pls","prs.cww":"cww","pskc+xml":"pskcxml","reginfo+xml":"rif","relax-ng-compact-syntax":"rnc","resource-lists+xml":"rl","resource-lists-diff+xml":"rld","rls-services+xml":"rs","rpki-ghostbusters":"gbr","rpki-manifest":"mft","rpki-roa":"roa","rsd+xml":"rsd","sbml+xml":"sbml","scvp-cv-request":"scq","scvp-cv-response":"scs","scvp-vp-request":"spq","scvp-vp-response":"spp",sdp:"sdp","set-payment-initiation":"setpay","set-registration-initiation":"setreg","shf+xml":"shf","sparql-query":"rq","sparql-results+xml":"srx",srgs:"gram","srgs+xml":"grxml","sru+xml":"sru","ssdl+xml":"ssdl","ssml+xml":"ssml","tei+xml":["tei","teicorpus"],"thraud+xml":"tfi","timestamped-data":"tsd","vnd.3gpp.pic-bw-large":"plb","vnd.3gpp.pic-bw-small":"psb","vnd.3gpp.pic-bw-var":"pvb","vnd.3gpp2.tcap":"tcap","vnd.3m.post-it-notes":"pwn","vnd.accpac.simply.aso":"aso","vnd.accpac.simply.imp":"imp","vnd.acucobol":"acu","vnd.acucorp":["atc","acutc"],"vnd.adobe.air-application-installer-package+zip":"air","vnd.adobe.formscentral.fcdt":"fcdt","vnd.adobe.fxp":["fxp","fxpl"],"vnd.adobe.xdp+xml":"xdp","vnd.adobe.xfdf":"xfdf","vnd.ahead.space":"ahead","vnd.airzip.filesecure.azf":"azf","vnd.airzip.filesecure.azs":"azs","vnd.amazon.ebook":"azw","vnd.americandynamics.acc":"acc","vnd.amiga.ami":"ami","vnd.anser-web-certificate-issue-initiation":"cii","vnd.anser-web-funds-transfer-initiation":"fti","vnd.antix.game-component":"atx","vnd.apple.installer+xml":"mpkg","vnd.apple.mpegurl":"m3u8","vnd.aristanetworks.swi":"swi","vnd.astraea-software.iota":"iota","vnd.audiograph":"aep","vnd.blueice.multipass":"mpm","vnd.bmi":"bmi","vnd.businessobjects":"rep","vnd.chemdraw+xml":"cdxml","vnd.chipnuts.karaoke-mmd":"mmd","vnd.claymore":"cla","vnd.cloanto.rp9":"rp9","vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"vnd.cluetrust.cartomobile-config":"c11amc","vnd.cluetrust.cartomobile-config-pkg":"c11amz","vnd.commonspace":"csp","vnd.contact.cmsg":"cdbcmsg","vnd.cosmocaller":"cmc","vnd.crick.clicker":"clkx","vnd.crick.clicker.keyboard":"clkk","vnd.crick.clicker.palette":"clkp","vnd.crick.clicker.template":"clkt","vnd.crick.clicker.wordbank":"clkw","vnd.criticaltools.wbs+xml":"wbs","vnd.ctc-posml":"pml","vnd.cups-ppd":"ppd","vnd.curl.car":"car","vnd.curl.pcurl":"pcurl","vnd.dart":"dart","vnd.data-vision.rdz":"rdz","vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"vnd.dece.ttml+xml":["uvt","uvvt"],"vnd.dece.unspecified":["uvx","uvvx"],"vnd.dece.zip":["uvz","uvvz"],"vnd.denovo.fcselayout-link":"fe_launch","vnd.dna":"dna","vnd.dolby.mlp":"mlp","vnd.dpgraph":"dpg","vnd.dreamfactory":"dfac","vnd.ds-keypoint":"kpxx","vnd.dvb.ait":"ait","vnd.dvb.service":"svc","vnd.dynageo":"geo","vnd.ecowin.chart":"mag","vnd.enliven":"nml","vnd.epson.esf":"esf","vnd.epson.msf":"msf","vnd.epson.quickanime":"qam","vnd.epson.salt":"slt","vnd.epson.ssf":"ssf","vnd.eszigno3+xml":["es3","et3"],"vnd.ezpix-album":"ez2","vnd.ezpix-package":"ez3","vnd.fdf":"fdf","vnd.fdsn.mseed":"mseed","vnd.fdsn.seed":["seed","dataless"],"vnd.flographit":"gph","vnd.fluxtime.clip":"ftc","vnd.framemaker":["fm","frame","maker","book"],"vnd.frogans.fnc":"fnc","vnd.frogans.ltf":"ltf","vnd.fsc.weblaunch":"fsc","vnd.fujitsu.oasys":"oas","vnd.fujitsu.oasys2":"oa2","vnd.fujitsu.oasys3":"oa3","vnd.fujitsu.oasysgp":"fg5","vnd.fujitsu.oasysprs":"bh2","vnd.fujixerox.ddd":"ddd","vnd.fujixerox.docuworks":"xdw","vnd.fujixerox.docuworks.binder":"xbd","vnd.fuzzysheet":"fzs","vnd.genomatix.tuxedo":"txd","vnd.geogebra.file":"ggb","vnd.geogebra.tool":"ggt","vnd.geometry-explorer":["gex","gre"],"vnd.geonext":"gxt","vnd.geoplan":"g2w","vnd.geospace":"g3w","vnd.gmx":"gmx","vnd.grafeq":["gqf","gqs"],"vnd.groove-account":"gac","vnd.groove-help":"ghf","vnd.groove-identity-message":"gim","vnd.groove-injector":"grv","vnd.groove-tool-message":"gtm","vnd.groove-tool-template":"tpl","vnd.groove-vcard":"vcg","vnd.hal+xml":"hal","vnd.handheld-entertainment+xml":"zmm","vnd.hbci":"hbci","vnd.hhe.lesson-player":"les","vnd.hp-hpgl":"hpgl","vnd.hp-hpid":"hpid","vnd.hp-hps":"hps","vnd.hp-jlyt":"jlt","vnd.hp-pcl":"pcl","vnd.hp-pclxl":"pclxl","vnd.hydrostatix.sof-data":"sfd-hdstx","vnd.ibm.minipay":"mpy","vnd.ibm.modcap":["afp","listafp","list3820"],"vnd.ibm.rights-management":"irm","vnd.ibm.secure-container":"sc","vnd.iccprofile":["icc","icm"],"vnd.igloader":"igl","vnd.immervision-ivp":"ivp","vnd.immervision-ivu":"ivu","vnd.insors.igm":"igm","vnd.intercon.formnet":["xpw","xpx"],"vnd.intergeo":"i2g","vnd.intu.qbo":"qbo","vnd.intu.qfx":"qfx","vnd.ipunplugged.rcprofile":"rcprofile","vnd.irepository.package+xml":"irp","vnd.is-xpr":"xpr","vnd.isac.fcs":"fcs","vnd.jam":"jam","vnd.jcp.javame.midlet-rms":"rms","vnd.jisp":"jisp","vnd.joost.joda-archive":"joda","vnd.kahootz":["ktz","ktr"],"vnd.kde.karbon":"karbon","vnd.kde.kchart":"chrt","vnd.kde.kformula":"kfo","vnd.kde.kivio":"flw","vnd.kde.kontour":"kon","vnd.kde.kpresenter":["kpr","kpt"],"vnd.kde.kspread":"ksp","vnd.kde.kword":["kwd","kwt"],"vnd.kenameaapp":"htke","vnd.kidspiration":"kia","vnd.kinar":["kne","knp"],"vnd.koan":["skp","skd","skt","skm"],"vnd.kodak-descriptor":"sse","vnd.las.las+xml":"lasxml","vnd.llamagraphics.life-balance.desktop":"lbd","vnd.llamagraphics.life-balance.exchange+xml":"lbe","vnd.lotus-1-2-3":"123","vnd.lotus-approach":"apr","vnd.lotus-freelance":"pre","vnd.lotus-notes":"nsf","vnd.lotus-organizer":"org","vnd.lotus-screencam":"scm","vnd.lotus-wordpro":"lwp","vnd.macports.portpkg":"portpkg","vnd.mcd":"mcd","vnd.medcalcdata":"mc1","vnd.mediastation.cdkey":"cdkey","vnd.mfer":"mwf","vnd.mfmp":"mfm","vnd.micrografx.flo":"flo","vnd.micrografx.igx":"igx","vnd.mif":"mif","vnd.mobius.daf":"daf","vnd.mobius.dis":"dis","vnd.mobius.mbk":"mbk","vnd.mobius.mqy":"mqy","vnd.mobius.msl":"msl","vnd.mobius.plc":"plc","vnd.mobius.txf":"txf","vnd.mophun.application":"mpn","vnd.mophun.certificate":"mpc","vnd.ms-artgalry":"cil","vnd.ms-cab-compressed":"cab","vnd.ms-excel.addin.macroenabled.12":"xlam","vnd.ms-excel.sheet.binary.macroenabled.12":"xlsb","vnd.ms-excel.sheet.macroenabled.12":"xlsm","vnd.ms-excel.template.macroenabled.12":"xltm","vnd.ms-fontobject":"eot","vnd.ms-htmlhelp":"chm","vnd.ms-ims":"ims","vnd.ms-lrm":"lrm","vnd.ms-officetheme":"thmx","vnd.ms-powerpoint.addin.macroenabled.12":"ppam","vnd.ms-powerpoint.presentation.macroenabled.12":"pptm","vnd.ms-powerpoint.slide.macroenabled.12":"sldm","vnd.ms-powerpoint.slideshow.macroenabled.12":"ppsm","vnd.ms-powerpoint.template.macroenabled.12":"potm","vnd.ms-project":["mpp","mpt"],"vnd.ms-word.document.macroenabled.12":"docm","vnd.ms-word.template.macroenabled.12":"dotm","vnd.ms-works":["wps","wks","wcm","wdb"],"vnd.ms-wpl":"wpl","vnd.ms-xpsdocument":"xps","vnd.mseq":"mseq","vnd.musician":"mus","vnd.muvee.style":"msty","vnd.mynfc":"taglet","vnd.neurolanguage.nlu":"nlu","vnd.nitf":["ntf","nitf"],"vnd.noblenet-directory":"nnd","vnd.noblenet-sealer":"nns","vnd.noblenet-web":"nnw","vnd.nokia.n-gage.data":"ngdat","vnd.nokia.n-gage.symbian.install":"n-gage","vnd.nokia.radio-preset":"rpst","vnd.nokia.radio-presets":"rpss","vnd.novadigm.edm":"edm","vnd.novadigm.edx":"edx","vnd.novadigm.ext":"ext","vnd.oasis.opendocument.chart-template":"otc","vnd.oasis.opendocument.formula-template":"odft","vnd.oasis.opendocument.image-template":"oti","vnd.olpc-sugar":"xo","vnd.oma.dd2+xml":"dd2","vnd.openofficeorg.extension":"oxt","vnd.openxmlformats-officedocument.presentationml.slide":"sldx","vnd.osgeo.mapguide.package":"mgp","vnd.osgi.dp":"dp","vnd.osgi.subsystem":"esa","vnd.palm":["pdb","pqa","oprc"],"vnd.pawaafile":"paw","vnd.pg.format":"str","vnd.pg.osasli":"ei6","vnd.picsel":"efif","vnd.pmi.widget":"wg","vnd.pocketlearn":"plf","vnd.powerbuilder6":"pbd","vnd.previewsystems.box":"box","vnd.proteus.magazine":"mgz","vnd.publishare-delta-tree":"qps","vnd.pvi.ptid1":"ptid","vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"vnd.realvnc.bed":"bed","vnd.recordare.musicxml":"mxl","vnd.recordare.musicxml+xml":"musicxml","vnd.rig.cryptonote":"cryptonote","vnd.rn-realmedia":"rm","vnd.rn-realmedia-vbr":"rmvb","vnd.route66.link66+xml":"link66","vnd.sailingtracker.track":"st","vnd.seemail":"see","vnd.sema":"sema","vnd.semd":"semd","vnd.semf":"semf","vnd.shana.informed.formdata":"ifm","vnd.shana.informed.formtemplate":"itp","vnd.shana.informed.interchange":"iif","vnd.shana.informed.package":"ipk","vnd.simtech-mindmapper":["twd","twds"],"vnd.smart.teacher":"teacher","vnd.solent.sdkm+xml":["sdkm","sdkd"],"vnd.spotfire.dxp":"dxp","vnd.spotfire.sfs":"sfs","vnd.stepmania.package":"smzip","vnd.stepmania.stepchart":"sm","vnd.sus-calendar":["sus","susp"],"vnd.svd":"svd","vnd.syncml+xml":"xsm","vnd.syncml.dm+wbxml":"bdm","vnd.syncml.dm+xml":"xdm","vnd.tao.intent-module-archive":"tao","vnd.tcpdump.pcap":["pcap","cap","dmp"],"vnd.tmobile-livetv":"tmo","vnd.trid.tpt":"tpt","vnd.triscape.mxs":"mxs","vnd.trueapp":"tra","vnd.ufdl":["ufd","ufdl"],"vnd.uiq.theme":"utz","vnd.umajin":"umj","vnd.unity":"unityweb","vnd.uoml+xml":"uoml","vnd.vcx":"vcx","vnd.visionary":"vis","vnd.vsf":"vsf","vnd.webturbo":"wtb","vnd.wolfram.player":"nbp","vnd.wqd":"wqd","vnd.wt.stf":"stf","vnd.xara":"xar","vnd.xfdl":"xfdl","vnd.yamaha.hv-dic":"hvd","vnd.yamaha.hv-script":"hvs","vnd.yamaha.hv-voice":"hvp","vnd.yamaha.openscoreformat":"osf","vnd.yamaha.openscoreformat.osfpvg+xml":"osfpvg","vnd.yamaha.smaf-audio":"saf","vnd.yamaha.smaf-phrase":"spf","vnd.yellowriver-custom-menu":"cmp","vnd.zul":["zir","zirz"],"vnd.zzazz.deck+xml":"zaz","voicexml+xml":"vxml",widget:"wgt",winhlp:"hlp","wsdl+xml":"wsdl","wspolicy+xml":"wspolicy","x-ace-compressed":"ace","x-authorware-bin":["aab","x32","u32","vox"],"x-authorware-map":"aam","x-authorware-seg":"aas","x-blorb":["blb","blorb"],"x-bzip":"bz","x-bzip2":["bz2","boz"],"x-cfs-compressed":"cfs","x-chat":"chat","x-conference":"nsc","x-dgc-compressed":"dgc","x-dtbncx+xml":"ncx","x-dtbook+xml":"dtb","x-dtbresource+xml":"res","x-eva":"eva","x-font-bdf":"bdf","x-font-ghostscript":"gsf","x-font-linux-psf":"psf","x-font-pcf":"pcf","x-font-snf":"snf","x-font-ttf":["ttf","ttc"],"x-font-type1":["pfa","pfb","pfm","afm"],"x-freearc":"arc","x-gca-compressed":"gca","x-glulx":"ulx","x-gramps-xml":"gramps","x-install-instructions":"install","x-lzh-compressed":["lzh","lha"],"x-mie":"mie","x-mobipocket-ebook":["prc","mobi"],"x-ms-application":"application","x-ms-shortcut":"lnk","x-ms-xbap":"xbap","x-msbinder":"obd","x-mscardfile":"crd","x-msclip":"clp","application/x-ms-installer":"msi","x-msmediaview":["mvb","m13","m14"],"x-msmetafile":["wmf","wmz","emf","emz"],"x-msmoney":"mny","x-mspublisher":"pub","x-msschedule":"scd","x-msterminal":"trm","x-mswrite":"wri","x-nzb":"nzb","x-pkcs12":["p12","pfx"],"x-pkcs7-certificates":["p7b","spc"],"x-research-info-systems":"ris","x-silverlight-app":"xap","x-sql":"sql","x-stuffitx":"sitx","x-subrip":"srt","x-t3vm-image":"t3","x-tex-tfm":"tfm","x-tgif":"obj","x-xliff+xml":"xlf","x-xz":"xz","x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"xaml+xml":"xaml","xcap-diff+xml":"xdf","xenc+xml":"xenc","xml-dtd":"dtd","xop+xml":"xop","xproc+xml":"xpl","xslt+xml":"xslt","xv+xml":["mxml","xhvml","xvml","xvm"],yang:"yang","yin+xml":"yin",envoy:"evy",fractals:"fif","internet-property-stream":"acx",olescript:"axs","vnd.ms-outlook":"msg","vnd.ms-pkicertstore":"sst","x-compress":"z","x-perfmon":["pma","pmc","pmr","pmw"],"ynd.ms-pkipko":"pko",gzip:["gz","tgz"],"smil+xml":["smi","smil"],"vnd.debian.binary-package":["deb","udeb"],"vnd.hzn-3d-crossword":"x3d","vnd.sqlite3":["db","sqlite","sqlite3","db-wal","sqlite-wal","db-shm","sqlite-shm"],"vnd.wap.sic":"sic","vnd.wap.slc":"slc","x-krita":["kra","krz"],"x-perl":["pm","pl"],yaml:["yaml","yml"]},audio:{amr:"amr","amr-wb":"awb",annodex:"axa",basic:["au","snd"],flac:"flac",midi:["mid","midi","kar","rmi"],mpeg:["mpga","mpega","mp3","m4a","mp2a","m2a","m3a"],mpegurl:"m3u",ogg:["oga","ogg","spx"],"prs.sid":"sid","x-aiff":"aifc","x-gsm":"gsm","x-ms-wma":"wma","x-ms-wax":"wax","x-pn-realaudio":"ram","x-realaudio":"ra","x-sd2":"sd2",adpcm:"adp",mp4:"mp4a",s3m:"s3m",silk:"sil","vnd.dece.audio":["uva","uvva"],"vnd.digital-winds":"eol","vnd.dra":"dra","vnd.dts":"dts","vnd.dts.hd":"dtshd","vnd.lucent.voice":"lvp","vnd.ms-playready.media.pya":"pya","vnd.nuera.ecelp4800":"ecelp4800","vnd.nuera.ecelp7470":"ecelp7470","vnd.nuera.ecelp9600":"ecelp9600","vnd.rip":"rip",webm:"weba","x-caf":"caf","x-matroska":"mka","x-pn-realaudio-plugin":"rmp",xm:"xm",aac:"aac",aiff:["aiff","aif","aff"],opus:"opus",wav:"wav"},chemical:{"x-alchemy":"alc","x-cache":["cac","cache"],"x-cache-csf":"csf","x-cactvs-binary":["cbin","cascii","ctab"],"x-cdx":"cdx","x-chem3d":"c3d","x-cif":"cif","x-cmdf":"cmdf","x-cml":"cml","x-compass":"cpa","x-crossfire":"bsd","x-csml":["csml","csm"],"x-ctx":"ctx","x-cxf":["cxf","cef"],"x-embl-dl-nucleotide":["emb","embl"],"x-gamess-input":["inp","gam","gamin"],"x-gaussian-checkpoint":["fch","fchk"],"x-gaussian-cube":"cub","x-gaussian-input":["gau","gjc","gjf"],"x-gaussian-log":"gal","x-gcg8-sequence":"gcg","x-genbank":"gen","x-hin":"hin","x-isostar":["istr","ist"],"x-jcamp-dx":["jdx","dx"],"x-kinemage":"kin","x-macmolecule":"mcm","x-macromodel-input":"mmod","x-mdl-molfile":"mol","x-mdl-rdfile":"rd","x-mdl-rxnfile":"rxn","x-mdl-sdfile":"sd","x-mdl-tgf":"tgf","x-mmcif":"mcif","x-mol2":"mol2","x-molconn-Z":"b","x-mopac-graph":"gpt","x-mopac-input":["mop","mopcrt","zmt"],"x-mopac-out":"moo","x-ncbi-asn1":"asn","x-ncbi-asn1-ascii":["prt","ent"],"x-ncbi-asn1-binary":"val","x-rosdal":"ros","x-swissprot":"sw","x-vamas-iso14976":"vms","x-vmd":"vmd","x-xtel":"xtel","x-xyz":"xyz"},font:{otf:"otf",woff:"woff",woff2:"woff2"},image:{gif:"gif",ief:"ief",jpeg:["jpeg","jpg","jpe","jfif","jfif-tbnl","jif"],pcx:"pcx",png:"png","svg+xml":["svg","svgz"],tiff:["tiff","tif"],"vnd.djvu":["djvu","djv"],"vnd.wap.wbmp":"wbmp","x-canon-cr2":"cr2","x-canon-crw":"crw","x-cmu-raster":"ras","x-coreldraw":"cdr","x-coreldrawpattern":"pat","x-coreldrawtemplate":"cdt","x-corelphotopaint":"cpt","x-epson-erf":"erf","x-icon":"ico","x-jg":"art","x-jng":"jng","x-nikon-nef":"nef","x-olympus-orf":"orf","x-portable-anymap":"pnm","x-portable-bitmap":"pbm","x-portable-graymap":"pgm","x-portable-pixmap":"ppm","x-rgb":"rgb","x-xbitmap":"xbm","x-xpixmap":"xpm","x-xwindowdump":"xwd",bmp:"bmp",cgm:"cgm",g3fax:"g3",ktx:"ktx","prs.btif":"btif",sgi:"sgi","vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"vnd.dwg":"dwg","vnd.dxf":"dxf","vnd.fastbidsheet":"fbs","vnd.fpx":"fpx","vnd.fst":"fst","vnd.fujixerox.edmics-mmr":"mmr","vnd.fujixerox.edmics-rlc":"rlc","vnd.ms-modi":"mdi","vnd.ms-photo":"wdp","vnd.net-fpx":"npx","vnd.xiff":"xif",webp:"webp","x-3ds":"3ds","x-cmx":"cmx","x-freehand":["fh","fhc","fh4","fh5","fh7"],"x-pict":["pic","pct"],"x-tga":"tga","cis-cod":"cod",avif:"avifs",heic:["heif","heic"],pjpeg:["pjpg"],"vnd.adobe.photoshop":"psd","x-adobe-dng":"dng","x-fuji-raf":"raf","x-icns":"icns","x-kodak-dcr":"dcr","x-kodak-k25":"k25","x-kodak-kdc":"kdc","x-minolta-mrw":"mrw","x-panasonic-raw":["raw","rw2","rwl"],"x-pentax-pef":["pef","ptx"],"x-sigma-x3f":"x3f","x-sony-arw":"arw","x-sony-sr2":"sr2","x-sony-srf":"srf"},message:{rfc822:["eml","mime","mht","mhtml","nws"]},model:{iges:["igs","iges"],mesh:["msh","mesh","silo"],vrml:["wrl","vrml"],"x3d+vrml":["x3dv","x3dvz"],"x3d+xml":"x3dz","x3d+binary":["x3db","x3dbz"],"vnd.collada+xml":"dae","vnd.dwf":"dwf","vnd.gdl":"gdl","vnd.gtw":"gtw","vnd.mts":"mts","vnd.usdz+zip":"usdz","vnd.vtu":"vtu"},text:{"cache-manifest":["manifest","appcache"],calendar:["ics","icz","ifb"],css:"css",csv:"csv",h323:"323",html:["html","htm","shtml","stm"],iuls:"uls",plain:["txt","text","brf","conf","def","list","log","in","bas","diff","ksh"],richtext:"rtx",scriptlet:["sct","wsc"],texmacs:"tm","tab-separated-values":"tsv","vnd.sun.j2me.app-descriptor":"jad","vnd.wap.wml":"wml","vnd.wap.wmlscript":"wmls","x-bibtex":"bib","x-boo":"boo","x-c++hdr":["h++","hpp","hxx","hh"],"x-c++src":["c++","cpp","cxx","cc"],"x-component":"htc","x-dsrc":"d","x-diff":"patch","x-haskell":"hs","x-java":"java","x-literate-haskell":"lhs","x-moc":"moc","x-pascal":["p","pas","pp","inc"],"x-pcs-gcd":"gcd","x-python":"py","x-scala":"scala","x-setext":"etx","x-tcl":["tcl","tk"],"x-tex":["tex","ltx","sty","cls"],"x-vcalendar":"vcs","x-vcard":"vcf",n3:"n3","prs.lines.tag":"dsc",sgml:["sgml","sgm"],troff:["t","tr","roff","man","me","ms"],turtle:"ttl","uri-list":["uri","uris","urls"],vcard:"vcard","vnd.curl":"curl","vnd.curl.dcurl":"dcurl","vnd.curl.scurl":"scurl","vnd.curl.mcurl":"mcurl","vnd.dvb.subtitle":"sub","vnd.fly":"fly","vnd.fmi.flexstor":"flx","vnd.graphviz":"gv","vnd.in3d.3dml":"3dml","vnd.in3d.spot":"spot","x-asm":["s","asm"],"x-c":["c","h","dic"],"x-fortran":["f","for","f77","f90"],"x-opml":"opml","x-nfo":"nfo","x-sfv":"sfv","x-uuencode":"uu",webviewhtml:"htt",javascript:"js",json:"json",markdown:["md","markdown","mdown","markdn"],"vnd.wap.si":"si","vnd.wap.sl":"sl"},video:{avif:"avif","3gpp":"3gp",annodex:"axv",dl:"dl",dv:["dif","dv"],fli:"fli",gl:"gl",mpeg:["mpeg","mpg","mpe","m1v","m2v","mp2","mpa","mpv2"],mp4:["mp4","mp4v","mpg4"],quicktime:["qt","mov"],ogg:"ogv","vnd.mpegurl":["mxu","m4u"],"x-flv":"flv","x-la-asf":["lsf","lsx"],"x-mng":"mng","x-ms-asf":["asf","asx","asr"],"x-ms-wm":"wm","x-ms-wmv":"wmv","x-ms-wmx":"wmx","x-ms-wvx":"wvx","x-msvideo":"avi","x-sgi-movie":"movie","x-matroska":["mpv","mkv","mk3d","mks"],"3gpp2":"3g2",h261:"h261",h263:"h263",h264:"h264",jpeg:"jpgv",jpm:["jpm","jpgm"],mj2:["mj2","mjp2"],"vnd.dece.hd":["uvh","uvvh"],"vnd.dece.mobile":["uvm","uvvm"],"vnd.dece.pd":["uvp","uvvp"],"vnd.dece.sd":["uvs","uvvs"],"vnd.dece.video":["uvv","uvvv"],"vnd.dvb.file":"dvb","vnd.fvt":"fvt","vnd.ms-playready.media.pyv":"pyv","vnd.uvvu.mp4":["uvu","uvvu"],"vnd.vivo":"viv",webm:"webm","x-f4v":"f4v","x-m4v":"m4v","x-ms-vob":"vob","x-smv":"smv",mp2t:"ts"},"x-conference":{"x-cooltalk":"ice"},"x-world":{"x-vrml":["vrm","flr","wrz","xaf","xof"]}};(()=>{const e={};for(const t of Object.keys(qa))for(const r of Object.keys(qa[t])){const i=qa[t][r];if(typeof i=="string")e[i]=t+"/"+r;else for(let a=0;a<i.length;a++)e[i[a]]=t+"/"+r}return e})();const Fu=[];for(let e=0;e<256;e++){let t=e;for(let r=0;r<8;r++)t&1?t=t>>>1^3988292384:t=t>>>1;Fu[e]=t}class pi{constructor(t){this.crc=t||-1}append(t){let r=this.crc|0;for(let i=0,a=t.length|0;i<a;i++)r=r>>>8^Fu[(r^t[i])&255];this.crc=r}get(){return~this.crc}}class Lu extends TransformStream{constructor(){let t;const r=new pi;super({transform(i,a){r.append(i),a.enqueue(i)},flush(){const i=new Uint8Array(4);new DataView(i.buffer).setUint32(0,r.get()),t.value=i}}),t=this}}function rb(e){if(typeof TextEncoder==kr){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let r=0;r<t.length;r++)t[r]=e.charCodeAt(r);return t}else return new TextEncoder().encode(e)}const ot={concat(e,t){if(e.length===0||t.length===0)return e.concat(t);const r=e[e.length-1],i=ot.getPartial(r);return i===32?e.concat(t):ot._shiftRight(t,i,r|0,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(t===0)return 0;const r=e[t-1];return(t-1)*32+ot.getPartial(r)},clamp(e,t){if(e.length*32<t)return e;e=e.slice(0,Math.ceil(t/32));const r=e.length;return t=t&31,r>0&&t&&(e[r-1]=ot.partial(t,e[r-1]&2147483648>>t-1,1)),e},partial(e,t,r){return e===32?t:(r?t|0:t<<32-e)+e*1099511627776},getPartial(e){return Math.round(e/1099511627776)||32},_shiftRight(e,t,r,i){for(i===void 0&&(i=[]);t>=32;t-=32)i.push(r),r=0;if(t===0)return i.concat(e);for(let n=0;n<e.length;n++)i.push(r|e[n]>>>t),r=e[n]<<32-t;const a=e.length?e[e.length-1]:0,s=ot.getPartial(a);return i.push(ot.partial(t+s&31,t+s>32?r:i.pop(),1)),i}},ci={bytes:{fromBits(e){const r=ot.bitLength(e)/8,i=new Uint8Array(r);let a;for(let s=0;s<r;s++)s&3||(a=e[s/4]),i[s]=a>>>24,a<<=8;return i},toBits(e){const t=[];let r,i=0;for(r=0;r<e.length;r++)i=i<<8|e[r],(r&3)===3&&(t.push(i),i=0);return r&3&&t.push(ot.partial(8*(r&3),i)),t}}},Iu={};Iu.sha1=class{constructor(e){const t=this;t.blockSize=512,t._init=[1732584193,4023233417,2562383102,271733878,3285377520],t._key=[1518500249,1859775393,2400959708,3395469782],e?(t._h=e._h.slice(0),t._buffer=e._buffer.slice(0),t._length=e._length):t.reset()}reset(){const e=this;return e._h=e._init.slice(0),e._buffer=[],e._length=0,e}update(e){const t=this;typeof e=="string"&&(e=ci.utf8String.toBits(e));const r=t._buffer=ot.concat(t._buffer,e),i=t._length,a=t._length=i+ot.bitLength(e);if(a>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const s=new Uint32Array(r);let n=0;for(let o=t.blockSize+i-(t.blockSize+i&t.blockSize-1);o<=a;o+=t.blockSize)t._block(s.subarray(16*n,16*(n+1))),n+=1;return r.splice(0,16*n),t}finalize(){const e=this;let t=e._buffer;const r=e._h;t=ot.concat(t,[ot.partial(1,1)]);for(let i=t.length+2;i&15;i++)t.push(0);for(t.push(Math.floor(e._length/4294967296)),t.push(e._length|0);t.length;)e._block(t.splice(0,16));return e.reset(),r}_f(e,t,r,i){if(e<=19)return t&r|~t&i;if(e<=39)return t^r^i;if(e<=59)return t&r|t&i|r&i;if(e<=79)return t^r^i}_S(e,t){return t<<e|t>>>32-e}_block(e){const t=this,r=t._h,i=Array(80);for(let p=0;p<16;p++)i[p]=e[p];let a=r[0],s=r[1],n=r[2],o=r[3],l=r[4];for(let p=0;p<=79;p++){p>=16&&(i[p]=t._S(1,i[p-3]^i[p-8]^i[p-14]^i[p-16]));const c=t._S(5,a)+t._f(p,s,n,o)+l+i[p]+t._key[Math.floor(p/20)]|0;l=o,o=n,n=t._S(30,s),s=a,a=c}r[0]=r[0]+a|0,r[1]=r[1]+s|0,r[2]=r[2]+n|0,r[3]=r[3]+o|0,r[4]=r[4]+l|0}};const Cu={};Cu.aes=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const r=t._tables[0][4],i=t._tables[1],a=e.length;let s,n,o,l=1;if(a!==4&&a!==6&&a!==8)throw new Error("invalid aes key size");for(t._key=[n=e.slice(0),o=[]],s=a;s<4*a+28;s++){let p=n[s-1];(s%a===0||a===8&&s%a===4)&&(p=r[p>>>24]<<24^r[p>>16&255]<<16^r[p>>8&255]<<8^r[p&255],s%a===0&&(p=p<<8^p>>>24^l<<24,l=l<<1^(l>>7)*283)),n[s]=n[s-a]^p}for(let p=0;s;p++,s--){const c=n[p&3?s:s-4];s<=4||p<4?o[p]=c:o[p]=i[0][r[c>>>24]]^i[1][r[c>>16&255]]^i[2][r[c>>8&255]]^i[3][r[c&255]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],r=e[4],i=t[4],a=[],s=[];let n,o,l,p;for(let c=0;c<256;c++)s[(a[c]=c<<1^(c>>7)*283)^c]=c;for(let c=n=0;!r[c];c^=o||1,n=s[n]||1){let d=n^n<<1^n<<2^n<<3^n<<4;d=d>>8^d&255^99,r[c]=d,i[d]=c,p=a[l=a[o=a[c]]];let m=p*16843009^l*65537^o*257^c*16843008,y=a[d]*257^d*16843008;for(let T=0;T<4;T++)e[T][c]=y=y<<24^y>>>8,t[T][d]=m=m<<24^m>>>8}for(let c=0;c<5;c++)e[c]=e[c].slice(0),t[c]=t[c].slice(0)}_crypt(e,t){if(e.length!==4)throw new Error("invalid aes block size");const r=this._key[t],i=r.length/4-2,a=[0,0,0,0],s=this._tables[t],n=s[0],o=s[1],l=s[2],p=s[3],c=s[4];let d=e[0]^r[0],m=e[t?3:1]^r[1],y=e[2]^r[2],T=e[t?1:3]^r[3],g=4,w,b,O;for(let E=0;E<i;E++)w=n[d>>>24]^o[m>>16&255]^l[y>>8&255]^p[T&255]^r[g],b=n[m>>>24]^o[y>>16&255]^l[T>>8&255]^p[d&255]^r[g+1],O=n[y>>>24]^o[T>>16&255]^l[d>>8&255]^p[m&255]^r[g+2],T=n[T>>>24]^o[d>>16&255]^l[m>>8&255]^p[y&255]^r[g+3],g+=4,d=w,m=b,y=O;for(let E=0;E<4;E++)a[t?3&-E:E]=c[d>>>24]<<24^c[m>>16&255]<<16^c[y>>8&255]<<8^c[T&255]^r[g++],w=d,d=m,m=y,y=T,T=w;return a}};const nb={getRandomValues(e){const t=new Uint32Array(e.buffer),r=i=>{let a=987654321;const s=4294967295;return function(){return a=36969*(a&65535)+(a>>16)&s,i=18e3*(i&65535)+(i>>16)&s,(((a<<16)+i&s)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let i=0,a;i<e.length;i+=4){const s=r((a||Math.random())*4294967296);a=s()*987654071,t[i/4]=s()*4294967296|0}return e}},ju={};ju.ctrGladman=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if((e>>24&255)===255){let t=e>>16&255,r=e>>8&255,i=e&255;t===255?(t=0,r===255?(r=0,i===255?i=0:++i):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=i}else e+=1<<24;return e}incCounter(e){(e[0]=this.incWord(e[0]))===0&&(e[1]=this.incWord(e[1]))}calculate(e,t,r){let i;if(!(i=t.length))return[];const a=ot.bitLength(t);for(let s=0;s<i;s+=4){this.incCounter(r);const n=e.encrypt(r);t[s]^=n[0],t[s+1]^=n[1],t[s+2]^=n[2],t[s+3]^=n[3]}return ot.clamp(t,a)}};const qr={importKey(e){return new qr.hmacSha1(ci.bytes.toBits(e))},pbkdf2(e,t,r,i){if(r=r||1e4,i<0||r<0)throw new Error("invalid params to pbkdf2");const a=(i>>5)+1<<2;let s,n,o,l,p;const c=new ArrayBuffer(a),d=new DataView(c);let m=0;const y=ot;for(t=ci.bytes.toBits(t),p=1;m<(a||1);p++){for(s=n=e.encrypt(y.concat(t,[p])),o=1;o<r;o++)for(n=e.encrypt(n),l=0;l<n.length;l++)s[l]^=n[l];for(o=0;m<(a||1)&&o<s.length;o++)d.setInt32(m,s[o]),m+=4}return c.slice(0,i/8)}};qr.hmacSha1=class{constructor(e){const t=this,r=t._hash=Iu.sha1,i=[[],[]];t._baseHash=[new r,new r];const a=t._baseHash[0].blockSize/32;e.length>a&&(e=new r().update(e).finalize());for(let s=0;s<a;s++)i[0][s]=e[s]^909522486,i[1][s]=e[s]^1549556828;t._baseHash[0].update(i[0]),t._baseHash[1].update(i[1]),t._resultHash=new r(t._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){const t=this;t._updated=!0,t._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),r=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),r}encrypt(e){if(this._updated)throw new Error("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}};const sb=typeof crypto!=kr&&typeof crypto.getRandomValues==ms,Nu="Invalid password",Du="Invalid signature",Wo="zipjs-abort-check-password";function Uu(e){return sb?crypto.getRandomValues(e):nb.getRandomValues(e)}const sn=16,ib="raw",Bu={name:"PBKDF2"},ab={name:"HMAC"},ob="SHA-1",lb=Object.assign({hash:ab},Bu),mo=Object.assign({iterations:1e3,hash:{name:ob}},Bu),fb=["deriveBits"],Jn=[8,12,16],On=[16,24,32],mr=10,pb=[0,0,0,0],Oi=typeof crypto!=kr,ys=Oi&&crypto.subtle,qu=Oi&&typeof ys!=kr,Xt=ci.bytes,cb=Cu.aes,ub=ju.ctrGladman,db=qr.hmacSha1;let wp=Oi&&qu&&typeof ys.importKey==ms,bp=Oi&&qu&&typeof ys.deriveBits==ms;class hb extends TransformStream{constructor({password:t,rawPassword:r,signed:i,encryptionStrength:a,checkPasswordOnly:s}){super({start(){Object.assign(this,{ready:new Promise(n=>this.resolveReady=n),password:Hu(t,r),signed:i,strength:a-1,pending:new Uint8Array})},async transform(n,o){const l=this,{password:p,strength:c,resolveReady:d,ready:m}=l;p?(await yb(l,c,p,Ot(n,0,Jn[c]+2)),n=Ot(n,Jn[c]+2),s?o.error(new Error(Wo)):d()):await m;const y=new Uint8Array(n.length-mr-(n.length-mr)%sn);o.enqueue(Mu(l,n,y,0,mr,!0))},async flush(n){const{signed:o,ctr:l,hmac:p,pending:c,ready:d}=this;if(p&&l){await d;const m=Ot(c,0,c.length-mr),y=Ot(c,c.length-mr);let T=new Uint8Array;if(m.length){const g=es(Xt,m);p.update(g);const w=l.update(g);T=Qn(Xt,w)}if(o){const g=Ot(Qn(Xt,p.digest()),0,mr);for(let w=0;w<mr;w++)if(g[w]!=y[w])throw new Error(Du)}n.enqueue(T)}}})}}class mb extends TransformStream{constructor({password:t,rawPassword:r,encryptionStrength:i}){let a;super({start(){Object.assign(this,{ready:new Promise(s=>this.resolveReady=s),password:Hu(t,r),strength:i-1,pending:new Uint8Array})},async transform(s,n){const o=this,{password:l,strength:p,resolveReady:c,ready:d}=o;let m=new Uint8Array;l?(m=await gb(o,p,l),c()):await d;const y=new Uint8Array(m.length+s.length-s.length%sn);y.set(m,0),n.enqueue(Mu(o,s,y,m.length,0))},async flush(s){const{ctr:n,hmac:o,pending:l,ready:p}=this;if(o&&n){await p;let c=new Uint8Array;if(l.length){const d=n.update(es(Xt,l));o.update(d),c=Qn(Xt,d)}a.signature=Qn(Xt,o.digest()).slice(0,mr),s.enqueue(Ho(c,a.signature))}}}),a=this}}function Mu(e,t,r,i,a,s){const{ctr:n,hmac:o,pending:l}=e,p=t.length-a;l.length&&(t=Ho(l,t),r=_b(r,p-p%sn));let c;for(c=0;c<=p-sn;c+=sn){const d=es(Xt,Ot(t,c,c+sn));s&&o.update(d);const m=n.update(d);s||o.update(m),r.set(Qn(Xt,m),c+i)}return e.pending=Ot(t,c),r}async function yb(e,t,r,i){const a=await Wu(e,t,r,Ot(i,0,Jn[t])),s=Ot(i,Jn[t]);if(a[0]!=s[0]||a[1]!=s[1])throw new Error(Nu)}async function gb(e,t,r){const i=Uu(new Uint8Array(Jn[t])),a=await Wu(e,t,r,i);return Ho(i,a)}async function Wu(e,t,r,i){e.password=null;const a=await wb(ib,r,lb,!1,fb),s=await bb(Object.assign({salt:i},mo),a,8*(On[t]*2+2)),n=new Uint8Array(s),o=es(Xt,Ot(n,0,On[t])),l=es(Xt,Ot(n,On[t],On[t]*2)),p=Ot(n,On[t]*2);return Object.assign(e,{keys:{key:o,authentication:l,passwordVerification:p},ctr:new ub(new cb(o),Array.from(pb)),hmac:new db(l)}),p}async function wb(e,t,r,i,a){if(wp)try{return await ys.importKey(e,t,r,i,a)}catch{return wp=!1,qr.importKey(t)}else return qr.importKey(t)}async function bb(e,t,r){if(bp)try{return await ys.deriveBits(e,t,r)}catch{return bp=!1,qr.pbkdf2(t,e.salt,mo.iterations,r)}else return qr.pbkdf2(t,e.salt,mo.iterations,r)}function Hu(e,t){return t===ft?rb(e):t}function Ho(e,t){let r=e;return e.length+t.length&&(r=new Uint8Array(e.length+t.length),r.set(e,0),r.set(t,e.length)),r}function _b(e,t){if(t&&t>e.length){const r=e;e=new Uint8Array(t),e.set(r,0)}return e}function Ot(e,t,r){return e.subarray(t,r)}function Qn(e,t){return e.fromBits(t)}function es(e,t){return e.toBits(t)}const cn=12;class vb extends TransformStream{constructor({password:t,passwordVerification:r,checkPasswordOnly:i}){super({start(){Object.assign(this,{password:t,passwordVerification:r}),zu(this,t)},transform(a,s){const n=this;if(n.password){const o=_p(n,a.subarray(0,cn));if(n.password=null,o[cn-1]!=n.passwordVerification)throw new Error(Nu);a=a.subarray(cn)}i?s.error(new Error(Wo)):s.enqueue(_p(n,a))}})}}class xb extends TransformStream{constructor({password:t,passwordVerification:r}){super({start(){Object.assign(this,{password:t,passwordVerification:r}),zu(this,t)},transform(i,a){const s=this;let n,o;if(s.password){s.password=null;const l=Uu(new Uint8Array(cn));l[cn-1]=s.passwordVerification,n=new Uint8Array(i.length+l.length),n.set(vp(s,l),0),o=cn}else n=new Uint8Array(i.length),o=0;n.set(vp(s,i),o),a.enqueue(n)}})}}function _p(e,t){const r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=Vu(e)^t[i],zo(e,r[i]);return r}function vp(e,t){const r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=Vu(e)^t[i],zo(e,t[i]);return r}function zu(e,t){const r=[305419896,591751049,878082192];Object.assign(e,{keys:r,crcKey0:new pi(r[0]),crcKey2:new pi(r[2])});for(let i=0;i<t.length;i++)zo(e,t.charCodeAt(i))}function zo(e,t){let[r,i,a]=e.keys;e.crcKey0.append([t]),r=~e.crcKey0.get(),i=xp(Math.imul(xp(i+Zu(r)),134775813)+1),e.crcKey2.append([i>>>24]),a=~e.crcKey2.get(),e.keys=[r,i,a]}function Vu(e){const t=e.keys[2]|2;return Zu(Math.imul(t,t^1)>>>8)}function Zu(e){return e&255}function xp(e){return e&4294967295}const kp="deflate-raw";class kb extends TransformStream{constructor(t,{chunkSize:r,CompressionStream:i,CompressionStreamNative:a}){super({});const{compressed:s,encrypted:n,useCompressionStream:o,zipCrypto:l,signed:p,level:c}=t,d=this;let m,y,T=Gu(super.readable);(!n||l)&&p&&(m=new Lu,T=Jt(T,m)),s&&(T=Ku(T,o,{level:c,chunkSize:r},a,i)),n&&(l?T=Jt(T,new xb(t)):(y=new mb(t),T=Jt(T,y))),Yu(d,T,()=>{let g;n&&!l&&(g=y.signature),(!n||l)&&p&&(g=new DataView(m.value.buffer).getUint32(0)),d.signature=g})}}class Pb extends TransformStream{constructor(t,{chunkSize:r,DecompressionStream:i,DecompressionStreamNative:a}){super({});const{zipCrypto:s,encrypted:n,signed:o,signature:l,compressed:p,useCompressionStream:c}=t;let d,m,y=Gu(super.readable);n&&(s?y=Jt(y,new vb(t)):(m=new hb(t),y=Jt(y,m))),p&&(y=Ku(y,c,{chunkSize:r},a,i)),(!n||s)&&o&&(d=new Lu,y=Jt(y,d)),Yu(this,y,()=>{if((!n||s)&&o){const T=new DataView(d.value.buffer);if(l!=T.getUint32(0,!1))throw new Error(Du)}})}}function Gu(e){return Jt(e,new TransformStream({transform(t,r){t&&t.length&&r.enqueue(t)}}))}function Yu(e,t,r){t=Jt(t,new TransformStream({flush:r})),Object.defineProperty(e,"readable",{get(){return t}})}function Ku(e,t,r,i,a){try{const s=t&&i?i:a;e=Jt(e,new s(kp,r))}catch{if(t)try{e=Jt(e,new a(kp,r))}catch{return e}else return e}return e}function Jt(e,t){return e.pipeThrough(t)}const Eb="message",Sb="start",Tb="pull",Pp="data",Ob="ack",Ep="close",Ab="deflate",Xu="inflate";class $b extends TransformStream{constructor(t,r){super({});const i=this,{codecType:a}=t;let s;a.startsWith(Ab)?s=kb:a.startsWith(Xu)&&(s=Pb);let n=0,o=0;const l=new s(t,r),p=super.readable,c=new TransformStream({transform(m,y){m&&m.length&&(o+=m.length,y.enqueue(m))},flush(){Object.assign(i,{inputSize:o})}}),d=new TransformStream({transform(m,y){m&&m.length&&(n+=m.length,y.enqueue(m))},flush(){const{signature:m}=l;Object.assign(i,{signature:m,outputSize:n,inputSize:o})}});Object.defineProperty(i,"readable",{get(){return p.pipeThrough(c).pipeThrough(l).pipeThrough(d)}})}}class Rb extends TransformStream{constructor(t){let r;super({transform:i,flush(a){r&&r.length&&a.enqueue(r)}});function i(a,s){if(r){const n=new Uint8Array(r.length+a.length);n.set(r),n.set(a,r.length),a=n,r=null}a.length>t?(s.enqueue(a.slice(0,t)),i(a.slice(t),s)):r=a}}}let Ju=typeof Worker!=kr;class Ma{constructor(t,{readable:r,writable:i},{options:a,config:s,streamOptions:n,useWebWorkers:o,transferStreams:l,scripts:p},c){const{signal:d}=n;return Object.assign(t,{busy:!0,readable:r.pipeThrough(new Rb(s.chunkSize)).pipeThrough(new Fb(r,n),{signal:d}),writable:i,options:Object.assign({},a),scripts:p,transferStreams:l,terminate(){return new Promise(m=>{const{worker:y,busy:T}=t;y?(T?t.resolveTerminated=m:(y.terminate(),m()),t.interface=null):m()})},onTaskFinished(){const{resolveTerminated:m}=t;m&&(t.resolveTerminated=null,t.terminated=!0,t.worker.terminate(),m()),t.busy=!1,c(t)}}),(o&&Ju?Lb:Qu)(t,s)}}class Fb extends TransformStream{constructor(t,{onstart:r,onprogress:i,size:a,onend:s}){let n=0;super({async start(){r&&await Wa(r,a)},async transform(o,l){n+=o.length,i&&await Wa(i,n,a),l.enqueue(o)},async flush(){t.size=n,s&&await Wa(s,n)}})}}async function Wa(e,...t){try{await e(...t)}catch{}}function Qu(e,t){return{run:()=>Ib(e,t)}}function Lb(e,t){const{baseURL:r,chunkSize:i}=t;if(!e.interface){let a;try{a=Nb(e.scripts[0],r,e)}catch{return Ju=!1,Qu(e,t)}Object.assign(e,{worker:a,interface:{run:()=>Cb(e,{chunkSize:i})}})}return e.interface}async function Ib({options:e,readable:t,writable:r,onTaskFinished:i},a){try{const s=new $b(e,a);await t.pipeThrough(s).pipeTo(r,{preventClose:!0,preventAbort:!0});const{signature:n,inputSize:o,outputSize:l}=s;return{signature:n,inputSize:o,outputSize:l}}finally{i()}}async function Cb(e,t){let r,i;const a=new Promise((m,y)=>{r=m,i=y});Object.assign(e,{reader:null,writer:null,resolveResult:r,rejectResult:i,result:a});const{readable:s,options:n,scripts:o}=e,{writable:l,closed:p}=jb(e.writable),c=Vs({type:Sb,scripts:o.slice(1),options:n,config:t,readable:s,writable:l},e);c||Object.assign(e,{reader:s.getReader(),writer:l.getWriter()});const d=await a;return c||await l.getWriter().close(),await p,d}function jb(e){let t;const r=new Promise(a=>t=a);return{writable:new WritableStream({async write(a){const s=e.getWriter();await s.ready,await s.write(a),s.releaseLock()},close(){t()},abort(a){return e.getWriter().abort(a)}}),closed:r}}let Sp=!0,Tp=!0;function Nb(e,t,r){const i={type:"module"};let a,s;typeof e==ms&&(e=e());try{a=new URL(e,t)}catch{a=e}if(Sp)try{s=new Worker(a)}catch{Sp=!1,s=new Worker(a,i)}else s=new Worker(a,i);return s.addEventListener(Eb,n=>Db(n,r)),s}function Vs(e,{worker:t,writer:r,onTaskFinished:i,transferStreams:a}){try{const{value:s,readable:n,writable:o}=e,l=[];if(s&&(s.byteLength<s.buffer.byteLength?e.value=s.buffer.slice(0,s.byteLength):e.value=s.buffer,l.push(e.value)),a&&Tp?(n&&l.push(n),o&&l.push(o)):e.readable=e.writable=null,l.length)try{return t.postMessage(e,l),!0}catch{Tp=!1,e.readable=e.writable=null,t.postMessage(e)}else t.postMessage(e)}catch(s){throw r&&r.releaseLock(),i(),s}}async function Db({data:e},t){const{type:r,value:i,messageId:a,result:s,error:n}=e,{reader:o,writer:l,resolveResult:p,rejectResult:c,onTaskFinished:d}=t;try{if(n){const{message:y,stack:T,code:g,name:w}=n,b=new Error(y);Object.assign(b,{stack:T,code:g,name:w}),m(b)}else{if(r==Tb){const{value:y,done:T}=await o.read();Vs({type:Pp,value:y,done:T,messageId:a},t)}r==Pp&&(await l.ready,await l.write(new Uint8Array(i)),Vs({type:Ob,messageId:a},t)),r==Ep&&m(null,s)}}catch(y){Vs({type:Ep,messageId:a},t),m(y)}function m(y,T){y?c(y):p(T),l&&l.releaseLock(),d()}}let Or=[];const Ha=[];let Op=0;async function Ub(e,t){const{options:r,config:i}=t,{transferStreams:a,useWebWorkers:s,useCompressionStream:n,codecType:o,compressed:l,signed:p,encrypted:c}=r,{workerScripts:d,maxWorkers:m}=i;t.transferStreams=a||a===ft;const y=!l&&!p&&!c&&!t.transferStreams;return t.useWebWorkers=!y&&(s||s===ft&&i.useWebWorkers),t.scripts=t.useWebWorkers&&d?d[o]:[],r.useCompressionStream=n||n===ft&&i.useCompressionStream,(await T()).run();async function T(){const w=Or.find(b=>!b.busy);if(w)return Ap(w),new Ma(w,e,t,g);if(Or.length<m){const b={indexWorker:Op};return Op++,Or.push(b),new Ma(b,e,t,g)}else return new Promise(b=>Ha.push({resolve:b,stream:e,workerOptions:t}))}function g(w){if(Ha.length){const[{resolve:b,stream:O,workerOptions:E}]=Ha.splice(0,1);b(new Ma(w,O,E,g))}else w.worker?(Ap(w),Bb(w,t)):Or=Or.filter(b=>b!=w)}}function Bb(e,t){const{config:r}=t,{terminateWorkerTimeout:i}=r;Number.isFinite(i)&&i>=0&&(e.terminated?e.terminated=!1:e.terminateTimeout=setTimeout(async()=>{Or=Or.filter(a=>a!=e);try{await e.terminate()}catch{}},i))}function Ap(e){const{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}function qb(e,t={}){const r=`const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:i,Uint16Array:o,Uint32Array:c,Int32Array:f,Map:a,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:d,TransformStream:p,ReadableStream:y,WritableStream:m,CompressionStream:b,DecompressionStream:g}=self,k=void 0,v="undefined",S="function";class z{constructor(e){return class extends p{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const C=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;C[e]=t}class x{constructor(e){this.t=e||-1}append(e){let t=0|this.t;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^C[255&(t^e[n])];this.t=t}get(){return~this.t}}class A extends p{constructor(){let e;const t=new x;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new i(4);new l(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const _={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=_.i(n);return 32===r?e.concat(t):_.o(t,r,0|n,e.slice(0,e.length-1))},l(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+_.i(n)},u(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,r.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=_.h(t,e[n-1]&2147483648>>t-1,1)),e},h:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,i:e=>r.round(e/1099511627776)||32,o(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s<e.length;s++)r.push(n|e[s]>>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,i=_.i(s);return r.push(_.h(t+i&31,t+i>32?n:r.pop(),1)),r}},I={bytes:{p(e){const t=_.l(e)/8,n=new i(t);let r;for(let s=0;t>s;s++)3&s||(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},m(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3&~n||(t.push(r),r=0);return 3&n&&t.push(_.h(8*(3&n),r)),t}}},P=class{constructor(e){const t=this;t.blockSize=512,t.k=[1732584193,4023233417,2562383102,271733878,3285377520],t.v=[1518500249,1859775393,2400959708,3395469782],e?(t.S=e.S.slice(0),t.C=e.C.slice(0),t.A=e.A):t.reset()}reset(){const e=this;return e.S=e.k.slice(0),e.C=[],e.A=0,e}update(e){const t=this;"string"==typeof e&&(e=I._.m(e));const n=t.C=_.concat(t.C,e),r=t.A,i=t.A=r+_.l(e);if(i>9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const o=new c(n);let f=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t.I(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}P(){const e=this;let t=e.C;const n=e.S;t=_.concat(t,[_.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e.A/4294967296)),t.push(0|e.A);t.length;)e.I(t.splice(0,16));return e.reset(),n}D(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}V(e,t){return t<<e|t>>>32-e}I(t){const n=this,s=n.S,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let o=s[0],c=s[1],f=s[2],a=s[3],l=s[4];for(let e=0;79>=e;e++){16>e||(i[e]=n.V(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.V(5,o)+n.D(e,c,f,a)+l+i[e]+n.v[r.floor(e/20)]|0;l=a,a=f,f=n.V(30,c),c=o,o=t}s[0]=s[0]+o|0,s[1]=s[1]+c|0,s[2]=s[2]+f|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0}},D={getRandomValues(e){const t=new c(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(r.random()>.5?1:-1))};for(let s,i=0;i<e.length;i+=4){const e=n(4294967296*(s||r.random()));s=987654071*e(),t[i/4]=4294967296*e()|0}return e}},V={importKey:e=>new V.R(I.bytes.m(e)),B(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,c,f,a,u;const w=new ArrayBuffer(i),h=new l(w);let d=0;const p=_;for(t=I.bytes.m(t),u=1;(i||1)>d;u++){for(o=c=e.encrypt(p.concat(t,[u])),f=1;n>f;f++)for(c=e.encrypt(c),a=0;a<c.length;a++)o[a]^=c[a];for(f=0;(i||1)>d&&f<o.length;f++)h.setInt32(d,o[f]),d+=4}return w.slice(0,r/8)},R:class{constructor(e){const t=this,n=t.M=P,r=[[],[]];t.U=[new n,new n];const s=t.U[0].blockSize/32;e.length>s&&(e=(new n).update(e).P());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.U[0].update(r[0]),t.U[1].update(r[1]),t.K=new n(t.U[0])}reset(){const e=this;e.K=new e.M(e.U[0]),e.N=!1}update(e){this.N=!0,this.K.update(e)}digest(){const e=this,t=e.K.P(),n=new e.M(e.U[1]).update(t).P();return e.reset(),n}encrypt(e){if(this.N)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},R=typeof h!=v&&typeof h.getRandomValues==S,B="Invalid password",E="Invalid signature",M="zipjs-abort-check-password";function U(e){return R?h.getRandomValues(e):D.getRandomValues(e)}const K=16,N={name:"PBKDF2"},O=t.assign({hash:{name:"HMAC"}},N),T=t.assign({iterations:1e3,hash:{name:"SHA-1"}},N),W=["deriveBits"],j=[8,12,16],H=[16,24,32],L=10,F=[0,0,0,0],q=typeof h!=v,G=q&&h.subtle,J=q&&typeof G!=v,Q=I.bytes,X=class{constructor(e){const t=this;t.O=[[[],[],[],[],[]],[[],[],[],[],[]]],t.O[0][0][0]||t.T();const n=t.O[0][4],r=t.O[1],i=e.length;let o,c,f,a=1;if(4!==i&&6!==i&&8!==i)throw new s("invalid aes key size");for(t.v=[c=e.slice(0),f=[]],o=i;4*i+28>o;o++){let e=c[o-1];(o%i==0||8===i&&o%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i==0&&(e=e<<8^e>>>24^a<<24,a=a<<1^283*(a>>7))),c[o]=c[o-i]^e}for(let e=0;o;e++,o--){const t=c[3&e?o:o-4];f[e]=4>=o||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this.W(e,0)}decrypt(e){return this.W(e,1)}T(){const e=this.O[0],t=this.O[1],n=e[4],r=t[4],s=[],i=[];let o,c,f,a;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let l=o=0;!n[l];l^=c||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[l]=i,r[i]=l,a=s[f=s[c=s[l]]];let u=16843009*a^65537*f^257*c^16843008*l,w=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][l]=w=w<<24^w>>>8,t[n][i]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}W(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.v[t],r=n.length/4-2,i=[0,0,0,0],o=this.O[t],c=o[0],f=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],b=e[t?1:3]^n[3],g=4;for(let e=0;r>e;e++)w=c[p>>>24]^f[y>>16&255]^a[m>>8&255]^l[255&b]^n[g],h=c[y>>>24]^f[m>>16&255]^a[b>>8&255]^l[255&p]^n[g+1],d=c[m>>>24]^f[b>>16&255]^a[p>>8&255]^l[255&y]^n[g+2],b=c[b>>>24]^f[p>>16&255]^a[y>>8&255]^l[255&m]^n[g+3],g+=4,p=w,y=h,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&b]^n[g++],w=p,p=y,y=m,m=b,b=w;return i}},Y=class{constructor(e,t){this.j=e,this.H=t,this.L=t}reset(){this.L=this.H}update(e){return this.F(this.j,e,this.L)}q(e){if(255&~(e>>24))e+=1<<24;else{let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}G(e){0===(e[0]=this.q(e[0]))&&(e[1]=this.q(e[1]))}F(e,t,n){let r;if(!(r=t.length))return[];const s=_.l(t);for(let s=0;r>s;s+=4){this.G(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return _.u(t,s)}},Z=V.R;let $=q&&J&&typeof G.importKey==S,ee=q&&J&&typeof G.deriveBits==S;class te extends p{constructor({password:e,rawPassword:n,signed:r,encryptionStrength:o,checkPasswordOnly:c}){super({start(){t.assign(this,{ready:new u((e=>this.J=e)),password:ie(e,n),signed:r,X:o-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:o,J:f,ready:a}=n;r?(await(async(e,t,n,r)=>{const i=await se(e,t,n,ce(r,0,j[t])),o=ce(r,j[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new s(B)})(n,o,r,ce(e,0,j[o]+2)),e=ce(e,j[o]+2),c?t.error(new s(M)):f()):await a;const l=new i(e.length-L-(e.length-L)%K);t.enqueue(re(n,e,l,0,L,!0))},async flush(e){const{signed:t,Y:n,Z:r,pending:o,ready:c}=this;if(r&&n){await c;const f=ce(o,0,o.length-L),a=ce(o,o.length-L);let l=new i;if(f.length){const e=ae(Q,f);r.update(e);const t=n.update(e);l=fe(Q,t)}if(t){const e=ce(fe(Q,r.digest()),0,L);for(let t=0;L>t;t++)if(e[t]!=a[t])throw new s(E)}e.enqueue(l)}}})}}class ne extends p{constructor({password:e,rawPassword:n,encryptionStrength:r}){let s;super({start(){t.assign(this,{ready:new u((e=>this.J=e)),password:ie(e,n),X:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:s,J:o,ready:c}=n;let f=new i;r?(f=await(async(e,t,n)=>{const r=U(new i(j[t]));return oe(r,await se(e,t,n,r))})(n,s,r),o()):await c;const a=new i(f.length+e.length-e.length%K);a.set(f,0),t.enqueue(re(n,e,a,f.length,0))},async flush(e){const{Y:t,Z:n,pending:r,ready:o}=this;if(n&&t){await o;let c=new i;if(r.length){const e=t.update(ae(Q,r));n.update(e),c=fe(Q,e)}s.signature=fe(Q,n.digest()).slice(0,L),e.enqueue(oe(c,s.signature))}}}),s=this}}function re(e,t,n,r,s,o){const{Y:c,Z:f,pending:a}=e,l=t.length-s;let u;for(a.length&&(t=oe(a,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,l-l%K)),u=0;l-K>=u;u+=K){const e=ae(Q,ce(t,u,u+K));o&&f.update(e);const s=c.update(e);o||f.update(s),n.set(fe(Q,s),u+r)}return e.pending=ce(t,u),n}async function se(n,r,s,o){n.password=null;const c=await(async(e,t,n,r,s)=>{if(!$)return V.importKey(t);try{return await G.importKey("raw",t,n,!1,s)}catch(e){return $=!1,V.importKey(t)}})(0,s,O,0,W),f=await(async(e,t,n)=>{if(!ee)return V.B(t,e.salt,T.iterations,n);try{return await G.deriveBits(e,t,n)}catch(r){return ee=!1,V.B(t,e.salt,T.iterations,n)}})(t.assign({salt:o},T),c,8*(2*H[r]+2)),a=new i(f),l=ae(Q,ce(a,0,H[r])),u=ae(Q,ce(a,H[r],2*H[r])),w=ce(a,2*H[r]);return t.assign(n,{keys:{key:l,$:u,passwordVerification:w},Y:new Y(new X(l),e.from(F)),Z:new Z(u)}),w}function ie(e,t){return t===k?(e=>{if(typeof w==v){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new w).encode(e)})(e):t}function oe(e,t){let n=e;return e.length+t.length&&(n=new i(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ce(e,t,n){return e.subarray(t,n)}function fe(e,t){return e.p(t)}function ae(e,t){return e.m(t)}class le extends p{constructor({password:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;if(n.password){const t=we(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new s(B);e=e.subarray(12)}r?t.error(new s(M)):t.enqueue(we(n,e))}})}}class ue extends p{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;let r,s;if(n.password){n.password=null;const t=U(new i(12));t[11]=n.passwordVerification,r=new i(e.length+t.length),r.set(he(n,t),0),s=12}else r=new i(e.length),s=0;r.set(he(n,e),s),t.enqueue(r)}})}}function we(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,n[r]);return n}function he(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,t[r]);return n}function de(e,n){const r=[305419896,591751049,878082192];t.assign(e,{keys:r,ee:new x(r[0]),te:new x(r[2])});for(let t=0;t<n.length;t++)pe(e,n.charCodeAt(t))}function pe(e,t){let[n,s,i]=e.keys;e.ee.append([t]),n=~e.ee.get(),s=be(r.imul(be(s+me(n)),134775813)+1),e.te.append([s>>>24]),i=~e.te.get(),e.keys=[n,s,i]}function ye(e){const t=2|e.keys[2];return me(r.imul(t,1^t)>>>8)}function me(e){return 255&e}function be(e){return 4294967295&e}const ge="deflate-raw";class ke extends p{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:i,useCompressionStream:o,zipCrypto:c,signed:f,level:a}=e,u=this;let w,h,d=Se(super.readable);i&&!c||!f||(w=new A,d=xe(d,w)),s&&(d=Ce(d,o,{level:a,chunkSize:t},r,n)),i&&(c?d=xe(d,new ue(e)):(h=new ne(e),d=xe(d,h))),ze(u,d,(()=>{let e;i&&!c&&(e=h.signature),i&&!c||!f||(e=new l(w.value.buffer).getUint32(0)),u.signature=e}))}}class ve extends p{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:c,signature:f,compressed:a,useCompressionStream:u}=e;let w,h,d=Se(super.readable);o&&(i?d=xe(d,new le(e)):(h=new te(e),d=xe(d,h))),a&&(d=Ce(d,u,{chunkSize:t},r,n)),o&&!i||!c||(w=new A,d=xe(d,w)),ze(this,d,(()=>{if((!o||i)&&c){const e=new l(w.value.buffer);if(f!=e.getUint32(0,!1))throw new s(E)}}))}}function Se(e){return xe(e,new p({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ze(e,n,r){n=xe(n,new p({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function Ce(e,t,n,r,s){try{e=xe(e,new(t&&r?r:s)(ge,n))}catch(r){if(!t)return e;try{e=xe(e,new s(ge,n))}catch(t){return e}}return e}function xe(e,t){return e.pipeThrough(t)}const Ae="data",_e="close";class Ie extends p{constructor(e,n){super({});const r=this,{codecType:s}=e;let i;s.startsWith("deflate")?i=ke:s.startsWith("inflate")&&(i=ve);let o=0,c=0;const f=new i(e,n),a=super.readable,l=new p({transform(e,t){e&&e.length&&(c+=e.length,t.enqueue(e))},flush(){t.assign(r,{inputSize:c})}}),u=new p({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=f;t.assign(r,{signature:e,outputSize:o,inputSize:c})}});t.defineProperty(r,"readable",{get:()=>a.pipeThrough(l).pipeThrough(f).pipeThrough(u)})}}class Pe extends p{constructor(e){let t;super({transform:function n(r,s){if(t){const e=new i(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(s.enqueue(r.slice(0,e)),n(r.slice(e),s)):t=r},flush(e){t&&t.length&&e.enqueue(t)}})}}const De=new a,Ve=new a;let Re,Be=0,Ee=!0;async function Me(e){try{const{options:t,scripts:r,config:s}=e;if(r&&r.length)try{Ee?importScripts.apply(k,r):await Ue(r)}catch(e){Ee=!1,await Ue(r)}self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new z(self.Deflate)),self.Inflate&&(s.DecompressionStream=new z(self.Inflate));const i={highWaterMark:1},o=e.readable||new y({async pull(e){const t=new u((e=>De.set(Be,e)));Ke({type:"pull",messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},i),c=e.writable||new m({async write(e){let t;const r=new u((e=>t=e));Ve.set(Be,t),Ke({type:Ae,value:e,messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER,await r}},i),f=new Ie(t,s);Re=new AbortController;const{signal:a}=Re;await o.pipeThrough(f).pipeThrough(new Pe(s.chunkSize)).pipeTo(c,{signal:a,preventClose:!0,preventAbort:!0}),await c.getWriter().close();const{signature:l,inputSize:w,outputSize:h}=f;Ke({type:_e,result:{signature:l,inputSize:w,outputSize:h}})}catch(e){Ne(e)}}async function Ue(e){for(const t of e)await import(t)}function Ke(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ne(e=new s("Unknown error")){const{message:t,stack:n,code:r,name:i}=e;d({error:{message:t,stack:n,code:r,name:i}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&Me(e),t==Ae){const e=De.get(n);De.delete(n),e({value:new i(r),done:s})}if("ack"==t){const e=Ve.get(n);Ve.delete(n),e()}t==_e&&Re.abort()}catch(e){Ne(e)}}));const Oe=-2;function Te(t){return We(t.map((([t,n])=>new e(t).fill(n,0,t))))}function We(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?We(n):n)),[])}const je=[0,1,2,3].concat(...Te([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function He(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.ne=n=>{const s=e.re,i=e.ie.se,o=e.ie.oe;let c,f,a,l=-1;for(n.ce=0,n.fe=573,c=0;o>c;c++)0!==s[2*c]?(n.ae[++n.ce]=l=c,n.le[c]=0):s[2*c+1]=0;for(;2>n.ce;)a=n.ae[++n.ce]=2>l?++l:0,s[2*a]=1,n.le[a]=0,n.ue--,i&&(n.we-=i[2*a+1]);for(e.he=l,c=r.floor(n.ce/2);c>=1;c--)n.de(s,c);a=o;do{c=n.ae[1],n.ae[1]=n.ae[n.ce--],n.de(s,1),f=n.ae[1],n.ae[--n.fe]=c,n.ae[--n.fe]=f,s[2*a]=s[2*c]+s[2*f],n.le[a]=r.max(n.le[c],n.le[f])+1,s[2*c+1]=s[2*f+1]=a,n.ae[1]=a++,n.de(s,1)}while(n.ce>=2);n.ae[--n.fe]=n.ae[1],(t=>{const n=e.re,r=e.ie.se,s=e.ie.pe,i=e.ie.ye,o=e.ie.me;let c,f,a,l,u,w,h=0;for(l=0;15>=l;l++)t.be[l]=0;for(n[2*t.ae[t.fe]+1]=0,c=t.fe+1;573>c;c++)f=t.ae[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.he||(t.be[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.ue+=w*(l+u),r&&(t.we+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.be[l];)l--;t.be[l]--,t.be[l+1]+=2,t.be[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.be[l];0!==f;)a=t.ae[--c],a>e.he||(n[2*a+1]!=l&&(t.ue+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),f--)}})(n),((e,n,r)=>{const s=[];let i,o,c,f=0;for(i=1;15>=i;i++)s[i]=f=f+r[i-1]<<1;for(o=0;n>=o;o++)c=e[2*o+1],0!==c&&(e[2*o]=t(s[c]++,c))})(s,e.he,n.be)}}function Le(e,t,n,r,s){const i=this;i.se=e,i.pe=t,i.ye=n,i.oe=r,i.me=s}He.ge=[0,1,2,3,4,5,6,7].concat(...Te([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),He.ke=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],He.ve=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],He.Se=e=>256>e?je[e]:je[256+(e>>>7)],He.ze=[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],He.Ce=[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],He.xe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],He.Ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Fe=Te([[144,8],[112,9],[24,7],[8,8]]);Le._e=We([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,Fe[t]])));const qe=Te([[30,5]]);function Ge(e,t,n,r,s){const i=this;i.Ie=e,i.Pe=t,i.De=n,i.Ve=r,i.Re=s}Le.Be=We([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,qe[t]]))),Le.Ee=new Le(Le._e,He.ze,257,286,15),Le.Me=new Le(Le.Be,He.Ce,0,30,15),Le.Ue=new Le(null,He.xe,0,19,7);const Je=[new Ge(0,0,0,0,0),new Ge(4,4,8,4,1),new Ge(4,5,16,8,1),new Ge(4,6,32,32,1),new Ge(4,4,16,16,2),new Ge(8,16,32,32,2),new Ge(8,16,128,128,2),new Ge(8,32,128,256,2),new Ge(32,128,258,1024,2),new Ge(32,258,258,4096,2)],Qe=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Xe=113,Ye=666,Ze=262;function $e(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function et(){const e=this;let t,n,s,c,f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z,C,x,A,_,I,P,D,V,R,B,E,M,U;const K=new He,N=new He,O=new He;let T,W,j,H,L,F;function q(){let t;for(t=0;286>t;t++)E[2*t]=0;for(t=0;30>t;t++)M[2*t]=0;for(t=0;19>t;t++)U[2*t]=0;E[512]=1,e.ue=e.we=0,W=j=0}function G(e,t){let n,r=-1,s=e[1],i=0,o=7,c=4;0===s&&(o=138,c=3),e[2*(t+1)+1]=65535;for(let f=0;t>=f;f++)n=s,s=e[2*(f+1)+1],++i<o&&n==s||(c>i?U[2*n]+=i:0!==n?(n!=r&&U[2*n]++,U[32]++):i>10?U[36]++:U[34]++,i=0,r=n,0===s?(o=138,c=3):n==s?(o=6,c=3):(o=7,c=4))}function J(t){e.Ke[e.pending++]=t}function Q(e){J(255&e),J(e>>>8&255)}function X(e,t){let n;const r=t;F>16-r?(n=e,L|=n<<F&65535,Q(L),L=n>>>16-F,F+=r-16):(L|=e<<F&65535,F+=r)}function Y(e,t){const n=2*e;X(65535&t[n],65535&t[n+1])}function Z(e,t){let n,r,s=-1,i=e[1],o=0,c=7,f=4;for(0===i&&(c=138,f=3),n=0;t>=n;n++)if(r=i,i=e[2*(n+1)+1],++o>=c||r!=i){if(f>o)do{Y(r,U)}while(0!=--o);else 0!==r?(r!=s&&(Y(r,U),o--),Y(16,U),X(o-3,2)):o>10?(Y(18,U),X(o-11,7)):(Y(17,U),X(o-3,3));o=0,s=r,0===i?(c=138,f=3):r==i?(c=6,f=3):(c=7,f=4)}}function $(){16==F?(Q(L),L=0,F=0):8>F||(J(255&L),L>>>=8,F-=8)}function ee(t,n){let s,i,o;if(e.Ne[W]=t,e.Oe[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(He.ge[n]+256+1)]++,M[2*He.Se(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+He.Ce[o]);if(s>>>=3,j<r.floor(W/2)&&s<r.floor(i/2))return!0}return W==T-1}function te(t,n){let r,s,i,o,c=0;if(0!==W)do{r=e.Ne[c],s=e.Oe[c],c++,0===r?Y(s,t):(i=He.ge[s],Y(i+256+1,t),o=He.ze[i],0!==o&&(s-=He.ke[i],X(s,o)),r--,i=He.Se(r),Y(i,n),o=He.Ce[i],0!==o&&(r-=He.ve[i],X(r,o)))}while(W>c);Y(256,t),H=t[513]}function ne(){F>8?Q(L):F>0&&J(255&L),L=0,F=0}function re(t,n,r){X(0+(r?1:0),3),((t,n)=>{ne(),H=8,Q(n),Q(~n),e.Ke.set(u.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function se(n){((t,n,r)=>{let s,i,o=0;D>0?(K.ne(e),N.ne(e),o=(()=>{let t;for(G(E,K.he),G(M,N.he),O.ne(e),t=18;t>=3&&0===U[2*He.Ae[t]+1];t--);return e.ue+=14+3*(t+1),t})(),s=e.ue+3+7>>>3,i=e.we+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==t?i==s?(X(2+(r?1:0),3),te(Le._e,Le.Be)):(X(4+(r?1:0),3),((e,t,n)=>{let r;for(X(e-257,5),X(t-1,5),X(n-4,4),r=0;n>r;r++)X(U[2*He.Ae[r]+1],3);Z(E,e-1),Z(M,t-1)})(K.he+1,N.he+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.Te()}function ie(){let e,n,r,s;do{if(s=w-A-C,0===s&&0===C&&0===A)s=f;else if(-1==s)s--;else if(C>=f+f-Ze){u.set(u.subarray(f,f+f),0),x-=f,C-=f,k-=f,e=y,r=e;do{n=65535&d[--r],d[r]=f>n?0:n-f}while(0!=--e);e=f,r=e;do{n=65535&h[--r],h[r]=f>n?0:n-f}while(0!=--e);s+=f}if(0===t.We)return;e=t.je(u,C+A,s),A+=e,3>A||(p=255&u[C],p=(p<<g^255&u[C+1])&b)}while(Ze>A&&0!==t.We)}function oe(e){let t,n,r=I,s=C,i=_;const o=C>f-Ze?C-(f-Ze):0;let c=B;const a=l,w=C+258;let d=u[s+i-1],p=u[s+i];R>_||(r>>=2),c>A&&(c=A);do{if(t=e,u[t+i]==p&&u[t+i-1]==d&&u[t]==u[s]&&u[++t]==u[s+1]){s+=2,t++;do{}while(u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&w>s);if(n=258-(w-s),s=w-258,n>i){if(x=e,i=n,n>=c)break;d=u[s+i-1],p=u[s+i]}}}while((e=65535&h[e&a])>o&&0!=--r);return i>A?A:i}e.le=[],e.be=[],e.ae=[],E=[],M=[],U=[],e.de=(t,n)=>{const r=e.ae,s=r[n];let i=n<<1;for(;i<=e.ce&&(i<e.ce&&$e(t,r[i+1],r[i],e.le)&&i++,!$e(t,s,r[i],e.le));)r[n]=r[i],n=i,i<<=1;r[n]=s},e.He=(t,S,x,W,j,G)=>(W||(W=8),j||(j=8),G||(G=0),t.Le=null,-1==S&&(S=6),1>j||j>9||8!=W||9>x||x>15||0>S||S>9||0>G||G>2?Oe:(t.Fe=e,a=x,f=1<<a,l=f-1,m=j+7,y=1<<m,b=y-1,g=r.floor((m+3-1)/3),u=new i(2*f),h=[],d=[],T=1<<j+6,e.Ke=new i(4*T),s=4*T,e.Ne=new o(T),e.Oe=new i(T),D=S,V=G,(t=>(t.qe=t.Ge=0,t.Le=null,e.pending=0,e.Je=0,n=Xe,c=0,K.re=E,K.ie=Le.Ee,N.re=M,N.ie=Le.Me,O.re=U,O.ie=Le.Ue,L=0,F=0,H=8,q(),(()=>{w=2*f,d[y-1]=0;for(let e=0;y-1>e;e++)d[e]=0;P=Je[D].Pe,R=Je[D].Ie,B=Je[D].De,I=Je[D].Ve,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Qe=()=>42!=n&&n!=Xe&&n!=Ye?Oe:(e.Oe=null,e.Ne=null,e.Ke=null,d=null,h=null,u=null,e.Fe=null,n==Xe?-3:0),e.Xe=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?Oe:(Je[D].Re!=Je[t].Re&&0!==e.qe&&(r=e.Ye(1)),D!=t&&(D=t,P=Je[D].Pe,R=Je[D].Ie,B=Je[D].De,I=Je[D].Ve),V=n,r)},e.Ze=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return Oe;if(3>i)return 0;for(i>f-Ze&&(i=f-Ze,o=r-i),u.set(t.subarray(o,o+i),0),C=i,k=i,p=255&u[0],p=(p<<g^255&u[1])&b,s=0;i-3>=s;s++)p=(p<<g^255&u[s+2])&b,h[s&l]=d[p],d[p]=s;return 0},e.Ye=(r,i)=>{let o,w,m,I,R;if(i>4||0>i)return Oe;if(!r.$e||!r.et&&0!==r.We||n==Ye&&4!=i)return r.Le=Qe[4],Oe;if(0===r.tt)return r.Le=Qe[7],-5;var B;if(t=r,I=c,c=i,42==n&&(w=8+(a-8<<4)<<8,m=(D-1&255)>>1,m>3&&(m=3),w|=m<<6,0!==C&&(w|=32),w+=31-w%31,n=Xe,J((B=w)>>8&255),J(255&B)),0!==e.pending){if(t.Te(),0===t.tt)return c=-1,0}else if(0===t.We&&I>=i&&4!=i)return t.Le=Qe[7],-5;if(n==Ye&&0!==t.We)return r.Le=Qe[7],-5;if(0!==t.We||0!==A||0!=i&&n!=Ye){switch(R=-1,Je[D].Re){case 0:R=(e=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=A){if(ie(),0===A&&0==e)return 0;if(0===A)break}if(C+=A,A=0,n=k+r,(0===C||C>=n)&&(A=C-n,C=n,se(!1),0===t.tt))return 0;if(C-k>=f-Ze&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i);break;case 1:R=(e=>{let n,r=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C),0===r||(C-r&65535)>f-Ze||2!=V&&(v=oe(r)),3>v)n=ee(0,255&u[C]),A--,C++;else if(n=ee(C-x,v-3),A-=v,v>P||3>A)C+=v,v=0,p=255&u[C],p=(p<<g^255&u[C+1])&b;else{v--;do{C++,p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C}while(0!=--v);C++}if(n&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i);break;case 2:R=(e=>{let n,r,s=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C),_=v,S=x,v=2,0!==s&&P>_&&f-Ze>=(C-s&65535)&&(2!=V&&(v=oe(s)),5>=v&&(1==V||3==v&&C-x>4096)&&(v=2)),3>_||v>_)if(0!==z){if(n=ee(0,255&u[C-1]),n&&se(!1),C++,A--,0===t.tt)return 0}else z=1,C++,A--;else{r=C+A-3,n=ee(C-1-S,_-3),A-=_-1,_-=2;do{++C>r||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C)}while(0!=--_);if(z=0,v=2,C++,n&&(se(!1),0===t.tt))return 0}}return 0!==z&&(n=ee(0,255&u[C-1]),z=0),se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i)}if(2!=R&&3!=R||(n=Ye),0==R||2==R)return 0===t.tt&&(c=-1),0;if(1==R){if(1==i)X(2,3),Y(256,Le._e),$(),9>1+H+10-F&&(X(2,3),Y(256,Le._e),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.Te(),0===t.tt)return c=-1,0}}return 4!=i?0:1}}function tt(){const e=this;e.nt=0,e.rt=0,e.We=0,e.qe=0,e.tt=0,e.Ge=0}function nt(e){const t=new tt,n=(o=e&&e.chunkSize?e.chunkSize:65536)+5*(r.floor(o/16383)+1);var o;const c=new i(n);let f=e?e.level:-1;void 0===f&&(f=-1),t.He(f),t.$e=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,o=t.Ye(0),0!=o)throw new s("deflating: "+t.Le);t.rt&&(t.rt==n?w.push(new i(c)):w.push(c.subarray(0,t.rt))),u+=t.rt,r&&t.nt>0&&t.nt!=a&&(r(t.nt),a=t.nt)}while(t.We>0||0===t.tt);return w.length>1?(f=new i(u),w.forEach((e=>{f.set(e,l),l+=e.length}))):f=w[0]?new i(w[0]):new i,f}},this.flush=()=>{let e,r,o=0,f=0;const a=[];do{if(t.rt=0,t.tt=n,e=t.Ye(4),1!=e&&0!=e)throw new s("deflating: "+t.Le);n-t.tt>0&&a.push(c.slice(0,t.rt)),f+=t.rt}while(t.We>0||0===t.tt);return t.Qe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}tt.prototype={He(e,t){const n=this;return n.Fe=new et,t||(t=15),n.Fe.He(n,e,t)},Ye(e){const t=this;return t.Fe?t.Fe.Ye(t,e):Oe},Qe(){const e=this;if(!e.Fe)return Oe;const t=e.Fe.Qe();return e.Fe=null,t},Xe(e,t){const n=this;return n.Fe?n.Fe.Xe(n,e,t):Oe},Ze(e,t){const n=this;return n.Fe?n.Fe.Ze(n,e,t):Oe},je(e,t,n){const r=this;let s=r.We;return s>n&&(s=n),0===s?0:(r.We-=s,e.set(r.et.subarray(r.nt,r.nt+s),t),r.nt+=s,r.qe+=s,s)},Te(){const e=this;let t=e.Fe.pending;t>e.tt&&(t=e.tt),0!==t&&(e.$e.set(e.Fe.Ke.subarray(e.Fe.Je,e.Fe.Je+t),e.rt),e.rt+=t,e.Fe.Je+=t,e.Ge+=t,e.tt-=t,e.Fe.pending-=t,0===e.Fe.pending&&(e.Fe.Je=0))}};const rt=-2,st=-3,it=-5,ot=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],ct=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],ft=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],at=[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],lt=[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,112,112],ut=[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],wt=[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];function ht(){let e,t,n,r,s,i;function o(e,t,o,c,f,a,l,u,w,h,d){let p,y,m,b,g,k,v,S,z,C,x,A,_,I,P;C=0,g=o;do{n[e[t+C]]++,C++,g--}while(0!==g);if(n[0]==o)return l[0]=-1,u[0]=0,0;for(S=u[0],k=1;15>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=15;0!==g&&0===n[g];g--);for(m=g,S>g&&(S=g),u[0]=S,I=1<<k;g>k;k++,I<<=1)if(0>(I-=n[k]))return st;if(0>(I-=n[g]))return st;for(n[g]+=I,i[1]=k=0,C=1,_=2;0!=--g;)i[_]=k+=n[C],_++,C++;g=0,C=0;do{0!==(k=e[t+C])&&(d[i[k]++]=g),C++}while(++g<o);for(o=i[m],i[0]=g=0,C=0,b=-1,A=-S,s[0]=0,x=0,P=0;m>=v;v++)for(p=n[v];0!=p--;){for(;v>A+S;){if(b++,A+=S,P=m-A,P=P>S?S:P,(y=1<<(k=v-A))>p+1&&(y-=p+1,_=v,P>k))for(;++k<P&&(y<<=1)>n[++_];)y-=n[_];if(P=1<<k,h[0]+P>1440)return st;s[b]=x=h[0],h[0]+=P,0!==b?(i[b]=g,r[0]=k,r[1]=S,k=g>>>A-S,r[2]=x-s[b-1]-k,w.set(r,3*(s[b-1]+k))):l[0]=x}for(r[1]=v-A,o>C?d[C]<c?(r[0]=256>d[C]?0:96,r[2]=d[C++]):(r[0]=a[d[C]-c]+16+64,r[2]=f[d[C++]-c]):r[0]=192,y=1<<v-A,k=g>>>A;P>k;k+=y)w.set(r,3*(x+k));for(k=1<<v-1;g&k;k>>>=1)g^=k;for(g^=k,z=(1<<A)-1;(g&z)!=i[b];)b--,A-=S,z=(1<<A)-1}return 0!==I&&1!=m?it:0}function c(o){let c;for(e||(e=[],t=[],n=new f(16),r=[],s=new f(15),i=new f(16)),t.length<o&&(t=[]),c=0;o>c;c++)t[c]=0;for(c=0;16>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,15),0),i.set(n.subarray(0,16),0)}this.st=(n,r,s,i,f)=>{let a;return c(19),e[0]=0,a=o(n,0,19,19,null,null,s,r,i,e,t),a==st?f.Le="oversubscribed dynamic bit lengths tree":a!=it&&0!==r[0]||(f.Le="incomplete dynamic bit lengths tree",a=st),a},this.it=(n,r,s,i,f,a,l,u,w)=>{let h;return c(288),e[0]=0,h=o(s,0,n,257,at,lt,a,i,u,e,t),0!=h||0===i[0]?(h==st?w.Le="oversubscribed literal/length tree":-4!=h&&(w.Le="incomplete literal/length tree",h=st),h):(c(288),h=o(s,n,r,0,ut,wt,l,f,u,e,t),0!=h||0===f[0]&&n>257?(h==st?w.Le="oversubscribed distance tree":h==it?(w.Le="incomplete distance tree",h=st):-4!=h&&(w.Le="empty distance tree with lengths",h=st),h):0)}}function dt(){const e=this;let t,n,r,s,i=0,o=0,c=0,f=0,a=0,l=0,u=0,w=0,h=0,d=0;function p(e,t,n,r,s,i,o,c){let f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z;d=c.nt,p=c.We,w=o.ot,h=o.ct,y=o.write,m=y<o.read?o.read-y-1:o.end-y,b=ot[e],g=ot[t];do{for(;20>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;if(f=w&b,a=n,l=r,z=3*(l+f),0!==(u=a[z]))for(;;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15,k=a[z+2]+(w&ot[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;for(f=w&g,a=s,l=i,z=3*(l+f),u=a[z];;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15;u>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;if(v=a[z+2]+(w&ot[u]),w>>=u,h-=u,m-=k,v>y){S=y-v;do{S+=o.end}while(0>S);if(u=o.end-S,k>u){if(k-=u,y-S>0&&u>y-S)do{o.lt[y++]=o.lt[S++]}while(0!=--u);else o.lt.set(o.lt.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.lt[y++]=o.lt[S++],o.lt[y++]=o.lt[S++],k-=2):(o.lt.set(o.lt.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.lt[y++]=o.lt[S++]}while(0!=--k);else o.lt.set(o.lt.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(64&u)return c.Le="invalid distance code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,st;f+=a[z+2],f+=w&ot[u],z=3*(l+f),u=a[z]}break}if(64&u)return 32&u?(k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,1):(c.Le="invalid literal/length code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,st);if(f+=a[z+2],f+=w&ot[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,0}e.init=(e,i,o,c,f,a)=>{t=0,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.ut=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.nt,v=y.We,x=e.ot,A=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S;;)switch(t){case 0:if(z>=258&&v>=10&&(e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,m=p(u,w,r,h,s,d,e,y),_=y.nt,v=y.We,x=e.ot,A=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S,0!=m)){t=1==m?7:9;break}c=u,n=r,o=h,t=1;case 1:for(b=c;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>>=n[g+1],A-=n[g+1],k=n[g],0===k){f=n[g+2],t=6;break}if(16&k){a=15&k,i=n[g+2],t=2;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}if(32&k){t=7;break}return t=9,y.Le="invalid literal/length code",m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 2:for(b=a;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}i+=x&ot[b],x>>=b,A-=b,c=w,n=s,o=d,t=3;case 3:for(b=c;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>=n[g+1],A-=n[g+1],k=n[g],16&k){a=15&k,l=n[g+2],t=4;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}return t=9,y.Le="invalid distance code",m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 4:for(b=a;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}l+=x&ot[b],x>>=b,A-=b,t=5;case 5:for(C=S-l;0>C;)C+=e.end;for(;0!==i;){if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);e.lt[S++]=e.lt[C++],z--,C==e.end&&(C=0),i--}t=0;break;case 6:if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,e.lt[S++]=f,z--,t=0;break;case 7:if(A>7&&(A-=8,v++,_--),e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);t=8;case 8:return m=1,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 9:return m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);default:return m=rt,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m)}},e.ht=()=>{}}ht.dt=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=ct,r[0]=ft,0);const pt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function yt(e,t){const n=this;let r,s=0,o=0,c=0,a=0;const l=[0],u=[0],w=new dt;let h=0,d=new f(4320);const p=new ht;n.ct=0,n.ot=0,n.lt=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==s&&w.ht(e),s=0,n.ct=0,n.ot=0,n.read=n.write=0},n.reset(e,null),n.wt=(e,t)=>{let r,s,i;return s=e.rt,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.tt&&(r=e.tt),0!==r&&t==it&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r,i==n.end&&(i=0,n.write==n.end&&(n.write=0),r=n.write-i,r>e.tt&&(r=e.tt),0!==r&&t==it&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r),e.rt=s,n.read=i,t},n.ut=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.nt,b=e.We,f=n.ot,y=n.ct,g=n.write,k=g<n.read?n.read-g-1:n.end-g;;){let S,z,C,x,A,_,I,P;switch(s){case 0:for(;3>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}switch(i=7&f,h=1&i,i>>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,s=1;break;case 1:S=[],z=[],C=[[]],x=[[]],ht.dt(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=6;break;case 2:f>>>=3,y-=3,s=3;break;case 3:return f>>>=3,y-=3,s=9,e.Le="invalid block type",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}break;case 1:for(;32>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if((~f>>>16&65535)!=(65535&f))return s=9,e.Le="invalid stored block lengths",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);o=65535&f,f=y=0,s=0!==o?2:0!==h?7:0;break;case 2:if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(0===k&&(g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k&&(n.write=g,t=n.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k)))return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(t=0,i=o,i>b&&(i=b),i>k&&(i=k),n.lt.set(e.je(m,i),g),m+=i,b-=i,g+=i,k-=i,0!=(o-=i))break;s=0!==h?7:0;break;case 3:for(;14>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=9,e.Le="too many length or distance symbols",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(i=258+(31&i)+(i>>5&31),!r||r.length<i)r=[];else for(v=0;i>v;v++)r[v]=0;f>>>=14,y-=14,a=0,s=4;case 4:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}r[pt[a++]]=7&f,f>>>=3,y-=3}for(;19>a;)r[pt[a++]]=0;if(l[0]=7,i=p.st(r,l,u,d,e),0!=i)return(t=i)==st&&(r=null,s=9),n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);a=0,s=5;case 5:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(i=d[3*(u[0]+(f&ot[i]))+1],w=d[3*(u[0]+(f&ot[i]))+2],16>w)f>>>=i,y-=i,r[a++]=w;else{for(v=18==w?7:w-14,o=18==w?11:3;i+v>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(f>>>=i,y-=i,o+=f&ot[v],f>>>=v,y-=v,v=a,i=c,v+o>258+(31&i)+(i>>5&31)||16==w&&1>v)return r=null,s=9,e.Le="invalid bit length repeat",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w=16==w?r[v-1]:0;do{r[v++]=w}while(0!=--o);a=v}}if(u[0]=-1,A=[],_=[],I=[],P=[],A[0]=9,_[0]=6,i=c,i=p.it(257+(31&i),1+(i>>5&31),r,A,_,I,P,d,e),0!=i)return i==st&&(r=null,s=9),t=i,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=6;case 6:if(n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,1!=(t=w.ut(n,e,t)))return n.wt(e,t);if(t=0,w.ht(e),m=e.nt,b=e.We,f=n.ot,y=n.ct,g=n.write,k=g<n.read?n.read-g-1:n.end-g,0===h){s=0;break}s=7;case 7:if(n.write=g,t=n.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);s=8;case 8:return t=1,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);case 9:return t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);default:return t=rt,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}}},n.ht=e=>{n.reset(e,null),n.lt=null,d=null},n.yt=(e,t,r)=>{n.lt.set(e.subarray(t,t+r),0),n.read=n.write=r},n.bt=()=>1==s?1:0}const mt=13,bt=[0,0,255,255];function gt(){const e=this;function t(e){return e&&e.gt?(e.qe=e.Ge=0,e.Le=null,e.gt.mode=7,e.gt.kt.reset(e,null),0):rt}e.mode=0,e.method=0,e.vt=[0],e.St=0,e.marker=0,e.zt=0,e.Ct=t=>(e.kt&&e.kt.ht(t),e.kt=null,0),e.xt=(n,r)=>(n.Le=null,e.kt=null,8>r||r>15?(e.Ct(n),rt):(e.zt=r,n.gt.kt=new yt(n,1<<r),t(n),0)),e.At=(e,t)=>{let n,r;if(!e||!e.gt||!e.et)return rt;const s=e.gt;for(t=4==t?it:0,n=it;;)switch(s.mode){case 0:if(0===e.We)return n;if(n=t,e.We--,e.qe++,8!=(15&(s.method=e.ft(e.nt++)))){s.mode=mt,e.Le="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.zt){s.mode=mt,e.Le="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.We)return n;if(n=t,e.We--,e.qe++,r=255&e.ft(e.nt++),((s.method<<8)+r)%31!=0){s.mode=mt,e.Le="incorrect header check",s.marker=5;break}if(!(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St=(255&e.ft(e.nt++))<<24&4278190080,s.mode=3;case 3:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<16&16711680,s.mode=4;case 4:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<8&65280,s.mode=5;case 5:return 0===e.We?n:(n=t,e.We--,e.qe++,s.St+=255&e.ft(e.nt++),s.mode=6,2);case 6:return s.mode=mt,e.Le="need dictionary",s.marker=0,rt;case 7:if(n=s.kt.ut(e,n),n==st){s.mode=mt,s.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,s.kt.reset(e,s.vt),s.mode=12;case 12:return e.We=0,1;case mt:return st;default:return rt}},e._t=(e,t,n)=>{let r=0,s=n;if(!e||!e.gt||6!=e.gt.mode)return rt;const i=e.gt;return s<1<<i.zt||(s=(1<<i.zt)-1,r=n-s),i.kt.yt(t,r,s),i.mode=7,0},e.It=e=>{let n,r,s,i,o;if(!e||!e.gt)return rt;const c=e.gt;if(c.mode!=mt&&(c.mode=mt,c.marker=0),0===(n=e.We))return it;for(r=e.nt,s=c.marker;0!==n&&4>s;)e.ft(r)==bt[s]?s++:s=0!==e.ft(r)?0:4-s,r++,n--;return e.qe+=r-e.nt,e.nt=r,e.We=n,c.marker=s,4!=s?st:(i=e.qe,o=e.Ge,t(e),e.qe=i,e.Ge=o,c.mode=7,0)},e.Pt=e=>e&&e.gt&&e.gt.kt?e.gt.kt.bt():rt}function kt(){}function vt(e){const t=new kt,n=e&&e.chunkSize?r.floor(2*e.chunkSize):131072,o=new i(n);let c=!1;t.xt(),t.$e=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,0!==t.We||c||(t.nt=0,c=!0),a=t.At(0),c&&a===it){if(0!==t.We)throw new s("inflating: bad input")}else if(0!==a&&1!==a)throw new s("inflating: "+t.Le);if((c||1===a)&&t.We===e.length)throw new s("inflating: bad input");t.rt&&(t.rt===n?f.push(new i(o)):f.push(o.subarray(0,t.rt))),h+=t.rt,r&&t.nt>0&&t.nt!=u&&(r(t.nt),u=t.nt)}while(t.We>0||0===t.tt);return f.length>1?(l=new i(h),f.forEach((e=>{l.set(e,w),w+=e.length}))):l=f[0]?new i(f[0]):new i,l}},this.flush=()=>{t.Ct()}}kt.prototype={xt(e){const t=this;return t.gt=new gt,e||(e=15),t.gt.xt(t,e)},At(e){const t=this;return t.gt?t.gt.At(t,e):rt},Ct(){const e=this;if(!e.gt)return rt;const t=e.gt.Ct(e);return e.gt=null,t},It(){const e=this;return e.gt?e.gt.It(e):rt},_t(e,t){const n=this;return n.gt?n.gt._t(n,e,t):rt},ft(e){return this.et[e]},je(e,t){return this.et.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=nt,self.Inflate=vt};
90
- `,i=()=>t.useDataURI?"data:text/javascript,"+encodeURIComponent(r):URL.createObjectURL(new Blob([r],{type:"text/javascript"}));e({workerScripts:{inflate:[i],deflate:[i]}})}const Mb="Writer iterator completed too soon",Wb="Content-Type",Hb=64*1024,ed="writable";class Vo{constructor(){this.size=0}init(){this.initialized=!0}}class td extends Vo{get readable(){const t=this,{chunkSize:r=Hb}=t,i=new ReadableStream({start(){this.chunkOffset=0},async pull(a){const{offset:s=0,size:n,diskNumberStart:o}=i,{chunkOffset:l}=this;a.enqueue(await et(t,s+l,Math.min(r,n-l),o)),l+r>n?a.close():this.chunkOffset+=r}});return i}}class yo extends td{constructor(t){super(),Object.assign(this,{blob:t,size:t.size})}async readUint8Array(t,r){const i=this,a=t+r;let n=await(t||a<i.size?i.blob.slice(t,a):i.blob).arrayBuffer();return n.byteLength>r&&(n=n.slice(t,a)),new Uint8Array(n)}}class zb extends Vo{constructor(t){super();const r=this,i=new TransformStream,a=[];t&&a.push([Wb,t]),Object.defineProperty(r,ed,{get(){return i.writable}}),r.blob=new Response(i.readable,{headers:a}).blob()}getData(){return this.blob}}class Vb extends td{constructor(t){super(),this.readers=t}async init(){const t=this,{readers:r}=t;t.lastDiskNumber=0,t.lastDiskOffset=0,await Promise.all(r.map(async(i,a)=>{await i.init(),a!=r.length-1&&(t.lastDiskOffset+=i.size),t.size+=i.size})),super.init()}async readUint8Array(t,r,i=0){const a=this,{readers:s}=this;let n,o=i;o==-1&&(o=s.length-1);let l=t;for(;l>=s[o].size;)l-=s[o].size,o++;const p=s[o],c=p.size;if(l+r<=c)n=await et(p,l,r);else{const d=c-l;n=new Uint8Array(r),n.set(await et(p,l,d)),n.set(await a.readUint8Array(t+d,r-d,i),d)}return a.lastDiskNumber=Math.max(o,a.lastDiskNumber),n}}class $p extends Vo{constructor(t,r=4294967295){super();const i=this;Object.assign(i,{diskNumber:0,diskOffset:0,size:0,maxSize:r,availableSize:r});let a,s,n;const o=new WritableStream({async write(c){const{availableSize:d}=i;if(n)c.length>=d?(await l(c.slice(0,d)),await p(),i.diskOffset+=a.size,i.diskNumber++,n=null,await this.write(c.slice(d))):await l(c);else{const{value:m,done:y}=await t.next();if(y&&!m)throw new Error(Mb);a=m,a.size=0,a.maxSize&&(i.maxSize=a.maxSize),i.availableSize=i.maxSize,await ui(a),s=m.writable,n=s.getWriter(),await this.write(c)}},async close(){await n.ready,await p()}});Object.defineProperty(i,ed,{get(){return o}});async function l(c){const d=c.length;d&&(await n.ready,await n.write(c),a.size+=d,i.size+=d,i.availableSize-=d)}async function p(){s.size=a.size,await n.close()}}}async function ui(e,t){if(e.init&&!e.initialized)await e.init(t);else return Promise.resolve()}function Zb(e){return Array.isArray(e)&&(e=new Vb(e)),e instanceof ReadableStream&&(e={readable:e}),e}function Gb(e){e.writable===ft&&typeof e.next==ms&&(e=new $p(e)),e instanceof WritableStream&&(e={writable:e});const{writable:t}=e;return t.size===ft&&(t.size=0),e instanceof $p||Object.assign(e,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),e}function et(e,t,r,i){return e.readUint8Array(t,r,i)}const rd="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),Yb=rd.length==256;function Kb(e){if(Yb){let t="";for(let r=0;r<e.length;r++)t+=rd[e[r]];return t}else return new TextDecoder().decode(e)}function Zs(e,t){return t&&t.trim().toLowerCase()=="cp437"?Kb(e):new TextDecoder(t).decode(e)}const nd="filename",sd="rawFilename",id="comment",ad="rawComment",od="uncompressedSize",ld="compressedSize",fd="offset",go="diskNumberStart",wo="lastModDate",bo="rawLastModDate",pd="lastAccessDate",Xb="rawLastAccessDate",cd="creationDate",Jb="rawCreationDate",Qb="internalFileAttribute",e_="internalFileAttributes",t_="externalFileAttribute",r_="externalFileAttributes",n_="msDosCompatible",s_="zip64",i_="encrypted",a_="version",o_="versionMadeBy",l_="zipCrypto",f_="directory",p_="executable",c_=[nd,sd,ld,od,wo,bo,id,ad,pd,cd,fd,go,go,Qb,e_,t_,r_,n_,s_,i_,a_,o_,l_,f_,p_,"bitFlag","signature","filenameUTF8","commentUTF8","compressionMethod","extraField","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp"];class Rp{constructor(t){c_.forEach(r=>this[r]=t[r])}}const za="File format is not recognized",u_="End of central directory not found",d_="End of Zip64 central directory locator not found",h_="Central directory header not found",m_="Local file header not found",y_="Zip64 extra field not found",g_="File contains encrypted entry",w_="Encryption method not supported",Fp="Compression method not supported",Lp="Split zip file",Ip="utf-8",Cp="cp437",b_=[[od,Lr],[ld,Lr],[fd,Lr],[go,yr]],__={[yr]:{getValue:Be,bytes:4},[Lr]:{getValue:Gs,bytes:8}};class jp{constructor(t,r={}){Object.assign(this,{reader:Zb(t),options:r,config:eb()})}async*getEntriesGenerator(t={}){const r=this;let{reader:i}=r;const{config:a}=r;if(await ui(i),(i.size===ft||!i.readUint8Array)&&(i=new yo(await new Response(i.readable).blob()),await ui(i)),i.size<Qr)throw new Error(za);i.chunkSize=tb(a);const s=await S_(i,q1,i.size,Qr,yr*16);if(!s){const P=await et(i,0,4),S=Ye(P);throw Be(S)==B1?new Error(Lp):new Error(u_)}const n=Ye(s);let o=Be(n,12),l=Be(n,16);const p=s.offset,c=Ge(n,20),d=p+Qr+c;let m=Ge(n,4);const y=i.lastDiskNumber||0;let T=Ge(n,6),g=Ge(n,8),w=0,b=0;if(l==Lr||o==Lr||g==yr||T==yr){const P=await et(i,s.offset-Ua,Ua),S=Ye(P);if(Be(S,0)==M1){l=Gs(S,8);let j=await et(i,l,Ba,-1),R=Ye(j);const D=s.offset-Ua-Ba;if(Be(R,0)!=fp&&l!=D){const V=l;l=D,w=l-V,j=await et(i,l,Ba,-1),R=Ye(j)}if(Be(R,0)!=fp)throw new Error(d_);m==yr&&(m=Be(R,16)),T==yr&&(T=Be(R,20)),g==yr&&(g=Gs(R,32)),o==Lr&&(o=Gs(R,40)),l-=o}}if(l>=i.size&&(w=i.size-l-o-Qr,l=i.size-o-Qr),y!=m)throw new Error(Lp);if(l<0)throw new Error(za);let O=0,E=await et(i,l,o,T),I=Ye(E);if(o){const P=s.offset-o;if(Be(I,O)!=lp&&l!=P){const S=l;l=P,w+=l-S,E=await et(i,l,o,T),I=Ye(E)}}const $=s.offset-l-(i.lastDiskOffset||0);if(o!=$&&$>=0&&(o=$,E=await et(i,l,o,T),I=Ye(E)),l<0||l>=i.size)throw new Error(za);const L=it(r,t,"filenameEncoding"),C=it(r,t,"commentEncoding");for(let P=0;P<g;P++){const S=new v_(i,a,r.options);if(Be(I,O)!=lp)throw new Error(h_);ud(S,I,O+6);const j=!!S.bitFlag.languageEncodingFlag,R=O+46,D=R+S.filenameLength,V=D+S.extraFieldLength,B=Ge(I,O+4),Y=B>>8==0,G=B>>8==3,te=E.subarray(R,D),z=Ge(I,O+32),X=V+z,ee=E.subarray(V,X),Z=j,fe=j,oe=Be(I,O+38),ie=Y&&(un(I,O+38)&dp)==dp||G&&(oe>>16&hp)==hp||te.length&&te[te.length-1]==yp.charCodeAt(0),Ae=G&&(oe>>16&mp)==mp,Oe=Be(I,O+42)+w;Object.assign(S,{versionMadeBy:B,msDosCompatible:Y,compressedSize:0,uncompressedSize:0,commentLength:z,directory:ie,offset:Oe,diskNumberStart:Ge(I,O+34),internalFileAttributes:Ge(I,O+36),externalFileAttributes:oe,rawFilename:te,filenameUTF8:Z,commentUTF8:fe,rawExtraField:E.subarray(D,V),executable:Ae}),S.internalFileAttribute=S.internalFileAttributes,S.externalFileAttribute=S.externalFileAttributes;const Xe=it(r,t,"decodeText")||Zs,tt=Z?Ip:L||Cp,Et=fe?Ip:C||Cp;let Ie=Xe(te,tt);Ie===ft&&(Ie=Zs(te,tt));let Ce=Xe(ee,Et);Ce===ft&&(Ce=Zs(ee,Et)),Object.assign(S,{rawComment:ee,filename:Ie,comment:Ce,directory:ie||Ie.endsWith(yp)}),b=Math.max(Oe,b),dd(S,S,I,O+6),S.zipCrypto=S.encrypted&&!S.extraFieldAES;const pt=new Rp(S);pt.getData=(x,u)=>S.getData(x,pt,u),O=X;const{onprogress:Re}=t;if(Re)try{await Re(P+1,g,new Rp(S))}catch{}yield pt}const _=it(r,t,"extractPrependedData"),F=it(r,t,"extractAppendedData");return _&&(r.prependedData=b>0?await et(i,0,b):new Uint8Array),r.comment=c?await et(i,p+Qr,c):new Uint8Array,F&&(r.appendedData=d<i.size?await et(i,d,i.size-d):new Uint8Array),!0}async getEntries(t={}){const r=[];for await(const i of this.getEntriesGenerator(t))r.push(i);return r}async close(){}}class v_{constructor(t,r,i){Object.assign(this,{reader:t,config:r,options:i})}async getData(t,r,i={}){const a=this,{reader:s,offset:n,diskNumberStart:o,extraFieldAES:l,compressionMethod:p,config:c,bitFlag:d,signature:m,rawLastModDate:y,uncompressedSize:T,compressedSize:g}=a,w=r.localDirectory={},b=await et(s,n,30,o),O=Ye(b);let E=it(a,i,"password"),I=it(a,i,"rawPassword");const $=it(a,i,"passThrough");if(E=E&&E.length&&E,I=I&&I.length&&I,l&&l.originalCompressionMethod!=D1)throw new Error(Fp);if(p!=N1&&p!=j1&&!$)throw new Error(Fp);if(Be(O,0)!=U1)throw new Error(m_);ud(w,O,4),w.rawExtraField=w.extraFieldLength?await et(s,n+30+w.filenameLength,w.extraFieldLength,o):new Uint8Array,dd(a,w,O,4,!0),Object.assign(r,{lastAccessDate:w.lastAccessDate,creationDate:w.creationDate});const L=a.encrypted&&w.encrypted&&!$,C=L&&!l;if($||(r.zipCrypto=C),L){if(!C&&l.strength===ft)throw new Error(w_);if(!E&&!I)throw new Error(g_)}const _=n+30+w.filenameLength+w.extraFieldLength,F=g,P=s.readable;Object.assign(P,{diskNumberStart:o,offset:_,size:F});const S=it(a,i,"signal"),j=it(a,i,"checkPasswordOnly");j&&(t=new WritableStream),t=Gb(t),await ui(t,$?g:T);const{writable:R}=t,{onstart:D,onprogress:V,onend:B}=i,Y={options:{codecType:Xu,password:E,rawPassword:I,zipCrypto:C,encryptionStrength:l&&l.strength,signed:it(a,i,"checkSignature")&&!$,passwordVerification:C&&(d.dataDescriptor?y>>>8&255:m>>>24&255),signature:m,compressed:p!=0&&!$,encrypted:a.encrypted&&!$,useWebWorkers:it(a,i,"useWebWorkers"),useCompressionStream:it(a,i,"useCompressionStream"),transferStreams:it(a,i,"transferStreams"),checkPasswordOnly:j},config:c,streamOptions:{signal:S,size:F,onstart:D,onprogress:V,onend:B}};let G=0;try{({outputSize:G}=await Ub({readable:P,writable:R},Y))}catch(te){if(!j||te.message!=Wo)throw te}finally{const te=it(a,i,"preventClose");R.size+=G,!te&&!R.locked&&await R.getWriter().close()}return j?ft:t.getData?t.getData():R}}function ud(e,t,r){const i=e.rawBitFlag=Ge(t,r+2),a=(i&pp)==pp,s=Be(t,r+6);Object.assign(e,{encrypted:a,version:Ge(t,r),bitFlag:{level:(i&X1)>>1,dataDescriptor:(i&cp)==cp,languageEncodingFlag:(i&up)==up},rawLastModDate:s,lastModDate:T_(s),filenameLength:Ge(t,r+22),extraFieldLength:Ge(t,r+24)})}function dd(e,t,r,i,a){const{rawExtraField:s}=t,n=t.extraField=new Map,o=Ye(new Uint8Array(s));let l=0;try{for(;l<s.length;){const b=Ge(o,l),O=Ge(o,l+2);n.set(b,{type:b,data:s.slice(l+4,l+4+O)}),l+=4+O}}catch{}const p=Ge(r,i+4);Object.assign(t,{signature:Be(r,i+10),uncompressedSize:Be(r,i+18),compressedSize:Be(r,i+14)});const c=n.get(W1);c&&(x_(c,t),t.extraFieldZip64=c);const d=n.get(G1);d&&(Np(d,nd,sd,t,e),t.extraFieldUnicodePath=d);const m=n.get(Y1);m&&(Np(m,id,ad,t,e),t.extraFieldUnicodeComment=m);const y=n.get(H1);y?(k_(y,t,p),t.extraFieldAES=y):t.compressionMethod=p;const T=n.get(z1);T&&(P_(T,t),t.extraFieldNTFS=T);const g=n.get(Z1);g&&(E_(g,t,a),t.extraFieldExtendedTimestamp=g);const w=n.get(K1);w&&(t.extraFieldUSDZ=w)}function x_(e,t){t.zip64=!0;const r=Ye(e.data),i=b_.filter(([a,s])=>t[a]==s);for(let a=0,s=0;a<i.length;a++){const[n,o]=i[a];if(t[n]==o){const l=__[o];t[n]=e[n]=l.getValue(r,s),s+=l.bytes}else if(e[n])throw new Error(y_)}}function Np(e,t,r,i,a){const s=Ye(e.data),n=new pi;n.append(a[r]);const o=Ye(new Uint8Array(4));o.setUint32(0,n.get(),!0);const l=Be(s,1);Object.assign(e,{version:un(s,0),[t]:Zs(e.data.subarray(5)),valid:!a.bitFlag.languageEncodingFlag&&l==Be(o,0)}),e.valid&&(i[t]=e[t],i[t+"UTF8"]=!0)}function k_(e,t,r){const i=Ye(e.data),a=un(i,4);Object.assign(e,{vendorVersion:un(i,0),vendorId:un(i,2),strength:a,originalCompressionMethod:r,compressionMethod:Ge(i,5)}),t.compressionMethod=e.compressionMethod}function P_(e,t){const r=Ye(e.data);let i=4,a;try{for(;i<e.data.length&&!a;){const s=Ge(r,i),n=Ge(r,i+2);s==V1&&(a=e.data.slice(i+4,i+4+n)),i+=4+n}}catch{}try{if(a&&a.length==24){const s=Ye(a),n=s.getBigUint64(0,!0),o=s.getBigUint64(8,!0),l=s.getBigUint64(16,!0);Object.assign(e,{rawLastModDate:n,rawLastAccessDate:o,rawCreationDate:l});const p=Va(n),c=Va(o),d=Va(l),m={lastModDate:p,lastAccessDate:c,creationDate:d};Object.assign(e,m),Object.assign(t,m)}}catch{}}function E_(e,t,r){const i=Ye(e.data),a=un(i,0),s=[],n=[];r?((a&1)==1&&(s.push(wo),n.push(bo)),(a&2)==2&&(s.push(pd),n.push(Xb)),(a&4)==4&&(s.push(cd),n.push(Jb))):e.data.length>=5&&(s.push(wo),n.push(bo));let o=1;s.forEach((l,p)=>{if(e.data.length>=o+4){const c=Be(i,o);t[l]=e[l]=new Date(c*1e3);const d=n[p];e[d]=c}o+=4})}async function S_(e,t,r,i,a){const s=new Uint8Array(4),n=Ye(s);O_(n,0,t);const o=i+a;return await l(i)||await l(Math.min(o,r));async function l(p){const c=r-p,d=await et(e,c,p);for(let m=d.length-i;m>=0;m--)if(d[m]==s[0]&&d[m+1]==s[1]&&d[m+2]==s[2]&&d[m+3]==s[3])return{offset:c+m,buffer:d.slice(m,m+i).buffer}}}function it(e,t,r){return t[r]===ft?e.options[r]:t[r]}function T_(e){const t=(e&4294901760)>>16,r=e&65535;try{return new Date(1980+((t&65024)>>9),((t&480)>>5)-1,t&31,(r&63488)>>11,(r&2016)>>5,(r&31)*2,0)}catch{}}function Va(e){return new Date(Number(e/BigInt(1e4)-BigInt(116444736e5)))}function un(e,t){return e.getUint8(t)}function Ge(e,t){return e.getUint16(t,!0)}function Be(e,t){return e.getUint32(t,!0)}function Gs(e,t){return Number(e.getBigUint64(t,!0))}function O_(e,t,r){e.setUint32(t,r,!0)}function Ye(e){return new DataView(e.buffer)}let hd;try{hd=typeof document>"u"?require("url").pathToFileURL(__filename).href:sr&&sr.tagName.toUpperCase()==="SCRIPT"&&sr.src||new URL("index.cjs",document.baseURI).href}catch{}Mo({baseURL:hd});qb(Mo);Mo({Deflate:h1,Inflate:C1});class A_{constructor(t){this.fileTree=t}async read(t){let r=this.getEntryAtPath(t);if(typeof r=="string")r=new TextEncoder().encode(r);else if(!(r instanceof Uint8Array))throw new Error(`Unsupported content type: ${typeof r}`);const i=new ReadableStream({start(a){a.enqueue(r),a.close()}});return new Cr(i,t,{filesize:r.byteLength})}getEntryAtPath(t){let r=t.replace(/^\//,""),i=this.fileTree;for(;r;){if(i[r])return i[r];const a=r.split("/"),s=a.shift();if(!s||!i[s])break;i=i[s],r=a.join("/")}throw new Error(`File not found at ${t}`)}}class di{constructor(t){this.entries=new Map,this.zipReader=t}static fromStream(t){const r=new jp(new yo(new Cr(t,"archive.zip")));return new di(r)}static fromArrayBuffer(t){const r=new jp(new yo(new Blob([t])));return new di(r)}async read(t){const r=await this.getEntry(t),i=await r.getData(new zb);return new Cr(i.stream(),t,{filesize:r.uncompressedSize})}async getEntry(t){const r=await this.getEntries(),i=Mr(t).replace(/^\//,""),a=r.get(i);if(!a)throw new Error(`File ${t} not found in the zip.`);return a}async getEntries(){if(this.entries.size===0){const t=await this.zipReader.getEntries();for(const r of t)this.entries.set(r.filename,r)}return this.entries}async getAllFilePaths(){const t=await this.getEntries();return Array.from(t.keys())}}class $_{constructor(t,r){this.chroot=t,this.backend=r}async read(t){const r=Se(this.chroot,t);return this.backend.read(r)}}class R_{constructor(t){if(!t.length)throw new Error("OverlayFilesystem requires at least one filesystem");this.filesystems=t}async read(t){const r=[];for(const a of this.filesystems)try{return await a.read(t)}catch(s){r.push(s instanceof Error?s:new Error(String(s)))}const i=r.map(a=>a.message).join("; ");throw new Error(`Failed to read ${t} from any filesystem: ${i}`,{cause:r})}}class F_{constructor(t){if(this.baseUrl="",this.options=t,this.isDataUrl=t.baseUrl.startsWith("data:"),this.isDataUrl)return;const r=new URL("./",t.baseUrl);if(r.protocol!=="http:"&&r.protocol!=="https:")throw new Error("Unsupported protocol: "+r.protocol+". Only HTTP and HTTPS are supported.");this.baseUrl=r.origin+r.pathname}async read(t){if(this.isDataUrl)throw new Error("FetchFilesystem cannot fetch files from data URLs");t=Mr(t);const r=t.replace(/^\//,""),i=new URL(r,this.baseUrl).toString();if(!i.startsWith(this.baseUrl))throw new Error(`Refused to read a file outside of the base URL: ${i}`);const a=this.options.corsProxy?`${this.options.corsProxy}${encodeURIComponent(i)}`:i,s=await fetch(a);if(!s.ok)throw new Error(`Failed to fetch file at ${t}: ${s.statusText}`);const n=s.headers.get("content-length")?parseInt(s.headers.get("content-length"),10):void 0;return new Cr(s.body,t,{filesize:n})}}function Ai(e){const t=e.split(".").shift().replace(/-/g," ");return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}async function Dp(e,t){let r;return["GET","HEAD"].includes(e.method)?r=void 0:"body"in t?r=t.body:!e.bodyUsed&&e.body?r=e.body:r=await e.arrayBuffer(),new Request(t.url||e.url,{body:r,method:e.method,headers:e.headers,referrer:e.referrer,referrerPolicy:e.referrerPolicy,mode:e.mode==="navigate"?"same-origin":e.mode,credentials:e.credentials,cache:e.cache,redirect:e.redirect,integrity:e.integrity,...r instanceof ReadableStream&&{duplex:"half"},...t})}let An;async function L_(){if(An!==void 0)return An;try{const e=new ReadableStream({start(t){t.close()}});await fetch("data:,",{method:"POST",body:e,duplex:"half"}),An=!0}catch{An=!1}return An}class I_ extends Error{constructor(t,r,i){super(`Could not fetch ${t} – your network appears to be blocking this request (HTTP ${r}). This often happens on school, university, or corporate networks. Try switching to a different network or using a VPN.`),this.name="FirewallInterferenceError",this.url=t,this.status=r,this.statusText=i}}const C_="X-Playground-Cors-Proxy";async function j_(e,t,r,i){var p;let a=typeof e=="string"?new Request(e,t):e;const s=i?new URL(i):null;let n=s?new URL(a.url,s):new URL(a.url);if(n.hostname==="localhost"||n.hostname==="127.0.0.1"||n.hostname==="[::1]"||n.hostname==="::1")return await fetch(a);if(n.protocol==="http:"){n.protocol="https:";const c=n.toString();a=await Dp(a,{url:c}),n=new URL(c)}if(!r)return await fetch(a);if(s&&n.protocol===s.protocol&&n.hostname===s.hostname&&n.port===s.port&&n.pathname.startsWith(s.pathname))return await fetch(a);const l=a.clone();try{return await fetch(a)}catch{const c=new Headers(a.headers),d=((p=c.get("x-cors-proxy-allowed-request-headers"))==null?void 0:p.split(","))||[],m=d.includes("authorization")||d.includes("cookie"),y=c.get("content-type");y&&y.toLowerCase().includes("multipart/form-data")&&(c.set("x-cors-proxy-content-type",y),c.set("content-type","application/octet-stream"));let T=null;const g=a.method.toUpperCase();g!=="GET"&&g!=="HEAD"&&(await L_()?T=l.body:T=await l.arrayBuffer()),T instanceof ReadableStream&&new URL(r,typeof document>"u"?require("url").pathToFileURL(__filename).href:sr&&sr.tagName.toUpperCase()==="SCRIPT"&&sr.src||new URL("index.cjs",document.baseURI).href).protocol==="http:"&&(T=await new Response(T).arrayBuffer());const w=await Dp(a,{url:`${r}${a.url}`,headers:c,body:T,...m&&{credentials:"include"}}),b=await fetch(w);if(!b.headers.has(C_))throw new I_(a.url,b.status,b.statusText);return b}}const N_=`Blueprint resource of type "bundled" requires a filesystem.
89
+ `),Object.assign(o,await Zw(a));const p=new Tr;for(const[d,m]of Object.entries(s)){const y=d.substring(n.length).replace(/^\/+/,"");p.insert({filepath:y,oid:m,stats:{ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:33188,uid:0,gid:0,size:0}})}const c=await p.toObject();return o[".git/index"]=Uint8Array.from(c),o}function Xw(e,t){t=Mr(t);const r=["",".","/"].includes(t);let i=e;if(r)t="";else{const n=t.split("/");for(const o of n){const l=i==null?void 0:i.find(p=>p.name===o);if((l==null?void 0:l.type)==="folder")i=l.children;else return l?[l.name]:[]}}const a=[],s=[{tree:i,path:t}];for(;s.length>0;){const{tree:n,path:o}=s.pop();for(const l of n){const p=`${o}${o?"/":""}${l.name}`;l.type==="folder"?s.push({tree:l.children,path:p}):a.push(p)}}return a}const Xn=15,co=30,uo=19,Jw=29,li=256,qo=li+1+Jw,Cf=2*qo+1,Pn=256,Qw=7,jf=16,Nf=17,Df=18,Fa=8*2,fi=-1,e1=1,Es=2,t1=0,rn=0,Uf=1,r1=3,ct=4,Ct=0,Su=1,Ss=2,Nt=-2,n1=-3,Xr=-5;function Si(e){return Ti(e.map(([t,r])=>new Array(t).fill(r,0,t)))}function Ti(e){return e.reduce((t,r)=>t.concat(Array.isArray(r)?Ti(r):r),[])}const Bf=[0,1,2,3].concat(...Si([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function Fe(){const e=this;function t(a){const s=e.dyn_tree,n=e.stat_desc.static_tree,o=e.stat_desc.extra_bits,l=e.stat_desc.extra_base,p=e.stat_desc.max_length;let c,d,m,y,T,g,w=0;for(y=0;y<=Xn;y++)a.bl_count[y]=0;for(s[a.heap[a.heap_max]*2+1]=0,c=a.heap_max+1;c<Cf;c++)d=a.heap[c],y=s[s[d*2+1]*2+1]+1,y>p&&(y=p,w++),s[d*2+1]=y,!(d>e.max_code)&&(a.bl_count[y]++,T=0,d>=l&&(T=o[d-l]),g=s[d*2],a.opt_len+=g*(y+T),n&&(a.static_len+=g*(n[d*2+1]+T)));if(w!==0){do{for(y=p-1;a.bl_count[y]===0;)y--;a.bl_count[y]--,a.bl_count[y+1]+=2,a.bl_count[p]--,w-=2}while(w>0);for(y=p;y!==0;y--)for(d=a.bl_count[y];d!==0;)m=a.heap[--c],!(m>e.max_code)&&(s[m*2+1]!=y&&(a.opt_len+=(y-s[m*2+1])*s[m*2],s[m*2+1]=y),d--)}}function r(a,s){let n=0;do n|=a&1,a>>>=1,n<<=1;while(--s>0);return n>>>1}function i(a,s,n){const o=[];let l=0,p,c,d;for(p=1;p<=Xn;p++)o[p]=l=l+n[p-1]<<1;for(c=0;c<=s;c++)d=a[c*2+1],d!==0&&(a[c*2]=r(o[d]++,d))}e.build_tree=function(a){const s=e.dyn_tree,n=e.stat_desc.static_tree,o=e.stat_desc.elems;let l,p,c=-1,d;for(a.heap_len=0,a.heap_max=Cf,l=0;l<o;l++)s[l*2]!==0?(a.heap[++a.heap_len]=c=l,a.depth[l]=0):s[l*2+1]=0;for(;a.heap_len<2;)d=a.heap[++a.heap_len]=c<2?++c:0,s[d*2]=1,a.depth[d]=0,a.opt_len--,n&&(a.static_len-=n[d*2+1]);for(e.max_code=c,l=Math.floor(a.heap_len/2);l>=1;l--)a.pqdownheap(s,l);d=o;do l=a.heap[1],a.heap[1]=a.heap[a.heap_len--],a.pqdownheap(s,1),p=a.heap[1],a.heap[--a.heap_max]=l,a.heap[--a.heap_max]=p,s[d*2]=s[l*2]+s[p*2],a.depth[d]=Math.max(a.depth[l],a.depth[p])+1,s[l*2+1]=s[p*2+1]=d,a.heap[1]=d++,a.pqdownheap(s,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],t(a),i(s,e.max_code,a.bl_count)}}Fe._length_code=[0,1,2,3,4,5,6,7].concat(...Si([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]]));Fe.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0];Fe.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576];Fe.d_code=function(e){return e<256?Bf[e]:Bf[256+(e>>>7)]};Fe.extra_lbits=[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];Fe.extra_dbits=[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];Fe.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];Fe.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function Je(e,t,r,i,a){const s=this;s.static_tree=e,s.extra_bits=t,s.extra_base=r,s.elems=i,s.max_length=a}const s1=[12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227],i1=Si([[144,8],[112,9],[24,7],[8,8]]);Je.static_ltree=Ti(s1.map((e,t)=>[e,i1[t]]));const a1=[0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23],o1=Si([[30,5]]);Je.static_dtree=Ti(a1.map((e,t)=>[e,o1[t]]));Je.static_l_desc=new Je(Je.static_ltree,Fe.extra_lbits,li+1,qo,Xn);Je.static_d_desc=new Je(Je.static_dtree,Fe.extra_dbits,0,co,Xn);Je.static_bl_desc=new Je(null,Fe.extra_blbits,0,uo,Qw);const l1=9,f1=8;function Ht(e,t,r,i,a){const s=this;s.good_length=e,s.max_lazy=t,s.nice_length=r,s.max_chain=i,s.func=a}const Tu=0,Hs=1,Er=2,Lt=[new Ht(0,0,0,0,Tu),new Ht(4,4,8,4,Hs),new Ht(4,5,16,8,Hs),new Ht(4,6,32,32,Hs),new Ht(4,4,16,16,Er),new Ht(8,16,32,32,Er),new Ht(8,16,128,128,Er),new Ht(8,32,128,256,Er),new Ht(32,128,258,1024,Er),new Ht(32,258,258,4096,Er)],Ts=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],St=0,Os=1,En=2,As=3,p1=32,La=42,$s=113,Sn=666,Ia=8,c1=0,Ca=1,u1=2,Ne=3,zs=258,wt=zs+Ne+1;function qf(e,t,r,i){const a=e[t*2],s=e[r*2];return a<s||a==s&&i[t]<=i[r]}function d1(){const e=this;let t,r,i,a,s,n,o,l,p,c,d,m,y,T,g,w,_,O,E,I,$,L,C,b,F,P,S,j,R,D,V,B,Y;const G=new Fe,te=new Fe,z=new Fe;e.depth=[];let X,ee,Z,fe,oe,ie;e.bl_count=[],e.heap=[],V=[],B=[],Y=[];function Ae(){p=2*s,d[y-1]=0;for(let M=0;M<y-1;M++)d[M]=0;P=Lt[S].max_lazy,R=Lt[S].good_length,D=Lt[S].nice_length,F=Lt[S].max_chain,$=0,_=0,C=0,O=b=Ne-1,I=0,m=0}function Oe(){let M;for(M=0;M<qo;M++)V[M*2]=0;for(M=0;M<co;M++)B[M*2]=0;for(M=0;M<uo;M++)Y[M*2]=0;V[Pn*2]=1,e.opt_len=e.static_len=0,ee=Z=0}function Xe(){G.dyn_tree=V,G.stat_desc=Je.static_l_desc,te.dyn_tree=B,te.stat_desc=Je.static_d_desc,z.dyn_tree=Y,z.stat_desc=Je.static_bl_desc,oe=0,ie=0,fe=8,Oe()}e.pqdownheap=function(M,K){const W=e.heap,Q=W[K];let se=K<<1;for(;se<=e.heap_len&&(se<e.heap_len&&qf(M,W[se+1],W[se],e.depth)&&se++,!qf(M,Q,W[se],e.depth));)W[K]=W[se],K=se,se<<=1;W[K]=Q};function tt(M,K){let W=-1,Q,se=M[0*2+1],le=0,de=7,Me=4;se===0&&(de=138,Me=3),M[(K+1)*2+1]=65535;for(let ce=0;ce<=K;ce++)Q=se,se=M[(ce+1)*2+1],!(++le<de&&Q==se)&&(le<Me?Y[Q*2]+=le:Q!==0?(Q!=W&&Y[Q*2]++,Y[jf*2]++):le<=10?Y[Nf*2]++:Y[Df*2]++,le=0,W=Q,se===0?(de=138,Me=3):Q==se?(de=6,Me=3):(de=7,Me=4))}function Et(){let M;for(tt(V,G.max_code),tt(B,te.max_code),z.build_tree(e),M=uo-1;M>=3&&Y[Fe.bl_order[M]*2+1]===0;M--);return e.opt_len+=3*(M+1)+5+5+4,M}function Ie(M){e.pending_buf[e.pending++]=M}function Ce(M){Ie(M&255),Ie(M>>>8&255)}function pt(M){Ie(M>>8&255),Ie(M&255&255)}function Re(M,K){let W;const Q=K;ie>Fa-Q?(W=M,oe|=W<<ie&65535,Ce(oe),oe=W>>>Fa-ie,ie+=Q-Fa):(oe|=M<<ie&65535,ie+=Q)}function x(M,K){const W=M*2;Re(K[W]&65535,K[W+1]&65535)}function u(M,K){let W,Q=-1,se,le=M[0*2+1],de=0,Me=7,ce=4;for(le===0&&(Me=138,ce=3),W=0;W<=K;W++)if(se=le,le=M[(W+1)*2+1],!(++de<Me&&se==le)){if(de<ce)do x(se,Y);while(--de!==0);else se!==0?(se!=Q&&(x(se,Y),de--),x(jf,Y),Re(de-3,2)):de<=10?(x(Nf,Y),Re(de-3,3)):(x(Df,Y),Re(de-11,7));de=0,Q=se,le===0?(Me=138,ce=3):se==le?(Me=6,ce=3):(Me=7,ce=4)}}function h(M,K,W){let Q;for(Re(M-257,5),Re(K-1,5),Re(W-4,4),Q=0;Q<W;Q++)Re(Y[Fe.bl_order[Q]*2+1],3);u(V,M-1),u(B,K-1)}function A(){ie==16?(Ce(oe),oe=0,ie=0):ie>=8&&(Ie(oe&255),oe>>>=8,ie-=8)}function U(){Re(Ca<<1,3),x(Pn,Je.static_ltree),A(),1+fe+10-ie<9&&(Re(Ca<<1,3),x(Pn,Je.static_ltree),A()),fe=7}function H(M,K){let W,Q,se;if(e.dist_buf[ee]=M,e.lc_buf[ee]=K&255,ee++,M===0?V[K*2]++:(Z++,M--,V[(Fe._length_code[K]+li+1)*2]++,B[Fe.d_code(M)*2]++),!(ee&8191)&&S>2){for(W=ee*8,Q=$-_,se=0;se<co;se++)W+=B[se*2]*(5+Fe.extra_dbits[se]);if(W>>>=3,Z<Math.floor(ee/2)&&W<Math.floor(Q/2))return!0}return ee==X-1}function J(M,K){let W,Q,se=0,le,de;if(ee!==0)do W=e.dist_buf[se],Q=e.lc_buf[se],se++,W===0?x(Q,M):(le=Fe._length_code[Q],x(le+li+1,M),de=Fe.extra_lbits[le],de!==0&&(Q-=Fe.base_length[le],Re(Q,de)),W--,le=Fe.d_code(W),x(le,K),de=Fe.extra_dbits[le],de!==0&&(W-=Fe.base_dist[le],Re(W,de)));while(se<ee);x(Pn,M),fe=M[Pn*2+1]}function pe(){ie>8?Ce(oe):ie>0&&Ie(oe&255),oe=0,ie=0}function we(M,K,W){pe(),fe=8,Ce(K),Ce(~K),e.pending_buf.set(l.subarray(M,M+K),e.pending),e.pending+=K}function he(M,K,W){Re((c1<<1)+(W?1:0),3),we(M,K)}function De(M,K,W){let Q,se,le=0;S>0?(G.build_tree(e),te.build_tree(e),le=Et(),Q=e.opt_len+3+7>>>3,se=e.static_len+3+7>>>3,se<=Q&&(Q=se)):Q=se=K+5,K+4<=Q&&M!=-1?he(M,K,W):se==Q?(Re((Ca<<1)+(W?1:0),3),J(Je.static_ltree,Je.static_dtree)):(Re((u1<<1)+(W?1:0),3),h(G.max_code+1,te.max_code+1,le+1),J(V,B)),Oe(),W&&pe()}function ue(M){De(_>=0?_:-1,$-_,M),_=$,t.flush_pending()}function yt(){let M,K,W,Q;do{if(Q=p-C-$,Q===0&&$===0&&C===0)Q=s;else if(Q==-1)Q--;else if($>=s+s-wt){l.set(l.subarray(s,s+s),0),L-=s,$-=s,_-=s,M=y,W=M;do K=d[--W]&65535,d[W]=K>=s?K-s:0;while(--M!==0);M=s,W=M;do K=c[--W]&65535,c[W]=K>=s?K-s:0;while(--M!==0);Q+=s}if(t.avail_in===0)return;M=t.read_buf(l,$+C,Q),C+=M,C>=Ne&&(m=l[$]&255,m=(m<<w^l[$+1]&255)&g)}while(C<wt&&t.avail_in!==0)}function rt(M){let K=65535,W;for(K>i-5&&(K=i-5);;){if(C<=1){if(yt(),C===0&&M==rn)return St;if(C===0)break}if($+=C,C=0,W=_+K,($===0||$>=W)&&(C=$-W,$=W,ue(!1),t.avail_out===0)||$-_>=s-wt&&(ue(!1),t.avail_out===0))return St}return ue(M==ct),t.avail_out===0?M==ct?En:St:M==ct?As:Os}function Ft(M){let K=F,W=$,Q,se,le=b;const de=$>s-wt?$-(s-wt):0;let Me=D;const ce=o,xe=$+zs;let q=l[W+le-1],ae=l[W+le];b>=R&&(K>>=2),Me>C&&(Me=C);do if(Q=M,!(l[Q+le]!=ae||l[Q+le-1]!=q||l[Q]!=l[W]||l[++Q]!=l[W+1])){W+=2,Q++;do;while(l[++W]==l[++Q]&&l[++W]==l[++Q]&&l[++W]==l[++Q]&&l[++W]==l[++Q]&&l[++W]==l[++Q]&&l[++W]==l[++Q]&&l[++W]==l[++Q]&&l[++W]==l[++Q]&&W<xe);if(se=zs-(xe-W),W=xe-zs,se>le){if(L=M,le=se,se>=Me)break;q=l[W+le-1],ae=l[W+le]}}while((M=c[M&ce]&65535)>de&&--K!==0);return le<=C?le:C}function Ci(M){let K=0,W;for(;;){if(C<wt){if(yt(),C<wt&&M==rn)return St;if(C===0)break}if(C>=Ne&&(m=(m<<w^l[$+(Ne-1)]&255)&g,K=d[m]&65535,c[$&o]=d[m],d[m]=$),K!==0&&($-K&65535)<=s-wt&&j!=Es&&(O=Ft(K)),O>=Ne)if(W=H($-L,O-Ne),C-=O,O<=P&&C>=Ne){O--;do $++,m=(m<<w^l[$+(Ne-1)]&255)&g,K=d[m]&65535,c[$&o]=d[m],d[m]=$;while(--O!==0);$++}else $+=O,O=0,m=l[$]&255,m=(m<<w^l[$+1]&255)&g;else W=H(0,l[$]&255),C--,$++;if(W&&(ue(!1),t.avail_out===0))return St}return ue(M==ct),t.avail_out===0?M==ct?En:St:M==ct?As:Os}function nt(M){let K=0,W,Q;for(;;){if(C<wt){if(yt(),C<wt&&M==rn)return St;if(C===0)break}if(C>=Ne&&(m=(m<<w^l[$+(Ne-1)]&255)&g,K=d[m]&65535,c[$&o]=d[m],d[m]=$),b=O,E=L,O=Ne-1,K!==0&&b<P&&($-K&65535)<=s-wt&&(j!=Es&&(O=Ft(K)),O<=5&&(j==e1||O==Ne&&$-L>4096)&&(O=Ne-1)),b>=Ne&&O<=b){Q=$+C-Ne,W=H($-1-E,b-Ne),C-=b-1,b-=2;do++$<=Q&&(m=(m<<w^l[$+(Ne-1)]&255)&g,K=d[m]&65535,c[$&o]=d[m],d[m]=$);while(--b!==0);if(I=0,O=Ne-1,$++,W&&(ue(!1),t.avail_out===0))return St}else if(I!==0){if(W=H(0,l[$-1]&255),W&&ue(!1),$++,C--,t.avail_out===0)return St}else I=1,$++,C--}return I!==0&&(W=H(0,l[$-1]&255),I=0),ue(M==ct),t.avail_out===0?M==ct?En:St:M==ct?As:Os}function Vr(M){return M.total_in=M.total_out=0,M.msg=null,e.pending=0,e.pending_out=0,r=$s,a=rn,Xe(),Ae(),Ct}e.deflateInit=function(M,K,W,Q,se,le){return Q||(Q=Ia),se||(se=f1),le||(le=t1),M.msg=null,K==fi&&(K=6),se<1||se>l1||Q!=Ia||W<9||W>15||K<0||K>9||le<0||le>Es?Nt:(M.dstate=e,n=W,s=1<<n,o=s-1,T=se+7,y=1<<T,g=y-1,w=Math.floor((T+Ne-1)/Ne),l=new Uint8Array(s*2),c=[],d=[],X=1<<se+6,e.pending_buf=new Uint8Array(X*4),i=X*4,e.dist_buf=new Uint16Array(X),e.lc_buf=new Uint8Array(X),S=K,j=le,Vr(M))},e.deflateEnd=function(){return r!=La&&r!=$s&&r!=Sn?Nt:(e.lc_buf=null,e.dist_buf=null,e.pending_buf=null,d=null,c=null,l=null,e.dstate=null,r==$s?n1:Ct)},e.deflateParams=function(M,K,W){let Q=Ct;return K==fi&&(K=6),K<0||K>9||W<0||W>Es?Nt:(Lt[S].func!=Lt[K].func&&M.total_in!==0&&(Q=M.deflate(Uf)),S!=K&&(S=K,P=Lt[S].max_lazy,R=Lt[S].good_length,D=Lt[S].nice_length,F=Lt[S].max_chain),j=W,Q)},e.deflateSetDictionary=function(M,K,W){let Q=W,se,le=0;if(!K||r!=La)return Nt;if(Q<Ne)return Ct;for(Q>s-wt&&(Q=s-wt,le=W-Q),l.set(K.subarray(le,le+Q),0),$=Q,_=Q,m=l[0]&255,m=(m<<w^l[1]&255)&g,se=0;se<=Q-Ne;se++)m=(m<<w^l[se+(Ne-1)]&255)&g,c[se&o]=d[m],d[m]=se;return Ct},e.deflate=function(M,K){let W,Q,se,le,de;if(K>ct||K<0)return Nt;if(!M.next_out||!M.next_in&&M.avail_in!==0||r==Sn&&K!=ct)return M.msg=Ts[Ss-Nt],Nt;if(M.avail_out===0)return M.msg=Ts[Ss-Xr],Xr;if(t=M,le=a,a=K,r==La&&(Q=Ia+(n-8<<4)<<8,se=(S-1&255)>>1,se>3&&(se=3),Q|=se<<6,$!==0&&(Q|=p1),Q+=31-Q%31,r=$s,pt(Q)),e.pending!==0){if(t.flush_pending(),t.avail_out===0)return a=-1,Ct}else if(t.avail_in===0&&K<=le&&K!=ct)return t.msg=Ts[Ss-Xr],Xr;if(r==Sn&&t.avail_in!==0)return M.msg=Ts[Ss-Xr],Xr;if(t.avail_in!==0||C!==0||K!=rn&&r!=Sn){switch(de=-1,Lt[S].func){case Tu:de=rt(K);break;case Hs:de=Ci(K);break;case Er:de=nt(K);break}if((de==En||de==As)&&(r=Sn),de==St||de==En)return t.avail_out===0&&(a=-1),Ct;if(de==Os){if(K==Uf)U();else if(he(0,0,!1),K==r1)for(W=0;W<y;W++)d[W]=0;if(t.flush_pending(),t.avail_out===0)return a=-1,Ct}}return K!=ct?Ct:Su}}function Ou(){const e=this;e.next_in_index=0,e.next_out_index=0,e.avail_in=0,e.total_in=0,e.avail_out=0,e.total_out=0}Ou.prototype={deflateInit(e,t){const r=this;return r.dstate=new d1,t||(t=Xn),r.dstate.deflateInit(r,e,t)},deflate(e){const t=this;return t.dstate?t.dstate.deflate(t,e):Nt},deflateEnd(){const e=this;if(!e.dstate)return Nt;const t=e.dstate.deflateEnd();return e.dstate=null,t},deflateParams(e,t){const r=this;return r.dstate?r.dstate.deflateParams(r,e,t):Nt},deflateSetDictionary(e,t){const r=this;return r.dstate?r.dstate.deflateSetDictionary(r,e,t):Nt},read_buf(e,t,r){const i=this;let a=i.avail_in;return a>r&&(a=r),a===0?0:(i.avail_in-=a,e.set(i.next_in.subarray(i.next_in_index,i.next_in_index+a),t),i.next_in_index+=a,i.total_in+=a,a)},flush_pending(){const e=this;let t=e.dstate.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.next_out.set(e.dstate.pending_buf.subarray(e.dstate.pending_out,e.dstate.pending_out+t),e.next_out_index),e.next_out_index+=t,e.dstate.pending_out+=t,e.total_out+=t,e.avail_out-=t,e.dstate.pending-=t,e.dstate.pending===0&&(e.dstate.pending_out=0))}};function h1(e){const t=this,r=new Ou,i=m1(e&&e.chunkSize?e.chunkSize:64*1024),a=rn,s=new Uint8Array(i);let n=e?e.level:fi;typeof n>"u"&&(n=fi),r.deflateInit(n),r.next_out=s,t.append=function(o,l){let p,c,d=0,m=0,y=0;const T=[];if(o.length){r.next_in_index=0,r.next_in=o,r.avail_in=o.length;do{if(r.next_out_index=0,r.avail_out=i,p=r.deflate(a),p!=Ct)throw new Error("deflating: "+r.msg);r.next_out_index&&(r.next_out_index==i?T.push(new Uint8Array(s)):T.push(s.subarray(0,r.next_out_index))),y+=r.next_out_index,l&&r.next_in_index>0&&r.next_in_index!=d&&(l(r.next_in_index),d=r.next_in_index)}while(r.avail_in>0||r.avail_out===0);return T.length>1?(c=new Uint8Array(y),T.forEach(function(g){c.set(g,m),m+=g.length})):c=T[0]?new Uint8Array(T[0]):new Uint8Array,c}},t.flush=function(){let o,l,p=0,c=0;const d=[];do{if(r.next_out_index=0,r.avail_out=i,o=r.deflate(ct),o!=Su&&o!=Ct)throw new Error("deflating: "+r.msg);i-r.avail_out>0&&d.push(s.slice(0,r.next_out_index)),c+=r.next_out_index}while(r.avail_in>0||r.avail_out===0);return r.deflateEnd(),l=new Uint8Array(c),d.forEach(function(m){l.set(m,p),p+=m.length}),l}}function m1(e){return e+5*(Math.floor(e/16383)+1)}const y1=15,ve=0,ir=1,g1=2,dt=-2,Le=-3,Mf=-4,ar=-5,_t=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],Au=1440,w1=0,b1=4,_1=9,v1=5,x1=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],k1=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],P1=[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],E1=[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,112,112],S1=[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],T1=[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],pr=15;function ho(){const e=this;let t,r,i,a,s,n;function o(p,c,d,m,y,T,g,w,_,O,E){let I,$,L,C,b,F,P,S,j,R,D,V,B,Y,G;R=0,b=d;do i[p[c+R]]++,R++,b--;while(b!==0);if(i[0]==d)return g[0]=-1,w[0]=0,ve;for(S=w[0],F=1;F<=pr&&i[F]===0;F++);for(P=F,S<F&&(S=F),b=pr;b!==0&&i[b]===0;b--);for(L=b,S>b&&(S=b),w[0]=S,Y=1<<F;F<b;F++,Y<<=1)if((Y-=i[F])<0)return Le;if((Y-=i[b])<0)return Le;for(i[b]+=Y,n[1]=F=0,R=1,B=2;--b!==0;)n[B]=F+=i[R],B++,R++;b=0,R=0;do(F=p[c+R])!==0&&(E[n[F]++]=b),R++;while(++b<d);for(d=n[L],n[0]=b=0,R=0,C=-1,V=-S,s[0]=0,D=0,G=0;P<=L;P++)for(I=i[P];I--!==0;){for(;P>V+S;){if(C++,V+=S,G=L-V,G=G>S?S:G,($=1<<(F=P-V))>I+1&&($-=I+1,B=P,F<G))for(;++F<G&&!(($<<=1)<=i[++B]);)$-=i[B];if(G=1<<F,O[0]+G>Au)return Le;s[C]=D=O[0],O[0]+=G,C!==0?(n[C]=b,a[0]=F,a[1]=S,F=b>>>V-S,a[2]=D-s[C-1]-F,_.set(a,(s[C-1]+F)*3)):g[0]=D}for(a[1]=P-V,R>=d?a[0]=192:E[R]<m?(a[0]=E[R]<256?0:96,a[2]=E[R++]):(a[0]=T[E[R]-m]+16+64,a[2]=y[E[R++]-m]),$=1<<P-V,F=b>>>V;F<G;F+=$)_.set(a,(D+F)*3);for(F=1<<P-1;b&F;F>>>=1)b^=F;for(b^=F,j=(1<<V)-1;(b&j)!=n[C];)C--,V-=S,j=(1<<V)-1}return Y!==0&&L!=1?ar:ve}function l(p){let c;for(t||(t=[],r=[],i=new Int32Array(pr+1),a=[],s=new Int32Array(pr),n=new Int32Array(pr+1)),r.length<p&&(r=[]),c=0;c<p;c++)r[c]=0;for(c=0;c<pr+1;c++)i[c]=0;for(c=0;c<3;c++)a[c]=0;s.set(i.subarray(0,pr),0),n.set(i.subarray(0,pr+1),0)}e.inflate_trees_bits=function(p,c,d,m,y){let T;return l(19),t[0]=0,T=o(p,0,19,19,null,null,d,c,m,t,r),T==Le?y.msg="oversubscribed dynamic bit lengths tree":(T==ar||c[0]===0)&&(y.msg="incomplete dynamic bit lengths tree",T=Le),T},e.inflate_trees_dynamic=function(p,c,d,m,y,T,g,w,_){let O;return l(288),t[0]=0,O=o(d,0,p,257,P1,E1,T,m,w,t,r),O!=ve||m[0]===0?(O==Le?_.msg="oversubscribed literal/length tree":O!=Mf&&(_.msg="incomplete literal/length tree",O=Le),O):(l(288),O=o(d,p,c,0,S1,T1,g,y,w,t,r),O!=ve||y[0]===0&&p>257?(O==Le?_.msg="oversubscribed distance tree":O==ar?(_.msg="incomplete distance tree",O=Le):O!=Mf&&(_.msg="empty distance tree with lengths",O=Le),O):ve)}}ho.inflate_trees_fixed=function(e,t,r,i){return e[0]=_1,t[0]=v1,r[0]=x1,i[0]=k1,ve};const Rs=0,Wf=1,Hf=2,zf=3,Vf=4,Zf=5,Gf=6,ja=7,Yf=8,Fs=9;function O1(){const e=this;let t,r=0,i,a=0,s=0,n=0,o=0,l=0,p=0,c=0,d,m=0,y,T=0;function g(w,_,O,E,I,$,L,C){let b,F,P,S,j,R,D,V,B,Y,G,te,z,X,ee,Z;D=C.next_in_index,V=C.avail_in,j=L.bitb,R=L.bitk,B=L.write,Y=B<L.read?L.read-B-1:L.end-B,G=_t[w],te=_t[_];do{for(;R<20;)V--,j|=(C.read_byte(D++)&255)<<R,R+=8;if(b=j&G,F=O,P=E,Z=(P+b)*3,(S=F[Z])===0){j>>=F[Z+1],R-=F[Z+1],L.win[B++]=F[Z+2],Y--;continue}do{if(j>>=F[Z+1],R-=F[Z+1],S&16){for(S&=15,z=F[Z+2]+(j&_t[S]),j>>=S,R-=S;R<15;)V--,j|=(C.read_byte(D++)&255)<<R,R+=8;b=j&te,F=I,P=$,Z=(P+b)*3,S=F[Z];do if(j>>=F[Z+1],R-=F[Z+1],S&16){for(S&=15;R<S;)V--,j|=(C.read_byte(D++)&255)<<R,R+=8;if(X=F[Z+2]+(j&_t[S]),j>>=S,R-=S,Y-=z,B>=X)ee=B-X,B-ee>0&&2>B-ee?(L.win[B++]=L.win[ee++],L.win[B++]=L.win[ee++],z-=2):(L.win.set(L.win.subarray(ee,ee+2),B),B+=2,ee+=2,z-=2);else{ee=B-X;do ee+=L.end;while(ee<0);if(S=L.end-ee,z>S){if(z-=S,B-ee>0&&S>B-ee)do L.win[B++]=L.win[ee++];while(--S!==0);else L.win.set(L.win.subarray(ee,ee+S),B),B+=S,ee+=S,S=0;ee=0}}if(B-ee>0&&z>B-ee)do L.win[B++]=L.win[ee++];while(--z!==0);else L.win.set(L.win.subarray(ee,ee+z),B),B+=z,ee+=z,z=0;break}else if(!(S&64))b+=F[Z+2],b+=j&_t[S],Z=(P+b)*3,S=F[Z];else return C.msg="invalid distance code",z=C.avail_in-V,z=R>>3<z?R>>3:z,V+=z,D-=z,R-=z<<3,L.bitb=j,L.bitk=R,C.avail_in=V,C.total_in+=D-C.next_in_index,C.next_in_index=D,L.write=B,Le;while(!0);break}if(S&64)return S&32?(z=C.avail_in-V,z=R>>3<z?R>>3:z,V+=z,D-=z,R-=z<<3,L.bitb=j,L.bitk=R,C.avail_in=V,C.total_in+=D-C.next_in_index,C.next_in_index=D,L.write=B,ir):(C.msg="invalid literal/length code",z=C.avail_in-V,z=R>>3<z?R>>3:z,V+=z,D-=z,R-=z<<3,L.bitb=j,L.bitk=R,C.avail_in=V,C.total_in+=D-C.next_in_index,C.next_in_index=D,L.write=B,Le);if(b+=F[Z+2],b+=j&_t[S],Z=(P+b)*3,(S=F[Z])===0){j>>=F[Z+1],R-=F[Z+1],L.win[B++]=F[Z+2],Y--;break}}while(!0)}while(Y>=258&&V>=10);return z=C.avail_in-V,z=R>>3<z?R>>3:z,V+=z,D-=z,R-=z<<3,L.bitb=j,L.bitk=R,C.avail_in=V,C.total_in+=D-C.next_in_index,C.next_in_index=D,L.write=B,ve}e.init=function(w,_,O,E,I,$){t=Rs,p=w,c=_,d=O,m=E,y=I,T=$,i=null},e.proc=function(w,_,O){let E,I,$,L=0,C=0,b=0,F,P,S,j;for(b=_.next_in_index,F=_.avail_in,L=w.bitb,C=w.bitk,P=w.write,S=P<w.read?w.read-P-1:w.end-P;;)switch(t){case Rs:if(S>=258&&F>=10&&(w.bitb=L,w.bitk=C,_.avail_in=F,_.total_in+=b-_.next_in_index,_.next_in_index=b,w.write=P,O=g(p,c,d,m,y,T,w,_),b=_.next_in_index,F=_.avail_in,L=w.bitb,C=w.bitk,P=w.write,S=P<w.read?w.read-P-1:w.end-P,O!=ve)){t=O==ir?ja:Fs;break}s=p,i=d,a=m,t=Wf;case Wf:for(E=s;C<E;){if(F!==0)O=ve;else return w.bitb=L,w.bitk=C,_.avail_in=F,_.total_in+=b-_.next_in_index,_.next_in_index=b,w.write=P,w.inflate_flush(_,O);F--,L|=(_.read_byte(b++)&255)<<C,C+=8}if(I=(a+(L&_t[E]))*3,L>>>=i[I+1],C-=i[I+1],$=i[I],$===0){n=i[I+2],t=Gf;break}if($&16){o=$&15,r=i[I+2],t=Hf;break}if(!($&64)){s=$,a=I/3+i[I+2];break}if($&32){t=ja;break}return t=Fs,_.msg="invalid literal/length code",O=Le,w.bitb=L,w.bitk=C,_.avail_in=F,_.total_in+=b-_.next_in_index,_.next_in_index=b,w.write=P,w.inflate_flush(_,O);case Hf:for(E=o;C<E;){if(F!==0)O=ve;else return w.bitb=L,w.bitk=C,_.avail_in=F,_.total_in+=b-_.next_in_index,_.next_in_index=b,w.write=P,w.inflate_flush(_,O);F--,L|=(_.read_byte(b++)&255)<<C,C+=8}r+=L&_t[E],L>>=E,C-=E,s=c,i=y,a=T,t=zf;case zf:for(E=s;C<E;){if(F!==0)O=ve;else return w.bitb=L,w.bitk=C,_.avail_in=F,_.total_in+=b-_.next_in_index,_.next_in_index=b,w.write=P,w.inflate_flush(_,O);F--,L|=(_.read_byte(b++)&255)<<C,C+=8}if(I=(a+(L&_t[E]))*3,L>>=i[I+1],C-=i[I+1],$=i[I],$&16){o=$&15,l=i[I+2],t=Vf;break}if(!($&64)){s=$,a=I/3+i[I+2];break}return t=Fs,_.msg="invalid distance code",O=Le,w.bitb=L,w.bitk=C,_.avail_in=F,_.total_in+=b-_.next_in_index,_.next_in_index=b,w.write=P,w.inflate_flush(_,O);case Vf:for(E=o;C<E;){if(F!==0)O=ve;else return w.bitb=L,w.bitk=C,_.avail_in=F,_.total_in+=b-_.next_in_index,_.next_in_index=b,w.write=P,w.inflate_flush(_,O);F--,L|=(_.read_byte(b++)&255)<<C,C+=8}l+=L&_t[E],L>>=E,C-=E,t=Zf;case Zf:for(j=P-l;j<0;)j+=w.end;for(;r!==0;){if(S===0&&(P==w.end&&w.read!==0&&(P=0,S=P<w.read?w.read-P-1:w.end-P),S===0&&(w.write=P,O=w.inflate_flush(_,O),P=w.write,S=P<w.read?w.read-P-1:w.end-P,P==w.end&&w.read!==0&&(P=0,S=P<w.read?w.read-P-1:w.end-P),S===0)))return w.bitb=L,w.bitk=C,_.avail_in=F,_.total_in+=b-_.next_in_index,_.next_in_index=b,w.write=P,w.inflate_flush(_,O);w.win[P++]=w.win[j++],S--,j==w.end&&(j=0),r--}t=Rs;break;case Gf:if(S===0&&(P==w.end&&w.read!==0&&(P=0,S=P<w.read?w.read-P-1:w.end-P),S===0&&(w.write=P,O=w.inflate_flush(_,O),P=w.write,S=P<w.read?w.read-P-1:w.end-P,P==w.end&&w.read!==0&&(P=0,S=P<w.read?w.read-P-1:w.end-P),S===0)))return w.bitb=L,w.bitk=C,_.avail_in=F,_.total_in+=b-_.next_in_index,_.next_in_index=b,w.write=P,w.inflate_flush(_,O);O=ve,w.win[P++]=n,S--,t=Rs;break;case ja:if(C>7&&(C-=8,F++,b--),w.write=P,O=w.inflate_flush(_,O),P=w.write,S=P<w.read?w.read-P-1:w.end-P,w.read!=w.write)return w.bitb=L,w.bitk=C,_.avail_in=F,_.total_in+=b-_.next_in_index,_.next_in_index=b,w.write=P,w.inflate_flush(_,O);t=Yf;case Yf:return O=ir,w.bitb=L,w.bitk=C,_.avail_in=F,_.total_in+=b-_.next_in_index,_.next_in_index=b,w.write=P,w.inflate_flush(_,O);case Fs:return O=Le,w.bitb=L,w.bitk=C,_.avail_in=F,_.total_in+=b-_.next_in_index,_.next_in_index=b,w.write=P,w.inflate_flush(_,O);default:return O=dt,w.bitb=L,w.bitk=C,_.avail_in=F,_.total_in+=b-_.next_in_index,_.next_in_index=b,w.write=P,w.inflate_flush(_,O)}},e.free=function(){}}const Kf=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Jr=0,Na=1,Xf=2,Jf=3,Qf=4,ep=5,Ls=6,Is=7,tp=8,Pr=9;function A1(e,t){const r=this;let i=Jr,a=0,s=0,n=0,o;const l=[0],p=[0],c=new O1;let d=0,m=new Int32Array(Au*3);const y=0,T=new ho;r.bitk=0,r.bitb=0,r.win=new Uint8Array(t),r.end=t,r.read=0,r.write=0,r.reset=function(g,w){w&&(w[0]=y),i==Ls&&c.free(g),i=Jr,r.bitk=0,r.bitb=0,r.read=r.write=0},r.reset(e,null),r.inflate_flush=function(g,w){let _,O,E;return O=g.next_out_index,E=r.read,_=(E<=r.write?r.write:r.end)-E,_>g.avail_out&&(_=g.avail_out),_!==0&&w==ar&&(w=ve),g.avail_out-=_,g.total_out+=_,g.next_out.set(r.win.subarray(E,E+_),O),O+=_,E+=_,E==r.end&&(E=0,r.write==r.end&&(r.write=0),_=r.write-E,_>g.avail_out&&(_=g.avail_out),_!==0&&w==ar&&(w=ve),g.avail_out-=_,g.total_out+=_,g.next_out.set(r.win.subarray(E,E+_),O),O+=_,E+=_),g.next_out_index=O,r.read=E,w},r.proc=function(g,w){let _,O,E,I,$,L,C,b;for(I=g.next_in_index,$=g.avail_in,O=r.bitb,E=r.bitk,L=r.write,C=L<r.read?r.read-L-1:r.end-L;;){let F,P,S,j,R,D,V,B;switch(i){case Jr:for(;E<3;){if($!==0)w=ve;else return r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);$--,O|=(g.read_byte(I++)&255)<<E,E+=8}switch(_=O&7,d=_&1,_>>>1){case 0:O>>>=3,E-=3,_=E&7,O>>>=_,E-=_,i=Na;break;case 1:F=[],P=[],S=[[]],j=[[]],ho.inflate_trees_fixed(F,P,S,j),c.init(F[0],P[0],S[0],0,j[0],0),O>>>=3,E-=3,i=Ls;break;case 2:O>>>=3,E-=3,i=Jf;break;case 3:return O>>>=3,E-=3,i=Pr,g.msg="invalid block type",w=Le,r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w)}break;case Na:for(;E<32;){if($!==0)w=ve;else return r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);$--,O|=(g.read_byte(I++)&255)<<E,E+=8}if((~O>>>16&65535)!=(O&65535))return i=Pr,g.msg="invalid stored block lengths",w=Le,r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);a=O&65535,O=E=0,i=a!==0?Xf:d!==0?Is:Jr;break;case Xf:if($===0||C===0&&(L==r.end&&r.read!==0&&(L=0,C=L<r.read?r.read-L-1:r.end-L),C===0&&(r.write=L,w=r.inflate_flush(g,w),L=r.write,C=L<r.read?r.read-L-1:r.end-L,L==r.end&&r.read!==0&&(L=0,C=L<r.read?r.read-L-1:r.end-L),C===0)))return r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);if(w=ve,_=a,_>$&&(_=$),_>C&&(_=C),r.win.set(g.read_buf(I,_),L),I+=_,$-=_,L+=_,C-=_,(a-=_)!==0)break;i=d!==0?Is:Jr;break;case Jf:for(;E<14;){if($!==0)w=ve;else return r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);$--,O|=(g.read_byte(I++)&255)<<E,E+=8}if(s=_=O&16383,(_&31)>29||(_>>5&31)>29)return i=Pr,g.msg="too many length or distance symbols",w=Le,r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);if(_=258+(_&31)+(_>>5&31),!o||o.length<_)o=[];else for(b=0;b<_;b++)o[b]=0;O>>>=14,E-=14,n=0,i=Qf;case Qf:for(;n<4+(s>>>10);){for(;E<3;){if($!==0)w=ve;else return r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);$--,O|=(g.read_byte(I++)&255)<<E,E+=8}o[Kf[n++]]=O&7,O>>>=3,E-=3}for(;n<19;)o[Kf[n++]]=0;if(l[0]=7,_=T.inflate_trees_bits(o,l,p,m,g),_!=ve)return w=_,w==Le&&(o=null,i=Pr),r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);n=0,i=ep;case ep:for(;_=s,!(n>=258+(_&31)+(_>>5&31));){let Y,G;for(_=l[0];E<_;){if($!==0)w=ve;else return r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);$--,O|=(g.read_byte(I++)&255)<<E,E+=8}if(_=m[(p[0]+(O&_t[_]))*3+1],G=m[(p[0]+(O&_t[_]))*3+2],G<16)O>>>=_,E-=_,o[n++]=G;else{for(b=G==18?7:G-14,Y=G==18?11:3;E<_+b;){if($!==0)w=ve;else return r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);$--,O|=(g.read_byte(I++)&255)<<E,E+=8}if(O>>>=_,E-=_,Y+=O&_t[b],O>>>=b,E-=b,b=n,_=s,b+Y>258+(_&31)+(_>>5&31)||G==16&&b<1)return o=null,i=Pr,g.msg="invalid bit length repeat",w=Le,r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);G=G==16?o[b-1]:0;do o[b++]=G;while(--Y!==0);n=b}}if(p[0]=-1,R=[],D=[],V=[],B=[],R[0]=9,D[0]=6,_=s,_=T.inflate_trees_dynamic(257+(_&31),1+(_>>5&31),o,R,D,V,B,m,g),_!=ve)return _==Le&&(o=null,i=Pr),w=_,r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);c.init(R[0],D[0],m,V[0],m,B[0]),i=Ls;case Ls:if(r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,(w=c.proc(r,g,w))!=ir)return r.inflate_flush(g,w);if(w=ve,c.free(g),I=g.next_in_index,$=g.avail_in,O=r.bitb,E=r.bitk,L=r.write,C=L<r.read?r.read-L-1:r.end-L,d===0){i=Jr;break}i=Is;case Is:if(r.write=L,w=r.inflate_flush(g,w),L=r.write,C=L<r.read?r.read-L-1:r.end-L,r.read!=r.write)return r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);i=tp;case tp:return w=ir,r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);case Pr:return w=Le,r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w);default:return w=dt,r.bitb=O,r.bitk=E,g.avail_in=$,g.total_in+=I-g.next_in_index,g.next_in_index=I,r.write=L,r.inflate_flush(g,w)}}},r.free=function(g){r.reset(g,null),r.win=null,m=null},r.set_dictionary=function(g,w,_){r.win.set(g.subarray(w,w+_),0),r.read=r.write=_},r.sync_point=function(){return i==Na?1:0}}const $1=32,R1=8,F1=0,rp=1,np=2,sp=3,ip=4,ap=5,Da=6,Tn=7,op=12,cr=13,L1=[0,0,255,255];function I1(){const e=this;e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0;function t(r){return!r||!r.istate?dt:(r.total_in=r.total_out=0,r.msg=null,r.istate.mode=Tn,r.istate.blocks.reset(r,null),ve)}e.inflateEnd=function(r){return e.blocks&&e.blocks.free(r),e.blocks=null,ve},e.inflateInit=function(r,i){return r.msg=null,e.blocks=null,i<8||i>15?(e.inflateEnd(r),dt):(e.wbits=i,r.istate.blocks=new A1(r,1<<i),t(r),ve)},e.inflate=function(r,i){let a,s;if(!r||!r.istate||!r.next_in)return dt;const n=r.istate;for(i=i==b1?ar:ve,a=ar;;)switch(n.mode){case F1:if(r.avail_in===0)return a;if(a=i,r.avail_in--,r.total_in++,((n.method=r.read_byte(r.next_in_index++))&15)!=R1){n.mode=cr,r.msg="unknown compression method",n.marker=5;break}if((n.method>>4)+8>n.wbits){n.mode=cr,r.msg="invalid win size",n.marker=5;break}n.mode=rp;case rp:if(r.avail_in===0)return a;if(a=i,r.avail_in--,r.total_in++,s=r.read_byte(r.next_in_index++)&255,((n.method<<8)+s)%31!==0){n.mode=cr,r.msg="incorrect header check",n.marker=5;break}if(!(s&$1)){n.mode=Tn;break}n.mode=np;case np:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,n.need=(r.read_byte(r.next_in_index++)&255)<<24&4278190080,n.mode=sp;case sp:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,n.need+=(r.read_byte(r.next_in_index++)&255)<<16&16711680,n.mode=ip;case ip:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,n.need+=(r.read_byte(r.next_in_index++)&255)<<8&65280,n.mode=ap;case ap:return r.avail_in===0?a:(a=i,r.avail_in--,r.total_in++,n.need+=r.read_byte(r.next_in_index++)&255,n.mode=Da,g1);case Da:return n.mode=cr,r.msg="need dictionary",n.marker=0,dt;case Tn:if(a=n.blocks.proc(r,a),a==Le){n.mode=cr,n.marker=0;break}if(a==ve&&(a=i),a!=ir)return a;a=i,n.blocks.reset(r,n.was),n.mode=op;case op:return r.avail_in=0,ir;case cr:return Le;default:return dt}},e.inflateSetDictionary=function(r,i,a){let s=0,n=a;if(!r||!r.istate||r.istate.mode!=Da)return dt;const o=r.istate;return n>=1<<o.wbits&&(n=(1<<o.wbits)-1,s=a-n),o.blocks.set_dictionary(i,s,n),o.mode=Tn,ve},e.inflateSync=function(r){let i,a,s,n,o;if(!r||!r.istate)return dt;const l=r.istate;if(l.mode!=cr&&(l.mode=cr,l.marker=0),(i=r.avail_in)===0)return ar;for(a=r.next_in_index,s=l.marker;i!==0&&s<4;)r.read_byte(a)==L1[s]?s++:r.read_byte(a)!==0?s=0:s=4-s,a++,i--;return r.total_in+=a-r.next_in_index,r.next_in_index=a,r.avail_in=i,l.marker=s,s!=4?Le:(n=r.total_in,o=r.total_out,t(r),r.total_in=n,r.total_out=o,l.mode=Tn,ve)},e.inflateSyncPoint=function(r){return!r||!r.istate||!r.istate.blocks?dt:r.istate.blocks.sync_point()}}function $u(){}$u.prototype={inflateInit(e){const t=this;return t.istate=new I1,e||(e=y1),t.istate.inflateInit(t,e)},inflate(e){const t=this;return t.istate?t.istate.inflate(t,e):dt},inflateEnd(){const e=this;if(!e.istate)return dt;const t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync(){const e=this;return e.istate?e.istate.inflateSync(e):dt},inflateSetDictionary(e,t){const r=this;return r.istate?r.istate.inflateSetDictionary(r,e,t):dt},read_byte(e){return this.next_in[e]},read_buf(e,t){return this.next_in.subarray(e,e+t)}};function C1(e){const t=this,r=new $u,i=e&&e.chunkSize?Math.floor(e.chunkSize*2):128*1024,a=w1,s=new Uint8Array(i);let n=!1;r.inflateInit(),r.next_out=s,t.append=function(o,l){const p=[];let c,d,m=0,y=0,T=0;if(o.length!==0){r.next_in_index=0,r.next_in=o,r.avail_in=o.length;do{if(r.next_out_index=0,r.avail_out=i,r.avail_in===0&&!n&&(r.next_in_index=0,n=!0),c=r.inflate(a),n&&c===ar){if(r.avail_in!==0)throw new Error("inflating: bad input")}else if(c!==ve&&c!==ir)throw new Error("inflating: "+r.msg);if((n||c===ir)&&r.avail_in===o.length)throw new Error("inflating: bad input");r.next_out_index&&(r.next_out_index===i?p.push(new Uint8Array(s)):p.push(s.subarray(0,r.next_out_index))),T+=r.next_out_index,l&&r.next_in_index>0&&r.next_in_index!=m&&(l(r.next_in_index),m=r.next_in_index)}while(r.avail_in>0||r.avail_out===0);return p.length>1?(d=new Uint8Array(T),p.forEach(function(g){d.set(g,y),y+=g.length})):d=p[0]?new Uint8Array(p[0]):new Uint8Array,d}},t.flush=function(){r.inflateEnd()}}const Lr=4294967295,yr=65535,j1=8,N1=0,D1=99,U1=67324752,B1=134695760,lp=33639248,q1=101010256,fp=101075792,M1=117853008,Qr=22,Ua=20,Ba=56,W1=1,H1=39169,z1=10,V1=1,Z1=21589,G1=28789,Y1=25461,K1=6534,pp=1,X1=6,cp=8,up=2048,dp=16,hp=16384,mp=73,yp="/",ft=void 0,kr="undefined",ms="function";class gp{constructor(t){return class extends TransformStream{constructor(r,i){const a=new t(i);super({transform(s,n){n.enqueue(a.append(s))},flush(s){const n=a.flush();n&&s.enqueue(n)}})}}}}const J1=64;let Ru=2;try{typeof navigator!=kr&&navigator.hardwareConcurrency&&(Ru=navigator.hardwareConcurrency)}catch{}const Q1={chunkSize:512*1024,maxWorkers:Ru,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:ft,CompressionStreamNative:typeof CompressionStream!=kr&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=kr&&DecompressionStream},gr=Object.assign({},Q1);function eb(){return gr}function tb(e){return Math.max(e.chunkSize,J1)}function Mo(e){const{baseURL:t,chunkSize:r,maxWorkers:i,terminateWorkerTimeout:a,useCompressionStream:s,useWebWorkers:n,Deflate:o,Inflate:l,CompressionStream:p,DecompressionStream:c,workerScripts:d}=e;if(ur("baseURL",t),ur("chunkSize",r),ur("maxWorkers",i),ur("terminateWorkerTimeout",a),ur("useCompressionStream",s),ur("useWebWorkers",n),o&&(gr.CompressionStream=new gp(o)),l&&(gr.DecompressionStream=new gp(l)),ur("CompressionStream",p),ur("DecompressionStream",c),d!==ft){const{deflate:m,inflate:y}=d;if((m||y)&&(gr.workerScripts||(gr.workerScripts={})),m){if(!Array.isArray(m))throw new Error("workerScripts.deflate must be an array");gr.workerScripts.deflate=m}if(y){if(!Array.isArray(y))throw new Error("workerScripts.inflate must be an array");gr.workerScripts.inflate=y}}}function ur(e,t){t!==ft&&(gr[e]=t)}const qa={application:{"andrew-inset":"ez",annodex:"anx","atom+xml":"atom","atomcat+xml":"atomcat","atomserv+xml":"atomsrv",bbolin:"lin","cu-seeme":"cu","davmount+xml":"davmount",dsptype:"tsp",ecmascript:["es","ecma"],futuresplash:"spl",hta:"hta","java-archive":"jar","java-serialized-object":"ser","java-vm":"class",m3g:"m3g","mac-binhex40":"hqx",mathematica:["nb","ma","mb"],msaccess:"mdb",msword:["doc","dot","wiz"],mxf:"mxf",oda:"oda",ogg:"ogx",pdf:"pdf","pgp-keys":"key","pgp-signature":["asc","sig"],"pics-rules":"prf",postscript:["ps","ai","eps","epsi","epsf","eps2","eps3"],rar:"rar","rdf+xml":"rdf","rss+xml":"rss",rtf:"rtf","xhtml+xml":["xhtml","xht"],xml:["xml","xsl","xsd","xpdl"],"xspf+xml":"xspf",zip:"zip","vnd.android.package-archive":"apk","vnd.cinderella":"cdy","vnd.google-earth.kml+xml":"kml","vnd.google-earth.kmz":"kmz","vnd.mozilla.xul+xml":"xul","vnd.ms-excel":["xls","xlb","xlt","xlm","xla","xlc","xlw"],"vnd.ms-pki.seccat":"cat","vnd.ms-pki.stl":"stl","vnd.ms-powerpoint":["ppt","pps","pot","ppa","pwz"],"vnd.oasis.opendocument.chart":"odc","vnd.oasis.opendocument.database":"odb","vnd.oasis.opendocument.formula":"odf","vnd.oasis.opendocument.graphics":"odg","vnd.oasis.opendocument.graphics-template":"otg","vnd.oasis.opendocument.image":"odi","vnd.oasis.opendocument.presentation":"odp","vnd.oasis.opendocument.presentation-template":"otp","vnd.oasis.opendocument.spreadsheet":"ods","vnd.oasis.opendocument.spreadsheet-template":"ots","vnd.oasis.opendocument.text":"odt","vnd.oasis.opendocument.text-master":["odm","otm"],"vnd.oasis.opendocument.text-template":"ott","vnd.oasis.opendocument.text-web":"oth","vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","vnd.openxmlformats-officedocument.spreadsheetml.template":"xltx","vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","vnd.openxmlformats-officedocument.presentationml.slideshow":"ppsx","vnd.openxmlformats-officedocument.presentationml.template":"potx","vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","vnd.openxmlformats-officedocument.wordprocessingml.template":"dotx","vnd.smaf":"mmf","vnd.stardivision.calc":"sdc","vnd.stardivision.chart":"sds","vnd.stardivision.draw":"sda","vnd.stardivision.impress":"sdd","vnd.stardivision.math":["sdf","smf"],"vnd.stardivision.writer":["sdw","vor"],"vnd.stardivision.writer-global":"sgl","vnd.sun.xml.calc":"sxc","vnd.sun.xml.calc.template":"stc","vnd.sun.xml.draw":"sxd","vnd.sun.xml.draw.template":"std","vnd.sun.xml.impress":"sxi","vnd.sun.xml.impress.template":"sti","vnd.sun.xml.math":"sxm","vnd.sun.xml.writer":"sxw","vnd.sun.xml.writer.global":"sxg","vnd.sun.xml.writer.template":"stw","vnd.symbian.install":["sis","sisx"],"vnd.visio":["vsd","vst","vss","vsw","vsdx","vssx","vstx","vssm","vstm"],"vnd.wap.wbxml":"wbxml","vnd.wap.wmlc":"wmlc","vnd.wap.wmlscriptc":"wmlsc","vnd.wordperfect":"wpd","vnd.wordperfect5.1":"wp5","x-123":"wk","x-7z-compressed":"7z","x-abiword":"abw","x-apple-diskimage":"dmg","x-bcpio":"bcpio","x-bittorrent":"torrent","x-cbr":["cbr","cba","cbt","cb7"],"x-cbz":"cbz","x-cdf":["cdf","cda"],"x-cdlink":"vcd","x-chess-pgn":"pgn","x-cpio":"cpio","x-csh":"csh","x-director":["dir","dxr","cst","cct","cxt","w3d","fgd","swa"],"x-dms":"dms","x-doom":"wad","x-dvi":"dvi","x-httpd-eruby":"rhtml","x-font":"pcf.Z","x-freemind":"mm","x-gnumeric":"gnumeric","x-go-sgf":"sgf","x-graphing-calculator":"gcf","x-gtar":["gtar","taz"],"x-hdf":"hdf","x-httpd-php":["phtml","pht","php"],"x-httpd-php-source":"phps","x-httpd-php3":"php3","x-httpd-php3-preprocessed":"php3p","x-httpd-php4":"php4","x-httpd-php5":"php5","x-ica":"ica","x-info":"info","x-internet-signup":["ins","isp"],"x-iphone":"iii","x-iso9660-image":"iso","x-java-jnlp-file":"jnlp","x-jmol":"jmz","x-killustrator":"kil","x-latex":"latex","x-lyx":"lyx","x-lzx":"lzx","x-maker":["frm","fb","fbdoc"],"x-ms-wmd":"wmd","x-msdos-program":["com","exe","bat","dll"],"x-netcdf":["nc"],"x-ns-proxy-autoconfig":["pac","dat"],"x-nwc":"nwc","x-object":"o","x-oz-application":"oza","x-pkcs7-certreqresp":"p7r","x-python-code":["pyc","pyo"],"x-qgis":["qgs","shp","shx"],"x-quicktimeplayer":"qtl","x-redhat-package-manager":["rpm","rpa"],"x-ruby":"rb","x-sh":"sh","x-shar":"shar","x-shockwave-flash":["swf","swfl"],"x-silverlight":"scr","x-stuffit":"sit","x-sv4cpio":"sv4cpio","x-sv4crc":"sv4crc","x-tar":"tar","x-tex-gf":"gf","x-tex-pk":"pk","x-texinfo":["texinfo","texi"],"x-trash":["~","%","bak","old","sik"],"x-ustar":"ustar","x-wais-source":"src","x-wingz":"wz","x-x509-ca-cert":["crt","der","cer"],"x-xcf":"xcf","x-xfig":"fig","x-xpinstall":"xpi",applixware:"aw","atomsvc+xml":"atomsvc","ccxml+xml":"ccxml","cdmi-capability":"cdmia","cdmi-container":"cdmic","cdmi-domain":"cdmid","cdmi-object":"cdmio","cdmi-queue":"cdmiq","docbook+xml":"dbk","dssc+der":"dssc","dssc+xml":"xdssc","emma+xml":"emma","epub+zip":"epub",exi:"exi","font-tdpfr":"pfr","gml+xml":"gml","gpx+xml":"gpx",gxf:"gxf",hyperstudio:"stk","inkml+xml":["ink","inkml"],ipfix:"ipfix","jsonml+json":"jsonml","lost+xml":"lostxml","mads+xml":"mads",marc:"mrc","marcxml+xml":"mrcx","mathml+xml":["mathml","mml"],mbox:"mbox","mediaservercontrol+xml":"mscml","metalink+xml":"metalink","metalink4+xml":"meta4","mets+xml":"mets","mods+xml":"mods",mp21:["m21","mp21"],mp4:"mp4s","oebps-package+xml":"opf","omdoc+xml":"omdoc",onenote:["onetoc","onetoc2","onetmp","onepkg"],oxps:"oxps","patch-ops-error+xml":"xer","pgp-encrypted":"pgp",pkcs10:"p10","pkcs7-mime":["p7m","p7c"],"pkcs7-signature":"p7s",pkcs8:"p8","pkix-attr-cert":"ac","pkix-crl":"crl","pkix-pkipath":"pkipath",pkixcmp:"pki","pls+xml":"pls","prs.cww":"cww","pskc+xml":"pskcxml","reginfo+xml":"rif","relax-ng-compact-syntax":"rnc","resource-lists+xml":"rl","resource-lists-diff+xml":"rld","rls-services+xml":"rs","rpki-ghostbusters":"gbr","rpki-manifest":"mft","rpki-roa":"roa","rsd+xml":"rsd","sbml+xml":"sbml","scvp-cv-request":"scq","scvp-cv-response":"scs","scvp-vp-request":"spq","scvp-vp-response":"spp",sdp:"sdp","set-payment-initiation":"setpay","set-registration-initiation":"setreg","shf+xml":"shf","sparql-query":"rq","sparql-results+xml":"srx",srgs:"gram","srgs+xml":"grxml","sru+xml":"sru","ssdl+xml":"ssdl","ssml+xml":"ssml","tei+xml":["tei","teicorpus"],"thraud+xml":"tfi","timestamped-data":"tsd","vnd.3gpp.pic-bw-large":"plb","vnd.3gpp.pic-bw-small":"psb","vnd.3gpp.pic-bw-var":"pvb","vnd.3gpp2.tcap":"tcap","vnd.3m.post-it-notes":"pwn","vnd.accpac.simply.aso":"aso","vnd.accpac.simply.imp":"imp","vnd.acucobol":"acu","vnd.acucorp":["atc","acutc"],"vnd.adobe.air-application-installer-package+zip":"air","vnd.adobe.formscentral.fcdt":"fcdt","vnd.adobe.fxp":["fxp","fxpl"],"vnd.adobe.xdp+xml":"xdp","vnd.adobe.xfdf":"xfdf","vnd.ahead.space":"ahead","vnd.airzip.filesecure.azf":"azf","vnd.airzip.filesecure.azs":"azs","vnd.amazon.ebook":"azw","vnd.americandynamics.acc":"acc","vnd.amiga.ami":"ami","vnd.anser-web-certificate-issue-initiation":"cii","vnd.anser-web-funds-transfer-initiation":"fti","vnd.antix.game-component":"atx","vnd.apple.installer+xml":"mpkg","vnd.apple.mpegurl":"m3u8","vnd.aristanetworks.swi":"swi","vnd.astraea-software.iota":"iota","vnd.audiograph":"aep","vnd.blueice.multipass":"mpm","vnd.bmi":"bmi","vnd.businessobjects":"rep","vnd.chemdraw+xml":"cdxml","vnd.chipnuts.karaoke-mmd":"mmd","vnd.claymore":"cla","vnd.cloanto.rp9":"rp9","vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"vnd.cluetrust.cartomobile-config":"c11amc","vnd.cluetrust.cartomobile-config-pkg":"c11amz","vnd.commonspace":"csp","vnd.contact.cmsg":"cdbcmsg","vnd.cosmocaller":"cmc","vnd.crick.clicker":"clkx","vnd.crick.clicker.keyboard":"clkk","vnd.crick.clicker.palette":"clkp","vnd.crick.clicker.template":"clkt","vnd.crick.clicker.wordbank":"clkw","vnd.criticaltools.wbs+xml":"wbs","vnd.ctc-posml":"pml","vnd.cups-ppd":"ppd","vnd.curl.car":"car","vnd.curl.pcurl":"pcurl","vnd.dart":"dart","vnd.data-vision.rdz":"rdz","vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"vnd.dece.ttml+xml":["uvt","uvvt"],"vnd.dece.unspecified":["uvx","uvvx"],"vnd.dece.zip":["uvz","uvvz"],"vnd.denovo.fcselayout-link":"fe_launch","vnd.dna":"dna","vnd.dolby.mlp":"mlp","vnd.dpgraph":"dpg","vnd.dreamfactory":"dfac","vnd.ds-keypoint":"kpxx","vnd.dvb.ait":"ait","vnd.dvb.service":"svc","vnd.dynageo":"geo","vnd.ecowin.chart":"mag","vnd.enliven":"nml","vnd.epson.esf":"esf","vnd.epson.msf":"msf","vnd.epson.quickanime":"qam","vnd.epson.salt":"slt","vnd.epson.ssf":"ssf","vnd.eszigno3+xml":["es3","et3"],"vnd.ezpix-album":"ez2","vnd.ezpix-package":"ez3","vnd.fdf":"fdf","vnd.fdsn.mseed":"mseed","vnd.fdsn.seed":["seed","dataless"],"vnd.flographit":"gph","vnd.fluxtime.clip":"ftc","vnd.framemaker":["fm","frame","maker","book"],"vnd.frogans.fnc":"fnc","vnd.frogans.ltf":"ltf","vnd.fsc.weblaunch":"fsc","vnd.fujitsu.oasys":"oas","vnd.fujitsu.oasys2":"oa2","vnd.fujitsu.oasys3":"oa3","vnd.fujitsu.oasysgp":"fg5","vnd.fujitsu.oasysprs":"bh2","vnd.fujixerox.ddd":"ddd","vnd.fujixerox.docuworks":"xdw","vnd.fujixerox.docuworks.binder":"xbd","vnd.fuzzysheet":"fzs","vnd.genomatix.tuxedo":"txd","vnd.geogebra.file":"ggb","vnd.geogebra.tool":"ggt","vnd.geometry-explorer":["gex","gre"],"vnd.geonext":"gxt","vnd.geoplan":"g2w","vnd.geospace":"g3w","vnd.gmx":"gmx","vnd.grafeq":["gqf","gqs"],"vnd.groove-account":"gac","vnd.groove-help":"ghf","vnd.groove-identity-message":"gim","vnd.groove-injector":"grv","vnd.groove-tool-message":"gtm","vnd.groove-tool-template":"tpl","vnd.groove-vcard":"vcg","vnd.hal+xml":"hal","vnd.handheld-entertainment+xml":"zmm","vnd.hbci":"hbci","vnd.hhe.lesson-player":"les","vnd.hp-hpgl":"hpgl","vnd.hp-hpid":"hpid","vnd.hp-hps":"hps","vnd.hp-jlyt":"jlt","vnd.hp-pcl":"pcl","vnd.hp-pclxl":"pclxl","vnd.hydrostatix.sof-data":"sfd-hdstx","vnd.ibm.minipay":"mpy","vnd.ibm.modcap":["afp","listafp","list3820"],"vnd.ibm.rights-management":"irm","vnd.ibm.secure-container":"sc","vnd.iccprofile":["icc","icm"],"vnd.igloader":"igl","vnd.immervision-ivp":"ivp","vnd.immervision-ivu":"ivu","vnd.insors.igm":"igm","vnd.intercon.formnet":["xpw","xpx"],"vnd.intergeo":"i2g","vnd.intu.qbo":"qbo","vnd.intu.qfx":"qfx","vnd.ipunplugged.rcprofile":"rcprofile","vnd.irepository.package+xml":"irp","vnd.is-xpr":"xpr","vnd.isac.fcs":"fcs","vnd.jam":"jam","vnd.jcp.javame.midlet-rms":"rms","vnd.jisp":"jisp","vnd.joost.joda-archive":"joda","vnd.kahootz":["ktz","ktr"],"vnd.kde.karbon":"karbon","vnd.kde.kchart":"chrt","vnd.kde.kformula":"kfo","vnd.kde.kivio":"flw","vnd.kde.kontour":"kon","vnd.kde.kpresenter":["kpr","kpt"],"vnd.kde.kspread":"ksp","vnd.kde.kword":["kwd","kwt"],"vnd.kenameaapp":"htke","vnd.kidspiration":"kia","vnd.kinar":["kne","knp"],"vnd.koan":["skp","skd","skt","skm"],"vnd.kodak-descriptor":"sse","vnd.las.las+xml":"lasxml","vnd.llamagraphics.life-balance.desktop":"lbd","vnd.llamagraphics.life-balance.exchange+xml":"lbe","vnd.lotus-1-2-3":"123","vnd.lotus-approach":"apr","vnd.lotus-freelance":"pre","vnd.lotus-notes":"nsf","vnd.lotus-organizer":"org","vnd.lotus-screencam":"scm","vnd.lotus-wordpro":"lwp","vnd.macports.portpkg":"portpkg","vnd.mcd":"mcd","vnd.medcalcdata":"mc1","vnd.mediastation.cdkey":"cdkey","vnd.mfer":"mwf","vnd.mfmp":"mfm","vnd.micrografx.flo":"flo","vnd.micrografx.igx":"igx","vnd.mif":"mif","vnd.mobius.daf":"daf","vnd.mobius.dis":"dis","vnd.mobius.mbk":"mbk","vnd.mobius.mqy":"mqy","vnd.mobius.msl":"msl","vnd.mobius.plc":"plc","vnd.mobius.txf":"txf","vnd.mophun.application":"mpn","vnd.mophun.certificate":"mpc","vnd.ms-artgalry":"cil","vnd.ms-cab-compressed":"cab","vnd.ms-excel.addin.macroenabled.12":"xlam","vnd.ms-excel.sheet.binary.macroenabled.12":"xlsb","vnd.ms-excel.sheet.macroenabled.12":"xlsm","vnd.ms-excel.template.macroenabled.12":"xltm","vnd.ms-fontobject":"eot","vnd.ms-htmlhelp":"chm","vnd.ms-ims":"ims","vnd.ms-lrm":"lrm","vnd.ms-officetheme":"thmx","vnd.ms-powerpoint.addin.macroenabled.12":"ppam","vnd.ms-powerpoint.presentation.macroenabled.12":"pptm","vnd.ms-powerpoint.slide.macroenabled.12":"sldm","vnd.ms-powerpoint.slideshow.macroenabled.12":"ppsm","vnd.ms-powerpoint.template.macroenabled.12":"potm","vnd.ms-project":["mpp","mpt"],"vnd.ms-word.document.macroenabled.12":"docm","vnd.ms-word.template.macroenabled.12":"dotm","vnd.ms-works":["wps","wks","wcm","wdb"],"vnd.ms-wpl":"wpl","vnd.ms-xpsdocument":"xps","vnd.mseq":"mseq","vnd.musician":"mus","vnd.muvee.style":"msty","vnd.mynfc":"taglet","vnd.neurolanguage.nlu":"nlu","vnd.nitf":["ntf","nitf"],"vnd.noblenet-directory":"nnd","vnd.noblenet-sealer":"nns","vnd.noblenet-web":"nnw","vnd.nokia.n-gage.data":"ngdat","vnd.nokia.n-gage.symbian.install":"n-gage","vnd.nokia.radio-preset":"rpst","vnd.nokia.radio-presets":"rpss","vnd.novadigm.edm":"edm","vnd.novadigm.edx":"edx","vnd.novadigm.ext":"ext","vnd.oasis.opendocument.chart-template":"otc","vnd.oasis.opendocument.formula-template":"odft","vnd.oasis.opendocument.image-template":"oti","vnd.olpc-sugar":"xo","vnd.oma.dd2+xml":"dd2","vnd.openofficeorg.extension":"oxt","vnd.openxmlformats-officedocument.presentationml.slide":"sldx","vnd.osgeo.mapguide.package":"mgp","vnd.osgi.dp":"dp","vnd.osgi.subsystem":"esa","vnd.palm":["pdb","pqa","oprc"],"vnd.pawaafile":"paw","vnd.pg.format":"str","vnd.pg.osasli":"ei6","vnd.picsel":"efif","vnd.pmi.widget":"wg","vnd.pocketlearn":"plf","vnd.powerbuilder6":"pbd","vnd.previewsystems.box":"box","vnd.proteus.magazine":"mgz","vnd.publishare-delta-tree":"qps","vnd.pvi.ptid1":"ptid","vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"vnd.realvnc.bed":"bed","vnd.recordare.musicxml":"mxl","vnd.recordare.musicxml+xml":"musicxml","vnd.rig.cryptonote":"cryptonote","vnd.rn-realmedia":"rm","vnd.rn-realmedia-vbr":"rmvb","vnd.route66.link66+xml":"link66","vnd.sailingtracker.track":"st","vnd.seemail":"see","vnd.sema":"sema","vnd.semd":"semd","vnd.semf":"semf","vnd.shana.informed.formdata":"ifm","vnd.shana.informed.formtemplate":"itp","vnd.shana.informed.interchange":"iif","vnd.shana.informed.package":"ipk","vnd.simtech-mindmapper":["twd","twds"],"vnd.smart.teacher":"teacher","vnd.solent.sdkm+xml":["sdkm","sdkd"],"vnd.spotfire.dxp":"dxp","vnd.spotfire.sfs":"sfs","vnd.stepmania.package":"smzip","vnd.stepmania.stepchart":"sm","vnd.sus-calendar":["sus","susp"],"vnd.svd":"svd","vnd.syncml+xml":"xsm","vnd.syncml.dm+wbxml":"bdm","vnd.syncml.dm+xml":"xdm","vnd.tao.intent-module-archive":"tao","vnd.tcpdump.pcap":["pcap","cap","dmp"],"vnd.tmobile-livetv":"tmo","vnd.trid.tpt":"tpt","vnd.triscape.mxs":"mxs","vnd.trueapp":"tra","vnd.ufdl":["ufd","ufdl"],"vnd.uiq.theme":"utz","vnd.umajin":"umj","vnd.unity":"unityweb","vnd.uoml+xml":"uoml","vnd.vcx":"vcx","vnd.visionary":"vis","vnd.vsf":"vsf","vnd.webturbo":"wtb","vnd.wolfram.player":"nbp","vnd.wqd":"wqd","vnd.wt.stf":"stf","vnd.xara":"xar","vnd.xfdl":"xfdl","vnd.yamaha.hv-dic":"hvd","vnd.yamaha.hv-script":"hvs","vnd.yamaha.hv-voice":"hvp","vnd.yamaha.openscoreformat":"osf","vnd.yamaha.openscoreformat.osfpvg+xml":"osfpvg","vnd.yamaha.smaf-audio":"saf","vnd.yamaha.smaf-phrase":"spf","vnd.yellowriver-custom-menu":"cmp","vnd.zul":["zir","zirz"],"vnd.zzazz.deck+xml":"zaz","voicexml+xml":"vxml",widget:"wgt",winhlp:"hlp","wsdl+xml":"wsdl","wspolicy+xml":"wspolicy","x-ace-compressed":"ace","x-authorware-bin":["aab","x32","u32","vox"],"x-authorware-map":"aam","x-authorware-seg":"aas","x-blorb":["blb","blorb"],"x-bzip":"bz","x-bzip2":["bz2","boz"],"x-cfs-compressed":"cfs","x-chat":"chat","x-conference":"nsc","x-dgc-compressed":"dgc","x-dtbncx+xml":"ncx","x-dtbook+xml":"dtb","x-dtbresource+xml":"res","x-eva":"eva","x-font-bdf":"bdf","x-font-ghostscript":"gsf","x-font-linux-psf":"psf","x-font-pcf":"pcf","x-font-snf":"snf","x-font-ttf":["ttf","ttc"],"x-font-type1":["pfa","pfb","pfm","afm"],"x-freearc":"arc","x-gca-compressed":"gca","x-glulx":"ulx","x-gramps-xml":"gramps","x-install-instructions":"install","x-lzh-compressed":["lzh","lha"],"x-mie":"mie","x-mobipocket-ebook":["prc","mobi"],"x-ms-application":"application","x-ms-shortcut":"lnk","x-ms-xbap":"xbap","x-msbinder":"obd","x-mscardfile":"crd","x-msclip":"clp","application/x-ms-installer":"msi","x-msmediaview":["mvb","m13","m14"],"x-msmetafile":["wmf","wmz","emf","emz"],"x-msmoney":"mny","x-mspublisher":"pub","x-msschedule":"scd","x-msterminal":"trm","x-mswrite":"wri","x-nzb":"nzb","x-pkcs12":["p12","pfx"],"x-pkcs7-certificates":["p7b","spc"],"x-research-info-systems":"ris","x-silverlight-app":"xap","x-sql":"sql","x-stuffitx":"sitx","x-subrip":"srt","x-t3vm-image":"t3","x-tex-tfm":"tfm","x-tgif":"obj","x-xliff+xml":"xlf","x-xz":"xz","x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"xaml+xml":"xaml","xcap-diff+xml":"xdf","xenc+xml":"xenc","xml-dtd":"dtd","xop+xml":"xop","xproc+xml":"xpl","xslt+xml":"xslt","xv+xml":["mxml","xhvml","xvml","xvm"],yang:"yang","yin+xml":"yin",envoy:"evy",fractals:"fif","internet-property-stream":"acx",olescript:"axs","vnd.ms-outlook":"msg","vnd.ms-pkicertstore":"sst","x-compress":"z","x-perfmon":["pma","pmc","pmr","pmw"],"ynd.ms-pkipko":"pko",gzip:["gz","tgz"],"smil+xml":["smi","smil"],"vnd.debian.binary-package":["deb","udeb"],"vnd.hzn-3d-crossword":"x3d","vnd.sqlite3":["db","sqlite","sqlite3","db-wal","sqlite-wal","db-shm","sqlite-shm"],"vnd.wap.sic":"sic","vnd.wap.slc":"slc","x-krita":["kra","krz"],"x-perl":["pm","pl"],yaml:["yaml","yml"]},audio:{amr:"amr","amr-wb":"awb",annodex:"axa",basic:["au","snd"],flac:"flac",midi:["mid","midi","kar","rmi"],mpeg:["mpga","mpega","mp3","m4a","mp2a","m2a","m3a"],mpegurl:"m3u",ogg:["oga","ogg","spx"],"prs.sid":"sid","x-aiff":"aifc","x-gsm":"gsm","x-ms-wma":"wma","x-ms-wax":"wax","x-pn-realaudio":"ram","x-realaudio":"ra","x-sd2":"sd2",adpcm:"adp",mp4:"mp4a",s3m:"s3m",silk:"sil","vnd.dece.audio":["uva","uvva"],"vnd.digital-winds":"eol","vnd.dra":"dra","vnd.dts":"dts","vnd.dts.hd":"dtshd","vnd.lucent.voice":"lvp","vnd.ms-playready.media.pya":"pya","vnd.nuera.ecelp4800":"ecelp4800","vnd.nuera.ecelp7470":"ecelp7470","vnd.nuera.ecelp9600":"ecelp9600","vnd.rip":"rip",webm:"weba","x-caf":"caf","x-matroska":"mka","x-pn-realaudio-plugin":"rmp",xm:"xm",aac:"aac",aiff:["aiff","aif","aff"],opus:"opus",wav:"wav"},chemical:{"x-alchemy":"alc","x-cache":["cac","cache"],"x-cache-csf":"csf","x-cactvs-binary":["cbin","cascii","ctab"],"x-cdx":"cdx","x-chem3d":"c3d","x-cif":"cif","x-cmdf":"cmdf","x-cml":"cml","x-compass":"cpa","x-crossfire":"bsd","x-csml":["csml","csm"],"x-ctx":"ctx","x-cxf":["cxf","cef"],"x-embl-dl-nucleotide":["emb","embl"],"x-gamess-input":["inp","gam","gamin"],"x-gaussian-checkpoint":["fch","fchk"],"x-gaussian-cube":"cub","x-gaussian-input":["gau","gjc","gjf"],"x-gaussian-log":"gal","x-gcg8-sequence":"gcg","x-genbank":"gen","x-hin":"hin","x-isostar":["istr","ist"],"x-jcamp-dx":["jdx","dx"],"x-kinemage":"kin","x-macmolecule":"mcm","x-macromodel-input":"mmod","x-mdl-molfile":"mol","x-mdl-rdfile":"rd","x-mdl-rxnfile":"rxn","x-mdl-sdfile":"sd","x-mdl-tgf":"tgf","x-mmcif":"mcif","x-mol2":"mol2","x-molconn-Z":"b","x-mopac-graph":"gpt","x-mopac-input":["mop","mopcrt","zmt"],"x-mopac-out":"moo","x-ncbi-asn1":"asn","x-ncbi-asn1-ascii":["prt","ent"],"x-ncbi-asn1-binary":"val","x-rosdal":"ros","x-swissprot":"sw","x-vamas-iso14976":"vms","x-vmd":"vmd","x-xtel":"xtel","x-xyz":"xyz"},font:{otf:"otf",woff:"woff",woff2:"woff2"},image:{gif:"gif",ief:"ief",jpeg:["jpeg","jpg","jpe","jfif","jfif-tbnl","jif"],pcx:"pcx",png:"png","svg+xml":["svg","svgz"],tiff:["tiff","tif"],"vnd.djvu":["djvu","djv"],"vnd.wap.wbmp":"wbmp","x-canon-cr2":"cr2","x-canon-crw":"crw","x-cmu-raster":"ras","x-coreldraw":"cdr","x-coreldrawpattern":"pat","x-coreldrawtemplate":"cdt","x-corelphotopaint":"cpt","x-epson-erf":"erf","x-icon":"ico","x-jg":"art","x-jng":"jng","x-nikon-nef":"nef","x-olympus-orf":"orf","x-portable-anymap":"pnm","x-portable-bitmap":"pbm","x-portable-graymap":"pgm","x-portable-pixmap":"ppm","x-rgb":"rgb","x-xbitmap":"xbm","x-xpixmap":"xpm","x-xwindowdump":"xwd",bmp:"bmp",cgm:"cgm",g3fax:"g3",ktx:"ktx","prs.btif":"btif",sgi:"sgi","vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"vnd.dwg":"dwg","vnd.dxf":"dxf","vnd.fastbidsheet":"fbs","vnd.fpx":"fpx","vnd.fst":"fst","vnd.fujixerox.edmics-mmr":"mmr","vnd.fujixerox.edmics-rlc":"rlc","vnd.ms-modi":"mdi","vnd.ms-photo":"wdp","vnd.net-fpx":"npx","vnd.xiff":"xif",webp:"webp","x-3ds":"3ds","x-cmx":"cmx","x-freehand":["fh","fhc","fh4","fh5","fh7"],"x-pict":["pic","pct"],"x-tga":"tga","cis-cod":"cod",avif:"avifs",heic:["heif","heic"],pjpeg:["pjpg"],"vnd.adobe.photoshop":"psd","x-adobe-dng":"dng","x-fuji-raf":"raf","x-icns":"icns","x-kodak-dcr":"dcr","x-kodak-k25":"k25","x-kodak-kdc":"kdc","x-minolta-mrw":"mrw","x-panasonic-raw":["raw","rw2","rwl"],"x-pentax-pef":["pef","ptx"],"x-sigma-x3f":"x3f","x-sony-arw":"arw","x-sony-sr2":"sr2","x-sony-srf":"srf"},message:{rfc822:["eml","mime","mht","mhtml","nws"]},model:{iges:["igs","iges"],mesh:["msh","mesh","silo"],vrml:["wrl","vrml"],"x3d+vrml":["x3dv","x3dvz"],"x3d+xml":"x3dz","x3d+binary":["x3db","x3dbz"],"vnd.collada+xml":"dae","vnd.dwf":"dwf","vnd.gdl":"gdl","vnd.gtw":"gtw","vnd.mts":"mts","vnd.usdz+zip":"usdz","vnd.vtu":"vtu"},text:{"cache-manifest":["manifest","appcache"],calendar:["ics","icz","ifb"],css:"css",csv:"csv",h323:"323",html:["html","htm","shtml","stm"],iuls:"uls",plain:["txt","text","brf","conf","def","list","log","in","bas","diff","ksh"],richtext:"rtx",scriptlet:["sct","wsc"],texmacs:"tm","tab-separated-values":"tsv","vnd.sun.j2me.app-descriptor":"jad","vnd.wap.wml":"wml","vnd.wap.wmlscript":"wmls","x-bibtex":"bib","x-boo":"boo","x-c++hdr":["h++","hpp","hxx","hh"],"x-c++src":["c++","cpp","cxx","cc"],"x-component":"htc","x-dsrc":"d","x-diff":"patch","x-haskell":"hs","x-java":"java","x-literate-haskell":"lhs","x-moc":"moc","x-pascal":["p","pas","pp","inc"],"x-pcs-gcd":"gcd","x-python":"py","x-scala":"scala","x-setext":"etx","x-tcl":["tcl","tk"],"x-tex":["tex","ltx","sty","cls"],"x-vcalendar":"vcs","x-vcard":"vcf",n3:"n3","prs.lines.tag":"dsc",sgml:["sgml","sgm"],troff:["t","tr","roff","man","me","ms"],turtle:"ttl","uri-list":["uri","uris","urls"],vcard:"vcard","vnd.curl":"curl","vnd.curl.dcurl":"dcurl","vnd.curl.scurl":"scurl","vnd.curl.mcurl":"mcurl","vnd.dvb.subtitle":"sub","vnd.fly":"fly","vnd.fmi.flexstor":"flx","vnd.graphviz":"gv","vnd.in3d.3dml":"3dml","vnd.in3d.spot":"spot","x-asm":["s","asm"],"x-c":["c","h","dic"],"x-fortran":["f","for","f77","f90"],"x-opml":"opml","x-nfo":"nfo","x-sfv":"sfv","x-uuencode":"uu",webviewhtml:"htt",javascript:"js",json:"json",markdown:["md","markdown","mdown","markdn"],"vnd.wap.si":"si","vnd.wap.sl":"sl"},video:{avif:"avif","3gpp":"3gp",annodex:"axv",dl:"dl",dv:["dif","dv"],fli:"fli",gl:"gl",mpeg:["mpeg","mpg","mpe","m1v","m2v","mp2","mpa","mpv2"],mp4:["mp4","mp4v","mpg4"],quicktime:["qt","mov"],ogg:"ogv","vnd.mpegurl":["mxu","m4u"],"x-flv":"flv","x-la-asf":["lsf","lsx"],"x-mng":"mng","x-ms-asf":["asf","asx","asr"],"x-ms-wm":"wm","x-ms-wmv":"wmv","x-ms-wmx":"wmx","x-ms-wvx":"wvx","x-msvideo":"avi","x-sgi-movie":"movie","x-matroska":["mpv","mkv","mk3d","mks"],"3gpp2":"3g2",h261:"h261",h263:"h263",h264:"h264",jpeg:"jpgv",jpm:["jpm","jpgm"],mj2:["mj2","mjp2"],"vnd.dece.hd":["uvh","uvvh"],"vnd.dece.mobile":["uvm","uvvm"],"vnd.dece.pd":["uvp","uvvp"],"vnd.dece.sd":["uvs","uvvs"],"vnd.dece.video":["uvv","uvvv"],"vnd.dvb.file":"dvb","vnd.fvt":"fvt","vnd.ms-playready.media.pyv":"pyv","vnd.uvvu.mp4":["uvu","uvvu"],"vnd.vivo":"viv",webm:"webm","x-f4v":"f4v","x-m4v":"m4v","x-ms-vob":"vob","x-smv":"smv",mp2t:"ts"},"x-conference":{"x-cooltalk":"ice"},"x-world":{"x-vrml":["vrm","flr","wrz","xaf","xof"]}};(()=>{const e={};for(const t of Object.keys(qa))for(const r of Object.keys(qa[t])){const i=qa[t][r];if(typeof i=="string")e[i]=t+"/"+r;else for(let a=0;a<i.length;a++)e[i[a]]=t+"/"+r}return e})();const Fu=[];for(let e=0;e<256;e++){let t=e;for(let r=0;r<8;r++)t&1?t=t>>>1^3988292384:t=t>>>1;Fu[e]=t}class pi{constructor(t){this.crc=t||-1}append(t){let r=this.crc|0;for(let i=0,a=t.length|0;i<a;i++)r=r>>>8^Fu[(r^t[i])&255];this.crc=r}get(){return~this.crc}}class Lu extends TransformStream{constructor(){let t;const r=new pi;super({transform(i,a){r.append(i),a.enqueue(i)},flush(){const i=new Uint8Array(4);new DataView(i.buffer).setUint32(0,r.get()),t.value=i}}),t=this}}function rb(e){if(typeof TextEncoder==kr){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let r=0;r<t.length;r++)t[r]=e.charCodeAt(r);return t}else return new TextEncoder().encode(e)}const ot={concat(e,t){if(e.length===0||t.length===0)return e.concat(t);const r=e[e.length-1],i=ot.getPartial(r);return i===32?e.concat(t):ot._shiftRight(t,i,r|0,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(t===0)return 0;const r=e[t-1];return(t-1)*32+ot.getPartial(r)},clamp(e,t){if(e.length*32<t)return e;e=e.slice(0,Math.ceil(t/32));const r=e.length;return t=t&31,r>0&&t&&(e[r-1]=ot.partial(t,e[r-1]&2147483648>>t-1,1)),e},partial(e,t,r){return e===32?t:(r?t|0:t<<32-e)+e*1099511627776},getPartial(e){return Math.round(e/1099511627776)||32},_shiftRight(e,t,r,i){for(i===void 0&&(i=[]);t>=32;t-=32)i.push(r),r=0;if(t===0)return i.concat(e);for(let n=0;n<e.length;n++)i.push(r|e[n]>>>t),r=e[n]<<32-t;const a=e.length?e[e.length-1]:0,s=ot.getPartial(a);return i.push(ot.partial(t+s&31,t+s>32?r:i.pop(),1)),i}},ci={bytes:{fromBits(e){const r=ot.bitLength(e)/8,i=new Uint8Array(r);let a;for(let s=0;s<r;s++)s&3||(a=e[s/4]),i[s]=a>>>24,a<<=8;return i},toBits(e){const t=[];let r,i=0;for(r=0;r<e.length;r++)i=i<<8|e[r],(r&3)===3&&(t.push(i),i=0);return r&3&&t.push(ot.partial(8*(r&3),i)),t}}},Iu={};Iu.sha1=class{constructor(e){const t=this;t.blockSize=512,t._init=[1732584193,4023233417,2562383102,271733878,3285377520],t._key=[1518500249,1859775393,2400959708,3395469782],e?(t._h=e._h.slice(0),t._buffer=e._buffer.slice(0),t._length=e._length):t.reset()}reset(){const e=this;return e._h=e._init.slice(0),e._buffer=[],e._length=0,e}update(e){const t=this;typeof e=="string"&&(e=ci.utf8String.toBits(e));const r=t._buffer=ot.concat(t._buffer,e),i=t._length,a=t._length=i+ot.bitLength(e);if(a>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const s=new Uint32Array(r);let n=0;for(let o=t.blockSize+i-(t.blockSize+i&t.blockSize-1);o<=a;o+=t.blockSize)t._block(s.subarray(16*n,16*(n+1))),n+=1;return r.splice(0,16*n),t}finalize(){const e=this;let t=e._buffer;const r=e._h;t=ot.concat(t,[ot.partial(1,1)]);for(let i=t.length+2;i&15;i++)t.push(0);for(t.push(Math.floor(e._length/4294967296)),t.push(e._length|0);t.length;)e._block(t.splice(0,16));return e.reset(),r}_f(e,t,r,i){if(e<=19)return t&r|~t&i;if(e<=39)return t^r^i;if(e<=59)return t&r|t&i|r&i;if(e<=79)return t^r^i}_S(e,t){return t<<e|t>>>32-e}_block(e){const t=this,r=t._h,i=Array(80);for(let p=0;p<16;p++)i[p]=e[p];let a=r[0],s=r[1],n=r[2],o=r[3],l=r[4];for(let p=0;p<=79;p++){p>=16&&(i[p]=t._S(1,i[p-3]^i[p-8]^i[p-14]^i[p-16]));const c=t._S(5,a)+t._f(p,s,n,o)+l+i[p]+t._key[Math.floor(p/20)]|0;l=o,o=n,n=t._S(30,s),s=a,a=c}r[0]=r[0]+a|0,r[1]=r[1]+s|0,r[2]=r[2]+n|0,r[3]=r[3]+o|0,r[4]=r[4]+l|0}};const Cu={};Cu.aes=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const r=t._tables[0][4],i=t._tables[1],a=e.length;let s,n,o,l=1;if(a!==4&&a!==6&&a!==8)throw new Error("invalid aes key size");for(t._key=[n=e.slice(0),o=[]],s=a;s<4*a+28;s++){let p=n[s-1];(s%a===0||a===8&&s%a===4)&&(p=r[p>>>24]<<24^r[p>>16&255]<<16^r[p>>8&255]<<8^r[p&255],s%a===0&&(p=p<<8^p>>>24^l<<24,l=l<<1^(l>>7)*283)),n[s]=n[s-a]^p}for(let p=0;s;p++,s--){const c=n[p&3?s:s-4];s<=4||p<4?o[p]=c:o[p]=i[0][r[c>>>24]]^i[1][r[c>>16&255]]^i[2][r[c>>8&255]]^i[3][r[c&255]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],r=e[4],i=t[4],a=[],s=[];let n,o,l,p;for(let c=0;c<256;c++)s[(a[c]=c<<1^(c>>7)*283)^c]=c;for(let c=n=0;!r[c];c^=o||1,n=s[n]||1){let d=n^n<<1^n<<2^n<<3^n<<4;d=d>>8^d&255^99,r[c]=d,i[d]=c,p=a[l=a[o=a[c]]];let m=p*16843009^l*65537^o*257^c*16843008,y=a[d]*257^d*16843008;for(let T=0;T<4;T++)e[T][c]=y=y<<24^y>>>8,t[T][d]=m=m<<24^m>>>8}for(let c=0;c<5;c++)e[c]=e[c].slice(0),t[c]=t[c].slice(0)}_crypt(e,t){if(e.length!==4)throw new Error("invalid aes block size");const r=this._key[t],i=r.length/4-2,a=[0,0,0,0],s=this._tables[t],n=s[0],o=s[1],l=s[2],p=s[3],c=s[4];let d=e[0]^r[0],m=e[t?3:1]^r[1],y=e[2]^r[2],T=e[t?1:3]^r[3],g=4,w,_,O;for(let E=0;E<i;E++)w=n[d>>>24]^o[m>>16&255]^l[y>>8&255]^p[T&255]^r[g],_=n[m>>>24]^o[y>>16&255]^l[T>>8&255]^p[d&255]^r[g+1],O=n[y>>>24]^o[T>>16&255]^l[d>>8&255]^p[m&255]^r[g+2],T=n[T>>>24]^o[d>>16&255]^l[m>>8&255]^p[y&255]^r[g+3],g+=4,d=w,m=_,y=O;for(let E=0;E<4;E++)a[t?3&-E:E]=c[d>>>24]<<24^c[m>>16&255]<<16^c[y>>8&255]<<8^c[T&255]^r[g++],w=d,d=m,m=y,y=T,T=w;return a}};const nb={getRandomValues(e){const t=new Uint32Array(e.buffer),r=i=>{let a=987654321;const s=4294967295;return function(){return a=36969*(a&65535)+(a>>16)&s,i=18e3*(i&65535)+(i>>16)&s,(((a<<16)+i&s)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let i=0,a;i<e.length;i+=4){const s=r((a||Math.random())*4294967296);a=s()*987654071,t[i/4]=s()*4294967296|0}return e}},ju={};ju.ctrGladman=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if((e>>24&255)===255){let t=e>>16&255,r=e>>8&255,i=e&255;t===255?(t=0,r===255?(r=0,i===255?i=0:++i):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=i}else e+=1<<24;return e}incCounter(e){(e[0]=this.incWord(e[0]))===0&&(e[1]=this.incWord(e[1]))}calculate(e,t,r){let i;if(!(i=t.length))return[];const a=ot.bitLength(t);for(let s=0;s<i;s+=4){this.incCounter(r);const n=e.encrypt(r);t[s]^=n[0],t[s+1]^=n[1],t[s+2]^=n[2],t[s+3]^=n[3]}return ot.clamp(t,a)}};const qr={importKey(e){return new qr.hmacSha1(ci.bytes.toBits(e))},pbkdf2(e,t,r,i){if(r=r||1e4,i<0||r<0)throw new Error("invalid params to pbkdf2");const a=(i>>5)+1<<2;let s,n,o,l,p;const c=new ArrayBuffer(a),d=new DataView(c);let m=0;const y=ot;for(t=ci.bytes.toBits(t),p=1;m<(a||1);p++){for(s=n=e.encrypt(y.concat(t,[p])),o=1;o<r;o++)for(n=e.encrypt(n),l=0;l<n.length;l++)s[l]^=n[l];for(o=0;m<(a||1)&&o<s.length;o++)d.setInt32(m,s[o]),m+=4}return c.slice(0,i/8)}};qr.hmacSha1=class{constructor(e){const t=this,r=t._hash=Iu.sha1,i=[[],[]];t._baseHash=[new r,new r];const a=t._baseHash[0].blockSize/32;e.length>a&&(e=new r().update(e).finalize());for(let s=0;s<a;s++)i[0][s]=e[s]^909522486,i[1][s]=e[s]^1549556828;t._baseHash[0].update(i[0]),t._baseHash[1].update(i[1]),t._resultHash=new r(t._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){const t=this;t._updated=!0,t._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),r=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),r}encrypt(e){if(this._updated)throw new Error("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}};const sb=typeof crypto!=kr&&typeof crypto.getRandomValues==ms,Nu="Invalid password",Du="Invalid signature",Wo="zipjs-abort-check-password";function Uu(e){return sb?crypto.getRandomValues(e):nb.getRandomValues(e)}const sn=16,ib="raw",Bu={name:"PBKDF2"},ab={name:"HMAC"},ob="SHA-1",lb=Object.assign({hash:ab},Bu),mo=Object.assign({iterations:1e3,hash:{name:ob}},Bu),fb=["deriveBits"],Jn=[8,12,16],On=[16,24,32],mr=10,pb=[0,0,0,0],Oi=typeof crypto!=kr,ys=Oi&&crypto.subtle,qu=Oi&&typeof ys!=kr,Xt=ci.bytes,cb=Cu.aes,ub=ju.ctrGladman,db=qr.hmacSha1;let wp=Oi&&qu&&typeof ys.importKey==ms,bp=Oi&&qu&&typeof ys.deriveBits==ms;class hb extends TransformStream{constructor({password:t,rawPassword:r,signed:i,encryptionStrength:a,checkPasswordOnly:s}){super({start(){Object.assign(this,{ready:new Promise(n=>this.resolveReady=n),password:Hu(t,r),signed:i,strength:a-1,pending:new Uint8Array})},async transform(n,o){const l=this,{password:p,strength:c,resolveReady:d,ready:m}=l;p?(await yb(l,c,p,Ot(n,0,Jn[c]+2)),n=Ot(n,Jn[c]+2),s?o.error(new Error(Wo)):d()):await m;const y=new Uint8Array(n.length-mr-(n.length-mr)%sn);o.enqueue(Mu(l,n,y,0,mr,!0))},async flush(n){const{signed:o,ctr:l,hmac:p,pending:c,ready:d}=this;if(p&&l){await d;const m=Ot(c,0,c.length-mr),y=Ot(c,c.length-mr);let T=new Uint8Array;if(m.length){const g=es(Xt,m);p.update(g);const w=l.update(g);T=Qn(Xt,w)}if(o){const g=Ot(Qn(Xt,p.digest()),0,mr);for(let w=0;w<mr;w++)if(g[w]!=y[w])throw new Error(Du)}n.enqueue(T)}}})}}class mb extends TransformStream{constructor({password:t,rawPassword:r,encryptionStrength:i}){let a;super({start(){Object.assign(this,{ready:new Promise(s=>this.resolveReady=s),password:Hu(t,r),strength:i-1,pending:new Uint8Array})},async transform(s,n){const o=this,{password:l,strength:p,resolveReady:c,ready:d}=o;let m=new Uint8Array;l?(m=await gb(o,p,l),c()):await d;const y=new Uint8Array(m.length+s.length-s.length%sn);y.set(m,0),n.enqueue(Mu(o,s,y,m.length,0))},async flush(s){const{ctr:n,hmac:o,pending:l,ready:p}=this;if(o&&n){await p;let c=new Uint8Array;if(l.length){const d=n.update(es(Xt,l));o.update(d),c=Qn(Xt,d)}a.signature=Qn(Xt,o.digest()).slice(0,mr),s.enqueue(Ho(c,a.signature))}}}),a=this}}function Mu(e,t,r,i,a,s){const{ctr:n,hmac:o,pending:l}=e,p=t.length-a;l.length&&(t=Ho(l,t),r=_b(r,p-p%sn));let c;for(c=0;c<=p-sn;c+=sn){const d=es(Xt,Ot(t,c,c+sn));s&&o.update(d);const m=n.update(d);s||o.update(m),r.set(Qn(Xt,m),c+i)}return e.pending=Ot(t,c),r}async function yb(e,t,r,i){const a=await Wu(e,t,r,Ot(i,0,Jn[t])),s=Ot(i,Jn[t]);if(a[0]!=s[0]||a[1]!=s[1])throw new Error(Nu)}async function gb(e,t,r){const i=Uu(new Uint8Array(Jn[t])),a=await Wu(e,t,r,i);return Ho(i,a)}async function Wu(e,t,r,i){e.password=null;const a=await wb(ib,r,lb,!1,fb),s=await bb(Object.assign({salt:i},mo),a,8*(On[t]*2+2)),n=new Uint8Array(s),o=es(Xt,Ot(n,0,On[t])),l=es(Xt,Ot(n,On[t],On[t]*2)),p=Ot(n,On[t]*2);return Object.assign(e,{keys:{key:o,authentication:l,passwordVerification:p},ctr:new ub(new cb(o),Array.from(pb)),hmac:new db(l)}),p}async function wb(e,t,r,i,a){if(wp)try{return await ys.importKey(e,t,r,i,a)}catch{return wp=!1,qr.importKey(t)}else return qr.importKey(t)}async function bb(e,t,r){if(bp)try{return await ys.deriveBits(e,t,r)}catch{return bp=!1,qr.pbkdf2(t,e.salt,mo.iterations,r)}else return qr.pbkdf2(t,e.salt,mo.iterations,r)}function Hu(e,t){return t===ft?rb(e):t}function Ho(e,t){let r=e;return e.length+t.length&&(r=new Uint8Array(e.length+t.length),r.set(e,0),r.set(t,e.length)),r}function _b(e,t){if(t&&t>e.length){const r=e;e=new Uint8Array(t),e.set(r,0)}return e}function Ot(e,t,r){return e.subarray(t,r)}function Qn(e,t){return e.fromBits(t)}function es(e,t){return e.toBits(t)}const cn=12;class vb extends TransformStream{constructor({password:t,passwordVerification:r,checkPasswordOnly:i}){super({start(){Object.assign(this,{password:t,passwordVerification:r}),zu(this,t)},transform(a,s){const n=this;if(n.password){const o=_p(n,a.subarray(0,cn));if(n.password=null,o[cn-1]!=n.passwordVerification)throw new Error(Nu);a=a.subarray(cn)}i?s.error(new Error(Wo)):s.enqueue(_p(n,a))}})}}class xb extends TransformStream{constructor({password:t,passwordVerification:r}){super({start(){Object.assign(this,{password:t,passwordVerification:r}),zu(this,t)},transform(i,a){const s=this;let n,o;if(s.password){s.password=null;const l=Uu(new Uint8Array(cn));l[cn-1]=s.passwordVerification,n=new Uint8Array(i.length+l.length),n.set(vp(s,l),0),o=cn}else n=new Uint8Array(i.length),o=0;n.set(vp(s,i),o),a.enqueue(n)}})}}function _p(e,t){const r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=Vu(e)^t[i],zo(e,r[i]);return r}function vp(e,t){const r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=Vu(e)^t[i],zo(e,t[i]);return r}function zu(e,t){const r=[305419896,591751049,878082192];Object.assign(e,{keys:r,crcKey0:new pi(r[0]),crcKey2:new pi(r[2])});for(let i=0;i<t.length;i++)zo(e,t.charCodeAt(i))}function zo(e,t){let[r,i,a]=e.keys;e.crcKey0.append([t]),r=~e.crcKey0.get(),i=xp(Math.imul(xp(i+Zu(r)),134775813)+1),e.crcKey2.append([i>>>24]),a=~e.crcKey2.get(),e.keys=[r,i,a]}function Vu(e){const t=e.keys[2]|2;return Zu(Math.imul(t,t^1)>>>8)}function Zu(e){return e&255}function xp(e){return e&4294967295}const kp="deflate-raw";class kb extends TransformStream{constructor(t,{chunkSize:r,CompressionStream:i,CompressionStreamNative:a}){super({});const{compressed:s,encrypted:n,useCompressionStream:o,zipCrypto:l,signed:p,level:c}=t,d=this;let m,y,T=Gu(super.readable);(!n||l)&&p&&(m=new Lu,T=Jt(T,m)),s&&(T=Ku(T,o,{level:c,chunkSize:r},a,i)),n&&(l?T=Jt(T,new xb(t)):(y=new mb(t),T=Jt(T,y))),Yu(d,T,()=>{let g;n&&!l&&(g=y.signature),(!n||l)&&p&&(g=new DataView(m.value.buffer).getUint32(0)),d.signature=g})}}class Pb extends TransformStream{constructor(t,{chunkSize:r,DecompressionStream:i,DecompressionStreamNative:a}){super({});const{zipCrypto:s,encrypted:n,signed:o,signature:l,compressed:p,useCompressionStream:c}=t;let d,m,y=Gu(super.readable);n&&(s?y=Jt(y,new vb(t)):(m=new hb(t),y=Jt(y,m))),p&&(y=Ku(y,c,{chunkSize:r},a,i)),(!n||s)&&o&&(d=new Lu,y=Jt(y,d)),Yu(this,y,()=>{if((!n||s)&&o){const T=new DataView(d.value.buffer);if(l!=T.getUint32(0,!1))throw new Error(Du)}})}}function Gu(e){return Jt(e,new TransformStream({transform(t,r){t&&t.length&&r.enqueue(t)}}))}function Yu(e,t,r){t=Jt(t,new TransformStream({flush:r})),Object.defineProperty(e,"readable",{get(){return t}})}function Ku(e,t,r,i,a){try{const s=t&&i?i:a;e=Jt(e,new s(kp,r))}catch{if(t)try{e=Jt(e,new a(kp,r))}catch{return e}else return e}return e}function Jt(e,t){return e.pipeThrough(t)}const Eb="message",Sb="start",Tb="pull",Pp="data",Ob="ack",Ep="close",Ab="deflate",Xu="inflate";class $b extends TransformStream{constructor(t,r){super({});const i=this,{codecType:a}=t;let s;a.startsWith(Ab)?s=kb:a.startsWith(Xu)&&(s=Pb);let n=0,o=0;const l=new s(t,r),p=super.readable,c=new TransformStream({transform(m,y){m&&m.length&&(o+=m.length,y.enqueue(m))},flush(){Object.assign(i,{inputSize:o})}}),d=new TransformStream({transform(m,y){m&&m.length&&(n+=m.length,y.enqueue(m))},flush(){const{signature:m}=l;Object.assign(i,{signature:m,outputSize:n,inputSize:o})}});Object.defineProperty(i,"readable",{get(){return p.pipeThrough(c).pipeThrough(l).pipeThrough(d)}})}}class Rb extends TransformStream{constructor(t){let r;super({transform:i,flush(a){r&&r.length&&a.enqueue(r)}});function i(a,s){if(r){const n=new Uint8Array(r.length+a.length);n.set(r),n.set(a,r.length),a=n,r=null}a.length>t?(s.enqueue(a.slice(0,t)),i(a.slice(t),s)):r=a}}}let Ju=typeof Worker!=kr;class Ma{constructor(t,{readable:r,writable:i},{options:a,config:s,streamOptions:n,useWebWorkers:o,transferStreams:l,scripts:p},c){const{signal:d}=n;return Object.assign(t,{busy:!0,readable:r.pipeThrough(new Rb(s.chunkSize)).pipeThrough(new Fb(r,n),{signal:d}),writable:i,options:Object.assign({},a),scripts:p,transferStreams:l,terminate(){return new Promise(m=>{const{worker:y,busy:T}=t;y?(T?t.resolveTerminated=m:(y.terminate(),m()),t.interface=null):m()})},onTaskFinished(){const{resolveTerminated:m}=t;m&&(t.resolveTerminated=null,t.terminated=!0,t.worker.terminate(),m()),t.busy=!1,c(t)}}),(o&&Ju?Lb:Qu)(t,s)}}class Fb extends TransformStream{constructor(t,{onstart:r,onprogress:i,size:a,onend:s}){let n=0;super({async start(){r&&await Wa(r,a)},async transform(o,l){n+=o.length,i&&await Wa(i,n,a),l.enqueue(o)},async flush(){t.size=n,s&&await Wa(s,n)}})}}async function Wa(e,...t){try{await e(...t)}catch{}}function Qu(e,t){return{run:()=>Ib(e,t)}}function Lb(e,t){const{baseURL:r,chunkSize:i}=t;if(!e.interface){let a;try{a=Nb(e.scripts[0],r,e)}catch{return Ju=!1,Qu(e,t)}Object.assign(e,{worker:a,interface:{run:()=>Cb(e,{chunkSize:i})}})}return e.interface}async function Ib({options:e,readable:t,writable:r,onTaskFinished:i},a){try{const s=new $b(e,a);await t.pipeThrough(s).pipeTo(r,{preventClose:!0,preventAbort:!0});const{signature:n,inputSize:o,outputSize:l}=s;return{signature:n,inputSize:o,outputSize:l}}finally{i()}}async function Cb(e,t){let r,i;const a=new Promise((m,y)=>{r=m,i=y});Object.assign(e,{reader:null,writer:null,resolveResult:r,rejectResult:i,result:a});const{readable:s,options:n,scripts:o}=e,{writable:l,closed:p}=jb(e.writable),c=Vs({type:Sb,scripts:o.slice(1),options:n,config:t,readable:s,writable:l},e);c||Object.assign(e,{reader:s.getReader(),writer:l.getWriter()});const d=await a;return c||await l.getWriter().close(),await p,d}function jb(e){let t;const r=new Promise(a=>t=a);return{writable:new WritableStream({async write(a){const s=e.getWriter();await s.ready,await s.write(a),s.releaseLock()},close(){t()},abort(a){return e.getWriter().abort(a)}}),closed:r}}let Sp=!0,Tp=!0;function Nb(e,t,r){const i={type:"module"};let a,s;typeof e==ms&&(e=e());try{a=new URL(e,t)}catch{a=e}if(Sp)try{s=new Worker(a)}catch{Sp=!1,s=new Worker(a,i)}else s=new Worker(a,i);return s.addEventListener(Eb,n=>Db(n,r)),s}function Vs(e,{worker:t,writer:r,onTaskFinished:i,transferStreams:a}){try{const{value:s,readable:n,writable:o}=e,l=[];if(s&&(s.byteLength<s.buffer.byteLength?e.value=s.buffer.slice(0,s.byteLength):e.value=s.buffer,l.push(e.value)),a&&Tp?(n&&l.push(n),o&&l.push(o)):e.readable=e.writable=null,l.length)try{return t.postMessage(e,l),!0}catch{Tp=!1,e.readable=e.writable=null,t.postMessage(e)}else t.postMessage(e)}catch(s){throw r&&r.releaseLock(),i(),s}}async function Db({data:e},t){const{type:r,value:i,messageId:a,result:s,error:n}=e,{reader:o,writer:l,resolveResult:p,rejectResult:c,onTaskFinished:d}=t;try{if(n){const{message:y,stack:T,code:g,name:w}=n,_=new Error(y);Object.assign(_,{stack:T,code:g,name:w}),m(_)}else{if(r==Tb){const{value:y,done:T}=await o.read();Vs({type:Pp,value:y,done:T,messageId:a},t)}r==Pp&&(await l.ready,await l.write(new Uint8Array(i)),Vs({type:Ob,messageId:a},t)),r==Ep&&m(null,s)}}catch(y){Vs({type:Ep,messageId:a},t),m(y)}function m(y,T){y?c(y):p(T),l&&l.releaseLock(),d()}}let Or=[];const Ha=[];let Op=0;async function Ub(e,t){const{options:r,config:i}=t,{transferStreams:a,useWebWorkers:s,useCompressionStream:n,codecType:o,compressed:l,signed:p,encrypted:c}=r,{workerScripts:d,maxWorkers:m}=i;t.transferStreams=a||a===ft;const y=!l&&!p&&!c&&!t.transferStreams;return t.useWebWorkers=!y&&(s||s===ft&&i.useWebWorkers),t.scripts=t.useWebWorkers&&d?d[o]:[],r.useCompressionStream=n||n===ft&&i.useCompressionStream,(await T()).run();async function T(){const w=Or.find(_=>!_.busy);if(w)return Ap(w),new Ma(w,e,t,g);if(Or.length<m){const _={indexWorker:Op};return Op++,Or.push(_),new Ma(_,e,t,g)}else return new Promise(_=>Ha.push({resolve:_,stream:e,workerOptions:t}))}function g(w){if(Ha.length){const[{resolve:_,stream:O,workerOptions:E}]=Ha.splice(0,1);_(new Ma(w,O,E,g))}else w.worker?(Ap(w),Bb(w,t)):Or=Or.filter(_=>_!=w)}}function Bb(e,t){const{config:r}=t,{terminateWorkerTimeout:i}=r;Number.isFinite(i)&&i>=0&&(e.terminated?e.terminated=!1:e.terminateTimeout=setTimeout(async()=>{Or=Or.filter(a=>a!=e);try{await e.terminate()}catch{}},i))}function Ap(e){const{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}function qb(e,t={}){const r=`const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:i,Uint16Array:o,Uint32Array:c,Int32Array:f,Map:a,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:d,TransformStream:p,ReadableStream:y,WritableStream:m,CompressionStream:b,DecompressionStream:g}=self,k=void 0,v="undefined",S="function";class z{constructor(e){return class extends p{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const C=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;C[e]=t}class x{constructor(e){this.t=e||-1}append(e){let t=0|this.t;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^C[255&(t^e[n])];this.t=t}get(){return~this.t}}class A extends p{constructor(){let e;const t=new x;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new i(4);new l(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const _={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=_.i(n);return 32===r?e.concat(t):_.o(t,r,0|n,e.slice(0,e.length-1))},l(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+_.i(n)},u(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,r.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=_.h(t,e[n-1]&2147483648>>t-1,1)),e},h:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,i:e=>r.round(e/1099511627776)||32,o(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s<e.length;s++)r.push(n|e[s]>>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,i=_.i(s);return r.push(_.h(t+i&31,t+i>32?n:r.pop(),1)),r}},I={bytes:{p(e){const t=_.l(e)/8,n=new i(t);let r;for(let s=0;t>s;s++)3&s||(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},m(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3&~n||(t.push(r),r=0);return 3&n&&t.push(_.h(8*(3&n),r)),t}}},P=class{constructor(e){const t=this;t.blockSize=512,t.k=[1732584193,4023233417,2562383102,271733878,3285377520],t.v=[1518500249,1859775393,2400959708,3395469782],e?(t.S=e.S.slice(0),t.C=e.C.slice(0),t.A=e.A):t.reset()}reset(){const e=this;return e.S=e.k.slice(0),e.C=[],e.A=0,e}update(e){const t=this;"string"==typeof e&&(e=I._.m(e));const n=t.C=_.concat(t.C,e),r=t.A,i=t.A=r+_.l(e);if(i>9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const o=new c(n);let f=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t.I(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}P(){const e=this;let t=e.C;const n=e.S;t=_.concat(t,[_.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e.A/4294967296)),t.push(0|e.A);t.length;)e.I(t.splice(0,16));return e.reset(),n}D(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}V(e,t){return t<<e|t>>>32-e}I(t){const n=this,s=n.S,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let o=s[0],c=s[1],f=s[2],a=s[3],l=s[4];for(let e=0;79>=e;e++){16>e||(i[e]=n.V(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.V(5,o)+n.D(e,c,f,a)+l+i[e]+n.v[r.floor(e/20)]|0;l=a,a=f,f=n.V(30,c),c=o,o=t}s[0]=s[0]+o|0,s[1]=s[1]+c|0,s[2]=s[2]+f|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0}},D={getRandomValues(e){const t=new c(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(r.random()>.5?1:-1))};for(let s,i=0;i<e.length;i+=4){const e=n(4294967296*(s||r.random()));s=987654071*e(),t[i/4]=4294967296*e()|0}return e}},V={importKey:e=>new V.R(I.bytes.m(e)),B(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,c,f,a,u;const w=new ArrayBuffer(i),h=new l(w);let d=0;const p=_;for(t=I.bytes.m(t),u=1;(i||1)>d;u++){for(o=c=e.encrypt(p.concat(t,[u])),f=1;n>f;f++)for(c=e.encrypt(c),a=0;a<c.length;a++)o[a]^=c[a];for(f=0;(i||1)>d&&f<o.length;f++)h.setInt32(d,o[f]),d+=4}return w.slice(0,r/8)},R:class{constructor(e){const t=this,n=t.M=P,r=[[],[]];t.U=[new n,new n];const s=t.U[0].blockSize/32;e.length>s&&(e=(new n).update(e).P());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.U[0].update(r[0]),t.U[1].update(r[1]),t.K=new n(t.U[0])}reset(){const e=this;e.K=new e.M(e.U[0]),e.N=!1}update(e){this.N=!0,this.K.update(e)}digest(){const e=this,t=e.K.P(),n=new e.M(e.U[1]).update(t).P();return e.reset(),n}encrypt(e){if(this.N)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},R=typeof h!=v&&typeof h.getRandomValues==S,B="Invalid password",E="Invalid signature",M="zipjs-abort-check-password";function U(e){return R?h.getRandomValues(e):D.getRandomValues(e)}const K=16,N={name:"PBKDF2"},O=t.assign({hash:{name:"HMAC"}},N),T=t.assign({iterations:1e3,hash:{name:"SHA-1"}},N),W=["deriveBits"],j=[8,12,16],H=[16,24,32],L=10,F=[0,0,0,0],q=typeof h!=v,G=q&&h.subtle,J=q&&typeof G!=v,Q=I.bytes,X=class{constructor(e){const t=this;t.O=[[[],[],[],[],[]],[[],[],[],[],[]]],t.O[0][0][0]||t.T();const n=t.O[0][4],r=t.O[1],i=e.length;let o,c,f,a=1;if(4!==i&&6!==i&&8!==i)throw new s("invalid aes key size");for(t.v=[c=e.slice(0),f=[]],o=i;4*i+28>o;o++){let e=c[o-1];(o%i==0||8===i&&o%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i==0&&(e=e<<8^e>>>24^a<<24,a=a<<1^283*(a>>7))),c[o]=c[o-i]^e}for(let e=0;o;e++,o--){const t=c[3&e?o:o-4];f[e]=4>=o||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this.W(e,0)}decrypt(e){return this.W(e,1)}T(){const e=this.O[0],t=this.O[1],n=e[4],r=t[4],s=[],i=[];let o,c,f,a;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let l=o=0;!n[l];l^=c||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[l]=i,r[i]=l,a=s[f=s[c=s[l]]];let u=16843009*a^65537*f^257*c^16843008*l,w=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][l]=w=w<<24^w>>>8,t[n][i]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}W(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.v[t],r=n.length/4-2,i=[0,0,0,0],o=this.O[t],c=o[0],f=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],b=e[t?1:3]^n[3],g=4;for(let e=0;r>e;e++)w=c[p>>>24]^f[y>>16&255]^a[m>>8&255]^l[255&b]^n[g],h=c[y>>>24]^f[m>>16&255]^a[b>>8&255]^l[255&p]^n[g+1],d=c[m>>>24]^f[b>>16&255]^a[p>>8&255]^l[255&y]^n[g+2],b=c[b>>>24]^f[p>>16&255]^a[y>>8&255]^l[255&m]^n[g+3],g+=4,p=w,y=h,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&b]^n[g++],w=p,p=y,y=m,m=b,b=w;return i}},Y=class{constructor(e,t){this.j=e,this.H=t,this.L=t}reset(){this.L=this.H}update(e){return this.F(this.j,e,this.L)}q(e){if(255&~(e>>24))e+=1<<24;else{let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}G(e){0===(e[0]=this.q(e[0]))&&(e[1]=this.q(e[1]))}F(e,t,n){let r;if(!(r=t.length))return[];const s=_.l(t);for(let s=0;r>s;s+=4){this.G(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return _.u(t,s)}},Z=V.R;let $=q&&J&&typeof G.importKey==S,ee=q&&J&&typeof G.deriveBits==S;class te extends p{constructor({password:e,rawPassword:n,signed:r,encryptionStrength:o,checkPasswordOnly:c}){super({start(){t.assign(this,{ready:new u((e=>this.J=e)),password:ie(e,n),signed:r,X:o-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:o,J:f,ready:a}=n;r?(await(async(e,t,n,r)=>{const i=await se(e,t,n,ce(r,0,j[t])),o=ce(r,j[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new s(B)})(n,o,r,ce(e,0,j[o]+2)),e=ce(e,j[o]+2),c?t.error(new s(M)):f()):await a;const l=new i(e.length-L-(e.length-L)%K);t.enqueue(re(n,e,l,0,L,!0))},async flush(e){const{signed:t,Y:n,Z:r,pending:o,ready:c}=this;if(r&&n){await c;const f=ce(o,0,o.length-L),a=ce(o,o.length-L);let l=new i;if(f.length){const e=ae(Q,f);r.update(e);const t=n.update(e);l=fe(Q,t)}if(t){const e=ce(fe(Q,r.digest()),0,L);for(let t=0;L>t;t++)if(e[t]!=a[t])throw new s(E)}e.enqueue(l)}}})}}class ne extends p{constructor({password:e,rawPassword:n,encryptionStrength:r}){let s;super({start(){t.assign(this,{ready:new u((e=>this.J=e)),password:ie(e,n),X:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:s,J:o,ready:c}=n;let f=new i;r?(f=await(async(e,t,n)=>{const r=U(new i(j[t]));return oe(r,await se(e,t,n,r))})(n,s,r),o()):await c;const a=new i(f.length+e.length-e.length%K);a.set(f,0),t.enqueue(re(n,e,a,f.length,0))},async flush(e){const{Y:t,Z:n,pending:r,ready:o}=this;if(n&&t){await o;let c=new i;if(r.length){const e=t.update(ae(Q,r));n.update(e),c=fe(Q,e)}s.signature=fe(Q,n.digest()).slice(0,L),e.enqueue(oe(c,s.signature))}}}),s=this}}function re(e,t,n,r,s,o){const{Y:c,Z:f,pending:a}=e,l=t.length-s;let u;for(a.length&&(t=oe(a,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,l-l%K)),u=0;l-K>=u;u+=K){const e=ae(Q,ce(t,u,u+K));o&&f.update(e);const s=c.update(e);o||f.update(s),n.set(fe(Q,s),u+r)}return e.pending=ce(t,u),n}async function se(n,r,s,o){n.password=null;const c=await(async(e,t,n,r,s)=>{if(!$)return V.importKey(t);try{return await G.importKey("raw",t,n,!1,s)}catch(e){return $=!1,V.importKey(t)}})(0,s,O,0,W),f=await(async(e,t,n)=>{if(!ee)return V.B(t,e.salt,T.iterations,n);try{return await G.deriveBits(e,t,n)}catch(r){return ee=!1,V.B(t,e.salt,T.iterations,n)}})(t.assign({salt:o},T),c,8*(2*H[r]+2)),a=new i(f),l=ae(Q,ce(a,0,H[r])),u=ae(Q,ce(a,H[r],2*H[r])),w=ce(a,2*H[r]);return t.assign(n,{keys:{key:l,$:u,passwordVerification:w},Y:new Y(new X(l),e.from(F)),Z:new Z(u)}),w}function ie(e,t){return t===k?(e=>{if(typeof w==v){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new w).encode(e)})(e):t}function oe(e,t){let n=e;return e.length+t.length&&(n=new i(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ce(e,t,n){return e.subarray(t,n)}function fe(e,t){return e.p(t)}function ae(e,t){return e.m(t)}class le extends p{constructor({password:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;if(n.password){const t=we(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new s(B);e=e.subarray(12)}r?t.error(new s(M)):t.enqueue(we(n,e))}})}}class ue extends p{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;let r,s;if(n.password){n.password=null;const t=U(new i(12));t[11]=n.passwordVerification,r=new i(e.length+t.length),r.set(he(n,t),0),s=12}else r=new i(e.length),s=0;r.set(he(n,e),s),t.enqueue(r)}})}}function we(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,n[r]);return n}function he(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,t[r]);return n}function de(e,n){const r=[305419896,591751049,878082192];t.assign(e,{keys:r,ee:new x(r[0]),te:new x(r[2])});for(let t=0;t<n.length;t++)pe(e,n.charCodeAt(t))}function pe(e,t){let[n,s,i]=e.keys;e.ee.append([t]),n=~e.ee.get(),s=be(r.imul(be(s+me(n)),134775813)+1),e.te.append([s>>>24]),i=~e.te.get(),e.keys=[n,s,i]}function ye(e){const t=2|e.keys[2];return me(r.imul(t,1^t)>>>8)}function me(e){return 255&e}function be(e){return 4294967295&e}const ge="deflate-raw";class ke extends p{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:i,useCompressionStream:o,zipCrypto:c,signed:f,level:a}=e,u=this;let w,h,d=Se(super.readable);i&&!c||!f||(w=new A,d=xe(d,w)),s&&(d=Ce(d,o,{level:a,chunkSize:t},r,n)),i&&(c?d=xe(d,new ue(e)):(h=new ne(e),d=xe(d,h))),ze(u,d,(()=>{let e;i&&!c&&(e=h.signature),i&&!c||!f||(e=new l(w.value.buffer).getUint32(0)),u.signature=e}))}}class ve extends p{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:c,signature:f,compressed:a,useCompressionStream:u}=e;let w,h,d=Se(super.readable);o&&(i?d=xe(d,new le(e)):(h=new te(e),d=xe(d,h))),a&&(d=Ce(d,u,{chunkSize:t},r,n)),o&&!i||!c||(w=new A,d=xe(d,w)),ze(this,d,(()=>{if((!o||i)&&c){const e=new l(w.value.buffer);if(f!=e.getUint32(0,!1))throw new s(E)}}))}}function Se(e){return xe(e,new p({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ze(e,n,r){n=xe(n,new p({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function Ce(e,t,n,r,s){try{e=xe(e,new(t&&r?r:s)(ge,n))}catch(r){if(!t)return e;try{e=xe(e,new s(ge,n))}catch(t){return e}}return e}function xe(e,t){return e.pipeThrough(t)}const Ae="data",_e="close";class Ie extends p{constructor(e,n){super({});const r=this,{codecType:s}=e;let i;s.startsWith("deflate")?i=ke:s.startsWith("inflate")&&(i=ve);let o=0,c=0;const f=new i(e,n),a=super.readable,l=new p({transform(e,t){e&&e.length&&(c+=e.length,t.enqueue(e))},flush(){t.assign(r,{inputSize:c})}}),u=new p({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=f;t.assign(r,{signature:e,outputSize:o,inputSize:c})}});t.defineProperty(r,"readable",{get:()=>a.pipeThrough(l).pipeThrough(f).pipeThrough(u)})}}class Pe extends p{constructor(e){let t;super({transform:function n(r,s){if(t){const e=new i(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(s.enqueue(r.slice(0,e)),n(r.slice(e),s)):t=r},flush(e){t&&t.length&&e.enqueue(t)}})}}const De=new a,Ve=new a;let Re,Be=0,Ee=!0;async function Me(e){try{const{options:t,scripts:r,config:s}=e;if(r&&r.length)try{Ee?importScripts.apply(k,r):await Ue(r)}catch(e){Ee=!1,await Ue(r)}self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new z(self.Deflate)),self.Inflate&&(s.DecompressionStream=new z(self.Inflate));const i={highWaterMark:1},o=e.readable||new y({async pull(e){const t=new u((e=>De.set(Be,e)));Ke({type:"pull",messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},i),c=e.writable||new m({async write(e){let t;const r=new u((e=>t=e));Ve.set(Be,t),Ke({type:Ae,value:e,messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER,await r}},i),f=new Ie(t,s);Re=new AbortController;const{signal:a}=Re;await o.pipeThrough(f).pipeThrough(new Pe(s.chunkSize)).pipeTo(c,{signal:a,preventClose:!0,preventAbort:!0}),await c.getWriter().close();const{signature:l,inputSize:w,outputSize:h}=f;Ke({type:_e,result:{signature:l,inputSize:w,outputSize:h}})}catch(e){Ne(e)}}async function Ue(e){for(const t of e)await import(t)}function Ke(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ne(e=new s("Unknown error")){const{message:t,stack:n,code:r,name:i}=e;d({error:{message:t,stack:n,code:r,name:i}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&Me(e),t==Ae){const e=De.get(n);De.delete(n),e({value:new i(r),done:s})}if("ack"==t){const e=Ve.get(n);Ve.delete(n),e()}t==_e&&Re.abort()}catch(e){Ne(e)}}));const Oe=-2;function Te(t){return We(t.map((([t,n])=>new e(t).fill(n,0,t))))}function We(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?We(n):n)),[])}const je=[0,1,2,3].concat(...Te([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function He(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.ne=n=>{const s=e.re,i=e.ie.se,o=e.ie.oe;let c,f,a,l=-1;for(n.ce=0,n.fe=573,c=0;o>c;c++)0!==s[2*c]?(n.ae[++n.ce]=l=c,n.le[c]=0):s[2*c+1]=0;for(;2>n.ce;)a=n.ae[++n.ce]=2>l?++l:0,s[2*a]=1,n.le[a]=0,n.ue--,i&&(n.we-=i[2*a+1]);for(e.he=l,c=r.floor(n.ce/2);c>=1;c--)n.de(s,c);a=o;do{c=n.ae[1],n.ae[1]=n.ae[n.ce--],n.de(s,1),f=n.ae[1],n.ae[--n.fe]=c,n.ae[--n.fe]=f,s[2*a]=s[2*c]+s[2*f],n.le[a]=r.max(n.le[c],n.le[f])+1,s[2*c+1]=s[2*f+1]=a,n.ae[1]=a++,n.de(s,1)}while(n.ce>=2);n.ae[--n.fe]=n.ae[1],(t=>{const n=e.re,r=e.ie.se,s=e.ie.pe,i=e.ie.ye,o=e.ie.me;let c,f,a,l,u,w,h=0;for(l=0;15>=l;l++)t.be[l]=0;for(n[2*t.ae[t.fe]+1]=0,c=t.fe+1;573>c;c++)f=t.ae[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.he||(t.be[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.ue+=w*(l+u),r&&(t.we+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.be[l];)l--;t.be[l]--,t.be[l+1]+=2,t.be[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.be[l];0!==f;)a=t.ae[--c],a>e.he||(n[2*a+1]!=l&&(t.ue+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),f--)}})(n),((e,n,r)=>{const s=[];let i,o,c,f=0;for(i=1;15>=i;i++)s[i]=f=f+r[i-1]<<1;for(o=0;n>=o;o++)c=e[2*o+1],0!==c&&(e[2*o]=t(s[c]++,c))})(s,e.he,n.be)}}function Le(e,t,n,r,s){const i=this;i.se=e,i.pe=t,i.ye=n,i.oe=r,i.me=s}He.ge=[0,1,2,3,4,5,6,7].concat(...Te([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),He.ke=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],He.ve=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],He.Se=e=>256>e?je[e]:je[256+(e>>>7)],He.ze=[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],He.Ce=[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],He.xe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],He.Ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Fe=Te([[144,8],[112,9],[24,7],[8,8]]);Le._e=We([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,Fe[t]])));const qe=Te([[30,5]]);function Ge(e,t,n,r,s){const i=this;i.Ie=e,i.Pe=t,i.De=n,i.Ve=r,i.Re=s}Le.Be=We([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,qe[t]]))),Le.Ee=new Le(Le._e,He.ze,257,286,15),Le.Me=new Le(Le.Be,He.Ce,0,30,15),Le.Ue=new Le(null,He.xe,0,19,7);const Je=[new Ge(0,0,0,0,0),new Ge(4,4,8,4,1),new Ge(4,5,16,8,1),new Ge(4,6,32,32,1),new Ge(4,4,16,16,2),new Ge(8,16,32,32,2),new Ge(8,16,128,128,2),new Ge(8,32,128,256,2),new Ge(32,128,258,1024,2),new Ge(32,258,258,4096,2)],Qe=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Xe=113,Ye=666,Ze=262;function $e(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function et(){const e=this;let t,n,s,c,f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z,C,x,A,_,I,P,D,V,R,B,E,M,U;const K=new He,N=new He,O=new He;let T,W,j,H,L,F;function q(){let t;for(t=0;286>t;t++)E[2*t]=0;for(t=0;30>t;t++)M[2*t]=0;for(t=0;19>t;t++)U[2*t]=0;E[512]=1,e.ue=e.we=0,W=j=0}function G(e,t){let n,r=-1,s=e[1],i=0,o=7,c=4;0===s&&(o=138,c=3),e[2*(t+1)+1]=65535;for(let f=0;t>=f;f++)n=s,s=e[2*(f+1)+1],++i<o&&n==s||(c>i?U[2*n]+=i:0!==n?(n!=r&&U[2*n]++,U[32]++):i>10?U[36]++:U[34]++,i=0,r=n,0===s?(o=138,c=3):n==s?(o=6,c=3):(o=7,c=4))}function J(t){e.Ke[e.pending++]=t}function Q(e){J(255&e),J(e>>>8&255)}function X(e,t){let n;const r=t;F>16-r?(n=e,L|=n<<F&65535,Q(L),L=n>>>16-F,F+=r-16):(L|=e<<F&65535,F+=r)}function Y(e,t){const n=2*e;X(65535&t[n],65535&t[n+1])}function Z(e,t){let n,r,s=-1,i=e[1],o=0,c=7,f=4;for(0===i&&(c=138,f=3),n=0;t>=n;n++)if(r=i,i=e[2*(n+1)+1],++o>=c||r!=i){if(f>o)do{Y(r,U)}while(0!=--o);else 0!==r?(r!=s&&(Y(r,U),o--),Y(16,U),X(o-3,2)):o>10?(Y(18,U),X(o-11,7)):(Y(17,U),X(o-3,3));o=0,s=r,0===i?(c=138,f=3):r==i?(c=6,f=3):(c=7,f=4)}}function $(){16==F?(Q(L),L=0,F=0):8>F||(J(255&L),L>>>=8,F-=8)}function ee(t,n){let s,i,o;if(e.Ne[W]=t,e.Oe[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(He.ge[n]+256+1)]++,M[2*He.Se(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+He.Ce[o]);if(s>>>=3,j<r.floor(W/2)&&s<r.floor(i/2))return!0}return W==T-1}function te(t,n){let r,s,i,o,c=0;if(0!==W)do{r=e.Ne[c],s=e.Oe[c],c++,0===r?Y(s,t):(i=He.ge[s],Y(i+256+1,t),o=He.ze[i],0!==o&&(s-=He.ke[i],X(s,o)),r--,i=He.Se(r),Y(i,n),o=He.Ce[i],0!==o&&(r-=He.ve[i],X(r,o)))}while(W>c);Y(256,t),H=t[513]}function ne(){F>8?Q(L):F>0&&J(255&L),L=0,F=0}function re(t,n,r){X(0+(r?1:0),3),((t,n)=>{ne(),H=8,Q(n),Q(~n),e.Ke.set(u.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function se(n){((t,n,r)=>{let s,i,o=0;D>0?(K.ne(e),N.ne(e),o=(()=>{let t;for(G(E,K.he),G(M,N.he),O.ne(e),t=18;t>=3&&0===U[2*He.Ae[t]+1];t--);return e.ue+=14+3*(t+1),t})(),s=e.ue+3+7>>>3,i=e.we+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==t?i==s?(X(2+(r?1:0),3),te(Le._e,Le.Be)):(X(4+(r?1:0),3),((e,t,n)=>{let r;for(X(e-257,5),X(t-1,5),X(n-4,4),r=0;n>r;r++)X(U[2*He.Ae[r]+1],3);Z(E,e-1),Z(M,t-1)})(K.he+1,N.he+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.Te()}function ie(){let e,n,r,s;do{if(s=w-A-C,0===s&&0===C&&0===A)s=f;else if(-1==s)s--;else if(C>=f+f-Ze){u.set(u.subarray(f,f+f),0),x-=f,C-=f,k-=f,e=y,r=e;do{n=65535&d[--r],d[r]=f>n?0:n-f}while(0!=--e);e=f,r=e;do{n=65535&h[--r],h[r]=f>n?0:n-f}while(0!=--e);s+=f}if(0===t.We)return;e=t.je(u,C+A,s),A+=e,3>A||(p=255&u[C],p=(p<<g^255&u[C+1])&b)}while(Ze>A&&0!==t.We)}function oe(e){let t,n,r=I,s=C,i=_;const o=C>f-Ze?C-(f-Ze):0;let c=B;const a=l,w=C+258;let d=u[s+i-1],p=u[s+i];R>_||(r>>=2),c>A&&(c=A);do{if(t=e,u[t+i]==p&&u[t+i-1]==d&&u[t]==u[s]&&u[++t]==u[s+1]){s+=2,t++;do{}while(u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&w>s);if(n=258-(w-s),s=w-258,n>i){if(x=e,i=n,n>=c)break;d=u[s+i-1],p=u[s+i]}}}while((e=65535&h[e&a])>o&&0!=--r);return i>A?A:i}e.le=[],e.be=[],e.ae=[],E=[],M=[],U=[],e.de=(t,n)=>{const r=e.ae,s=r[n];let i=n<<1;for(;i<=e.ce&&(i<e.ce&&$e(t,r[i+1],r[i],e.le)&&i++,!$e(t,s,r[i],e.le));)r[n]=r[i],n=i,i<<=1;r[n]=s},e.He=(t,S,x,W,j,G)=>(W||(W=8),j||(j=8),G||(G=0),t.Le=null,-1==S&&(S=6),1>j||j>9||8!=W||9>x||x>15||0>S||S>9||0>G||G>2?Oe:(t.Fe=e,a=x,f=1<<a,l=f-1,m=j+7,y=1<<m,b=y-1,g=r.floor((m+3-1)/3),u=new i(2*f),h=[],d=[],T=1<<j+6,e.Ke=new i(4*T),s=4*T,e.Ne=new o(T),e.Oe=new i(T),D=S,V=G,(t=>(t.qe=t.Ge=0,t.Le=null,e.pending=0,e.Je=0,n=Xe,c=0,K.re=E,K.ie=Le.Ee,N.re=M,N.ie=Le.Me,O.re=U,O.ie=Le.Ue,L=0,F=0,H=8,q(),(()=>{w=2*f,d[y-1]=0;for(let e=0;y-1>e;e++)d[e]=0;P=Je[D].Pe,R=Je[D].Ie,B=Je[D].De,I=Je[D].Ve,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Qe=()=>42!=n&&n!=Xe&&n!=Ye?Oe:(e.Oe=null,e.Ne=null,e.Ke=null,d=null,h=null,u=null,e.Fe=null,n==Xe?-3:0),e.Xe=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?Oe:(Je[D].Re!=Je[t].Re&&0!==e.qe&&(r=e.Ye(1)),D!=t&&(D=t,P=Je[D].Pe,R=Je[D].Ie,B=Je[D].De,I=Je[D].Ve),V=n,r)},e.Ze=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return Oe;if(3>i)return 0;for(i>f-Ze&&(i=f-Ze,o=r-i),u.set(t.subarray(o,o+i),0),C=i,k=i,p=255&u[0],p=(p<<g^255&u[1])&b,s=0;i-3>=s;s++)p=(p<<g^255&u[s+2])&b,h[s&l]=d[p],d[p]=s;return 0},e.Ye=(r,i)=>{let o,w,m,I,R;if(i>4||0>i)return Oe;if(!r.$e||!r.et&&0!==r.We||n==Ye&&4!=i)return r.Le=Qe[4],Oe;if(0===r.tt)return r.Le=Qe[7],-5;var B;if(t=r,I=c,c=i,42==n&&(w=8+(a-8<<4)<<8,m=(D-1&255)>>1,m>3&&(m=3),w|=m<<6,0!==C&&(w|=32),w+=31-w%31,n=Xe,J((B=w)>>8&255),J(255&B)),0!==e.pending){if(t.Te(),0===t.tt)return c=-1,0}else if(0===t.We&&I>=i&&4!=i)return t.Le=Qe[7],-5;if(n==Ye&&0!==t.We)return r.Le=Qe[7],-5;if(0!==t.We||0!==A||0!=i&&n!=Ye){switch(R=-1,Je[D].Re){case 0:R=(e=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=A){if(ie(),0===A&&0==e)return 0;if(0===A)break}if(C+=A,A=0,n=k+r,(0===C||C>=n)&&(A=C-n,C=n,se(!1),0===t.tt))return 0;if(C-k>=f-Ze&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i);break;case 1:R=(e=>{let n,r=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C),0===r||(C-r&65535)>f-Ze||2!=V&&(v=oe(r)),3>v)n=ee(0,255&u[C]),A--,C++;else if(n=ee(C-x,v-3),A-=v,v>P||3>A)C+=v,v=0,p=255&u[C],p=(p<<g^255&u[C+1])&b;else{v--;do{C++,p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C}while(0!=--v);C++}if(n&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i);break;case 2:R=(e=>{let n,r,s=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C),_=v,S=x,v=2,0!==s&&P>_&&f-Ze>=(C-s&65535)&&(2!=V&&(v=oe(s)),5>=v&&(1==V||3==v&&C-x>4096)&&(v=2)),3>_||v>_)if(0!==z){if(n=ee(0,255&u[C-1]),n&&se(!1),C++,A--,0===t.tt)return 0}else z=1,C++,A--;else{r=C+A-3,n=ee(C-1-S,_-3),A-=_-1,_-=2;do{++C>r||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C)}while(0!=--_);if(z=0,v=2,C++,n&&(se(!1),0===t.tt))return 0}}return 0!==z&&(n=ee(0,255&u[C-1]),z=0),se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i)}if(2!=R&&3!=R||(n=Ye),0==R||2==R)return 0===t.tt&&(c=-1),0;if(1==R){if(1==i)X(2,3),Y(256,Le._e),$(),9>1+H+10-F&&(X(2,3),Y(256,Le._e),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.Te(),0===t.tt)return c=-1,0}}return 4!=i?0:1}}function tt(){const e=this;e.nt=0,e.rt=0,e.We=0,e.qe=0,e.tt=0,e.Ge=0}function nt(e){const t=new tt,n=(o=e&&e.chunkSize?e.chunkSize:65536)+5*(r.floor(o/16383)+1);var o;const c=new i(n);let f=e?e.level:-1;void 0===f&&(f=-1),t.He(f),t.$e=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,o=t.Ye(0),0!=o)throw new s("deflating: "+t.Le);t.rt&&(t.rt==n?w.push(new i(c)):w.push(c.subarray(0,t.rt))),u+=t.rt,r&&t.nt>0&&t.nt!=a&&(r(t.nt),a=t.nt)}while(t.We>0||0===t.tt);return w.length>1?(f=new i(u),w.forEach((e=>{f.set(e,l),l+=e.length}))):f=w[0]?new i(w[0]):new i,f}},this.flush=()=>{let e,r,o=0,f=0;const a=[];do{if(t.rt=0,t.tt=n,e=t.Ye(4),1!=e&&0!=e)throw new s("deflating: "+t.Le);n-t.tt>0&&a.push(c.slice(0,t.rt)),f+=t.rt}while(t.We>0||0===t.tt);return t.Qe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}tt.prototype={He(e,t){const n=this;return n.Fe=new et,t||(t=15),n.Fe.He(n,e,t)},Ye(e){const t=this;return t.Fe?t.Fe.Ye(t,e):Oe},Qe(){const e=this;if(!e.Fe)return Oe;const t=e.Fe.Qe();return e.Fe=null,t},Xe(e,t){const n=this;return n.Fe?n.Fe.Xe(n,e,t):Oe},Ze(e,t){const n=this;return n.Fe?n.Fe.Ze(n,e,t):Oe},je(e,t,n){const r=this;let s=r.We;return s>n&&(s=n),0===s?0:(r.We-=s,e.set(r.et.subarray(r.nt,r.nt+s),t),r.nt+=s,r.qe+=s,s)},Te(){const e=this;let t=e.Fe.pending;t>e.tt&&(t=e.tt),0!==t&&(e.$e.set(e.Fe.Ke.subarray(e.Fe.Je,e.Fe.Je+t),e.rt),e.rt+=t,e.Fe.Je+=t,e.Ge+=t,e.tt-=t,e.Fe.pending-=t,0===e.Fe.pending&&(e.Fe.Je=0))}};const rt=-2,st=-3,it=-5,ot=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],ct=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],ft=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],at=[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],lt=[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,112,112],ut=[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],wt=[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];function ht(){let e,t,n,r,s,i;function o(e,t,o,c,f,a,l,u,w,h,d){let p,y,m,b,g,k,v,S,z,C,x,A,_,I,P;C=0,g=o;do{n[e[t+C]]++,C++,g--}while(0!==g);if(n[0]==o)return l[0]=-1,u[0]=0,0;for(S=u[0],k=1;15>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=15;0!==g&&0===n[g];g--);for(m=g,S>g&&(S=g),u[0]=S,I=1<<k;g>k;k++,I<<=1)if(0>(I-=n[k]))return st;if(0>(I-=n[g]))return st;for(n[g]+=I,i[1]=k=0,C=1,_=2;0!=--g;)i[_]=k+=n[C],_++,C++;g=0,C=0;do{0!==(k=e[t+C])&&(d[i[k]++]=g),C++}while(++g<o);for(o=i[m],i[0]=g=0,C=0,b=-1,A=-S,s[0]=0,x=0,P=0;m>=v;v++)for(p=n[v];0!=p--;){for(;v>A+S;){if(b++,A+=S,P=m-A,P=P>S?S:P,(y=1<<(k=v-A))>p+1&&(y-=p+1,_=v,P>k))for(;++k<P&&(y<<=1)>n[++_];)y-=n[_];if(P=1<<k,h[0]+P>1440)return st;s[b]=x=h[0],h[0]+=P,0!==b?(i[b]=g,r[0]=k,r[1]=S,k=g>>>A-S,r[2]=x-s[b-1]-k,w.set(r,3*(s[b-1]+k))):l[0]=x}for(r[1]=v-A,o>C?d[C]<c?(r[0]=256>d[C]?0:96,r[2]=d[C++]):(r[0]=a[d[C]-c]+16+64,r[2]=f[d[C++]-c]):r[0]=192,y=1<<v-A,k=g>>>A;P>k;k+=y)w.set(r,3*(x+k));for(k=1<<v-1;g&k;k>>>=1)g^=k;for(g^=k,z=(1<<A)-1;(g&z)!=i[b];)b--,A-=S,z=(1<<A)-1}return 0!==I&&1!=m?it:0}function c(o){let c;for(e||(e=[],t=[],n=new f(16),r=[],s=new f(15),i=new f(16)),t.length<o&&(t=[]),c=0;o>c;c++)t[c]=0;for(c=0;16>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,15),0),i.set(n.subarray(0,16),0)}this.st=(n,r,s,i,f)=>{let a;return c(19),e[0]=0,a=o(n,0,19,19,null,null,s,r,i,e,t),a==st?f.Le="oversubscribed dynamic bit lengths tree":a!=it&&0!==r[0]||(f.Le="incomplete dynamic bit lengths tree",a=st),a},this.it=(n,r,s,i,f,a,l,u,w)=>{let h;return c(288),e[0]=0,h=o(s,0,n,257,at,lt,a,i,u,e,t),0!=h||0===i[0]?(h==st?w.Le="oversubscribed literal/length tree":-4!=h&&(w.Le="incomplete literal/length tree",h=st),h):(c(288),h=o(s,n,r,0,ut,wt,l,f,u,e,t),0!=h||0===f[0]&&n>257?(h==st?w.Le="oversubscribed distance tree":h==it?(w.Le="incomplete distance tree",h=st):-4!=h&&(w.Le="empty distance tree with lengths",h=st),h):0)}}function dt(){const e=this;let t,n,r,s,i=0,o=0,c=0,f=0,a=0,l=0,u=0,w=0,h=0,d=0;function p(e,t,n,r,s,i,o,c){let f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z;d=c.nt,p=c.We,w=o.ot,h=o.ct,y=o.write,m=y<o.read?o.read-y-1:o.end-y,b=ot[e],g=ot[t];do{for(;20>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;if(f=w&b,a=n,l=r,z=3*(l+f),0!==(u=a[z]))for(;;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15,k=a[z+2]+(w&ot[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;for(f=w&g,a=s,l=i,z=3*(l+f),u=a[z];;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15;u>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;if(v=a[z+2]+(w&ot[u]),w>>=u,h-=u,m-=k,v>y){S=y-v;do{S+=o.end}while(0>S);if(u=o.end-S,k>u){if(k-=u,y-S>0&&u>y-S)do{o.lt[y++]=o.lt[S++]}while(0!=--u);else o.lt.set(o.lt.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.lt[y++]=o.lt[S++],o.lt[y++]=o.lt[S++],k-=2):(o.lt.set(o.lt.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.lt[y++]=o.lt[S++]}while(0!=--k);else o.lt.set(o.lt.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(64&u)return c.Le="invalid distance code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,st;f+=a[z+2],f+=w&ot[u],z=3*(l+f),u=a[z]}break}if(64&u)return 32&u?(k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,1):(c.Le="invalid literal/length code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,st);if(f+=a[z+2],f+=w&ot[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,0}e.init=(e,i,o,c,f,a)=>{t=0,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.ut=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.nt,v=y.We,x=e.ot,A=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S;;)switch(t){case 0:if(z>=258&&v>=10&&(e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,m=p(u,w,r,h,s,d,e,y),_=y.nt,v=y.We,x=e.ot,A=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S,0!=m)){t=1==m?7:9;break}c=u,n=r,o=h,t=1;case 1:for(b=c;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>>=n[g+1],A-=n[g+1],k=n[g],0===k){f=n[g+2],t=6;break}if(16&k){a=15&k,i=n[g+2],t=2;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}if(32&k){t=7;break}return t=9,y.Le="invalid literal/length code",m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 2:for(b=a;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}i+=x&ot[b],x>>=b,A-=b,c=w,n=s,o=d,t=3;case 3:for(b=c;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>=n[g+1],A-=n[g+1],k=n[g],16&k){a=15&k,l=n[g+2],t=4;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}return t=9,y.Le="invalid distance code",m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 4:for(b=a;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}l+=x&ot[b],x>>=b,A-=b,t=5;case 5:for(C=S-l;0>C;)C+=e.end;for(;0!==i;){if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);e.lt[S++]=e.lt[C++],z--,C==e.end&&(C=0),i--}t=0;break;case 6:if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,e.lt[S++]=f,z--,t=0;break;case 7:if(A>7&&(A-=8,v++,_--),e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);t=8;case 8:return m=1,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 9:return m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);default:return m=rt,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m)}},e.ht=()=>{}}ht.dt=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=ct,r[0]=ft,0);const pt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function yt(e,t){const n=this;let r,s=0,o=0,c=0,a=0;const l=[0],u=[0],w=new dt;let h=0,d=new f(4320);const p=new ht;n.ct=0,n.ot=0,n.lt=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==s&&w.ht(e),s=0,n.ct=0,n.ot=0,n.read=n.write=0},n.reset(e,null),n.wt=(e,t)=>{let r,s,i;return s=e.rt,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.tt&&(r=e.tt),0!==r&&t==it&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r,i==n.end&&(i=0,n.write==n.end&&(n.write=0),r=n.write-i,r>e.tt&&(r=e.tt),0!==r&&t==it&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r),e.rt=s,n.read=i,t},n.ut=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.nt,b=e.We,f=n.ot,y=n.ct,g=n.write,k=g<n.read?n.read-g-1:n.end-g;;){let S,z,C,x,A,_,I,P;switch(s){case 0:for(;3>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}switch(i=7&f,h=1&i,i>>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,s=1;break;case 1:S=[],z=[],C=[[]],x=[[]],ht.dt(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=6;break;case 2:f>>>=3,y-=3,s=3;break;case 3:return f>>>=3,y-=3,s=9,e.Le="invalid block type",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}break;case 1:for(;32>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if((~f>>>16&65535)!=(65535&f))return s=9,e.Le="invalid stored block lengths",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);o=65535&f,f=y=0,s=0!==o?2:0!==h?7:0;break;case 2:if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(0===k&&(g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k&&(n.write=g,t=n.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k)))return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(t=0,i=o,i>b&&(i=b),i>k&&(i=k),n.lt.set(e.je(m,i),g),m+=i,b-=i,g+=i,k-=i,0!=(o-=i))break;s=0!==h?7:0;break;case 3:for(;14>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=9,e.Le="too many length or distance symbols",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(i=258+(31&i)+(i>>5&31),!r||r.length<i)r=[];else for(v=0;i>v;v++)r[v]=0;f>>>=14,y-=14,a=0,s=4;case 4:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}r[pt[a++]]=7&f,f>>>=3,y-=3}for(;19>a;)r[pt[a++]]=0;if(l[0]=7,i=p.st(r,l,u,d,e),0!=i)return(t=i)==st&&(r=null,s=9),n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);a=0,s=5;case 5:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(i=d[3*(u[0]+(f&ot[i]))+1],w=d[3*(u[0]+(f&ot[i]))+2],16>w)f>>>=i,y-=i,r[a++]=w;else{for(v=18==w?7:w-14,o=18==w?11:3;i+v>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(f>>>=i,y-=i,o+=f&ot[v],f>>>=v,y-=v,v=a,i=c,v+o>258+(31&i)+(i>>5&31)||16==w&&1>v)return r=null,s=9,e.Le="invalid bit length repeat",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w=16==w?r[v-1]:0;do{r[v++]=w}while(0!=--o);a=v}}if(u[0]=-1,A=[],_=[],I=[],P=[],A[0]=9,_[0]=6,i=c,i=p.it(257+(31&i),1+(i>>5&31),r,A,_,I,P,d,e),0!=i)return i==st&&(r=null,s=9),t=i,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=6;case 6:if(n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,1!=(t=w.ut(n,e,t)))return n.wt(e,t);if(t=0,w.ht(e),m=e.nt,b=e.We,f=n.ot,y=n.ct,g=n.write,k=g<n.read?n.read-g-1:n.end-g,0===h){s=0;break}s=7;case 7:if(n.write=g,t=n.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);s=8;case 8:return t=1,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);case 9:return t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);default:return t=rt,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}}},n.ht=e=>{n.reset(e,null),n.lt=null,d=null},n.yt=(e,t,r)=>{n.lt.set(e.subarray(t,t+r),0),n.read=n.write=r},n.bt=()=>1==s?1:0}const mt=13,bt=[0,0,255,255];function gt(){const e=this;function t(e){return e&&e.gt?(e.qe=e.Ge=0,e.Le=null,e.gt.mode=7,e.gt.kt.reset(e,null),0):rt}e.mode=0,e.method=0,e.vt=[0],e.St=0,e.marker=0,e.zt=0,e.Ct=t=>(e.kt&&e.kt.ht(t),e.kt=null,0),e.xt=(n,r)=>(n.Le=null,e.kt=null,8>r||r>15?(e.Ct(n),rt):(e.zt=r,n.gt.kt=new yt(n,1<<r),t(n),0)),e.At=(e,t)=>{let n,r;if(!e||!e.gt||!e.et)return rt;const s=e.gt;for(t=4==t?it:0,n=it;;)switch(s.mode){case 0:if(0===e.We)return n;if(n=t,e.We--,e.qe++,8!=(15&(s.method=e.ft(e.nt++)))){s.mode=mt,e.Le="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.zt){s.mode=mt,e.Le="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.We)return n;if(n=t,e.We--,e.qe++,r=255&e.ft(e.nt++),((s.method<<8)+r)%31!=0){s.mode=mt,e.Le="incorrect header check",s.marker=5;break}if(!(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St=(255&e.ft(e.nt++))<<24&4278190080,s.mode=3;case 3:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<16&16711680,s.mode=4;case 4:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<8&65280,s.mode=5;case 5:return 0===e.We?n:(n=t,e.We--,e.qe++,s.St+=255&e.ft(e.nt++),s.mode=6,2);case 6:return s.mode=mt,e.Le="need dictionary",s.marker=0,rt;case 7:if(n=s.kt.ut(e,n),n==st){s.mode=mt,s.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,s.kt.reset(e,s.vt),s.mode=12;case 12:return e.We=0,1;case mt:return st;default:return rt}},e._t=(e,t,n)=>{let r=0,s=n;if(!e||!e.gt||6!=e.gt.mode)return rt;const i=e.gt;return s<1<<i.zt||(s=(1<<i.zt)-1,r=n-s),i.kt.yt(t,r,s),i.mode=7,0},e.It=e=>{let n,r,s,i,o;if(!e||!e.gt)return rt;const c=e.gt;if(c.mode!=mt&&(c.mode=mt,c.marker=0),0===(n=e.We))return it;for(r=e.nt,s=c.marker;0!==n&&4>s;)e.ft(r)==bt[s]?s++:s=0!==e.ft(r)?0:4-s,r++,n--;return e.qe+=r-e.nt,e.nt=r,e.We=n,c.marker=s,4!=s?st:(i=e.qe,o=e.Ge,t(e),e.qe=i,e.Ge=o,c.mode=7,0)},e.Pt=e=>e&&e.gt&&e.gt.kt?e.gt.kt.bt():rt}function kt(){}function vt(e){const t=new kt,n=e&&e.chunkSize?r.floor(2*e.chunkSize):131072,o=new i(n);let c=!1;t.xt(),t.$e=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,0!==t.We||c||(t.nt=0,c=!0),a=t.At(0),c&&a===it){if(0!==t.We)throw new s("inflating: bad input")}else if(0!==a&&1!==a)throw new s("inflating: "+t.Le);if((c||1===a)&&t.We===e.length)throw new s("inflating: bad input");t.rt&&(t.rt===n?f.push(new i(o)):f.push(o.subarray(0,t.rt))),h+=t.rt,r&&t.nt>0&&t.nt!=u&&(r(t.nt),u=t.nt)}while(t.We>0||0===t.tt);return f.length>1?(l=new i(h),f.forEach((e=>{l.set(e,w),w+=e.length}))):l=f[0]?new i(f[0]):new i,l}},this.flush=()=>{t.Ct()}}kt.prototype={xt(e){const t=this;return t.gt=new gt,e||(e=15),t.gt.xt(t,e)},At(e){const t=this;return t.gt?t.gt.At(t,e):rt},Ct(){const e=this;if(!e.gt)return rt;const t=e.gt.Ct(e);return e.gt=null,t},It(){const e=this;return e.gt?e.gt.It(e):rt},_t(e,t){const n=this;return n.gt?n.gt._t(n,e,t):rt},ft(e){return this.et[e]},je(e,t){return this.et.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=nt,self.Inflate=vt};
90
+ `,i=()=>t.useDataURI?"data:text/javascript,"+encodeURIComponent(r):URL.createObjectURL(new Blob([r],{type:"text/javascript"}));e({workerScripts:{inflate:[i],deflate:[i]}})}const Mb="Writer iterator completed too soon",Wb="Content-Type",Hb=64*1024,ed="writable";class Vo{constructor(){this.size=0}init(){this.initialized=!0}}class td extends Vo{get readable(){const t=this,{chunkSize:r=Hb}=t,i=new ReadableStream({start(){this.chunkOffset=0},async pull(a){const{offset:s=0,size:n,diskNumberStart:o}=i,{chunkOffset:l}=this;a.enqueue(await et(t,s+l,Math.min(r,n-l),o)),l+r>n?a.close():this.chunkOffset+=r}});return i}}class yo extends td{constructor(t){super(),Object.assign(this,{blob:t,size:t.size})}async readUint8Array(t,r){const i=this,a=t+r;let n=await(t||a<i.size?i.blob.slice(t,a):i.blob).arrayBuffer();return n.byteLength>r&&(n=n.slice(t,a)),new Uint8Array(n)}}class zb extends Vo{constructor(t){super();const r=this,i=new TransformStream,a=[];t&&a.push([Wb,t]),Object.defineProperty(r,ed,{get(){return i.writable}}),r.blob=new Response(i.readable,{headers:a}).blob()}getData(){return this.blob}}class Vb extends td{constructor(t){super(),this.readers=t}async init(){const t=this,{readers:r}=t;t.lastDiskNumber=0,t.lastDiskOffset=0,await Promise.all(r.map(async(i,a)=>{await i.init(),a!=r.length-1&&(t.lastDiskOffset+=i.size),t.size+=i.size})),super.init()}async readUint8Array(t,r,i=0){const a=this,{readers:s}=this;let n,o=i;o==-1&&(o=s.length-1);let l=t;for(;l>=s[o].size;)l-=s[o].size,o++;const p=s[o],c=p.size;if(l+r<=c)n=await et(p,l,r);else{const d=c-l;n=new Uint8Array(r),n.set(await et(p,l,d)),n.set(await a.readUint8Array(t+d,r-d,i),d)}return a.lastDiskNumber=Math.max(o,a.lastDiskNumber),n}}class $p extends Vo{constructor(t,r=4294967295){super();const i=this;Object.assign(i,{diskNumber:0,diskOffset:0,size:0,maxSize:r,availableSize:r});let a,s,n;const o=new WritableStream({async write(c){const{availableSize:d}=i;if(n)c.length>=d?(await l(c.slice(0,d)),await p(),i.diskOffset+=a.size,i.diskNumber++,n=null,await this.write(c.slice(d))):await l(c);else{const{value:m,done:y}=await t.next();if(y&&!m)throw new Error(Mb);a=m,a.size=0,a.maxSize&&(i.maxSize=a.maxSize),i.availableSize=i.maxSize,await ui(a),s=m.writable,n=s.getWriter(),await this.write(c)}},async close(){await n.ready,await p()}});Object.defineProperty(i,ed,{get(){return o}});async function l(c){const d=c.length;d&&(await n.ready,await n.write(c),a.size+=d,i.size+=d,i.availableSize-=d)}async function p(){s.size=a.size,await n.close()}}}async function ui(e,t){if(e.init&&!e.initialized)await e.init(t);else return Promise.resolve()}function Zb(e){return Array.isArray(e)&&(e=new Vb(e)),e instanceof ReadableStream&&(e={readable:e}),e}function Gb(e){e.writable===ft&&typeof e.next==ms&&(e=new $p(e)),e instanceof WritableStream&&(e={writable:e});const{writable:t}=e;return t.size===ft&&(t.size=0),e instanceof $p||Object.assign(e,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),e}function et(e,t,r,i){return e.readUint8Array(t,r,i)}const rd="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),Yb=rd.length==256;function Kb(e){if(Yb){let t="";for(let r=0;r<e.length;r++)t+=rd[e[r]];return t}else return new TextDecoder().decode(e)}function Zs(e,t){return t&&t.trim().toLowerCase()=="cp437"?Kb(e):new TextDecoder(t).decode(e)}const nd="filename",sd="rawFilename",id="comment",ad="rawComment",od="uncompressedSize",ld="compressedSize",fd="offset",go="diskNumberStart",wo="lastModDate",bo="rawLastModDate",pd="lastAccessDate",Xb="rawLastAccessDate",cd="creationDate",Jb="rawCreationDate",Qb="internalFileAttribute",e_="internalFileAttributes",t_="externalFileAttribute",r_="externalFileAttributes",n_="msDosCompatible",s_="zip64",i_="encrypted",a_="version",o_="versionMadeBy",l_="zipCrypto",f_="directory",p_="executable",c_=[nd,sd,ld,od,wo,bo,id,ad,pd,cd,fd,go,go,Qb,e_,t_,r_,n_,s_,i_,a_,o_,l_,f_,p_,"bitFlag","signature","filenameUTF8","commentUTF8","compressionMethod","extraField","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp"];class Rp{constructor(t){c_.forEach(r=>this[r]=t[r])}}const za="File format is not recognized",u_="End of central directory not found",d_="End of Zip64 central directory locator not found",h_="Central directory header not found",m_="Local file header not found",y_="Zip64 extra field not found",g_="File contains encrypted entry",w_="Encryption method not supported",Fp="Compression method not supported",Lp="Split zip file",Ip="utf-8",Cp="cp437",b_=[[od,Lr],[ld,Lr],[fd,Lr],[go,yr]],__={[yr]:{getValue:Be,bytes:4},[Lr]:{getValue:Gs,bytes:8}};class jp{constructor(t,r={}){Object.assign(this,{reader:Zb(t),options:r,config:eb()})}async*getEntriesGenerator(t={}){const r=this;let{reader:i}=r;const{config:a}=r;if(await ui(i),(i.size===ft||!i.readUint8Array)&&(i=new yo(await new Response(i.readable).blob()),await ui(i)),i.size<Qr)throw new Error(za);i.chunkSize=tb(a);const s=await S_(i,q1,i.size,Qr,yr*16);if(!s){const P=await et(i,0,4),S=Ye(P);throw Be(S)==B1?new Error(Lp):new Error(u_)}const n=Ye(s);let o=Be(n,12),l=Be(n,16);const p=s.offset,c=Ge(n,20),d=p+Qr+c;let m=Ge(n,4);const y=i.lastDiskNumber||0;let T=Ge(n,6),g=Ge(n,8),w=0,_=0;if(l==Lr||o==Lr||g==yr||T==yr){const P=await et(i,s.offset-Ua,Ua),S=Ye(P);if(Be(S,0)==M1){l=Gs(S,8);let j=await et(i,l,Ba,-1),R=Ye(j);const D=s.offset-Ua-Ba;if(Be(R,0)!=fp&&l!=D){const V=l;l=D,w=l-V,j=await et(i,l,Ba,-1),R=Ye(j)}if(Be(R,0)!=fp)throw new Error(d_);m==yr&&(m=Be(R,16)),T==yr&&(T=Be(R,20)),g==yr&&(g=Gs(R,32)),o==Lr&&(o=Gs(R,40)),l-=o}}if(l>=i.size&&(w=i.size-l-o-Qr,l=i.size-o-Qr),y!=m)throw new Error(Lp);if(l<0)throw new Error(za);let O=0,E=await et(i,l,o,T),I=Ye(E);if(o){const P=s.offset-o;if(Be(I,O)!=lp&&l!=P){const S=l;l=P,w+=l-S,E=await et(i,l,o,T),I=Ye(E)}}const $=s.offset-l-(i.lastDiskOffset||0);if(o!=$&&$>=0&&(o=$,E=await et(i,l,o,T),I=Ye(E)),l<0||l>=i.size)throw new Error(za);const L=it(r,t,"filenameEncoding"),C=it(r,t,"commentEncoding");for(let P=0;P<g;P++){const S=new v_(i,a,r.options);if(Be(I,O)!=lp)throw new Error(h_);ud(S,I,O+6);const j=!!S.bitFlag.languageEncodingFlag,R=O+46,D=R+S.filenameLength,V=D+S.extraFieldLength,B=Ge(I,O+4),Y=B>>8==0,G=B>>8==3,te=E.subarray(R,D),z=Ge(I,O+32),X=V+z,ee=E.subarray(V,X),Z=j,fe=j,oe=Be(I,O+38),ie=Y&&(un(I,O+38)&dp)==dp||G&&(oe>>16&hp)==hp||te.length&&te[te.length-1]==yp.charCodeAt(0),Ae=G&&(oe>>16&mp)==mp,Oe=Be(I,O+42)+w;Object.assign(S,{versionMadeBy:B,msDosCompatible:Y,compressedSize:0,uncompressedSize:0,commentLength:z,directory:ie,offset:Oe,diskNumberStart:Ge(I,O+34),internalFileAttributes:Ge(I,O+36),externalFileAttributes:oe,rawFilename:te,filenameUTF8:Z,commentUTF8:fe,rawExtraField:E.subarray(D,V),executable:Ae}),S.internalFileAttribute=S.internalFileAttributes,S.externalFileAttribute=S.externalFileAttributes;const Xe=it(r,t,"decodeText")||Zs,tt=Z?Ip:L||Cp,Et=fe?Ip:C||Cp;let Ie=Xe(te,tt);Ie===ft&&(Ie=Zs(te,tt));let Ce=Xe(ee,Et);Ce===ft&&(Ce=Zs(ee,Et)),Object.assign(S,{rawComment:ee,filename:Ie,comment:Ce,directory:ie||Ie.endsWith(yp)}),_=Math.max(Oe,_),dd(S,S,I,O+6),S.zipCrypto=S.encrypted&&!S.extraFieldAES;const pt=new Rp(S);pt.getData=(x,u)=>S.getData(x,pt,u),O=X;const{onprogress:Re}=t;if(Re)try{await Re(P+1,g,new Rp(S))}catch{}yield pt}const b=it(r,t,"extractPrependedData"),F=it(r,t,"extractAppendedData");return b&&(r.prependedData=_>0?await et(i,0,_):new Uint8Array),r.comment=c?await et(i,p+Qr,c):new Uint8Array,F&&(r.appendedData=d<i.size?await et(i,d,i.size-d):new Uint8Array),!0}async getEntries(t={}){const r=[];for await(const i of this.getEntriesGenerator(t))r.push(i);return r}async close(){}}class v_{constructor(t,r,i){Object.assign(this,{reader:t,config:r,options:i})}async getData(t,r,i={}){const a=this,{reader:s,offset:n,diskNumberStart:o,extraFieldAES:l,compressionMethod:p,config:c,bitFlag:d,signature:m,rawLastModDate:y,uncompressedSize:T,compressedSize:g}=a,w=r.localDirectory={},_=await et(s,n,30,o),O=Ye(_);let E=it(a,i,"password"),I=it(a,i,"rawPassword");const $=it(a,i,"passThrough");if(E=E&&E.length&&E,I=I&&I.length&&I,l&&l.originalCompressionMethod!=D1)throw new Error(Fp);if(p!=N1&&p!=j1&&!$)throw new Error(Fp);if(Be(O,0)!=U1)throw new Error(m_);ud(w,O,4),w.rawExtraField=w.extraFieldLength?await et(s,n+30+w.filenameLength,w.extraFieldLength,o):new Uint8Array,dd(a,w,O,4,!0),Object.assign(r,{lastAccessDate:w.lastAccessDate,creationDate:w.creationDate});const L=a.encrypted&&w.encrypted&&!$,C=L&&!l;if($||(r.zipCrypto=C),L){if(!C&&l.strength===ft)throw new Error(w_);if(!E&&!I)throw new Error(g_)}const b=n+30+w.filenameLength+w.extraFieldLength,F=g,P=s.readable;Object.assign(P,{diskNumberStart:o,offset:b,size:F});const S=it(a,i,"signal"),j=it(a,i,"checkPasswordOnly");j&&(t=new WritableStream),t=Gb(t),await ui(t,$?g:T);const{writable:R}=t,{onstart:D,onprogress:V,onend:B}=i,Y={options:{codecType:Xu,password:E,rawPassword:I,zipCrypto:C,encryptionStrength:l&&l.strength,signed:it(a,i,"checkSignature")&&!$,passwordVerification:C&&(d.dataDescriptor?y>>>8&255:m>>>24&255),signature:m,compressed:p!=0&&!$,encrypted:a.encrypted&&!$,useWebWorkers:it(a,i,"useWebWorkers"),useCompressionStream:it(a,i,"useCompressionStream"),transferStreams:it(a,i,"transferStreams"),checkPasswordOnly:j},config:c,streamOptions:{signal:S,size:F,onstart:D,onprogress:V,onend:B}};let G=0;try{({outputSize:G}=await Ub({readable:P,writable:R},Y))}catch(te){if(!j||te.message!=Wo)throw te}finally{const te=it(a,i,"preventClose");R.size+=G,!te&&!R.locked&&await R.getWriter().close()}return j?ft:t.getData?t.getData():R}}function ud(e,t,r){const i=e.rawBitFlag=Ge(t,r+2),a=(i&pp)==pp,s=Be(t,r+6);Object.assign(e,{encrypted:a,version:Ge(t,r),bitFlag:{level:(i&X1)>>1,dataDescriptor:(i&cp)==cp,languageEncodingFlag:(i&up)==up},rawLastModDate:s,lastModDate:T_(s),filenameLength:Ge(t,r+22),extraFieldLength:Ge(t,r+24)})}function dd(e,t,r,i,a){const{rawExtraField:s}=t,n=t.extraField=new Map,o=Ye(new Uint8Array(s));let l=0;try{for(;l<s.length;){const _=Ge(o,l),O=Ge(o,l+2);n.set(_,{type:_,data:s.slice(l+4,l+4+O)}),l+=4+O}}catch{}const p=Ge(r,i+4);Object.assign(t,{signature:Be(r,i+10),uncompressedSize:Be(r,i+18),compressedSize:Be(r,i+14)});const c=n.get(W1);c&&(x_(c,t),t.extraFieldZip64=c);const d=n.get(G1);d&&(Np(d,nd,sd,t,e),t.extraFieldUnicodePath=d);const m=n.get(Y1);m&&(Np(m,id,ad,t,e),t.extraFieldUnicodeComment=m);const y=n.get(H1);y?(k_(y,t,p),t.extraFieldAES=y):t.compressionMethod=p;const T=n.get(z1);T&&(P_(T,t),t.extraFieldNTFS=T);const g=n.get(Z1);g&&(E_(g,t,a),t.extraFieldExtendedTimestamp=g);const w=n.get(K1);w&&(t.extraFieldUSDZ=w)}function x_(e,t){t.zip64=!0;const r=Ye(e.data),i=b_.filter(([a,s])=>t[a]==s);for(let a=0,s=0;a<i.length;a++){const[n,o]=i[a];if(t[n]==o){const l=__[o];t[n]=e[n]=l.getValue(r,s),s+=l.bytes}else if(e[n])throw new Error(y_)}}function Np(e,t,r,i,a){const s=Ye(e.data),n=new pi;n.append(a[r]);const o=Ye(new Uint8Array(4));o.setUint32(0,n.get(),!0);const l=Be(s,1);Object.assign(e,{version:un(s,0),[t]:Zs(e.data.subarray(5)),valid:!a.bitFlag.languageEncodingFlag&&l==Be(o,0)}),e.valid&&(i[t]=e[t],i[t+"UTF8"]=!0)}function k_(e,t,r){const i=Ye(e.data),a=un(i,4);Object.assign(e,{vendorVersion:un(i,0),vendorId:un(i,2),strength:a,originalCompressionMethod:r,compressionMethod:Ge(i,5)}),t.compressionMethod=e.compressionMethod}function P_(e,t){const r=Ye(e.data);let i=4,a;try{for(;i<e.data.length&&!a;){const s=Ge(r,i),n=Ge(r,i+2);s==V1&&(a=e.data.slice(i+4,i+4+n)),i+=4+n}}catch{}try{if(a&&a.length==24){const s=Ye(a),n=s.getBigUint64(0,!0),o=s.getBigUint64(8,!0),l=s.getBigUint64(16,!0);Object.assign(e,{rawLastModDate:n,rawLastAccessDate:o,rawCreationDate:l});const p=Va(n),c=Va(o),d=Va(l),m={lastModDate:p,lastAccessDate:c,creationDate:d};Object.assign(e,m),Object.assign(t,m)}}catch{}}function E_(e,t,r){const i=Ye(e.data),a=un(i,0),s=[],n=[];r?((a&1)==1&&(s.push(wo),n.push(bo)),(a&2)==2&&(s.push(pd),n.push(Xb)),(a&4)==4&&(s.push(cd),n.push(Jb))):e.data.length>=5&&(s.push(wo),n.push(bo));let o=1;s.forEach((l,p)=>{if(e.data.length>=o+4){const c=Be(i,o);t[l]=e[l]=new Date(c*1e3);const d=n[p];e[d]=c}o+=4})}async function S_(e,t,r,i,a){const s=new Uint8Array(4),n=Ye(s);O_(n,0,t);const o=i+a;return await l(i)||await l(Math.min(o,r));async function l(p){const c=r-p,d=await et(e,c,p);for(let m=d.length-i;m>=0;m--)if(d[m]==s[0]&&d[m+1]==s[1]&&d[m+2]==s[2]&&d[m+3]==s[3])return{offset:c+m,buffer:d.slice(m,m+i).buffer}}}function it(e,t,r){return t[r]===ft?e.options[r]:t[r]}function T_(e){const t=(e&4294901760)>>16,r=e&65535;try{return new Date(1980+((t&65024)>>9),((t&480)>>5)-1,t&31,(r&63488)>>11,(r&2016)>>5,(r&31)*2,0)}catch{}}function Va(e){return new Date(Number(e/BigInt(1e4)-BigInt(116444736e5)))}function un(e,t){return e.getUint8(t)}function Ge(e,t){return e.getUint16(t,!0)}function Be(e,t){return e.getUint32(t,!0)}function Gs(e,t){return Number(e.getBigUint64(t,!0))}function O_(e,t,r){e.setUint32(t,r,!0)}function Ye(e){return new DataView(e.buffer)}let hd;try{hd=typeof document>"u"?require("url").pathToFileURL(__filename).href:sr&&sr.tagName.toUpperCase()==="SCRIPT"&&sr.src||new URL("index.cjs",document.baseURI).href}catch{}Mo({baseURL:hd});qb(Mo);Mo({Deflate:h1,Inflate:C1});class A_{constructor(t){this.fileTree=t}async read(t){let r=this.getEntryAtPath(t);if(typeof r=="string")r=new TextEncoder().encode(r);else if(!(r instanceof Uint8Array))throw new Error(`Unsupported content type: ${typeof r}`);const i=new ReadableStream({start(a){a.enqueue(r),a.close()}});return new Cr(i,t,{filesize:r.byteLength})}getEntryAtPath(t){let r=t.replace(/^\//,""),i=this.fileTree;for(;r;){if(i[r])return i[r];const a=r.split("/"),s=a.shift();if(!s||!i[s])break;i=i[s],r=a.join("/")}throw new Error(`File not found at ${t}`)}}class di{constructor(t){this.entries=new Map,this.zipReader=t}static fromStream(t){const r=new jp(new yo(new Cr(t,"archive.zip")));return new di(r)}static fromArrayBuffer(t){const r=new jp(new yo(new Blob([t])));return new di(r)}async read(t){const r=await this.getEntry(t),i=await r.getData(new zb);return new Cr(i.stream(),t,{filesize:r.uncompressedSize})}async getEntry(t){const r=await this.getEntries(),i=Mr(t).replace(/^\//,""),a=r.get(i);if(!a)throw new Error(`File ${t} not found in the zip.`);return a}async getEntries(){if(this.entries.size===0){const t=await this.zipReader.getEntries();for(const r of t)this.entries.set(r.filename,r)}return this.entries}async getAllFilePaths(){const t=await this.getEntries();return Array.from(t.keys())}}class $_{constructor(t,r){this.chroot=t,this.backend=r}async read(t){const r=Se(this.chroot,t);return this.backend.read(r)}}class R_{constructor(t){if(!t.length)throw new Error("OverlayFilesystem requires at least one filesystem");this.filesystems=t}async read(t){const r=[];for(const a of this.filesystems)try{return await a.read(t)}catch(s){r.push(s instanceof Error?s:new Error(String(s)))}const i=r.map(a=>a.message).join("; ");throw new Error(`Failed to read ${t} from any filesystem: ${i}`,{cause:r})}}class F_{constructor(t){if(this.baseUrl="",this.options=t,this.isDataUrl=t.baseUrl.startsWith("data:"),this.isDataUrl)return;const r=new URL("./",t.baseUrl);if(r.protocol!=="http:"&&r.protocol!=="https:")throw new Error("Unsupported protocol: "+r.protocol+". Only HTTP and HTTPS are supported.");this.baseUrl=r.origin+r.pathname}async read(t){if(this.isDataUrl)throw new Error("FetchFilesystem cannot fetch files from data URLs");t=Mr(t);const r=t.replace(/^\//,""),i=new URL(r,this.baseUrl).toString();if(!i.startsWith(this.baseUrl))throw new Error(`Refused to read a file outside of the base URL: ${i}`);const a=this.options.corsProxy?`${this.options.corsProxy}${encodeURIComponent(i)}`:i,s=await fetch(a);if(!s.ok)throw new Error(`Failed to fetch file at ${t}: ${s.statusText}`);const n=s.headers.get("content-length")?parseInt(s.headers.get("content-length"),10):void 0;return new Cr(s.body,t,{filesize:n})}}function Ai(e){const t=e.split(".").shift().replace(/-/g," ");return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}async function Dp(e,t){let r;return["GET","HEAD"].includes(e.method)?r=void 0:"body"in t?r=t.body:!e.bodyUsed&&e.body?r=e.body:r=await e.arrayBuffer(),new Request(t.url||e.url,{body:r,method:e.method,headers:e.headers,referrer:e.referrer,referrerPolicy:e.referrerPolicy,mode:e.mode==="navigate"?"same-origin":e.mode,credentials:e.credentials,cache:e.cache,redirect:e.redirect,integrity:e.integrity,...r instanceof ReadableStream&&{duplex:"half"},...t})}let An;async function L_(){if(An!==void 0)return An;try{const e=new ReadableStream({start(t){t.close()}});await fetch("data:,",{method:"POST",body:e,duplex:"half"}),An=!0}catch{An=!1}return An}class I_ extends Error{constructor(t,r,i){super(`Could not fetch ${t} – your network appears to be blocking this request (HTTP ${r}). This often happens on school, university, or corporate networks. Try switching to a different network or using a VPN.`),this.name="FirewallInterferenceError",this.url=t,this.status=r,this.statusText=i}}const C_="X-Playground-Cors-Proxy";async function j_(e,t,r,i){var p;let a=typeof e=="string"?new Request(e,t):e;const s=i?new URL(i):null;let n=s?new URL(a.url,s):new URL(a.url);if(n.hostname==="localhost"||n.hostname==="127.0.0.1"||n.hostname==="[::1]"||n.hostname==="::1")return await fetch(a);if(n.protocol==="http:"){n.protocol="https:";const c=n.toString();a=await Dp(a,{url:c}),n=new URL(c)}if(!r)return await fetch(a);if(s&&n.protocol===s.protocol&&n.hostname===s.hostname&&n.port===s.port&&n.pathname.startsWith(s.pathname))return await fetch(a);const l=a.clone();try{return await fetch(a)}catch{const c=new Headers(a.headers),d=((p=c.get("x-cors-proxy-allowed-request-headers"))==null?void 0:p.split(","))||[],m=d.includes("authorization")||d.includes("cookie"),y=c.get("content-type");y&&y.toLowerCase().includes("multipart/form-data")&&(c.set("x-cors-proxy-content-type",y),c.set("content-type","application/octet-stream"));let T=null;const g=a.method.toUpperCase();g!=="GET"&&g!=="HEAD"&&(await L_()?T=l.body:T=await l.arrayBuffer()),T instanceof ReadableStream&&new URL(r,typeof document>"u"?require("url").pathToFileURL(__filename).href:sr&&sr.tagName.toUpperCase()==="SCRIPT"&&sr.src||new URL("index.cjs",document.baseURI).href).protocol==="http:"&&(T=await new Response(T).arrayBuffer());const w=await Dp(a,{url:`${r}${a.url}`,headers:c,body:T,...m&&{credentials:"include"}}),_=await fetch(w);if(!_.headers.has(C_))throw new I_(a.url,_.status,_.statusText);return _}}const N_=`Blueprint resource of type "bundled" requires a filesystem.
91
91
 
92
92
  This Blueprint refers to files that should be bundled with it (like images, plugins, or themes), but the filesystem needed to access these files is not available. This usually happens when:
93
93
 
@@ -1372,21 +1372,21 @@ function join_paths()
1372
1372
  )
1373
1373
  );`})).json;for(const{slug:m,version:y}of p)s.push({url:`https://downloads.wordpress.org/translation/theme/${m}/${y}/${t}.zip`,type:"theme"});await e.isDir(`${i}/wp-content/languages/plugins`)||await e.mkdir(`${i}/wp-content/languages/plugins`),await e.isDir(`${i}/wp-content/languages/themes`)||await e.mkdir(`${i}/wp-content/languages/themes`);const c=new ns({concurrency:5}),d=s.map(({url:m,type:y})=>c.run(async()=>{try{const T=await fetch(m);if(!T.ok)throw new Error(`Failed to download translations for ${y}: ${T.statusText}`);let g=`${i}/wp-content/languages`;y==="plugin"?g+="/plugins":y==="theme"&&(g+="/themes"),await xd(e,new File([await T.arrayBuffer()],`${t}-${y}.zip`),g)}catch(T){if(y==="core")throw new Error(`Failed to download translations for WordPress. Please check if the language code ${t} is correct. You can find all available languages and translations on https://translate.wordpress.org/.`);Te.warn(`Error downloading translations for ${y}: ${T}`)}}));await Promise.all(d)},gv=Object.freeze(Object.defineProperty({__proto__:null,activatePlugin:Go,activateTheme:Yo,cp:Td,defineSiteUrl:Qo,defineWpConfigConsts:$i,enableMultisite:Sd,exportWXR:Id,importThemeStarterContent:el,importWordPressFiles:Ld,importWxr:Fd,installPlugin:jd,installTheme:Nd,login:Dd,mkdir:Ad,mv:Od,request:vd,resetData:Ud,rm:hi,rmdir:$d,runPHP:wd,runPHPWithOptions:bd,runSql:_d,runWpInstallationWizard:Bd,setSiteLanguage:Md,setSiteOptions:Ko,unzip:Fi,updateUserMeta:Pd,wpCLI:Jo,writeFile:Ri,writeFiles:Rd,zipWpContent:qd},Symbol.toStringTag,{value:"Module"})),wv={properties:{landingPage:{type:"string",description:"The URL to navigate to after the blueprint has been run."},description:{type:"string",description:"Optional description. It doesn't do anything but is exposed as a courtesy to developers who may want to document which blueprint file does what.",deprecated:"Use meta.description instead."},meta:{type:"object",properties:{title:{type:"string",description:"A clear and concise name for your Blueprint."},description:{type:"string",description:"A brief explanation of what your Blueprint offers."},author:{type:"string",description:"A GitHub username of the author of this Blueprint."},categories:{type:"array",items:{type:"string"},description:"Relevant categories to help users find your Blueprint in the future Blueprints section on WordPress.org."}},required:["title","author"],additionalProperties:!1,description:"Optional metadata. Used by the Blueprints gallery at https://github.com/WordPress/blueprints"},preferredVersions:{type:"object",properties:{php:{anyOf:[{$ref:"#/definitions/BlueprintPHPVersion"},{type:"string",const:"latest"}],description:`The preferred PHP version to use. If not specified, the latest supported version will be used.
1374
1374
 
1375
- Note: PHP 7.2 and 7.3 are deprecated and will be automatically upgraded to 7.4.`},wp:{anyOf:[{type:"string"},{type:"string",const:"latest"},{type:"boolean",const:!1}],description:"The preferred WordPress version to use, or `false` to boot a PHP-only Playground without downloading or installing WordPress. If not specified, the latest supported version will be used.\n\nWhen set to `false`, WordPress-specific Blueprint fields (`plugins`, `siteOptions`, `login`, and WordPress-only steps) are rejected at compile time."}},required:["php","wp"],additionalProperties:!1,description:"The preferred PHP and WordPress versions to use."},features:{type:"object",properties:{intl:{type:"boolean",description:"Should boot with support for Intl dynamic extension"},networking:{type:"boolean",description:"Should boot with support for network request via wp_safe_remote_get?"}},additionalProperties:!1},extraLibraries:{type:"array",items:{$ref:"#/definitions/ExtraLibrary"},description:"Extra libraries to preload into the Playground instance."},constants:{$ref:"#/definitions/PHPConstants",description:"PHP Constants to define on every request"},plugins:{type:"array",items:{anyOf:[{type:"string"},{$ref:"#/definitions/FileReference"}]},description:"WordPress plugins to install and activate"},siteOptions:{type:"object",additionalProperties:{type:"string"},properties:{blogname:{type:"string",description:"The site title"}},description:"WordPress site options to define"},login:{anyOf:[{type:"boolean"},{type:"object",properties:{username:{type:"string"},password:{type:"string"}},required:["username","password"],additionalProperties:!1}],description:"User to log in as. If true, logs the user in as admin/password."},phpExtensionBundles:{deprecated:"No longer used. Feel free to remove it from your Blueprint."},steps:{type:"array",items:{anyOf:[{$ref:"#/definitions/StepDefinition"},{type:"string"},{not:{}},{type:"boolean",const:!1},{type:"null"}]},description:"The steps to run after every other operation in this Blueprint was executed."},$schema:{type:"string"}}},bv={additionalProperties:{type:["string","boolean","number"]}},Wd=Object.prototype.hasOwnProperty,_v={enum:["8.5","8.4","8.3","8.2","8.1","8.0","7.4"]},vv={enum:["5.2"]};function Dn(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;const o=n;let l=!1;const p=n;if(typeof e!="string"){const d={instancePath:t,schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[d]:s.push(d),n++}if(!(e==="8.5"||e==="8.4"||e==="8.3"||e==="8.2"||e==="8.1"||e==="8.0"||e==="7.4")){const d={instancePath:t,schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:_v.enum},message:"must be equal to one of the allowed values"};s===null?s=[d]:s.push(d),n++}var c=p===n;if(l=l||c,!l){const d=n;if(typeof e!="string"){const y={instancePath:t,schemaPath:"#/definitions/LegacyPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[y]:s.push(y),n++}if(e!=="5.2"){const y={instancePath:t,schemaPath:"#/definitions/LegacyPHPVersion/enum",keyword:"enum",params:{allowedValues:vv.enum},message:"must be equal to one of the allowed values"};s===null?s=[y]:s.push(y),n++}var c=d===n;l=l||c}if(l)n=o,s!==null&&(o?s.length=o:s=null);else{const d={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[d]:s.push(d),n++,Dn.errors=s,!1}return Dn.errors=s,n===0}function Un(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;const o=n;let l=!1;const p=n;Dn(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?Dn.errors:s.concat(Dn.errors),n=s.length);var c=p===n;if(l=l||c,!l){const d=n;if(typeof e!="string"){const y={instancePath:t,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[y]:s.push(y),n++}if(e!=="7.2"){const y={instancePath:t,schemaPath:"#/anyOf/1/const",keyword:"const",params:{allowedValue:"7.2"},message:"must be equal to constant"};s===null?s=[y]:s.push(y),n++}var c=d===n;if(l=l||c,!l){const y=n;if(typeof e!="string"){const g={instancePath:t,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[g]:s.push(g),n++}if(e!=="7.3"){const g={instancePath:t,schemaPath:"#/anyOf/2/const",keyword:"const",params:{allowedValue:"7.3"},message:"must be equal to constant"};s===null?s=[g]:s.push(g),n++}var c=y===n;l=l||c}}if(l)n=o,s!==null&&(o?s.length=o:s=null);else{const d={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[d]:s.push(d),n++,Un.errors=s,!1}return Un.errors=s,n===0}const Za={validate:_e},xv={enum:["branch","tag","commit","refname"]};function st(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(e&&typeof e=="object"&&!Array.isArray(e)){let l;if(e.resource===void 0&&(l="resource")||e.url===void 0&&(l="url")||e.ref===void 0&&(l="ref"))return st.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;for(const p in e)if(!(p==="resource"||p==="url"||p==="ref"||p==="refType"||p==="path"||p===".git"))return st.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties"}],!1;{if(e.resource!==void 0){let p=e.resource;const c=n;if(typeof p!="string")return st.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(p!=="git:directory")return st.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"}],!1;var o=c===n}else var o=!0;if(o){if(e.url!==void 0){const p=n;if(typeof e.url!="string")return st.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o){if(e.ref!==void 0){const p=n;if(typeof e.ref!="string")return st.errors=[{instancePath:t+"/ref",schemaPath:"#/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o){if(e.refType!==void 0){let p=e.refType;const c=n;if(typeof p!="string")return st.errors=[{instancePath:t+"/refType",schemaPath:"#/definitions/GitDirectoryRefType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(p==="branch"||p==="tag"||p==="commit"||p==="refname"))return st.errors=[{instancePath:t+"/refType",schemaPath:"#/definitions/GitDirectoryRefType/enum",keyword:"enum",params:{allowedValues:xv.enum},message:"must be equal to one of the allowed values"}],!1;var o=c===n}else var o=!0;if(o){if(e.path!==void 0){const p=n;if(typeof e.path!="string")return st.errors=[{instancePath:t+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o)if(e[".git"]!==void 0){const p=n;if(typeof e[".git"]!="boolean")return st.errors=[{instancePath:t+"/.git",schemaPath:"#/properties/.git/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var o=p===n}else var o=!0}}}}}}else return st.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return st.errors=s,n===0}const kv={additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]}},Ga={validate:Ir};function Ir(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e))for(const p in e){let c=e[p];const d=n,m=n;let y=!1;const T=n;Ga.validate(c,{instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:p,rootData:a})||(s=s===null?Ga.validate.errors:s.concat(Ga.validate.errors),n=s.length);var o=T===n;if(y=y||o,!y){const g=n;if(!(c&&typeof c=="object"&&!Array.isArray(c))&&typeof c!="string"){const b={instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:kv.additionalProperties.anyOf[1].type},message:"must be object,string"};s===null?s=[b]:s.push(b),n++}var o=g===n;y=y||o}if(y)n=m,s!==null&&(m?s.length=m:s=null);else{const g={instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[g]:s.push(g),n++,Ir.errors=s,!1}var l=d===n;if(!l)break}else return Ir.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Ir.errors=s,n===0}function zt(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let l;if(e.files===void 0&&(l="files")||e.name===void 0&&(l="name")||e.resource===void 0&&(l="resource"))return zt.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const p=n;for(const c in e)if(!(c==="resource"||c==="files"||c==="name"))return zt.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:c},message:"must NOT have additional properties"}],!1;if(p===n){if(e.resource!==void 0){let c=e.resource;const d=n;if(typeof c!="string")return zt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(c!=="literal:directory")return zt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"literal:directory"},message:"must be equal to constant"}],!1;var o=d===n}else var o=!0;if(o){if(e.files!==void 0){const c=n;Ir(e.files,{instancePath:t+"/files",parentData:e,parentDataProperty:"files",rootData:a})||(s=s===null?Ir.errors:s.concat(Ir.errors),n=s.length);var o=c===n}else var o=!0;if(o)if(e.name!==void 0){const c=n;if(typeof e.name!="string")return zt.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=c===n}else var o=!0}}}}else return zt.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return zt.errors=s,n===0}function ut(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;const o=n;let l=!1;const p=n;st(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?st.errors:s.concat(st.errors),n=s.length);var c=p===n;if(l=l||c,!l){const d=n;zt(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?zt.errors:s.concat(zt.errors),n=s.length);var c=d===n;l=l||c}if(l)n=o,s!==null&&(o?s.length=o:s=null);else{const d={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[d]:s.push(d),n++,ut.errors=s,!1}return ut.errors=s,n===0}function jt(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let p;if(e.resource===void 0&&(p="resource")||e.inner===void 0&&(p="inner"))return jt.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:p},message:"must have required property '"+p+"'"}],!1;{const c=n;for(const d in e)if(!(d==="resource"||d==="inner"||d==="name"))return jt.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"}],!1;if(c===n){if(e.resource!==void 0){let d=e.resource;const m=n;if(typeof d!="string")return jt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(d!=="zip")return jt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"zip"},message:"must be equal to constant"}],!1;var o=m===n}else var o=!0;if(o){if(e.inner!==void 0){let d=e.inner;const m=n,y=n;let T=!1;const g=n;Za.validate(d,{instancePath:t+"/inner",parentData:e,parentDataProperty:"inner",rootData:a})||(s=s===null?Za.validate.errors:s.concat(Za.validate.errors),n=s.length);var l=g===n;if(T=T||l,!T){const b=n;ut(d,{instancePath:t+"/inner",parentData:e,parentDataProperty:"inner",rootData:a})||(s=s===null?ut.errors:s.concat(ut.errors),n=s.length);var l=b===n;T=T||l}if(T)n=y,s!==null&&(y?s.length=y:s=null);else{const b={instancePath:t+"/inner",schemaPath:"#/properties/inner/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[b]:s.push(b),n++,jt.errors=s,!1}var o=m===n}else var o=!0;if(o)if(e.name!==void 0){const d=n;if(typeof e.name!="string")return jt.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=d===n}else var o=!0}}}}else return jt.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return jt.errors=s,n===0}function _e(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;const o=n;let l=!1;const p=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let $;if(e.resource===void 0&&($="resource")||e.path===void 0&&($="path")){const L={instancePath:t,schemaPath:"#/definitions/VFSReference/required",keyword:"required",params:{missingProperty:$},message:"must have required property '"+$+"'"};s===null?s=[L]:s.push(L),n++}else{const L=n;for(const C in e)if(!(C==="resource"||C==="path")){const _={instancePath:t,schemaPath:"#/definitions/VFSReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:C},message:"must NOT have additional properties"};s===null?s=[_]:s.push(_),n++;break}if(L===n){if(e.resource!==void 0){let C=e.resource;const _=n;if(typeof C!="string"){const F={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[F]:s.push(F),n++}if(C!=="vfs"){const F={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/const",keyword:"const",params:{allowedValue:"vfs"},message:"must be equal to constant"};s===null?s=[F]:s.push(F),n++}var d=_===n}else var d=!0;if(d)if(e.path!==void 0){const C=n;if(typeof e.path!="string"){const F={instancePath:t+"/path",schemaPath:"#/definitions/VFSReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[F]:s.push(F),n++}var d=C===n}else var d=!0}}}else{const $={instancePath:t,schemaPath:"#/definitions/VFSReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[$]:s.push($),n++}var m=p===n;if(l=l||m,!l){const $=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let _;if(e.resource===void 0&&(_="resource")||e.name===void 0&&(_="name")||e.contents===void 0&&(_="contents")){const F={instancePath:t,schemaPath:"#/definitions/LiteralReference/required",keyword:"required",params:{missingProperty:_},message:"must have required property '"+_+"'"};s===null?s=[F]:s.push(F),n++}else{const F=n;for(const P in e)if(!(P==="resource"||P==="name"||P==="contents")){const S={instancePath:t,schemaPath:"#/definitions/LiteralReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:P},message:"must NOT have additional properties"};s===null?s=[S]:s.push(S),n++;break}if(F===n){if(e.resource!==void 0){let P=e.resource;const S=n;if(typeof P!="string"){const j={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[j]:s.push(j),n++}if(P!=="literal"){const j={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/const",keyword:"const",params:{allowedValue:"literal"},message:"must be equal to constant"};s===null?s=[j]:s.push(j),n++}var y=S===n}else var y=!0;if(y){if(e.name!==void 0){const P=n;if(typeof e.name!="string"){const j={instancePath:t+"/name",schemaPath:"#/definitions/LiteralReference/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[j]:s.push(j),n++}var y=P===n}else var y=!0;if(y)if(e.contents!==void 0){let P=e.contents;const S=n,j=n;let R=!1;const D=n;if(typeof P!="string"){const B={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[B]:s.push(B),n++}var T=D===n;if(R=R||T,!R){const B=n;if(n===B)if(P&&typeof P=="object"&&!Array.isArray(P)){let G;if(P.BYTES_PER_ELEMENT===void 0&&(G="BYTES_PER_ELEMENT")||P.buffer===void 0&&(G="buffer")||P.byteLength===void 0&&(G="byteLength")||P.byteOffset===void 0&&(G="byteOffset")||P.length===void 0&&(G="length")){const te={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/required",keyword:"required",params:{missingProperty:G},message:"must have required property '"+G+"'"};s===null?s=[te]:s.push(te),n++}else{const te=n;for(const z in P)if(!(z==="BYTES_PER_ELEMENT"||z==="buffer"||z==="byteLength"||z==="byteOffset"||z==="length")){let X=P[z];const ee=n;if(!(typeof X=="number"&&isFinite(X))){const Z={instancePath:t+"/contents/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Z]:s.push(Z),n++}var g=ee===n;if(!g)break}if(te===n){if(P.BYTES_PER_ELEMENT!==void 0){let z=P.BYTES_PER_ELEMENT;const X=n;if(!(typeof z=="number"&&isFinite(z))){const ee={instancePath:t+"/contents/BYTES_PER_ELEMENT",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ee]:s.push(ee),n++}var w=X===n}else var w=!0;if(w){if(P.buffer!==void 0){let z=P.buffer;const X=n;if(n===X)if(z&&typeof z=="object"&&!Array.isArray(z)){let Z;if(z.byteLength===void 0&&(Z="byteLength")){const fe={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:Z},message:"must have required property '"+Z+"'"};s===null?s=[fe]:s.push(fe),n++}else{const fe=n;for(const oe in z)if(oe!=="byteLength"){const ie={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:oe},message:"must NOT have additional properties"};s===null?s=[ie]:s.push(ie),n++;break}if(fe===n&&z.byteLength!==void 0){let oe=z.byteLength;if(!(typeof oe=="number"&&isFinite(oe))){const ie={instancePath:t+"/contents/buffer/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ie]:s.push(ie),n++}}}}else{const Z={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Z]:s.push(Z),n++}var w=X===n}else var w=!0;if(w){if(P.byteLength!==void 0){let z=P.byteLength;const X=n;if(!(typeof z=="number"&&isFinite(z))){const Z={instancePath:t+"/contents/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Z]:s.push(Z),n++}var w=X===n}else var w=!0;if(w){if(P.byteOffset!==void 0){let z=P.byteOffset;const X=n;if(!(typeof z=="number"&&isFinite(z))){const Z={instancePath:t+"/contents/byteOffset",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Z]:s.push(Z),n++}var w=X===n}else var w=!0;if(w)if(P.length!==void 0){let z=P.length;const X=n;if(!(typeof z=="number"&&isFinite(z))){const Z={instancePath:t+"/contents/length",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Z]:s.push(Z),n++}var w=X===n}else var w=!0}}}}}}else{const G={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[G]:s.push(G),n++}var T=B===n;R=R||T}if(R)n=j,s!==null&&(j?s.length=j:s=null);else{const B={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};s===null?s=[B]:s.push(B),n++}var y=S===n}else var y=!0}}}}else{const _={instancePath:t,schemaPath:"#/definitions/LiteralReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[_]:s.push(_),n++}var m=$===n;if(l=l||m,!l){const _=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let S;if(e.resource===void 0&&(S="resource")||e.slug===void 0&&(S="slug")){const j={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/required",keyword:"required",params:{missingProperty:S},message:"must have required property '"+S+"'"};s===null?s=[j]:s.push(j),n++}else{const j=n;for(const R in e)if(!(R==="resource"||R==="slug")){const D={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:R},message:"must NOT have additional properties"};s===null?s=[D]:s.push(D),n++;break}if(j===n){if(e.resource!==void 0){let R=e.resource;const D=n;if(typeof R!="string"){const V={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[V]:s.push(V),n++}if(R!=="wordpress.org/themes"){const V={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/themes"},message:"must be equal to constant"};s===null?s=[V]:s.push(V),n++}var b=D===n}else var b=!0;if(b)if(e.slug!==void 0){const R=n;if(typeof e.slug!="string"){const V={instancePath:t+"/slug",schemaPath:"#/definitions/CoreThemeReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[V]:s.push(V),n++}var b=R===n}else var b=!0}}}else{const S={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[S]:s.push(S),n++}var m=_===n;if(l=l||m,!l){const S=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.resource===void 0&&(D="resource")||e.slug===void 0&&(D="slug")){const V={instancePath:t,schemaPath:"#/definitions/CorePluginReference/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"};s===null?s=[V]:s.push(V),n++}else{const V=n;for(const B in e)if(!(B==="resource"||B==="slug")){const Y={instancePath:t,schemaPath:"#/definitions/CorePluginReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:B},message:"must NOT have additional properties"};s===null?s=[Y]:s.push(Y),n++;break}if(V===n){if(e.resource!==void 0){let B=e.resource;const Y=n;if(typeof B!="string"){const G={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[G]:s.push(G),n++}if(B!=="wordpress.org/plugins"){const G={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/plugins"},message:"must be equal to constant"};s===null?s=[G]:s.push(G),n++}var O=Y===n}else var O=!0;if(O)if(e.slug!==void 0){const B=n;if(typeof e.slug!="string"){const G={instancePath:t+"/slug",schemaPath:"#/definitions/CorePluginReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[G]:s.push(G),n++}var O=B===n}else var O=!0}}}else{const D={instancePath:t,schemaPath:"#/definitions/CorePluginReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[D]:s.push(D),n++}var m=S===n;if(l=l||m,!l){const D=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let Y;if(e.resource===void 0&&(Y="resource")||e.url===void 0&&(Y="url")){const G={instancePath:t,schemaPath:"#/definitions/UrlReference/required",keyword:"required",params:{missingProperty:Y},message:"must have required property '"+Y+"'"};s===null?s=[G]:s.push(G),n++}else{const G=n;for(const te in e)if(!(te==="resource"||te==="url"||te==="caption")){const z={instancePath:t,schemaPath:"#/definitions/UrlReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:te},message:"must NOT have additional properties"};s===null?s=[z]:s.push(z),n++;break}if(G===n){if(e.resource!==void 0){let te=e.resource;const z=n;if(typeof te!="string"){const X={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[X]:s.push(X),n++}if(te!=="url"){const X={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant"};s===null?s=[X]:s.push(X),n++}var E=z===n}else var E=!0;if(E){if(e.url!==void 0){const te=n;if(typeof e.url!="string"){const X={instancePath:t+"/url",schemaPath:"#/definitions/UrlReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[X]:s.push(X),n++}var E=te===n}else var E=!0;if(E)if(e.caption!==void 0){const te=n;if(typeof e.caption!="string"){const X={instancePath:t+"/caption",schemaPath:"#/definitions/UrlReference/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[X]:s.push(X),n++}var E=te===n}else var E=!0}}}}else{const Y={instancePath:t,schemaPath:"#/definitions/UrlReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Y]:s.push(Y),n++}var m=D===n;if(l=l||m,!l){const Y=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let z;if(e.resource===void 0&&(z="resource")||e.path===void 0&&(z="path")){const X={instancePath:t,schemaPath:"#/definitions/BundledReference/required",keyword:"required",params:{missingProperty:z},message:"must have required property '"+z+"'"};s===null?s=[X]:s.push(X),n++}else{const X=n;for(const ee in e)if(!(ee==="resource"||ee==="path")){const Z={instancePath:t,schemaPath:"#/definitions/BundledReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ee},message:"must NOT have additional properties"};s===null?s=[Z]:s.push(Z),n++;break}if(X===n){if(e.resource!==void 0){let ee=e.resource;const Z=n;if(typeof ee!="string"){const fe={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[fe]:s.push(fe),n++}if(ee!=="bundled"){const fe={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/const",keyword:"const",params:{allowedValue:"bundled"},message:"must be equal to constant"};s===null?s=[fe]:s.push(fe),n++}var I=Z===n}else var I=!0;if(I)if(e.path!==void 0){const ee=n;if(typeof e.path!="string"){const fe={instancePath:t+"/path",schemaPath:"#/definitions/BundledReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[fe]:s.push(fe),n++}var I=ee===n}else var I=!0}}}else{const z={instancePath:t,schemaPath:"#/definitions/BundledReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[z]:s.push(z),n++}var m=Y===n;if(l=l||m,!l){const z=n;jt(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?jt.errors:s.concat(jt.errors),n=s.length);var m=z===n;l=l||m}}}}}}if(l)n=o,s!==null&&(o?s.length=o:s=null);else{const $={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[$]:s.push($),n++,_e.errors=s,!1}return _e.errors=s,n===0}const Cs={oneOf:[{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"activatePlugin"},pluginPath:{type:"string",description:"Path to the plugin directory as absolute path (/wordpress/wp-content/plugins/plugin-name); or the plugin entry file relative to the plugins directory (plugin-name/plugin-name.php)."},pluginName:{type:"string",description:"Optional. Plugin name to display in the progress bar."}},required:["pluginPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"activateTheme"},themeFolderName:{type:"string",description:"The name of the theme folder inside wp-content/themes/"}},required:["step","themeFolderName"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"cp"},fromPath:{type:"string",description:"Source path"},toPath:{type:"string",description:"Target path"}},required:["fromPath","step","toPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"defineWpConfigConsts"},consts:{type:"object",additionalProperties:{},description:"The constants to define"},method:{type:"string",enum:["rewrite-wp-config","define-before-run"],description:`The method of defining the constants in wp-config.php. Possible values are:
1375
+ Note: PHP 7.2 and 7.3 are deprecated and will be automatically upgraded to 7.4.`},wp:{anyOf:[{type:"string"},{type:"string",const:"latest"},{type:"boolean",const:!1}],description:"The preferred WordPress version to use, or `false` to boot a PHP-only Playground without downloading or installing WordPress. If not specified, the latest supported version will be used.\n\nWhen set to `false`, WordPress-specific Blueprint fields (`plugins`, `siteOptions`, `login`, and WordPress-only steps) are rejected at compile time."}},required:["php","wp"],additionalProperties:!1,description:"The preferred PHP and WordPress versions to use."},features:{type:"object",properties:{intl:{type:"boolean",description:"Should boot with support for Intl dynamic extension"},networking:{type:"boolean",description:"Should boot with support for network request via wp_safe_remote_get?"}},additionalProperties:!1},extraLibraries:{type:"array",items:{$ref:"#/definitions/ExtraLibrary"},description:"Extra libraries to preload into the Playground instance."},constants:{$ref:"#/definitions/PHPConstants",description:"PHP Constants to define on every request"},plugins:{type:"array",items:{anyOf:[{type:"string"},{$ref:"#/definitions/FileReference"}]},description:"WordPress plugins to install and activate"},siteOptions:{type:"object",additionalProperties:{type:"string"},properties:{blogname:{type:"string",description:"The site title"}},description:"WordPress site options to define"},login:{anyOf:[{type:"boolean"},{type:"object",properties:{username:{type:"string"},password:{type:"string"}},required:["username","password"],additionalProperties:!1}],description:"User to log in as. If true, logs the user in as admin/password."},phpExtensionBundles:{deprecated:"No longer used. Feel free to remove it from your Blueprint."},steps:{type:"array",items:{anyOf:[{$ref:"#/definitions/StepDefinition"},{type:"string"},{not:{}},{type:"boolean",const:!1},{type:"null"}]},description:"The steps to run after every other operation in this Blueprint was executed."},$schema:{type:"string"}}},bv={additionalProperties:{type:["string","boolean","number"]}},Wd=Object.prototype.hasOwnProperty,_v={enum:["8.5","8.4","8.3","8.2","8.1","8.0","7.4"]},vv={enum:["5.2"]};function Dn(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;const o=n;let l=!1;const p=n;if(typeof e!="string"){const d={instancePath:t,schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[d]:s.push(d),n++}if(!(e==="8.5"||e==="8.4"||e==="8.3"||e==="8.2"||e==="8.1"||e==="8.0"||e==="7.4")){const d={instancePath:t,schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:_v.enum},message:"must be equal to one of the allowed values"};s===null?s=[d]:s.push(d),n++}var c=p===n;if(l=l||c,!l){const d=n;if(typeof e!="string"){const y={instancePath:t,schemaPath:"#/definitions/LegacyPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[y]:s.push(y),n++}if(e!=="5.2"){const y={instancePath:t,schemaPath:"#/definitions/LegacyPHPVersion/enum",keyword:"enum",params:{allowedValues:vv.enum},message:"must be equal to one of the allowed values"};s===null?s=[y]:s.push(y),n++}var c=d===n;l=l||c}if(l)n=o,s!==null&&(o?s.length=o:s=null);else{const d={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[d]:s.push(d),n++,Dn.errors=s,!1}return Dn.errors=s,n===0}function Un(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;const o=n;let l=!1;const p=n;Dn(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?Dn.errors:s.concat(Dn.errors),n=s.length);var c=p===n;if(l=l||c,!l){const d=n;if(typeof e!="string"){const y={instancePath:t,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[y]:s.push(y),n++}if(e!=="7.2"){const y={instancePath:t,schemaPath:"#/anyOf/1/const",keyword:"const",params:{allowedValue:"7.2"},message:"must be equal to constant"};s===null?s=[y]:s.push(y),n++}var c=d===n;if(l=l||c,!l){const y=n;if(typeof e!="string"){const g={instancePath:t,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[g]:s.push(g),n++}if(e!=="7.3"){const g={instancePath:t,schemaPath:"#/anyOf/2/const",keyword:"const",params:{allowedValue:"7.3"},message:"must be equal to constant"};s===null?s=[g]:s.push(g),n++}var c=y===n;l=l||c}}if(l)n=o,s!==null&&(o?s.length=o:s=null);else{const d={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[d]:s.push(d),n++,Un.errors=s,!1}return Un.errors=s,n===0}const Za={validate:_e},xv={enum:["branch","tag","commit","refname"]};function st(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(e&&typeof e=="object"&&!Array.isArray(e)){let l;if(e.resource===void 0&&(l="resource")||e.url===void 0&&(l="url")||e.ref===void 0&&(l="ref"))return st.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;for(const p in e)if(!(p==="resource"||p==="url"||p==="ref"||p==="refType"||p==="path"||p===".git"))return st.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties"}],!1;{if(e.resource!==void 0){let p=e.resource;const c=n;if(typeof p!="string")return st.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(p!=="git:directory")return st.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"}],!1;var o=c===n}else var o=!0;if(o){if(e.url!==void 0){const p=n;if(typeof e.url!="string")return st.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o){if(e.ref!==void 0){const p=n;if(typeof e.ref!="string")return st.errors=[{instancePath:t+"/ref",schemaPath:"#/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o){if(e.refType!==void 0){let p=e.refType;const c=n;if(typeof p!="string")return st.errors=[{instancePath:t+"/refType",schemaPath:"#/definitions/GitDirectoryRefType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(p==="branch"||p==="tag"||p==="commit"||p==="refname"))return st.errors=[{instancePath:t+"/refType",schemaPath:"#/definitions/GitDirectoryRefType/enum",keyword:"enum",params:{allowedValues:xv.enum},message:"must be equal to one of the allowed values"}],!1;var o=c===n}else var o=!0;if(o){if(e.path!==void 0){const p=n;if(typeof e.path!="string")return st.errors=[{instancePath:t+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o)if(e[".git"]!==void 0){const p=n;if(typeof e[".git"]!="boolean")return st.errors=[{instancePath:t+"/.git",schemaPath:"#/properties/.git/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var o=p===n}else var o=!0}}}}}}else return st.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return st.errors=s,n===0}const kv={additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]}},Ga={validate:Ir};function Ir(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e))for(const p in e){let c=e[p];const d=n,m=n;let y=!1;const T=n;Ga.validate(c,{instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:p,rootData:a})||(s=s===null?Ga.validate.errors:s.concat(Ga.validate.errors),n=s.length);var o=T===n;if(y=y||o,!y){const g=n;if(!(c&&typeof c=="object"&&!Array.isArray(c))&&typeof c!="string"){const _={instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:kv.additionalProperties.anyOf[1].type},message:"must be object,string"};s===null?s=[_]:s.push(_),n++}var o=g===n;y=y||o}if(y)n=m,s!==null&&(m?s.length=m:s=null);else{const g={instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[g]:s.push(g),n++,Ir.errors=s,!1}var l=d===n;if(!l)break}else return Ir.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Ir.errors=s,n===0}function zt(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let l;if(e.files===void 0&&(l="files")||e.name===void 0&&(l="name")||e.resource===void 0&&(l="resource"))return zt.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const p=n;for(const c in e)if(!(c==="resource"||c==="files"||c==="name"))return zt.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:c},message:"must NOT have additional properties"}],!1;if(p===n){if(e.resource!==void 0){let c=e.resource;const d=n;if(typeof c!="string")return zt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(c!=="literal:directory")return zt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"literal:directory"},message:"must be equal to constant"}],!1;var o=d===n}else var o=!0;if(o){if(e.files!==void 0){const c=n;Ir(e.files,{instancePath:t+"/files",parentData:e,parentDataProperty:"files",rootData:a})||(s=s===null?Ir.errors:s.concat(Ir.errors),n=s.length);var o=c===n}else var o=!0;if(o)if(e.name!==void 0){const c=n;if(typeof e.name!="string")return zt.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=c===n}else var o=!0}}}}else return zt.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return zt.errors=s,n===0}function ut(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;const o=n;let l=!1;const p=n;st(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?st.errors:s.concat(st.errors),n=s.length);var c=p===n;if(l=l||c,!l){const d=n;zt(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?zt.errors:s.concat(zt.errors),n=s.length);var c=d===n;l=l||c}if(l)n=o,s!==null&&(o?s.length=o:s=null);else{const d={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[d]:s.push(d),n++,ut.errors=s,!1}return ut.errors=s,n===0}function jt(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let p;if(e.resource===void 0&&(p="resource")||e.inner===void 0&&(p="inner"))return jt.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:p},message:"must have required property '"+p+"'"}],!1;{const c=n;for(const d in e)if(!(d==="resource"||d==="inner"||d==="name"))return jt.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"}],!1;if(c===n){if(e.resource!==void 0){let d=e.resource;const m=n;if(typeof d!="string")return jt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(d!=="zip")return jt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"zip"},message:"must be equal to constant"}],!1;var o=m===n}else var o=!0;if(o){if(e.inner!==void 0){let d=e.inner;const m=n,y=n;let T=!1;const g=n;Za.validate(d,{instancePath:t+"/inner",parentData:e,parentDataProperty:"inner",rootData:a})||(s=s===null?Za.validate.errors:s.concat(Za.validate.errors),n=s.length);var l=g===n;if(T=T||l,!T){const _=n;ut(d,{instancePath:t+"/inner",parentData:e,parentDataProperty:"inner",rootData:a})||(s=s===null?ut.errors:s.concat(ut.errors),n=s.length);var l=_===n;T=T||l}if(T)n=y,s!==null&&(y?s.length=y:s=null);else{const _={instancePath:t+"/inner",schemaPath:"#/properties/inner/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[_]:s.push(_),n++,jt.errors=s,!1}var o=m===n}else var o=!0;if(o)if(e.name!==void 0){const d=n;if(typeof e.name!="string")return jt.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=d===n}else var o=!0}}}}else return jt.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return jt.errors=s,n===0}function _e(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;const o=n;let l=!1;const p=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let $;if(e.resource===void 0&&($="resource")||e.path===void 0&&($="path")){const L={instancePath:t,schemaPath:"#/definitions/VFSReference/required",keyword:"required",params:{missingProperty:$},message:"must have required property '"+$+"'"};s===null?s=[L]:s.push(L),n++}else{const L=n;for(const C in e)if(!(C==="resource"||C==="path")){const b={instancePath:t,schemaPath:"#/definitions/VFSReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:C},message:"must NOT have additional properties"};s===null?s=[b]:s.push(b),n++;break}if(L===n){if(e.resource!==void 0){let C=e.resource;const b=n;if(typeof C!="string"){const F={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[F]:s.push(F),n++}if(C!=="vfs"){const F={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/const",keyword:"const",params:{allowedValue:"vfs"},message:"must be equal to constant"};s===null?s=[F]:s.push(F),n++}var d=b===n}else var d=!0;if(d)if(e.path!==void 0){const C=n;if(typeof e.path!="string"){const F={instancePath:t+"/path",schemaPath:"#/definitions/VFSReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[F]:s.push(F),n++}var d=C===n}else var d=!0}}}else{const $={instancePath:t,schemaPath:"#/definitions/VFSReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[$]:s.push($),n++}var m=p===n;if(l=l||m,!l){const $=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let b;if(e.resource===void 0&&(b="resource")||e.name===void 0&&(b="name")||e.contents===void 0&&(b="contents")){const F={instancePath:t,schemaPath:"#/definitions/LiteralReference/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"};s===null?s=[F]:s.push(F),n++}else{const F=n;for(const P in e)if(!(P==="resource"||P==="name"||P==="contents")){const S={instancePath:t,schemaPath:"#/definitions/LiteralReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:P},message:"must NOT have additional properties"};s===null?s=[S]:s.push(S),n++;break}if(F===n){if(e.resource!==void 0){let P=e.resource;const S=n;if(typeof P!="string"){const j={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[j]:s.push(j),n++}if(P!=="literal"){const j={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/const",keyword:"const",params:{allowedValue:"literal"},message:"must be equal to constant"};s===null?s=[j]:s.push(j),n++}var y=S===n}else var y=!0;if(y){if(e.name!==void 0){const P=n;if(typeof e.name!="string"){const j={instancePath:t+"/name",schemaPath:"#/definitions/LiteralReference/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[j]:s.push(j),n++}var y=P===n}else var y=!0;if(y)if(e.contents!==void 0){let P=e.contents;const S=n,j=n;let R=!1;const D=n;if(typeof P!="string"){const B={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[B]:s.push(B),n++}var T=D===n;if(R=R||T,!R){const B=n;if(n===B)if(P&&typeof P=="object"&&!Array.isArray(P)){let G;if(P.BYTES_PER_ELEMENT===void 0&&(G="BYTES_PER_ELEMENT")||P.buffer===void 0&&(G="buffer")||P.byteLength===void 0&&(G="byteLength")||P.byteOffset===void 0&&(G="byteOffset")||P.length===void 0&&(G="length")){const te={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/required",keyword:"required",params:{missingProperty:G},message:"must have required property '"+G+"'"};s===null?s=[te]:s.push(te),n++}else{const te=n;for(const z in P)if(!(z==="BYTES_PER_ELEMENT"||z==="buffer"||z==="byteLength"||z==="byteOffset"||z==="length")){let X=P[z];const ee=n;if(!(typeof X=="number"&&isFinite(X))){const Z={instancePath:t+"/contents/"+z.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Z]:s.push(Z),n++}var g=ee===n;if(!g)break}if(te===n){if(P.BYTES_PER_ELEMENT!==void 0){let z=P.BYTES_PER_ELEMENT;const X=n;if(!(typeof z=="number"&&isFinite(z))){const ee={instancePath:t+"/contents/BYTES_PER_ELEMENT",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ee]:s.push(ee),n++}var w=X===n}else var w=!0;if(w){if(P.buffer!==void 0){let z=P.buffer;const X=n;if(n===X)if(z&&typeof z=="object"&&!Array.isArray(z)){let Z;if(z.byteLength===void 0&&(Z="byteLength")){const fe={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:Z},message:"must have required property '"+Z+"'"};s===null?s=[fe]:s.push(fe),n++}else{const fe=n;for(const oe in z)if(oe!=="byteLength"){const ie={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:oe},message:"must NOT have additional properties"};s===null?s=[ie]:s.push(ie),n++;break}if(fe===n&&z.byteLength!==void 0){let oe=z.byteLength;if(!(typeof oe=="number"&&isFinite(oe))){const ie={instancePath:t+"/contents/buffer/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ie]:s.push(ie),n++}}}}else{const Z={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Z]:s.push(Z),n++}var w=X===n}else var w=!0;if(w){if(P.byteLength!==void 0){let z=P.byteLength;const X=n;if(!(typeof z=="number"&&isFinite(z))){const Z={instancePath:t+"/contents/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Z]:s.push(Z),n++}var w=X===n}else var w=!0;if(w){if(P.byteOffset!==void 0){let z=P.byteOffset;const X=n;if(!(typeof z=="number"&&isFinite(z))){const Z={instancePath:t+"/contents/byteOffset",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Z]:s.push(Z),n++}var w=X===n}else var w=!0;if(w)if(P.length!==void 0){let z=P.length;const X=n;if(!(typeof z=="number"&&isFinite(z))){const Z={instancePath:t+"/contents/length",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Z]:s.push(Z),n++}var w=X===n}else var w=!0}}}}}}else{const G={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[G]:s.push(G),n++}var T=B===n;R=R||T}if(R)n=j,s!==null&&(j?s.length=j:s=null);else{const B={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};s===null?s=[B]:s.push(B),n++}var y=S===n}else var y=!0}}}}else{const b={instancePath:t,schemaPath:"#/definitions/LiteralReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[b]:s.push(b),n++}var m=$===n;if(l=l||m,!l){const b=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let S;if(e.resource===void 0&&(S="resource")||e.slug===void 0&&(S="slug")){const j={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/required",keyword:"required",params:{missingProperty:S},message:"must have required property '"+S+"'"};s===null?s=[j]:s.push(j),n++}else{const j=n;for(const R in e)if(!(R==="resource"||R==="slug")){const D={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:R},message:"must NOT have additional properties"};s===null?s=[D]:s.push(D),n++;break}if(j===n){if(e.resource!==void 0){let R=e.resource;const D=n;if(typeof R!="string"){const V={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[V]:s.push(V),n++}if(R!=="wordpress.org/themes"){const V={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/themes"},message:"must be equal to constant"};s===null?s=[V]:s.push(V),n++}var _=D===n}else var _=!0;if(_)if(e.slug!==void 0){const R=n;if(typeof e.slug!="string"){const V={instancePath:t+"/slug",schemaPath:"#/definitions/CoreThemeReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[V]:s.push(V),n++}var _=R===n}else var _=!0}}}else{const S={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[S]:s.push(S),n++}var m=b===n;if(l=l||m,!l){const S=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.resource===void 0&&(D="resource")||e.slug===void 0&&(D="slug")){const V={instancePath:t,schemaPath:"#/definitions/CorePluginReference/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"};s===null?s=[V]:s.push(V),n++}else{const V=n;for(const B in e)if(!(B==="resource"||B==="slug")){const Y={instancePath:t,schemaPath:"#/definitions/CorePluginReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:B},message:"must NOT have additional properties"};s===null?s=[Y]:s.push(Y),n++;break}if(V===n){if(e.resource!==void 0){let B=e.resource;const Y=n;if(typeof B!="string"){const G={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[G]:s.push(G),n++}if(B!=="wordpress.org/plugins"){const G={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/plugins"},message:"must be equal to constant"};s===null?s=[G]:s.push(G),n++}var O=Y===n}else var O=!0;if(O)if(e.slug!==void 0){const B=n;if(typeof e.slug!="string"){const G={instancePath:t+"/slug",schemaPath:"#/definitions/CorePluginReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[G]:s.push(G),n++}var O=B===n}else var O=!0}}}else{const D={instancePath:t,schemaPath:"#/definitions/CorePluginReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[D]:s.push(D),n++}var m=S===n;if(l=l||m,!l){const D=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let Y;if(e.resource===void 0&&(Y="resource")||e.url===void 0&&(Y="url")){const G={instancePath:t,schemaPath:"#/definitions/UrlReference/required",keyword:"required",params:{missingProperty:Y},message:"must have required property '"+Y+"'"};s===null?s=[G]:s.push(G),n++}else{const G=n;for(const te in e)if(!(te==="resource"||te==="url"||te==="caption")){const z={instancePath:t,schemaPath:"#/definitions/UrlReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:te},message:"must NOT have additional properties"};s===null?s=[z]:s.push(z),n++;break}if(G===n){if(e.resource!==void 0){let te=e.resource;const z=n;if(typeof te!="string"){const X={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[X]:s.push(X),n++}if(te!=="url"){const X={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant"};s===null?s=[X]:s.push(X),n++}var E=z===n}else var E=!0;if(E){if(e.url!==void 0){const te=n;if(typeof e.url!="string"){const X={instancePath:t+"/url",schemaPath:"#/definitions/UrlReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[X]:s.push(X),n++}var E=te===n}else var E=!0;if(E)if(e.caption!==void 0){const te=n;if(typeof e.caption!="string"){const X={instancePath:t+"/caption",schemaPath:"#/definitions/UrlReference/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[X]:s.push(X),n++}var E=te===n}else var E=!0}}}}else{const Y={instancePath:t,schemaPath:"#/definitions/UrlReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Y]:s.push(Y),n++}var m=D===n;if(l=l||m,!l){const Y=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let z;if(e.resource===void 0&&(z="resource")||e.path===void 0&&(z="path")){const X={instancePath:t,schemaPath:"#/definitions/BundledReference/required",keyword:"required",params:{missingProperty:z},message:"must have required property '"+z+"'"};s===null?s=[X]:s.push(X),n++}else{const X=n;for(const ee in e)if(!(ee==="resource"||ee==="path")){const Z={instancePath:t,schemaPath:"#/definitions/BundledReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ee},message:"must NOT have additional properties"};s===null?s=[Z]:s.push(Z),n++;break}if(X===n){if(e.resource!==void 0){let ee=e.resource;const Z=n;if(typeof ee!="string"){const fe={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[fe]:s.push(fe),n++}if(ee!=="bundled"){const fe={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/const",keyword:"const",params:{allowedValue:"bundled"},message:"must be equal to constant"};s===null?s=[fe]:s.push(fe),n++}var I=Z===n}else var I=!0;if(I)if(e.path!==void 0){const ee=n;if(typeof e.path!="string"){const fe={instancePath:t+"/path",schemaPath:"#/definitions/BundledReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[fe]:s.push(fe),n++}var I=ee===n}else var I=!0}}}else{const z={instancePath:t,schemaPath:"#/definitions/BundledReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[z]:s.push(z),n++}var m=Y===n;if(l=l||m,!l){const z=n;jt(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?jt.errors:s.concat(jt.errors),n=s.length);var m=z===n;l=l||m}}}}}}if(l)n=o,s!==null&&(o?s.length=o:s=null);else{const $={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[$]:s.push($),n++,_e.errors=s,!1}return _e.errors=s,n===0}const Cs={oneOf:[{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"activatePlugin"},pluginPath:{type:"string",description:"Path to the plugin directory as absolute path (/wordpress/wp-content/plugins/plugin-name); or the plugin entry file relative to the plugins directory (plugin-name/plugin-name.php)."},pluginName:{type:"string",description:"Optional. Plugin name to display in the progress bar."}},required:["pluginPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"activateTheme"},themeFolderName:{type:"string",description:"The name of the theme folder inside wp-content/themes/"}},required:["step","themeFolderName"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"cp"},fromPath:{type:"string",description:"Source path"},toPath:{type:"string",description:"Target path"}},required:["fromPath","step","toPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"defineWpConfigConsts"},consts:{type:"object",additionalProperties:{},description:"The constants to define"},method:{type:"string",enum:["rewrite-wp-config","define-before-run"],description:`The method of defining the constants in wp-config.php. Possible values are:
1376
1376
 
1377
1377
  - rewrite-wp-config: Default. Rewrites the wp-config.php file to explicitly call define() with the requested name and value. This method alters the file on the disk, but it doesn't conflict with existing define() calls in wp-config.php.
1378
1378
 
1379
1379
  - define-before-run: Defines the constant before running the requested script. It doesn't alter any files on the disk, but constants defined this way may conflict with existing define() calls in wp-config.php.`},virtualize:{type:"boolean",deprecated:`This option is noop and will be removed in a future version.
1380
1380
  This option is only kept in here to avoid breaking Blueprint schema validation
1381
1381
  for existing apps using this option.`}},required:["consts","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"defineSiteUrl"},siteUrl:{type:"string",description:"The URL"}},required:["siteUrl","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"enableMultisite"},wpCliPath:{type:"string",description:"wp-cli.phar path"}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importWxr"},file:{$ref:"#/definitions/FileReference",description:"The file to import"},importer:{type:"string",enum:["data-liberation","default"],description:"The importer to use. Possible values:\n\n- `default`: The importer from https://github.com/humanmade/WordPress-Importer\n- `data-liberation`: The experimental Data Liberation WXR importer developed at https://github.com/WordPress/wordpress-playground/issues/1894\n\nThis option is deprecated. The syntax will not be removed, but once the Data Liberation importer matures, it will become the only supported importer and the `importer` option will be ignored.",deprecated:!0}},required:["file","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importThemeStarterContent",description:"The step identifier."},themeSlug:{type:"string",description:"The name of the theme to import content from."}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importWordPressFiles"},wordPressFilesZip:{$ref:"#/definitions/FileReference",description:"The zip file containing the top-level WordPress files and directories."},pathInZip:{type:"string",description:"The path inside the zip file where the WordPress files are."}},required:["step","wordPressFilesZip"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},ifAlreadyInstalled:{type:"string",enum:["overwrite","skip","error"],description:"What to do if the asset already exists."},step:{type:"string",const:"installPlugin",description:"The step identifier."},pluginData:{anyOf:[{$ref:"#/definitions/FileReference"},{$ref:"#/definitions/DirectoryReference"}],description:"The plugin files to install. It can be a plugin zip file, a single PHP file, or a directory containing all the plugin files at its root."},pluginZipFile:{$ref:"#/definitions/FileReference",deprecated:". Use 'pluginData' instead."},options:{$ref:"#/definitions/InstallPluginOptions",description:"Optional installation options."}},required:["pluginData","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},ifAlreadyInstalled:{type:"string",enum:["overwrite","skip","error"],description:"What to do if the asset already exists."},step:{type:"string",const:"installTheme",description:"The step identifier."},themeData:{anyOf:[{$ref:"#/definitions/FileReference"},{$ref:"#/definitions/DirectoryReference"}],description:"The theme files to install. It can be either a theme zip file, or a directory containing all the theme files at its root."},themeZipFile:{$ref:"#/definitions/FileReference",deprecated:". Use 'themeData' instead."},options:{$ref:"#/definitions/InstallThemeOptions",description:"Optional installation options."}},required:["step","themeData"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"login"},username:{type:"string",description:"The user to log in as. Defaults to 'admin'."},password:{type:"string",deprecated:`The password field is deprecated and will be removed in a future version.
1382
- Only the username field is required for user authentication.`}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"mkdir"},path:{type:"string",description:"The path of the directory you want to create"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"mv"},fromPath:{type:"string",description:"Source path"},toPath:{type:"string",description:"Target path"}},required:["fromPath","step","toPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"resetData"}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"request"},request:{$ref:"#/definitions/PHPRequest",description:"Request details (See /wordpress-playground/api/universal/interface/PHPRequest)"}},required:["request","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"rm"},path:{type:"string",description:"The path to remove"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"rmdir"},path:{type:"string",description:"The path to remove"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHP",description:"The step identifier."},code:{anyOf:[{type:"string"},{type:"object",properties:{filename:{type:"string",description:"This property is ignored during Blueprint v1 execution but exists so the same runPHP step structure can be used for Blueprints v1 and v2."},content:{type:"string"}},required:["filename","content"],additionalProperties:!1}],description:"The PHP code to run."}},required:["code","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHPWithOptions"},options:{$ref:"#/definitions/PHPRunOptions",description:"Run options (See /wordpress-playground/api/universal/interface/PHPRunOptions/))"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runWpInstallationWizard"},options:{$ref:"#/definitions/WordPressInstallationOptions"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runSql",description:"The step identifier."},sql:{$ref:"#/definitions/FileReference",description:"The SQL to run. Each non-empty line must contain a valid SQL query."}},required:["sql","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteOptions",description:'The name of the step. Must be "setSiteOptions".'},options:{type:"object",additionalProperties:{},description:"The options to set on the site."}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"unzip"},zipFile:{$ref:"#/definitions/FileReference",description:"The zip file to extract"},zipPath:{type:"string",description:"The path of the zip file to extract",deprecated:"Use zipFile instead."},extractToPath:{type:"string",description:"The path to extract the zip file to"}},required:["extractToPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"updateUserMeta"},meta:{type:"object",additionalProperties:{},description:'An object of user meta values to set, e.g. { "first_name": "John" }'},userId:{type:"number",description:"User ID"}},required:["meta","step","userId"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFile"},path:{type:"string",description:"The path of the file to write to"},data:{anyOf:[{$ref:"#/definitions/FileReference"},{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"The data to write"}},required:["data","path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFiles"},writeToPath:{type:"string",description:"The path of the file to write to"},filesTree:{$ref:"#/definitions/DirectoryReference",description:"The 'filesTree' defines the directory structure, supporting 'literal:directory' or 'git:directory' types. The 'name' represents the root directory, while 'files' is an object where keys are file paths, and values contain either file content as a string or nested objects for subdirectories."}},required:["filesTree","step","writeToPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"wp-cli",description:"The step identifier."},command:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}],description:"The WP CLI command to run."},wpCliPath:{type:"string",description:"wp-cli.phar path"}},required:["command","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteLanguage"},language:{type:"string",description:"The language to set, e.g. 'en_US'"}},required:["language","step"]}]},Hd={enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function vt(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let b;if(e.url===void 0&&(b="url"))return vt.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"}],!1;{const O=n;for(const E in e)if(!(E==="method"||E==="url"||E==="headers"||E==="body"))return vt.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:E},message:"must NOT have additional properties"}],!1;if(O===n){if(e.method!==void 0){let E=e.method;const I=n;if(typeof E!="string")return vt.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(E==="GET"||E==="POST"||E==="HEAD"||E==="OPTIONS"||E==="PATCH"||E==="PUT"||E==="DELETE"))return vt.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Hd.enum},message:"must be equal to one of the allowed values"}],!1;var o=I===n}else var o=!0;if(o){if(e.url!==void 0){const E=n;if(typeof e.url!="string")return vt.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=E===n}else var o=!0;if(o){if(e.headers!==void 0){let E=e.headers;const I=n;if(n===n)if(E&&typeof E=="object"&&!Array.isArray(E))for(const C in E){const _=n;if(typeof E[C]!="string")return vt.errors=[{instancePath:t+"/headers/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=_===n;if(!l)break}else return vt.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=I===n}else var o=!0;if(o)if(e.body!==void 0){let E=e.body;const I=n,$=n;let L=!1;const C=n;if(typeof E!="string"){const F={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[F]:s.push(F),n++}var p=C===n;if(L=L||p,!L){const F=n;if(n===F)if(E&&typeof E=="object"&&!Array.isArray(E)){let S;if(E.BYTES_PER_ELEMENT===void 0&&(S="BYTES_PER_ELEMENT")||E.buffer===void 0&&(S="buffer")||E.byteLength===void 0&&(S="byteLength")||E.byteOffset===void 0&&(S="byteOffset")||E.length===void 0&&(S="length")){const j={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:S},message:"must have required property '"+S+"'"};s===null?s=[j]:s.push(j),n++}else{const j=n;for(const R in E)if(!(R==="BYTES_PER_ELEMENT"||R==="buffer"||R==="byteLength"||R==="byteOffset"||R==="length")){let D=E[R];const V=n;if(!(typeof D=="number"&&isFinite(D))){const B={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[B]:s.push(B),n++}var c=V===n;if(!c)break}if(j===n){if(E.BYTES_PER_ELEMENT!==void 0){let R=E.BYTES_PER_ELEMENT;const D=n;if(!(typeof R=="number"&&isFinite(R))){const V={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[V]:s.push(V),n++}var d=D===n}else var d=!0;if(d){if(E.buffer!==void 0){let R=E.buffer;const D=n;if(n===D)if(R&&typeof R=="object"&&!Array.isArray(R)){let B;if(R.byteLength===void 0&&(B="byteLength")){const Y={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"};s===null?s=[Y]:s.push(Y),n++}else{const Y=n;for(const G in R)if(G!=="byteLength"){const te={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:G},message:"must NOT have additional properties"};s===null?s=[te]:s.push(te),n++;break}if(Y===n&&R.byteLength!==void 0){let G=R.byteLength;if(!(typeof G=="number"&&isFinite(G))){const te={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[te]:s.push(te),n++}}}}else{const B={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[B]:s.push(B),n++}var d=D===n}else var d=!0;if(d){if(E.byteLength!==void 0){let R=E.byteLength;const D=n;if(!(typeof R=="number"&&isFinite(R))){const B={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[B]:s.push(B),n++}var d=D===n}else var d=!0;if(d){if(E.byteOffset!==void 0){let R=E.byteOffset;const D=n;if(!(typeof R=="number"&&isFinite(R))){const B={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[B]:s.push(B),n++}var d=D===n}else var d=!0;if(d)if(E.length!==void 0){let R=E.length;const D=n;if(!(typeof R=="number"&&isFinite(R))){const B={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[B]:s.push(B),n++}var d=D===n}else var d=!0}}}}}}else{const S={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[S]:s.push(S),n++}var p=F===n;if(L=L||p,!L){const S=n;if(n===S)if(E&&typeof E=="object"&&!Array.isArray(E))for(const R in E){let D=E[R];const V=n,B=n;let Y=!1;const G=n;if(typeof D!="string"){const te={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[te]:s.push(te),n++}var m=G===n;if(Y=Y||m,!Y){const te=n;if(n===te)if(D&&typeof D=="object"&&!Array.isArray(D)){let X;if(D.BYTES_PER_ELEMENT===void 0&&(X="BYTES_PER_ELEMENT")||D.buffer===void 0&&(X="buffer")||D.byteLength===void 0&&(X="byteLength")||D.byteOffset===void 0&&(X="byteOffset")||D.length===void 0&&(X="length")){const ee={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/required",keyword:"required",params:{missingProperty:X},message:"must have required property '"+X+"'"};s===null?s=[ee]:s.push(ee),n++}else{const ee=n;for(const Z in D)if(!(Z==="BYTES_PER_ELEMENT"||Z==="buffer"||Z==="byteLength"||Z==="byteOffset"||Z==="length")){let fe=D[Z];const oe=n;if(!(typeof fe=="number"&&isFinite(fe))){const ie={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+Z.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ie]:s.push(ie),n++}var y=oe===n;if(!y)break}if(ee===n){if(D.BYTES_PER_ELEMENT!==void 0){let Z=D.BYTES_PER_ELEMENT;const fe=n;if(!(typeof Z=="number"&&isFinite(Z))){const oe={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[oe]:s.push(oe),n++}var T=fe===n}else var T=!0;if(T){if(D.buffer!==void 0){let Z=D.buffer;const fe=n;if(n===fe)if(Z&&typeof Z=="object"&&!Array.isArray(Z)){let ie;if(Z.byteLength===void 0&&(ie="byteLength")){const Ae={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:ie},message:"must have required property '"+ie+"'"};s===null?s=[Ae]:s.push(Ae),n++}else{const Ae=n;for(const Oe in Z)if(Oe!=="byteLength"){const Xe={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Oe},message:"must NOT have additional properties"};s===null?s=[Xe]:s.push(Xe),n++;break}if(Ae===n&&Z.byteLength!==void 0){let Oe=Z.byteLength;if(!(typeof Oe=="number"&&isFinite(Oe))){const Xe={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Xe]:s.push(Xe),n++}}}}else{const ie={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[ie]:s.push(ie),n++}var T=fe===n}else var T=!0;if(T){if(D.byteLength!==void 0){let Z=D.byteLength;const fe=n;if(!(typeof Z=="number"&&isFinite(Z))){const ie={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ie]:s.push(ie),n++}var T=fe===n}else var T=!0;if(T){if(D.byteOffset!==void 0){let Z=D.byteOffset;const fe=n;if(!(typeof Z=="number"&&isFinite(Z))){const ie={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteOffset",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ie]:s.push(ie),n++}var T=fe===n}else var T=!0;if(T)if(D.length!==void 0){let Z=D.length;const fe=n;if(!(typeof Z=="number"&&isFinite(Z))){const ie={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/length",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ie]:s.push(ie),n++}var T=fe===n}else var T=!0}}}}}}else{const X={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[X]:s.push(X),n++}var m=te===n;if(Y=Y||m,!Y){const X=n;if(n===X)if(D&&typeof D=="object"&&!Array.isArray(D)){let Z;if(D.lastModified===void 0&&(Z="lastModified")||D.name===void 0&&(Z="name")||D.size===void 0&&(Z="size")||D.type===void 0&&(Z="type")||D.webkitRelativePath===void 0&&(Z="webkitRelativePath")){const fe={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:Z},message:"must have required property '"+Z+"'"};s===null?s=[fe]:s.push(fe),n++}else{const fe=n;for(const oe in D)if(!(oe==="size"||oe==="type"||oe==="lastModified"||oe==="name"||oe==="webkitRelativePath")){const ie={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:oe},message:"must NOT have additional properties"};s===null?s=[ie]:s.push(ie),n++;break}if(fe===n){if(D.size!==void 0){let oe=D.size;const ie=n;if(!(typeof oe=="number"&&isFinite(oe))){const Ae={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/size",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ae]:s.push(Ae),n++}var g=ie===n}else var g=!0;if(g){if(D.type!==void 0){const oe=n;if(typeof D.type!="string"){const Ae={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/type",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Ae]:s.push(Ae),n++}var g=oe===n}else var g=!0;if(g){if(D.lastModified!==void 0){let oe=D.lastModified;const ie=n;if(!(typeof oe=="number"&&isFinite(oe))){const Oe={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/lastModified",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/lastModified/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Oe]:s.push(Oe),n++}var g=ie===n}else var g=!0;if(g){if(D.name!==void 0){const oe=n;if(typeof D.name!="string"){const Ae={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Ae]:s.push(Ae),n++}var g=oe===n}else var g=!0;if(g)if(D.webkitRelativePath!==void 0){const oe=n;if(typeof D.webkitRelativePath!="string"){const Ae={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/webkitRelativePath",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/webkitRelativePath/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Ae]:s.push(Ae),n++}var g=oe===n}else var g=!0}}}}}}else{const Z={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Z]:s.push(Z),n++}var m=X===n;Y=Y||m}}if(Y)n=B,s!==null&&(B?s.length=B:s=null);else{const te={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};s===null?s=[te]:s.push(te),n++}var w=V===n;if(!w)break}else{const R={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[R]:s.push(R),n++}var p=S===n;L=L||p}}if(L)n=$,s!==null&&($?s.length=$:s=null);else{const F={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[F]:s.push(F),n++,vt.errors=s,!1}var o=I===n}else var o=!0}}}}}else return vt.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return vt.errors=s,n===0}const Pv={properties:{relativeUri:{type:"string",description:"Request path following the domain:port part – after any URL rewriting rules (e.g. apache .htaccess) have been applied."},scriptPath:{type:"string",description:"Path of the .php file to execute."},protocol:{type:"string",description:"Request protocol."},method:{$ref:"#/definitions/HTTPMethod",description:"Request method. Default: `GET`."},headers:{$ref:"#/definitions/PHPRequestHeaders",description:"Request headers."},body:{anyOf:[{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"Request body."},env:{type:"object",additionalProperties:{type:"string"},description:"Environment variables to set for this run."},$_SERVER:{type:"object",additionalProperties:{type:"string"},description:"$_SERVER entries to set for this run."},code:{type:"string",description:"The code snippet to eval instead of a php file."}}};function We(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const T=n;for(const g in e)if(!Wd.call(Pv.properties,g))return We.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:g},message:"must NOT have additional properties"}],!1;if(T===n){if(e.relativeUri!==void 0){const g=n;if(typeof e.relativeUri!="string")return We.errors=[{instancePath:t+"/relativeUri",schemaPath:"#/properties/relativeUri/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=g===n}else var o=!0;if(o){if(e.scriptPath!==void 0){const g=n;if(typeof e.scriptPath!="string")return We.errors=[{instancePath:t+"/scriptPath",schemaPath:"#/properties/scriptPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=g===n}else var o=!0;if(o){if(e.protocol!==void 0){const g=n;if(typeof e.protocol!="string")return We.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=g===n}else var o=!0;if(o){if(e.method!==void 0){let g=e.method;const w=n;if(typeof g!="string")return We.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(g==="GET"||g==="POST"||g==="HEAD"||g==="OPTIONS"||g==="PATCH"||g==="PUT"||g==="DELETE"))return We.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Hd.enum},message:"must be equal to one of the allowed values"}],!1;var o=w===n}else var o=!0;if(o){if(e.headers!==void 0){let g=e.headers;const w=n;if(n===n)if(g&&typeof g=="object"&&!Array.isArray(g))for(const E in g){const I=n;if(typeof g[E]!="string")return We.errors=[{instancePath:t+"/headers/"+E.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=I===n;if(!l)break}else return We.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=w===n}else var o=!0;if(o){if(e.body!==void 0){let g=e.body;const w=n,b=n;let O=!1;const E=n;if(typeof g!="string"){const $={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[$]:s.push($),n++}var p=E===n;if(O=O||p,!O){const $=n;if(n===$)if(g&&typeof g=="object"&&!Array.isArray(g)){let C;if(g.BYTES_PER_ELEMENT===void 0&&(C="BYTES_PER_ELEMENT")||g.buffer===void 0&&(C="buffer")||g.byteLength===void 0&&(C="byteLength")||g.byteOffset===void 0&&(C="byteOffset")||g.length===void 0&&(C="length")){const _={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:C},message:"must have required property '"+C+"'"};s===null?s=[_]:s.push(_),n++}else{const _=n;for(const F in g)if(!(F==="BYTES_PER_ELEMENT"||F==="buffer"||F==="byteLength"||F==="byteOffset"||F==="length")){let P=g[F];const S=n;if(!(typeof P=="number"&&isFinite(P))){const j={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[j]:s.push(j),n++}var c=S===n;if(!c)break}if(_===n){if(g.BYTES_PER_ELEMENT!==void 0){let F=g.BYTES_PER_ELEMENT;const P=n;if(!(typeof F=="number"&&isFinite(F))){const S={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[S]:s.push(S),n++}var d=P===n}else var d=!0;if(d){if(g.buffer!==void 0){let F=g.buffer;const P=n;if(n===P)if(F&&typeof F=="object"&&!Array.isArray(F)){let j;if(F.byteLength===void 0&&(j="byteLength")){const R={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"};s===null?s=[R]:s.push(R),n++}else{const R=n;for(const D in F)if(D!=="byteLength"){const V={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:D},message:"must NOT have additional properties"};s===null?s=[V]:s.push(V),n++;break}if(R===n&&F.byteLength!==void 0){let D=F.byteLength;if(!(typeof D=="number"&&isFinite(D))){const V={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[V]:s.push(V),n++}}}}else{const j={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[j]:s.push(j),n++}var d=P===n}else var d=!0;if(d){if(g.byteLength!==void 0){let F=g.byteLength;const P=n;if(!(typeof F=="number"&&isFinite(F))){const j={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[j]:s.push(j),n++}var d=P===n}else var d=!0;if(d){if(g.byteOffset!==void 0){let F=g.byteOffset;const P=n;if(!(typeof F=="number"&&isFinite(F))){const j={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[j]:s.push(j),n++}var d=P===n}else var d=!0;if(d)if(g.length!==void 0){let F=g.length;const P=n;if(!(typeof F=="number"&&isFinite(F))){const j={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[j]:s.push(j),n++}var d=P===n}else var d=!0}}}}}}else{const C={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[C]:s.push(C),n++}var p=$===n;O=O||p}if(O)n=b,s!==null&&(b?s.length=b:s=null);else{const $={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[$]:s.push($),n++,We.errors=s,!1}var o=w===n}else var o=!0;if(o){if(e.env!==void 0){let g=e.env;const w=n;if(n===w)if(g&&typeof g=="object"&&!Array.isArray(g))for(const O in g){const E=n;if(typeof g[O]!="string")return We.errors=[{instancePath:t+"/env/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=E===n;if(!m)break}else return We.errors=[{instancePath:t+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=w===n}else var o=!0;if(o){if(e.$_SERVER!==void 0){let g=e.$_SERVER;const w=n;if(n===w)if(g&&typeof g=="object"&&!Array.isArray(g))for(const O in g){const E=n;if(typeof g[O]!="string")return We.errors=[{instancePath:t+"/$_SERVER/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var y=E===n;if(!y)break}else return We.errors=[{instancePath:t+"/$_SERVER",schemaPath:"#/properties/%24_SERVER/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=w===n}else var o=!0;if(o)if(e.code!==void 0){const g=n;if(typeof e.code!="string")return We.errors=[{instancePath:t+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=g===n}else var o=!0}}}}}}}}}else return We.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return We.errors=s,n===0}function v(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let Me;if(e.step===void 0&&(Me="step"))return v.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:Me},message:"must have required property '"+Me+"'"}],!1;{const ce=e.step;if(typeof ce=="string")if(ce==="activatePlugin"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.pluginPath===void 0&&(q="pluginPath")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="pluginPath"||f==="pluginName"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/0/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var o=ne===n}else var o=!0;if(o)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/0/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=k===n}else var o=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var l=N===n}else var l=!0;if(l){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="activatePlugin")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/const",keyword:"const",params:{allowedValue:"activatePlugin"},message:"must be equal to constant"}],!1;var l=N===n}else var l=!0;if(l){if(e.pluginPath!==void 0){const f=n;if(typeof e.pluginPath!="string")return v.errors=[{instancePath:t+"/pluginPath",schemaPath:"#/oneOf/0/properties/pluginPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=f===n}else var l=!0;if(l)if(e.pluginName!==void 0){const f=n;if(typeof e.pluginName!="string")return v.errors=[{instancePath:t+"/pluginName",schemaPath:"#/oneOf/0/properties/pluginName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=f===n}else var l=!0}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="activateTheme"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.step===void 0&&(q="step")||e.themeFolderName===void 0&&(q="themeFolderName"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="themeFolderName"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/1/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var p=ne===n}else var p=!0;if(p)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/1/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=k===n}else var p=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var c=N===n}else var c=!0;if(c){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="activateTheme")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/const",keyword:"const",params:{allowedValue:"activateTheme"},message:"must be equal to constant"}],!1;var c=N===n}else var c=!0;if(c)if(e.themeFolderName!==void 0){const f=n;if(typeof e.themeFolderName!="string")return v.errors=[{instancePath:t+"/themeFolderName",schemaPath:"#/oneOf/1/properties/themeFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var c=f===n}else var c=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="cp"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.fromPath===void 0&&(q="fromPath")||e.step===void 0&&(q="step")||e.toPath===void 0&&(q="toPath"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="fromPath"||f==="toPath"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/2/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var d=ne===n}else var d=!0;if(d)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/2/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=k===n}else var d=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var m=N===n}else var m=!0;if(m){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="cp")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/const",keyword:"const",params:{allowedValue:"cp"},message:"must be equal to constant"}],!1;var m=N===n}else var m=!0;if(m){if(e.fromPath!==void 0){const f=n;if(typeof e.fromPath!="string")return v.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/2/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=f===n}else var m=!0;if(m)if(e.toPath!==void 0){const f=n;if(typeof e.toPath!="string")return v.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/2/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=f===n}else var m=!0}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="defineWpConfigConsts"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.consts===void 0&&(q="consts")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="consts"||f==="method"||f==="virtualize"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/3/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var y=ne===n}else var y=!0;if(y)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/3/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var y=k===n}else var y=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var T=N===n}else var T=!0;if(T){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="defineWpConfigConsts")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/const",keyword:"const",params:{allowedValue:"defineWpConfigConsts"},message:"must be equal to constant"}],!1;var T=N===n}else var T=!0;if(T){if(e.consts!==void 0){let f=e.consts;const N=n;if(n===N&&!(f&&typeof f=="object"&&!Array.isArray(f)))return v.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var T=N===n}else var T=!0;if(T){if(e.method!==void 0){let f=e.method;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(f==="rewrite-wp-config"||f==="define-before-run"))return v.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:Cs.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var T=N===n}else var T=!0;if(T)if(e.virtualize!==void 0){const f=n;if(typeof e.virtualize!="boolean")return v.errors=[{instancePath:t+"/virtualize",schemaPath:"#/oneOf/3/properties/virtualize/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var T=f===n}else var T=!0}}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="defineSiteUrl"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.siteUrl===void 0&&(q="siteUrl")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="siteUrl"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/4/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var g=ne===n}else var g=!0;if(g)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/4/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=k===n}else var g=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var w=N===n}else var w=!0;if(w){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="defineSiteUrl")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/const",keyword:"const",params:{allowedValue:"defineSiteUrl"},message:"must be equal to constant"}],!1;var w=N===n}else var w=!0;if(w)if(e.siteUrl!==void 0){const f=n;if(typeof e.siteUrl!="string")return v.errors=[{instancePath:t+"/siteUrl",schemaPath:"#/oneOf/4/properties/siteUrl/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var w=f===n}else var w=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="enableMultisite"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="wpCliPath"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/5/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var b=ne===n}else var b=!0;if(b)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/5/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=k===n}else var b=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var O=N===n}else var O=!0;if(O){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="enableMultisite")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/const",keyword:"const",params:{allowedValue:"enableMultisite"},message:"must be equal to constant"}],!1;var O=N===n}else var O=!0;if(O)if(e.wpCliPath!==void 0){const f=n;if(typeof e.wpCliPath!="string")return v.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/5/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=f===n}else var O=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importWxr"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.file===void 0&&(q="file")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="file"||f==="importer"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/6/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var E=ne===n}else var E=!0;if(E)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/6/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var E=k===n}else var E=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var I=N===n}else var I=!0;if(I){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="importWxr")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/const",keyword:"const",params:{allowedValue:"importWxr"},message:"must be equal to constant"}],!1;var I=N===n}else var I=!0;if(I){if(e.file!==void 0){const f=n;_e(e.file,{instancePath:t+"/file",parentData:e,parentDataProperty:"file",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var I=f===n}else var I=!0;if(I)if(e.importer!==void 0){let f=e.importer;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(f==="data-liberation"||f==="default"))return v.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/enum",keyword:"enum",params:{allowedValues:Cs.oneOf[6].properties.importer.enum},message:"must be equal to one of the allowed values"}],!1;var I=N===n}else var I=!0}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importThemeStarterContent"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="themeSlug"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/7/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var $=ne===n}else var $=!0;if($)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/7/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $=k===n}else var $=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var L=N===n}else var L=!0;if(L){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="importThemeStarterContent")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/const",keyword:"const",params:{allowedValue:"importThemeStarterContent"},message:"must be equal to constant"}],!1;var L=N===n}else var L=!0;if(L)if(e.themeSlug!==void 0){const f=n;if(typeof e.themeSlug!="string")return v.errors=[{instancePath:t+"/themeSlug",schemaPath:"#/oneOf/7/properties/themeSlug/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var L=f===n}else var L=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importWordPressFiles"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.step===void 0&&(q="step")||e.wordPressFilesZip===void 0&&(q="wordPressFilesZip"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="wordPressFilesZip"||f==="pathInZip"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/8/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var C=ne===n}else var C=!0;if(C)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/8/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=k===n}else var C=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var _=N===n}else var _=!0;if(_){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="importWordPressFiles")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/const",keyword:"const",params:{allowedValue:"importWordPressFiles"},message:"must be equal to constant"}],!1;var _=N===n}else var _=!0;if(_){if(e.wordPressFilesZip!==void 0){const f=n;_e(e.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:e,parentDataProperty:"wordPressFilesZip",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var _=f===n}else var _=!0;if(_)if(e.pathInZip!==void 0){const f=n;if(typeof e.pathInZip!="string")return v.errors=[{instancePath:t+"/pathInZip",schemaPath:"#/oneOf/8/properties/pathInZip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=f===n}else var _=!0}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="installPlugin"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.pluginData===void 0&&(q="pluginData")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="ifAlreadyInstalled"||f==="step"||f==="pluginData"||f==="pluginZipFile"||f==="options"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/9/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var F=ne===n}else var F=!0;if(F)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/9/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var F=k===n}else var F=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var P=N===n}else var P=!0;if(P){if(e.ifAlreadyInstalled!==void 0){let f=e.ifAlreadyInstalled;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(f==="overwrite"||f==="skip"||f==="error"))return v.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Cs.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var P=N===n}else var P=!0;if(P){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="installPlugin")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/const",keyword:"const",params:{allowedValue:"installPlugin"},message:"must be equal to constant"}],!1;var P=N===n}else var P=!0;if(P){if(e.pluginData!==void 0){let f=e.pluginData;const N=n,re=n;let k=!1;const ne=n;_e(f,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var S=ne===n;if(k=k||S,!k){const ke=n;ut(f,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:a})||(s=s===null?ut.errors:s.concat(ut.errors),n=s.length);var S=ke===n;k=k||S}if(k)n=re,s!==null&&(re?s.length=re:s=null);else{const ke={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ke]:s.push(ke),n++,v.errors=s,!1}var P=N===n}else var P=!0;if(P){if(e.pluginZipFile!==void 0){const f=n;_e(e.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:e,parentDataProperty:"pluginZipFile",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var P=f===n}else var P=!0;if(P)if(e.options!==void 0){let f=e.options;const N=n;if(n===n)if(f&&typeof f=="object"&&!Array.isArray(f)){const ne=n;for(const $e in f)if(!($e==="activate"||$e==="targetFolderName"))return v.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:$e},message:"must NOT have additional properties"}],!1;if(ne===n){if(f.activate!==void 0){const $e=n;if(typeof f.activate!="boolean")return v.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallPluginOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var j=$e===n}else var j=!0;if(j)if(f.targetFolderName!==void 0){const $e=n;if(typeof f.targetFolderName!="string")return v.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallPluginOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var j=$e===n}else var j=!0}}else return v.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var P=N===n}else var P=!0}}}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="installTheme"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.step===void 0&&(q="step")||e.themeData===void 0&&(q="themeData"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="ifAlreadyInstalled"||f==="step"||f==="themeData"||f==="themeZipFile"||f==="options"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/10/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var R=ne===n}else var R=!0;if(R)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/10/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var R=k===n}else var R=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var D=N===n}else var D=!0;if(D){if(e.ifAlreadyInstalled!==void 0){let f=e.ifAlreadyInstalled;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(f==="overwrite"||f==="skip"||f==="error"))return v.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Cs.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var D=N===n}else var D=!0;if(D){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="installTheme")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/const",keyword:"const",params:{allowedValue:"installTheme"},message:"must be equal to constant"}],!1;var D=N===n}else var D=!0;if(D){if(e.themeData!==void 0){let f=e.themeData;const N=n,re=n;let k=!1;const ne=n;_e(f,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var V=ne===n;if(k=k||V,!k){const ke=n;ut(f,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:a})||(s=s===null?ut.errors:s.concat(ut.errors),n=s.length);var V=ke===n;k=k||V}if(k)n=re,s!==null&&(re?s.length=re:s=null);else{const ke={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ke]:s.push(ke),n++,v.errors=s,!1}var D=N===n}else var D=!0;if(D){if(e.themeZipFile!==void 0){const f=n;_e(e.themeZipFile,{instancePath:t+"/themeZipFile",parentData:e,parentDataProperty:"themeZipFile",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var D=f===n}else var D=!0;if(D)if(e.options!==void 0){let f=e.options;const N=n;if(n===n)if(f&&typeof f=="object"&&!Array.isArray(f)){const ne=n;for(const $e in f)if(!($e==="activate"||$e==="importStarterContent"||$e==="targetFolderName"))return v.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:$e},message:"must NOT have additional properties"}],!1;if(ne===n){if(f.activate!==void 0){const $e=n;if(typeof f.activate!="boolean")return v.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallThemeOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var B=$e===n}else var B=!0;if(B){if(f.importStarterContent!==void 0){const $e=n;if(typeof f.importStarterContent!="boolean")return v.errors=[{instancePath:t+"/options/importStarterContent",schemaPath:"#/definitions/InstallThemeOptions/properties/importStarterContent/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var B=$e===n}else var B=!0;if(B)if(f.targetFolderName!==void 0){const $e=n;if(typeof f.targetFolderName!="string")return v.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallThemeOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var B=$e===n}else var B=!0}}}else return v.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var D=N===n}else var D=!0}}}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="login"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="username"||f==="password"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/11/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Y=ne===n}else var Y=!0;if(Y)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/11/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Y=k===n}else var Y=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var G=N===n}else var G=!0;if(G){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="login")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/const",keyword:"const",params:{allowedValue:"login"},message:"must be equal to constant"}],!1;var G=N===n}else var G=!0;if(G){if(e.username!==void 0){const f=n;if(typeof e.username!="string")return v.errors=[{instancePath:t+"/username",schemaPath:"#/oneOf/11/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var G=f===n}else var G=!0;if(G)if(e.password!==void 0){const f=n;if(typeof e.password!="string")return v.errors=[{instancePath:t+"/password",schemaPath:"#/oneOf/11/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var G=f===n}else var G=!0}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="mkdir"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.path===void 0&&(q="path")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="path"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/12/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var te=ne===n}else var te=!0;if(te)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/12/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var te=k===n}else var te=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var z=N===n}else var z=!0;if(z){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="mkdir")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/const",keyword:"const",params:{allowedValue:"mkdir"},message:"must be equal to constant"}],!1;var z=N===n}else var z=!0;if(z)if(e.path!==void 0){const f=n;if(typeof e.path!="string")return v.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/12/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var z=f===n}else var z=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="mv"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.fromPath===void 0&&(q="fromPath")||e.step===void 0&&(q="step")||e.toPath===void 0&&(q="toPath"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="fromPath"||f==="toPath"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/13/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var X=ne===n}else var X=!0;if(X)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/13/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var X=k===n}else var X=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ee=N===n}else var ee=!0;if(ee){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="mv")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/const",keyword:"const",params:{allowedValue:"mv"},message:"must be equal to constant"}],!1;var ee=N===n}else var ee=!0;if(ee){if(e.fromPath!==void 0){const f=n;if(typeof e.fromPath!="string")return v.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/13/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=f===n}else var ee=!0;if(ee)if(e.toPath!==void 0){const f=n;if(typeof e.toPath!="string")return v.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/13/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=f===n}else var ee=!0}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="resetData"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/14/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Z=ne===n}else var Z=!0;if(Z)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/14/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Z=k===n}else var Z=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var fe=N===n}else var fe=!0;if(fe)if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="resetData")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/const",keyword:"const",params:{allowedValue:"resetData"},message:"must be equal to constant"}],!1;var fe=N===n}else var fe=!0}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="request"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.request===void 0&&(q="request")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="request"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/15/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var oe=ne===n}else var oe=!0;if(oe)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/15/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var oe=k===n}else var oe=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ie=N===n}else var ie=!0;if(ie){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="request")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/const",keyword:"const",params:{allowedValue:"request"},message:"must be equal to constant"}],!1;var ie=N===n}else var ie=!0;if(ie)if(e.request!==void 0){const f=n;vt(e.request,{instancePath:t+"/request",parentData:e,parentDataProperty:"request",rootData:a})||(s=s===null?vt.errors:s.concat(vt.errors),n=s.length);var ie=f===n}else var ie=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="rm"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.path===void 0&&(q="path")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/16/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="path"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/16/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ae=ne===n}else var Ae=!0;if(Ae)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/16/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ae=k===n}else var Ae=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Oe=N===n}else var Oe=!0;if(Oe){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="rm")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/const",keyword:"const",params:{allowedValue:"rm"},message:"must be equal to constant"}],!1;var Oe=N===n}else var Oe=!0;if(Oe)if(e.path!==void 0){const f=n;if(typeof e.path!="string")return v.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/16/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Oe=f===n}else var Oe=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="rmdir"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.path===void 0&&(q="path")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/17/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="path"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/17/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Xe=ne===n}else var Xe=!0;if(Xe)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/17/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Xe=k===n}else var Xe=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var tt=N===n}else var tt=!0;if(tt){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="rmdir")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/const",keyword:"const",params:{allowedValue:"rmdir"},message:"must be equal to constant"}],!1;var tt=N===n}else var tt=!0;if(tt)if(e.path!==void 0){const f=n;if(typeof e.path!="string")return v.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/17/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var tt=f===n}else var tt=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runPHP"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.code===void 0&&(q="code")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/18/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="code"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/18/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Et=ne===n}else var Et=!0;if(Et)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/18/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Et=k===n}else var Et=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ie=N===n}else var Ie=!0;if(Ie){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="runPHP")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/const",keyword:"const",params:{allowedValue:"runPHP"},message:"must be equal to constant"}],!1;var Ie=N===n}else var Ie=!0;if(Ie)if(e.code!==void 0){let f=e.code;const N=n,re=n;let k=!1;const ne=n;if(typeof f!="string"){const ke={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[ke]:s.push(ke),n++}var Ce=ne===n;if(k=k||Ce,!k){const ke=n;if(n===ke)if(f&&typeof f=="object"&&!Array.isArray(f)){let ze;if(f.filename===void 0&&(ze="filename")||f.content===void 0&&(ze="content")){const er={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/required",keyword:"required",params:{missingProperty:ze},message:"must have required property '"+ze+"'"};s===null?s=[er]:s.push(er),n++}else{const er=n;for(const qe in f)if(!(qe==="filename"||qe==="content")){const Bt={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:qe},message:"must NOT have additional properties"};s===null?s=[Bt]:s.push(Bt),n++;break}if(er===n){if(f.filename!==void 0){const qe=n;if(typeof f.filename!="string"){const Bt={instancePath:t+"/code/filename",schemaPath:"#/oneOf/18/properties/code/anyOf/1/properties/filename/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Bt]:s.push(Bt),n++}var pt=qe===n}else var pt=!0;if(pt)if(f.content!==void 0){const qe=n;if(typeof f.content!="string"){const be={instancePath:t+"/code/content",schemaPath:"#/oneOf/18/properties/code/anyOf/1/properties/content/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[be]:s.push(be),n++}var pt=qe===n}else var pt=!0}}}else{const ze={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[ze]:s.push(ze),n++}var Ce=ke===n;k=k||Ce}if(k)n=re,s!==null&&(re?s.length=re:s=null);else{const ke={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ke]:s.push(ke),n++,v.errors=s,!1}var Ie=N===n}else var Ie=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runPHPWithOptions"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.options===void 0&&(q="options")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/19/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="options"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/19/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Re=ne===n}else var Re=!0;if(Re)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/19/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Re=k===n}else var Re=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var x=N===n}else var x=!0;if(x){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="runPHPWithOptions")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/const",keyword:"const",params:{allowedValue:"runPHPWithOptions"},message:"must be equal to constant"}],!1;var x=N===n}else var x=!0;if(x)if(e.options!==void 0){const f=n;We(e.options,{instancePath:t+"/options",parentData:e,parentDataProperty:"options",rootData:a})||(s=s===null?We.errors:s.concat(We.errors),n=s.length);var x=f===n}else var x=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/19/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runWpInstallationWizard"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.options===void 0&&(q="options")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/20/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="options"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/20/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var u=ne===n}else var u=!0;if(u)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/20/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=k===n}else var u=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var h=N===n}else var h=!0;if(h){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="runWpInstallationWizard")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/const",keyword:"const",params:{allowedValue:"runWpInstallationWizard"},message:"must be equal to constant"}],!1;var h=N===n}else var h=!0;if(h)if(e.options!==void 0){let f=e.options;const N=n;if(n===n)if(f&&typeof f=="object"&&!Array.isArray(f)){const ne=n;for(const $e in f)if(!($e==="adminUsername"||$e==="adminPassword"))return v.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:$e},message:"must NOT have additional properties"}],!1;if(ne===n){if(f.adminUsername!==void 0){const $e=n;if(typeof f.adminUsername!="string")return v.errors=[{instancePath:t+"/options/adminUsername",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminUsername/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var A=$e===n}else var A=!0;if(A)if(f.adminPassword!==void 0){const $e=n;if(typeof f.adminPassword!="string")return v.errors=[{instancePath:t+"/options/adminPassword",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminPassword/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var A=$e===n}else var A=!0}}else return v.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var h=N===n}else var h=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runSql"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.sql===void 0&&(q="sql")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/21/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="sql"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/21/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var U=ne===n}else var U=!0;if(U)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/21/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var U=k===n}else var U=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var H=N===n}else var H=!0;if(H){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="runSql")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/const",keyword:"const",params:{allowedValue:"runSql"},message:"must be equal to constant"}],!1;var H=N===n}else var H=!0;if(H)if(e.sql!==void 0){const f=n;_e(e.sql,{instancePath:t+"/sql",parentData:e,parentDataProperty:"sql",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var H=f===n}else var H=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="setSiteOptions"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.options===void 0&&(q="options")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/22/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="options"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/22/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var J=ne===n}else var J=!0;if(J)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/22/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var J=k===n}else var J=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=N===n}else var pe=!0;if(pe){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="setSiteOptions")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/const",keyword:"const",params:{allowedValue:"setSiteOptions"},message:"must be equal to constant"}],!1;var pe=N===n}else var pe=!0;if(pe)if(e.options!==void 0){let f=e.options;const N=n;if(n===N&&!(f&&typeof f=="object"&&!Array.isArray(f)))return v.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=N===n}else var pe=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="unzip"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.extractToPath===void 0&&(q="extractToPath")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/23/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="zipFile"||f==="zipPath"||f==="extractToPath"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/23/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var we=ne===n}else var we=!0;if(we)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/23/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var we=k===n}else var we=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var he=N===n}else var he=!0;if(he){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="unzip")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/const",keyword:"const",params:{allowedValue:"unzip"},message:"must be equal to constant"}],!1;var he=N===n}else var he=!0;if(he){if(e.zipFile!==void 0){const f=n;_e(e.zipFile,{instancePath:t+"/zipFile",parentData:e,parentDataProperty:"zipFile",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var he=f===n}else var he=!0;if(he){if(e.zipPath!==void 0){const f=n;if(typeof e.zipPath!="string")return v.errors=[{instancePath:t+"/zipPath",schemaPath:"#/oneOf/23/properties/zipPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=f===n}else var he=!0;if(he)if(e.extractToPath!==void 0){const f=n;if(typeof e.extractToPath!="string")return v.errors=[{instancePath:t+"/extractToPath",schemaPath:"#/oneOf/23/properties/extractToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=f===n}else var he=!0}}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/23/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="updateUserMeta"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.meta===void 0&&(q="meta")||e.step===void 0&&(q="step")||e.userId===void 0&&(q="userId"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/24/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="meta"||f==="userId"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/24/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var De=ne===n}else var De=!0;if(De)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/24/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var De=k===n}else var De=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ue=N===n}else var ue=!0;if(ue){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="updateUserMeta")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/const",keyword:"const",params:{allowedValue:"updateUserMeta"},message:"must be equal to constant"}],!1;var ue=N===n}else var ue=!0;if(ue){if(e.meta!==void 0){let f=e.meta;const N=n;if(n===N&&!(f&&typeof f=="object"&&!Array.isArray(f)))return v.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ue=N===n}else var ue=!0;if(ue)if(e.userId!==void 0){let f=e.userId;const N=n;if(!(typeof f=="number"&&isFinite(f)))return v.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ue=N===n}else var ue=!0}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/24/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="writeFile"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.data===void 0&&(q="data")||e.path===void 0&&(q="path")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/25/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="path"||f==="data"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/25/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var yt=ne===n}else var yt=!0;if(yt)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/25/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var yt=k===n}else var yt=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var rt=N===n}else var rt=!0;if(rt){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="writeFile")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/const",keyword:"const",params:{allowedValue:"writeFile"},message:"must be equal to constant"}],!1;var rt=N===n}else var rt=!0;if(rt){if(e.path!==void 0){const f=n;if(typeof e.path!="string")return v.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/25/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var rt=f===n}else var rt=!0;if(rt)if(e.data!==void 0){let f=e.data;const N=n,re=n;let k=!1;const ne=n;_e(f,{instancePath:t+"/data",parentData:e,parentDataProperty:"data",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var Ft=ne===n;if(k=k||Ft,!k){const ke=n;if(typeof f!="string"){const ze={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[ze]:s.push(ze),n++}var Ft=ke===n;if(k=k||Ft,!k){const ze=n;if(n===ze)if(f&&typeof f=="object"&&!Array.isArray(f)){let qe;if(f.BYTES_PER_ELEMENT===void 0&&(qe="BYTES_PER_ELEMENT")||f.buffer===void 0&&(qe="buffer")||f.byteLength===void 0&&(qe="byteLength")||f.byteOffset===void 0&&(qe="byteOffset")||f.length===void 0&&(qe="length")){const Bt={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:qe},message:"must have required property '"+qe+"'"};s===null?s=[Bt]:s.push(Bt),n++}else{const Bt=n;for(const be in f)if(!(be==="BYTES_PER_ELEMENT"||be==="buffer"||be==="byteLength"||be==="byteOffset"||be==="length")){let gt=f[be];const gs=n;if(!(typeof gt=="number"&&isFinite(gt))){const Ve={instancePath:t+"/data/"+be.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/oneOf/25/properties/data/anyOf/2/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ve]:s.push(Ve),n++}var Ci=gs===n;if(!Ci)break}if(Bt===n){if(f.BYTES_PER_ELEMENT!==void 0){let be=f.BYTES_PER_ELEMENT;const gt=n;if(!(typeof be=="number"&&isFinite(be))){const gs={instancePath:t+"/data/BYTES_PER_ELEMENT",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[gs]:s.push(gs),n++}var nt=gt===n}else var nt=!0;if(nt){if(f.buffer!==void 0){let be=f.buffer;const gt=n;if(n===gt)if(be&&typeof be=="object"&&!Array.isArray(be)){let Ve;if(be.byteLength===void 0&&(Ve="byteLength")){const ws={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:Ve},message:"must have required property '"+Ve+"'"};s===null?s=[ws]:s.push(ws),n++}else{const ws=n;for(const _n in be)if(_n!=="byteLength"){const vn={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:_n},message:"must NOT have additional properties"};s===null?s=[vn]:s.push(vn),n++;break}if(ws===n&&be.byteLength!==void 0){let _n=be.byteLength;if(!(typeof _n=="number"&&isFinite(_n))){const vn={instancePath:t+"/data/buffer/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[vn]:s.push(vn),n++}}}}else{const Ve={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Ve]:s.push(Ve),n++}var nt=gt===n}else var nt=!0;if(nt){if(f.byteLength!==void 0){let be=f.byteLength;const gt=n;if(!(typeof be=="number"&&isFinite(be))){const Ve={instancePath:t+"/data/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ve]:s.push(Ve),n++}var nt=gt===n}else var nt=!0;if(nt){if(f.byteOffset!==void 0){let be=f.byteOffset;const gt=n;if(!(typeof be=="number"&&isFinite(be))){const Ve={instancePath:t+"/data/byteOffset",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ve]:s.push(Ve),n++}var nt=gt===n}else var nt=!0;if(nt)if(f.length!==void 0){let be=f.length;const gt=n;if(!(typeof be=="number"&&isFinite(be))){const Ve={instancePath:t+"/data/length",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ve]:s.push(Ve),n++}var nt=gt===n}else var nt=!0}}}}}}else{const qe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[qe]:s.push(qe),n++}var Ft=ze===n;k=k||Ft}}if(k)n=re,s!==null&&(re?s.length=re:s=null);else{const ke={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ke]:s.push(ke),n++,v.errors=s,!1}var rt=N===n}else var rt=!0}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/25/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="writeFiles"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.filesTree===void 0&&(q="filesTree")||e.step===void 0&&(q="step")||e.writeToPath===void 0&&(q="writeToPath"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/26/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="writeToPath"||f==="filesTree"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/26/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Vr=ne===n}else var Vr=!0;if(Vr)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/26/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Vr=k===n}else var Vr=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var M=N===n}else var M=!0;if(M){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="writeFiles")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/const",keyword:"const",params:{allowedValue:"writeFiles"},message:"must be equal to constant"}],!1;var M=N===n}else var M=!0;if(M){if(e.writeToPath!==void 0){const f=n;if(typeof e.writeToPath!="string")return v.errors=[{instancePath:t+"/writeToPath",schemaPath:"#/oneOf/26/properties/writeToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var M=f===n}else var M=!0;if(M)if(e.filesTree!==void 0){const f=n;ut(e.filesTree,{instancePath:t+"/filesTree",parentData:e,parentDataProperty:"filesTree",rootData:a})||(s=s===null?ut.errors:s.concat(ut.errors),n=s.length);var M=f===n}else var M=!0}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/26/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="wp-cli"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.command===void 0&&(q="command")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/27/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="command"||f==="wpCliPath"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/27/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var K=ne===n}else var K=!0;if(K)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/27/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var K=k===n}else var K=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var W=N===n}else var W=!0;if(W){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="wp-cli")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var W=N===n}else var W=!0;if(W){if(e.command!==void 0){let f=e.command;const N=n,re=n;let k=!1;const ne=n;if(typeof f!="string"){const ke={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[ke]:s.push(ke),n++}var Q=ne===n;if(k=k||Q,!k){const ke=n;if(n===ke)if(Array.isArray(f)){var se=!0;const ze=f.length;for(let er=0;er<ze;er++){const qe=n;if(typeof f[er]!="string"){const be={instancePath:t+"/command/"+er,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[be]:s.push(be),n++}var se=qe===n;if(!se)break}}else{const ze={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[ze]:s.push(ze),n++}var Q=ke===n;k=k||Q}if(k)n=re,s!==null&&(re?s.length=re:s=null);else{const ke={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ke]:s.push(ke),n++,v.errors=s,!1}var W=N===n}else var W=!0;if(W)if(e.wpCliPath!==void 0){const f=n;if(typeof e.wpCliPath!="string")return v.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/27/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var W=f===n}else var W=!0}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/27/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="setSiteLanguage"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.language===void 0&&(q="language")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/28/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="language"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/28/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var le=ne===n}else var le=!0;if(le)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/28/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var le=k===n}else var le=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var de=N===n}else var de=!0;if(de){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="setSiteLanguage")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/const",keyword:"const",params:{allowedValue:"setSiteLanguage"},message:"must be equal to constant"}],!1;var de=N===n}else var de=!0;if(de)if(e.language!==void 0){const f=n;if(typeof e.language!="string")return v.errors=[{instancePath:t+"/language",schemaPath:"#/oneOf/28/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var de=f===n}else var de=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/28/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else return v.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"step",tagValue:ce},message:'value of tag "step" must be in oneOf'}],!1;else return v.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"step",tagValue:ce},message:'tag "step" must be string'}],!1}}else return v.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return v.errors=s,n===0}function me(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const C=n;for(const _ in e)if(!Wd.call(wv.properties,_))return me.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:_},message:"must NOT have additional properties"}],!1;if(C===n){if(e.landingPage!==void 0){const _=n;if(typeof e.landingPage!="string")return me.errors=[{instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=_===n}else var o=!0;if(o){if(e.description!==void 0){const _=n;if(typeof e.description!="string")return me.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=_===n}else var o=!0;if(o){if(e.meta!==void 0){let _=e.meta;const F=n;if(n===F)if(_&&typeof _=="object"&&!Array.isArray(_)){let S;if(_.title===void 0&&(S="title")||_.author===void 0&&(S="author"))return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:S},message:"must have required property '"+S+"'"}],!1;{const j=n;for(const R in _)if(!(R==="title"||R==="description"||R==="author"||R==="categories"))return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:R},message:"must NOT have additional properties"}],!1;if(j===n){if(_.title!==void 0){const R=n;if(typeof _.title!="string")return me.errors=[{instancePath:t+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=R===n}else var l=!0;if(l){if(_.description!==void 0){const R=n;if(typeof _.description!="string")return me.errors=[{instancePath:t+"/meta/description",schemaPath:"#/properties/meta/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=R===n}else var l=!0;if(l){if(_.author!==void 0){const R=n;if(typeof _.author!="string")return me.errors=[{instancePath:t+"/meta/author",schemaPath:"#/properties/meta/properties/author/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=R===n}else var l=!0;if(l)if(_.categories!==void 0){let R=_.categories;const D=n;if(n===D)if(Array.isArray(R)){var p=!0;const B=R.length;for(let Y=0;Y<B;Y++){const G=n;if(typeof R[Y]!="string")return me.errors=[{instancePath:t+"/meta/categories/"+Y,schemaPath:"#/properties/meta/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=G===n;if(!p)break}}else return me.errors=[{instancePath:t+"/meta/categories",schemaPath:"#/properties/meta/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var l=D===n}else var l=!0}}}}}else return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=F===n}else var o=!0;if(o){if(e.preferredVersions!==void 0){let _=e.preferredVersions;const F=n;if(n===F)if(_&&typeof _=="object"&&!Array.isArray(_)){let S;if(_.php===void 0&&(S="php")||_.wp===void 0&&(S="wp"))return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:S},message:"must have required property '"+S+"'"}],!1;{const j=n;for(const R in _)if(!(R==="php"||R==="wp"))return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:R},message:"must NOT have additional properties"}],!1;if(j===n){if(_.php!==void 0){let R=_.php;const D=n,V=n;let B=!1;const Y=n;Un(R,{instancePath:t+"/preferredVersions/php",parentData:_,parentDataProperty:"php",rootData:a})||(s=s===null?Un.errors:s.concat(Un.errors),n=s.length);var c=Y===n;if(B=B||c,!B){const G=n;if(typeof R!="string"){const z={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[z]:s.push(z),n++}if(R!=="latest"){const z={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/const",keyword:"const",params:{allowedValue:"latest"},message:"must be equal to constant"};s===null?s=[z]:s.push(z),n++}var c=G===n;B=B||c}if(B)n=V,s!==null&&(V?s.length=V:s=null);else{const G={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[G]:s.push(G),n++,me.errors=s,!1}var d=D===n}else var d=!0;if(d)if(_.wp!==void 0){let R=_.wp;const D=n,V=n;let B=!1;const Y=n;if(typeof R!="string"){const te={instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[te]:s.push(te),n++}var m=Y===n;if(B=B||m,!B){const te=n;if(typeof R!="string"){const X={instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[X]:s.push(X),n++}if(R!=="latest"){const X={instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/anyOf/1/const",keyword:"const",params:{allowedValue:"latest"},message:"must be equal to constant"};s===null?s=[X]:s.push(X),n++}var m=te===n;if(B=B||m,!B){const X=n;if(typeof R!="boolean"){const Z={instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/anyOf/2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[Z]:s.push(Z),n++}if(R!==!1){const Z={instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/anyOf/2/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};s===null?s=[Z]:s.push(Z),n++}var m=X===n;B=B||m}}if(B)n=V,s!==null&&(V?s.length=V:s=null);else{const te={instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[te]:s.push(te),n++,me.errors=s,!1}var d=D===n}else var d=!0}}}else return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=F===n}else var o=!0;if(o){if(e.features!==void 0){let _=e.features;const F=n;if(n===F)if(_&&typeof _=="object"&&!Array.isArray(_)){const S=n;for(const j in _)if(!(j==="intl"||j==="networking"))return me.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:j},message:"must NOT have additional properties"}],!1;if(S===n){if(_.intl!==void 0){const j=n;if(typeof _.intl!="boolean")return me.errors=[{instancePath:t+"/features/intl",schemaPath:"#/properties/features/properties/intl/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var y=j===n}else var y=!0;if(y)if(_.networking!==void 0){const j=n;if(typeof _.networking!="boolean")return me.errors=[{instancePath:t+"/features/networking",schemaPath:"#/properties/features/properties/networking/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var y=j===n}else var y=!0}}else return me.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=F===n}else var o=!0;if(o){if(e.extraLibraries!==void 0){let _=e.extraLibraries;const F=n;if(n===F)if(Array.isArray(_)){var T=!0;const S=_.length;for(let j=0;j<S;j++){let R=_[j];const D=n;if(typeof R!="string")return me.errors=[{instancePath:t+"/extraLibraries/"+j,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(R!=="wp-cli")return me.errors=[{instancePath:t+"/extraLibraries/"+j,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var T=D===n;if(!T)break}}else return me.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=F===n}else var o=!0;if(o){if(e.constants!==void 0){let _=e.constants;const F=n;if(n===n)if(_&&typeof _=="object"&&!Array.isArray(_))for(const j in _){let R=_[j];const D=n;if(typeof R!="string"&&typeof R!="boolean"&&!(typeof R=="number"&&isFinite(R)))return me.errors=[{instancePath:t+"/constants/"+j.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:bv.additionalProperties.type},message:"must be string,boolean,number"}],!1;var g=D===n;if(!g)break}else return me.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=F===n}else var o=!0;if(o){if(e.plugins!==void 0){let _=e.plugins;const F=n;if(n===F)if(Array.isArray(_)){var w=!0;const S=_.length;for(let j=0;j<S;j++){let R=_[j];const D=n,V=n;let B=!1;const Y=n;if(typeof R!="string"){const te={instancePath:t+"/plugins/"+j,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[te]:s.push(te),n++}var b=Y===n;if(B=B||b,!B){const te=n;_e(R,{instancePath:t+"/plugins/"+j,parentData:_,parentDataProperty:j,rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var b=te===n;B=B||b}if(B)n=V,s!==null&&(V?s.length=V:s=null);else{const te={instancePath:t+"/plugins/"+j,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[te]:s.push(te),n++,me.errors=s,!1}var w=D===n;if(!w)break}}else return me.errors=[{instancePath:t+"/plugins",schemaPath:"#/properties/plugins/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=F===n}else var o=!0;if(o){if(e.siteOptions!==void 0){let _=e.siteOptions;const F=n;if(n===F)if(_&&typeof _=="object"&&!Array.isArray(_)){const S=n;for(const j in _)if(j!=="blogname"){const R=n;if(typeof _[j]!="string")return me.errors=[{instancePath:t+"/siteOptions/"+j.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=R===n;if(!O)break}if(S===n&&_.blogname!==void 0&&typeof _.blogname!="string")return me.errors=[{instancePath:t+"/siteOptions/blogname",schemaPath:"#/properties/siteOptions/properties/blogname/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}else return me.errors=[{instancePath:t+"/siteOptions",schemaPath:"#/properties/siteOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=F===n}else var o=!0;if(o){if(e.login!==void 0){let _=e.login;const F=n,P=n;let S=!1;const j=n;if(typeof _!="boolean"){const D={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[D]:s.push(D),n++}var E=j===n;if(S=S||E,!S){const D=n;if(n===D)if(_&&typeof _=="object"&&!Array.isArray(_)){let B;if(_.username===void 0&&(B="username")||_.password===void 0&&(B="password")){const Y={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"};s===null?s=[Y]:s.push(Y),n++}else{const Y=n;for(const G in _)if(!(G==="username"||G==="password")){const te={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:G},message:"must NOT have additional properties"};s===null?s=[te]:s.push(te),n++;break}if(Y===n){if(_.username!==void 0){const G=n;if(typeof _.username!="string"){const te={instancePath:t+"/login/username",schemaPath:"#/properties/login/anyOf/1/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[te]:s.push(te),n++}var I=G===n}else var I=!0;if(I)if(_.password!==void 0){const G=n;if(typeof _.password!="string"){const z={instancePath:t+"/login/password",schemaPath:"#/properties/login/anyOf/1/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[z]:s.push(z),n++}var I=G===n}else var I=!0}}}else{const B={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[B]:s.push(B),n++}var E=D===n;S=S||E}if(S)n=P,s!==null&&(P?s.length=P:s=null);else{const D={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[D]:s.push(D),n++,me.errors=s,!1}var o=F===n}else var o=!0;if(o){if(e.steps!==void 0){let _=e.steps;const F=n;if(n===F)if(Array.isArray(_)){var $=!0;const S=_.length;for(let j=0;j<S;j++){let R=_[j];const D=n,V=n;let B=!1;const Y=n;v(R,{instancePath:t+"/steps/"+j,parentData:_,parentDataProperty:j,rootData:a})||(s=s===null?v.errors:s.concat(v.errors),n=s.length);var L=Y===n;if(B=B||L,!B){const te=n;if(typeof R!="string"){const X={instancePath:t+"/steps/"+j,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[X]:s.push(X),n++}var L=te===n;if(B=B||L,!B){const X=n,ee={instancePath:t+"/steps/"+j,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};s===null?s=[ee]:s.push(ee),n++;var L=X===n;if(B=B||L,!B){const fe=n;if(typeof R!="boolean"){const ie={instancePath:t+"/steps/"+j,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[ie]:s.push(ie),n++}if(R!==!1){const ie={instancePath:t+"/steps/"+j,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};s===null?s=[ie]:s.push(ie),n++}var L=fe===n;if(B=B||L,!B){const ie=n;if(R!==null){const Oe={instancePath:t+"/steps/"+j,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};s===null?s=[Oe]:s.push(Oe),n++}var L=ie===n;B=B||L}}}}if(B)n=V,s!==null&&(V?s.length=V:s=null);else{const te={instancePath:t+"/steps/"+j,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[te]:s.push(te),n++,me.errors=s,!1}var $=D===n;if(!$)break}}else return me.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=F===n}else var o=!0;if(o)if(e.$schema!==void 0){const _=n;if(typeof e.$schema!="string")return me.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=_===n}else var o=!0}}}}}}}}}}}}else return me.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return me.errors=s,n===0}function Ks(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;return me(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?me.errors:s.concat(me.errors),n=s.length),Ks.errors=s,n===0}const{wpCLI:Ev,...qp}=gv,Sv={...qp,"wp-cli":Ev,importFile:qp.importWxr};class rl extends Error{constructor(t,r){super(t),this.name="InvalidBlueprintError",this.validationErrors=r}}class zd extends Error{constructor(t){const{stepNumber:r,step:i,cause:a}=t,s=a instanceof Error?a:new Error(String(a)),n=`Error when executing the blueprint step #${r}`,o=s.message?`${n}: ${s.message}`:n;super(o,{cause:s}),this.name="BlueprintStepExecutionError",this.stepNumber=r,this.step=i,this.messages=(s.message||"").split(`
1383
- `).map(l=>l.trim()).filter(Boolean)}}async function Li(e,t={}){const r={...t};let i;return Ii(e)?(i=await Vd(e),r.streamBundledFile=function(...a){return e.read(...a)}):i=e,Tv(i,r)}function Ii(e){return e&&"read"in e&&typeof e.read=="function"}async function Vd(e){if(!Ii(e))return e;const r=await(await e.read("blueprint.json")).text();return JSON.parse(r)}function Tv(e,{progress:t=new yi,semaphore:r=new ns({concurrency:3}),onStepCompleted:i=()=>{},onBlueprintValidated:a=()=>{},corsProxy:s,streamBundledFile:n,gitAdditionalHeadersCallback:o,additionalSteps:l}={}){var g,w,b,O,E,I,$,L,C,_,F;e=structuredClone(e),e={...e,steps:(e.steps||[]).filter(Gd).filter($v)},e.steps=[...e.steps||[],...l||[]],((g=e.preferredVersions)==null?void 0:g.wp)===!1&&Iv(e);for(const P of e.steps)!P||typeof P!="object"||(P.step==="importFile"?(P.step="importWxr",Te.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):(P==null?void 0:P.step)==="installPlugin"&&"pluginZipFile"in P?(P.pluginData=P.pluginZipFile,Te.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):(P==null?void 0:P.step)==="installTheme"&&"themeZipFile"in P&&(P.themeData=P.themeZipFile,Te.warn('The "themeZipFile" option of the "installTheme" step is deprecated. Use "themeData" instead.')));if(e.constants&&e.steps.unshift({step:"defineWpConfigConsts",consts:e.constants}),e.siteOptions&&e.steps.unshift({step:"setSiteOptions",options:e.siteOptions}),e.plugins){const P=e.plugins.map(S=>typeof S=="string"?Cv(S)?{resource:"zip",inner:{resource:"git:directory",url:S.trim().replace(/\/+$/,""),ref:"HEAD"}}:S.startsWith("https://")?{resource:"url",url:S}:{resource:"wordpress.org/plugins",slug:S}:S).map(S=>({step:"installPlugin",pluginData:S}));e.steps.unshift(...P)}e.login&&e.steps.unshift({step:"login",...e.login===!0?{username:"admin"}:e.login});const p=((w=e.steps)==null?void 0:w.findIndex(P=>typeof P=="object"&&(P==null?void 0:P.step)&&["wp-cli","enableMultisite"].includes(P.step)))??-1;if((b=e==null?void 0:e.extraLibraries)!=null&&b.includes("wp-cli")||p!==-1){const P={step:"writeFile",data:fv,path:Xo};p===-1?(O=e.steps)==null||O.push(P):(E=e.steps)==null||E.splice(p,0,P)}const c=(I=e.steps)==null?void 0:I.findIndex(P=>typeof P=="object"&&(P==null?void 0:P.step)==="importWxr");c!==void 0&&c>-1&&(($=e.steps)==null||$.splice(c,0,{step:"installPlugin",pluginData:{resource:"wordpress.org/plugins",slug:"wordpress-importer"}}));const d=Zd(e);if(!d.valid){const{errors:P}=d,S=Ov(e,P);throw new rl(`Invalid Blueprint: The Blueprint does not conform to the schema.
1382
+ Only the username field is required for user authentication.`}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"mkdir"},path:{type:"string",description:"The path of the directory you want to create"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"mv"},fromPath:{type:"string",description:"Source path"},toPath:{type:"string",description:"Target path"}},required:["fromPath","step","toPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"resetData"}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"request"},request:{$ref:"#/definitions/PHPRequest",description:"Request details (See /wordpress-playground/api/universal/interface/PHPRequest)"}},required:["request","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"rm"},path:{type:"string",description:"The path to remove"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"rmdir"},path:{type:"string",description:"The path to remove"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHP",description:"The step identifier."},code:{anyOf:[{type:"string"},{type:"object",properties:{filename:{type:"string",description:"This property is ignored during Blueprint v1 execution but exists so the same runPHP step structure can be used for Blueprints v1 and v2."},content:{type:"string"}},required:["filename","content"],additionalProperties:!1}],description:"The PHP code to run."}},required:["code","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHPWithOptions"},options:{$ref:"#/definitions/PHPRunOptions",description:"Run options (See /wordpress-playground/api/universal/interface/PHPRunOptions/))"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runWpInstallationWizard"},options:{$ref:"#/definitions/WordPressInstallationOptions"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runSql",description:"The step identifier."},sql:{$ref:"#/definitions/FileReference",description:"The SQL to run. Each non-empty line must contain a valid SQL query."}},required:["sql","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteOptions",description:'The name of the step. Must be "setSiteOptions".'},options:{type:"object",additionalProperties:{},description:"The options to set on the site."}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"unzip"},zipFile:{$ref:"#/definitions/FileReference",description:"The zip file to extract"},zipPath:{type:"string",description:"The path of the zip file to extract",deprecated:"Use zipFile instead."},extractToPath:{type:"string",description:"The path to extract the zip file to"}},required:["extractToPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"updateUserMeta"},meta:{type:"object",additionalProperties:{},description:'An object of user meta values to set, e.g. { "first_name": "John" }'},userId:{type:"number",description:"User ID"}},required:["meta","step","userId"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFile"},path:{type:"string",description:"The path of the file to write to"},data:{anyOf:[{$ref:"#/definitions/FileReference"},{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"The data to write"}},required:["data","path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFiles"},writeToPath:{type:"string",description:"The path of the file to write to"},filesTree:{$ref:"#/definitions/DirectoryReference",description:"The 'filesTree' defines the directory structure, supporting 'literal:directory' or 'git:directory' types. The 'name' represents the root directory, while 'files' is an object where keys are file paths, and values contain either file content as a string or nested objects for subdirectories."}},required:["filesTree","step","writeToPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"wp-cli",description:"The step identifier."},command:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}],description:"The WP CLI command to run."},wpCliPath:{type:"string",description:"wp-cli.phar path"}},required:["command","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteLanguage"},language:{type:"string",description:"The language to set, e.g. 'en_US'"}},required:["language","step"]}]},Hd={enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function vt(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let _;if(e.url===void 0&&(_="url"))return vt.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:_},message:"must have required property '"+_+"'"}],!1;{const O=n;for(const E in e)if(!(E==="method"||E==="url"||E==="headers"||E==="body"))return vt.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:E},message:"must NOT have additional properties"}],!1;if(O===n){if(e.method!==void 0){let E=e.method;const I=n;if(typeof E!="string")return vt.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(E==="GET"||E==="POST"||E==="HEAD"||E==="OPTIONS"||E==="PATCH"||E==="PUT"||E==="DELETE"))return vt.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Hd.enum},message:"must be equal to one of the allowed values"}],!1;var o=I===n}else var o=!0;if(o){if(e.url!==void 0){const E=n;if(typeof e.url!="string")return vt.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=E===n}else var o=!0;if(o){if(e.headers!==void 0){let E=e.headers;const I=n;if(n===n)if(E&&typeof E=="object"&&!Array.isArray(E))for(const C in E){const b=n;if(typeof E[C]!="string")return vt.errors=[{instancePath:t+"/headers/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=b===n;if(!l)break}else return vt.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=I===n}else var o=!0;if(o)if(e.body!==void 0){let E=e.body;const I=n,$=n;let L=!1;const C=n;if(typeof E!="string"){const F={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[F]:s.push(F),n++}var p=C===n;if(L=L||p,!L){const F=n;if(n===F)if(E&&typeof E=="object"&&!Array.isArray(E)){let S;if(E.BYTES_PER_ELEMENT===void 0&&(S="BYTES_PER_ELEMENT")||E.buffer===void 0&&(S="buffer")||E.byteLength===void 0&&(S="byteLength")||E.byteOffset===void 0&&(S="byteOffset")||E.length===void 0&&(S="length")){const j={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:S},message:"must have required property '"+S+"'"};s===null?s=[j]:s.push(j),n++}else{const j=n;for(const R in E)if(!(R==="BYTES_PER_ELEMENT"||R==="buffer"||R==="byteLength"||R==="byteOffset"||R==="length")){let D=E[R];const V=n;if(!(typeof D=="number"&&isFinite(D))){const B={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[B]:s.push(B),n++}var c=V===n;if(!c)break}if(j===n){if(E.BYTES_PER_ELEMENT!==void 0){let R=E.BYTES_PER_ELEMENT;const D=n;if(!(typeof R=="number"&&isFinite(R))){const V={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[V]:s.push(V),n++}var d=D===n}else var d=!0;if(d){if(E.buffer!==void 0){let R=E.buffer;const D=n;if(n===D)if(R&&typeof R=="object"&&!Array.isArray(R)){let B;if(R.byteLength===void 0&&(B="byteLength")){const Y={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"};s===null?s=[Y]:s.push(Y),n++}else{const Y=n;for(const G in R)if(G!=="byteLength"){const te={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:G},message:"must NOT have additional properties"};s===null?s=[te]:s.push(te),n++;break}if(Y===n&&R.byteLength!==void 0){let G=R.byteLength;if(!(typeof G=="number"&&isFinite(G))){const te={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[te]:s.push(te),n++}}}}else{const B={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[B]:s.push(B),n++}var d=D===n}else var d=!0;if(d){if(E.byteLength!==void 0){let R=E.byteLength;const D=n;if(!(typeof R=="number"&&isFinite(R))){const B={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[B]:s.push(B),n++}var d=D===n}else var d=!0;if(d){if(E.byteOffset!==void 0){let R=E.byteOffset;const D=n;if(!(typeof R=="number"&&isFinite(R))){const B={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[B]:s.push(B),n++}var d=D===n}else var d=!0;if(d)if(E.length!==void 0){let R=E.length;const D=n;if(!(typeof R=="number"&&isFinite(R))){const B={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[B]:s.push(B),n++}var d=D===n}else var d=!0}}}}}}else{const S={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[S]:s.push(S),n++}var p=F===n;if(L=L||p,!L){const S=n;if(n===S)if(E&&typeof E=="object"&&!Array.isArray(E))for(const R in E){let D=E[R];const V=n,B=n;let Y=!1;const G=n;if(typeof D!="string"){const te={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[te]:s.push(te),n++}var m=G===n;if(Y=Y||m,!Y){const te=n;if(n===te)if(D&&typeof D=="object"&&!Array.isArray(D)){let X;if(D.BYTES_PER_ELEMENT===void 0&&(X="BYTES_PER_ELEMENT")||D.buffer===void 0&&(X="buffer")||D.byteLength===void 0&&(X="byteLength")||D.byteOffset===void 0&&(X="byteOffset")||D.length===void 0&&(X="length")){const ee={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/required",keyword:"required",params:{missingProperty:X},message:"must have required property '"+X+"'"};s===null?s=[ee]:s.push(ee),n++}else{const ee=n;for(const Z in D)if(!(Z==="BYTES_PER_ELEMENT"||Z==="buffer"||Z==="byteLength"||Z==="byteOffset"||Z==="length")){let fe=D[Z];const oe=n;if(!(typeof fe=="number"&&isFinite(fe))){const ie={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+Z.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ie]:s.push(ie),n++}var y=oe===n;if(!y)break}if(ee===n){if(D.BYTES_PER_ELEMENT!==void 0){let Z=D.BYTES_PER_ELEMENT;const fe=n;if(!(typeof Z=="number"&&isFinite(Z))){const oe={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[oe]:s.push(oe),n++}var T=fe===n}else var T=!0;if(T){if(D.buffer!==void 0){let Z=D.buffer;const fe=n;if(n===fe)if(Z&&typeof Z=="object"&&!Array.isArray(Z)){let ie;if(Z.byteLength===void 0&&(ie="byteLength")){const Ae={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:ie},message:"must have required property '"+ie+"'"};s===null?s=[Ae]:s.push(Ae),n++}else{const Ae=n;for(const Oe in Z)if(Oe!=="byteLength"){const Xe={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Oe},message:"must NOT have additional properties"};s===null?s=[Xe]:s.push(Xe),n++;break}if(Ae===n&&Z.byteLength!==void 0){let Oe=Z.byteLength;if(!(typeof Oe=="number"&&isFinite(Oe))){const Xe={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Xe]:s.push(Xe),n++}}}}else{const ie={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[ie]:s.push(ie),n++}var T=fe===n}else var T=!0;if(T){if(D.byteLength!==void 0){let Z=D.byteLength;const fe=n;if(!(typeof Z=="number"&&isFinite(Z))){const ie={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ie]:s.push(ie),n++}var T=fe===n}else var T=!0;if(T){if(D.byteOffset!==void 0){let Z=D.byteOffset;const fe=n;if(!(typeof Z=="number"&&isFinite(Z))){const ie={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteOffset",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ie]:s.push(ie),n++}var T=fe===n}else var T=!0;if(T)if(D.length!==void 0){let Z=D.length;const fe=n;if(!(typeof Z=="number"&&isFinite(Z))){const ie={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/length",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ie]:s.push(ie),n++}var T=fe===n}else var T=!0}}}}}}else{const X={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[X]:s.push(X),n++}var m=te===n;if(Y=Y||m,!Y){const X=n;if(n===X)if(D&&typeof D=="object"&&!Array.isArray(D)){let Z;if(D.lastModified===void 0&&(Z="lastModified")||D.name===void 0&&(Z="name")||D.size===void 0&&(Z="size")||D.type===void 0&&(Z="type")||D.webkitRelativePath===void 0&&(Z="webkitRelativePath")){const fe={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:Z},message:"must have required property '"+Z+"'"};s===null?s=[fe]:s.push(fe),n++}else{const fe=n;for(const oe in D)if(!(oe==="size"||oe==="type"||oe==="lastModified"||oe==="name"||oe==="webkitRelativePath")){const ie={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:oe},message:"must NOT have additional properties"};s===null?s=[ie]:s.push(ie),n++;break}if(fe===n){if(D.size!==void 0){let oe=D.size;const ie=n;if(!(typeof oe=="number"&&isFinite(oe))){const Ae={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/size",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ae]:s.push(Ae),n++}var g=ie===n}else var g=!0;if(g){if(D.type!==void 0){const oe=n;if(typeof D.type!="string"){const Ae={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/type",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Ae]:s.push(Ae),n++}var g=oe===n}else var g=!0;if(g){if(D.lastModified!==void 0){let oe=D.lastModified;const ie=n;if(!(typeof oe=="number"&&isFinite(oe))){const Oe={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/lastModified",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/lastModified/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Oe]:s.push(Oe),n++}var g=ie===n}else var g=!0;if(g){if(D.name!==void 0){const oe=n;if(typeof D.name!="string"){const Ae={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Ae]:s.push(Ae),n++}var g=oe===n}else var g=!0;if(g)if(D.webkitRelativePath!==void 0){const oe=n;if(typeof D.webkitRelativePath!="string"){const Ae={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/webkitRelativePath",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/webkitRelativePath/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Ae]:s.push(Ae),n++}var g=oe===n}else var g=!0}}}}}}else{const Z={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Z]:s.push(Z),n++}var m=X===n;Y=Y||m}}if(Y)n=B,s!==null&&(B?s.length=B:s=null);else{const te={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};s===null?s=[te]:s.push(te),n++}var w=V===n;if(!w)break}else{const R={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[R]:s.push(R),n++}var p=S===n;L=L||p}}if(L)n=$,s!==null&&($?s.length=$:s=null);else{const F={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[F]:s.push(F),n++,vt.errors=s,!1}var o=I===n}else var o=!0}}}}}else return vt.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return vt.errors=s,n===0}const Pv={properties:{relativeUri:{type:"string",description:"Request path following the domain:port part – after any URL rewriting rules (e.g. apache .htaccess) have been applied."},scriptPath:{type:"string",description:"Path of the .php file to execute."},protocol:{type:"string",description:"Request protocol."},method:{$ref:"#/definitions/HTTPMethod",description:"Request method. Default: `GET`."},headers:{$ref:"#/definitions/PHPRequestHeaders",description:"Request headers."},body:{anyOf:[{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"Request body."},env:{type:"object",additionalProperties:{type:"string"},description:"Environment variables to set for this run."},$_SERVER:{type:"object",additionalProperties:{type:"string"},description:"$_SERVER entries to set for this run."},code:{type:"string",description:"The code snippet to eval instead of a php file."}}};function We(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const T=n;for(const g in e)if(!Wd.call(Pv.properties,g))return We.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:g},message:"must NOT have additional properties"}],!1;if(T===n){if(e.relativeUri!==void 0){const g=n;if(typeof e.relativeUri!="string")return We.errors=[{instancePath:t+"/relativeUri",schemaPath:"#/properties/relativeUri/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=g===n}else var o=!0;if(o){if(e.scriptPath!==void 0){const g=n;if(typeof e.scriptPath!="string")return We.errors=[{instancePath:t+"/scriptPath",schemaPath:"#/properties/scriptPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=g===n}else var o=!0;if(o){if(e.protocol!==void 0){const g=n;if(typeof e.protocol!="string")return We.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=g===n}else var o=!0;if(o){if(e.method!==void 0){let g=e.method;const w=n;if(typeof g!="string")return We.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(g==="GET"||g==="POST"||g==="HEAD"||g==="OPTIONS"||g==="PATCH"||g==="PUT"||g==="DELETE"))return We.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Hd.enum},message:"must be equal to one of the allowed values"}],!1;var o=w===n}else var o=!0;if(o){if(e.headers!==void 0){let g=e.headers;const w=n;if(n===n)if(g&&typeof g=="object"&&!Array.isArray(g))for(const E in g){const I=n;if(typeof g[E]!="string")return We.errors=[{instancePath:t+"/headers/"+E.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=I===n;if(!l)break}else return We.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=w===n}else var o=!0;if(o){if(e.body!==void 0){let g=e.body;const w=n,_=n;let O=!1;const E=n;if(typeof g!="string"){const $={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[$]:s.push($),n++}var p=E===n;if(O=O||p,!O){const $=n;if(n===$)if(g&&typeof g=="object"&&!Array.isArray(g)){let C;if(g.BYTES_PER_ELEMENT===void 0&&(C="BYTES_PER_ELEMENT")||g.buffer===void 0&&(C="buffer")||g.byteLength===void 0&&(C="byteLength")||g.byteOffset===void 0&&(C="byteOffset")||g.length===void 0&&(C="length")){const b={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:C},message:"must have required property '"+C+"'"};s===null?s=[b]:s.push(b),n++}else{const b=n;for(const F in g)if(!(F==="BYTES_PER_ELEMENT"||F==="buffer"||F==="byteLength"||F==="byteOffset"||F==="length")){let P=g[F];const S=n;if(!(typeof P=="number"&&isFinite(P))){const j={instancePath:t+"/body/"+F.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[j]:s.push(j),n++}var c=S===n;if(!c)break}if(b===n){if(g.BYTES_PER_ELEMENT!==void 0){let F=g.BYTES_PER_ELEMENT;const P=n;if(!(typeof F=="number"&&isFinite(F))){const S={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[S]:s.push(S),n++}var d=P===n}else var d=!0;if(d){if(g.buffer!==void 0){let F=g.buffer;const P=n;if(n===P)if(F&&typeof F=="object"&&!Array.isArray(F)){let j;if(F.byteLength===void 0&&(j="byteLength")){const R={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"};s===null?s=[R]:s.push(R),n++}else{const R=n;for(const D in F)if(D!=="byteLength"){const V={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:D},message:"must NOT have additional properties"};s===null?s=[V]:s.push(V),n++;break}if(R===n&&F.byteLength!==void 0){let D=F.byteLength;if(!(typeof D=="number"&&isFinite(D))){const V={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[V]:s.push(V),n++}}}}else{const j={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[j]:s.push(j),n++}var d=P===n}else var d=!0;if(d){if(g.byteLength!==void 0){let F=g.byteLength;const P=n;if(!(typeof F=="number"&&isFinite(F))){const j={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[j]:s.push(j),n++}var d=P===n}else var d=!0;if(d){if(g.byteOffset!==void 0){let F=g.byteOffset;const P=n;if(!(typeof F=="number"&&isFinite(F))){const j={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[j]:s.push(j),n++}var d=P===n}else var d=!0;if(d)if(g.length!==void 0){let F=g.length;const P=n;if(!(typeof F=="number"&&isFinite(F))){const j={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[j]:s.push(j),n++}var d=P===n}else var d=!0}}}}}}else{const C={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[C]:s.push(C),n++}var p=$===n;O=O||p}if(O)n=_,s!==null&&(_?s.length=_:s=null);else{const $={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[$]:s.push($),n++,We.errors=s,!1}var o=w===n}else var o=!0;if(o){if(e.env!==void 0){let g=e.env;const w=n;if(n===w)if(g&&typeof g=="object"&&!Array.isArray(g))for(const O in g){const E=n;if(typeof g[O]!="string")return We.errors=[{instancePath:t+"/env/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=E===n;if(!m)break}else return We.errors=[{instancePath:t+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=w===n}else var o=!0;if(o){if(e.$_SERVER!==void 0){let g=e.$_SERVER;const w=n;if(n===w)if(g&&typeof g=="object"&&!Array.isArray(g))for(const O in g){const E=n;if(typeof g[O]!="string")return We.errors=[{instancePath:t+"/$_SERVER/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var y=E===n;if(!y)break}else return We.errors=[{instancePath:t+"/$_SERVER",schemaPath:"#/properties/%24_SERVER/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=w===n}else var o=!0;if(o)if(e.code!==void 0){const g=n;if(typeof e.code!="string")return We.errors=[{instancePath:t+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=g===n}else var o=!0}}}}}}}}}else return We.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return We.errors=s,n===0}function v(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let Me;if(e.step===void 0&&(Me="step"))return v.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:Me},message:"must have required property '"+Me+"'"}],!1;{const ce=e.step;if(typeof ce=="string")if(ce==="activatePlugin"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.pluginPath===void 0&&(q="pluginPath")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="pluginPath"||f==="pluginName"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/0/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var o=ne===n}else var o=!0;if(o)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/0/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=k===n}else var o=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var l=N===n}else var l=!0;if(l){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="activatePlugin")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/const",keyword:"const",params:{allowedValue:"activatePlugin"},message:"must be equal to constant"}],!1;var l=N===n}else var l=!0;if(l){if(e.pluginPath!==void 0){const f=n;if(typeof e.pluginPath!="string")return v.errors=[{instancePath:t+"/pluginPath",schemaPath:"#/oneOf/0/properties/pluginPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=f===n}else var l=!0;if(l)if(e.pluginName!==void 0){const f=n;if(typeof e.pluginName!="string")return v.errors=[{instancePath:t+"/pluginName",schemaPath:"#/oneOf/0/properties/pluginName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=f===n}else var l=!0}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="activateTheme"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.step===void 0&&(q="step")||e.themeFolderName===void 0&&(q="themeFolderName"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="themeFolderName"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/1/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var p=ne===n}else var p=!0;if(p)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/1/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=k===n}else var p=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var c=N===n}else var c=!0;if(c){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="activateTheme")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/const",keyword:"const",params:{allowedValue:"activateTheme"},message:"must be equal to constant"}],!1;var c=N===n}else var c=!0;if(c)if(e.themeFolderName!==void 0){const f=n;if(typeof e.themeFolderName!="string")return v.errors=[{instancePath:t+"/themeFolderName",schemaPath:"#/oneOf/1/properties/themeFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var c=f===n}else var c=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="cp"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.fromPath===void 0&&(q="fromPath")||e.step===void 0&&(q="step")||e.toPath===void 0&&(q="toPath"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="fromPath"||f==="toPath"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/2/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var d=ne===n}else var d=!0;if(d)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/2/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=k===n}else var d=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var m=N===n}else var m=!0;if(m){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="cp")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/const",keyword:"const",params:{allowedValue:"cp"},message:"must be equal to constant"}],!1;var m=N===n}else var m=!0;if(m){if(e.fromPath!==void 0){const f=n;if(typeof e.fromPath!="string")return v.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/2/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=f===n}else var m=!0;if(m)if(e.toPath!==void 0){const f=n;if(typeof e.toPath!="string")return v.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/2/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=f===n}else var m=!0}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="defineWpConfigConsts"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.consts===void 0&&(q="consts")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="consts"||f==="method"||f==="virtualize"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/3/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var y=ne===n}else var y=!0;if(y)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/3/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var y=k===n}else var y=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var T=N===n}else var T=!0;if(T){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="defineWpConfigConsts")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/const",keyword:"const",params:{allowedValue:"defineWpConfigConsts"},message:"must be equal to constant"}],!1;var T=N===n}else var T=!0;if(T){if(e.consts!==void 0){let f=e.consts;const N=n;if(n===N&&!(f&&typeof f=="object"&&!Array.isArray(f)))return v.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var T=N===n}else var T=!0;if(T){if(e.method!==void 0){let f=e.method;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(f==="rewrite-wp-config"||f==="define-before-run"))return v.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:Cs.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var T=N===n}else var T=!0;if(T)if(e.virtualize!==void 0){const f=n;if(typeof e.virtualize!="boolean")return v.errors=[{instancePath:t+"/virtualize",schemaPath:"#/oneOf/3/properties/virtualize/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var T=f===n}else var T=!0}}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="defineSiteUrl"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.siteUrl===void 0&&(q="siteUrl")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="siteUrl"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/4/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var g=ne===n}else var g=!0;if(g)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/4/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=k===n}else var g=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var w=N===n}else var w=!0;if(w){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="defineSiteUrl")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/const",keyword:"const",params:{allowedValue:"defineSiteUrl"},message:"must be equal to constant"}],!1;var w=N===n}else var w=!0;if(w)if(e.siteUrl!==void 0){const f=n;if(typeof e.siteUrl!="string")return v.errors=[{instancePath:t+"/siteUrl",schemaPath:"#/oneOf/4/properties/siteUrl/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var w=f===n}else var w=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="enableMultisite"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="wpCliPath"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/5/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var _=ne===n}else var _=!0;if(_)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/5/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=k===n}else var _=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var O=N===n}else var O=!0;if(O){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="enableMultisite")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/const",keyword:"const",params:{allowedValue:"enableMultisite"},message:"must be equal to constant"}],!1;var O=N===n}else var O=!0;if(O)if(e.wpCliPath!==void 0){const f=n;if(typeof e.wpCliPath!="string")return v.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/5/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=f===n}else var O=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importWxr"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.file===void 0&&(q="file")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="file"||f==="importer"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/6/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var E=ne===n}else var E=!0;if(E)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/6/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var E=k===n}else var E=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var I=N===n}else var I=!0;if(I){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="importWxr")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/const",keyword:"const",params:{allowedValue:"importWxr"},message:"must be equal to constant"}],!1;var I=N===n}else var I=!0;if(I){if(e.file!==void 0){const f=n;_e(e.file,{instancePath:t+"/file",parentData:e,parentDataProperty:"file",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var I=f===n}else var I=!0;if(I)if(e.importer!==void 0){let f=e.importer;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(f==="data-liberation"||f==="default"))return v.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/enum",keyword:"enum",params:{allowedValues:Cs.oneOf[6].properties.importer.enum},message:"must be equal to one of the allowed values"}],!1;var I=N===n}else var I=!0}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importThemeStarterContent"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="themeSlug"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/7/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var $=ne===n}else var $=!0;if($)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/7/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $=k===n}else var $=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var L=N===n}else var L=!0;if(L){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="importThemeStarterContent")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/const",keyword:"const",params:{allowedValue:"importThemeStarterContent"},message:"must be equal to constant"}],!1;var L=N===n}else var L=!0;if(L)if(e.themeSlug!==void 0){const f=n;if(typeof e.themeSlug!="string")return v.errors=[{instancePath:t+"/themeSlug",schemaPath:"#/oneOf/7/properties/themeSlug/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var L=f===n}else var L=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importWordPressFiles"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.step===void 0&&(q="step")||e.wordPressFilesZip===void 0&&(q="wordPressFilesZip"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="wordPressFilesZip"||f==="pathInZip"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/8/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var C=ne===n}else var C=!0;if(C)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/8/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=k===n}else var C=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var b=N===n}else var b=!0;if(b){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="importWordPressFiles")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/const",keyword:"const",params:{allowedValue:"importWordPressFiles"},message:"must be equal to constant"}],!1;var b=N===n}else var b=!0;if(b){if(e.wordPressFilesZip!==void 0){const f=n;_e(e.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:e,parentDataProperty:"wordPressFilesZip",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var b=f===n}else var b=!0;if(b)if(e.pathInZip!==void 0){const f=n;if(typeof e.pathInZip!="string")return v.errors=[{instancePath:t+"/pathInZip",schemaPath:"#/oneOf/8/properties/pathInZip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=f===n}else var b=!0}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="installPlugin"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.pluginData===void 0&&(q="pluginData")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="ifAlreadyInstalled"||f==="step"||f==="pluginData"||f==="pluginZipFile"||f==="options"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/9/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var F=ne===n}else var F=!0;if(F)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/9/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var F=k===n}else var F=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var P=N===n}else var P=!0;if(P){if(e.ifAlreadyInstalled!==void 0){let f=e.ifAlreadyInstalled;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(f==="overwrite"||f==="skip"||f==="error"))return v.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Cs.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var P=N===n}else var P=!0;if(P){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="installPlugin")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/const",keyword:"const",params:{allowedValue:"installPlugin"},message:"must be equal to constant"}],!1;var P=N===n}else var P=!0;if(P){if(e.pluginData!==void 0){let f=e.pluginData;const N=n,re=n;let k=!1;const ne=n;_e(f,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var S=ne===n;if(k=k||S,!k){const ke=n;ut(f,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:a})||(s=s===null?ut.errors:s.concat(ut.errors),n=s.length);var S=ke===n;k=k||S}if(k)n=re,s!==null&&(re?s.length=re:s=null);else{const ke={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ke]:s.push(ke),n++,v.errors=s,!1}var P=N===n}else var P=!0;if(P){if(e.pluginZipFile!==void 0){const f=n;_e(e.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:e,parentDataProperty:"pluginZipFile",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var P=f===n}else var P=!0;if(P)if(e.options!==void 0){let f=e.options;const N=n;if(n===n)if(f&&typeof f=="object"&&!Array.isArray(f)){const ne=n;for(const $e in f)if(!($e==="activate"||$e==="targetFolderName"))return v.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:$e},message:"must NOT have additional properties"}],!1;if(ne===n){if(f.activate!==void 0){const $e=n;if(typeof f.activate!="boolean")return v.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallPluginOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var j=$e===n}else var j=!0;if(j)if(f.targetFolderName!==void 0){const $e=n;if(typeof f.targetFolderName!="string")return v.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallPluginOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var j=$e===n}else var j=!0}}else return v.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var P=N===n}else var P=!0}}}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="installTheme"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.step===void 0&&(q="step")||e.themeData===void 0&&(q="themeData"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="ifAlreadyInstalled"||f==="step"||f==="themeData"||f==="themeZipFile"||f==="options"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/10/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var R=ne===n}else var R=!0;if(R)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/10/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var R=k===n}else var R=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var D=N===n}else var D=!0;if(D){if(e.ifAlreadyInstalled!==void 0){let f=e.ifAlreadyInstalled;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(f==="overwrite"||f==="skip"||f==="error"))return v.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Cs.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var D=N===n}else var D=!0;if(D){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="installTheme")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/const",keyword:"const",params:{allowedValue:"installTheme"},message:"must be equal to constant"}],!1;var D=N===n}else var D=!0;if(D){if(e.themeData!==void 0){let f=e.themeData;const N=n,re=n;let k=!1;const ne=n;_e(f,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var V=ne===n;if(k=k||V,!k){const ke=n;ut(f,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:a})||(s=s===null?ut.errors:s.concat(ut.errors),n=s.length);var V=ke===n;k=k||V}if(k)n=re,s!==null&&(re?s.length=re:s=null);else{const ke={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ke]:s.push(ke),n++,v.errors=s,!1}var D=N===n}else var D=!0;if(D){if(e.themeZipFile!==void 0){const f=n;_e(e.themeZipFile,{instancePath:t+"/themeZipFile",parentData:e,parentDataProperty:"themeZipFile",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var D=f===n}else var D=!0;if(D)if(e.options!==void 0){let f=e.options;const N=n;if(n===n)if(f&&typeof f=="object"&&!Array.isArray(f)){const ne=n;for(const $e in f)if(!($e==="activate"||$e==="importStarterContent"||$e==="targetFolderName"))return v.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:$e},message:"must NOT have additional properties"}],!1;if(ne===n){if(f.activate!==void 0){const $e=n;if(typeof f.activate!="boolean")return v.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallThemeOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var B=$e===n}else var B=!0;if(B){if(f.importStarterContent!==void 0){const $e=n;if(typeof f.importStarterContent!="boolean")return v.errors=[{instancePath:t+"/options/importStarterContent",schemaPath:"#/definitions/InstallThemeOptions/properties/importStarterContent/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var B=$e===n}else var B=!0;if(B)if(f.targetFolderName!==void 0){const $e=n;if(typeof f.targetFolderName!="string")return v.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallThemeOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var B=$e===n}else var B=!0}}}else return v.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var D=N===n}else var D=!0}}}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="login"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="username"||f==="password"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/11/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Y=ne===n}else var Y=!0;if(Y)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/11/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Y=k===n}else var Y=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var G=N===n}else var G=!0;if(G){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="login")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/const",keyword:"const",params:{allowedValue:"login"},message:"must be equal to constant"}],!1;var G=N===n}else var G=!0;if(G){if(e.username!==void 0){const f=n;if(typeof e.username!="string")return v.errors=[{instancePath:t+"/username",schemaPath:"#/oneOf/11/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var G=f===n}else var G=!0;if(G)if(e.password!==void 0){const f=n;if(typeof e.password!="string")return v.errors=[{instancePath:t+"/password",schemaPath:"#/oneOf/11/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var G=f===n}else var G=!0}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="mkdir"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.path===void 0&&(q="path")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="path"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/12/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var te=ne===n}else var te=!0;if(te)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/12/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var te=k===n}else var te=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var z=N===n}else var z=!0;if(z){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="mkdir")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/const",keyword:"const",params:{allowedValue:"mkdir"},message:"must be equal to constant"}],!1;var z=N===n}else var z=!0;if(z)if(e.path!==void 0){const f=n;if(typeof e.path!="string")return v.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/12/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var z=f===n}else var z=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="mv"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.fromPath===void 0&&(q="fromPath")||e.step===void 0&&(q="step")||e.toPath===void 0&&(q="toPath"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="fromPath"||f==="toPath"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/13/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var X=ne===n}else var X=!0;if(X)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/13/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var X=k===n}else var X=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ee=N===n}else var ee=!0;if(ee){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="mv")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/const",keyword:"const",params:{allowedValue:"mv"},message:"must be equal to constant"}],!1;var ee=N===n}else var ee=!0;if(ee){if(e.fromPath!==void 0){const f=n;if(typeof e.fromPath!="string")return v.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/13/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=f===n}else var ee=!0;if(ee)if(e.toPath!==void 0){const f=n;if(typeof e.toPath!="string")return v.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/13/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=f===n}else var ee=!0}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="resetData"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/14/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Z=ne===n}else var Z=!0;if(Z)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/14/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Z=k===n}else var Z=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var fe=N===n}else var fe=!0;if(fe)if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="resetData")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/const",keyword:"const",params:{allowedValue:"resetData"},message:"must be equal to constant"}],!1;var fe=N===n}else var fe=!0}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="request"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.request===void 0&&(q="request")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="request"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/15/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var oe=ne===n}else var oe=!0;if(oe)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/15/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var oe=k===n}else var oe=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ie=N===n}else var ie=!0;if(ie){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="request")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/const",keyword:"const",params:{allowedValue:"request"},message:"must be equal to constant"}],!1;var ie=N===n}else var ie=!0;if(ie)if(e.request!==void 0){const f=n;vt(e.request,{instancePath:t+"/request",parentData:e,parentDataProperty:"request",rootData:a})||(s=s===null?vt.errors:s.concat(vt.errors),n=s.length);var ie=f===n}else var ie=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="rm"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.path===void 0&&(q="path")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/16/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="path"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/16/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ae=ne===n}else var Ae=!0;if(Ae)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/16/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ae=k===n}else var Ae=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Oe=N===n}else var Oe=!0;if(Oe){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="rm")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/const",keyword:"const",params:{allowedValue:"rm"},message:"must be equal to constant"}],!1;var Oe=N===n}else var Oe=!0;if(Oe)if(e.path!==void 0){const f=n;if(typeof e.path!="string")return v.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/16/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Oe=f===n}else var Oe=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="rmdir"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.path===void 0&&(q="path")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/17/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="path"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/17/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Xe=ne===n}else var Xe=!0;if(Xe)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/17/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Xe=k===n}else var Xe=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var tt=N===n}else var tt=!0;if(tt){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="rmdir")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/const",keyword:"const",params:{allowedValue:"rmdir"},message:"must be equal to constant"}],!1;var tt=N===n}else var tt=!0;if(tt)if(e.path!==void 0){const f=n;if(typeof e.path!="string")return v.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/17/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var tt=f===n}else var tt=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runPHP"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.code===void 0&&(q="code")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/18/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="code"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/18/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Et=ne===n}else var Et=!0;if(Et)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/18/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Et=k===n}else var Et=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ie=N===n}else var Ie=!0;if(Ie){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="runPHP")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/const",keyword:"const",params:{allowedValue:"runPHP"},message:"must be equal to constant"}],!1;var Ie=N===n}else var Ie=!0;if(Ie)if(e.code!==void 0){let f=e.code;const N=n,re=n;let k=!1;const ne=n;if(typeof f!="string"){const ke={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[ke]:s.push(ke),n++}var Ce=ne===n;if(k=k||Ce,!k){const ke=n;if(n===ke)if(f&&typeof f=="object"&&!Array.isArray(f)){let ze;if(f.filename===void 0&&(ze="filename")||f.content===void 0&&(ze="content")){const er={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/required",keyword:"required",params:{missingProperty:ze},message:"must have required property '"+ze+"'"};s===null?s=[er]:s.push(er),n++}else{const er=n;for(const qe in f)if(!(qe==="filename"||qe==="content")){const Bt={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:qe},message:"must NOT have additional properties"};s===null?s=[Bt]:s.push(Bt),n++;break}if(er===n){if(f.filename!==void 0){const qe=n;if(typeof f.filename!="string"){const Bt={instancePath:t+"/code/filename",schemaPath:"#/oneOf/18/properties/code/anyOf/1/properties/filename/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Bt]:s.push(Bt),n++}var pt=qe===n}else var pt=!0;if(pt)if(f.content!==void 0){const qe=n;if(typeof f.content!="string"){const be={instancePath:t+"/code/content",schemaPath:"#/oneOf/18/properties/code/anyOf/1/properties/content/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[be]:s.push(be),n++}var pt=qe===n}else var pt=!0}}}else{const ze={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[ze]:s.push(ze),n++}var Ce=ke===n;k=k||Ce}if(k)n=re,s!==null&&(re?s.length=re:s=null);else{const ke={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ke]:s.push(ke),n++,v.errors=s,!1}var Ie=N===n}else var Ie=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runPHPWithOptions"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.options===void 0&&(q="options")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/19/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="options"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/19/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Re=ne===n}else var Re=!0;if(Re)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/19/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Re=k===n}else var Re=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var x=N===n}else var x=!0;if(x){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="runPHPWithOptions")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/const",keyword:"const",params:{allowedValue:"runPHPWithOptions"},message:"must be equal to constant"}],!1;var x=N===n}else var x=!0;if(x)if(e.options!==void 0){const f=n;We(e.options,{instancePath:t+"/options",parentData:e,parentDataProperty:"options",rootData:a})||(s=s===null?We.errors:s.concat(We.errors),n=s.length);var x=f===n}else var x=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/19/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runWpInstallationWizard"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.options===void 0&&(q="options")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/20/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="options"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/20/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var u=ne===n}else var u=!0;if(u)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/20/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=k===n}else var u=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var h=N===n}else var h=!0;if(h){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="runWpInstallationWizard")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/const",keyword:"const",params:{allowedValue:"runWpInstallationWizard"},message:"must be equal to constant"}],!1;var h=N===n}else var h=!0;if(h)if(e.options!==void 0){let f=e.options;const N=n;if(n===n)if(f&&typeof f=="object"&&!Array.isArray(f)){const ne=n;for(const $e in f)if(!($e==="adminUsername"||$e==="adminPassword"))return v.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:$e},message:"must NOT have additional properties"}],!1;if(ne===n){if(f.adminUsername!==void 0){const $e=n;if(typeof f.adminUsername!="string")return v.errors=[{instancePath:t+"/options/adminUsername",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminUsername/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var A=$e===n}else var A=!0;if(A)if(f.adminPassword!==void 0){const $e=n;if(typeof f.adminPassword!="string")return v.errors=[{instancePath:t+"/options/adminPassword",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminPassword/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var A=$e===n}else var A=!0}}else return v.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var h=N===n}else var h=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runSql"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.sql===void 0&&(q="sql")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/21/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="sql"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/21/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var U=ne===n}else var U=!0;if(U)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/21/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var U=k===n}else var U=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var H=N===n}else var H=!0;if(H){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="runSql")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/const",keyword:"const",params:{allowedValue:"runSql"},message:"must be equal to constant"}],!1;var H=N===n}else var H=!0;if(H)if(e.sql!==void 0){const f=n;_e(e.sql,{instancePath:t+"/sql",parentData:e,parentDataProperty:"sql",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var H=f===n}else var H=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="setSiteOptions"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.options===void 0&&(q="options")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/22/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="options"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/22/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var J=ne===n}else var J=!0;if(J)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/22/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var J=k===n}else var J=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=N===n}else var pe=!0;if(pe){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="setSiteOptions")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/const",keyword:"const",params:{allowedValue:"setSiteOptions"},message:"must be equal to constant"}],!1;var pe=N===n}else var pe=!0;if(pe)if(e.options!==void 0){let f=e.options;const N=n;if(n===N&&!(f&&typeof f=="object"&&!Array.isArray(f)))return v.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=N===n}else var pe=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="unzip"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.extractToPath===void 0&&(q="extractToPath")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/23/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="zipFile"||f==="zipPath"||f==="extractToPath"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/23/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var we=ne===n}else var we=!0;if(we)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/23/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var we=k===n}else var we=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var he=N===n}else var he=!0;if(he){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="unzip")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/const",keyword:"const",params:{allowedValue:"unzip"},message:"must be equal to constant"}],!1;var he=N===n}else var he=!0;if(he){if(e.zipFile!==void 0){const f=n;_e(e.zipFile,{instancePath:t+"/zipFile",parentData:e,parentDataProperty:"zipFile",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var he=f===n}else var he=!0;if(he){if(e.zipPath!==void 0){const f=n;if(typeof e.zipPath!="string")return v.errors=[{instancePath:t+"/zipPath",schemaPath:"#/oneOf/23/properties/zipPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=f===n}else var he=!0;if(he)if(e.extractToPath!==void 0){const f=n;if(typeof e.extractToPath!="string")return v.errors=[{instancePath:t+"/extractToPath",schemaPath:"#/oneOf/23/properties/extractToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=f===n}else var he=!0}}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/23/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="updateUserMeta"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.meta===void 0&&(q="meta")||e.step===void 0&&(q="step")||e.userId===void 0&&(q="userId"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/24/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="meta"||f==="userId"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/24/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var De=ne===n}else var De=!0;if(De)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/24/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var De=k===n}else var De=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ue=N===n}else var ue=!0;if(ue){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="updateUserMeta")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/const",keyword:"const",params:{allowedValue:"updateUserMeta"},message:"must be equal to constant"}],!1;var ue=N===n}else var ue=!0;if(ue){if(e.meta!==void 0){let f=e.meta;const N=n;if(n===N&&!(f&&typeof f=="object"&&!Array.isArray(f)))return v.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ue=N===n}else var ue=!0;if(ue)if(e.userId!==void 0){let f=e.userId;const N=n;if(!(typeof f=="number"&&isFinite(f)))return v.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ue=N===n}else var ue=!0}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/24/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="writeFile"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.data===void 0&&(q="data")||e.path===void 0&&(q="path")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/25/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="path"||f==="data"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/25/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var yt=ne===n}else var yt=!0;if(yt)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/25/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var yt=k===n}else var yt=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var rt=N===n}else var rt=!0;if(rt){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="writeFile")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/const",keyword:"const",params:{allowedValue:"writeFile"},message:"must be equal to constant"}],!1;var rt=N===n}else var rt=!0;if(rt){if(e.path!==void 0){const f=n;if(typeof e.path!="string")return v.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/25/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var rt=f===n}else var rt=!0;if(rt)if(e.data!==void 0){let f=e.data;const N=n,re=n;let k=!1;const ne=n;_e(f,{instancePath:t+"/data",parentData:e,parentDataProperty:"data",rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var Ft=ne===n;if(k=k||Ft,!k){const ke=n;if(typeof f!="string"){const ze={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[ze]:s.push(ze),n++}var Ft=ke===n;if(k=k||Ft,!k){const ze=n;if(n===ze)if(f&&typeof f=="object"&&!Array.isArray(f)){let qe;if(f.BYTES_PER_ELEMENT===void 0&&(qe="BYTES_PER_ELEMENT")||f.buffer===void 0&&(qe="buffer")||f.byteLength===void 0&&(qe="byteLength")||f.byteOffset===void 0&&(qe="byteOffset")||f.length===void 0&&(qe="length")){const Bt={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:qe},message:"must have required property '"+qe+"'"};s===null?s=[Bt]:s.push(Bt),n++}else{const Bt=n;for(const be in f)if(!(be==="BYTES_PER_ELEMENT"||be==="buffer"||be==="byteLength"||be==="byteOffset"||be==="length")){let gt=f[be];const gs=n;if(!(typeof gt=="number"&&isFinite(gt))){const Ve={instancePath:t+"/data/"+be.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/oneOf/25/properties/data/anyOf/2/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ve]:s.push(Ve),n++}var Ci=gs===n;if(!Ci)break}if(Bt===n){if(f.BYTES_PER_ELEMENT!==void 0){let be=f.BYTES_PER_ELEMENT;const gt=n;if(!(typeof be=="number"&&isFinite(be))){const gs={instancePath:t+"/data/BYTES_PER_ELEMENT",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[gs]:s.push(gs),n++}var nt=gt===n}else var nt=!0;if(nt){if(f.buffer!==void 0){let be=f.buffer;const gt=n;if(n===gt)if(be&&typeof be=="object"&&!Array.isArray(be)){let Ve;if(be.byteLength===void 0&&(Ve="byteLength")){const ws={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:Ve},message:"must have required property '"+Ve+"'"};s===null?s=[ws]:s.push(ws),n++}else{const ws=n;for(const _n in be)if(_n!=="byteLength"){const vn={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:_n},message:"must NOT have additional properties"};s===null?s=[vn]:s.push(vn),n++;break}if(ws===n&&be.byteLength!==void 0){let _n=be.byteLength;if(!(typeof _n=="number"&&isFinite(_n))){const vn={instancePath:t+"/data/buffer/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[vn]:s.push(vn),n++}}}}else{const Ve={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Ve]:s.push(Ve),n++}var nt=gt===n}else var nt=!0;if(nt){if(f.byteLength!==void 0){let be=f.byteLength;const gt=n;if(!(typeof be=="number"&&isFinite(be))){const Ve={instancePath:t+"/data/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ve]:s.push(Ve),n++}var nt=gt===n}else var nt=!0;if(nt){if(f.byteOffset!==void 0){let be=f.byteOffset;const gt=n;if(!(typeof be=="number"&&isFinite(be))){const Ve={instancePath:t+"/data/byteOffset",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ve]:s.push(Ve),n++}var nt=gt===n}else var nt=!0;if(nt)if(f.length!==void 0){let be=f.length;const gt=n;if(!(typeof be=="number"&&isFinite(be))){const Ve={instancePath:t+"/data/length",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ve]:s.push(Ve),n++}var nt=gt===n}else var nt=!0}}}}}}else{const qe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[qe]:s.push(qe),n++}var Ft=ze===n;k=k||Ft}}if(k)n=re,s!==null&&(re?s.length=re:s=null);else{const ke={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ke]:s.push(ke),n++,v.errors=s,!1}var rt=N===n}else var rt=!0}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/25/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="writeFiles"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.filesTree===void 0&&(q="filesTree")||e.step===void 0&&(q="step")||e.writeToPath===void 0&&(q="writeToPath"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/26/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="writeToPath"||f==="filesTree"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/26/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Vr=ne===n}else var Vr=!0;if(Vr)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/26/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Vr=k===n}else var Vr=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var M=N===n}else var M=!0;if(M){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="writeFiles")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/const",keyword:"const",params:{allowedValue:"writeFiles"},message:"must be equal to constant"}],!1;var M=N===n}else var M=!0;if(M){if(e.writeToPath!==void 0){const f=n;if(typeof e.writeToPath!="string")return v.errors=[{instancePath:t+"/writeToPath",schemaPath:"#/oneOf/26/properties/writeToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var M=f===n}else var M=!0;if(M)if(e.filesTree!==void 0){const f=n;ut(e.filesTree,{instancePath:t+"/filesTree",parentData:e,parentDataProperty:"filesTree",rootData:a})||(s=s===null?ut.errors:s.concat(ut.errors),n=s.length);var M=f===n}else var M=!0}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/26/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="wp-cli"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.command===void 0&&(q="command")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/27/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="command"||f==="wpCliPath"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/27/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var K=ne===n}else var K=!0;if(K)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/27/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var K=k===n}else var K=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var W=N===n}else var W=!0;if(W){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="wp-cli")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var W=N===n}else var W=!0;if(W){if(e.command!==void 0){let f=e.command;const N=n,re=n;let k=!1;const ne=n;if(typeof f!="string"){const ke={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[ke]:s.push(ke),n++}var Q=ne===n;if(k=k||Q,!k){const ke=n;if(n===ke)if(Array.isArray(f)){var se=!0;const ze=f.length;for(let er=0;er<ze;er++){const qe=n;if(typeof f[er]!="string"){const be={instancePath:t+"/command/"+er,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[be]:s.push(be),n++}var se=qe===n;if(!se)break}}else{const ze={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[ze]:s.push(ze),n++}var Q=ke===n;k=k||Q}if(k)n=re,s!==null&&(re?s.length=re:s=null);else{const ke={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ke]:s.push(ke),n++,v.errors=s,!1}var W=N===n}else var W=!0;if(W)if(e.wpCliPath!==void 0){const f=n;if(typeof e.wpCliPath!="string")return v.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/27/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var W=f===n}else var W=!0}}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/27/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="setSiteLanguage"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let q;if(e.language===void 0&&(q="language")||e.step===void 0&&(q="step"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/28/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"}],!1;{const ae=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="language"))return v.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ae===n){if(e.progress!==void 0){let f=e.progress;const N=n;if(n===N)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const k in f)if(!(k==="weight"||k==="caption"))return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(re===n){if(f.weight!==void 0){let k=f.weight;const ne=n;if(!(typeof k=="number"&&isFinite(k)))return v.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/28/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var le=ne===n}else var le=!0;if(le)if(f.caption!==void 0){const k=n;if(typeof f.caption!="string")return v.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/28/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var le=k===n}else var le=!0}}else return v.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var de=N===n}else var de=!0;if(de){if(e.step!==void 0){let f=e.step;const N=n;if(typeof f!="string")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="setSiteLanguage")return v.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/const",keyword:"const",params:{allowedValue:"setSiteLanguage"},message:"must be equal to constant"}],!1;var de=N===n}else var de=!0;if(de)if(e.language!==void 0){const f=n;if(typeof e.language!="string")return v.errors=[{instancePath:t+"/language",schemaPath:"#/oneOf/28/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var de=f===n}else var de=!0}}}}else return v.errors=[{instancePath:t,schemaPath:"#/oneOf/28/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else return v.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"step",tagValue:ce},message:'value of tag "step" must be in oneOf'}],!1;else return v.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"step",tagValue:ce},message:'tag "step" must be string'}],!1}}else return v.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return v.errors=s,n===0}function me(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const C=n;for(const b in e)if(!Wd.call(wv.properties,b))return me.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"}],!1;if(C===n){if(e.landingPage!==void 0){const b=n;if(typeof e.landingPage!="string")return me.errors=[{instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=b===n}else var o=!0;if(o){if(e.description!==void 0){const b=n;if(typeof e.description!="string")return me.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=b===n}else var o=!0;if(o){if(e.meta!==void 0){let b=e.meta;const F=n;if(n===F)if(b&&typeof b=="object"&&!Array.isArray(b)){let S;if(b.title===void 0&&(S="title")||b.author===void 0&&(S="author"))return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:S},message:"must have required property '"+S+"'"}],!1;{const j=n;for(const R in b)if(!(R==="title"||R==="description"||R==="author"||R==="categories"))return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:R},message:"must NOT have additional properties"}],!1;if(j===n){if(b.title!==void 0){const R=n;if(typeof b.title!="string")return me.errors=[{instancePath:t+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=R===n}else var l=!0;if(l){if(b.description!==void 0){const R=n;if(typeof b.description!="string")return me.errors=[{instancePath:t+"/meta/description",schemaPath:"#/properties/meta/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=R===n}else var l=!0;if(l){if(b.author!==void 0){const R=n;if(typeof b.author!="string")return me.errors=[{instancePath:t+"/meta/author",schemaPath:"#/properties/meta/properties/author/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=R===n}else var l=!0;if(l)if(b.categories!==void 0){let R=b.categories;const D=n;if(n===D)if(Array.isArray(R)){var p=!0;const B=R.length;for(let Y=0;Y<B;Y++){const G=n;if(typeof R[Y]!="string")return me.errors=[{instancePath:t+"/meta/categories/"+Y,schemaPath:"#/properties/meta/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=G===n;if(!p)break}}else return me.errors=[{instancePath:t+"/meta/categories",schemaPath:"#/properties/meta/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var l=D===n}else var l=!0}}}}}else return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=F===n}else var o=!0;if(o){if(e.preferredVersions!==void 0){let b=e.preferredVersions;const F=n;if(n===F)if(b&&typeof b=="object"&&!Array.isArray(b)){let S;if(b.php===void 0&&(S="php")||b.wp===void 0&&(S="wp"))return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:S},message:"must have required property '"+S+"'"}],!1;{const j=n;for(const R in b)if(!(R==="php"||R==="wp"))return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:R},message:"must NOT have additional properties"}],!1;if(j===n){if(b.php!==void 0){let R=b.php;const D=n,V=n;let B=!1;const Y=n;Un(R,{instancePath:t+"/preferredVersions/php",parentData:b,parentDataProperty:"php",rootData:a})||(s=s===null?Un.errors:s.concat(Un.errors),n=s.length);var c=Y===n;if(B=B||c,!B){const G=n;if(typeof R!="string"){const z={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[z]:s.push(z),n++}if(R!=="latest"){const z={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/const",keyword:"const",params:{allowedValue:"latest"},message:"must be equal to constant"};s===null?s=[z]:s.push(z),n++}var c=G===n;B=B||c}if(B)n=V,s!==null&&(V?s.length=V:s=null);else{const G={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[G]:s.push(G),n++,me.errors=s,!1}var d=D===n}else var d=!0;if(d)if(b.wp!==void 0){let R=b.wp;const D=n,V=n;let B=!1;const Y=n;if(typeof R!="string"){const te={instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[te]:s.push(te),n++}var m=Y===n;if(B=B||m,!B){const te=n;if(typeof R!="string"){const X={instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[X]:s.push(X),n++}if(R!=="latest"){const X={instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/anyOf/1/const",keyword:"const",params:{allowedValue:"latest"},message:"must be equal to constant"};s===null?s=[X]:s.push(X),n++}var m=te===n;if(B=B||m,!B){const X=n;if(typeof R!="boolean"){const Z={instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/anyOf/2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[Z]:s.push(Z),n++}if(R!==!1){const Z={instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/anyOf/2/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};s===null?s=[Z]:s.push(Z),n++}var m=X===n;B=B||m}}if(B)n=V,s!==null&&(V?s.length=V:s=null);else{const te={instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[te]:s.push(te),n++,me.errors=s,!1}var d=D===n}else var d=!0}}}else return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=F===n}else var o=!0;if(o){if(e.features!==void 0){let b=e.features;const F=n;if(n===F)if(b&&typeof b=="object"&&!Array.isArray(b)){const S=n;for(const j in b)if(!(j==="intl"||j==="networking"))return me.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:j},message:"must NOT have additional properties"}],!1;if(S===n){if(b.intl!==void 0){const j=n;if(typeof b.intl!="boolean")return me.errors=[{instancePath:t+"/features/intl",schemaPath:"#/properties/features/properties/intl/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var y=j===n}else var y=!0;if(y)if(b.networking!==void 0){const j=n;if(typeof b.networking!="boolean")return me.errors=[{instancePath:t+"/features/networking",schemaPath:"#/properties/features/properties/networking/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var y=j===n}else var y=!0}}else return me.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=F===n}else var o=!0;if(o){if(e.extraLibraries!==void 0){let b=e.extraLibraries;const F=n;if(n===F)if(Array.isArray(b)){var T=!0;const S=b.length;for(let j=0;j<S;j++){let R=b[j];const D=n;if(typeof R!="string")return me.errors=[{instancePath:t+"/extraLibraries/"+j,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(R!=="wp-cli")return me.errors=[{instancePath:t+"/extraLibraries/"+j,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var T=D===n;if(!T)break}}else return me.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=F===n}else var o=!0;if(o){if(e.constants!==void 0){let b=e.constants;const F=n;if(n===n)if(b&&typeof b=="object"&&!Array.isArray(b))for(const j in b){let R=b[j];const D=n;if(typeof R!="string"&&typeof R!="boolean"&&!(typeof R=="number"&&isFinite(R)))return me.errors=[{instancePath:t+"/constants/"+j.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:bv.additionalProperties.type},message:"must be string,boolean,number"}],!1;var g=D===n;if(!g)break}else return me.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=F===n}else var o=!0;if(o){if(e.plugins!==void 0){let b=e.plugins;const F=n;if(n===F)if(Array.isArray(b)){var w=!0;const S=b.length;for(let j=0;j<S;j++){let R=b[j];const D=n,V=n;let B=!1;const Y=n;if(typeof R!="string"){const te={instancePath:t+"/plugins/"+j,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[te]:s.push(te),n++}var _=Y===n;if(B=B||_,!B){const te=n;_e(R,{instancePath:t+"/plugins/"+j,parentData:b,parentDataProperty:j,rootData:a})||(s=s===null?_e.errors:s.concat(_e.errors),n=s.length);var _=te===n;B=B||_}if(B)n=V,s!==null&&(V?s.length=V:s=null);else{const te={instancePath:t+"/plugins/"+j,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[te]:s.push(te),n++,me.errors=s,!1}var w=D===n;if(!w)break}}else return me.errors=[{instancePath:t+"/plugins",schemaPath:"#/properties/plugins/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=F===n}else var o=!0;if(o){if(e.siteOptions!==void 0){let b=e.siteOptions;const F=n;if(n===F)if(b&&typeof b=="object"&&!Array.isArray(b)){const S=n;for(const j in b)if(j!=="blogname"){const R=n;if(typeof b[j]!="string")return me.errors=[{instancePath:t+"/siteOptions/"+j.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=R===n;if(!O)break}if(S===n&&b.blogname!==void 0&&typeof b.blogname!="string")return me.errors=[{instancePath:t+"/siteOptions/blogname",schemaPath:"#/properties/siteOptions/properties/blogname/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}else return me.errors=[{instancePath:t+"/siteOptions",schemaPath:"#/properties/siteOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=F===n}else var o=!0;if(o){if(e.login!==void 0){let b=e.login;const F=n,P=n;let S=!1;const j=n;if(typeof b!="boolean"){const D={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[D]:s.push(D),n++}var E=j===n;if(S=S||E,!S){const D=n;if(n===D)if(b&&typeof b=="object"&&!Array.isArray(b)){let B;if(b.username===void 0&&(B="username")||b.password===void 0&&(B="password")){const Y={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"};s===null?s=[Y]:s.push(Y),n++}else{const Y=n;for(const G in b)if(!(G==="username"||G==="password")){const te={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:G},message:"must NOT have additional properties"};s===null?s=[te]:s.push(te),n++;break}if(Y===n){if(b.username!==void 0){const G=n;if(typeof b.username!="string"){const te={instancePath:t+"/login/username",schemaPath:"#/properties/login/anyOf/1/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[te]:s.push(te),n++}var I=G===n}else var I=!0;if(I)if(b.password!==void 0){const G=n;if(typeof b.password!="string"){const z={instancePath:t+"/login/password",schemaPath:"#/properties/login/anyOf/1/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[z]:s.push(z),n++}var I=G===n}else var I=!0}}}else{const B={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[B]:s.push(B),n++}var E=D===n;S=S||E}if(S)n=P,s!==null&&(P?s.length=P:s=null);else{const D={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[D]:s.push(D),n++,me.errors=s,!1}var o=F===n}else var o=!0;if(o){if(e.steps!==void 0){let b=e.steps;const F=n;if(n===F)if(Array.isArray(b)){var $=!0;const S=b.length;for(let j=0;j<S;j++){let R=b[j];const D=n,V=n;let B=!1;const Y=n;v(R,{instancePath:t+"/steps/"+j,parentData:b,parentDataProperty:j,rootData:a})||(s=s===null?v.errors:s.concat(v.errors),n=s.length);var L=Y===n;if(B=B||L,!B){const te=n;if(typeof R!="string"){const X={instancePath:t+"/steps/"+j,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[X]:s.push(X),n++}var L=te===n;if(B=B||L,!B){const X=n,ee={instancePath:t+"/steps/"+j,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};s===null?s=[ee]:s.push(ee),n++;var L=X===n;if(B=B||L,!B){const fe=n;if(typeof R!="boolean"){const ie={instancePath:t+"/steps/"+j,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[ie]:s.push(ie),n++}if(R!==!1){const ie={instancePath:t+"/steps/"+j,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};s===null?s=[ie]:s.push(ie),n++}var L=fe===n;if(B=B||L,!B){const ie=n;if(R!==null){const Oe={instancePath:t+"/steps/"+j,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};s===null?s=[Oe]:s.push(Oe),n++}var L=ie===n;B=B||L}}}}if(B)n=V,s!==null&&(V?s.length=V:s=null);else{const te={instancePath:t+"/steps/"+j,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[te]:s.push(te),n++,me.errors=s,!1}var $=D===n;if(!$)break}}else return me.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=F===n}else var o=!0;if(o)if(e.$schema!==void 0){const b=n;if(typeof e.$schema!="string")return me.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=b===n}else var o=!0}}}}}}}}}}}}else return me.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return me.errors=s,n===0}function Ks(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;return me(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?me.errors:s.concat(me.errors),n=s.length),Ks.errors=s,n===0}const{wpCLI:Ev,...qp}=gv,Sv={...qp,"wp-cli":Ev,importFile:qp.importWxr};class rl extends Error{constructor(t,r){super(t),this.name="InvalidBlueprintError",this.validationErrors=r}}class zd extends Error{constructor(t){const{stepNumber:r,step:i,cause:a}=t,s=a instanceof Error?a:new Error(String(a)),n=`Error when executing the blueprint step #${r}`,o=s.message?`${n}: ${s.message}`:n;super(o,{cause:s}),this.name="BlueprintStepExecutionError",this.stepNumber=r,this.step=i,this.messages=(s.message||"").split(`
1383
+ `).map(l=>l.trim()).filter(Boolean)}}async function Li(e,t={}){const r={...t};let i;return Ii(e)?(i=await Vd(e),r.streamBundledFile=function(...a){return e.read(...a)}):i=e,Tv(i,r)}function Ii(e){return e&&"read"in e&&typeof e.read=="function"}async function Vd(e){if(!Ii(e))return e;const r=await(await e.read("blueprint.json")).text();return JSON.parse(r)}function Tv(e,{progress:t=new yi,semaphore:r=new ns({concurrency:3}),onStepCompleted:i=()=>{},onBlueprintValidated:a=()=>{},corsProxy:s,streamBundledFile:n,gitAdditionalHeadersCallback:o,additionalSteps:l}={}){var g,w,_,O,E,I,$,L,C,b,F;e=structuredClone(e),e={...e,steps:(e.steps||[]).filter(Gd).filter($v)},e.steps=[...e.steps||[],...l||[]],((g=e.preferredVersions)==null?void 0:g.wp)===!1&&Iv(e);for(const P of e.steps)!P||typeof P!="object"||(P.step==="importFile"?(P.step="importWxr",Te.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):(P==null?void 0:P.step)==="installPlugin"&&"pluginZipFile"in P?(P.pluginData=P.pluginZipFile,Te.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):(P==null?void 0:P.step)==="installTheme"&&"themeZipFile"in P&&(P.themeData=P.themeZipFile,Te.warn('The "themeZipFile" option of the "installTheme" step is deprecated. Use "themeData" instead.')));if(e.constants&&e.steps.unshift({step:"defineWpConfigConsts",consts:e.constants}),e.siteOptions&&e.steps.unshift({step:"setSiteOptions",options:e.siteOptions}),e.plugins){const P=e.plugins.map(S=>typeof S=="string"?Cv(S)?{resource:"zip",inner:{resource:"git:directory",url:S.trim().replace(/\/+$/,""),ref:"HEAD"}}:S.startsWith("https://")?{resource:"url",url:S}:{resource:"wordpress.org/plugins",slug:S}:S).map(S=>({step:"installPlugin",pluginData:S}));e.steps.unshift(...P)}e.login&&e.steps.unshift({step:"login",...e.login===!0?{username:"admin"}:e.login});const p=((w=e.steps)==null?void 0:w.findIndex(P=>typeof P=="object"&&(P==null?void 0:P.step)&&["wp-cli","enableMultisite"].includes(P.step)))??-1;if((_=e==null?void 0:e.extraLibraries)!=null&&_.includes("wp-cli")||p!==-1){const P={step:"writeFile",data:fv,path:Xo};p===-1?(O=e.steps)==null||O.push(P):(E=e.steps)==null||E.splice(p,0,P)}const c=(I=e.steps)==null?void 0:I.findIndex(P=>typeof P=="object"&&(P==null?void 0:P.step)==="importWxr");c!==void 0&&c>-1&&(($=e.steps)==null||$.splice(c,0,{step:"installPlugin",pluginData:{resource:"wordpress.org/plugins",slug:"wordpress-importer"}}));const d=Zd(e);if(!d.valid){const{errors:P}=d,S=Ov(e,P);throw new rl(`Invalid Blueprint: The Blueprint does not conform to the schema.
1384
1384
 
1385
1385
  Found ${P.length} validation error(s):
1386
1386
 
1387
1387
  ${S}
1388
1388
 
1389
- Please review your Blueprint and fix these issues. Learn more about the Blueprint format: https://wordpress.github.io/wordpress-playground/blueprints/data-format`,P)}a(e);const m=e.steps||[],y=m.reduce((P,S)=>{var j;return P+(((j=S.progress)==null?void 0:j.weight)||1)},0),T=m.map(P=>Rv(P,{semaphore:r,rootProgressTracker:t,totalProgressWeight:y,corsProxy:s,streamBundledFile:n,gitAdditionalHeadersCallback:o}));return{versions:{php:Av((L=e.preferredVersions)==null?void 0:L.php,Nh,ec),wp:((C=e.preferredVersions)==null?void 0:C.wp)||"latest"},features:{intl:((_=e.features)==null?void 0:_.intl)??!1,networking:((F=e.features)==null?void 0:F.networking)??!0},extraLibraries:e.extraLibraries||[],run:async P=>{try{for(const{resources:S}of T)for(const j of S)j.setPlayground(P),j.isAsync&&j.resolve().catch(()=>{});for(const[S,{run:j,step:R}]of Object.entries(T))try{const D=await j(P);i(D,R)}catch(D){const V=Number(S)+1;throw new zd({stepNumber:V,step:R,cause:D})}}finally{try{const S=await P.pathToInternalUrl(e.landingPage||"/");await P.goTo("/index.php?playground-redirection-handler&next="+encodeURIComponent(S))}catch{}t.finish()}}}}function Ov(e,t){return t.map((r,i)=>{var o;const a=r.instancePath||"/";let s=r.message||"validation failed",n="";if(s.includes("must NOT have additional properties")){const l=(o=r.params)==null?void 0:o.additionalProperty;if(l){s=`has unexpected property "${l}"`;try{const p=a.split("/").filter(Boolean);let c=e;for(const d of p)c&&typeof c=="object"&&(c=c[d]);if(c&&typeof c=="object"){const d=c[l],m=JSON.stringify(d);n=`
1389
+ Please review your Blueprint and fix these issues. Learn more about the Blueprint format: https://wordpress.github.io/wordpress-playground/blueprints/data-format`,P)}a(e);const m=e.steps||[],y=m.reduce((P,S)=>{var j;return P+(((j=S.progress)==null?void 0:j.weight)||1)},0),T=m.map(P=>Rv(P,{semaphore:r,rootProgressTracker:t,totalProgressWeight:y,corsProxy:s,streamBundledFile:n,gitAdditionalHeadersCallback:o}));return{versions:{php:Av((L=e.preferredVersions)==null?void 0:L.php,Nh,ec),wp:((C=e.preferredVersions)==null?void 0:C.wp)||"latest"},features:{intl:((b=e.features)==null?void 0:b.intl)??!1,networking:((F=e.features)==null?void 0:F.networking)??!0},extraLibraries:e.extraLibraries||[],run:async P=>{try{for(const{resources:S}of T)for(const j of S)j.setPlayground(P),j.isAsync&&j.resolve().catch(()=>{});for(const[S,{run:j,step:R}]of Object.entries(T))try{const D=await j(P);i(D,R)}catch(D){const V=Number(S)+1;throw new zd({stepNumber:V,step:R,cause:D})}}finally{try{const S=await P.pathToInternalUrl(e.landingPage||"/");await P.goTo("/index.php?playground-redirection-handler&next="+encodeURIComponent(S))}catch{}t.finish()}}}}function Ov(e,t){return t.map((r,i)=>{var o;const a=r.instancePath||"/";let s=r.message||"validation failed",n="";if(s.includes("must NOT have additional properties")){const l=(o=r.params)==null?void 0:o.additionalProperty;if(l){s=`has unexpected property "${l}"`;try{const p=a.split("/").filter(Boolean);let c=e;for(const d of p)c&&typeof c=="object"&&(c=c[d]);if(c&&typeof c=="object"){const d=c[l],m=JSON.stringify(d);n=`
1390
1390
  "${l}": ${m}
1391
1391
  ${"^".repeat(l.length+2)} This property is not recognized`}}catch{}}}else try{const l=a.split("/").filter(Boolean);let p=e;for(const c of l)p&&typeof p=="object"&&(p=p[c]);if(p!==void 0){const c=JSON.stringify(p,null,2);n=`
1392
1392
  Value: ${c.length>200?c.substring(0,200)+"...":c}`}}catch{}return`${i+1}. At path "${a}": ${s}${n}`}).join(`
@@ -1472,7 +1472,7 @@ function playground_progress_reporter() {
1472
1472
  }
1473
1473
  playground_add_filter('blueprint.progress_reporter', 'playground_progress_reporter');
1474
1474
  require( "/tmp/blueprints.phar" );
1475
- `));const p=await i.cli(["/internal/shared/bin/php","/tmp/run-blueprints.php","exec",o,...t]);return p.finished.finally(l),p}class Kd extends Error{constructor(t,r,i){super(t,i),this.name="BlueprintFetchError",this.url=r}}async function Dv(e){let t;try{const r=await fetch(e,{credentials:"omit"});if(!r.ok)throw new Error(`Failed to fetch blueprint from ${e}`);t=await r.arrayBuffer()}catch(r){throw new Kd(`Blueprint file could not be resolved from ${e}: ${r instanceof Error?r.message:String(r)}`,e,{cause:r})}try{const r=new TextDecoder().decode(t);return JSON.parse(r),new R_([new A_({"blueprint.json":r}),new F_({baseUrl:e})])}catch(r){if(await qv(t))return Bv(t);throw new Error(`Blueprint file at ${e} is neither a valid JSON nor a ZIP file.`,{cause:r})}}function Uv(e){const t=e.map(i=>Mr(i));if(t.some(i=>fl(i)==="blueprint.json"&&Bn(i)===""))return"blueprint.json";const r=new Set;for(const i of t){const a=i.split("/")[0];a&&a!==fl(i)&&a!=="__MACOSX"&&r.add(a)}if(r.size>1)throw new Error("ZIP contains multiple top-level directories. Bundle ZIPs must contain blueprint.json at the root or inside a single top-level directory.");if(r.size===1){const a=`${[...r][0]}/blueprint.json`;if(t.includes(a))return a}throw new Error("ZIP does not contain a blueprint.json. Place blueprint.json at the ZIP root or inside a single top-level directory.")}async function Bv(e){const t=di.fromArrayBuffer(e),r=await t.getAllFilePaths(),i=Uv(r),a=Bn(i);return a===""?t:new $_(a,t)}async function qv(e){if(e.byteLength<4)return!1;const t=new Uint8Array(e,0,4);return t[0]===80&&t[1]===75&&t[2]===3&&t[3]===4}async function Xd(e){if((await dn.create(e)).getVersion()===1){const r=await Li(e);return{wpVersion:r.versions.wp,phpVersion:r.versions.php,intl:r.features.intl,networking:r.features.networking,extraLibraries:r.extraLibraries,constants:{}}}else return{phpVersion:sv,wpVersion:"latest",intl:!1,networking:!0,constants:{},extraLibraries:[]}}function Mv(){}const Wv=[],Hv="127.0.0.1",zv=4400;class Vv{constructor(t){this.options=t}async bootPlayground(t,r){var F;const{onBlueprintValidated:i,onBlueprintStepCompleted:a,corsProxy:s,gitAdditionalHeadersCallback:n,mounts:o,sapiName:l,scope:p,shouldInstallWordPress:c,sqliteDriverVersion:d,wordpressInstallMode:m,onClientConnected:y,pathAliases:T}=this.options,g=r.stage(.5),w=r.stage(),b=this.options.blueprint||{},O=lc(t.contentWindow,t.ownerDocument.defaultView);await O.isConnected(),r.pipe(O);const E=await Xd(b);await O.onDownloadProgress(w.loadingListener);const I=!Ii(b)&&((F=b.preferredVersions)==null?void 0:F.wp)===!1;if(c===!0&&I)throw new Error("Conflicting options: `shouldInstallWordPress: true` was passed to startPlaygroundWeb, but the Blueprint sets `preferredVersions.wp: false`. Pick one.");const $=c??!I;if(await O.boot({mounts:o,sapiName:l,scope:p??Math.random().toFixed(16),shouldInstallWordPress:$,wordpressInstallMode:m,phpVersion:E.phpVersion,wpVersion:E.wpVersion,extensions:E.intl?["intl"]:[],withNetworking:E.networking,corsProxyUrl:s,sqliteDriverVersion:d,pathAliases:T}),await O.isReady(),w.finish(),Vp(Te,O),y==null||y(O),(await dn.create(b)).getVersion()===1){const P=await Li(b,{progress:g,onStepCompleted:a,onBlueprintValidated:i,corsProxy:s,gitAdditionalHeadersCallback:n});await nl(P,O)}const C=parseFloat(E.wpVersion),_=Number.isFinite(C)&&C<5.1;return E.networking&&!_&&$&&await O.prefetchUpdateChecks(),O}}class Zv{constructor(t){this.options=t}async bootPlayground(t,r){const{blueprint:i,onClientConnected:a,corsProxy:s,mounts:n,sapiName:o,scope:l,pathAliases:p}=this.options,c=r.stage(.25),d=r.stage(.75),m=lc(t.contentWindow,t.ownerDocument.defaultView);return await m.isConnected(),r.pipe(m),await m.onDownloadProgress(c.loadingListener),await m.addEventListener("blueprint.message",({message:y})=>{switch(y.type){case"blueprint.target_resolved":break;case"blueprint.progress":{d.set(y.progress),d.setCaption(y.caption);break}case"blueprint.error":{const T="\x1B[31m",g="\x1B[1m",w="\x1B[0m";throw y.details?Te.error(`${T}${g}Fatal error:${w} Uncaught ${y.details.exception}: ${y.details.message}
1475
+ `));const p=await i.cli(["/internal/shared/bin/php","/tmp/run-blueprints.php","exec",o,...t]);return p.finished.finally(l),p}class Kd extends Error{constructor(t,r,i){super(t,i),this.name="BlueprintFetchError",this.url=r}}async function Dv(e){let t;try{const r=await fetch(e,{credentials:"omit"});if(!r.ok)throw new Error(`Failed to fetch blueprint from ${e}`);t=await r.arrayBuffer()}catch(r){throw new Kd(`Blueprint file could not be resolved from ${e}: ${r instanceof Error?r.message:String(r)}`,e,{cause:r})}try{const r=new TextDecoder().decode(t);return JSON.parse(r),new R_([new A_({"blueprint.json":r}),new F_({baseUrl:e})])}catch(r){if(await qv(t))return Bv(t);throw new Error(`Blueprint file at ${e} is neither a valid JSON nor a ZIP file.`,{cause:r})}}function Uv(e){const t=e.map(i=>Mr(i));if(t.some(i=>fl(i)==="blueprint.json"&&Bn(i)===""))return"blueprint.json";const r=new Set;for(const i of t){const a=i.split("/")[0];a&&a!==fl(i)&&a!=="__MACOSX"&&r.add(a)}if(r.size>1)throw new Error("ZIP contains multiple top-level directories. Bundle ZIPs must contain blueprint.json at the root or inside a single top-level directory.");if(r.size===1){const a=`${[...r][0]}/blueprint.json`;if(t.includes(a))return a}throw new Error("ZIP does not contain a blueprint.json. Place blueprint.json at the ZIP root or inside a single top-level directory.")}async function Bv(e){const t=di.fromArrayBuffer(e),r=await t.getAllFilePaths(),i=Uv(r),a=Bn(i);return a===""?t:new $_(a,t)}async function qv(e){if(e.byteLength<4)return!1;const t=new Uint8Array(e,0,4);return t[0]===80&&t[1]===75&&t[2]===3&&t[3]===4}async function Xd(e){if((await dn.create(e)).getVersion()===1){const r=await Li(e);return{wpVersion:r.versions.wp,phpVersion:r.versions.php,intl:r.features.intl,networking:r.features.networking,extraLibraries:r.extraLibraries,constants:{}}}else return{phpVersion:sv,wpVersion:"latest",intl:!1,networking:!0,constants:{},extraLibraries:[]}}function Mv(){}const Wv=[],Hv="127.0.0.1",zv=4400;class Vv{constructor(t){this.options=t}async bootPlayground(t,r){var S;const{onBlueprintValidated:i,onBlueprintStepCompleted:a,corsProxy:s,gitAdditionalHeadersCallback:n,mounts:o,sapiName:l,scope:p,shouldInstallWordPress:c,shouldBootWordPress:d,sqliteDriverVersion:m,wordpressInstallMode:y,onClientConnected:T,pathAliases:g}=this.options,w=r.stage(.5),_=r.stage(),O=this.options.blueprint||{},E=lc(t.contentWindow,t.ownerDocument.defaultView);await E.isConnected(),r.pipe(E);const I=await Xd(O);await E.onDownloadProgress(_.loadingListener);const $=!Ii(O)&&((S=O.preferredVersions)==null?void 0:S.wp)===!1;if((c===!0||d===!0)&&$)throw new Error("Conflicting options: WordPress install or boot was requested, but the Blueprint sets `preferredVersions.wp: false`. Pick one.");const L=d??!$,C=c??L;if(C&&!L)throw new Error("Conflicting options: WordPress installation was requested, but WordPress boot was disabled. Pick one.");if(await E.boot({mounts:o,sapiName:l,scope:p??Math.random().toFixed(16),shouldInstallWordPress:C,shouldBootWordPress:L,wordpressInstallMode:y,phpVersion:I.phpVersion,wpVersion:I.wpVersion,extensions:I.intl?["intl"]:[],withNetworking:I.networking,corsProxyUrl:s,sqliteDriverVersion:m,pathAliases:g}),await E.isReady(),_.finish(),Vp(Te,E),T==null||T(E),(await dn.create(O)).getVersion()===1){const j=await Li(O,{progress:w,onStepCompleted:a,onBlueprintValidated:i,corsProxy:s,gitAdditionalHeadersCallback:n});await nl(j,E)}const F=parseFloat(I.wpVersion),P=Number.isFinite(F)&&F<5.1;return I.networking&&!P&&C&&await E.prefetchUpdateChecks(),E}}class Zv{constructor(t){this.options=t}async bootPlayground(t,r){const{blueprint:i,onClientConnected:a,corsProxy:s,mounts:n,sapiName:o,scope:l,pathAliases:p}=this.options,c=r.stage(.25),d=r.stage(.75),m=lc(t.contentWindow,t.ownerDocument.defaultView);return await m.isConnected(),r.pipe(m),await m.onDownloadProgress(c.loadingListener),await m.addEventListener("blueprint.message",({message:y})=>{switch(y.type){case"blueprint.target_resolved":break;case"blueprint.progress":{d.set(y.progress),d.setCaption(y.caption);break}case"blueprint.error":{const T="\x1B[31m",g="\x1B[1m",w="\x1B[0m";throw y.details?Te.error(`${T}${g}Fatal error:${w} Uncaught ${y.details.exception}: ${y.details.message}
1476
1476
  at ${y.details.file}:${y.details.line}
1477
1477
  `+(y.details.trace?y.details.trace+`
1478
1478
  `:"")):Te.error(`${T}${g}Error:${w} ${y.message}