| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- try{let Tn=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},aa=new Tn.Error().stack;aa&&(Tn._sentryDebugIds=Tn._sentryDebugIds||{},Tn._sentryDebugIds[aa]="40bfba91-d422-4e22-8c01-2faa497cab3f",Tn._sentryDebugIdIdentifier="sentry-dbid-40bfba91-d422-4e22-8c01-2faa497cab3f")}catch(Tn){}{let Tn=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};Tn.SENTRY_RELEASE={id:"20.13.2"}}(self.webpackChunk_mb2024_mb_proto=self.webpackChunk_mb2024_mb_proto||[]).push([[976],{29984:(Tn,aa,Xr)=>{"use strict";Xr.r(aa),Xr.d(aa,{BwsImgCmp:()=>ln,JsPdf:()=>We,JsZip:()=>le()});var Lt=Xr(35846),le=Xr.n(Lt),xt=Xr(14268),ct={},ot=function(r,t,e,a,s){var i=ct[t]||(ct[t]=URL.createObjectURL(new Blob([r],{type:"text/javascript"}))),o=new Worker(i);return o.onerror=function(l){return s(l.error,null)},o.onmessage=function(l){return s(null,l.data)},o.postMessage(e,a),o},q=Uint8Array,rt=Uint16Array,yt=Uint32Array,St=new q([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]),mt=new q([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]),_t=new q([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),X=function(r,t){for(var e=new rt(31),a=0;a<31;++a)e[a]=t+=1<<r[a-1];for(var s=new yt(e[30]),a=1;a<30;++a)for(var i=e[a];i<e[a+1];++i)s[i]=i-e[a]<<5|a;return[e,s]},ft=X(St,2),V=ft[0],ut=ft[1];V[28]=258,ut[258]=28;for(var J=X(mt,0),dt=J[0],kt=J[1],jt=new rt(32768),Pt=0;Pt<32768;++Pt){var Jt=(Pt&43690)>>>1|(Pt&21845)<<1;Jt=(Jt&52428)>>>2|(Jt&13107)<<2,Jt=(Jt&61680)>>>4|(Jt&3855)<<4,jt[Pt]=((Jt&65280)>>>8|(Jt&255)<<8)>>>1}for(var Wt=function(r,t,e){for(var a=r.length,s=0,i=new rt(t);s<a;++s)++i[r[s]-1];var o=new rt(t);for(s=0;s<t;++s)o[s]=o[s-1]+i[s-1]<<1;var l;if(e){l=new rt(1<<t);var c=15-t;for(s=0;s<a;++s)if(r[s])for(var v=s<<4|r[s],d=t-r[s],g=o[r[s]-1]++<<d,m=g|(1<<d)-1;g<=m;++g)l[jt[g]>>>c]=v}else for(l=new rt(a),s=0;s<a;++s)l[s]=jt[o[r[s]-1]++]>>>15-r[s];return l},oe=new q(288),Pt=0;Pt<144;++Pt)oe[Pt]=8;for(var Pt=144;Pt<256;++Pt)oe[Pt]=9;for(var Pt=256;Pt<280;++Pt)oe[Pt]=7;for(var Pt=280;Pt<288;++Pt)oe[Pt]=8;for(var Gt=new q(32),Pt=0;Pt<32;++Pt)Gt[Pt]=5;var ve=Wt(oe,9,0),Ue=Wt(oe,9,1),bt=Wt(Gt,5,0),Qt=Wt(Gt,5,1),D=function(r){for(var t=r[0],e=1;e<r.length;++e)r[e]>t&&(t=r[e]);return t},Yt=function(r,t,e){var a=t/8>>0;return(r[a]|r[a+1]<<8)>>>(t&7)&e},Ze=function(r,t){var e=t/8>>0;return(r[e]|r[e+1]<<8|r[e+2]<<16)>>>(t&7)},ue=function(r){return(r/8>>0)+(r&7&&1)},Qe=function(r,t,e){(t==null||t<0)&&(t=0),(e==null||e>r.length)&&(e=r.length);var a=new(r instanceof rt?rt:r instanceof yt?yt:q)(e-t);return a.set(r.subarray(t,e)),a},fe=function(r,t,e){var a=r.length,s=!t||e,i=!e||e.i;e||(e={}),t||(t=new q(a*3));var o=function(gt){var Ft=t.length;if(gt>Ft){var Et=new q(Math.max(Ft*2,gt));Et.set(t),t=Et}},l=e.f||0,c=e.p||0,v=e.b||0,d=e.l,g=e.d,m=e.m,f=e.n,w=a*8;do{if(!d){e.f=l=Yt(r,c,1);var L=Yt(r,c+1,3);if(c+=3,L)if(L==1)d=Ue,g=Qt,m=9,f=5;else if(L==2){var G=Yt(r,c,31)+257,Q=Yt(r,c+10,15)+4,ht=G+Yt(r,c+5,31)+1;c+=14;for(var Z=new q(ht),tt=new q(19),A=0;A<Q;++A)tt[_t[A]]=Yt(r,c+A*3,7);c+=Q*3;var B=D(tt),Y=(1<<B)-1;if(!i&&c+ht*(B+7)>w)break;for(var x=Wt(tt,B,1),A=0;A<ht;){var _=x[Yt(r,c,Y)];c+=_&15;var E=_>>>4;if(E<16)Z[A++]=E;else{var T=0,C=0;for(E==16?(C=3+Yt(r,c,3),c+=2,T=Z[A-1]):E==17?(C=3+Yt(r,c,7),c+=3):E==18&&(C=11+Yt(r,c,127),c+=7);C--;)Z[A++]=T}}var $=Z.subarray(0,G),F=Z.subarray(G);m=D($),f=D(F),d=Wt($,m,1),g=Wt(F,f,1)}else throw"invalid block type";else{var E=ue(c)+4,y=r[E-4]|r[E-3]<<8,R=E+y;if(R>a){if(i)throw"unexpected EOF";break}s&&o(v+y),t.set(r.subarray(E,R),v),e.b=v+=y,e.p=c=R*8;continue}if(c>w)throw"unexpected EOF"}s&&o(v+131072);for(var I=(1<<m)-1,at=(1<<f)-1,nt=m+f+18;i||c+nt<w;){var T=d[Ze(r,c)&I],pt=T>>>4;if(c+=T&15,c>w)throw"unexpected EOF";if(!T)throw"invalid length/literal";if(pt<256)t[v++]=pt;else if(pt==256){d=null;break}else{var Zt=pt-254;if(pt>264){var A=pt-257,N=St[A];Zt=Yt(r,c,(1<<N)-1)+V[A],c+=N}var H=g[Ze(r,c)&at],U=H>>>4;if(!H)throw"invalid distance";c+=H&15;var F=dt[U];if(U>3){var N=mt[U];F+=Ze(r,c)&(1<<N)-1,c+=N}if(c>w)throw"unexpected EOF";s&&o(v+131072);for(var W=v+Zt;v<W;v+=4)t[v]=t[v-F],t[v+1]=t[v+1-F],t[v+2]=t[v+2-F],t[v+3]=t[v+3-F];v=W}}e.l=d,e.p=c,e.b=v,d&&(l=1,e.m=m,e.d=g,e.n=f)}while(!l);return v==t.length?t:Qe(t,0,v)},je=function(r,t,e){e<<=t&7;var a=t/8>>0;r[a]|=e,r[a+1]|=e>>>8},Ut=function(r,t,e){e<<=t&7;var a=t/8>>0;r[a]|=e,r[a+1]|=e>>>8,r[a+2]|=e>>>16},zt=function(r,t){for(var e=[],a=0;a<r.length;++a)r[a]&&e.push({s:a,f:r[a]});var s=e.length,i=e.slice();if(!s)return[new q(0),0];if(s==1){var o=new q(e[0].s+1);return o[e[0].s]=1,[o,1]}e.sort(function(ht,Z){return ht.f-Z.f}),e.push({s:-1,f:25001});var l=e[0],c=e[1],v=0,d=1,g=2;for(e[0]={s:-1,f:l.f+c.f,l,r:c};d!=s-1;)l=e[e[v].f<e[g].f?v++:g++],c=e[v!=d&&e[v].f<e[g].f?v++:g++],e[d++]={s:-1,f:l.f+c.f,l,r:c};for(var m=i[0].s,a=1;a<s;++a)i[a].s>m&&(m=i[a].s);var f=new rt(m+1),w=De(e[d-1],f,0);if(w>t){var a=0,L=0,E=w-t,y=1<<E;for(i.sort(function(Z,tt){return f[tt.s]-f[Z.s]||Z.f-tt.f});a<s;++a){var R=i[a].s;if(f[R]>t)L+=y-(1<<w-f[R]),f[R]=t;else break}for(L>>>=E;L>0;){var G=i[a].s;f[G]<t?L-=1<<t-f[G]++-1:++a}for(;a>=0&&L;--a){var Q=i[a].s;f[Q]==t&&(--f[Q],++L)}w=t}return[new q(f),w]},De=function(r,t,e){return r.s==-1?Math.max(De(r.l,t,e+1),De(r.r,t,e+1)):t[r.s]=e},ke=function(r){for(var t=r.length;t&&!r[--t];);for(var e=new rt(++t),a=0,s=r[0],i=1,o=function(c){e[a++]=c},l=1;l<=t;++l)if(r[l]==s&&l!=t)++i;else{if(!s&&i>2){for(;i>138;i-=138)o(32754);i>2&&(o(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(o(s),--i;i>6;i-=6)o(8304);i>2&&(o(i-3<<5|8208),i=0)}for(;i--;)o(s);i=1,s=r[l]}return[e.subarray(0,a),t]},we=function(r,t){for(var e=0,a=0;a<t.length;++a)e+=r[a]*t[a];return e},xr=function(r,t,e){var a=e.length,s=ue(t+2);r[s]=a&255,r[s+1]=a>>>8,r[s+2]=r[s]^255,r[s+3]=r[s+1]^255;for(var i=0;i<a;++i)r[s+i+4]=e[i];return(s+4+a)*8},Hr=function(r,t,e,a,s,i,o,l,c,v,d){je(t,d++,e),++s[256];for(var g=zt(s,15),m=g[0],f=g[1],w=zt(i,15),L=w[0],E=w[1],y=ke(m),R=y[0],G=y[1],Q=ke(L),ht=Q[0],Z=Q[1],tt=new rt(19),A=0;A<R.length;++A)tt[R[A]&31]++;for(var A=0;A<ht.length;++A)tt[ht[A]&31]++;for(var B=zt(tt,7),Y=B[0],x=B[1],_=19;_>4&&!Y[_t[_-1]];--_);var T=v+5<<3,C=we(s,oe)+we(i,Gt)+o,$=we(s,m)+we(i,L)+o+14+3*_+we(tt,Y)+(2*tt[16]+3*tt[17]+7*tt[18]);if(T<=C&&T<=$)return xr(t,d,r.subarray(c,c+v));var F,I,at,nt;if(je(t,d,1+($<C)),d+=2,$<C){F=Wt(m,f,0),I=m,at=Wt(L,E,0),nt=L;var pt=Wt(Y,x,0);je(t,d,G-257),je(t,d+5,Z-1),je(t,d+10,_-4),d+=14;for(var A=0;A<_;++A)je(t,d+3*A,Y[_t[A]]);d+=3*_;for(var Zt=[R,ht],N=0;N<2;++N)for(var H=Zt[N],A=0;A<H.length;++A){var U=H[A]&31;je(t,d,pt[U]),d+=Y[U],U>15&&(je(t,d,H[A]>>>5&127),d+=H[A]>>>12)}}else F=ve,I=oe,at=bt,nt=Gt;for(var A=0;A<l;++A)if(a[A]>255){var U=a[A]>>>18&31;Ut(t,d,F[U+257]),d+=I[U+257],U>7&&(je(t,d,a[A]>>>23&31),d+=St[U]);var W=a[A]&31;Ut(t,d,at[W]),d+=nt[W],W>3&&(Ut(t,d,a[A]>>>5&8191),d+=mt[W])}else Ut(t,d,F[a[A]]),d+=I[a[A]];return Ut(t,d,F[256]),d+I[256]},sr=new yt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),fr=new q(0),Rr=function(r,t,e,a,s,i){var o=r.length,l=new q(a+o+5*(1+Math.floor(o/7e3))+s),c=l.subarray(a,l.length-s),v=0;if(!t||o<8)for(var d=0;d<=o;d+=65535){var g=d+65535;g<o?v=xr(c,v,r.subarray(d,g)):(c[d]=i,v=xr(c,v,r.subarray(d,o)))}else{for(var m=sr[t-1],f=m>>>13,w=m&8191,L=(1<<e)-1,E=new rt(32768),y=new rt(L+1),R=Math.ceil(e/3),G=2*R,Q=function(Be){return(r[Be]^r[Be+1]<<R^r[Be+2]<<G)&L},ht=new yt(25e3),Z=new rt(288),tt=new rt(32),A=0,B=0,d=0,Y=0,x=0,_=0;d<o;++d){var T=Q(d),C=d&32767,$=y[T];if(E[C]=$,y[T]=C,x<=d){var F=o-d;if((A>7e3||Y>24576)&&F>423){v=Hr(r,c,0,ht,Z,tt,B,Y,_,d-_,v),Y=A=B=0,_=d;for(var I=0;I<286;++I)Z[I]=0;for(var I=0;I<30;++I)tt[I]=0}var at=2,nt=0,pt=w,Zt=C-$&32767;if(F>2&&T==Q(d-Zt))for(var N=Math.min(f,F)-1,H=Math.min(32767,d),U=Math.min(258,F);Zt<=H&&--pt&&C!=$;){if(r[d+at]==r[d+at-Zt]){for(var W=0;W<U&&r[d+W]==r[d+W-Zt];++W);if(W>at){if(at=W,nt=Zt,W>N)break;for(var gt=Math.min(Zt,W-2),Ft=0,I=0;I<gt;++I){var Et=d-Zt+I+32768&32767,Ot=E[Et],ee=Et-Ot+32768&32767;ee>Ft&&(Ft=ee,$=Et)}}}C=$,$=E[C],Zt+=C-$+32768&32767}if(nt){ht[Y++]=268435456|ut[at]<<18|kt[nt];var re=ut[at]&31,pe=kt[nt]&31;B+=St[re]+mt[pe],++Z[257+re],++tt[pe],x=d+at,++A}else ht[Y++]=r[d],++Z[r[d]]}}v=Hr(r,c,i,ht,Z,tt,B,Y,_,d-_,v),i||(v=xr(c,v,fr))}return Qe(l,0,a+ue(v)+s)},Ir=null,fn=function(){var r=4294967295;return{p:function(t){for(var e=r,a=0;a<t.length;++a)e=Ir[e&255^t[a]]^e>>>8;r=e},d:function(){return r^4294967295}}},pn=function(){var r=1,t=0;return{p:function(e){for(var a=r,s=t,i=e.length,o=0;o!=i;){for(var l=Math.min(o+5552,i);o<l;++o)a+=e[o],s+=a;a%=65521,s%=65521}r=a,t=s},d:function(){return(r>>>8<<16|(t&255)<<8|t>>>8)+((r&255)<<23)*2}}},S=function(r,t,e,a,s){return Rr(r,t.level==null?6:t.level,t.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):12+t.mem,e,a,!s)},Xt=function(r,t){var e={};for(var a in r)e[a]=r[a];for(var a in t)e[a]=t[a];return e},qt=function(r,t,e){for(var a=r(),s=r.toString(),i=s.slice(s.indexOf("[")+1,s.lastIndexOf("]")).replace(/ /g,"").split(","),o=0;o<a.length;++o){var l=a[o],c=i[o];if(typeof l=="function"){t+=";"+c+"=";var v=l.toString();if(l.prototype)if(v.indexOf("[native code]")!=-1){var d=v.indexOf(" ",8)+1;t+=v.slice(d,v.indexOf("(",d))}else{t+=v;for(var g in l.prototype)t+=";"+c+".prototype."+g+"="+l.prototype[g].toString()}else t+=v}else e[c]=l}return[t,e]},lt=null,et=function(r){var t=[];for(var e in r)(r[e]instanceof q||r[e]instanceof rt||r[e]instanceof yt)&&t.push((r[e]=new r[e].constructor(r[e])).buffer);return t},Ct=function(r,t,e,a){var s;if(!lt[e]){for(var i="",o={},l=r.length-1,c=0;c<l;++c)s=qt(r[c],i,o),i=s[0],o=s[1];lt[e]=qt(r[l],i,o)}var v=Xt({},lt[e][1]);return ot(lt[e][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",e,v,et(v),a)},ie=function(){return[q,rt,yt,St,mt,_t,V,dt,Ue,Qt,jt,Wt,D,Yt,Ze,ue,Qe,fe,Qa,Oe,mr]},se=function(){return[q,rt,yt,St,mt,_t,ut,kt,ve,oe,bt,Gt,jt,sr,fr,Wt,je,Ut,zt,De,ke,we,xr,Hr,ue,Qe,Rr,S,Is,Oe]},Tt=function(){return[Gi,Ya,nr,fn,Ir]},me=function(){return[oa,Cn]},Ce=function(){return[ks,nr,pn]},be=function(){return[Ps]},Oe=function(r){return postMessage(r,[r.buffer])},mr=function(r){return r&&r.size&&new q(r.size)},rr=function(r,t,e,a,s,i){var o=Ct(e,a,s,function(l,c){o.terminate(),i(l,c)});return t.consume||(r=new q(r)),o.postMessage([r,t],[r.buffer]),function(){o.terminate()}},xn=function(r){return r.ondata=function(t,e){return postMessage([t,e],[t.buffer])},function(t){return r.push(t.data[0],t.data[1])}},sa=function(r,t,e,a,s){var i,o=Ct(r,a,s,function(l,c){l?(o.terminate(),t.ondata.call(t,l)):(c[1]&&o.terminate(),t.ondata.call(t,l,c[0],c[1]))});o.postMessage(e),t.push=function(l,c){if(i)throw"stream finished";if(!t.ondata)throw"no stream handler";o.postMessage([l,i=c],[l.buffer])},t.terminate=function(){o.terminate()}},Er=function(r,t){return r[t]|r[t+1]<<8},Cr=function(r,t){return(r[t]|r[t+1]<<8|r[t+2]<<16)+(r[t+3]<<23)*2},nr=function(r,t,e){for(;e;++t)r[t]=e,e>>>=8},Gi=function(r,t){var e=t.filename;if(r[0]=31,r[1]=139,r[2]=8,r[8]=t.level<2?4:t.level==9?2:0,r[9]=3,t.mtime!=0&&nr(r,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),e){r[3]=8;for(var a=0;a<=e.length;++a)r[a+10]=e.charCodeAt(a)}},oa=function(r){if(r[0]!=31||r[1]!=139||r[2]!=8)throw"invalid gzip data";var t=r[3],e=10;t&4&&(e+=r[10]|(r[11]<<8)+2);for(var a=(t>>3&1)+(t>>4&1);a>0;a-=!r[e++]);return e+(t&2)},Cn=function(r){var t=r.length;return(r[t-4]|r[t-3]<<8|r[t-2]<<16)+2*(r[t-1]<<23)},Ya=function(r){return 10+(r.filename&&r.filename.length+1||0)},ks=function(r,t){var e=t.level,a=e==0?0:e<6?1:e==9?3:2;r[0]=120,r[1]=a<<6|(a?32-2*a:1)},Ps=function(r){if((r[0]&15)!=8||r[0]>>>4>7||(r[0]<<8|r[1])%31)throw"invalid zlib data";if(r[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function Vu(r,t){return!t&&typeof r=="function"&&(t=r,r={}),this.ondata=t,r}var Ro=null,ua=null;function la(r,t,e){if(e||(e=t,t={}),typeof e!="function")throw"no callback";return rr(r,t,[se],function(a){return Oe(Is(a.data[0],a.data[1]))},0,e)}function Is(r,t){return t===void 0&&(t={}),S(r,t,0,0)}var Kh=null,Jh=null;function Zu(r,t,e){if(e||(e=t,t={}),typeof e!="function")throw"no callback";return rr(r,t,[ie],function(a){return Oe(Qa(a.data[0],mr(a.data[1])))},1,e)}function Qa(r,t){return fe(r,t)}var $h=null,tf=null;function ef(r,t,e){if(e||(e=t,t={}),typeof e!="function")throw"no callback";return rr(r,t,[se,Tt,function(){return[Yu]}],function(a){return Oe(Yu(a.data[0],a.data[1]))},2,e)}function Yu(r,t){t===void 0&&(t={});var e=fn(),a=r.length;e.p(r);var s=S(r,t,Ya(t),8),i=s.length;return Gi(s,t),nr(s,i-8,e.d()),nr(s,i-4,a),s}var rf=null,nf=null;function wc(r,t,e){if(e||(e=t,t={}),typeof e!="function")throw"no callback";return rr(r,t,[ie,me,function(){return[To]}],function(a){return Oe(To(a.data[0]))},3,e)}function To(r,t){return fe(r.subarray(oa(r),-8),t||new q(Cn(r)))}var af=null,sf=null;function of(r,t,e){if(e||(e=t,t={}),typeof e!="function")throw"no callback";return rr(r,t,[se,Ce,function(){return[Xa]}],function(a){return Oe(Xa(a.data[0],a.data[1]))},4,e)}function Xa(r,t){t===void 0&&(t={});var e=pn();e.p(r);var a=S(r,t,2,4);return ks(a,t),nr(a,a.length-4,e.d()),a}var uf=null,lf=null;function Ac(r,t,e){if(e||(e=t,t={}),typeof e!="function")throw"no callback";return rr(r,t,[ie,be,function(){return[Cs]}],function(a){return Oe(Cs(a.data[0],mr(a.data[1])))},5,e)}function Cs(r,t){return fe((Ps(r),r.subarray(2,-4)),t)}var cf=null,hf=null;function ff(r,t,e){if(e||(e=t,t={}),typeof e!="function")throw"no callback";return r[0]==31&&r[1]==139&&r[2]==8?wc(r,t,e):(r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31?Zu(r,t,e):Ac(r,t,e)}function df(r,t){return r[0]==31&&r[1]==139&&r[2]==8?To(r,t):(r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31?Qa(r,t):Cs(r,t)}var Mo=function(r,t,e,a){for(var s in r){var i=r[s],o=t+s;i instanceof q?e[o]=[i,a]:Array.isArray(i)?e[o]=[i[0],Xt(a,i[1])]:Mo(i,o+"/",e,a)}};function Qu(r,t){var e=r.length;if(!t&&typeof TextEncoder<"u")return new TextEncoder().encode(r);for(var a=new q(r.length+(r.length>>>1)),s=0,i=function(v){a[s++]=v},o=0;o<e;++o){if(s+5>a.length){var l=new q(s+8+(e-o<<1));l.set(a),a=l}var c=r.charCodeAt(o);c<128||t?i(c):c<2048?(i(192|c>>>6),i(128|c&63)):c>55295&&c<57344?(c=65536+(c&1047552)|r.charCodeAt(++o)&1023,i(240|c>>>18),i(128|c>>>12&63),i(128|c>>>6&63),i(128|c&63)):(i(224|c>>>12),i(128|c>>>6&63),i(128|c&63))}return Qe(a,0,s)}function _c(r,t){var e="";if(!t&&typeof TextDecoder<"u")return new TextDecoder().decode(r);for(var a=0;a<r.length;){var s=r[a++];s<128||t?e+=String.fromCharCode(s):s<224?e+=String.fromCharCode((s&31)<<6|r[a++]&63):s<240?e+=String.fromCharCode((s&15)<<12|(r[a++]&63)<<6|r[a++]&63):(s=((s&15)<<18|(r[a++]&63)<<12|(r[a++]&63)<<6|r[a++]&63)-65536,e+=String.fromCharCode(55296|s>>10,56320|s&1023))}return e}var Xu=function(r,t){return t+30+Er(r,t+26)+Er(r,t+28)},Ku=function(r,t,e){var a=Er(r,t+28),s=_c(r.subarray(t+46,t+46+a),!(Er(r,t+8)&2048)),i=t+46+a,o=e?xc(r,i):[Cr(r,t+20),Cr(r,t+24),Cr(r,t+42)],l=o[0],c=o[1],v=o[2];return[Er(r,t+10),l,c,s,i+Er(r,t+30)+Er(r,t+32),v]},xc=function(r,t){for(;Er(r,t)!=1;t+=4+Er(r,t+2));return[Cr(r,t+12),Cr(r,t+4),Cr(r,t+20)]},Fs=function(r,t,e,a,s,i,o,l,c,v){var d=i.length,g=a.length;nr(r,t,c!=null?33639248:67324752),t+=4,c!=null&&(r[t]=20,t+=2),r[t]=20,t+=2,r[t++]=v==8&&(l.level==1?6:l.level<6?4:l.level==9?2:0),r[t++]=o&&8,r[t]=v,t+=2;var m=new Date(l.mtime||Date.now()),f=m.getFullYear()-1980;if(f<0||f>119)throw"date not in range 1980-2099";nr(r,t,(f<<24)*2|m.getMonth()+1<<21|m.getDate()<<16|m.getHours()<<11|m.getMinutes()<<5|m.getSeconds()>>>1),t+=4,nr(r,t,e),nr(r,t+4,g),nr(r,t+8,s),nr(r,t+12,d),t+=16,c!=null&&(nr(r,t+=10,c),t+=4),r.set(i,t),t+=d,c==null&&r.set(a,t)},Ju=function(r,t,e,a,s){nr(r,t,101010256),nr(r,t+8,e),nr(r,t+10,e),nr(r,t+12,a),nr(r,t+16,s)};function pf(r,t,e){if(e||(e=t,t={}),typeof e!="function")throw"no callback";var a={};Mo(r,"",a,t);var s=Object.keys(a),i=s.length,o=0,l=0,c=i,v=new Array(i),d=[],g=function(){for(var L=0;L<d.length;++L)d[L]()},m=function(){var L=new q(l+22),E=o,y=l-o;l=0;for(var R=0;R<c;++R){var G=v[R];try{Fs(L,l,G.c,G.d,G.m,G.n,G.u,G.p,null,G.t),Fs(L,o,G.c,G.d,G.m,G.n,G.u,G.p,l,G.t),o+=46+G.n.length,l+=30+G.n.length+G.d.length}catch(Q){return e(Q,null)}}Ju(L,o,v.length,y,E),e(null,L)};i||m();for(var f=function(L){var E=s[L],y=a[E],R=y[0],G=y[1],Q=fn(),ht=R.length;Q.p(R);var Z=Qu(E),tt=Z.length,A=G.level==0?0:8,B=function(Y,x){if(Y)g(),e(Y,null);else{var _=x.length;v[L]={t:A,d:x,m:ht,c:Q.d(),u:E.length!=_,n:Z,p:G},o+=30+tt+_,l+=76+2*tt+_,--i||m()}};if(Z.length>65535&&B("filename too long",null),!A)B(null,R);else if(ht<16e4)try{B(null,Is(R,G))}catch(Y){B(Y,null)}else d.push(la(R,G,B))},w=0;w<c;++w)f(w);return g}function gf(r,t){t===void 0&&(t={});var e={},a=[];Mo(r,"",e,t);var s=0,i=0;for(var o in e){var l=e[o],c=l[0],v=l[1],d=v.level==0?0:8,g=Qu(o),m=g.length;if(g.length>65535)throw"filename too long";var f=d?Is(c,v):c,w=f.length,L=fn();L.p(c),a.push({t:d,d:f,m:c.length,c:L.d(),u:o.length!=m,n:g,o:s,p:v}),s+=30+m+w,i+=76+2*m+w}for(var E=new q(i+22),y=s,R=i-s,G=0;G<a.length;++G){var Q=a[G];Fs(E,Q.o,Q.c,Q.d,Q.m,Q.n,Q.u,Q.p,null,Q.t),Fs(E,s,Q.c,Q.d,Q.m,Q.n,Q.u,Q.p,Q.o,Q.t),s+=46+Q.n.length}return Ju(E,s,a.length,R,y),E}function mf(r,t){if(typeof t!="function")throw"no callback";for(var e=[],a=function(){for(var m=0;m<e.length;++m)e[m]()},s={},i=r.length-22;Cr(r,i)!=101010256;--i)if(!i||r.length-i>65558){t("invalid zip file",null);return}var o=Er(r,i+8);o||t(null,{});var l=o,c=Cr(r,i+16),v=c==4294967295;if(v){if(i=Cr(r,i-12),Cr(r,i)!=101075792)throw"invalid zip file";l=o=Cr(r,i+32),c=Cr(r,i+48)}for(var d=function(m){var f=Ku(r,c,v),w=f[0],L=f[1],E=f[2],y=f[3],R=f[4],G=f[5],Q=Xu(r,G);c=R;var ht=function(tt,A){tt?(a(),t(tt,null)):(s[y]=A,--o||t(null,s))};if(!w)ht(null,Qe(r,Q,Q+L));else if(w==8){var Z=r.subarray(Q,Q+L);if(L<32e4)try{ht(null,Qa(Z,new q(E)))}catch(tt){ht(tt,null)}else e.push(Zu(Z,{size:E},ht))}else ht("unknown compression type "+w,null)},g=0;g<l;++g)d(g);return a}function vf(r){for(var t={},e=r.length-22;Cr(r,e)!=101010256;--e)if(!e||r.length-e>65558)throw"invalid zip file";var a=Er(r,e+8);if(!a)return{};var s=Cr(r,e+16),i=s==4294967295;if(i){if(e=Cr(r,e-12),Cr(r,e)!=101075792)throw"invalid zip file";a=Cr(r,e+32),s=Cr(r,e+48)}for(var o=0;o<a;++o){var l=Ku(r,s,i),c=l[0],v=l[1],d=l[2],g=l[3],m=l[4],f=l[5],w=Xu(r,f);if(s=m,!c)t[g]=Qe(r,w,w+v);else if(c==8)t[g]=Qa(r.subarray(w,w+v),new q(d));else throw"unknown compression type "+c}return t}/** @license
- *
- * jsPDF - PDF Document creation from JavaScript
- * Version 2.5.1 Built on 2022-01-28T15:37:57.791Z
- * CommitID 00000000
- *
- * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
- * 2015-2021 yWorks GmbH, http://www.yworks.com
- * 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
- * 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
- * 2010 Aaron Spike, https://github.com/acspike
- * 2012 Willow Systems Corporation, https://github.com/willowsystems
- * 2012 Pablo Hess, https://github.com/pablohess
- * 2012 Florian Jenett, https://github.com/fjenett
- * 2013 Warren Weckesser, https://github.com/warrenweckesser
- * 2013 Youssef Beddad, https://github.com/lifof
- * 2013 Lee Driscoll, https://github.com/lsdriscoll
- * 2013 Stefan Slonevskiy, https://github.com/stefslon
- * 2013 Jeremy Morel, https://github.com/jmorel
- * 2013 Christoph Hartmann, https://github.com/chris-rock
- * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
- * 2014 James Makes, https://github.com/dollaruw
- * 2014 Diego Casorran, https://github.com/diegocr
- * 2014 Steven Spungin, https://github.com/Flamenco
- * 2014 Kenneth Glassey, https://github.com/Gavvers
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
- * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
- * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * Contributor(s):
- * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
- * kim3er, mfo, alnorth, Flamenco
- */var Ve=function(){return typeof window<"u"?window:typeof Xr.g<"u"?Xr.g:typeof self<"u"?self:this}();function zo(){Ve.console&&typeof Ve.console.log=="function"&&Ve.console.log.apply(Ve.console,arguments)}var Lr={log:zo,warn:function(r){Ve.console&&(typeof Ve.console.warn=="function"?Ve.console.warn.apply(Ve.console,arguments):zo.call(null,arguments))},error:function(r){Ve.console&&(typeof Ve.console.error=="function"?Ve.console.error.apply(Ve.console,arguments):zo(r))}};function Uo(r,t,e){var a=new XMLHttpRequest;a.open("GET",r),a.responseType="blob",a.onload=function(){Vi(a.response,t,e)},a.onerror=function(){Lr.error("could not download file")},a.send()}function $u(r){var t=new XMLHttpRequest;t.open("HEAD",r,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function Es(r){try{r.dispatchEvent(new MouseEvent("click"))}catch(e){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(t)}}var Ka,qo,Vi=Ve.saveAs||((typeof window>"u"?"undefined":(0,xt.A)(window))!=="object"||window!==Ve?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(r,t,e){var a=Ve.URL||Ve.webkitURL,s=document.createElement("a");t=t||r.name||"download",s.download=t,s.rel="noopener",typeof r=="string"?(s.href=r,s.origin!==location.origin?$u(s.href)?Uo(r,t,e):Es(s,s.target="_blank"):Es(s)):(s.href=a.createObjectURL(r),setTimeout(function(){a.revokeObjectURL(s.href)},4e4),setTimeout(function(){Es(s)},0))}:"msSaveOrOpenBlob"in navigator?function(r,t,e){if(t=t||r.name||"download",typeof r=="string")if($u(r))Uo(r,t,e);else{var a=document.createElement("a");a.href=r,a.target="_blank",setTimeout(function(){Es(a)})}else navigator.msSaveOrOpenBlob(function(s,i){return i===void 0?i={autoBom:!1}:(0,xt.A)(i)!=="object"&&(Lr.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s}(r,e),t)}:function(r,t,e,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),typeof r=="string")return Uo(r,t,e);var s=r.type==="application/octet-stream",i=/constructor/i.test(Ve.HTMLElement)||Ve.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||s&&i)&&(typeof FileReader>"u"?"undefined":(0,xt.A)(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var d=l.result;d=o?d:d.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=d:location=d,a=null},l.readAsDataURL(r)}else{var c=Ve.URL||Ve.webkitURL,v=c.createObjectURL(r);a?a.location=v:location.href=v,a=null,setTimeout(function(){c.revokeObjectURL(v)},4e4)}});/**
- * A class to parse color values
- * @author Stoyan Stefanov <sstoo@gmail.com>
- * {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
- * @license Use it if you like it
- */function tl(r){var t;r=r||"",this.ok=!1,r.charAt(0)=="#"&&(r=r.substr(1,6)),r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[r=(r=r.replace(/ /g,"")).toLowerCase()]||r;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],a=0;a<e.length;a++){var s=e[a].re,i=e[a].process,o=s.exec(r);o&&(t=i(o),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var l=this.r.toString(16),c=this.g.toString(16),v=this.b.toString(16);return l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),v.length==1&&(v="0"+v),"#"+l+c+v}}/**
- * @license
- * Joseph Myers does not specify a particular license for his work.
- *
- * Author: Joseph Myers
- * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
- *
- * Modified by: Owen Leong
- */function Ho(r,t){var e=r[0],a=r[1],s=r[2],i=r[3];e=an(e,a,s,i,t[0],7,-680876936),i=an(i,e,a,s,t[1],12,-389564586),s=an(s,i,e,a,t[2],17,606105819),a=an(a,s,i,e,t[3],22,-1044525330),e=an(e,a,s,i,t[4],7,-176418897),i=an(i,e,a,s,t[5],12,1200080426),s=an(s,i,e,a,t[6],17,-1473231341),a=an(a,s,i,e,t[7],22,-45705983),e=an(e,a,s,i,t[8],7,1770035416),i=an(i,e,a,s,t[9],12,-1958414417),s=an(s,i,e,a,t[10],17,-42063),a=an(a,s,i,e,t[11],22,-1990404162),e=an(e,a,s,i,t[12],7,1804603682),i=an(i,e,a,s,t[13],12,-40341101),s=an(s,i,e,a,t[14],17,-1502002290),e=sn(e,a=an(a,s,i,e,t[15],22,1236535329),s,i,t[1],5,-165796510),i=sn(i,e,a,s,t[6],9,-1069501632),s=sn(s,i,e,a,t[11],14,643717713),a=sn(a,s,i,e,t[0],20,-373897302),e=sn(e,a,s,i,t[5],5,-701558691),i=sn(i,e,a,s,t[10],9,38016083),s=sn(s,i,e,a,t[15],14,-660478335),a=sn(a,s,i,e,t[4],20,-405537848),e=sn(e,a,s,i,t[9],5,568446438),i=sn(i,e,a,s,t[14],9,-1019803690),s=sn(s,i,e,a,t[3],14,-187363961),a=sn(a,s,i,e,t[8],20,1163531501),e=sn(e,a,s,i,t[13],5,-1444681467),i=sn(i,e,a,s,t[2],9,-51403784),s=sn(s,i,e,a,t[7],14,1735328473),e=on(e,a=sn(a,s,i,e,t[12],20,-1926607734),s,i,t[5],4,-378558),i=on(i,e,a,s,t[8],11,-2022574463),s=on(s,i,e,a,t[11],16,1839030562),a=on(a,s,i,e,t[14],23,-35309556),e=on(e,a,s,i,t[1],4,-1530992060),i=on(i,e,a,s,t[4],11,1272893353),s=on(s,i,e,a,t[7],16,-155497632),a=on(a,s,i,e,t[10],23,-1094730640),e=on(e,a,s,i,t[13],4,681279174),i=on(i,e,a,s,t[0],11,-358537222),s=on(s,i,e,a,t[3],16,-722521979),a=on(a,s,i,e,t[6],23,76029189),e=on(e,a,s,i,t[9],4,-640364487),i=on(i,e,a,s,t[12],11,-421815835),s=on(s,i,e,a,t[15],16,530742520),e=un(e,a=on(a,s,i,e,t[2],23,-995338651),s,i,t[0],6,-198630844),i=un(i,e,a,s,t[7],10,1126891415),s=un(s,i,e,a,t[14],15,-1416354905),a=un(a,s,i,e,t[5],21,-57434055),e=un(e,a,s,i,t[12],6,1700485571),i=un(i,e,a,s,t[3],10,-1894986606),s=un(s,i,e,a,t[10],15,-1051523),a=un(a,s,i,e,t[1],21,-2054922799),e=un(e,a,s,i,t[8],6,1873313359),i=un(i,e,a,s,t[15],10,-30611744),s=un(s,i,e,a,t[6],15,-1560198380),a=un(a,s,i,e,t[13],21,1309151649),e=un(e,a,s,i,t[4],6,-145523070),i=un(i,e,a,s,t[11],10,-1120210379),s=un(s,i,e,a,t[2],15,718787259),a=un(a,s,i,e,t[9],21,-343485551),r[0]=Si(e,r[0]),r[1]=Si(a,r[1]),r[2]=Si(s,r[2]),r[3]=Si(i,r[3])}function Os(r,t,e,a,s,i){return t=Si(Si(t,r),Si(a,i)),Si(t<<s|t>>>32-s,e)}function an(r,t,e,a,s,i,o){return Os(t&e|~t&a,r,t,s,i,o)}function sn(r,t,e,a,s,i,o){return Os(t&a|e&~a,r,t,s,i,o)}function on(r,t,e,a,s,i,o){return Os(t^e^a,r,t,s,i,o)}function un(r,t,e,a,s,i,o){return Os(e^(t|~a),r,t,s,i,o)}function el(r){var t,e=r.length,a=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=r.length;t+=64)Ho(a,Lc(r.substring(t-64,t)));r=r.substring(t-64);var s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<r.length;t++)s[t>>2]|=r.charCodeAt(t)<<(t%4<<3);if(s[t>>2]|=128<<(t%4<<3),t>55)for(Ho(a,s),t=0;t<16;t++)s[t]=0;return s[14]=8*e,Ho(a,s),a}function Lc(r){var t,e=[];for(t=0;t<64;t+=4)e[t>>2]=r.charCodeAt(t)+(r.charCodeAt(t+1)<<8)+(r.charCodeAt(t+2)<<16)+(r.charCodeAt(t+3)<<24);return e}Ka=Ve.atob.bind(Ve),qo=Ve.btoa.bind(Ve);var rl="0123456789abcdef".split("");function Nc(r){for(var t="",e=0;e<4;e++)t+=rl[r>>8*e+4&15]+rl[r>>8*e&15];return t}function Sc(r){return String.fromCharCode((255&r)>>0,(65280&r)>>8,(16711680&r)>>16,(4278190080&r)>>24)}function Wo(r){return el(r).map(Sc).join("")}var kc=function(r){for(var t=0;t<r.length;t++)r[t]=Nc(r[t]);return r.join("")}(el("hello"))!="5d41402abc4b2a76b9719d911017c592";function Si(r,t){if(kc){var e=(65535&r)+(65535&t);return(r>>16)+(t>>16)+(e>>16)<<16|65535&e}return r+t&4294967295}/**
- * @license
- * FPDF is released under a permissive license: there is no usage restriction.
- * You may embed it freely in your application (commercial or not), with or
- * without modifications.
- *
- * Reference: http://www.fpdf.org/en/script/script37.php
- */function Go(r,t){var e,a,s,i;if(r!==e){for(var o=(s=r,i=1+(256/r.length>>0),new Array(i+1).join(s)),l=[],c=0;c<256;c++)l[c]=c;var v=0;for(c=0;c<256;c++){var d=l[c];v=(v+d+o.charCodeAt(c))%256,l[c]=l[v],l[v]=d}e=r,a=l}else l=a;var g=t.length,m=0,f=0,w="";for(c=0;c<g;c++)f=(f+(d=l[m=(m+1)%256]))%256,l[m]=l[f],l[f]=d,o=l[(l[m]+l[f])%256],w+=String.fromCharCode(t.charCodeAt(c)^o);return w}/**
- * @license
- * Licensed under the MIT License.
- * http://opensource.org/licenses/mit-license
- * Author: Owen Leong (@owenl131)
- * Date: 15 Oct 2020
- * References:
- * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
- * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
- * http://www.fpdf.org/en/script/script37.php
- */var nl={print:4,modify:8,copy:16,"annot-forms":32};function ca(r,t,e,a){this.v=1,this.r=2;var s=192;r.forEach(function(l){if(nl.perm!==void 0)throw new Error("Invalid permission: "+l);s+=nl[l]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var i=(t+this.padding).substr(0,32),o=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,o),this.P=-(1+(255^s)),this.encryptionKey=Wo(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=Go(this.encryptionKey,this.padding)}function ha(r){if(/[^\u0000-\u00ff]/.test(r))throw new Error("Invalid PDF Name Object: "+r+", Only accept ASCII characters.");for(var t="",e=r.length,a=0;a<e;a++){var s=r.charCodeAt(a);s<33||s===35||s===37||s===40||s===41||s===47||s===60||s===62||s===91||s===93||s===123||s===125||s>126?t+="#"+("0"+s.toString(16)).slice(-2):t+=r[a]}return t}function il(r){if((0,xt.A)(r)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,a,s){if(s=s||!1,typeof e!="string"||typeof a!="function"||typeof s!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var i=Math.random().toString(35);return t[e][i]=[a,!!s],i},this.unsubscribe=function(e){for(var a in t)if(t[a][e])return delete t[a][e],Object.keys(t[a]).length===0&&delete t[a],!0;return!1},this.publish=function(e){if(t.hasOwnProperty(e)){var a=Array.prototype.slice.call(arguments,1),s=[];for(var i in t[e]){var o=t[e][i];try{o[0].apply(r,a)}catch(l){Ve.console&&Lr.error("jsPDF PubSub Error",l.message,l)}o[1]&&s.push(i)}s.length&&s.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Bs(r){if(!(this instanceof Bs))return new Bs(r);var t="opacity,stroke-opacity".split(",");for(var e in r)r.hasOwnProperty(e)&&t.indexOf(e)>=0&&(this[e]=r[e]);this.id="",this.objectNumber=-1}function al(r,t){this.gState=r,this.matrix=t,this.id="",this.objectNumber=-1}function Zi(r,t,e,a,s){if(!(this instanceof Zi))return new Zi(r,t,e,a,s);this.type=r==="axial"?2:3,this.coords=t,this.colors=e,al.call(this,a,s)}function fa(r,t,e,a,s){if(!(this instanceof fa))return new fa(r,t,e,a,s);this.boundingBox=r,this.xStep=t,this.yStep=e,this.stream="",this.cloneIndex=0,al.call(this,a,s)}function We(r){var t,e=typeof arguments[0]=="string"?arguments[0]:"p",a=arguments[1],s=arguments[2],i=arguments[3],o=[],l=1,c=16,v="S",d=null;(0,xt.A)(r=r||{})==="object"&&(e=r.orientation,a=r.unit||a,s=r.format||s,i=r.compress||r.compressPdf||i,(d=r.encryption||null)!==null&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),l=typeof r.userUnit=="number"?Math.abs(r.userUnit):1,r.precision!==void 0&&(t=r.precision),r.floatPrecision!==void 0&&(c=r.floatPrecision),v=r.defaultPathOperation||"S"),o=r.filters||(i===!0?["FlateEncode"]:o),a=a||"mm",e=(""+(e||"P")).toLowerCase();var g=r.putOnlyUsedFonts||!1,m={},f={internal:{},__private__:{}};f.__private__.PubSub=il;var w="1.3",L=f.__private__.getPdfVersion=function(){return w};f.__private__.setPdfVersion=function(h){w=h};var E={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};f.__private__.getPageFormats=function(){return E};var y=f.__private__.getPageFormat=function(h){return E[h]};s=s||"a4";var R={COMPAT:"compat",ADVANCED:"advanced"},G=R.COMPAT;function Q(){this.saveGraphicsState(),st(new Ge(Ae,0,0,-Ae,0,Ei()*Ae).toString()+" cm"),this.setFontSize(this.getFontSize()/Ae),v="n",G=R.ADVANCED}function ht(){this.restoreGraphicsState(),v="S",G=R.COMPAT}var Z=f.__private__.combineFontStyleAndFontWeight=function(h,P){if(h=="bold"&&P=="normal"||h=="bold"&&P==400||h=="normal"&&P=="italic"||h=="bold"&&P=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return P&&(h=P==400||P==="normal"?h==="italic"?"italic":"normal":P!=700&&P!=="bold"||h!=="normal"?(P==700?"bold":P)+""+h:"bold"),h};f.advancedAPI=function(h){var P=G===R.COMPAT;return P&&Q.call(this),typeof h!="function"||(h(this),P&&ht.call(this)),this},f.compatAPI=function(h){var P=G===R.ADVANCED;return P&&ht.call(this),typeof h!="function"||(h(this),P&&Q.call(this)),this},f.isAdvancedAPI=function(){return G===R.ADVANCED};var tt,A=function(h){if(G!==R.ADVANCED)throw new Error(h+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},B=f.roundToPrecision=f.__private__.roundToPrecision=function(h,P){var it=t||P;if(isNaN(h)||isNaN(it))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return h.toFixed(it).replace(/0+$/,"")};tt=f.hpf=f.__private__.hpf=typeof c=="number"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return B(h,c)}:c==="smart"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return B(h,h>-1&&h<1?16:5)}:function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return B(h,16)};var Y=f.f2=f.__private__.f2=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f2");return B(h,2)},x=f.__private__.f3=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f3");return B(h,3)},_=f.scale=f.__private__.scale=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.scale");return G===R.COMPAT?h*Ae:G===R.ADVANCED?h:void 0},T=function(h){return G===R.COMPAT?Ei()-h:G===R.ADVANCED?h:void 0},C=function(h){return _(T(h))};f.__private__.setPrecision=f.setPrecision=function(h){typeof parseInt(h,10)=="number"&&(t=parseInt(h,10))};var $,F="00000000000000000000000000000000",I=f.__private__.getFileId=function(){return F},at=f.__private__.setFileId=function(h){return F=h!==void 0&&/^[a-fA-F0-9]{32}$/.test(h)?h.toUpperCase():F.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),d!==null&&(cn=new ca(d.userPermissions,d.userPassword,d.ownerPassword,F)),F};f.setFileId=function(h){return at(h),this},f.getFileId=function(){return I()};var nt=f.__private__.convertDateToPDFDate=function(h){var P=h.getTimezoneOffset(),it=P<0?"+":"-",vt=Math.floor(Math.abs(P/60)),Bt=Math.abs(P%60),Vt=[it,U(vt),"'",U(Bt),"'"].join("");return["D:",h.getFullYear(),U(h.getMonth()+1),U(h.getDate()),U(h.getHours()),U(h.getMinutes()),U(h.getSeconds()),Vt].join("")},pt=f.__private__.convertPDFDateToDate=function(h){var P=parseInt(h.substr(2,4),10),it=parseInt(h.substr(6,2),10)-1,vt=parseInt(h.substr(8,2),10),Bt=parseInt(h.substr(10,2),10),Vt=parseInt(h.substr(12,2),10),ce=parseInt(h.substr(14,2),10);return new Date(P,it,vt,Bt,Vt,ce,0)},Zt=f.__private__.setCreationDate=function(h){var P;if(h===void 0&&(h=new Date),h instanceof Date)P=nt(h);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(h))throw new Error("Invalid argument passed to jsPDF.setCreationDate");P=h}return $=P},N=f.__private__.getCreationDate=function(h){var P=$;return h==="jsDate"&&(P=pt($)),P};f.setCreationDate=function(h){return Zt(h),this},f.getCreationDate=function(h){return N(h)};var H,U=f.__private__.padd2=function(h){return("0"+parseInt(h)).slice(-2)},W=f.__private__.padd2Hex=function(h){return("00"+(h=h.toString())).substr(h.length)},gt=0,Ft=[],Et=[],Ot=0,ee=[],re=[],pe=!1,xe=Et,Be=function(){gt=0,Ot=0,Et=[],Ft=[],ee=[],gi=Wr(),Wn=Wr()};f.__private__.setCustomOutputDestination=function(h){pe=!0,xe=h};var Mt=function(h){pe||(xe=h)};f.__private__.resetCustomOutputDestination=function(){pe=!1,xe=Et};var st=f.__private__.out=function(h){return h=h.toString(),Ot+=h.length+1,xe.push(h),xe},Fe=f.__private__.write=function(h){return st(arguments.length===1?h.toString():Array.prototype.join.call(arguments," "))},ye=f.__private__.getArrayBuffer=function(h){for(var P=h.length,it=new ArrayBuffer(P),vt=new Uint8Array(it);P--;)vt[P]=h.charCodeAt(P);return it},ne=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];f.__private__.getStandardFonts=function(){return ne};var he=r.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(h){return he=G===R.ADVANCED?h/Ae:h,this};var de,ge=f.__private__.getFontSize=f.getFontSize=function(){return G===R.COMPAT?he:he*Ae},Le=r.R2L||!1;f.__private__.setR2L=f.setR2L=function(h){return Le=h,this},f.__private__.getR2L=f.getR2L=function(){return Le};var Pe,Re=f.__private__.setZoomMode=function(h){var P=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(h))de=h;else if(isNaN(h)){if(P.indexOf(h)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+h+'" is not recognized.');de=h}else de=parseInt(h,10)};f.__private__.getZoomMode=function(){return de};var Ye,ar=f.__private__.setPageMode=function(h){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(h)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+h+'" is not recognized.');Pe=h};f.__private__.getPageMode=function(){return Pe};var Xe=f.__private__.setLayoutMode=function(h){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(h)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+h+'" is not recognized.');Ye=h};f.__private__.getLayoutMode=function(){return Ye},f.__private__.setDisplayMode=f.setDisplayMode=function(h,P,it){return Re(h),Xe(P),ar(it),this};var Te={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(h){if(Object.keys(Te).indexOf(h)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Te[h]},f.__private__.getDocumentProperties=function(){return Te},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(h){for(var P in Te)Te.hasOwnProperty(P)&&h[P]&&(Te[P]=h[P]);return this},f.__private__.setDocumentProperty=function(h,P){if(Object.keys(Te).indexOf(h)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Te[h]=P};var ze,Ae,vr,tr,Br,lr={},wr={},Fn=[],cr={},si={},Ar={},Ln={},Jr=null,pr=0,He=[],or=new il(f),oi=r.hotfixes||[],Pr={},$r={},ui=[],Ge=function h(P,it,vt,Bt,Vt,ce){if(!(this instanceof h))return new h(P,it,vt,Bt,Vt,ce);isNaN(P)&&(P=1),isNaN(it)&&(it=0),isNaN(vt)&&(vt=0),isNaN(Bt)&&(Bt=1),isNaN(Vt)&&(Vt=0),isNaN(ce)&&(ce=0),this._matrix=[P,it,vt,Bt,Vt,ce]};Object.defineProperty(Ge.prototype,"sx",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(Ge.prototype,"shy",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(Ge.prototype,"shx",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(Ge.prototype,"sy",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(Ge.prototype,"tx",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(Ge.prototype,"ty",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(Ge.prototype,"a",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(Ge.prototype,"b",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(Ge.prototype,"c",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(Ge.prototype,"d",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(Ge.prototype,"e",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(Ge.prototype,"f",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(Ge.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ge.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ge.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ge.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Ge.prototype.join=function(h){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(tt).join(h)},Ge.prototype.multiply=function(h){var P=h.sx*this.sx+h.shy*this.shx,it=h.sx*this.shy+h.shy*this.sy,vt=h.shx*this.sx+h.sy*this.shx,Bt=h.shx*this.shy+h.sy*this.sy,Vt=h.tx*this.sx+h.ty*this.shx+this.tx,ce=h.tx*this.shy+h.ty*this.sy+this.ty;return new Ge(P,it,vt,Bt,Vt,ce)},Ge.prototype.decompose=function(){var h=this.sx,P=this.shy,it=this.shx,vt=this.sy,Bt=this.tx,Vt=this.ty,ce=Math.sqrt(h*h+P*P),Se=(h/=ce)*it+(P/=ce)*vt;it-=h*Se,vt-=P*Se;var Me=Math.sqrt(it*it+vt*vt);return Se/=Me,h*(vt/=Me)<P*(it/=Me)&&(h=-h,P=-P,Se=-Se,ce=-ce),{scale:new Ge(ce,0,0,Me,0,0),translate:new Ge(1,0,0,1,Bt,Vt),rotate:new Ge(h,P,-P,h,0,0),skew:new Ge(1,0,Se,1,0,0)}},Ge.prototype.toString=function(h){return this.join(" ")},Ge.prototype.inversed=function(){var h=this.sx,P=this.shy,it=this.shx,vt=this.sy,Bt=this.tx,Vt=this.ty,ce=1/(h*vt-P*it),Se=vt*ce,Me=-P*ce,$e=-it*ce,ir=h*ce;return new Ge(Se,Me,$e,ir,-Se*Bt-$e*Vt,-Me*Bt-ir*Vt)},Ge.prototype.applyToPoint=function(h){var P=h.x*this.sx+h.y*this.shx+this.tx,it=h.x*this.shy+h.y*this.sy+this.ty;return new Oa(P,it)},Ge.prototype.applyToRectangle=function(h){var P=this.applyToPoint(h),it=this.applyToPoint(new Oa(h.x+h.w,h.y+h.h));return new us(P.x,P.y,it.x-P.x,it.y-P.y)},Ge.prototype.clone=function(){var h=this.sx,P=this.shy,it=this.shx,vt=this.sy,Bt=this.tx,Vt=this.ty;return new Ge(h,P,it,vt,Bt,Vt)},f.Matrix=Ge;var Hn=f.matrixMult=function(h,P){return P.multiply(h)},li=new Ge(1,0,0,1,0,0);f.unitMatrix=f.identityMatrix=li;var vn=function(h,P){if(!si[h]){var it=(P instanceof Zi?"Sh":"P")+(Object.keys(cr).length+1).toString(10);P.id=it,si[h]=it,cr[it]=P,or.publish("addPattern",P)}};f.ShadingPattern=Zi,f.TilingPattern=fa,f.addShadingPattern=function(h,P){return A("addShadingPattern()"),vn(h,P),this},f.beginTilingPattern=function(h){A("beginTilingPattern()"),po(h.boundingBox[0],h.boundingBox[1],h.boundingBox[2]-h.boundingBox[0],h.boundingBox[3]-h.boundingBox[1],h.matrix)},f.endTilingPattern=function(h,P){A("endTilingPattern()"),P.stream=re[H].join("\n"),vn(h,P),or.publish("endTilingPattern",P),ui.pop().restore()};var Yr=f.__private__.newObject=function(){var h=Wr();return Nn(h,!0),h},Wr=f.__private__.newObjectDeferred=function(){return gt++,Ft[gt]=function(){return Ot},gt},Nn=function(h,P){return P=typeof P=="boolean"&&P,Ft[h]=Ot,P&&st(h+" 0 obj"),h},wa=f.__private__.newAdditionalObject=function(){var h={objId:Wr(),content:""};return ee.push(h),h},gi=Wr(),Wn=Wr(),Gn=f.__private__.decodeColorString=function(h){var P=h.split(" ");if(P.length!==2||P[1]!=="g"&&P[1]!=="G")P.length===5&&(P[4]==="k"||P[4]==="K")&&(P=[(1-P[0])*(1-P[3]),(1-P[1])*(1-P[3]),(1-P[2])*(1-P[3]),"r"]);else{var it=parseFloat(P[0]);P=[it,it,it,"r"]}for(var vt="#",Bt=0;Bt<3;Bt++)vt+=("0"+Math.floor(255*parseFloat(P[Bt])).toString(16)).slice(-2);return vt},Vn=f.__private__.encodeColorString=function(h){var P;typeof h=="string"&&(h={ch1:h});var it=h.ch1,vt=h.ch2,Bt=h.ch3,Vt=h.ch4,ce=h.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof it=="string"&&it.charAt(0)!=="#"){var Se=new tl(it);if(Se.ok)it=Se.toHex();else if(!/^\d*\.?\d*$/.test(it))throw new Error('Invalid color "'+it+'" passed to jsPDF.encodeColorString.')}if(typeof it=="string"&&/^#[0-9A-Fa-f]{3}$/.test(it)&&(it="#"+it[1]+it[1]+it[2]+it[2]+it[3]+it[3]),typeof it=="string"&&/^#[0-9A-Fa-f]{6}$/.test(it)){var Me=parseInt(it.substr(1),16);it=Me>>16&255,vt=Me>>8&255,Bt=255&Me}if(vt===void 0||Vt===void 0&&it===vt&&vt===Bt)if(typeof it=="string")P=it+" "+ce[0];else switch(h.precision){case 2:P=Y(it/255)+" "+ce[0];break;case 3:default:P=x(it/255)+" "+ce[0]}else if(Vt===void 0||(0,xt.A)(Vt)==="object"){if(Vt&&!isNaN(Vt.a)&&Vt.a===0)return P=["1.","1.","1.",ce[1]].join(" ");if(typeof it=="string")P=[it,vt,Bt,ce[1]].join(" ");else switch(h.precision){case 2:P=[Y(it/255),Y(vt/255),Y(Bt/255),ce[1]].join(" ");break;default:case 3:P=[x(it/255),x(vt/255),x(Bt/255),ce[1]].join(" ")}}else if(typeof it=="string")P=[it,vt,Bt,Vt,ce[2]].join(" ");else switch(h.precision){case 2:P=[Y(it),Y(vt),Y(Bt),Y(Vt),ce[2]].join(" ");break;case 3:default:P=[x(it),x(vt),x(Bt),x(Vt),ce[2]].join(" ")}return P},ci=f.__private__.getFilters=function(){return o},En=f.__private__.putStream=function(h){var P=(h=h||{}).data||"",it=h.filters||ci(),vt=h.alreadyAppliedFilters||[],Bt=h.addLength1||!1,Vt=P.length,ce=h.objectId,Se=function(hn){return hn};if(d!==null&&ce===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");d!==null&&(Se=cn.encryptor(ce,0));var Me={};it===!0&&(it=["FlateEncode"]);var $e=h.additionalKeyValues||[],ir=(Me=We.API.processDataByFilters!==void 0?We.API.processDataByFilters(P,it):{data:P,reverseChain:[]}).reverseChain+(Array.isArray(vt)?vt.join(" "):vt.toString());if(Me.data.length!==0&&($e.push({key:"Length",value:Me.data.length}),Bt===!0&&$e.push({key:"Length1",value:Vt})),ir.length!=0)if(ir.split("/").length-1==1)$e.push({key:"Filter",value:ir});else{$e.push({key:"Filter",value:"["+ir+"]"});for(var hr=0;hr<$e.length;hr+=1)if($e[hr].key==="DecodeParms"){for(var Fr=[],jr=0;jr<Me.reverseChain.split("/").length-1;jr+=1)Fr.push("null");Fr.push($e[hr].value),$e[hr].value="["+Fr.join(" ")+"]"}}st("<<");for(var Gr=0;Gr<$e.length;Gr++)st("/"+$e[Gr].key+" "+$e[Gr].value);st(">>"),Me.data.length!==0&&(st("stream"),st(Se(Me.data)),st("endstream"))},hi=f.__private__.putPage=function(h){var P=h.number,it=h.data,vt=h.objId,Bt=h.contentsObjId;Nn(vt,!0),st("<</Type /Page"),st("/Parent "+h.rootDictionaryObjId+" 0 R"),st("/Resources "+h.resourceDictionaryObjId+" 0 R"),st("/MediaBox ["+parseFloat(tt(h.mediaBox.bottomLeftX))+" "+parseFloat(tt(h.mediaBox.bottomLeftY))+" "+tt(h.mediaBox.topRightX)+" "+tt(h.mediaBox.topRightY)+"]"),h.cropBox!==null&&st("/CropBox ["+tt(h.cropBox.bottomLeftX)+" "+tt(h.cropBox.bottomLeftY)+" "+tt(h.cropBox.topRightX)+" "+tt(h.cropBox.topRightY)+"]"),h.bleedBox!==null&&st("/BleedBox ["+tt(h.bleedBox.bottomLeftX)+" "+tt(h.bleedBox.bottomLeftY)+" "+tt(h.bleedBox.topRightX)+" "+tt(h.bleedBox.topRightY)+"]"),h.trimBox!==null&&st("/TrimBox ["+tt(h.trimBox.bottomLeftX)+" "+tt(h.trimBox.bottomLeftY)+" "+tt(h.trimBox.topRightX)+" "+tt(h.trimBox.topRightY)+"]"),h.artBox!==null&&st("/ArtBox ["+tt(h.artBox.bottomLeftX)+" "+tt(h.artBox.bottomLeftY)+" "+tt(h.artBox.topRightX)+" "+tt(h.artBox.topRightY)+"]"),typeof h.userUnit=="number"&&h.userUnit!==1&&st("/UserUnit "+h.userUnit),or.publish("putPage",{objId:vt,pageContext:He[P],pageNumber:P,page:it}),st("/Contents "+Bt+" 0 R"),st(">>"),st("endobj");var Vt=it.join("\n");return G===R.ADVANCED&&(Vt+="\nQ"),Nn(Bt,!0),En({data:Vt,filters:ci(),objectId:Bt}),st("endobj"),vt},Ki=f.__private__.putPages=function(){var h,P,it=[];for(h=1;h<=pr;h++)He[h].objId=Wr(),He[h].contentsObjId=Wr();for(h=1;h<=pr;h++)it.push(hi({number:h,data:re[h],objId:He[h].objId,contentsObjId:He[h].contentsObjId,mediaBox:He[h].mediaBox,cropBox:He[h].cropBox,bleedBox:He[h].bleedBox,trimBox:He[h].trimBox,artBox:He[h].artBox,userUnit:He[h].userUnit,rootDictionaryObjId:gi,resourceDictionaryObjId:Wn}));Nn(gi,!0),st("<</Type /Pages");var vt="/Kids [";for(P=0;P<pr;P++)vt+=it[P]+" 0 R ";st(vt+"]"),st("/Count "+pr),st(">>"),st("endobj"),or.publish("postPutPages")},Aa=function(h){or.publish("putFont",{font:h,out:st,newObject:Yr,putStream:En}),h.isAlreadyPutted!==!0&&(h.objectNumber=Yr(),st("<<"),st("/Type /Font"),st("/BaseFont /"+ha(h.postScriptName)),st("/Subtype /Type1"),typeof h.encoding=="string"&&st("/Encoding /"+h.encoding),st("/FirstChar 32"),st("/LastChar 255"),st(">>"),st("endobj"))},_a=function(){for(var h in lr)lr.hasOwnProperty(h)&&(g===!1||g===!0&&m.hasOwnProperty(h))&&Aa(lr[h])},xa=function(h){h.objectNumber=Yr();var P=[];P.push({key:"Type",value:"/XObject"}),P.push({key:"Subtype",value:"/Form"}),P.push({key:"BBox",value:"["+[tt(h.x),tt(h.y),tt(h.x+h.width),tt(h.y+h.height)].join(" ")+"]"}),P.push({key:"Matrix",value:"["+h.matrix.toString()+"]"});var it=h.pages[1].join("\n");En({data:it,additionalKeyValues:P,objectId:h.objectNumber}),st("endobj")},La=function(){for(var h in Pr)Pr.hasOwnProperty(h)&&xa(Pr[h])},Qs=function(h,P){var it,vt=[],Bt=1/(P-1);for(it=0;it<1;it+=Bt)vt.push(it);if(vt.push(1),h[0].offset!=0){var Vt={offset:0,color:h[0].color};h.unshift(Vt)}if(h[h.length-1].offset!=1){var ce={offset:1,color:h[h.length-1].color};h.push(ce)}for(var Se="",Me=0,$e=0;$e<vt.length;$e++){for(it=vt[$e];it>h[Me+1].offset;)Me++;var ir=h[Me].offset,hr=(it-ir)/(h[Me+1].offset-ir),Fr=h[Me].color,jr=h[Me+1].color;Se+=W(Math.round((1-hr)*Fr[0]+hr*jr[0]).toString(16))+W(Math.round((1-hr)*Fr[1]+hr*jr[1]).toString(16))+W(Math.round((1-hr)*Fr[2]+hr*jr[2]).toString(16))}return Se.trim()},ru=function(h,P){P||(P=21);var it=Yr(),vt=Qs(h.colors,P),Bt=[];Bt.push({key:"FunctionType",value:"0"}),Bt.push({key:"Domain",value:"[0.0 1.0]"}),Bt.push({key:"Size",value:"["+P+"]"}),Bt.push({key:"BitsPerSample",value:"8"}),Bt.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Bt.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),En({data:vt,additionalKeyValues:Bt,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:it}),st("endobj"),h.objectNumber=Yr(),st("<< /ShadingType "+h.type),st("/ColorSpace /DeviceRGB");var Vt="/Coords ["+tt(parseFloat(h.coords[0]))+" "+tt(parseFloat(h.coords[1]))+" ";h.type===2?Vt+=tt(parseFloat(h.coords[2]))+" "+tt(parseFloat(h.coords[3])):Vt+=tt(parseFloat(h.coords[2]))+" "+tt(parseFloat(h.coords[3]))+" "+tt(parseFloat(h.coords[4]))+" "+tt(parseFloat(h.coords[5])),st(Vt+="]"),h.matrix&&st("/Matrix ["+h.matrix.toString()+"]"),st("/Function "+it+" 0 R"),st("/Extend [true true]"),st(">>"),st("endobj")},nu=function(h,P){var it=Wr(),vt=Yr();P.push({resourcesOid:it,objectOid:vt}),h.objectNumber=vt;var Bt=[];Bt.push({key:"Type",value:"/Pattern"}),Bt.push({key:"PatternType",value:"1"}),Bt.push({key:"PaintType",value:"1"}),Bt.push({key:"TilingType",value:"1"}),Bt.push({key:"BBox",value:"["+h.boundingBox.map(tt).join(" ")+"]"}),Bt.push({key:"XStep",value:tt(h.xStep)}),Bt.push({key:"YStep",value:tt(h.yStep)}),Bt.push({key:"Resources",value:it+" 0 R"}),h.matrix&&Bt.push({key:"Matrix",value:"["+h.matrix.toString()+"]"}),En({data:h.stream,additionalKeyValues:Bt,objectId:h.objectNumber}),st("endobj")},Na=function(h){var P;for(P in cr)cr.hasOwnProperty(P)&&(cr[P]instanceof Zi?ru(cr[P]):cr[P]instanceof fa&&nu(cr[P],h))},Xs=function(h){for(var P in h.objectNumber=Yr(),st("<<"),h)switch(P){case"opacity":st("/ca "+Y(h[P]));break;case"stroke-opacity":st("/CA "+Y(h[P]))}st(">>"),st("endobj")},iu=function(){var h;for(h in Ar)Ar.hasOwnProperty(h)&&Xs(Ar[h])},Ja=function(){for(var h in st("/XObject <<"),Pr)Pr.hasOwnProperty(h)&&Pr[h].objectNumber>=0&&st("/"+h+" "+Pr[h].objectNumber+" 0 R");or.publish("putXobjectDict"),st(">>")},au=function(){cn.oid=Yr(),st("<<"),st("/Filter /Standard"),st("/V "+cn.v),st("/R "+cn.r),st("/U <"+cn.toHexString(cn.U)+">"),st("/O <"+cn.toHexString(cn.O)+">"),st("/P "+cn.P),st(">>"),st("endobj")},Ks=function(){for(var h in st("/Font <<"),lr)lr.hasOwnProperty(h)&&(g===!1||g===!0&&m.hasOwnProperty(h))&&st("/"+h+" "+lr[h].objectNumber+" 0 R");st(">>")},su=function(){if(Object.keys(cr).length>0){for(var h in st("/Shading <<"),cr)cr.hasOwnProperty(h)&&cr[h]instanceof Zi&&cr[h].objectNumber>=0&&st("/"+h+" "+cr[h].objectNumber+" 0 R");or.publish("putShadingPatternDict"),st(">>")}},Sa=function(h){if(Object.keys(cr).length>0){for(var P in st("/Pattern <<"),cr)cr.hasOwnProperty(P)&&cr[P]instanceof f.TilingPattern&&cr[P].objectNumber>=0&&cr[P].objectNumber<h&&st("/"+P+" "+cr[P].objectNumber+" 0 R");or.publish("putTilingPatternDict"),st(">>")}},ou=function(){if(Object.keys(Ar).length>0){var h;for(h in st("/ExtGState <<"),Ar)Ar.hasOwnProperty(h)&&Ar[h].objectNumber>=0&&st("/"+h+" "+Ar[h].objectNumber+" 0 R");or.publish("putGStateDict"),st(">>")}},Ur=function(h){Nn(h.resourcesOid,!0),st("<<"),st("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Ks(),su(),Sa(h.objectOid),ou(),Ja(),st(">>"),st("endobj")},Js=function(){var h=[];_a(),iu(),La(),Na(h),or.publish("putResources"),h.forEach(Ur),Ur({resourcesOid:Wn,objectOid:Number.MAX_SAFE_INTEGER}),or.publish("postPutResources")},$s=function(){or.publish("putAdditionalObjects");for(var h=0;h<ee.length;h++){var P=ee[h];Nn(P.objId,!0),st(P.content),st("endobj")}or.publish("postPutAdditionalObjects")},to=function(h){wr[h.fontName]=wr[h.fontName]||{},wr[h.fontName][h.fontStyle]=h.id},$a=function(h,P,it,vt,Bt){var Vt={id:"F"+(Object.keys(lr).length+1).toString(10),postScriptName:h,fontName:P,fontStyle:it,encoding:vt,isStandardFont:Bt||!1,metadata:{}};return or.publish("addFont",{font:Vt,instance:this}),lr[Vt.id]=Vt,to(Vt),Vt.id},uu=function(h){for(var P=0,it=ne.length;P<it;P++){var vt=$a.call(this,h[P][0],h[P][1],h[P][2],ne[P][3],!0);g===!1&&(m[vt]=!0);var Bt=h[P][0].split("-");to({id:vt,fontName:Bt[0],fontStyle:Bt[1]||""})}or.publish("addFonts",{fonts:lr,dictionary:wr})},Zn=function(h){return h.foo=function(){try{return h.apply(this,arguments)}catch(vt){var P=vt.stack||"";~P.indexOf(" at ")&&(P=P.split(" at ")[1]);var it="Error in function "+P.split("\n")[0].split("<")[0]+": "+vt.message;if(!Ve.console)throw new Error(it);Ve.console.error(it,vt),Ve.alert&&alert(it)}},h.foo.bar=h,h.foo},ka=function(h,P){var it,vt,Bt,Vt,ce,Se,Me,$e,ir;if(Bt=(P=P||{}).sourceEncoding||"Unicode",ce=P.outputEncoding,(P.autoencode||ce)&&lr[ze].metadata&&lr[ze].metadata[Bt]&&lr[ze].metadata[Bt].encoding&&(Vt=lr[ze].metadata[Bt].encoding,!ce&&lr[ze].encoding&&(ce=lr[ze].encoding),!ce&&Vt.codePages&&(ce=Vt.codePages[0]),typeof ce=="string"&&(ce=Vt[ce]),ce)){for(Me=!1,Se=[],it=0,vt=h.length;it<vt;it++)($e=ce[h.charCodeAt(it)])?Se.push(String.fromCharCode($e)):Se.push(h[it]),Se[it].charCodeAt(0)>>8&&(Me=!0);h=Se.join("")}for(it=h.length;Me===void 0&&it!==0;)h.charCodeAt(it-1)>>8&&(Me=!0),it--;if(!Me)return h;for(Se=P.noBOM?[]:[254,255],it=0,vt=h.length;it<vt;it++){if((ir=($e=h.charCodeAt(it))>>8)>>8)throw new Error("Character at position "+it+" of string '"+h+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Se.push(ir),Se.push($e-(ir<<8))}return String.fromCharCode.apply(void 0,Se)},bn=f.__private__.pdfEscape=f.pdfEscape=function(h,P){return ka(h,P).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ts=f.__private__.beginPage=function(h){re[++pr]=[],He[pr]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(h[0]),topRightY:Number(h[1])}},ro(pr),Mt(re[H])},eo=function(h,P){var it,vt,Bt;switch(e=P||e,typeof h=="string"&&(it=y(h.toLowerCase()),Array.isArray(it)&&(vt=it[0],Bt=it[1])),Array.isArray(h)&&(vt=h[0]*Ae,Bt=h[1]*Ae),isNaN(vt)&&(vt=s[0],Bt=s[1]),(vt>14400||Bt>14400)&&(Lr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),vt=Math.min(14400,vt),Bt=Math.min(14400,Bt)),s=[vt,Bt],e.substr(0,1)){case"l":Bt>vt&&(s=[Bt,vt]);break;case"p":vt>Bt&&(s=[Bt,vt])}ts(s),uo(is),st(Yn),ss!==0&&st(ss+" J"),os!==0&&st(os+" j"),or.publish("addPage",{pageNumber:pr})},lu=function(h){h>0&&h<=pr&&(re.splice(h,1),He.splice(h,1),pr--,H>pr&&(H=pr),this.setPage(H))},ro=function(h){h>0&&h<=pr&&(H=h)},cu=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return re.length-1},no=function(h,P,it){var vt,Bt=void 0;return it=it||{},h=h!==void 0?h:lr[ze].fontName,P=P!==void 0?P:lr[ze].fontStyle,vt=h.toLowerCase(),wr[vt]!==void 0&&wr[vt][P]!==void 0?Bt=wr[vt][P]:wr[h]!==void 0&&wr[h][P]!==void 0?Bt=wr[h][P]:it.disableWarning===!1&&Lr.warn("Unable to look up font label for font '"+h+"', '"+P+"'. Refer to getFontList() for available fonts."),Bt||it.noFallback||(Bt=wr.times[P])==null&&(Bt=wr.times.normal),Bt},hu=f.__private__.putInfo=function(){var h=Yr(),P=function(vt){return vt};for(var it in d!==null&&(P=cn.encryptor(h,0)),st("<<"),st("/Producer ("+bn(P("jsPDF "+We.version))+")"),Te)Te.hasOwnProperty(it)&&Te[it]&&st("/"+it.substr(0,1).toUpperCase()+it.substr(1)+" ("+bn(P(Te[it]))+")");st("/CreationDate ("+bn(P($))+")"),st(">>"),st("endobj")},es=f.__private__.putCatalog=function(h){var P=(h=h||{}).rootDictionaryObjId||gi;switch(Yr(),st("<<"),st("/Type /Catalog"),st("/Pages "+P+" 0 R"),de||(de="fullwidth"),de){case"fullwidth":st("/OpenAction [3 0 R /FitH null]");break;case"fullheight":st("/OpenAction [3 0 R /FitV null]");break;case"fullpage":st("/OpenAction [3 0 R /Fit]");break;case"original":st("/OpenAction [3 0 R /XYZ null null 1]");break;default:var it=""+de;it.substr(it.length-1)==="%"&&(de=parseInt(de)/100),typeof de=="number"&&st("/OpenAction [3 0 R /XYZ null null "+Y(de)+"]")}switch(Ye||(Ye="continuous"),Ye){case"continuous":st("/PageLayout /OneColumn");break;case"single":st("/PageLayout /SinglePage");break;case"two":case"twoleft":st("/PageLayout /TwoColumnLeft");break;case"tworight":st("/PageLayout /TwoColumnRight")}Pe&&st("/PageMode /"+Pe),or.publish("putCatalog"),st(">>"),st("endobj")},fu=f.__private__.putTrailer=function(){st("trailer"),st("<<"),st("/Size "+(gt+1)),st("/Root "+gt+" 0 R"),st("/Info "+(gt-1)+" 0 R"),d!==null&&st("/Encrypt "+cn.oid+" 0 R"),st("/ID [ <"+F+"> <"+F+"> ]"),st(">>")},du=f.__private__.putHeader=function(){st("%PDF-"+w),st("%\xBA\xDF\xAC\xE0")},pu=f.__private__.putXRef=function(){var h="0000000000";st("xref"),st("0 "+(gt+1)),st("0000000000 65535 f ");for(var P=1;P<=gt;P++)typeof Ft[P]=="function"?st((h+Ft[P]()).slice(-10)+" 00000 n "):Ft[P]!==void 0?st((h+Ft[P]).slice(-10)+" 00000 n "):st("0000000000 00000 n ")},mi=f.__private__.buildDocument=function(){Be(),Mt(Et),or.publish("buildDocument"),du(),Ki(),$s(),Js(),d!==null&&au(),hu(),es();var h=Ot;return pu(),fu(),st("startxref"),st(""+h),st("%%EOF"),Mt(re[H]),Et.join("\n")},Pa=f.__private__.getBlob=function(h){return new Blob([ye(h)],{type:"application/pdf"})},Ia=f.output=f.__private__.output=Zn(function(h,P){switch(typeof(P=P||{})=="string"?P={filename:P}:P.filename=P.filename||"generated.pdf",h){case void 0:return mi();case"save":f.save(P.filename);break;case"arraybuffer":return ye(mi());case"blob":return Pa(mi());case"bloburi":case"bloburl":if(Ve.URL!==void 0&&typeof Ve.URL.createObjectURL=="function")return Ve.URL&&Ve.URL.createObjectURL(Pa(mi()))||void 0;Lr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var it="",vt=mi();try{it=qo(vt)}catch(jr){it=qo(unescape(encodeURIComponent(vt)))}return"data:application/pdf;filename="+P.filename+";base64,"+it;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Ve)==="[object Window]"){var Bt="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Vt=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';P.pdfObjectUrl&&(Bt=P.pdfObjectUrl,Vt="");var ce='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Bt+'"'+Vt+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(P)+");<\/script></body></html>",Se=Ve.open();return Se!==null&&Se.document.write(ce),Se}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Ve)==="[object Window]"){var Me='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(P.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+P.filename+'" width="500px" height="400px" /></body></html>',$e=Ve.open();if($e!==null){$e.document.write(Me);var ir=this;$e.document.documentElement.querySelector("#pdfViewer").onload=function(){$e.document.title=P.filename,$e.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(ir.output("bloburl"))}}return $e}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Ve)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var hr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",P)+'"></iframe></body></html>',Fr=Ve.open();if(Fr!==null&&(Fr.document.write(hr),Fr.document.title=P.filename),Fr||typeof safari>"u")return Fr;break;case"datauri":case"dataurl":return Ve.document.location.href=this.output("datauristring",P);default:return null}}),io=function(h){return Array.isArray(oi)===!0&&oi.indexOf(h)>-1};switch(a){case"pt":Ae=1;break;case"mm":Ae=72/25.4;break;case"cm":Ae=72/2.54;break;case"in":Ae=72;break;case"px":Ae=io("px_scaling")==1?.75:96/72;break;case"pc":case"em":Ae=12;break;case"ex":Ae=6;break;default:if(typeof a!="number")throw new Error("Invalid unit: "+a);Ae=a}var cn=null;Zt(),at();var gu=function(h){return d!==null?cn.encryptor(h,0):function(P){return P}},ao=f.__private__.getPageInfo=f.getPageInfo=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:He[h].objId,pageNumber:h,pageContext:He[h]}},Ke=f.__private__.getPageInfoByObjId=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var P in He)if(He[P].objId===h)break;return ao(P)},mu=f.__private__.getCurrentPageInfo=f.getCurrentPageInfo=function(){return{objId:He[H].objId,pageNumber:H,pageContext:He[H]}};f.addPage=function(){return eo.apply(this,arguments),this},f.setPage=function(){return ro.apply(this,arguments),Mt.call(this,re[H]),this},f.insertPage=function(h){return this.addPage(),this.movePage(H,h),this},f.movePage=function(h,P){var it,vt;if(h>P){it=re[h],vt=He[h];for(var Bt=h;Bt>P;Bt--)re[Bt]=re[Bt-1],He[Bt]=He[Bt-1];re[P]=it,He[P]=vt,this.setPage(P)}else if(h<P){it=re[h],vt=He[h];for(var Vt=h;Vt<P;Vt++)re[Vt]=re[Vt+1],He[Vt]=He[Vt+1];re[P]=it,He[P]=vt,this.setPage(P)}return this},f.deletePage=function(){return lu.apply(this,arguments),this},f.__private__.text=f.text=function(h,P,it,vt,Bt){var Vt,ce,Se,Me,$e,ir,hr,Fr,jr,Gr=(vt=vt||{}).scope||this;if(typeof h=="number"&&typeof P=="number"&&(typeof it=="string"||Array.isArray(it))){var hn=it;it=P,P=h,h=hn}if(arguments[3]instanceof Ge?(A("The transform parameter of text() with a Matrix value"),jr=Bt):(Se=arguments[4],Me=arguments[5],(0,xt.A)(hr=arguments[3])==="object"&&hr!==null||(typeof Se=="string"&&(Me=Se,Se=null),typeof hr=="string"&&(Me=hr,hr=null),typeof hr=="number"&&(Se=hr,hr=null),vt={flags:hr,angle:Se,align:Me})),isNaN(P)||isNaN(it)||h==null)throw new Error("Invalid arguments passed to jsPDF.text");if(h.length===0)return Gr;var tn="",Qn=!1,Sn=typeof vt.lineHeightFactor=="number"?vt.lineHeightFactor:$i,bi=Gr.internal.scaleFactor;function go(Sr){return Sr=Sr.split(" ").join(Array(vt.TabLen||9).join(" ")),bn(Sr,hr)}function fs(Sr){for(var kr,qr=Sr.concat(),Qr=[],_i=qr.length;_i--;)typeof(kr=qr.shift())=="string"?Qr.push(kr):Array.isArray(Sr)&&(kr.length===1||kr[1]===void 0&&kr[2]===void 0)?Qr.push(kr[0]):Qr.push([kr[0],kr[1],kr[2]]);return Qr}function ds(Sr,kr){var qr;if(typeof Sr=="string")qr=kr(Sr)[0];else if(Array.isArray(Sr)){for(var Qr,_i,Ri=Sr.concat(),Ha=[],vo=Ri.length;vo--;)typeof(Qr=Ri.shift())=="string"?Ha.push(kr(Qr)[0]):Array.isArray(Qr)&&typeof Qr[0]=="string"&&(_i=kr(Qr[0],Qr[1],Qr[2]),Ha.push([_i[0],_i[1],_i[2]]));qr=Ha}return qr}var ja=!1,ps=!0;if(typeof h=="string")ja=!0;else if(Array.isArray(h)){var gs=h.concat();ce=[];for(var Da,yn=gs.length;yn--;)(typeof(Da=gs.shift())!="string"||Array.isArray(Da)&&typeof Da[0]!="string")&&(ps=!1);ja=ps}if(ja===!1)throw new Error('Type of text must be string or Array. "'+h+'" is not recognized.');typeof h=="string"&&(h=h.match(/[\r?\n]/)?h.split(/\r\n|\r|\n/g):[h]);var Ra=he/Gr.internal.scaleFactor,Ta=Ra*(Sn-1);switch(vt.baseline){case"bottom":it-=Ta;break;case"top":it+=Ra-Ta;break;case"hanging":it+=Ra-2*Ta;break;case"middle":it+=Ra/2-Ta}if((ir=vt.maxWidth||0)>0&&(typeof h=="string"?h=Gr.splitTextToSize(h,ir):Object.prototype.toString.call(h)==="[object Array]"&&(h=h.reduce(function(Sr,kr){return Sr.concat(Gr.splitTextToSize(kr,ir))},[]))),Vt={text:h,x:P,y:it,options:vt,mutex:{pdfEscape:bn,activeFontKey:ze,fonts:lr,activeFontSize:he}},or.publish("preProcessText",Vt),h=Vt.text,Se=(vt=Vt.options).angle,!(jr instanceof Ge)&&Se&&typeof Se=="number"){Se*=Math.PI/180,vt.rotationDirection===0&&(Se=-Se),G===R.ADVANCED&&(Se=-Se);var Ma=Math.cos(Se),ms=Math.sin(Se);jr=new Ge(Ma,ms,-ms,Ma,0,0)}else Se&&Se instanceof Ge&&(jr=Se);G!==R.ADVANCED||jr||(jr=li),($e=vt.charSpace||Ea)!==void 0&&(tn+=tt(_($e))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),(Fr=vt.horizontalScale)!==void 0&&(tn+=tt(100*Fr)+" Tz\n"),vt.lang;var wn=-1,Su=vt.renderingMode!==void 0?vt.renderingMode:vt.stroke,vs=Gr.internal.getCurrentPageInfo().pageContext;switch(Su){case 0:case!1:case"fill":wn=0;break;case 1:case!0:case"stroke":wn=1;break;case 2:case"fillThenStroke":wn=2;break;case 3:case"invisible":wn=3;break;case 4:case"fillAndAddForClipping":wn=4;break;case 5:case"strokeAndAddPathForClipping":wn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":wn=6;break;case 7:case"addToPathForClipping":wn=7}var mo=vs.usedRenderingMode!==void 0?vs.usedRenderingMode:-1;wn!==-1?tn+=wn+" Tr\n":mo!==-1&&(tn+="0 Tr\n"),wn!==-1&&(vs.usedRenderingMode=wn),Me=vt.align||"left";var Xn,bs=he*Sn,ku=Gr.internal.pageSize.getWidth(),Pu=lr[ze];$e=vt.charSpace||Ea,ir=vt.maxWidth||0,hr=Object.assign({autoencode:!0,noBOM:!0},vt.flags);var Oi=[];if(Object.prototype.toString.call(h)==="[object Array]"){var On;ce=fs(h),Me!=="left"&&(Xn=ce.map(function(Sr){return Gr.getStringUnitWidth(Sr,{font:Pu,charSpace:$e,fontSize:he,doKerning:!1})*he/bi}));var Kn,Bi=0;if(Me==="right"){P-=Xn[0],h=[],yn=ce.length;for(var di=0;di<yn;di++)di===0?(Kn=vi(P),On=Ci(it)):(Kn=_(Bi-Xn[di]),On=-bs),h.push([ce[di],Kn,On]),Bi=Xn[di]}else if(Me==="center"){P-=Xn[0]/2,h=[],yn=ce.length;for(var yi=0;yi<yn;yi++)yi===0?(Kn=vi(P),On=Ci(it)):(Kn=_((Bi-Xn[yi])/2),On=-bs),h.push([ce[yi],Kn,On]),Bi=Xn[yi]}else if(Me==="left"){h=[],yn=ce.length;for(var za=0;za<yn;za++)h.push(ce[za])}else{if(Me!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');h=[],yn=ce.length,ir=ir!==0?ir:ku;for(var Jn=0;Jn<yn;Jn++)On=Jn===0?Ci(it):-bs,Kn=Jn===0?vi(P):0,Jn<yn-1?Oi.push(tt(_((ir-Xn[Jn])/(ce[Jn].split(" ").length-1)))):Oi.push(0),h.push([ce[Jn],Kn,On])}}var Ua=typeof vt.R2L=="boolean"?vt.R2L:Le;Ua===!0&&(h=ds(h,function(Sr,kr,qr){return[Sr.split("").reverse().join(""),kr,qr]})),Vt={text:h,x:P,y:it,options:vt,mutex:{pdfEscape:bn,activeFontKey:ze,fonts:lr,activeFontSize:he}},or.publish("postProcessText",Vt),h=Vt.text,Qn=Vt.mutex.isHex||!1;var ys=lr[ze].encoding;ys!=="WinAnsiEncoding"&&ys!=="StandardEncoding"||(h=ds(h,function(Sr,kr,qr){return[go(Sr),kr,qr]})),ce=fs(h),h=[];for(var ji,$n,wi,ra=0,qa=1,na=Array.isArray(ce[0])?qa:ra,Di="",ws=function(Sr,kr,qr){var Qr="";return qr instanceof Ge?(qr=typeof vt.angle=="number"?Hn(qr,new Ge(1,0,0,1,Sr,kr)):Hn(new Ge(1,0,0,1,Sr,kr),qr),G===R.ADVANCED&&(qr=Hn(new Ge(1,0,0,-1,0,0),qr)),Qr=qr.join(" ")+" Tm\n"):Qr=tt(Sr)+" "+tt(kr)+" Td\n",Qr},Bn=0;Bn<ce.length;Bn++){switch(Di="",na){case qa:wi=(Qn?"<":"(")+ce[Bn][0]+(Qn?">":")"),ji=parseFloat(ce[Bn][1]),$n=parseFloat(ce[Bn][2]);break;case ra:wi=(Qn?"<":"(")+ce[Bn]+(Qn?">":")"),ji=vi(P),$n=Ci(it)}Oi!==void 0&&Oi[Bn]!==void 0&&(Di=Oi[Bn]+" Tw\n"),Bn===0?h.push(Di+ws(ji,$n,jr)+wi):na===ra?h.push(Di+wi):na===qa&&h.push(Di+ws(ji,$n,jr)+wi)}h=na===ra?h.join(" Tj\nT* "):h.join(" Tj\n"),h+=" Tj\n";var Ai="BT\n/";return Ai+=ze+" "+he+" Tf\n",Ai+=tt(he*Sn)+" TL\n",Ai+=ta+"\n",Ai+=tn,Ai+=h,st(Ai+="ET"),m[ze]=!0,Gr};var vu=f.__private__.clip=f.clip=function(h){return st(h==="evenodd"?"W*":"W"),this};f.clipEvenOdd=function(){return vu("evenodd")},f.__private__.discardPath=f.discardPath=function(){return st("n"),this};var fi=f.__private__.isValidStyle=function(h){var P=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(h)!==-1&&(P=!0),P};f.__private__.setDefaultPathOperation=f.setDefaultPathOperation=function(h){return fi(h)&&(v=h),this};var so=f.__private__.getStyle=f.getStyle=function(h){var P=v;switch(h){case"D":case"S":P="S";break;case"F":P="f";break;case"FD":case"DF":P="B";break;case"f":case"f*":case"B":case"B*":P=h}return P},oo=f.close=function(){return st("h"),this};f.stroke=function(){return st("S"),this},f.fill=function(h){return Ca("f",h),this},f.fillEvenOdd=function(h){return Ca("f*",h),this},f.fillStroke=function(h){return Ca("B",h),this},f.fillStrokeEvenOdd=function(h){return Ca("B*",h),this};var Ca=function(h,P){(0,xt.A)(P)==="object"?yu(P,h):st(h)},rs=function(h){h===null||G===R.ADVANCED&&h===void 0||(h=so(h),st(h))};function bu(h,P,it,vt,Bt){var Vt=new fa(P||this.boundingBox,it||this.xStep,vt||this.yStep,this.gState,Bt||this.matrix);Vt.stream=this.stream;var ce=h+"$$"+this.cloneIndex+++"$$";return vn(ce,Vt),Vt}var yu=function(h,P){var it=si[h.key],vt=cr[it];if(vt instanceof Zi)st("q"),st(wu(P)),vt.gState&&f.setGState(vt.gState),st(h.matrix.toString()+" cm"),st("/"+it+" sh"),st("Q");else if(vt instanceof fa){var Bt=new Ge(1,0,0,-1,0,Ei());h.matrix&&(Bt=Bt.multiply(h.matrix||li),it=bu.call(vt,h.key,h.boundingBox,h.xStep,h.yStep,Bt).id),st("q"),st("/Pattern cs"),st("/"+it+" scn"),vt.gState&&f.setGState(vt.gState),st(P),st("Q")}},wu=function(h){switch(h){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},ns=f.moveTo=function(h,P){return st(tt(_(h))+" "+tt(C(P))+" m"),this},Ji=f.lineTo=function(h,P){return st(tt(_(h))+" "+tt(C(P))+" l"),this},Ii=f.curveTo=function(h,P,it,vt,Bt,Vt){return st([tt(_(h)),tt(C(P)),tt(_(it)),tt(C(vt)),tt(_(Bt)),tt(C(Vt)),"c"].join(" ")),this};f.__private__.line=f.line=function(h,P,it,vt,Bt){if(isNaN(h)||isNaN(P)||isNaN(it)||isNaN(vt)||!fi(Bt))throw new Error("Invalid arguments passed to jsPDF.line");return G===R.COMPAT?this.lines([[it-h,vt-P]],h,P,[1,1],Bt||"S"):this.lines([[it-h,vt-P]],h,P,[1,1]).stroke()},f.__private__.lines=f.lines=function(h,P,it,vt,Bt,Vt){var ce,Se,Me,$e,ir,hr,Fr,jr,Gr,hn,tn,Qn;if(typeof h=="number"&&(Qn=it,it=P,P=h,h=Qn),vt=vt||[1,1],Vt=Vt||!1,isNaN(P)||isNaN(it)||!Array.isArray(h)||!Array.isArray(vt)||!fi(Bt)||typeof Vt!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(ns(P,it),ce=vt[0],Se=vt[1],$e=h.length,hn=P,tn=it,Me=0;Me<$e;Me++)(ir=h[Me]).length===2?(hn=ir[0]*ce+hn,tn=ir[1]*Se+tn,Ji(hn,tn)):(hr=ir[0]*ce+hn,Fr=ir[1]*Se+tn,jr=ir[2]*ce+hn,Gr=ir[3]*Se+tn,hn=ir[4]*ce+hn,tn=ir[5]*Se+tn,Ii(hr,Fr,jr,Gr,hn,tn));return Vt&&oo(),rs(Bt),this},f.path=function(h){for(var P=0;P<h.length;P++){var it=h[P],vt=it.c;switch(it.op){case"m":ns(vt[0],vt[1]);break;case"l":Ji(vt[0],vt[1]);break;case"c":Ii.apply(this,vt);break;case"h":oo()}}return this},f.__private__.rect=f.rect=function(h,P,it,vt,Bt){if(isNaN(h)||isNaN(P)||isNaN(it)||isNaN(vt)||!fi(Bt))throw new Error("Invalid arguments passed to jsPDF.rect");return G===R.COMPAT&&(vt=-vt),st([tt(_(h)),tt(C(P)),tt(_(it)),tt(_(vt)),"re"].join(" ")),rs(Bt),this},f.__private__.triangle=f.triangle=function(h,P,it,vt,Bt,Vt,ce){if(isNaN(h)||isNaN(P)||isNaN(it)||isNaN(vt)||isNaN(Bt)||isNaN(Vt)||!fi(ce))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[it-h,vt-P],[Bt-it,Vt-vt],[h-Bt,P-Vt]],h,P,[1,1],ce,!0),this},f.__private__.roundedRect=f.roundedRect=function(h,P,it,vt,Bt,Vt,ce){if(isNaN(h)||isNaN(P)||isNaN(it)||isNaN(vt)||isNaN(Bt)||isNaN(Vt)||!fi(ce))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Se=4/3*(Math.SQRT2-1);return Bt=Math.min(Bt,.5*it),Vt=Math.min(Vt,.5*vt),this.lines([[it-2*Bt,0],[Bt*Se,0,Bt,Vt-Vt*Se,Bt,Vt],[0,vt-2*Vt],[0,Vt*Se,-Bt*Se,Vt,-Bt,Vt],[2*Bt-it,0],[-Bt*Se,0,-Bt,-Vt*Se,-Bt,-Vt],[0,2*Vt-vt],[0,-Vt*Se,Bt*Se,-Vt,Bt,-Vt]],h+Bt,P,[1,1],ce,!0),this},f.__private__.ellipse=f.ellipse=function(h,P,it,vt,Bt){if(isNaN(h)||isNaN(P)||isNaN(it)||isNaN(vt)||!fi(Bt))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Vt=4/3*(Math.SQRT2-1)*it,ce=4/3*(Math.SQRT2-1)*vt;return ns(h+it,P),Ii(h+it,P-ce,h+Vt,P-vt,h,P-vt),Ii(h-Vt,P-vt,h-it,P-ce,h-it,P),Ii(h-it,P+ce,h-Vt,P+vt,h,P+vt),Ii(h+Vt,P+vt,h+it,P+ce,h+it,P),rs(Bt),this},f.__private__.circle=f.circle=function(h,P,it,vt){if(isNaN(h)||isNaN(P)||isNaN(it)||!fi(vt))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(h,P,it,it,vt)},f.setFont=function(h,P,it){return it&&(P=Z(P,it)),ze=no(h,P,{disableWarning:!1}),this};var Au=f.__private__.getFont=f.getFont=function(){return lr[no.apply(f,arguments)]};f.__private__.getFontList=f.getFontList=function(){var h,P,it={};for(h in wr)if(wr.hasOwnProperty(h))for(P in it[h]=[],wr[h])wr[h].hasOwnProperty(P)&&it[h].push(P);return it},f.addFont=function(h,P,it,vt,Bt){var Vt=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Vt.indexOf(arguments[3])!==-1?Bt=arguments[3]:arguments[3]&&Vt.indexOf(arguments[3])==-1&&(it=Z(it,vt)),Bt=Bt||"Identity-H",$a.call(this,h,P,it,Bt)};var $i,is=r.lineWidth||.200025,Fa=f.__private__.getLineWidth=f.getLineWidth=function(){return is},uo=f.__private__.setLineWidth=f.setLineWidth=function(h){return is=h,st(tt(_(h))+" w"),this};f.__private__.setLineDash=We.API.setLineDash=We.API.setLineDashPattern=function(h,P){if(h=h||[],P=P||0,isNaN(P)||!Array.isArray(h))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return h=h.map(function(it){return tt(_(it))}).join(" "),P=tt(_(P)),st("["+h+"] "+P+" d"),this};var lo=f.__private__.getLineHeight=f.getLineHeight=function(){return he*$i};f.__private__.getLineHeight=f.getLineHeight=function(){return he*$i};var co=f.__private__.setLineHeightFactor=f.setLineHeightFactor=function(h){return typeof(h=h||1.15)=="number"&&($i=h),this},ho=f.__private__.getLineHeightFactor=f.getLineHeightFactor=function(){return $i};co(r.lineHeight);var vi=f.__private__.getHorizontalCoordinate=function(h){return _(h)},Ci=f.__private__.getVerticalCoordinate=function(h){return G===R.ADVANCED?h:He[H].mediaBox.topRightY-He[H].mediaBox.bottomLeftY-_(h)},_u=f.__private__.getHorizontalCoordinateString=f.getHorizontalCoordinateString=function(h){return tt(vi(h))},Fi=f.__private__.getVerticalCoordinateString=f.getVerticalCoordinateString=function(h){return tt(Ci(h))},Yn=r.strokeColor||"0 G";f.__private__.getStrokeColor=f.getDrawColor=function(){return Gn(Yn)},f.__private__.setStrokeColor=f.setDrawColor=function(h,P,it,vt){return Yn=Vn({ch1:h,ch2:P,ch3:it,ch4:vt,pdfColorType:"draw",precision:2}),st(Yn),this};var as=r.fillColor||"0 g";f.__private__.getFillColor=f.getFillColor=function(){return Gn(as)},f.__private__.setFillColor=f.setFillColor=function(h,P,it,vt){return as=Vn({ch1:h,ch2:P,ch3:it,ch4:vt,pdfColorType:"fill",precision:2}),st(as),this};var ta=r.textColor||"0 g",xu=f.__private__.getTextColor=f.getTextColor=function(){return Gn(ta)};f.__private__.setTextColor=f.setTextColor=function(h,P,it,vt){return ta=Vn({ch1:h,ch2:P,ch3:it,ch4:vt,pdfColorType:"text",precision:3}),this};var Ea=r.charSpace,Lu=f.__private__.getCharSpace=f.getCharSpace=function(){return parseFloat(Ea||0)};f.__private__.setCharSpace=f.setCharSpace=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ea=h,this};var ss=0;f.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},f.__private__.setLineCap=f.setLineCap=function(h){var P=f.CapJoinStyles[h];if(P===void 0)throw new Error("Line cap style of '"+h+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ss=P,st(P+" J"),this};var os=0;f.__private__.setLineJoin=f.setLineJoin=function(h){var P=f.CapJoinStyles[h];if(P===void 0)throw new Error("Line join style of '"+h+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return os=P,st(P+" j"),this},f.__private__.setLineMiterLimit=f.__private__.setMiterLimit=f.setLineMiterLimit=f.setMiterLimit=function(h){if(h=h||0,isNaN(h))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return st(tt(_(h))+" M"),this},f.GState=Bs,f.setGState=function(h){(h=typeof h=="string"?Ar[Ln[h]]:fo(null,h)).equals(Jr)||(st("/"+h.id+" gs"),Jr=h)};var fo=function(h,P){if(!h||!Ln[h]){var it=!1;for(var vt in Ar)if(Ar.hasOwnProperty(vt)&&Ar[vt].equals(P)){it=!0;break}if(it)P=Ar[vt];else{var Bt="GS"+(Object.keys(Ar).length+1).toString(10);Ar[Bt]=P,P.id=Bt}return h&&(Ln[h]=P.id),or.publish("addGState",P),P}};f.addGState=function(h,P){return fo(h,P),this},f.saveGraphicsState=function(){return st("q"),Fn.push({key:ze,size:he,color:ta}),this},f.restoreGraphicsState=function(){st("Q");var h=Fn.pop();return ze=h.key,he=h.size,ta=h.color,Jr=null,this},f.setCurrentTransformationMatrix=function(h){return st(h.toString()+" cm"),this},f.comment=function(h){return st("#"+h),this};var Oa=function(h,P){var it=h||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return it},set:function(Vt){isNaN(Vt)||(it=parseFloat(Vt))}});var vt=P||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return vt},set:function(Vt){isNaN(Vt)||(vt=parseFloat(Vt))}});var Bt="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Bt},set:function(Vt){Bt=Vt.toString()}}),this},us=function(h,P,it,vt){Oa.call(this,h,P),this.type="rect";var Bt=it||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Bt},set:function(ce){isNaN(ce)||(Bt=parseFloat(ce))}});var Vt=vt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Vt},set:function(ce){isNaN(ce)||(Vt=parseFloat(ce))}}),this},ls=function(){this.page=pr,this.currentPage=H,this.pages=re.slice(0),this.pagesContext=He.slice(0),this.x=vr,this.y=tr,this.matrix=Br,this.width=ea(H),this.height=Ei(H),this.outputDestination=xe,this.id="",this.objectNumber=-1};ls.prototype.restore=function(){pr=this.page,H=this.currentPage,He=this.pagesContext,re=this.pages,vr=this.x,tr=this.y,Br=this.matrix,cs(H,this.width),hs(H,this.height),xe=this.outputDestination};var po=function(h,P,it,vt,Bt){ui.push(new ls),pr=H=0,re=[],vr=h,tr=P,Br=Bt,ts([it,vt])},Nu=function(h){if($r[h])ui.pop().restore();else{var P=new ls,it="Xo"+(Object.keys(Pr).length+1).toString(10);P.id=it,$r[h]=it,Pr[it]=P,or.publish("addFormObject",P),ui.pop().restore()}};for(var Ba in f.beginFormObject=function(h,P,it,vt,Bt){return po(h,P,it,vt,Bt),this},f.endFormObject=function(h){return Nu(h),this},f.doFormObject=function(h,P){var it=Pr[$r[h]];return st("q"),st(P.toString()+" cm"),st("/"+it.id+" Do"),st("Q"),this},f.getFormObject=function(h){var P=Pr[$r[h]];return{x:P.x,y:P.y,width:P.width,height:P.height,matrix:P.matrix}},f.save=function(h,P){return h=h||"generated.pdf",(P=P||{}).returnPromise=P.returnPromise||!1,P.returnPromise===!1?(Vi(Pa(mi()),h),typeof Vi.unload=="function"&&Ve.setTimeout&&setTimeout(Vi.unload,911),this):new Promise(function(it,vt){try{var Bt=Vi(Pa(mi()),h);typeof Vi.unload=="function"&&Ve.setTimeout&&setTimeout(Vi.unload,911),it(Bt)}catch(Vt){vt(Vt.message)}})},We.API)We.API.hasOwnProperty(Ba)&&(Ba==="events"&&We.API.events.length?function(h,P){var it,vt,Bt;for(Bt=P.length-1;Bt!==-1;Bt--)it=P[Bt][0],vt=P[Bt][1],h.subscribe.apply(h,[it].concat(typeof vt=="function"?[vt]:vt))}(or,We.API.events):f[Ba]=We.API[Ba]);var ea=f.getPageWidth=function(h){return(He[h=h||H].mediaBox.topRightX-He[h].mediaBox.bottomLeftX)/Ae},cs=f.setPageWidth=function(h,P){He[h].mediaBox.topRightX=P*Ae+He[h].mediaBox.bottomLeftX},Ei=f.getPageHeight=function(h){return(He[h=h||H].mediaBox.topRightY-He[h].mediaBox.bottomLeftY)/Ae},hs=f.setPageHeight=function(h,P){He[h].mediaBox.topRightY=P*Ae+He[h].mediaBox.bottomLeftY};return f.internal={pdfEscape:bn,getStyle:so,getFont:Au,getFontSize:ge,getCharSpace:Lu,getTextColor:xu,getLineHeight:lo,getLineHeightFactor:ho,getLineWidth:Fa,write:Fe,getHorizontalCoordinate:vi,getVerticalCoordinate:Ci,getCoordinateString:_u,getVerticalCoordinateString:Fi,collections:{},newObject:Yr,newAdditionalObject:wa,newObjectDeferred:Wr,newObjectDeferredBegin:Nn,getFilters:ci,putStream:En,events:or,scaleFactor:Ae,pageSize:{getWidth:function(){return ea(H)},setWidth:function(h){cs(H,h)},getHeight:function(){return Ei(H)},setHeight:function(h){hs(H,h)}},encryptionOptions:d,encryption:cn,getEncryptor:gu,output:Ia,getNumberOfPages:cu,pages:re,out:st,f2:Y,f3:x,getPageInfo:ao,getPageInfoByObjId:Ke,getCurrentPageInfo:mu,getPDFVersion:L,Point:Oa,Rectangle:us,Matrix:Ge,hasHotfix:io},Object.defineProperty(f.internal.pageSize,"width",{get:function(){return ea(H)},set:function(h){cs(H,h)},enumerable:!0,configurable:!0}),Object.defineProperty(f.internal.pageSize,"height",{get:function(){return Ei(H)},set:function(h){hs(H,h)},enumerable:!0,configurable:!0}),uu.call(f,ne),ze="F1",eo(s,e),or.publish("initialized"),f}ca.prototype.lsbFirstWord=function(r){return String.fromCharCode(r>>0&255,r>>8&255,r>>16&255,r>>24&255)},ca.prototype.toHexString=function(r){return r.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},ca.prototype.hexToBytes=function(r){for(var t=[],e=0;e<r.length;e+=2)t.push(String.fromCharCode(parseInt(r.substr(e,2),16)));return t.join("")},ca.prototype.processOwnerPassword=function(r,t){return Go(Wo(t).substr(0,5),r)},ca.prototype.encryptor=function(r,t){var e=Wo(this.encryptionKey+String.fromCharCode(255&r,r>>8&255,r>>16&255,255&t,t>>8&255)).substr(0,10);return function(a){return Go(e,a)}},Bs.prototype.equals=function(r){var t,e="id,objectNumber,equals";if(!r||(0,xt.A)(r)!==(0,xt.A)(this))return!1;var a=0;for(t in this)if(!(e.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!r.hasOwnProperty(t)||this[t]!==r[t])return!1;a++}for(t in r)r.hasOwnProperty(t)&&e.indexOf(t)<0&&a--;return a===0},We.API={events:[]},We.version="2.5.1";var Or=We.API,Vo=1,Yi=function(r){return r.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},da=function(r){return r.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Je=function(r){return r.toFixed(2)},ki=function(r){return r.toFixed(5)};Or.__acroform__={};var gn=function(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r},sl=function(r){return r*Vo},ri=function(r){var t=new ul,e=Ee.internal.getHeight(r)||0,a=Ee.internal.getWidth(r)||0;return t.BBox=[0,0,Number(Je(a)),Number(Je(e))],t},Pc=Or.__acroform__.setBit=function(r,t){if(r=r||0,t=t||0,isNaN(r)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return r|=1<<t},Ic=Or.__acroform__.clearBit=function(r,t){if(r=r||0,t=t||0,isNaN(r)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return r&=~(1<<t)},Cc=Or.__acroform__.getBit=function(r,t){if(isNaN(r)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return r&1<<t?1:0},Tr=Or.__acroform__.getBitForPdf=function(r,t){if(isNaN(r)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Cc(r,t-1)},Mr=Or.__acroform__.setBitForPdf=function(r,t){if(isNaN(r)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Pc(r,t-1)},zr=Or.__acroform__.clearBitForPdf=function(r,t){if(isNaN(r)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Ic(r,t-1)},Fc=Or.__acroform__.calculateCoordinates=function(r,t){var e=t.internal.getHorizontalCoordinate,a=t.internal.getVerticalCoordinate,s=r[0],i=r[1],o=r[2],l=r[3],c={};return c.lowerLeft_X=e(s)||0,c.lowerLeft_Y=a(i+l)||0,c.upperRight_X=e(s+o)||0,c.upperRight_Y=a(i)||0,[Number(Je(c.lowerLeft_X)),Number(Je(c.lowerLeft_Y)),Number(Je(c.upperRight_X)),Number(Je(c.upperRight_Y))]},Ec=function(r){if(r.appearanceStreamContent)return r.appearanceStreamContent;if(r.V||r.DV){var t=[],e=r._V||r.DV,a=Zo(r,e),s=r.scope.internal.getFont(r.fontName,r.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(r.scope.__private__.encodeColorString(r.color)),t.push("/"+s+" "+Je(a.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(a.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=ri(r);return i.scope=r.scope,i.stream=t.join("\n"),i}},Zo=function(r,t){var e=r.fontSize===0?r.maxFontSize:r.fontSize,a={text:"",fontSize:""},s=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");s=r.multiline?s.map(function(x){return x.split("\n")}):s.map(function(x){return[x]});var i=e,o=Ee.internal.getHeight(r)||0;o=o<0?-o:o;var l=Ee.internal.getWidth(r)||0;l=l<0?-l:l;var c=function(x,_,T){if(x+1<s.length){var C=_+" "+s[x+1][0];return js(C,r,T).width<=l-4}return!1};i++;t:for(;i>0;){t="",i--;var v,d,g=js("3",r,i).height,m=r.multiline?o-i:(o-g)/2,f=m+=2,w=0,L=0,E=0;if(i<=0){t="(...) Tj\n",t+="% Width of Text: "+js(t,r,i=12).width+", FieldWidth:"+l+"\n";break}for(var y="",R=0,G=0;G<s.length;G++)if(s.hasOwnProperty(G)){var Q=!1;if(s[G].length!==1&&E!==s[G].length-1){if((g+2)*(R+2)+2>o)continue t;y+=s[G][E],Q=!0,L=G,G--}else{y=(y+=s[G][E]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var ht=parseInt(G),Z=c(ht,y,i),tt=G>=s.length-1;if(Z&&!tt){y+=" ",E=0;continue}if(Z||tt){if(tt)L=ht;else if(r.multiline&&(g+2)*(R+2)+2>o)continue t}else{if(!r.multiline||(g+2)*(R+2)+2>o)continue t;L=ht}}for(var A="",B=w;B<=L;B++){var Y=s[B];if(r.multiline){if(B===L){A+=Y[E]+" ",E=(E+1)%Y.length;continue}if(B===w){A+=Y[Y.length-1]+" ";continue}}A+=Y[0]+" "}switch(A=A.substr(A.length-1)==" "?A.substr(0,A.length-1):A,d=js(A,r,i).width,r.textAlign){case"right":v=l-d-2;break;case"center":v=(l-d)/2;break;case"left":default:v=2}t+=Je(v)+" "+Je(f)+" Td\n",t+="("+Yi(A)+") Tj\n",t+=-Je(v)+" 0 Td\n",f=-(i+2),d=0,w=Q?L:L+1,R++,y=""}break}return a.text=t,a.fontSize=i,a},js=function(r,t,e){var a=t.scope.internal.getFont(t.fontName,t.fontStyle),s=t.scope.getStringUnitWidth(r,{font:a,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:t.scope.getStringUnitWidth("3",{font:a,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:s}},Oc={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Bc=function(r,t){var e={type:"reference",object:r};t.internal.getPageInfo(r.page).pageContext.annotations.find(function(a){return a.type===e.type&&a.object===e.object})===void 0&&t.internal.getPageInfo(r.page).pageContext.annotations.push(e)},jc=function(r,t){for(var e in r)if(r.hasOwnProperty(e)){var a=e,s=r[e];t.internal.newObjectDeferredBegin(s.objId,!0),(0,xt.A)(s)==="object"&&typeof s.putStream=="function"&&s.putStream(),delete r[a]}},Dc=function(r,t){if(t.scope=r,r.internal!==void 0&&(r.internal.acroformPlugin===void 0||r.internal.acroformPlugin.isInitialized===!1)){if(Mn.FieldNum=0,r.internal.acroformPlugin=JSON.parse(JSON.stringify(Oc)),r.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Vo=r.internal.scaleFactor,r.internal.acroformPlugin.acroFormDictionaryRoot=new ll,r.internal.acroformPlugin.acroFormDictionaryRoot.scope=r,r.internal.acroformPlugin.acroFormDictionaryRoot._eventID=r.internal.events.subscribe("postPutResources",function(){(function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})(r)}),r.internal.events.subscribe("buildDocument",function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var a=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var s in a)if(a.hasOwnProperty(s)){var i=a[s];i.objId=void 0,i.hasAnnotation&&Bc(i,e)}})(r)}),r.internal.events.subscribe("putCatalog",function(){(function(e){if(e.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(r)}),r.internal.events.subscribe("postPutPages",function(e){(function(a,s){var i=!a;for(var o in a||(s.internal.newObjectDeferredBegin(s.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),s.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),a=a||s.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(a.hasOwnProperty(o)){var l=a[o],c=[],v=l.Rect;if(l.Rect&&(l.Rect=Fc(l.Rect,s)),s.internal.newObjectDeferredBegin(l.objId,!0),l.DA=Ee.createDefaultAppearanceStream(l),(0,xt.A)(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(c=l.getKeyValueListForStream()),l.Rect=v,l.hasAppearanceStream&&!l.appearanceStreamContent){var d=Ec(l);c.push({key:"AP",value:"<</N "+d+">>"}),s.internal.acroformPlugin.xForms.push(d)}if(l.appearanceStreamContent){var g="";for(var m in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(m)){var f=l.appearanceStreamContent[m];if(g+="/"+m+" ",g+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var o in f)if(f.hasOwnProperty(o)){var w=f[o];typeof w=="function"&&(w=w.call(s,l)),g+="/"+o+" "+w+" ",s.internal.acroformPlugin.xForms.indexOf(w)>=0||s.internal.acroformPlugin.xForms.push(w)}}else typeof(w=f)=="function"&&(w=w.call(s,l)),g+="/"+o+" "+w,s.internal.acroformPlugin.xForms.indexOf(w)>=0||s.internal.acroformPlugin.xForms.push(w);g+=">>"}c.push({key:"AP",value:"<<\n"+g+">>"})}s.internal.putStream({additionalKeyValues:c,objectId:l.objId}),s.internal.out("endobj")}i&&jc(s.internal.acroformPlugin.xForms,s)})(e,r)}),r.internal.acroformPlugin.isInitialized=!0}},ol=Or.__acroform__.arrayToPdfArray=function(r,t,e){var a=function(o){return o};if(Array.isArray(r)){for(var s="[",i=0;i<r.length;i++)switch(i!==0&&(s+=" "),(0,xt.A)(r[i])){case"boolean":case"number":case"object":s+=r[i].toString();break;case"string":r[i].substr(0,1)!=="/"?(t!==void 0&&e&&(a=e.internal.getEncryptor(t)),s+="("+Yi(a(r[i].toString()))+")"):s+=r[i].toString()}return s+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Yo=function(r,t,e){var a=function(s){return s};return t!==void 0&&e&&(a=e.internal.getEncryptor(t)),(r=r||"").toString(),r="("+Yi(a(r))+")"},ni=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(r){this._objId=r}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ni.prototype.toString=function(){return this.objId+" 0 R"},ni.prototype.putStream=function(){var r=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:r,objectId:this.objId}),this.scope.internal.out("endobj")},ni.prototype.getKeyValueListForStream=function(){var r=[],t=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var e in t)if(Object.getOwnPropertyDescriptor(this,t[e]).configurable===!1){var a=t[e],s=this[a];s&&(Array.isArray(s)?r.push({key:a,value:ol(s,this.objId,this.scope)}):s instanceof ni?(s.scope=this.scope,r.push({key:a,value:s.objId+" 0 R"})):typeof s!="function"&&r.push({key:a,value:s}))}return r};var ul=function(){ni.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var r,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){r=e.trim()},get:function(){return r||null}})};gn(ul,ni);var ll=function(){ni.call(this);var r,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(r){var e=function(a){return a};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Yi(e(r))+")"}},set:function(e){r=e}})};gn(ll,ni);var Mn=function r(){ni.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute F supplied.');t=y}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Tr(t,3)},set:function(y){y?this.F=Mr(t,3):this.F=zr(t,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute Ff supplied.');e=y}});var a=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(a.length!==0)return a},set:function(y){a=y!==void 0?y:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[0])?0:a[0]},set:function(y){a[0]=y}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[1])?0:a[1]},set:function(y){a[1]=y}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[2])?0:a[2]},set:function(y){a[2]=y}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[3])?0:a[3]},set:function(y){a[3]=y}});var s="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return s},set:function(y){switch(y){case"/Btn":case"/Tx":case"/Ch":case"/Sig":s=y;break;default:throw new Error('Invalid value "'+y+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof Ts)return;i="FieldObject"+r.FieldNum++}var y=function(R){return R};return this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),"("+Yi(y(i))+")"},set:function(y){i=y.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(y){i=y}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(y){o=y}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(y){l=y}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(y){c=y}});var v=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return v===void 0?50/Vo:v},set:function(y){v=y}});var d="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return d},set:function(y){d=y}});var g="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!g||this instanceof Ts||this instanceof Qi))return Yo(g,this.objId,this.scope)},set:function(y){y=y.toString(),g=y}});var m=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(m)return this instanceof Kr?m:Yo(m,this.objId,this.scope)},set:function(y){y=y.toString(),m=this instanceof Kr?y:y.substr(0,1)==="("?da(y.substr(1,y.length-2)):da(y)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Kr?da(m.substr(1,m.length-1)):m},set:function(y){y=y.toString(),m=this instanceof Kr?"/"+y:y}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(y){this.V=y}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof Kr?f:Yo(f,this.objId,this.scope)},set:function(y){y=y.toString(),f=this instanceof Kr?y:y.substr(0,1)==="("?da(y.substr(1,y.length-2)):da(y)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Kr?da(f.substr(1,f.length-1)):f},set:function(y){y=y.toString(),f=this instanceof Kr?"/"+y:y}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var w,L=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return L},set:function(y){y=!!y,L=y}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(w)return w},set:function(y){w=y}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,1)},set:function(y){y?this.Ff=Mr(this.Ff,1):this.Ff=zr(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,2)},set:function(y){y?this.Ff=Mr(this.Ff,2):this.Ff=zr(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,3)},set:function(y){y?this.Ff=Mr(this.Ff,3):this.Ff=zr(this.Ff,3)}});var E=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(E!==null)return E},set:function(y){if([0,1,2].indexOf(y)===-1)throw new Error('Invalid value "'+y+'" for attribute Q supplied.');E=y}}),Object.defineProperty(this,"textAlign",{get:function(){var y;switch(E){case 0:default:y="left";break;case 1:y="center";break;case 2:y="right"}return y},configurable:!0,enumerable:!0,set:function(y){switch(y){case"right":case 2:E=2;break;case"center":case 1:E=1;break;case"left":case 0:default:E=0}}})};gn(Mn,ni);var pa=function(){Mn.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var r=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return r},set:function(e){r=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return r},set:function(e){r=e}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return ol(t,this.objId,this.scope)},set:function(e){var a,s;s=[],typeof(a=e)=="string"&&(s=function(i,o,l){l||(l=1);for(var c,v=[];c=o.exec(i);)v.push(c[l]);return v}(a,/\((.*?)\)/g)),t=s}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,a){for(a=a||!1,e=(e=e||"").toString();t.indexOf(e)!==-1&&(t.splice(t.indexOf(e),1),a!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,18)},set:function(e){e?this.Ff=Mr(this.Ff,18):this.Ff=zr(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=Mr(this.Ff,19):this.Ff=zr(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,20)},set:function(e){e?(this.Ff=Mr(this.Ff,20),t.sort()):this.Ff=zr(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,22)},set:function(e){e?this.Ff=Mr(this.Ff,22):this.Ff=zr(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,23)},set:function(e){e?this.Ff=Mr(this.Ff,23):this.Ff=zr(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,27)},set:function(e){e?this.Ff=Mr(this.Ff,27):this.Ff=zr(this.Ff,27)}}),this.hasAppearanceStream=!1};gn(pa,Mn);var ga=function(){pa.call(this),this.fontName="helvetica",this.combo=!1};gn(ga,pa);var ma=function(){ga.call(this),this.combo=!0};gn(ma,ga);var Ds=function(){ma.call(this),this.edit=!0};gn(Ds,ma);var Kr=function(){Mn.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,15)},set:function(e){e?this.Ff=Mr(this.Ff,15):this.Ff=zr(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,16)},set:function(e){e?this.Ff=Mr(this.Ff,16):this.Ff=zr(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,17)},set:function(e){e?this.Ff=Mr(this.Ff,17):this.Ff=zr(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,26)},set:function(e){e?this.Ff=Mr(this.Ff,26):this.Ff=zr(this.Ff,26)}});var r,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(i){return i};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var a,s=[];for(a in s.push("<<"),t)s.push("/"+a+" ("+Yi(e(t[a]))+")");return s.push(">>"),s.join("\n")}},set:function(e){(0,xt.A)(e)==="object"&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){typeof e=="string"&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(e){r=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(e){r="/"+e}})};gn(Kr,Mn);var Rs=function(){Kr.call(this),this.pushButton=!0};gn(Rs,Kr);var va=function(){Kr.call(this),this.radio=!0,this.pushButton=!1;var r=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return r},set:function(t){r=t!==void 0?t:[]}})};gn(va,Kr);var Ts=function(){var r,t;Mn.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return r},set:function(s){r=s}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(s){t=s}});var e,a={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var s=function(l){return l};this.scope&&(s=this.scope.internal.getEncryptor(this.objId));var i,o=[];for(i in o.push("<<"),a)o.push("/"+i+" ("+Yi(s(a[i]))+")");return o.push(">>"),o.join("\n")},set:function(s){(0,xt.A)(s)==="object"&&(a=s)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return a.CA||""},set:function(s){typeof s=="string"&&(a.CA=s)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(s){e=s}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(s){e="/"+s}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Ee.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};gn(Ts,Mn),va.prototype.setAppearance=function(r){if(!("createAppearanceStream"in r)||!("getCA"in r))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var e=this.Kids[t];e.appearanceStreamContent=r.createAppearanceStream(e.optionName),e.caption=r.getCA()}},va.prototype.createOption=function(r){var t=new Ts;return t.Parent=this,t.optionName=r,this.Kids.push(t),Rc.call(this.scope,t),t};var Ms=function(){Kr.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ee.CheckBox.createAppearanceStream()};gn(Ms,Kr);var Qi=function(){Mn.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,13)},set:function(t){t?this.Ff=Mr(this.Ff,13):this.Ff=zr(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,21)},set:function(t){t?this.Ff=Mr(this.Ff,21):this.Ff=zr(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,23)},set:function(t){t?this.Ff=Mr(this.Ff,23):this.Ff=zr(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,24)},set:function(t){t?this.Ff=Mr(this.Ff,24):this.Ff=zr(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,25)},set:function(t){t?this.Ff=Mr(this.Ff,25):this.Ff=zr(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,26)},set:function(t){t?this.Ff=Mr(this.Ff,26):this.Ff=zr(this.Ff,26)}});var r=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return r},set:function(t){Number.isInteger(t)&&(r=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};gn(Qi,Mn);var zs=function(){Qi.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,14)},set:function(r){r?this.Ff=Mr(this.Ff,14):this.Ff=zr(this.Ff,14)}}),this.password=!0};gn(zs,Qi);var Ee={CheckBox:{createAppearanceStream:function(){return{N:{On:Ee.CheckBox.YesNormal},D:{On:Ee.CheckBox.YesPushDown,Off:Ee.CheckBox.OffPushDown}}},YesPushDown:function(r){var t=ri(r);t.scope=r.scope;var e=[],a=r.scope.internal.getFont(r.fontName,r.fontStyle).id,s=r.scope.__private__.encodeColorString(r.color),i=Zo(r,r.caption);return e.push("0.749023 g"),e.push("0 0 "+Je(Ee.internal.getWidth(r))+" "+Je(Ee.internal.getHeight(r))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+a+" "+Je(i.fontSize)+" Tf "+s),e.push("BT"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC"),t.stream=e.join("\n"),t},YesNormal:function(r){var t=ri(r);t.scope=r.scope;var e=r.scope.internal.getFont(r.fontName,r.fontStyle).id,a=r.scope.__private__.encodeColorString(r.color),s=[],i=Ee.internal.getHeight(r),o=Ee.internal.getWidth(r),l=Zo(r,r.caption);return s.push("1 g"),s.push("0 0 "+Je(o)+" "+Je(i)+" re"),s.push("f"),s.push("q"),s.push("0 0 1 rg"),s.push("0 0 "+Je(o-1)+" "+Je(i-1)+" re"),s.push("W"),s.push("n"),s.push("0 g"),s.push("BT"),s.push("/"+e+" "+Je(l.fontSize)+" Tf "+a),s.push(l.text),s.push("ET"),s.push("Q"),t.stream=s.join("\n"),t},OffPushDown:function(r){var t=ri(r);t.scope=r.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Je(Ee.internal.getWidth(r))+" "+Je(Ee.internal.getHeight(r))+" re"),e.push("f"),t.stream=e.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(r){var t={D:{Off:Ee.RadioButton.Circle.OffPushDown},N:{}};return t.N[r]=Ee.RadioButton.Circle.YesNormal,t.D[r]=Ee.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(r){var t=ri(r);t.scope=r.scope;var e=[],a=Ee.internal.getWidth(r)<=Ee.internal.getHeight(r)?Ee.internal.getWidth(r)/4:Ee.internal.getHeight(r)/4;a=Number((.9*a).toFixed(5));var s=Ee.internal.Bezier_C,i=Number((a*s).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+ki(Ee.internal.getWidth(r)/2)+" "+ki(Ee.internal.getHeight(r)/2)+" cm"),e.push(a+" 0 m"),e.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),e.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),e.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),e.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t},YesPushDown:function(r){var t=ri(r);t.scope=r.scope;var e=[],a=Ee.internal.getWidth(r)<=Ee.internal.getHeight(r)?Ee.internal.getWidth(r)/4:Ee.internal.getHeight(r)/4;a=Number((.9*a).toFixed(5));var s=Number((2*a).toFixed(5)),i=Number((s*Ee.internal.Bezier_C).toFixed(5)),o=Number((a*Ee.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+ki(Ee.internal.getWidth(r)/2)+" "+ki(Ee.internal.getHeight(r)/2)+" cm"),e.push(s+" 0 m"),e.push(s+" "+i+" "+i+" "+s+" 0 "+s+" c"),e.push("-"+i+" "+s+" -"+s+" "+i+" -"+s+" 0 c"),e.push("-"+s+" -"+i+" -"+i+" -"+s+" 0 -"+s+" c"),e.push(i+" -"+s+" "+s+" -"+i+" "+s+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+ki(Ee.internal.getWidth(r)/2)+" "+ki(Ee.internal.getHeight(r)/2)+" cm"),e.push(a+" 0 m"),e.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),e.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),e.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),e.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t},OffPushDown:function(r){var t=ri(r);t.scope=r.scope;var e=[],a=Ee.internal.getWidth(r)<=Ee.internal.getHeight(r)?Ee.internal.getWidth(r)/4:Ee.internal.getHeight(r)/4;a=Number((.9*a).toFixed(5));var s=Number((2*a).toFixed(5)),i=Number((s*Ee.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+ki(Ee.internal.getWidth(r)/2)+" "+ki(Ee.internal.getHeight(r)/2)+" cm"),e.push(s+" 0 m"),e.push(s+" "+i+" "+i+" "+s+" 0 "+s+" c"),e.push("-"+i+" "+s+" -"+s+" "+i+" -"+s+" 0 c"),e.push("-"+s+" -"+i+" -"+i+" -"+s+" 0 -"+s+" c"),e.push(i+" -"+s+" "+s+" -"+i+" "+s+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t}},Cross:{createAppearanceStream:function(r){var t={D:{Off:Ee.RadioButton.Cross.OffPushDown},N:{}};return t.N[r]=Ee.RadioButton.Cross.YesNormal,t.D[r]=Ee.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(r){var t=ri(r);t.scope=r.scope;var e=[],a=Ee.internal.calculateCross(r);return e.push("q"),e.push("1 1 "+Je(Ee.internal.getWidth(r)-2)+" "+Je(Ee.internal.getHeight(r)-2)+" re"),e.push("W"),e.push("n"),e.push(Je(a.x1.x)+" "+Je(a.x1.y)+" m"),e.push(Je(a.x2.x)+" "+Je(a.x2.y)+" l"),e.push(Je(a.x4.x)+" "+Je(a.x4.y)+" m"),e.push(Je(a.x3.x)+" "+Je(a.x3.y)+" l"),e.push("s"),e.push("Q"),t.stream=e.join("\n"),t},YesPushDown:function(r){var t=ri(r);t.scope=r.scope;var e=Ee.internal.calculateCross(r),a=[];return a.push("0.749023 g"),a.push("0 0 "+Je(Ee.internal.getWidth(r))+" "+Je(Ee.internal.getHeight(r))+" re"),a.push("f"),a.push("q"),a.push("1 1 "+Je(Ee.internal.getWidth(r)-2)+" "+Je(Ee.internal.getHeight(r)-2)+" re"),a.push("W"),a.push("n"),a.push(Je(e.x1.x)+" "+Je(e.x1.y)+" m"),a.push(Je(e.x2.x)+" "+Je(e.x2.y)+" l"),a.push(Je(e.x4.x)+" "+Je(e.x4.y)+" m"),a.push(Je(e.x3.x)+" "+Je(e.x3.y)+" l"),a.push("s"),a.push("Q"),t.stream=a.join("\n"),t},OffPushDown:function(r){var t=ri(r);t.scope=r.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Je(Ee.internal.getWidth(r))+" "+Je(Ee.internal.getHeight(r))+" re"),e.push("f"),t.stream=e.join("\n"),t}}},createDefaultAppearanceStream:function(r){var t=r.scope.internal.getFont(r.fontName,r.fontStyle).id,e=r.scope.__private__.encodeColorString(r.color);return"/"+t+" "+r.fontSize+" Tf "+e}};Ee.internal={Bezier_C:.551915024494,calculateCross:function(r){var t=Ee.internal.getWidth(r),e=Ee.internal.getHeight(r),a=Math.min(t,e);return{x1:{x:(t-a)/2,y:(e-a)/2+a},x2:{x:(t-a)/2+a,y:(e-a)/2},x3:{x:(t-a)/2,y:(e-a)/2},x4:{x:(t-a)/2+a,y:(e-a)/2+a}}}},Ee.internal.getWidth=function(r){var t=0;return(0,xt.A)(r)==="object"&&(t=sl(r.Rect[2])),t},Ee.internal.getHeight=function(r){var t=0;return(0,xt.A)(r)==="object"&&(t=sl(r.Rect[3])),t};var Rc=Or.addField=function(r){if(Dc(this,r),!(r instanceof Mn))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=r).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),r.page=r.scope.internal.getCurrentPageInfo().pageNumber,this};Or.AcroFormChoiceField=pa,Or.AcroFormListBox=ga,Or.AcroFormComboBox=ma,Or.AcroFormEditBox=Ds,Or.AcroFormButton=Kr,Or.AcroFormPushButton=Rs,Or.AcroFormRadioButton=va,Or.AcroFormCheckBox=Ms,Or.AcroFormTextField=Qi,Or.AcroFormPasswordField=zs,Or.AcroFormAppearance=Ee,Or.AcroForm={ChoiceField:pa,ListBox:ga,ComboBox:ma,EditBox:Ds,Button:Kr,PushButton:Rs,RadioButton:va,CheckBox:Ms,TextField:Qi,PasswordField:zs,Appearance:Ee},We.AcroForm={ChoiceField:pa,ListBox:ga,ComboBox:ma,EditBox:Ds,Button:Kr,PushButton:Rs,RadioButton:va,CheckBox:Ms,TextField:Qi,PasswordField:zs,Appearance:Ee};var bf=We.AcroForm;function cl(r){return r.reduce(function(t,e,a){return t[e]=a,t},{})}(function(r){r.__addimage__={};var t="UNKNOWN",e={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},a=r.__addimage__.getImageFileTypeByImageData=function(x,_){var T,C,$,F,I,at=t;if((_=_||t)==="RGBA"||x.data!==void 0&&x.data instanceof Uint8ClampedArray&&"height"in x&&"width"in x)return"RGBA";if(Z(x))for(I in e)for($=e[I],T=0;T<$.length;T+=1){for(F=!0,C=0;C<$[T].length;C+=1)if($[T][C]!==void 0&&$[T][C]!==x[C]){F=!1;break}if(F===!0){at=I;break}}else for(I in e)for($=e[I],T=0;T<$.length;T+=1){for(F=!0,C=0;C<$[T].length;C+=1)if($[T][C]!==void 0&&$[T][C]!==x.charCodeAt(C)){F=!1;break}if(F===!0){at=I;break}}return at===t&&_!==t&&(at=_),at},s=function x(_){for(var T=this.internal.write,C=this.internal.putStream,$=(0,this.internal.getFilters)();$.indexOf("FlateEncode")!==-1;)$.splice($.indexOf("FlateEncode"),1);_.objectId=this.internal.newObject();var F=[];if(F.push({key:"Type",value:"/XObject"}),F.push({key:"Subtype",value:"/Image"}),F.push({key:"Width",value:_.width}),F.push({key:"Height",value:_.height}),_.colorSpace===E.INDEXED?F.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(_.palette.length/3-1)+" "+("sMask"in _&&_.sMask!==void 0?_.objectId+2:_.objectId+1)+" 0 R]"}):(F.push({key:"ColorSpace",value:"/"+_.colorSpace}),_.colorSpace===E.DEVICE_CMYK&&F.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),F.push({key:"BitsPerComponent",value:_.bitsPerComponent}),"decodeParameters"in _&&_.decodeParameters!==void 0&&F.push({key:"DecodeParms",value:"<<"+_.decodeParameters+">>"}),"transparency"in _&&Array.isArray(_.transparency)){for(var I="",at=0,nt=_.transparency.length;at<nt;at++)I+=_.transparency[at]+" "+_.transparency[at]+" ";F.push({key:"Mask",value:"["+I+"]"})}_.sMask!==void 0&&F.push({key:"SMask",value:_.objectId+1+" 0 R"});var pt=_.filter!==void 0?["/"+_.filter]:void 0;if(C({data:_.data,additionalKeyValues:F,alreadyAppliedFilters:pt,objectId:_.objectId}),T("endobj"),"sMask"in _&&_.sMask!==void 0){var Zt="/Predictor "+_.predictor+" /Colors 1 /BitsPerComponent "+_.bitsPerComponent+" /Columns "+_.width,N={width:_.width,height:_.height,colorSpace:"DeviceGray",bitsPerComponent:_.bitsPerComponent,decodeParameters:Zt,data:_.sMask};"filter"in _&&(N.filter=_.filter),x.call(this,N)}if(_.colorSpace===E.INDEXED){var H=this.internal.newObject();C({data:A(new Uint8Array(_.palette)),objectId:H}),T("endobj")}},i=function(){var x=this.internal.collections.addImage_images;for(var _ in x)s.call(this,x[_])},o=function(){var x,_=this.internal.collections.addImage_images,T=this.internal.write;for(var C in _)T("/I"+(x=_[C]).index,x.objectId,"0","R")},l=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",o))},c=function(){var x=this.internal.collections.addImage_images;return l.call(this),x},v=function(){return Object.keys(this.internal.collections.addImage_images).length},d=function(x){return typeof r["process"+x.toUpperCase()]=="function"},g=function(x){return(0,xt.A)(x)==="object"&&x.nodeType===1},m=function(x,_){if(x.nodeName==="IMG"&&x.hasAttribute("src")){var T=""+x.getAttribute("src");if(T.indexOf("data:image/")===0)return Ka(unescape(T).split("base64,").pop());var C=r.loadFile(T,!0);if(C!==void 0)return C}if(x.nodeName==="CANVAS"){if(x.width===0||x.height===0)throw new Error("Given canvas must have data. Canvas width: "+x.width+", height: "+x.height);var $;switch(_){case"PNG":$="image/png";break;case"WEBP":$="image/webp";break;case"JPEG":case"JPG":default:$="image/jpeg"}return Ka(x.toDataURL($,1).split("base64,").pop())}},f=function(x){var _=this.internal.collections.addImage_images;if(_){for(var T in _)if(x===_[T].alias)return _[T]}},w=function(x,_,T){return x||_||(x=-96,_=-96),x<0&&(x=-1*T.width*72/x/this.internal.scaleFactor),_<0&&(_=-1*T.height*72/_/this.internal.scaleFactor),x===0&&(x=_*T.width/T.height),_===0&&(_=x*T.height/T.width),[x,_]},L=function(x,_,T,C,$,F){var I=w.call(this,T,C,$),at=this.internal.getCoordinateString,nt=this.internal.getVerticalCoordinateString,pt=c.call(this);if(T=I[0],C=I[1],pt[$.index]=$,F){F*=Math.PI/180;var Zt=Math.cos(F),N=Math.sin(F),H=function(W){return W.toFixed(4)},U=[H(Zt),H(N),H(-1*N),H(Zt),0,0,"cm"]}this.internal.write("q"),F?(this.internal.write([1,"0","0",1,at(x),nt(_+C),"cm"].join(" ")),this.internal.write(U.join(" ")),this.internal.write([at(T),"0","0",at(C),"0","0","cm"].join(" "))):this.internal.write([at(T),"0","0",at(C),at(x),nt(_+C),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+$.index+" Do"),this.internal.write("Q")},E=r.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};r.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var y=r.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},R=r.__addimage__.sHashCode=function(x){var _,T,C=0;if(typeof x=="string")for(T=x.length,_=0;_<T;_++)C=(C<<5)-C+x.charCodeAt(_),C|=0;else if(Z(x))for(T=x.byteLength/2,_=0;_<T;_++)C=(C<<5)-C+x[_],C|=0;return C},G=r.__addimage__.validateStringAsBase64=function(x){(x=x||"").toString().trim();var _=!0;return x.length===0&&(_=!1),x.length%4!=0&&(_=!1),/^[A-Za-z0-9+/]+$/.test(x.substr(0,x.length-2))===!1&&(_=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(x.substr(-2))===!1&&(_=!1),_},Q=r.__addimage__.extractImageFromDataUrl=function(x){var _=(x=x||"").split("base64,"),T=null;if(_.length===2){var C=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(_[0]);Array.isArray(C)&&(T={mimeType:C[1],charset:C[2],data:_[1]})}return T},ht=r.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};r.__addimage__.isArrayBuffer=function(x){return ht()&&x instanceof ArrayBuffer};var Z=r.__addimage__.isArrayBufferView=function(x){return ht()&&typeof Uint32Array<"u"&&(x instanceof Int8Array||x instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&x instanceof Uint8ClampedArray||x instanceof Int16Array||x instanceof Uint16Array||x instanceof Int32Array||x instanceof Uint32Array||x instanceof Float32Array||x instanceof Float64Array)},tt=r.__addimage__.binaryStringToUint8Array=function(x){for(var _=x.length,T=new Uint8Array(_),C=0;C<_;C++)T[C]=x.charCodeAt(C);return T},A=r.__addimage__.arrayBufferToBinaryString=function(x){for(var _="",T=Z(x)?x:new Uint8Array(x),C=0;C<T.length;C+=8192)_+=String.fromCharCode.apply(null,T.subarray(C,C+8192));return _};r.addImage=function(){var x,_,T,C,$,F,I,at,nt;if(typeof arguments[1]=="number"?(_=t,T=arguments[1],C=arguments[2],$=arguments[3],F=arguments[4],I=arguments[5],at=arguments[6],nt=arguments[7]):(_=arguments[1],T=arguments[2],C=arguments[3],$=arguments[4],F=arguments[5],I=arguments[6],at=arguments[7],nt=arguments[8]),(0,xt.A)(x=arguments[0])==="object"&&!g(x)&&"imageData"in x){var pt=x;x=pt.imageData,_=pt.format||_||t,T=pt.x||T||0,C=pt.y||C||0,$=pt.w||pt.width||$,F=pt.h||pt.height||F,I=pt.alias||I,at=pt.compression||at,nt=pt.rotation||pt.angle||nt}var Zt=this.internal.getFilters();if(at===void 0&&Zt.indexOf("FlateEncode")!==-1&&(at="SLOW"),isNaN(T)||isNaN(C))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var N=B.call(this,x,_,I,at);return L.call(this,T,C,$,F,N,nt),this};var B=function(x,_,T,C){var $,F,I;if(typeof x=="string"&&a(x)===t){x=unescape(x);var at=Y(x,!1);(at!==""||(at=r.loadFile(x,!0))!==void 0)&&(x=at)}if(g(x)&&(x=m(x,_)),_=a(x,_),!d(_))throw new Error("addImage does not support files of type '"+_+"', please ensure that a plugin for '"+_+"' support is added.");if(((I=T)==null||I.length===0)&&(T=function(nt){return typeof nt=="string"||Z(nt)?R(nt):Z(nt.data)?R(nt.data):null}(x)),($=f.call(this,T))||(ht()&&(x instanceof Uint8Array||_==="RGBA"||(F=x,x=tt(x))),$=this["process"+_.toUpperCase()](x,v.call(this),T,function(nt){return nt&&typeof nt=="string"&&(nt=nt.toUpperCase()),nt in r.image_compression?nt:y.NONE}(C),F)),!$)throw new Error("An unknown error occurred whilst processing the image.");return $},Y=r.__addimage__.convertBase64ToBinaryString=function(x,_){var T;_=typeof _!="boolean"||_;var C,$="";if(typeof x=="string"){C=(T=Q(x))!==null?T.data:x;try{$=Ka(C)}catch(F){if(_)throw G(C)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+F.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return $};r.getImageProperties=function(x){var _,T,C="";if(g(x)&&(x=m(x)),typeof x=="string"&&a(x)===t&&((C=Y(x,!1))===""&&(C=r.loadFile(x)||""),x=C),T=a(x),!d(T))throw new Error("addImage does not support files of type '"+T+"', please ensure that a plugin for '"+T+"' support is added.");if(!ht()||x instanceof Uint8Array||(x=tt(x)),!(_=this["process"+T.toUpperCase()](x)))throw new Error("An unknown error occurred whilst processing the image");return _.fileType=T,_}})(We.API),function(r){var t=function(e){if(e!==void 0&&e!="")return!0};We.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),r.events.push(["putPage",function(e){for(var a,s,i,o=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,c=this.internal.getPageInfoByObjId(e.objId),v=e.pageContext.annotations,d=!1,g=0;g<v.length&&!d;g++)switch((a=v[g]).type){case"link":(t(a.options.url)||t(a.options.pageNumber))&&(d=!0);break;case"reference":case"text":case"freetext":d=!0}if(d!=0){this.internal.write("/Annots [");for(var m=0;m<v.length;m++){a=v[m];var f=this.internal.pdfEscape,w=this.internal.getEncryptor(e.objId);switch(a.type){case"reference":this.internal.write(" "+a.object.objId+" 0 R ");break;case"text":var L=this.internal.newAdditionalObject(),E=this.internal.newAdditionalObject(),y=this.internal.getEncryptor(L.objId),R=a.title||"Note";i="<</Type /Annot /Subtype /Text "+(s="/Rect ["+o(a.bounds.x)+" "+l(a.bounds.y+a.bounds.h)+" "+o(a.bounds.x+a.bounds.w)+" "+l(a.bounds.y)+"] ")+"/Contents ("+f(y(a.contents))+")",i+=" /Popup "+E.objId+" 0 R",i+=" /P "+c.objId+" 0 R",i+=" /T ("+f(y(R))+") >>",L.content=i;var G=L.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(s="/Rect ["+o(a.bounds.x+30)+" "+l(a.bounds.y+a.bounds.h)+" "+o(a.bounds.x+a.bounds.w+30)+" "+l(a.bounds.y)+"] ")+" /Parent "+G,a.open&&(i+=" /Open true"),i+=" >>",E.content=i,this.internal.write(L.objId,"0 R",E.objId,"0 R");break;case"freetext":s="/Rect ["+o(a.bounds.x)+" "+l(a.bounds.y)+" "+o(a.bounds.x+a.bounds.w)+" "+l(a.bounds.y+a.bounds.h)+"] ";var Q=a.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+s+"/Contents ("+f(w(a.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Q+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(a.options.name){var ht=this.annotations._nameMap[a.options.name];a.options.pageNumber=ht.page,a.options.top=ht.y}else a.options.top||(a.options.top=0);if(s="/Rect ["+a.finalBounds.x+" "+a.finalBounds.y+" "+a.finalBounds.w+" "+a.finalBounds.h+"] ",i="",a.options.url)i="<</Type /Annot /Subtype /Link "+s+"/Border [0 0 0] /A <</S /URI /URI ("+f(w(a.options.url))+") >>";else if(a.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+s+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(a.options.pageNumber).objId+" 0 R",a.options.magFactor=a.options.magFactor||"XYZ",a.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+a.options.top+"]";break;case"FitV":a.options.left=a.options.left||0,i+=" /FitV "+a.options.left+"]";break;case"XYZ":default:var Z=l(a.options.top);a.options.left=a.options.left||0,a.options.zoom===void 0&&(a.options.zoom=0),i+=" /XYZ "+a.options.left+" "+Z+" "+a.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),r.createAnnotation=function(e){var a=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":a.pageContext.annotations.push(e)}},r.link=function(e,a,s,i,o){var l=this.internal.getCurrentPageInfo(),c=this.internal.getCoordinateString,v=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:c(e),y:v(a),w:c(e+s),h:v(a+i)},options:o,type:"link"})},r.textWithLink=function(e,a,s,i){var o,l,c=this.getTextWidth(e),v=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){l=i.maxWidth;var d=this.splitTextToSize(e,l).length;o=Math.ceil(v*d)}else l=c,o=v;return this.text(e,a,s,i),s+=.2*v,i.align==="center"&&(a-=c/2),i.align==="right"&&(a-=c),this.link(a,s-v,l,o,i),c},r.getTextWidth=function(e){var a=this.internal.getFontSize();return this.getStringUnitWidth(e)*a/this.internal.scaleFactor}}(We.API),function(r){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},e={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},a={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},s=[1570,1571,1573,1575];r.__arabicParser__={};var i=r.__arabicParser__.isInArabicSubstitutionA=function(L){return t[L.charCodeAt(0)]!==void 0},o=r.__arabicParser__.isArabicLetter=function(L){return typeof L=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(L)},l=r.__arabicParser__.isArabicEndLetter=function(L){return o(L)&&i(L)&&t[L.charCodeAt(0)].length<=2},c=r.__arabicParser__.isArabicAlfLetter=function(L){return o(L)&&s.indexOf(L.charCodeAt(0))>=0};r.__arabicParser__.arabicLetterHasIsolatedForm=function(L){return o(L)&&i(L)&&t[L.charCodeAt(0)].length>=1};var v=r.__arabicParser__.arabicLetterHasFinalForm=function(L){return o(L)&&i(L)&&t[L.charCodeAt(0)].length>=2};r.__arabicParser__.arabicLetterHasInitialForm=function(L){return o(L)&&i(L)&&t[L.charCodeAt(0)].length>=3};var d=r.__arabicParser__.arabicLetterHasMedialForm=function(L){return o(L)&&i(L)&&t[L.charCodeAt(0)].length==4},g=r.__arabicParser__.resolveLigatures=function(L){var E=0,y=e,R="",G=0;for(E=0;E<L.length;E+=1)y[L.charCodeAt(E)]!==void 0?(G++,typeof(y=y[L.charCodeAt(E)])=="number"&&(R+=String.fromCharCode(y),y=e,G=0),E===L.length-1&&(y=e,R+=L.charAt(E-(G-1)),E-=G-1,G=0)):(y=e,R+=L.charAt(E-G),E-=G,G=0);return R};r.__arabicParser__.isArabicDiacritic=function(L){return L!==void 0&&a[L.charCodeAt(0)]!==void 0};var m=r.__arabicParser__.getCorrectForm=function(L,E,y){return o(L)?i(L)===!1?-1:!v(L)||!o(E)&&!o(y)||!o(y)&&l(E)||l(L)&&!o(E)||l(L)&&c(E)||l(L)&&l(E)?0:d(L)&&o(E)&&!l(E)&&o(y)&&v(y)?3:l(L)||!o(y)?1:2:-1},f=function(L){var E=0,y=0,R=0,G="",Q="",ht="",Z=(L=L||"").split("\\s+"),tt=[];for(E=0;E<Z.length;E+=1){for(tt.push(""),y=0;y<Z[E].length;y+=1)G=Z[E][y],Q=Z[E][y-1],ht=Z[E][y+1],o(G)?(R=m(G,Q,ht),tt[E]+=R!==-1?String.fromCharCode(t[G.charCodeAt(0)][R]):G):tt[E]+=G;tt[E]=g(tt[E])}return tt.join(" ")},w=r.__arabicParser__.processArabic=r.processArabic=function(){var L,E=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(E)){var R=0;for(y=[],R=0;R<E.length;R+=1)Array.isArray(E[R])?y.push([f(E[R][0]),E[R][1],E[R][2]]):y.push([f(E[R])]);L=y}else L=f(E);return typeof arguments[0]=="string"?L:(arguments[0].text=L,arguments[0])};r.events.push(["preProcessText",w])}(We.API),We.API.autoPrint=function(r){var t;switch((r=r||{}).variant=r.variant||"non-conform",r.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})}return this},function(r){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(l){e=l}});var a=150;Object.defineProperty(this,"width",{get:function(){return a},set:function(l){a=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=a+1)}});var s=300;Object.defineProperty(this,"height",{get:function(){return s},set:function(l){s=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=s+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(l){i=l}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(l){o=l}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,a){var s;if((e=e||"2d")!=="2d")return null;for(s in a)this.pdf.context2d.hasOwnProperty(s)&&(this.pdf.context2d[s]=a[s]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},r.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(We.API),function(r){var t={left:0,top:0,bottom:0,right:0},e=!1,a=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),s.call(this))},s=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var c=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return c},set:function(L){c=L}});var v=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return v},set:function(L){v=L}});var d=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return d},set:function(L){d=L}});var g=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return g},set:function(L){g=L}});var m=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return m},set:function(L){m=L}});var f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(L){f=L}});var w=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return w},set:function(L){w=L}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},r.setHeaderFunction=function(c){return a.call(this),this.internal.__cell__.headerFunction=typeof c=="function"?c:void 0,this},r.getTextDimensions=function(c,v){a.call(this);var d=(v=v||{}).fontSize||this.getFontSize(),g=v.font||this.getFont(),m=v.scaleFactor||this.internal.scaleFactor,f=0,w=0,L=0,E=this;if(!Array.isArray(c)&&typeof c!="string"){if(typeof c!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");c=String(c)}var y=v.maxWidth;y>0?typeof c=="string"?c=this.splitTextToSize(c,y):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(G,Q){return G.concat(E.splitTextToSize(Q,y))},[])):c=Array.isArray(c)?c:[c];for(var R=0;R<c.length;R++)f<(L=this.getStringUnitWidth(c[R],{font:g})*d)&&(f=L);return f!==0&&(w=c.length),{w:f/=m,h:Math.max((w*d*this.getLineHeightFactor()-d*(this.getLineHeightFactor()-1))/m,0)}},r.cellAddPage=function(){a.call(this),this.addPage();var c=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new i(c.left,c.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=r.cell=function(){var c;c=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),a.call(this);var v=this.internal.__cell__.lastCell,d=this.internal.__cell__.padding,g=this.internal.__cell__.margins||t,m=this.internal.__cell__.tableHeaderRow,f=this.internal.__cell__.printHeaders;return v.lineNumber!==void 0&&(v.lineNumber===c.lineNumber?(c.x=(v.x||0)+(v.width||0),c.y=v.y||0):v.y+v.height+c.height+g.bottom>this.getPageHeight()?(this.cellAddPage(),c.y=g.top,f&&m&&(this.printHeaderRow(c.lineNumber,!0),c.y+=m[0].height)):c.y=v.y+v.height||c.y),c.text[0]!==void 0&&(this.rect(c.x,c.y,c.width,c.height,e===!0?"FD":void 0),c.align==="right"?this.text(c.text,c.x+c.width-d,c.y+d,{align:"right",baseline:"top"}):c.align==="center"?this.text(c.text,c.x+c.width/2,c.y+d,{align:"center",baseline:"top",maxWidth:c.width-d-d}):this.text(c.text,c.x+d,c.y+d,{align:"left",baseline:"top",maxWidth:c.width-d-d})),this.internal.__cell__.lastCell=c,this};r.table=function(c,v,d,g,m){if(a.call(this),!d)throw new Error("No data for PDF table.");var f,w,L,E,y=[],R=[],G=[],Q={},ht={},Z=[],tt=[],A=(m=m||{}).autoSize||!1,B=m.printHeaders!==!1,Y=m.css&&m.css["font-size"]!==void 0?16*m.css["font-size"]:m.fontSize||12,x=m.margins||Object.assign({width:this.getPageWidth()},t),_=typeof m.padding=="number"?m.padding:3,T=m.headerBackgroundColor||"#c8c8c8",C=m.headerTextColor||"#000";if(s.call(this),this.internal.__cell__.printHeaders=B,this.internal.__cell__.margins=x,this.internal.__cell__.table_font_size=Y,this.internal.__cell__.padding=_,this.internal.__cell__.headerBackgroundColor=T,this.internal.__cell__.headerTextColor=C,this.setFontSize(Y),g==null)R=y=Object.keys(d[0]),G=y.map(function(){return"left"});else if(Array.isArray(g)&&(0,xt.A)(g[0])==="object")for(y=g.map(function(pt){return pt.name}),R=g.map(function(pt){return pt.prompt||pt.name||""}),G=g.map(function(pt){return pt.align||"left"}),f=0;f<g.length;f+=1)ht[g[f].name]=g[f].width*(19.049976/25.4);else Array.isArray(g)&&typeof g[0]=="string"&&(R=y=g,G=y.map(function(){return"left"}));if(A||Array.isArray(g)&&typeof g[0]=="string")for(f=0;f<y.length;f+=1){for(Q[E=y[f]]=d.map(function(pt){return pt[E]}),this.setFont(void 0,"bold"),Z.push(this.getTextDimensions(R[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),w=Q[E],this.setFont(void 0,"normal"),L=0;L<w.length;L+=1)Z.push(this.getTextDimensions(w[L],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);ht[E]=Math.max.apply(null,Z)+_+_,Z=[]}if(B){var $={};for(f=0;f<y.length;f+=1)$[y[f]]={},$[y[f]].text=R[f],$[y[f]].align=G[f];var F=l.call(this,$,ht);tt=y.map(function(pt){return new i(c,v,ht[pt],F,$[pt].text,void 0,$[pt].align)}),this.setTableHeaderRow(tt),this.printHeaderRow(1,!1)}var I=g.reduce(function(pt,Zt){return pt[Zt.name]=Zt.align,pt},{});for(f=0;f<d.length;f+=1){"rowStart"in m&&m.rowStart instanceof Function&&m.rowStart({row:f,data:d[f]},this);var at=l.call(this,d[f],ht);for(L=0;L<y.length;L+=1){var nt=d[f][y[L]];"cellStart"in m&&m.cellStart instanceof Function&&m.cellStart({row:f,col:L,data:nt},this),o.call(this,new i(c,v,ht[y[L]],at,nt,f+2,I[y[L]]))}}return this.internal.__cell__.table_x=c,this.internal.__cell__.table_y=v,this};var l=function(c,v){var d=this.internal.__cell__.padding,g=this.internal.__cell__.table_font_size,m=this.internal.scaleFactor;return Object.keys(c).map(function(f){var w=c[f];return this.splitTextToSize(w.hasOwnProperty("text")?w.text:w,v[f]-d-d)},this).map(function(f){return this.getLineHeightFactor()*f.length*g/m+d+d},this).reduce(function(f,w){return Math.max(f,w)},0)};r.setTableHeaderRow=function(c){a.call(this),this.internal.__cell__.tableHeaderRow=c},r.printHeaderRow=function(c,v){if(a.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var d;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var g=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(g[0],g[1],g[2],g[3],void 0,-1)}this.setFont(void 0,"bold");for(var m=[],f=0;f<this.internal.__cell__.tableHeaderRow.length;f+=1){d=this.internal.__cell__.tableHeaderRow[f].clone(),v&&(d.y=this.internal.__cell__.margins.top||0,m.push(d)),d.lineNumber=c;var w=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,d),this.setTextColor(w)}m.length>0&&this.setTableHeaderRow(m),this.setFont(void 0,"normal"),e=!1}}(We.API);var hl={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},fl=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Qo=cl(fl),dl=[100,200,300,400,500,600,700,800,900],Tc=cl(dl);function Xo(r){var t=r.family.replace(/"|'/g,"").toLowerCase(),e=function(i){return hl[i=i||"normal"]?i:"normal"}(r.style),a=function(i){if(!i)return 400;if(typeof i=="number")return i>=100&&i<=900&&i%100==0?i:400;if(/^\d00$/.test(i))return parseInt(i);switch(i){case"bold":return 700;case"normal":default:return 400}}(r.weight),s=function(i){return typeof Qo[i=i||"normal"]=="number"?i:"normal"}(r.stretch);return{family:t,style:e,weight:a,stretch:s,src:r.src||[],ref:r.ref||{name:t,style:[s,e,a].join(" ")}}}function pl(r,t,e,a){var s;for(s=e;s>=0&&s<t.length;s+=a)if(r[t[s]])return r[t[s]];for(s=e;s>=0&&s<t.length;s-=a)if(r[t[s]])return r[t[s]]}var Mc={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},gl={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function ml(r){return[r.stretch,r.style,r.weight,r.family].join(" ")}function zc(r,t,e){for(var a=(e=e||{}).defaultFontFamily||"times",s=Object.assign({},Mc,e.genericFontFamilies||{}),i=null,o=null,l=0;l<t.length;++l)if(s[(i=Xo(t[l])).family]&&(i.family=s[i.family]),r.hasOwnProperty(i.family)){o=r[i.family];break}if(!(o=o||r[a]))throw new Error("Could not find a font-family for the rule '"+ml(i)+"' and default family '"+a+"'.");if(o=function(c,v){if(v[c])return v[c];var d=Qo[c],g=d<=Qo.normal?-1:1,m=pl(v,fl,d,g);if(!m)throw new Error("Could not find a matching font-stretch value for "+c);return m}(i.stretch,o),o=function(c,v){if(v[c])return v[c];for(var d=hl[c],g=0;g<d.length;++g)if(v[d[g]])return v[d[g]];throw new Error("Could not find a matching font-style for "+c)}(i.style,o),!(o=function(c,v){if(v[c])return v[c];if(c===400&&v[500])return v[500];if(c===500&&v[400])return v[400];var d=Tc[c],g=pl(v,dl,d,c<400?-1:1);if(!g)throw new Error("Could not find a matching font-weight for value "+c);return g}(i.weight,o)))throw new Error("Failed to resolve a font for the rule '"+ml(i)+"'.");return o}function vl(r){return r.trimLeft()}function Uc(r,t){for(var e=0;e<r.length;){if(r.charAt(e)===t)return[r.substring(0,e),r.substring(e+1)];e+=1}return null}function qc(r){var t=r.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],r.substring(t[0].length)]}var Us,bl,yl,Ko=["times"];(function(r){var t,e,a,s,i,o,l,c,v,d=function(N){return N=N||{},this.isStrokeTransparent=N.isStrokeTransparent||!1,this.strokeOpacity=N.strokeOpacity||1,this.strokeStyle=N.strokeStyle||"#000000",this.fillStyle=N.fillStyle||"#000000",this.isFillTransparent=N.isFillTransparent||!1,this.fillOpacity=N.fillOpacity||1,this.font=N.font||"10px sans-serif",this.textBaseline=N.textBaseline||"alphabetic",this.textAlign=N.textAlign||"left",this.lineWidth=N.lineWidth||1,this.lineJoin=N.lineJoin||"miter",this.lineCap=N.lineCap||"butt",this.path=N.path||[],this.transform=N.transform!==void 0?N.transform.clone():new c,this.globalCompositeOperation=N.globalCompositeOperation||"normal",this.globalAlpha=N.globalAlpha||1,this.clip_path=N.clip_path||[],this.currentPoint=N.currentPoint||new o,this.miterLimit=N.miterLimit||10,this.lastPoint=N.lastPoint||new o,this.lineDashOffset=N.lineDashOffset||0,this.lineDash=N.lineDash||[],this.margin=N.margin||[0,0,0,0],this.prevPageLastElemOffset=N.prevPageLastElemOffset||0,this.ignoreClearRect=typeof N.ignoreClearRect!="boolean"||N.ignoreClearRect,this};r.events.push(["initialized",function(){this.context2d=new g(this),t=this.internal.f2,e=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,s=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,o=this.internal.Point,l=this.internal.Rectangle,c=this.internal.Matrix,v=new d}]);var g=function(N){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var H=N;Object.defineProperty(this,"pdf",{get:function(){return H}});var U=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return U},set:function(Mt){U=!!Mt}});var W=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return W},set:function(Mt){W=!!Mt}});var gt=0;Object.defineProperty(this,"posX",{get:function(){return gt},set:function(Mt){isNaN(Mt)||(gt=Mt)}});var Ft=0;Object.defineProperty(this,"posY",{get:function(){return Ft},set:function(Mt){isNaN(Mt)||(Ft=Mt)}}),Object.defineProperty(this,"margin",{get:function(){return v.margin},set:function(Mt){var st;typeof Mt=="number"?st=[Mt,Mt,Mt,Mt]:((st=new Array(4))[0]=Mt[0],st[1]=Mt.length>=2?Mt[1]:st[0],st[2]=Mt.length>=3?Mt[2]:st[0],st[3]=Mt.length>=4?Mt[3]:st[1]),v.margin=st}});var Et=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Et},set:function(Mt){Et=Mt}});var Ot=0;Object.defineProperty(this,"lastBreak",{get:function(){return Ot},set:function(Mt){Ot=Mt}});var ee=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ee},set:function(Mt){ee=Mt}}),Object.defineProperty(this,"ctx",{get:function(){return v},set:function(Mt){Mt instanceof d&&(v=Mt)}}),Object.defineProperty(this,"path",{get:function(){return v.path},set:function(Mt){v.path=Mt}});var re=[];Object.defineProperty(this,"ctxStack",{get:function(){return re},set:function(Mt){re=Mt}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Mt){var st;st=m(Mt),this.ctx.fillStyle=st.style,this.ctx.isFillTransparent=st.a===0,this.ctx.fillOpacity=st.a,this.pdf.setFillColor(st.r,st.g,st.b,{a:st.a}),this.pdf.setTextColor(st.r,st.g,st.b,{a:st.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Mt){var st=m(Mt);this.ctx.strokeStyle=st.style,this.ctx.isStrokeTransparent=st.a===0,this.ctx.strokeOpacity=st.a,st.a===0?this.pdf.setDrawColor(255,255,255):(st.a,this.pdf.setDrawColor(st.r,st.g,st.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Mt){["butt","round","square"].indexOf(Mt)!==-1&&(this.ctx.lineCap=Mt,this.pdf.setLineCap(Mt))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Mt){isNaN(Mt)||(this.ctx.lineWidth=Mt,this.pdf.setLineWidth(Mt))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Mt){["bevel","round","miter"].indexOf(Mt)!==-1&&(this.ctx.lineJoin=Mt,this.pdf.setLineJoin(Mt))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Mt){isNaN(Mt)||(this.ctx.miterLimit=Mt,this.pdf.setMiterLimit(Mt))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Mt){this.ctx.textBaseline=Mt}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Mt){["right","end","center","left","start"].indexOf(Mt)!==-1&&(this.ctx.textAlign=Mt)}});var pe=null;function xe(Mt,st){if(pe===null){var Fe=function(ye){var ne=[];return Object.keys(ye).forEach(function(he){ye[he].forEach(function(de){var ge=null;switch(de){case"bold":ge={family:he,weight:"bold"};break;case"italic":ge={family:he,style:"italic"};break;case"bolditalic":ge={family:he,weight:"bold",style:"italic"};break;case"":case"normal":ge={family:he}}ge!==null&&(ge.ref={name:he,style:de},ne.push(ge))})}),ne}(Mt.getFontList());pe=function(ye){for(var ne={},he=0;he<ye.length;++he){var de=Xo(ye[he]),ge=de.family,Le=de.stretch,Pe=de.style,Re=de.weight;ne[ge]=ne[ge]||{},ne[ge][Le]=ne[ge][Le]||{},ne[ge][Le][Pe]=ne[ge][Le][Pe]||{},ne[ge][Le][Pe][Re]=de}return ne}(Fe.concat(st))}return pe}var Be=null;Object.defineProperty(this,"fontFaces",{get:function(){return Be},set:function(Mt){pe=null,Be=Mt}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Mt){var st;if(this.ctx.font=Mt,(st=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(Mt))!==null){var Fe=st[1],ye=(st[2],st[3]),ne=st[4],he=(st[5],st[6]),de=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(ne)[2];ne=Math.floor(de==="px"?parseFloat(ne)*this.pdf.internal.scaleFactor:de==="em"?parseFloat(ne)*this.pdf.getFontSize():parseFloat(ne)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(ne);var ge=function(Te){var ze,Ae,vr=[],tr=Te.trim();if(tr==="")return Ko;if(tr in gl)return[gl[tr]];for(;tr!=="";){switch(Ae=null,ze=(tr=vl(tr)).charAt(0)){case'"':case"'":Ae=Uc(tr.substring(1),ze);break;default:Ae=qc(tr)}if(Ae===null||(vr.push(Ae[0]),(tr=vl(Ae[1]))!==""&&tr.charAt(0)!==","))return Ko;tr=tr.replace(/^,/,"")}return vr}(he);if(this.fontFaces){var Le=zc(xe(this.pdf,this.fontFaces),ge.map(function(Te){return{family:Te,stretch:"normal",weight:ye,style:Fe}}));this.pdf.setFont(Le.ref.name,Le.ref.style)}else{var Pe="";(ye==="bold"||parseInt(ye,10)>=700||Fe==="bold")&&(Pe="bold"),Fe==="italic"&&(Pe+="italic"),Pe.length===0&&(Pe="normal");for(var Re="",Ye={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},ar=0;ar<ge.length;ar++){if(this.pdf.internal.getFont(ge[ar],Pe,{noFallback:!0,disableWarning:!0})!==void 0){Re=ge[ar];break}if(Pe==="bolditalic"&&this.pdf.internal.getFont(ge[ar],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Re=ge[ar],Pe="bold";else if(this.pdf.internal.getFont(ge[ar],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Re=ge[ar],Pe="normal";break}}if(Re===""){for(var Xe=0;Xe<ge.length;Xe++)if(Ye[ge[Xe]]){Re=Ye[ge[Xe]];break}}Re=Re===""?"Times":Re,this.pdf.setFont(Re,Pe)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Mt){this.ctx.globalCompositeOperation=Mt}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Mt){this.ctx.globalAlpha=Mt}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Mt){this.ctx.lineDashOffset=Mt,Zt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Mt){this.ctx.lineDash=Mt,Zt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Mt){this.ctx.ignoreClearRect=!!Mt}})};g.prototype.setLineDash=function(N){this.lineDash=N},g.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},g.prototype.fill=function(){Q.call(this,"fill",!1)},g.prototype.stroke=function(){Q.call(this,"stroke",!1)},g.prototype.beginPath=function(){this.path=[{type:"begin"}]},g.prototype.moveTo=function(N,H){if(isNaN(N)||isNaN(H))throw Lr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var U=this.ctx.transform.applyToPoint(new o(N,H));this.path.push({type:"mt",x:U.x,y:U.y}),this.ctx.lastPoint=new o(N,H)},g.prototype.closePath=function(){var N=new o(0,0),H=0;for(H=this.path.length-1;H!==-1;H--)if(this.path[H].type==="begin"&&(0,xt.A)(this.path[H+1])==="object"&&typeof this.path[H+1].x=="number"){N=new o(this.path[H+1].x,this.path[H+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(N.x,N.y)},g.prototype.lineTo=function(N,H){if(isNaN(N)||isNaN(H))throw Lr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var U=this.ctx.transform.applyToPoint(new o(N,H));this.path.push({type:"lt",x:U.x,y:U.y}),this.ctx.lastPoint=new o(U.x,U.y)},g.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Q.call(this,null,!0)},g.prototype.quadraticCurveTo=function(N,H,U,W){if(isNaN(U)||isNaN(W)||isNaN(N)||isNaN(H))throw Lr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var gt=this.ctx.transform.applyToPoint(new o(U,W)),Ft=this.ctx.transform.applyToPoint(new o(N,H));this.path.push({type:"qct",x1:Ft.x,y1:Ft.y,x:gt.x,y:gt.y}),this.ctx.lastPoint=new o(gt.x,gt.y)},g.prototype.bezierCurveTo=function(N,H,U,W,gt,Ft){if(isNaN(gt)||isNaN(Ft)||isNaN(N)||isNaN(H)||isNaN(U)||isNaN(W))throw Lr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Et=this.ctx.transform.applyToPoint(new o(gt,Ft)),Ot=this.ctx.transform.applyToPoint(new o(N,H)),ee=this.ctx.transform.applyToPoint(new o(U,W));this.path.push({type:"bct",x1:Ot.x,y1:Ot.y,x2:ee.x,y2:ee.y,x:Et.x,y:Et.y}),this.ctx.lastPoint=new o(Et.x,Et.y)},g.prototype.arc=function(N,H,U,W,gt,Ft){if(isNaN(N)||isNaN(H)||isNaN(U)||isNaN(W)||isNaN(gt))throw Lr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Ft=!!Ft,!this.ctx.transform.isIdentity){var Et=this.ctx.transform.applyToPoint(new o(N,H));N=Et.x,H=Et.y;var Ot=this.ctx.transform.applyToPoint(new o(0,U)),ee=this.ctx.transform.applyToPoint(new o(0,0));U=Math.sqrt(Math.pow(Ot.x-ee.x,2)+Math.pow(Ot.y-ee.y,2))}Math.abs(gt-W)>=2*Math.PI&&(W=0,gt=2*Math.PI),this.path.push({type:"arc",x:N,y:H,radius:U,startAngle:W,endAngle:gt,counterclockwise:Ft})},g.prototype.arcTo=function(N,H,U,W,gt){throw new Error("arcTo not implemented.")},g.prototype.rect=function(N,H,U,W){if(isNaN(N)||isNaN(H)||isNaN(U)||isNaN(W))throw Lr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(N,H),this.lineTo(N+U,H),this.lineTo(N+U,H+W),this.lineTo(N,H+W),this.lineTo(N,H),this.lineTo(N+U,H),this.lineTo(N,H)},g.prototype.fillRect=function(N,H,U,W){if(isNaN(N)||isNaN(H)||isNaN(U)||isNaN(W))throw Lr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var gt={};this.lineCap!=="butt"&&(gt.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(gt.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(N,H,U,W),this.fill(),gt.hasOwnProperty("lineCap")&&(this.lineCap=gt.lineCap),gt.hasOwnProperty("lineJoin")&&(this.lineJoin=gt.lineJoin)}},g.prototype.strokeRect=function(N,H,U,W){if(isNaN(N)||isNaN(H)||isNaN(U)||isNaN(W))throw Lr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");w.call(this)||(this.beginPath(),this.rect(N,H,U,W),this.stroke())},g.prototype.clearRect=function(N,H,U,W){if(isNaN(N)||isNaN(H)||isNaN(U)||isNaN(W))throw Lr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(N,H,U,W))},g.prototype.save=function(N){N=typeof N!="boolean"||N;for(var H=this.pdf.internal.getCurrentPageInfo().pageNumber,U=0;U<this.pdf.internal.getNumberOfPages();U++)this.pdf.setPage(U+1),this.pdf.internal.out("q");if(this.pdf.setPage(H),N){this.ctx.fontSize=this.pdf.internal.getFontSize();var W=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=W}},g.prototype.restore=function(N){N=typeof N!="boolean"||N;for(var H=this.pdf.internal.getCurrentPageInfo().pageNumber,U=0;U<this.pdf.internal.getNumberOfPages();U++)this.pdf.setPage(U+1),this.pdf.internal.out("Q");this.pdf.setPage(H),N&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},g.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var m=function(N){var H,U,W,gt;if(N.isCanvasGradient===!0&&(N=N.getColor()),!N)return{r:0,g:0,b:0,a:0,style:N};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(N))H=0,U=0,W=0,gt=0;else{var Ft=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(N);if(Ft!==null)H=parseInt(Ft[1]),U=parseInt(Ft[2]),W=parseInt(Ft[3]),gt=1;else if((Ft=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(N))!==null)H=parseInt(Ft[1]),U=parseInt(Ft[2]),W=parseInt(Ft[3]),gt=parseFloat(Ft[4]);else{if(gt=1,typeof N=="string"&&N.charAt(0)!=="#"){var Et=new tl(N);N=Et.ok?Et.toHex():"#000000"}N.length===4?(H=N.substring(1,2),H+=H,U=N.substring(2,3),U+=U,W=N.substring(3,4),W+=W):(H=N.substring(1,3),U=N.substring(3,5),W=N.substring(5,7)),H=parseInt(H,16),U=parseInt(U,16),W=parseInt(W,16)}}return{r:H,g:U,b:W,a:gt,style:N}},f=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},w=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};g.prototype.fillText=function(N,H,U,W){if(isNaN(H)||isNaN(U)||typeof N!="string")throw Lr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(W=isNaN(W)?void 0:W,!f.call(this)){var gt=at(this.ctx.transform.rotation),Ft=this.ctx.transform.scaleX;_.call(this,{text:N,x:H,y:U,scale:Ft,angle:gt,align:this.textAlign,maxWidth:W})}},g.prototype.strokeText=function(N,H,U,W){if(isNaN(H)||isNaN(U)||typeof N!="string")throw Lr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!w.call(this)){W=isNaN(W)?void 0:W;var gt=at(this.ctx.transform.rotation),Ft=this.ctx.transform.scaleX;_.call(this,{text:N,x:H,y:U,scale:Ft,renderingMode:"stroke",angle:gt,align:this.textAlign,maxWidth:W})}},g.prototype.measureText=function(N){if(typeof N!="string")throw Lr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var H=this.pdf,U=this.pdf.internal.scaleFactor,W=H.internal.getFontSize(),gt=H.getStringUnitWidth(N)*W/H.internal.scaleFactor,Ft=function(Et){var Ot=(Et=Et||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Ot}}),this};return new Ft({width:gt*=Math.round(96*U/72*1e4)/1e4})},g.prototype.scale=function(N,H){if(isNaN(N)||isNaN(H))throw Lr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var U=new c(N,0,0,H,0,0);this.ctx.transform=this.ctx.transform.multiply(U)},g.prototype.rotate=function(N){if(isNaN(N))throw Lr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var H=new c(Math.cos(N),Math.sin(N),-Math.sin(N),Math.cos(N),0,0);this.ctx.transform=this.ctx.transform.multiply(H)},g.prototype.translate=function(N,H){if(isNaN(N)||isNaN(H))throw Lr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var U=new c(1,0,0,1,N,H);this.ctx.transform=this.ctx.transform.multiply(U)},g.prototype.transform=function(N,H,U,W,gt,Ft){if(isNaN(N)||isNaN(H)||isNaN(U)||isNaN(W)||isNaN(gt)||isNaN(Ft))throw Lr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Et=new c(N,H,U,W,gt,Ft);this.ctx.transform=this.ctx.transform.multiply(Et)},g.prototype.setTransform=function(N,H,U,W,gt,Ft){N=isNaN(N)?1:N,H=isNaN(H)?0:H,U=isNaN(U)?0:U,W=isNaN(W)?1:W,gt=isNaN(gt)?0:gt,Ft=isNaN(Ft)?0:Ft,this.ctx.transform=new c(N,H,U,W,gt,Ft)};var L=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};g.prototype.drawImage=function(N,H,U,W,gt,Ft,Et,Ot,ee){var re=this.pdf.getImageProperties(N),pe=1,xe=1,Be=1,Mt=1;W!==void 0&&Ot!==void 0&&(Be=Ot/W,Mt=ee/gt,pe=re.width/W*Ot/W,xe=re.height/gt*ee/gt),Ft===void 0&&(Ft=H,Et=U,H=0,U=0),W!==void 0&&Ot===void 0&&(Ot=W,ee=gt),W===void 0&&Ot===void 0&&(Ot=re.width,ee=re.height);for(var st,Fe=this.ctx.transform.decompose(),ye=at(Fe.rotate.shx),ne=new c,he=(ne=(ne=(ne=ne.multiply(Fe.translate)).multiply(Fe.skew)).multiply(Fe.scale)).applyToRectangle(new l(Ft-H*Be,Et-U*Mt,W*pe,gt*xe)),de=E.call(this,he),ge=[],Le=0;Le<de.length;Le+=1)ge.indexOf(de[Le])===-1&&ge.push(de[Le]);if(G(ge),this.autoPaging)for(var Pe=ge[0],Re=ge[ge.length-1],Ye=Pe;Ye<Re+1;Ye++){this.pdf.setPage(Ye);var ar=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Xe=Ye===1?this.posY+this.margin[0]:this.margin[0],Te=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ze=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ae=Ye===1?0:Te+(Ye-2)*ze;if(this.ctx.clip_path.length!==0){var vr=this.path;st=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=R(st,this.posX+this.margin[3],-Ae+Xe+this.ctx.prevPageLastElemOffset),ht.call(this,"fill",!0),this.path=vr}var tr=JSON.parse(JSON.stringify(he));tr=R([tr],this.posX+this.margin[3],-Ae+Xe+this.ctx.prevPageLastElemOffset)[0];var Br=(Ye>Pe||Ye<Re)&&L.call(this);Br&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ar,ze,null).clip().discardPath()),this.pdf.addImage(N,"JPEG",tr.x,tr.y,tr.w,tr.h,null,null,ye),Br&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(N,"JPEG",he.x,he.y,he.w,he.h,null,null,ye)};var E=function(N,H,U){var W=[];H=H||this.pdf.internal.pageSize.width,U=U||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var gt=this.posY+this.ctx.prevPageLastElemOffset;switch(N.type){default:case"mt":case"lt":W.push(Math.floor((N.y+gt)/U)+1);break;case"arc":W.push(Math.floor((N.y+gt-N.radius)/U)+1),W.push(Math.floor((N.y+gt+N.radius)/U)+1);break;case"qct":var Ft=nt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,N.x1,N.y1,N.x,N.y);W.push(Math.floor((Ft.y+gt)/U)+1),W.push(Math.floor((Ft.y+Ft.h+gt)/U)+1);break;case"bct":var Et=pt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,N.x1,N.y1,N.x2,N.y2,N.x,N.y);W.push(Math.floor((Et.y+gt)/U)+1),W.push(Math.floor((Et.y+Et.h+gt)/U)+1);break;case"rect":W.push(Math.floor((N.y+gt)/U)+1),W.push(Math.floor((N.y+N.h+gt)/U)+1)}for(var Ot=0;Ot<W.length;Ot+=1)for(;this.pdf.internal.getNumberOfPages()<W[Ot];)y.call(this);return W},y=function(){var N=this.fillStyle,H=this.strokeStyle,U=this.font,W=this.lineCap,gt=this.lineWidth,Ft=this.lineJoin;this.pdf.addPage(),this.fillStyle=N,this.strokeStyle=H,this.font=U,this.lineCap=W,this.lineWidth=gt,this.lineJoin=Ft},R=function(N,H,U){for(var W=0;W<N.length;W++)switch(N[W].type){case"bct":N[W].x2+=H,N[W].y2+=U;case"qct":N[W].x1+=H,N[W].y1+=U;case"mt":case"lt":case"arc":default:N[W].x+=H,N[W].y+=U}return N},G=function(N){return N.sort(function(H,U){return H-U})},Q=function(N,H){for(var U,W,gt=this.fillStyle,Ft=this.strokeStyle,Et=this.lineCap,Ot=this.lineWidth,ee=Math.abs(Ot*this.ctx.transform.scaleX),re=this.lineJoin,pe=JSON.parse(JSON.stringify(this.path)),xe=JSON.parse(JSON.stringify(this.path)),Be=[],Mt=0;Mt<xe.length;Mt++)if(xe[Mt].x!==void 0)for(var st=E.call(this,xe[Mt]),Fe=0;Fe<st.length;Fe+=1)Be.indexOf(st[Fe])===-1&&Be.push(st[Fe]);for(var ye=0;ye<Be.length;ye++)for(;this.pdf.internal.getNumberOfPages()<Be[ye];)y.call(this);if(G(Be),this.autoPaging)for(var ne=Be[0],he=Be[Be.length-1],de=ne;de<he+1;de++){this.pdf.setPage(de),this.fillStyle=gt,this.strokeStyle=Ft,this.lineCap=Et,this.lineWidth=ee,this.lineJoin=re;var ge=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Le=de===1?this.posY+this.margin[0]:this.margin[0],Pe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Re=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ye=de===1?0:Pe+(de-2)*Re;if(this.ctx.clip_path.length!==0){var ar=this.path;U=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=R(U,this.posX+this.margin[3],-Ye+Le+this.ctx.prevPageLastElemOffset),ht.call(this,N,!0),this.path=ar}if(W=JSON.parse(JSON.stringify(pe)),this.path=R(W,this.posX+this.margin[3],-Ye+Le+this.ctx.prevPageLastElemOffset),H===!1||de===0){var Xe=(de>ne||de<he)&&L.call(this);Xe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ge,Re,null).clip().discardPath()),ht.call(this,N,H),Xe&&this.pdf.restoreGraphicsState()}this.lineWidth=Ot}else this.lineWidth=ee,ht.call(this,N,H),this.lineWidth=Ot;this.path=pe},ht=function(N,H){if((N!=="stroke"||H||!w.call(this))&&(N==="stroke"||H||!f.call(this))){for(var U,W,gt=[],Ft=this.path,Et=0;Et<Ft.length;Et++){var Ot=Ft[Et];switch(Ot.type){case"begin":gt.push({begin:!0});break;case"close":gt.push({close:!0});break;case"mt":gt.push({start:Ot,deltas:[],abs:[]});break;case"lt":var ee=gt.length;if(Ft[Et-1]&&!isNaN(Ft[Et-1].x)&&(U=[Ot.x-Ft[Et-1].x,Ot.y-Ft[Et-1].y],ee>0)){for(;ee>=0;ee--)if(gt[ee-1].close!==!0&>[ee-1].begin!==!0){gt[ee-1].deltas.push(U),gt[ee-1].abs.push(Ot);break}}break;case"bct":U=[Ot.x1-Ft[Et-1].x,Ot.y1-Ft[Et-1].y,Ot.x2-Ft[Et-1].x,Ot.y2-Ft[Et-1].y,Ot.x-Ft[Et-1].x,Ot.y-Ft[Et-1].y],gt[gt.length-1].deltas.push(U);break;case"qct":var re=Ft[Et-1].x+2/3*(Ot.x1-Ft[Et-1].x),pe=Ft[Et-1].y+2/3*(Ot.y1-Ft[Et-1].y),xe=Ot.x+2/3*(Ot.x1-Ot.x),Be=Ot.y+2/3*(Ot.y1-Ot.y),Mt=Ot.x,st=Ot.y;U=[re-Ft[Et-1].x,pe-Ft[Et-1].y,xe-Ft[Et-1].x,Be-Ft[Et-1].y,Mt-Ft[Et-1].x,st-Ft[Et-1].y],gt[gt.length-1].deltas.push(U);break;case"arc":gt.push({deltas:[],abs:[],arc:!0}),Array.isArray(gt[gt.length-1].abs)&>[gt.length-1].abs.push(Ot)}}W=H?null:N==="stroke"?"stroke":"fill";for(var Fe=!1,ye=0;ye<gt.length;ye++)if(gt[ye].arc)for(var ne=gt[ye].abs,he=0;he<ne.length;he++){var de=ne[he];de.type==="arc"?A.call(this,de.x,de.y,de.radius,de.startAngle,de.endAngle,de.counterclockwise,void 0,H,!Fe):T.call(this,de.x,de.y),Fe=!0}else if(gt[ye].close===!0)this.pdf.internal.out("h"),Fe=!1;else if(gt[ye].begin!==!0){var ge=gt[ye].start.x,Le=gt[ye].start.y;C.call(this,gt[ye].deltas,ge,Le),Fe=!0}W&&B.call(this,W),H&&Y.call(this)}},Z=function(N){var H=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,U=H*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return N-U;case"top":return N+H-U;case"hanging":return N+H-2*U;case"middle":return N+H/2-U;case"ideographic":return N;case"alphabetic":default:return N}},tt=function(N){return N+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};g.prototype.createLinearGradient=function(){var N=function(){};return N.colorStops=[],N.addColorStop=function(H,U){this.colorStops.push([H,U])},N.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},N.isCanvasGradient=!0,N},g.prototype.createPattern=function(){return this.createLinearGradient()},g.prototype.createRadialGradient=function(){return this.createLinearGradient()};var A=function(N,H,U,W,gt,Ft,Et,Ot,ee){for(var re=F.call(this,U,W,gt,Ft),pe=0;pe<re.length;pe++){var xe=re[pe];pe===0&&(ee?x.call(this,xe.x1+N,xe.y1+H):T.call(this,xe.x1+N,xe.y1+H)),$.call(this,N,H,xe.x2,xe.y2,xe.x3,xe.y3,xe.x4,xe.y4)}Ot?Y.call(this):B.call(this,Et)},B=function(N){switch(N){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Y=function(){this.pdf.clip(),this.pdf.discardPath()},x=function(N,H){this.pdf.internal.out(e(N)+" "+a(H)+" m")},_=function(N){var H;switch(N.align){case"right":case"end":H="right";break;case"center":H="center";break;case"left":case"start":default:H="left"}var U=this.pdf.getTextDimensions(N.text),W=Z.call(this,N.y),gt=tt.call(this,W)-U.h,Ft=this.ctx.transform.applyToPoint(new o(N.x,W)),Et=this.ctx.transform.decompose(),Ot=new c;Ot=(Ot=(Ot=Ot.multiply(Et.translate)).multiply(Et.skew)).multiply(Et.scale);for(var ee,re,pe,xe=this.ctx.transform.applyToRectangle(new l(N.x,W,U.w,U.h)),Be=Ot.applyToRectangle(new l(N.x,gt,U.w,U.h)),Mt=E.call(this,Be),st=[],Fe=0;Fe<Mt.length;Fe+=1)st.indexOf(Mt[Fe])===-1&&st.push(Mt[Fe]);if(G(st),this.autoPaging)for(var ye=st[0],ne=st[st.length-1],he=ye;he<ne+1;he++){this.pdf.setPage(he);var de=he===1?this.posY+this.margin[0]:this.margin[0],ge=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Le=this.pdf.internal.pageSize.height-this.margin[2],Pe=Le-this.margin[0],Re=this.pdf.internal.pageSize.width-this.margin[1],Ye=Re-this.margin[3],ar=he===1?0:ge+(he-2)*Pe;if(this.ctx.clip_path.length!==0){var Xe=this.path;ee=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=R(ee,this.posX+this.margin[3],-1*ar+de),ht.call(this,"fill",!0),this.path=Xe}var Te=R([JSON.parse(JSON.stringify(Be))],this.posX+this.margin[3],-ar+de+this.ctx.prevPageLastElemOffset)[0];N.scale>=.01&&(re=this.pdf.internal.getFontSize(),this.pdf.setFontSize(re*N.scale),pe=this.lineWidth,this.lineWidth=pe*N.scale);var ze=this.autoPaging!=="text";if(ze||Te.y+Te.h<=Le){if(ze||Te.y>=de&&Te.x<=Re){var Ae=ze?N.text:this.pdf.splitTextToSize(N.text,N.maxWidth||Re-Te.x)[0],vr=R([JSON.parse(JSON.stringify(xe))],this.posX+this.margin[3],-ar+de+this.ctx.prevPageLastElemOffset)[0],tr=ze&&(he>ye||he<ne)&&L.call(this);tr&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ye,Pe,null).clip().discardPath()),this.pdf.text(Ae,vr.x,vr.y,{angle:N.angle,align:H,renderingMode:N.renderingMode}),tr&&this.pdf.restoreGraphicsState()}}else Te.y<Le&&(this.ctx.prevPageLastElemOffset+=Le-Te.y);N.scale>=.01&&(this.pdf.setFontSize(re),this.lineWidth=pe)}else N.scale>=.01&&(re=this.pdf.internal.getFontSize(),this.pdf.setFontSize(re*N.scale),pe=this.lineWidth,this.lineWidth=pe*N.scale),this.pdf.text(N.text,Ft.x+this.posX,Ft.y+this.posY,{angle:N.angle,align:H,renderingMode:N.renderingMode,maxWidth:N.maxWidth}),N.scale>=.01&&(this.pdf.setFontSize(re),this.lineWidth=pe)},T=function(N,H,U,W){U=U||0,W=W||0,this.pdf.internal.out(e(N+U)+" "+a(H+W)+" l")},C=function(N,H,U){return this.pdf.lines(N,H,U,null,null)},$=function(N,H,U,W,gt,Ft,Et,Ot){this.pdf.internal.out([t(s(U+N)),t(i(W+H)),t(s(gt+N)),t(i(Ft+H)),t(s(Et+N)),t(i(Ot+H)),"c"].join(" "))},F=function(N,H,U,W){for(var gt=2*Math.PI,Ft=Math.PI/2;H>U;)H-=gt;var Et=Math.abs(U-H);Et<gt&&W&&(Et=gt-Et);for(var Ot=[],ee=W?-1:1,re=H;Et>1e-5;){var pe=re+ee*Math.min(Et,Ft);Ot.push(I.call(this,N,re,pe)),Et-=Math.abs(pe-re),re=pe}return Ot},I=function(N,H,U){var W=(U-H)/2,gt=N*Math.cos(W),Ft=N*Math.sin(W),Et=gt,Ot=-Ft,ee=Et*Et+Ot*Ot,re=ee+Et*gt+Ot*Ft,pe=4/3*(Math.sqrt(2*ee*re)-re)/(Et*Ft-Ot*gt),xe=Et-pe*Ot,Be=Ot+pe*Et,Mt=xe,st=-Be,Fe=W+H,ye=Math.cos(Fe),ne=Math.sin(Fe);return{x1:N*Math.cos(H),y1:N*Math.sin(H),x2:xe*ye-Be*ne,y2:xe*ne+Be*ye,x3:Mt*ye-st*ne,y3:Mt*ne+st*ye,x4:N*Math.cos(U),y4:N*Math.sin(U)}},at=function(N){return 180*N/Math.PI},nt=function(N,H,U,W,gt,Ft){var Et=N+.5*(U-N),Ot=H+.5*(W-H),ee=gt+.5*(U-gt),re=Ft+.5*(W-Ft),pe=Math.min(N,gt,Et,ee),xe=Math.max(N,gt,Et,ee),Be=Math.min(H,Ft,Ot,re),Mt=Math.max(H,Ft,Ot,re);return new l(pe,Be,xe-pe,Mt-Be)},pt=function(N,H,U,W,gt,Ft,Et,Ot){var ee,re,pe,xe,Be,Mt,st,Fe,ye,ne,he,de,ge,Le,Pe=U-N,Re=W-H,Ye=gt-U,ar=Ft-W,Xe=Et-gt,Te=Ot-Ft;for(re=0;re<41;re++)ye=(st=(pe=N+(ee=re/40)*Pe)+ee*((Be=U+ee*Ye)-pe))+ee*(Be+ee*(gt+ee*Xe-Be)-st),ne=(Fe=(xe=H+ee*Re)+ee*((Mt=W+ee*ar)-xe))+ee*(Mt+ee*(Ft+ee*Te-Mt)-Fe),re==0?(he=ye,de=ne,ge=ye,Le=ne):(he=Math.min(he,ye),de=Math.min(de,ne),ge=Math.max(ge,ye),Le=Math.max(Le,ne));return new l(Math.round(he),Math.round(de),Math.round(ge-he),Math.round(Le-de))},Zt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var N,H,U=(N=this.ctx.lineDash,H=this.ctx.lineDashOffset,JSON.stringify({lineDash:N,lineDashOffset:H}));this.prevLineDash!==U&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=U)}}})(We.API),function(r){var t=function(i){var o,l,c,v,d,g,m,f,w,L;for(/[^\x00-\xFF]/.test(i),l=[],c=0,v=(i+=o="\0\0\0\0".slice(i.length%4||4)).length;v>c;c+=4)(d=(i.charCodeAt(c)<<24)+(i.charCodeAt(c+1)<<16)+(i.charCodeAt(c+2)<<8)+i.charCodeAt(c+3))!==0?(g=(d=((d=((d=((d=(d-(L=d%85))/85)-(w=d%85))/85)-(f=d%85))/85)-(m=d%85))/85)%85,l.push(g+33,m+33,f+33,w+33,L+33)):l.push(122);return function(E,y){for(var R=y;R>0;R--)E.pop()}(l,o.length),String.fromCharCode.apply(String,l)+"~>"},e=function(i){var o,l,c,v,d,g=String,m="length",f=255,w="charCodeAt",L="slice",E="replace";for(i[L](-2),i=i[L](0,-2)[E](/\s/g,"")[E]("z","!!!!!"),c=[],v=0,d=(i+=o="uuuuu"[L](i[m]%5||5))[m];d>v;v+=5)l=52200625*(i[w](v)-33)+614125*(i[w](v+1)-33)+7225*(i[w](v+2)-33)+85*(i[w](v+3)-33)+(i[w](v+4)-33),c.push(f&l>>24,f&l>>16,f&l>>8,f&l);return function(y,R){for(var G=R;G>0;G--)y.pop()}(c,o[m]),g.fromCharCode.apply(g,c)},a=function(i){var o=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((i=i.replace(/\s/g,"")).indexOf(">")!==-1&&(i=i.substr(0,i.indexOf(">"))),i.length%2&&(i+="0"),o.test(i)===!1)return"";for(var l="",c=0;c<i.length;c+=2)l+=String.fromCharCode("0x"+(i[c]+i[c+1]));return l},s=function(i){for(var o=new Uint8Array(i.length),l=i.length;l--;)o[l]=i.charCodeAt(l);return i=(o=Xa(o)).reduce(function(c,v){return c+String.fromCharCode(v)},"")};r.processDataByFilters=function(i,o){var l=0,c=i||"",v=[];for(typeof(o=o||[])=="string"&&(o=[o]),l=0;l<o.length;l+=1)switch(o[l]){case"ASCII85Decode":case"/ASCII85Decode":c=e(c),v.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":c=t(c),v.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":c=a(c),v.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":c=c.split("").map(function(d){return("0"+d.charCodeAt().toString(16)).slice(-2)}).join("")+">",v.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":c=s(c),v.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[l]+'" is not implemented')}return{data:c,reverseChain:v.reverse().join(" ")}}}(We.API),function(r){r.loadFile=function(t,e,a){return function(s,i,o){i=i!==!1,o=typeof o=="function"?o:function(){};var l=void 0;try{l=function(c,v,d){var g=new XMLHttpRequest,m=0,f=function(w){var L=w.length,E=[],y=String.fromCharCode;for(m=0;m<L;m+=1)E.push(y(255&w.charCodeAt(m)));return E.join("")};if(g.open("GET",c,!v),g.overrideMimeType("text/plain; charset=x-user-defined"),v===!1&&(g.onload=function(){g.status===200?d(f(this.responseText)):d(void 0)}),g.send(null),v&&g.status===200)return f(g.responseText)}(s,i,o)}catch(c){}return l}(t,e,a)},r.loadImageFile=r.loadFile}(We.API),function(r){function t(){return(Ve.html2canvas?Promise.resolve(Ve.html2canvas):Promise.resolve().then(Xr.t.bind(Xr,9820,23))).catch(function(o){return Promise.reject(new Error("Could not load html2canvas: "+o))}).then(function(o){return o.default?o.default:o})}function e(){return(Ve.DOMPurify?Promise.resolve(Ve.DOMPurify):Promise.resolve().then(Xr.t.bind(Xr,94994,23))).catch(function(o){return Promise.reject(new Error("Could not load dompurify: "+o))}).then(function(o){return o.default?o.default:o})}var a=function(o){var l=(0,xt.A)(o);return l==="undefined"?"undefined":l==="string"||o instanceof String?"string":l==="number"||o instanceof Number?"number":l==="function"||o instanceof Function?"function":o&&o.constructor===Array?"array":o&&o.nodeType===1?"element":l==="object"?"object":"unknown"},s=function(o,l){var c=document.createElement(o);for(var v in l.className&&(c.className=l.className),l.innerHTML&&l.dompurify&&(c.innerHTML=l.dompurify.sanitize(l.innerHTML)),l.style)c.style[v]=l.style[v];return c},i=function o(l){var c=Object.assign(o.convert(Promise.resolve()),JSON.parse(JSON.stringify(o.template))),v=o.convert(Promise.resolve(),c);return v=(v=v.setProgress(1,o,1,[o])).set(l)};(i.prototype=Object.create(Promise.prototype)).constructor=i,i.convert=function(o,l){return o.__proto__=l||i.prototype,o},i.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},i.prototype.from=function(o,l){return this.then(function(){switch(l=l||function(c){switch(a(c)){case"string":return"string";case"element":return c.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(o)){case"string":return this.then(e).then(function(c){return this.set({src:s("div",{innerHTML:o,dompurify:c})})});case"element":return this.set({src:o});case"canvas":return this.set({canvas:o});case"img":return this.set({img:o});default:return this.error("Unknown source type.")}})},i.prototype.to=function(o){switch(o){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},i.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var o={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},l=function c(v,d){for(var g=v.nodeType===3?document.createTextNode(v.nodeValue):v.cloneNode(!1),m=v.firstChild;m;m=m.nextSibling)d!==!0&&m.nodeType===1&&m.nodeName==="SCRIPT"||g.appendChild(c(m,d));return v.nodeType===1&&(v.nodeName==="CANVAS"?(g.width=v.width,g.height=v.height,g.getContext("2d").drawImage(v,0,0)):v.nodeName!=="TEXTAREA"&&v.nodeName!=="SELECT"||(g.value=v.value),g.addEventListener("load",function(){g.scrollTop=v.scrollTop,g.scrollLeft=v.scrollLeft},!0)),g}(this.prop.src,this.opt.html2canvas.javascriptEnabled);l.tagName==="BODY"&&(o.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=s("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=s("div",{className:"html2pdf__container",style:o}),this.prop.container.appendChild(l),this.prop.container.firstChild.appendChild(s("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},i.prototype.toCanvas=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then(function(l){var c=Object.assign({},this.opt.html2canvas);return delete c.onrendered,l(this.prop.container,c)}).then(function(l){(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},i.prototype.toContext2d=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then(function(l){var c=this.opt.jsPDF,v=this.opt.fontFaces,d=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,g=Object.assign({async:!0,allowTaint:!0,scale:d,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete g.onrendered,c.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,c.context2d.posX=this.opt.x,c.context2d.posY=this.opt.y,c.context2d.margin=this.opt.margin,c.context2d.fontFaces=v,v)for(var m=0;m<v.length;++m){var f=v[m],w=f.src.find(function(L){return L.format==="truetype"});w&&c.addFont(w.url,f.ref.name,f.ref.style)}return g.windowHeight=g.windowHeight||0,g.windowHeight=g.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):g.windowHeight,c.context2d.save(!0),l(this.prop.container,g)}).then(function(l){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},i.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var o=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=o})},i.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},i.prototype.output=function(o,l,c){return(c=c||"pdf").toLowerCase()==="img"||c.toLowerCase()==="image"?this.outputImg(o,l):this.outputPdf(o,l)},i.prototype.outputPdf=function(o,l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(o,l)})},i.prototype.outputImg=function(o){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(o){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+o+'" is not supported.'}})},i.prototype.save=function(o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(o?{filename:o}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},i.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},i.prototype.set=function(o){if(a(o)!=="object")return this;var l=Object.keys(o||{}).map(function(c){if(c in i.template.prop)return function(){this.prop[c]=o[c]};switch(c){case"margin":return this.setMargin.bind(this,o.margin);case"jsPDF":return function(){return this.opt.jsPDF=o.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,o.pageSize);default:return function(){this.opt[c]=o[c]}}},this);return this.then(function(){return this.thenList(l)})},i.prototype.get=function(o,l){return this.then(function(){var c=o in i.template.prop?this.prop[o]:this.opt[o];return l?l(c):c})},i.prototype.setMargin=function(o){return this.then(function(){switch(a(o)){case"number":o=[o,o,o,o];case"array":if(o.length===2&&(o=[o[0],o[1],o[0],o[1]]),o.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=o}).then(this.setPageSize)},i.prototype.setPageSize=function(o){function l(c,v){return Math.floor(c*v/72*96)}return this.then(function(){(o=o||We.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(o.inner={width:o.width-this.opt.margin[1]-this.opt.margin[3],height:o.height-this.opt.margin[0]-this.opt.margin[2]},o.inner.px={width:l(o.inner.width,o.k),height:l(o.inner.height,o.k)},o.inner.ratio=o.inner.height/o.inner.width),this.prop.pageSize=o})},i.prototype.setProgress=function(o,l,c,v){return o!=null&&(this.progress.val=o),l!=null&&(this.progress.state=l),c!=null&&(this.progress.n=c),v!=null&&(this.progress.stack=v),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(o,l,c,v){return this.setProgress(o?this.progress.val+o:null,l||null,c?this.progress.n+c:null,v?this.progress.stack.concat(v):null)},i.prototype.then=function(o,l){var c=this;return this.thenCore(o,l,function(v,d){return c.updateProgress(null,null,1,[v]),Promise.prototype.then.call(this,function(g){return c.updateProgress(null,v),g}).then(v,d).then(function(g){return c.updateProgress(1),g})})},i.prototype.thenCore=function(o,l,c){c=c||Promise.prototype.then,o&&(o=o.bind(this)),l&&(l=l.bind(this));var v=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:i.convert(Object.assign({},this),Promise.prototype),d=c.call(v,o,l);return i.convert(d,this.__proto__)},i.prototype.thenExternal=function(o,l){return Promise.prototype.then.call(this,o,l)},i.prototype.thenList=function(o){var l=this;return o.forEach(function(c){l=l.thenCore(c)}),l},i.prototype.catch=function(o){o&&(o=o.bind(this));var l=Promise.prototype.catch.call(this,o);return i.convert(l,this)},i.prototype.catchExternal=function(o){return Promise.prototype.catch.call(this,o)},i.prototype.error=function(o){return this.then(function(){throw new Error(o)})},i.prototype.using=i.prototype.set,i.prototype.saveAs=i.prototype.save,i.prototype.export=i.prototype.output,i.prototype.run=i.prototype.then,We.getPageSize=function(o,l,c){if((0,xt.A)(o)==="object"){var v=o;o=v.orientation,l=v.unit||l,c=v.format||c}l=l||"mm",c=c||"a4",o=(""+(o||"P")).toLowerCase();var d,g=(""+c).toLowerCase(),m={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(l){case"pt":d=1;break;case"mm":d=72/25.4;break;case"cm":d=72/2.54;break;case"in":d=72;break;case"px":d=.75;break;case"pc":case"em":d=12;break;case"ex":d=6;break;default:throw"Invalid unit: "+l}var f,w=0,L=0;if(m.hasOwnProperty(g))w=m[g][1]/d,L=m[g][0]/d;else try{w=c[1],L=c[0]}catch(E){throw new Error("Invalid format: "+c)}if(o==="p"||o==="portrait")o="p",L>w&&(f=L,L=w,w=f);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",w>L&&(f=L,L=w,w=f)}return{width:L,height:w,unit:l,k:d,orientation:o}},r.html=function(o,l){(l=l||{}).callback=l.callback||function(){},l.html2canvas=l.html2canvas||{},l.html2canvas.canvas=l.html2canvas.canvas||this.canvas,l.jsPDF=l.jsPDF||this,l.fontFaces=l.fontFaces?l.fontFaces.map(Xo):null;var c=new i(l);return l.worker?c:c.from(o).doCallback()}}(We.API),We.API.addJS=function(r){return yl=r,this.internal.events.subscribe("postPutResources",function(){Us=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Us+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),bl=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+yl+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Us!==void 0&&bl!==void 0&&this.internal.out("/Names <</JavaScript "+Us+" 0 R>>")}),this},function(r){var t;r.events.push(["postPutResources",function(){var e=this,a=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var s=e.outline.render().split(/\r\n/),i=0;i<s.length;i++){var o=s[i],l=a.exec(o);if(l!=null){var c=l[1];e.internal.newObjectDeferredBegin(c,!1)}e.internal.write(o)}if(this.outline.createNamedDestinations){var v=this.internal.pages.length,d=[];for(i=0;i<v;i++){var g=e.internal.newObject();d.push(g);var m=e.internal.getPageInfo(i+1);e.internal.write("<< /D["+m.objId+" 0 R /XYZ null null null]>> endobj")}var f=e.internal.newObject();for(e.internal.write("<< /Names [ "),i=0;i<d.length;i++)e.internal.write("(page_"+(i+1)+")"+d[i]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+f+" 0 R"),e.internal.write(">>","endobj")}}]),r.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),r.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(a,s,i){var o={title:s,options:i,children:[]};return a==null&&(a=this.root),a.children.push(o),o},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(a){a.id=e.internal.newObjectDeferred();for(var s=0;s<a.children.length;s++)this.genIds_r(a.children[s])},e.outline.renderRoot=function(a){this.objStart(a),this.line("/Type /Outlines"),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1]))),this.line("/Count "+this.count_r({count:0},a)),this.objEnd()},e.outline.renderItems=function(a){for(var s=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<a.children.length;i++){var o=a.children[i];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(a)),i>0&&this.line("/Prev "+this.makeRef(a.children[i-1])),i<a.children.length-1&&this.line("/Next "+this.makeRef(a.children[i+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var l=this.count=this.count_r({count:0},o);if(l>0&&this.line("/Count "+l),o.options&&o.options.pageNumber){var c=e.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+s(0)+" 0]")}this.objEnd()}for(var v=0;v<a.children.length;v++)this.renderItems(a.children[v])},e.outline.line=function(a){this.ctx.val+=a+"\r\n"},e.outline.makeRef=function(a){return a.id+" 0 R"},e.outline.makeString=function(a){return"("+e.internal.pdfEscape(a)+")"},e.outline.objStart=function(a){this.ctx.val+="\r\n"+a.id+" 0 obj\r\n<<\r\n"},e.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},e.outline.count_r=function(a,s){for(var i=0;i<s.children.length;i++)a.count++,this.count_r(a,s.children[i]);return a.count}}])}(We.API),function(r){var t=[192,193,194,195,196,197,198,199];r.processJPEG=function(e,a,s,i,o,l){var c,v=this.decode.DCT_DECODE,d=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=o||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,(c=function(g){for(var m,f=256*g.charCodeAt(4)+g.charCodeAt(5),w=g.length,L={width:0,height:0,numcomponents:1},E=4;E<w;E+=2){if(E+=f,t.indexOf(g.charCodeAt(E+1))!==-1){m=256*g.charCodeAt(E+5)+g.charCodeAt(E+6),L={width:256*g.charCodeAt(E+7)+g.charCodeAt(E+8),height:m,numcomponents:g.charCodeAt(E+9)};break}f=256*g.charCodeAt(E+2)+g.charCodeAt(E+3)}return L}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e)).numcomponents){case 1:l=this.color_spaces.DEVICE_GRAY;break;case 4:l=this.color_spaces.DEVICE_CMYK;break;case 3:l=this.color_spaces.DEVICE_RGB}d={data:e,width:c.width,height:c.height,colorSpace:l,bitsPerComponent:8,filter:v,index:a,alias:s}}return d}}(We.API);var ba,qs,wl,Al,_l,Hc=function(){var r,t,e;function a(i){var o,l,c,v,d,g,m,f,w,L,E,y,R,G;for(this.data=i,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},g=null;;){switch(o=this.readUInt32(),w=(function(){var Q,ht;for(ht=[],Q=0;Q<4;++Q)ht.push(String.fromCharCode(this.data[this.pos++]));return ht}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(o);break;case"fcTL":g&&this.animation.frames.push(g),this.pos+=4,g={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},d=this.readUInt16(),v=this.readUInt16()||100,g.delay=1e3*d/v,g.disposeOp=this.data[this.pos++],g.blendOp=this.data[this.pos++],g.data=[];break;case"IDAT":case"fdAT":for(w==="fdAT"&&(this.pos+=4,o-=4),i=(g!=null?g.data:void 0)||this.imgData,y=0;0<=o?y<o:y>o;0<=o?++y:--y)i.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(c=this.palette.length/3,this.transparency.indexed=this.read(o),this.transparency.indexed.length>c)throw new Error("More transparent colors than palette size");if((L=c-this.transparency.indexed.length)>0)for(R=0;0<=L?R<L:R>L;0<=L?++R:--R)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(o)[0];break;case 2:this.transparency.rgb=this.read(o)}break;case"tEXt":m=(E=this.read(o)).indexOf(0),f=String.fromCharCode.apply(String,E.slice(0,m)),this.text[f]=String.fromCharCode.apply(String,E.slice(m+1));break;case"IEND":return g&&this.animation.frames.push(g),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(G=this.colorType)===4||G===6,l=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*l,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=o}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}a.prototype.read=function(i){var o,l;for(l=[],o=0;0<=i?o<i:o>i;0<=i?++o:--o)l.push(this.data[this.pos++]);return l},a.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},a.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},a.prototype.decodePixels=function(i){var o=this.pixelBitlength/8,l=new Uint8Array(this.width*this.height*o),c=0,v=this;if(i==null&&(i=this.imgData),i.length===0)return new Uint8Array(0);function d(g,m,f,w){var L,E,y,R,G,Q,ht,Z,tt,A,B,Y,x,_,T,C,$,F,I,at,nt,pt=Math.ceil((v.width-g)/f),Zt=Math.ceil((v.height-m)/w),N=v.width==pt&&v.height==Zt;for(_=o*pt,Y=N?l:new Uint8Array(_*Zt),Q=i.length,x=0,E=0;x<Zt&&c<Q;){switch(i[c++]){case 0:for(R=$=0;$<_;R=$+=1)Y[E++]=i[c++];break;case 1:for(R=F=0;F<_;R=F+=1)L=i[c++],G=R<o?0:Y[E-o],Y[E++]=(L+G)%256;break;case 2:for(R=I=0;I<_;R=I+=1)L=i[c++],y=(R-R%o)/o,T=x&&Y[(x-1)*_+y*o+R%o],Y[E++]=(T+L)%256;break;case 3:for(R=at=0;at<_;R=at+=1)L=i[c++],y=(R-R%o)/o,G=R<o?0:Y[E-o],T=x&&Y[(x-1)*_+y*o+R%o],Y[E++]=(L+Math.floor((G+T)/2))%256;break;case 4:for(R=nt=0;nt<_;R=nt+=1)L=i[c++],y=(R-R%o)/o,G=R<o?0:Y[E-o],x===0?T=C=0:(T=Y[(x-1)*_+y*o+R%o],C=y&&Y[(x-1)*_+(y-1)*o+R%o]),ht=G+T-C,Z=Math.abs(ht-G),A=Math.abs(ht-T),B=Math.abs(ht-C),tt=Z<=A&&Z<=B?G:A<=B?T:C,Y[E++]=(L+tt)%256;break;default:throw new Error("Invalid filter algorithm: "+i[c-1])}if(!N){var H=((m+x*w)*v.width+g)*o,U=x*_;for(R=0;R<pt;R+=1){for(var W=0;W<o;W+=1)l[H++]=Y[U++];H+=(f-1)*o}}x++}}return i=Cs(i),v.interlaceMethod==1?(d(0,0,8,8),d(4,0,8,8),d(0,4,4,8),d(2,0,4,4),d(0,2,2,4),d(1,0,2,2),d(0,1,1,2)):d(0,0,1,1),l},a.prototype.decodePalette=function(){var i,o,l,c,v,d,g,m,f;for(l=this.palette,d=this.transparency.indexed||[],v=new Uint8Array((d.length||0)+l.length),c=0,i=0,o=g=0,m=l.length;g<m;o=g+=3)v[c++]=l[o],v[c++]=l[o+1],v[c++]=l[o+2],v[c++]=(f=d[i++])!=null?f:255;return v},a.prototype.copyToImageData=function(i,o){var l,c,v,d,g,m,f,w,L,E,y;if(c=this.colors,L=null,l=this.hasAlphaChannel,this.palette.length&&(L=(y=this._decodedPalette)!=null?y:this._decodedPalette=this.decodePalette(),c=4,l=!0),w=(v=i.data||i).length,g=L||o,d=m=0,c===1)for(;d<w;)f=L?4*o[d/4]:m,E=g[f++],v[d++]=E,v[d++]=E,v[d++]=E,v[d++]=l?g[f++]:255,m=f;else for(;d<w;)f=L?4*o[d/4]:m,v[d++]=g[f++],v[d++]=g[f++],v[d++]=g[f++],v[d++]=l?g[f++]:255,m=f},a.prototype.decode=function(){var i;return i=new Uint8Array(this.width*this.height*4),this.copyToImageData(i,this.decodePixels()),i};var s=function(){if(Object.prototype.toString.call(Ve)==="[object Window]"){try{t=Ve.document.createElement("canvas"),e=t.getContext("2d")}catch(i){return!1}return!0}return!1};return s(),r=function(i){var o;if(s()===!0)return e.width=i.width,e.height=i.height,e.clearRect(0,0,i.width,i.height),e.putImageData(i,0,0),(o=new Image).src=t.toDataURL(),o;throw new Error("This method requires a Browser with Canvas-capability.")},a.prototype.decodeFrames=function(i){var o,l,c,v,d,g,m,f;if(this.animation){for(f=[],l=d=0,g=(m=this.animation.frames).length;d<g;l=++d)o=m[l],c=i.createImageData(o.width,o.height),v=this.decodePixels(new Uint8Array(o.data)),this.copyToImageData(c,v),o.imageData=c,f.push(o.image=r(c));return f}},a.prototype.renderFrame=function(i,o){var l,c,v;return l=(c=this.animation.frames)[o],v=c[o-1],o===0&&i.clearRect(0,0,this.width,this.height),(v!=null?v.disposeOp:void 0)===1?i.clearRect(v.xOffset,v.yOffset,v.width,v.height):(v!=null?v.disposeOp:void 0)===2&&i.putImageData(v.imageData,v.xOffset,v.yOffset),l.blendOp===0&&i.clearRect(l.xOffset,l.yOffset,l.width,l.height),i.drawImage(l.image,l.xOffset,l.yOffset)},a.prototype.animate=function(i){var o,l,c,v,d,g,m=this;return l=0,g=this.animation,v=g.numFrames,c=g.frames,d=g.numPlays,(o=function(){var f,w;if(f=l++%v,w=c[f],m.renderFrame(i,f),v>1&&l/v<d)return m.animation._timeout=setTimeout(o,w.delay)})()},a.prototype.stopAnimation=function(){var i;return clearTimeout((i=this.animation)!=null?i._timeout:void 0)},a.prototype.render=function(i){var o,l;return i._png&&i._png.stopAnimation(),i._png=this,i.width=this.width,i.height=this.height,o=i.getContext("2d"),this.animation?(this.decodeFrames(o),this.animate(o)):(l=o.createImageData(this.width,this.height),this.copyToImageData(l,this.decodePixels()),o.putImageData(l,0,0))},a}();/**
- * @license
- *
- * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
- * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
- * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- * ====================================================================
- *//**
- * @license
- * (c) Dean McNamee <dean@gmail.com>, 2013.
- *
- * https://github.com/deanm/omggif
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to
- * deal in the Software without restriction, including without limitation the
- * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
- * sell copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
- * IN THE SOFTWARE.
- *
- * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
- * including animation and compression. It does not rely on any specific
- * underlying system, so should run in the browser, Node, or Plask.
- */function Wc(r){var t=0;if(r[t++]!==71||r[t++]!==73||r[t++]!==70||r[t++]!==56||(r[t++]+1&253)!=56||r[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=r[t++]|r[t++]<<8,a=r[t++]|r[t++]<<8,s=r[t++],i=s>>7,o=1<<(7&s)+1;r[t++],r[t++];var l=null,c=null;i&&(l=t,c=o,t+=3*o);var v=!0,d=[],g=0,m=null,f=0,w=null;for(this.width=e,this.height=a;v&&t<r.length;)switch(r[t++]){case 33:switch(r[t++]){case 255:if(r[t]!==11||r[t+1]==78&&r[t+2]==69&&r[t+3]==84&&r[t+4]==83&&r[t+5]==67&&r[t+6]==65&&r[t+7]==80&&r[t+8]==69&&r[t+9]==50&&r[t+10]==46&&r[t+11]==48&&r[t+12]==3&&r[t+13]==1&&r[t+16]==0)t+=14,w=r[t++]|r[t++]<<8,t++;else for(t+=12;;){if(!((x=r[t++])>=0))throw Error("Invalid block size");if(x===0)break;t+=x}break;case 249:if(r[t++]!==4||r[t+4]!==0)throw new Error("Invalid graphics extension block.");var L=r[t++];g=r[t++]|r[t++]<<8,m=r[t++],!(1&L)&&(m=null),f=L>>2&7,t++;break;case 254:for(;;){if(!((x=r[t++])>=0))throw Error("Invalid block size");if(x===0)break;t+=x}break;default:throw new Error("Unknown graphic control label: 0x"+r[t-1].toString(16))}break;case 44:var E=r[t++]|r[t++]<<8,y=r[t++]|r[t++]<<8,R=r[t++]|r[t++]<<8,G=r[t++]|r[t++]<<8,Q=r[t++],ht=Q>>6&1,Z=1<<(7&Q)+1,tt=l,A=c,B=!1;Q>>7&&(B=!0,tt=t,A=Z,t+=3*Z);var Y=t;for(t++;;){var x;if(!((x=r[t++])>=0))throw Error("Invalid block size");if(x===0)break;t+=x}d.push({x:E,y,width:R,height:G,has_local_palette:B,palette_offset:tt,palette_size:A,data_offset:Y,data_length:t-Y,transparent_index:m,interlaced:!!ht,delay:g,disposal:f});break;case 59:v=!1;break;default:throw new Error("Unknown gif block: 0x"+r[t-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return w},this.frameInfo=function(_){if(_<0||_>=d.length)throw new Error("Frame index out of range.");return d[_]},this.decodeAndBlitFrameBGRA=function(_,T){var C=this.frameInfo(_),$=C.width*C.height,F=new Uint8Array($);xl(r,C.data_offset,F,$);var I=C.palette_offset,at=C.transparent_index;at===null&&(at=256);var nt=C.width,pt=e-nt,Zt=nt,N=4*(C.y*e+C.x),H=4*((C.y+C.height)*e+C.x),U=N,W=4*pt;C.interlaced===!0&&(W+=4*e*7);for(var gt=8,Ft=0,Et=F.length;Ft<Et;++Ft){var Ot=F[Ft];if(Zt===0&&(Zt=nt,(U+=W)>=H&&(W=4*pt+4*e*(gt-1),U=N+(nt+pt)*(gt<<1),gt>>=1)),Ot===at)U+=4;else{var ee=r[I+3*Ot],re=r[I+3*Ot+1],pe=r[I+3*Ot+2];T[U++]=pe,T[U++]=re,T[U++]=ee,T[U++]=255}--Zt}},this.decodeAndBlitFrameRGBA=function(_,T){var C=this.frameInfo(_),$=C.width*C.height,F=new Uint8Array($);xl(r,C.data_offset,F,$);var I=C.palette_offset,at=C.transparent_index;at===null&&(at=256);var nt=C.width,pt=e-nt,Zt=nt,N=4*(C.y*e+C.x),H=4*((C.y+C.height)*e+C.x),U=N,W=4*pt;C.interlaced===!0&&(W+=4*e*7);for(var gt=8,Ft=0,Et=F.length;Ft<Et;++Ft){var Ot=F[Ft];if(Zt===0&&(Zt=nt,(U+=W)>=H&&(W=4*pt+4*e*(gt-1),U=N+(nt+pt)*(gt<<1),gt>>=1)),Ot===at)U+=4;else{var ee=r[I+3*Ot],re=r[I+3*Ot+1],pe=r[I+3*Ot+2];T[U++]=ee,T[U++]=re,T[U++]=pe,T[U++]=255}--Zt}}}function xl(r,t,e,a){for(var s=r[t++],i=1<<s,o=i+1,l=o+1,c=s+1,v=(1<<c)-1,d=0,g=0,m=0,f=r[t++],w=new Int32Array(4096),L=null;;){for(;d<16&&f!==0;)g|=r[t++]<<d,d+=8,f===1?f=r[t++]:--f;if(d<c)break;var E=g&v;if(g>>=c,d-=c,E!==i){if(E===o)break;for(var y=E<l?E:L,R=0,G=y;G>i;)G=w[G]>>8,++R;var Q=G;if(m+R+(y!==E?1:0)>a)return void Lr.log("Warning, gif stream longer than expected.");e[m++]=Q;var ht=m+=R;for(y!==E&&(e[m++]=Q),G=y;R--;)G=w[G],e[--ht]=255&G,G>>=8;L!==null&&l<4096&&(w[l++]=L<<8|Q,l>=v+1&&c<12&&(++c,v=v<<1|1)),L=E}else l=o+1,v=(1<<(c=s+1))-1,L=null}return m!==a&&Lr.log("Warning, gif stream shorter than expected."),e}/**
- * @license
- Copyright (c) 2008, Adobe Systems Incorporated
- All rights reserved.
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are
- met:
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
- * Neither the name of Adobe Systems Incorporated nor the names of its
- contributors may be used to endorse or promote products derived from
- this software without specific prior written permission.
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
- IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */function Jo(r){var t,e,a,s,i,o=Math.floor,l=new Array(64),c=new Array(64),v=new Array(64),d=new Array(64),g=new Array(65535),m=new Array(65535),f=new Array(64),w=new Array(64),L=[],E=0,y=7,R=new Array(64),G=new Array(64),Q=new Array(64),ht=new Array(256),Z=new Array(2048),tt=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],A=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],B=[0,1,2,3,4,5,6,7,8,9,10,11],Y=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],x=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],_=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],T=[0,1,2,3,4,5,6,7,8,9,10,11],C=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],$=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function F(N,H){for(var U=0,W=0,gt=new Array,Ft=1;Ft<=16;Ft++){for(var Et=1;Et<=N[Ft];Et++)gt[H[W]]=[],gt[H[W]][0]=U,gt[H[W]][1]=Ft,W++,U++;U*=2}return gt}function I(N){for(var H=N[0],U=N[1]-1;U>=0;)H&1<<U&&(E|=1<<y),U--,--y<0&&(E==255?(at(255),at(0)):at(E),y=7,E=0)}function at(N){L.push(N)}function nt(N){at(N>>8&255),at(255&N)}function pt(N,H,U,W,gt){for(var Ft,Et=gt[0],Ot=gt[240],ee=function(ne,he){var de,ge,Le,Pe,Re,Ye,ar,Xe,Te,ze,Ae=0;for(Te=0;Te<8;++Te){de=ne[Ae],ge=ne[Ae+1],Le=ne[Ae+2],Pe=ne[Ae+3],Re=ne[Ae+4],Ye=ne[Ae+5],ar=ne[Ae+6];var vr=de+(Xe=ne[Ae+7]),tr=de-Xe,Br=ge+ar,lr=ge-ar,wr=Le+Ye,Fn=Le-Ye,cr=Pe+Re,si=Pe-Re,Ar=vr+cr,Ln=vr-cr,Jr=Br+wr,pr=Br-wr;ne[Ae]=Ar+Jr,ne[Ae+4]=Ar-Jr;var He=.707106781*(pr+Ln);ne[Ae+2]=Ln+He,ne[Ae+6]=Ln-He;var or=.382683433*((Ar=si+Fn)-(pr=lr+tr)),oi=.5411961*Ar+or,Pr=1.306562965*pr+or,$r=.707106781*(Jr=Fn+lr),ui=tr+$r,Ge=tr-$r;ne[Ae+5]=Ge+oi,ne[Ae+3]=Ge-oi,ne[Ae+1]=ui+Pr,ne[Ae+7]=ui-Pr,Ae+=8}for(Ae=0,Te=0;Te<8;++Te){de=ne[Ae],ge=ne[Ae+8],Le=ne[Ae+16],Pe=ne[Ae+24],Re=ne[Ae+32],Ye=ne[Ae+40],ar=ne[Ae+48];var Hn=de+(Xe=ne[Ae+56]),li=de-Xe,vn=ge+ar,Yr=ge-ar,Wr=Le+Ye,Nn=Le-Ye,wa=Pe+Re,gi=Pe-Re,Wn=Hn+wa,Gn=Hn-wa,Vn=vn+Wr,ci=vn-Wr;ne[Ae]=Wn+Vn,ne[Ae+32]=Wn-Vn;var En=.707106781*(ci+Gn);ne[Ae+16]=Gn+En,ne[Ae+48]=Gn-En;var hi=.382683433*((Wn=gi+Nn)-(ci=Yr+li)),Ki=.5411961*Wn+hi,Aa=1.306562965*ci+hi,_a=.707106781*(Vn=Nn+Yr),xa=li+_a,La=li-_a;ne[Ae+40]=La+Ki,ne[Ae+24]=La-Ki,ne[Ae+8]=xa+Aa,ne[Ae+56]=xa-Aa,Ae++}for(Te=0;Te<64;++Te)ze=ne[Te]*he[Te],f[Te]=ze>0?ze+.5|0:ze-.5|0;return f}(N,H),re=0;re<64;++re)w[tt[re]]=ee[re];var pe=w[0]-U;U=w[0],pe==0?I(W[0]):(I(W[m[Ft=32767+pe]]),I(g[Ft]));for(var xe=63;xe>0&&w[xe]==0;)xe--;if(xe==0)return I(Et),U;for(var Be,Mt=1;Mt<=xe;){for(var st=Mt;w[Mt]==0&&Mt<=xe;)++Mt;var Fe=Mt-st;if(Fe>=16){Be=Fe>>4;for(var ye=1;ye<=Be;++ye)I(Ot);Fe&=15}Ft=32767+w[Mt],I(gt[(Fe<<4)+m[Ft]]),I(g[Ft]),Mt++}return xe!=63&&I(Et),U}function Zt(N){N=Math.min(Math.max(N,1),100),i!=N&&(function(H){for(var U=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],W=0;W<64;W++){var gt=o((U[W]*H+50)/100);gt=Math.min(Math.max(gt,1),255),l[tt[W]]=gt}for(var Ft=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Et=0;Et<64;Et++){var Ot=o((Ft[Et]*H+50)/100);Ot=Math.min(Math.max(Ot,1),255),c[tt[Et]]=Ot}for(var ee=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],re=0,pe=0;pe<8;pe++)for(var xe=0;xe<8;xe++)v[re]=1/(l[tt[re]]*ee[pe]*ee[xe]*8),d[re]=1/(c[tt[re]]*ee[pe]*ee[xe]*8),re++}(N<50?Math.floor(5e3/N):Math.floor(200-2*N)),i=N)}this.encode=function(N,H){H&&Zt(H),L=new Array,E=0,y=7,nt(65496),nt(65504),nt(16),at(74),at(70),at(73),at(70),at(0),at(1),at(1),at(0),nt(1),nt(1),at(0),at(0),function(){nt(65499),nt(132),at(0);for(var ge=0;ge<64;ge++)at(l[ge]);at(1);for(var Le=0;Le<64;Le++)at(c[Le])}(),function(ge,Le){nt(65472),nt(17),at(8),nt(Le),nt(ge),at(3),at(1),at(17),at(0),at(2),at(17),at(1),at(3),at(17),at(1)}(N.width,N.height),function(){nt(65476),nt(418),at(0);for(var ge=0;ge<16;ge++)at(A[ge+1]);for(var Le=0;Le<=11;Le++)at(B[Le]);at(16);for(var Pe=0;Pe<16;Pe++)at(Y[Pe+1]);for(var Re=0;Re<=161;Re++)at(x[Re]);at(1);for(var Ye=0;Ye<16;Ye++)at(_[Ye+1]);for(var ar=0;ar<=11;ar++)at(T[ar]);at(17);for(var Xe=0;Xe<16;Xe++)at(C[Xe+1]);for(var Te=0;Te<=161;Te++)at($[Te])}(),nt(65498),nt(12),at(3),at(1),at(0),at(2),at(17),at(3),at(17),at(0),at(63),at(0);var U=0,W=0,gt=0;E=0,y=7,this.encode.displayName="_encode_";for(var Ft,Et,Ot,ee,re,pe,xe,Be,Mt,st=N.data,Fe=N.width,ye=N.height,ne=4*Fe,he=0;he<ye;){for(Ft=0;Ft<ne;){for(re=ne*he+Ft,xe=-1,Be=0,Mt=0;Mt<64;Mt++)pe=re+(Be=Mt>>3)*ne+(xe=4*(7&Mt)),he+Be>=ye&&(pe-=ne*(he+1+Be-ye)),Ft+xe>=ne&&(pe-=Ft+xe-ne+4),Et=st[pe++],Ot=st[pe++],ee=st[pe++],R[Mt]=(Z[Et]+Z[Ot+256>>0]+Z[ee+512>>0]>>16)-128,G[Mt]=(Z[Et+768>>0]+Z[Ot+1024>>0]+Z[ee+1280>>0]>>16)-128,Q[Mt]=(Z[Et+1280>>0]+Z[Ot+1536>>0]+Z[ee+1792>>0]>>16)-128;U=pt(R,v,U,t,a),W=pt(G,d,W,e,s),gt=pt(Q,d,gt,e,s),Ft+=32}he+=8}if(y>=0){var de=[];de[1]=y+1,de[0]=(1<<y+1)-1,I(de)}return nt(65497),new Uint8Array(L)},r=r||50,function(){for(var N=String.fromCharCode,H=0;H<256;H++)ht[H]=N(H)}(),t=F(A,B),e=F(_,T),a=F(Y,x),s=F(C,$),function(){for(var N=1,H=2,U=1;U<=15;U++){for(var W=N;W<H;W++)m[32767+W]=U,g[32767+W]=[],g[32767+W][1]=U,g[32767+W][0]=W;for(var gt=-(H-1);gt<=-N;gt++)m[32767+gt]=U,g[32767+gt]=[],g[32767+gt][1]=U,g[32767+gt][0]=H-1+gt;N<<=1,H<<=1}}(),function(){for(var N=0;N<256;N++)Z[N]=19595*N,Z[N+256>>0]=38470*N,Z[N+512>>0]=7471*N+32768,Z[N+768>>0]=-11059*N,Z[N+1024>>0]=-21709*N,Z[N+1280>>0]=32768*N+8421375,Z[N+1536>>0]=-27439*N,Z[N+1792>>0]=-5329*N}(),Zt(r)}/**
- * @license
- * Copyright (c) 2017 Aras Abbasi
- *
- * Licensed under the MIT License.
- * http://opensource.org/licenses/mit-license
- */function zn(r,t){if(this.pos=0,this.buffer=r,this.datav=new DataView(r.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Ll(r){function t(A){if(!A)throw Error("assert :P")}function e(A,B,Y){for(var x=0;4>x;x++)if(A[B+x]!=Y.charCodeAt(x))return!0;return!1}function a(A,B,Y,x,_){for(var T=0;T<_;T++)A[B+T]=Y[x+T]}function s(A,B,Y,x){for(var _=0;_<x;_++)A[B+_]=Y}function i(A){return new Int32Array(A)}function o(A,B){for(var Y=[],x=0;x<A;x++)Y.push(new B);return Y}function l(A,B){var Y=[];return function x(_,T,C){for(var $=C[T],F=0;F<$&&(_.push(C.length>T+1?[]:new B),!(C.length<T+1));F++)x(_[F],T+1,C)}(Y,0,A),Y}var c=function(){var A=this;function B(n,u){for(var p=1<<u-1>>>0;n&p;)p>>>=1;return p?(n&p-1)+p:n}function Y(n,u,p,b,k){t(!(b%p));do n[u+(b-=p)]=k;while(0<b)}function x(n,u,p,b,k){if(t(2328>=k),512>=k)var O=i(512);else if((O=i(k))==null)return 0;return function(j,M,z,K,wt,Dt){var Rt,It,te=M,Ht=1<<z,At=i(16),Nt=i(16);for(t(wt!=0),t(K!=null),t(j!=null),t(0<z),It=0;It<wt;++It){if(15<K[It])return 0;++At[K[It]]}if(At[0]==wt)return 0;for(Nt[1]=0,Rt=1;15>Rt;++Rt){if(At[Rt]>1<<Rt)return 0;Nt[Rt+1]=Nt[Rt]+At[Rt]}for(It=0;It<wt;++It)Rt=K[It],0<K[It]&&(Dt[Nt[Rt]++]=It);if(Nt[15]==1)return(K=new _).g=0,K.value=Dt[0],Y(j,te,1,Ht,K),Ht;var Kt,ae=-1,$t=Ht-1,Ie=0,_e=1,qe=1,Ne=1<<z;for(It=0,Rt=1,wt=2;Rt<=z;++Rt,wt<<=1){if(_e+=qe<<=1,0>(qe-=At[Rt]))return 0;for(;0<At[Rt];--At[Rt])(K=new _).g=Rt,K.value=Dt[It++],Y(j,te+Ie,wt,Ne,K),Ie=B(Ie,Rt)}for(Rt=z+1,wt=2;15>=Rt;++Rt,wt<<=1){if(_e+=qe<<=1,0>(qe-=At[Rt]))return 0;for(;0<At[Rt];--At[Rt]){if(K=new _,(Ie&$t)!=ae){for(te+=Ne,Kt=1<<(ae=Rt)-z;15>ae&&!(0>=(Kt-=At[ae]));)++ae,Kt<<=1;Ht+=Ne=1<<(Kt=ae-z),j[M+(ae=Ie&$t)].g=Kt+z,j[M+ae].value=te-M-ae}K.g=Rt-z,K.value=Dt[It++],Y(j,te+(Ie>>z),wt,Ne,K),Ie=B(Ie,Rt)}}return _e!=2*Nt[15]-1?0:Ht}(n,u,p,b,k,O)}function _(){this.value=this.g=0}function T(){this.value=this.g=0}function C(){this.G=o(5,_),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(yn,T)}function $(n,u,p,b){t(n!=null),t(u!=null),t(2147483648>b),n.Ca=254,n.I=0,n.b=-8,n.Ka=0,n.oa=u,n.pa=p,n.Jd=u,n.Yc=p+b,n.Zc=4<=b?p+b-4+1:p,Ft(n)}function F(n,u){for(var p=0;0<u--;)p|=Ot(n,128)<<u;return p}function I(n,u){var p=F(n,u);return Et(n)?-p:p}function at(n,u,p,b){var k,O=0;for(t(n!=null),t(u!=null),t(4294967288>b),n.Sb=b,n.Ra=0,n.u=0,n.h=0,4<b&&(b=4),k=0;k<b;++k)O+=u[p+k]<<8*k;n.Ra=O,n.bb=b,n.oa=u,n.pa=p}function nt(n){for(;8<=n.u&&n.bb<n.Sb;)n.Ra>>>=8,n.Ra+=n.oa[n.pa+n.bb]<<Ma-8>>>0,++n.bb,n.u-=8;U(n)&&(n.h=1,n.u=0)}function pt(n,u){if(t(0<=u),!n.h&&u<=Ta){var p=H(n)&Ra[u];return n.u+=u,nt(n),p}return n.h=1,n.u=0}function Zt(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function N(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function H(n){return n.Ra>>>(n.u&Ma-1)>>>0}function U(n){return t(n.bb<=n.Sb),n.h||n.bb==n.Sb&&n.u>Ma}function W(n,u){n.u=u,n.h=U(n)}function gt(n){n.u>=ms&&(t(n.u>=ms),nt(n))}function Ft(n){t(n!=null&&n.oa!=null),n.pa<n.Zc?(n.I=(n.oa[n.pa++]|n.I<<8)>>>0,n.b+=8):(t(n!=null&&n.oa!=null),n.pa<n.Yc?(n.b+=8,n.I=n.oa[n.pa++]|n.I<<8):n.Ka?n.b=0:(n.I<<=8,n.b+=8,n.Ka=1))}function Et(n){return F(n,1)}function Ot(n,u){var p=n.Ca;0>n.b&&Ft(n);var b=n.b,k=p*u>>>8,O=(n.I>>>b>k)+0;for(O?(p-=k,n.I-=k+1<<b>>>0):p=k+1,b=p,k=0;256<=b;)k+=8,b>>=8;return b=7^k+wn[b],n.b-=b,n.Ca=(p<<b)-1,O}function ee(n,u,p){n[u+0]=p>>24&255,n[u+1]=p>>16&255,n[u+2]=p>>8&255,n[u+3]=p>>0&255}function re(n,u){return n[u+0]<<0|n[u+1]<<8}function pe(n,u){return re(n,u)|n[u+2]<<16}function xe(n,u){return re(n,u)|re(n,u+2)<<16}function Be(n,u){var p=1<<u;return t(n!=null),t(0<u),n.X=i(p),n.X==null?0:(n.Mb=32-u,n.Xa=u,1)}function Mt(n,u){t(n!=null),t(u!=null),t(n.Xa==u.Xa),a(u.X,0,n.X,0,1<<u.Xa)}function st(){this.X=[],this.Xa=this.Mb=0}function Fe(n,u,p,b){t(p!=null),t(b!=null);var k=p[0],O=b[0];return k==0&&(k=(n*O+u/2)/u),O==0&&(O=(u*k+n/2)/n),0>=k||0>=O?0:(p[0]=k,b[0]=O,1)}function ye(n,u){return n+(1<<u)-1>>>u}function ne(n,u){return((4278255360&n)+(4278255360&u)>>>0&4278255360)+((16711935&n)+(16711935&u)>>>0&16711935)>>>0}function he(n,u){A[u]=function(p,b,k,O,j,M,z){var K;for(K=0;K<j;++K){var wt=A[n](M[z+K-1],k,O+K);M[z+K]=ne(p[b+K],wt)}}}function de(){this.ud=this.hd=this.jd=0}function ge(n,u){return((4278124286&(n^u))>>>1)+(n&u)>>>0}function Le(n){return 0<=n&&256>n?n:0>n?0:255<n?255:void 0}function Pe(n,u){return Le(n+(n-u+.5>>1))}function Re(n,u,p){return Math.abs(u-p)-Math.abs(n-p)}function Ye(n,u,p,b,k,O,j){for(b=O[j-1],p=0;p<k;++p)O[j+p]=b=ne(n[u+p],b)}function ar(n,u,p,b,k){var O;for(O=0;O<p;++O){var j=n[u+O],M=j>>8&255,z=16711935&(z=(z=16711935&j)+((M<<16)+M));b[k+O]=(4278255360&j)+z>>>0}}function Xe(n,u){u.jd=n>>0&255,u.hd=n>>8&255,u.ud=n>>16&255}function Te(n,u,p,b,k,O){var j;for(j=0;j<b;++j){var M=u[p+j],z=M>>>8,K=M,wt=255&(wt=(wt=M>>>16)+((n.jd<<24>>24)*(z<<24>>24)>>>5));K=255&(K=(K=K+((n.hd<<24>>24)*(z<<24>>24)>>>5))+((n.ud<<24>>24)*(wt<<24>>24)>>>5)),k[O+j]=(4278255360&M)+(wt<<16)+K}}function ze(n,u,p,b,k){A[u]=function(O,j,M,z,K,wt,Dt,Rt,It){for(z=Dt;z<Rt;++z)for(Dt=0;Dt<It;++Dt)K[wt++]=k(M[b(O[j++])])},A[n]=function(O,j,M,z,K,wt,Dt){var Rt=8>>O.b,It=O.Ea,te=O.K[0],Ht=O.w;if(8>Rt)for(O=(1<<O.b)-1,Ht=(1<<Rt)-1;j<M;++j){var At,Nt=0;for(At=0;At<It;++At)At&O||(Nt=b(z[K++])),wt[Dt++]=k(te[Nt&Ht]),Nt>>=Rt}else A["VP8LMapColor"+p](z,K,te,Ht,wt,Dt,j,M,It)}}function Ae(n,u,p,b,k){for(p=u+p;u<p;){var O=n[u++];b[k++]=O>>16&255,b[k++]=O>>8&255,b[k++]=O>>0&255}}function vr(n,u,p,b,k){for(p=u+p;u<p;){var O=n[u++];b[k++]=O>>16&255,b[k++]=O>>8&255,b[k++]=O>>0&255,b[k++]=O>>24&255}}function tr(n,u,p,b,k){for(p=u+p;u<p;){var O=(j=n[u++])>>16&240|j>>12&15,j=j>>0&240|j>>28&15;b[k++]=O,b[k++]=j}}function Br(n,u,p,b,k){for(p=u+p;u<p;){var O=(j=n[u++])>>16&248|j>>13&7,j=j>>5&224|j>>3&31;b[k++]=O,b[k++]=j}}function lr(n,u,p,b,k){for(p=u+p;u<p;){var O=n[u++];b[k++]=O>>0&255,b[k++]=O>>8&255,b[k++]=O>>16&255}}function wr(n,u,p,b,k,O){if(O==0)for(p=u+p;u<p;)ee(b,((O=n[u++])[0]>>24|O[1]>>8&65280|O[2]<<8&16711680|O[3]<<24)>>>0),k+=32;else a(b,k,n,u,p)}function Fn(n,u){A[u][0]=A[n+"0"],A[u][1]=A[n+"1"],A[u][2]=A[n+"2"],A[u][3]=A[n+"3"],A[u][4]=A[n+"4"],A[u][5]=A[n+"5"],A[u][6]=A[n+"6"],A[u][7]=A[n+"7"],A[u][8]=A[n+"8"],A[u][9]=A[n+"9"],A[u][10]=A[n+"10"],A[u][11]=A[n+"11"],A[u][12]=A[n+"12"],A[u][13]=A[n+"13"],A[u][14]=A[n+"0"],A[u][15]=A[n+"0"]}function cr(n){return n==Fu||n==Eu||n==xo||n==Ou}function si(){this.eb=[],this.size=this.A=this.fb=0}function Ar(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Ln(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new si,this.f.kb=new Ar,this.sd=null}function Jr(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function pr(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function He(n){return alert("todo:WebPSamplerProcessPlane"),n.T}function or(n,u){var p=n.T,b=u.ba.f.RGBA,k=b.eb,O=b.fb+n.ka*b.A,j=Dn[u.ba.S],M=n.y,z=n.O,K=n.f,wt=n.N,Dt=n.ea,Rt=n.W,It=u.cc,te=u.dc,Ht=u.Mc,At=u.Nc,Nt=n.ka,Kt=n.ka+n.T,ae=n.U,$t=ae+1>>1;for(Nt==0?j(M,z,null,null,K,wt,Dt,Rt,K,wt,Dt,Rt,k,O,null,null,ae):(j(u.ec,u.fc,M,z,It,te,Ht,At,K,wt,Dt,Rt,k,O-b.A,k,O,ae),++p);Nt+2<Kt;Nt+=2)It=K,te=wt,Ht=Dt,At=Rt,wt+=n.Rc,Rt+=n.Rc,O+=2*b.A,j(M,(z+=2*n.fa)-n.fa,M,z,It,te,Ht,At,K,wt,Dt,Rt,k,O-b.A,k,O,ae);return z+=n.fa,n.j+Kt<n.o?(a(u.ec,u.fc,M,z,ae),a(u.cc,u.dc,K,wt,$t),a(u.Mc,u.Nc,Dt,Rt,$t),p--):1&Kt||j(M,z,null,null,K,wt,Dt,Rt,K,wt,Dt,Rt,k,O+b.A,null,null,ae),p}function oi(n,u,p){var b=n.F,k=[n.J];if(b!=null){var O=n.U,j=u.ba.S,M=j==_o||j==xo;u=u.ba.f.RGBA;var z=[0],K=n.ka;z[0]=n.T,n.Kb&&(K==0?--z[0]:(--K,k[0]-=n.width),n.j+n.ka+n.T==n.o&&(z[0]=n.o-n.j-K));var wt=u.eb;K=u.fb+K*u.A,n=vo(b,k[0],n.width,O,z,wt,K+(M?0:3),u.A),t(p==z),n&&cr(j)&&Ri(wt,K,M,O,z,u.A)}return 0}function Pr(n){var u=n.ma,p=u.ba.S,b=11>p,k=p==wo||p==Ao||p==_o||p==Cu||p==12||cr(p);if(u.memory=null,u.Ib=null,u.Jb=null,u.Nd=null,!ps(u.Oa,n,k?11:12))return 0;if(k&&cr(p)&&ce(),n.da)alert("todo:use_scaling");else{if(b){if(u.Ib=He,n.Kb){if(p=n.U+1>>1,u.memory=i(n.U+2*p),u.memory==null)return 0;u.ec=u.memory,u.fc=0,u.cc=u.ec,u.dc=u.fc+n.U,u.Mc=u.cc,u.Nc=u.dc+p,u.Ib=or,ce()}}else alert("todo:EmitYUV");k&&(u.Jb=oi,b&&Bt())}if(b&&!rc){for(n=0;256>n;++n)Eh[n]=89858*(n-128)+No>>Lo,jh[n]=-22014*(n-128)+No,Bh[n]=-45773*(n-128),Oh[n]=113618*(n-128)+No>>Lo;for(n=_s;n<Du;++n)u=76283*(n-16)+No>>Lo,Dh[n-_s]=Sn(u,255),Rh[n-_s]=Sn(u+8>>4,15);rc=1}return 1}function $r(n){var u=n.ma,p=n.U,b=n.T;return t(!(1&n.ka)),0>=p||0>=b?0:(p=u.Ib(n,u),u.Jb!=null&&u.Jb(n,u,p),u.Dc+=p,1)}function ui(n){n.ma.memory=null}function Ge(n,u,p,b){return pt(n,8)!=47?0:(u[0]=pt(n,14)+1,p[0]=pt(n,14)+1,b[0]=pt(n,1),pt(n,3)!=0?0:!n.h)}function Hn(n,u){if(4>n)return n+1;var p=n-2>>1;return(2+(1&n)<<p)+pt(u,p)+1}function li(n,u){return 120<u?u-120:1<=(p=((p=bh[u-1])>>4)*n+(8-(15&p)))?p:1;var p}function vn(n,u,p){var b=H(p),k=n[u+=255&b].g-8;return 0<k&&(W(p,p.u+8),b=H(p),u+=n[u].value,u+=b&(1<<k)-1),W(p,p.u+n[u].g),n[u].value}function Yr(n,u,p){return p.g+=n.g,p.value+=n.value<<u>>>0,t(8>=p.g),n.g}function Wr(n,u,p){var b=n.xc;return t((u=b==0?0:n.vc[n.md*(p>>b)+(u>>b)])<n.Wb),n.Ya[u]}function Nn(n,u,p,b){var k=n.ab,O=n.c*u,j=n.C;u=j+u;var M=p,z=b;for(b=n.Ta,p=n.Ua;0<k--;){var K=n.gc[k],wt=j,Dt=u,Rt=M,It=z,te=(z=b,M=p,K.Ea);switch(t(wt<Dt),t(Dt<=K.nc),K.hc){case 2:mo(Rt,It,(Dt-wt)*te,z,M);break;case 0:var Ht=wt,At=Dt,Nt=z,Kt=M,ae=(Ne=K).Ea;Ht==0&&(Su(Rt,It,null,null,1,Nt,Kt),Ye(Rt,It+1,0,0,ae-1,Nt,Kt+1),It+=ae,Kt+=ae,++Ht);for(var $t=1<<Ne.b,Ie=$t-1,_e=ye(ae,Ne.b),qe=Ne.K,Ne=Ne.w+(Ht>>Ne.b)*_e;Ht<At;){var gr=qe,br=Ne,dr=1;for(vs(Rt,It,Nt,Kt-ae,1,Nt,Kt);dr<ae;){var ur=(dr&~Ie)+$t;ur>ae&&(ur=ae),(0,Oi[gr[br++]>>8&15])(Rt,It+ +dr,Nt,Kt+dr-ae,ur-dr,Nt,Kt+dr),dr=ur}It+=ae,Kt+=ae,++Ht&Ie||(Ne+=_e)}Dt!=K.nc&&a(z,M-te,z,M+(Dt-wt-1)*te,te);break;case 1:for(te=Rt,At=It,ae=(Rt=K.Ea)-(Kt=Rt&~(Nt=(It=1<<K.b)-1)),Ht=ye(Rt,K.b),$t=K.K,K=K.w+(wt>>K.b)*Ht;wt<Dt;){for(Ie=$t,_e=K,qe=new de,Ne=At+Kt,gr=At+Rt;At<Ne;)Xe(Ie[_e++],qe),On(qe,te,At,It,z,M),At+=It,M+=It;At<gr&&(Xe(Ie[_e++],qe),On(qe,te,At,ae,z,M),At+=ae,M+=ae),++wt&Nt||(K+=Ht)}break;case 3:if(Rt==z&&It==M&&0<K.b){for(At=z,Rt=te=M+(Dt-wt)*te-(Kt=(Dt-wt)*ye(K.Ea,K.b)),It=z,Nt=M,Ht=[],Kt=(ae=Kt)-1;0<=Kt;--Kt)Ht[Kt]=It[Nt+Kt];for(Kt=ae-1;0<=Kt;--Kt)At[Rt+Kt]=Ht[Kt];Xn(K,wt,Dt,z,te,z,M)}else Xn(K,wt,Dt,Rt,It,z,M)}M=b,z=p}z!=p&&a(b,p,M,z,O)}function wa(n,u){var p=n.V,b=n.Ba+n.c*n.C,k=u-n.C;if(t(u<=n.l.o),t(16>=k),0<k){var O=n.l,j=n.Ta,M=n.Ua,z=O.width;if(Nn(n,k,p,b),k=M=[M],t((p=n.C)<(b=u)),t(O.v<O.va),b>O.o&&(b=O.o),p<O.j){var K=O.j-p;p=O.j,k[0]+=K*z}if(p>=b?p=0:(k[0]+=4*O.v,O.ka=p-O.j,O.U=O.va-O.v,O.T=b-p,p=1),p){if(M=M[0],11>(p=n.ca).S){var wt=p.f.RGBA,Dt=(b=p.S,k=O.U,O=O.T,K=wt.eb,wt.A),Rt=O;for(wt=wt.fb+n.Ma*wt.A;0<Rt--;){var It=j,te=M,Ht=k,At=K,Nt=wt;switch(b){case yo:Kn(It,te,Ht,At,Nt);break;case wo:Bi(It,te,Ht,At,Nt);break;case Fu:Bi(It,te,Ht,At,Nt),Ri(At,Nt,0,Ht,1,0);break;case Vl:za(It,te,Ht,At,Nt);break;case Ao:wr(It,te,Ht,At,Nt,1);break;case Eu:wr(It,te,Ht,At,Nt,1),Ri(At,Nt,0,Ht,1,0);break;case _o:wr(It,te,Ht,At,Nt,0);break;case xo:wr(It,te,Ht,At,Nt,0),Ri(At,Nt,1,Ht,1,0);break;case Cu:di(It,te,Ht,At,Nt);break;case Ou:di(It,te,Ht,At,Nt),Ha(At,Nt,Ht,1,0);break;case Zl:yi(It,te,Ht,At,Nt);break;default:t(0)}M+=z,wt+=Dt}n.Ma+=O}else alert("todo:EmitRescaledRowsYUVA");t(n.Ma<=p.height)}}n.C=u,t(n.C<=n.i)}function gi(n){var u;if(0<n.ua)return 0;for(u=0;u<n.Wb;++u){var p=n.Ya[u].G,b=n.Ya[u].H;if(0<p[1][b[1]+0].g||0<p[2][b[2]+0].g||0<p[3][b[3]+0].g)return 0}return 1}function Wn(n,u,p,b,k,O){if(n.Z!=0){var j=n.qd,M=n.rd;for(t(Mi[n.Z]!=null);u<p;++u)Mi[n.Z](j,M,b,k,b,k,O),j=b,M=k,k+=O;n.qd=j,n.rd=M}}function Gn(n,u){var p=n.l.ma,b=p.Z==0||p.Z==1?n.l.j:n.C;if(b=n.C<b?b:n.C,t(u<=n.l.o),u>b){var k=n.l.width,O=p.ca,j=p.tb+k*b,M=n.V,z=n.Ba+n.c*b,K=n.gc;t(n.ab==1),t(K[0].hc==3),ku(K[0],b,u,M,z,O,j),Wn(p,b,u,O,j,k)}n.C=n.Ma=u}function Vn(n,u,p,b,k,O,j){var M=n.$/b,z=n.$%b,K=n.m,wt=n.s,Dt=p+n.$,Rt=Dt;k=p+b*k;var It=p+b*O,te=280+wt.ua,Ht=n.Pb?M:16777216,At=0<wt.ua?wt.Wa:null,Nt=wt.wc,Kt=Dt<It?Wr(wt,z,M):null;t(n.C<O),t(It<=k);var ae=!1;t:for(;;){for(;ae||Dt<It;){var $t=0;if(M>=Ht){var Ie=Dt-p;t((Ht=n).Pb),Ht.wd=Ht.m,Ht.xd=Ie,0<Ht.s.ua&&Mt(Ht.s.Wa,Ht.s.vb),Ht=M+wh}if(z&Nt||(Kt=Wr(wt,z,M)),t(Kt!=null),Kt.Qb&&(u[Dt]=Kt.qb,ae=!0),!ae)if(gt(K),Kt.jc){$t=K,Ie=u;var _e=Dt,qe=Kt.pd[H($t)&yn-1];t(Kt.jc),256>qe.g?(W($t,$t.u+qe.g),Ie[_e]=qe.value,$t=0):(W($t,$t.u+qe.g-256),t(256<=qe.value),$t=qe.value),$t==0&&(ae=!0)}else $t=vn(Kt.G[0],Kt.H[0],K);if(K.h)break;if(ae||256>$t){if(!ae)if(Kt.nd)u[Dt]=(Kt.qb|$t<<8)>>>0;else{if(gt(K),ae=vn(Kt.G[1],Kt.H[1],K),gt(K),Ie=vn(Kt.G[2],Kt.H[2],K),_e=vn(Kt.G[3],Kt.H[3],K),K.h)break;u[Dt]=(_e<<24|ae<<16|$t<<8|Ie)>>>0}if(ae=!1,++Dt,++z>=b&&(z=0,++M,j!=null&&M<=O&&!(M%16)&&j(n,M),At!=null))for(;Rt<Dt;)$t=u[Rt++],At.X[(506832829*$t&4294967295)>>>At.Mb]=$t}else if(280>$t){if($t=Hn($t-256,K),Ie=vn(Kt.G[4],Kt.H[4],K),gt(K),Ie=li(b,Ie=Hn(Ie,K)),K.h)break;if(Dt-p<Ie||k-Dt<$t)break t;for(_e=0;_e<$t;++_e)u[Dt+_e]=u[Dt+_e-Ie];for(Dt+=$t,z+=$t;z>=b;)z-=b,++M,j!=null&&M<=O&&!(M%16)&&j(n,M);if(t(Dt<=k),z&Nt&&(Kt=Wr(wt,z,M)),At!=null)for(;Rt<Dt;)$t=u[Rt++],At.X[(506832829*$t&4294967295)>>>At.Mb]=$t}else{if(!($t<te))break t;for(ae=$t-280,t(At!=null);Rt<Dt;)$t=u[Rt++],At.X[(506832829*$t&4294967295)>>>At.Mb]=$t;$t=Dt,t(!(ae>>>(Ie=At).Xa)),u[$t]=Ie.X[ae],ae=!0}ae||t(K.h==U(K))}if(n.Pb&&K.h&&Dt<k)t(n.m.h),n.a=5,n.m=n.wd,n.$=n.xd,0<n.s.ua&&Mt(n.s.vb,n.s.Wa);else{if(K.h)break t;j!=null&&j(n,M>O?O:M),n.a=0,n.$=Dt-p}return 1}return n.a=3,0}function ci(n){t(n!=null),n.vc=null,n.yc=null,n.Ya=null;var u=n.Wa;u!=null&&(u.X=null),n.vb=null,t(n!=null)}function En(){var n=new Nu;return n==null?null:(n.a=0,n.xb=Xl,Fn("Predictor","VP8LPredictors"),Fn("Predictor","VP8LPredictors_C"),Fn("PredictorAdd","VP8LPredictorsAdd"),Fn("PredictorAdd","VP8LPredictorsAdd_C"),mo=ar,On=Te,Kn=Ae,Bi=vr,di=tr,yi=Br,za=lr,A.VP8LMapColor32b=bs,A.VP8LMapColor8b=Pu,n)}function hi(n,u,p,b,k){var O=1,j=[n],M=[u],z=b.m,K=b.s,wt=null,Dt=0;t:for(;;){if(p)for(;O&&pt(z,1);){var Rt=j,It=M,te=b,Ht=1,At=te.m,Nt=te.gc[te.ab],Kt=pt(At,2);if(te.Oc&1<<Kt)O=0;else{switch(te.Oc|=1<<Kt,Nt.hc=Kt,Nt.Ea=Rt[0],Nt.nc=It[0],Nt.K=[null],++te.ab,t(4>=te.ab),Kt){case 0:case 1:Nt.b=pt(At,3)+2,Ht=hi(ye(Nt.Ea,Nt.b),ye(Nt.nc,Nt.b),0,te,Nt.K),Nt.K=Nt.K[0];break;case 3:var ae,$t=pt(At,8)+1,Ie=16<$t?0:4<$t?1:2<$t?2:3;if(Rt[0]=ye(Nt.Ea,Ie),Nt.b=Ie,ae=Ht=hi($t,1,0,te,Nt.K)){var _e,qe=$t,Ne=Nt,gr=1<<(8>>Ne.b),br=i(gr);if(br==null)ae=0;else{var dr=Ne.K[0],ur=Ne.w;for(br[0]=Ne.K[0][0],_e=1;_e<1*qe;++_e)br[_e]=ne(dr[ur+_e],br[_e-1]);for(;_e<4*gr;++_e)br[_e]=0;Ne.K[0]=null,Ne.K[0]=br,ae=1}}Ht=ae;break;case 2:break;default:t(0)}O=Ht}}if(j=j[0],M=M[0],O&&pt(z,1)&&!(O=1<=(Dt=pt(z,4))&&11>=Dt)){b.a=3;break t}var Nr;if(Nr=O)e:{var _r,er,Vr,An=b,Zr=j,_n=M,yr=Dt,Pn=p,In=An.m,en=An.s,nn=[null],dn=1,Rn=0,pi=yh[yr];r:for(;;){if(Pn&&pt(In,1)){var rn=pt(In,3)+2,Li=ye(Zr,rn),ia=ye(_n,rn),Wa=Li*ia;if(!hi(Li,ia,0,An,nn))break r;for(nn=nn[0],en.xc=rn,_r=0;_r<Wa;++_r){var zi=nn[_r]>>8&65535;nn[_r]=zi,zi>=dn&&(dn=zi+1)}}if(In.h)break r;for(er=0;5>er;++er){var Dr=Yl[er];!er&&0<yr&&(Dr+=1<<yr),Rn<Dr&&(Rn=Dr)}var Ru=o(dn*pi,_),ac=dn,sc=o(ac,C);if(sc==null)var ko=null;else t(65536>=ac),ko=sc;var xs=i(Rn);if(ko==null||xs==null||Ru==null){An.a=1;break r}var Po=Ru;for(_r=Vr=0;_r<dn;++_r){var ei=ko[_r],Ga=ei.G,Va=ei.H,oc=0,Io=1,uc=0;for(er=0;5>er;++er){Dr=Yl[er],Ga[er]=Po,Va[er]=Vr,!er&&0<yr&&(Dr+=1<<yr);i:{var Co,Tu=Dr,Fo=An,Ls=xs,zh=Po,Uh=Vr,Mu=0,Ui=Fo.m,qh=pt(Ui,1);if(s(Ls,0,0,Tu),qh){var Hh=pt(Ui,1)+1,Wh=pt(Ui,1),lc=pt(Ui,Wh==0?1:8);Ls[lc]=1,Hh==2&&(Ls[lc=pt(Ui,8)]=1);var Eo=1}else{var cc=i(19),hc=pt(Ui,4)+4;if(19<hc){Fo.a=3;var Oo=0;break i}for(Co=0;Co<hc;++Co)cc[vh[Co]]=pt(Ui,3);var zu=void 0,Ns=void 0,fc=Fo,Gh=cc,Bo=Tu,dc=Ls,Uu=0,qi=fc.m,pc=8,gc=o(128,_);n:for(;x(gc,0,7,Gh,19);){if(pt(qi,1)){var Vh=2+2*pt(qi,3);if((zu=2+pt(qi,Vh))>Bo)break n}else zu=Bo;for(Ns=0;Ns<Bo&&zu--;){gt(qi);var mc=gc[0+(127&H(qi))];W(qi,qi.u+mc.g);var Za=mc.value;if(16>Za)dc[Ns++]=Za,Za!=0&&(pc=Za);else{var Zh=Za==16,vc=Za-16,Yh=gh[vc],bc=pt(qi,ph[vc])+Yh;if(Ns+bc>Bo)break n;for(var Qh=Zh?pc:0;0<bc--;)dc[Ns++]=Qh}}Uu=1;break n}Uu||(fc.a=3),Eo=Uu}(Eo=Eo&&!Ui.h)&&(Mu=x(zh,Uh,8,Ls,Tu)),Eo&&Mu!=0?Oo=Mu:(Fo.a=3,Oo=0)}if(Oo==0)break r;if(Io&&mh[er]==1&&(Io=Po[Vr].g==0),oc+=Po[Vr].g,Vr+=Oo,3>=er){var Ss,qu=xs[0];for(Ss=1;Ss<Dr;++Ss)xs[Ss]>qu&&(qu=xs[Ss]);uc+=qu}}if(ei.nd=Io,ei.Qb=0,Io&&(ei.qb=(Ga[3][Va[3]+0].value<<24|Ga[1][Va[1]+0].value<<16|Ga[2][Va[2]+0].value)>>>0,oc==0&&256>Ga[0][Va[0]+0].value&&(ei.Qb=1,ei.qb+=Ga[0][Va[0]+0].value<<8)),ei.jc=!ei.Qb&&6>uc,ei.jc){var jo,Ni=ei;for(jo=0;jo<yn;++jo){var Hi=jo,Wi=Ni.pd[Hi],Do=Ni.G[0][Ni.H[0]+Hi];256<=Do.value?(Wi.g=Do.g+256,Wi.value=Do.value):(Wi.g=0,Wi.value=0,Hi>>=Yr(Do,8,Wi),Hi>>=Yr(Ni.G[1][Ni.H[1]+Hi],16,Wi),Hi>>=Yr(Ni.G[2][Ni.H[2]+Hi],0,Wi),Yr(Ni.G[3][Ni.H[3]+Hi],24,Wi))}}}en.vc=nn,en.Wb=dn,en.Ya=ko,en.yc=Ru,Nr=1;break e}Nr=0}if(!(O=Nr)){b.a=3;break t}if(0<Dt){if(K.ua=1<<Dt,!Be(K.Wa,Dt)){b.a=1,O=0;break t}}else K.ua=0;var Hu=b,yc=j,Xh=M,Wu=Hu.s,Gu=Wu.xc;if(Hu.c=yc,Hu.i=Xh,Wu.md=ye(yc,Gu),Wu.wc=Gu==0?-1:(1<<Gu)-1,p){b.xb=kh;break t}if((wt=i(j*M))==null){b.a=1,O=0;break t}O=(O=Vn(b,wt,0,j,M,M,null))&&!z.h;break t}return O?(k!=null?k[0]=wt:(t(wt==null),t(p)),b.$=0,p||ci(K)):ci(K),O}function Ki(n,u){var p=n.c*n.i,b=p+u+16*u;return t(n.c<=u),n.V=i(b),n.V==null?(n.Ta=null,n.Ua=0,n.a=1,0):(n.Ta=n.V,n.Ua=n.Ba+p+u,1)}function Aa(n,u){var p=n.C,b=u-p,k=n.V,O=n.Ba+n.c*p;for(t(u<=n.l.o);0<b;){var j=16<b?16:b,M=n.l.ma,z=n.l.width,K=z*j,wt=M.ca,Dt=M.tb+z*p,Rt=n.Ta,It=n.Ua;Nn(n,j,k,O),zl(Rt,It,wt,Dt,K),Wn(M,p,p+j,wt,Dt,z),b-=j,k+=j*n.c,p+=j}t(p==u),n.C=n.Ma=u}function _a(){this.ub=this.yd=this.td=this.Rb=0}function xa(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function La(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Qs(){this.Yb=function(){var n=[];return function u(p,b,k){for(var O=k[b],j=0;j<O&&(p.push(k.length>b+1?[]:0),!(k.length<b+1));j++)u(p[j],b+1,k)}(n,0,[3,11]),n}()}function ru(){this.jb=i(3),this.Wc=l([4,8],Qs),this.Xc=l([4,17],Qs)}function nu(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function Na(){this.ld=this.La=this.dd=this.tc=0}function Xs(){this.Na=this.la=0}function iu(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ja(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function au(){this.uc=this.M=this.Nb=0,this.wa=Array(new Na),this.Y=0,this.ya=Array(new Ja),this.aa=0,this.l=new Sa}function Ks(){this.y=i(16),this.f=i(8),this.ea=i(8)}function su(){this.cb=this.a=0,this.sc="",this.m=new Zt,this.Od=new _a,this.Kc=new xa,this.ed=new nu,this.Qa=new La,this.Ic=this.$c=this.Aa=0,this.D=new au,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,Zt),this.ia=0,this.pb=o(4,iu),this.Pa=new ru,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ks),this.Hd=0,this.rb=Array(new Xs),this.sb=0,this.wa=Array(new Na),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ja),this.L=this.aa=0,this.gd=l([4,2],Na),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Sa(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function ou(){var n=new su;return n!=null&&(n.a=0,n.sc="OK",n.cb=0,n.Xb=0,As||(As=to)),n}function Ur(n,u,p){return n.a==0&&(n.a=u,n.sc=p,n.cb=0),0}function Js(n,u,p){return 3<=p&&n[u+0]==157&&n[u+1]==1&&n[u+2]==42}function $s(n,u){if(n==null)return 0;if(n.a=0,n.sc="OK",u==null)return Ur(n,2,"null VP8Io passed to VP8GetHeaders()");var p=u.data,b=u.w,k=u.ha;if(4>k)return Ur(n,7,"Truncated header.");var O=p[b+0]|p[b+1]<<8|p[b+2]<<16,j=n.Od;if(j.Rb=!(1&O),j.td=O>>1&7,j.yd=O>>4&1,j.ub=O>>5,3<j.td)return Ur(n,3,"Incorrect keyframe parameters.");if(!j.yd)return Ur(n,4,"Frame not displayable.");b+=3,k-=3;var M=n.Kc;if(j.Rb){if(7>k)return Ur(n,7,"cannot parse picture header");if(!Js(p,b,k))return Ur(n,3,"Bad code word");M.c=16383&(p[b+4]<<8|p[b+3]),M.Td=p[b+4]>>6,M.i=16383&(p[b+6]<<8|p[b+5]),M.Ud=p[b+6]>>6,b+=7,k-=7,n.za=M.c+15>>4,n.Ub=M.i+15>>4,u.width=M.c,u.height=M.i,u.Da=0,u.j=0,u.v=0,u.va=u.width,u.o=u.height,u.da=0,u.ib=u.width,u.hb=u.height,u.U=u.width,u.T=u.height,s((O=n.Pa).jb,0,255,O.jb.length),t((O=n.Qa)!=null),O.Cb=0,O.Bb=0,O.Fb=1,s(O.Zb,0,0,O.Zb.length),s(O.Lb,0,0,O.Lb)}if(j.ub>k)return Ur(n,7,"bad partition length");$(O=n.m,p,b,j.ub),b+=j.ub,k-=j.ub,j.Rb&&(M.Ld=Et(O),M.Kd=Et(O)),M=n.Qa;var z,K=n.Pa;if(t(O!=null),t(M!=null),M.Cb=Et(O),M.Cb){if(M.Bb=Et(O),Et(O)){for(M.Fb=Et(O),z=0;4>z;++z)M.Zb[z]=Et(O)?I(O,7):0;for(z=0;4>z;++z)M.Lb[z]=Et(O)?I(O,6):0}if(M.Bb)for(z=0;3>z;++z)K.jb[z]=Et(O)?F(O,8):255}else M.Bb=0;if(O.Ka)return Ur(n,3,"cannot parse segment header");if((M=n.ed).zd=Et(O),M.Tb=F(O,6),M.wb=F(O,3),M.Pc=Et(O),M.Pc&&Et(O)){for(K=0;4>K;++K)Et(O)&&(M.vd[K]=I(O,6));for(K=0;4>K;++K)Et(O)&&(M.od[K]=I(O,6))}if(n.L=M.Tb==0?0:M.zd?1:2,O.Ka)return Ur(n,3,"cannot parse filter header");var wt=k;if(k=z=b,b=z+wt,M=wt,n.Xb=(1<<F(n.m,2))-1,wt<3*(K=n.Xb))p=7;else{for(z+=3*K,M-=3*K,wt=0;wt<K;++wt){var Dt=p[k+0]|p[k+1]<<8|p[k+2]<<16;Dt>M&&(Dt=M),$(n.Jc[+wt],p,z,Dt),z+=Dt,M-=Dt,k+=3}$(n.Jc[+K],p,z,M),p=z<b?0:5}if(p!=0)return Ur(n,p,"cannot parse partitions");for(p=F(z=n.m,7),k=Et(z)?I(z,4):0,b=Et(z)?I(z,4):0,M=Et(z)?I(z,4):0,K=Et(z)?I(z,4):0,z=Et(z)?I(z,4):0,wt=n.Qa,Dt=0;4>Dt;++Dt){if(wt.Cb){var Rt=wt.Zb[Dt];wt.Fb||(Rt+=p)}else{if(0<Dt){n.pb[Dt]=n.pb[0];continue}Rt=p}var It=n.pb[Dt];It.Sc[0]=Bu[Sn(Rt+k,127)],It.Sc[1]=ju[Sn(Rt+0,127)],It.Eb[0]=2*Bu[Sn(Rt+b,127)],It.Eb[1]=101581*ju[Sn(Rt+M,127)]>>16,8>It.Eb[1]&&(It.Eb[1]=8),It.Qc[0]=Bu[Sn(Rt+K,117)],It.Qc[1]=ju[Sn(Rt+z,127)],It.lc=Rt+z}if(!j.Rb)return Ur(n,4,"Not a key frame.");for(Et(O),j=n.Pa,p=0;4>p;++p){for(k=0;8>k;++k)for(b=0;3>b;++b)for(M=0;11>M;++M)K=Ot(O,Nh[p][k][b][M])?F(O,8):xh[p][k][b][M],j.Wc[p][k].Yb[b][M]=K;for(k=0;17>k;++k)j.Xc[p][k]=j.Wc[p][Sh[k]]}return n.kc=Et(O),n.kc&&(n.Bd=F(O,8)),n.cb=1}function to(n,u,p,b,k,O,j){var M=u[k].Yb[p];for(p=0;16>k;++k){if(!Ot(n,M[p+0]))return k;for(;!Ot(n,M[p+1]);)if(M=u[++k].Yb[0],p=0,k==16)return 16;var z=u[k+1].Yb;if(Ot(n,M[p+2])){var K=n,wt=0;if(Ot(K,(Rt=M)[(Dt=p)+3]))if(Ot(K,Rt[Dt+6])){for(M=0,Dt=2*(wt=Ot(K,Rt[Dt+8]))+(Rt=Ot(K,Rt[Dt+9+wt])),wt=0,Rt=Ah[Dt];Rt[M];++M)wt+=wt+Ot(K,Rt[M]);wt+=3+(8<<Dt)}else Ot(K,Rt[Dt+7])?(wt=7+2*Ot(K,165),wt+=Ot(K,145)):wt=5+Ot(K,159);else wt=Ot(K,Rt[Dt+4])?3+Ot(K,Rt[Dt+5]):2;M=z[2]}else wt=1,M=z[1];z=j+_h[k],0>(K=n).b&&Ft(K);var Dt,Rt=K.b,It=(Dt=K.Ca>>1)-(K.I>>Rt)>>31;--K.b,K.Ca+=It,K.Ca|=1,K.I-=(Dt+1&It)<<Rt,O[z]=((wt^It)-It)*b[(0<k)+0]}return 16}function $a(n){var u=n.rb[n.sb-1];u.la=0,u.Na=0,s(n.zc,0,0,n.zc.length),n.ja=0}function uu(n,u){if(n==null)return 0;if(u==null)return Ur(n,2,"NULL VP8Io parameter in VP8Decode().");if(!n.cb&&!$s(n,u))return 0;if(t(n.cb),u.ac==null||u.ac(u)){u.ob&&(n.L=0);var p=So[n.L];if(n.L==2?(n.yb=0,n.zb=0):(n.yb=u.v-p>>4,n.zb=u.j-p>>4,0>n.yb&&(n.yb=0),0>n.zb&&(n.zb=0)),n.Va=u.o+15+p>>4,n.Hb=u.va+15+p>>4,n.Hb>n.za&&(n.Hb=n.za),n.Va>n.Ub&&(n.Va=n.Ub),0<n.L){var b=n.ed;for(p=0;4>p;++p){var k;if(n.Qa.Cb){var O=n.Qa.Lb[p];n.Qa.Fb||(O+=b.Tb)}else O=b.Tb;for(k=0;1>=k;++k){var j=n.gd[p][k],M=O;if(b.Pc&&(M+=b.vd[0],k&&(M+=b.od[0])),0<(M=0>M?0:63<M?63:M)){var z=M;0<b.wb&&(z=4<b.wb?z>>2:z>>1)>9-b.wb&&(z=9-b.wb),1>z&&(z=1),j.dd=z,j.tc=2*M+z,j.ld=40<=M?2:15<=M?1:0}else j.tc=0;j.La=k}}}p=0}else Ur(n,6,"Frame setup failed"),p=n.a;if(p=p==0){if(p){n.$c=0,0<n.Aa||(n.Ic=Mh);t:{p=n.Ic,b=4*(z=n.za);var K=32*z,wt=z+1,Dt=0<n.L?z*(0<n.Aa?2:1):0,Rt=(n.Aa==2?2:1)*z;if((j=b+832+(k=3*(16*p+So[n.L])/2*K)+(O=n.Fa!=null&&0<n.Fa.length?n.Kc.c*n.Kc.i:0))!=j)p=0;else{if(j>n.Vb){if(n.Vb=0,n.Ec=i(j),n.Fc=0,n.Ec==null){p=Ur(n,1,"no memory during frame initialization.");break t}n.Vb=j}j=n.Ec,M=n.Fc,n.Ac=j,n.Bc=M,M+=b,n.Gd=o(K,Ks),n.Hd=0,n.rb=o(wt+1,Xs),n.sb=1,n.wa=Dt?o(Dt,Na):null,n.Y=0,n.D.Nb=0,n.D.wa=n.wa,n.D.Y=n.Y,0<n.Aa&&(n.D.Y+=z),t(!0),n.oc=j,n.pc=M,M+=832,n.ya=o(Rt,Ja),n.aa=0,n.D.ya=n.ya,n.D.aa=n.aa,n.Aa==2&&(n.D.aa+=z),n.R=16*z,n.B=8*z,z=(K=So[n.L])*n.R,K=K/2*n.B,n.sa=j,n.ta=M+z,n.qa=n.sa,n.ra=n.ta+16*p*n.R+K,n.Ha=n.qa,n.Ia=n.ra+8*p*n.B+K,n.$c=0,M+=k,n.mb=O?j:null,n.nb=O?M:null,t(M+O<=n.Fc+n.Vb),$a(n),s(n.Ac,n.Bc,0,b),p=1}}if(p){if(u.ka=0,u.y=n.sa,u.O=n.ta,u.f=n.qa,u.N=n.ra,u.ea=n.Ha,u.Vd=n.Ia,u.fa=n.R,u.Rc=n.B,u.F=null,u.J=0,!Gl){for(p=-255;255>=p;++p)Ul[255+p]=0>p?-p:p;for(p=-1020;1020>=p;++p)ql[1020+p]=-128>p?-128:127<p?127:p;for(p=-112;112>=p;++p)Hl[112+p]=-16>p?-16:15<p?15:p;for(p=-255;510>=p;++p)Wl[255+p]=0>p?0:255<p?255:p;Gl=1}Jn=hu,Ua=lu,ji=ro,$n=cu,wi=no,ys=eo,ra=as,qa=ta,na=Lu,Di=ss,ws=xu,Bn=Ea,Ai=os,Sr=fo,kr=ho,qr=vi,Qr=Ci,_i=_u,ti[0]=fi,ti[1]=fu,ti[2]=mu,ti[3]=vu,ti[4]=so,ti[5]=Ca,ti[6]=oo,ti[7]=rs,ti[8]=yu,ti[9]=bu,Ti[0]=io,Ti[1]=pu,Ti[2]=mi,Ti[3]=Pa,Ti[4]=cn,Ti[5]=gu,Ti[6]=ao,xi[0]=Ii,xi[1]=du,xi[2]=wu,xi[3]=ns,xi[4]=$i,xi[5]=Au,xi[6]=is,p=1}else p=0}p&&(p=function(It,te){for(It.M=0;It.M<It.Va;++It.M){var Ht,At=It.Jc[It.M&It.Xb],Nt=It.m,Kt=It;for(Ht=0;Ht<Kt.za;++Ht){var ae=Nt,$t=Kt,Ie=$t.Ac,_e=$t.Bc+4*Ht,qe=$t.zc,Ne=$t.ya[$t.aa+Ht];if($t.Qa.Bb?Ne.$b=Ot(ae,$t.Pa.jb[0])?2+Ot(ae,$t.Pa.jb[2]):Ot(ae,$t.Pa.jb[1]):Ne.$b=0,$t.kc&&(Ne.Ad=Ot(ae,$t.Bd)),Ne.Za=!Ot(ae,145)+0,Ne.Za){var gr=Ne.Ob,br=0;for($t=0;4>$t;++$t){var dr,ur=qe[0+$t];for(dr=0;4>dr;++dr){ur=Lh[Ie[_e+dr]][ur];for(var Nr=Ql[Ot(ae,ur[0])];0<Nr;)Nr=Ql[2*Nr+Ot(ae,ur[Nr])];ur=-Nr,Ie[_e+dr]=ur}a(gr,br,Ie,_e,4),br+=4,qe[0+$t]=ur}}else ur=Ot(ae,156)?Ot(ae,128)?1:3:Ot(ae,163)?2:0,Ne.Ob[0]=ur,s(Ie,_e,ur,4),s(qe,0,ur,4);Ne.Dd=Ot(ae,142)?Ot(ae,114)?Ot(ae,183)?1:3:2:0}if(Kt.m.Ka)return Ur(It,7,"Premature end-of-partition0 encountered.");for(;It.ja<It.za;++It.ja){if(Kt=At,ae=(Nt=It).rb[Nt.sb-1],Ie=Nt.rb[Nt.sb+Nt.ja],Ht=Nt.ya[Nt.aa+Nt.ja],_e=Nt.kc?Ht.Ad:0)ae.la=Ie.la=0,Ht.Za||(ae.Na=Ie.Na=0),Ht.Hc=0,Ht.Gc=0,Ht.ia=0;else{var _r,er;if(ae=Ie,Ie=Kt,_e=Nt.Pa.Xc,qe=Nt.ya[Nt.aa+Nt.ja],Ne=Nt.pb[qe.$b],$t=qe.ad,gr=0,br=Nt.rb[Nt.sb-1],ur=dr=0,s($t,gr,0,384),qe.Za)var Vr=0,An=_e[3];else{Nr=i(16);var Zr=ae.Na+br.Na;if(Zr=As(Ie,_e[1],Zr,Ne.Eb,0,Nr,0),ae.Na=br.Na=(0<Zr)+0,1<Zr)Jn(Nr,0,$t,gr);else{var _n=Nr[0]+3>>3;for(Nr=0;256>Nr;Nr+=16)$t[gr+Nr]=_n}Vr=1,An=_e[0]}var yr=15&ae.la,Pn=15&br.la;for(Nr=0;4>Nr;++Nr){var In=1&Pn;for(_n=er=0;4>_n;++_n)yr=yr>>1|(In=(Zr=As(Ie,An,Zr=In+(1&yr),Ne.Sc,Vr,$t,gr))>Vr)<<7,er=er<<2|(3<Zr?3:1<Zr?2:$t[gr+0]!=0),gr+=16;yr>>=4,Pn=Pn>>1|In<<7,dr=(dr<<8|er)>>>0}for(An=yr,Vr=Pn>>4,_r=0;4>_r;_r+=2){for(er=0,yr=ae.la>>4+_r,Pn=br.la>>4+_r,Nr=0;2>Nr;++Nr){for(In=1&Pn,_n=0;2>_n;++_n)Zr=In+(1&yr),yr=yr>>1|(In=0<(Zr=As(Ie,_e[2],Zr,Ne.Qc,0,$t,gr)))<<3,er=er<<2|(3<Zr?3:1<Zr?2:$t[gr+0]!=0),gr+=16;yr>>=2,Pn=Pn>>1|In<<5}ur|=er<<4*_r,An|=yr<<4<<_r,Vr|=(240&Pn)<<_r}ae.la=An,br.la=Vr,qe.Hc=dr,qe.Gc=ur,qe.ia=43690&ur?0:Ne.ia,_e=!(dr|ur)}if(0<Nt.L&&(Nt.wa[Nt.Y+Nt.ja]=Nt.gd[Ht.$b][Ht.Za],Nt.wa[Nt.Y+Nt.ja].La|=!_e),Kt.Ka)return Ur(It,7,"Premature end-of-file encountered.")}if($a(It),Nt=te,Kt=1,Ht=(At=It).D,ae=0<At.L&&At.M>=At.zb&&At.M<=At.Va,At.Aa==0)t:{if(Ht.M=At.M,Ht.uc=ae,ds(At,Ht),Kt=1,Ht=(er=At.D).Nb,ae=(ur=So[At.L])*At.R,Ie=ur/2*At.B,Nr=16*Ht*At.R,_n=8*Ht*At.B,_e=At.sa,qe=At.ta-ae+Nr,Ne=At.qa,$t=At.ra-Ie+_n,gr=At.Ha,br=At.Ia-Ie+_n,Pn=(yr=er.M)==0,dr=yr>=At.Va-1,At.Aa==2&&ds(At,er),er.uc)for(In=(Zr=At).D.M,t(Zr.D.uc),er=Zr.yb;er<Zr.Hb;++er){Vr=er,An=In;var en=(nn=(Dr=Zr).D).Nb;_r=Dr.R;var nn=nn.wa[nn.Y+Vr],dn=Dr.sa,Rn=Dr.ta+16*en*_r+16*Vr,pi=nn.dd,rn=nn.tc;if(rn!=0)if(t(3<=rn),Dr.L==1)0<Vr&&qr(dn,Rn,_r,rn+4),nn.La&&_i(dn,Rn,_r,rn),0<An&&kr(dn,Rn,_r,rn+4),nn.La&&Qr(dn,Rn,_r,rn);else{var Li=Dr.B,ia=Dr.qa,Wa=Dr.ra+8*en*Li+8*Vr,zi=Dr.Ha,Dr=Dr.Ia+8*en*Li+8*Vr;en=nn.ld,0<Vr&&(qa(dn,Rn,_r,rn+4,pi,en),Di(ia,Wa,zi,Dr,Li,rn+4,pi,en)),nn.La&&(Bn(dn,Rn,_r,rn,pi,en),Sr(ia,Wa,zi,Dr,Li,rn,pi,en)),0<An&&(ra(dn,Rn,_r,rn+4,pi,en),na(ia,Wa,zi,Dr,Li,rn+4,pi,en)),nn.La&&(ws(dn,Rn,_r,rn,pi,en),Ai(ia,Wa,zi,Dr,Li,rn,pi,en))}}if(At.ia&&alert("todo:DitherRow"),Nt.put!=null){if(er=16*yr,yr=16*(yr+1),Pn?(Nt.y=At.sa,Nt.O=At.ta+Nr,Nt.f=At.qa,Nt.N=At.ra+_n,Nt.ea=At.Ha,Nt.W=At.Ia+_n):(er-=ur,Nt.y=_e,Nt.O=qe,Nt.f=Ne,Nt.N=$t,Nt.ea=gr,Nt.W=br),dr||(yr-=ur),yr>Nt.o&&(yr=Nt.o),Nt.F=null,Nt.J=null,At.Fa!=null&&0<At.Fa.length&&er<yr&&(Nt.J=hs(At,Nt,er,yr-er),Nt.F=At.mb,Nt.F==null&&Nt.F.length==0)){Kt=Ur(At,3,"Could not decode alpha data.");break t}er<Nt.j&&(ur=Nt.j-er,er=Nt.j,t(!(1&ur)),Nt.O+=At.R*ur,Nt.N+=At.B*(ur>>1),Nt.W+=At.B*(ur>>1),Nt.F!=null&&(Nt.J+=Nt.width*ur)),er<yr&&(Nt.O+=Nt.v,Nt.N+=Nt.v>>1,Nt.W+=Nt.v>>1,Nt.F!=null&&(Nt.J+=Nt.v),Nt.ka=er-Nt.j,Nt.U=Nt.va-Nt.v,Nt.T=yr-er,Kt=Nt.put(Nt))}Ht+1!=At.Ic||dr||(a(At.sa,At.ta-ae,_e,qe+16*At.R,ae),a(At.qa,At.ra-Ie,Ne,$t+8*At.B,Ie),a(At.Ha,At.Ia-Ie,gr,br+8*At.B,Ie))}if(!Kt)return Ur(It,6,"Output aborted.")}return 1}(n,u)),u.bc!=null&&u.bc(u),p&=1}return p?(n.cb=0,p):0}function Zn(n,u,p,b,k){k=n[u+p+32*b]+(k>>3),n[u+p+32*b]=-256&k?0>k?0:255:k}function ka(n,u,p,b,k,O){Zn(n,u,0,p,b+k),Zn(n,u,1,p,b+O),Zn(n,u,2,p,b-O),Zn(n,u,3,p,b-k)}function bn(n){return(20091*n>>16)+n}function ts(n,u,p,b){var k,O=0,j=i(16);for(k=0;4>k;++k){var M=n[u+0]+n[u+8],z=n[u+0]-n[u+8],K=(35468*n[u+4]>>16)-bn(n[u+12]),wt=bn(n[u+4])+(35468*n[u+12]>>16);j[O+0]=M+wt,j[O+1]=z+K,j[O+2]=z-K,j[O+3]=M-wt,O+=4,u++}for(k=O=0;4>k;++k)M=(n=j[O+0]+4)+j[O+8],z=n-j[O+8],K=(35468*j[O+4]>>16)-bn(j[O+12]),Zn(p,b,0,0,M+(wt=bn(j[O+4])+(35468*j[O+12]>>16))),Zn(p,b,1,0,z+K),Zn(p,b,2,0,z-K),Zn(p,b,3,0,M-wt),O++,b+=32}function eo(n,u,p,b){var k=n[u+0]+4,O=35468*n[u+4]>>16,j=bn(n[u+4]),M=35468*n[u+1]>>16;ka(p,b,0,k+j,n=bn(n[u+1]),M),ka(p,b,1,k+O,n,M),ka(p,b,2,k-O,n,M),ka(p,b,3,k-j,n,M)}function lu(n,u,p,b,k){ts(n,u,p,b),k&&ts(n,u+16,p,b+4)}function ro(n,u,p,b){Ua(n,u+0,p,b,1),Ua(n,u+32,p,b+128,1)}function cu(n,u,p,b){var k;for(n=n[u+0]+4,k=0;4>k;++k)for(u=0;4>u;++u)Zn(p,b,u,k,n)}function no(n,u,p,b){n[u+0]&&$n(n,u+0,p,b),n[u+16]&&$n(n,u+16,p,b+4),n[u+32]&&$n(n,u+32,p,b+128),n[u+48]&&$n(n,u+48,p,b+128+4)}function hu(n,u,p,b){var k,O=i(16);for(k=0;4>k;++k){var j=n[u+0+k]+n[u+12+k],M=n[u+4+k]+n[u+8+k],z=n[u+4+k]-n[u+8+k],K=n[u+0+k]-n[u+12+k];O[0+k]=j+M,O[8+k]=j-M,O[4+k]=K+z,O[12+k]=K-z}for(k=0;4>k;++k)j=(n=O[0+4*k]+3)+O[3+4*k],M=O[1+4*k]+O[2+4*k],z=O[1+4*k]-O[2+4*k],K=n-O[3+4*k],p[b+0]=j+M>>3,p[b+16]=K+z>>3,p[b+32]=j-M>>3,p[b+48]=K-z>>3,b+=64}function es(n,u,p){var b,k=u-32,O=kn,j=255-n[k-1];for(b=0;b<p;++b){var M,z=O,K=j+n[u-1];for(M=0;M<p;++M)n[u+M]=z[K+n[k+M]];u+=32}}function fu(n,u){es(n,u,4)}function du(n,u){es(n,u,8)}function pu(n,u){es(n,u,16)}function mi(n,u){var p;for(p=0;16>p;++p)a(n,u+32*p,n,u-32,16)}function Pa(n,u){var p;for(p=16;0<p;--p)s(n,u,n[u-1],16),u+=32}function Ia(n,u,p){var b;for(b=0;16>b;++b)s(u,p+32*b,n,16)}function io(n,u){var p,b=16;for(p=0;16>p;++p)b+=n[u-1+32*p]+n[u+p-32];Ia(b>>5,n,u)}function cn(n,u){var p,b=8;for(p=0;16>p;++p)b+=n[u-1+32*p];Ia(b>>4,n,u)}function gu(n,u){var p,b=8;for(p=0;16>p;++p)b+=n[u+p-32];Ia(b>>4,n,u)}function ao(n,u){Ia(128,n,u)}function Ke(n,u,p){return n+2*u+p+2>>2}function mu(n,u){var p,b=u-32;for(b=new Uint8Array([Ke(n[b-1],n[b+0],n[b+1]),Ke(n[b+0],n[b+1],n[b+2]),Ke(n[b+1],n[b+2],n[b+3]),Ke(n[b+2],n[b+3],n[b+4])]),p=0;4>p;++p)a(n,u+32*p,b,0,b.length)}function vu(n,u){var p=n[u-1],b=n[u-1+32],k=n[u-1+64],O=n[u-1+96];ee(n,u+0,16843009*Ke(n[u-1-32],p,b)),ee(n,u+32,16843009*Ke(p,b,k)),ee(n,u+64,16843009*Ke(b,k,O)),ee(n,u+96,16843009*Ke(k,O,O))}function fi(n,u){var p,b=4;for(p=0;4>p;++p)b+=n[u+p-32]+n[u-1+32*p];for(b>>=3,p=0;4>p;++p)s(n,u+32*p,b,4)}function so(n,u){var p=n[u-1+0],b=n[u-1+32],k=n[u-1+64],O=n[u-1-32],j=n[u+0-32],M=n[u+1-32],z=n[u+2-32],K=n[u+3-32];n[u+0+96]=Ke(b,k,n[u-1+96]),n[u+1+96]=n[u+0+64]=Ke(p,b,k),n[u+2+96]=n[u+1+64]=n[u+0+32]=Ke(O,p,b),n[u+3+96]=n[u+2+64]=n[u+1+32]=n[u+0+0]=Ke(j,O,p),n[u+3+64]=n[u+2+32]=n[u+1+0]=Ke(M,j,O),n[u+3+32]=n[u+2+0]=Ke(z,M,j),n[u+3+0]=Ke(K,z,M)}function oo(n,u){var p=n[u+1-32],b=n[u+2-32],k=n[u+3-32],O=n[u+4-32],j=n[u+5-32],M=n[u+6-32],z=n[u+7-32];n[u+0+0]=Ke(n[u+0-32],p,b),n[u+1+0]=n[u+0+32]=Ke(p,b,k),n[u+2+0]=n[u+1+32]=n[u+0+64]=Ke(b,k,O),n[u+3+0]=n[u+2+32]=n[u+1+64]=n[u+0+96]=Ke(k,O,j),n[u+3+32]=n[u+2+64]=n[u+1+96]=Ke(O,j,M),n[u+3+64]=n[u+2+96]=Ke(j,M,z),n[u+3+96]=Ke(M,z,z)}function Ca(n,u){var p=n[u-1+0],b=n[u-1+32],k=n[u-1+64],O=n[u-1-32],j=n[u+0-32],M=n[u+1-32],z=n[u+2-32],K=n[u+3-32];n[u+0+0]=n[u+1+64]=O+j+1>>1,n[u+1+0]=n[u+2+64]=j+M+1>>1,n[u+2+0]=n[u+3+64]=M+z+1>>1,n[u+3+0]=z+K+1>>1,n[u+0+96]=Ke(k,b,p),n[u+0+64]=Ke(b,p,O),n[u+0+32]=n[u+1+96]=Ke(p,O,j),n[u+1+32]=n[u+2+96]=Ke(O,j,M),n[u+2+32]=n[u+3+96]=Ke(j,M,z),n[u+3+32]=Ke(M,z,K)}function rs(n,u){var p=n[u+0-32],b=n[u+1-32],k=n[u+2-32],O=n[u+3-32],j=n[u+4-32],M=n[u+5-32],z=n[u+6-32],K=n[u+7-32];n[u+0+0]=p+b+1>>1,n[u+1+0]=n[u+0+64]=b+k+1>>1,n[u+2+0]=n[u+1+64]=k+O+1>>1,n[u+3+0]=n[u+2+64]=O+j+1>>1,n[u+0+32]=Ke(p,b,k),n[u+1+32]=n[u+0+96]=Ke(b,k,O),n[u+2+32]=n[u+1+96]=Ke(k,O,j),n[u+3+32]=n[u+2+96]=Ke(O,j,M),n[u+3+64]=Ke(j,M,z),n[u+3+96]=Ke(M,z,K)}function bu(n,u){var p=n[u-1+0],b=n[u-1+32],k=n[u-1+64],O=n[u-1+96];n[u+0+0]=p+b+1>>1,n[u+2+0]=n[u+0+32]=b+k+1>>1,n[u+2+32]=n[u+0+64]=k+O+1>>1,n[u+1+0]=Ke(p,b,k),n[u+3+0]=n[u+1+32]=Ke(b,k,O),n[u+3+32]=n[u+1+64]=Ke(k,O,O),n[u+3+64]=n[u+2+64]=n[u+0+96]=n[u+1+96]=n[u+2+96]=n[u+3+96]=O}function yu(n,u){var p=n[u-1+0],b=n[u-1+32],k=n[u-1+64],O=n[u-1+96],j=n[u-1-32],M=n[u+0-32],z=n[u+1-32],K=n[u+2-32];n[u+0+0]=n[u+2+32]=p+j+1>>1,n[u+0+32]=n[u+2+64]=b+p+1>>1,n[u+0+64]=n[u+2+96]=k+b+1>>1,n[u+0+96]=O+k+1>>1,n[u+3+0]=Ke(M,z,K),n[u+2+0]=Ke(j,M,z),n[u+1+0]=n[u+3+32]=Ke(p,j,M),n[u+1+32]=n[u+3+64]=Ke(b,p,j),n[u+1+64]=n[u+3+96]=Ke(k,b,p),n[u+1+96]=Ke(O,k,b)}function wu(n,u){var p;for(p=0;8>p;++p)a(n,u+32*p,n,u-32,8)}function ns(n,u){var p;for(p=0;8>p;++p)s(n,u,n[u-1],8),u+=32}function Ji(n,u,p){var b;for(b=0;8>b;++b)s(u,p+32*b,n,8)}function Ii(n,u){var p,b=8;for(p=0;8>p;++p)b+=n[u+p-32]+n[u-1+32*p];Ji(b>>4,n,u)}function Au(n,u){var p,b=4;for(p=0;8>p;++p)b+=n[u+p-32];Ji(b>>3,n,u)}function $i(n,u){var p,b=4;for(p=0;8>p;++p)b+=n[u-1+32*p];Ji(b>>3,n,u)}function is(n,u){Ji(128,n,u)}function Fa(n,u,p){var b=n[u-p],k=n[u+0],O=3*(k-b)+Iu[1020+n[u-2*p]-n[u+p]],j=bo[112+(O+4>>3)];n[u-p]=kn[255+b+bo[112+(O+3>>3)]],n[u+0]=kn[255+k-j]}function uo(n,u,p,b){var k=n[u+0],O=n[u+p];return jn[255+n[u-2*p]-n[u-p]]>b||jn[255+O-k]>b}function lo(n,u,p,b){return 4*jn[255+n[u-p]-n[u+0]]+jn[255+n[u-2*p]-n[u+p]]<=b}function co(n,u,p,b,k){var O=n[u-3*p],j=n[u-2*p],M=n[u-p],z=n[u+0],K=n[u+p],wt=n[u+2*p],Dt=n[u+3*p];return 4*jn[255+M-z]+jn[255+j-K]>b?0:jn[255+n[u-4*p]-O]<=k&&jn[255+O-j]<=k&&jn[255+j-M]<=k&&jn[255+Dt-wt]<=k&&jn[255+wt-K]<=k&&jn[255+K-z]<=k}function ho(n,u,p,b){var k=2*b+1;for(b=0;16>b;++b)lo(n,u+b,p,k)&&Fa(n,u+b,p)}function vi(n,u,p,b){var k=2*b+1;for(b=0;16>b;++b)lo(n,u+b*p,1,k)&&Fa(n,u+b*p,1)}function Ci(n,u,p,b){var k;for(k=3;0<k;--k)ho(n,u+=4*p,p,b)}function _u(n,u,p,b){var k;for(k=3;0<k;--k)vi(n,u+=4,p,b)}function Fi(n,u,p,b,k,O,j,M){for(O=2*O+1;0<k--;){if(co(n,u,p,O,j))if(uo(n,u,p,M))Fa(n,u,p);else{var z=n,K=u,wt=p,Dt=z[K-2*wt],Rt=z[K-wt],It=z[K+0],te=z[K+wt],Ht=z[K+2*wt],At=27*(Kt=Iu[1020+3*(It-Rt)+Iu[1020+Dt-te]])+63>>7,Nt=18*Kt+63>>7,Kt=9*Kt+63>>7;z[K-3*wt]=kn[255+z[K-3*wt]+Kt],z[K-2*wt]=kn[255+Dt+Nt],z[K-wt]=kn[255+Rt+At],z[K+0]=kn[255+It-At],z[K+wt]=kn[255+te-Nt],z[K+2*wt]=kn[255+Ht-Kt]}u+=b}}function Yn(n,u,p,b,k,O,j,M){for(O=2*O+1;0<k--;){if(co(n,u,p,O,j))if(uo(n,u,p,M))Fa(n,u,p);else{var z=n,K=u,wt=p,Dt=z[K-wt],Rt=z[K+0],It=z[K+wt],te=bo[112+((Ht=3*(Rt-Dt))+4>>3)],Ht=bo[112+(Ht+3>>3)],At=te+1>>1;z[K-2*wt]=kn[255+z[K-2*wt]+At],z[K-wt]=kn[255+Dt+Ht],z[K+0]=kn[255+Rt-te],z[K+wt]=kn[255+It-At]}u+=b}}function as(n,u,p,b,k,O){Fi(n,u,p,1,16,b,k,O)}function ta(n,u,p,b,k,O){Fi(n,u,1,p,16,b,k,O)}function xu(n,u,p,b,k,O){var j;for(j=3;0<j;--j)Yn(n,u+=4*p,p,1,16,b,k,O)}function Ea(n,u,p,b,k,O){var j;for(j=3;0<j;--j)Yn(n,u+=4,1,p,16,b,k,O)}function Lu(n,u,p,b,k,O,j,M){Fi(n,u,k,1,8,O,j,M),Fi(p,b,k,1,8,O,j,M)}function ss(n,u,p,b,k,O,j,M){Fi(n,u,1,k,8,O,j,M),Fi(p,b,1,k,8,O,j,M)}function os(n,u,p,b,k,O,j,M){Yn(n,u+4*k,k,1,8,O,j,M),Yn(p,b+4*k,k,1,8,O,j,M)}function fo(n,u,p,b,k,O,j,M){Yn(n,u+4,1,k,8,O,j,M),Yn(p,b+4,1,k,8,O,j,M)}function Oa(){this.ba=new Ln,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new pr,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function us(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function ls(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function po(){this.ua=0,this.Wa=new st,this.vb=new st,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new C,this.yc=new _}function Nu(){this.xb=this.a=0,this.l=new Sa,this.ca=new Ln,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new N,this.Pb=0,this.wd=new N,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new po,this.ab=0,this.gc=o(4,ls),this.Oc=0}function Ba(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Sa,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ea(n,u,p,b,k,O,j){for(n=n==null?0:n[u+0],u=0;u<j;++u)k[O+u]=n+p[b+u]&255,n=k[O+u]}function cs(n,u,p,b,k,O,j){var M;if(n==null)ea(null,null,p,b,k,O,j);else for(M=0;M<j;++M)k[O+M]=n[u+M]+p[b+M]&255}function Ei(n,u,p,b,k,O,j){if(n==null)ea(null,null,p,b,k,O,j);else{var M,z=n[u+0],K=z,wt=z;for(M=0;M<j;++M)K=wt+(z=n[u+M])-K,wt=p[b+M]+(-256&K?0>K?0:255:K)&255,K=z,k[O+M]=wt}}function hs(n,u,p,b){var k=u.width,O=u.o;if(t(n!=null&&u!=null),0>p||0>=b||p+b>O)return null;if(!n.Cc){if(n.ga==null){var j;if(n.ga=new Ba,(j=n.ga==null)||(j=u.width*u.o,t(n.Gb.length==0),n.Gb=i(j),n.Uc=0,n.Gb==null?j=0:(n.mb=n.Gb,n.nb=n.Uc,n.rc=null,j=1),j=!j),!j){j=n.ga;var M=n.Fa,z=n.P,K=n.qc,wt=n.mb,Dt=n.nb,Rt=z+1,It=K-1,te=j.l;if(t(M!=null&&wt!=null&&u!=null),Mi[0]=null,Mi[1]=ea,Mi[2]=cs,Mi[3]=Ei,j.ca=wt,j.tb=Dt,j.c=u.width,j.i=u.height,t(0<j.c&&0<j.i),1>=K)u=0;else if(j.$a=M[z+0]>>0&3,j.Z=M[z+0]>>2&3,j.Lc=M[z+0]>>4&3,z=M[z+0]>>6&3,0>j.$a||1<j.$a||4<=j.Z||1<j.Lc||z)u=0;else if(te.put=$r,te.ac=Pr,te.bc=ui,te.ma=j,te.width=u.width,te.height=u.height,te.Da=u.Da,te.v=u.v,te.va=u.va,te.j=u.j,te.o=u.o,j.$a)t:{t(j.$a==1),u=En();e:for(;;){if(u==null){u=0;break t}if(t(j!=null),j.mc=u,u.c=j.c,u.i=j.i,u.l=j.l,u.l.ma=j,u.l.width=j.c,u.l.height=j.i,u.a=0,at(u.m,M,Rt,It),!hi(j.c,j.i,1,u,null)||(u.ab==1&&u.gc[0].hc==3&&gi(u.s)?(j.ic=1,M=u.c*u.i,u.Ta=null,u.Ua=0,u.V=i(M),u.Ba=0,u.V==null?(u.a=1,u=0):u=1):(j.ic=0,u=Ki(u,j.c)),!u))break e;u=1;break t}j.mc=null,u=0}else u=It>=j.c*j.i;j=!u}if(j)return null;n.ga.Lc!=1?n.Ga=0:b=O-p}t(n.ga!=null),t(p+b<=O);t:{if(u=(M=n.ga).c,O=M.l.o,M.$a==0){if(Rt=n.rc,It=n.Vc,te=n.Fa,z=n.P+1+p*u,K=n.mb,wt=n.nb+p*u,t(z<=n.P+n.qc),M.Z!=0)for(t(Mi[M.Z]!=null),j=0;j<b;++j)Mi[M.Z](Rt,It,te,z,K,wt,u),Rt=K,It=wt,wt+=u,z+=u;else for(j=0;j<b;++j)a(K,wt,te,z,u),Rt=K,It=wt,wt+=u,z+=u;n.rc=Rt,n.Vc=It}else{if(t(M.mc!=null),u=p+b,t((j=M.mc)!=null),t(u<=j.i),j.C>=u)u=1;else if(M.ic||Bt(),M.ic){M=j.V,Rt=j.Ba,It=j.c;var Ht=j.i,At=(te=1,z=j.$/It,K=j.$%It,wt=j.m,Dt=j.s,j.$),Nt=It*Ht,Kt=It*u,ae=Dt.wc,$t=At<Kt?Wr(Dt,K,z):null;t(At<=Nt),t(u<=Ht),t(gi(Dt));e:for(;;){for(;!wt.h&&At<Kt;){if(K&ae||($t=Wr(Dt,K,z)),t($t!=null),gt(wt),256>(Ht=vn($t.G[0],$t.H[0],wt)))M[Rt+At]=Ht,++At,++K>=It&&(K=0,++z<=u&&!(z%16)&&Gn(j,z));else{if(!(280>Ht)){te=0;break e}Ht=Hn(Ht-256,wt);var Ie,_e=vn($t.G[4],$t.H[4],wt);if(gt(wt),!(At>=(_e=li(It,_e=Hn(_e,wt)))&&Nt-At>=Ht)){te=0;break e}for(Ie=0;Ie<Ht;++Ie)M[Rt+At+Ie]=M[Rt+At+Ie-_e];for(At+=Ht,K+=Ht;K>=It;)K-=It,++z<=u&&!(z%16)&&Gn(j,z);At<Kt&&K&ae&&($t=Wr(Dt,K,z))}t(wt.h==U(wt))}Gn(j,z>u?u:z);break e}!te||wt.h&&At<Nt?(te=0,j.a=wt.h?5:3):j.$=At,u=te}else u=Vn(j,j.V,j.Ba,j.c,j.i,u,Aa);if(!u){b=0;break t}}p+b>=O&&(n.Cc=1),b=1}if(!b)return null;if(n.Cc&&((b=n.ga)!=null&&(b.mc=null),n.ga=null,0<n.Ga))return alert("todo:WebPDequantizeLevels"),null}return n.nb+p*k}function h(n,u,p,b,k,O){for(;0<k--;){var j,M=n,z=u+(p?1:0),K=n,wt=u+(p?0:3);for(j=0;j<b;++j){var Dt=K[wt+4*j];Dt!=255&&(Dt*=32897,M[z+4*j+0]=M[z+4*j+0]*Dt>>23,M[z+4*j+1]=M[z+4*j+1]*Dt>>23,M[z+4*j+2]=M[z+4*j+2]*Dt>>23)}u+=O}}function P(n,u,p,b,k){for(;0<b--;){var O;for(O=0;O<p;++O){var j=n[u+2*O+0],M=15&(K=n[u+2*O+1]),z=4369*M,K=(240&K|K>>4)*z>>16;n[u+2*O+0]=(240&j|j>>4)*z>>16&240|(15&j|j<<4)*z>>16>>4&15,n[u+2*O+1]=240&K|M}u+=k}}function it(n,u,p,b,k,O,j,M){var z,K,wt=255;for(K=0;K<k;++K){for(z=0;z<b;++z){var Dt=n[u+z];O[j+4*z]=Dt,wt&=Dt}u+=p,j+=M}return wt!=255}function vt(n,u,p,b,k){var O;for(O=0;O<k;++O)p[b+O]=n[u+O]>>8}function Bt(){Ri=h,Ha=P,vo=it,zl=vt}function Vt(n,u,p){A[n]=function(b,k,O,j,M,z,K,wt,Dt,Rt,It,te,Ht,At,Nt,Kt,ae){var $t,Ie=ae-1>>1,_e=M[z+0]|K[wt+0]<<16,qe=Dt[Rt+0]|It[te+0]<<16;t(b!=null);var Ne=3*_e+qe+131074>>2;for(u(b[k+0],255&Ne,Ne>>16,Ht,At),O!=null&&(Ne=3*qe+_e+131074>>2,u(O[j+0],255&Ne,Ne>>16,Nt,Kt)),$t=1;$t<=Ie;++$t){var gr=M[z+$t]|K[wt+$t]<<16,br=Dt[Rt+$t]|It[te+$t]<<16,dr=_e+gr+qe+br+524296,ur=dr+2*(gr+qe)>>3;Ne=ur+_e>>1,_e=(dr=dr+2*(_e+br)>>3)+gr>>1,u(b[k+2*$t-1],255&Ne,Ne>>16,Ht,At+(2*$t-1)*p),u(b[k+2*$t-0],255&_e,_e>>16,Ht,At+(2*$t-0)*p),O!=null&&(Ne=dr+qe>>1,_e=ur+br>>1,u(O[j+2*$t-1],255&Ne,Ne>>16,Nt,Kt+(2*$t-1)*p),u(O[j+2*$t+0],255&_e,_e>>16,Nt,Kt+(2*$t+0)*p)),_e=gr,qe=br}1&ae||(Ne=3*_e+qe+131074>>2,u(b[k+ae-1],255&Ne,Ne>>16,Ht,At+(ae-1)*p),O!=null&&(Ne=3*qe+_e+131074>>2,u(O[j+ae-1],255&Ne,Ne>>16,Nt,Kt+(ae-1)*p)))}}function ce(){Dn[yo]=Ph,Dn[wo]=Kl,Dn[Vl]=Ih,Dn[Ao]=Jl,Dn[_o]=$l,Dn[Cu]=tc,Dn[Zl]=Ch,Dn[Fu]=Kl,Dn[Eu]=Jl,Dn[xo]=$l,Dn[Ou]=tc}function Se(n){return n&~Fh?0>n?0:255:n>>ec}function Me(n,u){return Se((19077*n>>8)+(26149*u>>8)-14234)}function $e(n,u,p){return Se((19077*n>>8)-(6419*u>>8)-(13320*p>>8)+8708)}function ir(n,u){return Se((19077*n>>8)+(33050*u>>8)-17685)}function hr(n,u,p,b,k){b[k+0]=Me(n,p),b[k+1]=$e(n,u,p),b[k+2]=ir(n,u)}function Fr(n,u,p,b,k){b[k+0]=ir(n,u),b[k+1]=$e(n,u,p),b[k+2]=Me(n,p)}function jr(n,u,p,b,k){var O=$e(n,u,p);u=O<<3&224|ir(n,u)>>3,b[k+0]=248&Me(n,p)|O>>5,b[k+1]=u}function Gr(n,u,p,b,k){var O=240&ir(n,u)|15;b[k+0]=240&Me(n,p)|$e(n,u,p)>>4,b[k+1]=O}function hn(n,u,p,b,k){b[k+0]=255,hr(n,u,p,b,k+1)}function tn(n,u,p,b,k){Fr(n,u,p,b,k),b[k+3]=255}function Qn(n,u,p,b,k){hr(n,u,p,b,k),b[k+3]=255}function Sn(n,u){return 0>n?0:n>u?u:n}function bi(n,u,p){A[n]=function(b,k,O,j,M,z,K,wt,Dt){for(var Rt=wt+(-2&Dt)*p;wt!=Rt;)u(b[k+0],O[j+0],M[z+0],K,wt),u(b[k+1],O[j+0],M[z+0],K,wt+p),k+=2,++j,++z,wt+=2*p;1&Dt&&u(b[k+0],O[j+0],M[z+0],K,wt)}}function go(n,u,p){return p==0?n==0?u==0?6:5:u==0?4:0:p}function fs(n,u,p,b,k){switch(n>>>30){case 3:Ua(u,p,b,k,0);break;case 2:ys(u,p,b,k);break;case 1:$n(u,p,b,k)}}function ds(n,u){var p,b,k=u.M,O=u.Nb,j=n.oc,M=n.pc+40,z=n.oc,K=n.pc+584,wt=n.oc,Dt=n.pc+600;for(p=0;16>p;++p)j[M+32*p-1]=129;for(p=0;8>p;++p)z[K+32*p-1]=129,wt[Dt+32*p-1]=129;for(0<k?j[M-1-32]=z[K-1-32]=wt[Dt-1-32]=129:(s(j,M-32-1,127,21),s(z,K-32-1,127,9),s(wt,Dt-32-1,127,9)),b=0;b<n.za;++b){var Rt=u.ya[u.aa+b];if(0<b){for(p=-1;16>p;++p)a(j,M+32*p-4,j,M+32*p+12,4);for(p=-1;8>p;++p)a(z,K+32*p-4,z,K+32*p+4,4),a(wt,Dt+32*p-4,wt,Dt+32*p+4,4)}var It=n.Gd,te=n.Hd+b,Ht=Rt.ad,At=Rt.Hc;if(0<k&&(a(j,M-32,It[te].y,0,16),a(z,K-32,It[te].f,0,8),a(wt,Dt-32,It[te].ea,0,8)),Rt.Za){var Nt=j,Kt=M-32+16;for(0<k&&(b>=n.za-1?s(Nt,Kt,It[te].y[15],4):a(Nt,Kt,It[te+1].y,0,4)),p=0;4>p;p++)Nt[Kt+128+p]=Nt[Kt+256+p]=Nt[Kt+384+p]=Nt[Kt+0+p];for(p=0;16>p;++p,At<<=2)Nt=j,Kt=M+nc[p],ti[Rt.Ob[p]](Nt,Kt),fs(At,Ht,16*+p,Nt,Kt)}else if(Nt=go(b,k,Rt.Ob[0]),Ti[Nt](j,M),At!=0)for(p=0;16>p;++p,At<<=2)fs(At,Ht,16*+p,j,M+nc[p]);for(p=Rt.Gc,Nt=go(b,k,Rt.Dd),xi[Nt](z,K),xi[Nt](wt,Dt),At=Ht,Nt=z,Kt=K,255&(Rt=p>>0)&&(170&Rt?ji(At,256,Nt,Kt):wi(At,256,Nt,Kt)),Rt=wt,At=Dt,255&(p>>=8)&&(170&p?ji(Ht,320,Rt,At):wi(Ht,320,Rt,At)),k<n.Ub-1&&(a(It[te].y,0,j,M+480,16),a(It[te].f,0,z,K+224,8),a(It[te].ea,0,wt,Dt+224,8)),p=8*O*n.B,It=n.sa,te=n.ta+16*b+16*O*n.R,Ht=n.qa,Rt=n.ra+8*b+p,At=n.Ha,Nt=n.Ia+8*b+p,p=0;16>p;++p)a(It,te+p*n.R,j,M+32*p,16);for(p=0;8>p;++p)a(Ht,Rt+p*n.B,z,K+32*p,8),a(At,Nt+p*n.B,wt,Dt+32*p,8)}}function ja(n,u,p,b,k,O,j,M,z){var K=[0],wt=[0],Dt=0,Rt=z!=null?z.kd:0,It=z!=null?z:new us;if(n==null||12>p)return 7;It.data=n,It.w=u,It.ha=p,u=[u],p=[p],It.gb=[It.gb];t:{var te=u,Ht=p,At=It.gb;if(t(n!=null),t(Ht!=null),t(At!=null),At[0]=0,12<=Ht[0]&&!e(n,te[0],"RIFF")){if(e(n,te[0]+8,"WEBP")){At=3;break t}var Nt=xe(n,te[0]+4);if(12>Nt||4294967286<Nt){At=3;break t}if(Rt&&Nt>Ht[0]-8){At=7;break t}At[0]=Nt,te[0]+=12,Ht[0]-=12}At=0}if(At!=0)return At;for(Nt=0<It.gb[0],p=p[0];;){t:{var Kt=n;Ht=u,At=p;var ae=K,$t=wt,Ie=te=[0];if((Ne=Dt=[Dt])[0]=0,8>At[0])At=7;else{if(!e(Kt,Ht[0],"VP8X")){if(xe(Kt,Ht[0]+4)!=10){At=3;break t}if(18>At[0]){At=7;break t}var _e=xe(Kt,Ht[0]+8),qe=1+pe(Kt,Ht[0]+12);if(2147483648<=qe*(Kt=1+pe(Kt,Ht[0]+15))){At=3;break t}Ie!=null&&(Ie[0]=_e),ae!=null&&(ae[0]=qe),$t!=null&&($t[0]=Kt),Ht[0]+=18,At[0]-=18,Ne[0]=1}At=0}}if(Dt=Dt[0],te=te[0],At!=0)return At;if(Ht=!!(2&te),!Nt&&Dt)return 3;if(O!=null&&(O[0]=!!(16&te)),j!=null&&(j[0]=Ht),M!=null&&(M[0]=0),j=K[0],te=wt[0],Dt&&Ht&&z==null){At=0;break}if(4>p){At=7;break}if(Nt&&Dt||!Nt&&!Dt&&!e(n,u[0],"ALPH")){p=[p],It.na=[It.na],It.P=[It.P],It.Sa=[It.Sa];t:{_e=n,At=u,Nt=p;var Ne=It.gb;ae=It.na,$t=It.P,Ie=It.Sa,qe=22,t(_e!=null),t(Nt!=null),Kt=At[0];var gr=Nt[0];for(t(ae!=null),t(Ie!=null),ae[0]=null,$t[0]=null,Ie[0]=0;;){if(At[0]=Kt,Nt[0]=gr,8>gr){At=7;break t}var br=xe(_e,Kt+4);if(4294967286<br){At=3;break t}var dr=8+br+1&-2;if(qe+=dr,0<Ne&&qe>Ne){At=3;break t}if(!e(_e,Kt,"VP8 ")||!e(_e,Kt,"VP8L")){At=0;break t}if(gr[0]<dr){At=7;break t}e(_e,Kt,"ALPH")||(ae[0]=_e,$t[0]=Kt+8,Ie[0]=br),Kt+=dr,gr-=dr}}if(p=p[0],It.na=It.na[0],It.P=It.P[0],It.Sa=It.Sa[0],At!=0)break}p=[p],It.Ja=[It.Ja],It.xa=[It.xa];t:if(Ne=n,At=u,Nt=p,ae=It.gb[0],$t=It.Ja,Ie=It.xa,_e=At[0],Kt=!e(Ne,_e,"VP8 "),qe=!e(Ne,_e,"VP8L"),t(Ne!=null),t(Nt!=null),t($t!=null),t(Ie!=null),8>Nt[0])At=7;else{if(Kt||qe){if(Ne=xe(Ne,_e+4),12<=ae&&Ne>ae-12){At=3;break t}if(Rt&&Ne>Nt[0]-8){At=7;break t}$t[0]=Ne,At[0]+=8,Nt[0]-=8,Ie[0]=qe}else Ie[0]=5<=Nt[0]&&Ne[_e+0]==47&&!(Ne[_e+4]>>5),$t[0]=Nt[0];At=0}if(p=p[0],It.Ja=It.Ja[0],It.xa=It.xa[0],u=u[0],At!=0)break;if(4294967286<It.Ja)return 3;if(M==null||Ht||(M[0]=It.xa?2:1),j=[j],te=[te],It.xa){if(5>p){At=7;break}M=j,Rt=te,Ht=O,n==null||5>p?n=0:5<=p&&n[u+0]==47&&!(n[u+4]>>5)?(Nt=[0],Ne=[0],ae=[0],at($t=new N,n,u,p),Ge($t,Nt,Ne,ae)?(M!=null&&(M[0]=Nt[0]),Rt!=null&&(Rt[0]=Ne[0]),Ht!=null&&(Ht[0]=ae[0]),n=1):n=0):n=0}else{if(10>p){At=7;break}M=te,n==null||10>p||!Js(n,u+3,p-3)?n=0:(Rt=n[u+0]|n[u+1]<<8|n[u+2]<<16,Ht=16383&(n[u+7]<<8|n[u+6]),n=16383&(n[u+9]<<8|n[u+8]),1&Rt||3<(Rt>>1&7)||!(Rt>>4&1)||Rt>>5>=It.Ja||!Ht||!n?n=0:(j&&(j[0]=Ht),M&&(M[0]=n),n=1))}if(!n||(j=j[0],te=te[0],Dt&&(K[0]!=j||wt[0]!=te)))return 3;z!=null&&(z[0]=It,z.offset=u-z.w,t(4294967286>u-z.w),t(z.offset==z.ha-p));break}return At==0||At==7&&Dt&&z==null?(O!=null&&(O[0]|=It.na!=null&&0<It.na.length),b!=null&&(b[0]=j),k!=null&&(k[0]=te),0):At}function ps(n,u,p){var b=u.width,k=u.height,O=0,j=0,M=b,z=k;if(u.Da=n!=null&&0<n.Da,u.Da&&(M=n.cd,z=n.bd,O=n.v,j=n.j,11>p||(O&=-2,j&=-2),0>O||0>j||0>=M||0>=z||O+M>b||j+z>k))return 0;if(u.v=O,u.j=j,u.va=O+M,u.o=j+z,u.U=M,u.T=z,u.da=n!=null&&0<n.da,u.da){if(!Fe(M,z,p=[n.ib],O=[n.hb]))return 0;u.ib=p[0],u.hb=O[0]}return u.ob=n!=null&&n.ob,u.Kb=n==null||!n.Sd,u.da&&(u.ob=u.ib<3*b/4&&u.hb<3*k/4,u.Kb=0),1}function gs(n){if(n==null)return 2;if(11>n.S){var u=n.f.RGBA;u.fb+=(n.height-1)*u.A,u.A=-u.A}else u=n.f.kb,n=n.height,u.O+=(n-1)*u.fa,u.fa=-u.fa,u.N+=(n-1>>1)*u.Ab,u.Ab=-u.Ab,u.W+=(n-1>>1)*u.Db,u.Db=-u.Db,u.F!=null&&(u.J+=(n-1)*u.lb,u.lb=-u.lb);return 0}function Da(n,u,p,b){if(b==null||0>=n||0>=u)return 2;if(p!=null){if(p.Da){var k=p.cd,O=p.bd,j=-2&p.v,M=-2&p.j;if(0>j||0>M||0>=k||0>=O||j+k>n||M+O>u)return 2;n=k,u=O}if(p.da){if(!Fe(n,u,k=[p.ib],O=[p.hb]))return 2;n=k[0],u=O[0]}}b.width=n,b.height=u;t:{var z=b.width,K=b.height;if(n=b.S,0>=z||0>=K||!(n>=yo&&13>n))n=2;else{if(0>=b.Rd&&b.sd==null){j=O=k=u=0;var wt=(M=z*ic[n])*K;if(11>n||(O=(K+1)/2*(u=(z+1)/2),n==12&&(j=(k=z)*K)),(K=i(wt+2*O+j))==null){n=1;break t}b.sd=K,11>n?((z=b.f.RGBA).eb=K,z.fb=0,z.A=M,z.size=wt):((z=b.f.kb).y=K,z.O=0,z.fa=M,z.Fd=wt,z.f=K,z.N=0+wt,z.Ab=u,z.Cd=O,z.ea=K,z.W=0+wt+O,z.Db=u,z.Ed=O,n==12&&(z.F=K,z.J=0+wt+2*O),z.Tc=j,z.lb=k)}if(u=1,k=b.S,O=b.width,j=b.height,k>=yo&&13>k)if(11>k)n=b.f.RGBA,u&=(M=Math.abs(n.A))*(j-1)+O<=n.size,u&=M>=O*ic[k],u&=n.eb!=null;else{n=b.f.kb,M=(O+1)/2,wt=(j+1)/2,z=Math.abs(n.fa),K=Math.abs(n.Ab);var Dt=Math.abs(n.Db),Rt=Math.abs(n.lb),It=Rt*(j-1)+O;u&=z*(j-1)+O<=n.Fd,u&=K*(wt-1)+M<=n.Cd,u=(u&=Dt*(wt-1)+M<=n.Ed)&z>=O&K>=M&Dt>=M,u&=n.y!=null,u&=n.f!=null,u&=n.ea!=null,k==12&&(u&=Rt>=O,u&=It<=n.Tc,u&=n.F!=null)}else u=0;n=u?0:2}}return n!=0||p!=null&&p.fd&&(n=gs(b)),n}var yn=64,Ra=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Ta=24,Ma=32,ms=8,wn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];he("Predictor0","PredictorAdd0"),A.Predictor0=function(){return 4278190080},A.Predictor1=function(n){return n},A.Predictor2=function(n,u,p){return u[p+0]},A.Predictor3=function(n,u,p){return u[p+1]},A.Predictor4=function(n,u,p){return u[p-1]},A.Predictor5=function(n,u,p){return ge(ge(n,u[p+1]),u[p+0])},A.Predictor6=function(n,u,p){return ge(n,u[p-1])},A.Predictor7=function(n,u,p){return ge(n,u[p+0])},A.Predictor8=function(n,u,p){return ge(u[p-1],u[p+0])},A.Predictor9=function(n,u,p){return ge(u[p+0],u[p+1])},A.Predictor10=function(n,u,p){return ge(ge(n,u[p-1]),ge(u[p+0],u[p+1]))},A.Predictor11=function(n,u,p){var b=u[p+0];return 0>=Re(b>>24&255,n>>24&255,(u=u[p-1])>>24&255)+Re(b>>16&255,n>>16&255,u>>16&255)+Re(b>>8&255,n>>8&255,u>>8&255)+Re(255&b,255&n,255&u)?b:n},A.Predictor12=function(n,u,p){var b=u[p+0];return(Le((n>>24&255)+(b>>24&255)-((u=u[p-1])>>24&255))<<24|Le((n>>16&255)+(b>>16&255)-(u>>16&255))<<16|Le((n>>8&255)+(b>>8&255)-(u>>8&255))<<8|Le((255&n)+(255&b)-(255&u)))>>>0},A.Predictor13=function(n,u,p){var b=u[p-1];return(Pe((n=ge(n,u[p+0]))>>24&255,b>>24&255)<<24|Pe(n>>16&255,b>>16&255)<<16|Pe(n>>8&255,b>>8&255)<<8|Pe(n>>0&255,b>>0&255))>>>0};var Su=A.PredictorAdd0;A.PredictorAdd1=Ye,he("Predictor2","PredictorAdd2"),he("Predictor3","PredictorAdd3"),he("Predictor4","PredictorAdd4"),he("Predictor5","PredictorAdd5"),he("Predictor6","PredictorAdd6"),he("Predictor7","PredictorAdd7"),he("Predictor8","PredictorAdd8"),he("Predictor9","PredictorAdd9"),he("Predictor10","PredictorAdd10"),he("Predictor11","PredictorAdd11"),he("Predictor12","PredictorAdd12"),he("Predictor13","PredictorAdd13");var vs=A.PredictorAdd2;ze("ColorIndexInverseTransform","MapARGB","32b",function(n){return n>>8&255},function(n){return n}),ze("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(n){return n},function(n){return n>>8&255});var mo,Xn=A.ColorIndexInverseTransform,bs=A.MapARGB,ku=A.VP8LColorIndexInverseTransformAlpha,Pu=A.MapAlpha,Oi=A.VP8LPredictorsAdd=[];Oi.length=16,(A.VP8LPredictors=[]).length=16,(A.VP8LPredictorsAdd_C=[]).length=16,(A.VP8LPredictors_C=[]).length=16;var On,Kn,Bi,di,yi,za,Jn,Ua,ys,ji,$n,wi,ra,qa,na,Di,ws,Bn,Ai,Sr,kr,qr,Qr,_i,Ri,Ha,vo,zl,Ul=i(511),ql=i(2041),Hl=i(225),Wl=i(767),Gl=0,Iu=ql,bo=Hl,kn=Wl,jn=Ul,yo=0,wo=1,Vl=2,Ao=3,_o=4,Cu=5,Zl=6,Fu=7,Eu=8,xo=9,Ou=10,ph=[2,3,7],gh=[3,3,11],Yl=[280,256,256,256,40],mh=[0,1,1,1,0],vh=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],bh=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],yh=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],wh=8,Bu=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ju=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],As=null,Ah=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],_h=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Ql=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],xh=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Lh=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Nh=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Sh=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Ti=[],ti=[],xi=[],kh=1,Xl=2,Mi=[],Dn=[];Vt("UpsampleRgbLinePair",hr,3),Vt("UpsampleBgrLinePair",Fr,3),Vt("UpsampleRgbaLinePair",Qn,4),Vt("UpsampleBgraLinePair",tn,4),Vt("UpsampleArgbLinePair",hn,4),Vt("UpsampleRgba4444LinePair",Gr,2),Vt("UpsampleRgb565LinePair",jr,2);var Ph=A.UpsampleRgbLinePair,Ih=A.UpsampleBgrLinePair,Kl=A.UpsampleRgbaLinePair,Jl=A.UpsampleBgraLinePair,$l=A.UpsampleArgbLinePair,tc=A.UpsampleRgba4444LinePair,Ch=A.UpsampleRgb565LinePair,Lo=16,No=1<<Lo-1,_s=-227,Du=482,ec=6,Fh=(256<<ec)-1,rc=0,Eh=i(256),Oh=i(256),Bh=i(256),jh=i(256),Dh=i(Du-_s),Rh=i(Du-_s);bi("YuvToRgbRow",hr,3),bi("YuvToBgrRow",Fr,3),bi("YuvToRgbaRow",Qn,4),bi("YuvToBgraRow",tn,4),bi("YuvToArgbRow",hn,4),bi("YuvToRgba4444Row",Gr,2),bi("YuvToRgb565Row",jr,2);var nc=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],So=[0,2,8],Th=[8,7,6,4,4,2,2,2,1,1,1,1],Mh=1;this.WebPDecodeRGBA=function(n,u,p,b,k){var O=wo,j=new Oa,M=new Ln;j.ba=M,M.S=O,M.width=[M.width],M.height=[M.height];var z=M.width,K=M.height,wt=new Jr;if(wt==null||n==null)var Dt=2;else t(wt!=null),Dt=ja(n,u,p,wt.width,wt.height,wt.Pd,wt.Qd,wt.format,null);if(Dt!=0?z=0:(z!=null&&(z[0]=wt.width[0]),K!=null&&(K[0]=wt.height[0]),z=1),z){M.width=M.width[0],M.height=M.height[0],b!=null&&(b[0]=M.width),k!=null&&(k[0]=M.height);t:{if(b=new Sa,(k=new us).data=n,k.w=u,k.ha=p,k.kd=1,u=[0],t(k!=null),((n=ja(k.data,k.w,k.ha,null,null,null,u,null,k))==0||n==7)&&u[0]&&(n=4),(u=n)==0){if(t(j!=null),b.data=k.data,b.w=k.w+k.offset,b.ha=k.ha-k.offset,b.put=$r,b.ac=Pr,b.bc=ui,b.ma=j,k.xa){if((n=En())==null){j=1;break t}if(function(Rt,It){var te=[0],Ht=[0],At=[0];e:for(;;){if(Rt==null)return 0;if(It==null)return Rt.a=2,0;if(Rt.l=It,Rt.a=0,at(Rt.m,It.data,It.w,It.ha),!Ge(Rt.m,te,Ht,At)){Rt.a=3;break e}if(Rt.xb=Xl,It.width=te[0],It.height=Ht[0],!hi(te[0],Ht[0],1,Rt,null))break e;return 1}return t(Rt.a!=0),0}(n,b)){if(b=(u=Da(b.width,b.height,j.Oa,j.ba))==0){e:{b=n;r:for(;;){if(b==null){b=0;break e}if(t(b.s.yc!=null),t(b.s.Ya!=null),t(0<b.s.Wb),t((p=b.l)!=null),t((k=p.ma)!=null),b.xb!=0){if(b.ca=k.ba,b.tb=k.tb,t(b.ca!=null),!ps(k.Oa,p,Ao)){b.a=2;break r}if(!Ki(b,p.width)||p.da)break r;if((p.da||cr(b.ca.S))&&Bt(),11>b.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),b.ca.f.kb.F!=null&&Bt()),b.Pb&&0<b.s.ua&&b.s.vb.X==null&&!Be(b.s.vb,b.s.Wa.Xa)){b.a=1;break r}b.xb=0}if(!Vn(b,b.V,b.Ba,b.c,b.i,p.o,wa))break r;k.Dc=b.Ma,b=1;break e}t(b.a!=0),b=0}b=!b}b&&(u=n.a)}else u=n.a}else{if((n=new ou)==null){j=1;break t}if(n.Fa=k.na,n.P=k.P,n.qc=k.Sa,$s(n,b)){if((u=Da(b.width,b.height,j.Oa,j.ba))==0){if(n.Aa=0,p=j.Oa,t((k=n)!=null),p!=null){if(0<(z=0>(z=p.Md)?0:100<z?255:255*z/100)){for(K=wt=0;4>K;++K)12>(Dt=k.pb[K]).lc&&(Dt.ia=z*Th[0>Dt.lc?0:Dt.lc]>>3),wt|=Dt.ia;wt&&(alert("todo:VP8InitRandom"),k.ia=1)}k.Ga=p.Id,100<k.Ga?k.Ga=100:0>k.Ga&&(k.Ga=0)}uu(n,b)||(u=n.a)}}else u=n.a}u==0&&j.Oa!=null&&j.Oa.fd&&(u=gs(j.ba))}j=u}O=j!=0?null:11>O?M.f.RGBA.eb:M.f.kb.y}else O=null;return O};var ic=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function v(A,B){for(var Y="",x=0;x<4;x++)Y+=String.fromCharCode(A[B++]);return Y}function d(A,B){return(A[B+0]<<0|A[B+1]<<8|A[B+2]<<16)>>>0}function g(A,B){return(A[B+0]<<0|A[B+1]<<8|A[B+2]<<16|A[B+3]<<24)>>>0}new c;var m=[0],f=[0],w=[],L=new c,E=r,y=function(A,B){var Y={},x=0,_=!1,T=0,C=0;if(Y.frames=[],!function(H,U,W,gt){for(var Ft=0;Ft<gt;Ft++)if(H[U+Ft]!=W.charCodeAt(Ft))return!0;return!1}(A,B,"RIFF",4)){var $,F;for(g(A,B+=4),B+=8;B<A.length;){var I=v(A,B),at=g(A,B+=4);B+=4;var nt=at+(1&at);switch(I){case"VP8 ":case"VP8L":Y.frames[x]===void 0&&(Y.frames[x]={}),(N=Y.frames[x]).src_off=_?C:B-8,N.src_size=T+at+8,x++,_&&(_=!1,T=0,C=0);break;case"VP8X":(N=Y.header={}).feature_flags=A[B];var pt=B+4;N.canvas_width=1+d(A,pt),pt+=3,N.canvas_height=1+d(A,pt),pt+=3;break;case"ALPH":_=!0,T=nt+8,C=B-8;break;case"ANIM":(N=Y.header).bgcolor=g(A,B),pt=B+4,N.loop_count=($=A)[(F=pt)+0]<<0|$[F+1]<<8,pt+=2;break;case"ANMF":var Zt,N;(N=Y.frames[x]={}).offset_x=2*d(A,B),B+=3,N.offset_y=2*d(A,B),B+=3,N.width=1+d(A,B),B+=3,N.height=1+d(A,B),B+=3,N.duration=d(A,B),B+=3,Zt=A[B++],N.dispose=1&Zt,N.blend=Zt>>1&1}I!="ANMF"&&(B+=nt)}return Y}}(E,0);y.response=E,y.rgbaoutput=!0,y.dataurl=!1;var R=y.header?y.header:null,G=y.frames?y.frames:null;if(R){R.loop_counter=R.loop_count,m=[R.canvas_height],f=[R.canvas_width];for(var Q=0;Q<G.length&&G[Q].blend!=0;Q++);}var ht=G[0],Z=L.WebPDecodeRGBA(E,ht.src_off,ht.src_size,f,m);ht.rgba=Z,ht.imgwidth=f[0],ht.imgheight=m[0];for(var tt=0;tt<f[0]*m[0]*4;tt++)w[tt]=Z[tt];return this.width=f,this.height=m,this.data=w,this}(function(r){var t=function(){return typeof Xa=="function"},e=function(m,f,w,L){var E=4,y=o;switch(L){case r.image_compression.FAST:E=1,y=i;break;case r.image_compression.MEDIUM:E=6,y=l;break;case r.image_compression.SLOW:E=9,y=c}m=a(m,f,w,y);var R=Xa(m,{level:E});return r.__addimage__.arrayBufferToBinaryString(R)},a=function(m,f,w,L){for(var E,y,R,G=m.length/f,Q=new Uint8Array(m.length+G),ht=d(),Z=0;Z<G;Z+=1){if(R=Z*f,E=m.subarray(R,R+f),L)Q.set(L(E,w,y),R+Z);else{for(var tt,A=ht.length,B=[];tt<A;tt+=1)B[tt]=ht[tt](E,w,y);var Y=g(B.concat());Q.set(B[Y],R+Z)}y=E}return Q},s=function(m){var f=Array.apply([],m);return f.unshift(0),f},i=function(m,f){var w,L=[],E=m.length;L[0]=1;for(var y=0;y<E;y+=1)w=m[y-f]||0,L[y+1]=m[y]-w+256&255;return L},o=function(m,f,w){var L,E=[],y=m.length;E[0]=2;for(var R=0;R<y;R+=1)L=w&&w[R]||0,E[R+1]=m[R]-L+256&255;return E},l=function(m,f,w){var L,E,y=[],R=m.length;y[0]=3;for(var G=0;G<R;G+=1)L=m[G-f]||0,E=w&&w[G]||0,y[G+1]=m[G]+256-(L+E>>>1)&255;return y},c=function(m,f,w){var L,E,y,R,G=[],Q=m.length;G[0]=4;for(var ht=0;ht<Q;ht+=1)L=m[ht-f]||0,E=w&&w[ht]||0,y=w&&w[ht-f]||0,R=v(L,E,y),G[ht+1]=m[ht]-R+256&255;return G},v=function(m,f,w){if(m===f&&f===w)return m;var L=Math.abs(f-w),E=Math.abs(m-w),y=Math.abs(m+f-w-w);return L<=E&&L<=y?m:E<=y?f:w},d=function(){return[s,i,o,l,c]},g=function(m){var f=m.map(function(w){return w.reduce(function(L,E){return L+Math.abs(E)},0)});return f.indexOf(Math.min.apply(null,f))};r.processPNG=function(m,f,w,L){var E,y,R,G,Q,ht,Z,tt,A,B,Y,x,_,T,C,$=this.decode.FLATE_DECODE,F="";if(this.__addimage__.isArrayBuffer(m)&&(m=new Uint8Array(m)),this.__addimage__.isArrayBufferView(m)){if(m=(R=new Hc(m)).imgData,y=R.bits,E=R.colorSpace,Q=R.colors,[4,6].indexOf(R.colorType)!==-1){if(R.bits===8){A=(tt=R.pixelBitlength==32?new Uint32Array(R.decodePixels().buffer):R.pixelBitlength==16?new Uint16Array(R.decodePixels().buffer):new Uint8Array(R.decodePixels().buffer)).length,Y=new Uint8Array(A*R.colors),B=new Uint8Array(A);var I,at=R.pixelBitlength-R.bits;for(T=0,C=0;T<A;T++){for(_=tt[T],I=0;I<at;)Y[C++]=_>>>I&255,I+=R.bits;B[T]=_>>>I&255}}if(R.bits===16){A=(tt=new Uint32Array(R.decodePixels().buffer)).length,Y=new Uint8Array(A*(32/R.pixelBitlength)*R.colors),B=new Uint8Array(A*(32/R.pixelBitlength)),x=R.colors>1,T=0,C=0;for(var nt=0;T<A;)_=tt[T++],Y[C++]=_>>>0&255,x&&(Y[C++]=_>>>16&255,_=tt[T++],Y[C++]=_>>>0&255),B[nt++]=_>>>16&255;y=8}L!==r.image_compression.NONE&&t()?(m=e(Y,R.width*R.colors,R.colors,L),Z=e(B,R.width,1,L)):(m=Y,Z=B,$=void 0)}if(R.colorType===3&&(E=this.color_spaces.INDEXED,ht=R.palette,R.transparency.indexed)){var pt=R.transparency.indexed,Zt=0;for(T=0,A=pt.length;T<A;++T)Zt+=pt[T];if((Zt/=255)===A-1&&pt.indexOf(0)!==-1)G=[pt.indexOf(0)];else if(Zt!==A){for(tt=R.decodePixels(),B=new Uint8Array(tt.length),T=0,A=tt.length;T<A;T++)B[T]=pt[tt[T]];Z=e(B,R.width,1)}}var N=function(H){var U;switch(H){case r.image_compression.FAST:U=11;break;case r.image_compression.MEDIUM:U=13;break;case r.image_compression.SLOW:U=14;break;default:U=12}return U}(L);return $===this.decode.FLATE_DECODE&&(F="/Predictor "+N+" "),F+="/Colors "+Q+" /BitsPerComponent "+y+" /Columns "+R.width,(this.__addimage__.isArrayBuffer(m)||this.__addimage__.isArrayBufferView(m))&&(m=this.__addimage__.arrayBufferToBinaryString(m)),(Z&&this.__addimage__.isArrayBuffer(Z)||this.__addimage__.isArrayBufferView(Z))&&(Z=this.__addimage__.arrayBufferToBinaryString(Z)),{alias:w,data:m,index:f,filter:$,decodeParameters:F,transparency:G,palette:ht,sMask:Z,predictor:N,width:R.width,height:R.height,bitsPerComponent:y,colorSpace:E}}}})(We.API),function(r){r.processGIF89A=function(t,e,a,s){var i=new Wc(t),o=i.width,l=i.height,c=[];i.decodeAndBlitFrameRGBA(0,c);var v={data:c,width:o,height:l},d=new Jo(100).encode(v,100);return r.processJPEG.call(this,d,e,a,s)},r.processGIF87A=r.processGIF89A}(We.API),zn.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var r=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(r);for(var t=0;t<r;t++){var e=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:s,green:a,blue:e,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},zn.prototype.parseBGR=function(){this.pos=this.offset;try{var r="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[r]()}catch(e){Lr.log("bit decode error:"+e)}},zn.prototype.bit1=function(){var r,t=Math.ceil(this.width/8),e=t%4;for(r=this.height-1;r>=0;r--){for(var a=this.bottom_up?r:this.height-1-r,s=0;s<t;s++)for(var i=this.datav.getUint8(this.pos++,!0),o=a*this.width*4+8*s*4,l=0;l<8&&8*s+l<this.width;l++){var c=this.palette[i>>7-l&1];this.data[o+4*l]=c.blue,this.data[o+4*l+1]=c.green,this.data[o+4*l+2]=c.red,this.data[o+4*l+3]=255}e!==0&&(this.pos+=4-e)}},zn.prototype.bit4=function(){for(var r=Math.ceil(this.width/2),t=r%4,e=this.height-1;e>=0;e--){for(var a=this.bottom_up?e:this.height-1-e,s=0;s<r;s++){var i=this.datav.getUint8(this.pos++,!0),o=a*this.width*4+2*s*4,l=i>>4,c=15&i,v=this.palette[l];if(this.data[o]=v.blue,this.data[o+1]=v.green,this.data[o+2]=v.red,this.data[o+3]=255,2*s+1>=this.width)break;v=this.palette[c],this.data[o+4]=v.blue,this.data[o+4+1]=v.green,this.data[o+4+2]=v.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},zn.prototype.bit8=function(){for(var r=this.width%4,t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,a=0;a<this.width;a++){var s=this.datav.getUint8(this.pos++,!0),i=e*this.width*4+4*a;if(s<this.palette.length){var o=this.palette[s];this.data[i]=o.red,this.data[i+1]=o.green,this.data[i+2]=o.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}r!==0&&(this.pos+=4-r)}},zn.prototype.bit15=function(){for(var r=this.width%3,t=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var a=this.bottom_up?e:this.height-1-e,s=0;s<this.width;s++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(i&t)/t*255|0,l=(i>>5&t)/t*255|0,c=(i>>10&t)/t*255|0,v=i>>15?255:0,d=a*this.width*4+4*s;this.data[d]=c,this.data[d+1]=l,this.data[d+2]=o,this.data[d+3]=v}this.pos+=r}},zn.prototype.bit16=function(){for(var r=this.width%3,t=parseInt("11111",2),e=parseInt("111111",2),a=this.height-1;a>=0;a--){for(var s=this.bottom_up?a:this.height-1-a,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(o&t)/t*255|0,c=(o>>5&e)/e*255|0,v=(o>>11)/t*255|0,d=s*this.width*4+4*i;this.data[d]=v,this.data[d+1]=c,this.data[d+2]=l,this.data[d+3]=255}this.pos+=r}},zn.prototype.bit24=function(){for(var r=this.height-1;r>=0;r--){for(var t=this.bottom_up?r:this.height-1-r,e=0;e<this.width;e++){var a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*e;this.data[o]=i,this.data[o+1]=s,this.data[o+2]=a,this.data[o+3]=255}this.pos+=this.width%4}},zn.prototype.bit32=function(){for(var r=this.height-1;r>=0;r--)for(var t=this.bottom_up?r:this.height-1-r,e=0;e<this.width;e++){var a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),l=t*this.width*4+4*e;this.data[l]=i,this.data[l+1]=s,this.data[l+2]=a,this.data[l+3]=o}},zn.prototype.getData=function(){return this.data},function(r){r.processBMP=function(t,e,a,s){var i=new zn(t,!1),o=i.width,l=i.height,c={data:i.getData(),width:o,height:l},v=new Jo(100).encode(c,100);return r.processJPEG.call(this,v,e,a,s)}}(We.API),Ll.prototype.getData=function(){return this.data},function(r){r.processWEBP=function(t,e,a,s){var i=new Ll(t,!1),o=i.width,l=i.height,c={data:i.getData(),width:o,height:l},v=new Jo(100).encode(c,100);return r.processJPEG.call(this,v,e,a,s)}}(We.API),We.API.processRGBA=function(r,t,e){for(var a=r.data,s=a.length,i=new Uint8Array(s/4*3),o=new Uint8Array(s/4),l=0,c=0,v=0;v<s;v+=4){var d=a[v],g=a[v+1],m=a[v+2],f=a[v+3];i[l++]=d,i[l++]=g,i[l++]=m,o[c++]=f}var w=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:w,index:t,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:r.width,height:r.height}},We.API.setLanguage=function(r){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[r]!==void 0&&(this.internal.languageSettings.languageCode=r,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},ba=We.API,qs=ba.getCharWidthsArray=function(r,t){var e,a,s=(t=t||{}).font||this.internal.getFont(),i=t.fontSize||this.internal.getFontSize(),o=t.charSpace||this.internal.getCharSpace(),l=t.widths?t.widths:s.metadata.Unicode.widths,c=l.fof?l.fof:1,v=t.kerning?t.kerning:s.metadata.Unicode.kerning,d=v.fof?v.fof:1,g=t.doKerning!==!1,m=0,f=r.length,w=0,L=l[0]||c,E=[];for(e=0;e<f;e++)a=r.charCodeAt(e),typeof s.metadata.widthOfString=="function"?E.push((s.metadata.widthOfGlyph(s.metadata.characterToGlyph(a))+o*(1e3/i)||0)/1e3):(m=g&&(0,xt.A)(v[a])==="object"&&!isNaN(parseInt(v[a][w],10))?v[a][w]/d:0,E.push((l[a]||L)/c+m)),w=a;return E},wl=ba.getStringUnitWidth=function(r,t){var e=(t=t||{}).fontSize||this.internal.getFontSize(),a=t.font||this.internal.getFont(),s=t.charSpace||this.internal.getCharSpace();return ba.processArabic&&(r=ba.processArabic(r)),typeof a.metadata.widthOfString=="function"?a.metadata.widthOfString(r,e,s)/e:qs.apply(this,arguments).reduce(function(i,o){return i+o},0)},Al=function(r,t,e,a){for(var s=[],i=0,o=r.length,l=0;i!==o&&l+t[i]<e;)l+=t[i],i++;s.push(r.slice(0,i));var c=i;for(l=0;i!==o;)l+t[i]>a&&(s.push(r.slice(c,i)),l=0,c=i),l+=t[i],i++;return c!==i&&s.push(r.slice(c,i)),s},_l=function(r,t,e){e||(e={});var a,s,i,o,l,c,v,d=[],g=[d],m=e.textIndent||0,f=0,w=0,L=r.split(" "),E=qs.apply(this,[" ",e])[0];if(c=e.lineIndent===-1?L[0].length+2:e.lineIndent||0){var y=Array(c).join(" "),R=[];L.map(function(Q){(Q=Q.split(/\s*\n/)).length>1?R=R.concat(Q.map(function(ht,Z){return(Z&&ht.length?"\n":"")+ht})):R.push(Q[0])}),L=R,c=wl.apply(this,[y,e])}for(i=0,o=L.length;i<o;i++){var G=0;if(a=L[i],c&&a[0]=="\n"&&(a=a.substr(1),G=1),m+f+(w=(s=qs.apply(this,[a,e])).reduce(function(Q,ht){return Q+ht},0))>t||G){if(w>t){for(l=Al.apply(this,[a,s,t-(m+f),t]),d.push(l.shift()),d=[l.pop()];l.length;)g.push([l.shift()]);w=s.slice(a.length-(d[0]?d[0].length:0)).reduce(function(Q,ht){return Q+ht},0)}else d=[a];g.push(d),m=w+c,f=E}else d.push(a),m+=f+w,f=E}return v=c?function(Q,ht){return(ht?y:"")+Q.join(" ")}:function(Q){return Q.join(" ")},g.map(v)},ba.splitTextToSize=function(r,t,e){var a,s=(e=e||{}).fontSize||this.internal.getFontSize(),i=(function(d){if(d.widths&&d.kerning)return{widths:d.widths,kerning:d.kerning};var g=this.internal.getFont(d.fontName,d.fontStyle);return g.metadata.Unicode?{widths:g.metadata.Unicode.widths||{0:1},kerning:g.metadata.Unicode.kerning||{}}:{font:g.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,e);a=Array.isArray(r)?r:String(r).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/s;i.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/s:0,i.lineIndent=e.lineIndent;var l,c,v=[];for(l=0,c=a.length;l<c;l++)v=v.concat(_l.apply(this,[a[l],o,i]));return v},function(r){r.__fontmetrics__=r.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",e={},a={},s=0;s<t.length;s++)e[t[s]]="0123456789abcdef"[s],a["0123456789abcdef"[s]]=t[s];var i=function(g){return"0x"+parseInt(g,10).toString(16)},o=r.__fontmetrics__.compress=function(g){var m,f,w,L,E=["{"];for(var y in g){if(m=g[y],isNaN(parseInt(y,10))?f="'"+y+"'":(y=parseInt(y,10),f=(f=i(y).slice(2)).slice(0,-1)+a[f.slice(-1)]),typeof m=="number")m<0?(w=i(m).slice(3),L="-"):(w=i(m).slice(2),L=""),w=L+w.slice(0,-1)+a[w.slice(-1)];else{if((0,xt.A)(m)!=="object")throw new Error("Don't know what to do with value type "+(0,xt.A)(m)+".");w=o(m)}E.push(f+w)}return E.push("}"),E.join("")},l=r.__fontmetrics__.uncompress=function(g){if(typeof g!="string")throw new Error("Invalid argument passed to uncompress.");for(var m,f,w,L,E={},y=1,R=E,G=[],Q="",ht="",Z=g.length-1,tt=1;tt<Z;tt+=1)(L=g[tt])=="'"?m?(w=m.join(""),m=void 0):m=[]:m?m.push(L):L=="{"?(G.push([R,w]),R={},w=void 0):L=="}"?((f=G.pop())[0][f[1]]=R,w=void 0,R=f[0]):L=="-"?y=-1:w===void 0?e.hasOwnProperty(L)?(Q+=e[L],w=parseInt(Q,16)*y,y=1,Q=""):Q+=L:e.hasOwnProperty(L)?(ht+=e[L],R[w]=parseInt(ht,16)*y,y=1,w=void 0,ht=""):ht+=L;return E},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},v={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},d={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};r.events.push(["addFont",function(g){var m=g.font,f=d.Unicode[m.postScriptName];f&&(m.metadata.Unicode={},m.metadata.Unicode.widths=f.widths,m.metadata.Unicode.kerning=f.kerning);var w=v.Unicode[m.postScriptName];w&&(m.metadata.Unicode.encoding=w,m.encoding=w.codePages[0])}])}(We.API),function(r){var t=function(e){for(var a=e.length,s=new Uint8Array(a),i=0;i<a;i++)s[i]=e.charCodeAt(i);return s};r.API.events.push(["addFont",function(e){var a=void 0,s=e.font,i=e.instance;if(!s.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");if(typeof(a=i.existsFileInVFS(s.postScriptName)===!1?i.loadFile(s.postScriptName):i.getFileFromVFS(s.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");(function(o,l){l=/^\x00\x01\x00\x00/.test(l)?t(l):t(Ka(l)),o.metadata=r.API.TTFFont.open(l),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(s,a)}}])}(We),function(r){function t(){return(Ve.canvg?Promise.resolve(Ve.canvg):Promise.resolve().then(Xr.t.bind(Xr,16700,23))).catch(function(e){return Promise.reject(new Error("Could not load canvg: "+e))}).then(function(e){return e.default?e.default:e})}We.API.addSvgAsImage=function(e,a,s,i,o,l,c,v){if(isNaN(a)||isNaN(s))throw Lr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw Lr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var d=document.createElement("canvas");d.width=i,d.height=o;var g=d.getContext("2d");g.fillStyle="#fff",g.fillRect(0,0,d.width,d.height);var m={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return t().then(function(w){return w.fromString(g,e,m)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(w){return w.render(m)}).then(function(){f.addImage(d.toDataURL("image/jpeg",1),a,s,i,o,c,v)})}}(),We.API.putTotalPages=function(r){var t,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(r,"g"),e=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(r,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var a=1;a<=this.internal.getNumberOfPages();a++)for(var s=0;s<this.internal.pages[a].length;s++)this.internal.pages[a][s]=this.internal.pages[a][s].replace(t,e);return this},We.API.viewerPreferences=function(r,t){var e;r=r||{},t=t||!1;var a,s,i,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(o),c=[],v=0,d=0,g=0;function m(w,L){var E,y=!1;for(E=0;E<w.length;E+=1)w[E]===L&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,r==="reset"||t===!0){var f=l.length;for(g=0;g<f;g+=1)e[l[g]].value=e[l[g]].defaultValue,e[l[g]].explicitSet=!1}if((0,xt.A)(r)==="object"){for(s in r)if(i=r[s],m(l,s)&&i!==void 0){if(e[s].type==="boolean"&&typeof i=="boolean")e[s].value=i;else if(e[s].type==="name"&&m(e[s].valueSet,i))e[s].value=i;else if(e[s].type==="integer"&&Number.isInteger(i))e[s].value=i;else if(e[s].type==="array"){for(v=0;v<i.length;v+=1)if(a=!0,i[v].length===1&&typeof i[v][0]=="number")c.push(String(i[v]-1));else if(i[v].length>1){for(d=0;d<i[v].length;d+=1)typeof i[v][d]!="number"&&(a=!1);a===!0&&c.push([i[v][0]-1,i[v][1]-1].join(" "))}e[s].value="["+c.join(" ")+"]"}else e[s].value=e[s].defaultValue;e[s].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var w,L=[];for(w in e)e[w].explicitSet===!0&&(e[w].type==="name"?L.push("/"+w+" /"+e[w].value):L.push("/"+w+" "+e[w].value));L.length!==0&&this.internal.write("/ViewerPreferences\n<<\n"+L.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},function(r){var t=function(){var a='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',s=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),i=unescape(encodeURIComponent(a)),o=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),l=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),c=unescape(encodeURIComponent("</x:xmpmeta>")),v=i.length+o.length+l.length+s.length+c.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+v+" >>"),this.internal.write("stream"),this.internal.write(s+i+o+l+c),this.internal.write("endstream"),this.internal.write("endobj")},e=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};r.addMetadata=function(a,s){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:a,namespaceuri:s||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",e),this.internal.events.subscribe("postPutResources",t)),this}}(We.API),function(r){var t=r.API,e=t.pdfEscape16=function(i,o){for(var l,c=o.metadata.Unicode.widths,v=["","0","00","000","0000"],d=[""],g=0,m=i.length;g<m;++g){if(l=o.metadata.characterToGlyph(i.charCodeAt(g)),o.metadata.glyIdsUsed.push(l),o.metadata.toUnicode[l]=i.charCodeAt(g),c.indexOf(l)==-1&&(c.push(l),c.push([parseInt(o.metadata.widthOfGlyph(l),10)])),l=="0")return d.join("");l=l.toString(16),d.push(v[4-l.length],l)}return d.join("")},a=function(i){var o,l,c,v,d,g,m;for(d="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",c=[],g=0,m=(l=Object.keys(i).sort(function(f,w){return f-w})).length;g<m;g++)o=l[g],c.length>=100&&(d+="\n"+c.length+" beginbfchar\n"+c.join("\n")+"\nendbfchar",c=[]),i[o]!==void 0&&i[o]!==null&&typeof i[o].toString=="function"&&(v=("0000"+i[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),c.push("<"+o+"><"+v+">"));return c.length&&(d+="\n"+c.length+" beginbfchar\n"+c.join("\n")+"\nendbfchar\n"),d+="endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(i){(function(o){var l=o.font,c=o.out,v=o.newObject,d=o.putStream;if(l.metadata instanceof r.API.TTFFont&&l.encoding==="Identity-H"){for(var g=l.metadata.Unicode.widths,m=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),f="",w=0;w<m.length;w++)f+=String.fromCharCode(m[w]);var L=v();d({data:f,addLength1:!0,objectId:L}),c("endobj");var E=v();d({data:a(l.metadata.toUnicode),addLength1:!0,objectId:E}),c("endobj");var y=v();c("<<"),c("/Type /FontDescriptor"),c("/FontName /"+ha(l.fontName)),c("/FontFile2 "+L+" 0 R"),c("/FontBBox "+r.API.PDFObject.convert(l.metadata.bbox)),c("/Flags "+l.metadata.flags),c("/StemV "+l.metadata.stemV),c("/ItalicAngle "+l.metadata.italicAngle),c("/Ascent "+l.metadata.ascender),c("/Descent "+l.metadata.decender),c("/CapHeight "+l.metadata.capHeight),c(">>"),c("endobj");var R=v();c("<<"),c("/Type /Font"),c("/BaseFont /"+ha(l.fontName)),c("/FontDescriptor "+y+" 0 R"),c("/W "+r.API.PDFObject.convert(g)),c("/CIDToGIDMap /Identity"),c("/DW 1000"),c("/Subtype /CIDFontType2"),c("/CIDSystemInfo"),c("<<"),c("/Supplement 0"),c("/Registry (Adobe)"),c("/Ordering ("+l.encoding+")"),c(">>"),c(">>"),c("endobj"),l.objectNumber=v(),c("<<"),c("/Type /Font"),c("/Subtype /Type0"),c("/ToUnicode "+E+" 0 R"),c("/BaseFont /"+ha(l.fontName)),c("/Encoding /"+l.encoding),c("/DescendantFonts ["+R+" 0 R]"),c(">>"),c("endobj"),l.isAlreadyPutted=!0}})(i)}]),t.events.push(["putFont",function(i){(function(o){var l=o.font,c=o.out,v=o.newObject,d=o.putStream;if(l.metadata instanceof r.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var g=l.metadata.rawData,m="",f=0;f<g.length;f++)m+=String.fromCharCode(g[f]);var w=v();d({data:m,addLength1:!0,objectId:w}),c("endobj");var L=v();d({data:a(l.metadata.toUnicode),addLength1:!0,objectId:L}),c("endobj");var E=v();c("<<"),c("/Descent "+l.metadata.decender),c("/CapHeight "+l.metadata.capHeight),c("/StemV "+l.metadata.stemV),c("/Type /FontDescriptor"),c("/FontFile2 "+w+" 0 R"),c("/Flags 96"),c("/FontBBox "+r.API.PDFObject.convert(l.metadata.bbox)),c("/FontName /"+ha(l.fontName)),c("/ItalicAngle "+l.metadata.italicAngle),c("/Ascent "+l.metadata.ascender),c(">>"),c("endobj"),l.objectNumber=v();for(var y=0;y<l.metadata.hmtx.widths.length;y++)l.metadata.hmtx.widths[y]=parseInt(l.metadata.hmtx.widths[y]*(1e3/l.metadata.head.unitsPerEm));c("<</Subtype/TrueType/Type/Font/ToUnicode "+L+" 0 R/BaseFont/"+ha(l.fontName)+"/FontDescriptor "+E+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+r.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),c("endobj"),l.isAlreadyPutted=!0}})(i)}]);var s=function(i){var o,l=i.text||"",c=i.x,v=i.y,d=i.options||{},g=i.mutex||{},m=g.pdfEscape,f=g.activeFontKey,w=g.fonts,L=f,E="",y=0,R="",G=w[L].encoding;if(w[L].encoding!=="Identity-H")return{text:l,x:c,y:v,options:d,mutex:g};for(R=l,L=f,Array.isArray(l)&&(R=l[0]),y=0;y<R.length;y+=1)w[L].metadata.hasOwnProperty("cmap")&&(o=w[L].metadata.cmap.unicode.codeMap[R[y].charCodeAt(0)]),o||R[y].charCodeAt(0)<256&&w[L].metadata.hasOwnProperty("Unicode")?E+=R[y]:E+="";var Q="";return parseInt(L.slice(1))<14||G==="WinAnsiEncoding"?Q=m(E,L).split("").map(function(ht){return ht.charCodeAt(0).toString(16)}).join(""):G==="Identity-H"&&(Q=e(E,w[L])),g.isHex=!0,{text:Q,x:c,y:v,options:d,mutex:g}};t.events.push(["postProcessText",function(i){var o=i.text||"",l=[],c={text:o,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(o)){var v=0;for(v=0;v<o.length;v+=1)Array.isArray(o[v])&&o[v].length===3?l.push([s(Object.assign({},c,{text:o[v][0]})).text,o[v][1],o[v][2]]):l.push(s(Object.assign({},c,{text:o[v]})).text);i.text=l}else i.text=s(Object.assign({},c,{text:o})).text}])}(We),function(r){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};r.existsFileInVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0},r.addFileToVFS=function(e,a){return t.call(this),this.internal.vFS[e]=a,this},r.getFileFromVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}}(We.API),function(r){r.__bidiEngine__=r.prototype.__bidiEngine__=function(a){var s,i,o,l,c,v,d,g=t,m=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],f=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],w={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},L={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},E=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],y=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),R=!1,G=0;this.__bidiEngine__={};var Q=function(x){var _=x.charCodeAt(),T=_>>8,C=L[T];return C!==void 0?g[256*C+(255&_)]:T===252||T===253?"AL":y.test(T)?"L":T===8?"R":"N"},ht=function(x){for(var _,T=0;T<x.length;T++){if((_=Q(x.charAt(T)))==="L")return!1;if(_==="R")return!0}return!1},Z=function(x,_,T,C){var $,F,I,at,nt=_[C];switch(nt){case"L":case"R":R=!1;break;case"N":case"AN":break;case"EN":R&&(nt="AN");break;case"AL":R=!0,nt="R";break;case"WS":nt="N";break;case"CS":C<1||C+1>=_.length||($=T[C-1])!=="EN"&&$!=="AN"||(F=_[C+1])!=="EN"&&F!=="AN"?nt="N":R&&(F="AN"),nt=F===$?F:"N";break;case"ES":nt=($=C>0?T[C-1]:"B")==="EN"&&C+1<_.length&&_[C+1]==="EN"?"EN":"N";break;case"ET":if(C>0&&T[C-1]==="EN"){nt="EN";break}if(R){nt="N";break}for(I=C+1,at=_.length;I<at&&_[I]==="ET";)I++;nt=I<at&&_[I]==="EN"?"EN":"N";break;case"NSM":if(o&&!l){for(at=_.length,I=C+1;I<at&&_[I]==="NSM";)I++;if(I<at){var pt=x[C],Zt=pt>=1425&&pt<=2303||pt===64286;if($=_[I],Zt&&($==="R"||$==="AL")){nt="R";break}}}nt=C<1||($=_[C-1])==="B"?"N":T[C-1];break;case"B":R=!1,s=!0,nt=G;break;case"S":i=!0,nt="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":R=!1;break;case"BN":nt="N"}return nt},tt=function(x,_,T){var C=x.split("");return T&&A(C,T,{hiLevel:G}),C.reverse(),_&&_.reverse(),C.join("")},A=function(x,_,T){var C,$,F,I,at,nt=-1,pt=x.length,Zt=0,N=[],H=G?f:m,U=[];for(R=!1,s=!1,i=!1,$=0;$<pt;$++)U[$]=Q(x[$]);for(F=0;F<pt;F++){if(at=Zt,N[F]=Z(x,U,N,F),C=240&(Zt=H[at][w[N[F]]]),Zt&=15,_[F]=I=H[Zt][5],C>0)if(C===16){for($=nt;$<F;$++)_[$]=1;nt=-1}else nt=-1;if(H[Zt][6])nt===-1&&(nt=F);else if(nt>-1){for($=nt;$<F;$++)_[$]=I;nt=-1}U[F]==="B"&&(_[F]=0),T.hiLevel|=I}i&&function(W,gt,Ft){for(var Et=0;Et<Ft;Et++)if(W[Et]==="S"){gt[Et]=G;for(var Ot=Et-1;Ot>=0&&W[Ot]==="WS";Ot--)gt[Ot]=G}}(U,_,pt)},B=function(x,_,T,C,$){if(!($.hiLevel<x)){if(x===1&&G===1&&!s)return _.reverse(),void(T&&T.reverse());for(var F,I,at,nt,pt=_.length,Zt=0;Zt<pt;){if(C[Zt]>=x){for(at=Zt+1;at<pt&&C[at]>=x;)at++;for(nt=Zt,I=at-1;nt<I;nt++,I--)F=_[nt],_[nt]=_[I],_[I]=F,T&&(F=T[nt],T[nt]=T[I],T[I]=F);Zt=at}Zt++}}},Y=function(x,_,T){var C=x.split(""),$={hiLevel:G};return T||(T=[]),A(C,T,$),function(F,I,at){if(at.hiLevel!==0&&d)for(var nt,pt=0;pt<F.length;pt++)I[pt]===1&&(nt=E.indexOf(F[pt]))>=0&&(F[pt]=E[nt+1])}(C,T,$),B(2,C,_,T,$),B(1,C,_,T,$),C.join("")};return this.__bidiEngine__.doBidiReorder=function(x,_,T){if(function($,F){if(F)for(var I=0;I<$.length;I++)F[I]=I;l===void 0&&(l=ht($)),v===void 0&&(v=ht($))}(x,_),o||!c||v)if(o&&c&&l^v)G=l?1:0,x=tt(x,_,T);else if(!o&&c&&v)G=l?1:0,x=Y(x,_,T),x=tt(x,_);else if(!o||l||c||v){if(o&&!c&&l^v)x=tt(x,_),l?(G=0,x=Y(x,_,T)):(G=1,x=Y(x,_,T),x=tt(x,_));else if(o&&l&&!c&&v)G=1,x=Y(x,_,T),x=tt(x,_);else if(!o&&!c&&l^v){var C=d;l?(G=1,x=Y(x,_,T),G=0,d=!1,x=Y(x,_,T),d=C):(G=0,x=Y(x,_,T),x=tt(x,_),G=1,d=!1,x=Y(x,_,T),d=C,x=tt(x,_))}}else G=0,x=Y(x,_,T);else G=l?1:0,x=Y(x,_,T);return x},this.__bidiEngine__.setOptions=function(x){x&&(o=x.isInputVisual,c=x.isOutputVisual,l=x.isInputRtl,v=x.isOutputRtl,d=x.isSymmetricSwapping)},this.__bidiEngine__.setOptions(a),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],e=new r.__bidiEngine__({isInputVisual:!0});r.API.events.push(["postProcessText",function(a){var s=a.text,i=(a.x,a.y,a.options||{}),o=(a.mutex,i.lang,[]);if(i.isInputVisual=typeof i.isInputVisual!="boolean"||i.isInputVisual,e.setOptions(i),Object.prototype.toString.call(s)==="[object Array]"){var l=0;for(o=[],l=0;l<s.length;l+=1)Object.prototype.toString.call(s[l])==="[object Array]"?o.push([e.doBidiReorder(s[l][0]),s[l][1],s[l][2]]):o.push([e.doBidiReorder(s[l])]);a.text=o}else a.text=e.doBidiReorder(s);e.setOptions({isInputVisual:!0})}])}(We),We.API.TTFFont=function(){function r(t){var e;if(this.rawData=t,e=this.contents=new Pi(t),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new ah(this),this.registerTTF()}return r.open=function(t){return new r(t)},r.prototype.parse=function(){return this.directory=new Gc(this.contents),this.head=new Zc(this),this.name=new Jc(this),this.cmap=new Sl(this),this.toUnicode={},this.hhea=new Yc(this),this.maxp=new $c(this),this.hmtx=new th(this),this.post=new Xc(this),this.os2=new Qc(this),this.loca=new ih(this),this.glyf=new eh(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},r.prototype.registerTTF=function(){var t,e,a,s,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var o,l,c,v;for(v=[],o=0,l=(c=this.bbox).length;o<l;o++)t=c[o],v.push(Math.round(t*this.scaleFactor));return v}).call(this),this.stemV=0,this.post.exists?(a=255&(s=this.post.italic_angle),32768&(e=s>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+a)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},r.prototype.characterToGlyph=function(t){var e;return((e=this.cmap.unicode)!=null?e.codeMap[t]:void 0)||0},r.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},r.prototype.widthOfString=function(t,e,a){var s,i,o,l;for(o=0,i=0,l=(t=""+t).length;0<=l?i<l:i>l;i=0<=l?++i:--i)s=t.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(s))+a*(1e3/e)||0;return o*(e/1e3)},r.prototype.lineHeight=function(t,e){var a;return e==null&&(e=!1),a=e?this.lineGap:0,(this.ascender+a-this.decender)/1e3*t},r}();var Un,Pi=function(){function r(t){this.data=t!=null?t:[],this.pos=0,this.length=this.data.length}return r.prototype.readByte=function(){return this.data[this.pos++]},r.prototype.writeByte=function(t){return this.data[this.pos++]=t},r.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},r.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},r.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},r.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},r.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},r.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},r.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},r.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},r.prototype.readString=function(t){var e,a;for(a=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)a[e]=String.fromCharCode(this.readByte());return a.join("")},r.prototype.writeString=function(t){var e,a,s;for(s=[],e=0,a=t.length;0<=a?e<a:e>a;e=0<=a?++e:--e)s.push(this.writeByte(t.charCodeAt(e)));return s},r.prototype.readShort=function(){return this.readInt16()},r.prototype.writeShort=function(t){return this.writeInt16(t)},r.prototype.readLongLong=function(){var t,e,a,s,i,o,l,c;return t=this.readByte(),e=this.readByte(),a=this.readByte(),s=this.readByte(),i=this.readByte(),o=this.readByte(),l=this.readByte(),c=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^a)+4294967296*(255^s)+16777216*(255^i)+65536*(255^o)+256*(255^l)+(255^c)+1):72057594037927940*t+281474976710656*e+1099511627776*a+4294967296*s+16777216*i+65536*o+256*l+c},r.prototype.writeLongLong=function(t){var e,a;return e=Math.floor(t/4294967296),a=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(a>>24&255),this.writeByte(a>>16&255),this.writeByte(a>>8&255),this.writeByte(255&a)},r.prototype.readInt=function(){return this.readInt32()},r.prototype.writeInt=function(t){return this.writeInt32(t)},r.prototype.read=function(t){var e,a;for(e=[],a=0;0<=t?a<t:a>t;a=0<=t?++a:--a)e.push(this.readByte());return e},r.prototype.write=function(t){var e,a,s,i;for(i=[],a=0,s=t.length;a<s;a++)e=t[a],i.push(this.writeByte(e));return i},r}(),Gc=function(){var r;function t(e){var a,s,i;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},s=0,i=this.tableCount;0<=i?s<i:s>i;s=0<=i?++s:--s)a={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[a.tag]=a}return t.prototype.encode=function(e){var a,s,i,o,l,c,v,d,g,m,f,w,L;for(L in f=Object.keys(e).length,c=Math.log(2),g=16*Math.floor(Math.log(f)/c),o=Math.floor(g/c),d=16*f-g,(s=new Pi).writeInt(this.scalarType),s.writeShort(f),s.writeShort(g),s.writeShort(o),s.writeShort(d),i=16*f,v=s.pos+i,l=null,w=[],e)for(m=e[L],s.writeString(L),s.writeInt(r(m)),s.writeInt(v),s.writeInt(m.length),w=w.concat(m),L==="head"&&(l=v),v+=m.length;v%4;)w.push(0),v++;return s.write(w),a=2981146554-r(s.data),s.pos=l+8,s.writeUInt32(a),s.data},r=function(e){var a,s,i,o;for(e=kl.call(e);e.length%4;)e.push(0);for(i=new Pi(e),s=0,a=0,o=e.length;a<o;a=a+=4)s+=i.readUInt32();return 4294967295&s},t}(),Vc={}.hasOwnProperty,ii=function(r,t){for(var e in t)Vc.call(t,e)&&(r[e]=t[e]);function a(){this.constructor=r}return a.prototype=t.prototype,r.prototype=new a,r.__super__=t.prototype,r};Un=function(){function r(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return r.prototype.parse=function(){},r.prototype.encode=function(){},r.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},r}();var Zc=function(r){function t(){return t.__super__.constructor.apply(this,arguments)}return ii(t,Un),t.prototype.tag="head",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},t.prototype.encode=function(e){var a;return(a=new Pi).writeInt(this.version),a.writeInt(this.revision),a.writeInt(this.checkSumAdjustment),a.writeInt(this.magicNumber),a.writeShort(this.flags),a.writeShort(this.unitsPerEm),a.writeLongLong(this.created),a.writeLongLong(this.modified),a.writeShort(this.xMin),a.writeShort(this.yMin),a.writeShort(this.xMax),a.writeShort(this.yMax),a.writeShort(this.macStyle),a.writeShort(this.lowestRecPPEM),a.writeShort(this.fontDirectionHint),a.writeShort(e),a.writeShort(this.glyphDataFormat),a.data},t}(),Nl=function(){function r(t,e){var a,s,i,o,l,c,v,d,g,m,f,w,L,E,y,R,G;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),g=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(c=0;c<256;++c)this.codeMap[c]=t.readByte();break;case 4:for(f=t.readUInt16(),m=f/2,t.pos+=6,i=function(){var Q,ht;for(ht=[],c=Q=0;0<=m?Q<m:Q>m;c=0<=m?++Q:--Q)ht.push(t.readUInt16());return ht}(),t.pos+=2,L=function(){var Q,ht;for(ht=[],c=Q=0;0<=m?Q<m:Q>m;c=0<=m?++Q:--Q)ht.push(t.readUInt16());return ht}(),v=function(){var Q,ht;for(ht=[],c=Q=0;0<=m?Q<m:Q>m;c=0<=m?++Q:--Q)ht.push(t.readUInt16());return ht}(),d=function(){var Q,ht;for(ht=[],c=Q=0;0<=m?Q<m:Q>m;c=0<=m?++Q:--Q)ht.push(t.readUInt16());return ht}(),s=(this.length-t.pos+this.offset)/2,l=function(){var Q,ht;for(ht=[],c=Q=0;0<=s?Q<s:Q>s;c=0<=s?++Q:--Q)ht.push(t.readUInt16());return ht}(),c=y=0,G=i.length;y<G;c=++y)for(E=i[c],a=R=w=L[c];w<=E?R<=E:R>=E;a=w<=E?++R:--R)d[c]===0?o=a+v[c]:(o=l[d[c]/2+(a-w)-(m-c)]||0)!==0&&(o+=v[c]),this.codeMap[a]=65535&o}t.pos=g}return r.encode=function(t,e){var a,s,i,o,l,c,v,d,g,m,f,w,L,E,y,R,G,Q,ht,Z,tt,A,B,Y,x,_,T,C,$,F,I,at,nt,pt,Zt,N,H,U,W,gt,Ft,Et,Ot,ee,re,pe;switch(C=new Pi,o=Object.keys(t).sort(function(xe,Be){return xe-Be}),e){case"macroman":for(L=0,E=function(){var xe=[];for(w=0;w<256;++w)xe.push(0);return xe}(),R={0:0},i={},$=0,nt=o.length;$<nt;$++)R[Ot=t[s=o[$]]]==null&&(R[Ot]=++L),i[s]={old:t[s],new:R[t[s]]},E[s]=R[t[s]];return C.writeUInt16(1),C.writeUInt16(0),C.writeUInt32(12),C.writeUInt16(0),C.writeUInt16(262),C.writeUInt16(0),C.write(E),{charMap:i,subtable:C.data,maxGlyphID:L+1};case"unicode":for(_=[],g=[],G=0,R={},a={},y=v=null,F=0,pt=o.length;F<pt;F++)R[ht=t[s=o[F]]]==null&&(R[ht]=++G),a[s]={old:ht,new:R[ht]},l=R[ht]-s,y!=null&&l===v||(y&&g.push(y),_.push(s),v=l),y=s;for(y&&g.push(y),g.push(65535),_.push(65535),Y=2*(B=_.length),A=2*Math.pow(Math.log(B)/Math.LN2,2),m=Math.log(A/2)/Math.LN2,tt=2*B-A,c=[],Z=[],f=[],w=I=0,Zt=_.length;I<Zt;w=++I){if(x=_[w],d=g[w],x===65535){c.push(0),Z.push(0);break}if(x-(T=a[x].new)>=32768)for(c.push(0),Z.push(2*(f.length+B-w)),s=at=x;x<=d?at<=d:at>=d;s=x<=d?++at:--at)f.push(a[s].new);else c.push(T-x),Z.push(0)}for(C.writeUInt16(3),C.writeUInt16(1),C.writeUInt32(12),C.writeUInt16(4),C.writeUInt16(16+8*B+2*f.length),C.writeUInt16(0),C.writeUInt16(Y),C.writeUInt16(A),C.writeUInt16(m),C.writeUInt16(tt),Ft=0,N=g.length;Ft<N;Ft++)s=g[Ft],C.writeUInt16(s);for(C.writeUInt16(0),Et=0,H=_.length;Et<H;Et++)s=_[Et],C.writeUInt16(s);for(ee=0,U=c.length;ee<U;ee++)l=c[ee],C.writeUInt16(l);for(re=0,W=Z.length;re<W;re++)Q=Z[re],C.writeUInt16(Q);for(pe=0,gt=f.length;pe<gt;pe++)L=f[pe],C.writeUInt16(L);return{charMap:a,subtable:C.data,maxGlyphID:G+1}}},r}(),Sl=function(r){function t(){return t.__super__.constructor.apply(this,arguments)}return ii(t,Un),t.prototype.tag="cmap",t.prototype.parse=function(e){var a,s,i;for(e.pos=this.offset,this.version=e.readUInt16(),i=e.readUInt16(),this.tables=[],this.unicode=null,s=0;0<=i?s<i:s>i;s=0<=i?++s:--s)a=new Nl(e,this.offset),this.tables.push(a),a.isUnicode&&this.unicode==null&&(this.unicode=a);return!0},t.encode=function(e,a){var s,i;return a==null&&(a="macroman"),s=Nl.encode(e,a),(i=new Pi).writeUInt16(0),i.writeUInt16(1),s.table=i.data.concat(s.subtable),s},t}(),Yc=function(r){function t(){return t.__super__.constructor.apply(this,arguments)}return ii(t,Un),t.prototype.tag="hhea",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},t}(),Qc=function(r){function t(){return t.__super__.constructor.apply(this,arguments)}return ii(t,Un),t.prototype.tag="OS/2",t.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var a,s;for(s=[],a=0;a<10;++a)s.push(e.readByte());return s}(),this.charRange=function(){var a,s;for(s=[],a=0;a<4;++a)s.push(e.readInt());return s}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var a,s;for(s=[],a=0;a<2;a=++a)s.push(e.readInt());return s}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},t}(),Xc=function(r){function t(){return t.__super__.constructor.apply(this,arguments)}return ii(t,Un),t.prototype.tag="post",t.prototype.parse=function(e){var a,s,i;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:break;case 131072:var o;for(s=e.readUInt16(),this.glyphNameIndex=[],o=0;0<=s?o<s:o>s;o=0<=s?++o:--o)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],i=[];e.pos<this.offset+this.length;)a=e.readByte(),i.push(this.names.push(e.readString(a)));return i;case 151552:return s=e.readUInt16(),this.offsets=e.read(s);case 196608:break;case 262144:return this.map=(function(){var l,c,v;for(v=[],o=l=0,c=this.file.maxp.numGlyphs;0<=c?l<c:l>c;o=0<=c?++l:--l)v.push(e.readUInt32());return v}).call(this)}},t}(),Kc=function(r,t){this.raw=r,this.length=r.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},Jc=function(r){function t(){return t.__super__.constructor.apply(this,arguments)}return ii(t,Un),t.prototype.tag="name",t.prototype.parse=function(e){var a,s,i,o,l,c,v,d,g,m,f;for(e.pos=this.offset,e.readShort(),a=e.readShort(),c=e.readShort(),s=[],o=0;0<=a?o<a:o>a;o=0<=a?++o:--o)s.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+c+e.readShort()});for(v={},o=g=0,m=s.length;g<m;o=++g)i=s[o],e.pos=i.offset,d=e.readString(i.length),l=new Kc(d,i),v[f=i.nameID]==null&&(v[f]=[]),v[i.nameID].push(l);this.strings=v,this.copyright=v[0],this.fontFamily=v[1],this.fontSubfamily=v[2],this.uniqueSubfamily=v[3],this.fontName=v[4],this.version=v[5];try{this.postscriptName=v[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(w){this.postscriptName=v[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=v[7],this.manufacturer=v[8],this.designer=v[9],this.description=v[10],this.vendorUrl=v[11],this.designerUrl=v[12],this.license=v[13],this.licenseUrl=v[14],this.preferredFamily=v[15],this.preferredSubfamily=v[17],this.compatibleFull=v[18],this.sampleText=v[19]},t}(),$c=function(r){function t(){return t.__super__.constructor.apply(this,arguments)}return ii(t,Un),t.prototype.tag="maxp",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},t}(),th=function(r){function t(){return t.__super__.constructor.apply(this,arguments)}return ii(t,Un),t.prototype.tag="hmtx",t.prototype.parse=function(e){var a,s,i,o,l,c,v;for(e.pos=this.offset,this.metrics=[],a=0,c=this.file.hhea.numberOfMetrics;0<=c?a<c:a>c;a=0<=c?++a:--a)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var d,g;for(g=[],a=d=0;0<=i?d<i:d>i;a=0<=i?++d:--d)g.push(e.readInt16());return g}(),this.widths=(function(){var d,g,m,f;for(f=[],d=0,g=(m=this.metrics).length;d<g;d++)o=m[d],f.push(o.advance);return f}).call(this),s=this.widths[this.widths.length-1],v=[],a=l=0;0<=i?l<i:l>i;a=0<=i?++l:--l)v.push(this.widths.push(s));return v},t.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},t}(),kl=[].slice,eh=function(r){function t(){return t.__super__.constructor.apply(this,arguments)}return ii(t,Un),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(e){var a,s,i,o,l,c,v,d,g,m;return e in this.cache?this.cache[e]:(o=this.file.loca,a=this.file.contents,s=o.indexOf(e),(i=o.lengthOf(e))===0?this.cache[e]=null:(a.pos=this.offset+s,l=(c=new Pi(a.read(i))).readShort(),d=c.readShort(),m=c.readShort(),v=c.readShort(),g=c.readShort(),this.cache[e]=l===-1?new nh(c,d,m,v,g):new rh(c,l,d,m,v,g),this.cache[e]))},t.prototype.encode=function(e,a,s){var i,o,l,c,v;for(l=[],o=[],c=0,v=a.length;c<v;c++)i=e[a[c]],o.push(l.length),i&&(l=l.concat(i.encode(s)));return o.push(l.length),{table:l,offsets:o}},t}(),rh=function(){function r(t,e,a,s,i,o){this.raw=t,this.numberOfContours=e,this.xMin=a,this.yMin=s,this.xMax=i,this.yMax=o,this.compound=!1}return r.prototype.encode=function(){return this.raw.data},r}(),nh=function(){function r(t,e,a,s,i){var o,l;for(this.raw=t,this.xMin=e,this.yMin=a,this.xMax=s,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;l=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&l;)o.pos+=1&l?4:2,128&l?o.pos+=8:64&l?o.pos+=4:8&l&&(o.pos+=2)}return r.prototype.encode=function(){var t,e,a;for(e=new Pi(kl.call(this.raw.data)),t=0,a=this.glyphIDs.length;t<a;++t)e.pos=this.glyphOffsets[t];return e.data},r}(),ih=function(r){function t(){return t.__super__.constructor.apply(this,arguments)}return ii(t,Un),t.prototype.tag="loca",t.prototype.parse=function(e){var a,s;return e.pos=this.offset,a=this.file.head.indexToLocFormat,this.offsets=a===0?(function(){var i,o;for(o=[],s=0,i=this.length;s<i;s+=2)o.push(2*e.readUInt16());return o}).call(this):(function(){var i,o;for(o=[],s=0,i=this.length;s<i;s+=4)o.push(e.readUInt32());return o}).call(this)},t.prototype.indexOf=function(e){return this.offsets[e]},t.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},t.prototype.encode=function(e,a){for(var s=new Uint32Array(this.offsets.length),i=0,o=0,l=0;l<s.length;++l)if(s[l]=i,o<a.length&&a[o]==l){++o,s[l]=i;var c=this.offsets[l],v=this.offsets[l+1]-c;v>0&&(i+=v)}for(var d=new Array(4*s.length),g=0;g<s.length;++g)d[4*g+3]=255&s[g],d[4*g+2]=(65280&s[g])>>8,d[4*g+1]=(16711680&s[g])>>16,d[4*g]=(4278190080&s[g])>>24;return d},t}(),ah=function(){function r(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return r.prototype.generateCmap=function(){var t,e,a,s,i;for(e in s=this.font.cmap.tables[0].codeMap,t={},i=this.subset)a=i[e],t[e]=s[a];return t},r.prototype.glyphsFor=function(t){var e,a,s,i,o,l,c;for(s={},o=0,l=t.length;o<l;o++)s[i=t[o]]=this.font.glyf.glyphFor(i);for(i in e=[],s)(a=s[i])!=null&&a.compound&&e.push.apply(e,a.glyphIDs);if(e.length>0)for(i in c=this.glyphsFor(e))a=c[i],s[i]=a;return s},r.prototype.encode=function(t,e){var a,s,i,o,l,c,v,d,g,m,f,w,L,E,y;for(s in a=Sl.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),f={0:0},y=a.charMap)f[(c=y[s]).old]=c.new;for(w in m=a.maxGlyphID,o)w in f||(f[w]=m++);return d=function(R){var G,Q;for(G in Q={},R)Q[R[G]]=G;return Q}(f),g=Object.keys(d).sort(function(R,G){return R-G}),L=function(){var R,G,Q;for(Q=[],R=0,G=g.length;R<G;R++)l=g[R],Q.push(d[l]);return Q}(),i=this.font.glyf.encode(o,L,f),v=this.font.loca.encode(i.offsets,L),E={cmap:this.font.cmap.raw(),glyf:i.table,loca:v,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(E["OS/2"]=this.font.os2.raw()),this.font.directory.encode(E)},r}();We.API.PDFObject=function(){var r;function t(){}return r=function(e,a){return(Array(a+1).join("0")+e).slice(-a)},t.convert=function(e){var a,s,i,o;if(Array.isArray(e))return"["+function(){var l,c,v;for(v=[],l=0,c=e.length;l<c;l++)a=e[l],v.push(t.convert(a));return v}().join(" ")+"]";if(typeof e=="string")return"/"+e;if(e!=null&&e.isString)return"("+e+")";if(e instanceof Date)return"(D:"+r(e.getUTCFullYear(),4)+r(e.getUTCMonth(),2)+r(e.getUTCDate(),2)+r(e.getUTCHours(),2)+r(e.getUTCMinutes(),2)+r(e.getUTCSeconds(),2)+"Z)";if({}.toString.call(e)==="[object Object]"){for(s in i=["<<"],e)o=e[s],i.push("/"+s+" "+t.convert(o));return i.push(">>"),i.join("\n")}return""+e},t}();const yf=null;function sh(r,t){return t.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(a){if(a!=="default"&&!(a in r)){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}})}),Object.freeze(r)}function Pl(r,t){return new Promise(function(e,a){let s;return oh(r).then(function(i){try{return s=i,e(new Blob([t.slice(0,2),s,t.slice(2)],{type:"image/jpeg"}))}catch(o){return a(o)}},a)})}const oh=r=>new Promise((t,e)=>{const a=new FileReader;a.addEventListener("load",s=>{let{target:{result:i}}=s;const o=new DataView(i);let l=0;if(o.getUint16(l)!==65496)return e("not a valid JPEG");for(l+=2;;){const c=o.getUint16(l);if(c===65498)break;const v=o.getUint16(l+2);if(c===65505&&o.getUint32(l+4)===1165519206){const d=l+10;let g;switch(o.getUint16(d)){case 18761:g=!0;break;case 19789:g=!1;break;default:return e("TIFF header contains invalid endian")}if(o.getUint16(d+2,g)!==42)return e("TIFF header contains invalid version");const m=o.getUint32(d+4,g),f=d+m+2+12*o.getUint16(d+m,g);for(let w=d+m+2;w<f;w+=12)if(o.getUint16(w,g)==274){if(o.getUint16(w+2,g)!==3)return e("Orientation data type is invalid");if(o.getUint32(w+4,g)!==1)return e("Orientation data count is invalid");o.setUint16(w+8,1,g);break}return t(i.slice(l,l+2+v))}l+=2+v}return t(new Blob)}),a.readAsArrayBuffer(r)});var Hs={},uh={get exports(){return Hs},set exports(r){Hs=r}};(function(r){var t,e,a={};uh.exports=a,a.parse=function(s,i){for(var o=a.bin.readUshort,l=a.bin.readUint,c=0,v={},d=new Uint8Array(s),g=d.length-4;l(d,g)!=101010256;)g--;c=g,c+=4;var m=o(d,c+=4);o(d,c+=2);var f=l(d,c+=2),w=l(d,c+=4);c+=4,c=w;for(var L=0;L<m;L++){l(d,c),c+=4,c+=4,c+=4,l(d,c+=4),f=l(d,c+=4);var E=l(d,c+=4),y=o(d,c+=4),R=o(d,c+2),G=o(d,c+4);c+=6;var Q=l(d,c+=8);c+=4,c+=y+R+G,a._readLocal(d,Q,v,f,E,i)}return v},a._readLocal=function(s,i,o,l,c,v){var d=a.bin.readUshort,g=a.bin.readUint;g(s,i),d(s,i+=4),d(s,i+=2);var m=d(s,i+=2);g(s,i+=2),g(s,i+=4),i+=4;var f=d(s,i+=8),w=d(s,i+=2);i+=2;var L=a.bin.readUTF8(s,i,f);if(i+=f,i+=w,v)o[L]={size:c,csize:l};else{var E=new Uint8Array(s.buffer,i);if(m==0)o[L]=new Uint8Array(E.buffer.slice(i,i+l));else{if(m!=8)throw"unknown compression method: "+m;var y=new Uint8Array(c);a.inflateRaw(E,y),o[L]=y}}},a.inflateRaw=function(s,i){return a.F.inflate(s,i)},a.inflate=function(s,i){return s[0],s[1],a.inflateRaw(new Uint8Array(s.buffer,s.byteOffset+2,s.length-6),i)},a.deflate=function(s,i){i==null&&(i={level:6});var o=0,l=new Uint8Array(50+Math.floor(1.1*s.length));l[o]=120,l[o+1]=156,o+=2,o=a.F.deflateRaw(s,l,o,i.level);var c=a.adler(s,0,s.length);return l[o+0]=c>>>24&255,l[o+1]=c>>>16&255,l[o+2]=c>>>8&255,l[o+3]=c>>>0&255,new Uint8Array(l.buffer,0,o+4)},a.deflateRaw=function(s,i){i==null&&(i={level:6});var o=new Uint8Array(50+Math.floor(1.1*s.length)),l=a.F.deflateRaw(s,o,l,i.level);return new Uint8Array(o.buffer,0,l)},a.encode=function(s,i){i==null&&(i=!1);var o=0,l=a.bin.writeUint,c=a.bin.writeUshort,v={};for(var d in s){var g=!a._noNeed(d)&&!i,m=s[d],f=a.crc.crc(m,0,m.length);v[d]={cpr:g,usize:m.length,crc:f,file:g?a.deflateRaw(m):m}}for(var d in v)o+=v[d].file.length+30+46+2*a.bin.sizeUTF8(d);o+=22;var w=new Uint8Array(o),L=0,E=[];for(var d in v){var y=v[d];E.push(L),L=a._writeHeader(w,L,d,y,0)}var R=0,G=L;for(var d in v)y=v[d],E.push(L),L=a._writeHeader(w,L,d,y,1,E[R++]);var Q=L-G;return l(w,L,101010256),L+=4,c(w,L+=4,R),c(w,L+=2,R),l(w,L+=2,Q),l(w,L+=4,G),L+=4,L+=2,w.buffer},a._noNeed=function(s){var i=s.split(".").pop().toLowerCase();return"png,jpg,jpeg,zip".indexOf(i)!=-1},a._writeHeader=function(s,i,o,l,c,v){var d=a.bin.writeUint,g=a.bin.writeUshort,m=l.file;return d(s,i,c==0?67324752:33639248),i+=4,c==1&&(i+=2),g(s,i,20),g(s,i+=2,0),g(s,i+=2,l.cpr?8:0),d(s,i+=2,0),d(s,i+=4,l.crc),d(s,i+=4,m.length),d(s,i+=4,l.usize),g(s,i+=4,a.bin.sizeUTF8(o)),g(s,i+=2,0),i+=2,c==1&&(i+=2,i+=2,d(s,i+=6,v),i+=4),i+=a.bin.writeUTF8(s,i,o),c==0&&(s.set(m,i),i+=m.length),i},a.crc={table:function(){for(var s=new Uint32Array(256),i=0;i<256;i++){for(var o=i,l=0;l<8;l++)1&o?o=3988292384^o>>>1:o>>>=1;s[i]=o}return s}(),update:function(s,i,o,l){for(var c=0;c<l;c++)s=a.crc.table[255&(s^i[o+c])]^s>>>8;return s},crc:function(s,i,o){return 4294967295^a.crc.update(4294967295,s,i,o)}},a.adler=function(s,i,o){for(var l=1,c=0,v=i,d=i+o;v<d;){for(var g=Math.min(v+5552,d);v<g;)c+=l+=s[v++];l%=65521,c%=65521}return c<<16|l},a.bin={readUshort:function(s,i){return s[i]|s[i+1]<<8},writeUshort:function(s,i,o){s[i]=255&o,s[i+1]=o>>8&255},readUint:function(s,i){return 16777216*s[i+3]+(s[i+2]<<16|s[i+1]<<8|s[i])},writeUint:function(s,i,o){s[i]=255&o,s[i+1]=o>>8&255,s[i+2]=o>>16&255,s[i+3]=o>>24&255},readASCII:function(s,i,o){for(var l="",c=0;c<o;c++)l+=String.fromCharCode(s[i+c]);return l},writeASCII:function(s,i,o){for(var l=0;l<o.length;l++)s[i+l]=o.charCodeAt(l)},pad:function(s){return s.length<2?"0"+s:s},readUTF8:function(s,i,o){for(var l,c="",v=0;v<o;v++)c+="%"+a.bin.pad(s[i+v].toString(16));try{l=decodeURIComponent(c)}catch(d){return a.bin.readASCII(s,i,o)}return l},writeUTF8:function(s,i,o){for(var l=o.length,c=0,v=0;v<l;v++){var d=o.charCodeAt(v);if(!(4294967168&d))s[i+c]=d,c++;else if(!(4294965248&d))s[i+c]=192|d>>6,s[i+c+1]=128|d>>0&63,c+=2;else if(!(4294901760&d))s[i+c]=224|d>>12,s[i+c+1]=128|d>>6&63,s[i+c+2]=128|d>>0&63,c+=3;else{if(4292870144&d)throw"e";s[i+c]=240|d>>18,s[i+c+1]=128|d>>12&63,s[i+c+2]=128|d>>6&63,s[i+c+3]=128|d>>0&63,c+=4}}return c},sizeUTF8:function(s){for(var i=s.length,o=0,l=0;l<i;l++){var c=s.charCodeAt(l);if(!(4294967168&c))o++;else if(!(4294965248&c))o+=2;else if(!(4294901760&c))o+=3;else{if(4292870144&c)throw"e";o+=4}}return o}},a.F={},a.F.deflateRaw=function(s,i,o,l){var c=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][l],v=a.F.U,d=a.F._goodIndex;a.F._hash;var g=a.F._putsE,m=0,f=o<<3,w=0,L=s.length;if(l==0){for(;m<L;)g(i,f,m+(x=Math.min(65535,L-m))==L?1:0),f=a.F._copyExact(s,m,x,i,f+8),m+=x;return f>>>3}var E=v.lits,y=v.strt,R=v.prev,G=0,Q=0,ht=0,Z=0,tt=0,A=0;for(L>2&&(y[A=a.F._hash(s,0)]=0),m=0;m<L;m++){if(tt=A,m+1<L-2){A=a.F._hash(s,m+1);var B=m+1&32767;R[B]=y[A],y[A]=B}if(w<=m){(G>14e3||Q>26697)&&L-m>100&&(w<m&&(E[G]=m-w,G+=2,w=m),f=a.F._writeBlock(m==L-1||w==L?1:0,E,G,Z,s,ht,m-ht,i,f),G=Q=Z=0,ht=m);var Y=0;m<L-2&&(Y=a.F._bestMatch(s,m,R,tt,Math.min(c[2],L-m),c[3]));var x=Y>>>16,_=65535&Y;if(Y!=0){_=65535&Y;var T=d(x=Y>>>16,v.of0);v.lhst[257+T]++;var C=d(_,v.df0);v.dhst[C]++,Z+=v.exb[T]+v.dxb[C],E[G]=x<<23|m-w,E[G+1]=_<<16|T<<8|C,G+=2,w=m+x}else v.lhst[s[m]]++;Q++}}for(ht==m&&s.length!=0||(w<m&&(E[G]=m-w,G+=2,w=m),f=a.F._writeBlock(1,E,G,Z,s,ht,m-ht,i,f),G=0,Q=0,G=Q=Z=0,ht=m);7&f;)f++;return f>>>3},a.F._bestMatch=function(s,i,o,l,c,v){var d=32767&i,g=o[d],m=d-g+32768&32767;if(g==d||l!=a.F._hash(s,i-m))return 0;for(var f=0,w=0,L=Math.min(32767,i);m<=L&&--v!=0&&g!=d;){if(f==0||s[i+f]==s[i+f-m]){var E=a.F._howLong(s,i,m);if(E>f){if(w=m,(f=E)>=c)break;m+2<E&&(E=m+2);for(var y=0,R=0;R<E-2;R++){var G=i-m+R+32768&32767,Q=G-o[G]+32768&32767;Q>y&&(y=Q,g=G)}}}m+=(d=g)-(g=o[d])+32768&32767}return f<<16|w},a.F._howLong=function(s,i,o){if(s[i]!=s[i-o]||s[i+1]!=s[i+1-o]||s[i+2]!=s[i+2-o])return 0;var l=i,c=Math.min(s.length,i+258);for(i+=3;i<c&&s[i]==s[i-o];)i++;return i-l},a.F._hash=function(s,i){return(s[i]<<8|s[i+1])+(s[i+2]<<4)&65535},a.saved=0,a.F._writeBlock=function(s,i,o,l,c,v,d,g,m){var f,w,L,E,y,R,G,Q,ht,Z=a.F.U,tt=a.F._putsF,A=a.F._putsE;Z.lhst[256]++,w=(f=a.F.getTrees())[0],L=f[1],E=f[2],y=f[3],R=f[4],G=f[5],Q=f[6],ht=f[7];var B=32+(m+3&7?8-(m+3&7):0)+(d<<3),Y=l+a.F.contSize(Z.fltree,Z.lhst)+a.F.contSize(Z.fdtree,Z.dhst),x=l+a.F.contSize(Z.ltree,Z.lhst)+a.F.contSize(Z.dtree,Z.dhst);x+=14+3*G+a.F.contSize(Z.itree,Z.ihst)+(2*Z.ihst[16]+3*Z.ihst[17]+7*Z.ihst[18]);for(var _=0;_<286;_++)Z.lhst[_]=0;for(_=0;_<30;_++)Z.dhst[_]=0;for(_=0;_<19;_++)Z.ihst[_]=0;var T=B<Y&&B<x?0:Y<x?1:2;if(tt(g,m,s),tt(g,m+1,T),m+=3,T==0){for(;7&m;)m++;m=a.F._copyExact(c,v,d,g,m)}else{var C,$;if(T==1&&(C=Z.fltree,$=Z.fdtree),T==2){a.F.makeCodes(Z.ltree,w),a.F.revCodes(Z.ltree,w),a.F.makeCodes(Z.dtree,L),a.F.revCodes(Z.dtree,L),a.F.makeCodes(Z.itree,E),a.F.revCodes(Z.itree,E),C=Z.ltree,$=Z.dtree,A(g,m,y-257),A(g,m+=5,R-1),A(g,m+=5,G-4),m+=4;for(var F=0;F<G;F++)A(g,m+3*F,Z.itree[1+(Z.ordr[F]<<1)]);m+=3*G,m=a.F._codeTiny(Q,Z.itree,g,m),m=a.F._codeTiny(ht,Z.itree,g,m)}for(var I=v,at=0;at<o;at+=2){for(var nt=i[at],pt=nt>>>23,Zt=I+(8388607&nt);I<Zt;)m=a.F._writeLit(c[I++],C,g,m);if(pt!=0){var N=i[at+1],H=N>>16,U=N>>8&255,W=255&N;A(g,m=a.F._writeLit(257+U,C,g,m),pt-Z.of0[U]),m+=Z.exb[U],tt(g,m=a.F._writeLit(W,$,g,m),H-Z.df0[W]),m+=Z.dxb[W],I+=pt}}m=a.F._writeLit(256,C,g,m)}return m},a.F._copyExact=function(s,i,o,l,c){var v=c>>>3;return l[v]=o,l[v+1]=o>>>8,l[v+2]=255-l[v],l[v+3]=255-l[v+1],v+=4,l.set(new Uint8Array(s.buffer,i,o),v),c+(o+4<<3)},a.F.getTrees=function(){for(var s=a.F.U,i=a.F._hufTree(s.lhst,s.ltree,15),o=a.F._hufTree(s.dhst,s.dtree,15),l=[],c=a.F._lenCodes(s.ltree,l),v=[],d=a.F._lenCodes(s.dtree,v),g=0;g<l.length;g+=2)s.ihst[l[g]]++;for(g=0;g<v.length;g+=2)s.ihst[v[g]]++;for(var m=a.F._hufTree(s.ihst,s.itree,7),f=19;f>4&&s.itree[1+(s.ordr[f-1]<<1)]==0;)f--;return[i,o,m,c,d,f,l,v]},a.F.getSecond=function(s){for(var i=[],o=0;o<s.length;o+=2)i.push(s[o+1]);return i},a.F.nonZero=function(s){for(var i="",o=0;o<s.length;o+=2)s[o+1]!=0&&(i+=(o>>1)+",");return i},a.F.contSize=function(s,i){for(var o=0,l=0;l<i.length;l++)o+=i[l]*s[1+(l<<1)];return o},a.F._codeTiny=function(s,i,o,l){for(var c=0;c<s.length;c+=2){var v=s[c],d=s[c+1];l=a.F._writeLit(v,i,o,l);var g=v==16?2:v==17?3:7;v>15&&(a.F._putsE(o,l,d,g),l+=g)}return l},a.F._lenCodes=function(s,i){for(var o=s.length;o!=2&&s[o-1]==0;)o-=2;for(var l=0;l<o;l+=2){var c=s[l+1],v=l+3<o?s[l+3]:-1,d=l+5<o?s[l+5]:-1,g=l==0?-1:s[l-1];if(c==0&&v==c&&d==c){for(var m=l+5;m+2<o&&s[m+2]==c;)m+=2;(f=Math.min(m+1-l>>>1,138))<11?i.push(17,f-3):i.push(18,f-11),l+=2*f-2}else if(c==g&&v==c&&d==c){for(m=l+5;m+2<o&&s[m+2]==c;)m+=2;var f=Math.min(m+1-l>>>1,6);i.push(16,f-3),l+=2*f-2}else i.push(c,0)}return o>>>1},a.F._hufTree=function(s,i,o){var l=[],c=s.length,v=i.length,d=0;for(d=0;d<v;d+=2)i[d]=0,i[d+1]=0;for(d=0;d<c;d++)s[d]!=0&&l.push({lit:d,f:s[d]});var g=l.length,m=l.slice(0);if(g==0)return 0;if(g==1){var f=l[0].lit;return m=f==0?1:0,i[1+(f<<1)]=1,i[1+(m<<1)]=1,1}l.sort(function(Q,ht){return Q.f-ht.f});var w=l[0],L=l[1],E=0,y=1,R=2;for(l[0]={lit:-1,f:w.f+L.f,l:w,r:L,d:0};y!=g-1;)w=E!=y&&(R==g||l[E].f<l[R].f)?l[E++]:l[R++],L=E!=y&&(R==g||l[E].f<l[R].f)?l[E++]:l[R++],l[y++]={lit:-1,f:w.f+L.f,l:w,r:L};var G=a.F.setDepth(l[y-1],0);for(G>o&&(a.F.restrictDepth(m,o,G),G=o),d=0;d<g;d++)i[1+(m[d].lit<<1)]=m[d].d;return G},a.F.setDepth=function(s,i){return s.lit!=-1?(s.d=i,i):Math.max(a.F.setDepth(s.l,i+1),a.F.setDepth(s.r,i+1))},a.F.restrictDepth=function(s,i,o){var l=0,c=1<<o-i,v=0;for(s.sort(function(g,m){return m.d==g.d?g.f-m.f:m.d-g.d}),l=0;l<s.length&&s[l].d>i;l++){var d=s[l].d;s[l].d=i,v+=c-(1<<o-d)}for(v>>>=o-i;v>0;)(d=s[l].d)<i?(s[l].d++,v-=1<<i-d-1):l++;for(;l>=0;l--)s[l].d==i&&v<0&&(s[l].d--,v++);v!=0&&console.log("debt left")},a.F._goodIndex=function(s,i){var o=0;return i[16|o]<=s&&(o|=16),i[8|o]<=s&&(o|=8),i[4|o]<=s&&(o|=4),i[2|o]<=s&&(o|=2),i[1|o]<=s&&(o|=1),o},a.F._writeLit=function(s,i,o,l){return a.F._putsF(o,l,i[s<<1]),l+i[1+(s<<1)]},a.F.inflate=function(s,i){var o=Uint8Array;if(s[0]==3&&s[1]==0)return i||new o(0);var l=a.F,c=l._bitsF,v=l._bitsE,d=l._decodeTiny,g=l.makeCodes,m=l.codes2map,f=l._get17,w=l.U,L=i==null;L&&(i=new o(s.length>>>2<<3));for(var E,y,R=0,G=0,Q=0,ht=0,Z=0,tt=0,A=0,B=0,Y=0;R==0;)if(R=c(s,Y,1),G=c(s,Y+1,2),Y+=3,G!=0){if(L&&(i=a.F._check(i,B+(1<<17))),G==1&&(E=w.flmap,y=w.fdmap,tt=511,A=31),G==2){Q=v(s,Y,5)+257,ht=v(s,Y+5,5)+1,Z=v(s,Y+10,4)+4,Y+=14;for(var x=0;x<38;x+=2)w.itree[x]=0,w.itree[x+1]=0;var _=1;for(x=0;x<Z;x++){var T=v(s,Y+3*x,3);w.itree[1+(w.ordr[x]<<1)]=T,T>_&&(_=T)}Y+=3*Z,g(w.itree,_),m(w.itree,_,w.imap),E=w.lmap,y=w.dmap,Y=d(w.imap,(1<<_)-1,Q+ht,s,Y,w.ttree);var C=l._copyOut(w.ttree,0,Q,w.ltree);tt=(1<<C)-1;var $=l._copyOut(w.ttree,Q,ht,w.dtree);A=(1<<$)-1,g(w.ltree,C),m(w.ltree,C,E),g(w.dtree,$),m(w.dtree,$,y)}for(;;){var F=E[f(s,Y)&tt];Y+=15&F;var I=F>>>4;if(!(I>>>8))i[B++]=I;else{if(I==256)break;var at=B+I-254;if(I>264){var nt=w.ldef[I-257];at=B+(nt>>>3)+v(s,Y,7&nt),Y+=7&nt}var pt=y[f(s,Y)&A];Y+=15&pt;var Zt=pt>>>4,N=w.ddef[Zt],H=(N>>>4)+c(s,Y,15&N);for(Y+=15&N,L&&(i=a.F._check(i,B+(1<<17)));B<at;)i[B]=i[B++-H],i[B]=i[B++-H],i[B]=i[B++-H],i[B]=i[B++-H];B=at}}}else{7&Y&&(Y+=8-(7&Y));var U=4+(Y>>>3),W=s[U-4]|s[U-3]<<8;L&&(i=a.F._check(i,B+W)),i.set(new o(s.buffer,s.byteOffset+U,W),B),Y=U+W<<3,B+=W}return i.length==B?i:i.slice(0,B)},a.F._check=function(s,i){var o=s.length;if(i<=o)return s;var l=new Uint8Array(Math.max(o<<1,i));return l.set(s,0),l},a.F._decodeTiny=function(s,i,o,l,c,v){for(var d=a.F._bitsE,g=a.F._get17,m=0;m<o;){var f=s[g(l,c)&i];c+=15&f;var w=f>>>4;if(w<=15)v[m]=w,m++;else{var L=0,E=0;w==16?(E=3+d(l,c,2),c+=2,L=v[m-1]):w==17?(E=3+d(l,c,3),c+=3):w==18&&(E=11+d(l,c,7),c+=7);for(var y=m+E;m<y;)v[m]=L,m++}}return c},a.F._copyOut=function(s,i,o,l){for(var c=0,v=0,d=l.length>>>1;v<o;){var g=s[v+i];l[v<<1]=0,l[1+(v<<1)]=g,g>c&&(c=g),v++}for(;v<d;)l[v<<1]=0,l[1+(v<<1)]=0,v++;return c},a.F.makeCodes=function(s,i){for(var o,l,c,v,d=a.F.U,g=s.length,m=d.bl_count,f=0;f<=i;f++)m[f]=0;for(f=1;f<g;f+=2)m[s[f]]++;var w=d.next_code;for(o=0,m[0]=0,l=1;l<=i;l++)o=o+m[l-1]<<1,w[l]=o;for(c=0;c<g;c+=2)(v=s[c+1])!=0&&(s[c]=w[v],w[v]++)},a.F.codes2map=function(s,i,o){for(var l=s.length,c=a.F.U.rev15,v=0;v<l;v+=2)if(s[v+1]!=0)for(var d=v>>1,g=s[v+1],m=d<<4|g,f=i-g,w=s[v]<<f,L=w+(1<<f);w!=L;)o[c[w]>>>15-i]=m,w++},a.F.revCodes=function(s,i){for(var o=a.F.U.rev15,l=15-i,c=0;c<s.length;c+=2){var v=s[c]<<i-s[c+1];s[c]=o[v]>>>l}},a.F._putsE=function(s,i,o){o<<=7&i;var l=i>>>3;s[l]|=o,s[l+1]|=o>>>8},a.F._putsF=function(s,i,o){o<<=7&i;var l=i>>>3;s[l]|=o,s[l+1]|=o>>>8,s[l+2]|=o>>>16},a.F._bitsE=function(s,i,o){return(s[i>>>3]|s[1+(i>>>3)]<<8)>>>(7&i)&(1<<o)-1},a.F._bitsF=function(s,i,o){return(s[i>>>3]|s[1+(i>>>3)]<<8|s[2+(i>>>3)]<<16)>>>(7&i)&(1<<o)-1},a.F._get17=function(s,i){return(s[i>>>3]|s[1+(i>>>3)]<<8|s[2+(i>>>3)]<<16)>>>(7&i)},a.F._get25=function(s,i){return(s[i>>>3]|s[1+(i>>>3)]<<8|s[2+(i>>>3)]<<16|s[3+(i>>>3)]<<24)>>>(7&i)},a.F.U=(t=Uint16Array,e=Uint32Array,{next_code:new t(16),bl_count:new t(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[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],ldef:new t(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[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],ddef:new e(32),flmap:new t(512),fltree:[],fdmap:new t(32),fdtree:[],lmap:new t(32768),ltree:[],ttree:[],dmap:new t(32768),dtree:[],imap:new t(512),itree:[],rev15:new t(32768),lhst:new e(286),dhst:new e(30),ihst:new e(19),lits:new e(15e3),strt:new t(65536),prev:new t(32768)}),function(){for(var s=a.F.U,i=0;i<32768;i++){var o=i;o=(4278255360&(o=(4042322160&(o=(3435973836&(o=(2863311530&o)>>>1|(1431655765&o)<<1))>>>2|(858993459&o)<<2))>>>4|(252645135&o)<<4))>>>8|(16711935&o)<<8,s.rev15[i]=(o>>>16|o<<16)>>>17}function l(c,v,d){for(;v--!=0;)c.push(0,d)}for(i=0;i<32;i++)s.ldef[i]=s.of0[i]<<3|s.exb[i],s.ddef[i]=s.df0[i]<<4|s.dxb[i];l(s.fltree,144,8),l(s.fltree,112,9),l(s.fltree,24,7),l(s.fltree,8,8),a.F.makeCodes(s.fltree,9),a.F.codes2map(s.fltree,9,s.flmap),a.F.revCodes(s.fltree,9),l(s.fdtree,32,5),a.F.makeCodes(s.fdtree,5),a.F.codes2map(s.fdtree,5,s.fdmap),a.F.revCodes(s.fdtree,5),l(s.itree,19,0),l(s.ltree,286,0),l(s.dtree,30,0),l(s.ttree,320,0)}()})();var lh=sh({__proto__:null,default:Hs},[Hs]);const qn=function(){var r={nextZero(d,g){for(;d[g]!=0;)g++;return g},readUshort:(d,g)=>d[g]<<8|d[g+1],writeUshort(d,g,m){d[g]=m>>8&255,d[g+1]=255&m},readUint:(d,g)=>16777216*d[g]+(d[g+1]<<16|d[g+2]<<8|d[g+3]),writeUint(d,g,m){d[g]=m>>24&255,d[g+1]=m>>16&255,d[g+2]=m>>8&255,d[g+3]=255&m},readASCII(d,g,m){let f="";for(let w=0;w<m;w++)f+=String.fromCharCode(d[g+w]);return f},writeASCII(d,g,m){for(let f=0;f<m.length;f++)d[g+f]=m.charCodeAt(f)},readBytes(d,g,m){const f=[];for(let w=0;w<m;w++)f.push(d[g+w]);return f},pad:d=>d.length<2?"0"+d:d,readUTF8(d,g,m){let f,w="";for(let L=0;L<m;L++)w+="%"+r.pad(d[g+L].toString(16));try{f=decodeURIComponent(w)}catch(L){return r.readASCII(d,g,m)}return f}};function t(d,g,m,f){const w=g*m,L=i(f),E=Math.ceil(g*L/8),y=new Uint8Array(4*w),R=new Uint32Array(y.buffer),{ctype:G}=f,{depth:Q}=f,ht=r.readUshort;if(G==6){const nt=w<<2;if(Q==8)for(var Z=0;Z<nt;Z+=4)y[Z]=d[Z],y[Z+1]=d[Z+1],y[Z+2]=d[Z+2],y[Z+3]=d[Z+3];if(Q==16)for(Z=0;Z<nt;Z++)y[Z]=d[Z<<1]}else if(G==2){const nt=f.tabs.tRNS;if(nt==null){if(Q==8)for(Z=0;Z<w;Z++){var tt=3*Z;R[Z]=255<<24|d[tt+2]<<16|d[tt+1]<<8|d[tt]}if(Q==16)for(Z=0;Z<w;Z++)tt=6*Z,R[Z]=255<<24|d[tt+4]<<16|d[tt+2]<<8|d[tt]}else{var A=nt[0];const pt=nt[1],Zt=nt[2];if(Q==8)for(Z=0;Z<w;Z++){var B=Z<<2;tt=3*Z,R[Z]=255<<24|d[tt+2]<<16|d[tt+1]<<8|d[tt],d[tt]==A&&d[tt+1]==pt&&d[tt+2]==Zt&&(y[B+3]=0)}if(Q==16)for(Z=0;Z<w;Z++)B=Z<<2,tt=6*Z,R[Z]=255<<24|d[tt+4]<<16|d[tt+2]<<8|d[tt],ht(d,tt)==A&&ht(d,tt+2)==pt&&ht(d,tt+4)==Zt&&(y[B+3]=0)}}else if(G==3){const nt=f.tabs.PLTE,pt=f.tabs.tRNS,Zt=pt?pt.length:0;if(Q==1)for(var Y=0;Y<m;Y++){var x=Y*E,_=Y*g;for(Z=0;Z<g;Z++){B=_+Z<<2;var T=3*(C=d[x+(Z>>3)]>>7-((7&Z)<<0)&1);y[B]=nt[T],y[B+1]=nt[T+1],y[B+2]=nt[T+2],y[B+3]=C<Zt?pt[C]:255}}if(Q==2)for(Y=0;Y<m;Y++)for(x=Y*E,_=Y*g,Z=0;Z<g;Z++)B=_+Z<<2,T=3*(C=d[x+(Z>>2)]>>6-((3&Z)<<1)&3),y[B]=nt[T],y[B+1]=nt[T+1],y[B+2]=nt[T+2],y[B+3]=C<Zt?pt[C]:255;if(Q==4)for(Y=0;Y<m;Y++)for(x=Y*E,_=Y*g,Z=0;Z<g;Z++)B=_+Z<<2,T=3*(C=d[x+(Z>>1)]>>4-((1&Z)<<2)&15),y[B]=nt[T],y[B+1]=nt[T+1],y[B+2]=nt[T+2],y[B+3]=C<Zt?pt[C]:255;if(Q==8)for(Z=0;Z<w;Z++){var C;B=Z<<2,T=3*(C=d[Z]),y[B]=nt[T],y[B+1]=nt[T+1],y[B+2]=nt[T+2],y[B+3]=C<Zt?pt[C]:255}}else if(G==4){if(Q==8)for(Z=0;Z<w;Z++){B=Z<<2;var $=d[F=Z<<1];y[B]=$,y[B+1]=$,y[B+2]=$,y[B+3]=d[F+1]}if(Q==16)for(Z=0;Z<w;Z++){var F;B=Z<<2,$=d[F=Z<<2],y[B]=$,y[B+1]=$,y[B+2]=$,y[B+3]=d[F+2]}}else if(G==0)for(A=f.tabs.tRNS?f.tabs.tRNS:-1,Y=0;Y<m;Y++){const nt=Y*E,pt=Y*g;if(Q==1)for(var I=0;I<g;I++){var at=($=255*(d[nt+(I>>>3)]>>>7-(7&I)&1))==255*A?0:255;R[pt+I]=at<<24|$<<16|$<<8|$}else if(Q==2)for(I=0;I<g;I++)at=($=85*(d[nt+(I>>>2)]>>>6-((3&I)<<1)&3))==85*A?0:255,R[pt+I]=at<<24|$<<16|$<<8|$;else if(Q==4)for(I=0;I<g;I++)at=($=17*(d[nt+(I>>>1)]>>>4-((1&I)<<2)&15))==17*A?0:255,R[pt+I]=at<<24|$<<16|$<<8|$;else if(Q==8)for(I=0;I<g;I++)at=($=d[nt+I])==A?0:255,R[pt+I]=at<<24|$<<16|$<<8|$;else if(Q==16)for(I=0;I<g;I++)$=d[nt+(I<<1)],at=ht(d,nt+(I<<1))==A?0:255,R[pt+I]=at<<24|$<<16|$<<8|$}return y}function e(d,g,m,f){const w=i(d),L=Math.ceil(m*w/8),E=new Uint8Array((L+1+d.interlace)*f);return g=d.tabs.CgBI?s(g,E):a(g,E),d.interlace==0?g=o(g,d,0,m,f):d.interlace==1&&(g=function(R,G){const Q=G.width,ht=G.height,Z=i(G),tt=Z>>3,A=Math.ceil(Q*Z/8),B=new Uint8Array(ht*A);let Y=0;const x=[0,0,4,0,2,0,1],_=[0,4,0,2,0,1,0],T=[8,8,8,4,4,2,2],C=[8,8,4,4,2,2,1];let $=0;for(;$<7;){const I=T[$],at=C[$];let nt=0,pt=0,Zt=x[$];for(;Zt<ht;)Zt+=I,pt++;let N=_[$];for(;N<Q;)N+=at,nt++;const H=Math.ceil(nt*Z/8);o(R,G,Y,nt,pt);let U=0,W=x[$];for(;W<ht;){let gt=_[$],Ft=Y+U*H<<3;for(;gt<Q;){var F;if(Z==1&&(F=(F=R[Ft>>3])>>7-(7&Ft)&1,B[W*A+(gt>>3)]|=F<<7-((7>)<<0)),Z==2&&(F=(F=R[Ft>>3])>>6-(7&Ft)&3,B[W*A+(gt>>2)]|=F<<6-((3>)<<1)),Z==4&&(F=(F=R[Ft>>3])>>4-(7&Ft)&15,B[W*A+(gt>>1)]|=F<<4-((1>)<<2)),Z>=8){const Et=W*A+gt*tt;for(let Ot=0;Ot<tt;Ot++)B[Et+Ot]=R[(Ft>>3)+Ot]}Ft+=Z,gt+=at}U++,W+=I}nt*pt!=0&&(Y+=pt*(1+H)),$+=1}return B}(g,d)),g}function a(d,g){return s(new Uint8Array(d.buffer,2,d.length-6),g)}var s=function(){const d={H:{}};return d.H.N=function(g,m){const f=Uint8Array;let w,L,E=0,y=0,R=0,G=0,Q=0,ht=0,Z=0,tt=0,A=0;if(g[0]==3&&g[1]==0)return m||new f(0);const B=d.H,Y=B.b,x=B.e,_=B.R,T=B.n,C=B.A,$=B.Z,F=B.m,I=m==null;for(I&&(m=new f(g.length>>>2<<5));E==0;)if(E=Y(g,A,1),y=Y(g,A+1,2),A+=3,y!=0){if(I&&(m=d.H.W(m,tt+(1<<17))),y==1&&(w=F.J,L=F.h,ht=511,Z=31),y==2){R=x(g,A,5)+257,G=x(g,A+5,5)+1,Q=x(g,A+10,4)+4,A+=14;let nt=1;for(var at=0;at<38;at+=2)F.Q[at]=0,F.Q[at+1]=0;for(at=0;at<Q;at++){const N=x(g,A+3*at,3);F.Q[1+(F.X[at]<<1)]=N,N>nt&&(nt=N)}A+=3*Q,T(F.Q,nt),C(F.Q,nt,F.u),w=F.w,L=F.d,A=_(F.u,(1<<nt)-1,R+G,g,A,F.v);const pt=B.V(F.v,0,R,F.C);ht=(1<<pt)-1;const Zt=B.V(F.v,R,G,F.D);Z=(1<<Zt)-1,T(F.C,pt),C(F.C,pt,w),T(F.D,Zt),C(F.D,Zt,L)}for(;;){const nt=w[$(g,A)&ht];A+=15&nt;const pt=nt>>>4;if(!(pt>>>8))m[tt++]=pt;else{if(pt==256)break;{let Zt=tt+pt-254;if(pt>264){const gt=F.q[pt-257];Zt=tt+(gt>>>3)+x(g,A,7>),A+=7>}const N=L[$(g,A)&Z];A+=15&N;const H=N>>>4,U=F.c[H],W=(U>>>4)+Y(g,A,15&U);for(A+=15&U;tt<Zt;)m[tt]=m[tt++-W],m[tt]=m[tt++-W],m[tt]=m[tt++-W],m[tt]=m[tt++-W];tt=Zt}}}}else{7&A&&(A+=8-(7&A));const nt=4+(A>>>3),pt=g[nt-4]|g[nt-3]<<8;I&&(m=d.H.W(m,tt+pt)),m.set(new f(g.buffer,g.byteOffset+nt,pt),tt),A=nt+pt<<3,tt+=pt}return m.length==tt?m:m.slice(0,tt)},d.H.W=function(g,m){const f=g.length;if(m<=f)return g;const w=new Uint8Array(f<<1);return w.set(g,0),w},d.H.R=function(g,m,f,w,L,E){const y=d.H.e,R=d.H.Z;let G=0;for(;G<f;){const Q=g[R(w,L)&m];L+=15&Q;const ht=Q>>>4;if(ht<=15)E[G]=ht,G++;else{let Z=0,tt=0;ht==16?(tt=3+y(w,L,2),L+=2,Z=E[G-1]):ht==17?(tt=3+y(w,L,3),L+=3):ht==18&&(tt=11+y(w,L,7),L+=7);const A=G+tt;for(;G<A;)E[G]=Z,G++}}return L},d.H.V=function(g,m,f,w){let L=0,E=0;const y=w.length>>>1;for(;E<f;){const R=g[E+m];w[E<<1]=0,w[1+(E<<1)]=R,R>L&&(L=R),E++}for(;E<y;)w[E<<1]=0,w[1+(E<<1)]=0,E++;return L},d.H.n=function(g,m){const f=d.H.m,w=g.length;let L,E,y,R;const G=f.j;for(var Q=0;Q<=m;Q++)G[Q]=0;for(Q=1;Q<w;Q+=2)G[g[Q]]++;const ht=f.K;for(L=0,G[0]=0,E=1;E<=m;E++)L=L+G[E-1]<<1,ht[E]=L;for(y=0;y<w;y+=2)R=g[y+1],R!=0&&(g[y]=ht[R],ht[R]++)},d.H.A=function(g,m,f){const w=g.length,L=d.H.m.r;for(let E=0;E<w;E+=2)if(g[E+1]!=0){const y=E>>1,R=g[E+1],G=y<<4|R,Q=m-R;let ht=g[E]<<Q;const Z=ht+(1<<Q);for(;ht!=Z;)f[L[ht]>>>15-m]=G,ht++}},d.H.l=function(g,m){const f=d.H.m.r,w=15-m;for(let L=0;L<g.length;L+=2){const E=g[L]<<m-g[L+1];g[L]=f[E]>>>w}},d.H.M=function(g,m,f){f<<=7&m;const w=m>>>3;g[w]|=f,g[w+1]|=f>>>8},d.H.I=function(g,m,f){f<<=7&m;const w=m>>>3;g[w]|=f,g[w+1]|=f>>>8,g[w+2]|=f>>>16},d.H.e=function(g,m,f){return(g[m>>>3]|g[1+(m>>>3)]<<8)>>>(7&m)&(1<<f)-1},d.H.b=function(g,m,f){return(g[m>>>3]|g[1+(m>>>3)]<<8|g[2+(m>>>3)]<<16)>>>(7&m)&(1<<f)-1},d.H.Z=function(g,m){return(g[m>>>3]|g[1+(m>>>3)]<<8|g[2+(m>>>3)]<<16)>>>(7&m)},d.H.i=function(g,m){return(g[m>>>3]|g[1+(m>>>3)]<<8|g[2+(m>>>3)]<<16|g[3+(m>>>3)]<<24)>>>(7&m)},d.H.m=function(){const g=Uint16Array,m=Uint32Array;return{K:new g(16),j:new g(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[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],q:new g(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[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],c:new m(32),J:new g(512),_:[],h:new g(32),$:[],w:new g(32768),C:[],v:[],d:new g(32768),D:[],u:new g(512),Q:[],r:new g(32768),s:new m(286),Y:new m(30),a:new m(19),t:new m(15e3),k:new g(65536),g:new g(32768)}}(),function(){const g=d.H.m;for(var m=0;m<32768;m++){let w=m;w=(2863311530&w)>>>1|(1431655765&w)<<1,w=(3435973836&w)>>>2|(858993459&w)<<2,w=(4042322160&w)>>>4|(252645135&w)<<4,w=(4278255360&w)>>>8|(16711935&w)<<8,g.r[m]=(w>>>16|w<<16)>>>17}function f(w,L,E){for(;L--!=0;)w.push(0,E)}for(m=0;m<32;m++)g.q[m]=g.S[m]<<3|g.T[m],g.c[m]=g.p[m]<<4|g.z[m];f(g._,144,8),f(g._,112,9),f(g._,24,7),f(g._,8,8),d.H.n(g._,9),d.H.A(g._,9,g.J),d.H.l(g._,9),f(g.$,32,5),d.H.n(g.$,5),d.H.A(g.$,5,g.h),d.H.l(g.$,5),f(g.Q,19,0),f(g.C,286,0),f(g.D,30,0),f(g.v,320,0)}(),d.H.N}();function i(d){return[1,null,3,1,2,null,4][d.ctype]*d.depth}function o(d,g,m,f,w){let L=i(g);const E=Math.ceil(f*L/8);let y,R;L=Math.ceil(L/8);let G=d[m],Q=0;if(G>1&&(d[m]=[0,0,1][G-2]),G==3)for(Q=L;Q<E;Q++)d[Q+1]=d[Q+1]+(d[Q+1-L]>>>1)&255;for(let ht=0;ht<w;ht++)if(y=m+ht*E,R=y+ht+1,G=d[R-1],Q=0,G==0)for(;Q<E;Q++)d[y+Q]=d[R+Q];else if(G==1){for(;Q<L;Q++)d[y+Q]=d[R+Q];for(;Q<E;Q++)d[y+Q]=d[R+Q]+d[y+Q-L]}else if(G==2)for(;Q<E;Q++)d[y+Q]=d[R+Q]+d[y+Q-E];else if(G==3){for(;Q<L;Q++)d[y+Q]=d[R+Q]+(d[y+Q-E]>>>1);for(;Q<E;Q++)d[y+Q]=d[R+Q]+(d[y+Q-E]+d[y+Q-L]>>>1)}else{for(;Q<L;Q++)d[y+Q]=d[R+Q]+l(0,d[y+Q-E],0);for(;Q<E;Q++)d[y+Q]=d[R+Q]+l(d[y+Q-L],d[y+Q-E],d[y+Q-L-E])}return d}function l(d,g,m){const f=d+g-m,w=f-d,L=f-g,E=f-m;return w*w<=L*L&&w*w<=E*E?d:L*L<=E*E?g:m}function c(d,g,m){m.width=r.readUint(d,g),g+=4,m.height=r.readUint(d,g),g+=4,m.depth=d[g],g++,m.ctype=d[g],g++,m.compress=d[g],g++,m.filter=d[g],g++,m.interlace=d[g],g++}function v(d,g,m,f,w,L,E,y,R){const G=Math.min(g,w),Q=Math.min(m,L);let ht=0,Z=0;for(let $=0;$<Q;$++)for(let F=0;F<G;F++)if(E>=0&&y>=0?(ht=$*g+F<<2,Z=(y+$)*w+E+F<<2):(ht=(-y+$)*g-E+F<<2,Z=$*w+F<<2),R==0)f[Z]=d[ht],f[Z+1]=d[ht+1],f[Z+2]=d[ht+2],f[Z+3]=d[ht+3];else if(R==1){var tt=d[ht+3]*.00392156862745098,A=d[ht]*tt,B=d[ht+1]*tt,Y=d[ht+2]*tt,x=f[Z+3]*(1/255),_=f[Z]*x,T=f[Z+1]*x,C=f[Z+2]*x;const I=1-tt,at=tt+x*I,nt=at==0?0:1/at;f[Z+3]=255*at,f[Z+0]=(A+_*I)*nt,f[Z+1]=(B+T*I)*nt,f[Z+2]=(Y+C*I)*nt}else if(R==2)tt=d[ht+3],A=d[ht],B=d[ht+1],Y=d[ht+2],x=f[Z+3],_=f[Z],T=f[Z+1],C=f[Z+2],tt==x&&A==_&&B==T&&Y==C?(f[Z]=0,f[Z+1]=0,f[Z+2]=0,f[Z+3]=0):(f[Z]=A,f[Z+1]=B,f[Z+2]=Y,f[Z+3]=tt);else if(R==3){if(tt=d[ht+3],A=d[ht],B=d[ht+1],Y=d[ht+2],x=f[Z+3],_=f[Z],T=f[Z+1],C=f[Z+2],tt==x&&A==_&&B==T&&Y==C)continue;if(tt<220&&x>20)return!1}return!0}return{decode:function(g){const m=new Uint8Array(g);let f=8;const w=r,L=w.readUshort,E=w.readUint,y={tabs:{},frames:[]},R=new Uint8Array(m.length);let G,Q=0,ht=0;const Z=[137,80,78,71,13,10,26,10];for(var tt=0;tt<8;tt++)if(m[tt]!=Z[tt])throw"The input is not a PNG file!";for(;f<m.length;){const $=w.readUint(m,f);f+=4;const F=w.readASCII(m,f,4);if(f+=4,F=="IHDR")c(m,f,y);else if(F=="iCCP"){for(var A=f;m[A]!=0;)A++;w.readASCII(m,f,A-f),m[A+1];const I=m.slice(A+2,f+$);let at=null;try{at=a(I)}catch(nt){at=s(I)}y.tabs[F]=at}else if(F=="CgBI")y.tabs[F]=m.slice(f,f+4);else if(F=="IDAT"){for(tt=0;tt<$;tt++)R[Q+tt]=m[f+tt];Q+=$}else if(F=="acTL")y.tabs[F]={num_frames:E(m,f),num_plays:E(m,f+4)},G=new Uint8Array(m.length);else if(F=="fcTL"){ht!=0&&((C=y.frames[y.frames.length-1]).data=e(y,G.slice(0,ht),C.rect.width,C.rect.height),ht=0);const I={x:E(m,f+12),y:E(m,f+16),width:E(m,f+4),height:E(m,f+8)};let at=L(m,f+22);at=L(m,f+20)/(at==0?100:at);const nt={rect:I,delay:Math.round(1e3*at),dispose:m[f+24],blend:m[f+25]};y.frames.push(nt)}else if(F=="fdAT"){for(tt=0;tt<$-4;tt++)G[ht+tt]=m[f+tt+4];ht+=$-4}else if(F=="pHYs")y.tabs[F]=[w.readUint(m,f),w.readUint(m,f+4),m[f+8]];else if(F=="cHRM")for(y.tabs[F]=[],tt=0;tt<8;tt++)y.tabs[F].push(w.readUint(m,f+4*tt));else if(F=="tEXt"||F=="zTXt"){y.tabs[F]==null&&(y.tabs[F]={});var B=w.nextZero(m,f),Y=w.readASCII(m,f,B-f),x=f+$-B-1;if(F=="tEXt")T=w.readASCII(m,B+1,x);else{var _=a(m.slice(B+2,B+2+x));T=w.readUTF8(_,0,_.length)}y.tabs[F][Y]=T}else if(F=="iTXt"){y.tabs[F]==null&&(y.tabs[F]={}),B=0,A=f,B=w.nextZero(m,A),Y=w.readASCII(m,A,B-A);const I=m[A=B+1];var T;m[A+1],A+=2,B=w.nextZero(m,A),w.readASCII(m,A,B-A),A=B+1,B=w.nextZero(m,A),w.readUTF8(m,A,B-A),x=$-((A=B+1)-f),I==0?T=w.readUTF8(m,A,x):(_=a(m.slice(A,A+x)),T=w.readUTF8(_,0,_.length)),y.tabs[F][Y]=T}else if(F=="PLTE")y.tabs[F]=w.readBytes(m,f,$);else if(F=="hIST"){const I=y.tabs.PLTE.length/3;for(y.tabs[F]=[],tt=0;tt<I;tt++)y.tabs[F].push(L(m,f+2*tt))}else if(F=="tRNS")y.ctype==3?y.tabs[F]=w.readBytes(m,f,$):y.ctype==0?y.tabs[F]=L(m,f):y.ctype==2&&(y.tabs[F]=[L(m,f),L(m,f+2),L(m,f+4)]);else if(F=="gAMA")y.tabs[F]=w.readUint(m,f)/1e5;else if(F=="sRGB")y.tabs[F]=m[f];else if(F=="bKGD")y.ctype==0||y.ctype==4?y.tabs[F]=[L(m,f)]:y.ctype==2||y.ctype==6?y.tabs[F]=[L(m,f),L(m,f+2),L(m,f+4)]:y.ctype==3&&(y.tabs[F]=m[f]);else if(F=="IEND")break;f+=$,w.readUint(m,f),f+=4}var C;return ht!=0&&((C=y.frames[y.frames.length-1]).data=e(y,G.slice(0,ht),C.rect.width,C.rect.height)),y.data=e(y,R,y.width,y.height),delete y.compress,delete y.interlace,delete y.filter,y},toRGBA8:function(g){const m=g.width,f=g.height;if(g.tabs.acTL==null)return[t(g.data,m,f,g).buffer];const w=[];g.frames[0].data==null&&(g.frames[0].data=g.data);const L=m*f*4,E=new Uint8Array(L),y=new Uint8Array(L),R=new Uint8Array(L);for(let Q=0;Q<g.frames.length;Q++){const ht=g.frames[Q],Z=ht.rect.x,tt=ht.rect.y,A=ht.rect.width,B=ht.rect.height,Y=t(ht.data,A,B,g);if(Q!=0)for(var G=0;G<L;G++)R[G]=E[G];if(ht.blend==0?v(Y,A,B,E,m,f,Z,tt,0):ht.blend==1&&v(Y,A,B,E,m,f,Z,tt,1),w.push(E.buffer.slice(0)),ht.dispose!=0){if(ht.dispose==1)v(y,A,B,E,m,f,Z,tt,0);else if(ht.dispose==2)for(G=0;G<L;G++)E[G]=R[G]}}return w},_paeth:l,_copyTile:v,_bin:r}}();(function(){const{_copyTile:r}=qn,{_bin:t}=qn,e=qn._paeth;var a={table:function(){const A=new Uint32Array(256);for(let B=0;B<256;B++){let Y=B;for(let x=0;x<8;x++)1&Y?Y=3988292384^Y>>>1:Y>>>=1;A[B]=Y}return A}(),update(A,B,Y,x){for(let _=0;_<x;_++)A=a.table[255&(A^B[Y+_])]^A>>>8;return A},crc:(A,B,Y)=>4294967295^a.update(4294967295,A,B,Y)};function s(A,B,Y,x){B[Y]+=A[0]*x>>4,B[Y+1]+=A[1]*x>>4,B[Y+2]+=A[2]*x>>4,B[Y+3]+=A[3]*x>>4}function i(A){return Math.max(0,Math.min(255,A))}function o(A,B){const Y=A[0]-B[0],x=A[1]-B[1],_=A[2]-B[2],T=A[3]-B[3];return Y*Y+x*x+_*_+T*T}function l(A,B,Y,x,_,T,C){C==null&&(C=1);const $=x.length,F=[];for(var I=0;I<$;I++){const W=x[I];F.push([W>>>0&255,W>>>8&255,W>>>16&255,W>>>24&255])}for(I=0;I<$;I++){let W=4294967295;for(var at=0,nt=0;nt<$;nt++){var pt=o(F[I],F[nt]);nt!=I&&pt<W&&(W=pt,at=nt)}}const Zt=new Uint32Array(_.buffer),N=new Int16Array(B*Y*4),H=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(I=0;I<H.length;I++)H[I]=255*((H[I]+.5)/16-.5);for(let W=0;W<Y;W++)for(let gt=0;gt<B;gt++){var U;I=4*(W*B+gt),C!=2?U=[i(A[I]+N[I]),i(A[I+1]+N[I+1]),i(A[I+2]+N[I+2]),i(A[I+3]+N[I+3])]:(pt=H[4*(3&W)+(3>)],U=[i(A[I]+pt),i(A[I+1]+pt),i(A[I+2]+pt),i(A[I+3]+pt)]),at=0;let Ft=16777215;for(nt=0;nt<$;nt++){const ee=o(U,F[nt]);ee<Ft&&(Ft=ee,at=nt)}const Et=F[at],Ot=[U[0]-Et[0],U[1]-Et[1],U[2]-Et[2],U[3]-Et[3]];C==1&&(gt!=B-1&&s(Ot,N,I+4,7),W!=Y-1&&(gt!=0&&s(Ot,N,I+4*B-4,3),s(Ot,N,I+4*B,5),gt!=B-1&&s(Ot,N,I+4*B+4,1))),T[I>>2]=at,Zt[I>>2]=x[at]}}function c(A,B,Y,x,_){_==null&&(_={});const{crc:T}=a,C=t.writeUint,$=t.writeUshort,F=t.writeASCII;let I=8;const at=A.frames.length>1;let nt,pt=!1,Zt=33+(at?20:0);if(_.sRGB!=null&&(Zt+=13),_.pHYs!=null&&(Zt+=21),_.iCCP!=null&&(nt=pako.deflate(_.iCCP),Zt+=21+nt.length+4),A.ctype==3){for(var N=A.plte.length,H=0;H<N;H++)A.plte[H]>>>24!=255&&(pt=!0);Zt+=8+3*N+4+(pt?8+1*N+4:0)}for(var U=0;U<A.frames.length;U++)at&&(Zt+=38),Zt+=(Et=A.frames[U]).cimg.length+12,U!=0&&(Zt+=4);Zt+=12;const W=new Uint8Array(Zt),gt=[137,80,78,71,13,10,26,10];for(H=0;H<8;H++)W[H]=gt[H];if(C(W,I,13),I+=4,F(W,I,"IHDR"),I+=4,C(W,I,B),I+=4,C(W,I,Y),I+=4,W[I]=A.depth,I++,W[I]=A.ctype,I++,W[I]=0,I++,W[I]=0,I++,W[I]=0,I++,C(W,I,T(W,I-17,17)),I+=4,_.sRGB!=null&&(C(W,I,1),I+=4,F(W,I,"sRGB"),I+=4,W[I]=_.sRGB,I++,C(W,I,T(W,I-5,5)),I+=4),_.iCCP!=null){const Ot=13+nt.length;C(W,I,Ot),I+=4,F(W,I,"iCCP"),I+=4,F(W,I,"ICC profile"),I+=11,I+=2,W.set(nt,I),I+=nt.length,C(W,I,T(W,I-(Ot+4),Ot+4)),I+=4}if(_.pHYs!=null&&(C(W,I,9),I+=4,F(W,I,"pHYs"),I+=4,C(W,I,_.pHYs[0]),I+=4,C(W,I,_.pHYs[1]),I+=4,W[I]=_.pHYs[2],I++,C(W,I,T(W,I-13,13)),I+=4),at&&(C(W,I,8),I+=4,F(W,I,"acTL"),I+=4,C(W,I,A.frames.length),I+=4,C(W,I,_.loop!=null?_.loop:0),I+=4,C(W,I,T(W,I-12,12)),I+=4),A.ctype==3){for(C(W,I,3*(N=A.plte.length)),I+=4,F(W,I,"PLTE"),I+=4,H=0;H<N;H++){const Ot=3*H,ee=A.plte[H],re=255&ee,pe=ee>>>8&255,xe=ee>>>16&255;W[I+Ot+0]=re,W[I+Ot+1]=pe,W[I+Ot+2]=xe}if(I+=3*N,C(W,I,T(W,I-3*N-4,3*N+4)),I+=4,pt){for(C(W,I,N),I+=4,F(W,I,"tRNS"),I+=4,H=0;H<N;H++)W[I+H]=A.plte[H]>>>24&255;I+=N,C(W,I,T(W,I-N-4,N+4)),I+=4}}let Ft=0;for(U=0;U<A.frames.length;U++){var Et=A.frames[U];at&&(C(W,I,26),I+=4,F(W,I,"fcTL"),I+=4,C(W,I,Ft++),I+=4,C(W,I,Et.rect.width),I+=4,C(W,I,Et.rect.height),I+=4,C(W,I,Et.rect.x),I+=4,C(W,I,Et.rect.y),I+=4,$(W,I,x[U]),I+=2,$(W,I,1e3),I+=2,W[I]=Et.dispose,I++,W[I]=Et.blend,I++,C(W,I,T(W,I-30,30)),I+=4);const Ot=Et.cimg;C(W,I,(N=Ot.length)+(U==0?0:4)),I+=4;const ee=I;F(W,I,U==0?"IDAT":"fdAT"),I+=4,U!=0&&(C(W,I,Ft++),I+=4),W.set(Ot,I),I+=N,C(W,I,T(W,ee,I-ee)),I+=4}return C(W,I,0),I+=4,F(W,I,"IEND"),I+=4,C(W,I,T(W,I-4,4)),I+=4,W.buffer}function v(A,B,Y){for(let x=0;x<A.frames.length;x++){const _=A.frames[x];_.rect.width;const T=_.rect.height,C=new Uint8Array(T*_.bpl+T);_.cimg=f(_.img,T,_.bpp,_.bpl,C,B,Y)}}function d(A,B,Y,x,_){const T=_[0],C=_[1],$=_[2],F=_[3],I=_[4],at=_[5];let nt=6,pt=8,Zt=255;for(var N=0;N<A.length;N++){const st=new Uint8Array(A[N]);for(var H=st.length,U=0;U<H;U+=4)Zt&=st[U+3]}const W=Zt!=255,gt=function(Fe,ye,ne,he,de,ge){const Le=[];for(var Pe=0;Pe<Fe.length;Pe++){const ze=new Uint8Array(Fe[Pe]),Ae=new Uint32Array(ze.buffer);var Re;let vr=0,tr=0,Br=ye,lr=ne,wr=he?1:0;if(Pe!=0){const Fn=ge||he||Pe==1||Le[Pe-2].dispose!=0?1:2;let cr=0,si=1e9;for(let Ar=0;Ar<Fn;Ar++){var Ye=new Uint8Array(Fe[Pe-1-Ar]);const Ln=new Uint32Array(Fe[Pe-1-Ar]);let Jr=ye,pr=ne,He=-1,or=-1;for(let Pr=0;Pr<ne;Pr++)for(let $r=0;$r<ye;$r++)Ae[Xe=Pr*ye+$r]!=Ln[Xe]&&($r<Jr&&(Jr=$r),$r>He&&(He=$r),Pr<pr&&(pr=Pr),Pr>or&&(or=Pr));He==-1&&(Jr=pr=He=or=0),de&&((1&Jr)==1&&Jr--,(1&pr)==1&&pr--);const oi=(He-Jr+1)*(or-pr+1);oi<si&&(si=oi,cr=Ar,vr=Jr,tr=pr,Br=He-Jr+1,lr=or-pr+1)}Ye=new Uint8Array(Fe[Pe-1-cr]),cr==1&&(Le[Pe-1].dispose=2),Re=new Uint8Array(Br*lr*4),r(Ye,ye,ne,Re,Br,lr,-vr,-tr,0),wr=r(ze,ye,ne,Re,Br,lr,-vr,-tr,3)?1:0,wr==1?m(ze,ye,ne,Re,{x:vr,y:tr,width:Br,height:lr}):r(ze,ye,ne,Re,Br,lr,-vr,-tr,0)}else Re=ze.slice(0);Le.push({rect:{x:vr,y:tr,width:Br,height:lr},img:Re,blend:wr,dispose:0})}if(he)for(Pe=0;Pe<Le.length;Pe++){if((Te=Le[Pe]).blend==1)continue;const ze=Te.rect,Ae=Le[Pe-1].rect,vr=Math.min(ze.x,Ae.x),tr=Math.min(ze.y,Ae.y),Br={x:vr,y:tr,width:Math.max(ze.x+ze.width,Ae.x+Ae.width)-vr,height:Math.max(ze.y+ze.height,Ae.y+Ae.height)-tr};Le[Pe-1].dispose=1,Pe-1!=0&&g(Fe,ye,ne,Le,Pe-1,Br,de),g(Fe,ye,ne,Le,Pe,Br,de)}let ar=0;if(Fe.length!=1)for(var Xe=0;Xe<Le.length;Xe++){var Te;ar+=(Te=Le[Xe]).rect.width*Te.rect.height}return Le}(A,B,Y,T,C,$),Ft={},Et=[],Ot=[];if(x!=0){const st=[];for(U=0;U<gt.length;U++)st.push(gt[U].img.buffer);const Fe=function(de){let ge=0;for(var Le=0;Le<de.length;Le++)ge+=de[Le].byteLength;const Pe=new Uint8Array(ge);let Re=0;for(Le=0;Le<de.length;Le++){const Ye=new Uint8Array(de[Le]),ar=Ye.length;for(let Xe=0;Xe<ar;Xe+=4){let Te=Ye[Xe],ze=Ye[Xe+1],Ae=Ye[Xe+2];const vr=Ye[Xe+3];vr==0&&(Te=ze=Ae=0),Pe[Re+Xe]=Te,Pe[Re+Xe+1]=ze,Pe[Re+Xe+2]=Ae,Pe[Re+Xe+3]=vr}Re+=ar}return Pe.buffer}(st),ye=L(Fe,x);for(U=0;U<ye.plte.length;U++)Et.push(ye.plte[U].est.rgba);let ne=0;for(U=0;U<gt.length;U++){const he=(re=gt[U]).img.length;var ee=new Uint8Array(ye.inds.buffer,ne>>2,he>>2);Ot.push(ee);const de=new Uint8Array(ye.abuf,ne,he);at&&l(re.img,re.rect.width,re.rect.height,Et,de,ee),re.img.set(de),ne+=he}}else for(N=0;N<gt.length;N++){var re=gt[N];const st=new Uint32Array(re.img.buffer);var pe=re.rect.width;for(H=st.length,ee=new Uint8Array(H),Ot.push(ee),U=0;U<H;U++){const Fe=st[U];if(U!=0&&Fe==st[U-1])ee[U]=ee[U-1];else if(U>pe&&Fe==st[U-pe])ee[U]=ee[U-pe];else{let ye=Ft[Fe];if(ye==null&&(Ft[Fe]=ye=Et.length,Et.push(Fe),Et.length>=300))break;ee[U]=ye}}}const xe=Et.length;for(xe<=256&&I==0&&(pt=xe<=2?1:xe<=4?2:xe<=16?4:8,pt=Math.max(pt,F)),N=0;N<gt.length;N++){(re=gt[N]).rect.x,re.rect.y,pe=re.rect.width;const st=re.rect.height;let Fe=re.img;new Uint32Array(Fe.buffer);let ye=4*pe,ne=4;if(xe<=256&&I==0){ye=Math.ceil(pt*pe/8);var Be=new Uint8Array(ye*st);const he=Ot[N];for(let de=0;de<st;de++){U=de*ye;const ge=de*pe;if(pt==8)for(var Mt=0;Mt<pe;Mt++)Be[U+Mt]=he[ge+Mt];else if(pt==4)for(Mt=0;Mt<pe;Mt++)Be[U+(Mt>>1)]|=he[ge+Mt]<<4-4*(1&Mt);else if(pt==2)for(Mt=0;Mt<pe;Mt++)Be[U+(Mt>>2)]|=he[ge+Mt]<<6-2*(3&Mt);else if(pt==1)for(Mt=0;Mt<pe;Mt++)Be[U+(Mt>>3)]|=he[ge+Mt]<<7-1*(7&Mt)}Fe=Be,nt=3,ne=1}else if(W==0&>.length==1){Be=new Uint8Array(pe*st*3);const he=pe*st;for(U=0;U<he;U++){const de=3*U,ge=4*U;Be[de]=Fe[ge],Be[de+1]=Fe[ge+1],Be[de+2]=Fe[ge+2]}Fe=Be,nt=2,ne=3,ye=3*pe}re.img=Fe,re.bpl=ye,re.bpp=ne}return{ctype:nt,depth:pt,plte:Et,frames:gt}}function g(A,B,Y,x,_,T,C){const $=Uint8Array,F=Uint32Array,I=new $(A[_-1]),at=new F(A[_-1]),nt=_+1<A.length?new $(A[_+1]):null,pt=new $(A[_]),Zt=new F(pt.buffer);let N=B,H=Y,U=-1,W=-1;for(let Ft=0;Ft<T.height;Ft++)for(let Et=0;Et<T.width;Et++){const Ot=T.x+Et,ee=T.y+Ft,re=ee*B+Ot,pe=Zt[re];pe==0||x[_-1].dispose==0&&at[re]==pe&&(nt==null||nt[4*re+3]!=0)||(Ot<N&&(N=Ot),Ot>U&&(U=Ot),ee<H&&(H=ee),ee>W&&(W=ee))}U==-1&&(N=H=U=W=0),C&&((1&N)==1&&N--,(1&H)==1&&H--),T={x:N,y:H,width:U-N+1,height:W-H+1};const gt=x[_];gt.rect=T,gt.blend=1,gt.img=new Uint8Array(T.width*T.height*4),x[_-1].dispose==0?(r(I,B,Y,gt.img,T.width,T.height,-T.x,-T.y,0),m(pt,B,Y,gt.img,T)):r(pt,B,Y,gt.img,T.width,T.height,-T.x,-T.y,0)}function m(A,B,Y,x,_){r(A,B,Y,x,_.width,_.height,-_.x,-_.y,2)}function f(A,B,Y,x,_,T,C){const $=[];let F,I=[0,1,2,3,4];T!=-1?I=[T]:(B*x>5e5||Y==1)&&(I=[0]),C&&(F={level:0});const at=lh;for(var nt=0;nt<I.length;nt++){for(let N=0;N<B;N++)w(_,A,N,x,Y,I[nt]);$.push(at.deflate(_,F))}let pt,Zt=1e9;for(nt=0;nt<$.length;nt++)$[nt].length<Zt&&(pt=nt,Zt=$[nt].length);return $[pt]}function w(A,B,Y,x,_,T){const C=Y*x;let $=C+Y;if(A[$]=T,$++,T==0)if(x<500)for(var F=0;F<x;F++)A[$+F]=B[C+F];else A.set(new Uint8Array(B.buffer,C,x),$);else if(T==1){for(F=0;F<_;F++)A[$+F]=B[C+F];for(F=_;F<x;F++)A[$+F]=B[C+F]-B[C+F-_]+256&255}else if(Y==0){for(F=0;F<_;F++)A[$+F]=B[C+F];if(T==2)for(F=_;F<x;F++)A[$+F]=B[C+F];if(T==3)for(F=_;F<x;F++)A[$+F]=B[C+F]-(B[C+F-_]>>1)+256&255;if(T==4)for(F=_;F<x;F++)A[$+F]=B[C+F]-e(B[C+F-_],0,0)+256&255}else{if(T==2)for(F=0;F<x;F++)A[$+F]=B[C+F]+256-B[C+F-x]&255;if(T==3){for(F=0;F<_;F++)A[$+F]=B[C+F]+256-(B[C+F-x]>>1)&255;for(F=_;F<x;F++)A[$+F]=B[C+F]+256-(B[C+F-x]+B[C+F-_]>>1)&255}if(T==4){for(F=0;F<_;F++)A[$+F]=B[C+F]+256-e(0,B[C+F-x],0)&255;for(F=_;F<x;F++)A[$+F]=B[C+F]+256-e(B[C+F-_],B[C+F-x],B[C+F-_-x])&255}}}function L(A,B){const Y=new Uint8Array(A),x=Y.slice(0),_=new Uint32Array(x.buffer),T=E(x,B),C=T[0],$=T[1],F=Y.length,I=new Uint8Array(F>>2);let at;if(Y.length<2e7)for(var nt=0;nt<F;nt+=4)at=y(C,pt=Y[nt]*(1/255),Zt=Y[nt+1]*(1/255),N=Y[nt+2]*(1/255),H=Y[nt+3]*(1/255)),I[nt>>2]=at.ind,_[nt>>2]=at.est.rgba;else for(nt=0;nt<F;nt+=4){var pt=Y[nt]*.00392156862745098,Zt=Y[nt+1]*(1/255),N=Y[nt+2]*(1/255),H=Y[nt+3]*(1/255);for(at=C;at.left;)at=R(at.est,pt,Zt,N,H)<=0?at.left:at.right;I[nt>>2]=at.ind,_[nt>>2]=at.est.rgba}return{abuf:x.buffer,inds:I,plte:$}}function E(A,B,Y){Y==null&&(Y=1e-4);const x=new Uint32Array(A.buffer),_={i0:0,i1:A.length,bst:null,est:null,tdst:0,left:null,right:null};_.bst=ht(A,_.i0,_.i1),_.est=Z(_.bst);const T=[_];for(;T.length<B;){let $=0,F=0;for(var C=0;C<T.length;C++)T[C].est.L>$&&($=T[C].est.L,F=C);if($<Y)break;const I=T[F],at=G(A,x,I.i0,I.i1,I.est.e,I.est.eMq255);if(I.i0>=at||I.i1<=at){I.est.L=0;continue}const nt={i0:I.i0,i1:at,bst:null,est:null,tdst:0,left:null,right:null};nt.bst=ht(A,nt.i0,nt.i1),nt.est=Z(nt.bst);const pt={i0:at,i1:I.i1,bst:null,est:null,tdst:0,left:null,right:null};for(pt.bst={R:[],m:[],N:I.bst.N-nt.bst.N},C=0;C<16;C++)pt.bst.R[C]=I.bst.R[C]-nt.bst.R[C];for(C=0;C<4;C++)pt.bst.m[C]=I.bst.m[C]-nt.bst.m[C];pt.est=Z(pt.bst),I.left=nt,I.right=pt,T[F]=nt,T.push(pt)}for(T.sort(($,F)=>F.bst.N-$.bst.N),C=0;C<T.length;C++)T[C].ind=C;return[_,T]}function y(A,B,Y,x,_){if(A.left==null)return A.tdst=function(nt,pt,Zt,N,H){const U=pt-nt[0],W=Zt-nt[1],gt=N-nt[2],Ft=H-nt[3];return U*U+W*W+gt*gt+Ft*Ft}(A.est.q,B,Y,x,_),A;const T=R(A.est,B,Y,x,_);let C=A.left,$=A.right;T>0&&(C=A.right,$=A.left);const F=y(C,B,Y,x,_);if(F.tdst<=T*T)return F;const I=y($,B,Y,x,_);return I.tdst<F.tdst?I:F}function R(A,B,Y,x,_){const{e:T}=A;return T[0]*B+T[1]*Y+T[2]*x+T[3]*_-A.eMq}function G(A,B,Y,x,_,T){for(x-=4;Y<x;){for(;Q(A,Y,_)<=T;)Y+=4;for(;Q(A,x,_)>T;)x-=4;if(Y>=x)break;const C=B[Y>>2];B[Y>>2]=B[x>>2],B[x>>2]=C,Y+=4,x-=4}for(;Q(A,Y,_)>T;)Y-=4;return Y+4}function Q(A,B,Y){return A[B]*Y[0]+A[B+1]*Y[1]+A[B+2]*Y[2]+A[B+3]*Y[3]}function ht(A,B,Y){const x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=[0,0,0,0],T=Y-B>>2;for(let C=B;C<Y;C+=4){const $=A[C]*.00392156862745098,F=A[C+1]*(1/255),I=A[C+2]*(1/255),at=A[C+3]*(1/255);_[0]+=$,_[1]+=F,_[2]+=I,_[3]+=at,x[0]+=$*$,x[1]+=$*F,x[2]+=$*I,x[3]+=$*at,x[5]+=F*F,x[6]+=F*I,x[7]+=F*at,x[10]+=I*I,x[11]+=I*at,x[15]+=at*at}return x[4]=x[1],x[8]=x[2],x[9]=x[6],x[12]=x[3],x[13]=x[7],x[14]=x[11],{R:x,m:_,N:T}}function Z(A){const{R:B}=A,{m:Y}=A,{N:x}=A,_=Y[0],T=Y[1],C=Y[2],$=Y[3],F=x==0?0:1/x,I=[B[0]-_*_*F,B[1]-_*T*F,B[2]-_*C*F,B[3]-_*$*F,B[4]-T*_*F,B[5]-T*T*F,B[6]-T*C*F,B[7]-T*$*F,B[8]-C*_*F,B[9]-C*T*F,B[10]-C*C*F,B[11]-C*$*F,B[12]-$*_*F,B[13]-$*T*F,B[14]-$*C*F,B[15]-$*$*F],at=I,nt=tt;let pt=[Math.random(),Math.random(),Math.random(),Math.random()],Zt=0,N=0;if(x!=0)for(let U=0;U<16&&(pt=nt.multVec(at,pt),N=Math.sqrt(nt.dot(pt,pt)),pt=nt.sml(1/N,pt),!(U!=0&&Math.abs(N-Zt)<1e-9));U++)Zt=N;const H=[_*F,T*F,C*F,$*F];return{Cov:I,q:H,e:pt,L:Zt,eMq255:nt.dot(nt.sml(255,H),pt),eMq:nt.dot(pt,H),rgba:(Math.round(255*H[3])<<24|Math.round(255*H[2])<<16|Math.round(255*H[1])<<8|Math.round(255*H[0])<<0)>>>0}}var tt={multVec:(A,B)=>[A[0]*B[0]+A[1]*B[1]+A[2]*B[2]+A[3]*B[3],A[4]*B[0]+A[5]*B[1]+A[6]*B[2]+A[7]*B[3],A[8]*B[0]+A[9]*B[1]+A[10]*B[2]+A[11]*B[3],A[12]*B[0]+A[13]*B[1]+A[14]*B[2]+A[15]*B[3]],dot:(A,B)=>A[0]*B[0]+A[1]*B[1]+A[2]*B[2]+A[3]*B[3],sml:(A,B)=>[A*B[0],A*B[1],A*B[2],A*B[3]]};qn.encode=function(B,Y,x,_,T,C,$){_==null&&(_=0),$==null&&($=!1);const F=d(B,Y,x,_,[!1,!1,!1,0,$,!1]);return v(F,-1),c(F,Y,x,T,C)},qn.encodeLL=function(B,Y,x,_,T,C,$,F){const I={ctype:0+(_==1?0:2)+(T==0?0:4),depth:C,frames:[]},at=(_+T)*C,nt=at*Y;for(let pt=0;pt<B.length;pt++)I.frames.push({rect:{x:0,y:0,width:Y,height:x},img:new Uint8Array(B[pt]),blend:0,dispose:1,bpp:Math.ceil(at/8),bpl:Math.ceil(nt/8)});return v(I,0,!0),c(I,Y,x,$,F)},qn.encode.compress=d,qn.encode.dither=l,qn.quantize=L,qn.quantize.getKDtree=E,qn.quantize.getNearest=y})();const Il={toArrayBuffer(r,t){const e=r.width,a=r.height,s=e<<2,i=r.getContext("2d").getImageData(0,0,e,a),o=new Uint32Array(i.data.buffer),l=(32*e+31)/32<<2,c=l*a,v=122+c,d=new ArrayBuffer(v),g=new DataView(d),m=1<<20;let f,w,L,E,y=m,R=0,G=0,Q=0;function ht(A){g.setUint16(G,A,!0),G+=2}function Z(A){g.setUint32(G,A,!0),G+=4}function tt(A){G+=A}ht(19778),Z(v),tt(4),Z(122),Z(108),Z(e),Z(-a>>>0),ht(1),ht(32),Z(3),Z(c),Z(2835),Z(2835),tt(8),Z(16711680),Z(65280),Z(255),Z(4278190080),Z(1466527264),function A(){for(;R<a&&y>0;){for(E=122+R*l,f=0;f<s;)y--,w=o[Q++],L=w>>>24,g.setUint32(E+f,w<<8|L),f+=4;R++}Q<o.length?(y=m,setTimeout(A,Il._dly)):t(d)}()},toBlob(r,t){this.toArrayBuffer(r,e=>{t(new Blob([e],{type:"image/bmp"}))})},_dly:9};var mn={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},ch={[mn.CHROME]:16384,[mn.FIREFOX]:11180,[mn.DESKTOP_SAFARI]:16384,[mn.IE]:8192,[mn.IOS]:4096,[mn.ETC]:8192};const $o=typeof window<"u",Cl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Ws=$o&&window.cordova&&window.cordova.require&&window.cordova.require("cordova/modulemapper"),hh=($o||Cl)&&(Ws&&Ws.getOriginalSymbol(window,"File")||typeof File<"u"&&File),Fl=($o||Cl)&&(Ws&&Ws.getOriginalSymbol(window,"FileReader")||typeof FileReader<"u"&&FileReader);function tu(r,t,e){return e===void 0&&(e=Date.now()),new Promise(a=>{const s=r.split(","),i=s[0].match(/:(.*?);/)[1],o=globalThis.atob(s[1]);let l=o.length;const c=new Uint8Array(l);for(;l--;)c[l]=o.charCodeAt(l);const v=new Blob([c],{type:i});v.name=t,v.lastModified=e,a(v)})}function El(r){return new Promise((t,e)=>{const a=new Fl;a.onload=()=>t(a.result),a.onerror=s=>e(s),a.readAsDataURL(r)})}function Ol(r){return new Promise((t,e)=>{const a=new Image;a.onload=()=>t(a),a.onerror=s=>e(s),a.src=r})}function Xi(){if(Xi.cachedResult!==void 0)return Xi.cachedResult;let r=mn.ETC;const{userAgent:t}=navigator;return/Chrom(e|ium)/i.test(t)?r=mn.CHROME:/iP(ad|od|hone)/i.test(t)&&/WebKit/i.test(t)?r=mn.IOS:/Safari/i.test(t)?r=mn.DESKTOP_SAFARI:/Firefox/i.test(t)?r=mn.FIREFOX:(/MSIE/i.test(t)||document.documentMode)&&(r=mn.IE),Xi.cachedResult=r,Xi.cachedResult}function Bl(r,t){const e=Xi(),a=ch[e];let s=r,i=t,o=s*i;const l=s>i?i/s:s/i;for(;o>a*a;){const c=(a+s)/2,v=(a+i)/2;c<v?(i=v,s=v*l):(i=c*l,s=c),o=s*i}return{width:s,height:i}}function Gs(r,t){let e,a;try{if(e=new OffscreenCanvas(r,t),a=e.getContext("2d"),a===null)throw new Error("getContext of OffscreenCanvas returns null")}catch(s){e=document.createElement("canvas"),a=e.getContext("2d")}return e.width=r,e.height=t,[e,a]}function jl(r,t){const{width:e,height:a}=Bl(r.width,r.height),[s,i]=Gs(e,a);return t&&/jpe?g/.test(t)&&(i.fillStyle="white",i.fillRect(0,0,s.width,s.height)),i.drawImage(r,0,0,s.width,s.height),s}function Vs(){return Vs.cachedResult!==void 0||(Vs.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&typeof document<"u"&&"ontouchend"in document),Vs.cachedResult}function Zs(r,t){return t===void 0&&(t={}),new Promise(function(e,a){let s,i;var o=function(){try{return i=jl(s,t.fileType||r.type),e([s,i])}catch(c){return a(c)}},l=function(c){try{var v=function(d){try{throw d}catch(g){return a(g)}};try{let d;return El(r).then(function(g){try{return d=g,Ol(d).then(function(m){try{return s=m,function(){try{return o()}catch(f){return a(f)}}()}catch(f){return v(f)}},v)}catch(m){return v(m)}},v)}catch(d){v(d)}}catch(d){return a(d)}};try{if(Vs()||[mn.DESKTOP_SAFARI,mn.MOBILE_SAFARI].includes(Xi()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(r).then(function(c){try{return s=c,o()}catch(v){return l()}},l)}catch(c){l()}})}function Ys(r,t,e,a,s){return s===void 0&&(s=1),new Promise(function(i,o){let l;if(t==="image/png"){let v,d,g;return v=r.getContext("2d"),{data:d}=v.getImageData(0,0,r.width,r.height),g=qn.encode([d.buffer],r.width,r.height,4096*s),l=new Blob([g],{type:t}),l.name=e,l.lastModified=a,c.call(this)}{let v=function(){return c.call(this)};if(t==="image/bmp")return new Promise(d=>Il.toBlob(r,d)).then((function(d){try{return l=d,l.name=e,l.lastModified=a,v.call(this)}catch(g){return o(g)}}).bind(this),o);{let d=function(){return v.call(this)};if(typeof OffscreenCanvas=="function"&&r instanceof OffscreenCanvas)return r.convertToBlob({type:t,quality:s}).then((function(g){try{return l=g,l.name=e,l.lastModified=a,d.call(this)}catch(m){return o(m)}}).bind(this),o);{let g;return g=r.toDataURL(t,s),tu(g,e,a).then((function(m){try{return l=m,d.call(this)}catch(f){return o(f)}}).bind(this),o)}}}function c(){return i(l)}})}function ai(r){r.width=0,r.height=0}function ya(){return new Promise(function(r,t){let e,a,s,i,o;return ya.cachedResult!==void 0?r(ya.cachedResult):(e="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==",tu("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then(function(l){try{return a=l,Zs(a).then(function(c){try{return s=c[1],Ys(s,a.type,a.name,a.lastModified).then(function(v){try{return i=v,ai(s),Zs(i).then(function(d){try{return o=d[0],ya.cachedResult=o.width===1&&o.height===2,r(ya.cachedResult)}catch(g){return t(g)}},t)}catch(d){return t(d)}},t)}catch(v){return t(v)}},t)}catch(c){return t(c)}},t))})}function Dl(r){return new Promise((t,e)=>{const a=new Fl;a.onload=s=>{const i=new DataView(s.target.result);if(i.getUint16(0,!1)!=65496)return t(-2);const o=i.byteLength;let l=2;for(;l<o;){if(i.getUint16(l+2,!1)<=8)return t(-1);const c=i.getUint16(l,!1);if(l+=2,c==65505){if(i.getUint32(l+=2,!1)!=1165519206)return t(-1);const v=i.getUint16(l+=6,!1)==18761;l+=i.getUint32(l+4,v);const d=i.getUint16(l,v);l+=2;for(let g=0;g<d;g++)if(i.getUint16(l+12*g,v)==274)return t(i.getUint16(l+12*g+8,v))}else{if((65280&c)!=65280)break;l+=i.getUint16(l,!1)}}return t(-1)},a.onerror=s=>e(s),a.readAsArrayBuffer(r)})}function Rl(r,t){const{width:e}=r,{height:a}=r,{maxWidthOrHeight:s}=t;let i,o=r;return isFinite(s)&&(e>s||a>s)&&([o,i]=Gs(e,a),e>a?(o.width=s,o.height=a/e*s):(o.width=e/a*s,o.height=s),i.drawImage(r,0,0,o.width,o.height),ai(r)),o}function Tl(r,t){const{width:e}=r,{height:a}=r,[s,i]=Gs(e,a);switch(t>4&&t<9?(s.width=a,s.height=e):(s.width=e,s.height=a),t){case 2:i.transform(-1,0,0,1,e,0);break;case 3:i.transform(-1,0,0,-1,e,a);break;case 4:i.transform(1,0,0,-1,0,a);break;case 5:i.transform(0,1,1,0,0,0);break;case 6:i.transform(0,1,-1,0,a,0);break;case 7:i.transform(0,-1,-1,0,a,e);break;case 8:i.transform(0,-1,1,0,0,e)}return i.drawImage(r,0,0,e,a),ai(r),s}function Ml(r,t,e){return e===void 0&&(e=0),new Promise(function(a,s){let i,o,l,c,v,d,g,m,f,w,L,E,y,R,G,Q,ht,Z,tt,A;function B(x){if(x===void 0&&(x=5),t.signal&&t.signal.aborted)throw t.signal.reason;i+=x,t.onProgress(Math.min(i,100))}function Y(x){if(t.signal&&t.signal.aborted)throw t.signal.reason;i=Math.min(Math.max(x,i),100),t.onProgress(i)}return i=e,o=t.maxIteration||10,l=1024*t.maxSizeMB*1024,B(),Zs(r,t).then((function(x){try{return[,c]=x,B(),v=Rl(c,t),B(),new Promise(function(_,T){var C;if(!(C=t.exifOrientation))return Dl(r).then((function(F){try{return C=F,$.call(this)}catch(I){return T(I)}}).bind(this),T);function $(){return _(C)}return $.call(this)}).then((function(_){try{return d=_,B(),ya().then((function(T){try{return g=T?v:Tl(v,d),B(),m=t.initialQuality||1,f=t.fileType||r.type,Ys(g,f,r.name,r.lastModified,m).then((function(C){try{{let F=function(){if(o--&&(G>l||G>y)){let at,nt;return at=A?.95*tt.width:tt.width,nt=A?.95*tt.height:tt.height,[ht,Z]=Gs(at,nt),Z.drawImage(tt,0,0,at,nt),m*=f==="image/png"?.85:.95,Ys(ht,f,r.name,r.lastModified,m).then(function(pt){try{return Q=pt,ai(tt),tt=ht,G=Q.size,Y(Math.min(99,Math.floor((R-G)/(R-l)*100))),F}catch(Zt){return s(Zt)}},s)}return[1]},I=function(){return ai(tt),ai(ht),ai(v),ai(g),ai(c),Y(100),a(Q)};if(w=C,B(),L=w.size>l,E=w.size>r.size,!L&&!E)return Y(100),a(w);var $;return y=r.size,R=w.size,G=R,tt=g,A=!t.alwaysKeepResolution&&L,($=(function(at){for(;at;){if(at.then)return void at.then($,s);try{if(at.pop){if(at.length)return at.pop()?I.call(this):at;at=F}else at=at.call(this)}catch(nt){return s(nt)}}}).bind(this))(F)}}catch(F){return s(F)}}).bind(this),s)}catch(C){return s(C)}}).bind(this),s)}catch(T){return s(T)}}).bind(this),s)}catch(_){return s(_)}}).bind(this),s)})}const fh="\nlet scriptImported = false\nself.addEventListener('message', async (e) => {\n const { file, id, imageCompressionLibUrl, options } = e.data\n options.onProgress = (progress) => self.postMessage({ progress, id })\n try {\n if (!scriptImported) {\n // console.log('[worker] importScripts', imageCompressionLibUrl)\n self.importScripts(imageCompressionLibUrl)\n scriptImported = true\n }\n // console.log('[worker] self', self)\n const compressedFile = await imageCompression(file, options)\n self.postMessage({ file: compressedFile, id })\n } catch (e) {\n // console.error('[worker] error', e)\n self.postMessage({ error: e.message + '\\n' + e.stack, id })\n }\n})\n";let eu;function dh(r,t){return new Promise((e,a)=>{eu||(eu=function(o){const l=[];return typeof o=="function"?l.push("("+o+")()"):l.push(o),URL.createObjectURL(new Blob(l))}(fh));const s=new Worker(eu);s.addEventListener("message",function(o){if(t.signal&&t.signal.aborted)s.terminate();else if(o.data.progress===void 0){if(o.data.error)return a(new Error(o.data.error)),void s.terminate();e(o.data.file),s.terminate()}else t.onProgress(o.data.progress)}),s.addEventListener("error",a),t.signal&&t.signal.addEventListener("abort",()=>{a(t.signal.reason),s.terminate()}),s.postMessage({file:r,imageCompressionLibUrl:t.libURL,options:{...t,onProgress:void 0,signal:void 0}})})}function ln(r,t){return new Promise(function(e,a){let s,i,o,l,c,v;if(s={...t},o=0,{onProgress:l}=s,s.maxSizeMB=s.maxSizeMB||Number.POSITIVE_INFINITY,c=typeof s.useWebWorker!="boolean"||s.useWebWorker,delete s.useWebWorker,s.onProgress=f=>{o=f,typeof l=="function"&&l(o)},!(r instanceof Blob||r instanceof hh))return a(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(r.type))return a(new Error("The file given is not an image"));if(v=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,!c||typeof Worker!="function"||v)return Ml(r,s).then((function(f){try{return i=f,m.call(this)}catch(w){return a(w)}}).bind(this),a);var d=(function(){try{return m.call(this)}catch(f){return a(f)}}).bind(this),g=function(f){try{return Ml(r,s).then(function(w){try{return i=w,d()}catch(L){return a(L)}},a)}catch(w){return a(w)}};try{return s.libURL=s.libURL||"https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js",dh(r,s).then(function(f){try{return i=f,d()}catch(w){return g()}},g)}catch(f){g()}function m(){try{i.name=r.name,i.lastModified=r.lastModified}catch(f){}try{s.preserveExif&&r.type==="image/jpeg"&&(!s.fileType||s.fileType&&s.fileType===r.type)&&(i=Pl(r,i))}catch(f){}return e(i)}})}ln.getDataUrlFromFile=El,ln.getFilefromDataUrl=tu,ln.loadImage=Ol,ln.drawImageInCanvas=jl,ln.drawFileInCanvas=Zs,ln.canvasToFile=Ys,ln.getExifOrientation=Dl,ln.handleMaxWidthOrHeight=Rl,ln.followExifOrientation=Tl,ln.cleanupCanvasMemory=ai,ln.isAutoOrientationInBrowser=ya,ln.approximateBelowMaximumCanvasSizeOfBrowser=Bl,ln.copyExifWithoutOrientation=Pl,ln.getBrowserName=Xi,ln.version="2.0.2"},35846:(Tn,aa,Xr)=>{/*!
- JSZip v3.10.1 - A JavaScript class for generating and reading zip files
- <http://stuartk.com/jszip>
- (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
- Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
- JSZip uses the library pako released under the MIT license :
- https://github.com/nodeca/pako/blob/main/LICENSE
- */(function(Lt){Tn.exports=Lt()})(function(){return function Lt(le,xt,ct){function ot(yt,St){if(!xt[yt]){if(!le[yt]){var mt=void 0;if(!St&&mt)return require(yt,!0);if(q)return q(yt,!0);var _t=new Error("Cannot find module '"+yt+"'");throw _t.code="MODULE_NOT_FOUND",_t}var X=xt[yt]={exports:{}};le[yt][0].call(X.exports,function(ft){var V=le[yt][1][ft];return ot(V||ft)},X,X.exports,Lt,le,xt,ct)}return xt[yt].exports}for(var q=void 0,rt=0;rt<ct.length;rt++)ot(ct[rt]);return ot}({1:[function(Lt,le,xt){"use strict";var ct=Lt("./utils"),ot=Lt("./support"),q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";xt.encode=function(rt){for(var yt,St,mt,_t,X,ft,V,ut=[],J=0,dt=rt.length,kt=dt,jt=ct.getTypeOf(rt)!=="string";J<rt.length;)kt=dt-J,mt=jt?(yt=rt[J++],St=J<dt?rt[J++]:0,J<dt?rt[J++]:0):(yt=rt.charCodeAt(J++),St=J<dt?rt.charCodeAt(J++):0,J<dt?rt.charCodeAt(J++):0),_t=yt>>2,X=(3&yt)<<4|St>>4,ft=1<kt?(15&St)<<2|mt>>6:64,V=2<kt?63&mt:64,ut.push(q.charAt(_t)+q.charAt(X)+q.charAt(ft)+q.charAt(V));return ut.join("")},xt.decode=function(rt){var yt,St,mt,_t,X,ft,V=0,ut=0,J="data:";if(rt.substr(0,J.length)===J)throw new Error("Invalid base64 input, it looks like a data url.");var dt,kt=3*(rt=rt.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(rt.charAt(rt.length-1)===q.charAt(64)&&kt--,rt.charAt(rt.length-2)===q.charAt(64)&&kt--,kt%1!=0)throw new Error("Invalid base64 input, bad content length.");for(dt=ot.uint8array?new Uint8Array(0|kt):new Array(0|kt);V<rt.length;)yt=q.indexOf(rt.charAt(V++))<<2|(_t=q.indexOf(rt.charAt(V++)))>>4,St=(15&_t)<<4|(X=q.indexOf(rt.charAt(V++)))>>2,mt=(3&X)<<6|(ft=q.indexOf(rt.charAt(V++))),dt[ut++]=yt,X!==64&&(dt[ut++]=St),ft!==64&&(dt[ut++]=mt);return dt}},{"./support":30,"./utils":32}],2:[function(Lt,le,xt){"use strict";var ct=Lt("./external"),ot=Lt("./stream/DataWorker"),q=Lt("./stream/Crc32Probe"),rt=Lt("./stream/DataLengthProbe");function yt(St,mt,_t,X,ft){this.compressedSize=St,this.uncompressedSize=mt,this.crc32=_t,this.compression=X,this.compressedContent=ft}yt.prototype={getContentWorker:function(){var St=new ot(ct.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new rt("data_length")),mt=this;return St.on("end",function(){if(this.streamInfo.data_length!==mt.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),St},getCompressedWorker:function(){return new ot(ct.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},yt.createWorkerFrom=function(St,mt,_t){return St.pipe(new q).pipe(new rt("uncompressedSize")).pipe(mt.compressWorker(_t)).pipe(new rt("compressedSize")).withStreamInfo("compression",mt)},le.exports=yt},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(Lt,le,xt){"use strict";var ct=Lt("./stream/GenericWorker");xt.STORE={magic:"\0\0",compressWorker:function(){return new ct("STORE compression")},uncompressWorker:function(){return new ct("STORE decompression")}},xt.DEFLATE=Lt("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(Lt,le,xt){"use strict";var ct=Lt("./utils"),ot=function(){for(var q,rt=[],yt=0;yt<256;yt++){q=yt;for(var St=0;St<8;St++)q=1&q?3988292384^q>>>1:q>>>1;rt[yt]=q}return rt}();le.exports=function(q,rt){return q!==void 0&&q.length?ct.getTypeOf(q)!=="string"?function(yt,St,mt,_t){var X=ot,ft=_t+mt;yt^=-1;for(var V=_t;V<ft;V++)yt=yt>>>8^X[255&(yt^St[V])];return-1^yt}(0|rt,q,q.length,0):function(yt,St,mt,_t){var X=ot,ft=_t+mt;yt^=-1;for(var V=_t;V<ft;V++)yt=yt>>>8^X[255&(yt^St.charCodeAt(V))];return-1^yt}(0|rt,q,q.length,0):0}},{"./utils":32}],5:[function(Lt,le,xt){"use strict";xt.base64=!1,xt.binary=!1,xt.dir=!1,xt.createFolders=!0,xt.date=null,xt.compression=null,xt.compressionOptions=null,xt.comment=null,xt.unixPermissions=null,xt.dosPermissions=null},{}],6:[function(Lt,le,xt){"use strict";var ct=null;ct=typeof Promise<"u"?Promise:Lt("lie"),le.exports={Promise:ct}},{lie:37}],7:[function(Lt,le,xt){"use strict";var ct=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",ot=Lt("pako"),q=Lt("./utils"),rt=Lt("./stream/GenericWorker"),yt=ct?"uint8array":"array";function St(mt,_t){rt.call(this,"FlateWorker/"+mt),this._pako=null,this._pakoAction=mt,this._pakoOptions=_t,this.meta={}}xt.magic="\b\0",q.inherits(St,rt),St.prototype.processChunk=function(mt){this.meta=mt.meta,this._pako===null&&this._createPako(),this._pako.push(q.transformTo(yt,mt.data),!1)},St.prototype.flush=function(){rt.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},St.prototype.cleanUp=function(){rt.prototype.cleanUp.call(this),this._pako=null},St.prototype._createPako=function(){this._pako=new ot[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var mt=this;this._pako.onData=function(_t){mt.push({data:_t,meta:mt.meta})}},xt.compressWorker=function(mt){return new St("Deflate",mt)},xt.uncompressWorker=function(){return new St("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(Lt,le,xt){"use strict";function ct(X,ft){var V,ut="";for(V=0;V<ft;V++)ut+=String.fromCharCode(255&X),X>>>=8;return ut}function ot(X,ft,V,ut,J,dt){var kt,jt,Pt=X.file,Jt=X.compression,Wt=dt!==yt.utf8encode,oe=q.transformTo("string",dt(Pt.name)),Gt=q.transformTo("string",yt.utf8encode(Pt.name)),ve=Pt.comment,Ue=q.transformTo("string",dt(ve)),bt=q.transformTo("string",yt.utf8encode(ve)),Qt=Gt.length!==Pt.name.length,D=bt.length!==ve.length,Yt="",Ze="",ue="",Qe=Pt.dir,fe=Pt.date,je={crc32:0,compressedSize:0,uncompressedSize:0};ft&&!V||(je.crc32=X.crc32,je.compressedSize=X.compressedSize,je.uncompressedSize=X.uncompressedSize);var Ut=0;ft&&(Ut|=8),Wt||!Qt&&!D||(Ut|=2048);var zt=0,De=0;Qe&&(zt|=16),J==="UNIX"?(De=798,zt|=function(we,xr){var Hr=we;return we||(Hr=xr?16893:33204),(65535&Hr)<<16}(Pt.unixPermissions,Qe)):(De=20,zt|=function(we){return 63&(we||0)}(Pt.dosPermissions)),kt=fe.getUTCHours(),kt<<=6,kt|=fe.getUTCMinutes(),kt<<=5,kt|=fe.getUTCSeconds()/2,jt=fe.getUTCFullYear()-1980,jt<<=4,jt|=fe.getUTCMonth()+1,jt<<=5,jt|=fe.getUTCDate(),Qt&&(Ze=ct(1,1)+ct(St(oe),4)+Gt,Yt+="up"+ct(Ze.length,2)+Ze),D&&(ue=ct(1,1)+ct(St(Ue),4)+bt,Yt+="uc"+ct(ue.length,2)+ue);var ke="";return ke+="\n\0",ke+=ct(Ut,2),ke+=Jt.magic,ke+=ct(kt,2),ke+=ct(jt,2),ke+=ct(je.crc32,4),ke+=ct(je.compressedSize,4),ke+=ct(je.uncompressedSize,4),ke+=ct(oe.length,2),ke+=ct(Yt.length,2),{fileRecord:mt.LOCAL_FILE_HEADER+ke+oe+Yt,dirRecord:mt.CENTRAL_FILE_HEADER+ct(De,2)+ke+ct(Ue.length,2)+"\0\0\0\0"+ct(zt,4)+ct(ut,4)+oe+Yt+Ue}}var q=Lt("../utils"),rt=Lt("../stream/GenericWorker"),yt=Lt("../utf8"),St=Lt("../crc32"),mt=Lt("../signature");function _t(X,ft,V,ut){rt.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=ft,this.zipPlatform=V,this.encodeFileName=ut,this.streamFiles=X,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}q.inherits(_t,rt),_t.prototype.push=function(X){var ft=X.meta.percent||0,V=this.entriesCount,ut=this._sources.length;this.accumulate?this.contentBuffer.push(X):(this.bytesWritten+=X.data.length,rt.prototype.push.call(this,{data:X.data,meta:{currentFile:this.currentFile,percent:V?(ft+100*(V-ut-1))/V:100}}))},_t.prototype.openedSource=function(X){this.currentSourceOffset=this.bytesWritten,this.currentFile=X.file.name;var ft=this.streamFiles&&!X.file.dir;if(ft){var V=ot(X,ft,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:V.fileRecord,meta:{percent:0}})}else this.accumulate=!0},_t.prototype.closedSource=function(X){this.accumulate=!1;var ft=this.streamFiles&&!X.file.dir,V=ot(X,ft,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(V.dirRecord),ft)this.push({data:function(ut){return mt.DATA_DESCRIPTOR+ct(ut.crc32,4)+ct(ut.compressedSize,4)+ct(ut.uncompressedSize,4)}(X),meta:{percent:100}});else for(this.push({data:V.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},_t.prototype.flush=function(){for(var X=this.bytesWritten,ft=0;ft<this.dirRecords.length;ft++)this.push({data:this.dirRecords[ft],meta:{percent:100}});var V=this.bytesWritten-X,ut=function(J,dt,kt,jt,Pt){var Jt=q.transformTo("string",Pt(jt));return mt.CENTRAL_DIRECTORY_END+"\0\0\0\0"+ct(J,2)+ct(J,2)+ct(dt,4)+ct(kt,4)+ct(Jt.length,2)+Jt}(this.dirRecords.length,V,X,this.zipComment,this.encodeFileName);this.push({data:ut,meta:{percent:100}})},_t.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},_t.prototype.registerPrevious=function(X){this._sources.push(X);var ft=this;return X.on("data",function(V){ft.processChunk(V)}),X.on("end",function(){ft.closedSource(ft.previous.streamInfo),ft._sources.length?ft.prepareNextSource():ft.end()}),X.on("error",function(V){ft.error(V)}),this},_t.prototype.resume=function(){return!!rt.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},_t.prototype.error=function(X){var ft=this._sources;if(!rt.prototype.error.call(this,X))return!1;for(var V=0;V<ft.length;V++)try{ft[V].error(X)}catch(ut){}return!0},_t.prototype.lock=function(){rt.prototype.lock.call(this);for(var X=this._sources,ft=0;ft<X.length;ft++)X[ft].lock()},le.exports=_t},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(Lt,le,xt){"use strict";var ct=Lt("../compressions"),ot=Lt("./ZipFileWorker");xt.generateWorker=function(q,rt,yt){var St=new ot(rt.streamFiles,yt,rt.platform,rt.encodeFileName),mt=0;try{q.forEach(function(_t,X){mt++;var ft=function(dt,kt){var jt=dt||kt,Pt=ct[jt];if(!Pt)throw new Error(jt+" is not a valid compression method !");return Pt}(X.options.compression,rt.compression),V=X.options.compressionOptions||rt.compressionOptions||{},ut=X.dir,J=X.date;X._compressWorker(ft,V).withStreamInfo("file",{name:_t,dir:ut,date:J,comment:X.comment||"",unixPermissions:X.unixPermissions,dosPermissions:X.dosPermissions}).pipe(St)}),St.entriesCount=mt}catch(_t){St.error(_t)}return St}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(Lt,le,xt){"use strict";function ct(){if(!(this instanceof ct))return new ct;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var ot=new ct;for(var q in this)typeof this[q]!="function"&&(ot[q]=this[q]);return ot}}(ct.prototype=Lt("./object")).loadAsync=Lt("./load"),ct.support=Lt("./support"),ct.defaults=Lt("./defaults"),ct.version="3.10.1",ct.loadAsync=function(ot,q){return new ct().loadAsync(ot,q)},ct.external=Lt("./external"),le.exports=ct},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(Lt,le,xt){"use strict";var ct=Lt("./utils"),ot=Lt("./external"),q=Lt("./utf8"),rt=Lt("./zipEntries"),yt=Lt("./stream/Crc32Probe"),St=Lt("./nodejsUtils");function mt(_t){return new ot.Promise(function(X,ft){var V=_t.decompressed.getContentWorker().pipe(new yt);V.on("error",function(ut){ft(ut)}).on("end",function(){V.streamInfo.crc32!==_t.decompressed.crc32?ft(new Error("Corrupted zip : CRC32 mismatch")):X()}).resume()})}le.exports=function(_t,X){var ft=this;return X=ct.extend(X||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:q.utf8decode}),St.isNode&&St.isStream(_t)?ot.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):ct.prepareContent("the loaded zip file",_t,!0,X.optimizedBinaryString,X.base64).then(function(V){var ut=new rt(X);return ut.load(V),ut}).then(function(V){var ut=[ot.Promise.resolve(V)],J=V.files;if(X.checkCRC32)for(var dt=0;dt<J.length;dt++)ut.push(mt(J[dt]));return ot.Promise.all(ut)}).then(function(V){for(var ut=V.shift(),J=ut.files,dt=0;dt<J.length;dt++){var kt=J[dt],jt=kt.fileNameStr,Pt=ct.resolve(kt.fileNameStr);ft.file(Pt,kt.decompressed,{binary:!0,optimizedBinaryString:!0,date:kt.date,dir:kt.dir,comment:kt.fileCommentStr.length?kt.fileCommentStr:null,unixPermissions:kt.unixPermissions,dosPermissions:kt.dosPermissions,createFolders:X.createFolders}),kt.dir||(ft.file(Pt).unsafeOriginalName=jt)}return ut.zipComment.length&&(ft.comment=ut.zipComment),ft})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(Lt,le,xt){"use strict";var ct=Lt("../utils"),ot=Lt("../stream/GenericWorker");function q(rt,yt){ot.call(this,"Nodejs stream input adapter for "+rt),this._upstreamEnded=!1,this._bindStream(yt)}ct.inherits(q,ot),q.prototype._bindStream=function(rt){var yt=this;(this._stream=rt).pause(),rt.on("data",function(St){yt.push({data:St,meta:{percent:0}})}).on("error",function(St){yt.isPaused?this.generatedError=St:yt.error(St)}).on("end",function(){yt.isPaused?yt._upstreamEnded=!0:yt.end()})},q.prototype.pause=function(){return!!ot.prototype.pause.call(this)&&(this._stream.pause(),!0)},q.prototype.resume=function(){return!!ot.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},le.exports=q},{"../stream/GenericWorker":28,"../utils":32}],13:[function(Lt,le,xt){"use strict";var ct=Lt("readable-stream").Readable;function ot(q,rt,yt){ct.call(this,rt),this._helper=q;var St=this;q.on("data",function(mt,_t){St.push(mt)||St._helper.pause(),yt&&yt(_t)}).on("error",function(mt){St.emit("error",mt)}).on("end",function(){St.push(null)})}Lt("../utils").inherits(ot,ct),ot.prototype._read=function(){this._helper.resume()},le.exports=ot},{"../utils":32,"readable-stream":16}],14:[function(Lt,le,xt){"use strict";le.exports={isNode:typeof Buffer<"u",newBufferFrom:function(ct,ot){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(ct,ot);if(typeof ct=="number")throw new Error('The "data" argument must not be a number');return new Buffer(ct,ot)},allocBuffer:function(ct){if(Buffer.alloc)return Buffer.alloc(ct);var ot=new Buffer(ct);return ot.fill(0),ot},isBuffer:function(ct){return Buffer.isBuffer(ct)},isStream:function(ct){return ct&&typeof ct.on=="function"&&typeof ct.pause=="function"&&typeof ct.resume=="function"}}},{}],15:[function(Lt,le,xt){"use strict";function ct(Pt,Jt,Wt){var oe,Gt=q.getTypeOf(Jt),ve=q.extend(Wt||{},St);ve.date=ve.date||new Date,ve.compression!==null&&(ve.compression=ve.compression.toUpperCase()),typeof ve.unixPermissions=="string"&&(ve.unixPermissions=parseInt(ve.unixPermissions,8)),ve.unixPermissions&&16384&ve.unixPermissions&&(ve.dir=!0),ve.dosPermissions&&16&ve.dosPermissions&&(ve.dir=!0),ve.dir&&(Pt=J(Pt)),ve.createFolders&&(oe=ut(Pt))&&dt.call(this,oe,!0);var Ue=Gt==="string"&&ve.binary===!1&&ve.base64===!1;Wt&&Wt.binary!==void 0||(ve.binary=!Ue),(Jt instanceof mt&&Jt.uncompressedSize===0||ve.dir||!Jt||Jt.length===0)&&(ve.base64=!1,ve.binary=!0,Jt="",ve.compression="STORE",Gt="string");var bt=null;bt=Jt instanceof mt||Jt instanceof rt?Jt:ft.isNode&&ft.isStream(Jt)?new V(Pt,Jt):q.prepareContent(Pt,Jt,ve.binary,ve.optimizedBinaryString,ve.base64);var Qt=new _t(Pt,bt,ve);this.files[Pt]=Qt}var ot=Lt("./utf8"),q=Lt("./utils"),rt=Lt("./stream/GenericWorker"),yt=Lt("./stream/StreamHelper"),St=Lt("./defaults"),mt=Lt("./compressedObject"),_t=Lt("./zipObject"),X=Lt("./generate"),ft=Lt("./nodejsUtils"),V=Lt("./nodejs/NodejsStreamInputAdapter"),ut=function(Pt){Pt.slice(-1)==="/"&&(Pt=Pt.substring(0,Pt.length-1));var Jt=Pt.lastIndexOf("/");return 0<Jt?Pt.substring(0,Jt):""},J=function(Pt){return Pt.slice(-1)!=="/"&&(Pt+="/"),Pt},dt=function(Pt,Jt){return Jt=Jt!==void 0?Jt:St.createFolders,Pt=J(Pt),this.files[Pt]||ct.call(this,Pt,null,{dir:!0,createFolders:Jt}),this.files[Pt]};function kt(Pt){return Object.prototype.toString.call(Pt)==="[object RegExp]"}var jt={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Pt){var Jt,Wt,oe;for(Jt in this.files)oe=this.files[Jt],(Wt=Jt.slice(this.root.length,Jt.length))&&Jt.slice(0,this.root.length)===this.root&&Pt(Wt,oe)},filter:function(Pt){var Jt=[];return this.forEach(function(Wt,oe){Pt(Wt,oe)&&Jt.push(oe)}),Jt},file:function(Pt,Jt,Wt){if(arguments.length!==1)return Pt=this.root+Pt,ct.call(this,Pt,Jt,Wt),this;if(kt(Pt)){var oe=Pt;return this.filter(function(ve,Ue){return!Ue.dir&&oe.test(ve)})}var Gt=this.files[this.root+Pt];return Gt&&!Gt.dir?Gt:null},folder:function(Pt){if(!Pt)return this;if(kt(Pt))return this.filter(function(Gt,ve){return ve.dir&&Pt.test(Gt)});var Jt=this.root+Pt,Wt=dt.call(this,Jt),oe=this.clone();return oe.root=Wt.name,oe},remove:function(Pt){Pt=this.root+Pt;var Jt=this.files[Pt];if(Jt||(Pt.slice(-1)!=="/"&&(Pt+="/"),Jt=this.files[Pt]),Jt&&!Jt.dir)delete this.files[Pt];else for(var Wt=this.filter(function(Gt,ve){return ve.name.slice(0,Pt.length)===Pt}),oe=0;oe<Wt.length;oe++)delete this.files[Wt[oe].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(Pt){var Jt,Wt={};try{if((Wt=q.extend(Pt||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:ot.utf8encode})).type=Wt.type.toLowerCase(),Wt.compression=Wt.compression.toUpperCase(),Wt.type==="binarystring"&&(Wt.type="string"),!Wt.type)throw new Error("No output type specified.");q.checkSupport(Wt.type),Wt.platform!=="darwin"&&Wt.platform!=="freebsd"&&Wt.platform!=="linux"&&Wt.platform!=="sunos"||(Wt.platform="UNIX"),Wt.platform==="win32"&&(Wt.platform="DOS");var oe=Wt.comment||this.comment||"";Jt=X.generateWorker(this,Wt,oe)}catch(Gt){(Jt=new rt("error")).error(Gt)}return new yt(Jt,Wt.type||"string",Wt.mimeType)},generateAsync:function(Pt,Jt){return this.generateInternalStream(Pt).accumulate(Jt)},generateNodeStream:function(Pt,Jt){return(Pt=Pt||{}).type||(Pt.type="nodebuffer"),this.generateInternalStream(Pt).toNodejsStream(Jt)}};le.exports=jt},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(Lt,le,xt){"use strict";le.exports=Lt("stream")},{stream:void 0}],17:[function(Lt,le,xt){"use strict";var ct=Lt("./DataReader");function ot(q){ct.call(this,q);for(var rt=0;rt<this.data.length;rt++)q[rt]=255&q[rt]}Lt("../utils").inherits(ot,ct),ot.prototype.byteAt=function(q){return this.data[this.zero+q]},ot.prototype.lastIndexOfSignature=function(q){for(var rt=q.charCodeAt(0),yt=q.charCodeAt(1),St=q.charCodeAt(2),mt=q.charCodeAt(3),_t=this.length-4;0<=_t;--_t)if(this.data[_t]===rt&&this.data[_t+1]===yt&&this.data[_t+2]===St&&this.data[_t+3]===mt)return _t-this.zero;return-1},ot.prototype.readAndCheckSignature=function(q){var rt=q.charCodeAt(0),yt=q.charCodeAt(1),St=q.charCodeAt(2),mt=q.charCodeAt(3),_t=this.readData(4);return rt===_t[0]&&yt===_t[1]&&St===_t[2]&&mt===_t[3]},ot.prototype.readData=function(q){if(this.checkOffset(q),q===0)return[];var rt=this.data.slice(this.zero+this.index,this.zero+this.index+q);return this.index+=q,rt},le.exports=ot},{"../utils":32,"./DataReader":18}],18:[function(Lt,le,xt){"use strict";var ct=Lt("../utils");function ot(q){this.data=q,this.length=q.length,this.index=0,this.zero=0}ot.prototype={checkOffset:function(q){this.checkIndex(this.index+q)},checkIndex:function(q){if(this.length<this.zero+q||q<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+q+"). Corrupted zip ?")},setIndex:function(q){this.checkIndex(q),this.index=q},skip:function(q){this.setIndex(this.index+q)},byteAt:function(){},readInt:function(q){var rt,yt=0;for(this.checkOffset(q),rt=this.index+q-1;rt>=this.index;rt--)yt=(yt<<8)+this.byteAt(rt);return this.index+=q,yt},readString:function(q){return ct.transformTo("string",this.readData(q))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var q=this.readInt(4);return new Date(Date.UTC(1980+(q>>25&127),(q>>21&15)-1,q>>16&31,q>>11&31,q>>5&63,(31&q)<<1))}},le.exports=ot},{"../utils":32}],19:[function(Lt,le,xt){"use strict";var ct=Lt("./Uint8ArrayReader");function ot(q){ct.call(this,q)}Lt("../utils").inherits(ot,ct),ot.prototype.readData=function(q){this.checkOffset(q);var rt=this.data.slice(this.zero+this.index,this.zero+this.index+q);return this.index+=q,rt},le.exports=ot},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(Lt,le,xt){"use strict";var ct=Lt("./DataReader");function ot(q){ct.call(this,q)}Lt("../utils").inherits(ot,ct),ot.prototype.byteAt=function(q){return this.data.charCodeAt(this.zero+q)},ot.prototype.lastIndexOfSignature=function(q){return this.data.lastIndexOf(q)-this.zero},ot.prototype.readAndCheckSignature=function(q){return q===this.readData(4)},ot.prototype.readData=function(q){this.checkOffset(q);var rt=this.data.slice(this.zero+this.index,this.zero+this.index+q);return this.index+=q,rt},le.exports=ot},{"../utils":32,"./DataReader":18}],21:[function(Lt,le,xt){"use strict";var ct=Lt("./ArrayReader");function ot(q){ct.call(this,q)}Lt("../utils").inherits(ot,ct),ot.prototype.readData=function(q){if(this.checkOffset(q),q===0)return new Uint8Array(0);var rt=this.data.subarray(this.zero+this.index,this.zero+this.index+q);return this.index+=q,rt},le.exports=ot},{"../utils":32,"./ArrayReader":17}],22:[function(Lt,le,xt){"use strict";var ct=Lt("../utils"),ot=Lt("../support"),q=Lt("./ArrayReader"),rt=Lt("./StringReader"),yt=Lt("./NodeBufferReader"),St=Lt("./Uint8ArrayReader");le.exports=function(mt){var _t=ct.getTypeOf(mt);return ct.checkSupport(_t),_t!=="string"||ot.uint8array?_t==="nodebuffer"?new yt(mt):ot.uint8array?new St(ct.transformTo("uint8array",mt)):new q(ct.transformTo("array",mt)):new rt(mt)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(Lt,le,xt){"use strict";xt.LOCAL_FILE_HEADER="PK",xt.CENTRAL_FILE_HEADER="PK",xt.CENTRAL_DIRECTORY_END="PK",xt.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",xt.ZIP64_CENTRAL_DIRECTORY_END="PK",xt.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(Lt,le,xt){"use strict";var ct=Lt("./GenericWorker"),ot=Lt("../utils");function q(rt){ct.call(this,"ConvertWorker to "+rt),this.destType=rt}ot.inherits(q,ct),q.prototype.processChunk=function(rt){this.push({data:ot.transformTo(this.destType,rt.data),meta:rt.meta})},le.exports=q},{"../utils":32,"./GenericWorker":28}],25:[function(Lt,le,xt){"use strict";var ct=Lt("./GenericWorker"),ot=Lt("../crc32");function q(){ct.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Lt("../utils").inherits(q,ct),q.prototype.processChunk=function(rt){this.streamInfo.crc32=ot(rt.data,this.streamInfo.crc32||0),this.push(rt)},le.exports=q},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(Lt,le,xt){"use strict";var ct=Lt("../utils"),ot=Lt("./GenericWorker");function q(rt){ot.call(this,"DataLengthProbe for "+rt),this.propName=rt,this.withStreamInfo(rt,0)}ct.inherits(q,ot),q.prototype.processChunk=function(rt){if(rt){var yt=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=yt+rt.data.length}ot.prototype.processChunk.call(this,rt)},le.exports=q},{"../utils":32,"./GenericWorker":28}],27:[function(Lt,le,xt){"use strict";var ct=Lt("../utils"),ot=Lt("./GenericWorker");function q(rt){ot.call(this,"DataWorker");var yt=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,rt.then(function(St){yt.dataIsReady=!0,yt.data=St,yt.max=St&&St.length||0,yt.type=ct.getTypeOf(St),yt.isPaused||yt._tickAndRepeat()},function(St){yt.error(St)})}ct.inherits(q,ot),q.prototype.cleanUp=function(){ot.prototype.cleanUp.call(this),this.data=null},q.prototype.resume=function(){return!!ot.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,ct.delay(this._tickAndRepeat,[],this)),!0)},q.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(ct.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},q.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var rt=null,yt=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":rt=this.data.substring(this.index,yt);break;case"uint8array":rt=this.data.subarray(this.index,yt);break;case"array":case"nodebuffer":rt=this.data.slice(this.index,yt)}return this.index=yt,this.push({data:rt,meta:{percent:this.max?this.index/this.max*100:0}})},le.exports=q},{"../utils":32,"./GenericWorker":28}],28:[function(Lt,le,xt){"use strict";function ct(ot){this.name=ot||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}ct.prototype={push:function(ot){this.emit("data",ot)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(ot){this.emit("error",ot)}return!0},error:function(ot){return!this.isFinished&&(this.isPaused?this.generatedError=ot:(this.isFinished=!0,this.emit("error",ot),this.previous&&this.previous.error(ot),this.cleanUp()),!0)},on:function(ot,q){return this._listeners[ot].push(q),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(ot,q){if(this._listeners[ot])for(var rt=0;rt<this._listeners[ot].length;rt++)this._listeners[ot][rt].call(this,q)},pipe:function(ot){return ot.registerPrevious(this)},registerPrevious:function(ot){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=ot.streamInfo,this.mergeStreamInfo(),this.previous=ot;var q=this;return ot.on("data",function(rt){q.processChunk(rt)}),ot.on("end",function(){q.end()}),ot.on("error",function(rt){q.error(rt)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var ot=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),ot=!0),this.previous&&this.previous.resume(),!ot},flush:function(){},processChunk:function(ot){this.push(ot)},withStreamInfo:function(ot,q){return this.extraStreamInfo[ot]=q,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var ot in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,ot)&&(this.streamInfo[ot]=this.extraStreamInfo[ot])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var ot="Worker "+this.name;return this.previous?this.previous+" -> "+ot:ot}},le.exports=ct},{}],29:[function(Lt,le,xt){"use strict";var ct=Lt("../utils"),ot=Lt("./ConvertWorker"),q=Lt("./GenericWorker"),rt=Lt("../base64"),yt=Lt("../support"),St=Lt("../external"),mt=null;if(yt.nodestream)try{mt=Lt("../nodejs/NodejsStreamOutputAdapter")}catch(ft){}function _t(ft,V){return new St.Promise(function(ut,J){var dt=[],kt=ft._internalType,jt=ft._outputType,Pt=ft._mimeType;ft.on("data",function(Jt,Wt){dt.push(Jt),V&&V(Wt)}).on("error",function(Jt){dt=[],J(Jt)}).on("end",function(){try{var Jt=function(Wt,oe,Gt){switch(Wt){case"blob":return ct.newBlob(ct.transformTo("arraybuffer",oe),Gt);case"base64":return rt.encode(oe);default:return ct.transformTo(Wt,oe)}}(jt,function(Wt,oe){var Gt,ve=0,Ue=null,bt=0;for(Gt=0;Gt<oe.length;Gt++)bt+=oe[Gt].length;switch(Wt){case"string":return oe.join("");case"array":return Array.prototype.concat.apply([],oe);case"uint8array":for(Ue=new Uint8Array(bt),Gt=0;Gt<oe.length;Gt++)Ue.set(oe[Gt],ve),ve+=oe[Gt].length;return Ue;case"nodebuffer":return Buffer.concat(oe);default:throw new Error("concat : unsupported type '"+Wt+"'")}}(kt,dt),Pt);ut(Jt)}catch(Wt){J(Wt)}dt=[]}).resume()})}function X(ft,V,ut){var J=V;switch(V){case"blob":case"arraybuffer":J="uint8array";break;case"base64":J="string"}try{this._internalType=J,this._outputType=V,this._mimeType=ut,ct.checkSupport(J),this._worker=ft.pipe(new ot(J)),ft.lock()}catch(dt){this._worker=new q("error"),this._worker.error(dt)}}X.prototype={accumulate:function(ft){return _t(this,ft)},on:function(ft,V){var ut=this;return ft==="data"?this._worker.on(ft,function(J){V.call(ut,J.data,J.meta)}):this._worker.on(ft,function(){ct.delay(V,arguments,ut)}),this},resume:function(){return ct.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(ft){if(ct.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new mt(this,{objectMode:this._outputType!=="nodebuffer"},ft)}},le.exports=X},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(Lt,le,xt){"use strict";if(xt.base64=!0,xt.array=!0,xt.string=!0,xt.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",xt.nodebuffer=typeof Buffer<"u",xt.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")xt.blob=!1;else{var ct=new ArrayBuffer(0);try{xt.blob=new Blob([ct],{type:"application/zip"}).size===0}catch(q){try{var ot=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);ot.append(ct),xt.blob=ot.getBlob("application/zip").size===0}catch(rt){xt.blob=!1}}}try{xt.nodestream=!!Lt("readable-stream").Readable}catch(q){xt.nodestream=!1}},{"readable-stream":16}],31:[function(Lt,le,xt){"use strict";for(var ct=Lt("./utils"),ot=Lt("./support"),q=Lt("./nodejsUtils"),rt=Lt("./stream/GenericWorker"),yt=new Array(256),St=0;St<256;St++)yt[St]=252<=St?6:248<=St?5:240<=St?4:224<=St?3:192<=St?2:1;yt[254]=yt[254]=1;function mt(){rt.call(this,"utf-8 decode"),this.leftOver=null}function _t(){rt.call(this,"utf-8 encode")}xt.utf8encode=function(X){return ot.nodebuffer?q.newBufferFrom(X,"utf-8"):function(ft){var V,ut,J,dt,kt,jt=ft.length,Pt=0;for(dt=0;dt<jt;dt++)(64512&(ut=ft.charCodeAt(dt)))==55296&&dt+1<jt&&(64512&(J=ft.charCodeAt(dt+1)))==56320&&(ut=65536+(ut-55296<<10)+(J-56320),dt++),Pt+=ut<128?1:ut<2048?2:ut<65536?3:4;for(V=ot.uint8array?new Uint8Array(Pt):new Array(Pt),dt=kt=0;kt<Pt;dt++)(64512&(ut=ft.charCodeAt(dt)))==55296&&dt+1<jt&&(64512&(J=ft.charCodeAt(dt+1)))==56320&&(ut=65536+(ut-55296<<10)+(J-56320),dt++),ut<128?V[kt++]=ut:(ut<2048?V[kt++]=192|ut>>>6:(ut<65536?V[kt++]=224|ut>>>12:(V[kt++]=240|ut>>>18,V[kt++]=128|ut>>>12&63),V[kt++]=128|ut>>>6&63),V[kt++]=128|63&ut);return V}(X)},xt.utf8decode=function(X){return ot.nodebuffer?ct.transformTo("nodebuffer",X).toString("utf-8"):function(ft){var V,ut,J,dt,kt=ft.length,jt=new Array(2*kt);for(V=ut=0;V<kt;)if((J=ft[V++])<128)jt[ut++]=J;else if(4<(dt=yt[J]))jt[ut++]=65533,V+=dt-1;else{for(J&=dt===2?31:dt===3?15:7;1<dt&&V<kt;)J=J<<6|63&ft[V++],dt--;1<dt?jt[ut++]=65533:J<65536?jt[ut++]=J:(J-=65536,jt[ut++]=55296|J>>10&1023,jt[ut++]=56320|1023&J)}return jt.length!==ut&&(jt.subarray?jt=jt.subarray(0,ut):jt.length=ut),ct.applyFromCharCode(jt)}(X=ct.transformTo(ot.uint8array?"uint8array":"array",X))},ct.inherits(mt,rt),mt.prototype.processChunk=function(X){var ft=ct.transformTo(ot.uint8array?"uint8array":"array",X.data);if(this.leftOver&&this.leftOver.length){if(ot.uint8array){var V=ft;(ft=new Uint8Array(V.length+this.leftOver.length)).set(this.leftOver,0),ft.set(V,this.leftOver.length)}else ft=this.leftOver.concat(ft);this.leftOver=null}var ut=function(dt,kt){var jt;for((kt=kt||dt.length)>dt.length&&(kt=dt.length),jt=kt-1;0<=jt&&(192&dt[jt])==128;)jt--;return jt<0||jt===0?kt:jt+yt[dt[jt]]>kt?jt:kt}(ft),J=ft;ut!==ft.length&&(ot.uint8array?(J=ft.subarray(0,ut),this.leftOver=ft.subarray(ut,ft.length)):(J=ft.slice(0,ut),this.leftOver=ft.slice(ut,ft.length))),this.push({data:xt.utf8decode(J),meta:X.meta})},mt.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:xt.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},xt.Utf8DecodeWorker=mt,ct.inherits(_t,rt),_t.prototype.processChunk=function(X){this.push({data:xt.utf8encode(X.data),meta:X.meta})},xt.Utf8EncodeWorker=_t},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(Lt,le,xt){"use strict";var ct=Lt("./support"),ot=Lt("./base64"),q=Lt("./nodejsUtils"),rt=Lt("./external");function yt(V){return V}function St(V,ut){for(var J=0;J<V.length;++J)ut[J]=255&V.charCodeAt(J);return ut}Lt("setimmediate"),xt.newBlob=function(V,ut){xt.checkSupport("blob");try{return new Blob([V],{type:ut})}catch(dt){try{var J=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return J.append(V),J.getBlob(ut)}catch(kt){throw new Error("Bug : can't construct the Blob.")}}};var mt={stringifyByChunk:function(V,ut,J){var dt=[],kt=0,jt=V.length;if(jt<=J)return String.fromCharCode.apply(null,V);for(;kt<jt;)ut==="array"||ut==="nodebuffer"?dt.push(String.fromCharCode.apply(null,V.slice(kt,Math.min(kt+J,jt)))):dt.push(String.fromCharCode.apply(null,V.subarray(kt,Math.min(kt+J,jt)))),kt+=J;return dt.join("")},stringifyByChar:function(V){for(var ut="",J=0;J<V.length;J++)ut+=String.fromCharCode(V[J]);return ut},applyCanBeUsed:{uint8array:function(){try{return ct.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(V){return!1}}(),nodebuffer:function(){try{return ct.nodebuffer&&String.fromCharCode.apply(null,q.allocBuffer(1)).length===1}catch(V){return!1}}()}};function _t(V){var ut=65536,J=xt.getTypeOf(V),dt=!0;if(J==="uint8array"?dt=mt.applyCanBeUsed.uint8array:J==="nodebuffer"&&(dt=mt.applyCanBeUsed.nodebuffer),dt)for(;1<ut;)try{return mt.stringifyByChunk(V,J,ut)}catch(kt){ut=Math.floor(ut/2)}return mt.stringifyByChar(V)}function X(V,ut){for(var J=0;J<V.length;J++)ut[J]=V[J];return ut}xt.applyFromCharCode=_t;var ft={};ft.string={string:yt,array:function(V){return St(V,new Array(V.length))},arraybuffer:function(V){return ft.string.uint8array(V).buffer},uint8array:function(V){return St(V,new Uint8Array(V.length))},nodebuffer:function(V){return St(V,q.allocBuffer(V.length))}},ft.array={string:_t,array:yt,arraybuffer:function(V){return new Uint8Array(V).buffer},uint8array:function(V){return new Uint8Array(V)},nodebuffer:function(V){return q.newBufferFrom(V)}},ft.arraybuffer={string:function(V){return _t(new Uint8Array(V))},array:function(V){return X(new Uint8Array(V),new Array(V.byteLength))},arraybuffer:yt,uint8array:function(V){return new Uint8Array(V)},nodebuffer:function(V){return q.newBufferFrom(new Uint8Array(V))}},ft.uint8array={string:_t,array:function(V){return X(V,new Array(V.length))},arraybuffer:function(V){return V.buffer},uint8array:yt,nodebuffer:function(V){return q.newBufferFrom(V)}},ft.nodebuffer={string:_t,array:function(V){return X(V,new Array(V.length))},arraybuffer:function(V){return ft.nodebuffer.uint8array(V).buffer},uint8array:function(V){return X(V,new Uint8Array(V.length))},nodebuffer:yt},xt.transformTo=function(V,ut){if(ut=ut||"",!V)return ut;xt.checkSupport(V);var J=xt.getTypeOf(ut);return ft[J][V](ut)},xt.resolve=function(V){for(var ut=V.split("/"),J=[],dt=0;dt<ut.length;dt++){var kt=ut[dt];kt==="."||kt===""&&dt!==0&&dt!==ut.length-1||(kt===".."?J.pop():J.push(kt))}return J.join("/")},xt.getTypeOf=function(V){return typeof V=="string"?"string":Object.prototype.toString.call(V)==="[object Array]"?"array":ct.nodebuffer&&q.isBuffer(V)?"nodebuffer":ct.uint8array&&V instanceof Uint8Array?"uint8array":ct.arraybuffer&&V instanceof ArrayBuffer?"arraybuffer":void 0},xt.checkSupport=function(V){if(!ct[V.toLowerCase()])throw new Error(V+" is not supported by this platform")},xt.MAX_VALUE_16BITS=65535,xt.MAX_VALUE_32BITS=-1,xt.pretty=function(V){var ut,J,dt="";for(J=0;J<(V||"").length;J++)dt+="\\x"+((ut=V.charCodeAt(J))<16?"0":"")+ut.toString(16).toUpperCase();return dt},xt.delay=function(V,ut,J){setImmediate(function(){V.apply(J||null,ut||[])})},xt.inherits=function(V,ut){function J(){}J.prototype=ut.prototype,V.prototype=new J},xt.extend=function(){var V,ut,J={};for(V=0;V<arguments.length;V++)for(ut in arguments[V])Object.prototype.hasOwnProperty.call(arguments[V],ut)&&J[ut]===void 0&&(J[ut]=arguments[V][ut]);return J},xt.prepareContent=function(V,ut,J,dt,kt){return rt.Promise.resolve(ut).then(function(jt){return ct.blob&&(jt instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(jt))!==-1)&&typeof FileReader<"u"?new rt.Promise(function(Pt,Jt){var Wt=new FileReader;Wt.onload=function(oe){Pt(oe.target.result)},Wt.onerror=function(oe){Jt(oe.target.error)},Wt.readAsArrayBuffer(jt)}):jt}).then(function(jt){var Pt=xt.getTypeOf(jt);return Pt?(Pt==="arraybuffer"?jt=xt.transformTo("uint8array",jt):Pt==="string"&&(kt?jt=ot.decode(jt):J&&dt!==!0&&(jt=function(Jt){return St(Jt,ct.uint8array?new Uint8Array(Jt.length):new Array(Jt.length))}(jt))),jt):rt.Promise.reject(new Error("Can't read the data of '"+V+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(Lt,le,xt){"use strict";var ct=Lt("./reader/readerFor"),ot=Lt("./utils"),q=Lt("./signature"),rt=Lt("./zipEntry"),yt=Lt("./support");function St(mt){this.files=[],this.loadOptions=mt}St.prototype={checkSignature:function(mt){if(!this.reader.readAndCheckSignature(mt)){this.reader.index-=4;var _t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+ot.pretty(_t)+", expected "+ot.pretty(mt)+")")}},isSignature:function(mt,_t){var X=this.reader.index;this.reader.setIndex(mt);var ft=this.reader.readString(4)===_t;return this.reader.setIndex(X),ft},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var mt=this.reader.readData(this.zipCommentLength),_t=yt.uint8array?"uint8array":"array",X=ot.transformTo(_t,mt);this.zipComment=this.loadOptions.decodeFileName(X)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var mt,_t,X,ft=this.zip64EndOfCentralSize-44;0<ft;)mt=this.reader.readInt(2),_t=this.reader.readInt(4),X=this.reader.readData(_t),this.zip64ExtensibleData[mt]={id:mt,length:_t,value:X}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var mt,_t;for(mt=0;mt<this.files.length;mt++)_t=this.files[mt],this.reader.setIndex(_t.localHeaderOffset),this.checkSignature(q.LOCAL_FILE_HEADER),_t.readLocalPart(this.reader),_t.handleUTF8(),_t.processAttributes()},readCentralDir:function(){var mt;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(q.CENTRAL_FILE_HEADER);)(mt=new rt({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(mt);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var mt=this.reader.lastIndexOfSignature(q.CENTRAL_DIRECTORY_END);if(mt<0)throw this.isSignature(0,q.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(mt);var _t=mt;if(this.checkSignature(q.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===ot.MAX_VALUE_16BITS||this.diskWithCentralDirStart===ot.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===ot.MAX_VALUE_16BITS||this.centralDirRecords===ot.MAX_VALUE_16BITS||this.centralDirSize===ot.MAX_VALUE_32BITS||this.centralDirOffset===ot.MAX_VALUE_32BITS){if(this.zip64=!0,(mt=this.reader.lastIndexOfSignature(q.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(mt),this.checkSignature(q.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,q.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(q.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(q.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var X=this.centralDirOffset+this.centralDirSize;this.zip64&&(X+=20,X+=12+this.zip64EndOfCentralSize);var ft=_t-X;if(0<ft)this.isSignature(_t,q.CENTRAL_FILE_HEADER)||(this.reader.zero=ft);else if(ft<0)throw new Error("Corrupted zip: missing "+Math.abs(ft)+" bytes.")},prepareReader:function(mt){this.reader=ct(mt)},load:function(mt){this.prepareReader(mt),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},le.exports=St},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(Lt,le,xt){"use strict";var ct=Lt("./reader/readerFor"),ot=Lt("./utils"),q=Lt("./compressedObject"),rt=Lt("./crc32"),yt=Lt("./utf8"),St=Lt("./compressions"),mt=Lt("./support");function _t(X,ft){this.options=X,this.loadOptions=ft}_t.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(X){var ft,V;if(X.skip(22),this.fileNameLength=X.readInt(2),V=X.readInt(2),this.fileName=X.readData(this.fileNameLength),X.skip(V),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((ft=function(ut){for(var J in St)if(Object.prototype.hasOwnProperty.call(St,J)&&St[J].magic===ut)return St[J];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+ot.pretty(this.compressionMethod)+" unknown (inner file : "+ot.transformTo("string",this.fileName)+")");this.decompressed=new q(this.compressedSize,this.uncompressedSize,this.crc32,ft,X.readData(this.compressedSize))},readCentralPart:function(X){this.versionMadeBy=X.readInt(2),X.skip(2),this.bitFlag=X.readInt(2),this.compressionMethod=X.readString(2),this.date=X.readDate(),this.crc32=X.readInt(4),this.compressedSize=X.readInt(4),this.uncompressedSize=X.readInt(4);var ft=X.readInt(2);if(this.extraFieldsLength=X.readInt(2),this.fileCommentLength=X.readInt(2),this.diskNumberStart=X.readInt(2),this.internalFileAttributes=X.readInt(2),this.externalFileAttributes=X.readInt(4),this.localHeaderOffset=X.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");X.skip(ft),this.readExtraFields(X),this.parseZIP64ExtraField(X),this.fileComment=X.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var X=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),X==0&&(this.dosPermissions=63&this.externalFileAttributes),X==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var X=ct(this.extraFields[1].value);this.uncompressedSize===ot.MAX_VALUE_32BITS&&(this.uncompressedSize=X.readInt(8)),this.compressedSize===ot.MAX_VALUE_32BITS&&(this.compressedSize=X.readInt(8)),this.localHeaderOffset===ot.MAX_VALUE_32BITS&&(this.localHeaderOffset=X.readInt(8)),this.diskNumberStart===ot.MAX_VALUE_32BITS&&(this.diskNumberStart=X.readInt(4))}},readExtraFields:function(X){var ft,V,ut,J=X.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});X.index+4<J;)ft=X.readInt(2),V=X.readInt(2),ut=X.readData(V),this.extraFields[ft]={id:ft,length:V,value:ut};X.setIndex(J)},handleUTF8:function(){var X=mt.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=yt.utf8decode(this.fileName),this.fileCommentStr=yt.utf8decode(this.fileComment);else{var ft=this.findExtraFieldUnicodePath();if(ft!==null)this.fileNameStr=ft;else{var V=ot.transformTo(X,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(V)}var ut=this.findExtraFieldUnicodeComment();if(ut!==null)this.fileCommentStr=ut;else{var J=ot.transformTo(X,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(J)}}},findExtraFieldUnicodePath:function(){var X=this.extraFields[28789];if(X){var ft=ct(X.value);return ft.readInt(1)!==1||rt(this.fileName)!==ft.readInt(4)?null:yt.utf8decode(ft.readData(X.length-5))}return null},findExtraFieldUnicodeComment:function(){var X=this.extraFields[25461];if(X){var ft=ct(X.value);return ft.readInt(1)!==1||rt(this.fileComment)!==ft.readInt(4)?null:yt.utf8decode(ft.readData(X.length-5))}return null}},le.exports=_t},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(Lt,le,xt){"use strict";function ct(ft,V,ut){this.name=ft,this.dir=ut.dir,this.date=ut.date,this.comment=ut.comment,this.unixPermissions=ut.unixPermissions,this.dosPermissions=ut.dosPermissions,this._data=V,this._dataBinary=ut.binary,this.options={compression:ut.compression,compressionOptions:ut.compressionOptions}}var ot=Lt("./stream/StreamHelper"),q=Lt("./stream/DataWorker"),rt=Lt("./utf8"),yt=Lt("./compressedObject"),St=Lt("./stream/GenericWorker");ct.prototype={internalStream:function(ft){var V=null,ut="string";try{if(!ft)throw new Error("No output type specified.");var J=(ut=ft.toLowerCase())==="string"||ut==="text";ut!=="binarystring"&&ut!=="text"||(ut="string"),V=this._decompressWorker();var dt=!this._dataBinary;dt&&!J&&(V=V.pipe(new rt.Utf8EncodeWorker)),!dt&&J&&(V=V.pipe(new rt.Utf8DecodeWorker))}catch(kt){(V=new St("error")).error(kt)}return new ot(V,ut,"")},async:function(ft,V){return this.internalStream(ft).accumulate(V)},nodeStream:function(ft,V){return this.internalStream(ft||"nodebuffer").toNodejsStream(V)},_compressWorker:function(ft,V){if(this._data instanceof yt&&this._data.compression.magic===ft.magic)return this._data.getCompressedWorker();var ut=this._decompressWorker();return this._dataBinary||(ut=ut.pipe(new rt.Utf8EncodeWorker)),yt.createWorkerFrom(ut,ft,V)},_decompressWorker:function(){return this._data instanceof yt?this._data.getContentWorker():this._data instanceof St?this._data:new q(this._data)}};for(var mt=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],_t=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},X=0;X<mt.length;X++)ct.prototype[mt[X]]=_t;le.exports=ct},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(Lt,le,xt){(function(ct){"use strict";var ot,q,rt=ct.MutationObserver||ct.WebKitMutationObserver;if(rt){var yt=0,St=new rt(ft),mt=ct.document.createTextNode("");St.observe(mt,{characterData:!0}),ot=function(){mt.data=yt=++yt%2}}else if(ct.setImmediate||ct.MessageChannel===void 0)ot="document"in ct&&"onreadystatechange"in ct.document.createElement("script")?function(){var V=ct.document.createElement("script");V.onreadystatechange=function(){ft(),V.onreadystatechange=null,V.parentNode.removeChild(V),V=null},ct.document.documentElement.appendChild(V)}:function(){setTimeout(ft,0)};else{var _t=new ct.MessageChannel;_t.port1.onmessage=ft,ot=function(){_t.port2.postMessage(0)}}var X=[];function ft(){var V,ut;q=!0;for(var J=X.length;J;){for(ut=X,X=[],V=-1;++V<J;)ut[V]();J=X.length}q=!1}le.exports=function(V){X.push(V)!==1||q||ot()}}).call(this,typeof Xr.g<"u"?Xr.g:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(Lt,le,xt){"use strict";var ct=Lt("immediate");function ot(){}var q={},rt=["REJECTED"],yt=["FULFILLED"],St=["PENDING"];function mt(J){if(typeof J!="function")throw new TypeError("resolver must be a function");this.state=St,this.queue=[],this.outcome=void 0,J!==ot&&V(this,J)}function _t(J,dt,kt){this.promise=J,typeof dt=="function"&&(this.onFulfilled=dt,this.callFulfilled=this.otherCallFulfilled),typeof kt=="function"&&(this.onRejected=kt,this.callRejected=this.otherCallRejected)}function X(J,dt,kt){ct(function(){var jt;try{jt=dt(kt)}catch(Pt){return q.reject(J,Pt)}jt===J?q.reject(J,new TypeError("Cannot resolve promise with itself")):q.resolve(J,jt)})}function ft(J){var dt=J&&J.then;if(J&&(typeof J=="object"||typeof J=="function")&&typeof dt=="function")return function(){dt.apply(J,arguments)}}function V(J,dt){var kt=!1;function jt(Wt){kt||(kt=!0,q.reject(J,Wt))}function Pt(Wt){kt||(kt=!0,q.resolve(J,Wt))}var Jt=ut(function(){dt(Pt,jt)});Jt.status==="error"&&jt(Jt.value)}function ut(J,dt){var kt={};try{kt.value=J(dt),kt.status="success"}catch(jt){kt.status="error",kt.value=jt}return kt}(le.exports=mt).prototype.finally=function(J){if(typeof J!="function")return this;var dt=this.constructor;return this.then(function(kt){return dt.resolve(J()).then(function(){return kt})},function(kt){return dt.resolve(J()).then(function(){throw kt})})},mt.prototype.catch=function(J){return this.then(null,J)},mt.prototype.then=function(J,dt){if(typeof J!="function"&&this.state===yt||typeof dt!="function"&&this.state===rt)return this;var kt=new this.constructor(ot);return this.state!==St?X(kt,this.state===yt?J:dt,this.outcome):this.queue.push(new _t(kt,J,dt)),kt},_t.prototype.callFulfilled=function(J){q.resolve(this.promise,J)},_t.prototype.otherCallFulfilled=function(J){X(this.promise,this.onFulfilled,J)},_t.prototype.callRejected=function(J){q.reject(this.promise,J)},_t.prototype.otherCallRejected=function(J){X(this.promise,this.onRejected,J)},q.resolve=function(J,dt){var kt=ut(ft,dt);if(kt.status==="error")return q.reject(J,kt.value);var jt=kt.value;if(jt)V(J,jt);else{J.state=yt,J.outcome=dt;for(var Pt=-1,Jt=J.queue.length;++Pt<Jt;)J.queue[Pt].callFulfilled(dt)}return J},q.reject=function(J,dt){J.state=rt,J.outcome=dt;for(var kt=-1,jt=J.queue.length;++kt<jt;)J.queue[kt].callRejected(dt);return J},mt.resolve=function(J){return J instanceof this?J:q.resolve(new this(ot),J)},mt.reject=function(J){var dt=new this(ot);return q.reject(dt,J)},mt.all=function(J){var dt=this;if(Object.prototype.toString.call(J)!=="[object Array]")return this.reject(new TypeError("must be an array"));var kt=J.length,jt=!1;if(!kt)return this.resolve([]);for(var Pt=new Array(kt),Jt=0,Wt=-1,oe=new this(ot);++Wt<kt;)Gt(J[Wt],Wt);return oe;function Gt(ve,Ue){dt.resolve(ve).then(function(bt){Pt[Ue]=bt,++Jt!==kt||jt||(jt=!0,q.resolve(oe,Pt))},function(bt){jt||(jt=!0,q.reject(oe,bt))})}},mt.race=function(J){var dt=this;if(Object.prototype.toString.call(J)!=="[object Array]")return this.reject(new TypeError("must be an array"));var kt=J.length,jt=!1;if(!kt)return this.resolve([]);for(var Pt=-1,Jt=new this(ot);++Pt<kt;)Wt=J[Pt],dt.resolve(Wt).then(function(oe){jt||(jt=!0,q.resolve(Jt,oe))},function(oe){jt||(jt=!0,q.reject(Jt,oe))});var Wt;return Jt}},{immediate:36}],38:[function(Lt,le,xt){"use strict";var ct={};(0,Lt("./lib/utils/common").assign)(ct,Lt("./lib/deflate"),Lt("./lib/inflate"),Lt("./lib/zlib/constants")),le.exports=ct},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(Lt,le,xt){"use strict";var ct=Lt("./zlib/deflate"),ot=Lt("./utils/common"),q=Lt("./utils/strings"),rt=Lt("./zlib/messages"),yt=Lt("./zlib/zstream"),St=Object.prototype.toString,mt=0,_t=-1,X=0,ft=8;function V(J){if(!(this instanceof V))return new V(J);this.options=ot.assign({level:_t,method:ft,chunkSize:16384,windowBits:15,memLevel:8,strategy:X,to:""},J||{});var dt=this.options;dt.raw&&0<dt.windowBits?dt.windowBits=-dt.windowBits:dt.gzip&&0<dt.windowBits&&dt.windowBits<16&&(dt.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new yt,this.strm.avail_out=0;var kt=ct.deflateInit2(this.strm,dt.level,dt.method,dt.windowBits,dt.memLevel,dt.strategy);if(kt!==mt)throw new Error(rt[kt]);if(dt.header&&ct.deflateSetHeader(this.strm,dt.header),dt.dictionary){var jt;if(jt=typeof dt.dictionary=="string"?q.string2buf(dt.dictionary):St.call(dt.dictionary)==="[object ArrayBuffer]"?new Uint8Array(dt.dictionary):dt.dictionary,(kt=ct.deflateSetDictionary(this.strm,jt))!==mt)throw new Error(rt[kt]);this._dict_set=!0}}function ut(J,dt){var kt=new V(dt);if(kt.push(J,!0),kt.err)throw kt.msg||rt[kt.err];return kt.result}V.prototype.push=function(J,dt){var kt,jt,Pt=this.strm,Jt=this.options.chunkSize;if(this.ended)return!1;jt=dt===~~dt?dt:dt===!0?4:0,typeof J=="string"?Pt.input=q.string2buf(J):St.call(J)==="[object ArrayBuffer]"?Pt.input=new Uint8Array(J):Pt.input=J,Pt.next_in=0,Pt.avail_in=Pt.input.length;do{if(Pt.avail_out===0&&(Pt.output=new ot.Buf8(Jt),Pt.next_out=0,Pt.avail_out=Jt),(kt=ct.deflate(Pt,jt))!==1&&kt!==mt)return this.onEnd(kt),!(this.ended=!0);Pt.avail_out!==0&&(Pt.avail_in!==0||jt!==4&&jt!==2)||(this.options.to==="string"?this.onData(q.buf2binstring(ot.shrinkBuf(Pt.output,Pt.next_out))):this.onData(ot.shrinkBuf(Pt.output,Pt.next_out)))}while((0<Pt.avail_in||Pt.avail_out===0)&&kt!==1);return jt===4?(kt=ct.deflateEnd(this.strm),this.onEnd(kt),this.ended=!0,kt===mt):jt!==2||(this.onEnd(mt),!(Pt.avail_out=0))},V.prototype.onData=function(J){this.chunks.push(J)},V.prototype.onEnd=function(J){J===mt&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ot.flattenChunks(this.chunks)),this.chunks=[],this.err=J,this.msg=this.strm.msg},xt.Deflate=V,xt.deflate=ut,xt.deflateRaw=function(J,dt){return(dt=dt||{}).raw=!0,ut(J,dt)},xt.gzip=function(J,dt){return(dt=dt||{}).gzip=!0,ut(J,dt)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(Lt,le,xt){"use strict";var ct=Lt("./zlib/inflate"),ot=Lt("./utils/common"),q=Lt("./utils/strings"),rt=Lt("./zlib/constants"),yt=Lt("./zlib/messages"),St=Lt("./zlib/zstream"),mt=Lt("./zlib/gzheader"),_t=Object.prototype.toString;function X(V){if(!(this instanceof X))return new X(V);this.options=ot.assign({chunkSize:16384,windowBits:0,to:""},V||{});var ut=this.options;ut.raw&&0<=ut.windowBits&&ut.windowBits<16&&(ut.windowBits=-ut.windowBits,ut.windowBits===0&&(ut.windowBits=-15)),!(0<=ut.windowBits&&ut.windowBits<16)||V&&V.windowBits||(ut.windowBits+=32),15<ut.windowBits&&ut.windowBits<48&&!(15&ut.windowBits)&&(ut.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new St,this.strm.avail_out=0;var J=ct.inflateInit2(this.strm,ut.windowBits);if(J!==rt.Z_OK)throw new Error(yt[J]);this.header=new mt,ct.inflateGetHeader(this.strm,this.header)}function ft(V,ut){var J=new X(ut);if(J.push(V,!0),J.err)throw J.msg||yt[J.err];return J.result}X.prototype.push=function(V,ut){var J,dt,kt,jt,Pt,Jt,Wt=this.strm,oe=this.options.chunkSize,Gt=this.options.dictionary,ve=!1;if(this.ended)return!1;dt=ut===~~ut?ut:ut===!0?rt.Z_FINISH:rt.Z_NO_FLUSH,typeof V=="string"?Wt.input=q.binstring2buf(V):_t.call(V)==="[object ArrayBuffer]"?Wt.input=new Uint8Array(V):Wt.input=V,Wt.next_in=0,Wt.avail_in=Wt.input.length;do{if(Wt.avail_out===0&&(Wt.output=new ot.Buf8(oe),Wt.next_out=0,Wt.avail_out=oe),(J=ct.inflate(Wt,rt.Z_NO_FLUSH))===rt.Z_NEED_DICT&&Gt&&(Jt=typeof Gt=="string"?q.string2buf(Gt):_t.call(Gt)==="[object ArrayBuffer]"?new Uint8Array(Gt):Gt,J=ct.inflateSetDictionary(this.strm,Jt)),J===rt.Z_BUF_ERROR&&ve===!0&&(J=rt.Z_OK,ve=!1),J!==rt.Z_STREAM_END&&J!==rt.Z_OK)return this.onEnd(J),!(this.ended=!0);Wt.next_out&&(Wt.avail_out!==0&&J!==rt.Z_STREAM_END&&(Wt.avail_in!==0||dt!==rt.Z_FINISH&&dt!==rt.Z_SYNC_FLUSH)||(this.options.to==="string"?(kt=q.utf8border(Wt.output,Wt.next_out),jt=Wt.next_out-kt,Pt=q.buf2string(Wt.output,kt),Wt.next_out=jt,Wt.avail_out=oe-jt,jt&&ot.arraySet(Wt.output,Wt.output,kt,jt,0),this.onData(Pt)):this.onData(ot.shrinkBuf(Wt.output,Wt.next_out)))),Wt.avail_in===0&&Wt.avail_out===0&&(ve=!0)}while((0<Wt.avail_in||Wt.avail_out===0)&&J!==rt.Z_STREAM_END);return J===rt.Z_STREAM_END&&(dt=rt.Z_FINISH),dt===rt.Z_FINISH?(J=ct.inflateEnd(this.strm),this.onEnd(J),this.ended=!0,J===rt.Z_OK):dt!==rt.Z_SYNC_FLUSH||(this.onEnd(rt.Z_OK),!(Wt.avail_out=0))},X.prototype.onData=function(V){this.chunks.push(V)},X.prototype.onEnd=function(V){V===rt.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ot.flattenChunks(this.chunks)),this.chunks=[],this.err=V,this.msg=this.strm.msg},xt.Inflate=X,xt.inflate=ft,xt.inflateRaw=function(V,ut){return(ut=ut||{}).raw=!0,ft(V,ut)},xt.ungzip=ft},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(Lt,le,xt){"use strict";var ct=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";xt.assign=function(rt){for(var yt=Array.prototype.slice.call(arguments,1);yt.length;){var St=yt.shift();if(St){if(typeof St!="object")throw new TypeError(St+"must be non-object");for(var mt in St)St.hasOwnProperty(mt)&&(rt[mt]=St[mt])}}return rt},xt.shrinkBuf=function(rt,yt){return rt.length===yt?rt:rt.subarray?rt.subarray(0,yt):(rt.length=yt,rt)};var ot={arraySet:function(rt,yt,St,mt,_t){if(yt.subarray&&rt.subarray)rt.set(yt.subarray(St,St+mt),_t);else for(var X=0;X<mt;X++)rt[_t+X]=yt[St+X]},flattenChunks:function(rt){var yt,St,mt,_t,X,ft;for(yt=mt=0,St=rt.length;yt<St;yt++)mt+=rt[yt].length;for(ft=new Uint8Array(mt),yt=_t=0,St=rt.length;yt<St;yt++)X=rt[yt],ft.set(X,_t),_t+=X.length;return ft}},q={arraySet:function(rt,yt,St,mt,_t){for(var X=0;X<mt;X++)rt[_t+X]=yt[St+X]},flattenChunks:function(rt){return[].concat.apply([],rt)}};xt.setTyped=function(rt){rt?(xt.Buf8=Uint8Array,xt.Buf16=Uint16Array,xt.Buf32=Int32Array,xt.assign(xt,ot)):(xt.Buf8=Array,xt.Buf16=Array,xt.Buf32=Array,xt.assign(xt,q))},xt.setTyped(ct)},{}],42:[function(Lt,le,xt){"use strict";var ct=Lt("./common"),ot=!0,q=!0;try{String.fromCharCode.apply(null,[0])}catch(mt){ot=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(mt){q=!1}for(var rt=new ct.Buf8(256),yt=0;yt<256;yt++)rt[yt]=252<=yt?6:248<=yt?5:240<=yt?4:224<=yt?3:192<=yt?2:1;function St(mt,_t){if(_t<65537&&(mt.subarray&&q||!mt.subarray&&ot))return String.fromCharCode.apply(null,ct.shrinkBuf(mt,_t));for(var X="",ft=0;ft<_t;ft++)X+=String.fromCharCode(mt[ft]);return X}rt[254]=rt[254]=1,xt.string2buf=function(mt){var _t,X,ft,V,ut,J=mt.length,dt=0;for(V=0;V<J;V++)(64512&(X=mt.charCodeAt(V)))==55296&&V+1<J&&(64512&(ft=mt.charCodeAt(V+1)))==56320&&(X=65536+(X-55296<<10)+(ft-56320),V++),dt+=X<128?1:X<2048?2:X<65536?3:4;for(_t=new ct.Buf8(dt),V=ut=0;ut<dt;V++)(64512&(X=mt.charCodeAt(V)))==55296&&V+1<J&&(64512&(ft=mt.charCodeAt(V+1)))==56320&&(X=65536+(X-55296<<10)+(ft-56320),V++),X<128?_t[ut++]=X:(X<2048?_t[ut++]=192|X>>>6:(X<65536?_t[ut++]=224|X>>>12:(_t[ut++]=240|X>>>18,_t[ut++]=128|X>>>12&63),_t[ut++]=128|X>>>6&63),_t[ut++]=128|63&X);return _t},xt.buf2binstring=function(mt){return St(mt,mt.length)},xt.binstring2buf=function(mt){for(var _t=new ct.Buf8(mt.length),X=0,ft=_t.length;X<ft;X++)_t[X]=mt.charCodeAt(X);return _t},xt.buf2string=function(mt,_t){var X,ft,V,ut,J=_t||mt.length,dt=new Array(2*J);for(X=ft=0;X<J;)if((V=mt[X++])<128)dt[ft++]=V;else if(4<(ut=rt[V]))dt[ft++]=65533,X+=ut-1;else{for(V&=ut===2?31:ut===3?15:7;1<ut&&X<J;)V=V<<6|63&mt[X++],ut--;1<ut?dt[ft++]=65533:V<65536?dt[ft++]=V:(V-=65536,dt[ft++]=55296|V>>10&1023,dt[ft++]=56320|1023&V)}return St(dt,ft)},xt.utf8border=function(mt,_t){var X;for((_t=_t||mt.length)>mt.length&&(_t=mt.length),X=_t-1;0<=X&&(192&mt[X])==128;)X--;return X<0||X===0?_t:X+rt[mt[X]]>_t?X:_t}},{"./common":41}],43:[function(Lt,le,xt){"use strict";le.exports=function(ct,ot,q,rt){for(var yt=65535&ct|0,St=ct>>>16&65535|0,mt=0;q!==0;){for(q-=mt=2e3<q?2e3:q;St=St+(yt=yt+ot[rt++]|0)|0,--mt;);yt%=65521,St%=65521}return yt|St<<16|0}},{}],44:[function(Lt,le,xt){"use strict";le.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(Lt,le,xt){"use strict";var ct=function(){for(var ot,q=[],rt=0;rt<256;rt++){ot=rt;for(var yt=0;yt<8;yt++)ot=1&ot?3988292384^ot>>>1:ot>>>1;q[rt]=ot}return q}();le.exports=function(ot,q,rt,yt){var St=ct,mt=yt+rt;ot^=-1;for(var _t=yt;_t<mt;_t++)ot=ot>>>8^St[255&(ot^q[_t])];return-1^ot}},{}],46:[function(Lt,le,xt){"use strict";var ct,ot=Lt("../utils/common"),q=Lt("./trees"),rt=Lt("./adler32"),yt=Lt("./crc32"),St=Lt("./messages"),mt=0,_t=4,X=0,ft=-2,V=-1,ut=4,J=2,dt=8,kt=9,jt=286,Pt=30,Jt=19,Wt=2*jt+1,oe=15,Gt=3,ve=258,Ue=ve+Gt+1,bt=42,Qt=113,D=1,Yt=2,Ze=3,ue=4;function Qe(S,Xt){return S.msg=St[Xt],Xt}function fe(S){return(S<<1)-(4<S?9:0)}function je(S){for(var Xt=S.length;0<=--Xt;)S[Xt]=0}function Ut(S){var Xt=S.state,qt=Xt.pending;qt>S.avail_out&&(qt=S.avail_out),qt!==0&&(ot.arraySet(S.output,Xt.pending_buf,Xt.pending_out,qt,S.next_out),S.next_out+=qt,Xt.pending_out+=qt,S.total_out+=qt,S.avail_out-=qt,Xt.pending-=qt,Xt.pending===0&&(Xt.pending_out=0))}function zt(S,Xt){q._tr_flush_block(S,0<=S.block_start?S.block_start:-1,S.strstart-S.block_start,Xt),S.block_start=S.strstart,Ut(S.strm)}function De(S,Xt){S.pending_buf[S.pending++]=Xt}function ke(S,Xt){S.pending_buf[S.pending++]=Xt>>>8&255,S.pending_buf[S.pending++]=255&Xt}function we(S,Xt){var qt,lt,et=S.max_chain_length,Ct=S.strstart,ie=S.prev_length,se=S.nice_match,Tt=S.strstart>S.w_size-Ue?S.strstart-(S.w_size-Ue):0,me=S.window,Ce=S.w_mask,be=S.prev,Oe=S.strstart+ve,mr=me[Ct+ie-1],rr=me[Ct+ie];S.prev_length>=S.good_match&&(et>>=2),se>S.lookahead&&(se=S.lookahead);do if(me[(qt=Xt)+ie]===rr&&me[qt+ie-1]===mr&&me[qt]===me[Ct]&&me[++qt]===me[Ct+1]){Ct+=2,qt++;do;while(me[++Ct]===me[++qt]&&me[++Ct]===me[++qt]&&me[++Ct]===me[++qt]&&me[++Ct]===me[++qt]&&me[++Ct]===me[++qt]&&me[++Ct]===me[++qt]&&me[++Ct]===me[++qt]&&me[++Ct]===me[++qt]&&Ct<Oe);if(lt=ve-(Oe-Ct),Ct=Oe-ve,ie<lt){if(S.match_start=Xt,se<=(ie=lt))break;mr=me[Ct+ie-1],rr=me[Ct+ie]}}while((Xt=be[Xt&Ce])>Tt&&--et!=0);return ie<=S.lookahead?ie:S.lookahead}function xr(S){var Xt,qt,lt,et,Ct,ie,se,Tt,me,Ce,be=S.w_size;do{if(et=S.window_size-S.lookahead-S.strstart,S.strstart>=be+(be-Ue)){for(ot.arraySet(S.window,S.window,be,be,0),S.match_start-=be,S.strstart-=be,S.block_start-=be,Xt=qt=S.hash_size;lt=S.head[--Xt],S.head[Xt]=be<=lt?lt-be:0,--qt;);for(Xt=qt=be;lt=S.prev[--Xt],S.prev[Xt]=be<=lt?lt-be:0,--qt;);et+=be}if(S.strm.avail_in===0)break;if(ie=S.strm,se=S.window,Tt=S.strstart+S.lookahead,me=et,Ce=void 0,Ce=ie.avail_in,me<Ce&&(Ce=me),qt=Ce===0?0:(ie.avail_in-=Ce,ot.arraySet(se,ie.input,ie.next_in,Ce,Tt),ie.state.wrap===1?ie.adler=rt(ie.adler,se,Ce,Tt):ie.state.wrap===2&&(ie.adler=yt(ie.adler,se,Ce,Tt)),ie.next_in+=Ce,ie.total_in+=Ce,Ce),S.lookahead+=qt,S.lookahead+S.insert>=Gt)for(Ct=S.strstart-S.insert,S.ins_h=S.window[Ct],S.ins_h=(S.ins_h<<S.hash_shift^S.window[Ct+1])&S.hash_mask;S.insert&&(S.ins_h=(S.ins_h<<S.hash_shift^S.window[Ct+Gt-1])&S.hash_mask,S.prev[Ct&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=Ct,Ct++,S.insert--,!(S.lookahead+S.insert<Gt)););}while(S.lookahead<Ue&&S.strm.avail_in!==0)}function Hr(S,Xt){for(var qt,lt;;){if(S.lookahead<Ue){if(xr(S),S.lookahead<Ue&&Xt===mt)return D;if(S.lookahead===0)break}if(qt=0,S.lookahead>=Gt&&(S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+Gt-1])&S.hash_mask,qt=S.prev[S.strstart&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=S.strstart),qt!==0&&S.strstart-qt<=S.w_size-Ue&&(S.match_length=we(S,qt)),S.match_length>=Gt)if(lt=q._tr_tally(S,S.strstart-S.match_start,S.match_length-Gt),S.lookahead-=S.match_length,S.match_length<=S.max_lazy_match&&S.lookahead>=Gt){for(S.match_length--;S.strstart++,S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+Gt-1])&S.hash_mask,qt=S.prev[S.strstart&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=S.strstart,--S.match_length!=0;);S.strstart++}else S.strstart+=S.match_length,S.match_length=0,S.ins_h=S.window[S.strstart],S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+1])&S.hash_mask;else lt=q._tr_tally(S,0,S.window[S.strstart]),S.lookahead--,S.strstart++;if(lt&&(zt(S,!1),S.strm.avail_out===0))return D}return S.insert=S.strstart<Gt-1?S.strstart:Gt-1,Xt===_t?(zt(S,!0),S.strm.avail_out===0?Ze:ue):S.last_lit&&(zt(S,!1),S.strm.avail_out===0)?D:Yt}function sr(S,Xt){for(var qt,lt,et;;){if(S.lookahead<Ue){if(xr(S),S.lookahead<Ue&&Xt===mt)return D;if(S.lookahead===0)break}if(qt=0,S.lookahead>=Gt&&(S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+Gt-1])&S.hash_mask,qt=S.prev[S.strstart&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=S.strstart),S.prev_length=S.match_length,S.prev_match=S.match_start,S.match_length=Gt-1,qt!==0&&S.prev_length<S.max_lazy_match&&S.strstart-qt<=S.w_size-Ue&&(S.match_length=we(S,qt),S.match_length<=5&&(S.strategy===1||S.match_length===Gt&&4096<S.strstart-S.match_start)&&(S.match_length=Gt-1)),S.prev_length>=Gt&&S.match_length<=S.prev_length){for(et=S.strstart+S.lookahead-Gt,lt=q._tr_tally(S,S.strstart-1-S.prev_match,S.prev_length-Gt),S.lookahead-=S.prev_length-1,S.prev_length-=2;++S.strstart<=et&&(S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+Gt-1])&S.hash_mask,qt=S.prev[S.strstart&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=S.strstart),--S.prev_length!=0;);if(S.match_available=0,S.match_length=Gt-1,S.strstart++,lt&&(zt(S,!1),S.strm.avail_out===0))return D}else if(S.match_available){if((lt=q._tr_tally(S,0,S.window[S.strstart-1]))&&zt(S,!1),S.strstart++,S.lookahead--,S.strm.avail_out===0)return D}else S.match_available=1,S.strstart++,S.lookahead--}return S.match_available&&(lt=q._tr_tally(S,0,S.window[S.strstart-1]),S.match_available=0),S.insert=S.strstart<Gt-1?S.strstart:Gt-1,Xt===_t?(zt(S,!0),S.strm.avail_out===0?Ze:ue):S.last_lit&&(zt(S,!1),S.strm.avail_out===0)?D:Yt}function fr(S,Xt,qt,lt,et){this.good_length=S,this.max_lazy=Xt,this.nice_length=qt,this.max_chain=lt,this.func=et}function Rr(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=dt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new ot.Buf16(2*Wt),this.dyn_dtree=new ot.Buf16(2*(2*Pt+1)),this.bl_tree=new ot.Buf16(2*(2*Jt+1)),je(this.dyn_ltree),je(this.dyn_dtree),je(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new ot.Buf16(oe+1),this.heap=new ot.Buf16(2*jt+1),je(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new ot.Buf16(2*jt+1),je(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ir(S){var Xt;return S&&S.state?(S.total_in=S.total_out=0,S.data_type=J,(Xt=S.state).pending=0,Xt.pending_out=0,Xt.wrap<0&&(Xt.wrap=-Xt.wrap),Xt.status=Xt.wrap?bt:Qt,S.adler=Xt.wrap===2?0:1,Xt.last_flush=mt,q._tr_init(Xt),X):Qe(S,ft)}function fn(S){var Xt=Ir(S);return Xt===X&&function(qt){qt.window_size=2*qt.w_size,je(qt.head),qt.max_lazy_match=ct[qt.level].max_lazy,qt.good_match=ct[qt.level].good_length,qt.nice_match=ct[qt.level].nice_length,qt.max_chain_length=ct[qt.level].max_chain,qt.strstart=0,qt.block_start=0,qt.lookahead=0,qt.insert=0,qt.match_length=qt.prev_length=Gt-1,qt.match_available=0,qt.ins_h=0}(S.state),Xt}function pn(S,Xt,qt,lt,et,Ct){if(!S)return ft;var ie=1;if(Xt===V&&(Xt=6),lt<0?(ie=0,lt=-lt):15<lt&&(ie=2,lt-=16),et<1||kt<et||qt!==dt||lt<8||15<lt||Xt<0||9<Xt||Ct<0||ut<Ct)return Qe(S,ft);lt===8&&(lt=9);var se=new Rr;return(S.state=se).strm=S,se.wrap=ie,se.gzhead=null,se.w_bits=lt,se.w_size=1<<se.w_bits,se.w_mask=se.w_size-1,se.hash_bits=et+7,se.hash_size=1<<se.hash_bits,se.hash_mask=se.hash_size-1,se.hash_shift=~~((se.hash_bits+Gt-1)/Gt),se.window=new ot.Buf8(2*se.w_size),se.head=new ot.Buf16(se.hash_size),se.prev=new ot.Buf16(se.w_size),se.lit_bufsize=1<<et+6,se.pending_buf_size=4*se.lit_bufsize,se.pending_buf=new ot.Buf8(se.pending_buf_size),se.d_buf=1*se.lit_bufsize,se.l_buf=3*se.lit_bufsize,se.level=Xt,se.strategy=Ct,se.method=qt,fn(S)}ct=[new fr(0,0,0,0,function(S,Xt){var qt=65535;for(qt>S.pending_buf_size-5&&(qt=S.pending_buf_size-5);;){if(S.lookahead<=1){if(xr(S),S.lookahead===0&&Xt===mt)return D;if(S.lookahead===0)break}S.strstart+=S.lookahead,S.lookahead=0;var lt=S.block_start+qt;if((S.strstart===0||S.strstart>=lt)&&(S.lookahead=S.strstart-lt,S.strstart=lt,zt(S,!1),S.strm.avail_out===0)||S.strstart-S.block_start>=S.w_size-Ue&&(zt(S,!1),S.strm.avail_out===0))return D}return S.insert=0,Xt===_t?(zt(S,!0),S.strm.avail_out===0?Ze:ue):(S.strstart>S.block_start&&(zt(S,!1),S.strm.avail_out),D)}),new fr(4,4,8,4,Hr),new fr(4,5,16,8,Hr),new fr(4,6,32,32,Hr),new fr(4,4,16,16,sr),new fr(8,16,32,32,sr),new fr(8,16,128,128,sr),new fr(8,32,128,256,sr),new fr(32,128,258,1024,sr),new fr(32,258,258,4096,sr)],xt.deflateInit=function(S,Xt){return pn(S,Xt,dt,15,8,0)},xt.deflateInit2=pn,xt.deflateReset=fn,xt.deflateResetKeep=Ir,xt.deflateSetHeader=function(S,Xt){return S&&S.state?S.state.wrap!==2?ft:(S.state.gzhead=Xt,X):ft},xt.deflate=function(S,Xt){var qt,lt,et,Ct;if(!S||!S.state||5<Xt||Xt<0)return S?Qe(S,ft):ft;if(lt=S.state,!S.output||!S.input&&S.avail_in!==0||lt.status===666&&Xt!==_t)return Qe(S,S.avail_out===0?-5:ft);if(lt.strm=S,qt=lt.last_flush,lt.last_flush=Xt,lt.status===bt)if(lt.wrap===2)S.adler=0,De(lt,31),De(lt,139),De(lt,8),lt.gzhead?(De(lt,(lt.gzhead.text?1:0)+(lt.gzhead.hcrc?2:0)+(lt.gzhead.extra?4:0)+(lt.gzhead.name?8:0)+(lt.gzhead.comment?16:0)),De(lt,255<.gzhead.time),De(lt,lt.gzhead.time>>8&255),De(lt,lt.gzhead.time>>16&255),De(lt,lt.gzhead.time>>24&255),De(lt,lt.level===9?2:2<=lt.strategy||lt.level<2?4:0),De(lt,255<.gzhead.os),lt.gzhead.extra&<.gzhead.extra.length&&(De(lt,255<.gzhead.extra.length),De(lt,lt.gzhead.extra.length>>8&255)),lt.gzhead.hcrc&&(S.adler=yt(S.adler,lt.pending_buf,lt.pending,0)),lt.gzindex=0,lt.status=69):(De(lt,0),De(lt,0),De(lt,0),De(lt,0),De(lt,0),De(lt,lt.level===9?2:2<=lt.strategy||lt.level<2?4:0),De(lt,3),lt.status=Qt);else{var ie=dt+(lt.w_bits-8<<4)<<8;ie|=(2<=lt.strategy||lt.level<2?0:lt.level<6?1:lt.level===6?2:3)<<6,lt.strstart!==0&&(ie|=32),ie+=31-ie%31,lt.status=Qt,ke(lt,ie),lt.strstart!==0&&(ke(lt,S.adler>>>16),ke(lt,65535&S.adler)),S.adler=1}if(lt.status===69)if(lt.gzhead.extra){for(et=lt.pending;lt.gzindex<(65535<.gzhead.extra.length)&&(lt.pending!==lt.pending_buf_size||(lt.gzhead.hcrc&<.pending>et&&(S.adler=yt(S.adler,lt.pending_buf,lt.pending-et,et)),Ut(S),et=lt.pending,lt.pending!==lt.pending_buf_size));)De(lt,255<.gzhead.extra[lt.gzindex]),lt.gzindex++;lt.gzhead.hcrc&<.pending>et&&(S.adler=yt(S.adler,lt.pending_buf,lt.pending-et,et)),lt.gzindex===lt.gzhead.extra.length&&(lt.gzindex=0,lt.status=73)}else lt.status=73;if(lt.status===73)if(lt.gzhead.name){et=lt.pending;do{if(lt.pending===lt.pending_buf_size&&(lt.gzhead.hcrc&<.pending>et&&(S.adler=yt(S.adler,lt.pending_buf,lt.pending-et,et)),Ut(S),et=lt.pending,lt.pending===lt.pending_buf_size)){Ct=1;break}Ct=lt.gzindex<lt.gzhead.name.length?255<.gzhead.name.charCodeAt(lt.gzindex++):0,De(lt,Ct)}while(Ct!==0);lt.gzhead.hcrc&<.pending>et&&(S.adler=yt(S.adler,lt.pending_buf,lt.pending-et,et)),Ct===0&&(lt.gzindex=0,lt.status=91)}else lt.status=91;if(lt.status===91)if(lt.gzhead.comment){et=lt.pending;do{if(lt.pending===lt.pending_buf_size&&(lt.gzhead.hcrc&<.pending>et&&(S.adler=yt(S.adler,lt.pending_buf,lt.pending-et,et)),Ut(S),et=lt.pending,lt.pending===lt.pending_buf_size)){Ct=1;break}Ct=lt.gzindex<lt.gzhead.comment.length?255<.gzhead.comment.charCodeAt(lt.gzindex++):0,De(lt,Ct)}while(Ct!==0);lt.gzhead.hcrc&<.pending>et&&(S.adler=yt(S.adler,lt.pending_buf,lt.pending-et,et)),Ct===0&&(lt.status=103)}else lt.status=103;if(lt.status===103&&(lt.gzhead.hcrc?(lt.pending+2>lt.pending_buf_size&&Ut(S),lt.pending+2<=lt.pending_buf_size&&(De(lt,255&S.adler),De(lt,S.adler>>8&255),S.adler=0,lt.status=Qt)):lt.status=Qt),lt.pending!==0){if(Ut(S),S.avail_out===0)return lt.last_flush=-1,X}else if(S.avail_in===0&&fe(Xt)<=fe(qt)&&Xt!==_t)return Qe(S,-5);if(lt.status===666&&S.avail_in!==0)return Qe(S,-5);if(S.avail_in!==0||lt.lookahead!==0||Xt!==mt&<.status!==666){var se=lt.strategy===2?function(Tt,me){for(var Ce;;){if(Tt.lookahead===0&&(xr(Tt),Tt.lookahead===0)){if(me===mt)return D;break}if(Tt.match_length=0,Ce=q._tr_tally(Tt,0,Tt.window[Tt.strstart]),Tt.lookahead--,Tt.strstart++,Ce&&(zt(Tt,!1),Tt.strm.avail_out===0))return D}return Tt.insert=0,me===_t?(zt(Tt,!0),Tt.strm.avail_out===0?Ze:ue):Tt.last_lit&&(zt(Tt,!1),Tt.strm.avail_out===0)?D:Yt}(lt,Xt):lt.strategy===3?function(Tt,me){for(var Ce,be,Oe,mr,rr=Tt.window;;){if(Tt.lookahead<=ve){if(xr(Tt),Tt.lookahead<=ve&&me===mt)return D;if(Tt.lookahead===0)break}if(Tt.match_length=0,Tt.lookahead>=Gt&&0<Tt.strstart&&(be=rr[Oe=Tt.strstart-1])===rr[++Oe]&&be===rr[++Oe]&&be===rr[++Oe]){mr=Tt.strstart+ve;do;while(be===rr[++Oe]&&be===rr[++Oe]&&be===rr[++Oe]&&be===rr[++Oe]&&be===rr[++Oe]&&be===rr[++Oe]&&be===rr[++Oe]&&be===rr[++Oe]&&Oe<mr);Tt.match_length=ve-(mr-Oe),Tt.match_length>Tt.lookahead&&(Tt.match_length=Tt.lookahead)}if(Tt.match_length>=Gt?(Ce=q._tr_tally(Tt,1,Tt.match_length-Gt),Tt.lookahead-=Tt.match_length,Tt.strstart+=Tt.match_length,Tt.match_length=0):(Ce=q._tr_tally(Tt,0,Tt.window[Tt.strstart]),Tt.lookahead--,Tt.strstart++),Ce&&(zt(Tt,!1),Tt.strm.avail_out===0))return D}return Tt.insert=0,me===_t?(zt(Tt,!0),Tt.strm.avail_out===0?Ze:ue):Tt.last_lit&&(zt(Tt,!1),Tt.strm.avail_out===0)?D:Yt}(lt,Xt):ct[lt.level].func(lt,Xt);if(se!==Ze&&se!==ue||(lt.status=666),se===D||se===Ze)return S.avail_out===0&&(lt.last_flush=-1),X;if(se===Yt&&(Xt===1?q._tr_align(lt):Xt!==5&&(q._tr_stored_block(lt,0,0,!1),Xt===3&&(je(lt.head),lt.lookahead===0&&(lt.strstart=0,lt.block_start=0,lt.insert=0))),Ut(S),S.avail_out===0))return lt.last_flush=-1,X}return Xt!==_t?X:lt.wrap<=0?1:(lt.wrap===2?(De(lt,255&S.adler),De(lt,S.adler>>8&255),De(lt,S.adler>>16&255),De(lt,S.adler>>24&255),De(lt,255&S.total_in),De(lt,S.total_in>>8&255),De(lt,S.total_in>>16&255),De(lt,S.total_in>>24&255)):(ke(lt,S.adler>>>16),ke(lt,65535&S.adler)),Ut(S),0<lt.wrap&&(lt.wrap=-lt.wrap),lt.pending!==0?X:1)},xt.deflateEnd=function(S){var Xt;return S&&S.state?(Xt=S.state.status)!==bt&&Xt!==69&&Xt!==73&&Xt!==91&&Xt!==103&&Xt!==Qt&&Xt!==666?Qe(S,ft):(S.state=null,Xt===Qt?Qe(S,-3):X):ft},xt.deflateSetDictionary=function(S,Xt){var qt,lt,et,Ct,ie,se,Tt,me,Ce=Xt.length;if(!S||!S.state||(Ct=(qt=S.state).wrap)===2||Ct===1&&qt.status!==bt||qt.lookahead)return ft;for(Ct===1&&(S.adler=rt(S.adler,Xt,Ce,0)),qt.wrap=0,Ce>=qt.w_size&&(Ct===0&&(je(qt.head),qt.strstart=0,qt.block_start=0,qt.insert=0),me=new ot.Buf8(qt.w_size),ot.arraySet(me,Xt,Ce-qt.w_size,qt.w_size,0),Xt=me,Ce=qt.w_size),ie=S.avail_in,se=S.next_in,Tt=S.input,S.avail_in=Ce,S.next_in=0,S.input=Xt,xr(qt);qt.lookahead>=Gt;){for(lt=qt.strstart,et=qt.lookahead-(Gt-1);qt.ins_h=(qt.ins_h<<qt.hash_shift^qt.window[lt+Gt-1])&qt.hash_mask,qt.prev[lt&qt.w_mask]=qt.head[qt.ins_h],qt.head[qt.ins_h]=lt,lt++,--et;);qt.strstart=lt,qt.lookahead=Gt-1,xr(qt)}return qt.strstart+=qt.lookahead,qt.block_start=qt.strstart,qt.insert=qt.lookahead,qt.lookahead=0,qt.match_length=qt.prev_length=Gt-1,qt.match_available=0,S.next_in=se,S.input=Tt,S.avail_in=ie,qt.wrap=Ct,X},xt.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(Lt,le,xt){"use strict";le.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(Lt,le,xt){"use strict";le.exports=function(ct,ot){var q,rt,yt,St,mt,_t,X,ft,V,ut,J,dt,kt,jt,Pt,Jt,Wt,oe,Gt,ve,Ue,bt,Qt,D,Yt;q=ct.state,rt=ct.next_in,D=ct.input,yt=rt+(ct.avail_in-5),St=ct.next_out,Yt=ct.output,mt=St-(ot-ct.avail_out),_t=St+(ct.avail_out-257),X=q.dmax,ft=q.wsize,V=q.whave,ut=q.wnext,J=q.window,dt=q.hold,kt=q.bits,jt=q.lencode,Pt=q.distcode,Jt=(1<<q.lenbits)-1,Wt=(1<<q.distbits)-1;t:do{kt<15&&(dt+=D[rt++]<<kt,kt+=8,dt+=D[rt++]<<kt,kt+=8),oe=jt[dt&Jt];e:for(;;){if(dt>>>=Gt=oe>>>24,kt-=Gt,(Gt=oe>>>16&255)===0)Yt[St++]=65535&oe;else{if(!(16&Gt)){if(!(64&Gt)){oe=jt[(65535&oe)+(dt&(1<<Gt)-1)];continue e}if(32&Gt){q.mode=12;break t}ct.msg="invalid literal/length code",q.mode=30;break t}ve=65535&oe,(Gt&=15)&&(kt<Gt&&(dt+=D[rt++]<<kt,kt+=8),ve+=dt&(1<<Gt)-1,dt>>>=Gt,kt-=Gt),kt<15&&(dt+=D[rt++]<<kt,kt+=8,dt+=D[rt++]<<kt,kt+=8),oe=Pt[dt&Wt];r:for(;;){if(dt>>>=Gt=oe>>>24,kt-=Gt,!(16&(Gt=oe>>>16&255))){if(!(64&Gt)){oe=Pt[(65535&oe)+(dt&(1<<Gt)-1)];continue r}ct.msg="invalid distance code",q.mode=30;break t}if(Ue=65535&oe,kt<(Gt&=15)&&(dt+=D[rt++]<<kt,(kt+=8)<Gt&&(dt+=D[rt++]<<kt,kt+=8)),X<(Ue+=dt&(1<<Gt)-1)){ct.msg="invalid distance too far back",q.mode=30;break t}if(dt>>>=Gt,kt-=Gt,(Gt=St-mt)<Ue){if(V<(Gt=Ue-Gt)&&q.sane){ct.msg="invalid distance too far back",q.mode=30;break t}if(Qt=J,(bt=0)===ut){if(bt+=ft-Gt,Gt<ve){for(ve-=Gt;Yt[St++]=J[bt++],--Gt;);bt=St-Ue,Qt=Yt}}else if(ut<Gt){if(bt+=ft+ut-Gt,(Gt-=ut)<ve){for(ve-=Gt;Yt[St++]=J[bt++],--Gt;);if(bt=0,ut<ve){for(ve-=Gt=ut;Yt[St++]=J[bt++],--Gt;);bt=St-Ue,Qt=Yt}}}else if(bt+=ut-Gt,Gt<ve){for(ve-=Gt;Yt[St++]=J[bt++],--Gt;);bt=St-Ue,Qt=Yt}for(;2<ve;)Yt[St++]=Qt[bt++],Yt[St++]=Qt[bt++],Yt[St++]=Qt[bt++],ve-=3;ve&&(Yt[St++]=Qt[bt++],1<ve&&(Yt[St++]=Qt[bt++]))}else{for(bt=St-Ue;Yt[St++]=Yt[bt++],Yt[St++]=Yt[bt++],Yt[St++]=Yt[bt++],2<(ve-=3););ve&&(Yt[St++]=Yt[bt++],1<ve&&(Yt[St++]=Yt[bt++]))}break}}break}}while(rt<yt&&St<_t);rt-=ve=kt>>3,dt&=(1<<(kt-=ve<<3))-1,ct.next_in=rt,ct.next_out=St,ct.avail_in=rt<yt?yt-rt+5:5-(rt-yt),ct.avail_out=St<_t?_t-St+257:257-(St-_t),q.hold=dt,q.bits=kt}},{}],49:[function(Lt,le,xt){"use strict";var ct=Lt("../utils/common"),ot=Lt("./adler32"),q=Lt("./crc32"),rt=Lt("./inffast"),yt=Lt("./inftrees"),St=1,mt=2,_t=0,X=-2,ft=1,V=852,ut=592;function J(bt){return(bt>>>24&255)+(bt>>>8&65280)+((65280&bt)<<8)+((255&bt)<<24)}function dt(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new ct.Buf16(320),this.work=new ct.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function kt(bt){var Qt;return bt&&bt.state?(Qt=bt.state,bt.total_in=bt.total_out=Qt.total=0,bt.msg="",Qt.wrap&&(bt.adler=1&Qt.wrap),Qt.mode=ft,Qt.last=0,Qt.havedict=0,Qt.dmax=32768,Qt.head=null,Qt.hold=0,Qt.bits=0,Qt.lencode=Qt.lendyn=new ct.Buf32(V),Qt.distcode=Qt.distdyn=new ct.Buf32(ut),Qt.sane=1,Qt.back=-1,_t):X}function jt(bt){var Qt;return bt&&bt.state?((Qt=bt.state).wsize=0,Qt.whave=0,Qt.wnext=0,kt(bt)):X}function Pt(bt,Qt){var D,Yt;return bt&&bt.state?(Yt=bt.state,Qt<0?(D=0,Qt=-Qt):(D=1+(Qt>>4),Qt<48&&(Qt&=15)),Qt&&(Qt<8||15<Qt)?X:(Yt.window!==null&&Yt.wbits!==Qt&&(Yt.window=null),Yt.wrap=D,Yt.wbits=Qt,jt(bt))):X}function Jt(bt,Qt){var D,Yt;return bt?(Yt=new dt,(bt.state=Yt).window=null,(D=Pt(bt,Qt))!==_t&&(bt.state=null),D):X}var Wt,oe,Gt=!0;function ve(bt){if(Gt){var Qt;for(Wt=new ct.Buf32(512),oe=new ct.Buf32(32),Qt=0;Qt<144;)bt.lens[Qt++]=8;for(;Qt<256;)bt.lens[Qt++]=9;for(;Qt<280;)bt.lens[Qt++]=7;for(;Qt<288;)bt.lens[Qt++]=8;for(yt(St,bt.lens,0,288,Wt,0,bt.work,{bits:9}),Qt=0;Qt<32;)bt.lens[Qt++]=5;yt(mt,bt.lens,0,32,oe,0,bt.work,{bits:5}),Gt=!1}bt.lencode=Wt,bt.lenbits=9,bt.distcode=oe,bt.distbits=5}function Ue(bt,Qt,D,Yt){var Ze,ue=bt.state;return ue.window===null&&(ue.wsize=1<<ue.wbits,ue.wnext=0,ue.whave=0,ue.window=new ct.Buf8(ue.wsize)),Yt>=ue.wsize?(ct.arraySet(ue.window,Qt,D-ue.wsize,ue.wsize,0),ue.wnext=0,ue.whave=ue.wsize):(Yt<(Ze=ue.wsize-ue.wnext)&&(Ze=Yt),ct.arraySet(ue.window,Qt,D-Yt,Ze,ue.wnext),(Yt-=Ze)?(ct.arraySet(ue.window,Qt,D-Yt,Yt,0),ue.wnext=Yt,ue.whave=ue.wsize):(ue.wnext+=Ze,ue.wnext===ue.wsize&&(ue.wnext=0),ue.whave<ue.wsize&&(ue.whave+=Ze))),0}xt.inflateReset=jt,xt.inflateReset2=Pt,xt.inflateResetKeep=kt,xt.inflateInit=function(bt){return Jt(bt,15)},xt.inflateInit2=Jt,xt.inflate=function(bt,Qt){var D,Yt,Ze,ue,Qe,fe,je,Ut,zt,De,ke,we,xr,Hr,sr,fr,Rr,Ir,fn,pn,S,Xt,qt,lt,et=0,Ct=new ct.Buf8(4),ie=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!bt||!bt.state||!bt.output||!bt.input&&bt.avail_in!==0)return X;(D=bt.state).mode===12&&(D.mode=13),Qe=bt.next_out,Ze=bt.output,je=bt.avail_out,ue=bt.next_in,Yt=bt.input,fe=bt.avail_in,Ut=D.hold,zt=D.bits,De=fe,ke=je,Xt=_t;t:for(;;)switch(D.mode){case ft:if(D.wrap===0){D.mode=13;break}for(;zt<16;){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}if(2&D.wrap&&Ut===35615){Ct[D.check=0]=255&Ut,Ct[1]=Ut>>>8&255,D.check=q(D.check,Ct,2,0),zt=Ut=0,D.mode=2;break}if(D.flags=0,D.head&&(D.head.done=!1),!(1&D.wrap)||(((255&Ut)<<8)+(Ut>>8))%31){bt.msg="incorrect header check",D.mode=30;break}if((15&Ut)!=8){bt.msg="unknown compression method",D.mode=30;break}if(zt-=4,S=8+(15&(Ut>>>=4)),D.wbits===0)D.wbits=S;else if(S>D.wbits){bt.msg="invalid window size",D.mode=30;break}D.dmax=1<<S,bt.adler=D.check=1,D.mode=512&Ut?10:12,zt=Ut=0;break;case 2:for(;zt<16;){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}if(D.flags=Ut,(255&D.flags)!=8){bt.msg="unknown compression method",D.mode=30;break}if(57344&D.flags){bt.msg="unknown header flags set",D.mode=30;break}D.head&&(D.head.text=Ut>>8&1),512&D.flags&&(Ct[0]=255&Ut,Ct[1]=Ut>>>8&255,D.check=q(D.check,Ct,2,0)),zt=Ut=0,D.mode=3;case 3:for(;zt<32;){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}D.head&&(D.head.time=Ut),512&D.flags&&(Ct[0]=255&Ut,Ct[1]=Ut>>>8&255,Ct[2]=Ut>>>16&255,Ct[3]=Ut>>>24&255,D.check=q(D.check,Ct,4,0)),zt=Ut=0,D.mode=4;case 4:for(;zt<16;){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}D.head&&(D.head.xflags=255&Ut,D.head.os=Ut>>8),512&D.flags&&(Ct[0]=255&Ut,Ct[1]=Ut>>>8&255,D.check=q(D.check,Ct,2,0)),zt=Ut=0,D.mode=5;case 5:if(1024&D.flags){for(;zt<16;){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}D.length=Ut,D.head&&(D.head.extra_len=Ut),512&D.flags&&(Ct[0]=255&Ut,Ct[1]=Ut>>>8&255,D.check=q(D.check,Ct,2,0)),zt=Ut=0}else D.head&&(D.head.extra=null);D.mode=6;case 6:if(1024&D.flags&&(fe<(we=D.length)&&(we=fe),we&&(D.head&&(S=D.head.extra_len-D.length,D.head.extra||(D.head.extra=new Array(D.head.extra_len)),ct.arraySet(D.head.extra,Yt,ue,we,S)),512&D.flags&&(D.check=q(D.check,Yt,we,ue)),fe-=we,ue+=we,D.length-=we),D.length))break t;D.length=0,D.mode=7;case 7:if(2048&D.flags){if(fe===0)break t;for(we=0;S=Yt[ue+we++],D.head&&S&&D.length<65536&&(D.head.name+=String.fromCharCode(S)),S&&we<fe;);if(512&D.flags&&(D.check=q(D.check,Yt,we,ue)),fe-=we,ue+=we,S)break t}else D.head&&(D.head.name=null);D.length=0,D.mode=8;case 8:if(4096&D.flags){if(fe===0)break t;for(we=0;S=Yt[ue+we++],D.head&&S&&D.length<65536&&(D.head.comment+=String.fromCharCode(S)),S&&we<fe;);if(512&D.flags&&(D.check=q(D.check,Yt,we,ue)),fe-=we,ue+=we,S)break t}else D.head&&(D.head.comment=null);D.mode=9;case 9:if(512&D.flags){for(;zt<16;){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}if(Ut!==(65535&D.check)){bt.msg="header crc mismatch",D.mode=30;break}zt=Ut=0}D.head&&(D.head.hcrc=D.flags>>9&1,D.head.done=!0),bt.adler=D.check=0,D.mode=12;break;case 10:for(;zt<32;){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}bt.adler=D.check=J(Ut),zt=Ut=0,D.mode=11;case 11:if(D.havedict===0)return bt.next_out=Qe,bt.avail_out=je,bt.next_in=ue,bt.avail_in=fe,D.hold=Ut,D.bits=zt,2;bt.adler=D.check=1,D.mode=12;case 12:if(Qt===5||Qt===6)break t;case 13:if(D.last){Ut>>>=7&zt,zt-=7&zt,D.mode=27;break}for(;zt<3;){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}switch(D.last=1&Ut,zt-=1,3&(Ut>>>=1)){case 0:D.mode=14;break;case 1:if(ve(D),D.mode=20,Qt!==6)break;Ut>>>=2,zt-=2;break t;case 2:D.mode=17;break;case 3:bt.msg="invalid block type",D.mode=30}Ut>>>=2,zt-=2;break;case 14:for(Ut>>>=7&zt,zt-=7&zt;zt<32;){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}if((65535&Ut)!=(Ut>>>16^65535)){bt.msg="invalid stored block lengths",D.mode=30;break}if(D.length=65535&Ut,zt=Ut=0,D.mode=15,Qt===6)break t;case 15:D.mode=16;case 16:if(we=D.length){if(fe<we&&(we=fe),je<we&&(we=je),we===0)break t;ct.arraySet(Ze,Yt,ue,we,Qe),fe-=we,ue+=we,je-=we,Qe+=we,D.length-=we;break}D.mode=12;break;case 17:for(;zt<14;){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}if(D.nlen=257+(31&Ut),Ut>>>=5,zt-=5,D.ndist=1+(31&Ut),Ut>>>=5,zt-=5,D.ncode=4+(15&Ut),Ut>>>=4,zt-=4,286<D.nlen||30<D.ndist){bt.msg="too many length or distance symbols",D.mode=30;break}D.have=0,D.mode=18;case 18:for(;D.have<D.ncode;){for(;zt<3;){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}D.lens[ie[D.have++]]=7&Ut,Ut>>>=3,zt-=3}for(;D.have<19;)D.lens[ie[D.have++]]=0;if(D.lencode=D.lendyn,D.lenbits=7,qt={bits:D.lenbits},Xt=yt(0,D.lens,0,19,D.lencode,0,D.work,qt),D.lenbits=qt.bits,Xt){bt.msg="invalid code lengths set",D.mode=30;break}D.have=0,D.mode=19;case 19:for(;D.have<D.nlen+D.ndist;){for(;fr=(et=D.lencode[Ut&(1<<D.lenbits)-1])>>>16&255,Rr=65535&et,!((sr=et>>>24)<=zt);){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}if(Rr<16)Ut>>>=sr,zt-=sr,D.lens[D.have++]=Rr;else{if(Rr===16){for(lt=sr+2;zt<lt;){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}if(Ut>>>=sr,zt-=sr,D.have===0){bt.msg="invalid bit length repeat",D.mode=30;break}S=D.lens[D.have-1],we=3+(3&Ut),Ut>>>=2,zt-=2}else if(Rr===17){for(lt=sr+3;zt<lt;){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}zt-=sr,S=0,we=3+(7&(Ut>>>=sr)),Ut>>>=3,zt-=3}else{for(lt=sr+7;zt<lt;){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}zt-=sr,S=0,we=11+(127&(Ut>>>=sr)),Ut>>>=7,zt-=7}if(D.have+we>D.nlen+D.ndist){bt.msg="invalid bit length repeat",D.mode=30;break}for(;we--;)D.lens[D.have++]=S}}if(D.mode===30)break;if(D.lens[256]===0){bt.msg="invalid code -- missing end-of-block",D.mode=30;break}if(D.lenbits=9,qt={bits:D.lenbits},Xt=yt(St,D.lens,0,D.nlen,D.lencode,0,D.work,qt),D.lenbits=qt.bits,Xt){bt.msg="invalid literal/lengths set",D.mode=30;break}if(D.distbits=6,D.distcode=D.distdyn,qt={bits:D.distbits},Xt=yt(mt,D.lens,D.nlen,D.ndist,D.distcode,0,D.work,qt),D.distbits=qt.bits,Xt){bt.msg="invalid distances set",D.mode=30;break}if(D.mode=20,Qt===6)break t;case 20:D.mode=21;case 21:if(6<=fe&&258<=je){bt.next_out=Qe,bt.avail_out=je,bt.next_in=ue,bt.avail_in=fe,D.hold=Ut,D.bits=zt,rt(bt,ke),Qe=bt.next_out,Ze=bt.output,je=bt.avail_out,ue=bt.next_in,Yt=bt.input,fe=bt.avail_in,Ut=D.hold,zt=D.bits,D.mode===12&&(D.back=-1);break}for(D.back=0;fr=(et=D.lencode[Ut&(1<<D.lenbits)-1])>>>16&255,Rr=65535&et,!((sr=et>>>24)<=zt);){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}if(fr&&!(240&fr)){for(Ir=sr,fn=fr,pn=Rr;fr=(et=D.lencode[pn+((Ut&(1<<Ir+fn)-1)>>Ir)])>>>16&255,Rr=65535&et,!(Ir+(sr=et>>>24)<=zt);){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}Ut>>>=Ir,zt-=Ir,D.back+=Ir}if(Ut>>>=sr,zt-=sr,D.back+=sr,D.length=Rr,fr===0){D.mode=26;break}if(32&fr){D.back=-1,D.mode=12;break}if(64&fr){bt.msg="invalid literal/length code",D.mode=30;break}D.extra=15&fr,D.mode=22;case 22:if(D.extra){for(lt=D.extra;zt<lt;){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}D.length+=Ut&(1<<D.extra)-1,Ut>>>=D.extra,zt-=D.extra,D.back+=D.extra}D.was=D.length,D.mode=23;case 23:for(;fr=(et=D.distcode[Ut&(1<<D.distbits)-1])>>>16&255,Rr=65535&et,!((sr=et>>>24)<=zt);){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}if(!(240&fr)){for(Ir=sr,fn=fr,pn=Rr;fr=(et=D.distcode[pn+((Ut&(1<<Ir+fn)-1)>>Ir)])>>>16&255,Rr=65535&et,!(Ir+(sr=et>>>24)<=zt);){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}Ut>>>=Ir,zt-=Ir,D.back+=Ir}if(Ut>>>=sr,zt-=sr,D.back+=sr,64&fr){bt.msg="invalid distance code",D.mode=30;break}D.offset=Rr,D.extra=15&fr,D.mode=24;case 24:if(D.extra){for(lt=D.extra;zt<lt;){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}D.offset+=Ut&(1<<D.extra)-1,Ut>>>=D.extra,zt-=D.extra,D.back+=D.extra}if(D.offset>D.dmax){bt.msg="invalid distance too far back",D.mode=30;break}D.mode=25;case 25:if(je===0)break t;if(we=ke-je,D.offset>we){if((we=D.offset-we)>D.whave&&D.sane){bt.msg="invalid distance too far back",D.mode=30;break}xr=we>D.wnext?(we-=D.wnext,D.wsize-we):D.wnext-we,we>D.length&&(we=D.length),Hr=D.window}else Hr=Ze,xr=Qe-D.offset,we=D.length;for(je<we&&(we=je),je-=we,D.length-=we;Ze[Qe++]=Hr[xr++],--we;);D.length===0&&(D.mode=21);break;case 26:if(je===0)break t;Ze[Qe++]=D.length,je--,D.mode=21;break;case 27:if(D.wrap){for(;zt<32;){if(fe===0)break t;fe--,Ut|=Yt[ue++]<<zt,zt+=8}if(ke-=je,bt.total_out+=ke,D.total+=ke,ke&&(bt.adler=D.check=D.flags?q(D.check,Ze,ke,Qe-ke):ot(D.check,Ze,ke,Qe-ke)),ke=je,(D.flags?Ut:J(Ut))!==D.check){bt.msg="incorrect data check",D.mode=30;break}zt=Ut=0}D.mode=28;case 28:if(D.wrap&&D.flags){for(;zt<32;){if(fe===0)break t;fe--,Ut+=Yt[ue++]<<zt,zt+=8}if(Ut!==(4294967295&D.total)){bt.msg="incorrect length check",D.mode=30;break}zt=Ut=0}D.mode=29;case 29:Xt=1;break t;case 30:Xt=-3;break t;case 31:return-4;case 32:default:return X}return bt.next_out=Qe,bt.avail_out=je,bt.next_in=ue,bt.avail_in=fe,D.hold=Ut,D.bits=zt,(D.wsize||ke!==bt.avail_out&&D.mode<30&&(D.mode<27||Qt!==4))&&Ue(bt,bt.output,bt.next_out,ke-bt.avail_out)?(D.mode=31,-4):(De-=bt.avail_in,ke-=bt.avail_out,bt.total_in+=De,bt.total_out+=ke,D.total+=ke,D.wrap&&ke&&(bt.adler=D.check=D.flags?q(D.check,Ze,ke,bt.next_out-ke):ot(D.check,Ze,ke,bt.next_out-ke)),bt.data_type=D.bits+(D.last?64:0)+(D.mode===12?128:0)+(D.mode===20||D.mode===15?256:0),(De==0&&ke===0||Qt===4)&&Xt===_t&&(Xt=-5),Xt)},xt.inflateEnd=function(bt){if(!bt||!bt.state)return X;var Qt=bt.state;return Qt.window&&(Qt.window=null),bt.state=null,_t},xt.inflateGetHeader=function(bt,Qt){var D;return bt&&bt.state&&2&(D=bt.state).wrap?((D.head=Qt).done=!1,_t):X},xt.inflateSetDictionary=function(bt,Qt){var D,Yt=Qt.length;return bt&&bt.state?(D=bt.state).wrap!==0&&D.mode!==11?X:D.mode===11&&ot(1,Qt,Yt,0)!==D.check?-3:Ue(bt,Qt,Yt,Yt)?(D.mode=31,-4):(D.havedict=1,_t):X},xt.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(Lt,le,xt){"use strict";var ct=Lt("../utils/common"),ot=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],q=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],rt=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],yt=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];le.exports=function(St,mt,_t,X,ft,V,ut,J){var dt,kt,jt,Pt,Jt,Wt,oe,Gt,ve,Ue=J.bits,bt=0,Qt=0,D=0,Yt=0,Ze=0,ue=0,Qe=0,fe=0,je=0,Ut=0,zt=null,De=0,ke=new ct.Buf16(16),we=new ct.Buf16(16),xr=null,Hr=0;for(bt=0;bt<=15;bt++)ke[bt]=0;for(Qt=0;Qt<X;Qt++)ke[mt[_t+Qt]]++;for(Ze=Ue,Yt=15;1<=Yt&&ke[Yt]===0;Yt--);if(Yt<Ze&&(Ze=Yt),Yt===0)return ft[V++]=20971520,ft[V++]=20971520,J.bits=1,0;for(D=1;D<Yt&&ke[D]===0;D++);for(Ze<D&&(Ze=D),bt=fe=1;bt<=15;bt++)if(fe<<=1,(fe-=ke[bt])<0)return-1;if(0<fe&&(St===0||Yt!==1))return-1;for(we[1]=0,bt=1;bt<15;bt++)we[bt+1]=we[bt]+ke[bt];for(Qt=0;Qt<X;Qt++)mt[_t+Qt]!==0&&(ut[we[mt[_t+Qt]]++]=Qt);if(Wt=St===0?(zt=xr=ut,19):St===1?(zt=ot,De-=257,xr=q,Hr-=257,256):(zt=rt,xr=yt,-1),bt=D,Jt=V,Qe=Qt=Ut=0,jt=-1,Pt=(je=1<<(ue=Ze))-1,St===1&&852<je||St===2&&592<je)return 1;for(;;){for(oe=bt-Qe,ve=ut[Qt]<Wt?(Gt=0,ut[Qt]):ut[Qt]>Wt?(Gt=xr[Hr+ut[Qt]],zt[De+ut[Qt]]):(Gt=96,0),dt=1<<bt-Qe,D=kt=1<<ue;ft[Jt+(Ut>>Qe)+(kt-=dt)]=oe<<24|Gt<<16|ve|0,kt!==0;);for(dt=1<<bt-1;Ut&dt;)dt>>=1;if(dt!==0?(Ut&=dt-1,Ut+=dt):Ut=0,Qt++,--ke[bt]==0){if(bt===Yt)break;bt=mt[_t+ut[Qt]]}if(Ze<bt&&(Ut&Pt)!==jt){for(Qe===0&&(Qe=Ze),Jt+=D,fe=1<<(ue=bt-Qe);ue+Qe<Yt&&!((fe-=ke[ue+Qe])<=0);)ue++,fe<<=1;if(je+=1<<ue,St===1&&852<je||St===2&&592<je)return 1;ft[jt=Ut&Pt]=Ze<<24|ue<<16|Jt-V|0}}return Ut!==0&&(ft[Jt+Ut]=bt-Qe<<24|64<<16|0),J.bits=Ze,0}},{"../utils/common":41}],51:[function(Lt,le,xt){"use strict";le.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(Lt,le,xt){"use strict";var ct=Lt("../utils/common"),ot=0,q=1;function rt(et){for(var Ct=et.length;0<=--Ct;)et[Ct]=0}var yt=0,St=29,mt=256,_t=mt+1+St,X=30,ft=19,V=2*_t+1,ut=15,J=16,dt=7,kt=256,jt=16,Pt=17,Jt=18,Wt=[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],oe=[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],Gt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ve=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ue=new Array(2*(_t+2));rt(Ue);var bt=new Array(2*X);rt(bt);var Qt=new Array(512);rt(Qt);var D=new Array(256);rt(D);var Yt=new Array(St);rt(Yt);var Ze,ue,Qe,fe=new Array(X);function je(et,Ct,ie,se,Tt){this.static_tree=et,this.extra_bits=Ct,this.extra_base=ie,this.elems=se,this.max_length=Tt,this.has_stree=et&&et.length}function Ut(et,Ct){this.dyn_tree=et,this.max_code=0,this.stat_desc=Ct}function zt(et){return et<256?Qt[et]:Qt[256+(et>>>7)]}function De(et,Ct){et.pending_buf[et.pending++]=255&Ct,et.pending_buf[et.pending++]=Ct>>>8&255}function ke(et,Ct,ie){et.bi_valid>J-ie?(et.bi_buf|=Ct<<et.bi_valid&65535,De(et,et.bi_buf),et.bi_buf=Ct>>J-et.bi_valid,et.bi_valid+=ie-J):(et.bi_buf|=Ct<<et.bi_valid&65535,et.bi_valid+=ie)}function we(et,Ct,ie){ke(et,ie[2*Ct],ie[2*Ct+1])}function xr(et,Ct){for(var ie=0;ie|=1&et,et>>>=1,ie<<=1,0<--Ct;);return ie>>>1}function Hr(et,Ct,ie){var se,Tt,me=new Array(ut+1),Ce=0;for(se=1;se<=ut;se++)me[se]=Ce=Ce+ie[se-1]<<1;for(Tt=0;Tt<=Ct;Tt++){var be=et[2*Tt+1];be!==0&&(et[2*Tt]=xr(me[be]++,be))}}function sr(et){var Ct;for(Ct=0;Ct<_t;Ct++)et.dyn_ltree[2*Ct]=0;for(Ct=0;Ct<X;Ct++)et.dyn_dtree[2*Ct]=0;for(Ct=0;Ct<ft;Ct++)et.bl_tree[2*Ct]=0;et.dyn_ltree[2*kt]=1,et.opt_len=et.static_len=0,et.last_lit=et.matches=0}function fr(et){8<et.bi_valid?De(et,et.bi_buf):0<et.bi_valid&&(et.pending_buf[et.pending++]=et.bi_buf),et.bi_buf=0,et.bi_valid=0}function Rr(et,Ct,ie,se){var Tt=2*Ct,me=2*ie;return et[Tt]<et[me]||et[Tt]===et[me]&&se[Ct]<=se[ie]}function Ir(et,Ct,ie){for(var se=et.heap[ie],Tt=ie<<1;Tt<=et.heap_len&&(Tt<et.heap_len&&Rr(Ct,et.heap[Tt+1],et.heap[Tt],et.depth)&&Tt++,!Rr(Ct,se,et.heap[Tt],et.depth));)et.heap[ie]=et.heap[Tt],ie=Tt,Tt<<=1;et.heap[ie]=se}function fn(et,Ct,ie){var se,Tt,me,Ce,be=0;if(et.last_lit!==0)for(;se=et.pending_buf[et.d_buf+2*be]<<8|et.pending_buf[et.d_buf+2*be+1],Tt=et.pending_buf[et.l_buf+be],be++,se===0?we(et,Tt,Ct):(we(et,(me=D[Tt])+mt+1,Ct),(Ce=Wt[me])!==0&&ke(et,Tt-=Yt[me],Ce),we(et,me=zt(--se),ie),(Ce=oe[me])!==0&&ke(et,se-=fe[me],Ce)),be<et.last_lit;);we(et,kt,Ct)}function pn(et,Ct){var ie,se,Tt,me=Ct.dyn_tree,Ce=Ct.stat_desc.static_tree,be=Ct.stat_desc.has_stree,Oe=Ct.stat_desc.elems,mr=-1;for(et.heap_len=0,et.heap_max=V,ie=0;ie<Oe;ie++)me[2*ie]!==0?(et.heap[++et.heap_len]=mr=ie,et.depth[ie]=0):me[2*ie+1]=0;for(;et.heap_len<2;)me[2*(Tt=et.heap[++et.heap_len]=mr<2?++mr:0)]=1,et.depth[Tt]=0,et.opt_len--,be&&(et.static_len-=Ce[2*Tt+1]);for(Ct.max_code=mr,ie=et.heap_len>>1;1<=ie;ie--)Ir(et,me,ie);for(Tt=Oe;ie=et.heap[1],et.heap[1]=et.heap[et.heap_len--],Ir(et,me,1),se=et.heap[1],et.heap[--et.heap_max]=ie,et.heap[--et.heap_max]=se,me[2*Tt]=me[2*ie]+me[2*se],et.depth[Tt]=(et.depth[ie]>=et.depth[se]?et.depth[ie]:et.depth[se])+1,me[2*ie+1]=me[2*se+1]=Tt,et.heap[1]=Tt++,Ir(et,me,1),2<=et.heap_len;);et.heap[--et.heap_max]=et.heap[1],function(rr,xn){var sa,Er,Cr,nr,Gi,oa,Cn=xn.dyn_tree,Ya=xn.max_code,ks=xn.stat_desc.static_tree,Ps=xn.stat_desc.has_stree,Vu=xn.stat_desc.extra_bits,Ro=xn.stat_desc.extra_base,ua=xn.stat_desc.max_length,la=0;for(nr=0;nr<=ut;nr++)rr.bl_count[nr]=0;for(Cn[2*rr.heap[rr.heap_max]+1]=0,sa=rr.heap_max+1;sa<V;sa++)ua<(nr=Cn[2*Cn[2*(Er=rr.heap[sa])+1]+1]+1)&&(nr=ua,la++),Cn[2*Er+1]=nr,Ya<Er||(rr.bl_count[nr]++,Gi=0,Ro<=Er&&(Gi=Vu[Er-Ro]),oa=Cn[2*Er],rr.opt_len+=oa*(nr+Gi),Ps&&(rr.static_len+=oa*(ks[2*Er+1]+Gi)));if(la!==0){do{for(nr=ua-1;rr.bl_count[nr]===0;)nr--;rr.bl_count[nr]--,rr.bl_count[nr+1]+=2,rr.bl_count[ua]--,la-=2}while(0<la);for(nr=ua;nr!==0;nr--)for(Er=rr.bl_count[nr];Er!==0;)Ya<(Cr=rr.heap[--sa])||(Cn[2*Cr+1]!==nr&&(rr.opt_len+=(nr-Cn[2*Cr+1])*Cn[2*Cr],Cn[2*Cr+1]=nr),Er--)}}(et,Ct),Hr(me,mr,et.bl_count)}function S(et,Ct,ie){var se,Tt,me=-1,Ce=Ct[1],be=0,Oe=7,mr=4;for(Ce===0&&(Oe=138,mr=3),Ct[2*(ie+1)+1]=65535,se=0;se<=ie;se++)Tt=Ce,Ce=Ct[2*(se+1)+1],++be<Oe&&Tt===Ce||(be<mr?et.bl_tree[2*Tt]+=be:Tt!==0?(Tt!==me&&et.bl_tree[2*Tt]++,et.bl_tree[2*jt]++):be<=10?et.bl_tree[2*Pt]++:et.bl_tree[2*Jt]++,me=Tt,mr=(be=0)===Ce?(Oe=138,3):Tt===Ce?(Oe=6,3):(Oe=7,4))}function Xt(et,Ct,ie){var se,Tt,me=-1,Ce=Ct[1],be=0,Oe=7,mr=4;for(Ce===0&&(Oe=138,mr=3),se=0;se<=ie;se++)if(Tt=Ce,Ce=Ct[2*(se+1)+1],!(++be<Oe&&Tt===Ce)){if(be<mr)for(;we(et,Tt,et.bl_tree),--be!=0;);else Tt!==0?(Tt!==me&&(we(et,Tt,et.bl_tree),be--),we(et,jt,et.bl_tree),ke(et,be-3,2)):be<=10?(we(et,Pt,et.bl_tree),ke(et,be-3,3)):(we(et,Jt,et.bl_tree),ke(et,be-11,7));me=Tt,mr=(be=0)===Ce?(Oe=138,3):Tt===Ce?(Oe=6,3):(Oe=7,4)}}rt(fe);var qt=!1;function lt(et,Ct,ie,se){ke(et,(yt<<1)+(se?1:0),3),function(Tt,me,Ce,be){fr(Tt),be&&(De(Tt,Ce),De(Tt,~Ce)),ct.arraySet(Tt.pending_buf,Tt.window,me,Ce,Tt.pending),Tt.pending+=Ce}(et,Ct,ie,!0)}xt._tr_init=function(et){qt||(function(){var Ct,ie,se,Tt,me,Ce=new Array(ut+1);for(Tt=se=0;Tt<St-1;Tt++)for(Yt[Tt]=se,Ct=0;Ct<1<<Wt[Tt];Ct++)D[se++]=Tt;for(D[se-1]=Tt,Tt=me=0;Tt<16;Tt++)for(fe[Tt]=me,Ct=0;Ct<1<<oe[Tt];Ct++)Qt[me++]=Tt;for(me>>=7;Tt<X;Tt++)for(fe[Tt]=me<<7,Ct=0;Ct<1<<oe[Tt]-7;Ct++)Qt[256+me++]=Tt;for(ie=0;ie<=ut;ie++)Ce[ie]=0;for(Ct=0;Ct<=143;)Ue[2*Ct+1]=8,Ct++,Ce[8]++;for(;Ct<=255;)Ue[2*Ct+1]=9,Ct++,Ce[9]++;for(;Ct<=279;)Ue[2*Ct+1]=7,Ct++,Ce[7]++;for(;Ct<=287;)Ue[2*Ct+1]=8,Ct++,Ce[8]++;for(Hr(Ue,_t+1,Ce),Ct=0;Ct<X;Ct++)bt[2*Ct+1]=5,bt[2*Ct]=xr(Ct,5);Ze=new je(Ue,Wt,mt+1,_t,ut),ue=new je(bt,oe,0,X,ut),Qe=new je(new Array(0),Gt,0,ft,dt)}(),qt=!0),et.l_desc=new Ut(et.dyn_ltree,Ze),et.d_desc=new Ut(et.dyn_dtree,ue),et.bl_desc=new Ut(et.bl_tree,Qe),et.bi_buf=0,et.bi_valid=0,sr(et)},xt._tr_stored_block=lt,xt._tr_flush_block=function(et,Ct,ie,se){var Tt,me,Ce=0;0<et.level?(et.strm.data_type===2&&(et.strm.data_type=function(be){var Oe,mr=4093624447;for(Oe=0;Oe<=31;Oe++,mr>>>=1)if(1&mr&&be.dyn_ltree[2*Oe]!==0)return ot;if(be.dyn_ltree[18]!==0||be.dyn_ltree[20]!==0||be.dyn_ltree[26]!==0)return q;for(Oe=32;Oe<mt;Oe++)if(be.dyn_ltree[2*Oe]!==0)return q;return ot}(et)),pn(et,et.l_desc),pn(et,et.d_desc),Ce=function(be){var Oe;for(S(be,be.dyn_ltree,be.l_desc.max_code),S(be,be.dyn_dtree,be.d_desc.max_code),pn(be,be.bl_desc),Oe=ft-1;3<=Oe&&be.bl_tree[2*ve[Oe]+1]===0;Oe--);return be.opt_len+=3*(Oe+1)+5+5+4,Oe}(et),Tt=et.opt_len+3+7>>>3,(me=et.static_len+3+7>>>3)<=Tt&&(Tt=me)):Tt=me=ie+5,ie+4<=Tt&&Ct!==-1?lt(et,Ct,ie,se):et.strategy===4||me===Tt?(ke(et,2+(se?1:0),3),fn(et,Ue,bt)):(ke(et,4+(se?1:0),3),function(be,Oe,mr,rr){var xn;for(ke(be,Oe-257,5),ke(be,mr-1,5),ke(be,rr-4,4),xn=0;xn<rr;xn++)ke(be,be.bl_tree[2*ve[xn]+1],3);Xt(be,be.dyn_ltree,Oe-1),Xt(be,be.dyn_dtree,mr-1)}(et,et.l_desc.max_code+1,et.d_desc.max_code+1,Ce+1),fn(et,et.dyn_ltree,et.dyn_dtree)),sr(et),se&&fr(et)},xt._tr_tally=function(et,Ct,ie){return et.pending_buf[et.d_buf+2*et.last_lit]=Ct>>>8&255,et.pending_buf[et.d_buf+2*et.last_lit+1]=255&Ct,et.pending_buf[et.l_buf+et.last_lit]=255&ie,et.last_lit++,Ct===0?et.dyn_ltree[2*ie]++:(et.matches++,Ct--,et.dyn_ltree[2*(D[ie]+mt+1)]++,et.dyn_dtree[2*zt(Ct)]++),et.last_lit===et.lit_bufsize-1},xt._tr_align=function(et){ke(et,2,3),we(et,kt,Ue),function(Ct){Ct.bi_valid===16?(De(Ct,Ct.bi_buf),Ct.bi_buf=0,Ct.bi_valid=0):8<=Ct.bi_valid&&(Ct.pending_buf[Ct.pending++]=255&Ct.bi_buf,Ct.bi_buf>>=8,Ct.bi_valid-=8)}(et)}},{"../utils/common":41}],53:[function(Lt,le,xt){"use strict";le.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(Lt,le,xt){(function(ct){(function(ot,q){"use strict";if(!ot.setImmediate){var rt,yt,St,mt,_t=1,X={},ft=!1,V=ot.document,ut=Object.getPrototypeOf&&Object.getPrototypeOf(ot);ut=ut&&ut.setTimeout?ut:ot,rt={}.toString.call(ot.process)==="[object process]"?function(jt){process.nextTick(function(){dt(jt)})}:function(){if(ot.postMessage&&!ot.importScripts){var jt=!0,Pt=ot.onmessage;return ot.onmessage=function(){jt=!1},ot.postMessage("","*"),ot.onmessage=Pt,jt}}()?(mt="setImmediate$"+Math.random()+"$",ot.addEventListener?ot.addEventListener("message",kt,!1):ot.attachEvent("onmessage",kt),function(jt){ot.postMessage(mt+jt,"*")}):ot.MessageChannel?((St=new MessageChannel).port1.onmessage=function(jt){dt(jt.data)},function(jt){St.port2.postMessage(jt)}):V&&"onreadystatechange"in V.createElement("script")?(yt=V.documentElement,function(jt){var Pt=V.createElement("script");Pt.onreadystatechange=function(){dt(jt),Pt.onreadystatechange=null,yt.removeChild(Pt),Pt=null},yt.appendChild(Pt)}):function(jt){setTimeout(dt,0,jt)},ut.setImmediate=function(jt){typeof jt!="function"&&(jt=new Function(""+jt));for(var Pt=new Array(arguments.length-1),Jt=0;Jt<Pt.length;Jt++)Pt[Jt]=arguments[Jt+1];var Wt={callback:jt,args:Pt};return X[_t]=Wt,rt(_t),_t++},ut.clearImmediate=J}function J(jt){delete X[jt]}function dt(jt){if(ft)setTimeout(dt,0,jt);else{var Pt=X[jt];if(Pt){ft=!0;try{(function(Jt){var Wt=Jt.callback,oe=Jt.args;switch(oe.length){case 0:Wt();break;case 1:Wt(oe[0]);break;case 2:Wt(oe[0],oe[1]);break;case 3:Wt(oe[0],oe[1],oe[2]);break;default:Wt.apply(q,oe)}})(Pt)}finally{J(jt),ft=!1}}}}function kt(jt){jt.source===ot&&typeof jt.data=="string"&&jt.data.indexOf(mt)===0&&dt(+jt.data.slice(mt.length))}})(typeof self>"u"?ct===void 0?this:ct:self)}).call(this,typeof Xr.g<"u"?Xr.g:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}}]);
- //# sourceMappingURL=lazy-lib-dl-df7058e941c9b6857595.js.map
|