@mappedin/react-native-sdk 5.41.8 → 5.41.10

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.
@@ -0,0 +1 @@
1
+ import{a as u,i as hn}from"./chunk-N2ROSKKX.js";hn();var ln={},Qn=u(function(n,r,t,e,i){var a=new Worker(ln[r]||(ln[r]=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(o){var f=o.data,v=f.$e$;if(v){var s=new Error(v[0]);s.code=v[1],s.stack=v[2],i(s,null)}else i(null,f)},a.postMessage(t,e),a},"wk"),D=Uint8Array,q=Uint16Array,gr=Uint32Array,yr=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]),wr=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]),xn=u(function(n,r){for(var t=new q(31),e=0;e<31;++e)t[e]=r+=1<<n[e-1];for(var i=new gr(t[30]),e=1;e<30;++e)for(var a=t[e];a<t[e+1];++a)i[a]=a-t[e]<<5|e;return[t,i]},"freb"),zn=xn(yr,2),dr=zn[0],Or=zn[1];dr[28]=258,Or[258]=28;var An=xn(wr,0),Mn=An[0],Yr=An[1],Dr=new q(32768);for(E=0;E<32768;++E)tr=(E&43690)>>>1|(E&21845)<<1,tr=(tr&52428)>>>2|(tr&13107)<<2,tr=(tr&61680)>>>4|(tr&3855)<<4,Dr[E]=((tr&65280)>>>8|(tr&255)<<8)>>>1;var tr,E,X=u(function(n,r,t){for(var e=n.length,i=0,a=new q(r);i<e;++i)n[i]&&++a[n[i]-1];var o=new q(r);for(i=0;i<r;++i)o[i]=o[i-1]+a[i-1]<<1;var f;if(t){f=new q(1<<r);var v=15-r;for(i=0;i<e;++i)if(n[i])for(var s=i<<4|n[i],h=r-n[i],c=o[n[i]-1]++<<h,y=c|(1<<h)-1;c<=y;++c)f[Dr[c]>>>v]=s}else for(f=new q(e),i=0;i<e;++i)n[i]&&(f[i]=Dr[o[n[i]-1]++]>>>15-n[i]);return f},"hMap"),ir=new D(288);for(E=0;E<144;++E)ir[E]=8;var E;for(E=144;E<256;++E)ir[E]=9;var E;for(E=256;E<280;++E)ir[E]=7;var E;for(E=280;E<288;++E)ir[E]=8;var E,cr=new D(32);for(E=0;E<32;++E)cr[E]=5;var E,Tn=X(ir,9,0),Un=X(ir,9,1),Dn=X(cr,5,0),Sn=X(cr,5,1),Zr=u(function(n){for(var r=n[0],t=1;t<n.length;++t)n[t]>r&&(r=n[t]);return r},"max"),V=u(function(n,r,t){var e=r/8|0;return(n[e]|n[e+1]<<8)>>(r&7)&t},"bits"),kr=u(function(n,r){var t=r/8|0;return(n[t]|n[t+1]<<8|n[t+2]<<16)>>(r&7)},"bits16"),Sr=u(function(n){return(n+7)/8|0},"shft"),d=u(function(n,r,t){(r==null||r<0)&&(r=0),(t==null||t>n.length)&&(t=n.length);var e=new(n.BYTES_PER_ELEMENT==2?q:n.BYTES_PER_ELEMENT==4?gr:D)(t-r);return e.set(n.subarray(r,t)),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},Cn=["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,r,t){var e=new Error(r||Cn[n]);if(e.code=n,Error.captureStackTrace&&Error.captureStackTrace(e,g),!t)throw e;return e},"err"),Cr=u(function(n,r,t){var e=n.length;if(!e||t&&t.f&&!t.l)return r||new D(0);var i=!r||t,a=!t||t.i;t||(t={}),r||(r=new D(e*3));var o=u(function(Ir){var Tr=r.length;if(Ir>Tr){var vr=new D(Math.max(Tr*2,Ir));vr.set(r),r=vr}},"cbuf"),f=t.f||0,v=t.p||0,s=t.b||0,h=t.l,c=t.d,y=t.m,z=t.n,w=e*8;do{if(!h){f=V(n,v,1);var x=V(n,v+1,3);if(v+=3,x)if(x==1)h=Un,c=Sn,y=9,z=5;else if(x==2){var U=V(n,v,31)+257,m=V(n,v+10,15)+4,B=U+V(n,v+5,31)+1;v+=14;for(var C=new D(B),M=new D(19),p=0;p<m;++p)M[Ur[p]]=V(n,v+p*3,7);v+=m*3;for(var P=Zr(M),S=(1<<P)-1,R=X(M,P,1),p=0;p<B;){var O=R[V(n,v,S)];v+=O&15;var l=O>>>4;if(l<16)C[p++]=l;else{var k=0,F=0;for(l==16?(F=3+V(n,v,3),v+=2,k=C[p-1]):l==17?(F=3+V(n,v,7),v+=3):l==18&&(F=11+V(n,v,127),v+=7);F--;)C[p++]=k}}var L=C.subarray(0,U),Z=C.subarray(U);y=Zr(L),z=Zr(Z),h=X(L,y,1),c=X(Z,z,1)}else g(1);else{var l=Sr(v)+4,A=n[l-4]|n[l-3]<<8,T=l+A;if(T>e){a&&g(0);break}i&&o(s+A),r.set(n.subarray(l,T),s),t.b=s+=A,t.p=v=T*8,t.f=f;continue}if(v>w){a&&g(0);break}}i&&o(s+131072);for(var G=(1<<y)-1,H=(1<<z)-1,j=v;;j=v){var k=h[kr(n,v)&G],Q=k>>>4;if(v+=k&15,v>w){a&&g(0);break}if(k||g(2),Q<256)r[s++]=Q;else if(Q==256){j=v,h=null;break}else{var Y=Q-254;if(Q>264){var p=Q-257,_=yr[p];Y=V(n,v,(1<<_)-1)+dr[p],v+=_}var rr=c[kr(n,v)&H],J=rr>>>4;rr||g(3),v+=rr&15;var Z=Mn[J];if(J>3){var _=wr[J];Z+=kr(n,v)&(1<<_)-1,v+=_}if(v>w){a&&g(0);break}i&&o(s+131072);for(var $=s+Y;s<$;s+=4)r[s]=r[s-Z],r[s+1]=r[s+1-Z],r[s+2]=r[s+2-Z],r[s+3]=r[s+3-Z];s=$}}t.l=h,t.p=j,t.b=s,t.f=f,h&&(f=1,t.m=y,t.d=c,t.n=z)}while(!f);return s==r.length?r:d(r,0,s)},"inflt"),nr=u(function(n,r,t){t<<=r&7;var e=r/8|0;n[e]|=t,n[e+1]|=t>>>8},"wbits"),hr=u(function(n,r,t){t<<=r&7;var e=r/8|0;n[e]|=t,n[e+1]|=t>>>8,n[e+2]|=t>>>16},"wbits16"),Gr=u(function(n,r){for(var t=[],e=0;e<n.length;++e)n[e]&&t.push({s:e,f:n[e]});var i=t.length,a=t.slice();if(!i)return[er,0];if(i==1){var o=new D(t[0].s+1);return o[t[0].s]=1,[o,1]}t.sort(function(B,C){return B.f-C.f}),t.push({s:-1,f:25001});var f=t[0],v=t[1],s=0,h=1,c=2;for(t[0]={s:-1,f:f.f+v.f,l:f,r:v};h!=i-1;)f=t[t[s].f<t[c].f?s++:c++],v=t[s!=h&&t[s].f<t[c].f?s++:c++],t[h++]={s:-1,f:f.f+v.f,l:f,r:v};for(var y=a[0].s,e=1;e<i;++e)a[e].s>y&&(y=a[e].s);var z=new q(y+1),w=Lr(t[h-1],z,0);if(w>r){var e=0,x=0,l=w-r,A=1<<l;for(a.sort(function(C,M){return z[M.s]-z[C.s]||C.f-M.f});e<i;++e){var T=a[e].s;if(z[T]>r)x+=A-(1<<w-z[T]),z[T]=r;else break}for(x>>>=l;x>0;){var U=a[e].s;z[U]<r?x-=1<<r-z[U]++-1:++e}for(;e>=0&&x;--e){var m=a[e].s;z[m]==r&&(--z[m],++x)}w=r}return[new D(z),w]},"hTree"),Lr=u(function(n,r,t){return n.s==-1?Math.max(Lr(n.l,r,t+1),Lr(n.r,r,t+1)):r[n.s]=t},"ln"),Wr=u(function(n){for(var r=n.length;r&&!n[--r];);for(var t=new q(++r),e=0,i=n[0],a=1,o=u(function(v){t[e++]=v},"w"),f=1;f<=r;++f)if(n[f]==i&&f!=r)++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[f]}return[t.subarray(0,e),r]},"lc"),lr=u(function(n,r){for(var t=0,e=0;e<r.length;++e)t+=n[e]*r[e];return t},"clen"),Pr=u(function(n,r,t){var e=t.length,i=Sr(r+2);n[i]=e&255,n[i+1]=e>>>8,n[i+2]=n[i]^255,n[i+3]=n[i+1]^255;for(var a=0;a<e;++a)n[i+a+4]=t[a];return(i+4+e)*8},"wfblk"),jr=u(function(n,r,t,e,i,a,o,f,v,s,h){nr(r,h++,t),++i[256];for(var c=Gr(i,15),y=c[0],z=c[1],w=Gr(a,15),x=w[0],l=w[1],A=Wr(y),T=A[0],U=A[1],m=Wr(x),B=m[0],C=m[1],M=new q(19),p=0;p<T.length;++p)M[T[p]&31]++;for(var p=0;p<B.length;++p)M[B[p]&31]++;for(var P=Gr(M,7),S=P[0],R=P[1],O=19;O>4&&!S[Ur[O-1]];--O);var k=s+5<<3,F=lr(i,ir)+lr(a,cr)+o,L=lr(i,y)+lr(a,x)+o+14+3*O+lr(M,S)+(2*M[16]+3*M[17]+7*M[18]);if(k<=F&&k<=L)return Pr(r,h,n.subarray(v,v+s));var Z,G,H,j;if(nr(r,h,1+(L<F)),h+=2,L<F){Z=X(y,z,0),G=y,H=X(x,l,0),j=x;var Q=X(S,R,0);nr(r,h,U-257),nr(r,h+5,C-1),nr(r,h+10,O-4),h+=14;for(var p=0;p<O;++p)nr(r,h+3*p,S[Ur[p]]);h+=3*O;for(var Y=[T,B],_=0;_<2;++_)for(var rr=Y[_],p=0;p<rr.length;++p){var J=rr[p]&31;nr(r,h,Q[J]),h+=S[J],J>15&&(nr(r,h,rr[p]>>>5&127),h+=rr[p]>>>12)}}else Z=Tn,G=ir,H=Dn,j=cr;for(var p=0;p<f;++p)if(e[p]>255){var J=e[p]>>>18&31;hr(r,h,Z[J+257]),h+=G[J+257],J>7&&(nr(r,h,e[p]>>>23&31),h+=yr[J]);var $=e[p]&31;hr(r,h,H[$]),h+=j[$],$>3&&(hr(r,h,e[p]>>>5&8191),h+=wr[$])}else hr(r,h,Z[e[p]]),h+=G[e[p]];return hr(r,h,Z[256]),h+G[256]},"wblk"),En=new gr([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),er=new D(0),Fn=u(function(n,r,t,e,i,a){var o=n.length,f=new D(e+o+5*(1+Math.ceil(o/7e3))+i),v=f.subarray(e,f.length-i),s=0;if(!r||o<8)for(var h=0;h<=o;h+=65535){var c=h+65535;c>=o&&(v[s>>3]=a),s=Pr(v,s+1,n.subarray(h,c))}else{for(var y=En[r-1],z=y>>>13,w=y&8191,x=(1<<t)-1,l=new q(32768),A=new q(x+1),T=Math.ceil(t/3),U=2*T,m=u(function(qr){return(n[qr]^n[qr+1]<<T^n[qr+2]<<U)&x},"hsh"),B=new gr(25e3),C=new q(288),M=new q(32),p=0,P=0,h=0,S=0,R=0,O=0;h<o;++h){var k=m(h),F=h&32767,L=A[k];if(l[F]=L,A[k]=F,R<=h){var Z=o-h;if((p>7e3||S>24576)&&Z>423){s=jr(n,v,0,B,C,M,P,S,O,h-O,s),S=p=P=0,O=h;for(var G=0;G<286;++G)C[G]=0;for(var G=0;G<30;++G)M[G]=0}var H=2,j=0,Q=w,Y=F-L&32767;if(Z>2&&k==m(h-Y))for(var _=Math.min(z,Z)-1,rr=Math.min(32767,h),J=Math.min(258,Z);Y<=rr&&--Q&&F!=L;){if(n[h+H]==n[h+H-Y]){for(var $=0;$<J&&n[h+$]==n[h+$-Y];++$);if($>H){if(H=$,j=Y,$>_)break;for(var Ir=Math.min(Y,$-2),Tr=0,G=0;G<Ir;++G){var vr=h-Y+G+32768&32767,Kn=l[vr],sn=vr-Kn+32768&32767;sn>Tr&&(Tr=sn,L=vr)}}}F=L,L=l[F],Y+=F-L+32768&32767}if(j){B[S++]=268435456|Or[H]<<18|Yr[j];var un=Or[H]&31,vn=Yr[j]&31;P+=yr[un]+wr[vn],++C[257+un],++M[vn],R=h+H,++p}else B[S++]=n[h],++C[n[h]]}}s=jr(n,v,a,B,C,M,P,S,O,h-O,s),!a&&s&7&&(s=Pr(v,s+1,er))}return d(f,0,e+Sr(s)+i)},"dflt"),In=function(){for(var n=new Int32Array(256),r=0;r<256;++r){for(var t=r,e=9;--e;)t=(t&1&&-306674912)^t>>>1;n[r]=t}return n}(),mr=u(function(){var n=-1;return{p:u(function(r){for(var t=n,e=0;e<r.length;++e)t=In[t&255^r[e]]^t>>>8;n=t},"p"),d:u(function(){return~n},"d")}},"crc"),br=u(function(){var n=1,r=0;return{p:u(function(t){for(var e=n,i=r,a=t.length|0,o=0;o!=a;){for(var f=Math.min(o+2655,a);o<f;++o)i+=e+=t[o];e=(e&65535)+15*(e>>16),i=(i&65535)+15*(i>>16)}n=e,r=i},"p"),d:u(function(){return n%=65521,r%=65521,(n&255)<<24|n>>>8<<16|(r&255)<<8|r>>>8},"d")}},"adler"),ur=u(function(n,r,t,e,i){return Fn(n,r.level==null?6:r.level,r.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):12+r.mem,t,e,!i)},"dopt"),Er=u(function(n,r){var t={};for(var e in n)t[e]=n[e];for(var e in r)t[e]=r[e];return t},"mrg"),cn=u(function(n,r,t){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 f=e[o],v=a[o];if(typeof f=="function"){r+=";"+v+"=";var s=f.toString();if(f.prototype)if(s.indexOf("[native code]")!=-1){var h=s.indexOf(" ",8)+1;r+=s.slice(h,s.indexOf("(",h))}else{r+=s;for(var c in f.prototype)r+=";"+v+".prototype."+c+"="+f.prototype[c].toString()}else r+=s}else t[v]=f}return[r,t]},"wcln"),Br=[],Vn=u(function(n){var r=[];for(var t in n)n[t].buffer&&r.push((n[t]=new n[t].constructor(n[t])).buffer);return r},"cbfs"),Bn=u(function(n,r,t,e){var i;if(!Br[t]){for(var a="",o={},f=n.length-1,v=0;v<f;++v)i=cn(n[v],a,o),a=i[0],o=i[1];Br[t]=cn(n[f],a,o)}var s=Er({},Br[t][1]);return Qn(Br[t][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+r.toString()+"}",t,s,Vn(s),e)},"wrkr"),xr=u(function(){return[D,q,gr,yr,wr,Ur,dr,Mn,Un,Sn,Dr,Cn,X,Zr,V,kr,Sr,d,g,Cr,Fr,fr,_r]},"bInflt"),zr=u(function(){return[D,q,gr,yr,wr,Ur,Or,Yr,Tn,ir,Dn,cr,Dr,En,er,X,nr,hr,Gr,Lr,Wr,lr,Pr,jr,Sr,d,Fn,ur,$r,fr]},"bDflt"),Zn=u(function(){return[rn,tn,I,mr,In]},"gze"),kn=u(function(){return[nn,Ln]},"guze"),Gn=u(function(){return[en,I,br]},"zle"),On=u(function(){return[Pn]},"zule"),fr=u(function(n){return postMessage(n,[n.buffer])},"pbf"),_r=u(function(n){return n&&n.size&&new D(n.size)},"gu8"),Ar=u(function(n,r,t,e,i,a){var o=Bn(t,e,i,function(f,v){o.terminate(),a(f,v)});return o.postMessage([n,r],r.consume?[n.buffer]:[]),function(){o.terminate()}},"cbify"),b=u(function(n){return n.ondata=function(r,t){return postMessage([r,t],[r.buffer])},function(r){return n.push(r.data[0],r.data[1])}},"astrm"),Mr=u(function(n,r,t,e,i){var a,o=Bn(n,e,i,function(f,v){f?(o.terminate(),r.ondata.call(r,f)):(v[1]&&o.terminate(),r.ondata.call(r,f,v[0],v[1]))});o.postMessage(t),r.push=function(f,v){r.ondata||g(5),a&&r.ondata(g(4,0,1),null,!!v),o.postMessage([f,a=v],[f.buffer])},r.terminate=function(){o.terminate()}},"astrmify"),W=u(function(n,r){return n[r]|n[r+1]<<8},"b2"),N=u(function(n,r){return(n[r]|n[r+1]<<8|n[r+2]<<16|n[r+3]<<24)>>>0},"b4"),Hr=u(function(n,r){return N(n,r)+N(n,r+4)*4294967296},"b8"),I=u(function(n,r,t){for(;t;++r)n[r]=t,t>>>=8},"wbytes"),rn=u(function(n,r){var t=r.filename;if(n[0]=31,n[1]=139,n[2]=8,n[8]=r.level<2?4:r.level==9?2:0,n[9]=3,r.mtime!=0&&I(n,4,Math.floor(new Date(r.mtime||Date.now())/1e3)),t){n[3]=8;for(var e=0;e<=t.length;++e)n[e+10]=t.charCodeAt(e)}},"gzh"),nn=u(function(n){(n[0]!=31||n[1]!=139||n[2]!=8)&&g(6,"invalid gzip data");var r=n[3],t=10;r&4&&(t+=n[10]|(n[11]<<8)+2);for(var e=(r>>3&1)+(r>>4&1);e>0;e-=!n[t++]);return t+(r&2)},"gzs"),Ln=u(function(n){var r=n.length;return(n[r-4]|n[r-3]<<8|n[r-2]<<16|n[r-1]<<24)>>>0},"gzl"),tn=u(function(n){return 10+(n.filename&&n.filename.length+1||0)},"gzhl"),en=u(function(n,r){var t=r.level,e=t==0?0:t<6?1:t==9?3:2;n[0]=120,n[1]=e<<6|(e?32-2*e:1)},"zlh"),Pn=u(function(n){((n[0]&15)!=8||n[0]>>>4>7||(n[0]<<8|n[1])%31)&&g(6,"invalid zlib data"),n[1]&32&&g(6,"invalid zlib data: preset dictionaries not supported")},"zlv");function an(n,r){return!r&&typeof n=="function"&&(r=n,n={}),this.ondata=r,n}u(an,"AsyncCmpStrm");var ar=function(){function n(r,t){!t&&typeof r=="function"&&(t=r,r={}),this.ondata=t,this.o=r||{}}return u(n,"Deflate"),n.prototype.p=function(r,t){this.ondata(ur(r,this.o,0,0,!t),t)},n.prototype.push=function(r,t){this.ondata||g(5),this.d&&g(4),this.d=t,this.p(r,t||!1)},n}();var Xn=function(){function n(r,t){Mr([zr,function(){return[b,ar]}],this,an.call(this,r,t),function(e){var i=new ar(e.data);onmessage=b(i)},6)}return u(n,"AsyncDeflate"),n}();function dn(n,r,t){return t||(t=r,r={}),typeof t!="function"&&g(7),Ar(n,r,[zr],function(e){return fr($r(e.data[0],e.data[1]))},0,t)}u(dn,"deflate");function $r(n,r){return ur(n,r||{},0,0)}u($r,"deflateSync");var K=function(){function n(r){this.s={},this.p=new D(0),this.ondata=r}return u(n,"Inflate"),n.prototype.e=function(r){this.ondata||g(5),this.d&&g(4);var t=this.p.length,e=new D(t+r.length);e.set(this.p),e.set(r,t),this.p=e},n.prototype.c=function(r){this.d=this.s.i=r||!1;var t=this.s.b,e=Cr(this.p,this.o,this.s);this.ondata(d(e,t,this.s.b),this.d),this.o=d(e,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(r,t){this.e(r),this.c(t)},n}();var Nn=function(){function n(r){this.ondata=r,Mr([xr,function(){return[b,K]}],this,0,function(){var t=new K;onmessage=b(t)},7)}return u(n,"AsyncInflate"),n}();function Rn(n,r,t){return t||(t=r,r={}),typeof t!="function"&&g(7),Ar(n,r,[xr],function(e){return fr(Fr(e.data[0],_r(e.data[1])))},1,t)}u(Rn,"inflate");function Fr(n,r){return Cr(n,r)}u(Fr,"inflateSync");var pn=function(){function n(r,t){this.c=mr(),this.l=0,this.v=1,ar.call(this,r,t)}return u(n,"Gzip"),n.prototype.push=function(r,t){ar.prototype.push.call(this,r,t)},n.prototype.p=function(r,t){this.c.p(r),this.l+=r.length;var e=ur(r,this.o,this.v&&tn(this.o),t&&8,!t);this.v&&(rn(e,this.o),this.v=0),t&&(I(e,e.length-8,this.c.d()),I(e,e.length-4,this.l)),this.ondata(e,t)},n}();var ot=function(){function n(r,t){Mr([zr,Zn,function(){return[b,ar,pn]}],this,an.call(this,r,t),function(e){var i=new pn(e.data);onmessage=b(i)},8)}return u(n,"AsyncGzip"),n}();function ft(n,r,t){return t||(t=r,r={}),typeof t!="function"&&g(7),Ar(n,r,[zr,Zn,function(){return[gn]}],function(e){return fr(gn(e.data[0],e.data[1]))},2,t)}u(ft,"gzip");function gn(n,r){r||(r={});var t=mr(),e=n.length;t.p(n);var i=ur(n,r,tn(r),8),a=i.length;return rn(i,r),I(i,a-8,t.d()),I(i,a-4,e),i}u(gn,"gzipSync");var Jr=function(){function n(r){this.v=1,K.call(this,r)}return u(n,"Gunzip"),n.prototype.push=function(r,t){if(K.prototype.e.call(this,r),this.v){var e=this.p.length>3?nn(this.p):4;if(e>=this.p.length&&!t)return;this.p=this.p.subarray(e),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}();var bn=function(){function n(r){this.ondata=r,Mr([xr,kn,function(){return[b,K,Jr]}],this,0,function(){var t=new Jr;onmessage=b(t)},9)}return u(n,"AsyncGunzip"),n}();function _n(n,r,t){return t||(t=r,r={}),typeof t!="function"&&g(7),Ar(n,r,[xr,kn,function(){return[Kr]}],function(e){return fr(Kr(e.data[0]))},3,t)}u(_n,"gunzip");function Kr(n,r){return Cr(n.subarray(nn(n),-8),r||new D(Ln(n)))}u(Kr,"gunzipSync");var yn=function(){function n(r,t){this.c=br(),this.v=1,ar.call(this,r,t)}return u(n,"Zlib"),n.prototype.push=function(r,t){ar.prototype.push.call(this,r,t)},n.prototype.p=function(r,t){this.c.p(r);var e=ur(r,this.o,this.v&&2,t&&4,!t);this.v&&(en(e,this.o),this.v=0),t&&I(e,e.length-4,this.c.d()),this.ondata(e,t)},n}();var st=function(){function n(r,t){Mr([zr,Gn,function(){return[b,ar,yn]}],this,an.call(this,r,t),function(e){var i=new yn(e.data);onmessage=b(i)},10)}return u(n,"AsyncZlib"),n}();function ut(n,r,t){return t||(t=r,r={}),typeof t!="function"&&g(7),Ar(n,r,[zr,Gn,function(){return[wn]}],function(e){return fr(wn(e.data[0],e.data[1]))},4,t)}u(ut,"zlib");function wn(n,r){r||(r={});var t=br();t.p(n);var e=ur(n,r,2,4);return en(e,r),I(e,e.length-4,t.d()),e}u(wn,"zlibSync");var Qr=function(){function n(r){this.v=1,K.call(this,r)}return u(n,"Unzlib"),n.prototype.push=function(r,t){if(K.prototype.e.call(this,r),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}();var rt=function(){function n(r){this.ondata=r,Mr([xr,On,function(){return[b,K,Qr]}],this,0,function(){var t=new Qr;onmessage=b(t)},11)}return u(n,"AsyncUnzlib"),n}();function nt(n,r,t){return t||(t=r,r={}),typeof t!="function"&&g(7),Ar(n,r,[xr,On,function(){return[Vr]}],function(e){return fr(Vr(e.data[0],_r(e.data[1])))},5,t)}u(nt,"unzlib");function Vr(n,r){return Cr((Pn(n),n.subarray(2,-4)),r)}u(Vr,"unzlibSync");var tt=function(){function n(r){this.G=Jr,this.I=K,this.Z=Qr,this.ondata=r}return u(n,"Decompress"),n.prototype.push=function(r,t){if(this.ondata||g(5),this.s)this.s.push(r,t);else{if(this.p&&this.p.length){var e=new D(this.p.length+r.length);e.set(this.p),e.set(r,this.p.length)}else this.p=r;if(this.p.length>2){var i=this,a=u(function(){i.ondata.apply(i,arguments)},"cb");this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(a):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(a):new this.Z(a),this.s.push(this.p,t),this.p=null}}},n}();var vt=function(){function n(r){this.G=bn,this.I=Nn,this.Z=rt,this.ondata=r}return u(n,"AsyncDecompress"),n.prototype.push=function(r,t){tt.prototype.push.call(this,r,t)},n}();function ht(n,r,t){return t||(t=r,r={}),typeof t!="function"&&g(7),n[0]==31&&n[1]==139&&n[2]==8?_n(n,r,t):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?Rn(n,r,t):nt(n,r,t)}u(ht,"decompress");function lt(n,r){return n[0]==31&&n[1]==139&&n[2]==8?Kr(n,r):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?Fr(n,r):Vr(n,r)}u(lt,"decompressSync");var on=u(function(n,r,t,e){for(var i in n){var a=n[i],o=r+i,f=e;Array.isArray(a)&&(f=Er(e,a[1]),a=a[0]),a instanceof D?t[o]=[a,f]:(t[o+="/"]=[new D(0),f],on(a,o,t,e))}},"fltn"),mn=typeof TextEncoder<"u"&&new TextEncoder,Xr=typeof TextDecoder<"u"&&new TextDecoder,$n=0;try{Xr.decode(er,{stream:!0}),$n=1}catch{}var qn=u(function(n){for(var r="",t=0;;){var e=n[t++],i=(e>127)+(e>223)+(e>239);if(t+i>n.length)return[r,d(n,t-1)];i?i==3?(e=((e&15)<<18|(n[t++]&63)<<12|(n[t++]&63)<<6|n[t++]&63)-65536,r+=String.fromCharCode(55296|e>>10,56320|e&1023)):i&1?r+=String.fromCharCode((e&31)<<6|n[t++]&63):r+=String.fromCharCode((e&15)<<12|(n[t++]&63)<<6|n[t++]&63):r+=String.fromCharCode(e)}},"dutf8"),ct=function(){function n(r){this.ondata=r,$n?this.t=new TextDecoder:this.p=er}return u(n,"DecodeUTF8"),n.prototype.push=function(r,t){if(this.ondata||g(5),t=!!t,this.t){this.ondata(this.t.decode(r,{stream:!0}),t),t&&(this.t.decode().length&&g(8),this.t=null);return}this.p||g(4);var e=new D(this.p.length+r.length);e.set(this.p),e.set(r,this.p.length);var i=qn(e),a=i[0],o=i[1];t?(o.length&&g(8),this.p=null):this.p=o,this.ondata(a,t)},n}();var pt=function(){function n(r){this.ondata=r}return u(n,"EncodeUTF8"),n.prototype.push=function(r,t){this.ondata||g(5),this.d&&g(4),this.ondata(sr(r),this.d=t||!1)},n}();function sr(n,r){if(r){for(var t=new D(n.length),e=0;e<n.length;++e)t[e]=n.charCodeAt(e);return t}if(mn)return mn.encode(n);for(var i=n.length,a=new D(n.length+(n.length>>1)),o=0,f=u(function(h){a[o++]=h},"w"),e=0;e<i;++e){if(o+5>a.length){var v=new D(o+8+(i-e<<1));v.set(a),a=v}var s=n.charCodeAt(e);s<128||r?f(s):s<2048?(f(192|s>>6),f(128|s&63)):s>55295&&s<57344?(s=65536+(s&1047552)|n.charCodeAt(++e)&1023,f(240|s>>18),f(128|s>>12&63),f(128|s>>6&63),f(128|s&63)):(f(224|s>>12),f(128|s>>6&63),f(128|s&63))}return d(a,0,o)}u(sr,"strToU8");function Hn(n,r){if(r){for(var t="",e=0;e<n.length;e+=16384)t+=String.fromCharCode.apply(null,n.subarray(e,e+16384));return t}else{if(Xr)return Xr.decode(n);var i=qn(n),a=i[0],o=i[1];return o.length&&g(8),a}}u(Hn,"strFromU8");var Yn=u(function(n){return n==1?3:n<6?2:n==9?1:0},"dbf"),Wn=u(function(n,r){return r+30+W(n,r+26)+W(n,r+28)},"slzh"),jn=u(function(n,r,t){var e=W(n,r+28),i=Hn(n.subarray(r+46,r+46+e),!(W(n,r+8)&2048)),a=r+46+e,o=N(n,r+20),f=t&&o==4294967295?Jn(n,a):[o,N(n,r+24),N(n,r+42)],v=f[0],s=f[1],h=f[2];return[W(n,r+10),v,s,i,a+W(n,r+30)+W(n,r+32),h]},"zh"),Jn=u(function(n,r){for(;W(n,r)!=1;r+=4+W(n,r+2));return[Hr(n,r+12),Hr(n,r+4),Hr(n,r+20)]},"z64e"),or=u(function(n){var r=0;if(n)for(var t in n){var e=n[t].length;e>65535&&g(9),r+=e+4}return r},"exfl"),pr=u(function(n,r,t,e,i,a,o,f){var v=e.length,s=t.extra,h=f&&f.length,c=or(s);I(n,r,o!=null?33639248:67324752),r+=4,o!=null&&(n[r++]=20,n[r++]=t.os),n[r]=20,r+=2,n[r++]=t.flag<<1|(a==null&&8),n[r++]=i&&8,n[r++]=t.compression&255,n[r++]=t.compression>>8;var y=new Date(t.mtime==null?Date.now():t.mtime),z=y.getFullYear()-1980;if((z<0||z>119)&&g(10),I(n,r,z<<25|y.getMonth()+1<<21|y.getDate()<<16|y.getHours()<<11|y.getMinutes()<<5|y.getSeconds()>>>1),r+=4,a!=null&&(I(n,r,t.crc),I(n,r+4,a),I(n,r+8,t.size)),I(n,r+12,v),I(n,r+14,c),r+=16,o!=null&&(I(n,r,h),I(n,r+6,t.attrs),I(n,r+10,o),r+=14),n.set(e,r),r+=v,c)for(var w in s){var x=s[w],l=x.length;I(n,r,+w),I(n,r+2,l),n.set(x,r+4),r+=4+l}return h&&(n.set(f,r),r+=h),r},"wzh"),fn=u(function(n,r,t,e,i){I(n,r,101010256),I(n,r+8,t),I(n,r+10,t),I(n,r+12,e),I(n,r+16,i)},"wzf"),Nr=function(){function n(r){this.filename=r,this.c=mr(),this.size=0,this.compression=0}return u(n,"ZipPassThrough"),n.prototype.process=function(r,t){this.ondata(null,r,t)},n.prototype.push=function(r,t){this.ondata||g(5),this.c.p(r),this.size+=r.length,t&&(this.crc=this.c.d()),this.process(r,t||!1)},n}();var gt=function(){function n(r,t){var e=this;t||(t={}),Nr.call(this,r),this.d=new ar(t,function(i,a){e.ondata(null,i,a)}),this.compression=8,this.flag=Yn(t.level)}return u(n,"ZipDeflate"),n.prototype.process=function(r,t){try{this.d.push(r,t)}catch(e){this.ondata(e,null,t)}},n.prototype.push=function(r,t){Nr.prototype.push.call(this,r,t)},n}();var yt=function(){function n(r,t){var e=this;t||(t={}),Nr.call(this,r),this.d=new Xn(t,function(i,a,o){e.ondata(i,a,o)}),this.compression=8,this.flag=Yn(t.level),this.terminate=this.d.terminate}return u(n,"AsyncZipDeflate"),n.prototype.process=function(r,t){this.d.push(r,t)},n.prototype.push=function(r,t){Nr.prototype.push.call(this,r,t)},n}();var wt=function(){function n(r){this.ondata=r,this.u=[],this.d=1}return u(n,"Zip"),n.prototype.add=function(r){var t=this;if(this.ondata||g(5),this.d&2)this.ondata(g(4+(this.d&1)*8,0,1),null,!1);else{var e=sr(r.filename),i=e.length,a=r.comment,o=a&&sr(a),f=i!=r.filename.length||o&&a.length!=o.length,v=i+or(r.extra)+30;i>65535&&this.ondata(g(11,0,1),null,!1);var s=new D(v);pr(s,0,r,e,f);var h=[s],c=u(function(){for(var l=0,A=h;l<A.length;l++){var T=A[l];t.ondata(null,T,!1)}h=[]},"pAll_1"),y=this.d;this.d=0;var z=this.u.length,w=Er(r,{f:e,u:f,o,t:u(function(){r.terminate&&r.terminate()},"t"),r:u(function(){if(c(),y){var l=t.u[z+1];l?l.r():t.d=1}y=1},"r")}),x=0;r.ondata=function(l,A,T){if(l)t.ondata(l,A,T),t.terminate();else if(x+=A.length,h.push(A),T){var U=new D(16);I(U,0,134695760),I(U,4,r.crc),I(U,8,x),I(U,12,r.size),h.push(U),w.c=x,w.b=v+x+16,w.crc=r.crc,w.size=r.size,y&&w.r(),y=1}else y&&c()},this.u.push(w)}},n.prototype.end=function(){var r=this;if(this.d&2){this.ondata(g(4+(this.d&1)*8,0,1),null,!0);return}this.d?this.e():this.u.push({r:u(function(){r.d&1&&(r.u.splice(-1,1),r.e())},"r"),t:u(function(){},"t")}),this.d=3},n.prototype.e=function(){for(var r=0,t=0,e=0,i=0,a=this.u;i<a.length;i++){var o=a[i];e+=46+o.f.length+or(o.extra)+(o.o?o.o.length:0)}for(var f=new D(e+22),v=0,s=this.u;v<s.length;v++){var o=s[v];pr(f,r,o,o.f,o.u,o.c,t,o.o),r+=46+o.f.length+or(o.extra)+(o.o?o.o.length:0),t+=o.b}fn(f,r,this.u.length,e,t),this.ondata(null,f,!0),this.d=2},n.prototype.terminate=function(){for(var r=0,t=this.u;r<t.length;r++){var e=t[r];e.t()}this.d=2},n}();function mt(n,r,t){t||(t=r,r={}),typeof t!="function"&&g(7);var e={};on(n,"",e,r);var i=Object.keys(e),a=i.length,o=0,f=0,v=a,s=new Array(a),h=[],c=u(function(){for(var l=0;l<h.length;++l)h[l]()},"tAll"),y=u(function(l,A){Rr(function(){t(l,A)})},"cbd");Rr(function(){y=t});var z=u(function(){var l=new D(f+22),A=o,T=f-o;f=0;for(var U=0;U<v;++U){var m=s[U];try{var B=m.c.length;pr(l,f,m,m.f,m.u,B);var C=30+m.f.length+or(m.extra),M=f+C;l.set(m.c,M),pr(l,o,m,m.f,m.u,B,f,m.m),o+=16+C+(m.m?m.m.length:0),f=M+B}catch(p){return y(p,null)}}fn(l,o,s.length,T,A),y(null,l)},"cbf");a||z();for(var w=u(function(l){var A=i[l],T=e[A],U=T[0],m=T[1],B=mr(),C=U.length;B.p(U);var M=sr(A),p=M.length,P=m.comment,S=P&&sr(P),R=S&&S.length,O=or(m.extra),k=m.level==0?0:8,F=u(function(L,Z){if(L)c(),y(L,null);else{var G=Z.length;s[l]=Er(m,{size:C,crc:B.d(),c:Z,f:M,m:S,u:p!=A.length||S&&P.length!=R,compression:k}),o+=30+p+O+G,f+=76+2*(p+O)+(R||0)+G,--a||z()}},"cbl");if(p>65535&&F(g(11,0,1),null),!k)F(null,U);else if(C<16e4)try{F(null,$r(U,m))}catch(L){F(L,null)}else h.push(dn(U,m,F))},"_loop_1"),x=0;x<v;++x)w(x);return c}u(mt,"zip");function xt(n,r){r||(r={});var t={},e=[];on(n,"",t,r);var i=0,a=0;for(var o in t){var f=t[o],v=f[0],s=f[1],h=s.level==0?0:8,c=sr(o),y=c.length,z=s.comment,w=z&&sr(z),x=w&&w.length,l=or(s.extra);y>65535&&g(11);var A=h?$r(v,s):v,T=A.length,U=mr();U.p(v),e.push(Er(s,{size:v.length,crc:U.d(),c:A,f:c,m:w,u:y!=o.length||w&&z.length!=x,o:i,compression:h})),i+=30+y+l+T,a+=76+2*(y+l)+(x||0)+T}for(var m=new D(a+22),B=i,C=a-i,M=0;M<e.length;++M){var c=e[M];pr(m,c.o,c,c.f,c.u,c.c.length);var p=30+c.f.length+or(c.extra);m.set(c.c,c.o+p),pr(m,i,c,c.f,c.u,c.c.length,c.o,c.m),i+=16+p+(c.m?c.m.length:0)}return fn(m,i,e.length,C,B),m}u(xt,"zipSync");var et=function(){function n(){}return u(n,"UnzipPassThrough"),n.prototype.push=function(r,t){this.ondata(null,r,t)},n.compression=0,n}();var zt=function(){function n(){var r=this;this.i=new K(function(t,e){r.ondata(null,t,e)})}return u(n,"UnzipInflate"),n.prototype.push=function(r,t){try{this.i.push(r,t)}catch(e){this.ondata(e,null,t)}},n.compression=8,n}();var At=function(){function n(r,t){var e=this;t<32e4?this.i=new K(function(i,a){e.ondata(null,i,a)}):(this.i=new Nn(function(i,a,o){e.ondata(i,a,o)}),this.terminate=this.i.terminate)}return u(n,"AsyncUnzipInflate"),n.prototype.push=function(r,t){this.i.terminate&&(r=d(r,0)),this.i.push(r,t)},n.compression=8,n}();var Mt=function(){function n(r){this.onfile=r,this.k=[],this.o={0:et},this.p=er}return u(n,"Unzip"),n.prototype.push=function(r,t){var e=this;if(this.onfile||g(5),this.p||g(4),this.c>0){var i=Math.min(this.c,r.length),a=r.subarray(0,i);if(this.c-=i,this.d?this.d.push(a,!this.c):this.k[0].push(a),r=r.subarray(i),r.length)return this.push(r,t)}else{var o=0,f=0,v=void 0,s=void 0;this.p.length?r.length?(s=new D(this.p.length+r.length),s.set(this.p),s.set(r,this.p.length)):s=this.p:s=r;for(var h=s.length,c=this.c,y=c&&this.d,z=u(function(){var A,T=N(s,f);if(T==67324752){o=1,v=f,w.d=null,w.c=0;var U=W(s,f+6),m=W(s,f+8),B=U&2048,C=U&8,M=W(s,f+26),p=W(s,f+28);if(h>f+30+M+p){var P=[];w.k.unshift(P),o=2;var S=N(s,f+18),R=N(s,f+22),O=Hn(s.subarray(f+30,f+=30+M),!B);S==4294967295?(A=C?[-2]:Jn(s,f),S=A[0],R=A[1]):C&&(S=-1),f+=p,w.c=S;var k,F={name:O,compression:m,start:u(function(){if(F.ondata||g(5),!S)F.ondata(null,er,!0);else{var L=e.o[m];L||F.ondata(g(14,"unknown compression type "+m,1),null,!1),k=S<0?new L(O):new L(O,S,R),k.ondata=function(j,Q,Y){F.ondata(j,Q,Y)};for(var Z=0,G=P;Z<G.length;Z++){var H=G[Z];k.push(H,!1)}e.k[0]==P&&e.c?e.d=k:k.push(er,!0)}},"start"),terminate:u(function(){k&&k.terminate&&k.terminate()},"terminate")};S>=0&&(F.size=S,F.originalSize=R),w.onfile(F)}return"break"}else if(c){if(T==134695760)return v=f+=12+(c==-2&&8),o=3,w.c=0,"break";if(T==33639248)return v=f-=4,o=3,w.c=0,"break"}},"_loop_2"),w=this;f<h-4;++f){var x=z();if(x==="break")break}if(this.p=er,c<0){var l=o?s.subarray(0,v-12-(c==-2&&8)-(N(s,v-16)==134695760&&4)):s.subarray(0,f);y?y.push(l,!!o):this.k[+(o==2)].push(l)}if(o&2)return this.push(s.subarray(f),t);this.p=s.subarray(f)}t&&(this.c&&g(13),this.p=null)},n.prototype.register=function(r){this.o[r.compression]=r},n}();var Rr=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(n){n()};function Tt(n,r,t){t||(t=r,r={}),typeof t!="function"&&g(7);var e=[],i=u(function(){for(var x=0;x<e.length;++x)e[x]()},"tAll"),a={},o=u(function(x,l){Rr(function(){t(x,l)})},"cbd");Rr(function(){o=t});for(var f=n.length-22;N(n,f)!=101010256;--f)if(!f||n.length-f>65558)return o(g(13,0,1),null),i;var v=W(n,f+8);if(v){var s=v,h=N(n,f+16),c=h==4294967295;if(c){if(f=N(n,f-12),N(n,f)!=101075792)return o(g(13,0,1),null),i;s=v=N(n,f+32),h=N(n,f+48)}for(var y=r&&r.filter,z=u(function(x){var l=jn(n,h,c),A=l[0],T=l[1],U=l[2],m=l[3],B=l[4],C=l[5],M=Wn(n,C);h=B;var p=u(function(S,R){S?(i(),o(S,null)):(R&&(a[m]=R),--v||o(null,a))},"cbl");if(!y||y({name:m,size:T,originalSize:U,compression:A}))if(!A)p(null,d(n,M,M+T));else if(A==8){var P=n.subarray(M,M+T);if(T<32e4)try{p(null,Fr(P,new D(U)))}catch(S){p(S,null)}else e.push(Rn(P,{size:U},p))}else p(g(14,"unknown compression type "+A,1),null);else p(null,null)},"_loop_3"),w=0;w<s;++w)z(w)}else o(null,{});return i}u(Tt,"unzip");function Ut(n,r){for(var t={},e=n.length-22;N(n,e)!=101010256;--e)(!e||n.length-e>65558)&&g(13);var i=W(n,e+8);if(!i)return{};var a=N(n,e+16),o=a==4294967295;o&&(e=N(n,e-12),N(n,e)!=101075792&&g(13),i=N(n,e+32),a=N(n,e+48));for(var f=r&&r.filter,v=0;v<i;++v){var s=jn(n,a,o),h=s[0],c=s[1],y=s[2],z=s[3],w=s[4],x=s[5],l=Wn(n,x);a=w,(!f||f({name:z,size:c,originalSize:y,compression:h}))&&(h?h==8?t[z]=Fr(n.subarray(l,l+c),new D(y)):g(14,"unknown compression type "+h):t[z]=d(n,l,l+c))}return t}u(Ut,"unzipSync");export{ot as AsyncCompress,vt as AsyncDecompress,Xn as AsyncDeflate,bn as AsyncGunzip,ot as AsyncGzip,Nn as AsyncInflate,At as AsyncUnzipInflate,rt as AsyncUnzlib,yt as AsyncZipDeflate,st as AsyncZlib,pn as Compress,ct as DecodeUTF8,tt as Decompress,ar as Deflate,pt as EncodeUTF8,at as FlateErrorCode,Jr as Gunzip,pn as Gzip,K as Inflate,Mt as Unzip,zt as UnzipInflate,et as UnzipPassThrough,Qr as Unzlib,wt as Zip,gt as ZipDeflate,Nr as ZipPassThrough,yn as Zlib,ft as compress,gn as compressSync,ht as decompress,lt as decompressSync,dn as deflate,$r as deflateSync,_n as gunzip,Kr as gunzipSync,ft as gzip,gn as gzipSync,Rn as inflate,Fr as inflateSync,Hn as strFromU8,sr as strToU8,Tt as unzip,Ut as unzipSync,nt as unzlib,Vr as unzlibSync,mt as zip,xt as zipSync,ut as zlib,wn as zlibSync};
@@ -0,0 +1 @@
1
+ var i=Object.create;var f=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var l=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var h=a=>{throw TypeError(a)};var n=(a,b,c)=>b in a?f(a,b,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[b]=c;var s=(a,b)=>f(a,"name",{value:b,configurable:!0});var o=(a,b)=>()=>(a&&(b=a(a=0)),b);var t=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var p=(a,b,c,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let e of k(b))!m.call(a,e)&&e!==c&&f(a,e,{get:()=>b[e],enumerable:!(d=j(b,e))||d.enumerable});return a};var u=(a,b,c)=>(c=a!=null?i(l(a)):{},p(b||!a||!a.__esModule?f(c,"default",{value:a,enumerable:!0}):c,a));var v=(a,b,c)=>n(a,typeof b!="symbol"?b+"":b,c),g=(a,b,c)=>b.has(a)||h("Cannot "+c);var w=(a,b,c)=>(g(a,b,"read from private field"),c?c.call(a):b.get(a)),x=(a,b,c)=>b.has(a)?h("Cannot add the same private member more than once"):b instanceof WeakSet?b.add(a):b.set(a,c),y=(a,b,c,d)=>(g(a,b,"write to private field"),d?d.call(a,c):b.set(a,c),c),z=(a,b,c)=>(g(a,b,"access private method"),c);var C,r=o(()=>{C={env:{npm_package_version:"5.41.10"}}});export{s as a,t as b,u as c,v as d,w as e,x as f,y as g,z as h,r as i,C as j};
package/dist/index.d.ts CHANGED
@@ -452,7 +452,7 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/index.r
452
452
  export type { ThingsOption } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/MapView.types';
453
453
  export type { IFlatLabels } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/public/api/FlatLabels';
454
454
  export type { IFloatingLabels } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/public/api/FloatingLabels';
455
- export type { TBlueDotPositionUpdate, TBlueDotStateChange, TJourneyOptions, TMapViewOptions, TCreateMarkerOptions, TGeolocationObject, TPathOptions, TFlatLabelOptions, TAddFloatingLabelOptions, TAddFlatLabelOptions, TLabelAllLocationCommonOptions, TFloatingLabelAllLocationsOptions, TFlatLabelAllLocationsOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TEnableBlueDotOptions, TFloatingLabelAppearance, TFlatLabelAppearance, CAMERA_EVENT_PAYLOAD, TMapClickEvent, TGetPolygonsAtCoordinateOptions, TShowVenueOptions, TAnimationOptions, TCreateTooltipOptions, } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/MapView.types';
455
+ export type { TBlueDotPositionUpdate, TBlueDotStateChange, TJourneyOptions, TMapViewOptions, TCreateMarkerOptions, TGeolocationObject, TPathOptions, TFlatLabelOptions, TAddFloatingLabelOptions, TAddFlatLabelOptions, TLabelAllLocationCommonOptions, TFloatingLabelAllLocationsOptions, TFlatLabelAllLocationsOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TEnableBlueDotOptions, TFloatingLabelAppearance, TFlatLabelAppearance, CAMERA_EVENT_PAYLOAD, TMapClickEvent, TGetPolygonsAtCoordinateOptions, TShowVenueOptions, TAnimationOptions, TCreateTooltipOptions, TShowWatermarkOptions, } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/MapView.types';
456
456
  export { BEARING_TYPE, ACTION_TYPE } from '@mappedin/react-native-sdk/sdks/packages/navigator';
457
457
  export type { IDirectionsResult, E_MESSAGES as E_GET_DIRECTIONS_MESSAGES } from '@mappedin/react-native-sdk/sdks/packages/navigator';
458
458
  export type { TGetVenueBundleOptions, TGetVenueOptions, TGetVenueMakerOptions, TMappedinDirective, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, TDirectionToOptions, } from '@mappedin/react-native-sdk/sdks/packages/get-venue';
@@ -1348,6 +1348,17 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/MapView
1348
1348
  * @beta
1349
1349
  */
1350
1350
  mapRenderStrategy?: MAP_RENDER_MODE;
1351
+ /**
1352
+ * Use the current polygon objects directly rather than what is stored when rendering the map in CMS.
1353
+ *
1354
+ * Important Considerations:
1355
+ * - When this flag is set to true, the application will use live polygon data, which might not include certain enhancements such as 3D text annotations or automatically generated infill patterns. These features typically depend on the CMS's Render capabilities.
1356
+ * - Opting for live polygons means the system will not utilize the pre-processed optimized polygon data that is available through the CMS's rendering pipeline.
1357
+ * - This option is useful for applications requiring the most up-to-date representation of polygon data but may result in a less detailed visual representation due to the absence of certain rendered features.
1358
+ *
1359
+ * Use this option with caution, understanding the trade-offs between real-time update and visual detail.
1360
+ */
1361
+ useLivePolygons?: boolean;
1351
1362
  };
1352
1363
  /**
1353
1364
  * @experimental
@@ -1902,6 +1913,57 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/MapView
1902
1913
  update: (position: TGeolocationObject) => void;
1903
1914
  throwError: (err: any) => void;
1904
1915
  }
1916
+ export type TWatermarkPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center' | 'top' | 'bottom' | 'left' | 'right';
1917
+ export type TShowWatermarkOptions = {
1918
+ /**
1919
+ * Padding in pixels. Can be a number or an object with top, right, bottom, and left properties.
1920
+ * @default 16
1921
+ * @example
1922
+ * ```ts
1923
+ * // Watermark with 20 pixels of padding on all sides
1924
+ * __showWatermark({
1925
+ * padding: 20,
1926
+ * });
1927
+ * ```
1928
+ * @example
1929
+ * ```ts
1930
+ * // Watermark with unique top, right, bottom, left padding
1931
+ * __showWatermark({
1932
+ * padding: {
1933
+ * top: 10,
1934
+ * right: 20,
1935
+ * bottom: 30,
1936
+ * left: 40,
1937
+ * },
1938
+ * });
1939
+ * ```
1940
+ */
1941
+ padding?: number | {
1942
+ top?: number;
1943
+ right?: number;
1944
+ bottom?: number;
1945
+ left?: number;
1946
+ };
1947
+ /**
1948
+ * Position of the watermark on the screen.
1949
+ * @default 'bottom-left'
1950
+ */
1951
+ position?: TWatermarkPosition;
1952
+ /**
1953
+ * Show only the Mappedin icon without text.
1954
+ * @default false
1955
+ */
1956
+ iconOnly?: boolean;
1957
+ /**
1958
+ * Scale of the watermark between 0.5 and 1.5.
1959
+ * @default 1
1960
+ */
1961
+ scale?: number;
1962
+ /**
1963
+ * Callback when the watermark is clicked.
1964
+ */
1965
+ onClick?: () => void;
1966
+ };
1905
1967
  }
