@mappedin/mappedin-js 5.20.0 → 5.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/get-venue/index.js +1 -1
- package/lib/esm/renderer/{browser-5JRP27GD.js → browser-WHTUFU2K.js} +1 -1
- package/lib/esm/renderer/chunk-6IFB2STL.js +1 -0
- package/lib/esm/renderer/{chunk-HIJDNMW3.js → chunk-7RQTLAKE.js} +1 -1
- package/lib/esm/renderer/index.d.ts +54 -22
- package/lib/esm/renderer/index.js +1 -1
- package/lib/esm/renderer/{outdoor-context-JPD2EGDD.js → outdoor-context-VFHSJAOZ.js} +1 -1
- package/lib/mappedin.js +1 -1
- package/lib/node/index.js +1 -1
- package/package.json +2 -2
- package/lib/esm/renderer/chunk-7CXL5BRC.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as hn}from"./chunk-7CXL5BRC.js";import{a as u}from"./chunk-XPQLPFMX.js";hn();var ln={},Qn=u((function(n,t,r,e,i){var a=new Worker(ln[t]||(ln[t]=URL.createObjectURL(new Blob([n+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(n){var t=n.data,r=t.$e$;if(r){var e=new Error(r[0]);e.code=r[1],e.stack=r[2],i(e,null)}else i(null,t)},a.postMessage(r,e),a}),"wk"),D=Uint8Array,q=Uint16Array,hr=Uint32Array,lr=new D([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),cr=new D([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ur=new D([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),cn=u((function(n,t){for(var r=new q(31),e=0;e<31;++e)r[e]=t+=1<<n[e-1];var i=new hr(r[30]);for(e=1;e<30;++e)for(var a=r[e];a<r[e+1];++a)i[a]=a-r[e]<<5|e;return[r,i]}),"freb"),pn=cn(lr,2),Hr=pn[0],Br=pn[1];Hr[28]=258,Br[258]=28;var gn=cn(cr,0),yn=gn[0],Yr=gn[1],Dr=new q(32768);for(E=0;E<32768;++E)tr=(61680&(tr=(52428&(tr=(43690&E)>>>1|(21845&E)<<1))>>>2|(13107&tr)<<2))>>>4|(3855&tr)<<4,Dr[E]=((65280&tr)>>>8|(255&tr)<<8)>>>1;var tr,V=u((function(n,t,r){for(var e=n.length,i=0,a=new q(t);i<e;++i)n[i]&&++a[n[i]-1];var o,u=new q(t);for(i=0;i<t;++i)u[i]=u[i-1]+a[i-1]<<1;if(r){o=new q(1<<t);var s=15-t;for(i=0;i<e;++i)if(n[i])for(var f=i<<4|n[i],h=t-n[i],c=u[n[i]-1]++<<h,l=c|(1<<h)-1;c<=l;++c)o[Dr[c]>>>s]=f}else for(o=new q(e),i=0;i<e;++i)n[i]&&(o[i]=Dr[u[n[i]-1]++]>>>15-n[i]);return o}),"hMap"),er=new D(288);for(E=0;E<144;++E)er[E]=8;for(E=144;E<256;++E)er[E]=9;for(E=256;E<280;++E)er[E]=7;for(E=280;E<288;++E)er[E]=8;var pr=new D(32);for(E=0;E<32;++E)pr[E]=5;var E,wn=V(er,9,0),mn=V(er,9,1),xn=V(pr,5,0),zn=V(pr,5,1),Zr=u((function(n){for(var t=n[0],r=1;r<n.length;++r)n[r]>t&&(t=n[r]);return t}),"max"),X=u((function(n,t,r){var e=t/8|0;return(n[e]|n[e+1]<<8)>>(7&t)&r}),"bits"),kr=u((function(n,t){var r=t/8|0;return(n[r]|n[r+1]<<8|n[r+2]<<16)>>(7&t)}),"bits16"),Sr=u((function(n){return(n+7)/8|0}),"shft"),d=u((function(n,t,r){(null==t||t<0)&&(t=0),(null==r||r>n.length)&&(r=n.length);var e=new(2==n.BYTES_PER_ELEMENT?q:4==n.BYTES_PER_ELEMENT?hr:D)(r-t);return e.set(n.subarray(t,r)),e}),"slc"),at={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},An=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],g=u((function(n,t,r){var e=new Error(t||An[n]);if(e.code=n,Error.captureStackTrace&&Error.captureStackTrace(e,g),!r)throw e;return e}),"err"),Cr=u((function(n,t,r){var e=n.length;if(!e||r&&r.f&&!r.l)return t||new D(0);var i=!t||r,a=!r||r.i;r||(r={}),t||(t=new D(3*e));var o=u((function(n){var r=t.length;if(n>r){var e=new D(Math.max(2*r,n));e.set(t),t=e}}),"cbuf"),s=r.f||0,f=r.p||0,h=r.b||0,c=r.l,l=r.d,p=r.m,v=r.n,y=8*e;do{if(!c){s=X(n,f,1);var m=X(n,f+1,3);if(f+=3,!m){var b=n[(N=Sr(f)+4)-4]|n[N-3]<<8,w=N+b;if(w>e){a&&g(0);break}i&&o(h+b),t.set(n.subarray(N,w),h),r.b=h+=b,r.p=f=8*w,r.f=s;continue}if(1==m)c=mn,l=zn,p=9,v=5;else if(2==m){var z=X(n,f,31)+257,E=X(n,f+10,15)+4,I=z+X(n,f+5,31)+1;f+=14;for(var k=new D(I),S=new D(19),A=0;A<E;++A)S[Ur[A]]=X(n,f+3*A,7);f+=3*E;var M=Zr(S),x=(1<<M)-1,U=V(S,M,1);for(A=0;A<I;){var N,T=U[X(n,f,x)];if(f+=15&T,(N=T>>>4)<16)k[A++]=N;else{var C=0,F=0;for(16==N?(F=3+X(n,f,3),f+=2,C=k[A-1]):17==N?(F=3+X(n,f,7),f+=3):18==N&&(F=11+X(n,f,127),f+=7);F--;)k[A++]=C}}var W=k.subarray(0,z),Z=k.subarray(z);p=Zr(W),v=Zr(Z),c=V(W,p,1),l=V(Z,v,1)}else g(1);if(f>y){a&&g(0);break}}i&&o(h+131072);for(var q=(1<<p)-1,L=(1<<v)-1,G=f;;G=f){var _=(C=c[kr(n,f)&q])>>>4;if((f+=15&C)>y){a&&g(0);break}if(C||g(2),_<256)t[h++]=_;else{if(256==_){G=f,c=null;break}var K=_-254;if(_>264){var O=lr[A=_-257];K=X(n,f,(1<<O)-1)+Hr[A],f+=O}var P=l[kr(n,f)&L],R=P>>>4;P||g(3),f+=15&P;Z=yn[R];if(R>3){O=cr[R];Z+=kr(n,f)&(1<<O)-1,f+=O}if(f>y){a&&g(0);break}i&&o(h+131072);for(var B=h+K;h<B;h+=4)t[h]=t[h-Z],t[h+1]=t[h+1-Z],t[h+2]=t[h+2-Z],t[h+3]=t[h+3-Z];h=B}}r.l=c,r.p=G,r.b=h,r.f=s,c&&(s=1,r.m=p,r.d=l,r.n=v)}while(!s);return h==t.length?t:d(t,0,h)}),"inflt"),nr=u((function(n,t,r){r<<=7&t;var e=t/8|0;n[e]|=r,n[e+1]|=r>>>8}),"wbits"),gr=u((function(n,t,r){r<<=7&t;var e=t/8|0;n[e]|=r,n[e+1]|=r>>>8,n[e+2]|=r>>>16}),"wbits16"),Gr=u((function(n,t){for(var r=[],e=0;e<n.length;++e)n[e]&&r.push({s:e,f:n[e]});var i=r.length,a=r.slice();if(!i)return[ir,0];if(1==i){var o=new D(r[0].s+1);return o[r[0].s]=1,[o,1]}r.sort((function(n,t){return n.f-t.f})),r.push({s:-1,f:25001});var u=r[0],s=r[1],f=0,h=1,c=2;for(r[0]={s:-1,f:u.f+s.f,l:u,r:s};h!=i-1;)u=r[r[f].f<r[c].f?f++:c++],s=r[f!=h&&r[f].f<r[c].f?f++:c++],r[h++]={s:-1,f:u.f+s.f,l:u,r:s};var l=a[0].s;for(e=1;e<i;++e)a[e].s>l&&(l=a[e].s);var p=new q(l+1),v=Or(r[h-1],p,0);if(v>t){e=0;var g=0,d=v-t,y=1<<d;for(a.sort((function(n,t){return p[t.s]-p[n.s]||n.f-t.f}));e<i;++e){var m=a[e].s;if(!(p[m]>t))break;g+=y-(1<<v-p[m]),p[m]=t}for(g>>>=d;g>0;){var b=a[e].s;p[b]<t?g-=1<<t-p[b]++-1:++e}for(;e>=0&&g;--e){var w=a[e].s;p[w]==t&&(--p[w],++g)}v=t}return[new D(p),v]}),"hTree"),Or=u((function(n,t,r){return-1==n.s?Math.max(Or(n.l,t,r+1),Or(n.r,t,r+1)):t[n.s]=r}),"ln"),Wr=u((function(n){for(var t=n.length;t&&!n[--t];);for(var r=new q(++t),e=0,i=n[0],a=1,o=u((function(n){r[e++]=n}),"w"),s=1;s<=t;++s)if(n[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=n[s]}return[r.subarray(0,e),t]}),"lc"),yr=u((function(n,t){for(var r=0,e=0;e<t.length;++e)r+=n[e]*t[e];return r}),"clen"),Lr=u((function(n,t,r){var e=r.length,i=Sr(t+2);n[i]=255&e,n[i+1]=e>>>8,n[i+2]=255^n[i],n[i+3]=255^n[i+1];for(var a=0;a<e;++a)n[i+a+4]=r[a];return 8*(i+4+e)}),"wfblk"),jr=u((function(n,t,r,e,i,a,o,u,s,f,h){nr(t,h++,r),++i[256];for(var c=Gr(i,15),l=c[0],p=c[1],v=Gr(a,15),g=v[0],d=v[1],y=Wr(l),m=y[0],b=y[1],w=Wr(g),z=w[0],D=w[1],E=new q(19),I=0;I<m.length;++I)E[31&m[I]]++;for(I=0;I<z.length;++I)E[31&z[I]]++;for(var k=Gr(E,7),S=k[0],A=k[1],M=19;M>4&&!S[Ur[M-1]];--M);var x,U,N,T,C=f+5<<3,F=yr(i,er)+yr(a,pr)+o,W=yr(i,l)+yr(a,g)+o+14+3*M+yr(E,S)+(2*E[16]+3*E[17]+7*E[18]);if(C<=F&&C<=W)return Lr(t,h,n.subarray(s,s+f));if(nr(t,h,1+(W<F)),h+=2,W<F){x=V(l,p,0),U=l,N=V(g,d,0),T=g;var Z=V(S,A,0);nr(t,h,b-257),nr(t,h+5,D-1),nr(t,h+10,M-4),h+=14;for(I=0;I<M;++I)nr(t,h+3*I,S[Ur[I]]);h+=3*M;for(var X=[m,z],L=0;L<2;++L){var G=X[L];for(I=0;I<G.length;++I){var _=31&G[I];nr(t,h,Z[_]),h+=S[_],_>15&&(nr(t,h,G[I]>>>5&127),h+=G[I]>>>12)}}}else x=wn,U=er,N=xn,T=pr;for(I=0;I<u;++I)if(e[I]>255){_=e[I]>>>18&31;gr(t,h,x[_+257]),h+=U[_+257],_>7&&(nr(t,h,e[I]>>>23&31),h+=lr[_]);var K=31&e[I];gr(t,h,N[K]),h+=T[K],K>3&&(gr(t,h,e[I]>>>5&8191),h+=cr[K])}else gr(t,h,x[e[I]]),h+=U[e[I]];return gr(t,h,x[256]),h+U[256]}),"wblk"),Mn=new hr([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ir=new D(0),Tn=u((function(n,t,r,e,i,a){var o=n.length,s=new D(e+o+5*(1+Math.ceil(o/7e3))+i),f=s.subarray(e,s.length-i),h=0;if(!t||o<8)for(var c=0;c<=o;c+=65535){var l=c+65535;l>=o&&(f[h>>3]=a),h=Lr(f,h+1,n.subarray(c,l))}else{for(var p=Mn[t-1],v=p>>>13,g=8191&p,y=(1<<r)-1,m=new q(32768),b=new q(y+1),w=Math.ceil(r/3),z=2*w,E=u((function(t){return(n[t]^n[t+1]<<w^n[t+2]<<z)&y}),"hsh"),I=new hr(25e3),k=new q(288),S=new q(32),A=0,M=0,x=(c=0,0),U=0,N=0;c<o;++c){var T=E(c),C=32767&c,F=b[T];if(m[C]=F,b[T]=C,U<=c){var W=o-c;if((A>7e3||x>24576)&&W>423){h=jr(n,f,0,I,k,S,M,x,N,c-N,h),x=A=M=0,N=c;for(var Z=0;Z<286;++Z)k[Z]=0;for(Z=0;Z<30;++Z)S[Z]=0}var X=2,L=0,G=g,_=C-F&32767;if(W>2&&T==E(c-_))for(var K=Math.min(v,W)-1,O=Math.min(32767,c),V=Math.min(258,W);_<=O&&--G&&C!=F;){if(n[c+X]==n[c+X-_]){for(var P=0;P<V&&n[c+P]==n[c+P-_];++P);if(P>X){if(X=P,L=_,P>K)break;var R=Math.min(_,P-2),B=0;for(Z=0;Z<R;++Z){var j=c-_+Z+32768&32767,H=j-m[j]+32768&32767;H>B&&(B=H,F=j)}}}_+=(C=F)-(F=m[C])+32768&32767}if(L){I[x++]=268435456|Br[X]<<18|Yr[L];var $=31&Br[X],Y=31&Yr[L];M+=lr[$]+cr[Y],++k[257+$],++S[Y],U=c+X,++A}else I[x++]=n[c],++k[n[c]]}}h=jr(n,f,a,I,k,S,M,x,N,c-N,h),!a&&7&h&&(h=Lr(f,h+1,ir))}return d(s,0,e+Sr(h)+i)}),"dflt"),Un=function(){for(var n=new Int32Array(256),t=0;t<256;++t){for(var r=t,e=9;--e;)r=(1&r&&-306674912)^r>>>1;n[t]=r}return n}(),wr=u((function(){var n=-1;return{p:function(t){for(var r=n,e=0;e<t.length;++e)r=Un[255&r^t[e]]^r>>>8;n=r},d:function(){return~n}}}),"crc"),Jr=u((function(){var n=1,t=0;return{p:function(r){for(var e=n,i=t,a=0|r.length,o=0;o!=a;){for(var u=Math.min(o+2655,a);o<u;++o)i+=e+=r[o];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}n=e,t=i},d:function(){return(255&(n%=65521))<<24|n>>>8<<16|(255&(t%=65521))<<8|t>>>8}}}),"adler"),sr=u((function(n,t,r,e,i){return Tn(n,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(n.length)))):12+t.mem,r,e,!i)}),"dopt"),Er=u((function(n,t){var r={};for(var e in n)r[e]=n[e];for(var e in t)r[e]=t[e];return r}),"mrg"),Dn=u((function(n,t,r){for(var e=n(),i=n.toString(),a=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),o=0;o<e.length;++o){var u=e[o],s=a[o];if("function"==typeof u){t+=";"+s+"=";var f=u.toString();if(u.prototype)if(-1!=f.indexOf("[native code]")){var h=f.indexOf(" ",8)+1;t+=f.slice(h,f.indexOf("(",h))}else for(var c in t+=f,u.prototype)t+=";"+s+".prototype."+c+"="+u.prototype[c].toString();else t+=f}else r[s]=u}return[t,r]}),"wcln"),Pr=[],Vn=u((function(n){var t=[];for(var r in n)n[r].buffer&&t.push((n[r]=new n[r].constructor(n[r])).buffer);return t}),"cbfs"),Sn=u((function(n,t,r,e){var i;if(!Pr[r]){for(var a="",o={},u=n.length-1,s=0;s<u;++s)a=(i=Dn(n[s],a,o))[0],o=i[1];Pr[r]=Dn(n[u],a,o)}var f=Er({},Pr[r][1]);return Qn(Pr[r][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",r,f,Vn(f),e)}),"wrkr"),mr=u((function(){return[D,q,hr,lr,cr,Ur,Hr,yn,mn,zn,Dr,An,V,Zr,X,kr,Sr,d,g,Cr,Fr,or,Kr]}),"bInflt"),xr=u((function(){return[D,q,hr,lr,cr,Ur,Br,Yr,wn,er,xn,pr,Dr,Mn,ir,V,nr,gr,Gr,Or,Wr,yr,Lr,jr,Sr,d,Tn,sr,Nr,or]}),"bDflt"),Cn=u((function(){return[Vr,dr,I,wr,Un]}),"gze"),En=u((function(){return[Xr,Bn]}),"guze"),Fn=u((function(){return[br,I,Jr]}),"zle"),In=u((function(){return[Zn]}),"zule"),or=u((function(n){return postMessage(n,[n.buffer])}),"pbf"),Kr=u((function(n){return n&&n.size&&new D(n.size)}),"gu8"),zr=u((function(n,t,r,e,i,a){var o=Sn(r,e,i,(function(n,t){o.terminate(),a(n,t)}));return o.postMessage([n,t],t.consume?[n.buffer]:[]),function(){o.terminate()}}),"cbify"),b=u((function(n){return n.ondata=function(n,t){return postMessage([n,t],[n.buffer])},function(t){return n.push(t.data[0],t.data[1])}}),"astrm"),Ar=u((function(n,t,r,e,i){var a,o=Sn(n,e,i,(function(n,r){n?(o.terminate(),t.ondata.call(t,n)):(r[1]&&o.terminate(),t.ondata.call(t,n,r[0],r[1]))}));o.postMessage(r),t.push=function(n,r){t.ondata||g(5),a&&t.ondata(g(4,0,1),null,!!r),o.postMessage([n,a=r],[n.buffer])},t.terminate=function(){o.terminate()}}),"astrmify"),W=u((function(n,t){return n[t]|n[t+1]<<8}),"b2"),N=u((function(n,t){return(n[t]|n[t+1]<<8|n[t+2]<<16|n[t+3]<<24)>>>0}),"b4"),Qr=u((function(n,t){return N(n,t)+4294967296*N(n,t+4)}),"b8"),I=u((function(n,t,r){for(;r;++t)n[t]=r,r>>>=8}),"wbytes"),Vr=u((function(n,t){var r=t.filename;if(n[0]=31,n[1]=139,n[2]=8,n[8]=t.level<2?4:9==t.level?2:0,n[9]=3,0!=t.mtime&&I(n,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){n[3]=8;for(var e=0;e<=r.length;++e)n[e+10]=r.charCodeAt(e)}}),"gzh"),Xr=u((function(n){(31!=n[0]||139!=n[1]||8!=n[2])&&g(6,"invalid gzip data");var t=n[3],r=10;4&t&&(r+=n[10]|2+(n[11]<<8));for(var e=(t>>3&1)+(t>>4&1);e>0;e-=!n[r++]);return r+(2&t)}),"gzs"),Bn=u((function(n){var t=n.length;return(n[t-4]|n[t-3]<<8|n[t-2]<<16|n[t-1]<<24)>>>0}),"gzl"),dr=u((function(n){return 10+(n.filename&&n.filename.length+1||0)}),"gzhl"),br=u((function(n,t){var r=t.level,e=0==r?0:r<6?1:9==r?3:2;n[0]=120,n[1]=e<<6|(e?32-2*e:1)}),"zlh"),Zn=u((function(n){(8!=(15&n[0])||n[0]>>>4>7||(n[0]<<8|n[1])%31)&&g(6,"invalid zlib data"),32&n[1]&&g(6,"invalid zlib data: preset dictionaries not supported")}),"zlv");function _r(n,t){return!t&&"function"==typeof n&&(t=n,n={}),this.ondata=t,n}u(_r,"AsyncCmpStrm");var ar=function(){function n(n,t){!t&&"function"==typeof n&&(t=n,n={}),this.ondata=t,this.o=n||{}}return u(n,"Deflate"),n.prototype.p=function(n,t){this.ondata(sr(n,this.o,0,0,!t),t)},n.prototype.push=function(n,t){this.ondata||g(5),this.d&&g(4),this.d=t,this.p(n,t||!1)},n}(),Xn=function(){function n(n,t){Ar([xr,function(){return[b,ar]}],this,_r.call(this,n,t),(function(n){var t=new ar(n.data);onmessage=b(t)}),6)}return u(n,"AsyncDeflate"),n}();function dn(n,t,r){return r||(r=t,t={}),"function"!=typeof r&&g(7),zr(n,t,[xr],(function(n){return or(Nr(n.data[0],n.data[1]))}),0,r)}function Nr(n,t){return sr(n,t||{},0,0)}u(dn,"deflate"),u(Nr,"deflateSync");var K=function(){function n(n){this.s={},this.p=new D(0),this.ondata=n}return u(n,"Inflate"),n.prototype.e=function(n){this.ondata||g(5),this.d&&g(4);var t=this.p.length,r=new D(t+n.length);r.set(this.p),r.set(n,t),this.p=r},n.prototype.c=function(n){this.d=this.s.i=n||!1;var t=this.s.b,r=Cr(this.p,this.o,this.s);this.ondata(d(r,t,this.s.b),this.d),this.o=d(r,this.s.b-32768),this.s.b=this.o.length,this.p=d(this.p,this.s.p/8|0),this.s.p&=7},n.prototype.push=function(n,t){this.e(n),this.c(t)},n}(),kn=function(){function n(n){this.ondata=n,Ar([mr,function(){return[b,K]}],this,0,(function(){var n=new K;onmessage=b(n)}),7)}return u(n,"AsyncInflate"),n}();function Gn(n,t,r){return r||(r=t,t={}),"function"!=typeof r&&g(7),zr(n,t,[mr],(function(n){return or(Fr(n.data[0],Kr(n.data[1])))}),1,r)}function Fr(n,t){return Cr(n,t)}u(Gn,"inflate"),u(Fr,"inflateSync");var On=function(){function n(n,t){this.c=wr(),this.l=0,this.v=1,ar.call(this,n,t)}return u(n,"Gzip"),n.prototype.push=function(n,t){ar.prototype.push.call(this,n,t)},n.prototype.p=function(n,t){this.c.p(n),this.l+=n.length;var r=sr(n,this.o,this.v&&dr(this.o),t&&8,!t);this.v&&(Vr(r,this.o),this.v=0),t&&(I(r,r.length-8,this.c.d()),I(r,r.length-4,this.l)),this.ondata(r,t)},n}(),ot=function(){function n(n,t){Ar([xr,Cn,function(){return[b,ar,On]}],this,_r.call(this,n,t),(function(n){var t=new On(n.data);onmessage=b(t)}),8)}return u(n,"AsyncGzip"),n}();function ft(n,t,r){return r||(r=t,t={}),"function"!=typeof r&&g(7),zr(n,t,[xr,Cn,function(){return[Ln]}],(function(n){return or(Ln(n.data[0],n.data[1]))}),2,r)}function Ln(n,t){t||(t={});var r=wr(),e=n.length;r.p(n);var i=sr(n,t,dr(t),8),a=i.length;return Vr(i,t),I(i,a-8,r.d()),I(i,a-4,e),i}u(ft,"gzip"),u(Ln,"gzipSync");var rn=function(){function n(n){this.v=1,K.call(this,n)}return u(n,"Gunzip"),n.prototype.push=function(n,t){if(K.prototype.e.call(this,n),this.v){var r=this.p.length>3?Xr(this.p):4;if(r>=this.p.length&&!t)return;this.p=this.p.subarray(r),this.v=0}t&&(this.p.length<8&&g(6,"invalid gzip data"),this.p=this.p.subarray(0,-8)),K.prototype.c.call(this,t)},n}(),bn=function(){function n(n){this.ondata=n,Ar([mr,En,function(){return[b,K,rn]}],this,0,(function(){var n=new rn;onmessage=b(n)}),9)}return u(n,"AsyncGunzip"),n}();function _n(n,t,r){return r||(r=t,t={}),"function"!=typeof r&&g(7),zr(n,t,[mr,En,function(){return[nn]}],(function(n){return or(nn(n.data[0]))}),3,r)}function nn(n,t){return Cr(n.subarray(Xr(n),-8),t||new D(Bn(n)))}u(_n,"gunzip"),u(nn,"gunzipSync");var Pn=function(){function n(n,t){this.c=Jr(),this.v=1,ar.call(this,n,t)}return u(n,"Zlib"),n.prototype.push=function(n,t){ar.prototype.push.call(this,n,t)},n.prototype.p=function(n,t){this.c.p(n);var r=sr(n,this.o,this.v&&2,t&&4,!t);this.v&&(br(r,this.o),this.v=0),t&&I(r,r.length-4,this.c.d()),this.ondata(r,t)},n}(),st=function(){function n(n,t){Ar([xr,Fn,function(){return[b,ar,Pn]}],this,_r.call(this,n,t),(function(n){var t=new Pn(n.data);onmessage=b(t)}),10)}return u(n,"AsyncZlib"),n}();function ut(n,t,r){return r||(r=t,t={}),"function"!=typeof r&&g(7),zr(n,t,[xr,Fn,function(){return[Nn]}],(function(n){return or(Nn(n.data[0],n.data[1]))}),4,r)}function Nn(n,t){t||(t={});var r=Jr();r.p(n);var e=sr(n,t,2,4);return br(e,t),I(e,e.length-4,r.d()),e}u(ut,"zlib"),u(Nn,"zlibSync");var tn=function(){function n(n){this.v=1,K.call(this,n)}return u(n,"Unzlib"),n.prototype.push=function(n,t){if(K.prototype.e.call(this,n),this.v){if(this.p.length<2&&!t)return;this.p=this.p.subarray(2),this.v=0}t&&(this.p.length<4&&g(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),K.prototype.c.call(this,t)},n}(),rt=function(){function n(n){this.ondata=n,Ar([mr,In,function(){return[b,K,tn]}],this,0,(function(){var n=new tn;onmessage=b(n)}),11)}return u(n,"AsyncUnzlib"),n}();function nt(n,t,r){return r||(r=t,t={}),"function"!=typeof r&&g(7),zr(n,t,[mr,In,function(){return[en]}],(function(n){return or(en(n.data[0],Kr(n.data[1])))}),5,r)}function en(n,t){return Cr((Zn(n),n.subarray(2,-4)),t)}u(nt,"unzlib"),u(en,"unzlibSync");var tt=function(){function n(n){this.G=rn,this.I=K,this.Z=tn,this.ondata=n}return u(n,"Decompress"),n.prototype.push=function(n,t){if(this.ondata||g(5),this.s)this.s.push(n,t);else{if(this.p&&this.p.length){var r=new D(this.p.length+n.length);r.set(this.p),r.set(n,this.p.length)}else this.p=n;if(this.p.length>2){var e=this,i=u((function(){e.ondata.apply(e,arguments)}),"cb");this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(i):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(i):new this.Z(i),this.s.push(this.p,t),this.p=null}}},n}(),vt=function(){function n(n){this.G=bn,this.I=kn,this.Z=rt,this.ondata=n}return u(n,"AsyncDecompress"),n.prototype.push=function(n,t){tt.prototype.push.call(this,n,t)},n}();function ht(n,t,r){return r||(r=t,t={}),"function"!=typeof r&&g(7),31==n[0]&&139==n[1]&&8==n[2]?_n(n,t,r):8!=(15&n[0])||n[0]>>4>7||(n[0]<<8|n[1])%31?Gn(n,t,r):nt(n,t,r)}function lt(n,t){return 31==n[0]&&139==n[1]&&8==n[2]?nn(n,t):8!=(15&n[0])||n[0]>>4>7||(n[0]<<8|n[1])%31?Fr(n,t):en(n,t)}u(ht,"decompress"),u(lt,"decompressSync");var an=u((function(n,t,r,e){for(var i in n){var a=n[i],o=t+i,u=e;Array.isArray(a)&&(u=Er(e,a[1]),a=a[0]),a instanceof D?r[o]=[a,u]:(r[o+="/"]=[new D(0),u],an(a,o,r,e))}}),"fltn"),Rn="undefined"!=typeof TextEncoder&&new TextEncoder,on="undefined"!=typeof TextDecoder&&new TextDecoder,$n=0;try{on.decode(ir,{stream:!0}),$n=1}catch(n){}var qn=u((function(n){for(var t="",r=0;;){var e=n[r++],i=(e>127)+(e>223)+(e>239);if(r+i>n.length)return[t,d(n,r-1)];i?3==i?(e=((15&e)<<18|(63&n[r++])<<12|(63&n[r++])<<6|63&n[r++])-65536,t+=String.fromCharCode(55296|e>>10,56320|1023&e)):t+=1&i?String.fromCharCode((31&e)<<6|63&n[r++]):String.fromCharCode((15&e)<<12|(63&n[r++])<<6|63&n[r++]):t+=String.fromCharCode(e)}}),"dutf8"),ct=function(){function n(n){this.ondata=n,$n?this.t=new TextDecoder:this.p=ir}return u(n,"DecodeUTF8"),n.prototype.push=function(n,t){if(this.ondata||g(5),t=!!t,this.t)return this.ondata(this.t.decode(n,{stream:!0}),t),void(t&&(this.t.decode().length&&g(8),this.t=null));this.p||g(4);var r=new D(this.p.length+n.length);r.set(this.p),r.set(n,this.p.length);var e=qn(r),i=e[0],a=e[1];t?(a.length&&g(8),this.p=null):this.p=a,this.ondata(i,t)},n}(),pt=function(){function n(n){this.ondata=n}return u(n,"EncodeUTF8"),n.prototype.push=function(n,t){this.ondata||g(5),this.d&&g(4),this.ondata(ur(n),this.d=t||!1)},n}();function ur(n,t){if(t){for(var r=new D(n.length),e=0;e<n.length;++e)r[e]=n.charCodeAt(e);return r}if(Rn)return Rn.encode(n);var i=n.length,a=new D(n.length+(n.length>>1)),o=0,s=u((function(n){a[o++]=n}),"w");for(e=0;e<i;++e){if(o+5>a.length){var f=new D(o+8+(i-e<<1));f.set(a),a=f}var h=n.charCodeAt(e);h<128||t?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++e))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return d(a,0,o)}function Hn(n,t){if(t){for(var r="",e=0;e<n.length;e+=16384)r+=String.fromCharCode.apply(null,n.subarray(e,e+16384));return r}if(on)return on.decode(n);var i=qn(n),a=i[0];return i[1].length&&g(8),a}u(ur,"strToU8"),u(Hn,"strFromU8");var Yn=u((function(n){return 1==n?3:n<6?2:9==n?1:0}),"dbf"),Wn=u((function(n,t){return t+30+W(n,t+26)+W(n,t+28)}),"slzh"),jn=u((function(n,t,r){var e=W(n,t+28),i=Hn(n.subarray(t+46,t+46+e),!(2048&W(n,t+8))),a=t+46+e,o=N(n,t+20),u=r&&4294967295==o?Jn(n,a):[o,N(n,t+24),N(n,t+42)],s=u[0],f=u[1],h=u[2];return[W(n,t+10),s,f,i,a+W(n,t+30)+W(n,t+32),h]}),"zh"),Jn=u((function(n,t){for(;1!=W(n,t);t+=4+W(n,t+2));return[Qr(n,t+12),Qr(n,t+4),Qr(n,t+20)]}),"z64e"),fr=u((function(n){var t=0;if(n)for(var r in n){var e=n[r].length;e>65535&&g(9),t+=e+4}return t}),"exfl"),Mr=u((function(n,t,r,e,i,a,o,u){var s=e.length,f=r.extra,h=u&&u.length,c=fr(f);I(n,t,null!=o?33639248:67324752),t+=4,null!=o&&(n[t++]=20,n[t++]=r.os),n[t]=20,t+=2,n[t++]=r.flag<<1|(null==a&&8),n[t++]=i&&8,n[t++]=255&r.compression,n[t++]=r.compression>>8;var l=new Date(null==r.mtime?Date.now():r.mtime),p=l.getFullYear()-1980;if((p<0||p>119)&&g(10),I(n,t,p<<25|l.getMonth()+1<<21|l.getDate()<<16|l.getHours()<<11|l.getMinutes()<<5|l.getSeconds()>>>1),t+=4,null!=a&&(I(n,t,r.crc),I(n,t+4,a),I(n,t+8,r.size)),I(n,t+12,s),I(n,t+14,c),t+=16,null!=o&&(I(n,t,h),I(n,t+6,r.attrs),I(n,t+10,o),t+=14),n.set(e,t),t+=s,c)for(var v in f){var d=f[v],y=d.length;I(n,t,+v),I(n,t+2,y),n.set(d,t+4),t+=4+y}return h&&(n.set(u,t),t+=h),t}),"wzh"),fn=u((function(n,t,r,e,i){I(n,t,101010256),I(n,t+8,r),I(n,t+10,r),I(n,t+12,e),I(n,t+16,i)}),"wzf"),Rr=function(){function n(n){this.filename=n,this.c=wr(),this.size=0,this.compression=0}return u(n,"ZipPassThrough"),n.prototype.process=function(n,t){this.ondata(null,n,t)},n.prototype.push=function(n,t){this.ondata||g(5),this.c.p(n),this.size+=n.length,t&&(this.crc=this.c.d()),this.process(n,t||!1)},n}(),gt=function(){function n(n,t){var r=this;t||(t={}),Rr.call(this,n),this.d=new ar(t,(function(n,t){r.ondata(null,n,t)})),this.compression=8,this.flag=Yn(t.level)}return u(n,"ZipDeflate"),n.prototype.process=function(n,t){try{this.d.push(n,t)}catch(n){this.ondata(n,null,t)}},n.prototype.push=function(n,t){Rr.prototype.push.call(this,n,t)},n}(),yt=function(){function n(n,t){var r=this;t||(t={}),Rr.call(this,n),this.d=new Xn(t,(function(n,t,e){r.ondata(n,t,e)})),this.compression=8,this.flag=Yn(t.level),this.terminate=this.d.terminate}return u(n,"AsyncZipDeflate"),n.prototype.process=function(n,t){this.d.push(n,t)},n.prototype.push=function(n,t){Rr.prototype.push.call(this,n,t)},n}(),wt=function(){function n(n){this.ondata=n,this.u=[],this.d=1}return u(n,"Zip"),n.prototype.add=function(n){var t=this;if(this.ondata||g(5),2&this.d)this.ondata(g(4+8*(1&this.d),0,1),null,!1);else{var r=ur(n.filename),e=r.length,i=n.comment,a=i&&ur(i),o=e!=n.filename.length||a&&i.length!=a.length,s=e+fr(n.extra)+30;e>65535&&this.ondata(g(11,0,1),null,!1);var f=new D(s);Mr(f,0,n,r,o);var h=[f],c=u((function(){for(var n=0,r=h;n<r.length;n++){var e=r[n];t.ondata(null,e,!1)}h=[]}),"pAll_1"),l=this.d;this.d=0;var p=this.u.length,v=Er(n,{f:r,u:o,o:a,t:function(){n.terminate&&n.terminate()},r:function(){if(c(),l){var n=t.u[p+1];n?n.r():t.d=1}l=1}}),d=0;n.ondata=function(r,e,i){if(r)t.ondata(r,e,i),t.terminate();else if(d+=e.length,h.push(e),i){var a=new D(16);I(a,0,134695760),I(a,4,n.crc),I(a,8,d),I(a,12,n.size),h.push(a),v.c=d,v.b=s+d+16,v.crc=n.crc,v.size=n.size,l&&v.r(),l=1}else l&&c()},this.u.push(v)}},n.prototype.end=function(){var n=this;2&this.d?this.ondata(g(4+8*(1&this.d),0,1),null,!0):(this.d?this.e():this.u.push({r:function(){!(1&n.d)||(n.u.splice(-1,1),n.e())},t:function(){}}),this.d=3)},n.prototype.e=function(){for(var n=0,t=0,r=0,e=0,i=this.u;e<i.length;e++){r+=46+(s=i[e]).f.length+fr(s.extra)+(s.o?s.o.length:0)}for(var a=new D(r+22),o=0,u=this.u;o<u.length;o++){var s=u[o];Mr(a,n,s,s.f,s.u,s.c,t,s.o),n+=46+s.f.length+fr(s.extra)+(s.o?s.o.length:0),t+=s.b}fn(a,n,this.u.length,r,t),this.ondata(null,a,!0),this.d=2},n.prototype.terminate=function(){for(var n=0,t=this.u;n<t.length;n++){t[n].t()}this.d=2},n}();function mt(n,t,r){r||(r=t,t={}),"function"!=typeof r&&g(7);var e={};an(n,"",e,t);var i=Object.keys(e),a=i.length,o=0,s=0,f=a,h=new Array(a),c=[],l=u((function(){for(var n=0;n<c.length;++n)c[n]()}),"tAll"),p=u((function(n,t){$r((function(){r(n,t)}))}),"cbd");$r((function(){p=r}));var v=u((function(){var n=new D(s+22),t=o,r=s-o;s=0;for(var e=0;e<f;++e){var i=h[e];try{var a=i.c.length;Mr(n,s,i,i.f,i.u,a);var u=30+i.f.length+fr(i.extra),c=s+u;n.set(i.c,c),Mr(n,o,i,i.f,i.u,a,s,i.m),o+=16+u+(i.m?i.m.length:0),s=c+a}catch(n){return p(n,null)}}fn(n,o,h.length,r,t),p(null,n)}),"cbf");a||v();for(var d=u((function(n){var t=i[n],r=e[t],f=r[0],d=r[1],y=wr(),m=f.length;y.p(f);var b=ur(t),w=b.length,z=d.comment,D=z&&ur(z),E=D&&D.length,I=fr(d.extra),k=0==d.level?0:8,S=u((function(r,e){if(r)l(),p(r,null);else{var i=e.length;h[n]=Er(d,{size:m,crc:y.d(),c:e,f:b,m:D,u:w!=t.length||D&&z.length!=E,compression:k}),o+=30+w+I+i,s+=76+2*(w+I)+(E||0)+i,--a||v()}}),"cbl");if(w>65535&&S(g(11,0,1),null),k)if(m<16e4)try{S(null,Nr(f,d))}catch(n){S(n,null)}else c.push(dn(f,d,S));else S(null,f)}),"_loop_1"),y=0;y<f;++y)d(y);return l}function xt(n,t){t||(t={});var r={},e=[];an(n,"",r,t);var i=0,a=0;for(var o in r){var u=r[o],s=u[0],f=u[1],h=0==f.level?0:8,c=(k=ur(o)).length,l=f.comment,p=l&&ur(l),v=p&&p.length,d=fr(f.extra);c>65535&&g(11);var y=h?Nr(s,f):s,m=y.length,b=wr();b.p(s),e.push(Er(f,{size:s.length,crc:b.d(),c:y,f:k,m:p,u:c!=o.length||p&&l.length!=v,o:i,compression:h})),i+=30+c+d+m,a+=76+2*(c+d)+(v||0)+m}for(var w=new D(a+22),z=i,E=a-i,I=0;I<e.length;++I){var k=e[I];Mr(w,k.o,k,k.f,k.u,k.c.length);var S=30+k.f.length+fr(k.extra);w.set(k.c,k.o+S),Mr(w,i,k,k.f,k.u,k.c.length,k.o,k.m),i+=16+S+(k.m?k.m.length:0)}return fn(w,i,e.length,E,z),w}u(mt,"zip"),u(xt,"zipSync");var et=function(){function n(){}return u(n,"UnzipPassThrough"),n.prototype.push=function(n,t){this.ondata(null,n,t)},n.compression=0,n}(),zt=function(){function n(){var n=this;this.i=new K((function(t,r){n.ondata(null,t,r)}))}return u(n,"UnzipInflate"),n.prototype.push=function(n,t){try{this.i.push(n,t)}catch(n){this.ondata(n,null,t)}},n.compression=8,n}(),At=function(){function n(n,t){var r=this;t<32e4?this.i=new K((function(n,t){r.ondata(null,n,t)})):(this.i=new kn((function(n,t,e){r.ondata(n,t,e)})),this.terminate=this.i.terminate)}return u(n,"AsyncUnzipInflate"),n.prototype.push=function(n,t){this.i.terminate&&(n=d(n,0)),this.i.push(n,t)},n.compression=8,n}(),Mt=function(){function n(n){this.onfile=n,this.k=[],this.o={0:et},this.p=ir}return u(n,"Unzip"),n.prototype.push=function(n,t){var r=this;if(this.onfile||g(5),this.p||g(4),this.c>0){var e=Math.min(this.c,n.length),i=n.subarray(0,e);if(this.c-=e,this.d?this.d.push(i,!this.c):this.k[0].push(i),(n=n.subarray(e)).length)return this.push(n,t)}else{var a=0,o=0,s=void 0,f=void 0;this.p.length?n.length?((f=new D(this.p.length+n.length)).set(this.p),f.set(n,this.p.length)):f=this.p:f=n;for(var h=f.length,c=this.c,l=c&&this.d,p=u((function(){var n,t=N(f,o);if(67324752==t){a=1,s=o,v.d=null,v.c=0;var e=W(f,o+6),i=W(f,o+8),u=2048&e,l=8&e,p=W(f,o+26),d=W(f,o+28);if(h>o+30+p+d){var y=[];v.k.unshift(y),a=2;var m=N(f,o+18),b=N(f,o+22),w=Hn(f.subarray(o+30,o+=30+p),!u);4294967295==m?(n=l?[-2]:Jn(f,o),m=n[0],b=n[1]):l&&(m=-1),o+=d,v.c=m;var z,D={name:w,compression:i,start:function(){if(D.ondata||g(5),m){var n=r.o[i];n||D.ondata(g(14,"unknown compression type "+i,1),null,!1),(z=m<0?new n(w):new n(w,m,b)).ondata=function(n,t,r){D.ondata(n,t,r)};for(var t=0,e=y;t<e.length;t++){var a=e[t];z.push(a,!1)}r.k[0]==y&&r.c?r.d=z:z.push(ir,!0)}else D.ondata(null,ir,!0)},terminate:function(){z&&z.terminate&&z.terminate()}};m>=0&&(D.size=m,D.originalSize=b),v.onfile(D)}return"break"}if(c){if(134695760==t)return s=o+=12+(-2==c&&8),a=3,v.c=0,"break";if(33639248==t)return s=o-=4,a=3,v.c=0,"break"}}),"_loop_2"),v=this;o<h-4;++o){if("break"===p())break}if(this.p=ir,c<0){var d=a?f.subarray(0,s-12-(-2==c&&8)-(134695760==N(f,s-16)&&4)):f.subarray(0,o);l?l.push(d,!!a):this.k[+(2==a)].push(d)}if(2&a)return this.push(f.subarray(o),t);this.p=f.subarray(o)}t&&(this.c&&g(13),this.p=null)},n.prototype.register=function(n){this.o[n.compression]=n},n}(),$r="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(n){n()};function Tt(n,t,r){r||(r=t,t={}),"function"!=typeof r&&g(7);var e=[],i=u((function(){for(var n=0;n<e.length;++n)e[n]()}),"tAll"),a={},o=u((function(n,t){$r((function(){r(n,t)}))}),"cbd");$r((function(){o=r}));for(var s=n.length-22;101010256!=N(n,s);--s)if(!s||n.length-s>65558)return o(g(13,0,1),null),i;var f=W(n,s+8);if(f){var h=f,c=N(n,s+16),l=4294967295==c;if(l){if(s=N(n,s-12),101075792!=N(n,s))return o(g(13,0,1),null),i;h=f=N(n,s+32),c=N(n,s+48)}for(var p=t&&t.filter,v=u((function(t){var r=jn(n,c,l),s=r[0],h=r[1],v=r[2],y=r[3],m=r[4],b=r[5],w=Wn(n,b);c=m;var z=u((function(n,t){n?(i(),o(n,null)):(t&&(a[y]=t),--f||o(null,a))}),"cbl");if(!p||p({name:y,size:h,originalSize:v,compression:s}))if(s)if(8==s){var E=n.subarray(w,w+h);if(h<32e4)try{z(null,Fr(E,new D(v)))}catch(n){z(n,null)}else e.push(Gn(E,{size:v},z))}else z(g(14,"unknown compression type "+s,1),null);else z(null,d(n,w,w+h));else z(null,null)}),"_loop_3"),y=0;y<h;++y)v(y)}else o(null,{});return i}function Ut(n,t){for(var r={},e=n.length-22;101010256!=N(n,e);--e)(!e||n.length-e>65558)&&g(13);var i=W(n,e+8);if(!i)return{};var a=N(n,e+16),o=4294967295==a;o&&(e=N(n,e-12),101075792!=N(n,e)&&g(13),i=N(n,e+32),a=N(n,e+48));for(var u=t&&t.filter,s=0;s<i;++s){var f=jn(n,a,o),h=f[0],c=f[1],l=f[2],p=f[3],v=f[4],y=f[5],m=Wn(n,y);a=v,(!u||u({name:p,size:c,originalSize:l,compression:h}))&&(h?8==h?r[p]=Fr(n.subarray(m,m+c),new D(l)):g(14,"unknown compression type "+h):r[p]=d(n,m,m+c))}return r}u(Tt,"unzip"),u(Ut,"unzipSync");export{ot as AsyncCompress,vt as AsyncDecompress,Xn as AsyncDeflate,bn as AsyncGunzip,ot as AsyncGzip,kn as AsyncInflate,At as AsyncUnzipInflate,rt as AsyncUnzlib,yt as AsyncZipDeflate,st as AsyncZlib,On as Compress,ct as DecodeUTF8,tt as Decompress,ar as Deflate,pt as EncodeUTF8,at as FlateErrorCode,rn as Gunzip,On as Gzip,K as Inflate,Mt as Unzip,zt as UnzipInflate,et as UnzipPassThrough,tn as Unzlib,wt as Zip,gt as ZipDeflate,Rr as ZipPassThrough,Pn as Zlib,ft as compress,Ln as compressSync,ht as decompress,lt as decompressSync,dn as deflate,Nr as deflateSync,_n as gunzip,nn as gunzipSync,ft as gzip,Ln as gzipSync,Gn as inflate,Fr as inflateSync,Hn as strFromU8,ur as strToU8,Tt as unzip,Ut as unzipSync,nt as unzlib,en as unzlibSync,mt as zip,xt as zipSync,ut as zlib,Nn as zlibSync};
|
|
1
|
+
import{a as hn}from"./chunk-6IFB2STL.js";import{a as u}from"./chunk-XPQLPFMX.js";hn();var ln={},Qn=u((function(n,t,r,e,i){var a=new Worker(ln[t]||(ln[t]=URL.createObjectURL(new Blob([n+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(n){var t=n.data,r=t.$e$;if(r){var e=new Error(r[0]);e.code=r[1],e.stack=r[2],i(e,null)}else i(null,t)},a.postMessage(r,e),a}),"wk"),D=Uint8Array,q=Uint16Array,hr=Uint32Array,lr=new D([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),cr=new D([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ur=new D([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),cn=u((function(n,t){for(var r=new q(31),e=0;e<31;++e)r[e]=t+=1<<n[e-1];var i=new hr(r[30]);for(e=1;e<30;++e)for(var a=r[e];a<r[e+1];++a)i[a]=a-r[e]<<5|e;return[r,i]}),"freb"),pn=cn(lr,2),Hr=pn[0],Br=pn[1];Hr[28]=258,Br[258]=28;var gn=cn(cr,0),yn=gn[0],Yr=gn[1],Dr=new q(32768);for(E=0;E<32768;++E)tr=(61680&(tr=(52428&(tr=(43690&E)>>>1|(21845&E)<<1))>>>2|(13107&tr)<<2))>>>4|(3855&tr)<<4,Dr[E]=((65280&tr)>>>8|(255&tr)<<8)>>>1;var tr,V=u((function(n,t,r){for(var e=n.length,i=0,a=new q(t);i<e;++i)n[i]&&++a[n[i]-1];var o,u=new q(t);for(i=0;i<t;++i)u[i]=u[i-1]+a[i-1]<<1;if(r){o=new q(1<<t);var s=15-t;for(i=0;i<e;++i)if(n[i])for(var f=i<<4|n[i],h=t-n[i],c=u[n[i]-1]++<<h,l=c|(1<<h)-1;c<=l;++c)o[Dr[c]>>>s]=f}else for(o=new q(e),i=0;i<e;++i)n[i]&&(o[i]=Dr[u[n[i]-1]++]>>>15-n[i]);return o}),"hMap"),er=new D(288);for(E=0;E<144;++E)er[E]=8;for(E=144;E<256;++E)er[E]=9;for(E=256;E<280;++E)er[E]=7;for(E=280;E<288;++E)er[E]=8;var pr=new D(32);for(E=0;E<32;++E)pr[E]=5;var E,wn=V(er,9,0),mn=V(er,9,1),xn=V(pr,5,0),zn=V(pr,5,1),Zr=u((function(n){for(var t=n[0],r=1;r<n.length;++r)n[r]>t&&(t=n[r]);return t}),"max"),X=u((function(n,t,r){var e=t/8|0;return(n[e]|n[e+1]<<8)>>(7&t)&r}),"bits"),kr=u((function(n,t){var r=t/8|0;return(n[r]|n[r+1]<<8|n[r+2]<<16)>>(7&t)}),"bits16"),Sr=u((function(n){return(n+7)/8|0}),"shft"),d=u((function(n,t,r){(null==t||t<0)&&(t=0),(null==r||r>n.length)&&(r=n.length);var e=new(2==n.BYTES_PER_ELEMENT?q:4==n.BYTES_PER_ELEMENT?hr:D)(r-t);return e.set(n.subarray(t,r)),e}),"slc"),at={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},An=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],g=u((function(n,t,r){var e=new Error(t||An[n]);if(e.code=n,Error.captureStackTrace&&Error.captureStackTrace(e,g),!r)throw e;return e}),"err"),Cr=u((function(n,t,r){var e=n.length;if(!e||r&&r.f&&!r.l)return t||new D(0);var i=!t||r,a=!r||r.i;r||(r={}),t||(t=new D(3*e));var o=u((function(n){var r=t.length;if(n>r){var e=new D(Math.max(2*r,n));e.set(t),t=e}}),"cbuf"),s=r.f||0,f=r.p||0,h=r.b||0,c=r.l,l=r.d,p=r.m,v=r.n,y=8*e;do{if(!c){s=X(n,f,1);var m=X(n,f+1,3);if(f+=3,!m){var b=n[(N=Sr(f)+4)-4]|n[N-3]<<8,w=N+b;if(w>e){a&&g(0);break}i&&o(h+b),t.set(n.subarray(N,w),h),r.b=h+=b,r.p=f=8*w,r.f=s;continue}if(1==m)c=mn,l=zn,p=9,v=5;else if(2==m){var z=X(n,f,31)+257,E=X(n,f+10,15)+4,I=z+X(n,f+5,31)+1;f+=14;for(var k=new D(I),S=new D(19),A=0;A<E;++A)S[Ur[A]]=X(n,f+3*A,7);f+=3*E;var M=Zr(S),x=(1<<M)-1,U=V(S,M,1);for(A=0;A<I;){var N,T=U[X(n,f,x)];if(f+=15&T,(N=T>>>4)<16)k[A++]=N;else{var C=0,F=0;for(16==N?(F=3+X(n,f,3),f+=2,C=k[A-1]):17==N?(F=3+X(n,f,7),f+=3):18==N&&(F=11+X(n,f,127),f+=7);F--;)k[A++]=C}}var W=k.subarray(0,z),Z=k.subarray(z);p=Zr(W),v=Zr(Z),c=V(W,p,1),l=V(Z,v,1)}else g(1);if(f>y){a&&g(0);break}}i&&o(h+131072);for(var q=(1<<p)-1,L=(1<<v)-1,G=f;;G=f){var _=(C=c[kr(n,f)&q])>>>4;if((f+=15&C)>y){a&&g(0);break}if(C||g(2),_<256)t[h++]=_;else{if(256==_){G=f,c=null;break}var K=_-254;if(_>264){var O=lr[A=_-257];K=X(n,f,(1<<O)-1)+Hr[A],f+=O}var P=l[kr(n,f)&L],B=P>>>4;P||g(3),f+=15&P;Z=yn[B];if(B>3){O=cr[B];Z+=kr(n,f)&(1<<O)-1,f+=O}if(f>y){a&&g(0);break}i&&o(h+131072);for(var R=h+K;h<R;h+=4)t[h]=t[h-Z],t[h+1]=t[h+1-Z],t[h+2]=t[h+2-Z],t[h+3]=t[h+3-Z];h=R}}r.l=c,r.p=G,r.b=h,r.f=s,c&&(s=1,r.m=p,r.d=l,r.n=v)}while(!s);return h==t.length?t:d(t,0,h)}),"inflt"),nr=u((function(n,t,r){r<<=7&t;var e=t/8|0;n[e]|=r,n[e+1]|=r>>>8}),"wbits"),gr=u((function(n,t,r){r<<=7&t;var e=t/8|0;n[e]|=r,n[e+1]|=r>>>8,n[e+2]|=r>>>16}),"wbits16"),Gr=u((function(n,t){for(var r=[],e=0;e<n.length;++e)n[e]&&r.push({s:e,f:n[e]});var i=r.length,a=r.slice();if(!i)return[ir,0];if(1==i){var o=new D(r[0].s+1);return o[r[0].s]=1,[o,1]}r.sort((function(n,t){return n.f-t.f})),r.push({s:-1,f:25001});var u=r[0],s=r[1],f=0,h=1,c=2;for(r[0]={s:-1,f:u.f+s.f,l:u,r:s};h!=i-1;)u=r[r[f].f<r[c].f?f++:c++],s=r[f!=h&&r[f].f<r[c].f?f++:c++],r[h++]={s:-1,f:u.f+s.f,l:u,r:s};var l=a[0].s;for(e=1;e<i;++e)a[e].s>l&&(l=a[e].s);var p=new q(l+1),v=Or(r[h-1],p,0);if(v>t){e=0;var g=0,d=v-t,y=1<<d;for(a.sort((function(n,t){return p[t.s]-p[n.s]||n.f-t.f}));e<i;++e){var m=a[e].s;if(!(p[m]>t))break;g+=y-(1<<v-p[m]),p[m]=t}for(g>>>=d;g>0;){var b=a[e].s;p[b]<t?g-=1<<t-p[b]++-1:++e}for(;e>=0&&g;--e){var w=a[e].s;p[w]==t&&(--p[w],++g)}v=t}return[new D(p),v]}),"hTree"),Or=u((function(n,t,r){return-1==n.s?Math.max(Or(n.l,t,r+1),Or(n.r,t,r+1)):t[n.s]=r}),"ln"),Wr=u((function(n){for(var t=n.length;t&&!n[--t];);for(var r=new q(++t),e=0,i=n[0],a=1,o=u((function(n){r[e++]=n}),"w"),s=1;s<=t;++s)if(n[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=n[s]}return[r.subarray(0,e),t]}),"lc"),yr=u((function(n,t){for(var r=0,e=0;e<t.length;++e)r+=n[e]*t[e];return r}),"clen"),Lr=u((function(n,t,r){var e=r.length,i=Sr(t+2);n[i]=255&e,n[i+1]=e>>>8,n[i+2]=255^n[i],n[i+3]=255^n[i+1];for(var a=0;a<e;++a)n[i+a+4]=r[a];return 8*(i+4+e)}),"wfblk"),jr=u((function(n,t,r,e,i,a,o,u,s,f,h){nr(t,h++,r),++i[256];for(var c=Gr(i,15),l=c[0],p=c[1],v=Gr(a,15),g=v[0],d=v[1],y=Wr(l),m=y[0],b=y[1],w=Wr(g),z=w[0],D=w[1],E=new q(19),I=0;I<m.length;++I)E[31&m[I]]++;for(I=0;I<z.length;++I)E[31&z[I]]++;for(var k=Gr(E,7),S=k[0],A=k[1],M=19;M>4&&!S[Ur[M-1]];--M);var x,U,N,T,C=f+5<<3,F=yr(i,er)+yr(a,pr)+o,W=yr(i,l)+yr(a,g)+o+14+3*M+yr(E,S)+(2*E[16]+3*E[17]+7*E[18]);if(C<=F&&C<=W)return Lr(t,h,n.subarray(s,s+f));if(nr(t,h,1+(W<F)),h+=2,W<F){x=V(l,p,0),U=l,N=V(g,d,0),T=g;var Z=V(S,A,0);nr(t,h,b-257),nr(t,h+5,D-1),nr(t,h+10,M-4),h+=14;for(I=0;I<M;++I)nr(t,h+3*I,S[Ur[I]]);h+=3*M;for(var L=[m,z],X=0;X<2;++X){var G=L[X];for(I=0;I<G.length;++I){var _=31&G[I];nr(t,h,Z[_]),h+=S[_],_>15&&(nr(t,h,G[I]>>>5&127),h+=G[I]>>>12)}}}else x=wn,U=er,N=xn,T=pr;for(I=0;I<u;++I)if(e[I]>255){_=e[I]>>>18&31;gr(t,h,x[_+257]),h+=U[_+257],_>7&&(nr(t,h,e[I]>>>23&31),h+=lr[_]);var K=31&e[I];gr(t,h,N[K]),h+=T[K],K>3&&(gr(t,h,e[I]>>>5&8191),h+=cr[K])}else gr(t,h,x[e[I]]),h+=U[e[I]];return gr(t,h,x[256]),h+U[256]}),"wblk"),Mn=new hr([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ir=new D(0),Tn=u((function(n,t,r,e,i,a){var o=n.length,s=new D(e+o+5*(1+Math.ceil(o/7e3))+i),f=s.subarray(e,s.length-i),h=0;if(!t||o<8)for(var c=0;c<=o;c+=65535){var l=c+65535;l>=o&&(f[h>>3]=a),h=Lr(f,h+1,n.subarray(c,l))}else{for(var p=Mn[t-1],v=p>>>13,g=8191&p,y=(1<<r)-1,m=new q(32768),b=new q(y+1),w=Math.ceil(r/3),z=2*w,E=u((function(t){return(n[t]^n[t+1]<<w^n[t+2]<<z)&y}),"hsh"),I=new hr(25e3),k=new q(288),S=new q(32),A=0,M=0,x=(c=0,0),U=0,N=0;c<o;++c){var T=E(c),C=32767&c,F=b[T];if(m[C]=F,b[T]=C,U<=c){var W=o-c;if((A>7e3||x>24576)&&W>423){h=jr(n,f,0,I,k,S,M,x,N,c-N,h),x=A=M=0,N=c;for(var Z=0;Z<286;++Z)k[Z]=0;for(Z=0;Z<30;++Z)S[Z]=0}var L=2,X=0,G=g,_=C-F&32767;if(W>2&&T==E(c-_))for(var K=Math.min(v,W)-1,O=Math.min(32767,c),V=Math.min(258,W);_<=O&&--G&&C!=F;){if(n[c+L]==n[c+L-_]){for(var P=0;P<V&&n[c+P]==n[c+P-_];++P);if(P>L){if(L=P,X=_,P>K)break;var B=Math.min(_,P-2),R=0;for(Z=0;Z<B;++Z){var j=c-_+Z+32768&32767,H=j-m[j]+32768&32767;H>R&&(R=H,F=j)}}}_+=(C=F)-(F=m[C])+32768&32767}if(X){I[x++]=268435456|Br[L]<<18|Yr[X];var $=31&Br[L],Y=31&Yr[X];M+=lr[$]+cr[Y],++k[257+$],++S[Y],U=c+L,++A}else I[x++]=n[c],++k[n[c]]}}h=jr(n,f,a,I,k,S,M,x,N,c-N,h),!a&&7&h&&(h=Lr(f,h+1,ir))}return d(s,0,e+Sr(h)+i)}),"dflt"),Un=function(){for(var n=new Int32Array(256),t=0;t<256;++t){for(var r=t,e=9;--e;)r=(1&r&&-306674912)^r>>>1;n[t]=r}return n}(),wr=u((function(){var n=-1;return{p:function(t){for(var r=n,e=0;e<t.length;++e)r=Un[255&r^t[e]]^r>>>8;n=r},d:function(){return~n}}}),"crc"),Jr=u((function(){var n=1,t=0;return{p:function(r){for(var e=n,i=t,a=0|r.length,o=0;o!=a;){for(var u=Math.min(o+2655,a);o<u;++o)i+=e+=r[o];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}n=e,t=i},d:function(){return(255&(n%=65521))<<24|n>>>8<<16|(255&(t%=65521))<<8|t>>>8}}}),"adler"),sr=u((function(n,t,r,e,i){return Tn(n,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(n.length)))):12+t.mem,r,e,!i)}),"dopt"),Er=u((function(n,t){var r={};for(var e in n)r[e]=n[e];for(var e in t)r[e]=t[e];return r}),"mrg"),Dn=u((function(n,t,r){for(var e=n(),i=n.toString(),a=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),o=0;o<e.length;++o){var u=e[o],s=a[o];if("function"==typeof u){t+=";"+s+"=";var f=u.toString();if(u.prototype)if(-1!=f.indexOf("[native code]")){var h=f.indexOf(" ",8)+1;t+=f.slice(h,f.indexOf("(",h))}else for(var c in t+=f,u.prototype)t+=";"+s+".prototype."+c+"="+u.prototype[c].toString();else t+=f}else r[s]=u}return[t,r]}),"wcln"),Pr=[],Vn=u((function(n){var t=[];for(var r in n)n[r].buffer&&t.push((n[r]=new n[r].constructor(n[r])).buffer);return t}),"cbfs"),Sn=u((function(n,t,r,e){var i;if(!Pr[r]){for(var a="",o={},u=n.length-1,s=0;s<u;++s)a=(i=Dn(n[s],a,o))[0],o=i[1];Pr[r]=Dn(n[u],a,o)}var f=Er({},Pr[r][1]);return Qn(Pr[r][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",r,f,Vn(f),e)}),"wrkr"),mr=u((function(){return[D,q,hr,lr,cr,Ur,Hr,yn,mn,zn,Dr,An,V,Zr,X,kr,Sr,d,g,Cr,Fr,or,Kr]}),"bInflt"),xr=u((function(){return[D,q,hr,lr,cr,Ur,Br,Yr,wn,er,xn,pr,Dr,Mn,ir,V,nr,gr,Gr,Or,Wr,yr,Lr,jr,Sr,d,Tn,sr,Nr,or]}),"bDflt"),Cn=u((function(){return[Vr,dr,I,wr,Un]}),"gze"),En=u((function(){return[Xr,Bn]}),"guze"),Fn=u((function(){return[br,I,Jr]}),"zle"),In=u((function(){return[Zn]}),"zule"),or=u((function(n){return postMessage(n,[n.buffer])}),"pbf"),Kr=u((function(n){return n&&n.size&&new D(n.size)}),"gu8"),zr=u((function(n,t,r,e,i,a){var o=Sn(r,e,i,(function(n,t){o.terminate(),a(n,t)}));return o.postMessage([n,t],t.consume?[n.buffer]:[]),function(){o.terminate()}}),"cbify"),b=u((function(n){return n.ondata=function(n,t){return postMessage([n,t],[n.buffer])},function(t){return n.push(t.data[0],t.data[1])}}),"astrm"),Ar=u((function(n,t,r,e,i){var a,o=Sn(n,e,i,(function(n,r){n?(o.terminate(),t.ondata.call(t,n)):(r[1]&&o.terminate(),t.ondata.call(t,n,r[0],r[1]))}));o.postMessage(r),t.push=function(n,r){t.ondata||g(5),a&&t.ondata(g(4,0,1),null,!!r),o.postMessage([n,a=r],[n.buffer])},t.terminate=function(){o.terminate()}}),"astrmify"),W=u((function(n,t){return n[t]|n[t+1]<<8}),"b2"),N=u((function(n,t){return(n[t]|n[t+1]<<8|n[t+2]<<16|n[t+3]<<24)>>>0}),"b4"),Qr=u((function(n,t){return N(n,t)+4294967296*N(n,t+4)}),"b8"),I=u((function(n,t,r){for(;r;++t)n[t]=r,r>>>=8}),"wbytes"),Vr=u((function(n,t){var r=t.filename;if(n[0]=31,n[1]=139,n[2]=8,n[8]=t.level<2?4:9==t.level?2:0,n[9]=3,0!=t.mtime&&I(n,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){n[3]=8;for(var e=0;e<=r.length;++e)n[e+10]=r.charCodeAt(e)}}),"gzh"),Xr=u((function(n){(31!=n[0]||139!=n[1]||8!=n[2])&&g(6,"invalid gzip data");var t=n[3],r=10;4&t&&(r+=n[10]|2+(n[11]<<8));for(var e=(t>>3&1)+(t>>4&1);e>0;e-=!n[r++]);return r+(2&t)}),"gzs"),Bn=u((function(n){var t=n.length;return(n[t-4]|n[t-3]<<8|n[t-2]<<16|n[t-1]<<24)>>>0}),"gzl"),dr=u((function(n){return 10+(n.filename&&n.filename.length+1||0)}),"gzhl"),br=u((function(n,t){var r=t.level,e=0==r?0:r<6?1:9==r?3:2;n[0]=120,n[1]=e<<6|(e?32-2*e:1)}),"zlh"),Zn=u((function(n){(8!=(15&n[0])||n[0]>>>4>7||(n[0]<<8|n[1])%31)&&g(6,"invalid zlib data"),32&n[1]&&g(6,"invalid zlib data: preset dictionaries not supported")}),"zlv");function _r(n,t){return!t&&"function"==typeof n&&(t=n,n={}),this.ondata=t,n}u(_r,"AsyncCmpStrm");var ar=function(){function n(n,t){!t&&"function"==typeof n&&(t=n,n={}),this.ondata=t,this.o=n||{}}return u(n,"Deflate"),n.prototype.p=function(n,t){this.ondata(sr(n,this.o,0,0,!t),t)},n.prototype.push=function(n,t){this.ondata||g(5),this.d&&g(4),this.d=t,this.p(n,t||!1)},n}(),Xn=function(){function n(n,t){Ar([xr,function(){return[b,ar]}],this,_r.call(this,n,t),(function(n){var t=new ar(n.data);onmessage=b(t)}),6)}return u(n,"AsyncDeflate"),n}();function dn(n,t,r){return r||(r=t,t={}),"function"!=typeof r&&g(7),zr(n,t,[xr],(function(n){return or(Nr(n.data[0],n.data[1]))}),0,r)}function Nr(n,t){return sr(n,t||{},0,0)}u(dn,"deflate"),u(Nr,"deflateSync");var K=function(){function n(n){this.s={},this.p=new D(0),this.ondata=n}return u(n,"Inflate"),n.prototype.e=function(n){this.ondata||g(5),this.d&&g(4);var t=this.p.length,r=new D(t+n.length);r.set(this.p),r.set(n,t),this.p=r},n.prototype.c=function(n){this.d=this.s.i=n||!1;var t=this.s.b,r=Cr(this.p,this.o,this.s);this.ondata(d(r,t,this.s.b),this.d),this.o=d(r,this.s.b-32768),this.s.b=this.o.length,this.p=d(this.p,this.s.p/8|0),this.s.p&=7},n.prototype.push=function(n,t){this.e(n),this.c(t)},n}(),kn=function(){function n(n){this.ondata=n,Ar([mr,function(){return[b,K]}],this,0,(function(){var n=new K;onmessage=b(n)}),7)}return u(n,"AsyncInflate"),n}();function Gn(n,t,r){return r||(r=t,t={}),"function"!=typeof r&&g(7),zr(n,t,[mr],(function(n){return or(Fr(n.data[0],Kr(n.data[1])))}),1,r)}function Fr(n,t){return Cr(n,t)}u(Gn,"inflate"),u(Fr,"inflateSync");var On=function(){function n(n,t){this.c=wr(),this.l=0,this.v=1,ar.call(this,n,t)}return u(n,"Gzip"),n.prototype.push=function(n,t){ar.prototype.push.call(this,n,t)},n.prototype.p=function(n,t){this.c.p(n),this.l+=n.length;var r=sr(n,this.o,this.v&&dr(this.o),t&&8,!t);this.v&&(Vr(r,this.o),this.v=0),t&&(I(r,r.length-8,this.c.d()),I(r,r.length-4,this.l)),this.ondata(r,t)},n}(),ot=function(){function n(n,t){Ar([xr,Cn,function(){return[b,ar,On]}],this,_r.call(this,n,t),(function(n){var t=new On(n.data);onmessage=b(t)}),8)}return u(n,"AsyncGzip"),n}();function ft(n,t,r){return r||(r=t,t={}),"function"!=typeof r&&g(7),zr(n,t,[xr,Cn,function(){return[Ln]}],(function(n){return or(Ln(n.data[0],n.data[1]))}),2,r)}function Ln(n,t){t||(t={});var r=wr(),e=n.length;r.p(n);var i=sr(n,t,dr(t),8),a=i.length;return Vr(i,t),I(i,a-8,r.d()),I(i,a-4,e),i}u(ft,"gzip"),u(Ln,"gzipSync");var rn=function(){function n(n){this.v=1,K.call(this,n)}return u(n,"Gunzip"),n.prototype.push=function(n,t){if(K.prototype.e.call(this,n),this.v){var r=this.p.length>3?Xr(this.p):4;if(r>=this.p.length&&!t)return;this.p=this.p.subarray(r),this.v=0}t&&(this.p.length<8&&g(6,"invalid gzip data"),this.p=this.p.subarray(0,-8)),K.prototype.c.call(this,t)},n}(),bn=function(){function n(n){this.ondata=n,Ar([mr,En,function(){return[b,K,rn]}],this,0,(function(){var n=new rn;onmessage=b(n)}),9)}return u(n,"AsyncGunzip"),n}();function _n(n,t,r){return r||(r=t,t={}),"function"!=typeof r&&g(7),zr(n,t,[mr,En,function(){return[nn]}],(function(n){return or(nn(n.data[0]))}),3,r)}function nn(n,t){return Cr(n.subarray(Xr(n),-8),t||new D(Bn(n)))}u(_n,"gunzip"),u(nn,"gunzipSync");var Pn=function(){function n(n,t){this.c=Jr(),this.v=1,ar.call(this,n,t)}return u(n,"Zlib"),n.prototype.push=function(n,t){ar.prototype.push.call(this,n,t)},n.prototype.p=function(n,t){this.c.p(n);var r=sr(n,this.o,this.v&&2,t&&4,!t);this.v&&(br(r,this.o),this.v=0),t&&I(r,r.length-4,this.c.d()),this.ondata(r,t)},n}(),st=function(){function n(n,t){Ar([xr,Fn,function(){return[b,ar,Pn]}],this,_r.call(this,n,t),(function(n){var t=new Pn(n.data);onmessage=b(t)}),10)}return u(n,"AsyncZlib"),n}();function ut(n,t,r){return r||(r=t,t={}),"function"!=typeof r&&g(7),zr(n,t,[xr,Fn,function(){return[Nn]}],(function(n){return or(Nn(n.data[0],n.data[1]))}),4,r)}function Nn(n,t){t||(t={});var r=Jr();r.p(n);var e=sr(n,t,2,4);return br(e,t),I(e,e.length-4,r.d()),e}u(ut,"zlib"),u(Nn,"zlibSync");var tn=function(){function n(n){this.v=1,K.call(this,n)}return u(n,"Unzlib"),n.prototype.push=function(n,t){if(K.prototype.e.call(this,n),this.v){if(this.p.length<2&&!t)return;this.p=this.p.subarray(2),this.v=0}t&&(this.p.length<4&&g(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),K.prototype.c.call(this,t)},n}(),rt=function(){function n(n){this.ondata=n,Ar([mr,In,function(){return[b,K,tn]}],this,0,(function(){var n=new tn;onmessage=b(n)}),11)}return u(n,"AsyncUnzlib"),n}();function nt(n,t,r){return r||(r=t,t={}),"function"!=typeof r&&g(7),zr(n,t,[mr,In,function(){return[en]}],(function(n){return or(en(n.data[0],Kr(n.data[1])))}),5,r)}function en(n,t){return Cr((Zn(n),n.subarray(2,-4)),t)}u(nt,"unzlib"),u(en,"unzlibSync");var tt=function(){function n(n){this.G=rn,this.I=K,this.Z=tn,this.ondata=n}return u(n,"Decompress"),n.prototype.push=function(n,t){if(this.ondata||g(5),this.s)this.s.push(n,t);else{if(this.p&&this.p.length){var r=new D(this.p.length+n.length);r.set(this.p),r.set(n,this.p.length)}else this.p=n;if(this.p.length>2){var e=this,i=u((function(){e.ondata.apply(e,arguments)}),"cb");this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(i):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(i):new this.Z(i),this.s.push(this.p,t),this.p=null}}},n}(),vt=function(){function n(n){this.G=bn,this.I=kn,this.Z=rt,this.ondata=n}return u(n,"AsyncDecompress"),n.prototype.push=function(n,t){tt.prototype.push.call(this,n,t)},n}();function ht(n,t,r){return r||(r=t,t={}),"function"!=typeof r&&g(7),31==n[0]&&139==n[1]&&8==n[2]?_n(n,t,r):8!=(15&n[0])||n[0]>>4>7||(n[0]<<8|n[1])%31?Gn(n,t,r):nt(n,t,r)}function lt(n,t){return 31==n[0]&&139==n[1]&&8==n[2]?nn(n,t):8!=(15&n[0])||n[0]>>4>7||(n[0]<<8|n[1])%31?Fr(n,t):en(n,t)}u(ht,"decompress"),u(lt,"decompressSync");var an=u((function(n,t,r,e){for(var i in n){var a=n[i],o=t+i,u=e;Array.isArray(a)&&(u=Er(e,a[1]),a=a[0]),a instanceof D?r[o]=[a,u]:(r[o+="/"]=[new D(0),u],an(a,o,r,e))}}),"fltn"),Rn="undefined"!=typeof TextEncoder&&new TextEncoder,on="undefined"!=typeof TextDecoder&&new TextDecoder,$n=0;try{on.decode(ir,{stream:!0}),$n=1}catch(n){}var qn=u((function(n){for(var t="",r=0;;){var e=n[r++],i=(e>127)+(e>223)+(e>239);if(r+i>n.length)return[t,d(n,r-1)];i?3==i?(e=((15&e)<<18|(63&n[r++])<<12|(63&n[r++])<<6|63&n[r++])-65536,t+=String.fromCharCode(55296|e>>10,56320|1023&e)):t+=1&i?String.fromCharCode((31&e)<<6|63&n[r++]):String.fromCharCode((15&e)<<12|(63&n[r++])<<6|63&n[r++]):t+=String.fromCharCode(e)}}),"dutf8"),ct=function(){function n(n){this.ondata=n,$n?this.t=new TextDecoder:this.p=ir}return u(n,"DecodeUTF8"),n.prototype.push=function(n,t){if(this.ondata||g(5),t=!!t,this.t)return this.ondata(this.t.decode(n,{stream:!0}),t),void(t&&(this.t.decode().length&&g(8),this.t=null));this.p||g(4);var r=new D(this.p.length+n.length);r.set(this.p),r.set(n,this.p.length);var e=qn(r),i=e[0],a=e[1];t?(a.length&&g(8),this.p=null):this.p=a,this.ondata(i,t)},n}(),pt=function(){function n(n){this.ondata=n}return u(n,"EncodeUTF8"),n.prototype.push=function(n,t){this.ondata||g(5),this.d&&g(4),this.ondata(ur(n),this.d=t||!1)},n}();function ur(n,t){if(t){for(var r=new D(n.length),e=0;e<n.length;++e)r[e]=n.charCodeAt(e);return r}if(Rn)return Rn.encode(n);var i=n.length,a=new D(n.length+(n.length>>1)),o=0,s=u((function(n){a[o++]=n}),"w");for(e=0;e<i;++e){if(o+5>a.length){var f=new D(o+8+(i-e<<1));f.set(a),a=f}var h=n.charCodeAt(e);h<128||t?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++e))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return d(a,0,o)}function Hn(n,t){if(t){for(var r="",e=0;e<n.length;e+=16384)r+=String.fromCharCode.apply(null,n.subarray(e,e+16384));return r}if(on)return on.decode(n);var i=qn(n),a=i[0];return i[1].length&&g(8),a}u(ur,"strToU8"),u(Hn,"strFromU8");var Yn=u((function(n){return 1==n?3:n<6?2:9==n?1:0}),"dbf"),Wn=u((function(n,t){return t+30+W(n,t+26)+W(n,t+28)}),"slzh"),jn=u((function(n,t,r){var e=W(n,t+28),i=Hn(n.subarray(t+46,t+46+e),!(2048&W(n,t+8))),a=t+46+e,o=N(n,t+20),u=r&&4294967295==o?Jn(n,a):[o,N(n,t+24),N(n,t+42)],s=u[0],f=u[1],h=u[2];return[W(n,t+10),s,f,i,a+W(n,t+30)+W(n,t+32),h]}),"zh"),Jn=u((function(n,t){for(;1!=W(n,t);t+=4+W(n,t+2));return[Qr(n,t+12),Qr(n,t+4),Qr(n,t+20)]}),"z64e"),fr=u((function(n){var t=0;if(n)for(var r in n){var e=n[r].length;e>65535&&g(9),t+=e+4}return t}),"exfl"),Mr=u((function(n,t,r,e,i,a,o,u){var s=e.length,f=r.extra,h=u&&u.length,c=fr(f);I(n,t,null!=o?33639248:67324752),t+=4,null!=o&&(n[t++]=20,n[t++]=r.os),n[t]=20,t+=2,n[t++]=r.flag<<1|(null==a&&8),n[t++]=i&&8,n[t++]=255&r.compression,n[t++]=r.compression>>8;var l=new Date(null==r.mtime?Date.now():r.mtime),p=l.getFullYear()-1980;if((p<0||p>119)&&g(10),I(n,t,p<<25|l.getMonth()+1<<21|l.getDate()<<16|l.getHours()<<11|l.getMinutes()<<5|l.getSeconds()>>>1),t+=4,null!=a&&(I(n,t,r.crc),I(n,t+4,a),I(n,t+8,r.size)),I(n,t+12,s),I(n,t+14,c),t+=16,null!=o&&(I(n,t,h),I(n,t+6,r.attrs),I(n,t+10,o),t+=14),n.set(e,t),t+=s,c)for(var v in f){var d=f[v],y=d.length;I(n,t,+v),I(n,t+2,y),n.set(d,t+4),t+=4+y}return h&&(n.set(u,t),t+=h),t}),"wzh"),fn=u((function(n,t,r,e,i){I(n,t,101010256),I(n,t+8,r),I(n,t+10,r),I(n,t+12,e),I(n,t+16,i)}),"wzf"),Rr=function(){function n(n){this.filename=n,this.c=wr(),this.size=0,this.compression=0}return u(n,"ZipPassThrough"),n.prototype.process=function(n,t){this.ondata(null,n,t)},n.prototype.push=function(n,t){this.ondata||g(5),this.c.p(n),this.size+=n.length,t&&(this.crc=this.c.d()),this.process(n,t||!1)},n}(),gt=function(){function n(n,t){var r=this;t||(t={}),Rr.call(this,n),this.d=new ar(t,(function(n,t){r.ondata(null,n,t)})),this.compression=8,this.flag=Yn(t.level)}return u(n,"ZipDeflate"),n.prototype.process=function(n,t){try{this.d.push(n,t)}catch(n){this.ondata(n,null,t)}},n.prototype.push=function(n,t){Rr.prototype.push.call(this,n,t)},n}(),yt=function(){function n(n,t){var r=this;t||(t={}),Rr.call(this,n),this.d=new Xn(t,(function(n,t,e){r.ondata(n,t,e)})),this.compression=8,this.flag=Yn(t.level),this.terminate=this.d.terminate}return u(n,"AsyncZipDeflate"),n.prototype.process=function(n,t){this.d.push(n,t)},n.prototype.push=function(n,t){Rr.prototype.push.call(this,n,t)},n}(),wt=function(){function n(n){this.ondata=n,this.u=[],this.d=1}return u(n,"Zip"),n.prototype.add=function(n){var t=this;if(this.ondata||g(5),2&this.d)this.ondata(g(4+8*(1&this.d),0,1),null,!1);else{var r=ur(n.filename),e=r.length,i=n.comment,a=i&&ur(i),o=e!=n.filename.length||a&&i.length!=a.length,s=e+fr(n.extra)+30;e>65535&&this.ondata(g(11,0,1),null,!1);var f=new D(s);Mr(f,0,n,r,o);var h=[f],c=u((function(){for(var n=0,r=h;n<r.length;n++){var e=r[n];t.ondata(null,e,!1)}h=[]}),"pAll_1"),l=this.d;this.d=0;var p=this.u.length,v=Er(n,{f:r,u:o,o:a,t:function(){n.terminate&&n.terminate()},r:function(){if(c(),l){var n=t.u[p+1];n?n.r():t.d=1}l=1}}),d=0;n.ondata=function(r,e,i){if(r)t.ondata(r,e,i),t.terminate();else if(d+=e.length,h.push(e),i){var a=new D(16);I(a,0,134695760),I(a,4,n.crc),I(a,8,d),I(a,12,n.size),h.push(a),v.c=d,v.b=s+d+16,v.crc=n.crc,v.size=n.size,l&&v.r(),l=1}else l&&c()},this.u.push(v)}},n.prototype.end=function(){var n=this;2&this.d?this.ondata(g(4+8*(1&this.d),0,1),null,!0):(this.d?this.e():this.u.push({r:function(){!(1&n.d)||(n.u.splice(-1,1),n.e())},t:function(){}}),this.d=3)},n.prototype.e=function(){for(var n=0,t=0,r=0,e=0,i=this.u;e<i.length;e++){r+=46+(s=i[e]).f.length+fr(s.extra)+(s.o?s.o.length:0)}for(var a=new D(r+22),o=0,u=this.u;o<u.length;o++){var s=u[o];Mr(a,n,s,s.f,s.u,s.c,t,s.o),n+=46+s.f.length+fr(s.extra)+(s.o?s.o.length:0),t+=s.b}fn(a,n,this.u.length,r,t),this.ondata(null,a,!0),this.d=2},n.prototype.terminate=function(){for(var n=0,t=this.u;n<t.length;n++){t[n].t()}this.d=2},n}();function mt(n,t,r){r||(r=t,t={}),"function"!=typeof r&&g(7);var e={};an(n,"",e,t);var i=Object.keys(e),a=i.length,o=0,s=0,f=a,h=new Array(a),c=[],l=u((function(){for(var n=0;n<c.length;++n)c[n]()}),"tAll"),p=u((function(n,t){$r((function(){r(n,t)}))}),"cbd");$r((function(){p=r}));var v=u((function(){var n=new D(s+22),t=o,r=s-o;s=0;for(var e=0;e<f;++e){var i=h[e];try{var a=i.c.length;Mr(n,s,i,i.f,i.u,a);var u=30+i.f.length+fr(i.extra),c=s+u;n.set(i.c,c),Mr(n,o,i,i.f,i.u,a,s,i.m),o+=16+u+(i.m?i.m.length:0),s=c+a}catch(n){return p(n,null)}}fn(n,o,h.length,r,t),p(null,n)}),"cbf");a||v();for(var d=u((function(n){var t=i[n],r=e[t],f=r[0],d=r[1],y=wr(),m=f.length;y.p(f);var b=ur(t),w=b.length,z=d.comment,D=z&&ur(z),E=D&&D.length,I=fr(d.extra),k=0==d.level?0:8,S=u((function(r,e){if(r)l(),p(r,null);else{var i=e.length;h[n]=Er(d,{size:m,crc:y.d(),c:e,f:b,m:D,u:w!=t.length||D&&z.length!=E,compression:k}),o+=30+w+I+i,s+=76+2*(w+I)+(E||0)+i,--a||v()}}),"cbl");if(w>65535&&S(g(11,0,1),null),k)if(m<16e4)try{S(null,Nr(f,d))}catch(n){S(n,null)}else c.push(dn(f,d,S));else S(null,f)}),"_loop_1"),y=0;y<f;++y)d(y);return l}function xt(n,t){t||(t={});var r={},e=[];an(n,"",r,t);var i=0,a=0;for(var o in r){var u=r[o],s=u[0],f=u[1],h=0==f.level?0:8,c=(k=ur(o)).length,l=f.comment,p=l&&ur(l),v=p&&p.length,d=fr(f.extra);c>65535&&g(11);var y=h?Nr(s,f):s,m=y.length,b=wr();b.p(s),e.push(Er(f,{size:s.length,crc:b.d(),c:y,f:k,m:p,u:c!=o.length||p&&l.length!=v,o:i,compression:h})),i+=30+c+d+m,a+=76+2*(c+d)+(v||0)+m}for(var w=new D(a+22),z=i,E=a-i,I=0;I<e.length;++I){var k=e[I];Mr(w,k.o,k,k.f,k.u,k.c.length);var S=30+k.f.length+fr(k.extra);w.set(k.c,k.o+S),Mr(w,i,k,k.f,k.u,k.c.length,k.o,k.m),i+=16+S+(k.m?k.m.length:0)}return fn(w,i,e.length,E,z),w}u(mt,"zip"),u(xt,"zipSync");var et=function(){function n(){}return u(n,"UnzipPassThrough"),n.prototype.push=function(n,t){this.ondata(null,n,t)},n.compression=0,n}(),zt=function(){function n(){var n=this;this.i=new K((function(t,r){n.ondata(null,t,r)}))}return u(n,"UnzipInflate"),n.prototype.push=function(n,t){try{this.i.push(n,t)}catch(n){this.ondata(n,null,t)}},n.compression=8,n}(),At=function(){function n(n,t){var r=this;t<32e4?this.i=new K((function(n,t){r.ondata(null,n,t)})):(this.i=new kn((function(n,t,e){r.ondata(n,t,e)})),this.terminate=this.i.terminate)}return u(n,"AsyncUnzipInflate"),n.prototype.push=function(n,t){this.i.terminate&&(n=d(n,0)),this.i.push(n,t)},n.compression=8,n}(),Mt=function(){function n(n){this.onfile=n,this.k=[],this.o={0:et},this.p=ir}return u(n,"Unzip"),n.prototype.push=function(n,t){var r=this;if(this.onfile||g(5),this.p||g(4),this.c>0){var e=Math.min(this.c,n.length),i=n.subarray(0,e);if(this.c-=e,this.d?this.d.push(i,!this.c):this.k[0].push(i),(n=n.subarray(e)).length)return this.push(n,t)}else{var a=0,o=0,s=void 0,f=void 0;this.p.length?n.length?((f=new D(this.p.length+n.length)).set(this.p),f.set(n,this.p.length)):f=this.p:f=n;for(var h=f.length,c=this.c,l=c&&this.d,p=u((function(){var n,t=N(f,o);if(67324752==t){a=1,s=o,v.d=null,v.c=0;var e=W(f,o+6),i=W(f,o+8),u=2048&e,l=8&e,p=W(f,o+26),d=W(f,o+28);if(h>o+30+p+d){var y=[];v.k.unshift(y),a=2;var m=N(f,o+18),b=N(f,o+22),w=Hn(f.subarray(o+30,o+=30+p),!u);4294967295==m?(n=l?[-2]:Jn(f,o),m=n[0],b=n[1]):l&&(m=-1),o+=d,v.c=m;var z,D={name:w,compression:i,start:function(){if(D.ondata||g(5),m){var n=r.o[i];n||D.ondata(g(14,"unknown compression type "+i,1),null,!1),(z=m<0?new n(w):new n(w,m,b)).ondata=function(n,t,r){D.ondata(n,t,r)};for(var t=0,e=y;t<e.length;t++){var a=e[t];z.push(a,!1)}r.k[0]==y&&r.c?r.d=z:z.push(ir,!0)}else D.ondata(null,ir,!0)},terminate:function(){z&&z.terminate&&z.terminate()}};m>=0&&(D.size=m,D.originalSize=b),v.onfile(D)}return"break"}if(c){if(134695760==t)return s=o+=12+(-2==c&&8),a=3,v.c=0,"break";if(33639248==t)return s=o-=4,a=3,v.c=0,"break"}}),"_loop_2"),v=this;o<h-4;++o){if("break"===p())break}if(this.p=ir,c<0){var d=a?f.subarray(0,s-12-(-2==c&&8)-(134695760==N(f,s-16)&&4)):f.subarray(0,o);l?l.push(d,!!a):this.k[+(2==a)].push(d)}if(2&a)return this.push(f.subarray(o),t);this.p=f.subarray(o)}t&&(this.c&&g(13),this.p=null)},n.prototype.register=function(n){this.o[n.compression]=n},n}(),$r="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(n){n()};function Tt(n,t,r){r||(r=t,t={}),"function"!=typeof r&&g(7);var e=[],i=u((function(){for(var n=0;n<e.length;++n)e[n]()}),"tAll"),a={},o=u((function(n,t){$r((function(){r(n,t)}))}),"cbd");$r((function(){o=r}));for(var s=n.length-22;101010256!=N(n,s);--s)if(!s||n.length-s>65558)return o(g(13,0,1),null),i;var f=W(n,s+8);if(f){var h=f,c=N(n,s+16),l=4294967295==c;if(l){if(s=N(n,s-12),101075792!=N(n,s))return o(g(13,0,1),null),i;h=f=N(n,s+32),c=N(n,s+48)}for(var p=t&&t.filter,v=u((function(t){var r=jn(n,c,l),s=r[0],h=r[1],v=r[2],y=r[3],m=r[4],b=r[5],w=Wn(n,b);c=m;var z=u((function(n,t){n?(i(),o(n,null)):(t&&(a[y]=t),--f||o(null,a))}),"cbl");if(!p||p({name:y,size:h,originalSize:v,compression:s}))if(s)if(8==s){var E=n.subarray(w,w+h);if(h<32e4)try{z(null,Fr(E,new D(v)))}catch(n){z(n,null)}else e.push(Gn(E,{size:v},z))}else z(g(14,"unknown compression type "+s,1),null);else z(null,d(n,w,w+h));else z(null,null)}),"_loop_3"),y=0;y<h;++y)v(y)}else o(null,{});return i}function Ut(n,t){for(var r={},e=n.length-22;101010256!=N(n,e);--e)(!e||n.length-e>65558)&&g(13);var i=W(n,e+8);if(!i)return{};var a=N(n,e+16),o=4294967295==a;o&&(e=N(n,e-12),101075792!=N(n,e)&&g(13),i=N(n,e+32),a=N(n,e+48));for(var u=t&&t.filter,s=0;s<i;++s){var f=jn(n,a,o),h=f[0],c=f[1],l=f[2],p=f[3],v=f[4],y=f[5],m=Wn(n,y);a=v,(!u||u({name:p,size:c,originalSize:l,compression:h}))&&(h?8==h?r[p]=Fr(n.subarray(m,m+c),new D(l)):g(14,"unknown compression type "+h):r[p]=d(n,m,m+c))}return r}u(Tt,"unzip"),u(Ut,"unzipSync");export{ot as AsyncCompress,vt as AsyncDecompress,Xn as AsyncDeflate,bn as AsyncGunzip,ot as AsyncGzip,kn as AsyncInflate,At as AsyncUnzipInflate,rt as AsyncUnzlib,yt as AsyncZipDeflate,st as AsyncZlib,On as Compress,ct as DecodeUTF8,tt as Decompress,ar as Deflate,pt as EncodeUTF8,at as FlateErrorCode,rn as Gunzip,On as Gzip,K as Inflate,Mt as Unzip,zt as UnzipInflate,et as UnzipPassThrough,tn as Unzlib,wt as Zip,gt as ZipDeflate,Rr as ZipPassThrough,Pn as Zlib,ft as compress,Ln as compressSync,ht as decompress,lt as decompressSync,dn as deflate,Nr as deflateSync,_n as gunzip,nn as gunzipSync,ft as gzip,Ln as gzipSync,Gn as inflate,Fr as inflateSync,Hn as strFromU8,ur as strToU8,Tt as unzip,Ut as unzipSync,nt as unzlib,en as unzlibSync,mt as zip,xt as zipSync,ut as zlib,Nn as zlibSync};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b}from"./chunk-XPQLPFMX.js";var d,f,c=b((()=>{f={env:d={NODE_ENV:"production",npm_package_version:"5.21.0"}}}));export{c as a,f as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as z}from"./chunk-
|
|
1
|
+
import{a as z}from"./chunk-6IFB2STL.js";import{a as h,c as J}from"./chunk-XPQLPFMX.js";var ue=J(((e,t)=>{function n(e,t,n){n=n||2;var i,o,h,u,a,f,s,p=t&&t.length,l=p?t[0]*n:e.length,y=r(e,0,l,n,!0),c=[];if(!y||y.next===y.prev)return c;if(p&&(y=v(e,t,y,n)),e.length>80*n){i=h=e[0],o=u=e[1];for(var d=n;d<l;d+=n)(a=e[d])<i&&(i=a),(f=e[d+1])<o&&(o=f),a>h&&(h=a),f>u&&(u=f);s=0!==(s=Math.max(h-i,u-o))?32767/s:0}return x(y,c,n,i,o,s,0),c}function r(e,t,n,r,i){var x,o;if(i===J(e,t,n,r)>0)for(x=t;x<n;x+=r)o=j(x,e[x],e[x+1],o);else for(x=n-r;x>=t;x-=r)o=j(x,e[x],e[x+1],o);return o&&k(o,o.next)&&(C(o),o=o.next),o}function i(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!k(r,r.next)&&0!==b(r.prev,r,r.next))r=r.next;else{if(C(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function x(e,t,n,r,h,v,s){if(e){!s&&v&&c(e,r,h,v);for(var p,l,y=e;e.prev!==e.next;)if(p=e.prev,l=e.next,v?u(e,r,h,v):o(e))t.push(p.i/n|0),t.push(e.i/n|0),t.push(l.i/n|0),C(e),e=l.next,y=l.next;else if((e=l)===y){s?1===s?x(e=a(i(e),t,n),t,n,r,h,v,2):2===s&&f(e,t,n,r,h,v):x(i(e),t,n,r,h,v,1);break}}}function o(e){var t=e.prev,n=e,r=e.next;if(b(t,n,r)>=0)return!1;for(var i=t.x,x=n.x,o=r.x,h=t.y,u=n.y,a=r.y,f=i<x?i<o?i:o:x<o?x:o,v=h<u?h<a?h:a:u<a?u:a,s=i>x?i>o?i:o:x>o?x:o,p=h>u?h>a?h:a:u>a?u:a,l=r.next;l!==t;){if(l.x>=f&&l.x<=s&&l.y>=v&&l.y<=p&&m(i,h,x,u,o,a,l.x,l.y)&&b(l.prev,l,l.next)>=0)return!1;l=l.next}return!0}function u(e,t,n,r){var i=e.prev,x=e,o=e.next;if(b(i,x,o)>=0)return!1;for(var h=i.x,u=x.x,a=o.x,f=i.y,v=x.y,s=o.y,p=h<u?h<a?h:a:u<a?u:a,l=f<v?f<s?f:s:v<s?v:s,y=h>u?h>a?h:a:u>a?u:a,c=f>v?f>s?f:s:v>s?v:s,d=g(p,l,t,n,r),Z=g(y,c,t,n,r),w=e.prevZ,z=e.nextZ;w&&w.z>=d&&z&&z.z<=Z;){if(w.x>=p&&w.x<=y&&w.y>=l&&w.y<=c&&w!==i&&w!==o&&m(h,f,u,v,a,s,w.x,w.y)&&b(w.prev,w,w.next)>=0||(w=w.prevZ,z.x>=p&&z.x<=y&&z.y>=l&&z.y<=c&&z!==i&&z!==o&&m(h,f,u,v,a,s,z.x,z.y)&&b(z.prev,z,z.next)>=0))return!1;z=z.nextZ}for(;w&&w.z>=d;){if(w.x>=p&&w.x<=y&&w.y>=l&&w.y<=c&&w!==i&&w!==o&&m(h,f,u,v,a,s,w.x,w.y)&&b(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;z&&z.z<=Z;){if(z.x>=p&&z.x<=y&&z.y>=l&&z.y<=c&&z!==i&&z!==o&&m(h,f,u,v,a,s,z.x,z.y)&&b(z.prev,z,z.next)>=0)return!1;z=z.nextZ}return!0}function a(e,t,n){var r=e;do{var x=r.prev,o=r.next.next;!k(x,o)&&M(x,r,r.next,o)&&P(x,o)&&P(o,x)&&(t.push(x.i/n|0),t.push(r.i/n|0),t.push(o.i/n|0),C(r),C(r.next),r=e=o),r=r.next}while(r!==e);return i(r)}function f(e,t,n,r,o,h){var u=e;do{for(var a=u.next.next;a!==u.prev;){if(u.i!==a.i&&w(u,a)){var f=T(u,a);return u=i(u,u.next),f=i(f,f.next),x(u,t,n,r,o,h,0),void x(f,t,n,r,o,h,0)}a=a.next}u=u.next}while(u!==e)}function v(e,t,n,i){var x,o,h,u=[];for(x=0,o=t.length;x<o;x++)(h=r(e,t[x]*i,x<o-1?t[x+1]*i:e.length,i,!1))===h.next&&(h.steiner=!0),u.push(Z(h));for(u.sort(s),x=0;x<u.length;x++)n=p(u[x],n);return n}function s(e,t){return e.x-t.x}function p(e,t){var n=l(e,t);if(!n)return t;var r=T(n,e);return i(r,r.next),i(n,n.next)}function l(e,t){var n,r=t,i=e.x,x=e.y,o=-1/0;do{if(x<=r.y&&x>=r.next.y&&r.next.y!==r.y){var h=r.x+(x-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(h<=i&&h>o&&(o=h,n=r.x<r.next.x?r:r.next,h===i))return n}r=r.next}while(r!==t);if(!n)return null;var u,a=n,f=n.x,v=n.y,s=1/0;r=n;do{i>=r.x&&r.x>=f&&i!==r.x&&m(x<v?i:o,x,f,v,x<v?o:i,x,r.x,r.y)&&(u=Math.abs(x-r.y)/(i-r.x),P(r,e)&&(u<s||u===s&&(r.x>n.x||r.x===n.x&&y(n,r)))&&(n=r,s=u)),r=r.next}while(r!==a);return n}function y(e,t){return b(e.prev,e,t.prev)<0&&b(t.next,e,e.next)<0}function c(e,t,n,r){var i=e;do{0===i.z&&(i.z=g(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,d(i)}function d(e){var t,n,r,i,x,o,h,u,a=1;do{for(n=e,e=null,x=null,o=0;n;){for(o++,r=n,h=0,t=0;t<a&&(h++,r=r.nextZ);t++);for(u=a;h>0||u>0&&r;)0!==h&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,h--):(i=r,r=r.nextZ,u--),x?x.nextZ=i:e=i,i.prevZ=x,x=i;n=r}x.nextZ=null,a*=2}while(o>1);return e}function g(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function Z(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function m(e,t,n,r,i,x,o,h){return(i-o)*(t-h)>=(e-o)*(x-h)&&(e-o)*(r-h)>=(n-o)*(t-h)&&(n-o)*(x-h)>=(i-o)*(r-h)}function w(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!I(e,t)&&(P(e,t)&&P(t,e)&&H(e,t)&&(b(e.prev,e,t.prev)||b(e,t.prev,t))||k(e,t)&&b(e.prev,e,e.next)>0&&b(t.prev,t,t.next)>0)}function b(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function k(e,t){return e.x===t.x&&e.y===t.y}function M(e,t,n,r){var i=_(b(e,t,n)),x=_(b(e,t,r)),o=_(b(n,r,e)),h=_(b(n,r,t));return!!(i!==x&&o!==h||0===i&&L(e,n,t)||0===x&&L(e,r,t)||0===o&&L(n,e,r)||0===h&&L(n,t,r))}function L(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function _(e){return e>0?1:e<0?-1:0}function I(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&M(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function P(e,t){return b(e.prev,e,e.next)<0?b(e,t,e.next)>=0&&b(e,e.prev,t)>=0:b(e,t,e.prev)<0||b(e,e.next,t)<0}function H(e,t){var n=e,r=!1,i=(e.x+t.x)/2,x=(e.y+t.y)/2;do{n.y>x!=n.next.y>x&&n.next.y!==n.y&&i<(n.next.x-n.x)*(x-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}function T(e,t){var n=new E(e.i,e.x,e.y),r=new E(t.i,t.x,t.y),i=e.next,x=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,x.next=r,r.prev=x,r}function j(e,t,n,r){var i=new E(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function C(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function E(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function J(e,t,n,r){for(var i=0,x=t,o=n-r;x<n;x+=r)i+=(e[o]-e[x])*(e[x+1]+e[o+1]),o=x;return i}z(),t.exports=n,t.exports.default=n,h(n,"earcut"),h(r,"linkedList"),h(i,"filterPoints"),h(x,"earcutLinked"),h(o,"isEar"),h(u,"isEarHashed"),h(a,"cureLocalIntersections"),h(f,"splitEarcut"),h(v,"eliminateHoles"),h(s,"compareX"),h(p,"eliminateHole"),h(l,"findHoleBridge"),h(y,"sectorContainsSector"),h(c,"indexCurve"),h(d,"sortLinked"),h(g,"zOrder"),h(Z,"getLeftmost"),h(m,"pointInTriangle"),h(w,"isValidDiagonal"),h(b,"area"),h(k,"equals"),h(M,"intersects"),h(L,"onSegment"),h(_,"sign"),h(I,"intersectsPolygon"),h(P,"locallyInside"),h(H,"middleInside"),h(T,"splitPolygon"),h(j,"insertNode"),h(C,"removeNode"),h(E,"Node"),n.deviation=function(e,t,n,r){var i=t&&t.length,x=i?t[0]*n:e.length,o=Math.abs(J(e,0,x,n));if(i)for(var h=0,u=t.length;h<u;h++){var a=t[h]*n,f=h<u-1?t[h+1]*n:e.length;o-=Math.abs(J(e,a,f,n))}var v=0;for(h=0;h<r.length;h+=3){var s=r[h]*n,p=r[h+1]*n,l=r[h+2]*n;v+=Math.abs((e[s]-e[l])*(e[p+1]-e[s+1])-(e[s]-e[p])*(e[l+1]-e[s+1]))}return 0===o&&0===v?0:Math.abs((v-o)/o)},h(J,"signedArea"),n.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,i=0;i<e.length;i++){for(var x=0;x<e[i].length;x++)for(var o=0;o<t;o++)n.vertices.push(e[i][x][o]);i>0&&(r+=e[i-1].length,n.holes.push(r))}return n}})),fe=J(((e,t)=>{var n,r;z(),n=e,r=function(){"use strict";var e=h((function(e,n){if(void 0===e&&(e=[]),void 0===n&&(n=t),this.data=e,this.length=this.data.length,this.compare=n,this.length>0)for(var r=(this.length>>1)-1;r>=0;r--)this._down(r)}),"TinyQueue");function t(e,t){return e<t?-1:e>t?1:0}return e.prototype.push=h((function(e){this.data.push(e),this.length++,this._up(this.length-1)}),"push"),e.prototype.pop=h((function(){if(0!==this.length){var e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}}),"pop"),e.prototype.peek=h((function(){return this.data[0]}),"peek"),e.prototype._up=h((function(e){for(var t=this.data,n=this.compare,r=t[e];e>0;){var i=e-1>>1,x=t[i];if(n(r,x)>=0)break;t[e]=x,e=i}t[e]=r}),"_up"),e.prototype._down=h((function(e){for(var t=this.data,n=this.compare,r=this.length>>1,i=t[e];e<r;){var x=1+(e<<1),o=t[x],h=x+1;if(h<this.length&&n(t[h],o)<0&&(x=h,o=t[h]),n(o,i)>=0)break;t[e]=o,e=x}t[e]=i}),"_down"),h(t,"defaultCompare"),e},"object"==typeof e&&void 0!==t?t.exports=r():"function"==typeof define&&define.amd?define(r):(n=n||self).TinyQueue=r()}));export{fe as a,ue as b};
|
|
@@ -782,6 +782,7 @@ declare module '@mappedin/mappedin-js/renderer/public/MapView' {
|
|
|
782
782
|
declare module '@mappedin/mappedin-js/get-venue' {
|
|
783
783
|
import type { TGetVenueOptions, TVenueMetadata } from '@mappedin/mappedin-js/get-venue/Mappedin.types';
|
|
784
784
|
import { Mappedin } from '@mappedin/mappedin-js/get-venue/Mappedin';
|
|
785
|
+
import { defaultThings } from '@mappedin/mappedin-js/get-venue/default-things';
|
|
785
786
|
/**
|
|
786
787
|
* This is how we can avoid bundling in node-fetch (via isomorphic fetch),
|
|
787
788
|
* which keeps popping up in security advisories
|
|
@@ -827,6 +828,7 @@ declare module '@mappedin/mappedin-js/get-venue' {
|
|
|
827
828
|
export type { TDirectionToOptions } from '@mappedin/mappedin-js/get-venue/MappedinNavigatable';
|
|
828
829
|
export { OfflineSearch } from '@mappedin/mappedin-js/get-venue/Mappedin.OfflineSearch';
|
|
829
830
|
export type { TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions, } from '@mappedin/mappedin-js/get-venue/Mappedin.OfflineSearch';
|
|
831
|
+
export { defaultThings };
|
|
830
832
|
/** API data types */
|
|
831
833
|
export type { TLocationType, TNode, TImage, TLogo, TGalleryImage, TPhone, TSocial, TColor, TVortex, TPicture, TOpeningHours, TSiblingGroup, TState, TCategory, TEvent, TGeoReference, TMap, TMapGroup, TBuilding, TLocation, TPolygon, TPolygonRanking, TVenue, TMappedinAPI, } from '@mappedin/mappedin-js/get-venue/Mappedin.API.types';
|
|
832
834
|
export type { TGetVenueOptions } from '@mappedin/mappedin-js/get-venue/Mappedin.types';
|
|
@@ -887,7 +889,7 @@ declare module '@mappedin/mappedin-js/get-venue' {
|
|
|
887
889
|
/**
|
|
888
890
|
* @internal
|
|
889
891
|
*/
|
|
890
|
-
export function getVenueMVF(userOptions:
|
|
892
|
+
export function getVenueMVF(userOptions: TGetVenueMVFOptions): Promise<Mappedin>;
|
|
891
893
|
/**
|
|
892
894
|
* Get Venue Data for a Mappedin Venue
|
|
893
895
|
*/
|
|
@@ -906,6 +908,9 @@ declare module '@mappedin/mappedin-js/get-venue' {
|
|
|
906
908
|
*/
|
|
907
909
|
shouldPopulateBundledImagesAsBlobs?: boolean;
|
|
908
910
|
};
|
|
911
|
+
export type TGetVenueMVFOptions = TGetVenueBundleOptions & {
|
|
912
|
+
onMVFParsed?: (mvf: ParsedMVF) => void;
|
|
913
|
+
};
|
|
909
914
|
/**
|
|
910
915
|
* @deprecated
|
|
911
916
|
* Fetching an offline Venue bundle
|
|
@@ -4435,6 +4440,21 @@ declare module '@mappedin/mappedin-js/get-venue/Mappedin' {
|
|
|
4435
4440
|
export {};
|
|
4436
4441
|
}
|
|
4437
4442
|
|
|
4443
|
+
declare module '@mappedin/mappedin-js/get-venue/default-things' {
|
|
4444
|
+
export const defaultThings: {
|
|
4445
|
+
venue: string[];
|
|
4446
|
+
nodes: string[];
|
|
4447
|
+
vortexes: string[];
|
|
4448
|
+
polygons: string[];
|
|
4449
|
+
locations: string[];
|
|
4450
|
+
categories: string[];
|
|
4451
|
+
maps: string[];
|
|
4452
|
+
mapGroups: string[];
|
|
4453
|
+
themes: string[];
|
|
4454
|
+
rankings: string[];
|
|
4455
|
+
};
|
|
4456
|
+
}
|
|
4457
|
+
|
|
4438
4458
|
declare module '@mappedin/mappedin-js/get-venue/MappedinLocation' {
|
|
4439
4459
|
import type { TLocation, TColor, TGalleryImage, TLogo, TOpeningHours, TPhone, TPicture, TSiblingGroup, TSocial } from '@mappedin/mappedin-js/get-venue/Mappedin.API.types';
|
|
4440
4460
|
import type { Mappedin } from '@mappedin/mappedin-js/get-venue/Mappedin';
|
|
@@ -7064,7 +7084,6 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/JourneyContro
|
|
|
7064
7084
|
#private;
|
|
7065
7085
|
distance: number;
|
|
7066
7086
|
accessible: boolean;
|
|
7067
|
-
core: ICore;
|
|
7068
7087
|
activeDirections: MappedinDirections;
|
|
7069
7088
|
get isMultiFloor(): boolean;
|
|
7070
7089
|
get mapsInJourney(): any[];
|
|
@@ -7995,6 +8014,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MapObject' {
|
|
|
7995
8014
|
_isVisible: boolean;
|
|
7996
8015
|
needsUpdate: boolean;
|
|
7997
8016
|
userData: {};
|
|
8017
|
+
opacity: number;
|
|
7998
8018
|
set isVisible(arg: boolean);
|
|
7999
8019
|
get isVisible(): boolean;
|
|
8000
8020
|
mapObject: any;
|
|
@@ -8066,27 +8086,34 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MapObject' {
|
|
|
8066
8086
|
_objLoadedMerged(object: any): Promise<any>;
|
|
8067
8087
|
enableImageFlipping(polygonId: any, rotation: any): void;
|
|
8068
8088
|
needsUpdate: boolean;
|
|
8069
|
-
|
|
8070
|
-
start: (core: any) => Promise<any>;
|
|
8071
|
-
};
|
|
8072
|
-
fadeOut(options?: {}): {
|
|
8073
|
-
start: (core: any) => Promise<any>;
|
|
8074
|
-
};
|
|
8075
|
-
setOpacity({ layers, opacity }: {
|
|
8076
|
-
layers?: string[] | undefined;
|
|
8077
|
-
opacity: any;
|
|
8078
|
-
}): void;
|
|
8079
|
-
fade({ direction, duration, delay, to, easing, onStart, onComplete, layers, }: {
|
|
8089
|
+
fade(layerGroupName: any, { direction, onComplete, duration }: {
|
|
8080
8090
|
direction?: string | undefined;
|
|
8081
|
-
duration?: number | undefined;
|
|
8082
|
-
delay?: number | undefined;
|
|
8083
|
-
to?: undefined;
|
|
8084
|
-
easing?: any;
|
|
8085
|
-
onStart?: (() => void) | undefined;
|
|
8086
8091
|
onComplete?: (() => void) | undefined;
|
|
8087
|
-
|
|
8092
|
+
duration?: number | undefined;
|
|
8093
|
+
}): {
|
|
8094
|
+
start: () => Promise<any>;
|
|
8095
|
+
};
|
|
8096
|
+
/**
|
|
8097
|
+
* Fade a layer group or number of layer groups in
|
|
8098
|
+
* @param {string|string[]} layerGroupNames
|
|
8099
|
+
* @returns
|
|
8100
|
+
*/
|
|
8101
|
+
fadeIn(layerGroupNames?: string | string[], options?: {
|
|
8102
|
+
onComplete: () => void;
|
|
8103
|
+
duration: number;
|
|
8104
|
+
}): {
|
|
8105
|
+
start: () => Promise<any>;
|
|
8106
|
+
};
|
|
8107
|
+
/**
|
|
8108
|
+
* Fade a layer group or number of layer groups out
|
|
8109
|
+
* @param {string|string[]} layerGroupNames
|
|
8110
|
+
* @returns
|
|
8111
|
+
*/
|
|
8112
|
+
fadeOut(layerGroupNames?: string | string[], options?: {
|
|
8113
|
+
onComplete: () => void;
|
|
8114
|
+
duration: number;
|
|
8088
8115
|
}): {
|
|
8089
|
-
start: (
|
|
8116
|
+
start: () => Promise<any>;
|
|
8090
8117
|
};
|
|
8091
8118
|
layerGroups: Map<any, any>;
|
|
8092
8119
|
loadedLayerNames: any[];
|
|
@@ -9198,9 +9225,9 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/StackedMapsCo
|
|
|
9198
9225
|
activeMap: MappedinMap;
|
|
9199
9226
|
})[] | undefined;
|
|
9200
9227
|
getEnableOptions: (params: TParams) => void;
|
|
9201
|
-
getShowOverviewTransition: (options: any) => () => Promise<void>;
|
|
9228
|
+
getShowOverviewTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
9202
9229
|
getZoomInToMapTransition: (options: any) => () => Promise<void>;
|
|
9203
|
-
getScrollToMapTransition: (options: any) => () => Promise<void>;
|
|
9230
|
+
getScrollToMapTransition: (options: any, inTransit?: boolean) => () => Promise<void>;
|
|
9204
9231
|
getDisableTransition: (options: any) => () => Promise<void>;
|
|
9205
9232
|
getEnableTransition: () => () => void;
|
|
9206
9233
|
states: TState;
|
|
@@ -9442,6 +9469,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer' {
|
|
|
9442
9469
|
export class MultiBufferRenderer {
|
|
9443
9470
|
constructor(renderOptions: any, targetWebGLVersion?: number);
|
|
9444
9471
|
effectComposer: null;
|
|
9472
|
+
outdoorsVisible: boolean;
|
|
9445
9473
|
options: any;
|
|
9446
9474
|
renderer: any;
|
|
9447
9475
|
core: any;
|
|
@@ -10357,6 +10385,10 @@ declare module '@mappedin/mappedin-js/renderer/internal/shave-text' {
|
|
|
10357
10385
|
lines: number;
|
|
10358
10386
|
draw: TDrawFn;
|
|
10359
10387
|
};
|
|
10388
|
+
export const getMeasureCanvas: () => {
|
|
10389
|
+
measureCanvas: HTMLCanvasElement | undefined;
|
|
10390
|
+
measureCanvasContext: CanvasRenderingContext2D;
|
|
10391
|
+
};
|
|
10360
10392
|
export const shaveText: TShave;
|
|
10361
10393
|
export {};
|
|
10362
10394
|
}
|