1906
1968
 
1907
1969
  declare module '@mappedin/react-native-sdk/sdks/packages/get-venue' {
@@ -3583,6 +3645,7 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private
3583
3645
  padding?: TPadding;
3584
3646
  points?: any[];
3585
3647
  boundingBox?: any;
3648
+ doNotEmitFocusOnEvent?: boolean;
3586
3649
  callback: () => void;
3587
3650
  cancelledCallback?: () => void;
3588
3651
  };
@@ -4524,7 +4587,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
4524
4587
  declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal/Mappedin.FloatingLabel' {
4525
4588
  import './Mappedin.FloatingLabel.scss';
4526
4589
  import { BaseCollider } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal';
4527
- import { TDrawFn } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal/shave-text';
4590
+ import type { TDrawFn } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal/shave-text';
4528
4591
  import type { MappedinPolygon } from '@mappedin/react-native-sdk/sdks/packages/get-venue';
4529
4592
  import type { ICore, ICollider, TColliderStrategy, TColliderPosition } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal';
4530
4593
  type TStyle = {
@@ -7303,7 +7366,7 @@ declare module '@mappedin/react-native-sdk/sdks/cms/src' {
7303
7366
  import { MapView } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/public/MapView';
7304
7367
  import type { Mappedin, MappedinMap, TGetVenueBundleOptions, TGetVenueOptions } from '@mappedin/react-native-sdk/sdks/packages/get-venue';
7305
7368
  import { getVenue, getVenueMVF, getVenueBundle, getVenueMaker, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, MappedinDestinationSet, hydrateVenue, GET_VENUE_EVENT } from '@mappedin/react-native-sdk/sdks/packages/get-venue';
7306
- import type { TMapViewOptions } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/MapView.types';
7369
+ import type { TMapViewOptions, TShowWatermarkOptions } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/MapView.types';
7307
7370
  export { E_SDK_LOG_LEVEL, setLoggerLevel } from '@mappedin/react-native-sdk/sdks/packages/common/Mappedin.Logger';
7308
7371
  export type { Marker } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private/controllers/MarkersController';
7309
7372
  export type { Path } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private/controllers/PathsController';
@@ -7352,7 +7415,6 @@ declare module '@mappedin/react-native-sdk/sdks/cms/src' {
7352
7415
  export { getVenue, getVenueMVF, getVenueBundle, getVenueMaker, showVenue, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, hydrateVenue, MappedinDestinationSet, GET_VENUE_EVENT, };
7353
7416
  import DefaultAssetManager from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal/Mappedin.AssetManager';
7354
7417
  import type { TTileManagerOptions } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal/outdoor-context/Mappedin.TileManager';
7355
- import type { TShowWatermarkOptions } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private/controllers/WatermarkController';
7356
7418
  export { setAssetManager } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal';
7357
7419
  export { DefaultAssetManager as AssetManager };
7358
7420
  export type { TMappedinDirective, IAction, IActionArrival, IActionDeparture, IActionExitVortex, IActionTakeVortex, IActionTurn, } from '@mappedin/react-native-sdk/sdks/packages/get-venue/MappedinDirections';
@@ -7403,75 +7465,25 @@ declare module '@mappedin/react-native-sdk/sdks/cms/src' {
7403
7465
 
7404
7466
  declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private/controllers/WatermarkController' {
7405
7467
  import { ICore } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private/Core.interface';
7406
- type TPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center' | 'top' | 'bottom' | 'left' | 'right';
7407
- export type TShowWatermarkOptions = {
7408
- /**
7409
- * Padding in pixels. Can be a number or an object with top, right, bottom, and left properties.
7410
- * @default 16
7411
- * @example
7412
- * ```ts
7413
- * // Watermark with 20 pixels of padding on all sides
7414
- * __showWatermark({
7415
- * padding: 20,
7416
- * });
7417
- * ```
7418
- * @example
7419
- * ```ts
7420
- * // Watermark with unique top, right, bottom, left padding
7421
- * __showWatermark({
7422
- * padding: {
7423
- * top: 10,
7424
- * right: 20,
7425
- * bottom: 30,
7426
- * left: 40,
7427
- * },
7428
- * });
7429
- * ```
7430
- */
7431
- padding?: number | {
7432
- top?: number;
7433
- right?: number;
7434
- bottom?: number;
7435
- left?: number;
7436
- };
7437
- /**
7438
- * Position of the watermark on the screen.
7439
- * @default 'bottom-left'
7440
- */
7441
- position?: TPosition;
7442
- /**
7443
- * Show only the Mappedin icon without text.
7444
- * @default false
7445
- */
7446
- iconOnly?: boolean;
7447
- /**
7448
- * Scale of the watermark between 0.5 and 1.5.
7449
- * @default 1
7450
- */
7451
- scale?: number;
7452
- /**
7453
- * Callback when the watermark is clicked.
7454
- */
7455
- onClick?: () => void;
7456
- };
7468
+ import type { TShowWatermarkOptions } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/MapView.types';
7457
7469
  class WatermarkController {
7458
- #private;
7459
- static ENABLED: boolean;
7460
- static OPTIONS: Required<TShowWatermarkOptions>;
7461
- /**
7462
- * The current calculated position and size of the watermark on the screen. It is updated every resize.
7463
- * This is public so it can be used in event system.
7464
- */
7465
- position: {
7466
- x: number;
7467
- y: number;
7468
- width: number;
7469
- height: number;
7470
- };
7471
- constructor(core: ICore);
7472
- show: () => void;
7473
- hide: () => void;
7474
- resize: () => void;
7470
+ #private;
7471
+ static ENABLED: boolean;
7472
+ static OPTIONS: Required<TShowWatermarkOptions>;
7473
+ /**
7474
+ * The current calculated position and size of the watermark on the screen. It is updated every resize.
7475
+ * This is public so it can be used in event system.
7476
+ */
7477
+ position: {
7478
+ x: number;
7479
+ y: number;
7480
+ width: number;
7481
+ height: number;
7482
+ };
7483
+ constructor(core: ICore);
7484
+ show: () => void;
7485
+ hide: () => void;
7486
+ resize: () => void;
7475
7487
  }
7476
7488
  export default WatermarkController;
7477
7489
  }
@@ -9717,7 +9729,7 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private
9717
9729
  get currentMap(): MappedinMap;
9718
9730
  setDefaultMapForMapGroup(mapGroup: MappedinMapGroup, map: MappedinMap): void;
9719
9731
  resetDefaultMapForMapGroup(mapGroup: MappedinMapGroup): void;
9720
- determineTargetMap(): void;
9732
+ determineTargetMap(): Promise<void>;
9721
9733
  update(): void;
9722
9734
  transitionTo(scene?: MapViewScene): Promise<void>;
9723
9735
  }
@@ -10571,7 +10583,7 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private
10571
10583
  get buildingsInView(): Building[];
10572
10584
  determineBuildingsInView(): Building[];
10573
10585
  /** Given zoom and camera position, let's figure out the currently active map */
10574
- determineCurrentMap(): MappedinMap;
10586
+ determineCurrentMap(): Promise<MappedinMap>;
10575
10587
  setOpacities(buildingsInView?: Building[], centerMap?: MappedinMap): void;
10576
10588
  createBuildings(buildingGeometries: [string, LayerGroup][]): Promise<Building[]>;
10577
10589
  }
@@ -10781,8 +10793,8 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/interna
10781
10793
 
10782
10794
  declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal/Mappedin.SmartCollisionEngine' {
10783
10795
  import './Mappedin.SmartCollisionEngine.scss';
10784
- import { TRange, TColliderPosition } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal/Mappedin.SmartCollider';
10785
- import { MappedinMap } from '@mappedin/react-native-sdk/sdks/packages/get-venue';
10796
+ import type { TRange, TColliderPosition } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal/Mappedin.SmartCollider';
10797
+ import type { MappedinMap } from '@mappedin/react-native-sdk/sdks/packages/get-venue';
10786
10798
  import type { ICore } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal';
10787
10799
  import { Rectangle, QuadTree } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal/quad-tree';
10788
10800
  import { InternalFloatingLabel, InternalMarker, SmartTooltip } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal';